From 61e0200f5dfa8916bc04e6a4c92e062f0c64b22b Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sat, 20 Nov 2021 10:30:58 -0700 Subject: [PATCH 001/617] updating .gitignore to ignore a test config.yaml and .envrc for direnv users --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 89a14aa9..243889ec 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,5 @@ /dist /releases /mocks +.envrc +config.yaml \ No newline at end of file From 638fd88bfefd8d179b8508502a6647c5a8e0ecd8 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sat, 20 Nov 2021 10:31:24 -0700 Subject: [PATCH 002/617] add new flag for log-level, support all logrus log levels --- cmd/root.go | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 627722ac..24daa06a 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -4,6 +4,7 @@ import ( "fmt" "os" "sort" + "strings" "github.com/aws/aws-sdk-go/aws/endpoints" "github.com/rebuy-de/aws-nuke/v2/pkg/awsutil" @@ -19,6 +20,7 @@ func NewRootCommand() *cobra.Command { creds awsutil.Credentials defaultRegion string verbose bool + logLevel string ) command := &cobra.Command{ @@ -28,10 +30,26 @@ func NewRootCommand() *cobra.Command { } command.PreRun = func(cmd *cobra.Command, args []string) { - log.SetLevel(log.InfoLevel) + switch strings.ToLower(logLevel) { + case "trace": + log.SetLevel(log.TraceLevel) + case "debug": + log.SetLevel(log.DebugLevel) + case "info": + log.SetLevel(log.InfoLevel) + case "warn": + log.SetLevel(log.WarnLevel) + case "error": + log.SetLevel(log.ErrorLevel) + default: + log.SetLevel(log.InfoLevel) + } + if verbose { log.SetLevel(log.DebugLevel) + log.Warn("--verbose CLI argument is deprecated, please use --log-level=debug instead") } + log.SetFormatter(&log.TextFormatter{ EnvironmentOverrideColors: true, }) @@ -90,9 +108,13 @@ func NewRootCommand() *cobra.Command { return n.Run() } + command.PersistentFlags().StringVarP( + &logLevel, "log-level", "l", "info", + "Controls log level for output.") + command.PersistentFlags().BoolVarP( &verbose, "verbose", "v", false, - "Enables debug output.") + "Enables debug output. (Deprecated: use --log-level=debug instead)") command.PersistentFlags().StringVarP( ¶ms.ConfigPath, "config", "c", "", From 9657384b5fb2595794c092837301cc27d43c6065 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 13 Dec 2021 11:35:26 -0700 Subject: [PATCH 003/617] Add GoReleaser Support (#2) * add support for using goreleaser for releases and docker images * remove package env var, not needed * comment out quay.io for now * replace a larger part of the string so forks can more easily modify file * fix type: debuy -> rebuy * stop being clever with replace on ModulePath * clean up errant quote * set source back to rebuy-de so sed can replace it for fork * fix type: gchr -> ghcr * fix typo: missing e on binary copy * make archive format the same name as existing release process * include arm version if arm is the target * prefix .Version with v * use summary field for snapshot version --- .goreleaser.yml | 107 ++++++++++++++++++++++++++++++++++++++++++ Dockerfile.goreleaser | 9 ++++ 2 files changed, 116 insertions(+) create mode 100644 .goreleaser.yml create mode 100644 Dockerfile.goreleaser diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 00000000..afa48eee --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,107 @@ +dist: releases +release: + github: + owner: rebuy-de + name: aws-nuke +builds: + - id: default + goos: + - darwin + - linux + - windows + goarch: + - amd64 + - arm64 + - arm + goarm: + - 7 + ignore: + - goos: windows + goarch: arm64 + - goos: windows + goarch: arm + - goos: darwin + goarch: arm + ldflags: + - -s + - -X '{{ .ModulePath }}/cmd.BuildVersion=v{{ .Version }}' + - -X '{{ .ModulePath }}/cmd.BuildDate={{ .Date }}' + - -X '{{ .ModulePath }}/cmd.BuildHash={{ .Commit }}' +archives: + - id: default + builds: + - default + name_template: "{{ .ProjectName }}-v{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ .Arm }}" + format_overrides: + - goos: windows + format: zip +dockers: + - use: buildx + goos: linux + goarch: amd64 + dockerfile: Dockerfile.goreleaser + image_templates: + - ghcr.io/rebuy-de/aws-nuke:v{{ .Version }}-amd64 + #- quay.io/rebuy/aws-nuke:v{{ .Version }}-amd64 + build_flag_templates: + - "--pull" + - "--label=org.opencontainers.image.created={{.Date}}" + - "--label=org.opencontainers.image.title={{.ProjectName}}" + - "--label=org.opencontainers.image.revision={{.FullCommit}}" + - "--label=org.opencontainers.image.version=v{{.Version}}" + - "--label=org.opencontainers.image.source=https://github.com/debuy-de/aws-nuke" + - "--platform=linux/amd64" + - use: buildx + goos: linux + goarch: arm64 + dockerfile: Dockerfile.goreleaser + image_templates: + - ghcr.io/rebuy-de/aws-nuke:v{{ .Version }}-arm64 + #- quay.io/rebuy/aws-nuke:v{{ .Version }}-amd64 + build_flag_templates: + - "--pull" + - "--label=org.opencontainers.image.created={{.Date}}" + - "--label=org.opencontainers.image.title={{.ProjectName}}" + - "--label=org.opencontainers.image.revision={{.FullCommit}}" + - "--label=org.opencontainers.image.version=v{{.Version}}" + - "--label=org.opencontainers.image.source=https://github.com/debuy-de/aws-nuke" + - "--platform=linux/arm64" + - use: buildx + goos: linux + goarch: arm + goarm: "7" + dockerfile: Dockerfile.goreleaser + image_templates: + - ghcr.io/rebuy-de/aws-nuke:v{{ .Version }}-arm32v7 + #- quay.io/rebuy-de/aws-nuke:v{{ .Version }}-arm32v7 + build_flag_templates: + - "--pull" + - "--label=org.opencontainers.image.created={{.Date}}" + - "--label=org.opencontainers.image.title={{.ProjectName}}" + - "--label=org.opencontainers.image.revision={{.FullCommit}}" + - "--label=org.opencontainers.image.version=v{{.Version}}" + - "--label=org.opencontainers.image.source=https://github.com/debuy-de/aws-nuke" + - "--platform=linux/arm/v7" +docker_manifests: + - use: docker + name_template: ghcr.io/rebuy-de/aws-nuke:v{{ .Version }} + image_templates: + - ghcr.io/rebuy-de/aws-nuke:v{{ .Version }}-amd64 + - ghcr.io/rebuy-de/aws-nuke:v{{ .Version }}-arm64 + - ghcr.io/rebuy-de/aws-nuke:v{{ .Version }}-arm32v7 + #- use: docker + # name_template: quay.io/rebuy-de/aws-nuke:v{{ .Version }} + # image_templates: + # - quay.io/rebuy-de/aws-nuke:v{{ .Version }}-amd64 + # - quay.io/rebuy-de/aws-nuke:v{{ .Version }}-arm64 + # - quay.io/rebuy-de/aws-nuke:v{{ .Version }}-arm32v7 +checksum: + name_template: "checksums.txt" +snapshot: + name_template: "{{ .Summary }}" +changelog: + sort: asc + filters: + exclude: + - "^docs:" + - "^test:" diff --git a/Dockerfile.goreleaser b/Dockerfile.goreleaser new file mode 100644 index 00000000..756c620e --- /dev/null +++ b/Dockerfile.goreleaser @@ -0,0 +1,9 @@ + +FROM alpine:3.14.3 +ENTRYPOINT ["/usr/local/bin/aws-nuke"] +RUN apk add --no-cache ca-certificates +RUN adduser -D aws-nuke + +COPY aws-nuke /usr/local/bin/aws-nuke + +USER aws-nuke From c97b95844b355564c6c5d4307ed3618284114cf8 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 13 Dec 2021 11:35:49 -0700 Subject: [PATCH 004/617] adding support for inspector runs, targets, templates (#3) From d093b4a32fa296dbd5b3327c0bfae5ac5dd06268 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 13 Dec 2021 11:39:19 -0700 Subject: [PATCH 005/617] Test: Mock all IAM Resource Deletions (#4) * add tool to help generate mock tests for remove testing * include IAM for generate mocks * support attachment resources better in codegen * add mock tests for all IAM resource removals * fix(lint): error capitalization * fix(lint): remove arg from for/range * adding unique id generator for tests --- generate_mocks | 2 + go.mod | 15 +++ go.sum | 20 ++++ pkg/util/unique_id.go | 25 +++++ resources/iam-group-policies.go | 3 +- resources/iam-group-policies_mock_test.go | 33 ++++++ resources/iam-group-policy-attachments.go | 15 +-- .../iam-group-policy-attachments_mock_test.go | 34 ++++++ resources/iam-groups.go | 5 +- resources/iam-groups_mock_test.go | 31 ++++++ .../iam-instance-profile-role_mock_test.go | 33 ++++++ resources/iam-instance-profile-roles.go | 9 +- resources/iam-instance-profiles.go | 9 +- resources/iam-instance-profiles_mock_test.go | 31 ++++++ resources/iam-login-profiles.go | 5 +- resources/iam-login-profiles_mock_test.go | 31 ++++++ resources/iam-open-id-connect-provider.go | 7 +- .../iam-open-id-connect-provider_mock_test.go | 31 ++++++ resources/iam-policies.go | 7 +- resources/iam-policies_mock_test.go | 95 ++++++++++++++++ resources/iam-role-policy-attachments.go | 5 +- .../iam-role-policy-attachments_mock_test.go | 34 ++++++ resources/iam-role-policy.go | 40 ++++--- resources/iam-role-policy_mock_test.go | 35 ++++++ resources/iam-roles.go | 21 ++-- resources/iam-roles_mock_test.go | 33 ++++++ resources/iam-saml-provider.go | 3 +- resources/iam-saml-provider_mock_test.go | 30 +++++ resources/iam-server-certificate.go | 3 +- resources/iam-server-certificate_mock_test.go | 30 +++++ resources/iam-service-specific-credentials.go | 5 +- ...-service-specific-credentials_mock_test.go | 35 ++++++ .../iam-signing-certificate_mock_test.go | 34 ++++++ resources/iam-signing-certificates.go | 5 +- resources/iam-user-access-key_mock_test.go | 34 ++++++ resources/iam-user-access-keys.go | 5 +- ...ments.go => iam-user-group-attachments.go} | 3 +- .../iam-user-group-attachments_mock_test.go | 33 ++++++ .../iam-user-policy-attachment_mock_test.go | 34 ++++++ resources/iam-user-policy-attachments.go | 6 +- resources/iam-user-policy.go | 3 +- resources/iam-user-policy_mock_test.go | 33 ++++++ resources/iam-user-ssh-keys.go | 15 +-- resources/iam-user-ssh-keys_mock_test.go | 33 ++++++ resources/iam-users.go | 5 +- resources/iam-users_mock_test.go | 31 ++++++ resources/iam-virtual-mfa-devices.go | 33 +++--- .../iam-virtual-mfa-devices_mock_test.go | 37 ++++++ resources/interface.go | 2 +- tools/gen-mock-test/main.go | 105 ++++++++++++++++++ 50 files changed, 1065 insertions(+), 101 deletions(-) create mode 100644 pkg/util/unique_id.go create mode 100644 resources/iam-group-policies_mock_test.go create mode 100644 resources/iam-group-policy-attachments_mock_test.go create mode 100644 resources/iam-groups_mock_test.go create mode 100644 resources/iam-instance-profile-role_mock_test.go create mode 100644 resources/iam-instance-profiles_mock_test.go create mode 100644 resources/iam-login-profiles_mock_test.go create mode 100644 resources/iam-open-id-connect-provider_mock_test.go create mode 100644 resources/iam-policies_mock_test.go create mode 100644 resources/iam-role-policy-attachments_mock_test.go create mode 100644 resources/iam-role-policy_mock_test.go create mode 100644 resources/iam-roles_mock_test.go create mode 100644 resources/iam-saml-provider_mock_test.go create mode 100644 resources/iam-server-certificate_mock_test.go create mode 100644 resources/iam-service-specific-credentials_mock_test.go create mode 100644 resources/iam-signing-certificate_mock_test.go create mode 100644 resources/iam-user-access-key_mock_test.go rename resources/{iam-list-user-group-attachments.go => iam-user-group-attachments.go} (94%) create mode 100644 resources/iam-user-group-attachments_mock_test.go create mode 100644 resources/iam-user-policy-attachment_mock_test.go create mode 100644 resources/iam-user-policy_mock_test.go create mode 100644 resources/iam-user-ssh-keys_mock_test.go create mode 100644 resources/iam-users_mock_test.go create mode 100644 resources/iam-virtual-mfa-devices_mock_test.go create mode 100644 tools/gen-mock-test/main.go diff --git a/generate_mocks b/generate_mocks index 9f32fa51..cdae3dc2 100755 --- a/generate_mocks +++ b/generate_mocks @@ -1,3 +1,5 @@ #!/bin/sh go run github.com/golang/mock/mockgen -source $(go list -m -mod=mod -f "{{.Dir}}" "github.com/aws/aws-sdk-go")/service/cloudformation/cloudformationiface/interface.go -destination mocks/mock_cloudformationiface/mock.go + +go run github.com/golang/mock/mockgen -source $(go list -m -mod=mod -f "{{.Dir}}" "github.com/aws/aws-sdk-go")/service/iam/iamiface/interface.go -destination mocks/mock_iamiface/mock.go diff --git a/go.mod b/go.mod index e0b410cf..4b7b4b2f 100644 --- a/go.mod +++ b/go.mod @@ -3,11 +3,18 @@ module github.com/rebuy-de/aws-nuke/v2 go 1.19 require ( + github.com/Masterminds/goutils v1.1.1 // indirect + github.com/Masterminds/semver v1.5.0 // indirect + github.com/Masterminds/sprig v2.22.0+incompatible github.com/aws/aws-sdk-go v1.44.295 github.com/fatih/color v1.15.0 github.com/golang/mock v1.6.0 github.com/google/uuid v1.3.0 + github.com/huandu/xstrings v1.4.0 // indirect + github.com/iancoleman/strcase v0.2.0 + github.com/imdario/mergo v0.3.14 // indirect github.com/mb0/glob v0.0.0-20160210091149-1eb79d2de6c4 + github.com/mitchellh/copystructure v1.2.0 // indirect github.com/pkg/errors v0.9.1 github.com/rebuy-de/rebuy-go-sdk/v4 v4.5.1 github.com/sirupsen/logrus v1.9.3 @@ -31,4 +38,12 @@ require ( golang.org/x/sys v0.6.0 // indirect golang.org/x/tools v0.7.0 // indirect gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect + +) + +require github.com/rebuy-de/aws-nuke v2.10.0+incompatible + +require ( + github.com/mitchellh/reflectwalk v1.0.2 // indirect + golang.org/x/crypto v0.7.0 // indirect ) diff --git a/go.sum b/go.sum index e679694a..df654fa0 100644 --- a/go.sum +++ b/go.sum @@ -1,3 +1,9 @@ +github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI= +github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= +github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww= +github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y= +github.com/Masterminds/sprig v2.22.0+incompatible h1:z4yfnGrZ7netVz+0EDJ0Wi+5VZCSYp4Z0m2dk6cEM60= +github.com/Masterminds/sprig v2.22.0+incompatible/go.mod h1:y6hNFY5UBTIWBxnzTeuNhlNS5hqE0NB0E6fgfo2Br3o= github.com/aws/aws-sdk-go v1.44.295 h1:SGjU1+MqttXfRiWHD6WU0DRhaanJgAFY+xIhEaugV8Y= github.com/aws/aws-sdk-go v1.44.295/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= @@ -13,6 +19,12 @@ github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/huandu/xstrings v1.4.0 h1:D17IlohoQq4UcpqD7fDk80P7l+lwAmlFaBHgOipl2FU= +github.com/huandu/xstrings v1.4.0/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= +github.com/iancoleman/strcase v0.2.0 h1:05I4QRnGpI0m37iZQRuskXh+w77mr6Z41lwQzuHLwW0= +github.com/iancoleman/strcase v0.2.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= +github.com/imdario/mergo v0.3.14 h1:fOqeC1+nCuuk6PKQdg9YmosXX7Y7mHX6R/0ZldI9iHo= +github.com/imdario/mergo v0.3.14/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= @@ -33,11 +45,17 @@ github.com/mattn/go-isatty v0.0.17 h1:BTarxUcIeDqL27Mc+vyvdWYSL28zpIhv3RoTdsLMPn github.com/mattn/go-isatty v0.0.17/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= github.com/mb0/glob v0.0.0-20160210091149-1eb79d2de6c4 h1:NK3O7S5FRD/wj7ORQ5C3Mx1STpyEMuFe+/F0Lakd1Nk= github.com/mb0/glob v0.0.0-20160210091149-1eb79d2de6c4/go.mod h1:FqD3ES5hx6zpzDainDaHgkTIqrPaI9uX4CVWqYZoQjY= +github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw= +github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s= +github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ= +github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/rebuy-de/aws-nuke v2.10.0+incompatible h1:RLi5bm7BZAxOVeNjYA2JafFvZTuAhALpNQiD+Bjfz+E= +github.com/rebuy-de/aws-nuke v2.10.0+incompatible/go.mod h1:DyMsiA805cBWrullfs3ZHSEvbJ3mu7fsDuc4PG2Gt7Y= github.com/rebuy-de/rebuy-go-sdk/v4 v4.5.1 h1:7QWjC0uku9pIqTXS664clCMjqhZLjO/sUV7yTJJwzAk= github.com/rebuy-de/rebuy-go-sdk/v4 v4.5.1/go.mod h1:ZSfnIcE8RFKz7IO6AFZjETDbPyMdUjtxCea9R7Q6pQE= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= @@ -60,6 +78,8 @@ golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnf golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.7.0 h1:AvwMYaRytfdeVt3u6mLaxYtErKYjxA2OXjJ1HHq6t3A= +golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.9.0 h1:KENHtAZL2y3NLMYZeHY9DW8HW8V+kQyJsY/V9JlKvCs= diff --git a/pkg/util/unique_id.go b/pkg/util/unique_id.go new file mode 100644 index 00000000..bb79863c --- /dev/null +++ b/pkg/util/unique_id.go @@ -0,0 +1,25 @@ +package util + +import ( + "bytes" + "math/rand" + "time" +) + +// Returns a unique (ish) id we can attach to resources and tfstate files so they don't conflict with each other +// Uses base 62 to generate a 6 character string that's unlikely to collide with the handful of tests we run in +// parallel. Based on code here: http://stackoverflow.com/a/9543797/483528 +func UniqueID() string { + + const BASE_62_CHARS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" + const UNIQUE_ID_LENGTH = 6 // Should be good for 62^6 = 56+ billion combinations + + var out bytes.Buffer + + rand := rand.New(rand.NewSource(time.Now().UnixNano())) + for i := 0; i < UNIQUE_ID_LENGTH; i++ { + out.WriteByte(BASE_62_CHARS[rand.Intn(len(BASE_62_CHARS))]) + } + + return out.String() +} diff --git a/resources/iam-group-policies.go b/resources/iam-group-policies.go index 32976721..5a10e1f1 100644 --- a/resources/iam-group-policies.go +++ b/resources/iam-group-policies.go @@ -5,10 +5,11 @@ import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" + "github.com/aws/aws-sdk-go/service/iam/iamiface" ) type IAMGroupPolicy struct { - svc *iam.IAM + svc iamiface.IAMAPI policyName string groupName string } diff --git a/resources/iam-group-policies_mock_test.go b/resources/iam-group-policies_mock_test.go new file mode 100644 index 00000000..baba41f9 --- /dev/null +++ b/resources/iam-group-policies_mock_test.go @@ -0,0 +1,33 @@ +package resources + +import ( + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + "github.com/golang/mock/gomock" + "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" + "github.com/stretchr/testify/assert" +) + +func Test_Mock_IAMGroupPolicy_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + iamGroupPolicy := IAMGroupPolicy{ + svc: mockIAM, + policyName: "foobar", + groupName: "foobar", + } + + mockIAM.EXPECT().DeleteGroupPolicy(gomock.Eq(&iam.DeleteGroupPolicyInput{ + PolicyName: aws.String(iamGroupPolicy.policyName), + GroupName: aws.String(iamGroupPolicy.groupName), + })).Return(&iam.DeleteGroupPolicyOutput{}, nil) + + err := iamGroupPolicy.Remove() + a.Nil(err) +} diff --git a/resources/iam-group-policy-attachments.go b/resources/iam-group-policy-attachments.go index 489b2eef..517cf1ea 100644 --- a/resources/iam-group-policy-attachments.go +++ b/resources/iam-group-policy-attachments.go @@ -5,14 +5,15 @@ import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/rebuy-de/aws-nuke/pkg/types" ) type IAMGroupPolicyAttachment struct { - svc *iam.IAM + svc iamiface.IAMAPI policyArn string policyName string - roleName string + groupName string } func init() { @@ -42,7 +43,7 @@ func ListIAMGroupPolicyAttachments(sess *session.Session) ([]Resource, error) { svc: svc, policyArn: *pol.PolicyArn, policyName: *pol.PolicyName, - roleName: *role.GroupName, + groupName: *role.GroupName, }) } } @@ -54,7 +55,7 @@ func (e *IAMGroupPolicyAttachment) Remove() error { _, err := e.svc.DetachGroupPolicy( &iam.DetachGroupPolicyInput{ PolicyArn: &e.policyArn, - GroupName: &e.roleName, + GroupName: &e.groupName, }) if err != nil { return err @@ -65,11 +66,11 @@ func (e *IAMGroupPolicyAttachment) Remove() error { func (e *IAMGroupPolicyAttachment) Properties() types.Properties { return types.NewProperties(). - Set("RoleName", e.roleName). + Set("GroupName", e.groupName). Set("PolicyName", e.policyName). Set("PolicyArn", e.policyArn) } func (e *IAMGroupPolicyAttachment) String() string { - return fmt.Sprintf("%s -> %s", e.roleName, e.policyName) + return fmt.Sprintf("%s -> %s", e.groupName, e.policyName) } diff --git a/resources/iam-group-policy-attachments_mock_test.go b/resources/iam-group-policy-attachments_mock_test.go new file mode 100644 index 00000000..f068b0d3 --- /dev/null +++ b/resources/iam-group-policy-attachments_mock_test.go @@ -0,0 +1,34 @@ +package resources + +import ( + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + "github.com/golang/mock/gomock" + "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" + "github.com/stretchr/testify/assert" +) + +func Test_Mock_IAMGroupPolicyAttachment_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + iamGroupPolicyAttachment := IAMGroupPolicyAttachment{ + svc: mockIAM, + policyArn: "foobar", + policyName: "foobar", + groupName: "foobar", + } + + mockIAM.EXPECT().DetachGroupPolicy(gomock.Eq(&iam.DetachGroupPolicyInput{ + PolicyArn: aws.String(iamGroupPolicyAttachment.policyArn), + GroupName: aws.String(iamGroupPolicyAttachment.groupName), + })).Return(&iam.DetachGroupPolicyOutput{}, nil) + + err := iamGroupPolicyAttachment.Remove() + a.Nil(err) +} diff --git a/resources/iam-groups.go b/resources/iam-groups.go index 9aeae259..7b9442d0 100644 --- a/resources/iam-groups.go +++ b/resources/iam-groups.go @@ -3,12 +3,11 @@ package resources import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + "github.com/aws/aws-sdk-go/service/iam/iamiface" ) type IAMGroup struct { - svc *iam.IAM - id string + svc iamiface.IAMAPI name string path string } diff --git a/resources/iam-groups_mock_test.go b/resources/iam-groups_mock_test.go new file mode 100644 index 00000000..83dd9d21 --- /dev/null +++ b/resources/iam-groups_mock_test.go @@ -0,0 +1,31 @@ +package resources + +import ( + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + "github.com/golang/mock/gomock" + "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" + "github.com/stretchr/testify/assert" +) + +func Test_Mock_IAMGroup_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + iamGroup := IAMGroup{ + svc: mockIAM, + name: "foobar", + } + + mockIAM.EXPECT().DeleteGroup(gomock.Eq(&iam.DeleteGroupInput{ + GroupName: aws.String(iamGroup.name), + })).Return(&iam.DeleteGroupOutput{}, nil) + + err := iamGroup.Remove() + a.Nil(err) +} diff --git a/resources/iam-instance-profile-role_mock_test.go b/resources/iam-instance-profile-role_mock_test.go new file mode 100644 index 00000000..07304ec0 --- /dev/null +++ b/resources/iam-instance-profile-role_mock_test.go @@ -0,0 +1,33 @@ +package resources + +import ( + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + "github.com/golang/mock/gomock" + "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" + "github.com/stretchr/testify/assert" +) + +func Test_Mock_IAMInstanceProfileRole_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + iamInstanceProfileRole := IAMInstanceProfileRole{ + svc: mockIAM, + role: "role:foobar", + profile: "profile:foobar", + } + + mockIAM.EXPECT().RemoveRoleFromInstanceProfile(gomock.Eq(&iam.RemoveRoleFromInstanceProfileInput{ + RoleName: aws.String(iamInstanceProfileRole.role), + InstanceProfileName: aws.String(iamInstanceProfileRole.profile), + })).Return(&iam.RemoveRoleFromInstanceProfileOutput{}, nil) + + err := iamInstanceProfileRole.Remove() + a.Nil(err) +} diff --git a/resources/iam-instance-profile-roles.go b/resources/iam-instance-profile-roles.go index 4033423e..6d71b8cc 100644 --- a/resources/iam-instance-profile-roles.go +++ b/resources/iam-instance-profile-roles.go @@ -6,14 +6,13 @@ import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" - "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/service/iam/iamiface" ) type IAMInstanceProfileRole struct { - svc *iam.IAM - role *iam.Role - profile *iam.InstanceProfile + svc iamiface.IAMAPI + role string + profile string } func init() { diff --git a/resources/iam-instance-profiles.go b/resources/iam-instance-profiles.go index 05daafa9..00c33e7e 100644 --- a/resources/iam-instance-profiles.go +++ b/resources/iam-instance-profiles.go @@ -3,15 +3,12 @@ package resources import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" - "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/service/iam/iamiface" ) type IAMInstanceProfile struct { - svc *iam.IAM - profile *iam.InstanceProfile - name string - path string + svc iamiface.IAMAPI + name string } func init() { diff --git a/resources/iam-instance-profiles_mock_test.go b/resources/iam-instance-profiles_mock_test.go new file mode 100644 index 00000000..6ae79ccb --- /dev/null +++ b/resources/iam-instance-profiles_mock_test.go @@ -0,0 +1,31 @@ +package resources + +import ( + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + "github.com/golang/mock/gomock" + "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" + "github.com/stretchr/testify/assert" +) + +func Test_Mock_IAMInstanceProfile_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + iamInstanceProfile := IAMInstanceProfile{ + svc: mockIAM, + name: "ip:foobar", + } + + mockIAM.EXPECT().DeleteInstanceProfile(gomock.Eq(&iam.DeleteInstanceProfileInput{ + InstanceProfileName: aws.String(iamInstanceProfile.name), + })).Return(&iam.DeleteInstanceProfileOutput{}, nil) + + err := iamInstanceProfile.Remove() + a.Nil(err) +} diff --git a/resources/iam-login-profiles.go b/resources/iam-login-profiles.go index 5ee80859..d66a0393 100644 --- a/resources/iam-login-profiles.go +++ b/resources/iam-login-profiles.go @@ -4,12 +4,13 @@ import ( "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/rebuy-de/aws-nuke/pkg/types" "github.com/sirupsen/logrus" ) type IAMLoginProfile struct { - svc *iam.IAM + svc iamiface.IAMAPI name string } diff --git a/resources/iam-login-profiles_mock_test.go b/resources/iam-login-profiles_mock_test.go new file mode 100644 index 00000000..91c04d70 --- /dev/null +++ b/resources/iam-login-profiles_mock_test.go @@ -0,0 +1,31 @@ +package resources + +import ( + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + "github.com/golang/mock/gomock" + "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" + "github.com/stretchr/testify/assert" +) + +func Test_Mock_IAMLoginProfile_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + iamLoginProfile := IAMLoginProfile{ + svc: mockIAM, + name: "login-profile:foobar", + } + + mockIAM.EXPECT().DeleteLoginProfile(gomock.Eq(&iam.DeleteLoginProfileInput{ + UserName: aws.String(iamLoginProfile.name), + })).Return(&iam.DeleteLoginProfileOutput{}, nil) + + err := iamLoginProfile.Remove() + a.Nil(err) +} diff --git a/resources/iam-open-id-connect-provider.go b/resources/iam-open-id-connect-provider.go index b2e73ce3..cb484ac4 100644 --- a/resources/iam-open-id-connect-provider.go +++ b/resources/iam-open-id-connect-provider.go @@ -3,13 +3,12 @@ package resources import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + "github.com/aws/aws-sdk-go/service/iam/iamiface" ) type IAMOpenIDConnectProvider struct { - svc *iam.IAM - arn string - tags []*iam.Tag + svc iamiface.IAMAPI + arn string } func init() { diff --git a/resources/iam-open-id-connect-provider_mock_test.go b/resources/iam-open-id-connect-provider_mock_test.go new file mode 100644 index 00000000..0f6a68d0 --- /dev/null +++ b/resources/iam-open-id-connect-provider_mock_test.go @@ -0,0 +1,31 @@ +package resources + +import ( + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + "github.com/golang/mock/gomock" + "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" + "github.com/stretchr/testify/assert" +) + +func Test_Mock_IAMOpenIDConnectProvider_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + iamOpenIDConnectProvider := IAMOpenIDConnectProvider{ + svc: mockIAM, + arn: "arn:openid-connect-provider", + } + + mockIAM.EXPECT().DeleteOpenIDConnectProvider(gomock.Eq(&iam.DeleteOpenIDConnectProviderInput{ + OpenIDConnectProviderArn: aws.String(iamOpenIDConnectProvider.arn), + })).Return(&iam.DeleteOpenIDConnectProviderOutput{}, nil) + + err := iamOpenIDConnectProvider.Remove() + a.Nil(err) +} diff --git a/resources/iam-policies.go b/resources/iam-policies.go index d4db7bec..6213a051 100644 --- a/resources/iam-policies.go +++ b/resources/iam-policies.go @@ -1,15 +1,16 @@ package resources import ( - "github.com/sirupsen/logrus" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/rebuy-de/aws-nuke/pkg/types" + "github.com/sirupsen/logrus" ) type IAMPolicy struct { - svc *iam.IAM + svc iamiface.IAMAPI name string policyId string arn string diff --git a/resources/iam-policies_mock_test.go b/resources/iam-policies_mock_test.go new file mode 100644 index 00000000..d360371b --- /dev/null +++ b/resources/iam-policies_mock_test.go @@ -0,0 +1,95 @@ +package resources + +import ( + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + "github.com/golang/mock/gomock" + "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" + "github.com/stretchr/testify/assert" +) + +func Test_Mock_IAMPolicy_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + iamPolicy := IAMPolicy{ + svc: mockIAM, + name: "foobar", + policyId: "foobar", + arn: "foobar", + } + + mockIAM.EXPECT().ListPolicyVersions(gomock.Eq(&iam.ListPolicyVersionsInput{ + PolicyArn: aws.String(iamPolicy.arn), + })).Return(&iam.ListPolicyVersionsOutput{ + Versions: []*iam.PolicyVersion{ + { + IsDefaultVersion: aws.Bool(true), + VersionId: aws.String("v1"), + }, + }, + }, nil) + + mockIAM.EXPECT().DeletePolicy(gomock.Eq(&iam.DeletePolicyInput{ + PolicyArn: aws.String(iamPolicy.arn), + })).Return(&iam.DeletePolicyOutput{}, nil) + + err := iamPolicy.Remove() + a.Nil(err) +} + +func Test_Mock_IAMPolicy_WithVersions_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + iamPolicy := IAMPolicy{ + svc: mockIAM, + name: "foobar", + policyId: "foobar", + arn: "foobar", + } + + mockIAM.EXPECT().ListPolicyVersions(gomock.Eq(&iam.ListPolicyVersionsInput{ + PolicyArn: aws.String(iamPolicy.arn), + })).Return(&iam.ListPolicyVersionsOutput{ + Versions: []*iam.PolicyVersion{ + { + IsDefaultVersion: aws.Bool(false), + VersionId: aws.String("v1"), + }, + { + IsDefaultVersion: aws.Bool(false), + VersionId: aws.String("v2"), + }, + { + IsDefaultVersion: aws.Bool(true), + VersionId: aws.String("v3"), + }, + }, + }, nil) + + mockIAM.EXPECT().DeletePolicyVersion(gomock.Eq(&iam.DeletePolicyVersionInput{ + PolicyArn: aws.String(iamPolicy.arn), + VersionId: aws.String("v1"), + })).Return(&iam.DeletePolicyVersionOutput{}, nil) + + mockIAM.EXPECT().DeletePolicyVersion(gomock.Eq(&iam.DeletePolicyVersionInput{ + PolicyArn: aws.String(iamPolicy.arn), + VersionId: aws.String("v2"), + })).Return(&iam.DeletePolicyVersionOutput{}, nil) + + mockIAM.EXPECT().DeletePolicy(gomock.Eq(&iam.DeletePolicyInput{ + PolicyArn: aws.String(iamPolicy.arn), + })).Return(&iam.DeletePolicyOutput{}, nil) + + err := iamPolicy.Remove() + a.Nil(err) +} diff --git a/resources/iam-role-policy-attachments.go b/resources/iam-role-policy-attachments.go index e251616d..012e7796 100644 --- a/resources/iam-role-policy-attachments.go +++ b/resources/iam-role-policy-attachments.go @@ -7,12 +7,13 @@ import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/rebuy-de/aws-nuke/pkg/types" "github.com/sirupsen/logrus" ) type IAMRolePolicyAttachment struct { - svc *iam.IAM + svc iamiface.IAMAPI policyArn string policyName string role *iam.Role diff --git a/resources/iam-role-policy-attachments_mock_test.go b/resources/iam-role-policy-attachments_mock_test.go new file mode 100644 index 00000000..96bb770d --- /dev/null +++ b/resources/iam-role-policy-attachments_mock_test.go @@ -0,0 +1,34 @@ +package resources + +import ( + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + "github.com/golang/mock/gomock" + "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" + "github.com/stretchr/testify/assert" +) + +func Test_Mock_IAMRolePolicyAttachment_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + iamRolePolicyAttachment := IAMRolePolicyAttachment{ + svc: mockIAM, + policyArn: "arn:foobar", + policyName: "foobar", + roleName: "role:foobar", + } + + mockIAM.EXPECT().DetachRolePolicy(gomock.Eq(&iam.DetachRolePolicyInput{ + RoleName: aws.String(iamRolePolicyAttachment.roleName), + PolicyArn: aws.String(iamRolePolicyAttachment.policyArn), + })).Return(&iam.DetachRolePolicyOutput{}, nil) + + err := iamRolePolicyAttachment.Remove() + a.Nil(err) +} diff --git a/resources/iam-role-policy.go b/resources/iam-role-policy.go index 312e4f90..2a8f2cc0 100644 --- a/resources/iam-role-policy.go +++ b/resources/iam-role-policy.go @@ -7,16 +7,21 @@ import ( "github.com/sirupsen/logrus" - "github.com/aws/aws-sdk-go/aws" + "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/rebuy-de/aws-nuke/pkg/types" ) type IAMRolePolicy struct { - svc *iam.IAM - role iam.Role + svc iamiface.IAMAPI + roleId string + rolePath string + roleName string policyName string + roleTags []*iam.Tag } func init() { @@ -58,8 +63,11 @@ func ListIAMRolePolicies(sess *session.Session) ([]Resource, error) { for _, policyName := range policies.PolicyNames { resources = append(resources, &IAMRolePolicy{ svc: svc, - role: *role, + roleId: *role.RoleId, + roleName: *role.RoleName, + rolePath: *role.Path, policyName: *policyName, + roleTags: role.Tags, }) } @@ -82,7 +90,7 @@ func ListIAMRolePolicies(sess *session.Session) ([]Resource, error) { } func (e *IAMRolePolicy) Filter() error { - if strings.HasPrefix(aws.StringValue(e.role.Path), "/aws-service-role/") { + if strings.HasPrefix(e.rolePath, "/aws-service-role/") { return fmt.Errorf("cannot alter service roles") } return nil @@ -91,7 +99,7 @@ func (e *IAMRolePolicy) Filter() error { func (e *IAMRolePolicy) Remove() error { _, err := e.svc.DeleteRolePolicy( &iam.DeleteRolePolicyInput{ - RoleName: e.role.RoleName, + RoleName: &e.roleName, PolicyName: &e.policyName, }) if err != nil { @@ -102,20 +110,18 @@ func (e *IAMRolePolicy) Remove() error { } func (e *IAMRolePolicy) Properties() types.Properties { - properties := types.NewProperties(). - Set("PolicyName", e.policyName). - Set("role:RoleName", e.role.RoleName). - Set("role:RoleID", e.role.RoleId). - Set("role:Path", e.role.Path). - Set("role:LastUsed", getLastUsedDate(&e.role, time.RFC3339)). - Set("role:CreateDate", e.role.CreateDate.Format(time.RFC3339)) - - for _, tagValue := range e.role.Tags { + properties := types.NewProperties() + properties.Set("PolicyName", e.policyName) + properties.Set("role:RoleName", e.roleName) + properties.Set("role:RoleID", e.roleId) + properties.Set("role:Path", e.rolePath) + + for _, tagValue := range e.roleTags { properties.SetTagWithPrefix("role", tagValue.Key, tagValue.Value) } return properties } func (e *IAMRolePolicy) String() string { - return fmt.Sprintf("%s -> %s", aws.StringValue(e.role.RoleName), e.policyName) + return fmt.Sprintf("%s -> %s", e.roleName, e.policyName) } diff --git a/resources/iam-role-policy_mock_test.go b/resources/iam-role-policy_mock_test.go new file mode 100644 index 00000000..8f604cb3 --- /dev/null +++ b/resources/iam-role-policy_mock_test.go @@ -0,0 +1,35 @@ +package resources + +import ( + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + "github.com/golang/mock/gomock" + "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" + "github.com/stretchr/testify/assert" +) + +func Test_Mock_IAMRolePolicy_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + iamRolePolicy := IAMRolePolicy{ + svc: mockIAM, + roleId: "role:foobar-id", + roleName: "role:foobar", + policyName: "policy:foobar", + roleTags: []*iam.Tag{}, + } + + mockIAM.EXPECT().DeleteRolePolicy(gomock.Eq(&iam.DeleteRolePolicyInput{ + RoleName: aws.String(iamRolePolicy.roleName), + PolicyName: aws.String(iamRolePolicy.policyName), + })).Return(&iam.DeleteRolePolicyOutput{}, nil) + + err := iamRolePolicy.Remove() + a.Nil(err) +} diff --git a/resources/iam-roles.go b/resources/iam-roles.go index cddd8d8b..4021928f 100644 --- a/resources/iam-roles.go +++ b/resources/iam-roles.go @@ -5,17 +5,19 @@ import ( "strings" "time" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/rebuy-de/aws-nuke/pkg/types" "github.com/sirupsen/logrus" ) type IAMRole struct { - svc *iam.IAM - role *iam.Role + svc iamiface.IAMAPI name string path string + tags []*iam.Tag } func init() { @@ -53,9 +55,9 @@ func ListIAMRoles(sess *session.Session) ([]Resource, error) { resources = append(resources, &IAMRole{ svc: svc, - role: role, name: *role.RoleName, path: *role.Path, + tags: role.Tags, }) } @@ -81,7 +83,7 @@ func (e *IAMRole) Filter() error { func (e *IAMRole) Remove() error { _, err := e.svc.DeleteRole(&iam.DeleteRoleInput{ - RoleName: &e.name, + RoleName: aws.String(e.name), }) if err != nil { return err @@ -91,13 +93,8 @@ func (e *IAMRole) Remove() error { } func (role *IAMRole) Properties() types.Properties { - properties := types.NewProperties(). - Set("CreateDate", role.role.CreateDate.Format(time.RFC3339)). - Set("LastUsedDate", getLastUsedDate(role.role, time.RFC3339)). - Set("Name", role.name). - Set("Path", role.path) - - for _, tagValue := range role.role.Tags { + properties := types.NewProperties() + for _, tagValue := range role.tags { properties.SetTag(tagValue.Key, tagValue.Value) } diff --git a/resources/iam-roles_mock_test.go b/resources/iam-roles_mock_test.go new file mode 100644 index 00000000..610f6df8 --- /dev/null +++ b/resources/iam-roles_mock_test.go @@ -0,0 +1,33 @@ +package resources + +import ( + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + "github.com/golang/mock/gomock" + "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" + "github.com/stretchr/testify/assert" +) + +func Test_Mock_IAMRole_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + iamRole := IAMRole{ + svc: mockIAM, + name: "test", + path: "/", + tags: []*iam.Tag{}, + } + + mockIAM.EXPECT().DeleteRole(gomock.Eq(&iam.DeleteRoleInput{ + RoleName: aws.String(iamRole.name), + })).Return(&iam.DeleteRoleOutput{}, nil) + + err := iamRole.Remove() + a.Nil(err) +} diff --git a/resources/iam-saml-provider.go b/resources/iam-saml-provider.go index 229cbdc0..14944e3a 100644 --- a/resources/iam-saml-provider.go +++ b/resources/iam-saml-provider.go @@ -3,10 +3,11 @@ package resources import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" + "github.com/aws/aws-sdk-go/service/iam/iamiface" ) type IAMSAMLProvider struct { - svc *iam.IAM + svc iamiface.IAMAPI arn string } diff --git a/resources/iam-saml-provider_mock_test.go b/resources/iam-saml-provider_mock_test.go new file mode 100644 index 00000000..21cccdd5 --- /dev/null +++ b/resources/iam-saml-provider_mock_test.go @@ -0,0 +1,30 @@ +package resources + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/iam" + "github.com/golang/mock/gomock" + "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" + "github.com/stretchr/testify/assert" +) + +func Test_Mock_IAMSAMLProvider_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + iamSAMLProvider := IAMSAMLProvider{ + svc: mockIAM, + arn: "arn:mock-saml-provider-foobar", + } + + mockIAM.EXPECT().DeleteSAMLProvider(gomock.Eq(&iam.DeleteSAMLProviderInput{ + SAMLProviderArn: &iamSAMLProvider.arn, + })).Return(&iam.DeleteSAMLProviderOutput{}, nil) + + err := iamSAMLProvider.Remove() + a.Nil(err) +} diff --git a/resources/iam-server-certificate.go b/resources/iam-server-certificate.go index 7d664c2d..9206f2a2 100644 --- a/resources/iam-server-certificate.go +++ b/resources/iam-server-certificate.go @@ -3,10 +3,11 @@ package resources import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" + "github.com/aws/aws-sdk-go/service/iam/iamiface" ) type IAMServerCertificate struct { - svc *iam.IAM + svc iamiface.IAMAPI name string } diff --git a/resources/iam-server-certificate_mock_test.go b/resources/iam-server-certificate_mock_test.go new file mode 100644 index 00000000..452a6989 --- /dev/null +++ b/resources/iam-server-certificate_mock_test.go @@ -0,0 +1,30 @@ +package resources + +import ( + "testing" + + "github.com/aws/aws-sdk-go/service/iam" + "github.com/golang/mock/gomock" + "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" + "github.com/stretchr/testify/assert" +) + +func Test_Mock_IAMServerCertificate_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + iamServerCertificate := IAMServerCertificate{ + svc: mockIAM, + name: "server-cert-foobar", + } + + mockIAM.EXPECT().DeleteServerCertificate(gomock.Eq(&iam.DeleteServerCertificateInput{ + ServerCertificateName: &iamServerCertificate.name, + })).Return(&iam.DeleteServerCertificateOutput{}, nil) + + err := iamServerCertificate.Remove() + a.Nil(err) +} diff --git a/resources/iam-service-specific-credentials.go b/resources/iam-service-specific-credentials.go index c64a5a03..ed6e16c0 100644 --- a/resources/iam-service-specific-credentials.go +++ b/resources/iam-service-specific-credentials.go @@ -3,12 +3,13 @@ package resources import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/rebuy-de/aws-nuke/pkg/types" "github.com/sirupsen/logrus" ) type IAMServiceSpecificCredential struct { - svc *iam.IAM + svc iamiface.IAMAPI name string serviceName string id string diff --git a/resources/iam-service-specific-credentials_mock_test.go b/resources/iam-service-specific-credentials_mock_test.go new file mode 100644 index 00000000..3b6415cc --- /dev/null +++ b/resources/iam-service-specific-credentials_mock_test.go @@ -0,0 +1,35 @@ +package resources + +import ( + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + "github.com/golang/mock/gomock" + "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" + "github.com/stretchr/testify/assert" +) + +func Test_Mock_IAMServiceSpecificCredential_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + iamServiceSpecificCredential := IAMServiceSpecificCredential{ + svc: mockIAM, + name: "user:foobar", + serviceName: "service:foobar", + id: "user:service:foobar", + userName: "user:foobar", + } + + mockIAM.EXPECT().DeleteServiceSpecificCredential(gomock.Eq(&iam.DeleteServiceSpecificCredentialInput{ + UserName: aws.String(iamServiceSpecificCredential.userName), + ServiceSpecificCredentialId: aws.String(iamServiceSpecificCredential.id), + })).Return(&iam.DeleteServiceSpecificCredentialOutput{}, nil) + + err := iamServiceSpecificCredential.Remove() + a.Nil(err) +} diff --git a/resources/iam-signing-certificate_mock_test.go b/resources/iam-signing-certificate_mock_test.go new file mode 100644 index 00000000..0d0672be --- /dev/null +++ b/resources/iam-signing-certificate_mock_test.go @@ -0,0 +1,34 @@ +package resources + +import ( + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + "github.com/golang/mock/gomock" + "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" + "github.com/stretchr/testify/assert" +) + +func Test_Mock_IAMSigningCertificate_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + iamSigningCertificate := IAMSigningCertificate{ + svc: mockIAM, + certificateId: aws.String("certid:foobar"), + userName: aws.String("user:foobar"), + status: aws.String("unknown"), + } + + mockIAM.EXPECT().DeleteSigningCertificate(gomock.Eq(&iam.DeleteSigningCertificateInput{ + UserName: iamSigningCertificate.userName, + CertificateId: iamSigningCertificate.certificateId, + })).Return(&iam.DeleteSigningCertificateOutput{}, nil) + + err := iamSigningCertificate.Remove() + a.Nil(err) +} diff --git a/resources/iam-signing-certificates.go b/resources/iam-signing-certificates.go index f0f2f8dd..2cca0855 100644 --- a/resources/iam-signing-certificates.go +++ b/resources/iam-signing-certificates.go @@ -6,11 +6,12 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/rebuy-de/aws-nuke/pkg/types" ) type IAMSigningCertificate struct { - svc *iam.IAM + svc iamiface.IAMAPI certificateId *string userName *string status *string diff --git a/resources/iam-user-access-key_mock_test.go b/resources/iam-user-access-key_mock_test.go new file mode 100644 index 00000000..f6938bc1 --- /dev/null +++ b/resources/iam-user-access-key_mock_test.go @@ -0,0 +1,34 @@ +package resources + +import ( + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + "github.com/golang/mock/gomock" + "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" + "github.com/stretchr/testify/assert" +) + +func Test_Mock_IAMUserAccessKey_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + iamUserAccessKey := IAMUserAccessKey{ + svc: mockIAM, + accessKeyId: "EXAMPLEfoobar", + userName: "foobar", + status: "unknown", + } + + mockIAM.EXPECT().DeleteAccessKey(gomock.Eq(&iam.DeleteAccessKeyInput{ + AccessKeyId: aws.String(iamUserAccessKey.accessKeyId), + UserName: aws.String(iamUserAccessKey.userName), + })).Return(&iam.DeleteAccessKeyOutput{}, nil) + + err := iamUserAccessKey.Remove() + a.Nil(err) +} diff --git a/resources/iam-user-access-keys.go b/resources/iam-user-access-keys.go index 11e837ce..acd6177b 100644 --- a/resources/iam-user-access-keys.go +++ b/resources/iam-user-access-keys.go @@ -5,11 +5,12 @@ import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/rebuy-de/aws-nuke/pkg/types" ) type IAMUserAccessKey struct { - svc *iam.IAM + svc iamiface.IAMAPI accessKeyId string userName string status string diff --git a/resources/iam-list-user-group-attachments.go b/resources/iam-user-group-attachments.go similarity index 94% rename from resources/iam-list-user-group-attachments.go rename to resources/iam-user-group-attachments.go index 9e79e882..10cabc63 100644 --- a/resources/iam-list-user-group-attachments.go +++ b/resources/iam-user-group-attachments.go @@ -6,10 +6,11 @@ import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" + "github.com/aws/aws-sdk-go/service/iam/iamiface" ) type IAMUserGroupAttachment struct { - svc *iam.IAM + svc iamiface.IAMAPI groupName string userName string } diff --git a/resources/iam-user-group-attachments_mock_test.go b/resources/iam-user-group-attachments_mock_test.go new file mode 100644 index 00000000..24d71d0d --- /dev/null +++ b/resources/iam-user-group-attachments_mock_test.go @@ -0,0 +1,33 @@ +package resources + +import ( + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + "github.com/golang/mock/gomock" + "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" + "github.com/stretchr/testify/assert" +) + +func Test_Mock_IAMUserGroup_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + iamUserGroup := IAMUserGroupAttachment{ + svc: mockIAM, + userName: "user:foobar", + groupName: "group:foobar", + } + + mockIAM.EXPECT().RemoveUserFromGroup(gomock.Eq(&iam.RemoveUserFromGroupInput{ + UserName: aws.String(iamUserGroup.userName), + GroupName: aws.String(iamUserGroup.groupName), + })).Return(&iam.RemoveUserFromGroupOutput{}, nil) + + err := iamUserGroup.Remove() + a.Nil(err) +} diff --git a/resources/iam-user-policy-attachment_mock_test.go b/resources/iam-user-policy-attachment_mock_test.go new file mode 100644 index 00000000..946cda33 --- /dev/null +++ b/resources/iam-user-policy-attachment_mock_test.go @@ -0,0 +1,34 @@ +package resources + +import ( + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + "github.com/golang/mock/gomock" + "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" + "github.com/stretchr/testify/assert" +) + +func Test_Mock_IAMUserPolicyAttachment_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + iamUserPolicyAttachment := IAMUserPolicyAttachment{ + svc: mockIAM, + policyArn: "arn:foobar", + policyName: "foobar", + userName: "foobar", + } + + mockIAM.EXPECT().DetachUserPolicy(gomock.Eq(&iam.DetachUserPolicyInput{ + UserName: aws.String(iamUserPolicyAttachment.userName), + PolicyArn: aws.String(iamUserPolicyAttachment.policyArn), + })).Return(&iam.DetachUserPolicyOutput{}, nil) + + err := iamUserPolicyAttachment.Remove() + a.Nil(err) +} diff --git a/resources/iam-user-policy-attachments.go b/resources/iam-user-policy-attachments.go index 27b8c292..f4841a20 100644 --- a/resources/iam-user-policy-attachments.go +++ b/resources/iam-user-policy-attachments.go @@ -5,12 +5,12 @@ import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" - "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/rebuy-de/aws-nuke/pkg/types" ) type IAMUserPolicyAttachment struct { - svc *iam.IAM + svc iamiface.IAMAPI policyArn string policyName string userName string diff --git a/resources/iam-user-policy.go b/resources/iam-user-policy.go index 388cccf1..a2b2f43c 100644 --- a/resources/iam-user-policy.go +++ b/resources/iam-user-policy.go @@ -5,10 +5,11 @@ import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" + "github.com/aws/aws-sdk-go/service/iam/iamiface" ) type IAMUserPolicy struct { - svc *iam.IAM + svc iamiface.IAMAPI userName string policyName string } diff --git a/resources/iam-user-policy_mock_test.go b/resources/iam-user-policy_mock_test.go new file mode 100644 index 00000000..6a77afa6 --- /dev/null +++ b/resources/iam-user-policy_mock_test.go @@ -0,0 +1,33 @@ +package resources + +import ( + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + "github.com/golang/mock/gomock" + "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" + "github.com/stretchr/testify/assert" +) + +func Test_Mock_IAMUserPolicy_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + iamUserPolicy := IAMUserPolicy{ + svc: mockIAM, + userName: "foobar", + policyName: "foobar", + } + + mockIAM.EXPECT().DeleteUserPolicy(gomock.Eq(&iam.DeleteUserPolicyInput{ + UserName: aws.String(iamUserPolicy.userName), + PolicyName: aws.String(iamUserPolicy.policyName), + })).Return(&iam.DeleteUserPolicyOutput{}, nil) + + err := iamUserPolicy.Remove() + a.Nil(err) +} diff --git a/resources/iam-user-ssh-keys.go b/resources/iam-user-ssh-keys.go index 868b8e54..1755115f 100644 --- a/resources/iam-user-ssh-keys.go +++ b/resources/iam-user-ssh-keys.go @@ -5,11 +5,12 @@ import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/rebuy-de/aws-nuke/pkg/types" ) -type UserSSHKey struct { - svc *iam.IAM +type IAMUserSSHKey struct { + svc iamiface.IAMAPI userName string sshKeyID string } @@ -37,7 +38,7 @@ func ListIAMUserSSHPublicKeys(sess *session.Session) ([]Resource, error) { } for _, publicKey := range listOutput.SSHPublicKeys { - resources = append(resources, &UserSSHKey{ + resources = append(resources, &IAMUserSSHKey{ svc: svc, userName: *user.UserName, sshKeyID: *publicKey.SSHPublicKeyId, @@ -48,17 +49,17 @@ func ListIAMUserSSHPublicKeys(sess *session.Session) ([]Resource, error) { return resources, nil } -func (u *UserSSHKey) Properties() types.Properties { +func (u *IAMUserSSHKey) Properties() types.Properties { return types.NewProperties(). Set("UserName", u.userName). Set("SSHKeyID", u.sshKeyID) } -func (u *UserSSHKey) String() string { +func (u *IAMUserSSHKey) String() string { return fmt.Sprintf("%s -> %s", u.userName, u.sshKeyID) } -func (u *UserSSHKey) Remove() error { +func (u *IAMUserSSHKey) Remove() error { _, err := u.svc.DeleteSSHPublicKey(&iam.DeleteSSHPublicKeyInput{ UserName: &u.userName, SSHPublicKeyId: &u.sshKeyID, diff --git a/resources/iam-user-ssh-keys_mock_test.go b/resources/iam-user-ssh-keys_mock_test.go new file mode 100644 index 00000000..4bcb7e18 --- /dev/null +++ b/resources/iam-user-ssh-keys_mock_test.go @@ -0,0 +1,33 @@ +package resources + +import ( + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + "github.com/golang/mock/gomock" + "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" + "github.com/stretchr/testify/assert" +) + +func Test_Mock_IAMUserSSHKeys_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + iamUserSSHKey := IAMUserSSHKey{ + svc: mockIAM, + userName: "foobar", + sshKeyID: "foobar", + } + + mockIAM.EXPECT().DeleteSSHPublicKey(gomock.Eq(&iam.DeleteSSHPublicKeyInput{ + UserName: aws.String(iamUserSSHKey.userName), + SSHPublicKeyId: aws.String(iamUserSSHKey.sshKeyID), + })).Return(&iam.DeleteSSHPublicKeyOutput{}, nil) + + err := iamUserSSHKey.Remove() + a.Nil(err) +} diff --git a/resources/iam-users.go b/resources/iam-users.go index 67a34c16..5cd4045d 100644 --- a/resources/iam-users.go +++ b/resources/iam-users.go @@ -3,12 +3,11 @@ package resources import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" - "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/service/iam/iamiface" ) type IAMUser struct { - svc *iam.IAM + svc iamiface.IAMAPI name string tags []*iam.Tag } diff --git a/resources/iam-users_mock_test.go b/resources/iam-users_mock_test.go new file mode 100644 index 00000000..1f60a47b --- /dev/null +++ b/resources/iam-users_mock_test.go @@ -0,0 +1,31 @@ +package resources + +import ( + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + "github.com/golang/mock/gomock" + "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" + "github.com/stretchr/testify/assert" +) + +func Test_Mock_IAMUser_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + iamUser := IAMUser{ + svc: mockIAM, + name: "foobar", + } + + mockIAM.EXPECT().DeleteUser(gomock.Eq(&iam.DeleteUserInput{ + UserName: aws.String(iamUser.name), + })).Return(&iam.DeleteUserOutput{}, nil) + + err := iamUser.Remove() + a.Nil(err) +} diff --git a/resources/iam-virtual-mfa-devices.go b/resources/iam-virtual-mfa-devices.go index 00ecba77..cb4fe48f 100644 --- a/resources/iam-virtual-mfa-devices.go +++ b/resources/iam-virtual-mfa-devices.go @@ -1,16 +1,18 @@ package resources import ( - "fmt" + "errors" "strings" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" + "github.com/aws/aws-sdk-go/service/iam/iamiface" ) type IAMVirtualMFADevice struct { - svc *iam.IAM - user *iam.User + svc iamiface.IAMAPI + userName string serialNumber string } @@ -30,7 +32,7 @@ func ListIAMVirtualMFADevices(sess *session.Session) ([]Resource, error) { for _, out := range resp.VirtualMFADevices { resources = append(resources, &IAMVirtualMFADevice{ svc: svc, - user: out.User, + userName: *out.User.UserName, serialNumber: *out.SerialNumber, }) } @@ -40,25 +42,26 @@ func ListIAMVirtualMFADevices(sess *session.Session) ([]Resource, error) { func (v *IAMVirtualMFADevice) Filter() error { if strings.HasSuffix(v.serialNumber, "/root-account-mfa-device") { - return fmt.Errorf("Cannot delete root MFA device") + return errors.New("cannot delete root mfa device") } return nil } func (v *IAMVirtualMFADevice) Remove() error { - if v.user != nil { - _, err := v.svc.DeactivateMFADevice(&iam.DeactivateMFADeviceInput{ - UserName: v.user.UserName, SerialNumber: &v.serialNumber, - }) - if err != nil { - return err - } + if _, err := v.svc.DeactivateMFADevice(&iam.DeactivateMFADeviceInput{ + UserName: aws.String(v.userName), + SerialNumber: aws.String(v.serialNumber), + }); err != nil { + return err } - _, err := v.svc.DeleteVirtualMFADevice(&iam.DeleteVirtualMFADeviceInput{ + if _, err := v.svc.DeleteVirtualMFADevice(&iam.DeleteVirtualMFADeviceInput{ SerialNumber: &v.serialNumber, - }) - return err + }); err != nil { + return err + } + + return nil } func (v *IAMVirtualMFADevice) String() string { diff --git a/resources/iam-virtual-mfa-devices_mock_test.go b/resources/iam-virtual-mfa-devices_mock_test.go new file mode 100644 index 00000000..4641bf82 --- /dev/null +++ b/resources/iam-virtual-mfa-devices_mock_test.go @@ -0,0 +1,37 @@ +package resources + +import ( + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + "github.com/golang/mock/gomock" + "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" + "github.com/stretchr/testify/assert" +) + +func Test_Mock_IAMVirtualMFADevice_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + iamVirtualMFADevice := IAMVirtualMFADevice{ + svc: mockIAM, + userName: "user:foobar", + serialNumber: "serial:foobar", + } + + mockIAM.EXPECT().DeactivateMFADevice(gomock.Eq(&iam.DeactivateMFADeviceInput{ + UserName: &iamVirtualMFADevice.userName, + SerialNumber: &iamVirtualMFADevice.serialNumber, + })).Return(&iam.DeactivateMFADeviceOutput{}, nil) + + mockIAM.EXPECT().DeleteVirtualMFADevice(gomock.Eq(&iam.DeleteVirtualMFADeviceInput{ + SerialNumber: aws.String(iamVirtualMFADevice.serialNumber), + })).Return(&iam.DeleteVirtualMFADeviceOutput{}, nil) + + err := iamVirtualMFADevice.Remove() + a.Nil(err) +} diff --git a/resources/interface.go b/resources/interface.go index 42922a0f..290b4619 100644 --- a/resources/interface.go +++ b/resources/interface.go @@ -80,7 +80,7 @@ func GetLister(name string) ResourceLister { func GetListerNames() []string { names := []string{} - for resourceType := range resourceListers { + for resourceType := range GetListers() { names = append(names, resourceType) } diff --git a/tools/gen-mock-test/main.go b/tools/gen-mock-test/main.go new file mode 100644 index 00000000..922c5e51 --- /dev/null +++ b/tools/gen-mock-test/main.go @@ -0,0 +1,105 @@ +package main + +import ( + "errors" + "flag" + "fmt" + "os" + "strings" + "text/template" + + "github.com/Masterminds/sprig" + "github.com/iancoleman/strcase" + + _ "github.com/rebuy-de/aws-nuke/v2/resources" +) + +const rawTmpl = `package resources + +import ( + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/{{ lower .Service }}" + "github.com/golang/mock/gomock" + "github.com/rebuy-de/aws-nuke/v2/mocks/mock_{{ lower .Service }}iface" + "github.com/stretchr/testify/assert" +) + +func Test_Mock_{{ .Service }}{{ .Resource }}_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mock{{ .Service }} := mock_{{ lower .Service }}iface.NewMock{{ .Service }}API(ctrl) + + {{ lower .Service }}{{ .Resource }} := {{ .Service }}{{ .Resource }}{ + svc: mock{{ .Service }}, + // populate fields + } + + mockIAM.EXPECT().{{ .Action }}{{ .ModdedResource }}(gomock.Eq(&{{ lower .Service }}.{{ .Action }}{{ .ModdedResource }}Input{ + // need properties + })).Return(&iam.{{ .Action }}{{ .ModdedResource }}Output{}, nil) + + err := {{ lower .Service }}{{ .Resource }}.Remove() + a.Nil(err) +} +` + +var service string +var resource string +var output string + +func main() { + flag.StringVar(&service, "service", "", "AWS Service Name (eg, IAM, EC2)") + flag.StringVar(&resource, "resource", "", "AWS Resource Name for the Service (eg, Instance, Role, Policy") + flag.StringVar(&output, "output", "stdout", "Where to write the generated code to (default: stdout)") + + flag.Parse() + + if service == "" { + panic(errors.New("please provide a service")) + } + if resource == "" { + panic(errors.New("please provide a resource")) + } + + action := "Delete" + moddedResource := resource + if strings.HasSuffix(resource, "Attachment") { + action = "Detach" + moddedResource = strings.TrimSuffix(resource, "Attachment") + } + + tmpl, err := template.New("test").Funcs(sprig.TxtFuncMap()).Parse(rawTmpl) + if err != nil { + panic(err) + } + + data := struct { + Service string + Resource string + ModdedResource string + Action string + }{ + Service: service, + Resource: resource, + ModdedResource: moddedResource, + Action: action, + } + + var err1 error + out := os.Stdout + if output == "file" { + out, err1 = os.Create(fmt.Sprintf("resources/%s-%s_mock_test.go", strings.ToLower(service), strcase.ToKebab(resource))) + if err != nil { + panic(err1) + } + defer out.Close() + } + + if err := tmpl.Execute(out, data); err != nil { + panic(err) + } +} From 19e5e6f9779ab45b8b0b3ca03d478400f68799d0 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 14 Dec 2021 17:41:44 -0700 Subject: [PATCH 006/617] GoReleaser Support (#5) * add support for using goreleaser for releases and docker images * remove package env var, not needed * comment out quay.io for now * replace a larger part of the string so forks can more easily modify file * fix type: debuy -> rebuy * stop being clever with replace on ModulePath * clean up errant quote * set source back to rebuy-de so sed can replace it for fork * fix type: gchr -> ghcr * fix typo: missing e on binary copy * make archive format the same name as existing release process * include arm version if arm is the target * prefix .Version with v * use summary field for snapshot version From 3d538723d588f9e26910da9c02b006983cdd1197 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 14 Dec 2021 17:50:01 -0700 Subject: [PATCH 007/617] chore(go): go mod tidy --- go.mod | 1 + 1 file changed, 1 insertion(+) diff --git a/go.mod b/go.mod index 4b7b4b2f..54b309d9 100644 --- a/go.mod +++ b/go.mod @@ -46,4 +46,5 @@ require github.com/rebuy-de/aws-nuke v2.10.0+incompatible require ( github.com/mitchellh/reflectwalk v1.0.2 // indirect golang.org/x/crypto v0.7.0 // indirect + ) From 4ef5158cb95ad3e620ab2b0148e04bb5a3ef068b Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 15 Dec 2021 06:47:40 -0700 Subject: [PATCH 008/617] Rebrand and Updates (#7) * rebrand and update content accordingly for the fork * add config for renovate * remove old files * rework tests and release workflows, sign all builds --- .github/CODEOWNERS | 1 - .github/renovate.json | 36 +++++++ .github/workflows/ci.yaml | 84 ---------------- .github/workflows/golang.yaml | 32 ++++++ .github/workflows/release.yaml | 120 +++++----------------- .gitignore | 3 +- .goreleaser.yml | 52 +++++----- CONTRIBUTING.md | 21 +--- Dockerfile | 29 ------ LICENSE | 21 +--- README.md | 176 +++++++++++++++------------------ cosign.pub | 4 + golang.mk | 2 - 13 files changed, 210 insertions(+), 371 deletions(-) delete mode 100644 .github/CODEOWNERS create mode 100644 .github/renovate.json delete mode 100644 .github/workflows/ci.yaml create mode 100644 .github/workflows/golang.yaml delete mode 100644 Dockerfile create mode 100644 cosign.pub diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS deleted file mode 100644 index c52b8934..00000000 --- a/.github/CODEOWNERS +++ /dev/null @@ -1 +0,0 @@ -* @rebuy-de/prp-aws-nuke diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 00000000..110f887d --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,36 @@ +{ + "extends": [ + "config:base" + ], + "packageRules": [ + { + "matchManagers": [ + "dockerfile" + ], + "matchUpdateTypes": [ + "pin", + "digest" + ], + "automerge": true + }, + { + "matchPackagePatterns": [ + "^golang.*" + ], + "groupName": "golang", + "groupSlug": "golang" + } + ], + "regexManagers": [ + { + "fileMatch": [ + "^.github/workflows/.*" + ], + "matchStrings": [ + "go-version: (?.*?)\n" + ], + "depNameTemplate": "golang", + "datasourceTemplate": "docker" + } + ] +} \ No newline at end of file diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml deleted file mode 100644 index 6d3a80cb..00000000 --- a/.github/workflows/ci.yaml +++ /dev/null @@ -1,84 +0,0 @@ -name: Golang CI - -on: - push: - branches: [main] - pull_request: - types: [opened, reopened, synchronize] - schedule: - - cron: '15 3 * * 0' - -jobs: - build: - name: CI Build - runs-on: ubuntu-22.04 - steps: - - name: Setup Go - uses: actions/setup-go@v3 - with: - go-version: '1.20' - - name: Setup tools - run: | - go install golang.org/x/lint/golint@latest - - name: Checkout code - uses: actions/checkout@v3 - - name: Test Project - run: | - make test - - name: Build Project - run: | - make - - docker_build: - runs-on: ubuntu-22.04 - name: Docker Build - if: github.event_name != 'pull_request' || (github.event.pull_request.head.repo.full_name == 'rebuy-de/aws-nuke' && github.event.pull_request.user.login != 'dependabot[bot]') - - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Generate image tags - shell: bash - run: | - if [ "${GITHUB_EVENT_NAME}" == "pull_request" ]; then - BRANCH="$(echo ${GITHUB_HEAD_REF} | tr '/' '_')" - echo "tags=quay.io/rebuy/aws-nuke:${BRANCH},docker.io/rebuy/aws-nuke:${BRANCH}" >> $GITHUB_OUTPUT - else - echo "tags=quay.io/rebuy/aws-nuke:main,docker.io/rebuy/aws-nuke:main,\ - quay.io/rebuy/aws-nuke:latest,docker.io/rebuy/aws-nuke:latest" >> $GITHUB_OUTPUT - fi - id: generate_tags - - - name: Set up QEMU - id: qemu - uses: docker/setup-qemu-action@v2 - with: - platforms: arm64 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - with: - install: true - - - name: Login to Docker Hub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Login to Quay.io - uses: docker/login-action@v2 - with: - registry: quay.io - username: ${{ secrets.QUAY_USERNAME }} - password: ${{ secrets.QUAY_PASSWORD }} - - - name: Build and push - uses: docker/build-push-action@v3 - with: - context: . - push: true - tags: ${{ steps.generate_tags.outputs.tags }} - platforms: linux/amd64,linux/arm64 diff --git a/.github/workflows/golang.yaml b/.github/workflows/golang.yaml new file mode 100644 index 00000000..4bf0f461 --- /dev/null +++ b/.github/workflows/golang.yaml @@ -0,0 +1,32 @@ +name: golang + +on: + push: + branches: + - main + pull_request: + branches: + - main + schedule: + - cron: "15 3 * * 0" + +jobs: + build: + name: Test and Build + runs-on: ubuntu-latest + steps: + - name: Setup Go + uses: actions/setup-go@v2 + with: + go-version: 1.17 + - name: Setup tools + run: | + go get golang.org/x/lint/golint + - name: Checkout code + uses: actions/checkout@v2 + - name: Test Project + run: | + make test + - name: Build Project + run: | + make diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e9831a42..343d69f2 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,104 +1,30 @@ -name: Publish release artifacts +name: release on: - release: - types: [created] + push: + tags: + - "v*" + permissions: contents: write - pull-requests: write jobs: - update_readme: - name: Update Readme - runs-on: ubuntu-22.04 - steps: - - name: Checkout code - uses: actions/checkout@v3 - with: - fetch-depth: 0 - ref: main - - name: Update versions in readme - run: | - sed -r -i "s/aws-nuke:v[0-9]+\.[0-9]+\.[0-9]+/aws-nuke:${{ github.ref_name }}/" README.md - sed -r -i "s/aws-nuke-v[0-9]+\.[0-9]+\.[0-9]+/aws-nuke-${{ github.ref_name }}/" README.md - sed -r -i "s/\/v[0-9]+\.[0-9]+\.[0-9]+\//\/${{ github.ref_name }}\//" README.md - - uses: peter-evans/create-pull-request@v5 - name: Create Pull Request - with: - title: Update readme for ${{ github.ref_name }} release - commit-message: Update readme for ${{ github.ref_name }} release - body: Updating version references in the readme to ${{ github.ref_name }} - branch: update-readme-${{ github.ref_name }} - delete-branch: true - - release: - name: Publish binaries - runs-on: ubuntu-22.04 - steps: - - name: Setup Go - uses: actions/setup-go@v3 - with: - go-version: '1.20' - - name: Checkout code - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Build Project binaries - env: - CGO_ENABLED: 0 - run: | - make xc - - name: Upload binaries to release - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: dist/aws* - tag: ${{ github.ref }} - overwrite: true - file_glob: true - - docker_build: - runs-on: ubuntu-22.04 - name: Docker Build - + goreleaser: + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Generate image tags - shell: bash - run: echo "tags=quay.io/rebuy/aws-nuke:${GITHUB_REF#refs/tags/},docker.io/rebuy/aws-nuke:${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT - id: generate_tags - - - name: Set up QEMU - id: qemu - uses: docker/setup-qemu-action@v2 - with: - platforms: arm64 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - with: - install: true - - - name: Login to Docker Hub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Login to Quay.io - uses: docker/login-action@v2 - with: - registry: quay.io - username: ${{ secrets.QUAY_USERNAME }} - password: ${{ secrets.QUAY_PASSWORD }} - - - name: Build and push - uses: docker/build-push-action@v3 - with: - context: . - push: true - tags: ${{ steps.generate_tags.outputs.tags }} - platforms: linux/amd64,linux/arm64 + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.17 + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v2 + with: + distribution: goreleaser + version: latest + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.RELEASES_GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index 243889ec..8c131a96 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ /releases /mocks .envrc -config.yaml \ No newline at end of file +config.yaml +cosign.key \ No newline at end of file diff --git a/.goreleaser.yml b/.goreleaser.yml index afa48eee..820a1e7c 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,7 +1,7 @@ dist: releases release: github: - owner: rebuy-de + owner: ekristen name: aws-nuke builds: - id: default @@ -14,7 +14,7 @@ builds: - arm64 - arm goarm: - - 7 + - "7" ignore: - goos: windows goarch: arm64 @@ -24,14 +24,14 @@ builds: goarch: arm ldflags: - -s - - -X '{{ .ModulePath }}/cmd.BuildVersion=v{{ .Version }}' + - -X '{{ .ModulePath }}/cmd.BuildVersion={{ .Version }}' - -X '{{ .ModulePath }}/cmd.BuildDate={{ .Date }}' - -X '{{ .ModulePath }}/cmd.BuildHash={{ .Commit }}' archives: - id: default builds: - default - name_template: "{{ .ProjectName }}-v{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ .Arm }}" + name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ .Arm }}" format_overrides: - goos: windows format: zip @@ -41,30 +41,28 @@ dockers: goarch: amd64 dockerfile: Dockerfile.goreleaser image_templates: - - ghcr.io/rebuy-de/aws-nuke:v{{ .Version }}-amd64 - #- quay.io/rebuy/aws-nuke:v{{ .Version }}-amd64 + - ghcr.io/ekristen/aws-nuke:{{ .Version }}-amd64 build_flag_templates: - "--pull" - "--label=org.opencontainers.image.created={{.Date}}" - "--label=org.opencontainers.image.title={{.ProjectName}}" - "--label=org.opencontainers.image.revision={{.FullCommit}}" - - "--label=org.opencontainers.image.version=v{{.Version}}" - - "--label=org.opencontainers.image.source=https://github.com/debuy-de/aws-nuke" + - "--label=org.opencontainers.image.version={{.Version}}" + - "--label=org.opencontainers.image.source=https://github.com/ekristen/aws-nuke" - "--platform=linux/amd64" - use: buildx goos: linux goarch: arm64 dockerfile: Dockerfile.goreleaser image_templates: - - ghcr.io/rebuy-de/aws-nuke:v{{ .Version }}-arm64 - #- quay.io/rebuy/aws-nuke:v{{ .Version }}-amd64 + - ghcr.io/ekristen/aws-nuke:{{ .Version }}-arm64 build_flag_templates: - "--pull" - "--label=org.opencontainers.image.created={{.Date}}" - "--label=org.opencontainers.image.title={{.ProjectName}}" - "--label=org.opencontainers.image.revision={{.FullCommit}}" - - "--label=org.opencontainers.image.version=v{{.Version}}" - - "--label=org.opencontainers.image.source=https://github.com/debuy-de/aws-nuke" + - "--label=org.opencontainers.image.version={{.Version}}" + - "--label=org.opencontainers.image.source=https://github.com/ekristen/aws-nuke" - "--platform=linux/arm64" - use: buildx goos: linux @@ -72,29 +70,31 @@ dockers: goarm: "7" dockerfile: Dockerfile.goreleaser image_templates: - - ghcr.io/rebuy-de/aws-nuke:v{{ .Version }}-arm32v7 - #- quay.io/rebuy-de/aws-nuke:v{{ .Version }}-arm32v7 + - ghcr.io/ekristen/aws-nuke:{{ .Version }}-arm32v7 build_flag_templates: - "--pull" - "--label=org.opencontainers.image.created={{.Date}}" - "--label=org.opencontainers.image.title={{.ProjectName}}" - "--label=org.opencontainers.image.revision={{.FullCommit}}" - - "--label=org.opencontainers.image.version=v{{.Version}}" - - "--label=org.opencontainers.image.source=https://github.com/debuy-de/aws-nuke" + - "--label=org.opencontainers.image.version={{.Version}}" + - "--label=org.opencontainers.image.source=https://github.com/ekristen/aws-nuke" - "--platform=linux/arm/v7" docker_manifests: - use: docker - name_template: ghcr.io/rebuy-de/aws-nuke:v{{ .Version }} + name_template: ghcr.io/ekristen/aws-nuke:{{ .Version }} image_templates: - - ghcr.io/rebuy-de/aws-nuke:v{{ .Version }}-amd64 - - ghcr.io/rebuy-de/aws-nuke:v{{ .Version }}-arm64 - - ghcr.io/rebuy-de/aws-nuke:v{{ .Version }}-arm32v7 - #- use: docker - # name_template: quay.io/rebuy-de/aws-nuke:v{{ .Version }} - # image_templates: - # - quay.io/rebuy-de/aws-nuke:v{{ .Version }}-amd64 - # - quay.io/rebuy-de/aws-nuke:v{{ .Version }}-arm64 - # - quay.io/rebuy-de/aws-nuke:v{{ .Version }}-arm32v7 + - ghcr.io/ekristen/aws-nuke:{{ .Version }}-amd64 + - ghcr.io/ekristen/aws-nuke:{{ .Version }}-arm64 + - ghcr.io/ekristen/aws-nuke:{{ .Version }}-arm32v7 +signs: + - cmd: cosign + stdin: "{{ .Env.COSIGN_PWD }}" + args: + ["sign-blob", "--key=cosign.key", "--output=${signature}", "${artifact}"] + artifacts: all +docker_signs: + - artifacts: all + stdin: "{{ .Env.COSIGN_PWD }}" checksum: name_template: "checksums.txt" snapshot: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 00baf8e8..67a2e1da 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,7 +6,6 @@ Because of the amount of AWS services and their rate of change, we rely on your participation. For the same reason we can only act retroactive on changes of AWS services. Otherwise it would be a fulltime job to keep up with AWS. - ## How Can I Contribute? ### Some Resource Is Not Supported by *aws-nuke* @@ -19,7 +18,6 @@ resolve this: * Add the resource yourself and open a Pull Request. Please follow the guidelines below to see how to create such a resource. - ### Some Resource Does Not Get Deleted Please check the following points before creating a bug issue: @@ -32,7 +30,7 @@ Please check the following points before creating a bug issue: know about dependencies between resources. To work around this it will just retry deleting all resources in multiple iterations. Therefore it is normal that there are a lot of dependency errors in the first one. The iterations - are separated by lines starting with `Removal requested: ` and only the + are separated by lines starting with `Removal requested:` and only the errors in the last block indicate actual errros. File [an issue](https://github.com/rebuy-de/aws-nuke/issues/new) and describe @@ -40,7 +38,6 @@ as accurately as possible how to generate the resource on AWS that cause the errors in *aws-nuke*. Ideally this is provided in a reproducible way like a Terraform template or AWS CLI commands. - ### I Have Ideas to Improve *aws-nuke* You should take these steps if you have an idea how to improve *aws-nuke*: @@ -55,13 +52,9 @@ You should take these steps if you have an idea how to improve *aws-nuke*: the case, open a new issue and describe your idea. Afterwards, we can discuss this idea and form a proposal. - ### I Just Have a Question -Please use our mailing list for questions: aws-nuke@googlegroups.com. You can -also search in the mailing list archive, whether someone already had the same -problem: https://groups.google.com/d/forum/aws-nuke - +Please use [GitHub Discussions](https://github.com/ekristen/aws-nuke/discussions) ## Resource Guidelines @@ -69,7 +62,6 @@ problem: https://groups.google.com/d/forum/aws-nuke Most AWS resources are paginated and all resources should handle that. - ### Use Properties Instead of String Functions Currently, each resource can offer two functions to describe itself, that are @@ -90,7 +82,6 @@ Properties() types.Properties The interface for the String function is still there, because not all resources are migrated yet. Please use the Properties function for new resources. - ### Filter Resources That Cannot Get Removed Some AWS APIs list resources, that cannot be deleted. For example: @@ -100,7 +91,6 @@ Some AWS APIs list resources, that cannot be deleted. For example: Those resources should be excluded in the filter step, rather than in the list step. - ## Styleguide ### Go @@ -111,7 +101,6 @@ Like almost all Go projects, we are using `go fmt` as a single source of truth for formatting the source code. Please use `go fmt` before committing any change. - ### Git #### Setup Email @@ -122,7 +111,7 @@ is registered with a GitHub account. To set the email for all git commits, you can use this command: -``` +```bash git config --global user.email "email@example.com" ``` @@ -130,13 +119,13 @@ If you want to change the email only for the *aws-nuke* repository, you can skip the `--global` flag. You have to make sure that you are executing this in the *aws-nuke* directory: -``` +```bash git config user.email "email@example.com" ``` If you already committed something with a wrong email, you can use this command: -``` +```bash git commit --amend --author="Author Name " ``` diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 01011959..00000000 --- a/Dockerfile +++ /dev/null @@ -1,29 +0,0 @@ -FROM golang:1.20-alpine as builder - -RUN apk add --no-cache git make curl openssl - -# Configure Go -ENV GOPATH=/go PATH=/go/bin:$PATH CGO_ENABLED=0 GO111MODULE=on -RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin - -WORKDIR /src - -COPY go.mod . -COPY go.sum . -RUN go mod download - -COPY . . - -RUN set -x \ - && make build \ - && cp /src/dist/aws-nuke /usr/local/bin/ - -FROM alpine:latest -RUN apk add --no-cache ca-certificates - -COPY --from=builder /usr/local/bin/* /usr/local/bin/ - -RUN adduser -D aws-nuke -USER aws-nuke - -ENTRYPOINT ["/usr/local/bin/aws-nuke"] diff --git a/LICENSE b/LICENSE index d9c531ce..d18b51b6 100644 --- a/LICENSE +++ b/LICENSE @@ -1,21 +1,10 @@ The MIT License (MIT) -Copyright (c) 2016 reBuy reCommerce GmbH +Copyright 2021 Erik Kristensen +Copyright 2016-2021 reBuy reCommerce GmbH -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md index b7b122aa..712a45e5 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,32 @@ -# aws-nuke +# aws-nuke (managed fork) -![Build Status](https://github.com/rebuy-de/aws-nuke/workflows/Golang%20CI/badge.svg?branch=main) -[![license](https://img.shields.io/github/license/rebuy-de/aws-nuke.svg)](https://github.com/rebuy-de/aws-nuke/blob/main/LICENSE) -[![GitHub release](https://img.shields.io/github/release/rebuy-de/aws-nuke.svg)](https://github.com/rebuy-de/aws-nuke/releases) -[![Docker Hub](https://img.shields.io/docker/pulls/rebuy/aws-nuke)](https://hub.docker.com/r/rebuy/aws-nuke) +[![license](https://img.shields.io/github/license/ekristen/aws-nuke.svg)](https://github.com/ekristen/aws-nuke/blob/main/LICENSE) +[![GitHub release](https://img.shields.io/github/release/ekristen/aws-nuke.svg)](https://github.com/ekristen/aws-nuke/releases) Remove all resources from an AWS account. -> **Development Status** *aws-nuke* is stable, but it is likely that not all AWS +**Development Status** *aws-nuke* is stable, but it is likely that not all AWS resources are covered by it. Be encouraged to add missing resources and create -a Pull Request or to create an [Issue](https://github.com/rebuy-de/aws-nuke/issues/new). +a Pull Request or to create an [Issue](https://github.com/ekristen/aws-nuke/issues/new). -## Caution! +## This is a Managed Fork + +**Important:** this is a full fork of the original tool written by the folks +over at [rebuy-de](https://github.com/rebuy-de). This fork became necessary after +attempting to make contributions and respond to issues to learn that the current +maintainers only have time to work on the project about once a month and while +receptive to bringing in other people to help maintain, made it clear it would take +time. Considering the feedback cycle was already weeks on initial comms, I had +to make the hard decision to fork and maintain myself. + +### Plans + +- Tests - would like to get more mock tests and integration tests in place +- Tooling - make it easier to contribute by adding tools to automatically generate + base resources that need to be slightly modified for use. +- Other Clouds - would like to add Azure and GCP (likely rename project at that point) + +## Caution Be aware that *aws-nuke* is a very destructive tool, hence you have to be very careful while using it. Otherwise you might delete production data. @@ -48,14 +63,13 @@ To reduce the blast radius of accidents, there are some safety precautions: Feel free to create an issue, if you have any ideas to improve the safety procedures. - ## Use Cases -* We are testing our [Terraform](https://www.terraform.io/) code with Jenkins. +- We are testing our [Terraform](https://www.terraform.io/) code with Jenkins. Sometimes a Terraform run fails during development and messes up the account. With *aws-nuke* we can simply clean up the failed account so it can be reused for the next build. -* Our platform developers have their own AWS Accounts where they can create +- Our platform developers have their own AWS Accounts where they can create their own Kubernetes clusters for testing purposes. With *aws-nuke* it is very easy to clean up these account at the end of the day and keep the costs low. @@ -65,12 +79,11 @@ procedures. We usually release a new version once enough changes came together and have been tested for a while. -You can find Linux, macOS and Windows binaries on the -[releases page](https://github.com/rebuy-de/aws-nuke/releases), but we also -provide containerized versions on [quay.io/rebuy/aws-nuke](https://quay.io/rebuy/aws-nuke) -and [docker.io/rebuy/aws-nuke](https://hub.docker.com/r/rebuy/aws-nuke). Both -are available for multiple architectures (amd64, arm64 & armv7). - +You can find Linux, macOS and Windows binaries on the [releases page](https://github.com/ekristen/aws-nuke/releases), +but we also provide containerized versions on [ghcr.io/ekristen/aws-nuke](https://ghcr.io/ekristen/aws-nuke) +and [docker.io/ekristen/aws-nuke](https://hub.docker.com/r/ekristen/aws-nuke). Both +are available for multiple architectures (amd64, arm64 & armv7) using Docker manifests. You can reference +the main tag on any system and get the correct docker image automatically. ## Usage @@ -90,7 +103,7 @@ accounts: With this config we can run *aws-nuke*: -``` +```bash $ aws-nuke -c config/nuke-config.yml --profile aws-nuke-example aws-nuke version v1.0.39.gc2f318f - Fri Jul 28 16:26:41 CEST 2017 - c2f318f37b7d2dec0e646da3d4d05ab5296d5bce @@ -121,7 +134,6 @@ the `--no-dry-run` flag is missing. Also it wants to delete the administrator. We don't want to do this, because we use this user to access our account. Therefore we have to extend the config so it ignores this user: - ```yaml regions: - eu-west-1 @@ -140,7 +152,7 @@ accounts: - "my-user -> ABCDEFGHIJKLMNOPQRST" ``` -``` +```bash $ aws-nuke -c config/nuke-config.yml --profile aws-nuke-example --no-dry-run aws-nuke version v1.0.39.gc2f318f - Fri Jul 28 16:26:41 CEST 2017 - c2f318f37b7d2dec0e646da3d4d05ab5296d5bce @@ -219,7 +231,7 @@ or in [shared config file](https://docs.aws.amazon.com/cli/latest/userguide/cli-roles.html) with an assuming role. -### Using custom AWS endpoint +### Using Custom AWS Endpoints It is possible to configure aws-nuke to run against non-default AWS endpoints. It could be used for integration testing pointing to a local endpoint such as an @@ -267,7 +279,8 @@ accounts: ``` This can then be used as follows: -```buildoutcfg + +```log $ aws-nuke -c config/my.yaml --access-key-id --secret-access-key --default-region demo10 aws-nuke version v2.11.0.2.gf0ad3ac.dirty - Tue Nov 26 19:15:12 IST 2019 - f0ad3aca55eb66b93b88ce2375f8ad06a7ca856f @@ -300,6 +313,7 @@ demo10 - EC2Volume - vol-dbea1d1083654d30a43366807a125aed - [tag:Name: "volume-5 --- truncating long output --- ``` + ### Specifying Resource Types to Delete *aws-nuke* deletes a lot of resources and there might be added more at any @@ -310,13 +324,13 @@ One way are filters, which already got mentioned. This requires to know the identifier of each resource. It is also possible to prevent whole resource types (eg `S3Bucket`) from getting deleted with two methods. -* The `--target` flag limits nuking to the specified resource types. -* The `--exclude` flag prevent nuking of the specified resource types. +- The `--target` flag limits nuking to the specified resource types. +- The `--exclude` flag prevent nuking of the specified resource types. It is also possible to configure the resource types in the config file like in these examples: -``` +```yaml --- regions: - "eu-west-1" @@ -334,7 +348,7 @@ accounts: 555133742: {} ``` -``` +```yaml --- regions: - "eu-west-1" @@ -358,56 +372,10 @@ If an exclude is used, then all its resource types will not be deleted. **Hint:** You can see all available resource types with this command: -``` +```bash aws-nuke resource-types ``` -### AWS Cloud Control API Support - -> This feature is not yet released and is probably part of `v2.18`. - -_aws-nuke_ supports removing resources via the AWS Cloud Control API. When -executing _aws-nuke_ it will automatically remove a manually managed set of -resources via Cloud Control. - -Only a subset of Cloud Control supported resources will be removed -automatically, because there might be resources that were already implemented -and adding them too would bypass existing filters in user configs as Cloud -Control has another naming scheme and a different set of properties. Moreover, -there are some Cloud Control resources that need special handling which is not -yet supported by _aws-nuke_. - -Even though the subset of automatically supported Cloud Control resources is -limited, you can can configure _aws-nuke_ to make it try any additional -resource. Either via command line flags of via the config file. - -For the config file you have to add the resource to -the`resource-types.cloud-control` list: - -```yaml -resource-types: - cloud-control: - - AWS::EC2::TransitGateway - - AWS::EC2::VPC -``` - -If you want to use the command line, you have to add a `--cloud-control` flag -for each resource you want to add: - -```sh -aws-nuke \ - -c nuke-config.yaml \ - --cloud-control AWS::EC2::TransitGateway \ - --cloud-control AWS::EC2::VPC -``` - -**Note:** There are some resources that are supported by Cloud Control and are -already natively implemented by _aws-nuke_. If you configure to use Cloud -Control for those resources, it will not execute the natively implemented code -for this resource. For example with the `--cloud-control AWS::EC2::VPC` it will -not use the `EC2VPC` resource. - - ### Feature Flags There are some features, which are quite opinionated. To make those work for @@ -424,7 +392,6 @@ feature-flags: force-delete-lightsail-addons: true ``` - ### Filtering Resources It is possible to filter this is important for not deleting the current user @@ -473,7 +440,7 @@ the list will be skipped. These will be marked as "filtered by config" on the Some resources support filtering via properties. When a resource support these properties, they will be listed in the output like in this example: -``` +```log global - IAMUserPolicyAttachment - 'admin -> AdministratorAccess' - [RoleName: "admin", PolicyArn: "arn:aws:iam::aws:policy/AdministratorAccess", PolicyName: "AdministratorAccess"] - would remove ``` @@ -493,21 +460,21 @@ IAMUserAccessKey: There are also additional comparision types than an exact match: -* `exact` – The identifier must exactly match the given string. This is the default. -* `contains` – The identifier must contain the given string. -* `glob` – The identifier must match against the given [glob +- `exact` – The identifier must exactly match the given string. This is the default. +- `contains` – The identifier must contain the given string. +- `glob` – The identifier must match against the given [glob pattern](https://en.wikipedia.org/wiki/Glob_(programming)). This means the string might contains wildcards like `*` and `?`. Note that globbing is designed for file paths, so the wildcards do not match the directory separator (`/`). Details about the glob pattern can be found in the [library documentation](https://godoc.org/github.com/mb0/glob). -* `regex` – The identifier must match against the given regular expression. +- `regex` – The identifier must match against the given regular expression. Details about the syntax can be found in the [library documentation](https://golang.org/pkg/regexp/syntax/). -* `dateOlderThan` - The identifier is parsed as a timestamp. After the offset is added to it (specified in the `value` field), the resulting timestamp must be AFTER the current - time. Details on offset syntax can be found in - the [library documentation](https://golang.org/pkg/time/#ParseDuration). Supported - date formats are epoch time, `2006-01-02`, `2006/01/02`, `2006-01-02T15:04:05Z`, +- `dateOlderThan` - The identifier is parsed as a timestamp. After the offset is added + to it (specified in the `value` field), the resulting timestamp must be AFTER the + current time. Details on offset syntax can be found in the [library documentation](https://golang.org/pkg/time/#ParseDuration). + Supported date formats are epoch time, `2006-01-02`, `2006/01/02`, `2006-01-02T15:04:05Z`, `2006-01-02T15:04:05.999999999Z07:00`, and `2006-01-02T15:04:05Z07:00`. To use a non-default comparision type, it is required to specify an object with @@ -522,7 +489,6 @@ IAMUserAccessKey: value: "admin -> *" ``` - #### Using Them Together It is also possible to use Filter Properties and Filter Types together. For @@ -535,9 +501,10 @@ Route53HostedZone: value: "*.rebuy.cloud." ``` -#### Inverting Filter Results +#### Inverting Filter Results Any filter result can be inverted by using `invert: true`, for example: + ```yaml CloudFormationStack: - property: Name @@ -549,7 +516,6 @@ In this case *any* CloudFormationStack ***but*** the ones called "foo" will be filtered. Be aware that *aws-nuke* internally takes every resource and applies every filter on it. If a filter matches, it marks the node as filtered. - #### Filter Presets It might be the case that some filters are the same across multiple accounts. @@ -598,7 +564,6 @@ presets: - "OrganizationAccountAccessRole" ``` - ## Install ### For macOS @@ -607,21 +572,39 @@ presets: ### Use Released Binaries The easiest way of installing it, is to download the latest -[release](https://github.com/rebuy-de/aws-nuke/releases) from GitHub. +[release](https://github.com/ekristen/aws-nuke/releases) from GitHub. #### Example for Linux Intel/AMD Download and extract -`$ wget -c https://github.com/rebuy-de/aws-nuke/releases/download/v2.23.0/aws-nuke-v2.23.0-linux-amd64.tar.gz -O - | tar -xz -C $HOME/bin` + +```bash +wget -c https://github.com/rebuy-de/aws-nuke/releases/download/v2.16.0/aws-nuke-v2.16.0-linux-amd64.tar.gz -O - | sudo tar -xz -C $HOME/bin +``` Run -`$ aws-nuke-v2.23.0-linux-amd64` + +```bash +aws-nuke-v2.16.0-linux-amd64 +``` ### Compile from Source To compile *aws-nuke* from source you need a working -[Golang](https://golang.org/doc/install) development environment. The sources -must be cloned to `$GOPATH/src/github.com/rebuy-de/aws-nuke`. +[Golang](https://golang.org/doc/install) development environment. + +*aws-nuke* uses go modules and so the clone path should no matter. + +The easiest way to compile is by using [goreleaser](https://goreleaser.io) + +```bash +goreleaser --rm-dist --snapshot --single-target +``` + +**Note:** this will automatically build for your current architecture and place the result +in the releases directory. + +You may also use `make` to compile the binary, this was left over from before the fork. Also you need to install [golint](https://github.com/golang/lint/) and [GNU Make](https://www.gnu.org/software/make/). @@ -639,7 +622,7 @@ $ docker run \ --rm -it \ -v /full-path/to/nuke-config.yml:/home/aws-nuke/config.yml \ -v /home/user/.aws:/home/aws-nuke/.aws \ - quay.io/rebuy/aws-nuke:v2.23.0 \ + ghcr.io/ekristen/aws-nuke \ --profile default \ --config /home/aws-nuke/config.yml ``` @@ -654,7 +637,6 @@ Make sure you use the latest version in the image tag. Alternatiely you can use `main` for the latest development version, but be aware that this is more likely to break at any time. - ## Testing ### Unit Tests @@ -667,13 +649,9 @@ To run the unit tests: make test ``` - ## Contact Channels -Feel free to create a GitHub Issue for any bug reports or feature requests. -Please use our mailing list for questions: aws-nuke@googlegroups.com. You can -also search in the mailing list archive, whether someone already had the same -problem: https://groups.google.com/d/forum/aws-nuke +For now GitHub issues, may open a Slack or Discord if warranted. ## Contribute diff --git a/cosign.pub b/cosign.pub new file mode 100644 index 00000000..9a6cf862 --- /dev/null +++ b/cosign.pub @@ -0,0 +1,4 @@ +-----BEGIN PUBLIC KEY----- +MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEzwDt3+veru3N3fCnc0kYxm4mnCO4 +464OTkXk2z+PjI11g5ZRv7UrORXcZ20mmuGUN3/aVfexq+aGb5Bi+uHrPw== +-----END PUBLIC KEY----- diff --git a/golang.mk b/golang.mk index 767e5edf..4b77cafc 100644 --- a/golang.mk +++ b/golang.mk @@ -1,5 +1,3 @@ -# Source: https://github.com/rebuy-de/golang-template - TARGETS?="." PACKAGE=$(shell GOPATH= go list $(TARGET)) NAME=$(notdir $(shell echo $(PACKAGE) | sed 's/\/v2//')) From 12f070f004de6923cd258a49f5ef4037889b0d6c Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 15 Dec 2021 06:53:55 -0700 Subject: [PATCH 009/617] fix(release): fix cosign with goreleaser --- .github/workflows/release.yaml | 10 ++++++++++ .goreleaser.yml | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 343d69f2..e5d88689 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -20,6 +20,15 @@ jobs: uses: actions/setup-go@v2 with: go-version: 1.17 + - name: Install Cosign + uses: sigstore/cosign-installer@main + with: + cosign-release: "v1.4.1" + - name: Setup Cosign + run: | + echo ${COSIGN_KEY} > cosign.key + env: + COSIGN_KEY: ${{ secrets.COSIGN_KEY }} - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: @@ -28,3 +37,4 @@ jobs: args: release --rm-dist env: GITHUB_TOKEN: ${{ secrets.RELEASES_GITHUB_TOKEN }} + COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 820a1e7c..f6f13104 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -88,13 +88,13 @@ docker_manifests: - ghcr.io/ekristen/aws-nuke:{{ .Version }}-arm32v7 signs: - cmd: cosign - stdin: "{{ .Env.COSIGN_PWD }}" + stdin: "{{ .Env.COSIGN_PASSWORD }}" args: ["sign-blob", "--key=cosign.key", "--output=${signature}", "${artifact}"] artifacts: all docker_signs: - artifacts: all - stdin: "{{ .Env.COSIGN_PWD }}" + stdin: "{{ .Env.COSIGN_PASSWORD }}" checksum: name_template: "checksums.txt" snapshot: From a82a5c25bc8d9380ad074cbae3b0366a3f72a63c Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 15 Dec 2021 07:37:14 -0700 Subject: [PATCH 010/617] fix(action): cosign key in correct directory --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e5d88689..d16ee774 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -26,7 +26,7 @@ jobs: cosign-release: "v1.4.1" - name: Setup Cosign run: | - echo ${COSIGN_KEY} > cosign.key + echo "${COSIGN_KEY}" > "$GITHUB_WORKSPACE/cosign.key" env: COSIGN_KEY: ${{ secrets.COSIGN_KEY }} - name: Run GoReleaser From 2c752e16262cfd0fdd4fd0cd246ee5d379d71cf5 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 15 Dec 2021 07:56:57 -0700 Subject: [PATCH 011/617] fix(action): setup qemu and buildx --- .github/workflows/release.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d16ee774..98fb75b1 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -20,6 +20,12 @@ jobs: uses: actions/setup-go@v2 with: go-version: 1.17 + - name: Set up QEMU + id: qemu + uses: docker/setup-qemu-action@v1 + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v1 - name: Install Cosign uses: sigstore/cosign-installer@main with: From 9d75f64fe6b19d3340501d89d7c465434985dc70 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 15 Dec 2021 08:15:08 -0700 Subject: [PATCH 012/617] fix(action): login to ghcr.io --- .github/workflows/release.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 98fb75b1..2ea30813 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -26,6 +26,12 @@ jobs: - name: Set up Docker Buildx id: buildx uses: docker/setup-buildx-action@v1 + - name: Login to GitHub Container Registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Install Cosign uses: sigstore/cosign-installer@main with: From 7cd295a90879196f727d4dcd9f10555699769a56 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 15 Dec 2021 08:32:33 -0700 Subject: [PATCH 013/617] fix(action): ghcr.io login --- .github/workflows/release.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2ea30813..7f7e4f90 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -30,8 +30,8 @@ jobs: uses: docker/login-action@v1 with: registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + username: ekristen + password: ${{ secrets.RELEASES_GITHUB_TOKEN }} - name: Install Cosign uses: sigstore/cosign-installer@main with: From a70f1741146748489c7b01bb37028be748a840e3 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 15 Dec 2021 08:34:29 -0700 Subject: [PATCH 014/617] fix(action): workflow permissions --- .github/workflows/release.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7f7e4f90..53f18055 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -7,6 +7,7 @@ on: permissions: contents: write + packages: write jobs: goreleaser: @@ -30,8 +31,8 @@ jobs: uses: docker/login-action@v1 with: registry: ghcr.io - username: ekristen - password: ${{ secrets.RELEASES_GITHUB_TOKEN }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Install Cosign uses: sigstore/cosign-installer@main with: From 7bb78e14f278bfd6e37fc66a6ec0d42500d4adaa Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 15 Dec 2021 09:14:39 -0700 Subject: [PATCH 015/617] chore(goreleaser): prefix with v, add cosign.pub to release assets --- .goreleaser.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index f6f13104..cdf5ae22 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -3,6 +3,8 @@ release: github: owner: ekristen name: aws-nuke + extra_files: + - glob: ./cosign.pub builds: - id: default goos: @@ -31,7 +33,7 @@ archives: - id: default builds: - default - name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ .Arm }}" + name_template: "{{ .ProjectName }}-v{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ .Arm }}" format_overrides: - goos: windows format: zip @@ -41,7 +43,7 @@ dockers: goarch: amd64 dockerfile: Dockerfile.goreleaser image_templates: - - ghcr.io/ekristen/aws-nuke:{{ .Version }}-amd64 + - ghcr.io/ekristen/aws-nuke:v{{ .Version }}-amd64 build_flag_templates: - "--pull" - "--label=org.opencontainers.image.created={{.Date}}" @@ -55,7 +57,7 @@ dockers: goarch: arm64 dockerfile: Dockerfile.goreleaser image_templates: - - ghcr.io/ekristen/aws-nuke:{{ .Version }}-arm64 + - ghcr.io/ekristen/aws-nuke:v{{ .Version }}-arm64 build_flag_templates: - "--pull" - "--label=org.opencontainers.image.created={{.Date}}" @@ -70,7 +72,7 @@ dockers: goarm: "7" dockerfile: Dockerfile.goreleaser image_templates: - - ghcr.io/ekristen/aws-nuke:{{ .Version }}-arm32v7 + - ghcr.io/ekristen/aws-nuke:v{{ .Version }}-arm32v7 build_flag_templates: - "--pull" - "--label=org.opencontainers.image.created={{.Date}}" @@ -81,11 +83,11 @@ dockers: - "--platform=linux/arm/v7" docker_manifests: - use: docker - name_template: ghcr.io/ekristen/aws-nuke:{{ .Version }} + name_template: ghcr.io/ekristen/aws-nuke:v{{ .Version }} image_templates: - - ghcr.io/ekristen/aws-nuke:{{ .Version }}-amd64 - - ghcr.io/ekristen/aws-nuke:{{ .Version }}-arm64 - - ghcr.io/ekristen/aws-nuke:{{ .Version }}-arm32v7 + - ghcr.io/ekristen/aws-nuke:v{{ .Version }}-amd64 + - ghcr.io/ekristen/aws-nuke:v{{ .Version }}-arm64 + - ghcr.io/ekristen/aws-nuke:v{{ .Version }}-arm32v7 signs: - cmd: cosign stdin: "{{ .Env.COSIGN_PASSWORD }}" @@ -98,7 +100,7 @@ docker_signs: checksum: name_template: "checksums.txt" snapshot: - name_template: "{{ .Summary }}" + name_template: '{{ trimprefix .Summary "v" }}' changelog: sort: asc filters: From c8fb4e2ba01c6763b212304ebe75f14946bc0779 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 15 Dec 2021 19:14:27 -0700 Subject: [PATCH 016/617] Statically Build (#8) * current docker image not working, attempting to resolve * build statically --- .goreleaser.yml | 3 +++ Dockerfile.goreleaser | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index cdf5ae22..c0c5174b 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -7,6 +7,8 @@ release: - glob: ./cosign.pub builds: - id: default + env: + - CGO_ENABLED=0 goos: - darwin - linux @@ -26,6 +28,7 @@ builds: goarch: arm ldflags: - -s + - -w - -X '{{ .ModulePath }}/cmd.BuildVersion={{ .Version }}' - -X '{{ .ModulePath }}/cmd.BuildDate={{ .Date }}' - -X '{{ .ModulePath }}/cmd.BuildHash={{ .Commit }}' diff --git a/Dockerfile.goreleaser b/Dockerfile.goreleaser index 756c620e..8d62175a 100644 --- a/Dockerfile.goreleaser +++ b/Dockerfile.goreleaser @@ -1,7 +1,7 @@ FROM alpine:3.14.3 ENTRYPOINT ["/usr/local/bin/aws-nuke"] -RUN apk add --no-cache ca-certificates +RUN apk add --no-cache ca-certificates RUN adduser -D aws-nuke COPY aws-nuke /usr/local/bin/aws-nuke From 577e31d704a0d3a0890ad12277a2e1345e5f9a55 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 10 Mar 2022 16:20:26 -0700 Subject: [PATCH 017/617] fix(iam-instance-profile): tests --- resources/iam-instance-profile-role_mock_test.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/resources/iam-instance-profile-role_mock_test.go b/resources/iam-instance-profile-role_mock_test.go index 07304ec0..2ed83f33 100644 --- a/resources/iam-instance-profile-role_mock_test.go +++ b/resources/iam-instance-profile-role_mock_test.go @@ -18,14 +18,16 @@ func Test_Mock_IAMInstanceProfileRole_Remove(t *testing.T) { mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) iamInstanceProfileRole := IAMInstanceProfileRole{ - svc: mockIAM, - role: "role:foobar", - profile: "profile:foobar", + svc: mockIAM, + role: "role:foobar", + profile: &iam.InstanceProfile{ + InstanceProfileName: aws.String("profile:foobar"), + }, } mockIAM.EXPECT().RemoveRoleFromInstanceProfile(gomock.Eq(&iam.RemoveRoleFromInstanceProfileInput{ RoleName: aws.String(iamInstanceProfileRole.role), - InstanceProfileName: aws.String(iamInstanceProfileRole.profile), + InstanceProfileName: iamInstanceProfileRole.profile.InstanceProfileName, })).Return(&iam.RemoveRoleFromInstanceProfileOutput{}, nil) err := iamInstanceProfileRole.Remove() From 900f547f0035d4d2bf6c7bcf23741cfacba59241 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 25 Apr 2022 09:20:08 -0600 Subject: [PATCH 018/617] support inspector2 (#12) * support inspector2 * chore: go mod tidy --- go.mod | 15 +++++++++------ go.sum | 19 ++++--------------- resources/inspector2.go | 9 --------- 3 files changed, 13 insertions(+), 30 deletions(-) diff --git a/go.mod b/go.mod index 54b309d9..ff7a45f0 100644 --- a/go.mod +++ b/go.mod @@ -3,18 +3,13 @@ module github.com/rebuy-de/aws-nuke/v2 go 1.19 require ( - github.com/Masterminds/goutils v1.1.1 // indirect - github.com/Masterminds/semver v1.5.0 // indirect github.com/Masterminds/sprig v2.22.0+incompatible - github.com/aws/aws-sdk-go v1.44.295 + github.com/aws/aws-sdk-go v1.43.45 github.com/fatih/color v1.15.0 github.com/golang/mock v1.6.0 github.com/google/uuid v1.3.0 - github.com/huandu/xstrings v1.4.0 // indirect github.com/iancoleman/strcase v0.2.0 - github.com/imdario/mergo v0.3.14 // indirect github.com/mb0/glob v0.0.0-20160210091149-1eb79d2de6c4 - github.com/mitchellh/copystructure v1.2.0 // indirect github.com/pkg/errors v0.9.1 github.com/rebuy-de/rebuy-go-sdk/v4 v4.5.1 github.com/sirupsen/logrus v1.9.3 @@ -48,3 +43,11 @@ require ( golang.org/x/crypto v0.7.0 // indirect ) + +require ( + github.com/Masterminds/goutils v1.1.1 // indirect + github.com/Masterminds/semver v1.5.0 // indirect + github.com/huandu/xstrings v1.4.0 // indirect + github.com/imdario/mergo v0.3.14 // indirect + github.com/mitchellh/copystructure v1.2.0 // indirect +) diff --git a/go.sum b/go.sum index df654fa0..2415ec42 100644 --- a/go.sum +++ b/go.sum @@ -4,8 +4,8 @@ github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3Q github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y= github.com/Masterminds/sprig v2.22.0+incompatible h1:z4yfnGrZ7netVz+0EDJ0Wi+5VZCSYp4Z0m2dk6cEM60= github.com/Masterminds/sprig v2.22.0+incompatible/go.mod h1:y6hNFY5UBTIWBxnzTeuNhlNS5hqE0NB0E6fgfo2Br3o= -github.com/aws/aws-sdk-go v1.44.295 h1:SGjU1+MqttXfRiWHD6WU0DRhaanJgAFY+xIhEaugV8Y= -github.com/aws/aws-sdk-go v1.44.295/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= +github.com/aws/aws-sdk-go v1.43.45 h1:2708Bj4uV+ym62MOtBnErm/CDX61C4mFe9V2gXy1caE= +github.com/aws/aws-sdk-go v1.43.45/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -73,27 +73,21 @@ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= -github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.7.0 h1:AvwMYaRytfdeVt3u6mLaxYtErKYjxA2OXjJ1HHq6t3A= golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.9.0 h1:KENHtAZL2y3NLMYZeHY9DW8HW8V+kQyJsY/V9JlKvCs= golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= +golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.3.0 h1:ftCYgMx6zT/asHUrPw8BLLscYtGznsLAnjq5RH9P66E= golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -103,25 +97,20 @@ golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/tools v0.7.0 h1:W4OVu8VVOaIO0yzWMNdepAulS7YfoS3Zabrm8DOXXU4= golang.org/x/tools v0.7.0/go.mod h1:4pg6aUX35JBAogB10C9AtvVL+qowtN4pT3CGSQex14s= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/resources/inspector2.go b/resources/inspector2.go index e8a6fffe..9f0c3e34 100644 --- a/resources/inspector2.go +++ b/resources/inspector2.go @@ -4,7 +4,6 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/inspector2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" ) type Inspector2 struct { @@ -49,14 +48,6 @@ func (e *Inspector2) Remove() error { return nil } -func (e *Inspector2) Properties() types.Properties { - properties := types.NewProperties() - - properties.Set("AccountID", e.accountId) - - return properties -} - func (e *Inspector2) String() string { return *e.accountId } From 097c5522452445908f4117eb3c3f006ee8fe1b0c Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 20 Mar 2023 20:52:40 +0000 Subject: [PATCH 019/617] feat(resource-explorer2): add support for removing indexes and views --- go.mod | 36 ++++++---------- go.sum | 44 ++++++++++++------- resources/resource-explorer2-indexes.go | 57 +++++++++++++++++++++++++ resources/resource-explorer2-views.go | 57 +++++++++++++++++++++++++ 4 files changed, 156 insertions(+), 38 deletions(-) create mode 100644 resources/resource-explorer2-indexes.go create mode 100644 resources/resource-explorer2-views.go diff --git a/go.mod b/go.mod index ff7a45f0..02870284 100644 --- a/go.mod +++ b/go.mod @@ -4,50 +4,40 @@ go 1.19 require ( github.com/Masterminds/sprig v2.22.0+incompatible - github.com/aws/aws-sdk-go v1.43.45 + github.com/aws/aws-sdk-go v1.44.225 github.com/fatih/color v1.15.0 github.com/golang/mock v1.6.0 github.com/google/uuid v1.3.0 github.com/iancoleman/strcase v0.2.0 github.com/mb0/glob v0.0.0-20160210091149-1eb79d2de6c4 github.com/pkg/errors v0.9.1 + github.com/rebuy-de/aws-nuke v2.10.0+incompatible github.com/rebuy-de/rebuy-go-sdk/v4 v4.5.1 - github.com/sirupsen/logrus v1.9.3 - github.com/spf13/cobra v1.7.0 - github.com/stretchr/testify v1.8.4 - golang.org/x/sync v0.3.0 + github.com/sirupsen/logrus v1.9.0 + github.com/spf13/cobra v1.6.1 + github.com/stretchr/testify v1.8.1 + golang.org/x/sync v0.1.0 gopkg.in/yaml.v3 v3.0.1 ) require ( + github.com/Masterminds/goutils v1.1.1 // indirect + github.com/Masterminds/semver v1.5.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/gemnasium/logrus-graylog-hook/v3 v3.1.0 // indirect + github.com/huandu/xstrings v1.4.0 // indirect + github.com/imdario/mergo v0.3.14 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect - github.com/kr/text v0.2.0 // indirect github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.17 // indirect + github.com/mitchellh/copystructure v1.2.0 // indirect + github.com/mitchellh/reflectwalk v1.0.2 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/spf13/pflag v1.0.5 // indirect + golang.org/x/crypto v0.7.0 // indirect golang.org/x/mod v0.9.0 // indirect golang.org/x/sys v0.6.0 // indirect golang.org/x/tools v0.7.0 // indirect gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect - -) - -require github.com/rebuy-de/aws-nuke v2.10.0+incompatible - -require ( - github.com/mitchellh/reflectwalk v1.0.2 // indirect - golang.org/x/crypto v0.7.0 // indirect - -) - -require ( - github.com/Masterminds/goutils v1.1.1 // indirect - github.com/Masterminds/semver v1.5.0 // indirect - github.com/huandu/xstrings v1.4.0 // indirect - github.com/imdario/mergo v0.3.14 // indirect - github.com/mitchellh/copystructure v1.2.0 // indirect ) diff --git a/go.sum b/go.sum index 2415ec42..050a7789 100644 --- a/go.sum +++ b/go.sum @@ -4,10 +4,9 @@ github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3Q github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y= github.com/Masterminds/sprig v2.22.0+incompatible h1:z4yfnGrZ7netVz+0EDJ0Wi+5VZCSYp4Z0m2dk6cEM60= github.com/Masterminds/sprig v2.22.0+incompatible/go.mod h1:y6hNFY5UBTIWBxnzTeuNhlNS5hqE0NB0E6fgfo2Br3o= -github.com/aws/aws-sdk-go v1.43.45 h1:2708Bj4uV+ym62MOtBnErm/CDX61C4mFe9V2gXy1caE= -github.com/aws/aws-sdk-go v1.43.45/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= +github.com/aws/aws-sdk-go v1.44.225 h1:JNJpUg+M1cm4jtKnyex//Mw1Rv8QN/kWT3dtr+oLdW4= +github.com/aws/aws-sdk-go v1.44.225/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -25,6 +24,7 @@ github.com/iancoleman/strcase v0.2.0 h1:05I4QRnGpI0m37iZQRuskXh+w77mr6Z41lwQzuHL github.com/iancoleman/strcase v0.2.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= github.com/imdario/mergo v0.3.14 h1:fOqeC1+nCuuk6PKQdg9YmosXX7Y7mHX6R/0ZldI9iHo= github.com/imdario/mergo v0.3.14/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY= +github.com/inconshreveable/mousetrap v1.0.1/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= @@ -35,9 +35,8 @@ github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxv github.com/kr/pretty v0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= @@ -60,36 +59,46 @@ github.com/rebuy-de/rebuy-go-sdk/v4 v4.5.1 h1:7QWjC0uku9pIqTXS664clCMjqhZLjO/sUV github.com/rebuy-de/rebuy-go-sdk/v4 v4.5.1/go.mod h1:ZSfnIcE8RFKz7IO6AFZjETDbPyMdUjtxCea9R7Q6pQE= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/sirupsen/logrus v1.3.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= -github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= -github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= -github.com/spf13/cobra v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I= -github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0= +github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0= +github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= +github.com/spf13/cobra v1.6.1 h1:o94oiPyS4KD1mPy2fmcYYHHfCxLqYjJOhGsCHFZtEzA= +github.com/spf13/cobra v1.6.1/go.mod h1:IOw/AERYS7UzyrGinqmz6HLUo219MORXGxhbaJUqzrY= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= -github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk= +github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.7.0 h1:AvwMYaRytfdeVt3u6mLaxYtErKYjxA2OXjJ1HHq6t3A= golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.9.0 h1:KENHtAZL2y3NLMYZeHY9DW8HW8V+kQyJsY/V9JlKvCs= golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.3.0 h1:ftCYgMx6zT/asHUrPw8BLLscYtGznsLAnjq5RH9P66E= -golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= +golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o= +golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -97,20 +106,25 @@ golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/tools v0.7.0 h1:W4OVu8VVOaIO0yzWMNdepAulS7YfoS3Zabrm8DOXXU4= golang.org/x/tools v0.7.0/go.mod h1:4pg6aUX35JBAogB10C9AtvVL+qowtN4pT3CGSQex14s= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/resources/resource-explorer2-indexes.go b/resources/resource-explorer2-indexes.go new file mode 100644 index 00000000..4a84a337 --- /dev/null +++ b/resources/resource-explorer2-indexes.go @@ -0,0 +1,57 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/resourceexplorer2" +) + +type ResourceExplorer2Index struct { + svc *resourceexplorer2.ResourceExplorer2 + indexArn *string +} + +func init() { + register("ResourceExplorer2Index", ResourceExplorer2Indexes) +} + +func ResourceExplorer2Indexes(sess *session.Session) ([]Resource, error) { + svc := resourceexplorer2.New(sess) + var resources []Resource + + params := &resourceexplorer2.ListIndexesInput{} + + for { + output, err := svc.ListIndexes(params) + if err != nil { + return nil, err + } + + for _, index := range output.Indexes { + resources = append(resources, &ResourceExplorer2Index{ + svc: svc, + indexArn: index.Arn, + }) + } + + if output.NextToken == nil { + break + } + + params.SetNextToken(aws.StringValue(output.NextToken)) + } + + return resources, nil +} + +func (f *ResourceExplorer2Index) Remove() error { + _, err := f.svc.DeleteIndex(&resourceexplorer2.DeleteIndexInput{ + Arn: f.indexArn, + }) + + return err +} + +func (f *ResourceExplorer2Index) String() string { + return *f.indexArn +} diff --git a/resources/resource-explorer2-views.go b/resources/resource-explorer2-views.go new file mode 100644 index 00000000..25a0c9b2 --- /dev/null +++ b/resources/resource-explorer2-views.go @@ -0,0 +1,57 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/resourceexplorer2" +) + +type ResourceExplorer2View struct { + svc *resourceexplorer2.ResourceExplorer2 + viewArn *string +} + +func init() { + register("ResourceExplorer2View", ResourceExplorer2Views) +} + +func ResourceExplorer2Views(sess *session.Session) ([]Resource, error) { + svc := resourceexplorer2.New(sess) + var resources []Resource + + params := &resourceexplorer2.ListViewsInput{} + + for { + output, err := svc.ListViews(params) + if err != nil { + return nil, err + } + + for _, view := range output.Views { + resources = append(resources, &ResourceExplorer2View{ + svc: svc, + viewArn: view, + }) + } + + if output.NextToken == nil { + break + } + + params.SetNextToken(aws.StringValue(output.NextToken)) + } + + return resources, nil +} + +func (f *ResourceExplorer2View) Remove() error { + _, err := f.svc.DeleteView(&resourceexplorer2.DeleteViewInput{ + ViewArn: f.viewArn, + }) + + return err +} + +func (f *ResourceExplorer2View) String() string { + return *f.viewArn +} From a4d642feaa0fe6d938d2f6dda75f965215cc8754 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 20 Mar 2023 21:09:45 +0000 Subject: [PATCH 020/617] fix: goreleaser workflow --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 53f18055..07626293 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -36,7 +36,7 @@ jobs: - name: Install Cosign uses: sigstore/cosign-installer@main with: - cosign-release: "v1.4.1" + cosign-release: "v1.13.0" - name: Setup Cosign run: | echo "${COSIGN_KEY}" > "$GITHUB_WORKSPACE/cosign.key" From 1b84aedc512e56ff732c5ae192f608e2370daa53 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 21 Mar 2023 12:09:15 -0600 Subject: [PATCH 021/617] fix: mock reference, go mod tidy --- .gitignore | 4 +++- go.mod | 1 + go.sum | 9 +++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 8c131a96..e32b44cb 100644 --- a/.gitignore +++ b/.gitignore @@ -5,5 +5,7 @@ /releases /mocks .envrc +.idea config.yaml -cosign.key \ No newline at end of file +cosign.key +*-config.yaml \ No newline at end of file diff --git a/go.mod b/go.mod index 02870284..1efbc62c 100644 --- a/go.mod +++ b/go.mod @@ -29,6 +29,7 @@ require ( github.com/imdario/mergo v0.3.14 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect + github.com/kr/text v0.2.0 // indirect github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.17 // indirect github.com/mitchellh/copystructure v1.2.0 // indirect diff --git a/go.sum b/go.sum index 050a7789..8d97fdcc 100644 --- a/go.sum +++ b/go.sum @@ -7,6 +7,10 @@ github.com/Masterminds/sprig v2.22.0+incompatible/go.mod h1:y6hNFY5UBTIWBxnzTeuN github.com/aws/aws-sdk-go v1.44.225 h1:JNJpUg+M1cm4jtKnyex//Mw1Rv8QN/kWT3dtr+oLdW4= github.com/aws/aws-sdk-go v1.44.225/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +<<<<<<< HEAD +======= +github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= +>>>>>>> 51057c7 (fix: mock reference, go mod tidy) github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -37,6 +41,11 @@ github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfn github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +<<<<<<< HEAD +======= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +>>>>>>> 51057c7 (fix: mock reference, go mod tidy) github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= From 239e9d69cb45e7cd31bafdb6ca8234bd57dc2d06 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 21 Mar 2023 12:29:21 -0600 Subject: [PATCH 022/617] fix: rebase issues --- resources/iam-group-policy-attachments.go | 2 +- resources/iam-groups.go | 2 ++ resources/iam-instance-profile-roles.go | 6 ++++-- resources/iam-instance-profiles.go | 8 ++++++-- resources/iam-login-profiles.go | 2 +- resources/iam-open-id-connect-provider.go | 6 ++++-- resources/iam-policies.go | 2 +- resources/iam-role-policy-attachments.go | 2 +- resources/iam-role-policy.go | 5 +---- resources/iam-roles.go | 2 +- resources/iam-service-specific-credentials.go | 2 +- resources/iam-signing-certificates.go | 2 +- resources/iam-user-access-keys.go | 2 +- resources/iam-user-policy-attachments.go | 3 ++- resources/iam-user-ssh-keys.go | 2 +- resources/iam-users.go | 2 ++ resources/interface.go | 3 ++- 17 files changed, 32 insertions(+), 21 deletions(-) diff --git a/resources/iam-group-policy-attachments.go b/resources/iam-group-policy-attachments.go index 517cf1ea..46cd2bb8 100644 --- a/resources/iam-group-policy-attachments.go +++ b/resources/iam-group-policy-attachments.go @@ -6,7 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" - "github.com/rebuy-de/aws-nuke/pkg/types" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" ) type IAMGroupPolicyAttachment struct { diff --git a/resources/iam-groups.go b/resources/iam-groups.go index 7b9442d0..e88889ce 100644 --- a/resources/iam-groups.go +++ b/resources/iam-groups.go @@ -4,10 +4,12 @@ import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" ) type IAMGroup struct { svc iamiface.IAMAPI + id string name string path string } diff --git a/resources/iam-instance-profile-roles.go b/resources/iam-instance-profile-roles.go index 6d71b8cc..3f9f9d09 100644 --- a/resources/iam-instance-profile-roles.go +++ b/resources/iam-instance-profile-roles.go @@ -2,6 +2,8 @@ package resources import ( "fmt" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" + "github.com/sirupsen/logrus" "time" "github.com/aws/aws-sdk-go/aws/session" @@ -11,8 +13,8 @@ import ( type IAMInstanceProfileRole struct { svc iamiface.IAMAPI - role string - profile string + role *iam.Role + profile *iam.InstanceProfile } func init() { diff --git a/resources/iam-instance-profiles.go b/resources/iam-instance-profiles.go index 00c33e7e..5b6542c0 100644 --- a/resources/iam-instance-profiles.go +++ b/resources/iam-instance-profiles.go @@ -4,11 +4,15 @@ import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" + "github.com/sirupsen/logrus" ) type IAMInstanceProfile struct { - svc iamiface.IAMAPI - name string + svc iamiface.IAMAPI + name string + path string + profile *iam.InstanceProfile } func init() { diff --git a/resources/iam-login-profiles.go b/resources/iam-login-profiles.go index d66a0393..f162aaa4 100644 --- a/resources/iam-login-profiles.go +++ b/resources/iam-login-profiles.go @@ -5,7 +5,7 @@ import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" - "github.com/rebuy-de/aws-nuke/pkg/types" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" "github.com/sirupsen/logrus" ) diff --git a/resources/iam-open-id-connect-provider.go b/resources/iam-open-id-connect-provider.go index cb484ac4..84ff288b 100644 --- a/resources/iam-open-id-connect-provider.go +++ b/resources/iam-open-id-connect-provider.go @@ -4,11 +4,13 @@ import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" ) type IAMOpenIDConnectProvider struct { - svc iamiface.IAMAPI - arn string + svc iamiface.IAMAPI + arn string + tags []*iam.Tag } func init() { diff --git a/resources/iam-policies.go b/resources/iam-policies.go index 6213a051..cbb9cd7b 100644 --- a/resources/iam-policies.go +++ b/resources/iam-policies.go @@ -5,7 +5,7 @@ import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" - "github.com/rebuy-de/aws-nuke/pkg/types" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" "github.com/sirupsen/logrus" ) diff --git a/resources/iam-role-policy-attachments.go b/resources/iam-role-policy-attachments.go index 012e7796..dfaae37a 100644 --- a/resources/iam-role-policy-attachments.go +++ b/resources/iam-role-policy-attachments.go @@ -8,7 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" - "github.com/rebuy-de/aws-nuke/pkg/types" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" "github.com/sirupsen/logrus" ) diff --git a/resources/iam-role-policy.go b/resources/iam-role-policy.go index 2a8f2cc0..047f4794 100644 --- a/resources/iam-role-policy.go +++ b/resources/iam-role-policy.go @@ -3,16 +3,13 @@ package resources import ( "fmt" "strings" - "time" - - "github.com/sirupsen/logrus" "github.com/sirupsen/logrus" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" - "github.com/rebuy-de/aws-nuke/pkg/types" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" ) type IAMRolePolicy struct { diff --git a/resources/iam-roles.go b/resources/iam-roles.go index 4021928f..18ce4237 100644 --- a/resources/iam-roles.go +++ b/resources/iam-roles.go @@ -9,7 +9,7 @@ import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" - "github.com/rebuy-de/aws-nuke/pkg/types" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" "github.com/sirupsen/logrus" ) diff --git a/resources/iam-service-specific-credentials.go b/resources/iam-service-specific-credentials.go index ed6e16c0..14b52f29 100644 --- a/resources/iam-service-specific-credentials.go +++ b/resources/iam-service-specific-credentials.go @@ -4,7 +4,7 @@ import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" - "github.com/rebuy-de/aws-nuke/pkg/types" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" "github.com/sirupsen/logrus" ) diff --git a/resources/iam-signing-certificates.go b/resources/iam-signing-certificates.go index 2cca0855..72b957b7 100644 --- a/resources/iam-signing-certificates.go +++ b/resources/iam-signing-certificates.go @@ -7,7 +7,7 @@ import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" - "github.com/rebuy-de/aws-nuke/pkg/types" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" ) type IAMSigningCertificate struct { diff --git a/resources/iam-user-access-keys.go b/resources/iam-user-access-keys.go index acd6177b..daf30290 100644 --- a/resources/iam-user-access-keys.go +++ b/resources/iam-user-access-keys.go @@ -6,7 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" - "github.com/rebuy-de/aws-nuke/pkg/types" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" ) type IAMUserAccessKey struct { diff --git a/resources/iam-user-policy-attachments.go b/resources/iam-user-policy-attachments.go index f4841a20..ad0528d0 100644 --- a/resources/iam-user-policy-attachments.go +++ b/resources/iam-user-policy-attachments.go @@ -2,11 +2,12 @@ package resources import ( "fmt" + "github.com/sirupsen/logrus" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" - "github.com/rebuy-de/aws-nuke/pkg/types" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" ) type IAMUserPolicyAttachment struct { diff --git a/resources/iam-user-ssh-keys.go b/resources/iam-user-ssh-keys.go index 1755115f..2327d507 100644 --- a/resources/iam-user-ssh-keys.go +++ b/resources/iam-user-ssh-keys.go @@ -6,7 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" - "github.com/rebuy-de/aws-nuke/pkg/types" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" ) type IAMUserSSHKey struct { diff --git a/resources/iam-users.go b/resources/iam-users.go index 5cd4045d..cd95205f 100644 --- a/resources/iam-users.go +++ b/resources/iam-users.go @@ -4,6 +4,8 @@ import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" + "github.com/sirupsen/logrus" ) type IAMUser struct { diff --git a/resources/interface.go b/resources/interface.go index 290b4619..fd1c97a2 100644 --- a/resources/interface.go +++ b/resources/interface.go @@ -2,6 +2,7 @@ package resources import ( "fmt" + "github.com/rebuy-de/aws-nuke/resources" "strings" "github.com/aws/aws-sdk-go/aws/session" @@ -80,7 +81,7 @@ func GetLister(name string) ResourceLister { func GetListerNames() []string { names := []string{} - for resourceType := range GetListers() { + for resourceType := range resources.GetListers() { names = append(names, resourceType) } From e4fb26e64fc325d62da15f6b1122342218e54336 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 11 Jul 2023 09:37:49 -0600 Subject: [PATCH 023/617] add: remove custom iam account setting password policy (#14) --- .../iam-account-setting-password-policy.go | 57 +++++++++++++++++++ resources/interface.go | 7 ++- 2 files changed, 62 insertions(+), 2 deletions(-) create mode 100644 resources/iam-account-setting-password-policy.go diff --git a/resources/iam-account-setting-password-policy.go b/resources/iam-account-setting-password-policy.go new file mode 100644 index 00000000..69de3fee --- /dev/null +++ b/resources/iam-account-setting-password-policy.go @@ -0,0 +1,57 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/iam" + "github.com/aws/aws-sdk-go/service/iam/iamiface" +) + +type IAMAccountSettingPasswordPolicy struct { + svc iamiface.IAMAPI + policy *iam.PasswordPolicy +} + +func init() { + register("IAMAccountSettingPasswordPolicy", ListIAMAccountSettingPasswordPolicy) +} + +func ListIAMAccountSettingPasswordPolicy(sess *session.Session) ([]Resource, error) { + resources := make([]Resource, 0) + + svc := iam.New(sess) + + resp, err := svc.GetAccountPasswordPolicy(&iam.GetAccountPasswordPolicyInput{}) + + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case iam.ErrCodeNoSuchEntityException: + return nil, nil + case iam.ErrCodeServiceFailureException: + return nil, aerr + default: + return nil, aerr + } + } + } + + resources = append(resources, &IAMAccountSettingPasswordPolicy{ + svc: svc, + policy: resp.PasswordPolicy, + }) + + return resources, nil +} + +func (e *IAMAccountSettingPasswordPolicy) Remove() error { + _, err := e.svc.DeleteAccountPasswordPolicy(&iam.DeleteAccountPasswordPolicyInput{}) + if err != nil { + return err + } + return nil +} + +func (e *IAMAccountSettingPasswordPolicy) String() string { + return "custom" +} diff --git a/resources/interface.go b/resources/interface.go index fd1c97a2..9edbcab0 100644 --- a/resources/interface.go +++ b/resources/interface.go @@ -2,7 +2,6 @@ package resources import ( "fmt" - "github.com/rebuy-de/aws-nuke/resources" "strings" "github.com/aws/aws-sdk-go/aws/session" @@ -81,7 +80,7 @@ func GetLister(name string) ResourceLister { func GetListerNames() []string { names := []string{} - for resourceType := range resources.GetListers() { + for resourceType := range GetListers() { names = append(names, resourceType) } @@ -91,3 +90,7 @@ func GetListerNames() []string { func registerCloudControl(typeName string) { register(typeName, NewListCloudControlResource(typeName), mapCloudControl(typeName)) } + +func GetListers() ResourceListers { + return resourceListers +} From 127e49112337f1321558cb3f293fac4b5c1371c6 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 11 Jul 2023 09:57:20 -0600 Subject: [PATCH 024/617] fix go.mod --- go.mod | 1 - go.sum | 9 --------- 2 files changed, 10 deletions(-) diff --git a/go.mod b/go.mod index 1efbc62c..54bfce85 100644 --- a/go.mod +++ b/go.mod @@ -11,7 +11,6 @@ require ( github.com/iancoleman/strcase v0.2.0 github.com/mb0/glob v0.0.0-20160210091149-1eb79d2de6c4 github.com/pkg/errors v0.9.1 - github.com/rebuy-de/aws-nuke v2.10.0+incompatible github.com/rebuy-de/rebuy-go-sdk/v4 v4.5.1 github.com/sirupsen/logrus v1.9.0 github.com/spf13/cobra v1.6.1 diff --git a/go.sum b/go.sum index 8d97fdcc..b0720c05 100644 --- a/go.sum +++ b/go.sum @@ -7,10 +7,7 @@ github.com/Masterminds/sprig v2.22.0+incompatible/go.mod h1:y6hNFY5UBTIWBxnzTeuN github.com/aws/aws-sdk-go v1.44.225 h1:JNJpUg+M1cm4jtKnyex//Mw1Rv8QN/kWT3dtr+oLdW4= github.com/aws/aws-sdk-go v1.44.225/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= -<<<<<<< HEAD -======= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= ->>>>>>> 51057c7 (fix: mock reference, go mod tidy) github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -39,13 +36,9 @@ github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxv github.com/kr/pretty v0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -<<<<<<< HEAD -======= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= ->>>>>>> 51057c7 (fix: mock reference, go mod tidy) github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= @@ -62,8 +55,6 @@ github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/rebuy-de/aws-nuke v2.10.0+incompatible h1:RLi5bm7BZAxOVeNjYA2JafFvZTuAhALpNQiD+Bjfz+E= -github.com/rebuy-de/aws-nuke v2.10.0+incompatible/go.mod h1:DyMsiA805cBWrullfs3ZHSEvbJ3mu7fsDuc4PG2Gt7Y= github.com/rebuy-de/rebuy-go-sdk/v4 v4.5.1 h1:7QWjC0uku9pIqTXS664clCMjqhZLjO/sUV7yTJJwzAk= github.com/rebuy-de/rebuy-go-sdk/v4 v4.5.1/go.mod h1:ZSfnIcE8RFKz7IO6AFZjETDbPyMdUjtxCea9R7Q6pQE= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= From 76e0b9523d533f80579eb819a34746dd7c87199c Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 11 Jul 2023 09:58:28 -0600 Subject: [PATCH 025/617] switch to go 1.19 --- .github/workflows/golang.yaml | 2 +- .github/workflows/release.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/golang.yaml b/.github/workflows/golang.yaml index 4bf0f461..2d2fc310 100644 --- a/.github/workflows/golang.yaml +++ b/.github/workflows/golang.yaml @@ -18,7 +18,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v2 with: - go-version: 1.17 + go-version: 1.19 - name: Setup tools run: | go get golang.org/x/lint/golint diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 07626293..16da47e7 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -20,7 +20,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.17 + go-version: 1.19 - name: Set up QEMU id: qemu uses: docker/setup-qemu-action@v1 From 9c14f090ec8cb746b9fe44b1bb6a5ff056cba464 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 14 Jul 2023 15:32:36 -0600 Subject: [PATCH 026/617] fix: tests --- resources/iam-role-policy-attachments_mock_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/iam-role-policy-attachments_mock_test.go b/resources/iam-role-policy-attachments_mock_test.go index 96bb770d..181d0488 100644 --- a/resources/iam-role-policy-attachments_mock_test.go +++ b/resources/iam-role-policy-attachments_mock_test.go @@ -21,11 +21,13 @@ func Test_Mock_IAMRolePolicyAttachment_Remove(t *testing.T) { svc: mockIAM, policyArn: "arn:foobar", policyName: "foobar", - roleName: "role:foobar", + role: &iam.Role{ + RoleName: aws.String("foo"), + }, } mockIAM.EXPECT().DetachRolePolicy(gomock.Eq(&iam.DetachRolePolicyInput{ - RoleName: aws.String(iamRolePolicyAttachment.roleName), + RoleName: iamRolePolicyAttachment.role.RoleName, PolicyArn: aws.String(iamRolePolicyAttachment.policyArn), })).Return(&iam.DetachRolePolicyOutput{}, nil) From 94783cb66f9e3bee5d1145cce1da3983590133d2 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 14 Jul 2023 15:32:56 -0600 Subject: [PATCH 027/617] update(configservice-configrules): update filter --- resources/configservice-configrules.go | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/resources/configservice-configrules.go b/resources/configservice-configrules.go index 1246fdb8..6d618942 100644 --- a/resources/configservice-configrules.go +++ b/resources/configservice-configrules.go @@ -1,6 +1,8 @@ package resources import ( + "fmt" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/configservice" ) @@ -8,6 +10,7 @@ import ( type ConfigServiceConfigRule struct { svc *configservice.ConfigService configRuleName *string + createdBy *string } func init() { @@ -16,7 +19,7 @@ func init() { func ListConfigServiceConfigRules(sess *session.Session) ([]Resource, error) { svc := configservice.New(sess) - resources := []Resource{} + var resources []Resource params := &configservice.DescribeConfigRulesInput{} @@ -30,6 +33,7 @@ func ListConfigServiceConfigRules(sess *session.Session) ([]Resource, error) { resources = append(resources, &ConfigServiceConfigRule{ svc: svc, configRuleName: configRule.ConfigRuleName, + createdBy: configRule.CreatedBy, }) } @@ -43,6 +47,14 @@ func ListConfigServiceConfigRules(sess *session.Session) ([]Resource, error) { return resources, nil } +func (f *ConfigServiceConfigRule) Filter() error { + if aws.StringValue(f.createdBy) == "securityhub.amazonaws.com" { + return fmt.Errorf("cannot remove rule owned by securityhub.amazonaws.com") + } + + return nil +} + func (f *ConfigServiceConfigRule) Remove() error { _, err := f.svc.DeleteConfigRule(&configservice.DeleteConfigRuleInput{ From 869c85e218da25ec3b20d6bb513852d1e3cc20f3 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 20 Jul 2023 06:59:18 -0600 Subject: [PATCH 028/617] fix: ensure skip request is honored --- resources/iam-account-setting-password-policy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/iam-account-setting-password-policy.go b/resources/iam-account-setting-password-policy.go index 69de3fee..7336d184 100644 --- a/resources/iam-account-setting-password-policy.go +++ b/resources/iam-account-setting-password-policy.go @@ -30,10 +30,10 @@ func ListIAMAccountSettingPasswordPolicy(sess *session.Session) ([]Resource, err return nil, nil case iam.ErrCodeServiceFailureException: return nil, aerr - default: - return nil, aerr } } + + return nil, err } resources = append(resources, &IAMAccountSettingPasswordPolicy{ From ca3cedfc3b3585e6755dabcf6a15e092adec9bd0 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 20 Jul 2023 06:59:46 -0600 Subject: [PATCH 029/617] chores: cleanup --- pkg/awsutil/session.go | 2 +- resources/iam-roles.go | 4 ++-- resources/iam-users.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/awsutil/session.go b/pkg/awsutil/session.go index b2bfd2dc..f420df77 100644 --- a/pkg/awsutil/session.go +++ b/pkg/awsutil/session.go @@ -83,7 +83,7 @@ func (c *Credentials) rootSession() (*session.Session, error) { }, } case c.HasProfile() && c.HasKeys(): - return nil, fmt.Errorf("You have to specify a profile or credentials for at least one region.") + return nil, fmt.Errorf("you have to specify a profile or credentials for at least one region") case c.HasKeys(): opts = session.Options{ diff --git a/resources/iam-roles.go b/resources/iam-roles.go index 18ce4237..c2c4dceb 100644 --- a/resources/iam-roles.go +++ b/resources/iam-roles.go @@ -92,9 +92,9 @@ func (e *IAMRole) Remove() error { return nil } -func (role *IAMRole) Properties() types.Properties { +func (e *IAMRole) Properties() types.Properties { properties := types.NewProperties() - for _, tagValue := range role.tags { + for _, tagValue := range e.tags { properties.SetTag(tagValue.Key, tagValue.Value) } diff --git a/resources/iam-users.go b/resources/iam-users.go index cd95205f..959b1443 100644 --- a/resources/iam-users.go +++ b/resources/iam-users.go @@ -28,7 +28,7 @@ func GetIAMUser(svc *iam.IAM, userName *string) (*iam.User, error) { func ListIAMUsers(sess *session.Session) ([]Resource, error) { svc := iam.New(sess) - resources := []Resource{} + var resources []Resource err := svc.ListUsersPages(nil, func(page *iam.ListUsersOutput, lastPage bool) bool { for _, out := range page.Users { From fedbefbc27fcd4d95a6730b1f82246965dca0891 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 24 Oct 2023 12:17:10 -0600 Subject: [PATCH 030/617] fix: nil pointer (#15) --- resources/route53-resolver-rules.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/route53-resolver-rules.go b/resources/route53-resolver-rules.go index ad6e0dd0..8345dd23 100644 --- a/resources/route53-resolver-rules.go +++ b/resources/route53-resolver-rules.go @@ -2,6 +2,7 @@ package resources import ( "fmt" + "github.com/aws/smithy-go/ptr" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/route53resolver" @@ -100,7 +101,7 @@ func resolverRulesToVpcIDs(svc *route53resolver.Route53Resolver) (map[string][]* // Filter removes resources automatically from being nuked func (r *Route53ResolverRule) Filter() error { - if *r.domainName == "." { + if r.domainName != nil && ptr.ToString(r.domainName) == "." { return fmt.Errorf(`Filtering DomainName "."`) } From 5bb93f96af4b86087e4b8d9eca5efda1cca68bf8 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 24 Oct 2023 12:23:13 -0600 Subject: [PATCH 031/617] fix: go.mod/go.sum --- go.mod | 1 + go.sum | 3 +++ 2 files changed, 4 insertions(+) diff --git a/go.mod b/go.mod index 54bfce85..20c924e2 100644 --- a/go.mod +++ b/go.mod @@ -5,6 +5,7 @@ go 1.19 require ( github.com/Masterminds/sprig v2.22.0+incompatible github.com/aws/aws-sdk-go v1.44.225 + github.com/aws/smithy-go v1.13.5 github.com/fatih/color v1.15.0 github.com/golang/mock v1.6.0 github.com/google/uuid v1.3.0 diff --git a/go.sum b/go.sum index b0720c05..c9f60316 100644 --- a/go.sum +++ b/go.sum @@ -6,6 +6,8 @@ github.com/Masterminds/sprig v2.22.0+incompatible h1:z4yfnGrZ7netVz+0EDJ0Wi+5VZC github.com/Masterminds/sprig v2.22.0+incompatible/go.mod h1:y6hNFY5UBTIWBxnzTeuNhlNS5hqE0NB0E6fgfo2Br3o= github.com/aws/aws-sdk-go v1.44.225 h1:JNJpUg+M1cm4jtKnyex//Mw1Rv8QN/kWT3dtr+oLdW4= github.com/aws/aws-sdk-go v1.44.225/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= +github.com/aws/smithy-go v1.13.5 h1:hgz0X/DX0dGqTYpGALqXJoRKRj5oQ7150i5FdTePzO8= +github.com/aws/smithy-go v1.13.5/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -17,6 +19,7 @@ github.com/gemnasium/logrus-graylog-hook/v3 v3.1.0 h1:SLtCnpI5ZZaz4l7RSatEhppB1B github.com/gemnasium/logrus-graylog-hook/v3 v3.1.0/go.mod h1:wi1zWv9tIvyLSMLCAzgRP+YR24oLVQVBHfPPKjtht44= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= +github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/huandu/xstrings v1.4.0 h1:D17IlohoQq4UcpqD7fDk80P7l+lwAmlFaBHgOipl2FU= From 227615068ceb84e9ce546347add6204d662c285c Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 26 Oct 2023 13:57:14 -0600 Subject: [PATCH 032/617] fix: exclude system defined r53 resolver rules --- resources/route53-resolver-rules.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/route53-resolver-rules.go b/resources/route53-resolver-rules.go index 8345dd23..5c3114d1 100644 --- a/resources/route53-resolver-rules.go +++ b/resources/route53-resolver-rules.go @@ -3,6 +3,7 @@ package resources import ( "fmt" "github.com/aws/smithy-go/ptr" + "strings" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/route53resolver" @@ -105,6 +106,10 @@ func (r *Route53ResolverRule) Filter() error { return fmt.Errorf(`Filtering DomainName "."`) } + if r.id != nil && strings.HasPrefix(ptr.ToString(r.id), "rslvr-autodefined-rr") { + return fmt.Errorf("cannot delete system defined rules") + } + return nil } From cd21b0f2b2a3dfb874a23381a810c5a0c2760b52 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 29 Dec 2023 16:51:30 -0700 Subject: [PATCH 033/617] fix: better root mfa detection --- resources/iam-virtual-mfa-devices.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/resources/iam-virtual-mfa-devices.go b/resources/iam-virtual-mfa-devices.go index cb4fe48f..e5546064 100644 --- a/resources/iam-virtual-mfa-devices.go +++ b/resources/iam-virtual-mfa-devices.go @@ -2,6 +2,8 @@ package resources import ( "errors" + "fmt" + "github.com/aws/smithy-go/ptr" "strings" "github.com/aws/aws-sdk-go/aws" @@ -12,6 +14,8 @@ import ( type IAMVirtualMFADevice struct { svc iamiface.IAMAPI + userId *string + userArn *string userName string serialNumber string } @@ -32,6 +36,8 @@ func ListIAMVirtualMFADevices(sess *session.Session) ([]Resource, error) { for _, out := range resp.VirtualMFADevices { resources = append(resources, &IAMVirtualMFADevice{ svc: svc, + userId: out.User.UserId, + userArn: out.User.Arn, userName: *out.User.UserName, serialNumber: *out.SerialNumber, }) @@ -41,9 +47,18 @@ func ListIAMVirtualMFADevices(sess *session.Session) ([]Resource, error) { } func (v *IAMVirtualMFADevice) Filter() error { + isRoot := false + if ptr.ToString(v.userArn) == fmt.Sprintf("arn:aws:iam::%s:root", ptr.ToString(v.userId)) { + isRoot = true + } if strings.HasSuffix(v.serialNumber, "/root-account-mfa-device") { + isRoot = true + } + + if isRoot { return errors.New("cannot delete root mfa device") } + return nil } From aa4191cc381add90fe5b31885a6f65755f811cc7 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 15 Jan 2024 20:06:01 -0700 Subject: [PATCH 034/617] version 3 (#16) * initial rewrite of aws-nuke using libnuke * fix: gitignore * fix: add missing workflows * fix: disable push for branches * fix: do not run goreleaser on prs by default * fix: say yes to all cosign prompts * fix: the tags in which goreleaser builds * fix: goreleaser config * version: 3.0.0-beta.1 * fix: Dockerfile BREAKING CHANGE: tool requires a subcommand to run properly --- .github/dependabot.yml | 11 - .github/release-drafter.yml | 53 + .github/workflows/docs.yaml | 60 + .github/workflows/golang.yaml | 32 - .github/workflows/release-drafter.yaml | 24 + .github/workflows/release.yaml | 53 - .github/workflows/release.yml | 87 + .github/workflows/tests.yml | 20 + .gitignore | 13 +- .goreleaser.yml | 11 +- Dockerfile | 20 + Dockerfile.goreleaser | 9 - LICENSE | 22 +- Makefile | 9 +- README.md | 658 +- cmd/log.go | 62 - cmd/nuke.go | 318 - cmd/params.go | 29 - cmd/queue.go | 122 - cmd/root.go | 206 - cmd/scan.go | 88 - cmd/util_test.go | 95 - cmd/version.go | 35 - config.yml | 0 config/custom-example.yaml | 62 - config/example.yaml | 51 - docs/auth.md | 25 + docs/custom-endpoints.md | 87 + docs/development.md | 19 + docs/filtering.md | 284 + docs/index.md | 27 + docs/installation.md | 36 + docs/quick-start.md | 135 + docs/releases.md | 8 + docs/resources.md | 104 + docs/testing.md | 20 + docs/warning.md | 31 + go.mod | 49 +- go.sum | 121 +- golang.mk | 92 - main.go | 39 +- mkdocs.yml | 68 + mocks/mock_cloudformationiface/mock.go | 4189 ++++++++ mocks/mock_iamiface/mock.go | 9045 +++++++++++++++++ pkg/awsutil/account.go | 4 +- pkg/awsutil/errors.go | 13 - pkg/awsutil/session.go | 20 +- pkg/awsutil/util.go | 18 +- pkg/awsutil/util_test.go | 2 +- pkg/commands/global/global.go | 67 + pkg/commands/list/list.go | 36 + pkg/commands/nuke/command.go | 200 + pkg/common/commands.go | 24 + pkg/common/version.go | 32 + pkg/config/config.go | 65 +- pkg/config/config_test.go | 77 +- pkg/config/filter.go | 130 - pkg/config/filter_test.go | 102 - .../test-fixtures/deprecated-keys-config.yaml | 3 - pkg/config/test-fixtures/example.yaml | 45 - .../testdata/deprecated-keys-config.yaml | 3 + pkg/config/testdata/example.yaml | 45 + pkg/nuke/cloudcontrol.go | 23 + pkg/nuke/nuke.go | 69 + {cmd => pkg/nuke}/region.go | 6 +- pkg/nuke/resource.go | 27 + cmd/util.go => pkg/nuke/utils.go | 33 +- pkg/types/collection.go | 50 - pkg/types/collection_test.go | 50 - pkg/types/properties.go | 122 - pkg/types/properties_test.go | 163 - pkg/util/indent.go | 18 - pkg/util/unique_id.go | 25 - resources/accessanalyzer-analyzers.go | 34 +- resources/accessanalyzer-archiverules.go | 78 +- resources/acm-certificates.go | 40 +- resources/acmpca-certificateauthorities.go | 44 +- .../acmpca-certificateauthoritystates.go | 43 +- resources/apigateway-apikeys.go | 36 +- resources/apigateway-clientcertificates.go | 34 +- resources/apigateway-domainnames.go | 33 +- resources/apigateway-restapis.go | 34 +- resources/apigateway-usageplans.go | 36 +- resources/apigateway-vpclinks.go | 37 +- resources/apigatewayv2-apis.go | 43 +- ...-vpclinks.go => apigatewayv2-vpc-links.go} | 39 +- ...pplicationautoscaling-scalable-targets.go} | 44 +- resources/appmesh-gatewayroute.go | 40 +- resources/appmesh-mesh.go | 36 +- resources/appmesh-route.go | 40 +- resources/appmesh-virtualgateway.go | 38 +- resources/appmesh-virtualnode.go | 39 +- resources/appmesh-virtualrouter.go | 29 +- resources/appmesh-virtualservice.go | 29 +- resources/appstream-directoryconfigs.go | 28 +- resources/appstream-fleets.go | 27 +- resources/appstream-fleetstates.go | 27 +- resources/appstream-imagebuilders.go | 28 +- resources/appstream-imagebuilderwaiters.go | 27 +- resources/appstream-images.go | 28 +- .../appstream-stack-fleet-attachments.go | 29 +- resources/appstream-stacks.go | 27 +- resources/appsync-graphqlapis.go | 44 +- resources/athena-named-queries.go | 30 +- resources/athena-work-groups.go | 36 +- resources/autoscaling-groups.go | 29 +- .../autoscaling-launch-configurations.go | 72 + resources/autoscaling-launchconfigurations.go | 55 - ...ooks.go => autoscaling-lifecycle-hooks.go} | 30 +- resources/autoscalingplans-scalingplans.go | 36 +- resources/backup-plans.go | 32 +- resources/backup-recovery-points.go | 34 +- resources/backup-selections.go | 40 +- resources/backup-vaults-access-policies.go | 26 +- resources/backup-vaults.go | 34 +- ...go => batch-compute-environment-states.go} | 40 +- ...ments.go => batch-compute-environments.go} | 36 +- ...euestates.go => batch-job-queue-states.go} | 27 +- ...batch-jobqueues.go => batch-job-queues.go} | 35 +- resources/billing-costandusagereports.go | 39 +- resources/budgets.go | 44 +- resources/cloud9-environments.go | 28 +- resources/cloudcontrol.go | 122 +- resources/cloudcontrol_test.go | 19 +- resources/clouddirectory-directories.go | 35 +- resources/clouddirectory-schemas.go | 35 +- resources/cloudformation-stack.go | 93 +- resources/cloudformation-stack_test.go | 48 +- resources/cloudformation-stackset.go | 30 +- resources/cloudformation-stackset_test.go | 15 +- resources/cloudformation-type.go | 35 +- resources/cloudformation-type_test.go | 11 +- ...=> cloudfront-distribution-deployments.go} | 32 +- resources/cloudfront-distributions.go | 47 +- resources/cloudfront-function.go | 39 +- resources/cloudfront-origin-access-control.go | 37 +- .../cloudfront-origin-access-identities.go | 97 +- resources/cloudhsmv2-cluster.go | 34 +- resources/cloudhsmv2-clusterhsms.go | 36 +- resources/cloudsearch-domains.go | 34 +- resources/cloudtrail-trails.go | 29 +- resources/cloudwatch-alarms.go | 38 +- resources/cloudwatch-dashboards.go | 34 +- resources/cloudwatchevents-buses.go | 27 +- resources/cloudwatchevents-rules.go | 28 +- resources/cloudwatchevents-targets.go | 29 +- resources/cloudwatchlogs-destinations.go | 34 +- resources/cloudwatchlogs-loggroups.go | 40 +- resources/cloudwatchlogs-resourcepolicy.go | 36 +- resources/codeartifact-domains.go | 39 +- resources/codeartifact-repositories.go | 41 +- resources/codebuild-projects.go | 38 +- resources/codecommit-repositories.go | 36 +- resources/codedeploy-applications.go | 34 +- resources/codepipeline-pipelines.go | 34 +- resources/codestar-connections.go | 49 +- resources/codestar-notifications.go | 42 +- resources/codestar-projects.go | 34 +- resources/cognito-identity-providers.go | 48 +- resources/cognito-identitypools.go | 27 +- resources/cognito-userpool-clients.go | 48 +- resources/cognito-userpool-domains.go | 45 +- resources/cognito-userpools.go | 41 +- ...r.go => comprehend-document-classifier.go} | 32 +- ...rehend-dominant-language-detection-job.go} | 29 +- ...end_endpoint.go => comprehend-endpoint.go} | 29 +- ...o => comprehend-entities-detection-job.go} | 29 +- ...zer.go => comprehend-entity-recognizer.go} | 32 +- ...> comprehend-key-phrases-detection-job.go} | 29 +- ... => comprehend-sentiment-detection-job.go} | 29 +- resources/configservice-configrules.go | 39 +- .../configservice-configurationrecorders.go | 36 +- resources/configservice-deliverychannels.go | 34 +- .../databasemigrationservice-certificates.go | 34 +- .../databasemigrationservice-endpoints.go | 34 +- ...basemigrationservice-eventsubscriptions.go | 34 +- ...semigrationservice-replicationinstances.go | 34 +- ...tabasemigrationservice-replicationtasks.go | 34 +- .../databasemigrationservice-subnetgroups.go | 34 +- resources/datapipeline-pipelines.go | 34 +- resources/dax-clusters.go | 38 +- resources/dax-parametergroups.go | 28 +- resources/dax-subnetgroups.go | 41 +- resources/devicefarm-projects.go | 34 +- resources/directoryservice-directories.go | 34 +- resources/dynamodb-items.go | 49 +- resources/dynamodb-tables.go | 61 +- ... => ec2-client-vpn-endpoint-attachment.go} | 43 +- resources/ec2-client-vpn-endpoint.go | 42 +- ...er-gateways.go => ec2-customer-gateway.go} | 36 +- resources/ec2-default-security-group-rules.go | 41 +- resources/ec2-dhcp-options.go | 49 +- .../ec2-egress-only-internet-gateways.go | 41 +- resources/ec2-eip.go | 47 +- resources/{ec2-hosts.go => ec2-host.go} | 40 +- resources/{ec2-images.go => ec2-image.go} | 43 +- .../{ec2-instances.go => ec2-instance.go} | 68 +- resources/ec2-internet-gateway-attachments.go | 48 +- resources/ec2-internet-gateways.go | 42 +- resources/ec2-key-pairs.go | 39 +- resources/ec2-launch-templates.go | 43 +- resources/ec2-nat-gateways.go | 40 +- resources/ec2-network-acls.go | 57 +- resources/ec2-network-interfaces.go | 56 +- resources/ec2-placement-groups.go | 37 +- resources/ec2-route-tables.go | 72 +- resources/ec2-security-groups.go | 49 +- resources/ec2-snapshots.go | 41 +- resources/ec2-spot-fleet-requests.go | 37 +- resources/ec2-subnets.go | 46 +- resources/ec2-tgw-attachments.go | 38 +- resources/ec2-tgw.go | 41 +- resources/ec2-volume.go | 33 +- resources/ec2-vpc-endpoint-connections.go | 45 +- ...ec2-vpc-endpoint-service-configurations.go | 38 +- ...ec2-vpcEndpoint.go => ec2-vpc-endpoint.go} | 50 +- resources/ec2-vpc-peering-connections.go | 39 +- resources/ec2-vpc.go | 100 +- resources/ec2-vpn-connections.go | 40 +- resources/ec2-vpn-gateway-attachments.go | 44 +- resources/ec2-vpn-gateways.go | 39 +- resources/ecr-public-repository.go | 105 + resources/ecr-repository.go | 42 +- resources/ecs-clusterinstances.go | 38 +- resources/ecs-clusters.go | 34 +- resources/ecs-services.go | 36 +- resources/ecs-taskdefinitions.go | 34 +- resources/ecs-tasks.go | 42 +- resources/efs-filesystem.go | 41 +- resources/efs-mount-targets.go | 47 +- resources/eks-clusters.go | 38 +- resources/eks-fargate.go | 40 +- resources/eks-nodegroups.go | 39 +- resources/elasticache-cacheparametergroups.go | 41 +- ...ter.go => elasticache-memcacheclusters.go} | 43 +- resources/elasticache-replicationgroups.go | 35 +- resources/elasticache-subnetgroups.go | 35 +- resources/elasticbeanstalk-applications.go | 34 +- resources/elasticbeanstalk-environments.go | 38 +- resources/elasticsearchservice-domain.go | 38 +- resources/elastictranscoder-pipelines.go | 34 +- resources/elb-elb.go | 43 +- resources/elbv2-alb.go | 56 +- resources/elbv2-targetgroup.go | 45 +- resources/emr-clusters.go | 64 +- resources/emr-securityconfigurations.go | 36 +- resources/firehose-deliverystreams.go | 34 +- ...annels.go => fms-notification-channels.go} | 40 +- .../{fms_policies.go => fms-policies.go} | 36 +- resources/fsx-backups.go | 37 +- resources/fsx-filesystems.go | 37 +- resources/ga-accelerators.go | 30 +- resources/ga-endpoints.go | 61 +- resources/ga-listeners.go | 59 +- resources/glue-classifiers.go | 34 +- resources/glue-connections.go | 34 +- resources/glue-crawlers.go | 34 +- resources/glue-databases.go | 34 +- resources/glue-devendpoints.go | 34 +- resources/glue-jobs.go | 34 +- resources/glue-triggers.go | 35 +- resources/gluedatabrew-datasets.go | 35 +- resources/gluedatabrew-jobs.go | 35 +- resources/gluedatabrew-projects.go | 35 +- resources/gluedatabrew-recipe.go | 41 +- resources/gluedatabrew-rulesets.go | 35 +- resources/gluedatabrew-schedules.go | 35 +- resources/guardduty.go | 49 +- .../iam-account-setting-password-policy.go | 41 +- resources/iam-group-policies.go | 36 +- resources/iam-group-policies_mock_test.go | 11 +- resources/iam-group-policy-attachments.go | 41 +- .../iam-group-policy-attachments_mock_test.go | 11 +- resources/iam-groups.go | 78 +- resources/iam-groups_mock_test.go | 11 +- .../iam-instance-profile-role_mock_test.go | 19 +- resources/iam-instance-profile-roles.go | 46 +- resources/iam-instance-profiles.go | 58 +- resources/iam-instance-profiles_mock_test.go | 12 +- resources/iam-login-profiles.go | 51 +- resources/iam-login-profiles_mock_test.go | 11 +- resources/iam-open-id-connect-provider.go | 45 +- .../iam-open-id-connect-provider_mock_test.go | 11 +- resources/iam-policies.go | 136 +- resources/iam-policies_mock_test.go | 13 +- resources/iam-role-policy-attachments.go | 118 +- .../iam-role-policy-attachments_mock_test.go | 11 +- resources/iam-role-policy.go | 105 +- resources/iam-role-policy_mock_test.go | 11 +- resources/iam-roles.go | 129 +- resources/iam-roles_mock_test.go | 11 +- resources/iam-saml-provider.go | 33 +- resources/iam-saml-provider_mock_test.go | 9 +- resources/iam-server-certificate.go | 35 +- resources/iam-server-certificate_mock_test.go | 9 +- resources/iam-service-specific-credentials.go | 49 +- ...-service-specific-credentials_mock_test.go | 11 +- ...ificates.go => iam-signing-certificate.go} | 45 +- .../iam-signing-certificate_mock_test.go | 11 +- ...-access-keys.go => iam-user-access-key.go} | 88 +- resources/iam-user-access-key_mock_test.go | 11 +- resources/iam-user-group-attachments.go | 76 +- .../iam-user-group-attachments_mock_test.go | 11 +- resources/iam-user-https-git-credential.go | 106 + ...ments.go => iam-user-policy-attachment.go} | 88 +- .../iam-user-policy-attachment_mock_test.go | 12 +- resources/iam-user-policy.go | 63 +- resources/iam-user-policy_mock_test.go | 11 +- resources/iam-user-ssh-keys.go | 38 +- resources/iam-user-ssh-keys_mock_test.go | 11 +- resources/iam-users.go | 100 +- resources/iam-users_mock_test.go | 12 +- resources/iam-users_test.go | 52 + resources/iam-virtual-mfa-devices.go | 43 +- .../iam-virtual-mfa-devices_mock_test.go | 11 +- resources/imagebuilder-components.go | 39 +- ...magebuilder-distribution-configurations.go | 37 +- resources/imagebuilder-images.go | 39 +- ...gebuilder-infrastructure-configurations.go | 37 +- resources/imagebuilder-pipelines.go | 37 +- resources/imagebuilder-recipes.go | 37 +- resources/inspector-assessment-runs.go | 35 +- resources/inspector-assessment-targets.go | 35 +- resources/inspector-assessment-templates.go | 35 +- resources/inspector2.go | 35 +- resources/interface.go | 96 - resources/iot-authorizers.go | 34 +- resources/iot-cacertificates.go | 34 +- resources/iot-certificates.go | 34 +- resources/iot-jobs.go | 37 +- resources/iot-otaupdates.go | 34 +- resources/iot-policies.go | 125 +- resources/iot-rolealiases.go | 34 +- resources/iot-streams.go | 34 +- resources/iot-thinggroups.go | 38 +- resources/iot-things.go | 69 +- resources/iot-thingtypes.go | 34 +- resources/iot-thingtypestates.go | 58 +- resources/iot-topicrules.go | 34 +- resources/kendra-indexes.go | 39 +- resources/kinesis-streams.go | 36 +- resources/kinesisanalytics-streams.go | 36 +- resources/kinesisvideo-streams.go | 34 +- resources/kms-aliases.go | 41 +- resources/kms-keys.go | 60 +- resources/kms-keys_test.go | 67 + resources/lambda-event-source-mapping.go | 38 +- resources/lambda-functions.go | 40 +- resources/lambda-layers.go | 46 +- resources/lex-bot.go | 38 +- resources/lex-intent.go | 36 +- .../lex-model-building-service-bot-alias.go | 41 +- resources/lex-slot-types.go | 36 +- resources/lightsail-disks.go | 34 +- resources/lightsail-domains.go | 38 +- resources/lightsail-instances.go | 53 +- resources/lightsail-keypairs.go | 34 +- resources/lightsail-loadbalancers.go | 38 +- resources/lightsail-staticips.go | 34 +- resources/machinelearning-batchpredictions.go | 34 +- resources/machinelearning-datasources.go | 34 +- resources/machinelearning-evaluations.go | 34 +- resources/machinelearning-mlmodels.go | 34 +- resources/macie2.go | 33 +- resources/managedgrafana-workspaces.go | 39 +- resources/mediaconvert-jobtemplates.go | 38 +- resources/mediaconvert-presets.go | 38 +- resources/mediaconvert-queues.go | 38 +- resources/medialive-channels.go | 34 +- resources/medialive-inputs.go | 34 +- resources/medialive-inputsecuritygroups.go | 34 +- resources/mediapackage-channels.go | 34 +- resources/mediapackage-originendpoints.go | 34 +- resources/mediastore-containers.go | 34 +- resources/mediastoredata-items.go | 39 +- resources/mediatailor-configurations.go | 34 +- resources/mgn-jobs.go | 49 +- ...ource_servers.go => mgn-source-servers.go} | 49 +- resources/mobile-projects.go | 34 +- resources/mq-broker.go | 34 +- resources/msk-cluster.go | 41 +- resources/msk-configuration.go | 39 +- resources/neptune-clusters.go | 34 +- resources/neptune-instances.go | 34 +- resources/neptune-snapshots.go | 38 +- resources/opensearchservice-domain.go | 41 +- resources/opsworks-apps.go | 34 +- resources/opsworks-instances.go | 34 +- resources/opsworks-layers.go | 34 +- resources/opsworks-userprofiles.go | 43 +- resources/opsworkscm-backups.go | 34 +- resources/opsworkscm-servers.go | 36 +- resources/opsworkscm-serverstates.go | 37 +- resources/prometheusservice-workspace.go | 42 +- resources/{qldb_ledger.go => qldb-ledger.go} | 57 +- resources/rds-cluster-snapshots.go | 38 +- resources/rds-clusters.go | 64 +- resources/rds-dbclusterparametergroups.go | 54 +- resources/rds-dbparametergroups.go | 42 +- resources/rds-event-subscriptions.go | 34 +- resources/rds-instances.go | 52 +- resources/rds-optiongroups.go | 38 +- resources/rds-proxies.go | 36 +- resources/rds-snapshots.go | 38 +- resources/rds-subnets.go | 56 +- resources/redshift-clusters.go | 37 +- resources/redshift-parametergroups.go | 34 +- resources/redshift-snapshots.go | 38 +- resources/redshift-subnetgroups.go | 36 +- resources/rekognition-collection.go | 34 +- resources/resource-explorer2-indexes.go | 30 +- resources/resource-explorer2-views.go | 30 +- resources/resourcegroups-groups.go | 34 +- resources/robomaker-robot-applications.go | 38 +- .../robomaker-simulation-applications.go | 39 +- resources/robomaker-simulation-jobs.go | 54 +- resources/route53-health-checks.go | 29 +- resources/route53-hosted-zones.go | 29 +- resources/route53-resolver-endpoints.go | 43 +- resources/route53-resolver-rules.go | 55 +- resources/route53-resource-records.go | 54 +- resources/route53-traffic-policies.go | 43 +- resources/s3-access-points.go | 45 +- resources/s3-buckets.go | 58 +- resources/s3-multipart-uploads.go | 40 +- resources/s3-objects.go | 50 +- resources/sagemaker-apps.go | 55 +- resources/sagemaker-domain.go | 41 +- resources/sagemaker-endpointconfigs.go | 34 +- resources/sagemaker-endpoints.go | 34 +- resources/sagemaker-models.go | 34 +- ...aker-notebook-instancelifecycleconfigs.go} | 37 +- ...ces.go => sagemaker-notebook-instances.go} | 35 +- ...o => sagemaker-notebook-instancestates.go} | 37 +- resources/sagemaker-userprofiles.go | 45 +- resources/secretsmanager-secrets.go | 38 +- resources/securityhub-hub.go | 40 +- ...alog-portfolio-constraints-attachments.go} | 50 +- ...atalog-portfolio-principal-attachments.go} | 45 +- ...ecatalog-portfolio-product-attachments.go} | 44 +- ...icecatalog-portfolio-share-attachments.go} | 42 +- ...talog-portfolio-tagoptions-attachements.go | 54 +- resources/servicecatalog-portfolios.go | 40 +- resources/servicecatalog-products.go | 38 +- .../servicecatalog-provisionedproducts.go | 42 +- resources/servicecatalog-tagoptions.go | 48 +- resources/servicediscovery-instances.go | 38 +- resources/servicediscovery-namespaces.go | 34 +- resources/servicediscovery-services.go | 34 +- resources/ses-configurationsets.go | 34 +- resources/ses-identities.go | 34 +- resources/ses-receiptfilters.go | 49 +- resources/ses-receiptrulesets.go | 67 +- resources/ses-templates.go | 34 +- resources/sfn-statemachines.go | 34 +- ...r.signingjobs.go => signer-signingjobs.go} | 55 +- resources/simpledb-domains.go | 34 +- resources/sns-endpoints.go | 40 +- resources/sns-platformapplications.go | 38 +- resources/sns-subscriptions.go | 27 +- resources/sns-topics.go | 39 +- resources/sqs-queues.go | 38 +- resources/ssm-activations.go | 35 +- resources/ssm-associations.go | 36 +- resources/ssm-documents.go | 34 +- resources/ssm-maintenancewindows.go | 34 +- resources/ssm-parameters.go | 38 +- resources/ssm-patchbaselines.go | 37 +- resources/ssm-resourcedatasyncs.go | 34 +- resources/storagegateway-fileshares.go | 34 +- resources/storagegateway-gateways.go | 34 +- resources/storagegateway-tapes.go | 36 +- resources/storagegateway-volumes.go | 35 +- resources/transfer-server-user.go | 40 +- resources/transfer-server.go | 44 +- resources/util.go | 38 - resources/waf-rules.go | 40 +- ...ents.go => waf-webacl-rule-attachments.go} | 47 +- resources/waf-webacls.go | 34 +- .../wafregional-byte-match-set-tuples.go | 45 +- resources/wafregional-byte-match-sets.go | 39 +- resources/wafregional-ip-set-ips.go | 45 +- resources/wafregional-ip-sets.go | 39 +- .../wafregional-rate-based-rule-predicates.go | 41 +- resources/wafregional-rate-based-rules.go | 34 +- resources/wafregional-regex-match-sets.go | 39 +- resources/wafregional-regex-match-tuples.go | 45 +- resources/wafregional-regex-pattern-sets.go | 39 +- resources/wafregional-regex-pattern-tuples.go | 45 +- resources/wafregional-rule-predicates.go | 39 +- resources/wafregional-rulegroup.go | 38 +- resources/wafregional-rules.go | 43 +- .../wafregional-webacl-rule-attachments.go | 45 +- resources/wafregional-webacls.go | 29 +- resources/wafv2-ipsets.go | 54 +- resources/wafv2-regex-pattern-sets.go | 54 +- resources/wafv2-rulegroup.go | 54 +- resources/wafv2-webacls.go | 54 +- resources/workspaces-workspaces.go | 36 +- resources/xray-group.go | 39 +- ...-samplingrule.go => xray-sampling-rule.go} | 39 +- tools/compare-resources/main.go | 113 + tools/create-resource/main.go | 100 + tools/gen-mock-test/main.go | 105 - {dev => tools}/list-cloudcontrol/main.go | 14 +- tools/migrate-resource/main.go | 111 + tools/tools.go | 8 - 507 files changed, 27326 insertions(+), 8394 deletions(-) delete mode 100644 .github/dependabot.yml create mode 100644 .github/release-drafter.yml create mode 100644 .github/workflows/docs.yaml delete mode 100644 .github/workflows/golang.yaml create mode 100644 .github/workflows/release-drafter.yaml delete mode 100644 .github/workflows/release.yaml create mode 100644 .github/workflows/release.yml create mode 100644 .github/workflows/tests.yml create mode 100644 Dockerfile delete mode 100644 Dockerfile.goreleaser delete mode 100644 cmd/log.go delete mode 100644 cmd/nuke.go delete mode 100644 cmd/params.go delete mode 100644 cmd/queue.go delete mode 100644 cmd/root.go delete mode 100644 cmd/scan.go delete mode 100644 cmd/util_test.go delete mode 100644 cmd/version.go delete mode 100644 config.yml delete mode 100644 config/custom-example.yaml delete mode 100644 config/example.yaml create mode 100644 docs/auth.md create mode 100644 docs/custom-endpoints.md create mode 100644 docs/development.md create mode 100644 docs/filtering.md create mode 100644 docs/index.md create mode 100644 docs/installation.md create mode 100644 docs/quick-start.md create mode 100644 docs/releases.md create mode 100644 docs/resources.md create mode 100644 docs/testing.md create mode 100644 docs/warning.md delete mode 100644 golang.mk create mode 100644 mkdocs.yml create mode 100644 mocks/mock_cloudformationiface/mock.go create mode 100644 mocks/mock_iamiface/mock.go delete mode 100644 pkg/awsutil/errors.go create mode 100644 pkg/commands/global/global.go create mode 100644 pkg/commands/list/list.go create mode 100644 pkg/commands/nuke/command.go create mode 100644 pkg/common/commands.go create mode 100644 pkg/common/version.go delete mode 100644 pkg/config/filter.go delete mode 100644 pkg/config/filter_test.go delete mode 100644 pkg/config/test-fixtures/deprecated-keys-config.yaml delete mode 100644 pkg/config/test-fixtures/example.yaml create mode 100644 pkg/config/testdata/deprecated-keys-config.yaml create mode 100644 pkg/config/testdata/example.yaml create mode 100644 pkg/nuke/cloudcontrol.go create mode 100644 pkg/nuke/nuke.go rename {cmd => pkg/nuke}/region.go (92%) create mode 100644 pkg/nuke/resource.go rename cmd/util.go => pkg/nuke/utils.go (50%) delete mode 100644 pkg/types/collection.go delete mode 100644 pkg/types/collection_test.go delete mode 100644 pkg/types/properties.go delete mode 100644 pkg/types/properties_test.go delete mode 100644 pkg/util/indent.go delete mode 100644 pkg/util/unique_id.go rename resources/{apigatewayv2-vpclinks.go => apigatewayv2-vpc-links.go} (64%) rename resources/{applicationautoscalingscalabletargets.go => applicationautoscaling-scalable-targets.go} (67%) create mode 100644 resources/autoscaling-launch-configurations.go delete mode 100644 resources/autoscaling-launchconfigurations.go rename resources/{autoscaling-lifecyclehooks.go => autoscaling-lifecycle-hooks.go} (64%) rename resources/{batch-computeenvironmentstates.go => batch-compute-environment-states.go} (61%) rename resources/{batch-computeenvironments.go => batch-compute-environments.go} (58%) rename resources/{batch-jobqueuestates.go => batch-job-queue-states.go} (63%) rename resources/{batch-jobqueues.go => batch-job-queues.go} (58%) rename resources/{cloudfront-distributiondeployments.go => cloudfront-distribution-deployments.go} (67%) rename resources/{comprehend_document_classifier.go => comprehend-document-classifier.go} (75%) rename resources/{comprehend_dominant_language_detection_job.go => comprehend-dominant-language-detection-job.go} (65%) rename resources/{comprehend_endpoint.go => comprehend-endpoint.go} (61%) rename resources/{comprehend_entities_detection_job.go => comprehend-entities-detection-job.go} (67%) rename resources/{comprehend_entity_recognizer.go => comprehend-entity-recognizer.go} (74%) rename resources/{comprehend_key_phrases_detection_job.go => comprehend-key-phrases-detection-job.go} (64%) rename resources/{comprehend_sentiment_detection_job.go => comprehend-sentiment-detection-job.go} (67%) rename resources/{ec2-client-vpn-endpoint-attachments.go => ec2-client-vpn-endpoint-attachment.go} (66%) rename resources/{ec2-customer-gateways.go => ec2-customer-gateway.go} (59%) rename resources/{ec2-hosts.go => ec2-host.go} (70%) rename resources/{ec2-images.go => ec2-image.go} (65%) rename resources/{ec2-instances.go => ec2-instance.go} (72%) rename resources/{ec2-vpcEndpoint.go => ec2-vpc-endpoint.go} (55%) create mode 100644 resources/ecr-public-repository.go rename resources/{elasticache-memcachecluster.go => elasticache-memcacheclusters.go} (53%) rename resources/{fms_notification_channels.go => fms-notification-channels.go} (53%) rename resources/{fms_policies.go => fms-policies.go} (63%) rename resources/{iam-signing-certificates.go => iam-signing-certificate.go} (64%) rename resources/{iam-user-access-keys.go => iam-user-access-key.go} (69%) create mode 100644 resources/iam-user-https-git-credential.go rename resources/{iam-user-policy-attachments.go => iam-user-policy-attachment.go} (69%) create mode 100644 resources/iam-users_test.go delete mode 100644 resources/interface.go create mode 100644 resources/kms-keys_test.go rename resources/{mgn-source_servers.go => mgn-source-servers.go} (60%) rename resources/{qldb_ledger.go => qldb-ledger.go} (61%) rename resources/{sagemaker-notebookinstancelifecycleconfigs.go => sagemaker-notebook-instancelifecycleconfigs.go} (60%) rename resources/{sagemaker-notebookinstances.go => sagemaker-notebook-instances.go} (59%) rename resources/{sagemaker-notebookeinstancestates.go => sagemaker-notebook-instancestates.go} (64%) rename resources/{servicecatalog-portfolio-constraints-attachements.go => servicecatalog-portfolio-constraints-attachments.go} (65%) rename resources/{servicecatalog-portfolio-principal-attachements.go => servicecatalog-portfolio-principal-attachments.go} (68%) rename resources/{servicecatalog-portfolio-product-attachements.go => servicecatalog-portfolio-product-attachments.go} (71%) rename resources/{servicecatalog-portfolio-share-attachements.go => servicecatalog-portfolio-share-attachments.go} (68%) rename resources/{signer.signingjobs.go => signer-signingjobs.go} (79%) delete mode 100644 resources/util.go rename resources/{waf-webacl-rule-attachements.go => waf-webacl-rule-attachments.go} (62%) rename resources/{xray-samplingrule.go => xray-sampling-rule.go} (63%) create mode 100644 tools/compare-resources/main.go create mode 100644 tools/create-resource/main.go delete mode 100644 tools/gen-mock-test/main.go rename {dev => tools}/list-cloudcontrol/main.go (92%) create mode 100644 tools/migrate-resource/main.go delete mode 100644 tools/tools.go diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 31c447e7..00000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,11 +0,0 @@ -# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file - -version: 2 -updates: - - package-ecosystem: "gomod" - directory: "/" - schedule: - interval: "weekly" - day: "tuesday" - time: "10:00" - timezone: "Europe/Berlin" diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 00000000..9db74203 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,53 @@ +name-template: "v$RESOLVED_VERSION" +tag-template: "$RESOLVED_VERSION" +version-template: "$MAJOR.$MINOR.$PATCH" +version-resolver: + major: + labels: + - "major" + minor: + labels: + - "minor" + - "enhancement" + patch: + labels: + - "auto-update" + - "patch" + - "fix" + - "bugfix" + - "bug" + - "hotfix" + default: "minor" + +categories: + - title: "🚀 Enhancements" + labels: + - "enhancement" + - "patch" + - title: "🐛 Bug Fixes" + labels: + - "fix" + - "bugfix" + - "bug" + - "hotfix" + - title: "🤖 Automatic Updates" + labels: + - "auto-update" + +exclude-labels: + - "skip-changelog" + +change-template: | +
+ $TITLE @$AUTHOR (#$NUMBER) + $BODY +
+template: | + $CHANGES +replacers: + # Remove irrelevant information from Renovate bot + - search: '/---\s+^#.*Renovate configuration(?:.|\n)*?This PR has been generated .*/gm' + replace: "" + # Remove Renovate bot banner image + - search: '/\[!\[[^\]]*Renovate\][^\]]*\](\([^)]*\))?\s*\n+/gm' + replace: "" \ No newline at end of file diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml new file mode 100644 index 00000000..9a16bd25 --- /dev/null +++ b/.github/workflows/docs.yaml @@ -0,0 +1,60 @@ +name: docs + +on: + workflow_dispatch: + push: + branches: + - main + paths: + - docs/** + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + deploy: + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - uses: actions/checkout@v3 + - name: setup pages + uses: actions/configure-pages@v3 + - name: setup python + uses: actions/setup-python@v4 + with: + python-version: 3.x + - name: setup cache + run: | + echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV + - name: handle cache + uses: actions/cache@v3 + with: + key: mkdocs-material-${{ env.cache_id }} + path: .cache + restore-keys: | + mkdocs-material- + - name: install mkdocs material + run: | + pip install mkdocs-material + - name: run mkdocs material + run: | + mkdocs build + - name: upload artifact + uses: actions/upload-pages-artifact@v1 + with: + # Upload entire repository + path: public/ + - name: deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 diff --git a/.github/workflows/golang.yaml b/.github/workflows/golang.yaml deleted file mode 100644 index 2d2fc310..00000000 --- a/.github/workflows/golang.yaml +++ /dev/null @@ -1,32 +0,0 @@ -name: golang - -on: - push: - branches: - - main - pull_request: - branches: - - main - schedule: - - cron: "15 3 * * 0" - -jobs: - build: - name: Test and Build - runs-on: ubuntu-latest - steps: - - name: Setup Go - uses: actions/setup-go@v2 - with: - go-version: 1.19 - - name: Setup tools - run: | - go get golang.org/x/lint/golint - - name: Checkout code - uses: actions/checkout@v2 - - name: Test Project - run: | - make test - - name: Build Project - run: | - make diff --git a/.github/workflows/release-drafter.yaml b/.github/workflows/release-drafter.yaml new file mode 100644 index 00000000..98232a84 --- /dev/null +++ b/.github/workflows/release-drafter.yaml @@ -0,0 +1,24 @@ +name: release-drafter + +on: + push: + branches: + - main + paths-ignore: + - .github/** + - docs/** + +permissions: + contents: write + pull-requests: read + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@v5 + with: + publish: false + prerelease: true + env: + GITHUB_TOKEN: ${{ secrets.RELEASES_GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml deleted file mode 100644 index 16da47e7..00000000 --- a/.github/workflows/release.yaml +++ /dev/null @@ -1,53 +0,0 @@ -name: release - -on: - push: - tags: - - "v*" - -permissions: - contents: write - packages: write - -jobs: - goreleaser: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: 1.19 - - name: Set up QEMU - id: qemu - uses: docker/setup-qemu-action@v1 - - name: Set up Docker Buildx - id: buildx - uses: docker/setup-buildx-action@v1 - - name: Login to GitHub Container Registry - uses: docker/login-action@v1 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - name: Install Cosign - uses: sigstore/cosign-installer@main - with: - cosign-release: "v1.13.0" - - name: Setup Cosign - run: | - echo "${COSIGN_KEY}" > "$GITHUB_WORKSPACE/cosign.key" - env: - COSIGN_KEY: ${{ secrets.COSIGN_KEY }} - - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v2 - with: - distribution: goreleaser - version: latest - args: release --rm-dist - env: - GITHUB_TOKEN: ${{ secrets.RELEASES_GITHUB_TOKEN }} - COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..b4974126 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,87 @@ +name: goreleaser + +on: + #pull_request: + # branches: + # - main + push: + branches: + - main + tags: + - "*.*.*" + - "v*.*.*" + - "v*.*.*-*" + +permissions: + contents: write + packages: write + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + if: github.event_name == 'pull_request' + with: + fetch-depth: 0 + ref: ${{ github.event.pull_request.head.ref }} + - uses: actions/checkout@v3 + if: github.event_name == 'push' + with: + fetch-depth: 0 + - name: setup-go + uses: actions/setup-go@v4 + with: + go-version: 1.21.x + - name: setup qemu + id: qemu + uses: docker/setup-qemu-action@v2 + - name: setup docker buildx + id: buildx + uses: docker/setup-buildx-action@v2 + - name: Login to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: install cosign + uses: sigstore/cosign-installer@main + with: + cosign-release: "v2.0.1" + - name: setup cosign + run: | + echo "${COSIGN_KEY}" > "$GITHUB_WORKSPACE/cosign.key" + env: + COSIGN_KEY: ${{ secrets.COSIGN_KEY }} + - name: set goreleaser default args + if: startsWith(github.ref, 'refs/tags/') == true + run: | + echo "GORELEASER_ARGS=" >> $GITHUB_ENV + - name: set goreleaser args for branch + if: startsWith(github.ref, 'refs/tags/') == false + run: | + echo "GORELEASER_ARGS=--snapshot" >> $GITHUB_ENV + - name: set goreleaser args renovate + if: startsWith(github.ref, 'refs/heads/renovate') == true + run: | + echo "GORELEASER_ARGS=--snapshot --skip-publish" >> $GITHUB_ENV + - name: run goreleaser + uses: goreleaser/goreleaser-action@v4 + with: + distribution: goreleaser + version: latest + args: release --rm-dist ${{ env.GORELEASER_ARGS }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }} + - name: push docker images (for branches) + if: github.ref == 'refs/heads/main' || github.event.pull_request.base.ref == 'main' + run: | + docker images --format "{{.Repository}}:{{.Tag}}" | grep "ekristen/aws-nuke" | xargs -L1 docker push + - name: upload artifacts + if: github.event.pull_request.base.ref == 'main' + uses: actions/upload-artifact@v3 + with: + name: binaries + path: releases/*.tar.gz diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 00000000..fd5f5477 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,20 @@ +name: tests +on: + pull_request: + branches: + - main +jobs: + test: + name: test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 + with: + go-version: 1.21.x + - name: download go mods + run: | + go mod download + - name: run go tests + run: | + go test -timeout 60s -run ./... diff --git a/.gitignore b/.gitignore index e32b44cb..d9f9df1e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,8 @@ -/vendor -/aws-nuke -/aws-nuke-* -/dist -/releases -/mocks +releases .envrc .idea -config.yaml cosign.key -*-config.yaml \ No newline at end of file +/config*.yaml +/*-config.yaml +/config.*.yaml + diff --git a/.goreleaser.yml b/.goreleaser.yml index c0c5174b..78480ee7 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -44,10 +44,11 @@ dockers: - use: buildx goos: linux goarch: amd64 - dockerfile: Dockerfile.goreleaser + dockerfile: Dockerfile image_templates: - ghcr.io/ekristen/aws-nuke:v{{ .Version }}-amd64 build_flag_templates: + - "--target=goreleaser" - "--pull" - "--label=org.opencontainers.image.created={{.Date}}" - "--label=org.opencontainers.image.title={{.ProjectName}}" @@ -58,10 +59,11 @@ dockers: - use: buildx goos: linux goarch: arm64 - dockerfile: Dockerfile.goreleaser + dockerfile: Dockerfile image_templates: - ghcr.io/ekristen/aws-nuke:v{{ .Version }}-arm64 build_flag_templates: + - "--target=goreleaser" - "--pull" - "--label=org.opencontainers.image.created={{.Date}}" - "--label=org.opencontainers.image.title={{.ProjectName}}" @@ -73,10 +75,11 @@ dockers: goos: linux goarch: arm goarm: "7" - dockerfile: Dockerfile.goreleaser + dockerfile: Dockerfile image_templates: - ghcr.io/ekristen/aws-nuke:v{{ .Version }}-arm32v7 build_flag_templates: + - "--target=goreleaser" - "--pull" - "--label=org.opencontainers.image.created={{.Date}}" - "--label=org.opencontainers.image.title={{.ProjectName}}" @@ -95,7 +98,7 @@ signs: - cmd: cosign stdin: "{{ .Env.COSIGN_PASSWORD }}" args: - ["sign-blob", "--key=cosign.key", "--output=${signature}", "${artifact}"] + ["sign-blob", "--yes", "--key=cosign.key", "--output=${signature}", "${artifact}"] artifacts: all docker_signs: - artifacts: all diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..21a32fc2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +# syntax=docker/dockerfile:1.3-labs +FROM alpine:3.19.0 as base +RUN apk add --no-cache ca-certificates +RUN adduser -D aws-nuke + +FROM ghcr.io/acorn-io/images-mirror/golang:1.21 AS build +COPY / /src +WORKDIR /src +RUN \ + --mount=type=cache,target=/go/pkg \ + --mount=type=cache,target=/root/.cache/go-build \ + go build -o bin/aws-nuke main.go + +FROM base AS goreleaser +COPY aws-nuke /usr/local/bin/aws-nuke +USER aws-nuke + +FROM base +COPY --from=build /src/bin/aws-nuke /usr/local/bin/aws-nuke +USER aws-nuke \ No newline at end of file diff --git a/Dockerfile.goreleaser b/Dockerfile.goreleaser deleted file mode 100644 index 8d62175a..00000000 --- a/Dockerfile.goreleaser +++ /dev/null @@ -1,9 +0,0 @@ - -FROM alpine:3.14.3 -ENTRYPOINT ["/usr/local/bin/aws-nuke"] -RUN apk add --no-cache ca-certificates -RUN adduser -D aws-nuke - -COPY aws-nuke /usr/local/bin/aws-nuke - -USER aws-nuke diff --git a/LICENSE b/LICENSE index d18b51b6..440e09c2 100644 --- a/LICENSE +++ b/LICENSE @@ -1,10 +1,22 @@ The MIT License (MIT) -Copyright 2021 Erik Kristensen -Copyright 2016-2021 reBuy reCommerce GmbH +Copyright (c) 2016 reBuy reCommerce GmbH +Copyright (c) 2021 Erik Kristensen -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/Makefile b/Makefile index d79a9f82..2d28495a 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,8 @@ -PACKAGE=github.com/rebuy-de/aws-nuke +docs-build: + docker run --rm -it -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material build -include golang.mk +docs-serve: + docker run --rm -it -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material + +docs-seed: + cp README.md docs/index.md \ No newline at end of file diff --git a/README.md b/README.md index 712a45e5..70ed8efa 100644 --- a/README.md +++ b/README.md @@ -1,380 +1,79 @@ -# aws-nuke (managed fork) +# aws-nuke [![license](https://img.shields.io/github/license/ekristen/aws-nuke.svg)](https://github.com/ekristen/aws-nuke/blob/main/LICENSE) -[![GitHub release](https://img.shields.io/github/release/ekristen/aws-nuke.svg)](https://github.com/ekristen/aws-nuke/releases) +[![release](https://img.shields.io/github/release/ekristen/aws-nuke.svg)](https://github.com/ekristen/aws-nuke/releases) -Remove all resources from an AWS account. - -**Development Status** *aws-nuke* is stable, but it is likely that not all AWS -resources are covered by it. Be encouraged to add missing resources and create -a Pull Request or to create an [Issue](https://github.com/ekristen/aws-nuke/issues/new). - -## This is a Managed Fork - -**Important:** this is a full fork of the original tool written by the folks -over at [rebuy-de](https://github.com/rebuy-de). This fork became necessary after -attempting to make contributions and respond to issues to learn that the current -maintainers only have time to work on the project about once a month and while -receptive to bringing in other people to help maintain, made it clear it would take -time. Considering the feedback cycle was already weeks on initial comms, I had -to make the hard decision to fork and maintain myself. - -### Plans - -- Tests - would like to get more mock tests and integration tests in place -- Tooling - make it easier to contribute by adding tools to automatically generate - base resources that need to be slightly modified for use. -- Other Clouds - would like to add Azure and GCP (likely rename project at that point) - -## Caution - -Be aware that *aws-nuke* is a very destructive tool, hence you have to be very -careful while using it. Otherwise you might delete production data. - -**We strongly advise you to not run this application on any AWS account, where -you cannot afford to lose all resources.** - -To reduce the blast radius of accidents, there are some safety precautions: - -1. By default *aws-nuke* only lists all nukeable resources. You need to add - `--no-dry-run` to actually delete resources. -2. *aws-nuke* asks you twice to confirm the deletion by entering the account - alias. The first time is directly after the start and the second time after - listing all nukeable resources. -3. To avoid just displaying a account ID, which might gladly be ignored by - humans, it is required to actually set an [Account - Alias](https://docs.aws.amazon.com/IAM/latest/UserGuide/console_account-alias.html) - for your account. Otherwise *aws-nuke* will abort. -4. The Account Alias must not contain the string `prod`. This string is - hardcoded and it is recommended to add it to every actual production account - (eg `mycompany-production-ecr`). -5. The config file contains a blocklist field. If the Account ID of the account - you want to nuke is part of this blocklist, *aws-nuke* will abort. It is - recommended, that you add every production account to this blocklist. -6. To ensure you don't just ignore the blocklisting feature, the blocklist must - contain at least one Account ID. -7. The config file contains account specific settings (eg. filters). The - account you want to nuke must be explicitly listed there. -8. To ensure to not accidentally delete a random account, it is required to - specify a config file. It is recommended to have only a single config file - and add it to a central repository. This way the account blocklist is way - easier to manage and keep up to date. - -Feel free to create an issue, if you have any ideas to improve the safety -procedures. - -## Use Cases - -- We are testing our [Terraform](https://www.terraform.io/) code with Jenkins. - Sometimes a Terraform run fails during development and messes up the account. - With *aws-nuke* we can simply clean up the failed account so it can be reused - for the next build. -- Our platform developers have their own AWS Accounts where they can create - their own Kubernetes clusters for testing purposes. With *aws-nuke* it is - very easy to clean up these account at the end of the day and keep the costs - low. - -## Releases - -We usually release a new version once enough changes came together and have -been tested for a while. +**Forked from [rebuy-de/aws-nuke](https://github.com/rebuy-de/aws-nuke)** -You can find Linux, macOS and Windows binaries on the [releases page](https://github.com/ekristen/aws-nuke/releases), -but we also provide containerized versions on [ghcr.io/ekristen/aws-nuke](https://ghcr.io/ekristen/aws-nuke) -and [docker.io/ekristen/aws-nuke](https://hub.docker.com/r/ekristen/aws-nuke). Both -are available for multiple architectures (amd64, arm64 & armv7) using Docker manifests. You can reference -the main tag on any system and get the correct docker image automatically. - -## Usage - -At first you need to create a config file for *aws-nuke*. This is a minimal one: - -```yaml -regions: -- eu-west-1 -- global - -account-blocklist: -- "999999999999" # production - -accounts: - "000000000000": {} # aws-nuke-example -``` +## Overview -With this config we can run *aws-nuke*: - -```bash -$ aws-nuke -c config/nuke-config.yml --profile aws-nuke-example -aws-nuke version v1.0.39.gc2f318f - Fri Jul 28 16:26:41 CEST 2017 - c2f318f37b7d2dec0e646da3d4d05ab5296d5bce - -Do you really want to nuke the account with the ID 000000000000 and the alias 'aws-nuke-example'? -Do you want to continue? Enter account alias to continue. -> aws-nuke-example - -eu-west-1 - EC2DHCPOption - 'dopt-bf2ec3d8' - would remove -eu-west-1 - EC2Instance - 'i-01b489457a60298dd' - would remove -eu-west-1 - EC2KeyPair - 'test' - would remove -eu-west-1 - EC2NetworkACL - 'acl-6482a303' - cannot delete default VPC -eu-west-1 - EC2RouteTable - 'rtb-ffe91e99' - would remove -eu-west-1 - EC2SecurityGroup - 'sg-220e945a' - cannot delete group 'default' -eu-west-1 - EC2SecurityGroup - 'sg-f20f958a' - would remove -eu-west-1 - EC2Subnet - 'subnet-154d844e' - would remove -eu-west-1 - EC2Volume - 'vol-0ddfb15461a00c3e2' - would remove -eu-west-1 - EC2VPC - 'vpc-c6159fa1' - would remove -eu-west-1 - IAMUserAccessKey - 'my-user -> ABCDEFGHIJKLMNOPQRST' - would remove -eu-west-1 - IAMUserPolicyAttachment - 'my-user -> AdministratorAccess' - [UserName: "my-user", PolicyArn: "arn:aws:iam::aws:policy/AdministratorAccess", PolicyName: "AdministratorAccess"] - would remove -eu-west-1 - IAMUser - 'my-user' - would remove -Scan complete: 13 total, 11 nukeable, 2 filtered. - -Would delete these resources. Provide --no-dry-run to actually destroy resources. -``` - -As we see, *aws-nuke* only lists all found resources and exits. This is because -the `--no-dry-run` flag is missing. Also it wants to delete the -administrator. We don't want to do this, because we use this user to access -our account. Therefore we have to extend the config so it ignores this user: - -```yaml -regions: -- eu-west-1 - -account-blocklist: -- "999999999999" # production - -accounts: - "000000000000": # aws-nuke-example - filters: - IAMUser: - - "my-user" - IAMUserPolicyAttachment: - - "my-user -> AdministratorAccess" - IAMUserAccessKey: - - "my-user -> ABCDEFGHIJKLMNOPQRST" -``` - -```bash -$ aws-nuke -c config/nuke-config.yml --profile aws-nuke-example --no-dry-run -aws-nuke version v1.0.39.gc2f318f - Fri Jul 28 16:26:41 CEST 2017 - c2f318f37b7d2dec0e646da3d4d05ab5296d5bce - -Do you really want to nuke the account with the ID 000000000000 and the alias 'aws-nuke-example'? -Do you want to continue? Enter account alias to continue. -> aws-nuke-example - -eu-west-1 - EC2DHCPOption - 'dopt-bf2ec3d8' - would remove -eu-west-1 - EC2Instance - 'i-01b489457a60298dd' - would remove -eu-west-1 - EC2KeyPair - 'test' - would remove -eu-west-1 - EC2NetworkACL - 'acl-6482a303' - cannot delete default VPC -eu-west-1 - EC2RouteTable - 'rtb-ffe91e99' - would remove -eu-west-1 - EC2SecurityGroup - 'sg-220e945a' - cannot delete group 'default' -eu-west-1 - EC2SecurityGroup - 'sg-f20f958a' - would remove -eu-west-1 - EC2Subnet - 'subnet-154d844e' - would remove -eu-west-1 - EC2Volume - 'vol-0ddfb15461a00c3e2' - would remove -eu-west-1 - EC2VPC - 'vpc-c6159fa1' - would remove -eu-west-1 - IAMUserAccessKey - 'my-user -> ABCDEFGHIJKLMNOPQRST' - filtered by config -eu-west-1 - IAMUserPolicyAttachment - 'my-user -> AdministratorAccess' - [UserName: "my-user", PolicyArn: "arn:aws:iam::aws:policy/AdministratorAccess", PolicyName: "AdministratorAccess"] - would remove -eu-west-1 - IAMUser - 'my-user' - filtered by config -Scan complete: 13 total, 8 nukeable, 5 filtered. - -Do you really want to nuke these resources on the account with the ID 000000000000 and the alias 'aws-nuke-example'? -Do you want to continue? Enter account alias to continue. -> aws-nuke-example - -eu-west-1 - EC2DHCPOption - 'dopt-bf2ec3d8' - failed -eu-west-1 - EC2Instance - 'i-01b489457a60298dd' - triggered remove -eu-west-1 - EC2KeyPair - 'test' - triggered remove -eu-west-1 - EC2RouteTable - 'rtb-ffe91e99' - failed -eu-west-1 - EC2SecurityGroup - 'sg-f20f958a' - failed -eu-west-1 - EC2Subnet - 'subnet-154d844e' - failed -eu-west-1 - EC2Volume - 'vol-0ddfb15461a00c3e2' - failed -eu-west-1 - EC2VPC - 'vpc-c6159fa1' - failed -eu-west-1 - S3Object - 's3://rebuy-terraform-state-138758637120/run-terraform.lock' - triggered remove - -Removal requested: 2 waiting, 6 failed, 5 skipped, 0 finished - -eu-west-1 - EC2DHCPOption - 'dopt-bf2ec3d8' - failed -eu-west-1 - EC2Instance - 'i-01b489457a60298dd' - waiting -eu-west-1 - EC2KeyPair - 'test' - removed -eu-west-1 - EC2RouteTable - 'rtb-ffe91e99' - failed -eu-west-1 - EC2SecurityGroup - 'sg-f20f958a' - failed -eu-west-1 - EC2Subnet - 'subnet-154d844e' - failed -eu-west-1 - EC2Volume - 'vol-0ddfb15461a00c3e2' - failed -eu-west-1 - EC2VPC - 'vpc-c6159fa1' - failed - -Removal requested: 1 waiting, 6 failed, 5 skipped, 1 finished - ---- truncating long output --- -``` - -As you see *aws-nuke* now tries to delete all resources which aren't filtered, -without caring about the dependencies between them. This results in API errors -which can be ignored. These errors are shown at the end of the *aws-nuke* run, -if they keep to appear. +Remove all resources from an AWS account. -*aws-nuke* retries deleting all resources until all specified ones are deleted -or until there are only resources with errors left. +*aws-nuke* is stable, but it is likely that not all AWS resources are covered by it. Be encouraged to add missing +resources and create a Pull Request or to create an [Issue](https://github.com/ekristen/aws-nuke/issues/new). -### AWS Credentials +## Documentation -There are two ways to authenticate *aws-nuke*. There are static credentials and -profiles. The later one can be configured in the shared credentials file (ie -`~/.aws/credentials`) or the shared config file (ie `~/.aws/config`). +All documentation is in the [docs/](docs/) directory and is built using [MkDocs](https://www.mkdocs.org/). However, +all the documentation is hosted at [https://ekristen.github.io/aws-nuke/](https://ekristen.github.io/aws-nuke/). -To use *static credentials* the command line flags `--access-key-id` and -`--secret-access-key` are required. The flag `--session-token` is only required -for temporary sessions. +## History of this Fork -To use *shared profiles* the command line flag `--profile` is required. The -profile must be either defined with static credentials in the [shared -credential -file](https://docs.aws.amazon.com/cli/latest/userguide/cli-multiple-profiles.html) -or in [shared config -file](https://docs.aws.amazon.com/cli/latest/userguide/cli-roles.html) with an -assuming role. +**Important:** this is a full fork of the original tool written by the folks over at [rebuy-de](https://github.com/rebuy-de). +This fork became necessary after attempting to make contributions and respond to issues to learn that the current +maintainers only have time to work on the project about once a month and while receptive to bringing in other +people to help maintain, made it clear it would take time. Considering the feedback cycle was already weeks on +initial communications, I had to make the hard decision to fork and maintain it. -### Using Custom AWS Endpoints +### libnuke -It is possible to configure aws-nuke to run against non-default AWS endpoints. -It could be used for integration testing pointing to a local endpoint such as an -S3 appliance or a Stratoscale cluster for example. +I also needed a version of this tool for Azure and GCP, and initially I just copied and altered the code I needed for +Azure, but I didn't want to have to maintain multiple copies of the same code, so I decided to create +[libnuke](https://github.com/ekristen/libnuke) to abstract all the code that was common between the two tools and write +proper unit tests for it. -To configure aws-nuke to use custom endpoints, add the configuration directives as shown in the following example: +## Version 3 -```yaml -regions: -- demo10 - -# inspired by https://www.terraform.io/docs/providers/aws/guides/custom-service-endpoints.html -endpoints: -- region: demo10 - tls_insecure_skip_verify: true - services: - - service: ec2 - url: https://10.16.145.115/api/v2/aws/ec2 - - service: s3 - url: https://10.16.145.115:1060 - - service: rds - url: https://10.16.145.115/api/v2/aws/rds - - service: elbv2 - url: https://10.16.145.115/api/v2/aws/elbv2 - - service: efs - url: https://10.16.145.115/api/v2/aws/efs - - service: emr - url: https://10.16.145.115/api/v2/aws/emr - - service: autoscaling - url: https://10.16.145.115/api/v2/aws/autoscaling - - service: cloudwatch - url: https://10.16.145.115/api/v2/aws/cloudwatch - - service: sns - url: https://10.16.145.115/api/v2/aws/sns - - service: iam - url: https://10.16.145.115/api/v2/aws/iam - - service: acm - url: https://10.16.145.115/api/v2/aws/acm - -account-blocklist: -- "account-id-of-custom-region-prod" # production - -accounts: - "account-id-of-custom-region-demo10": -``` +Version 3 is a rewrite of this tool using [libnuke](https://github.com/ekristen/libnuke) with a focus on improving a +number of the outstanding things that I couldn't get done with the original project without separating out the core +code into a library. -This can then be used as follows: - -```log -$ aws-nuke -c config/my.yaml --access-key-id --secret-access-key --default-region demo10 -aws-nuke version v2.11.0.2.gf0ad3ac.dirty - Tue Nov 26 19:15:12 IST 2019 - f0ad3aca55eb66b93b88ce2375f8ad06a7ca856f - -Do you really want to nuke the account with the ID account-id-of-custom-region-demo10 and the alias 'account-id-of-custom-region-demo10'? -Do you want to continue? Enter account alias to continue. -> account-id-of-custom-region-demo10 - -demo10 - EC2Volume - vol-099aa1bb08454fd5bc3499897f175fd8 - [tag:Name: "volume_of_5559b38e-0a56-4078-9a6f-eb446c21cadf"] - would remove -demo10 - EC2Volume - vol-11e9b09c71924354bcb4ee77e547e7db - [tag:Name: "volume_of_e4f8c806-0235-4578-8c08-dce45d4c2952"] - would remove -demo10 - EC2Volume - vol-1a10cb3f3119451997422c435abf4275 - [tag:Name: "volume-dd2e4c4a"] - would remove -demo10 - EC2Volume - vol-1a2e649df1ef449686ef8771a078bb4e - [tag:Name: "web-server-5"] - would remove -demo10 - EC2Volume - vol-481d09bbeb334ec481c12beee6f3012e - [tag:Name: "volume_of_15b606ce-9dcd-4573-b7b1-4329bc236726"] - would remove -demo10 - EC2Volume - vol-48f6bd2bebb945848b029c80b0f2de02 - [tag:Name: "Data volume for 555e9f8a"] - would remove -demo10 - EC2Volume - vol-49f0762d84f0439da805d11b6abc1fee - [tag:Name: "Data volume for acb7f3a5"] - would remove -demo10 - EC2Volume - vol-4c34656f823542b2837ac4eaff64762b - [tag:Name: "wpdb"] - would remove -demo10 - EC2Volume - vol-875f091078134fee8d1fe3b1156a4fce - [tag:Name: "volume-f1a7c95f"] - would remove -demo10 - EC2Volume - vol-8776a0d5bd4e4aefadfa8038425edb20 - [tag:Name: "web-server-6"] - would remove -demo10 - EC2Volume - vol-8ed468bfab0b42c3bc617479b8f33600 - [tag:Name: "web-server-3"] - would remove -demo10 - EC2Volume - vol-94e0370b6ab54f03822095d74b7934b2 - [tag:Name: "web-server-2"] - would remove -demo10 - EC2Volume - vol-9ece34dfa7f64dd583ab903a1273340c - [tag:Name: "volume-4ccafc2e"] - would remove -demo10 - EC2Volume - vol-a3fb3e8800c94452aff2fcec7f06c26b - [tag:Name: "web-server-0"] - would remove -demo10 - EC2Volume - vol-a53954e17cb749a283d030f26bbaf200 - [tag:Name: "volume-5484e330"] - would remove -demo10 - EC2Volume - vol-a7afe64f4d0f4965a6703cc0cfab2ba4 - [tag:Name: "Data volume for f1a7c95f"] - would remove -demo10 - EC2Volume - vol-d0bc3f2c887f4072a9fda0b8915d94c1 - [tag:Name: "physical_volume_of_39c29f53-eac4-4f02-9781-90512cc7c563"] - would remove -demo10 - EC2Volume - vol-d1f066d8dac54ae59d087d7e9947e8a9 - [tag:Name: "Data volume for 4ccafc2e"] - would remove -demo10 - EC2Volume - vol-d9adb3f084cd4d588baa08690349b1f9 - [tag:Name: "volume_of_84854c9b-98aa-4f5b-926a-38b3398c3ad2"] - would remove -demo10 - EC2Volume - vol-db42e471b19f42b7835442545214bc1a - [tag:Name: "lb-tf-lb-20191126090616258000000002"] - would remove -demo10 - EC2Volume - vol-db80932fb47243efa67c9dd34223c647 - [tag:Name: "web-server-5"] - would remove -demo10 - EC2Volume - vol-dbea1d1083654d30a43366807a125aed - [tag:Name: "volume-555e9f8a"] - would remove - ---- truncating long output --- -``` +### Changes -### Specifying Resource Types to Delete +- The root command will result in help now on v3, the primary nuke command moved to `nuke`. +- CloudFormation Stacks now support a hold and wait for parent deletion process. +- Nested CloudFormation Stacks are now eligible for deletion and no longer omitted. +- The entire resource lister format has changed and requires a struct. +- Context is passed throughout the entire library now, including the listing function and the removal function. -*aws-nuke* deletes a lot of resources and there might be added more at any -release. Eventually, every resources should get deleted. You might want to -restrict which resources to delete. There are multiple ways to configure this. +### Goals -One way are filters, which already got mentioned. This requires to know the -identifier of each resource. It is also possible to prevent whole resource -types (eg `S3Bucket`) from getting deleted with two methods. +- Adding additional tests +- Adding additional resources +- Adding Documentation for adding resources and using the tool +- Consider adding DAG for dependencies between resource types and individual resources + - This will improve the process of deleting resources that have dependencies on other resources and reduce + errors and unnecessary API calls. -- The `--target` flag limits nuking to the specified resource types. -- The `--exclude` flag prevent nuking of the specified resource types. +## Documentation -It is also possible to configure the resource types in the config file like in -these examples: +The project is built to have the documentation right alongside the code in the `docs/` directory leveraging +[Material for Mkdocs](https://squidfunk.github.io/mkdocs-material/) -```yaml ---- -regions: - - "eu-west-1" -account-blocklist: -- 1234567890 - -resource-types: - # only nuke these three resources - targets: - - S3Object - - S3Bucket - - IAMRole - -accounts: - 555133742: {} -``` +In the root of the project exists mkdocs.yml which drives the configuration for the documentation. -```yaml ---- -regions: - - "eu-west-1" -account-blocklist: -- 1234567890 - -resource-types: - # don't nuke IAM users - excludes: - - IAMUser - -accounts: - 555133742: {} -``` +This README.md is currently copied to `docs/index.md` and the documentation is automatically published to the GitHub +pages location for this repository using a GitHub Action workflow. It does not use the `gh-pages` branch. -If targets are specified in multiple places (eg CLI and account specific), then -a resource type must be specified in all places. In other words each -configuration limits the previous ones. -If an exclude is used, then all its resource types will not be deleted. +## Use Cases -**Hint:** You can see all available resource types with this command: +- We are testing our [Terraform](https://www.terraform.io/) code with Jenkins. Sometimes a Terraform run fails during development and + messes up the account. With *aws-nuke* we can simply clean up the failed account, so it can be reused for the next + build. +- Our platform developers have their own AWS Accounts where they can create their own Kubernetes clusters for testing + purposes. With *aws-nuke* it is very easy to clean up these account at the end of the day and keep the costs low. -```bash -aws-nuke resource-types -``` ### Feature Flags @@ -392,263 +91,6 @@ feature-flags: force-delete-lightsail-addons: true ``` -### Filtering Resources - -It is possible to filter this is important for not deleting the current user -for example or for resources like S3 Buckets which have a globally shared -namespace and might be hard to recreate. Currently the filtering is based on -the resource identifier. The identifier will be printed as the first step of -*aws-nuke* (eg `i-01b489457a60298dd` for an EC2 instance). - -**Note: Even with filters you should not run aws-nuke on any AWS account, where -you cannot afford to lose all resources. It is easy to make mistakes in the -filter configuration. Also, since aws-nuke is in continous development, there -is always a possibility to introduce new bugs, no matter how careful we review -new code.** - -The filters are part of the account-specific configuration and are grouped by -resource types. This is an example of a config that deletes all resources but -the `admin` user with its access permissions and two access keys: - -```yaml ---- -regions: -- global -- eu-west-1 - -account-blocklist: -- 1234567890 - -accounts: - 0987654321: - filters: - IAMUser: - - "admin" - IAMUserPolicyAttachment: - - "admin -> AdministratorAccess" - IAMUserAccessKey: - - "admin -> AKSDAFRETERSDF" - - "admin -> AFGDSGRTEWSFEY" -``` - -Any resource whose resource identifier exactly matches any of the filters in -the list will be skipped. These will be marked as "filtered by config" on the -*aws-nuke* run. - -#### Filter Properties - -Some resources support filtering via properties. When a resource support these -properties, they will be listed in the output like in this example: - -```log -global - IAMUserPolicyAttachment - 'admin -> AdministratorAccess' - [RoleName: "admin", PolicyArn: "arn:aws:iam::aws:policy/AdministratorAccess", PolicyName: "AdministratorAccess"] - would remove -``` - -To use properties, it is required to specify a object with `properties` and -`value` instead of the plain string. - -These types can be used to simplify the configuration. For example, it is -possible to protect all access keys of a single user: - -```yaml -IAMUserAccessKey: -- property: UserName - value: "admin" -``` - -#### Filter Types - -There are also additional comparision types than an exact match: - -- `exact` – The identifier must exactly match the given string. This is the default. -- `contains` – The identifier must contain the given string. -- `glob` – The identifier must match against the given [glob - pattern](https://en.wikipedia.org/wiki/Glob_(programming)). This means the - string might contains wildcards like `*` and `?`. Note that globbing is - designed for file paths, so the wildcards do not match the directory - separator (`/`). Details about the glob pattern can be found in the [library - documentation](https://godoc.org/github.com/mb0/glob). -- `regex` – The identifier must match against the given regular expression. - Details about the syntax can be found in the [library - documentation](https://golang.org/pkg/regexp/syntax/). -- `dateOlderThan` - The identifier is parsed as a timestamp. After the offset is added - to it (specified in the `value` field), the resulting timestamp must be AFTER the - current time. Details on offset syntax can be found in the [library documentation](https://golang.org/pkg/time/#ParseDuration). - Supported date formats are epoch time, `2006-01-02`, `2006/01/02`, `2006-01-02T15:04:05Z`, - `2006-01-02T15:04:05.999999999Z07:00`, and `2006-01-02T15:04:05Z07:00`. - -To use a non-default comparision type, it is required to specify an object with -`type` and `value` instead of the plain string. - -These types can be used to simplify the configuration. For example, it is -possible to protect all access keys of a single user by using `glob`: - -```yaml -IAMUserAccessKey: -- type: glob - value: "admin -> *" -``` - -#### Using Them Together - -It is also possible to use Filter Properties and Filter Types together. For -example to protect all Hosted Zone of a specific TLD: - -```yaml -Route53HostedZone: -- property: Name - type: glob - value: "*.rebuy.cloud." -``` - -#### Inverting Filter Results - -Any filter result can be inverted by using `invert: true`, for example: - -```yaml -CloudFormationStack: -- property: Name - value: "foo" - invert: true -``` - -In this case *any* CloudFormationStack ***but*** the ones called "foo" will be -filtered. Be aware that *aws-nuke* internally takes every resource and applies -every filter on it. If a filter matches, it marks the node as filtered. - -#### Filter Presets - -It might be the case that some filters are the same across multiple accounts. -This especially could happen, if provisioning tools like Terraform are used or -if IAM resources follow the same pattern. - -For this case *aws-nuke* supports presets of filters, that can applied on -multiple accounts. A configuration could look like this: - -```yaml ---- -regions: -- "global" -- "eu-west-1" - -account-blocklist: -- 1234567890 - -accounts: - 555421337: - presets: - - "common" - 555133742: - presets: - - "common" - - "terraform" - 555134237: - presets: - - "common" - - "terraform" - filters: - EC2KeyPair: - - "notebook" - -presets: - terraform: - filters: - S3Bucket: - - type: glob - value: "my-statebucket-*" - DynamoDBTable: - - "terraform-lock" - common: - filters: - IAMRole: - - "OrganizationAccountAccessRole" -``` - -## Install - -### For macOS -`brew install aws-nuke` - -### Use Released Binaries - -The easiest way of installing it, is to download the latest -[release](https://github.com/ekristen/aws-nuke/releases) from GitHub. - -#### Example for Linux Intel/AMD - -Download and extract - -```bash -wget -c https://github.com/rebuy-de/aws-nuke/releases/download/v2.16.0/aws-nuke-v2.16.0-linux-amd64.tar.gz -O - | sudo tar -xz -C $HOME/bin -``` - -Run - -```bash -aws-nuke-v2.16.0-linux-amd64 -``` - -### Compile from Source - -To compile *aws-nuke* from source you need a working -[Golang](https://golang.org/doc/install) development environment. - -*aws-nuke* uses go modules and so the clone path should no matter. - -The easiest way to compile is by using [goreleaser](https://goreleaser.io) - -```bash -goreleaser --rm-dist --snapshot --single-target -``` - -**Note:** this will automatically build for your current architecture and place the result -in the releases directory. - -You may also use `make` to compile the binary, this was left over from before the fork. - -Also you need to install [golint](https://github.com/golang/lint/) and [GNU -Make](https://www.gnu.org/software/make/). - -Then you just need to run `make build` to compile a binary into the project -directory or `make install` go install *aws-nuke* into `$GOPATH/bin`. With -`make xc` you can cross compile *aws-nuke* for other platforms. - -### Docker - -You can run *aws-nuke* with Docker by using a command like this: - -```bash -$ docker run \ - --rm -it \ - -v /full-path/to/nuke-config.yml:/home/aws-nuke/config.yml \ - -v /home/user/.aws:/home/aws-nuke/.aws \ - ghcr.io/ekristen/aws-nuke \ - --profile default \ - --config /home/aws-nuke/config.yml -``` - -To make it work, you need to adjust the paths for the AWS config and the -*aws-nuke* config. - -Also you need to specify the correct AWS profile. Instead of mounting the AWS -directory, you can use the `--access-key-id` and `--secret-access-key` flags. - -Make sure you use the latest version in the image tag. Alternatiely you can use -`main` for the latest development version, but be aware that this is more -likely to break at any time. - -## Testing - -### Unit Tests - -To unit test *aws-nuke*, some tests require [gomock](https://github.com/golang/mock) to run. -This will run via `go generate ./...`, but is automatically run via `make test`. -To run the unit tests: - -```bash -make test -``` - ## Contact Channels For now GitHub issues, may open a Slack or Discord if warranted. diff --git a/cmd/log.go b/cmd/log.go deleted file mode 100644 index e99410a5..00000000 --- a/cmd/log.go +++ /dev/null @@ -1,62 +0,0 @@ -package cmd - -import ( - "fmt" - "sort" - "strings" - - "github.com/fatih/color" - "github.com/rebuy-de/aws-nuke/v2/resources" -) - -var ( - ReasonSkip = *color.New(color.FgYellow) - ReasonError = *color.New(color.FgRed) - ReasonRemoveTriggered = *color.New(color.FgGreen) - ReasonWaitPending = *color.New(color.FgBlue) - ReasonSuccess = *color.New(color.FgGreen) -) - -var ( - ColorRegion = *color.New(color.Bold) - ColorResourceType = *color.New() - ColorResourceID = *color.New(color.Bold) - ColorResourceProperties = *color.New(color.Italic) -) - -// Format the resource properties in sorted order ready for printing. -// This ensures that multiple runs of aws-nuke produce stable output so -// that they can be compared with each other. -func Sorted(m map[string]string) string { - keys := make([]string, 0, len(m)) - for k := range m { - keys = append(keys, k) - } - sort.Strings(keys) - sorted := make([]string, 0, len(m)) - for k := range keys { - sorted = append(sorted, fmt.Sprintf("%s: \"%s\"", keys[k], m[keys[k]])) - } - return fmt.Sprintf("[%s]", strings.Join(sorted, ", ")) -} - -func Log(region *Region, resourceType string, r resources.Resource, c color.Color, msg string) { - ColorRegion.Printf("%s", region.Name) - fmt.Printf(" - ") - ColorResourceType.Print(resourceType) - fmt.Printf(" - ") - - rString, ok := r.(resources.LegacyStringer) - if ok { - ColorResourceID.Print(rString.String()) - fmt.Printf(" - ") - } - - rProp, ok := r.(resources.ResourcePropertyGetter) - if ok { - ColorResourceProperties.Print(Sorted(rProp.Properties())) - fmt.Printf(" - ") - } - - c.Printf("%s\n", msg) -} diff --git a/cmd/nuke.go b/cmd/nuke.go deleted file mode 100644 index fc6d958b..00000000 --- a/cmd/nuke.go +++ /dev/null @@ -1,318 +0,0 @@ -package cmd - -import ( - "fmt" - "time" - - "github.com/rebuy-de/aws-nuke/v2/pkg/awsutil" - "github.com/rebuy-de/aws-nuke/v2/pkg/config" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" - "github.com/rebuy-de/aws-nuke/v2/resources" - "github.com/sirupsen/logrus" -) - -type Nuke struct { - Parameters NukeParameters - Account awsutil.Account - Config *config.Nuke - - ResourceTypes types.Collection - - items Queue -} - -func NewNuke(params NukeParameters, account awsutil.Account) *Nuke { - n := Nuke{ - Parameters: params, - Account: account, - } - - return &n -} - -func (n *Nuke) Run() error { - var err error - - if n.Parameters.ForceSleep < 3 && n.Parameters.NoDryRun { - return fmt.Errorf("Value for --force-sleep cannot be less than 3 seconds if --no-dry-run is set. This is for your own protection.") - } - forceSleep := time.Duration(n.Parameters.ForceSleep) * time.Second - - fmt.Printf("aws-nuke version %s - %s - %s\n\n", BuildVersion, BuildDate, BuildHash) - - err = n.Config.ValidateAccount(n.Account.ID(), n.Account.Aliases()) - if err != nil { - return err - } - - fmt.Printf("Do you really want to nuke the account with "+ - "the ID %s and the alias '%s'?\n", n.Account.ID(), n.Account.Alias()) - if n.Parameters.Force { - fmt.Printf("Waiting %v before continuing.\n", forceSleep) - time.Sleep(forceSleep) - } else { - fmt.Printf("Do you want to continue? Enter account alias to continue.\n") - err = Prompt(n.Account.Alias()) - if err != nil { - return err - } - } - - err = n.Scan() - if err != nil { - return err - } - - if n.items.Count(ItemStateNew) == 0 { - fmt.Println("No resource to delete.") - return nil - } - - if !n.Parameters.NoDryRun { - fmt.Println("The above resources would be deleted with the supplied configuration. Provide --no-dry-run to actually destroy resources.") - return nil - } - - fmt.Printf("Do you really want to nuke these resources on the account with "+ - "the ID %s and the alias '%s'?\n", n.Account.ID(), n.Account.Alias()) - if n.Parameters.Force { - fmt.Printf("Waiting %v before continuing.\n", forceSleep) - time.Sleep(forceSleep) - } else { - fmt.Printf("Do you want to continue? Enter account alias to continue.\n") - err = Prompt(n.Account.Alias()) - if err != nil { - return err - } - } - - failCount := 0 - waitingCount := 0 - - for { - n.HandleQueue() - - if n.items.Count(ItemStatePending, ItemStateWaiting, ItemStateNew) == 0 && n.items.Count(ItemStateFailed) > 0 { - if failCount >= 2 { - logrus.Errorf("There are resources in failed state, but none are ready for deletion, anymore.") - fmt.Println() - - for _, item := range n.items { - if item.State != ItemStateFailed { - continue - } - - item.Print() - logrus.Error(item.Reason) - } - - return fmt.Errorf("failed") - } - - failCount = failCount + 1 - } else { - failCount = 0 - } - if n.Parameters.MaxWaitRetries != 0 && n.items.Count(ItemStateWaiting, ItemStatePending) > 0 && n.items.Count(ItemStateNew) == 0 { - if waitingCount >= n.Parameters.MaxWaitRetries { - return fmt.Errorf("Max wait retries of %d exceeded.\n\n", n.Parameters.MaxWaitRetries) - } - waitingCount = waitingCount + 1 - } else { - waitingCount = 0 - } - if n.items.Count(ItemStateNew, ItemStatePending, ItemStateFailed, ItemStateWaiting) == 0 { - break - } - - time.Sleep(5 * time.Second) - } - - fmt.Printf("Nuke complete: %d failed, %d skipped, %d finished.\n\n", - n.items.Count(ItemStateFailed), n.items.Count(ItemStateFiltered), n.items.Count(ItemStateFinished)) - - return nil -} - -func (n *Nuke) Scan() error { - accountConfig := n.Config.Accounts[n.Account.ID()] - - resourceTypes := ResolveResourceTypes( - resources.GetListerNames(), - resources.GetCloudControlMapping(), - []types.Collection{ - n.Parameters.Targets, - n.Config.ResourceTypes.Targets, - accountConfig.ResourceTypes.Targets, - }, - []types.Collection{ - n.Parameters.Excludes, - n.Config.ResourceTypes.Excludes, - accountConfig.ResourceTypes.Excludes, - }, - []types.Collection{ - n.Parameters.CloudControl, - n.Config.ResourceTypes.CloudControl, - accountConfig.ResourceTypes.CloudControl, - }, - ) - - queue := make(Queue, 0) - - for _, regionName := range n.Config.Regions { - region := NewRegion(regionName, n.Account.ResourceTypeToServiceType, n.Account.NewSession) - - items := Scan(region, resourceTypes) - for item := range items { - ffGetter, ok := item.Resource.(resources.FeatureFlagGetter) - if ok { - ffGetter.FeatureFlags(n.Config.FeatureFlags) - } - - queue = append(queue, item) - err := n.Filter(item) - if err != nil { - return err - } - - if item.State != ItemStateFiltered || !n.Parameters.Quiet { - item.Print() - } - } - } - - fmt.Printf("Scan complete: %d total, %d nukeable, %d filtered.\n\n", - queue.CountTotal(), queue.Count(ItemStateNew), queue.Count(ItemStateFiltered)) - - n.items = queue - - return nil -} - -func (n *Nuke) Filter(item *Item) error { - - checker, ok := item.Resource.(resources.Filter) - if ok { - err := checker.Filter() - if err != nil { - item.State = ItemStateFiltered - item.Reason = err.Error() - - // Not returning the error, since it could be because of a failed - // request to the API. We do not want to block the whole nuking, - // because of an issue on AWS side. - return nil - } - } - - accountFilters, err := n.Config.Filters(n.Account.ID()) - if err != nil { - return err - } - - itemFilters, ok := accountFilters[item.Type] - if !ok { - return nil - } - - for _, filter := range itemFilters { - prop, err := item.GetProperty(filter.Property) - if err != nil { - logrus.Warnf(err.Error()) - continue - } - match, err := filter.Match(prop) - if err != nil { - return err - } - - if IsTrue(filter.Invert) { - match = !match - } - - if match { - item.State = ItemStateFiltered - item.Reason = "filtered by config" - return nil - } - } - - return nil -} - -func (n *Nuke) HandleQueue() { - listCache := make(map[string]map[string][]resources.Resource) - - for _, item := range n.items { - switch item.State { - case ItemStateNew: - n.HandleRemove(item) - item.Print() - case ItemStateFailed: - n.HandleRemove(item) - n.HandleWait(item, listCache) - item.Print() - case ItemStatePending: - n.HandleWait(item, listCache) - item.State = ItemStateWaiting - item.Print() - case ItemStateWaiting: - n.HandleWait(item, listCache) - item.Print() - } - - } - - fmt.Println() - fmt.Printf("Removal requested: %d waiting, %d failed, %d skipped, %d finished\n\n", - n.items.Count(ItemStateWaiting, ItemStatePending), n.items.Count(ItemStateFailed), - n.items.Count(ItemStateFiltered), n.items.Count(ItemStateFinished)) -} - -func (n *Nuke) HandleRemove(item *Item) { - err := item.Resource.Remove() - if err != nil { - item.State = ItemStateFailed - item.Reason = err.Error() - return - } - - item.State = ItemStatePending - item.Reason = "" -} - -func (n *Nuke) HandleWait(item *Item, cache map[string]map[string][]resources.Resource) { - var err error - region := item.Region.Name - _, ok := cache[region] - if !ok { - cache[region] = map[string][]resources.Resource{} - } - left, ok := cache[region][item.Type] - if !ok { - left, err = item.List() - if err != nil { - item.State = ItemStateFailed - item.Reason = err.Error() - return - } - cache[region][item.Type] = left - } - - for _, r := range left { - if item.Equals(r) { - checker, ok := r.(resources.Filter) - if ok { - err := checker.Filter() - if err != nil { - break - } - } - - return - } - } - - item.State = ItemStateFinished - item.Reason = "" -} diff --git a/cmd/params.go b/cmd/params.go deleted file mode 100644 index b1583aed..00000000 --- a/cmd/params.go +++ /dev/null @@ -1,29 +0,0 @@ -package cmd - -import ( - "fmt" - "strings" -) - -type NukeParameters struct { - ConfigPath string - - Targets []string - Excludes []string - CloudControl []string - - NoDryRun bool - Force bool - ForceSleep int - Quiet bool - - MaxWaitRetries int -} - -func (p *NukeParameters) Validate() error { - if strings.TrimSpace(p.ConfigPath) == "" { - return fmt.Errorf("You have to specify the --config flag.\n") - } - - return nil -} diff --git a/cmd/queue.go b/cmd/queue.go deleted file mode 100644 index 6b120c1c..00000000 --- a/cmd/queue.go +++ /dev/null @@ -1,122 +0,0 @@ -package cmd - -import ( - "fmt" - - "github.com/rebuy-de/aws-nuke/v2/resources" -) - -type ItemState int - -// States of Items based on the latest request to AWS. -const ( - ItemStateNew ItemState = iota - ItemStatePending - ItemStateWaiting - ItemStateFailed - ItemStateFiltered - ItemStateFinished -) - -// An Item describes an actual AWS resource entity with the current state and -// some metadata. -type Item struct { - Resource resources.Resource - - State ItemState - Reason string - - Region *Region - Type string -} - -func (i *Item) Print() { - switch i.State { - case ItemStateNew: - Log(i.Region, i.Type, i.Resource, ReasonWaitPending, "would remove") - case ItemStatePending: - Log(i.Region, i.Type, i.Resource, ReasonWaitPending, "triggered remove") - case ItemStateWaiting: - Log(i.Region, i.Type, i.Resource, ReasonWaitPending, "waiting") - case ItemStateFailed: - Log(i.Region, i.Type, i.Resource, ReasonError, "failed") - case ItemStateFiltered: - Log(i.Region, i.Type, i.Resource, ReasonSkip, i.Reason) - case ItemStateFinished: - Log(i.Region, i.Type, i.Resource, ReasonSuccess, "removed") - } -} - -// List gets all resource items of the same resource type like the Item. -func (i *Item) List() ([]resources.Resource, error) { - lister := resources.GetLister(i.Type) - sess, err := i.Region.Session(i.Type) - if err != nil { - return nil, err - } - return lister(sess) -} - -func (i *Item) GetProperty(key string) (string, error) { - if key == "" { - stringer, ok := i.Resource.(resources.LegacyStringer) - if !ok { - return "", fmt.Errorf("%T does not support legacy IDs", i.Resource) - } - return stringer.String(), nil - } - - getter, ok := i.Resource.(resources.ResourcePropertyGetter) - if !ok { - return "", fmt.Errorf("%T does not support custom properties", i.Resource) - } - - return getter.Properties().Get(key), nil -} - -func (i *Item) Equals(o resources.Resource) bool { - iType := fmt.Sprintf("%T", i.Resource) - oType := fmt.Sprintf("%T", o) - if iType != oType { - return false - } - - iStringer, iOK := i.Resource.(resources.LegacyStringer) - oStringer, oOK := o.(resources.LegacyStringer) - if iOK != oOK { - return false - } - if iOK && oOK { - return iStringer.String() == oStringer.String() - } - - iGetter, iOK := i.Resource.(resources.ResourcePropertyGetter) - oGetter, oOK := o.(resources.ResourcePropertyGetter) - if iOK != oOK { - return false - } - if iOK && oOK { - return iGetter.Properties().Equals(oGetter.Properties()) - } - - return false -} - -type Queue []*Item - -func (q Queue) CountTotal() int { - return len(q) -} - -func (q Queue) Count(states ...ItemState) int { - count := 0 - for _, item := range q { - for _, state := range states { - if item.State == state { - count = count + 1 - break - } - } - } - return count -} diff --git a/cmd/root.go b/cmd/root.go deleted file mode 100644 index 24daa06a..00000000 --- a/cmd/root.go +++ /dev/null @@ -1,206 +0,0 @@ -package cmd - -import ( - "fmt" - "os" - "sort" - "strings" - - "github.com/aws/aws-sdk-go/aws/endpoints" - "github.com/rebuy-de/aws-nuke/v2/pkg/awsutil" - "github.com/rebuy-de/aws-nuke/v2/pkg/config" - "github.com/rebuy-de/aws-nuke/v2/resources" - log "github.com/sirupsen/logrus" - "github.com/spf13/cobra" -) - -func NewRootCommand() *cobra.Command { - var ( - params NukeParameters - creds awsutil.Credentials - defaultRegion string - verbose bool - logLevel string - ) - - command := &cobra.Command{ - Use: "aws-nuke", - Short: "aws-nuke removes every resource from AWS", - Long: `A tool which removes every resource from an AWS account. Use it with caution, since it cannot distinguish between production and non-production.`, - } - - command.PreRun = func(cmd *cobra.Command, args []string) { - switch strings.ToLower(logLevel) { - case "trace": - log.SetLevel(log.TraceLevel) - case "debug": - log.SetLevel(log.DebugLevel) - case "info": - log.SetLevel(log.InfoLevel) - case "warn": - log.SetLevel(log.WarnLevel) - case "error": - log.SetLevel(log.ErrorLevel) - default: - log.SetLevel(log.InfoLevel) - } - - if verbose { - log.SetLevel(log.DebugLevel) - log.Warn("--verbose CLI argument is deprecated, please use --log-level=debug instead") - } - - log.SetFormatter(&log.TextFormatter{ - EnvironmentOverrideColors: true, - }) - } - - command.RunE = func(cmd *cobra.Command, args []string) error { - var err error - - err = params.Validate() - if err != nil { - return err - } - - if !creds.HasKeys() && !creds.HasProfile() && defaultRegion != "" { - creds.AccessKeyID = os.Getenv("AWS_ACCESS_KEY_ID") - creds.SecretAccessKey = os.Getenv("AWS_SECRET_ACCESS_KEY") - } - err = creds.Validate() - if err != nil { - return err - } - - command.SilenceUsage = true - - config, err := config.Load(params.ConfigPath) - if err != nil { - log.Errorf("Failed to parse config file %s", params.ConfigPath) - return err - } - - if defaultRegion != "" { - awsutil.DefaultRegionID = defaultRegion - switch defaultRegion { - case endpoints.UsEast1RegionID, endpoints.UsEast2RegionID, endpoints.UsWest1RegionID, endpoints.UsWest2RegionID: - awsutil.DefaultAWSPartitionID = endpoints.AwsPartitionID - case endpoints.UsGovEast1RegionID, endpoints.UsGovWest1RegionID: - awsutil.DefaultAWSPartitionID = endpoints.AwsUsGovPartitionID - default: - if config.CustomEndpoints.GetRegion(defaultRegion) == nil { - err = fmt.Errorf("The custom region '%s' must be specified in the configuration 'endpoints'", defaultRegion) - log.Error(err.Error()) - return err - } - } - } - - account, err := awsutil.NewAccount(creds, config.CustomEndpoints) - if err != nil { - return err - } - - n := NewNuke(params, *account) - - n.Config = config - - return n.Run() - } - - command.PersistentFlags().StringVarP( - &logLevel, "log-level", "l", "info", - "Controls log level for output.") - - command.PersistentFlags().BoolVarP( - &verbose, "verbose", "v", false, - "Enables debug output. (Deprecated: use --log-level=debug instead)") - - command.PersistentFlags().StringVarP( - ¶ms.ConfigPath, "config", "c", "", - "(required) Path to the nuke config file.") - - command.PersistentFlags().StringVar( - &creds.Profile, "profile", "", - "Name of the AWS profile name for accessing the AWS API. "+ - "Cannot be used together with --access-key-id and --secret-access-key.") - command.PersistentFlags().StringVar( - &creds.AccessKeyID, "access-key-id", "", - "AWS access key ID for accessing the AWS API. "+ - "Must be used together with --secret-access-key. "+ - "Cannot be used together with --profile.") - command.PersistentFlags().StringVar( - &creds.SecretAccessKey, "secret-access-key", "", - "AWS secret access key for accessing the AWS API. "+ - "Must be used together with --access-key-id. "+ - "Cannot be used together with --profile.") - command.PersistentFlags().StringVar( - &creds.SessionToken, "session-token", "", - "AWS session token for accessing the AWS API. "+ - "Must be used together with --access-key-id and --secret-access-key. "+ - "Cannot be used together with --profile.") - command.PersistentFlags().StringVar( - &creds.AssumeRoleArn, "assume-role-arn", "", - "AWS IAM role arn to assume. "+ - "The credentials provided via --access-key-id or --profile must "+ - "be allowed to assume this role. ") - command.PersistentFlags().StringVar( - &defaultRegion, "default-region", "", - "Custom default region name.") - - command.PersistentFlags().StringSliceVarP( - ¶ms.Targets, "target", "t", []string{}, - "Limit nuking to certain resource types (eg IAMServerCertificate). "+ - "This flag can be used multiple times.") - command.PersistentFlags().StringSliceVarP( - ¶ms.Excludes, "exclude", "e", []string{}, - "Prevent nuking of certain resource types (eg IAMServerCertificate). "+ - "This flag can be used multiple times.") - command.PersistentFlags().StringSliceVar( - ¶ms.CloudControl, "cloud-control", []string{}, - "Nuke given resource via Cloud Control API. "+ - "If there is an old-style method for the same resource, the old-style one will not be executed. "+ - "Note that old-style and cloud-control filters are not compatible! "+ - "This flag can be used multiple times.") - command.PersistentFlags().BoolVar( - ¶ms.NoDryRun, "no-dry-run", false, - "If specified, it actually deletes found resources. "+ - "Otherwise it just lists all candidates.") - command.PersistentFlags().BoolVar( - ¶ms.Force, "force", false, - "Don't ask for confirmation before deleting resources. "+ - "Instead it waits 15s before continuing. Set --force-sleep to change the wait time.") - command.PersistentFlags().IntVar( - ¶ms.ForceSleep, "force-sleep", 15, - "If specified and --force is set, wait this many seconds before deleting resources. "+ - "Defaults to 15.") - command.PersistentFlags().IntVar( - ¶ms.MaxWaitRetries, "max-wait-retries", 0, - "If specified, the program will exit if resources are stuck in waiting for this many iterations. "+ - "0 (default) disables early exit.") - command.PersistentFlags().BoolVarP( - ¶ms.Quiet, "quiet", "q", false, - "Don't show filtered resources.") - - command.AddCommand(NewVersionCommand()) - command.AddCommand(NewResourceTypesCommand()) - - return command -} - -func NewResourceTypesCommand() *cobra.Command { - cmd := &cobra.Command{ - Use: "resource-types", - Short: "lists all available resource types", - Run: func(cmd *cobra.Command, args []string) { - names := resources.GetListerNames() - sort.Strings(names) - - for _, resourceType := range names { - fmt.Println(resourceType) - } - }, - } - - return cmd -} diff --git a/cmd/scan.go b/cmd/scan.go deleted file mode 100644 index aa03f51e..00000000 --- a/cmd/scan.go +++ /dev/null @@ -1,88 +0,0 @@ -package cmd - -import ( - "context" - "fmt" - "runtime/debug" - - "github.com/rebuy-de/aws-nuke/v2/pkg/awsutil" - "github.com/rebuy-de/aws-nuke/v2/pkg/util" - "github.com/rebuy-de/aws-nuke/v2/resources" - log "github.com/sirupsen/logrus" - "golang.org/x/sync/semaphore" -) - -const ScannerParallelQueries = 16 - -func Scan(region *Region, resourceTypes []string) <-chan *Item { - s := &scanner{ - items: make(chan *Item, 100), - semaphore: semaphore.NewWeighted(ScannerParallelQueries), - } - go s.run(region, resourceTypes) - - return s.items -} - -type scanner struct { - items chan *Item - semaphore *semaphore.Weighted -} - -func (s *scanner) run(region *Region, resourceTypes []string) { - ctx := context.Background() - - for _, resourceType := range resourceTypes { - s.semaphore.Acquire(ctx, 1) - go s.list(region, resourceType) - } - - // Wait for all routines to finish. - s.semaphore.Acquire(ctx, ScannerParallelQueries) - - close(s.items) -} - -func (s *scanner) list(region *Region, resourceType string) { - defer func() { - if r := recover(); r != nil { - err := fmt.Errorf("%v\n\n%s", r.(error), string(debug.Stack())) - dump := util.Indent(fmt.Sprintf("%v", err), " ") - log.Errorf("Listing %s failed:\n%s", resourceType, dump) - } - }() - defer s.semaphore.Release(1) - - lister := resources.GetLister(resourceType) - var rs []resources.Resource - sess, err := region.Session(resourceType) - if err == nil { - rs, err = lister(sess) - } - if err != nil { - _, ok := err.(awsutil.ErrSkipRequest) - if ok { - log.Debugf("skipping request: %v", err) - return - } - - _, ok = err.(awsutil.ErrUnknownEndpoint) - if ok { - log.Warnf("skipping request: %v", err) - return - } - - dump := util.Indent(fmt.Sprintf("%v", err), " ") - log.Errorf("Listing %s failed:\n%s", resourceType, dump) - return - } - - for _, r := range rs { - s.items <- &Item{ - Region: region, - Resource: r, - State: ItemStateNew, - Type: resourceType, - } - } -} diff --git a/cmd/util_test.go b/cmd/util_test.go deleted file mode 100644 index bb844b3f..00000000 --- a/cmd/util_test.go +++ /dev/null @@ -1,95 +0,0 @@ -package cmd - -import ( - "fmt" - "sort" - "testing" - - "github.com/rebuy-de/aws-nuke/v2/pkg/types" -) - -func TestResolveResourceTypes(t *testing.T) { - cases := []struct { - name string - base types.Collection - mapping map[string]string - include []types.Collection - exclude []types.Collection - cloudControl []types.Collection - result types.Collection - }{ - { - base: types.Collection{"a", "b", "c", "d"}, - include: []types.Collection{{"a", "b", "c"}}, - result: types.Collection{"a", "b", "c"}, - }, - { - base: types.Collection{"a", "b", "c", "d"}, - exclude: []types.Collection{{"b", "d"}}, - result: types.Collection{"a", "c"}, - }, - { - base: types.Collection{"a", "b"}, - include: []types.Collection{{}}, - result: types.Collection{"a", "b"}, - }, - { - base: types.Collection{"c", "b"}, - exclude: []types.Collection{{}}, - result: types.Collection{"c", "b"}, - }, - { - base: types.Collection{"a", "b", "c", "d"}, - include: []types.Collection{{"a", "b", "c"}}, - exclude: []types.Collection{{"a"}}, - result: types.Collection{"b", "c"}, - }, - { - name: "CloudControlAdd", - base: types.Collection{"a", "b"}, - cloudControl: []types.Collection{{"x"}}, - result: types.Collection{"a", "b", "x"}, - }, - { - name: "CloudControlReplaceOldStyle", - base: types.Collection{"a", "b", "c"}, - mapping: map[string]string{"z": "b"}, - cloudControl: []types.Collection{{"z"}}, - result: types.Collection{"a", "z", "c"}, - }, - } - - for _, tc := range cases { - t.Run(tc.name, func(t *testing.T) { - r := ResolveResourceTypes(tc.base, tc.mapping, tc.include, tc.exclude, tc.cloudControl) - - sort.Strings(r) - sort.Strings(tc.result) - - var ( - want = fmt.Sprint(tc.result) - have = fmt.Sprint(r) - ) - - if want != have { - t.Fatalf("Wrong result. Want: %s. Have: %s", want, have) - } - }) - } -} - -func TestIsTrue(t *testing.T) { - falseStrings := []string{"", "false", "treu", "foo"} - for _, fs := range falseStrings { - if IsTrue(fs) { - t.Fatalf("IsTrue falsely returned 'true' for: %s", fs) - } - } - - trueStrings := []string{"true", " true", "true ", " TrUe "} - for _, ts := range trueStrings { - if !IsTrue(ts) { - t.Fatalf("IsTrue falsely returned 'false' for: %s", ts) - } - } -} diff --git a/cmd/version.go b/cmd/version.go deleted file mode 100644 index a4479752..00000000 --- a/cmd/version.go +++ /dev/null @@ -1,35 +0,0 @@ -package cmd - -import ( - "fmt" - "runtime/debug" - - "github.com/spf13/cobra" -) - -var ( - BuildVersion = "unknown" - BuildDate = "unknown" - BuildHash = "unknown" - BuildEnvironment = "unknown" -) - -func NewVersionCommand() *cobra.Command { - cmd := &cobra.Command{ - Use: "version", - Short: "shows version of this application", - Run: func(cmd *cobra.Command, args []string) { - fmt.Printf("version: %s\n", BuildVersion) - fmt.Printf("build date: %s\n", BuildDate) - fmt.Printf("scm hash: %s\n", BuildHash) - fmt.Printf("environment: %s\n", BuildEnvironment) - - bi, ok := debug.ReadBuildInfo() - if ok && bi != nil { - fmt.Printf("go version: %s\n", bi.GoVersion) - } - }, - } - - return cmd -} diff --git a/config.yml b/config.yml deleted file mode 100644 index e69de29b..00000000 diff --git a/config/custom-example.yaml b/config/custom-example.yaml deleted file mode 100644 index 219ac393..00000000 --- a/config/custom-example.yaml +++ /dev/null @@ -1,62 +0,0 @@ -regions: -- demo10 - -# inspired by https://www.terraform.io/docs/providers/aws/guides/custom-service-endpoints.html -endpoints: -- region: demo10 - tls_insecure_skip_verify: true - services: - - service: ec2 - url: https://demo10.cloud.internal/api/v2/aws/ec2 - - service: s3 - url: https://demo10.cloud.internal:1060 - - service: rds - url: https://demo10.cloud.internal/api/v2/aws/rds - - service: elbv2 - url: https://demo10.cloud.internal/api/v2/aws/elbv2 - - service: efs - url: https://demo10.cloud.internal/api/v2/aws/efs - - service: emr - url: https://demo10.cloud.internal/api/v2/aws/emr - - service: autoscaling - url: https://demo10.cloud.internal/api/v2/aws/autoscaling - - service: cloudwatch - url: https://demo10.cloud.internal/api/v2/aws/cloudwatch - - service: sns - url: https://demo10.cloud.internal/api/v2/aws/sns - - service: iam - url: https://demo10.cloud.internal/api/v2/aws/iam - - service: acm - url: https://demo10.cloud.internal/api/v2/aws/acm - -account-blocklist: -- "account-id-of-custom-region-prod" # production - -accounts: - "account-id-of-custom-region-demo10": - presets: - - stratoscale - -presets: - stratoscale: - filters: - EC2VPC: - - property: tag:Name - type: contains - value: "Default VPC" - EC2Instance: - - property: tag:Name - type: contains - value: "DNS VM for vpc" - EC2Volume: - - property: tag:Name - type: contains - value: "DNS VM for vpc" - RDSDBParameterGroup: - - type: regex - value: "^default-" - EC2DHCPOption: - - property: tag:Name - type: regex - value: "^.+$" - invert: true diff --git a/config/example.yaml b/config/example.yaml deleted file mode 100644 index caa2e734..00000000 --- a/config/example.yaml +++ /dev/null @@ -1,51 +0,0 @@ ---- -regions: -- "global" # This is for all global resource types e.g. IAM -- "eu-west-1" - -account-blocklist: -- 1234567890 - -# optional: restrict nuking to these resources -resource-types: - targets: - - IAMUser - - IAMUserPolicyAttachment - - IAMUserAccessKey - - S3Bucket - - S3Object - - Route53HostedZone - - EC2Instance - - CloudFormationStack - - MSKCluster - -accounts: - 555133742: - filters: - IAMUser: - - "admin" - IAMUserPolicyAttachment: - - property: RoleName - value: "admin" - IAMUserAccessKey: - - property: UserName - value: "admin" - S3Bucket: - - "s3://my-bucket" - S3Object: - - type: "glob" - value: "s3://my-bucket/**" - Route53HostedZone: - - property: Name - type: "glob" - value: "*.zone.loc." - CloudFormationStack: - - property: "tag:team" - value: "myTeam" - EC2Snapshot: - - property: "tag:team" - type: regex - value: ".+" - EC2Image: - - property: "tag:release" - value: "production" diff --git a/docs/auth.md b/docs/auth.md new file mode 100644 index 00000000..c030b9b6 --- /dev/null +++ b/docs/auth.md @@ -0,0 +1,25 @@ +# Authentication + +There are multiple ways to authenticate to AWS for *aws-nuke*. + +## Using CLI Flags + +To use *static credentials* the command line flags `--access-key-id` and `--secret-access-key` +are required. The flag `--session-token` is only required for temporary sessions. + +`--profile` is also available if you are using the [AWS Config](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html) + +### AWS Config + +You can also authenticate using the [AWS Config](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html) +file. This can also have static credentials in them, but you can also use profiles. These files are generally located +at `~/.aws/config` and `~/.aws/credentials`. + +To use *shared profiles* the command line flag `--profile` is required. The profile must be either defined with static +credentials in the [shared credential file](https://docs.aws.amazon.com/cli/latest/userguide/cli-multiple-profiles.html) or in [shared config file](https://docs.aws.amazon.com/cli/latest/userguide/cli-roles.html) with an assuming role. + +## Environment Variables + +To use *static credentials* via environment variables, export `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY` and +optionally if using a temporary session `AWS_SESSION_TOKEN`. + diff --git a/docs/custom-endpoints.md b/docs/custom-endpoints.md new file mode 100644 index 00000000..c9af98b9 --- /dev/null +++ b/docs/custom-endpoints.md @@ -0,0 +1,87 @@ +# Custom Endpoints + +## Overview + +It is possible to configure aws-nuke to run against non-default AWS endpoints. It could be used for integration testing +pointing to a local endpoint such as an S3 appliance or a Stratoscale cluster for example. + +To configure aws-nuke to use custom endpoints, add the configuration directives as shown in the following example: + +## Example + +```yaml +regions: + - demo10 + +# inspired by https://www.terraform.io/docs/providers/aws/guides/custom-service-endpoints.html +endpoints: + - region: demo10 + tls_insecure_skip_verify: true + services: + - service: ec2 + url: https://10.16.145.115/api/v2/aws/ec2 + - service: s3 + url: https://10.16.145.115:1060 + - service: rds + url: https://10.16.145.115/api/v2/aws/rds + - service: elbv2 + url: https://10.16.145.115/api/v2/aws/elbv2 + - service: efs + url: https://10.16.145.115/api/v2/aws/efs + - service: emr + url: https://10.16.145.115/api/v2/aws/emr + - service: autoscaling + url: https://10.16.145.115/api/v2/aws/autoscaling + - service: cloudwatch + url: https://10.16.145.115/api/v2/aws/cloudwatch + - service: sns + url: https://10.16.145.115/api/v2/aws/sns + - service: iam + url: https://10.16.145.115/api/v2/aws/iam + - service: acm + url: https://10.16.145.115/api/v2/aws/acm + +account-blocklist: + - "account-id-of-custom-region-prod" # production + +accounts: + "account-id-of-custom-region-demo10": {} +``` + +### Output + +This can then be used as follows: + +```log +$ aws-nuke -c config/my.yaml --access-key-id --secret-access-key --default-region demo10 +aws-nuke version v2.11.0.2.gf0ad3ac.dirty - Tue Nov 26 19:15:12 IST 2019 - f0ad3aca55eb66b93b88ce2375f8ad06a7ca856f + +Do you really want to nuke the account with the ID account-id-of-custom-region-demo10 and the alias 'account-id-of-custom-region-demo10'? +Do you want to continue? Enter account alias to continue. +> account-id-of-custom-region-demo10 + +demo10 - EC2Volume - vol-099aa1bb08454fd5bc3499897f175fd8 - [tag:Name: "volume_of_5559b38e-0a56-4078-9a6f-eb446c21cadf"] - would remove +demo10 - EC2Volume - vol-11e9b09c71924354bcb4ee77e547e7db - [tag:Name: "volume_of_e4f8c806-0235-4578-8c08-dce45d4c2952"] - would remove +demo10 - EC2Volume - vol-1a10cb3f3119451997422c435abf4275 - [tag:Name: "volume-dd2e4c4a"] - would remove +demo10 - EC2Volume - vol-1a2e649df1ef449686ef8771a078bb4e - [tag:Name: "web-server-5"] - would remove +demo10 - EC2Volume - vol-481d09bbeb334ec481c12beee6f3012e - [tag:Name: "volume_of_15b606ce-9dcd-4573-b7b1-4329bc236726"] - would remove +demo10 - EC2Volume - vol-48f6bd2bebb945848b029c80b0f2de02 - [tag:Name: "Data volume for 555e9f8a"] - would remove +demo10 - EC2Volume - vol-49f0762d84f0439da805d11b6abc1fee - [tag:Name: "Data volume for acb7f3a5"] - would remove +demo10 - EC2Volume - vol-4c34656f823542b2837ac4eaff64762b - [tag:Name: "wpdb"] - would remove +demo10 - EC2Volume - vol-875f091078134fee8d1fe3b1156a4fce - [tag:Name: "volume-f1a7c95f"] - would remove +demo10 - EC2Volume - vol-8776a0d5bd4e4aefadfa8038425edb20 - [tag:Name: "web-server-6"] - would remove +demo10 - EC2Volume - vol-8ed468bfab0b42c3bc617479b8f33600 - [tag:Name: "web-server-3"] - would remove +demo10 - EC2Volume - vol-94e0370b6ab54f03822095d74b7934b2 - [tag:Name: "web-server-2"] - would remove +demo10 - EC2Volume - vol-9ece34dfa7f64dd583ab903a1273340c - [tag:Name: "volume-4ccafc2e"] - would remove +demo10 - EC2Volume - vol-a3fb3e8800c94452aff2fcec7f06c26b - [tag:Name: "web-server-0"] - would remove +demo10 - EC2Volume - vol-a53954e17cb749a283d030f26bbaf200 - [tag:Name: "volume-5484e330"] - would remove +demo10 - EC2Volume - vol-a7afe64f4d0f4965a6703cc0cfab2ba4 - [tag:Name: "Data volume for f1a7c95f"] - would remove +demo10 - EC2Volume - vol-d0bc3f2c887f4072a9fda0b8915d94c1 - [tag:Name: "physical_volume_of_39c29f53-eac4-4f02-9781-90512cc7c563"] - would remove +demo10 - EC2Volume - vol-d1f066d8dac54ae59d087d7e9947e8a9 - [tag:Name: "Data volume for 4ccafc2e"] - would remove +demo10 - EC2Volume - vol-d9adb3f084cd4d588baa08690349b1f9 - [tag:Name: "volume_of_84854c9b-98aa-4f5b-926a-38b3398c3ad2"] - would remove +demo10 - EC2Volume - vol-db42e471b19f42b7835442545214bc1a - [tag:Name: "lb-tf-lb-20191126090616258000000002"] - would remove +demo10 - EC2Volume - vol-db80932fb47243efa67c9dd34223c647 - [tag:Name: "web-server-5"] - would remove +demo10 - EC2Volume - vol-dbea1d1083654d30a43366807a125aed - [tag:Name: "volume-555e9f8a"] - would remove + +--- truncating long output --- +``` \ No newline at end of file diff --git a/docs/development.md b/docs/development.md new file mode 100644 index 00000000..e68b3821 --- /dev/null +++ b/docs/development.md @@ -0,0 +1,19 @@ +# Development + +## Building + +The following will build the binary for the current platform and place it in the `releases` directory. + +```console +goreleaser build --clean --snapshot --single-target +``` + +## Documentation + +This is built using Material for MkDocs and can be run very easily locally providing you have docker available. + +### Running Locally + +```console +make docs-serve +``` diff --git a/docs/filtering.md b/docs/filtering.md new file mode 100644 index 00000000..29f39de9 --- /dev/null +++ b/docs/filtering.md @@ -0,0 +1,284 @@ +# Filtering + +Filtering is used to exclude or include resources from being deleted. This is important for a number of reasons to +include but limited to removing the user that runs the tool. + +## Types + +The following are comparisons that you can use to filter resources. These are used in the configuration file. + +- `exact` +- `contains` +- `glob` +- `regex` +- `dateOlderThan` + +To use a non-default comparison type, it is required to specify an object with `type` and `value` instead of the +plain string. + +These types can be used to simplify the configuration. For example, it is possible to protect all access keys of a +single user by using `glob`: + +```yaml +IAMUserAccessKey: +- type: glob + value: "admin -> *" +``` + +### Exact + +The identifier must exactly match the given string. **This is the default.** + +Exact is just that, an exact match to a resource. The following examples are identical for the `exact` filter. + +```yaml +IAMUser: +- AWSNukeUser +- type: exact + value: AWSNukeUser +``` + +### Contains + +The `contains` filter is a simple string contains match. The following examples are identical for the `contains` filter. + +```yaml +IAMUser: + - type: contains + value: Nuke +``` + +### Glob + +The identifier must match against the given [glob pattern](https://en.wikipedia.org/wiki/Glob_(programming)). This means the string might contain +wildcards like `*` and `?`. Note that globbing is designed for file paths, so the wildcards do not match the directory +separator (`/`). Details about the glob pattern can be found in the [library documentation](https://godoc.org/github.com/mb0/glob) + +```yaml +IAMUser: + - type: glob + value: "AWSNuke*" +``` + +### Regex + +The identifier must match against the given regular expression. Details about the syntax can be found +in the [library documentation](https://golang.org/pkg/regexp/syntax/). + +```yaml +IAMUser: + - type: regex + value: "AWSNuke.*" +``` + +### DateOlderThan + +The identifier is parsed as a timestamp. After the offset is added to it (specified in the `value` field), the resulting +timestamp must be AFTER the current time. Details on offset syntax can be found in the [library documentation](https://golang.org/pkg/time/#ParseDuration). +Supported date formats are epoch time: + +- `2006-01-02` +- `2006/01/02` +- `2006-01-02T15:04:05Z` +- `2006-01-02T15:04:05.999999999Z07:00` +- `2006-01-02T15:04:05Z07:00` + +## Properties + +By default, when writing a filter if you do not specify a property, it will use the `Name` property. However, resources +that do no support Properties, aws-nuke will fall back to what is called the `Legacy String`, it's essentially a +function that returns a string representation of the resource. + +Some resources support filtering via properties. When a resource support these properties, they will be listed in +the output like in this example: + +```log +global - IAMUserPolicyAttachment - 'admin -> AdministratorAccess' - [RoleName: "admin", PolicyArn: "arn:aws:iam::aws:policy/AdministratorAccess", PolicyName: "AdministratorAccess"] - would remove +``` + +To use properties, it is required to specify an object with `properties` and `value` instead of the plain string. + +These types can be used to simplify the configuration. For example, it is possible to protect all access keys +of a single user: + +```yaml +IAMUserAccessKey: + - property: UserName + value: "admin" +``` + +## Inverting + +Any filter result can be inverted by using `invert: true`, for example: + +```yaml +CloudFormationStack: + - property: Name + value: "foo" + invert: true +``` + +In this case *any* CloudFormationStack ***but*** the ones called "foo" will be filtered. Be aware that *aws-nuke* +internally takes every resource and applies every filter on it. If a filter matches, it marks the node as filtered. + +## Example + +It is also possible to use Filter Properties and Filter Types together. For example to protect all Hosted Zone of a +specific TLD: + +```yaml +Route53HostedZone: + - property: Name + type: glob + value: "*.rebuy.cloud." +``` + +## Account Level + +It is possible to filter this is important for not deleting the current user for example or for resources like S3 +Buckets which have a globally shared namespace and might be hard to recreate. Currently, the filtering is based on +the resource identifier. The identifier will be printed as the first step of *aws-nuke* (eg `i-01b489457a60298dd` +for an EC2 instance). + +!!! warning + **Even with filters you should not run aws-nuke on any AWS account, where you cannot afford to lose all resources. + It is easy to make mistakes in the filter configuration. Also, since aws-nuke is in continuous development, there is + always a possibility to introduce new bugs, no matter how careful we review new code.** + +The filters are part of the account-specific configuration and are grouped by resource types. This is an example of a +config that deletes all resources but the `admin` user with its access permissions and two access keys: + +```yaml +--- +regions: + - global + - us-east-1 + +account-blocklist: + - 1234567890 + +accounts: + 0987654321: + filters: + IAMUser: + - "admin" + IAMUserPolicyAttachment: + - "admin -> AdministratorAccess" + IAMUserAccessKey: + - "admin -> AKSDAFRETERSDF" + - "admin -> AFGDSGRTEWSFEY" +``` + +Any resource whose resource identifier exactly matches any of the filters in the list will be skipped. These will +be marked as "filtered by config" on the *aws-nuke* run. + + +## Presets + +It might be the case that some filters are the same across multiple accounts. +This especially could happen, if provisioning tools like Terraform are used or +if IAM resources follow the same pattern. + +For this case *aws-nuke* supports presets of filters, that can applied on +multiple accounts. A configuration could look like this: + +```yaml +--- +regions: + - "global" + - "eu-west-1" + +account-blocklist: + - 1234567890 + +accounts: + 555421337: + presets: + - "common" + 555133742: + presets: + - "common" + - "terraform" + 555134237: + presets: + - "common" + - "terraform" + filters: + EC2KeyPair: + - "notebook" + +presets: + terraform: + filters: + S3Bucket: + - type: glob + value: "my-statebucket-*" + DynamoDBTable: + - "terraform-lock" + common: + filters: + IAMRole: + - "OrganizationAccountAccessRole" +``` + +## Included and Excluding + +*aws-nuke* deletes a lot of resources and there might be added more at any release. Eventually, every resource should +get deleted. You might want to restrict which resources to delete. There are multiple ways to configure this. + +One way are filters, which already got mentioned. This requires to know the identifier of each resource. It is also +possible to prevent whole resource types (eg `S3Bucket`) from getting deleted with two methods. + +It is also possible to configure the resource types in the config file like in these examples: + +```yaml +regions: + - "us-east-1" + +account-blocklist: + - 1234567890 + +resource-types: + # Specifying this in the configuration will ensure that only these three + # resources are targeted by aws-nuke during it's run. + targets: + - S3Object + - S3Bucket + - IAMRole + +accounts: + 555133742: {} +``` + +```yaml +regions: + - "us-east-1" + +account-blocklist: + - 1234567890 + +resource-types: + # Specifying this in the configuration will ensure that these resources + # will be specifically excluded from aws-nuke during it's run. + excludes: + - IAMUser + +accounts: + 555133742: {} +``` + +If targets are specified in multiple places (e.g. CLI and account specific), then a resource type must be specified in +all places. In other words each configuration limits the previous ones. + +If an exclude is used, then all its resource types will not be deleted. + +**Hint:** You can see all available resource types with this command: + +```bash +aws-nuke resource-types +``` + +It is also possible to include and exclude resources using the command line arguments: + +- The `--target` flag limits nuking to the specified resource types. +- The `--exclude` flag prevent nuking of the specified resource types. \ No newline at end of file diff --git a/docs/index.md b/docs/index.md new file mode 100644 index 00000000..fa4fe693 --- /dev/null +++ b/docs/index.md @@ -0,0 +1,27 @@ +# AWS Nuke + +Remove all resources from an AWS account. + +*aws-nuke* is stable, but it is likely that not all AWS resources are covered by it. Be encouraged to add missing +resources and create a Pull Request or to create an [Issue](https://github.com/ekristen/aws-nuke/issues/new). + +## History + +This is a full fork of the original tool written by the folks over at [rebuy-de](https://github.com/rebuy-de). This fork became necessary +after attempting to make contributions and respond to issues to learn that the current maintainers only have time to +work on the project about once a month and while receptive to bringing in other people to help maintain, made it clear +it would take time. Considering the feedback cycle was already weeks on initial communications, I had to make the hard +decision to fork and maintain it. + +Since then the rebuy-de team has taken up interest in responding to their issues and pull requests, but I have decided +to continue maintaining this fork as I have a few things I want to do with it that I don't think they will be interested. + +## libnuke + +Officially over the Christmas break of 2023, I decided to create [libnuke](https://github.com/ekristen/libnuke) which +is a library that can be used to create similar tools for other cloud providers. This library is used by both this tool, +aws-nuke, and [azure-nuke](https://github.com/ekristen/azure-nuke) and soon [gcp-nuke](https://github.com/ekristen/gcp-nuke). + +I also needed a version of this tool for Azure and GCP, and initially I just copied and altered the code I needed for +Azure, but I didn't want to have to maintain multiple copies of the same code, so I decided to create +[libnuke](https://github.com/ekristen/libnuke) to abstract all the code that was common between the two tools and write proper unit tests for it. diff --git a/docs/installation.md b/docs/installation.md new file mode 100644 index 00000000..f3ee060f --- /dev/null +++ b/docs/installation.md @@ -0,0 +1,36 @@ +# Install + +## Install the pre-compiled binary + +### Homebrew Tap (MacOS/Linux) + +```console +brew install ekristen/tap/aws-nuke +``` + +!!! note + `brew install aws-nuke` will install the rebuy-aws version of aws-nuke, which is not the same as this version. + +## Releases + +You can download pre-compiled binaries from the [releases](https://github.com/ekristen/aws-nuke/releases) page. + +## Docker + +Registries: + +- [ghcr.io/ekristen/aws-nuke](https://github.com/ekristen/aws-nuke/pkgs/container/aws-nuke) +- [docker.io/ekristen/aws-nuke](https://hub.docker.com/r/ekristen/aws-nuke) + +You can run *aws-nuke* with Docker by using a command like this: + +## Source + +To compile *aws-nuke* from source you need a working [Golang](https://golang.org/doc/install) development environment and [goreleaser](https://goreleaser.com/install/). + +*aws-nuke* uses go modules and so the clone path should no matter. Then simply change directory into the clone and run: + +```bash +goreleaser --clean --snapshot --single-target +``` + diff --git a/docs/quick-start.md b/docs/quick-start.md new file mode 100644 index 00000000..506cc79d --- /dev/null +++ b/docs/quick-start.md @@ -0,0 +1,135 @@ +# First Run + +## First Configuration + +First you need to create a config file for *aws-nuke*. This is a minimal one: + +```yaml +regions: + - global + - us-east-1 + +account-blocklist: +- "999999999999" # production + +accounts: + "000000000000": {} # aws-nuke-example +``` + +## First Run (Dry Run) + +With this config we can run *aws-nuke*: + +```bash +$ aws-nuke nuke -c config/nuke-config.yaml +aws-nuke version v1.0.39.gc2f318f - Fri Jul 28 16:26:41 CEST 2017 - c2f318f37b7d2dec0e646da3d4d05ab5296d5bce + +Do you really want to nuke the account with the ID 000000000000 and the alias 'aws-nuke-example'? +Do you want to continue? Enter account alias to continue. +> aws-nuke-example + +us-east-1 - EC2DHCPOption - 'dopt-bf2ec3d8' - would remove +us-east-1 - EC2Instance - 'i-01b489457a60298dd' - would remove +us-east-1 - EC2KeyPair - 'test' - would remove +us-east-1 - EC2NetworkACL - 'acl-6482a303' - cannot delete default VPC +us-east-1 - EC2RouteTable - 'rtb-ffe91e99' - would remove +us-east-1 - EC2SecurityGroup - 'sg-220e945a' - cannot delete group 'default' +us-east-1 - EC2SecurityGroup - 'sg-f20f958a' - would remove +us-east-1 - EC2Subnet - 'subnet-154d844e' - would remove +us-east-1 - EC2Volume - 'vol-0ddfb15461a00c3e2' - would remove +us-east-1 - EC2VPC - 'vpc-c6159fa1' - would remove +us-east-1 - IAMUserAccessKey - 'my-user -> ABCDEFGHIJKLMNOPQRST' - would remove +us-east-1 - IAMUserPolicyAttachment - 'my-user -> AdministratorAccess' - [UserName: "my-user", PolicyArn: "arn:aws:iam::aws:policy/AdministratorAccess", PolicyName: "AdministratorAccess"] - would remove +us-east-1 - IAMUser - 'my-user' - would remove +Scan complete: 13 total, 11 nukeable, 2 filtered. + +Would delete these resources. Provide --no-dry-run to actually destroy resources. +``` + +As we see, *aws-nuke* only lists all found resources and exits. This is because the `--no-dry-run` flag is missing. +Also, it wants to delete the administrator. We don't want to do this, because we use this user to access our account. +Therefore, we have to extend the config, so it ignores this user: + +```yaml +regions: +- us-east-1 + +account-blocklist: +- "999999999999" # production + +accounts: + "000000000000": # aws-nuke-example + filters: + IAMUser: + - "my-user" + IAMUserPolicyAttachment: + - "my-user -> AdministratorAccess" + IAMUserAccessKey: + - "my-user -> ABCDEFGHIJKLMNOPQRST" +``` + +## Second Run (No Dry Run) + +!!! warning +This will officially remove resources from your AWS account. Make sure you really want to do this! + +```bash +$ aws-nuke nuke -c config/nuke-config.yml --no-dry-run +aws-nuke version v1.0.39.gc2f318f - Fri Jul 28 16:26:41 CEST 2017 - c2f318f37b7d2dec0e646da3d4d05ab5296d5bce + +Do you really want to nuke the account with the ID 000000000000 and the alias 'aws-nuke-example'? +Do you want to continue? Enter account alias to continue. +> aws-nuke-example + +us-east-1 - EC2DHCPOption - 'dopt-bf2ec3d8' - would remove +us-east-1 - EC2Instance - 'i-01b489457a60298dd' - would remove +us-east-1 - EC2KeyPair - 'test' - would remove +us-east-1 - EC2NetworkACL - 'acl-6482a303' - cannot delete default VPC +us-east-1 - EC2RouteTable - 'rtb-ffe91e99' - would remove +us-east-1 - EC2SecurityGroup - 'sg-220e945a' - cannot delete group 'default' +us-east-1 - EC2SecurityGroup - 'sg-f20f958a' - would remove +us-east-1 - EC2Subnet - 'subnet-154d844e' - would remove +us-east-1 - EC2Volume - 'vol-0ddfb15461a00c3e2' - would remove +us-east-1 - EC2VPC - 'vpc-c6159fa1' - would remove +us-east-1 - IAMUserAccessKey - 'my-user -> ABCDEFGHIJKLMNOPQRST' - filtered by config +us-east-1 - IAMUserPolicyAttachment - 'my-user -> AdministratorAccess' - [UserName: "my-user", PolicyArn: "arn:aws:iam::aws:policy/AdministratorAccess", PolicyName: "AdministratorAccess"] - would remove +us-east-1 - IAMUser - 'my-user' - filtered by config +Scan complete: 13 total, 8 nukeable, 5 filtered. + +Do you really want to nuke these resources on the account with the ID 000000000000 and the alias 'aws-nuke-example'? +Do you want to continue? Enter account alias to continue. +> aws-nuke-example + +us-east-1 - EC2DHCPOption - 'dopt-bf2ec3d8' - failed +us-east-1 - EC2Instance - 'i-01b489457a60298dd' - triggered remove +us-east-1 - EC2KeyPair - 'test' - triggered remove +us-east-1 - EC2RouteTable - 'rtb-ffe91e99' - failed +us-east-1 - EC2SecurityGroup - 'sg-f20f958a' - failed +us-east-1 - EC2Subnet - 'subnet-154d844e' - failed +us-east-1 - EC2Volume - 'vol-0ddfb15461a00c3e2' - failed +us-east-1 - EC2VPC - 'vpc-c6159fa1' - failed +us-east-1 - S3Object - 's3://rebuy-terraform-state-138758637120/run-terraform.lock' - triggered remove + +Removal requested: 2 waiting, 6 failed, 5 skipped, 0 finished + +us-east-1 - EC2DHCPOption - 'dopt-bf2ec3d8' - failed +us-east-1 - EC2Instance - 'i-01b489457a60298dd' - waiting +us-east-1 - EC2KeyPair - 'test' - removed +us-east-1 - EC2RouteTable - 'rtb-ffe91e99' - failed +us-east-1 - EC2SecurityGroup - 'sg-f20f958a' - failed +us-east-1 - EC2Subnet - 'subnet-154d844e' - failed +us-east-1 - EC2Volume - 'vol-0ddfb15461a00c3e2' - failed +us-east-1 - EC2VPC - 'vpc-c6159fa1' - failed + +Removal requested: 1 waiting, 6 failed, 5 skipped, 1 finished + +--- truncating long output --- +``` + +As you see *aws-nuke* now tries to delete all resources which aren't filtered, without caring about the dependencies +between them. This results in API errors which can be ignored. These errors are shown at the end of the *aws-nuke* run, +if they keep to appear. + +*aws-nuke* retries deleting all resources until all specified ones are deleted +or until there are only resources with errors left. + diff --git a/docs/releases.md b/docs/releases.md new file mode 100644 index 00000000..6cf041d5 --- /dev/null +++ b/docs/releases.md @@ -0,0 +1,8 @@ +# Releases + +We usually release a new version once enough changes came together and have been tested for a while. + +You can find Linux, macOS and Windows binaries on the [releases page](https://github.com/ekristen/aws-nuke/releases), but we also provide containerized +versions on [ghcr.io/ekristen/aws-nuke](https://ghcr.io/ekristen/aws-nuke) and [docker.io/ekristen/aws-nuke](https://hub.docker.com/r/ekristen/aws-nuke). Both are available for multiple +architectures (amd64, arm64 & armv7) using Docker manifests. You can reference the main tag on any system and get +the correct docker image automatically. \ No newline at end of file diff --git a/docs/resources.md b/docs/resources.md new file mode 100644 index 00000000..18049314 --- /dev/null +++ b/docs/resources.md @@ -0,0 +1,104 @@ +# Resources + +Resources are the core of the tool, they are what is used to list and remove resources from AWS. The resources are +broken down into separate files. + +When creating a resource there's the base resource type, then there's the `Lister` type that returns a list of resources +that it discovers. Those resources are then filtered by any filtering criteria on the resource itself. + +## Anatomy of a Resource + +The anatomy of a resource is fairly simple, it's broken down into a few parts: + +- `Resource` - This is the base resource type that is used to define the resource. +- `Lister` - This is the type that is used to list the resources. + +The resource must have the `func Remove() error` method defined on it, this is what is used to remove the resource. + +It can optionally have the following methods defined: + +- `func Filter() error` - This is used to pre-filter resources, usually based on internal criteria, like system defaults. +- `func String() string` - This is used to print the resource in a human-readable format. +- `func Properties() types.Properties` - This is used to print the resource in a human-readable format. + +### Example + +```go +package resources + +import ( + "context" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" +) + +type ExampleResourceLister struct{} + +func (l *ExampleResourceLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + var resources []resource.Resource + + // list the resources and add to resources slice + + return resources, nil +} + +// ----------------------------------------------------------------------------- + +type ExampleResource struct { + ID *string +} + +func (r *ExampleResource) Remove(_ context.Context) error { + // remove the resource, an error will put the resource in failed state + // resources in failed state are retried a number of times + return nil +} + +func (r *ExampleResource) Filter() error { + // filter the resource, this is useful for built-in resources that cannot + // be removed, like an AWS managed resource, return an error here to filter + // it before it even gets to the user supplied filters. + return nil +} + +func (r *ExampleResource) String() string { + // return a string representation of the resource, this is legacy, but still + // used for a number of reasons. + return *r.ID +} + +func (r *ExampleResource) Properties() types.Properties { + // return a properties representation of the resource + props := types.NewProperties() + props.Set("ID", r.ID) + return props +} +``` + +## Creating a new resource + +Creating a new resources is fairly straightforward and a template is provided for you, along with a tool to help you +generate the boilerplate code. + +Currently, the code is generated using a tool that is located in `tools/create-resource/main.go` and can be run like so: + +!!! note + At present, the tool does not check if the service or the resource type is valid, this is purely a helper tool to + generate the boilerplate code. + +```bash +go run tools/create-resource/main.go +``` + +This will output the boilerplate code to stdout, so you can copy and paste it into the appropriate file or you can +redirect to a file like so: + +```bash +go run tools/create-resource/main.go > resources/.go +``` + diff --git a/docs/testing.md b/docs/testing.md new file mode 100644 index 00000000..31d148ba --- /dev/null +++ b/docs/testing.md @@ -0,0 +1,20 @@ +# Testing + +This is not a lot of test coverage around the resources themselves. This is due to the cost + +## Unit Tests + +To unit test *aws-nuke*, some tests require [gomock](https://github.com/golang/mock) to run. However these mocks are +included in the source code already, but they can be generated by running: + +```bash +make generate +``` + +Which is just a wrapper around `go generate ./...`. + +To run the unit tests, simply run: + +```bash +make test +``` \ No newline at end of file diff --git a/docs/warning.md b/docs/warning.md new file mode 100644 index 00000000..be809df6 --- /dev/null +++ b/docs/warning.md @@ -0,0 +1,31 @@ +# Caution and Warning + +!!! danger + Be aware that *aws-nuke* is a very destructive tool, hence you have to be very careful while using it. Otherwise, + you might delete production data. + +!!! warning + **We strongly advise you to not run this application on any AWS account, where you cannot afford to lose + all resources.** + +To reduce the blast radius of accidents, there are some safety precautions: + +1. By default, *aws-nuke* only lists all nuke-able resources. You need to add `--no-dry-run` to actually delete + resources. +2. *aws-nuke* asks you twice to confirm the deletion by entering the account alias. The first time is directly + after the start and the second time after listing all nuke-able resources. +3. To avoid just displaying a account ID, which might gladly be ignored by humans, it is required to actually set + an [Account Alias](https://docs.aws.amazon.com/IAM/latest/UserGuide/console_account-alias.html) for your account. Otherwise, *aws-nuke* will abort. +4. The Account Alias must not contain the string `prod`. This string is hardcoded, and it is recommended to add it + to every actual production account (e.g. `mycompany-production-ecr`). +5. The config file contains a blocklist field. If the Account ID of the account you want to nuke is part of this + blocklist, *aws-nuke* will abort. It is recommended, that you add every production account to this blocklist. +6. To ensure you don't just ignore the blocklisting feature, the blocklist must contain at least one Account ID. +7. The config file contains account specific settings (e.g. filters). The account you want to nuke must be explicitly + listed there. +8. To ensure to not accidentally delete a random account, it is required to specify a config file. It is recommended + to have only a single config file and add it to a central repository. This way the account blocklist is way + easier to manage and keep up to date. + +Feel free to create an issue, if you have any ideas to improve the safety procedures. + diff --git a/go.mod b/go.mod index 20c924e2..bf5a1ccc 100644 --- a/go.mod +++ b/go.mod @@ -1,44 +1,35 @@ -module github.com/rebuy-de/aws-nuke/v2 +module github.com/ekristen/aws-nuke -go 1.19 +go 1.21.6 require ( - github.com/Masterminds/sprig v2.22.0+incompatible - github.com/aws/aws-sdk-go v1.44.225 - github.com/aws/smithy-go v1.13.5 - github.com/fatih/color v1.15.0 + github.com/aws/aws-sdk-go v1.49.13 + github.com/ekristen/libnuke v0.0.0-20240115160410-493db5654770 + github.com/fatih/color v1.16.0 github.com/golang/mock v1.6.0 - github.com/google/uuid v1.3.0 - github.com/iancoleman/strcase v0.2.0 - github.com/mb0/glob v0.0.0-20160210091149-1eb79d2de6c4 + github.com/google/uuid v1.5.0 + github.com/gotidy/ptr v1.4.0 github.com/pkg/errors v0.9.1 - github.com/rebuy-de/rebuy-go-sdk/v4 v4.5.1 - github.com/sirupsen/logrus v1.9.0 - github.com/spf13/cobra v1.6.1 - github.com/stretchr/testify v1.8.1 - golang.org/x/sync v0.1.0 + github.com/sirupsen/logrus v1.9.3 + github.com/stretchr/testify v1.8.4 + github.com/urfave/cli/v2 v2.27.1 gopkg.in/yaml.v3 v3.0.1 ) require ( - github.com/Masterminds/goutils v1.1.1 // indirect - github.com/Masterminds/semver v1.5.0 // indirect + github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect github.com/davecgh/go-spew v1.1.1 // indirect - github.com/gemnasium/logrus-graylog-hook/v3 v3.1.0 // indirect - github.com/huandu/xstrings v1.4.0 // indirect - github.com/imdario/mergo v0.3.14 // indirect - github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect - github.com/kr/text v0.2.0 // indirect + github.com/kr/pretty v0.3.1 // indirect github.com/mattn/go-colorable v0.1.13 // indirect - github.com/mattn/go-isatty v0.0.17 // indirect - github.com/mitchellh/copystructure v1.2.0 // indirect - github.com/mitchellh/reflectwalk v1.0.2 // indirect + github.com/mattn/go-isatty v0.0.20 // indirect + github.com/mb0/glob v0.0.0-20160210091149-1eb79d2de6c4 // indirect + github.com/mitchellh/hashstructure/v2 v2.0.2 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - github.com/spf13/pflag v1.0.5 // indirect - golang.org/x/crypto v0.7.0 // indirect - golang.org/x/mod v0.9.0 // indirect - golang.org/x/sys v0.6.0 // indirect - golang.org/x/tools v0.7.0 // indirect + github.com/russross/blackfriday/v2 v2.1.0 // indirect + github.com/stevenle/topsort v0.2.0 // indirect + github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect + golang.org/x/sync v0.6.0 // indirect + golang.org/x/sys v0.14.0 // indirect gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect ) diff --git a/go.sum b/go.sum index c9f60316..48a298ed 100644 --- a/go.sum +++ b/go.sum @@ -1,43 +1,28 @@ -github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI= -github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= -github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww= -github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y= -github.com/Masterminds/sprig v2.22.0+incompatible h1:z4yfnGrZ7netVz+0EDJ0Wi+5VZCSYp4Z0m2dk6cEM60= -github.com/Masterminds/sprig v2.22.0+incompatible/go.mod h1:y6hNFY5UBTIWBxnzTeuNhlNS5hqE0NB0E6fgfo2Br3o= -github.com/aws/aws-sdk-go v1.44.225 h1:JNJpUg+M1cm4jtKnyex//Mw1Rv8QN/kWT3dtr+oLdW4= -github.com/aws/aws-sdk-go v1.44.225/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= -github.com/aws/smithy-go v1.13.5 h1:hgz0X/DX0dGqTYpGALqXJoRKRj5oQ7150i5FdTePzO8= -github.com/aws/smithy-go v1.13.5/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= +github.com/aws/aws-sdk-go v1.49.13 h1:f4mGztsgnx2dR9r8FQYa9YW/RsKb+N7bgef4UGrOW1Y= +github.com/aws/aws-sdk-go v1.49.13/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= -github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw= -github.com/gemnasium/logrus-graylog-hook/v3 v3.1.0 h1:SLtCnpI5ZZaz4l7RSatEhppB1BBhUEu+DqGANJzJdEA= -github.com/gemnasium/logrus-graylog-hook/v3 v3.1.0/go.mod h1:wi1zWv9tIvyLSMLCAzgRP+YR24oLVQVBHfPPKjtht44= +github.com/ekristen/libnuke v0.0.0-20240115160410-493db5654770 h1:RE8cbaqUhdxOAguCqz0poOOL48vTUWLTBmSDUy5STGc= +github.com/ekristen/libnuke v0.0.0-20240115160410-493db5654770/go.mod h1:1ySAhDQd6laQdG7VbG/+i+DAFIVMHlrk2ZXgwHuvOk4= +github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= +github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= -github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/huandu/xstrings v1.4.0 h1:D17IlohoQq4UcpqD7fDk80P7l+lwAmlFaBHgOipl2FU= -github.com/huandu/xstrings v1.4.0/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= -github.com/iancoleman/strcase v0.2.0 h1:05I4QRnGpI0m37iZQRuskXh+w77mr6Z41lwQzuHLwW0= -github.com/iancoleman/strcase v0.2.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= -github.com/imdario/mergo v0.3.14 h1:fOqeC1+nCuuk6PKQdg9YmosXX7Y7mHX6R/0ZldI9iHo= -github.com/imdario/mergo v0.3.14/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY= -github.com/inconshreveable/mousetrap v1.0.1/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= -github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= -github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= +github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= +github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/gotidy/ptr v1.4.0 h1:7++suUs+HNHMnyz6/AW3SE+4EnBhupPSQTSI7QNijVc= +github.com/gotidy/ptr v1.4.0/go.mod h1:MjRBG6/IETiiZGWI8LrRtISXEji+8b/jigmj2q0mEyM= 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 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8= github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= -github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/kr/pretty v0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= @@ -45,91 +30,64 @@ github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= -github.com/mattn/go-isatty v0.0.17 h1:BTarxUcIeDqL27Mc+vyvdWYSL28zpIhv3RoTdsLMPng= -github.com/mattn/go-isatty v0.0.17/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= +github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= +github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mb0/glob v0.0.0-20160210091149-1eb79d2de6c4 h1:NK3O7S5FRD/wj7ORQ5C3Mx1STpyEMuFe+/F0Lakd1Nk= github.com/mb0/glob v0.0.0-20160210091149-1eb79d2de6c4/go.mod h1:FqD3ES5hx6zpzDainDaHgkTIqrPaI9uX4CVWqYZoQjY= -github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw= -github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s= -github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ= -github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= -github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/mitchellh/hashstructure/v2 v2.0.2 h1:vGKWl0YJqUNxE8d+h8f6NJLcCJrgbhC4NcD46KavDd4= +github.com/mitchellh/hashstructure/v2 v2.0.2/go.mod h1:MG3aRVU/N29oo/V/IhBX8GR/zz4kQkprJgF2EVszyDE= +github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/rebuy-de/rebuy-go-sdk/v4 v4.5.1 h1:7QWjC0uku9pIqTXS664clCMjqhZLjO/sUV7yTJJwzAk= -github.com/rebuy-de/rebuy-go-sdk/v4 v4.5.1/go.mod h1:ZSfnIcE8RFKz7IO6AFZjETDbPyMdUjtxCea9R7Q6pQE= +github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= +github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= +github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/sirupsen/logrus v1.3.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= -github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0= -github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= -github.com/spf13/cobra v1.6.1 h1:o94oiPyS4KD1mPy2fmcYYHHfCxLqYjJOhGsCHFZtEzA= -github.com/spf13/cobra v1.6.1/go.mod h1:IOw/AERYS7UzyrGinqmz6HLUo219MORXGxhbaJUqzrY= -github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= -github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= +github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= +github.com/stevenle/topsort v0.2.0 h1:LLWgtp34HPX6/RBDRS0kElVxGOTzGBLI1lSAa5Lb46k= +github.com/stevenle/topsort v0.2.0/go.mod h1:ck2WG2/ZrOr6dLApQ/5Xrqy5wv3T0qhKYWE7r9tkibc= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= -github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= -github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk= -github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/urfave/cli/v2 v2.27.1 h1:8xSQ6szndafKVRmfyeUMxkNUJQMjL1F2zmsZ+qHpfho= +github.com/urfave/cli/v2 v2.27.1/go.mod h1:8qnjx1vcq5s2/wpsqoZFndg2CE5tNFyrTvS6SinrnYQ= +github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 h1:bAn7/zixMGCfxrRTfdpNzjtPYqr8smhKouy9mxVdGPU= +github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= -github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.7.0 h1:AvwMYaRytfdeVt3u6mLaxYtErKYjxA2OXjJ1HHq6t3A= -golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= -golang.org/x/mod v0.9.0 h1:KENHtAZL2y3NLMYZeHY9DW8HW8V+kQyJsY/V9JlKvCs= -golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= -golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ= +golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= +golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o= -golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ= +golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.14.0 h1:Vz7Qs629MkJkGyHxUlRHizWJRG2j8fbQKjELVSNhy7Q= +golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68= +golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= +golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= -golang.org/x/tools v0.7.0 h1:W4OVu8VVOaIO0yzWMNdepAulS7YfoS3Zabrm8DOXXU4= -golang.org/x/tools v0.7.0/go.mod h1:4pg6aUX35JBAogB10C9AtvVL+qowtN4pT3CGSQex14s= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -138,6 +96,7 @@ gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntN gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/golang.mk b/golang.mk deleted file mode 100644 index 4b77cafc..00000000 --- a/golang.mk +++ /dev/null @@ -1,92 +0,0 @@ -TARGETS?="." -PACKAGE=$(shell GOPATH= go list $(TARGET)) -NAME=$(notdir $(shell echo $(PACKAGE) | sed 's/\/v2//')) - -BUILD_VERSION=$(shell git describe --always --dirty --tags | tr '-' '.' ) -BUILD_DATE=$(shell LC_ALL=C date) -BUILD_HASH=$(shell git rev-parse HEAD) -BUILD_MACHINE=$(shell uname -n) -BUILD_USER=$(shell whoami) -BUILD_ENVIRONMENT=$(BUILD_USER)@$(BUILD_MACHINE) - -BUILD_XDST=$(PACKAGE)/cmd -BUILD_FLAGS=-ldflags "\ - $(ADDITIONAL_LDFLAGS) -s -w \ - -X '$(BUILD_XDST).BuildVersion=$(BUILD_VERSION)' \ - -X '$(BUILD_XDST).BuildDate=$(BUILD_DATE)' \ - -X '$(BUILD_XDST).BuildHash=$(BUILD_HASH)' \ - -X '$(BUILD_XDST).BuildEnvironment=$(BUILD_ENVIRONMENT)' \ -" - -GOFILES=$(shell find . -type f -name '*.go' -not -path "./vendor/*" -not -path "./.git/*") -GOPKGS=$(shell go list ./...) - -OUTPUT_FILE=$(NAME)-$(BUILD_VERSION)-$(shell go env GOOS)-$(shell go env GOARCH)$(shell go env GOARM)$(shell go env GOEXE) -OUTPUT_LINK=$(NAME)$(shell go env GOEXE) -WINDOWS_ZIP=$(shell echo $(OUTPUT_FILE) | sed 's/\.exe/\.zip/') - -default: build - -vendor: go.mod go.sum - go mod vendor - touch vendor - -format: - gofmt -s -w $(GOFILES) - -vet: go_generate vendor - go vet $(GOPKGS) - -lint: - $(foreach pkg,$(GOPKGS),golint $(pkg);) - -go_generate: - rm -rvf mocks - go generate ./... - -test_packages: go_generate vendor - go test $(GOPKGS) - -test_format: - gofmt -s -l $(GOFILES) - -test: test_format vet lint test_packages - -cov: go_generate - gocov test -v $(GOPKGS) \ - | gocov-html > coverage.html - -_build: vendor - mkdir -p dist - $(foreach TARGET,$(TARGETS),go build \ - $(BUILD_FLAGS) \ - -o dist/$(OUTPUT_FILE) \ - $(TARGET);\ - ) - -build: go_generate _build - $(foreach TARGET,$(TARGETS),ln -sf $(OUTPUT_FILE) dist/$(OUTPUT_LINK);) - -compress: _build -ifeq ($(GOOS),windows) - zip -j dist/$(WINDOWS_ZIP) dist/$(OUTPUT_FILE) -else - tar czf dist/$(OUTPUT_FILE).tar.gz -C dist $(OUTPUT_FILE) -endif - rm -f dist/$(OUTPUT_FILE) - -xc: go_generate - GOOS=linux GOARCH=amd64 make compress - GOOS=linux GOARCH=arm64 make compress - GOOS=linux GOARCH=arm GOARM=7 make compress - GOOS=darwin GOARCH=amd64 make compress - GOOS=darwin GOARCH=arm64 make compress - GOOS=windows GOARCH=amd64 make compress - -install: test - $(foreach TARGET,$(TARGETS),go install \ - $(BUILD_FLAGS);) - -clean: - rm dist/ -rvf - rm mocks/ -rvf diff --git a/main.go b/main.go index d6379f0a..0c964014 100644 --- a/main.go +++ b/main.go @@ -1,13 +1,46 @@ package main import ( + "github.com/sirupsen/logrus" + "github.com/urfave/cli/v2" "os" - "github.com/rebuy-de/aws-nuke/v2/cmd" + "github.com/ekristen/aws-nuke/pkg/common" + + _ "github.com/ekristen/aws-nuke/pkg/commands/list" + _ "github.com/ekristen/aws-nuke/pkg/commands/nuke" + + _ "github.com/ekristen/aws-nuke/resources" ) func main() { - if err := cmd.NewRootCommand().Execute(); err != nil { - os.Exit(-1) + defer func() { + if r := recover(); r != nil { + // log panics forces exit + if _, ok := r.(*logrus.Entry); ok { + os.Exit(1) + } + panic(r) + } + }() + + app := cli.NewApp() + app.Name = common.AppVersion.Name + app.Usage = "remove everything from an aws account" + app.Version = common.AppVersion.Summary + app.Authors = []*cli.Author{ + { + Name: "Erik Kristensen", + Email: "erik@erikkristensen.com", + }, + } + + app.Commands = common.GetCommands() + app.CommandNotFound = func(context *cli.Context, command string) { + logrus.Fatalf("Command %s not found.", command) + } + + if err := app.Run(os.Args); err != nil { + logrus.Fatal(err) } } diff --git a/mkdocs.yml b/mkdocs.yml new file mode 100644 index 00000000..50ab06db --- /dev/null +++ b/mkdocs.yml @@ -0,0 +1,68 @@ +site_name: AWS Nuke +site_url: https://ekristen.github.io/aws-nuke +repo_name: ekristen/aws-nuke +repo_url: https://github.com/ekristen/aws-nuke +edit_uri: "" + +site_dir: public + +# Configuration +theme: + name: material + language: en + palette: + - media: "(prefers-color-scheme)" + toggle: + icon: material/link + name: Switch to light mode + - media: "(prefers-color-scheme: light)" + scheme: default + primary: indigo + accent: indigo + toggle: + icon: material/toggle-switch + name: Switch to dark mode + - media: "(prefers-color-scheme: dark)" + scheme: slate + primary: black + accent: indigo + toggle: + icon: material/toggle-switch-off + name: Switch to system preference + features: + - navigation.sections + #- navigation.tabs + - toc.integrate + - navigation.path + +# Plugins +plugins: + - search + +# Extensions +markdown_extensions: + - admonition + - pymdownx.highlight + - pymdownx.superfences + - pymdownx.tabbed: + alternate_style: true + - toc: + permalink: true + +# Page tree +nav: + - Getting Started: + - Introduction: index.md + - Warning: warning.md + - Install: installation.md + - Authentication: auth.md + - Quick Start: quick-start.md + - Config: + - Filtering: filtering.md + - Custom Endpoints: custom-endpoints.md + - Development: + - Overview: development.md + - Resources: resources.md + - Releases: releases.md + - Testing: testing.md + diff --git a/mocks/mock_cloudformationiface/mock.go b/mocks/mock_cloudformationiface/mock.go new file mode 100644 index 00000000..24e253fd --- /dev/null +++ b/mocks/mock_cloudformationiface/mock.go @@ -0,0 +1,4189 @@ +// Code generated by MockGen. DO NOT EDIT. +// Source: /Users/ekristen/go/pkg/mod/github.com/aws/aws-sdk-go@v1.44.225/service/cloudformation/cloudformationiface/interface.go + +// Package mock_cloudformationiface is a generated GoMock package. +package mock_cloudformationiface + +import ( + reflect "reflect" + + aws "github.com/aws/aws-sdk-go/aws" + request "github.com/aws/aws-sdk-go/aws/request" + cloudformation "github.com/aws/aws-sdk-go/service/cloudformation" + gomock "github.com/golang/mock/gomock" +) + +// MockCloudFormationAPI is a mock of CloudFormationAPI interface. +type MockCloudFormationAPI struct { + ctrl *gomock.Controller + recorder *MockCloudFormationAPIMockRecorder +} + +func (m *MockCloudFormationAPI) ActivateOrganizationsAccess(input *cloudformation.ActivateOrganizationsAccessInput) (*cloudformation.ActivateOrganizationsAccessOutput, error) { + //TODO implement me + panic("implement me") +} + +func (m *MockCloudFormationAPI) ActivateOrganizationsAccessWithContext(context aws.Context, input *cloudformation.ActivateOrganizationsAccessInput, option ...request.Option) (*cloudformation.ActivateOrganizationsAccessOutput, error) { + //TODO implement me + panic("implement me") +} + +func (m *MockCloudFormationAPI) ActivateOrganizationsAccessRequest(input *cloudformation.ActivateOrganizationsAccessInput) (*request.Request, *cloudformation.ActivateOrganizationsAccessOutput) { + //TODO implement me + panic("implement me") +} + +func (m *MockCloudFormationAPI) DeactivateOrganizationsAccess(input *cloudformation.DeactivateOrganizationsAccessInput) (*cloudformation.DeactivateOrganizationsAccessOutput, error) { + //TODO implement me + panic("implement me") +} + +func (m *MockCloudFormationAPI) DeactivateOrganizationsAccessWithContext(context aws.Context, input *cloudformation.DeactivateOrganizationsAccessInput, option ...request.Option) (*cloudformation.DeactivateOrganizationsAccessOutput, error) { + //TODO implement me + panic("implement me") +} + +func (m *MockCloudFormationAPI) DeactivateOrganizationsAccessRequest(input *cloudformation.DeactivateOrganizationsAccessInput) (*request.Request, *cloudformation.DeactivateOrganizationsAccessOutput) { + //TODO implement me + panic("implement me") +} + +func (m *MockCloudFormationAPI) DescribeOrganizationsAccess(input *cloudformation.DescribeOrganizationsAccessInput) (*cloudformation.DescribeOrganizationsAccessOutput, error) { + //TODO implement me + panic("implement me") +} + +func (m *MockCloudFormationAPI) DescribeOrganizationsAccessWithContext(context aws.Context, input *cloudformation.DescribeOrganizationsAccessInput, option ...request.Option) (*cloudformation.DescribeOrganizationsAccessOutput, error) { + //TODO implement me + panic("implement me") +} + +func (m *MockCloudFormationAPI) DescribeOrganizationsAccessRequest(input *cloudformation.DescribeOrganizationsAccessInput) (*request.Request, *cloudformation.DescribeOrganizationsAccessOutput) { + //TODO implement me + panic("implement me") +} + +func (m *MockCloudFormationAPI) ListStackInstanceResourceDrifts(input *cloudformation.ListStackInstanceResourceDriftsInput) (*cloudformation.ListStackInstanceResourceDriftsOutput, error) { + //TODO implement me + panic("implement me") +} + +func (m *MockCloudFormationAPI) ListStackInstanceResourceDriftsWithContext(context aws.Context, input *cloudformation.ListStackInstanceResourceDriftsInput, option ...request.Option) (*cloudformation.ListStackInstanceResourceDriftsOutput, error) { + //TODO implement me + panic("implement me") +} + +func (m *MockCloudFormationAPI) ListStackInstanceResourceDriftsRequest(input *cloudformation.ListStackInstanceResourceDriftsInput) (*request.Request, *cloudformation.ListStackInstanceResourceDriftsOutput) { + //TODO implement me + panic("implement me") +} + +// MockCloudFormationAPIMockRecorder is the mock recorder for MockCloudFormationAPI. +type MockCloudFormationAPIMockRecorder struct { + mock *MockCloudFormationAPI +} + +// NewMockCloudFormationAPI creates a new mock instance. +func NewMockCloudFormationAPI(ctrl *gomock.Controller) *MockCloudFormationAPI { + mock := &MockCloudFormationAPI{ctrl: ctrl} + mock.recorder = &MockCloudFormationAPIMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockCloudFormationAPI) EXPECT() *MockCloudFormationAPIMockRecorder { + return m.recorder +} + +// ActivateType mocks base method. +func (m *MockCloudFormationAPI) ActivateType(arg0 *cloudformation.ActivateTypeInput) (*cloudformation.ActivateTypeOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ActivateType", arg0) + ret0, _ := ret[0].(*cloudformation.ActivateTypeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ActivateType indicates an expected call of ActivateType. +func (mr *MockCloudFormationAPIMockRecorder) ActivateType(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActivateType", reflect.TypeOf((*MockCloudFormationAPI)(nil).ActivateType), arg0) +} + +// ActivateTypeRequest mocks base method. +func (m *MockCloudFormationAPI) ActivateTypeRequest(arg0 *cloudformation.ActivateTypeInput) (*request.Request, *cloudformation.ActivateTypeOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ActivateTypeRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.ActivateTypeOutput) + return ret0, ret1 +} + +// ActivateTypeRequest indicates an expected call of ActivateTypeRequest. +func (mr *MockCloudFormationAPIMockRecorder) ActivateTypeRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActivateTypeRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).ActivateTypeRequest), arg0) +} + +// ActivateTypeWithContext mocks base method. +func (m *MockCloudFormationAPI) ActivateTypeWithContext(arg0 aws.Context, arg1 *cloudformation.ActivateTypeInput, arg2 ...request.Option) (*cloudformation.ActivateTypeOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ActivateTypeWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.ActivateTypeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ActivateTypeWithContext indicates an expected call of ActivateTypeWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ActivateTypeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActivateTypeWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ActivateTypeWithContext), varargs...) +} + +// BatchDescribeTypeConfigurations mocks base method. +func (m *MockCloudFormationAPI) BatchDescribeTypeConfigurations(arg0 *cloudformation.BatchDescribeTypeConfigurationsInput) (*cloudformation.BatchDescribeTypeConfigurationsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchDescribeTypeConfigurations", arg0) + ret0, _ := ret[0].(*cloudformation.BatchDescribeTypeConfigurationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchDescribeTypeConfigurations indicates an expected call of BatchDescribeTypeConfigurations. +func (mr *MockCloudFormationAPIMockRecorder) BatchDescribeTypeConfigurations(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchDescribeTypeConfigurations", reflect.TypeOf((*MockCloudFormationAPI)(nil).BatchDescribeTypeConfigurations), arg0) +} + +// BatchDescribeTypeConfigurationsRequest mocks base method. +func (m *MockCloudFormationAPI) BatchDescribeTypeConfigurationsRequest(arg0 *cloudformation.BatchDescribeTypeConfigurationsInput) (*request.Request, *cloudformation.BatchDescribeTypeConfigurationsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchDescribeTypeConfigurationsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.BatchDescribeTypeConfigurationsOutput) + return ret0, ret1 +} + +// BatchDescribeTypeConfigurationsRequest indicates an expected call of BatchDescribeTypeConfigurationsRequest. +func (mr *MockCloudFormationAPIMockRecorder) BatchDescribeTypeConfigurationsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchDescribeTypeConfigurationsRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).BatchDescribeTypeConfigurationsRequest), arg0) +} + +// BatchDescribeTypeConfigurationsWithContext mocks base method. +func (m *MockCloudFormationAPI) BatchDescribeTypeConfigurationsWithContext(arg0 aws.Context, arg1 *cloudformation.BatchDescribeTypeConfigurationsInput, arg2 ...request.Option) (*cloudformation.BatchDescribeTypeConfigurationsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "BatchDescribeTypeConfigurationsWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.BatchDescribeTypeConfigurationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchDescribeTypeConfigurationsWithContext indicates an expected call of BatchDescribeTypeConfigurationsWithContext. +func (mr *MockCloudFormationAPIMockRecorder) BatchDescribeTypeConfigurationsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchDescribeTypeConfigurationsWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).BatchDescribeTypeConfigurationsWithContext), varargs...) +} + +// CancelUpdateStack mocks base method. +func (m *MockCloudFormationAPI) CancelUpdateStack(arg0 *cloudformation.CancelUpdateStackInput) (*cloudformation.CancelUpdateStackOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CancelUpdateStack", arg0) + ret0, _ := ret[0].(*cloudformation.CancelUpdateStackOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CancelUpdateStack indicates an expected call of CancelUpdateStack. +func (mr *MockCloudFormationAPIMockRecorder) CancelUpdateStack(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelUpdateStack", reflect.TypeOf((*MockCloudFormationAPI)(nil).CancelUpdateStack), arg0) +} + +// CancelUpdateStackRequest mocks base method. +func (m *MockCloudFormationAPI) CancelUpdateStackRequest(arg0 *cloudformation.CancelUpdateStackInput) (*request.Request, *cloudformation.CancelUpdateStackOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CancelUpdateStackRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.CancelUpdateStackOutput) + return ret0, ret1 +} + +// CancelUpdateStackRequest indicates an expected call of CancelUpdateStackRequest. +func (mr *MockCloudFormationAPIMockRecorder) CancelUpdateStackRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelUpdateStackRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).CancelUpdateStackRequest), arg0) +} + +// CancelUpdateStackWithContext mocks base method. +func (m *MockCloudFormationAPI) CancelUpdateStackWithContext(arg0 aws.Context, arg1 *cloudformation.CancelUpdateStackInput, arg2 ...request.Option) (*cloudformation.CancelUpdateStackOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CancelUpdateStackWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.CancelUpdateStackOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CancelUpdateStackWithContext indicates an expected call of CancelUpdateStackWithContext. +func (mr *MockCloudFormationAPIMockRecorder) CancelUpdateStackWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelUpdateStackWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).CancelUpdateStackWithContext), varargs...) +} + +// ContinueUpdateRollback mocks base method. +func (m *MockCloudFormationAPI) ContinueUpdateRollback(arg0 *cloudformation.ContinueUpdateRollbackInput) (*cloudformation.ContinueUpdateRollbackOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ContinueUpdateRollback", arg0) + ret0, _ := ret[0].(*cloudformation.ContinueUpdateRollbackOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ContinueUpdateRollback indicates an expected call of ContinueUpdateRollback. +func (mr *MockCloudFormationAPIMockRecorder) ContinueUpdateRollback(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContinueUpdateRollback", reflect.TypeOf((*MockCloudFormationAPI)(nil).ContinueUpdateRollback), arg0) +} + +// ContinueUpdateRollbackRequest mocks base method. +func (m *MockCloudFormationAPI) ContinueUpdateRollbackRequest(arg0 *cloudformation.ContinueUpdateRollbackInput) (*request.Request, *cloudformation.ContinueUpdateRollbackOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ContinueUpdateRollbackRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.ContinueUpdateRollbackOutput) + return ret0, ret1 +} + +// ContinueUpdateRollbackRequest indicates an expected call of ContinueUpdateRollbackRequest. +func (mr *MockCloudFormationAPIMockRecorder) ContinueUpdateRollbackRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContinueUpdateRollbackRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).ContinueUpdateRollbackRequest), arg0) +} + +// ContinueUpdateRollbackWithContext mocks base method. +func (m *MockCloudFormationAPI) ContinueUpdateRollbackWithContext(arg0 aws.Context, arg1 *cloudformation.ContinueUpdateRollbackInput, arg2 ...request.Option) (*cloudformation.ContinueUpdateRollbackOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ContinueUpdateRollbackWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.ContinueUpdateRollbackOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ContinueUpdateRollbackWithContext indicates an expected call of ContinueUpdateRollbackWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ContinueUpdateRollbackWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContinueUpdateRollbackWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ContinueUpdateRollbackWithContext), varargs...) +} + +// CreateChangeSet mocks base method. +func (m *MockCloudFormationAPI) CreateChangeSet(arg0 *cloudformation.CreateChangeSetInput) (*cloudformation.CreateChangeSetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateChangeSet", arg0) + ret0, _ := ret[0].(*cloudformation.CreateChangeSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateChangeSet indicates an expected call of CreateChangeSet. +func (mr *MockCloudFormationAPIMockRecorder) CreateChangeSet(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateChangeSet", reflect.TypeOf((*MockCloudFormationAPI)(nil).CreateChangeSet), arg0) +} + +// CreateChangeSetRequest mocks base method. +func (m *MockCloudFormationAPI) CreateChangeSetRequest(arg0 *cloudformation.CreateChangeSetInput) (*request.Request, *cloudformation.CreateChangeSetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateChangeSetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.CreateChangeSetOutput) + return ret0, ret1 +} + +// CreateChangeSetRequest indicates an expected call of CreateChangeSetRequest. +func (mr *MockCloudFormationAPIMockRecorder) CreateChangeSetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateChangeSetRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).CreateChangeSetRequest), arg0) +} + +// CreateChangeSetWithContext mocks base method. +func (m *MockCloudFormationAPI) CreateChangeSetWithContext(arg0 aws.Context, arg1 *cloudformation.CreateChangeSetInput, arg2 ...request.Option) (*cloudformation.CreateChangeSetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateChangeSetWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.CreateChangeSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateChangeSetWithContext indicates an expected call of CreateChangeSetWithContext. +func (mr *MockCloudFormationAPIMockRecorder) CreateChangeSetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateChangeSetWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).CreateChangeSetWithContext), varargs...) +} + +// CreateStack mocks base method. +func (m *MockCloudFormationAPI) CreateStack(arg0 *cloudformation.CreateStackInput) (*cloudformation.CreateStackOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateStack", arg0) + ret0, _ := ret[0].(*cloudformation.CreateStackOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateStack indicates an expected call of CreateStack. +func (mr *MockCloudFormationAPIMockRecorder) CreateStack(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateStack", reflect.TypeOf((*MockCloudFormationAPI)(nil).CreateStack), arg0) +} + +// CreateStackInstances mocks base method. +func (m *MockCloudFormationAPI) CreateStackInstances(arg0 *cloudformation.CreateStackInstancesInput) (*cloudformation.CreateStackInstancesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateStackInstances", arg0) + ret0, _ := ret[0].(*cloudformation.CreateStackInstancesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateStackInstances indicates an expected call of CreateStackInstances. +func (mr *MockCloudFormationAPIMockRecorder) CreateStackInstances(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateStackInstances", reflect.TypeOf((*MockCloudFormationAPI)(nil).CreateStackInstances), arg0) +} + +// CreateStackInstancesRequest mocks base method. +func (m *MockCloudFormationAPI) CreateStackInstancesRequest(arg0 *cloudformation.CreateStackInstancesInput) (*request.Request, *cloudformation.CreateStackInstancesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateStackInstancesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.CreateStackInstancesOutput) + return ret0, ret1 +} + +// CreateStackInstancesRequest indicates an expected call of CreateStackInstancesRequest. +func (mr *MockCloudFormationAPIMockRecorder) CreateStackInstancesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateStackInstancesRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).CreateStackInstancesRequest), arg0) +} + +// CreateStackInstancesWithContext mocks base method. +func (m *MockCloudFormationAPI) CreateStackInstancesWithContext(arg0 aws.Context, arg1 *cloudformation.CreateStackInstancesInput, arg2 ...request.Option) (*cloudformation.CreateStackInstancesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateStackInstancesWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.CreateStackInstancesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateStackInstancesWithContext indicates an expected call of CreateStackInstancesWithContext. +func (mr *MockCloudFormationAPIMockRecorder) CreateStackInstancesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateStackInstancesWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).CreateStackInstancesWithContext), varargs...) +} + +// CreateStackRequest mocks base method. +func (m *MockCloudFormationAPI) CreateStackRequest(arg0 *cloudformation.CreateStackInput) (*request.Request, *cloudformation.CreateStackOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateStackRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.CreateStackOutput) + return ret0, ret1 +} + +// CreateStackRequest indicates an expected call of CreateStackRequest. +func (mr *MockCloudFormationAPIMockRecorder) CreateStackRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateStackRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).CreateStackRequest), arg0) +} + +// CreateStackSet mocks base method. +func (m *MockCloudFormationAPI) CreateStackSet(arg0 *cloudformation.CreateStackSetInput) (*cloudformation.CreateStackSetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateStackSet", arg0) + ret0, _ := ret[0].(*cloudformation.CreateStackSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateStackSet indicates an expected call of CreateStackSet. +func (mr *MockCloudFormationAPIMockRecorder) CreateStackSet(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateStackSet", reflect.TypeOf((*MockCloudFormationAPI)(nil).CreateStackSet), arg0) +} + +// CreateStackSetRequest mocks base method. +func (m *MockCloudFormationAPI) CreateStackSetRequest(arg0 *cloudformation.CreateStackSetInput) (*request.Request, *cloudformation.CreateStackSetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateStackSetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.CreateStackSetOutput) + return ret0, ret1 +} + +// CreateStackSetRequest indicates an expected call of CreateStackSetRequest. +func (mr *MockCloudFormationAPIMockRecorder) CreateStackSetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateStackSetRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).CreateStackSetRequest), arg0) +} + +// CreateStackSetWithContext mocks base method. +func (m *MockCloudFormationAPI) CreateStackSetWithContext(arg0 aws.Context, arg1 *cloudformation.CreateStackSetInput, arg2 ...request.Option) (*cloudformation.CreateStackSetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateStackSetWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.CreateStackSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateStackSetWithContext indicates an expected call of CreateStackSetWithContext. +func (mr *MockCloudFormationAPIMockRecorder) CreateStackSetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateStackSetWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).CreateStackSetWithContext), varargs...) +} + +// CreateStackWithContext mocks base method. +func (m *MockCloudFormationAPI) CreateStackWithContext(arg0 aws.Context, arg1 *cloudformation.CreateStackInput, arg2 ...request.Option) (*cloudformation.CreateStackOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateStackWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.CreateStackOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateStackWithContext indicates an expected call of CreateStackWithContext. +func (mr *MockCloudFormationAPIMockRecorder) CreateStackWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateStackWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).CreateStackWithContext), varargs...) +} + +// DeactivateType mocks base method. +func (m *MockCloudFormationAPI) DeactivateType(arg0 *cloudformation.DeactivateTypeInput) (*cloudformation.DeactivateTypeOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeactivateType", arg0) + ret0, _ := ret[0].(*cloudformation.DeactivateTypeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeactivateType indicates an expected call of DeactivateType. +func (mr *MockCloudFormationAPIMockRecorder) DeactivateType(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeactivateType", reflect.TypeOf((*MockCloudFormationAPI)(nil).DeactivateType), arg0) +} + +// DeactivateTypeRequest mocks base method. +func (m *MockCloudFormationAPI) DeactivateTypeRequest(arg0 *cloudformation.DeactivateTypeInput) (*request.Request, *cloudformation.DeactivateTypeOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeactivateTypeRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.DeactivateTypeOutput) + return ret0, ret1 +} + +// DeactivateTypeRequest indicates an expected call of DeactivateTypeRequest. +func (mr *MockCloudFormationAPIMockRecorder) DeactivateTypeRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeactivateTypeRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).DeactivateTypeRequest), arg0) +} + +// DeactivateTypeWithContext mocks base method. +func (m *MockCloudFormationAPI) DeactivateTypeWithContext(arg0 aws.Context, arg1 *cloudformation.DeactivateTypeInput, arg2 ...request.Option) (*cloudformation.DeactivateTypeOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeactivateTypeWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.DeactivateTypeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeactivateTypeWithContext indicates an expected call of DeactivateTypeWithContext. +func (mr *MockCloudFormationAPIMockRecorder) DeactivateTypeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeactivateTypeWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DeactivateTypeWithContext), varargs...) +} + +// DeleteChangeSet mocks base method. +func (m *MockCloudFormationAPI) DeleteChangeSet(arg0 *cloudformation.DeleteChangeSetInput) (*cloudformation.DeleteChangeSetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteChangeSet", arg0) + ret0, _ := ret[0].(*cloudformation.DeleteChangeSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteChangeSet indicates an expected call of DeleteChangeSet. +func (mr *MockCloudFormationAPIMockRecorder) DeleteChangeSet(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteChangeSet", reflect.TypeOf((*MockCloudFormationAPI)(nil).DeleteChangeSet), arg0) +} + +// DeleteChangeSetRequest mocks base method. +func (m *MockCloudFormationAPI) DeleteChangeSetRequest(arg0 *cloudformation.DeleteChangeSetInput) (*request.Request, *cloudformation.DeleteChangeSetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteChangeSetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.DeleteChangeSetOutput) + return ret0, ret1 +} + +// DeleteChangeSetRequest indicates an expected call of DeleteChangeSetRequest. +func (mr *MockCloudFormationAPIMockRecorder) DeleteChangeSetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteChangeSetRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).DeleteChangeSetRequest), arg0) +} + +// DeleteChangeSetWithContext mocks base method. +func (m *MockCloudFormationAPI) DeleteChangeSetWithContext(arg0 aws.Context, arg1 *cloudformation.DeleteChangeSetInput, arg2 ...request.Option) (*cloudformation.DeleteChangeSetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteChangeSetWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.DeleteChangeSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteChangeSetWithContext indicates an expected call of DeleteChangeSetWithContext. +func (mr *MockCloudFormationAPIMockRecorder) DeleteChangeSetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteChangeSetWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DeleteChangeSetWithContext), varargs...) +} + +// DeleteStack mocks base method. +func (m *MockCloudFormationAPI) DeleteStack(arg0 *cloudformation.DeleteStackInput) (*cloudformation.DeleteStackOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteStack", arg0) + ret0, _ := ret[0].(*cloudformation.DeleteStackOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteStack indicates an expected call of DeleteStack. +func (mr *MockCloudFormationAPIMockRecorder) DeleteStack(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteStack", reflect.TypeOf((*MockCloudFormationAPI)(nil).DeleteStack), arg0) +} + +// DeleteStackInstances mocks base method. +func (m *MockCloudFormationAPI) DeleteStackInstances(arg0 *cloudformation.DeleteStackInstancesInput) (*cloudformation.DeleteStackInstancesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteStackInstances", arg0) + ret0, _ := ret[0].(*cloudformation.DeleteStackInstancesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteStackInstances indicates an expected call of DeleteStackInstances. +func (mr *MockCloudFormationAPIMockRecorder) DeleteStackInstances(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteStackInstances", reflect.TypeOf((*MockCloudFormationAPI)(nil).DeleteStackInstances), arg0) +} + +// DeleteStackInstancesRequest mocks base method. +func (m *MockCloudFormationAPI) DeleteStackInstancesRequest(arg0 *cloudformation.DeleteStackInstancesInput) (*request.Request, *cloudformation.DeleteStackInstancesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteStackInstancesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.DeleteStackInstancesOutput) + return ret0, ret1 +} + +// DeleteStackInstancesRequest indicates an expected call of DeleteStackInstancesRequest. +func (mr *MockCloudFormationAPIMockRecorder) DeleteStackInstancesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteStackInstancesRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).DeleteStackInstancesRequest), arg0) +} + +// DeleteStackInstancesWithContext mocks base method. +func (m *MockCloudFormationAPI) DeleteStackInstancesWithContext(arg0 aws.Context, arg1 *cloudformation.DeleteStackInstancesInput, arg2 ...request.Option) (*cloudformation.DeleteStackInstancesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteStackInstancesWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.DeleteStackInstancesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteStackInstancesWithContext indicates an expected call of DeleteStackInstancesWithContext. +func (mr *MockCloudFormationAPIMockRecorder) DeleteStackInstancesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteStackInstancesWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DeleteStackInstancesWithContext), varargs...) +} + +// DeleteStackRequest mocks base method. +func (m *MockCloudFormationAPI) DeleteStackRequest(arg0 *cloudformation.DeleteStackInput) (*request.Request, *cloudformation.DeleteStackOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteStackRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.DeleteStackOutput) + return ret0, ret1 +} + +// DeleteStackRequest indicates an expected call of DeleteStackRequest. +func (mr *MockCloudFormationAPIMockRecorder) DeleteStackRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteStackRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).DeleteStackRequest), arg0) +} + +// DeleteStackSet mocks base method. +func (m *MockCloudFormationAPI) DeleteStackSet(arg0 *cloudformation.DeleteStackSetInput) (*cloudformation.DeleteStackSetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteStackSet", arg0) + ret0, _ := ret[0].(*cloudformation.DeleteStackSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteStackSet indicates an expected call of DeleteStackSet. +func (mr *MockCloudFormationAPIMockRecorder) DeleteStackSet(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteStackSet", reflect.TypeOf((*MockCloudFormationAPI)(nil).DeleteStackSet), arg0) +} + +// DeleteStackSetRequest mocks base method. +func (m *MockCloudFormationAPI) DeleteStackSetRequest(arg0 *cloudformation.DeleteStackSetInput) (*request.Request, *cloudformation.DeleteStackSetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteStackSetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.DeleteStackSetOutput) + return ret0, ret1 +} + +// DeleteStackSetRequest indicates an expected call of DeleteStackSetRequest. +func (mr *MockCloudFormationAPIMockRecorder) DeleteStackSetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteStackSetRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).DeleteStackSetRequest), arg0) +} + +// DeleteStackSetWithContext mocks base method. +func (m *MockCloudFormationAPI) DeleteStackSetWithContext(arg0 aws.Context, arg1 *cloudformation.DeleteStackSetInput, arg2 ...request.Option) (*cloudformation.DeleteStackSetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteStackSetWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.DeleteStackSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteStackSetWithContext indicates an expected call of DeleteStackSetWithContext. +func (mr *MockCloudFormationAPIMockRecorder) DeleteStackSetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteStackSetWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DeleteStackSetWithContext), varargs...) +} + +// DeleteStackWithContext mocks base method. +func (m *MockCloudFormationAPI) DeleteStackWithContext(arg0 aws.Context, arg1 *cloudformation.DeleteStackInput, arg2 ...request.Option) (*cloudformation.DeleteStackOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteStackWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.DeleteStackOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteStackWithContext indicates an expected call of DeleteStackWithContext. +func (mr *MockCloudFormationAPIMockRecorder) DeleteStackWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteStackWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DeleteStackWithContext), varargs...) +} + +// DeregisterType mocks base method. +func (m *MockCloudFormationAPI) DeregisterType(arg0 *cloudformation.DeregisterTypeInput) (*cloudformation.DeregisterTypeOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeregisterType", arg0) + ret0, _ := ret[0].(*cloudformation.DeregisterTypeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeregisterType indicates an expected call of DeregisterType. +func (mr *MockCloudFormationAPIMockRecorder) DeregisterType(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeregisterType", reflect.TypeOf((*MockCloudFormationAPI)(nil).DeregisterType), arg0) +} + +// DeregisterTypeRequest mocks base method. +func (m *MockCloudFormationAPI) DeregisterTypeRequest(arg0 *cloudformation.DeregisterTypeInput) (*request.Request, *cloudformation.DeregisterTypeOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeregisterTypeRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.DeregisterTypeOutput) + return ret0, ret1 +} + +// DeregisterTypeRequest indicates an expected call of DeregisterTypeRequest. +func (mr *MockCloudFormationAPIMockRecorder) DeregisterTypeRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeregisterTypeRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).DeregisterTypeRequest), arg0) +} + +// DeregisterTypeWithContext mocks base method. +func (m *MockCloudFormationAPI) DeregisterTypeWithContext(arg0 aws.Context, arg1 *cloudformation.DeregisterTypeInput, arg2 ...request.Option) (*cloudformation.DeregisterTypeOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeregisterTypeWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.DeregisterTypeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeregisterTypeWithContext indicates an expected call of DeregisterTypeWithContext. +func (mr *MockCloudFormationAPIMockRecorder) DeregisterTypeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeregisterTypeWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DeregisterTypeWithContext), varargs...) +} + +// DescribeAccountLimits mocks base method. +func (m *MockCloudFormationAPI) DescribeAccountLimits(arg0 *cloudformation.DescribeAccountLimitsInput) (*cloudformation.DescribeAccountLimitsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAccountLimits", arg0) + ret0, _ := ret[0].(*cloudformation.DescribeAccountLimitsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAccountLimits indicates an expected call of DescribeAccountLimits. +func (mr *MockCloudFormationAPIMockRecorder) DescribeAccountLimits(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAccountLimits", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeAccountLimits), arg0) +} + +// DescribeAccountLimitsPages mocks base method. +func (m *MockCloudFormationAPI) DescribeAccountLimitsPages(arg0 *cloudformation.DescribeAccountLimitsInput, arg1 func(*cloudformation.DescribeAccountLimitsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAccountLimitsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeAccountLimitsPages indicates an expected call of DescribeAccountLimitsPages. +func (mr *MockCloudFormationAPIMockRecorder) DescribeAccountLimitsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAccountLimitsPages", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeAccountLimitsPages), arg0, arg1) +} + +// DescribeAccountLimitsPagesWithContext mocks base method. +func (m *MockCloudFormationAPI) DescribeAccountLimitsPagesWithContext(arg0 aws.Context, arg1 *cloudformation.DescribeAccountLimitsInput, arg2 func(*cloudformation.DescribeAccountLimitsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeAccountLimitsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeAccountLimitsPagesWithContext indicates an expected call of DescribeAccountLimitsPagesWithContext. +func (mr *MockCloudFormationAPIMockRecorder) DescribeAccountLimitsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAccountLimitsPagesWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeAccountLimitsPagesWithContext), varargs...) +} + +// DescribeAccountLimitsRequest mocks base method. +func (m *MockCloudFormationAPI) DescribeAccountLimitsRequest(arg0 *cloudformation.DescribeAccountLimitsInput) (*request.Request, *cloudformation.DescribeAccountLimitsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAccountLimitsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.DescribeAccountLimitsOutput) + return ret0, ret1 +} + +// DescribeAccountLimitsRequest indicates an expected call of DescribeAccountLimitsRequest. +func (mr *MockCloudFormationAPIMockRecorder) DescribeAccountLimitsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAccountLimitsRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeAccountLimitsRequest), arg0) +} + +// DescribeAccountLimitsWithContext mocks base method. +func (m *MockCloudFormationAPI) DescribeAccountLimitsWithContext(arg0 aws.Context, arg1 *cloudformation.DescribeAccountLimitsInput, arg2 ...request.Option) (*cloudformation.DescribeAccountLimitsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeAccountLimitsWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.DescribeAccountLimitsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAccountLimitsWithContext indicates an expected call of DescribeAccountLimitsWithContext. +func (mr *MockCloudFormationAPIMockRecorder) DescribeAccountLimitsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAccountLimitsWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeAccountLimitsWithContext), varargs...) +} + +// DescribeChangeSet mocks base method. +func (m *MockCloudFormationAPI) DescribeChangeSet(arg0 *cloudformation.DescribeChangeSetInput) (*cloudformation.DescribeChangeSetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeChangeSet", arg0) + ret0, _ := ret[0].(*cloudformation.DescribeChangeSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeChangeSet indicates an expected call of DescribeChangeSet. +func (mr *MockCloudFormationAPIMockRecorder) DescribeChangeSet(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeChangeSet", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeChangeSet), arg0) +} + +// DescribeChangeSetHooks mocks base method. +func (m *MockCloudFormationAPI) DescribeChangeSetHooks(arg0 *cloudformation.DescribeChangeSetHooksInput) (*cloudformation.DescribeChangeSetHooksOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeChangeSetHooks", arg0) + ret0, _ := ret[0].(*cloudformation.DescribeChangeSetHooksOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeChangeSetHooks indicates an expected call of DescribeChangeSetHooks. +func (mr *MockCloudFormationAPIMockRecorder) DescribeChangeSetHooks(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeChangeSetHooks", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeChangeSetHooks), arg0) +} + +// DescribeChangeSetHooksRequest mocks base method. +func (m *MockCloudFormationAPI) DescribeChangeSetHooksRequest(arg0 *cloudformation.DescribeChangeSetHooksInput) (*request.Request, *cloudformation.DescribeChangeSetHooksOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeChangeSetHooksRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.DescribeChangeSetHooksOutput) + return ret0, ret1 +} + +// DescribeChangeSetHooksRequest indicates an expected call of DescribeChangeSetHooksRequest. +func (mr *MockCloudFormationAPIMockRecorder) DescribeChangeSetHooksRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeChangeSetHooksRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeChangeSetHooksRequest), arg0) +} + +// DescribeChangeSetHooksWithContext mocks base method. +func (m *MockCloudFormationAPI) DescribeChangeSetHooksWithContext(arg0 aws.Context, arg1 *cloudformation.DescribeChangeSetHooksInput, arg2 ...request.Option) (*cloudformation.DescribeChangeSetHooksOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeChangeSetHooksWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.DescribeChangeSetHooksOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeChangeSetHooksWithContext indicates an expected call of DescribeChangeSetHooksWithContext. +func (mr *MockCloudFormationAPIMockRecorder) DescribeChangeSetHooksWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeChangeSetHooksWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeChangeSetHooksWithContext), varargs...) +} + +// DescribeChangeSetRequest mocks base method. +func (m *MockCloudFormationAPI) DescribeChangeSetRequest(arg0 *cloudformation.DescribeChangeSetInput) (*request.Request, *cloudformation.DescribeChangeSetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeChangeSetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.DescribeChangeSetOutput) + return ret0, ret1 +} + +// DescribeChangeSetRequest indicates an expected call of DescribeChangeSetRequest. +func (mr *MockCloudFormationAPIMockRecorder) DescribeChangeSetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeChangeSetRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeChangeSetRequest), arg0) +} + +// DescribeChangeSetWithContext mocks base method. +func (m *MockCloudFormationAPI) DescribeChangeSetWithContext(arg0 aws.Context, arg1 *cloudformation.DescribeChangeSetInput, arg2 ...request.Option) (*cloudformation.DescribeChangeSetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeChangeSetWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.DescribeChangeSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeChangeSetWithContext indicates an expected call of DescribeChangeSetWithContext. +func (mr *MockCloudFormationAPIMockRecorder) DescribeChangeSetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeChangeSetWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeChangeSetWithContext), varargs...) +} + +// DescribePublisher mocks base method. +func (m *MockCloudFormationAPI) DescribePublisher(arg0 *cloudformation.DescribePublisherInput) (*cloudformation.DescribePublisherOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribePublisher", arg0) + ret0, _ := ret[0].(*cloudformation.DescribePublisherOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribePublisher indicates an expected call of DescribePublisher. +func (mr *MockCloudFormationAPIMockRecorder) DescribePublisher(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribePublisher", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribePublisher), arg0) +} + +// DescribePublisherRequest mocks base method. +func (m *MockCloudFormationAPI) DescribePublisherRequest(arg0 *cloudformation.DescribePublisherInput) (*request.Request, *cloudformation.DescribePublisherOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribePublisherRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.DescribePublisherOutput) + return ret0, ret1 +} + +// DescribePublisherRequest indicates an expected call of DescribePublisherRequest. +func (mr *MockCloudFormationAPIMockRecorder) DescribePublisherRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribePublisherRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribePublisherRequest), arg0) +} + +// DescribePublisherWithContext mocks base method. +func (m *MockCloudFormationAPI) DescribePublisherWithContext(arg0 aws.Context, arg1 *cloudformation.DescribePublisherInput, arg2 ...request.Option) (*cloudformation.DescribePublisherOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribePublisherWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.DescribePublisherOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribePublisherWithContext indicates an expected call of DescribePublisherWithContext. +func (mr *MockCloudFormationAPIMockRecorder) DescribePublisherWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribePublisherWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribePublisherWithContext), varargs...) +} + +// DescribeStackDriftDetectionStatus mocks base method. +func (m *MockCloudFormationAPI) DescribeStackDriftDetectionStatus(arg0 *cloudformation.DescribeStackDriftDetectionStatusInput) (*cloudformation.DescribeStackDriftDetectionStatusOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeStackDriftDetectionStatus", arg0) + ret0, _ := ret[0].(*cloudformation.DescribeStackDriftDetectionStatusOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeStackDriftDetectionStatus indicates an expected call of DescribeStackDriftDetectionStatus. +func (mr *MockCloudFormationAPIMockRecorder) DescribeStackDriftDetectionStatus(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeStackDriftDetectionStatus", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeStackDriftDetectionStatus), arg0) +} + +// DescribeStackDriftDetectionStatusRequest mocks base method. +func (m *MockCloudFormationAPI) DescribeStackDriftDetectionStatusRequest(arg0 *cloudformation.DescribeStackDriftDetectionStatusInput) (*request.Request, *cloudformation.DescribeStackDriftDetectionStatusOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeStackDriftDetectionStatusRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.DescribeStackDriftDetectionStatusOutput) + return ret0, ret1 +} + +// DescribeStackDriftDetectionStatusRequest indicates an expected call of DescribeStackDriftDetectionStatusRequest. +func (mr *MockCloudFormationAPIMockRecorder) DescribeStackDriftDetectionStatusRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeStackDriftDetectionStatusRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeStackDriftDetectionStatusRequest), arg0) +} + +// DescribeStackDriftDetectionStatusWithContext mocks base method. +func (m *MockCloudFormationAPI) DescribeStackDriftDetectionStatusWithContext(arg0 aws.Context, arg1 *cloudformation.DescribeStackDriftDetectionStatusInput, arg2 ...request.Option) (*cloudformation.DescribeStackDriftDetectionStatusOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeStackDriftDetectionStatusWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.DescribeStackDriftDetectionStatusOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeStackDriftDetectionStatusWithContext indicates an expected call of DescribeStackDriftDetectionStatusWithContext. +func (mr *MockCloudFormationAPIMockRecorder) DescribeStackDriftDetectionStatusWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeStackDriftDetectionStatusWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeStackDriftDetectionStatusWithContext), varargs...) +} + +// DescribeStackEvents mocks base method. +func (m *MockCloudFormationAPI) DescribeStackEvents(arg0 *cloudformation.DescribeStackEventsInput) (*cloudformation.DescribeStackEventsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeStackEvents", arg0) + ret0, _ := ret[0].(*cloudformation.DescribeStackEventsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeStackEvents indicates an expected call of DescribeStackEvents. +func (mr *MockCloudFormationAPIMockRecorder) DescribeStackEvents(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeStackEvents", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeStackEvents), arg0) +} + +// DescribeStackEventsPages mocks base method. +func (m *MockCloudFormationAPI) DescribeStackEventsPages(arg0 *cloudformation.DescribeStackEventsInput, arg1 func(*cloudformation.DescribeStackEventsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeStackEventsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeStackEventsPages indicates an expected call of DescribeStackEventsPages. +func (mr *MockCloudFormationAPIMockRecorder) DescribeStackEventsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeStackEventsPages", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeStackEventsPages), arg0, arg1) +} + +// DescribeStackEventsPagesWithContext mocks base method. +func (m *MockCloudFormationAPI) DescribeStackEventsPagesWithContext(arg0 aws.Context, arg1 *cloudformation.DescribeStackEventsInput, arg2 func(*cloudformation.DescribeStackEventsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeStackEventsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeStackEventsPagesWithContext indicates an expected call of DescribeStackEventsPagesWithContext. +func (mr *MockCloudFormationAPIMockRecorder) DescribeStackEventsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeStackEventsPagesWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeStackEventsPagesWithContext), varargs...) +} + +// DescribeStackEventsRequest mocks base method. +func (m *MockCloudFormationAPI) DescribeStackEventsRequest(arg0 *cloudformation.DescribeStackEventsInput) (*request.Request, *cloudformation.DescribeStackEventsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeStackEventsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.DescribeStackEventsOutput) + return ret0, ret1 +} + +// DescribeStackEventsRequest indicates an expected call of DescribeStackEventsRequest. +func (mr *MockCloudFormationAPIMockRecorder) DescribeStackEventsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeStackEventsRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeStackEventsRequest), arg0) +} + +// DescribeStackEventsWithContext mocks base method. +func (m *MockCloudFormationAPI) DescribeStackEventsWithContext(arg0 aws.Context, arg1 *cloudformation.DescribeStackEventsInput, arg2 ...request.Option) (*cloudformation.DescribeStackEventsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeStackEventsWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.DescribeStackEventsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeStackEventsWithContext indicates an expected call of DescribeStackEventsWithContext. +func (mr *MockCloudFormationAPIMockRecorder) DescribeStackEventsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeStackEventsWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeStackEventsWithContext), varargs...) +} + +// DescribeStackInstance mocks base method. +func (m *MockCloudFormationAPI) DescribeStackInstance(arg0 *cloudformation.DescribeStackInstanceInput) (*cloudformation.DescribeStackInstanceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeStackInstance", arg0) + ret0, _ := ret[0].(*cloudformation.DescribeStackInstanceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeStackInstance indicates an expected call of DescribeStackInstance. +func (mr *MockCloudFormationAPIMockRecorder) DescribeStackInstance(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeStackInstance", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeStackInstance), arg0) +} + +// DescribeStackInstanceRequest mocks base method. +func (m *MockCloudFormationAPI) DescribeStackInstanceRequest(arg0 *cloudformation.DescribeStackInstanceInput) (*request.Request, *cloudformation.DescribeStackInstanceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeStackInstanceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.DescribeStackInstanceOutput) + return ret0, ret1 +} + +// DescribeStackInstanceRequest indicates an expected call of DescribeStackInstanceRequest. +func (mr *MockCloudFormationAPIMockRecorder) DescribeStackInstanceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeStackInstanceRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeStackInstanceRequest), arg0) +} + +// DescribeStackInstanceWithContext mocks base method. +func (m *MockCloudFormationAPI) DescribeStackInstanceWithContext(arg0 aws.Context, arg1 *cloudformation.DescribeStackInstanceInput, arg2 ...request.Option) (*cloudformation.DescribeStackInstanceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeStackInstanceWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.DescribeStackInstanceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeStackInstanceWithContext indicates an expected call of DescribeStackInstanceWithContext. +func (mr *MockCloudFormationAPIMockRecorder) DescribeStackInstanceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeStackInstanceWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeStackInstanceWithContext), varargs...) +} + +// DescribeStackResource mocks base method. +func (m *MockCloudFormationAPI) DescribeStackResource(arg0 *cloudformation.DescribeStackResourceInput) (*cloudformation.DescribeStackResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeStackResource", arg0) + ret0, _ := ret[0].(*cloudformation.DescribeStackResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeStackResource indicates an expected call of DescribeStackResource. +func (mr *MockCloudFormationAPIMockRecorder) DescribeStackResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeStackResource", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeStackResource), arg0) +} + +// DescribeStackResourceDrifts mocks base method. +func (m *MockCloudFormationAPI) DescribeStackResourceDrifts(arg0 *cloudformation.DescribeStackResourceDriftsInput) (*cloudformation.DescribeStackResourceDriftsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeStackResourceDrifts", arg0) + ret0, _ := ret[0].(*cloudformation.DescribeStackResourceDriftsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeStackResourceDrifts indicates an expected call of DescribeStackResourceDrifts. +func (mr *MockCloudFormationAPIMockRecorder) DescribeStackResourceDrifts(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeStackResourceDrifts", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeStackResourceDrifts), arg0) +} + +// DescribeStackResourceDriftsPages mocks base method. +func (m *MockCloudFormationAPI) DescribeStackResourceDriftsPages(arg0 *cloudformation.DescribeStackResourceDriftsInput, arg1 func(*cloudformation.DescribeStackResourceDriftsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeStackResourceDriftsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeStackResourceDriftsPages indicates an expected call of DescribeStackResourceDriftsPages. +func (mr *MockCloudFormationAPIMockRecorder) DescribeStackResourceDriftsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeStackResourceDriftsPages", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeStackResourceDriftsPages), arg0, arg1) +} + +// DescribeStackResourceDriftsPagesWithContext mocks base method. +func (m *MockCloudFormationAPI) DescribeStackResourceDriftsPagesWithContext(arg0 aws.Context, arg1 *cloudformation.DescribeStackResourceDriftsInput, arg2 func(*cloudformation.DescribeStackResourceDriftsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeStackResourceDriftsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeStackResourceDriftsPagesWithContext indicates an expected call of DescribeStackResourceDriftsPagesWithContext. +func (mr *MockCloudFormationAPIMockRecorder) DescribeStackResourceDriftsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeStackResourceDriftsPagesWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeStackResourceDriftsPagesWithContext), varargs...) +} + +// DescribeStackResourceDriftsRequest mocks base method. +func (m *MockCloudFormationAPI) DescribeStackResourceDriftsRequest(arg0 *cloudformation.DescribeStackResourceDriftsInput) (*request.Request, *cloudformation.DescribeStackResourceDriftsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeStackResourceDriftsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.DescribeStackResourceDriftsOutput) + return ret0, ret1 +} + +// DescribeStackResourceDriftsRequest indicates an expected call of DescribeStackResourceDriftsRequest. +func (mr *MockCloudFormationAPIMockRecorder) DescribeStackResourceDriftsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeStackResourceDriftsRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeStackResourceDriftsRequest), arg0) +} + +// DescribeStackResourceDriftsWithContext mocks base method. +func (m *MockCloudFormationAPI) DescribeStackResourceDriftsWithContext(arg0 aws.Context, arg1 *cloudformation.DescribeStackResourceDriftsInput, arg2 ...request.Option) (*cloudformation.DescribeStackResourceDriftsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeStackResourceDriftsWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.DescribeStackResourceDriftsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeStackResourceDriftsWithContext indicates an expected call of DescribeStackResourceDriftsWithContext. +func (mr *MockCloudFormationAPIMockRecorder) DescribeStackResourceDriftsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeStackResourceDriftsWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeStackResourceDriftsWithContext), varargs...) +} + +// DescribeStackResourceRequest mocks base method. +func (m *MockCloudFormationAPI) DescribeStackResourceRequest(arg0 *cloudformation.DescribeStackResourceInput) (*request.Request, *cloudformation.DescribeStackResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeStackResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.DescribeStackResourceOutput) + return ret0, ret1 +} + +// DescribeStackResourceRequest indicates an expected call of DescribeStackResourceRequest. +func (mr *MockCloudFormationAPIMockRecorder) DescribeStackResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeStackResourceRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeStackResourceRequest), arg0) +} + +// DescribeStackResourceWithContext mocks base method. +func (m *MockCloudFormationAPI) DescribeStackResourceWithContext(arg0 aws.Context, arg1 *cloudformation.DescribeStackResourceInput, arg2 ...request.Option) (*cloudformation.DescribeStackResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeStackResourceWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.DescribeStackResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeStackResourceWithContext indicates an expected call of DescribeStackResourceWithContext. +func (mr *MockCloudFormationAPIMockRecorder) DescribeStackResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeStackResourceWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeStackResourceWithContext), varargs...) +} + +// DescribeStackResources mocks base method. +func (m *MockCloudFormationAPI) DescribeStackResources(arg0 *cloudformation.DescribeStackResourcesInput) (*cloudformation.DescribeStackResourcesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeStackResources", arg0) + ret0, _ := ret[0].(*cloudformation.DescribeStackResourcesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeStackResources indicates an expected call of DescribeStackResources. +func (mr *MockCloudFormationAPIMockRecorder) DescribeStackResources(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeStackResources", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeStackResources), arg0) +} + +// DescribeStackResourcesRequest mocks base method. +func (m *MockCloudFormationAPI) DescribeStackResourcesRequest(arg0 *cloudformation.DescribeStackResourcesInput) (*request.Request, *cloudformation.DescribeStackResourcesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeStackResourcesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.DescribeStackResourcesOutput) + return ret0, ret1 +} + +// DescribeStackResourcesRequest indicates an expected call of DescribeStackResourcesRequest. +func (mr *MockCloudFormationAPIMockRecorder) DescribeStackResourcesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeStackResourcesRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeStackResourcesRequest), arg0) +} + +// DescribeStackResourcesWithContext mocks base method. +func (m *MockCloudFormationAPI) DescribeStackResourcesWithContext(arg0 aws.Context, arg1 *cloudformation.DescribeStackResourcesInput, arg2 ...request.Option) (*cloudformation.DescribeStackResourcesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeStackResourcesWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.DescribeStackResourcesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeStackResourcesWithContext indicates an expected call of DescribeStackResourcesWithContext. +func (mr *MockCloudFormationAPIMockRecorder) DescribeStackResourcesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeStackResourcesWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeStackResourcesWithContext), varargs...) +} + +// DescribeStackSet mocks base method. +func (m *MockCloudFormationAPI) DescribeStackSet(arg0 *cloudformation.DescribeStackSetInput) (*cloudformation.DescribeStackSetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeStackSet", arg0) + ret0, _ := ret[0].(*cloudformation.DescribeStackSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeStackSet indicates an expected call of DescribeStackSet. +func (mr *MockCloudFormationAPIMockRecorder) DescribeStackSet(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeStackSet", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeStackSet), arg0) +} + +// DescribeStackSetOperation mocks base method. +func (m *MockCloudFormationAPI) DescribeStackSetOperation(arg0 *cloudformation.DescribeStackSetOperationInput) (*cloudformation.DescribeStackSetOperationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeStackSetOperation", arg0) + ret0, _ := ret[0].(*cloudformation.DescribeStackSetOperationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeStackSetOperation indicates an expected call of DescribeStackSetOperation. +func (mr *MockCloudFormationAPIMockRecorder) DescribeStackSetOperation(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeStackSetOperation", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeStackSetOperation), arg0) +} + +// DescribeStackSetOperationRequest mocks base method. +func (m *MockCloudFormationAPI) DescribeStackSetOperationRequest(arg0 *cloudformation.DescribeStackSetOperationInput) (*request.Request, *cloudformation.DescribeStackSetOperationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeStackSetOperationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.DescribeStackSetOperationOutput) + return ret0, ret1 +} + +// DescribeStackSetOperationRequest indicates an expected call of DescribeStackSetOperationRequest. +func (mr *MockCloudFormationAPIMockRecorder) DescribeStackSetOperationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeStackSetOperationRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeStackSetOperationRequest), arg0) +} + +// DescribeStackSetOperationWithContext mocks base method. +func (m *MockCloudFormationAPI) DescribeStackSetOperationWithContext(arg0 aws.Context, arg1 *cloudformation.DescribeStackSetOperationInput, arg2 ...request.Option) (*cloudformation.DescribeStackSetOperationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeStackSetOperationWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.DescribeStackSetOperationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeStackSetOperationWithContext indicates an expected call of DescribeStackSetOperationWithContext. +func (mr *MockCloudFormationAPIMockRecorder) DescribeStackSetOperationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeStackSetOperationWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeStackSetOperationWithContext), varargs...) +} + +// DescribeStackSetRequest mocks base method. +func (m *MockCloudFormationAPI) DescribeStackSetRequest(arg0 *cloudformation.DescribeStackSetInput) (*request.Request, *cloudformation.DescribeStackSetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeStackSetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.DescribeStackSetOutput) + return ret0, ret1 +} + +// DescribeStackSetRequest indicates an expected call of DescribeStackSetRequest. +func (mr *MockCloudFormationAPIMockRecorder) DescribeStackSetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeStackSetRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeStackSetRequest), arg0) +} + +// DescribeStackSetWithContext mocks base method. +func (m *MockCloudFormationAPI) DescribeStackSetWithContext(arg0 aws.Context, arg1 *cloudformation.DescribeStackSetInput, arg2 ...request.Option) (*cloudformation.DescribeStackSetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeStackSetWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.DescribeStackSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeStackSetWithContext indicates an expected call of DescribeStackSetWithContext. +func (mr *MockCloudFormationAPIMockRecorder) DescribeStackSetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeStackSetWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeStackSetWithContext), varargs...) +} + +// DescribeStacks mocks base method. +func (m *MockCloudFormationAPI) DescribeStacks(arg0 *cloudformation.DescribeStacksInput) (*cloudformation.DescribeStacksOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeStacks", arg0) + ret0, _ := ret[0].(*cloudformation.DescribeStacksOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeStacks indicates an expected call of DescribeStacks. +func (mr *MockCloudFormationAPIMockRecorder) DescribeStacks(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeStacks", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeStacks), arg0) +} + +// DescribeStacksPages mocks base method. +func (m *MockCloudFormationAPI) DescribeStacksPages(arg0 *cloudformation.DescribeStacksInput, arg1 func(*cloudformation.DescribeStacksOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeStacksPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeStacksPages indicates an expected call of DescribeStacksPages. +func (mr *MockCloudFormationAPIMockRecorder) DescribeStacksPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeStacksPages", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeStacksPages), arg0, arg1) +} + +// DescribeStacksPagesWithContext mocks base method. +func (m *MockCloudFormationAPI) DescribeStacksPagesWithContext(arg0 aws.Context, arg1 *cloudformation.DescribeStacksInput, arg2 func(*cloudformation.DescribeStacksOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeStacksPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeStacksPagesWithContext indicates an expected call of DescribeStacksPagesWithContext. +func (mr *MockCloudFormationAPIMockRecorder) DescribeStacksPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeStacksPagesWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeStacksPagesWithContext), varargs...) +} + +// DescribeStacksRequest mocks base method. +func (m *MockCloudFormationAPI) DescribeStacksRequest(arg0 *cloudformation.DescribeStacksInput) (*request.Request, *cloudformation.DescribeStacksOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeStacksRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.DescribeStacksOutput) + return ret0, ret1 +} + +// DescribeStacksRequest indicates an expected call of DescribeStacksRequest. +func (mr *MockCloudFormationAPIMockRecorder) DescribeStacksRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeStacksRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeStacksRequest), arg0) +} + +// DescribeStacksWithContext mocks base method. +func (m *MockCloudFormationAPI) DescribeStacksWithContext(arg0 aws.Context, arg1 *cloudformation.DescribeStacksInput, arg2 ...request.Option) (*cloudformation.DescribeStacksOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeStacksWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.DescribeStacksOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeStacksWithContext indicates an expected call of DescribeStacksWithContext. +func (mr *MockCloudFormationAPIMockRecorder) DescribeStacksWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeStacksWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeStacksWithContext), varargs...) +} + +// DescribeType mocks base method. +func (m *MockCloudFormationAPI) DescribeType(arg0 *cloudformation.DescribeTypeInput) (*cloudformation.DescribeTypeOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeType", arg0) + ret0, _ := ret[0].(*cloudformation.DescribeTypeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeType indicates an expected call of DescribeType. +func (mr *MockCloudFormationAPIMockRecorder) DescribeType(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeType", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeType), arg0) +} + +// DescribeTypeRegistration mocks base method. +func (m *MockCloudFormationAPI) DescribeTypeRegistration(arg0 *cloudformation.DescribeTypeRegistrationInput) (*cloudformation.DescribeTypeRegistrationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTypeRegistration", arg0) + ret0, _ := ret[0].(*cloudformation.DescribeTypeRegistrationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTypeRegistration indicates an expected call of DescribeTypeRegistration. +func (mr *MockCloudFormationAPIMockRecorder) DescribeTypeRegistration(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTypeRegistration", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeTypeRegistration), arg0) +} + +// DescribeTypeRegistrationRequest mocks base method. +func (m *MockCloudFormationAPI) DescribeTypeRegistrationRequest(arg0 *cloudformation.DescribeTypeRegistrationInput) (*request.Request, *cloudformation.DescribeTypeRegistrationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTypeRegistrationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.DescribeTypeRegistrationOutput) + return ret0, ret1 +} + +// DescribeTypeRegistrationRequest indicates an expected call of DescribeTypeRegistrationRequest. +func (mr *MockCloudFormationAPIMockRecorder) DescribeTypeRegistrationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTypeRegistrationRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeTypeRegistrationRequest), arg0) +} + +// DescribeTypeRegistrationWithContext mocks base method. +func (m *MockCloudFormationAPI) DescribeTypeRegistrationWithContext(arg0 aws.Context, arg1 *cloudformation.DescribeTypeRegistrationInput, arg2 ...request.Option) (*cloudformation.DescribeTypeRegistrationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeTypeRegistrationWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.DescribeTypeRegistrationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTypeRegistrationWithContext indicates an expected call of DescribeTypeRegistrationWithContext. +func (mr *MockCloudFormationAPIMockRecorder) DescribeTypeRegistrationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTypeRegistrationWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeTypeRegistrationWithContext), varargs...) +} + +// DescribeTypeRequest mocks base method. +func (m *MockCloudFormationAPI) DescribeTypeRequest(arg0 *cloudformation.DescribeTypeInput) (*request.Request, *cloudformation.DescribeTypeOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTypeRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.DescribeTypeOutput) + return ret0, ret1 +} + +// DescribeTypeRequest indicates an expected call of DescribeTypeRequest. +func (mr *MockCloudFormationAPIMockRecorder) DescribeTypeRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTypeRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeTypeRequest), arg0) +} + +// DescribeTypeWithContext mocks base method. +func (m *MockCloudFormationAPI) DescribeTypeWithContext(arg0 aws.Context, arg1 *cloudformation.DescribeTypeInput, arg2 ...request.Option) (*cloudformation.DescribeTypeOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeTypeWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.DescribeTypeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTypeWithContext indicates an expected call of DescribeTypeWithContext. +func (mr *MockCloudFormationAPIMockRecorder) DescribeTypeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTypeWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeTypeWithContext), varargs...) +} + +// DetectStackDrift mocks base method. +func (m *MockCloudFormationAPI) DetectStackDrift(arg0 *cloudformation.DetectStackDriftInput) (*cloudformation.DetectStackDriftOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DetectStackDrift", arg0) + ret0, _ := ret[0].(*cloudformation.DetectStackDriftOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DetectStackDrift indicates an expected call of DetectStackDrift. +func (mr *MockCloudFormationAPIMockRecorder) DetectStackDrift(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetectStackDrift", reflect.TypeOf((*MockCloudFormationAPI)(nil).DetectStackDrift), arg0) +} + +// DetectStackDriftRequest mocks base method. +func (m *MockCloudFormationAPI) DetectStackDriftRequest(arg0 *cloudformation.DetectStackDriftInput) (*request.Request, *cloudformation.DetectStackDriftOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DetectStackDriftRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.DetectStackDriftOutput) + return ret0, ret1 +} + +// DetectStackDriftRequest indicates an expected call of DetectStackDriftRequest. +func (mr *MockCloudFormationAPIMockRecorder) DetectStackDriftRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetectStackDriftRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).DetectStackDriftRequest), arg0) +} + +// DetectStackDriftWithContext mocks base method. +func (m *MockCloudFormationAPI) DetectStackDriftWithContext(arg0 aws.Context, arg1 *cloudformation.DetectStackDriftInput, arg2 ...request.Option) (*cloudformation.DetectStackDriftOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DetectStackDriftWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.DetectStackDriftOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DetectStackDriftWithContext indicates an expected call of DetectStackDriftWithContext. +func (mr *MockCloudFormationAPIMockRecorder) DetectStackDriftWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetectStackDriftWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DetectStackDriftWithContext), varargs...) +} + +// DetectStackResourceDrift mocks base method. +func (m *MockCloudFormationAPI) DetectStackResourceDrift(arg0 *cloudformation.DetectStackResourceDriftInput) (*cloudformation.DetectStackResourceDriftOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DetectStackResourceDrift", arg0) + ret0, _ := ret[0].(*cloudformation.DetectStackResourceDriftOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DetectStackResourceDrift indicates an expected call of DetectStackResourceDrift. +func (mr *MockCloudFormationAPIMockRecorder) DetectStackResourceDrift(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetectStackResourceDrift", reflect.TypeOf((*MockCloudFormationAPI)(nil).DetectStackResourceDrift), arg0) +} + +// DetectStackResourceDriftRequest mocks base method. +func (m *MockCloudFormationAPI) DetectStackResourceDriftRequest(arg0 *cloudformation.DetectStackResourceDriftInput) (*request.Request, *cloudformation.DetectStackResourceDriftOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DetectStackResourceDriftRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.DetectStackResourceDriftOutput) + return ret0, ret1 +} + +// DetectStackResourceDriftRequest indicates an expected call of DetectStackResourceDriftRequest. +func (mr *MockCloudFormationAPIMockRecorder) DetectStackResourceDriftRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetectStackResourceDriftRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).DetectStackResourceDriftRequest), arg0) +} + +// DetectStackResourceDriftWithContext mocks base method. +func (m *MockCloudFormationAPI) DetectStackResourceDriftWithContext(arg0 aws.Context, arg1 *cloudformation.DetectStackResourceDriftInput, arg2 ...request.Option) (*cloudformation.DetectStackResourceDriftOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DetectStackResourceDriftWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.DetectStackResourceDriftOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DetectStackResourceDriftWithContext indicates an expected call of DetectStackResourceDriftWithContext. +func (mr *MockCloudFormationAPIMockRecorder) DetectStackResourceDriftWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetectStackResourceDriftWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DetectStackResourceDriftWithContext), varargs...) +} + +// DetectStackSetDrift mocks base method. +func (m *MockCloudFormationAPI) DetectStackSetDrift(arg0 *cloudformation.DetectStackSetDriftInput) (*cloudformation.DetectStackSetDriftOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DetectStackSetDrift", arg0) + ret0, _ := ret[0].(*cloudformation.DetectStackSetDriftOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DetectStackSetDrift indicates an expected call of DetectStackSetDrift. +func (mr *MockCloudFormationAPIMockRecorder) DetectStackSetDrift(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetectStackSetDrift", reflect.TypeOf((*MockCloudFormationAPI)(nil).DetectStackSetDrift), arg0) +} + +// DetectStackSetDriftRequest mocks base method. +func (m *MockCloudFormationAPI) DetectStackSetDriftRequest(arg0 *cloudformation.DetectStackSetDriftInput) (*request.Request, *cloudformation.DetectStackSetDriftOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DetectStackSetDriftRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.DetectStackSetDriftOutput) + return ret0, ret1 +} + +// DetectStackSetDriftRequest indicates an expected call of DetectStackSetDriftRequest. +func (mr *MockCloudFormationAPIMockRecorder) DetectStackSetDriftRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetectStackSetDriftRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).DetectStackSetDriftRequest), arg0) +} + +// DetectStackSetDriftWithContext mocks base method. +func (m *MockCloudFormationAPI) DetectStackSetDriftWithContext(arg0 aws.Context, arg1 *cloudformation.DetectStackSetDriftInput, arg2 ...request.Option) (*cloudformation.DetectStackSetDriftOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DetectStackSetDriftWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.DetectStackSetDriftOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DetectStackSetDriftWithContext indicates an expected call of DetectStackSetDriftWithContext. +func (mr *MockCloudFormationAPIMockRecorder) DetectStackSetDriftWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetectStackSetDriftWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DetectStackSetDriftWithContext), varargs...) +} + +// EstimateTemplateCost mocks base method. +func (m *MockCloudFormationAPI) EstimateTemplateCost(arg0 *cloudformation.EstimateTemplateCostInput) (*cloudformation.EstimateTemplateCostOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "EstimateTemplateCost", arg0) + ret0, _ := ret[0].(*cloudformation.EstimateTemplateCostOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// EstimateTemplateCost indicates an expected call of EstimateTemplateCost. +func (mr *MockCloudFormationAPIMockRecorder) EstimateTemplateCost(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EstimateTemplateCost", reflect.TypeOf((*MockCloudFormationAPI)(nil).EstimateTemplateCost), arg0) +} + +// EstimateTemplateCostRequest mocks base method. +func (m *MockCloudFormationAPI) EstimateTemplateCostRequest(arg0 *cloudformation.EstimateTemplateCostInput) (*request.Request, *cloudformation.EstimateTemplateCostOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "EstimateTemplateCostRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.EstimateTemplateCostOutput) + return ret0, ret1 +} + +// EstimateTemplateCostRequest indicates an expected call of EstimateTemplateCostRequest. +func (mr *MockCloudFormationAPIMockRecorder) EstimateTemplateCostRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EstimateTemplateCostRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).EstimateTemplateCostRequest), arg0) +} + +// EstimateTemplateCostWithContext mocks base method. +func (m *MockCloudFormationAPI) EstimateTemplateCostWithContext(arg0 aws.Context, arg1 *cloudformation.EstimateTemplateCostInput, arg2 ...request.Option) (*cloudformation.EstimateTemplateCostOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "EstimateTemplateCostWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.EstimateTemplateCostOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// EstimateTemplateCostWithContext indicates an expected call of EstimateTemplateCostWithContext. +func (mr *MockCloudFormationAPIMockRecorder) EstimateTemplateCostWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EstimateTemplateCostWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).EstimateTemplateCostWithContext), varargs...) +} + +// ExecuteChangeSet mocks base method. +func (m *MockCloudFormationAPI) ExecuteChangeSet(arg0 *cloudformation.ExecuteChangeSetInput) (*cloudformation.ExecuteChangeSetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExecuteChangeSet", arg0) + ret0, _ := ret[0].(*cloudformation.ExecuteChangeSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExecuteChangeSet indicates an expected call of ExecuteChangeSet. +func (mr *MockCloudFormationAPIMockRecorder) ExecuteChangeSet(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecuteChangeSet", reflect.TypeOf((*MockCloudFormationAPI)(nil).ExecuteChangeSet), arg0) +} + +// ExecuteChangeSetRequest mocks base method. +func (m *MockCloudFormationAPI) ExecuteChangeSetRequest(arg0 *cloudformation.ExecuteChangeSetInput) (*request.Request, *cloudformation.ExecuteChangeSetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExecuteChangeSetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.ExecuteChangeSetOutput) + return ret0, ret1 +} + +// ExecuteChangeSetRequest indicates an expected call of ExecuteChangeSetRequest. +func (mr *MockCloudFormationAPIMockRecorder) ExecuteChangeSetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecuteChangeSetRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).ExecuteChangeSetRequest), arg0) +} + +// ExecuteChangeSetWithContext mocks base method. +func (m *MockCloudFormationAPI) ExecuteChangeSetWithContext(arg0 aws.Context, arg1 *cloudformation.ExecuteChangeSetInput, arg2 ...request.Option) (*cloudformation.ExecuteChangeSetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ExecuteChangeSetWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.ExecuteChangeSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExecuteChangeSetWithContext indicates an expected call of ExecuteChangeSetWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ExecuteChangeSetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecuteChangeSetWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ExecuteChangeSetWithContext), varargs...) +} + +// GetStackPolicy mocks base method. +func (m *MockCloudFormationAPI) GetStackPolicy(arg0 *cloudformation.GetStackPolicyInput) (*cloudformation.GetStackPolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetStackPolicy", arg0) + ret0, _ := ret[0].(*cloudformation.GetStackPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetStackPolicy indicates an expected call of GetStackPolicy. +func (mr *MockCloudFormationAPIMockRecorder) GetStackPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStackPolicy", reflect.TypeOf((*MockCloudFormationAPI)(nil).GetStackPolicy), arg0) +} + +// GetStackPolicyRequest mocks base method. +func (m *MockCloudFormationAPI) GetStackPolicyRequest(arg0 *cloudformation.GetStackPolicyInput) (*request.Request, *cloudformation.GetStackPolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetStackPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.GetStackPolicyOutput) + return ret0, ret1 +} + +// GetStackPolicyRequest indicates an expected call of GetStackPolicyRequest. +func (mr *MockCloudFormationAPIMockRecorder) GetStackPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStackPolicyRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).GetStackPolicyRequest), arg0) +} + +// GetStackPolicyWithContext mocks base method. +func (m *MockCloudFormationAPI) GetStackPolicyWithContext(arg0 aws.Context, arg1 *cloudformation.GetStackPolicyInput, arg2 ...request.Option) (*cloudformation.GetStackPolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetStackPolicyWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.GetStackPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetStackPolicyWithContext indicates an expected call of GetStackPolicyWithContext. +func (mr *MockCloudFormationAPIMockRecorder) GetStackPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStackPolicyWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).GetStackPolicyWithContext), varargs...) +} + +// GetTemplate mocks base method. +func (m *MockCloudFormationAPI) GetTemplate(arg0 *cloudformation.GetTemplateInput) (*cloudformation.GetTemplateOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetTemplate", arg0) + ret0, _ := ret[0].(*cloudformation.GetTemplateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetTemplate indicates an expected call of GetTemplate. +func (mr *MockCloudFormationAPIMockRecorder) GetTemplate(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTemplate", reflect.TypeOf((*MockCloudFormationAPI)(nil).GetTemplate), arg0) +} + +// GetTemplateRequest mocks base method. +func (m *MockCloudFormationAPI) GetTemplateRequest(arg0 *cloudformation.GetTemplateInput) (*request.Request, *cloudformation.GetTemplateOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetTemplateRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.GetTemplateOutput) + return ret0, ret1 +} + +// GetTemplateRequest indicates an expected call of GetTemplateRequest. +func (mr *MockCloudFormationAPIMockRecorder) GetTemplateRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTemplateRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).GetTemplateRequest), arg0) +} + +// GetTemplateSummary mocks base method. +func (m *MockCloudFormationAPI) GetTemplateSummary(arg0 *cloudformation.GetTemplateSummaryInput) (*cloudformation.GetTemplateSummaryOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetTemplateSummary", arg0) + ret0, _ := ret[0].(*cloudformation.GetTemplateSummaryOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetTemplateSummary indicates an expected call of GetTemplateSummary. +func (mr *MockCloudFormationAPIMockRecorder) GetTemplateSummary(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTemplateSummary", reflect.TypeOf((*MockCloudFormationAPI)(nil).GetTemplateSummary), arg0) +} + +// GetTemplateSummaryRequest mocks base method. +func (m *MockCloudFormationAPI) GetTemplateSummaryRequest(arg0 *cloudformation.GetTemplateSummaryInput) (*request.Request, *cloudformation.GetTemplateSummaryOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetTemplateSummaryRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.GetTemplateSummaryOutput) + return ret0, ret1 +} + +// GetTemplateSummaryRequest indicates an expected call of GetTemplateSummaryRequest. +func (mr *MockCloudFormationAPIMockRecorder) GetTemplateSummaryRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTemplateSummaryRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).GetTemplateSummaryRequest), arg0) +} + +// GetTemplateSummaryWithContext mocks base method. +func (m *MockCloudFormationAPI) GetTemplateSummaryWithContext(arg0 aws.Context, arg1 *cloudformation.GetTemplateSummaryInput, arg2 ...request.Option) (*cloudformation.GetTemplateSummaryOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetTemplateSummaryWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.GetTemplateSummaryOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetTemplateSummaryWithContext indicates an expected call of GetTemplateSummaryWithContext. +func (mr *MockCloudFormationAPIMockRecorder) GetTemplateSummaryWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTemplateSummaryWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).GetTemplateSummaryWithContext), varargs...) +} + +// GetTemplateWithContext mocks base method. +func (m *MockCloudFormationAPI) GetTemplateWithContext(arg0 aws.Context, arg1 *cloudformation.GetTemplateInput, arg2 ...request.Option) (*cloudformation.GetTemplateOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetTemplateWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.GetTemplateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetTemplateWithContext indicates an expected call of GetTemplateWithContext. +func (mr *MockCloudFormationAPIMockRecorder) GetTemplateWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTemplateWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).GetTemplateWithContext), varargs...) +} + +// ImportStacksToStackSet mocks base method. +func (m *MockCloudFormationAPI) ImportStacksToStackSet(arg0 *cloudformation.ImportStacksToStackSetInput) (*cloudformation.ImportStacksToStackSetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ImportStacksToStackSet", arg0) + ret0, _ := ret[0].(*cloudformation.ImportStacksToStackSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ImportStacksToStackSet indicates an expected call of ImportStacksToStackSet. +func (mr *MockCloudFormationAPIMockRecorder) ImportStacksToStackSet(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImportStacksToStackSet", reflect.TypeOf((*MockCloudFormationAPI)(nil).ImportStacksToStackSet), arg0) +} + +// ImportStacksToStackSetRequest mocks base method. +func (m *MockCloudFormationAPI) ImportStacksToStackSetRequest(arg0 *cloudformation.ImportStacksToStackSetInput) (*request.Request, *cloudformation.ImportStacksToStackSetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ImportStacksToStackSetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.ImportStacksToStackSetOutput) + return ret0, ret1 +} + +// ImportStacksToStackSetRequest indicates an expected call of ImportStacksToStackSetRequest. +func (mr *MockCloudFormationAPIMockRecorder) ImportStacksToStackSetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImportStacksToStackSetRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).ImportStacksToStackSetRequest), arg0) +} + +// ImportStacksToStackSetWithContext mocks base method. +func (m *MockCloudFormationAPI) ImportStacksToStackSetWithContext(arg0 aws.Context, arg1 *cloudformation.ImportStacksToStackSetInput, arg2 ...request.Option) (*cloudformation.ImportStacksToStackSetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ImportStacksToStackSetWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.ImportStacksToStackSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ImportStacksToStackSetWithContext indicates an expected call of ImportStacksToStackSetWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ImportStacksToStackSetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImportStacksToStackSetWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ImportStacksToStackSetWithContext), varargs...) +} + +// ListChangeSets mocks base method. +func (m *MockCloudFormationAPI) ListChangeSets(arg0 *cloudformation.ListChangeSetsInput) (*cloudformation.ListChangeSetsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListChangeSets", arg0) + ret0, _ := ret[0].(*cloudformation.ListChangeSetsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListChangeSets indicates an expected call of ListChangeSets. +func (mr *MockCloudFormationAPIMockRecorder) ListChangeSets(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListChangeSets", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListChangeSets), arg0) +} + +// ListChangeSetsPages mocks base method. +func (m *MockCloudFormationAPI) ListChangeSetsPages(arg0 *cloudformation.ListChangeSetsInput, arg1 func(*cloudformation.ListChangeSetsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListChangeSetsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListChangeSetsPages indicates an expected call of ListChangeSetsPages. +func (mr *MockCloudFormationAPIMockRecorder) ListChangeSetsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListChangeSetsPages", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListChangeSetsPages), arg0, arg1) +} + +// ListChangeSetsPagesWithContext mocks base method. +func (m *MockCloudFormationAPI) ListChangeSetsPagesWithContext(arg0 aws.Context, arg1 *cloudformation.ListChangeSetsInput, arg2 func(*cloudformation.ListChangeSetsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListChangeSetsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListChangeSetsPagesWithContext indicates an expected call of ListChangeSetsPagesWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ListChangeSetsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListChangeSetsPagesWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListChangeSetsPagesWithContext), varargs...) +} + +// ListChangeSetsRequest mocks base method. +func (m *MockCloudFormationAPI) ListChangeSetsRequest(arg0 *cloudformation.ListChangeSetsInput) (*request.Request, *cloudformation.ListChangeSetsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListChangeSetsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.ListChangeSetsOutput) + return ret0, ret1 +} + +// ListChangeSetsRequest indicates an expected call of ListChangeSetsRequest. +func (mr *MockCloudFormationAPIMockRecorder) ListChangeSetsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListChangeSetsRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListChangeSetsRequest), arg0) +} + +// ListChangeSetsWithContext mocks base method. +func (m *MockCloudFormationAPI) ListChangeSetsWithContext(arg0 aws.Context, arg1 *cloudformation.ListChangeSetsInput, arg2 ...request.Option) (*cloudformation.ListChangeSetsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListChangeSetsWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.ListChangeSetsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListChangeSetsWithContext indicates an expected call of ListChangeSetsWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ListChangeSetsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListChangeSetsWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListChangeSetsWithContext), varargs...) +} + +// ListExports mocks base method. +func (m *MockCloudFormationAPI) ListExports(arg0 *cloudformation.ListExportsInput) (*cloudformation.ListExportsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListExports", arg0) + ret0, _ := ret[0].(*cloudformation.ListExportsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListExports indicates an expected call of ListExports. +func (mr *MockCloudFormationAPIMockRecorder) ListExports(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListExports", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListExports), arg0) +} + +// ListExportsPages mocks base method. +func (m *MockCloudFormationAPI) ListExportsPages(arg0 *cloudformation.ListExportsInput, arg1 func(*cloudformation.ListExportsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListExportsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListExportsPages indicates an expected call of ListExportsPages. +func (mr *MockCloudFormationAPIMockRecorder) ListExportsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListExportsPages", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListExportsPages), arg0, arg1) +} + +// ListExportsPagesWithContext mocks base method. +func (m *MockCloudFormationAPI) ListExportsPagesWithContext(arg0 aws.Context, arg1 *cloudformation.ListExportsInput, arg2 func(*cloudformation.ListExportsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListExportsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListExportsPagesWithContext indicates an expected call of ListExportsPagesWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ListExportsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListExportsPagesWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListExportsPagesWithContext), varargs...) +} + +// ListExportsRequest mocks base method. +func (m *MockCloudFormationAPI) ListExportsRequest(arg0 *cloudformation.ListExportsInput) (*request.Request, *cloudformation.ListExportsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListExportsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.ListExportsOutput) + return ret0, ret1 +} + +// ListExportsRequest indicates an expected call of ListExportsRequest. +func (mr *MockCloudFormationAPIMockRecorder) ListExportsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListExportsRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListExportsRequest), arg0) +} + +// ListExportsWithContext mocks base method. +func (m *MockCloudFormationAPI) ListExportsWithContext(arg0 aws.Context, arg1 *cloudformation.ListExportsInput, arg2 ...request.Option) (*cloudformation.ListExportsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListExportsWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.ListExportsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListExportsWithContext indicates an expected call of ListExportsWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ListExportsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListExportsWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListExportsWithContext), varargs...) +} + +// ListImports mocks base method. +func (m *MockCloudFormationAPI) ListImports(arg0 *cloudformation.ListImportsInput) (*cloudformation.ListImportsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListImports", arg0) + ret0, _ := ret[0].(*cloudformation.ListImportsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListImports indicates an expected call of ListImports. +func (mr *MockCloudFormationAPIMockRecorder) ListImports(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListImports", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListImports), arg0) +} + +// ListImportsPages mocks base method. +func (m *MockCloudFormationAPI) ListImportsPages(arg0 *cloudformation.ListImportsInput, arg1 func(*cloudformation.ListImportsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListImportsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListImportsPages indicates an expected call of ListImportsPages. +func (mr *MockCloudFormationAPIMockRecorder) ListImportsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListImportsPages", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListImportsPages), arg0, arg1) +} + +// ListImportsPagesWithContext mocks base method. +func (m *MockCloudFormationAPI) ListImportsPagesWithContext(arg0 aws.Context, arg1 *cloudformation.ListImportsInput, arg2 func(*cloudformation.ListImportsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListImportsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListImportsPagesWithContext indicates an expected call of ListImportsPagesWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ListImportsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListImportsPagesWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListImportsPagesWithContext), varargs...) +} + +// ListImportsRequest mocks base method. +func (m *MockCloudFormationAPI) ListImportsRequest(arg0 *cloudformation.ListImportsInput) (*request.Request, *cloudformation.ListImportsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListImportsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.ListImportsOutput) + return ret0, ret1 +} + +// ListImportsRequest indicates an expected call of ListImportsRequest. +func (mr *MockCloudFormationAPIMockRecorder) ListImportsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListImportsRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListImportsRequest), arg0) +} + +// ListImportsWithContext mocks base method. +func (m *MockCloudFormationAPI) ListImportsWithContext(arg0 aws.Context, arg1 *cloudformation.ListImportsInput, arg2 ...request.Option) (*cloudformation.ListImportsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListImportsWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.ListImportsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListImportsWithContext indicates an expected call of ListImportsWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ListImportsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListImportsWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListImportsWithContext), varargs...) +} + +// ListStackInstances mocks base method. +func (m *MockCloudFormationAPI) ListStackInstances(arg0 *cloudformation.ListStackInstancesInput) (*cloudformation.ListStackInstancesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListStackInstances", arg0) + ret0, _ := ret[0].(*cloudformation.ListStackInstancesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListStackInstances indicates an expected call of ListStackInstances. +func (mr *MockCloudFormationAPIMockRecorder) ListStackInstances(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStackInstances", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStackInstances), arg0) +} + +// ListStackInstancesPages mocks base method. +func (m *MockCloudFormationAPI) ListStackInstancesPages(arg0 *cloudformation.ListStackInstancesInput, arg1 func(*cloudformation.ListStackInstancesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListStackInstancesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListStackInstancesPages indicates an expected call of ListStackInstancesPages. +func (mr *MockCloudFormationAPIMockRecorder) ListStackInstancesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStackInstancesPages", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStackInstancesPages), arg0, arg1) +} + +// ListStackInstancesPagesWithContext mocks base method. +func (m *MockCloudFormationAPI) ListStackInstancesPagesWithContext(arg0 aws.Context, arg1 *cloudformation.ListStackInstancesInput, arg2 func(*cloudformation.ListStackInstancesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListStackInstancesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListStackInstancesPagesWithContext indicates an expected call of ListStackInstancesPagesWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ListStackInstancesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStackInstancesPagesWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStackInstancesPagesWithContext), varargs...) +} + +// ListStackInstancesRequest mocks base method. +func (m *MockCloudFormationAPI) ListStackInstancesRequest(arg0 *cloudformation.ListStackInstancesInput) (*request.Request, *cloudformation.ListStackInstancesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListStackInstancesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.ListStackInstancesOutput) + return ret0, ret1 +} + +// ListStackInstancesRequest indicates an expected call of ListStackInstancesRequest. +func (mr *MockCloudFormationAPIMockRecorder) ListStackInstancesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStackInstancesRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStackInstancesRequest), arg0) +} + +// ListStackInstancesWithContext mocks base method. +func (m *MockCloudFormationAPI) ListStackInstancesWithContext(arg0 aws.Context, arg1 *cloudformation.ListStackInstancesInput, arg2 ...request.Option) (*cloudformation.ListStackInstancesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListStackInstancesWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.ListStackInstancesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListStackInstancesWithContext indicates an expected call of ListStackInstancesWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ListStackInstancesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStackInstancesWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStackInstancesWithContext), varargs...) +} + +// ListStackResources mocks base method. +func (m *MockCloudFormationAPI) ListStackResources(arg0 *cloudformation.ListStackResourcesInput) (*cloudformation.ListStackResourcesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListStackResources", arg0) + ret0, _ := ret[0].(*cloudformation.ListStackResourcesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListStackResources indicates an expected call of ListStackResources. +func (mr *MockCloudFormationAPIMockRecorder) ListStackResources(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStackResources", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStackResources), arg0) +} + +// ListStackResourcesPages mocks base method. +func (m *MockCloudFormationAPI) ListStackResourcesPages(arg0 *cloudformation.ListStackResourcesInput, arg1 func(*cloudformation.ListStackResourcesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListStackResourcesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListStackResourcesPages indicates an expected call of ListStackResourcesPages. +func (mr *MockCloudFormationAPIMockRecorder) ListStackResourcesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStackResourcesPages", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStackResourcesPages), arg0, arg1) +} + +// ListStackResourcesPagesWithContext mocks base method. +func (m *MockCloudFormationAPI) ListStackResourcesPagesWithContext(arg0 aws.Context, arg1 *cloudformation.ListStackResourcesInput, arg2 func(*cloudformation.ListStackResourcesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListStackResourcesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListStackResourcesPagesWithContext indicates an expected call of ListStackResourcesPagesWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ListStackResourcesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStackResourcesPagesWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStackResourcesPagesWithContext), varargs...) +} + +// ListStackResourcesRequest mocks base method. +func (m *MockCloudFormationAPI) ListStackResourcesRequest(arg0 *cloudformation.ListStackResourcesInput) (*request.Request, *cloudformation.ListStackResourcesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListStackResourcesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.ListStackResourcesOutput) + return ret0, ret1 +} + +// ListStackResourcesRequest indicates an expected call of ListStackResourcesRequest. +func (mr *MockCloudFormationAPIMockRecorder) ListStackResourcesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStackResourcesRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStackResourcesRequest), arg0) +} + +// ListStackResourcesWithContext mocks base method. +func (m *MockCloudFormationAPI) ListStackResourcesWithContext(arg0 aws.Context, arg1 *cloudformation.ListStackResourcesInput, arg2 ...request.Option) (*cloudformation.ListStackResourcesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListStackResourcesWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.ListStackResourcesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListStackResourcesWithContext indicates an expected call of ListStackResourcesWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ListStackResourcesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStackResourcesWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStackResourcesWithContext), varargs...) +} + +// ListStackSetOperationResults mocks base method. +func (m *MockCloudFormationAPI) ListStackSetOperationResults(arg0 *cloudformation.ListStackSetOperationResultsInput) (*cloudformation.ListStackSetOperationResultsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListStackSetOperationResults", arg0) + ret0, _ := ret[0].(*cloudformation.ListStackSetOperationResultsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListStackSetOperationResults indicates an expected call of ListStackSetOperationResults. +func (mr *MockCloudFormationAPIMockRecorder) ListStackSetOperationResults(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStackSetOperationResults", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStackSetOperationResults), arg0) +} + +// ListStackSetOperationResultsPages mocks base method. +func (m *MockCloudFormationAPI) ListStackSetOperationResultsPages(arg0 *cloudformation.ListStackSetOperationResultsInput, arg1 func(*cloudformation.ListStackSetOperationResultsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListStackSetOperationResultsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListStackSetOperationResultsPages indicates an expected call of ListStackSetOperationResultsPages. +func (mr *MockCloudFormationAPIMockRecorder) ListStackSetOperationResultsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStackSetOperationResultsPages", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStackSetOperationResultsPages), arg0, arg1) +} + +// ListStackSetOperationResultsPagesWithContext mocks base method. +func (m *MockCloudFormationAPI) ListStackSetOperationResultsPagesWithContext(arg0 aws.Context, arg1 *cloudformation.ListStackSetOperationResultsInput, arg2 func(*cloudformation.ListStackSetOperationResultsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListStackSetOperationResultsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListStackSetOperationResultsPagesWithContext indicates an expected call of ListStackSetOperationResultsPagesWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ListStackSetOperationResultsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStackSetOperationResultsPagesWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStackSetOperationResultsPagesWithContext), varargs...) +} + +// ListStackSetOperationResultsRequest mocks base method. +func (m *MockCloudFormationAPI) ListStackSetOperationResultsRequest(arg0 *cloudformation.ListStackSetOperationResultsInput) (*request.Request, *cloudformation.ListStackSetOperationResultsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListStackSetOperationResultsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.ListStackSetOperationResultsOutput) + return ret0, ret1 +} + +// ListStackSetOperationResultsRequest indicates an expected call of ListStackSetOperationResultsRequest. +func (mr *MockCloudFormationAPIMockRecorder) ListStackSetOperationResultsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStackSetOperationResultsRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStackSetOperationResultsRequest), arg0) +} + +// ListStackSetOperationResultsWithContext mocks base method. +func (m *MockCloudFormationAPI) ListStackSetOperationResultsWithContext(arg0 aws.Context, arg1 *cloudformation.ListStackSetOperationResultsInput, arg2 ...request.Option) (*cloudformation.ListStackSetOperationResultsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListStackSetOperationResultsWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.ListStackSetOperationResultsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListStackSetOperationResultsWithContext indicates an expected call of ListStackSetOperationResultsWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ListStackSetOperationResultsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStackSetOperationResultsWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStackSetOperationResultsWithContext), varargs...) +} + +// ListStackSetOperations mocks base method. +func (m *MockCloudFormationAPI) ListStackSetOperations(arg0 *cloudformation.ListStackSetOperationsInput) (*cloudformation.ListStackSetOperationsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListStackSetOperations", arg0) + ret0, _ := ret[0].(*cloudformation.ListStackSetOperationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListStackSetOperations indicates an expected call of ListStackSetOperations. +func (mr *MockCloudFormationAPIMockRecorder) ListStackSetOperations(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStackSetOperations", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStackSetOperations), arg0) +} + +// ListStackSetOperationsPages mocks base method. +func (m *MockCloudFormationAPI) ListStackSetOperationsPages(arg0 *cloudformation.ListStackSetOperationsInput, arg1 func(*cloudformation.ListStackSetOperationsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListStackSetOperationsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListStackSetOperationsPages indicates an expected call of ListStackSetOperationsPages. +func (mr *MockCloudFormationAPIMockRecorder) ListStackSetOperationsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStackSetOperationsPages", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStackSetOperationsPages), arg0, arg1) +} + +// ListStackSetOperationsPagesWithContext mocks base method. +func (m *MockCloudFormationAPI) ListStackSetOperationsPagesWithContext(arg0 aws.Context, arg1 *cloudformation.ListStackSetOperationsInput, arg2 func(*cloudformation.ListStackSetOperationsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListStackSetOperationsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListStackSetOperationsPagesWithContext indicates an expected call of ListStackSetOperationsPagesWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ListStackSetOperationsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStackSetOperationsPagesWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStackSetOperationsPagesWithContext), varargs...) +} + +// ListStackSetOperationsRequest mocks base method. +func (m *MockCloudFormationAPI) ListStackSetOperationsRequest(arg0 *cloudformation.ListStackSetOperationsInput) (*request.Request, *cloudformation.ListStackSetOperationsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListStackSetOperationsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.ListStackSetOperationsOutput) + return ret0, ret1 +} + +// ListStackSetOperationsRequest indicates an expected call of ListStackSetOperationsRequest. +func (mr *MockCloudFormationAPIMockRecorder) ListStackSetOperationsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStackSetOperationsRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStackSetOperationsRequest), arg0) +} + +// ListStackSetOperationsWithContext mocks base method. +func (m *MockCloudFormationAPI) ListStackSetOperationsWithContext(arg0 aws.Context, arg1 *cloudformation.ListStackSetOperationsInput, arg2 ...request.Option) (*cloudformation.ListStackSetOperationsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListStackSetOperationsWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.ListStackSetOperationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListStackSetOperationsWithContext indicates an expected call of ListStackSetOperationsWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ListStackSetOperationsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStackSetOperationsWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStackSetOperationsWithContext), varargs...) +} + +// ListStackSets mocks base method. +func (m *MockCloudFormationAPI) ListStackSets(arg0 *cloudformation.ListStackSetsInput) (*cloudformation.ListStackSetsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListStackSets", arg0) + ret0, _ := ret[0].(*cloudformation.ListStackSetsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListStackSets indicates an expected call of ListStackSets. +func (mr *MockCloudFormationAPIMockRecorder) ListStackSets(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStackSets", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStackSets), arg0) +} + +// ListStackSetsPages mocks base method. +func (m *MockCloudFormationAPI) ListStackSetsPages(arg0 *cloudformation.ListStackSetsInput, arg1 func(*cloudformation.ListStackSetsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListStackSetsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListStackSetsPages indicates an expected call of ListStackSetsPages. +func (mr *MockCloudFormationAPIMockRecorder) ListStackSetsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStackSetsPages", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStackSetsPages), arg0, arg1) +} + +// ListStackSetsPagesWithContext mocks base method. +func (m *MockCloudFormationAPI) ListStackSetsPagesWithContext(arg0 aws.Context, arg1 *cloudformation.ListStackSetsInput, arg2 func(*cloudformation.ListStackSetsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListStackSetsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListStackSetsPagesWithContext indicates an expected call of ListStackSetsPagesWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ListStackSetsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStackSetsPagesWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStackSetsPagesWithContext), varargs...) +} + +// ListStackSetsRequest mocks base method. +func (m *MockCloudFormationAPI) ListStackSetsRequest(arg0 *cloudformation.ListStackSetsInput) (*request.Request, *cloudformation.ListStackSetsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListStackSetsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.ListStackSetsOutput) + return ret0, ret1 +} + +// ListStackSetsRequest indicates an expected call of ListStackSetsRequest. +func (mr *MockCloudFormationAPIMockRecorder) ListStackSetsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStackSetsRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStackSetsRequest), arg0) +} + +// ListStackSetsWithContext mocks base method. +func (m *MockCloudFormationAPI) ListStackSetsWithContext(arg0 aws.Context, arg1 *cloudformation.ListStackSetsInput, arg2 ...request.Option) (*cloudformation.ListStackSetsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListStackSetsWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.ListStackSetsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListStackSetsWithContext indicates an expected call of ListStackSetsWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ListStackSetsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStackSetsWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStackSetsWithContext), varargs...) +} + +// ListStacks mocks base method. +func (m *MockCloudFormationAPI) ListStacks(arg0 *cloudformation.ListStacksInput) (*cloudformation.ListStacksOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListStacks", arg0) + ret0, _ := ret[0].(*cloudformation.ListStacksOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListStacks indicates an expected call of ListStacks. +func (mr *MockCloudFormationAPIMockRecorder) ListStacks(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStacks", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStacks), arg0) +} + +// ListStacksPages mocks base method. +func (m *MockCloudFormationAPI) ListStacksPages(arg0 *cloudformation.ListStacksInput, arg1 func(*cloudformation.ListStacksOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListStacksPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListStacksPages indicates an expected call of ListStacksPages. +func (mr *MockCloudFormationAPIMockRecorder) ListStacksPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStacksPages", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStacksPages), arg0, arg1) +} + +// ListStacksPagesWithContext mocks base method. +func (m *MockCloudFormationAPI) ListStacksPagesWithContext(arg0 aws.Context, arg1 *cloudformation.ListStacksInput, arg2 func(*cloudformation.ListStacksOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListStacksPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListStacksPagesWithContext indicates an expected call of ListStacksPagesWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ListStacksPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStacksPagesWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStacksPagesWithContext), varargs...) +} + +// ListStacksRequest mocks base method. +func (m *MockCloudFormationAPI) ListStacksRequest(arg0 *cloudformation.ListStacksInput) (*request.Request, *cloudformation.ListStacksOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListStacksRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.ListStacksOutput) + return ret0, ret1 +} + +// ListStacksRequest indicates an expected call of ListStacksRequest. +func (mr *MockCloudFormationAPIMockRecorder) ListStacksRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStacksRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStacksRequest), arg0) +} + +// ListStacksWithContext mocks base method. +func (m *MockCloudFormationAPI) ListStacksWithContext(arg0 aws.Context, arg1 *cloudformation.ListStacksInput, arg2 ...request.Option) (*cloudformation.ListStacksOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListStacksWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.ListStacksOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListStacksWithContext indicates an expected call of ListStacksWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ListStacksWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStacksWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStacksWithContext), varargs...) +} + +// ListTypeRegistrations mocks base method. +func (m *MockCloudFormationAPI) ListTypeRegistrations(arg0 *cloudformation.ListTypeRegistrationsInput) (*cloudformation.ListTypeRegistrationsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTypeRegistrations", arg0) + ret0, _ := ret[0].(*cloudformation.ListTypeRegistrationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTypeRegistrations indicates an expected call of ListTypeRegistrations. +func (mr *MockCloudFormationAPIMockRecorder) ListTypeRegistrations(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTypeRegistrations", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListTypeRegistrations), arg0) +} + +// ListTypeRegistrationsPages mocks base method. +func (m *MockCloudFormationAPI) ListTypeRegistrationsPages(arg0 *cloudformation.ListTypeRegistrationsInput, arg1 func(*cloudformation.ListTypeRegistrationsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTypeRegistrationsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTypeRegistrationsPages indicates an expected call of ListTypeRegistrationsPages. +func (mr *MockCloudFormationAPIMockRecorder) ListTypeRegistrationsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTypeRegistrationsPages", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListTypeRegistrationsPages), arg0, arg1) +} + +// ListTypeRegistrationsPagesWithContext mocks base method. +func (m *MockCloudFormationAPI) ListTypeRegistrationsPagesWithContext(arg0 aws.Context, arg1 *cloudformation.ListTypeRegistrationsInput, arg2 func(*cloudformation.ListTypeRegistrationsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTypeRegistrationsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTypeRegistrationsPagesWithContext indicates an expected call of ListTypeRegistrationsPagesWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ListTypeRegistrationsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTypeRegistrationsPagesWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListTypeRegistrationsPagesWithContext), varargs...) +} + +// ListTypeRegistrationsRequest mocks base method. +func (m *MockCloudFormationAPI) ListTypeRegistrationsRequest(arg0 *cloudformation.ListTypeRegistrationsInput) (*request.Request, *cloudformation.ListTypeRegistrationsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTypeRegistrationsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.ListTypeRegistrationsOutput) + return ret0, ret1 +} + +// ListTypeRegistrationsRequest indicates an expected call of ListTypeRegistrationsRequest. +func (mr *MockCloudFormationAPIMockRecorder) ListTypeRegistrationsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTypeRegistrationsRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListTypeRegistrationsRequest), arg0) +} + +// ListTypeRegistrationsWithContext mocks base method. +func (m *MockCloudFormationAPI) ListTypeRegistrationsWithContext(arg0 aws.Context, arg1 *cloudformation.ListTypeRegistrationsInput, arg2 ...request.Option) (*cloudformation.ListTypeRegistrationsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTypeRegistrationsWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.ListTypeRegistrationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTypeRegistrationsWithContext indicates an expected call of ListTypeRegistrationsWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ListTypeRegistrationsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTypeRegistrationsWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListTypeRegistrationsWithContext), varargs...) +} + +// ListTypeVersions mocks base method. +func (m *MockCloudFormationAPI) ListTypeVersions(arg0 *cloudformation.ListTypeVersionsInput) (*cloudformation.ListTypeVersionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTypeVersions", arg0) + ret0, _ := ret[0].(*cloudformation.ListTypeVersionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTypeVersions indicates an expected call of ListTypeVersions. +func (mr *MockCloudFormationAPIMockRecorder) ListTypeVersions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTypeVersions", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListTypeVersions), arg0) +} + +// ListTypeVersionsPages mocks base method. +func (m *MockCloudFormationAPI) ListTypeVersionsPages(arg0 *cloudformation.ListTypeVersionsInput, arg1 func(*cloudformation.ListTypeVersionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTypeVersionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTypeVersionsPages indicates an expected call of ListTypeVersionsPages. +func (mr *MockCloudFormationAPIMockRecorder) ListTypeVersionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTypeVersionsPages", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListTypeVersionsPages), arg0, arg1) +} + +// ListTypeVersionsPagesWithContext mocks base method. +func (m *MockCloudFormationAPI) ListTypeVersionsPagesWithContext(arg0 aws.Context, arg1 *cloudformation.ListTypeVersionsInput, arg2 func(*cloudformation.ListTypeVersionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTypeVersionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTypeVersionsPagesWithContext indicates an expected call of ListTypeVersionsPagesWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ListTypeVersionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTypeVersionsPagesWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListTypeVersionsPagesWithContext), varargs...) +} + +// ListTypeVersionsRequest mocks base method. +func (m *MockCloudFormationAPI) ListTypeVersionsRequest(arg0 *cloudformation.ListTypeVersionsInput) (*request.Request, *cloudformation.ListTypeVersionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTypeVersionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.ListTypeVersionsOutput) + return ret0, ret1 +} + +// ListTypeVersionsRequest indicates an expected call of ListTypeVersionsRequest. +func (mr *MockCloudFormationAPIMockRecorder) ListTypeVersionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTypeVersionsRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListTypeVersionsRequest), arg0) +} + +// ListTypeVersionsWithContext mocks base method. +func (m *MockCloudFormationAPI) ListTypeVersionsWithContext(arg0 aws.Context, arg1 *cloudformation.ListTypeVersionsInput, arg2 ...request.Option) (*cloudformation.ListTypeVersionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTypeVersionsWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.ListTypeVersionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTypeVersionsWithContext indicates an expected call of ListTypeVersionsWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ListTypeVersionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTypeVersionsWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListTypeVersionsWithContext), varargs...) +} + +// ListTypes mocks base method. +func (m *MockCloudFormationAPI) ListTypes(arg0 *cloudformation.ListTypesInput) (*cloudformation.ListTypesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTypes", arg0) + ret0, _ := ret[0].(*cloudformation.ListTypesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTypes indicates an expected call of ListTypes. +func (mr *MockCloudFormationAPIMockRecorder) ListTypes(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTypes", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListTypes), arg0) +} + +// ListTypesPages mocks base method. +func (m *MockCloudFormationAPI) ListTypesPages(arg0 *cloudformation.ListTypesInput, arg1 func(*cloudformation.ListTypesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTypesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTypesPages indicates an expected call of ListTypesPages. +func (mr *MockCloudFormationAPIMockRecorder) ListTypesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTypesPages", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListTypesPages), arg0, arg1) +} + +// ListTypesPagesWithContext mocks base method. +func (m *MockCloudFormationAPI) ListTypesPagesWithContext(arg0 aws.Context, arg1 *cloudformation.ListTypesInput, arg2 func(*cloudformation.ListTypesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTypesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTypesPagesWithContext indicates an expected call of ListTypesPagesWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ListTypesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTypesPagesWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListTypesPagesWithContext), varargs...) +} + +// ListTypesRequest mocks base method. +func (m *MockCloudFormationAPI) ListTypesRequest(arg0 *cloudformation.ListTypesInput) (*request.Request, *cloudformation.ListTypesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTypesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.ListTypesOutput) + return ret0, ret1 +} + +// ListTypesRequest indicates an expected call of ListTypesRequest. +func (mr *MockCloudFormationAPIMockRecorder) ListTypesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTypesRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListTypesRequest), arg0) +} + +// ListTypesWithContext mocks base method. +func (m *MockCloudFormationAPI) ListTypesWithContext(arg0 aws.Context, arg1 *cloudformation.ListTypesInput, arg2 ...request.Option) (*cloudformation.ListTypesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTypesWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.ListTypesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTypesWithContext indicates an expected call of ListTypesWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ListTypesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTypesWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListTypesWithContext), varargs...) +} + +// PublishType mocks base method. +func (m *MockCloudFormationAPI) PublishType(arg0 *cloudformation.PublishTypeInput) (*cloudformation.PublishTypeOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PublishType", arg0) + ret0, _ := ret[0].(*cloudformation.PublishTypeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PublishType indicates an expected call of PublishType. +func (mr *MockCloudFormationAPIMockRecorder) PublishType(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PublishType", reflect.TypeOf((*MockCloudFormationAPI)(nil).PublishType), arg0) +} + +// PublishTypeRequest mocks base method. +func (m *MockCloudFormationAPI) PublishTypeRequest(arg0 *cloudformation.PublishTypeInput) (*request.Request, *cloudformation.PublishTypeOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PublishTypeRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.PublishTypeOutput) + return ret0, ret1 +} + +// PublishTypeRequest indicates an expected call of PublishTypeRequest. +func (mr *MockCloudFormationAPIMockRecorder) PublishTypeRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PublishTypeRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).PublishTypeRequest), arg0) +} + +// PublishTypeWithContext mocks base method. +func (m *MockCloudFormationAPI) PublishTypeWithContext(arg0 aws.Context, arg1 *cloudformation.PublishTypeInput, arg2 ...request.Option) (*cloudformation.PublishTypeOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PublishTypeWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.PublishTypeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PublishTypeWithContext indicates an expected call of PublishTypeWithContext. +func (mr *MockCloudFormationAPIMockRecorder) PublishTypeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PublishTypeWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).PublishTypeWithContext), varargs...) +} + +// RecordHandlerProgress mocks base method. +func (m *MockCloudFormationAPI) RecordHandlerProgress(arg0 *cloudformation.RecordHandlerProgressInput) (*cloudformation.RecordHandlerProgressOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RecordHandlerProgress", arg0) + ret0, _ := ret[0].(*cloudformation.RecordHandlerProgressOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RecordHandlerProgress indicates an expected call of RecordHandlerProgress. +func (mr *MockCloudFormationAPIMockRecorder) RecordHandlerProgress(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecordHandlerProgress", reflect.TypeOf((*MockCloudFormationAPI)(nil).RecordHandlerProgress), arg0) +} + +// RecordHandlerProgressRequest mocks base method. +func (m *MockCloudFormationAPI) RecordHandlerProgressRequest(arg0 *cloudformation.RecordHandlerProgressInput) (*request.Request, *cloudformation.RecordHandlerProgressOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RecordHandlerProgressRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.RecordHandlerProgressOutput) + return ret0, ret1 +} + +// RecordHandlerProgressRequest indicates an expected call of RecordHandlerProgressRequest. +func (mr *MockCloudFormationAPIMockRecorder) RecordHandlerProgressRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecordHandlerProgressRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).RecordHandlerProgressRequest), arg0) +} + +// RecordHandlerProgressWithContext mocks base method. +func (m *MockCloudFormationAPI) RecordHandlerProgressWithContext(arg0 aws.Context, arg1 *cloudformation.RecordHandlerProgressInput, arg2 ...request.Option) (*cloudformation.RecordHandlerProgressOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RecordHandlerProgressWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.RecordHandlerProgressOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RecordHandlerProgressWithContext indicates an expected call of RecordHandlerProgressWithContext. +func (mr *MockCloudFormationAPIMockRecorder) RecordHandlerProgressWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecordHandlerProgressWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).RecordHandlerProgressWithContext), varargs...) +} + +// RegisterPublisher mocks base method. +func (m *MockCloudFormationAPI) RegisterPublisher(arg0 *cloudformation.RegisterPublisherInput) (*cloudformation.RegisterPublisherOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RegisterPublisher", arg0) + ret0, _ := ret[0].(*cloudformation.RegisterPublisherOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RegisterPublisher indicates an expected call of RegisterPublisher. +func (mr *MockCloudFormationAPIMockRecorder) RegisterPublisher(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterPublisher", reflect.TypeOf((*MockCloudFormationAPI)(nil).RegisterPublisher), arg0) +} + +// RegisterPublisherRequest mocks base method. +func (m *MockCloudFormationAPI) RegisterPublisherRequest(arg0 *cloudformation.RegisterPublisherInput) (*request.Request, *cloudformation.RegisterPublisherOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RegisterPublisherRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.RegisterPublisherOutput) + return ret0, ret1 +} + +// RegisterPublisherRequest indicates an expected call of RegisterPublisherRequest. +func (mr *MockCloudFormationAPIMockRecorder) RegisterPublisherRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterPublisherRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).RegisterPublisherRequest), arg0) +} + +// RegisterPublisherWithContext mocks base method. +func (m *MockCloudFormationAPI) RegisterPublisherWithContext(arg0 aws.Context, arg1 *cloudformation.RegisterPublisherInput, arg2 ...request.Option) (*cloudformation.RegisterPublisherOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RegisterPublisherWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.RegisterPublisherOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RegisterPublisherWithContext indicates an expected call of RegisterPublisherWithContext. +func (mr *MockCloudFormationAPIMockRecorder) RegisterPublisherWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterPublisherWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).RegisterPublisherWithContext), varargs...) +} + +// RegisterType mocks base method. +func (m *MockCloudFormationAPI) RegisterType(arg0 *cloudformation.RegisterTypeInput) (*cloudformation.RegisterTypeOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RegisterType", arg0) + ret0, _ := ret[0].(*cloudformation.RegisterTypeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RegisterType indicates an expected call of RegisterType. +func (mr *MockCloudFormationAPIMockRecorder) RegisterType(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterType", reflect.TypeOf((*MockCloudFormationAPI)(nil).RegisterType), arg0) +} + +// RegisterTypeRequest mocks base method. +func (m *MockCloudFormationAPI) RegisterTypeRequest(arg0 *cloudformation.RegisterTypeInput) (*request.Request, *cloudformation.RegisterTypeOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RegisterTypeRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.RegisterTypeOutput) + return ret0, ret1 +} + +// RegisterTypeRequest indicates an expected call of RegisterTypeRequest. +func (mr *MockCloudFormationAPIMockRecorder) RegisterTypeRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterTypeRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).RegisterTypeRequest), arg0) +} + +// RegisterTypeWithContext mocks base method. +func (m *MockCloudFormationAPI) RegisterTypeWithContext(arg0 aws.Context, arg1 *cloudformation.RegisterTypeInput, arg2 ...request.Option) (*cloudformation.RegisterTypeOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RegisterTypeWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.RegisterTypeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RegisterTypeWithContext indicates an expected call of RegisterTypeWithContext. +func (mr *MockCloudFormationAPIMockRecorder) RegisterTypeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterTypeWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).RegisterTypeWithContext), varargs...) +} + +// RollbackStack mocks base method. +func (m *MockCloudFormationAPI) RollbackStack(arg0 *cloudformation.RollbackStackInput) (*cloudformation.RollbackStackOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RollbackStack", arg0) + ret0, _ := ret[0].(*cloudformation.RollbackStackOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RollbackStack indicates an expected call of RollbackStack. +func (mr *MockCloudFormationAPIMockRecorder) RollbackStack(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RollbackStack", reflect.TypeOf((*MockCloudFormationAPI)(nil).RollbackStack), arg0) +} + +// RollbackStackRequest mocks base method. +func (m *MockCloudFormationAPI) RollbackStackRequest(arg0 *cloudformation.RollbackStackInput) (*request.Request, *cloudformation.RollbackStackOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RollbackStackRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.RollbackStackOutput) + return ret0, ret1 +} + +// RollbackStackRequest indicates an expected call of RollbackStackRequest. +func (mr *MockCloudFormationAPIMockRecorder) RollbackStackRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RollbackStackRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).RollbackStackRequest), arg0) +} + +// RollbackStackWithContext mocks base method. +func (m *MockCloudFormationAPI) RollbackStackWithContext(arg0 aws.Context, arg1 *cloudformation.RollbackStackInput, arg2 ...request.Option) (*cloudformation.RollbackStackOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RollbackStackWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.RollbackStackOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RollbackStackWithContext indicates an expected call of RollbackStackWithContext. +func (mr *MockCloudFormationAPIMockRecorder) RollbackStackWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RollbackStackWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).RollbackStackWithContext), varargs...) +} + +// SetStackPolicy mocks base method. +func (m *MockCloudFormationAPI) SetStackPolicy(arg0 *cloudformation.SetStackPolicyInput) (*cloudformation.SetStackPolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetStackPolicy", arg0) + ret0, _ := ret[0].(*cloudformation.SetStackPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetStackPolicy indicates an expected call of SetStackPolicy. +func (mr *MockCloudFormationAPIMockRecorder) SetStackPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetStackPolicy", reflect.TypeOf((*MockCloudFormationAPI)(nil).SetStackPolicy), arg0) +} + +// SetStackPolicyRequest mocks base method. +func (m *MockCloudFormationAPI) SetStackPolicyRequest(arg0 *cloudformation.SetStackPolicyInput) (*request.Request, *cloudformation.SetStackPolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetStackPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.SetStackPolicyOutput) + return ret0, ret1 +} + +// SetStackPolicyRequest indicates an expected call of SetStackPolicyRequest. +func (mr *MockCloudFormationAPIMockRecorder) SetStackPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetStackPolicyRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).SetStackPolicyRequest), arg0) +} + +// SetStackPolicyWithContext mocks base method. +func (m *MockCloudFormationAPI) SetStackPolicyWithContext(arg0 aws.Context, arg1 *cloudformation.SetStackPolicyInput, arg2 ...request.Option) (*cloudformation.SetStackPolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SetStackPolicyWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.SetStackPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetStackPolicyWithContext indicates an expected call of SetStackPolicyWithContext. +func (mr *MockCloudFormationAPIMockRecorder) SetStackPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetStackPolicyWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).SetStackPolicyWithContext), varargs...) +} + +// SetTypeConfiguration mocks base method. +func (m *MockCloudFormationAPI) SetTypeConfiguration(arg0 *cloudformation.SetTypeConfigurationInput) (*cloudformation.SetTypeConfigurationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetTypeConfiguration", arg0) + ret0, _ := ret[0].(*cloudformation.SetTypeConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetTypeConfiguration indicates an expected call of SetTypeConfiguration. +func (mr *MockCloudFormationAPIMockRecorder) SetTypeConfiguration(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTypeConfiguration", reflect.TypeOf((*MockCloudFormationAPI)(nil).SetTypeConfiguration), arg0) +} + +// SetTypeConfigurationRequest mocks base method. +func (m *MockCloudFormationAPI) SetTypeConfigurationRequest(arg0 *cloudformation.SetTypeConfigurationInput) (*request.Request, *cloudformation.SetTypeConfigurationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetTypeConfigurationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.SetTypeConfigurationOutput) + return ret0, ret1 +} + +// SetTypeConfigurationRequest indicates an expected call of SetTypeConfigurationRequest. +func (mr *MockCloudFormationAPIMockRecorder) SetTypeConfigurationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTypeConfigurationRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).SetTypeConfigurationRequest), arg0) +} + +// SetTypeConfigurationWithContext mocks base method. +func (m *MockCloudFormationAPI) SetTypeConfigurationWithContext(arg0 aws.Context, arg1 *cloudformation.SetTypeConfigurationInput, arg2 ...request.Option) (*cloudformation.SetTypeConfigurationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SetTypeConfigurationWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.SetTypeConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetTypeConfigurationWithContext indicates an expected call of SetTypeConfigurationWithContext. +func (mr *MockCloudFormationAPIMockRecorder) SetTypeConfigurationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTypeConfigurationWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).SetTypeConfigurationWithContext), varargs...) +} + +// SetTypeDefaultVersion mocks base method. +func (m *MockCloudFormationAPI) SetTypeDefaultVersion(arg0 *cloudformation.SetTypeDefaultVersionInput) (*cloudformation.SetTypeDefaultVersionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetTypeDefaultVersion", arg0) + ret0, _ := ret[0].(*cloudformation.SetTypeDefaultVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetTypeDefaultVersion indicates an expected call of SetTypeDefaultVersion. +func (mr *MockCloudFormationAPIMockRecorder) SetTypeDefaultVersion(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTypeDefaultVersion", reflect.TypeOf((*MockCloudFormationAPI)(nil).SetTypeDefaultVersion), arg0) +} + +// SetTypeDefaultVersionRequest mocks base method. +func (m *MockCloudFormationAPI) SetTypeDefaultVersionRequest(arg0 *cloudformation.SetTypeDefaultVersionInput) (*request.Request, *cloudformation.SetTypeDefaultVersionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetTypeDefaultVersionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.SetTypeDefaultVersionOutput) + return ret0, ret1 +} + +// SetTypeDefaultVersionRequest indicates an expected call of SetTypeDefaultVersionRequest. +func (mr *MockCloudFormationAPIMockRecorder) SetTypeDefaultVersionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTypeDefaultVersionRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).SetTypeDefaultVersionRequest), arg0) +} + +// SetTypeDefaultVersionWithContext mocks base method. +func (m *MockCloudFormationAPI) SetTypeDefaultVersionWithContext(arg0 aws.Context, arg1 *cloudformation.SetTypeDefaultVersionInput, arg2 ...request.Option) (*cloudformation.SetTypeDefaultVersionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SetTypeDefaultVersionWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.SetTypeDefaultVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetTypeDefaultVersionWithContext indicates an expected call of SetTypeDefaultVersionWithContext. +func (mr *MockCloudFormationAPIMockRecorder) SetTypeDefaultVersionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTypeDefaultVersionWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).SetTypeDefaultVersionWithContext), varargs...) +} + +// SignalResource mocks base method. +func (m *MockCloudFormationAPI) SignalResource(arg0 *cloudformation.SignalResourceInput) (*cloudformation.SignalResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SignalResource", arg0) + ret0, _ := ret[0].(*cloudformation.SignalResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SignalResource indicates an expected call of SignalResource. +func (mr *MockCloudFormationAPIMockRecorder) SignalResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SignalResource", reflect.TypeOf((*MockCloudFormationAPI)(nil).SignalResource), arg0) +} + +// SignalResourceRequest mocks base method. +func (m *MockCloudFormationAPI) SignalResourceRequest(arg0 *cloudformation.SignalResourceInput) (*request.Request, *cloudformation.SignalResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SignalResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.SignalResourceOutput) + return ret0, ret1 +} + +// SignalResourceRequest indicates an expected call of SignalResourceRequest. +func (mr *MockCloudFormationAPIMockRecorder) SignalResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SignalResourceRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).SignalResourceRequest), arg0) +} + +// SignalResourceWithContext mocks base method. +func (m *MockCloudFormationAPI) SignalResourceWithContext(arg0 aws.Context, arg1 *cloudformation.SignalResourceInput, arg2 ...request.Option) (*cloudformation.SignalResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SignalResourceWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.SignalResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SignalResourceWithContext indicates an expected call of SignalResourceWithContext. +func (mr *MockCloudFormationAPIMockRecorder) SignalResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SignalResourceWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).SignalResourceWithContext), varargs...) +} + +// StopStackSetOperation mocks base method. +func (m *MockCloudFormationAPI) StopStackSetOperation(arg0 *cloudformation.StopStackSetOperationInput) (*cloudformation.StopStackSetOperationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopStackSetOperation", arg0) + ret0, _ := ret[0].(*cloudformation.StopStackSetOperationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopStackSetOperation indicates an expected call of StopStackSetOperation. +func (mr *MockCloudFormationAPIMockRecorder) StopStackSetOperation(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopStackSetOperation", reflect.TypeOf((*MockCloudFormationAPI)(nil).StopStackSetOperation), arg0) +} + +// StopStackSetOperationRequest mocks base method. +func (m *MockCloudFormationAPI) StopStackSetOperationRequest(arg0 *cloudformation.StopStackSetOperationInput) (*request.Request, *cloudformation.StopStackSetOperationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopStackSetOperationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.StopStackSetOperationOutput) + return ret0, ret1 +} + +// StopStackSetOperationRequest indicates an expected call of StopStackSetOperationRequest. +func (mr *MockCloudFormationAPIMockRecorder) StopStackSetOperationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopStackSetOperationRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).StopStackSetOperationRequest), arg0) +} + +// StopStackSetOperationWithContext mocks base method. +func (m *MockCloudFormationAPI) StopStackSetOperationWithContext(arg0 aws.Context, arg1 *cloudformation.StopStackSetOperationInput, arg2 ...request.Option) (*cloudformation.StopStackSetOperationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StopStackSetOperationWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.StopStackSetOperationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopStackSetOperationWithContext indicates an expected call of StopStackSetOperationWithContext. +func (mr *MockCloudFormationAPIMockRecorder) StopStackSetOperationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopStackSetOperationWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).StopStackSetOperationWithContext), varargs...) +} + +// TestType mocks base method. +func (m *MockCloudFormationAPI) TestType(arg0 *cloudformation.TestTypeInput) (*cloudformation.TestTypeOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TestType", arg0) + ret0, _ := ret[0].(*cloudformation.TestTypeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TestType indicates an expected call of TestType. +func (mr *MockCloudFormationAPIMockRecorder) TestType(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TestType", reflect.TypeOf((*MockCloudFormationAPI)(nil).TestType), arg0) +} + +// TestTypeRequest mocks base method. +func (m *MockCloudFormationAPI) TestTypeRequest(arg0 *cloudformation.TestTypeInput) (*request.Request, *cloudformation.TestTypeOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TestTypeRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.TestTypeOutput) + return ret0, ret1 +} + +// TestTypeRequest indicates an expected call of TestTypeRequest. +func (mr *MockCloudFormationAPIMockRecorder) TestTypeRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TestTypeRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).TestTypeRequest), arg0) +} + +// TestTypeWithContext mocks base method. +func (m *MockCloudFormationAPI) TestTypeWithContext(arg0 aws.Context, arg1 *cloudformation.TestTypeInput, arg2 ...request.Option) (*cloudformation.TestTypeOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "TestTypeWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.TestTypeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TestTypeWithContext indicates an expected call of TestTypeWithContext. +func (mr *MockCloudFormationAPIMockRecorder) TestTypeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TestTypeWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).TestTypeWithContext), varargs...) +} + +// UpdateStack mocks base method. +func (m *MockCloudFormationAPI) UpdateStack(arg0 *cloudformation.UpdateStackInput) (*cloudformation.UpdateStackOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateStack", arg0) + ret0, _ := ret[0].(*cloudformation.UpdateStackOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateStack indicates an expected call of UpdateStack. +func (mr *MockCloudFormationAPIMockRecorder) UpdateStack(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStack", reflect.TypeOf((*MockCloudFormationAPI)(nil).UpdateStack), arg0) +} + +// UpdateStackInstances mocks base method. +func (m *MockCloudFormationAPI) UpdateStackInstances(arg0 *cloudformation.UpdateStackInstancesInput) (*cloudformation.UpdateStackInstancesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateStackInstances", arg0) + ret0, _ := ret[0].(*cloudformation.UpdateStackInstancesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateStackInstances indicates an expected call of UpdateStackInstances. +func (mr *MockCloudFormationAPIMockRecorder) UpdateStackInstances(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStackInstances", reflect.TypeOf((*MockCloudFormationAPI)(nil).UpdateStackInstances), arg0) +} + +// UpdateStackInstancesRequest mocks base method. +func (m *MockCloudFormationAPI) UpdateStackInstancesRequest(arg0 *cloudformation.UpdateStackInstancesInput) (*request.Request, *cloudformation.UpdateStackInstancesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateStackInstancesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.UpdateStackInstancesOutput) + return ret0, ret1 +} + +// UpdateStackInstancesRequest indicates an expected call of UpdateStackInstancesRequest. +func (mr *MockCloudFormationAPIMockRecorder) UpdateStackInstancesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStackInstancesRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).UpdateStackInstancesRequest), arg0) +} + +// UpdateStackInstancesWithContext mocks base method. +func (m *MockCloudFormationAPI) UpdateStackInstancesWithContext(arg0 aws.Context, arg1 *cloudformation.UpdateStackInstancesInput, arg2 ...request.Option) (*cloudformation.UpdateStackInstancesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateStackInstancesWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.UpdateStackInstancesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateStackInstancesWithContext indicates an expected call of UpdateStackInstancesWithContext. +func (mr *MockCloudFormationAPIMockRecorder) UpdateStackInstancesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStackInstancesWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).UpdateStackInstancesWithContext), varargs...) +} + +// UpdateStackRequest mocks base method. +func (m *MockCloudFormationAPI) UpdateStackRequest(arg0 *cloudformation.UpdateStackInput) (*request.Request, *cloudformation.UpdateStackOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateStackRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.UpdateStackOutput) + return ret0, ret1 +} + +// UpdateStackRequest indicates an expected call of UpdateStackRequest. +func (mr *MockCloudFormationAPIMockRecorder) UpdateStackRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStackRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).UpdateStackRequest), arg0) +} + +// UpdateStackSet mocks base method. +func (m *MockCloudFormationAPI) UpdateStackSet(arg0 *cloudformation.UpdateStackSetInput) (*cloudformation.UpdateStackSetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateStackSet", arg0) + ret0, _ := ret[0].(*cloudformation.UpdateStackSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateStackSet indicates an expected call of UpdateStackSet. +func (mr *MockCloudFormationAPIMockRecorder) UpdateStackSet(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStackSet", reflect.TypeOf((*MockCloudFormationAPI)(nil).UpdateStackSet), arg0) +} + +// UpdateStackSetRequest mocks base method. +func (m *MockCloudFormationAPI) UpdateStackSetRequest(arg0 *cloudformation.UpdateStackSetInput) (*request.Request, *cloudformation.UpdateStackSetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateStackSetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.UpdateStackSetOutput) + return ret0, ret1 +} + +// UpdateStackSetRequest indicates an expected call of UpdateStackSetRequest. +func (mr *MockCloudFormationAPIMockRecorder) UpdateStackSetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStackSetRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).UpdateStackSetRequest), arg0) +} + +// UpdateStackSetWithContext mocks base method. +func (m *MockCloudFormationAPI) UpdateStackSetWithContext(arg0 aws.Context, arg1 *cloudformation.UpdateStackSetInput, arg2 ...request.Option) (*cloudformation.UpdateStackSetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateStackSetWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.UpdateStackSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateStackSetWithContext indicates an expected call of UpdateStackSetWithContext. +func (mr *MockCloudFormationAPIMockRecorder) UpdateStackSetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStackSetWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).UpdateStackSetWithContext), varargs...) +} + +// UpdateStackWithContext mocks base method. +func (m *MockCloudFormationAPI) UpdateStackWithContext(arg0 aws.Context, arg1 *cloudformation.UpdateStackInput, arg2 ...request.Option) (*cloudformation.UpdateStackOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateStackWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.UpdateStackOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateStackWithContext indicates an expected call of UpdateStackWithContext. +func (mr *MockCloudFormationAPIMockRecorder) UpdateStackWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStackWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).UpdateStackWithContext), varargs...) +} + +// UpdateTerminationProtection mocks base method. +func (m *MockCloudFormationAPI) UpdateTerminationProtection(arg0 *cloudformation.UpdateTerminationProtectionInput) (*cloudformation.UpdateTerminationProtectionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTerminationProtection", arg0) + ret0, _ := ret[0].(*cloudformation.UpdateTerminationProtectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTerminationProtection indicates an expected call of UpdateTerminationProtection. +func (mr *MockCloudFormationAPIMockRecorder) UpdateTerminationProtection(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTerminationProtection", reflect.TypeOf((*MockCloudFormationAPI)(nil).UpdateTerminationProtection), arg0) +} + +// UpdateTerminationProtectionRequest mocks base method. +func (m *MockCloudFormationAPI) UpdateTerminationProtectionRequest(arg0 *cloudformation.UpdateTerminationProtectionInput) (*request.Request, *cloudformation.UpdateTerminationProtectionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTerminationProtectionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.UpdateTerminationProtectionOutput) + return ret0, ret1 +} + +// UpdateTerminationProtectionRequest indicates an expected call of UpdateTerminationProtectionRequest. +func (mr *MockCloudFormationAPIMockRecorder) UpdateTerminationProtectionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTerminationProtectionRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).UpdateTerminationProtectionRequest), arg0) +} + +// UpdateTerminationProtectionWithContext mocks base method. +func (m *MockCloudFormationAPI) UpdateTerminationProtectionWithContext(arg0 aws.Context, arg1 *cloudformation.UpdateTerminationProtectionInput, arg2 ...request.Option) (*cloudformation.UpdateTerminationProtectionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateTerminationProtectionWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.UpdateTerminationProtectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTerminationProtectionWithContext indicates an expected call of UpdateTerminationProtectionWithContext. +func (mr *MockCloudFormationAPIMockRecorder) UpdateTerminationProtectionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTerminationProtectionWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).UpdateTerminationProtectionWithContext), varargs...) +} + +// ValidateTemplate mocks base method. +func (m *MockCloudFormationAPI) ValidateTemplate(arg0 *cloudformation.ValidateTemplateInput) (*cloudformation.ValidateTemplateOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ValidateTemplate", arg0) + ret0, _ := ret[0].(*cloudformation.ValidateTemplateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ValidateTemplate indicates an expected call of ValidateTemplate. +func (mr *MockCloudFormationAPIMockRecorder) ValidateTemplate(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateTemplate", reflect.TypeOf((*MockCloudFormationAPI)(nil).ValidateTemplate), arg0) +} + +// ValidateTemplateRequest mocks base method. +func (m *MockCloudFormationAPI) ValidateTemplateRequest(arg0 *cloudformation.ValidateTemplateInput) (*request.Request, *cloudformation.ValidateTemplateOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ValidateTemplateRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.ValidateTemplateOutput) + return ret0, ret1 +} + +// ValidateTemplateRequest indicates an expected call of ValidateTemplateRequest. +func (mr *MockCloudFormationAPIMockRecorder) ValidateTemplateRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateTemplateRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).ValidateTemplateRequest), arg0) +} + +// ValidateTemplateWithContext mocks base method. +func (m *MockCloudFormationAPI) ValidateTemplateWithContext(arg0 aws.Context, arg1 *cloudformation.ValidateTemplateInput, arg2 ...request.Option) (*cloudformation.ValidateTemplateOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ValidateTemplateWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.ValidateTemplateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ValidateTemplateWithContext indicates an expected call of ValidateTemplateWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ValidateTemplateWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateTemplateWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ValidateTemplateWithContext), varargs...) +} + +// WaitUntilChangeSetCreateComplete mocks base method. +func (m *MockCloudFormationAPI) WaitUntilChangeSetCreateComplete(arg0 *cloudformation.DescribeChangeSetInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilChangeSetCreateComplete", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilChangeSetCreateComplete indicates an expected call of WaitUntilChangeSetCreateComplete. +func (mr *MockCloudFormationAPIMockRecorder) WaitUntilChangeSetCreateComplete(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilChangeSetCreateComplete", reflect.TypeOf((*MockCloudFormationAPI)(nil).WaitUntilChangeSetCreateComplete), arg0) +} + +// WaitUntilChangeSetCreateCompleteWithContext mocks base method. +func (m *MockCloudFormationAPI) WaitUntilChangeSetCreateCompleteWithContext(arg0 aws.Context, arg1 *cloudformation.DescribeChangeSetInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilChangeSetCreateCompleteWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilChangeSetCreateCompleteWithContext indicates an expected call of WaitUntilChangeSetCreateCompleteWithContext. +func (mr *MockCloudFormationAPIMockRecorder) WaitUntilChangeSetCreateCompleteWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilChangeSetCreateCompleteWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).WaitUntilChangeSetCreateCompleteWithContext), varargs...) +} + +// WaitUntilStackCreateComplete mocks base method. +func (m *MockCloudFormationAPI) WaitUntilStackCreateComplete(arg0 *cloudformation.DescribeStacksInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilStackCreateComplete", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilStackCreateComplete indicates an expected call of WaitUntilStackCreateComplete. +func (mr *MockCloudFormationAPIMockRecorder) WaitUntilStackCreateComplete(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilStackCreateComplete", reflect.TypeOf((*MockCloudFormationAPI)(nil).WaitUntilStackCreateComplete), arg0) +} + +// WaitUntilStackCreateCompleteWithContext mocks base method. +func (m *MockCloudFormationAPI) WaitUntilStackCreateCompleteWithContext(arg0 aws.Context, arg1 *cloudformation.DescribeStacksInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilStackCreateCompleteWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilStackCreateCompleteWithContext indicates an expected call of WaitUntilStackCreateCompleteWithContext. +func (mr *MockCloudFormationAPIMockRecorder) WaitUntilStackCreateCompleteWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilStackCreateCompleteWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).WaitUntilStackCreateCompleteWithContext), varargs...) +} + +// WaitUntilStackDeleteComplete mocks base method. +func (m *MockCloudFormationAPI) WaitUntilStackDeleteComplete(arg0 *cloudformation.DescribeStacksInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilStackDeleteComplete", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilStackDeleteComplete indicates an expected call of WaitUntilStackDeleteComplete. +func (mr *MockCloudFormationAPIMockRecorder) WaitUntilStackDeleteComplete(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilStackDeleteComplete", reflect.TypeOf((*MockCloudFormationAPI)(nil).WaitUntilStackDeleteComplete), arg0) +} + +// WaitUntilStackDeleteCompleteWithContext mocks base method. +func (m *MockCloudFormationAPI) WaitUntilStackDeleteCompleteWithContext(arg0 aws.Context, arg1 *cloudformation.DescribeStacksInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilStackDeleteCompleteWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilStackDeleteCompleteWithContext indicates an expected call of WaitUntilStackDeleteCompleteWithContext. +func (mr *MockCloudFormationAPIMockRecorder) WaitUntilStackDeleteCompleteWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilStackDeleteCompleteWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).WaitUntilStackDeleteCompleteWithContext), varargs...) +} + +// WaitUntilStackExists mocks base method. +func (m *MockCloudFormationAPI) WaitUntilStackExists(arg0 *cloudformation.DescribeStacksInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilStackExists", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilStackExists indicates an expected call of WaitUntilStackExists. +func (mr *MockCloudFormationAPIMockRecorder) WaitUntilStackExists(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilStackExists", reflect.TypeOf((*MockCloudFormationAPI)(nil).WaitUntilStackExists), arg0) +} + +// WaitUntilStackExistsWithContext mocks base method. +func (m *MockCloudFormationAPI) WaitUntilStackExistsWithContext(arg0 aws.Context, arg1 *cloudformation.DescribeStacksInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilStackExistsWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilStackExistsWithContext indicates an expected call of WaitUntilStackExistsWithContext. +func (mr *MockCloudFormationAPIMockRecorder) WaitUntilStackExistsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilStackExistsWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).WaitUntilStackExistsWithContext), varargs...) +} + +// WaitUntilStackImportComplete mocks base method. +func (m *MockCloudFormationAPI) WaitUntilStackImportComplete(arg0 *cloudformation.DescribeStacksInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilStackImportComplete", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilStackImportComplete indicates an expected call of WaitUntilStackImportComplete. +func (mr *MockCloudFormationAPIMockRecorder) WaitUntilStackImportComplete(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilStackImportComplete", reflect.TypeOf((*MockCloudFormationAPI)(nil).WaitUntilStackImportComplete), arg0) +} + +// WaitUntilStackImportCompleteWithContext mocks base method. +func (m *MockCloudFormationAPI) WaitUntilStackImportCompleteWithContext(arg0 aws.Context, arg1 *cloudformation.DescribeStacksInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilStackImportCompleteWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilStackImportCompleteWithContext indicates an expected call of WaitUntilStackImportCompleteWithContext. +func (mr *MockCloudFormationAPIMockRecorder) WaitUntilStackImportCompleteWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilStackImportCompleteWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).WaitUntilStackImportCompleteWithContext), varargs...) +} + +// WaitUntilStackRollbackComplete mocks base method. +func (m *MockCloudFormationAPI) WaitUntilStackRollbackComplete(arg0 *cloudformation.DescribeStacksInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilStackRollbackComplete", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilStackRollbackComplete indicates an expected call of WaitUntilStackRollbackComplete. +func (mr *MockCloudFormationAPIMockRecorder) WaitUntilStackRollbackComplete(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilStackRollbackComplete", reflect.TypeOf((*MockCloudFormationAPI)(nil).WaitUntilStackRollbackComplete), arg0) +} + +// WaitUntilStackRollbackCompleteWithContext mocks base method. +func (m *MockCloudFormationAPI) WaitUntilStackRollbackCompleteWithContext(arg0 aws.Context, arg1 *cloudformation.DescribeStacksInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilStackRollbackCompleteWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilStackRollbackCompleteWithContext indicates an expected call of WaitUntilStackRollbackCompleteWithContext. +func (mr *MockCloudFormationAPIMockRecorder) WaitUntilStackRollbackCompleteWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilStackRollbackCompleteWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).WaitUntilStackRollbackCompleteWithContext), varargs...) +} + +// WaitUntilStackUpdateComplete mocks base method. +func (m *MockCloudFormationAPI) WaitUntilStackUpdateComplete(arg0 *cloudformation.DescribeStacksInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilStackUpdateComplete", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilStackUpdateComplete indicates an expected call of WaitUntilStackUpdateComplete. +func (mr *MockCloudFormationAPIMockRecorder) WaitUntilStackUpdateComplete(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilStackUpdateComplete", reflect.TypeOf((*MockCloudFormationAPI)(nil).WaitUntilStackUpdateComplete), arg0) +} + +// WaitUntilStackUpdateCompleteWithContext mocks base method. +func (m *MockCloudFormationAPI) WaitUntilStackUpdateCompleteWithContext(arg0 aws.Context, arg1 *cloudformation.DescribeStacksInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilStackUpdateCompleteWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilStackUpdateCompleteWithContext indicates an expected call of WaitUntilStackUpdateCompleteWithContext. +func (mr *MockCloudFormationAPIMockRecorder) WaitUntilStackUpdateCompleteWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilStackUpdateCompleteWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).WaitUntilStackUpdateCompleteWithContext), varargs...) +} + +// WaitUntilTypeRegistrationComplete mocks base method. +func (m *MockCloudFormationAPI) WaitUntilTypeRegistrationComplete(arg0 *cloudformation.DescribeTypeRegistrationInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilTypeRegistrationComplete", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilTypeRegistrationComplete indicates an expected call of WaitUntilTypeRegistrationComplete. +func (mr *MockCloudFormationAPIMockRecorder) WaitUntilTypeRegistrationComplete(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilTypeRegistrationComplete", reflect.TypeOf((*MockCloudFormationAPI)(nil).WaitUntilTypeRegistrationComplete), arg0) +} + +// WaitUntilTypeRegistrationCompleteWithContext mocks base method. +func (m *MockCloudFormationAPI) WaitUntilTypeRegistrationCompleteWithContext(arg0 aws.Context, arg1 *cloudformation.DescribeTypeRegistrationInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilTypeRegistrationCompleteWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilTypeRegistrationCompleteWithContext indicates an expected call of WaitUntilTypeRegistrationCompleteWithContext. +func (mr *MockCloudFormationAPIMockRecorder) WaitUntilTypeRegistrationCompleteWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilTypeRegistrationCompleteWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).WaitUntilTypeRegistrationCompleteWithContext), varargs...) +} diff --git a/mocks/mock_iamiface/mock.go b/mocks/mock_iamiface/mock.go new file mode 100644 index 00000000..566f8934 --- /dev/null +++ b/mocks/mock_iamiface/mock.go @@ -0,0 +1,9045 @@ +// Code generated by MockGen. DO NOT EDIT. +// Source: /Users/ekristen/go/pkg/mod/github.com/aws/aws-sdk-go@v1.44.225/service/iam/iamiface/interface.go + +// Package mock_iamiface is a generated GoMock package. +package mock_iamiface + +import ( + reflect "reflect" + + aws "github.com/aws/aws-sdk-go/aws" + request "github.com/aws/aws-sdk-go/aws/request" + iam "github.com/aws/aws-sdk-go/service/iam" + gomock "github.com/golang/mock/gomock" +) + +// MockIAMAPI is a mock of IAMAPI interface. +type MockIAMAPI struct { + ctrl *gomock.Controller + recorder *MockIAMAPIMockRecorder +} + +func (m *MockIAMAPI) GetMFADevice(input *iam.GetMFADeviceInput) (*iam.GetMFADeviceOutput, error) { + //TODO implement me + panic("implement me") +} + +func (m *MockIAMAPI) GetMFADeviceWithContext(context aws.Context, input *iam.GetMFADeviceInput, option ...request.Option) (*iam.GetMFADeviceOutput, error) { + //TODO implement me + panic("implement me") +} + +func (m *MockIAMAPI) GetMFADeviceRequest(input *iam.GetMFADeviceInput) (*request.Request, *iam.GetMFADeviceOutput) { + //TODO implement me + panic("implement me") +} + +func (m *MockIAMAPI) ListInstanceProfileTagsPages(input *iam.ListInstanceProfileTagsInput, f func(*iam.ListInstanceProfileTagsOutput, bool) bool) error { + //TODO implement me + panic("implement me") +} + +func (m *MockIAMAPI) ListInstanceProfileTagsPagesWithContext(context aws.Context, input *iam.ListInstanceProfileTagsInput, f func(*iam.ListInstanceProfileTagsOutput, bool) bool, option ...request.Option) error { + //TODO implement me + panic("implement me") +} + +func (m *MockIAMAPI) ListMFADeviceTagsPages(input *iam.ListMFADeviceTagsInput, f func(*iam.ListMFADeviceTagsOutput, bool) bool) error { + //TODO implement me + panic("implement me") +} + +func (m *MockIAMAPI) ListMFADeviceTagsPagesWithContext(context aws.Context, input *iam.ListMFADeviceTagsInput, f func(*iam.ListMFADeviceTagsOutput, bool) bool, option ...request.Option) error { + //TODO implement me + panic("implement me") +} + +func (m *MockIAMAPI) ListOpenIDConnectProviderTagsPages(input *iam.ListOpenIDConnectProviderTagsInput, f func(*iam.ListOpenIDConnectProviderTagsOutput, bool) bool) error { + //TODO implement me + panic("implement me") +} + +func (m *MockIAMAPI) ListOpenIDConnectProviderTagsPagesWithContext(context aws.Context, input *iam.ListOpenIDConnectProviderTagsInput, f func(*iam.ListOpenIDConnectProviderTagsOutput, bool) bool, option ...request.Option) error { + //TODO implement me + panic("implement me") +} + +func (m *MockIAMAPI) ListPolicyTagsPages(input *iam.ListPolicyTagsInput, f func(*iam.ListPolicyTagsOutput, bool) bool) error { + //TODO implement me + panic("implement me") +} + +func (m *MockIAMAPI) ListPolicyTagsPagesWithContext(context aws.Context, input *iam.ListPolicyTagsInput, f func(*iam.ListPolicyTagsOutput, bool) bool, option ...request.Option) error { + //TODO implement me + panic("implement me") +} + +func (m *MockIAMAPI) ListRoleTagsPages(input *iam.ListRoleTagsInput, f func(*iam.ListRoleTagsOutput, bool) bool) error { + //TODO implement me + panic("implement me") +} + +func (m *MockIAMAPI) ListRoleTagsPagesWithContext(context aws.Context, input *iam.ListRoleTagsInput, f func(*iam.ListRoleTagsOutput, bool) bool, option ...request.Option) error { + //TODO implement me + panic("implement me") +} + +func (m *MockIAMAPI) ListSAMLProviderTagsPages(input *iam.ListSAMLProviderTagsInput, f func(*iam.ListSAMLProviderTagsOutput, bool) bool) error { + //TODO implement me + panic("implement me") +} + +func (m *MockIAMAPI) ListSAMLProviderTagsPagesWithContext(context aws.Context, input *iam.ListSAMLProviderTagsInput, f func(*iam.ListSAMLProviderTagsOutput, bool) bool, option ...request.Option) error { + //TODO implement me + panic("implement me") +} + +func (m *MockIAMAPI) ListServerCertificateTagsPages(input *iam.ListServerCertificateTagsInput, f func(*iam.ListServerCertificateTagsOutput, bool) bool) error { + //TODO implement me + panic("implement me") +} + +func (m *MockIAMAPI) ListServerCertificateTagsPagesWithContext(context aws.Context, input *iam.ListServerCertificateTagsInput, f func(*iam.ListServerCertificateTagsOutput, bool) bool, option ...request.Option) error { + //TODO implement me + panic("implement me") +} + +// MockIAMAPIMockRecorder is the mock recorder for MockIAMAPI. +type MockIAMAPIMockRecorder struct { + mock *MockIAMAPI +} + +// NewMockIAMAPI creates a new mock instance. +func NewMockIAMAPI(ctrl *gomock.Controller) *MockIAMAPI { + mock := &MockIAMAPI{ctrl: ctrl} + mock.recorder = &MockIAMAPIMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockIAMAPI) EXPECT() *MockIAMAPIMockRecorder { + return m.recorder +} + +// AddClientIDToOpenIDConnectProvider mocks base method. +func (m *MockIAMAPI) AddClientIDToOpenIDConnectProvider(arg0 *iam.AddClientIDToOpenIDConnectProviderInput) (*iam.AddClientIDToOpenIDConnectProviderOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AddClientIDToOpenIDConnectProvider", arg0) + ret0, _ := ret[0].(*iam.AddClientIDToOpenIDConnectProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AddClientIDToOpenIDConnectProvider indicates an expected call of AddClientIDToOpenIDConnectProvider. +func (mr *MockIAMAPIMockRecorder) AddClientIDToOpenIDConnectProvider(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddClientIDToOpenIDConnectProvider", reflect.TypeOf((*MockIAMAPI)(nil).AddClientIDToOpenIDConnectProvider), arg0) +} + +// AddClientIDToOpenIDConnectProviderRequest mocks base method. +func (m *MockIAMAPI) AddClientIDToOpenIDConnectProviderRequest(arg0 *iam.AddClientIDToOpenIDConnectProviderInput) (*request.Request, *iam.AddClientIDToOpenIDConnectProviderOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AddClientIDToOpenIDConnectProviderRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.AddClientIDToOpenIDConnectProviderOutput) + return ret0, ret1 +} + +// AddClientIDToOpenIDConnectProviderRequest indicates an expected call of AddClientIDToOpenIDConnectProviderRequest. +func (mr *MockIAMAPIMockRecorder) AddClientIDToOpenIDConnectProviderRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddClientIDToOpenIDConnectProviderRequest", reflect.TypeOf((*MockIAMAPI)(nil).AddClientIDToOpenIDConnectProviderRequest), arg0) +} + +// AddClientIDToOpenIDConnectProviderWithContext mocks base method. +func (m *MockIAMAPI) AddClientIDToOpenIDConnectProviderWithContext(arg0 aws.Context, arg1 *iam.AddClientIDToOpenIDConnectProviderInput, arg2 ...request.Option) (*iam.AddClientIDToOpenIDConnectProviderOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AddClientIDToOpenIDConnectProviderWithContext", varargs...) + ret0, _ := ret[0].(*iam.AddClientIDToOpenIDConnectProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AddClientIDToOpenIDConnectProviderWithContext indicates an expected call of AddClientIDToOpenIDConnectProviderWithContext. +func (mr *MockIAMAPIMockRecorder) AddClientIDToOpenIDConnectProviderWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddClientIDToOpenIDConnectProviderWithContext", reflect.TypeOf((*MockIAMAPI)(nil).AddClientIDToOpenIDConnectProviderWithContext), varargs...) +} + +// AddRoleToInstanceProfile mocks base method. +func (m *MockIAMAPI) AddRoleToInstanceProfile(arg0 *iam.AddRoleToInstanceProfileInput) (*iam.AddRoleToInstanceProfileOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AddRoleToInstanceProfile", arg0) + ret0, _ := ret[0].(*iam.AddRoleToInstanceProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AddRoleToInstanceProfile indicates an expected call of AddRoleToInstanceProfile. +func (mr *MockIAMAPIMockRecorder) AddRoleToInstanceProfile(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddRoleToInstanceProfile", reflect.TypeOf((*MockIAMAPI)(nil).AddRoleToInstanceProfile), arg0) +} + +// AddRoleToInstanceProfileRequest mocks base method. +func (m *MockIAMAPI) AddRoleToInstanceProfileRequest(arg0 *iam.AddRoleToInstanceProfileInput) (*request.Request, *iam.AddRoleToInstanceProfileOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AddRoleToInstanceProfileRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.AddRoleToInstanceProfileOutput) + return ret0, ret1 +} + +// AddRoleToInstanceProfileRequest indicates an expected call of AddRoleToInstanceProfileRequest. +func (mr *MockIAMAPIMockRecorder) AddRoleToInstanceProfileRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddRoleToInstanceProfileRequest", reflect.TypeOf((*MockIAMAPI)(nil).AddRoleToInstanceProfileRequest), arg0) +} + +// AddRoleToInstanceProfileWithContext mocks base method. +func (m *MockIAMAPI) AddRoleToInstanceProfileWithContext(arg0 aws.Context, arg1 *iam.AddRoleToInstanceProfileInput, arg2 ...request.Option) (*iam.AddRoleToInstanceProfileOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AddRoleToInstanceProfileWithContext", varargs...) + ret0, _ := ret[0].(*iam.AddRoleToInstanceProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AddRoleToInstanceProfileWithContext indicates an expected call of AddRoleToInstanceProfileWithContext. +func (mr *MockIAMAPIMockRecorder) AddRoleToInstanceProfileWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddRoleToInstanceProfileWithContext", reflect.TypeOf((*MockIAMAPI)(nil).AddRoleToInstanceProfileWithContext), varargs...) +} + +// AddUserToGroup mocks base method. +func (m *MockIAMAPI) AddUserToGroup(arg0 *iam.AddUserToGroupInput) (*iam.AddUserToGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AddUserToGroup", arg0) + ret0, _ := ret[0].(*iam.AddUserToGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AddUserToGroup indicates an expected call of AddUserToGroup. +func (mr *MockIAMAPIMockRecorder) AddUserToGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddUserToGroup", reflect.TypeOf((*MockIAMAPI)(nil).AddUserToGroup), arg0) +} + +// AddUserToGroupRequest mocks base method. +func (m *MockIAMAPI) AddUserToGroupRequest(arg0 *iam.AddUserToGroupInput) (*request.Request, *iam.AddUserToGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AddUserToGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.AddUserToGroupOutput) + return ret0, ret1 +} + +// AddUserToGroupRequest indicates an expected call of AddUserToGroupRequest. +func (mr *MockIAMAPIMockRecorder) AddUserToGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddUserToGroupRequest", reflect.TypeOf((*MockIAMAPI)(nil).AddUserToGroupRequest), arg0) +} + +// AddUserToGroupWithContext mocks base method. +func (m *MockIAMAPI) AddUserToGroupWithContext(arg0 aws.Context, arg1 *iam.AddUserToGroupInput, arg2 ...request.Option) (*iam.AddUserToGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AddUserToGroupWithContext", varargs...) + ret0, _ := ret[0].(*iam.AddUserToGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AddUserToGroupWithContext indicates an expected call of AddUserToGroupWithContext. +func (mr *MockIAMAPIMockRecorder) AddUserToGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddUserToGroupWithContext", reflect.TypeOf((*MockIAMAPI)(nil).AddUserToGroupWithContext), varargs...) +} + +// AttachGroupPolicy mocks base method. +func (m *MockIAMAPI) AttachGroupPolicy(arg0 *iam.AttachGroupPolicyInput) (*iam.AttachGroupPolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AttachGroupPolicy", arg0) + ret0, _ := ret[0].(*iam.AttachGroupPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AttachGroupPolicy indicates an expected call of AttachGroupPolicy. +func (mr *MockIAMAPIMockRecorder) AttachGroupPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AttachGroupPolicy", reflect.TypeOf((*MockIAMAPI)(nil).AttachGroupPolicy), arg0) +} + +// AttachGroupPolicyRequest mocks base method. +func (m *MockIAMAPI) AttachGroupPolicyRequest(arg0 *iam.AttachGroupPolicyInput) (*request.Request, *iam.AttachGroupPolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AttachGroupPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.AttachGroupPolicyOutput) + return ret0, ret1 +} + +// AttachGroupPolicyRequest indicates an expected call of AttachGroupPolicyRequest. +func (mr *MockIAMAPIMockRecorder) AttachGroupPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AttachGroupPolicyRequest", reflect.TypeOf((*MockIAMAPI)(nil).AttachGroupPolicyRequest), arg0) +} + +// AttachGroupPolicyWithContext mocks base method. +func (m *MockIAMAPI) AttachGroupPolicyWithContext(arg0 aws.Context, arg1 *iam.AttachGroupPolicyInput, arg2 ...request.Option) (*iam.AttachGroupPolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AttachGroupPolicyWithContext", varargs...) + ret0, _ := ret[0].(*iam.AttachGroupPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AttachGroupPolicyWithContext indicates an expected call of AttachGroupPolicyWithContext. +func (mr *MockIAMAPIMockRecorder) AttachGroupPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AttachGroupPolicyWithContext", reflect.TypeOf((*MockIAMAPI)(nil).AttachGroupPolicyWithContext), varargs...) +} + +// AttachRolePolicy mocks base method. +func (m *MockIAMAPI) AttachRolePolicy(arg0 *iam.AttachRolePolicyInput) (*iam.AttachRolePolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AttachRolePolicy", arg0) + ret0, _ := ret[0].(*iam.AttachRolePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AttachRolePolicy indicates an expected call of AttachRolePolicy. +func (mr *MockIAMAPIMockRecorder) AttachRolePolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AttachRolePolicy", reflect.TypeOf((*MockIAMAPI)(nil).AttachRolePolicy), arg0) +} + +// AttachRolePolicyRequest mocks base method. +func (m *MockIAMAPI) AttachRolePolicyRequest(arg0 *iam.AttachRolePolicyInput) (*request.Request, *iam.AttachRolePolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AttachRolePolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.AttachRolePolicyOutput) + return ret0, ret1 +} + +// AttachRolePolicyRequest indicates an expected call of AttachRolePolicyRequest. +func (mr *MockIAMAPIMockRecorder) AttachRolePolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AttachRolePolicyRequest", reflect.TypeOf((*MockIAMAPI)(nil).AttachRolePolicyRequest), arg0) +} + +// AttachRolePolicyWithContext mocks base method. +func (m *MockIAMAPI) AttachRolePolicyWithContext(arg0 aws.Context, arg1 *iam.AttachRolePolicyInput, arg2 ...request.Option) (*iam.AttachRolePolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AttachRolePolicyWithContext", varargs...) + ret0, _ := ret[0].(*iam.AttachRolePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AttachRolePolicyWithContext indicates an expected call of AttachRolePolicyWithContext. +func (mr *MockIAMAPIMockRecorder) AttachRolePolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AttachRolePolicyWithContext", reflect.TypeOf((*MockIAMAPI)(nil).AttachRolePolicyWithContext), varargs...) +} + +// AttachUserPolicy mocks base method. +func (m *MockIAMAPI) AttachUserPolicy(arg0 *iam.AttachUserPolicyInput) (*iam.AttachUserPolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AttachUserPolicy", arg0) + ret0, _ := ret[0].(*iam.AttachUserPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AttachUserPolicy indicates an expected call of AttachUserPolicy. +func (mr *MockIAMAPIMockRecorder) AttachUserPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AttachUserPolicy", reflect.TypeOf((*MockIAMAPI)(nil).AttachUserPolicy), arg0) +} + +// AttachUserPolicyRequest mocks base method. +func (m *MockIAMAPI) AttachUserPolicyRequest(arg0 *iam.AttachUserPolicyInput) (*request.Request, *iam.AttachUserPolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AttachUserPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.AttachUserPolicyOutput) + return ret0, ret1 +} + +// AttachUserPolicyRequest indicates an expected call of AttachUserPolicyRequest. +func (mr *MockIAMAPIMockRecorder) AttachUserPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AttachUserPolicyRequest", reflect.TypeOf((*MockIAMAPI)(nil).AttachUserPolicyRequest), arg0) +} + +// AttachUserPolicyWithContext mocks base method. +func (m *MockIAMAPI) AttachUserPolicyWithContext(arg0 aws.Context, arg1 *iam.AttachUserPolicyInput, arg2 ...request.Option) (*iam.AttachUserPolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AttachUserPolicyWithContext", varargs...) + ret0, _ := ret[0].(*iam.AttachUserPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AttachUserPolicyWithContext indicates an expected call of AttachUserPolicyWithContext. +func (mr *MockIAMAPIMockRecorder) AttachUserPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AttachUserPolicyWithContext", reflect.TypeOf((*MockIAMAPI)(nil).AttachUserPolicyWithContext), varargs...) +} + +// ChangePassword mocks base method. +func (m *MockIAMAPI) ChangePassword(arg0 *iam.ChangePasswordInput) (*iam.ChangePasswordOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ChangePassword", arg0) + ret0, _ := ret[0].(*iam.ChangePasswordOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ChangePassword indicates an expected call of ChangePassword. +func (mr *MockIAMAPIMockRecorder) ChangePassword(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChangePassword", reflect.TypeOf((*MockIAMAPI)(nil).ChangePassword), arg0) +} + +// ChangePasswordRequest mocks base method. +func (m *MockIAMAPI) ChangePasswordRequest(arg0 *iam.ChangePasswordInput) (*request.Request, *iam.ChangePasswordOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ChangePasswordRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ChangePasswordOutput) + return ret0, ret1 +} + +// ChangePasswordRequest indicates an expected call of ChangePasswordRequest. +func (mr *MockIAMAPIMockRecorder) ChangePasswordRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChangePasswordRequest", reflect.TypeOf((*MockIAMAPI)(nil).ChangePasswordRequest), arg0) +} + +// ChangePasswordWithContext mocks base method. +func (m *MockIAMAPI) ChangePasswordWithContext(arg0 aws.Context, arg1 *iam.ChangePasswordInput, arg2 ...request.Option) (*iam.ChangePasswordOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ChangePasswordWithContext", varargs...) + ret0, _ := ret[0].(*iam.ChangePasswordOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ChangePasswordWithContext indicates an expected call of ChangePasswordWithContext. +func (mr *MockIAMAPIMockRecorder) ChangePasswordWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChangePasswordWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ChangePasswordWithContext), varargs...) +} + +// CreateAccessKey mocks base method. +func (m *MockIAMAPI) CreateAccessKey(arg0 *iam.CreateAccessKeyInput) (*iam.CreateAccessKeyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateAccessKey", arg0) + ret0, _ := ret[0].(*iam.CreateAccessKeyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateAccessKey indicates an expected call of CreateAccessKey. +func (mr *MockIAMAPIMockRecorder) CreateAccessKey(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAccessKey", reflect.TypeOf((*MockIAMAPI)(nil).CreateAccessKey), arg0) +} + +// CreateAccessKeyRequest mocks base method. +func (m *MockIAMAPI) CreateAccessKeyRequest(arg0 *iam.CreateAccessKeyInput) (*request.Request, *iam.CreateAccessKeyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateAccessKeyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.CreateAccessKeyOutput) + return ret0, ret1 +} + +// CreateAccessKeyRequest indicates an expected call of CreateAccessKeyRequest. +func (mr *MockIAMAPIMockRecorder) CreateAccessKeyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAccessKeyRequest", reflect.TypeOf((*MockIAMAPI)(nil).CreateAccessKeyRequest), arg0) +} + +// CreateAccessKeyWithContext mocks base method. +func (m *MockIAMAPI) CreateAccessKeyWithContext(arg0 aws.Context, arg1 *iam.CreateAccessKeyInput, arg2 ...request.Option) (*iam.CreateAccessKeyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateAccessKeyWithContext", varargs...) + ret0, _ := ret[0].(*iam.CreateAccessKeyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateAccessKeyWithContext indicates an expected call of CreateAccessKeyWithContext. +func (mr *MockIAMAPIMockRecorder) CreateAccessKeyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAccessKeyWithContext", reflect.TypeOf((*MockIAMAPI)(nil).CreateAccessKeyWithContext), varargs...) +} + +// CreateAccountAlias mocks base method. +func (m *MockIAMAPI) CreateAccountAlias(arg0 *iam.CreateAccountAliasInput) (*iam.CreateAccountAliasOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateAccountAlias", arg0) + ret0, _ := ret[0].(*iam.CreateAccountAliasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateAccountAlias indicates an expected call of CreateAccountAlias. +func (mr *MockIAMAPIMockRecorder) CreateAccountAlias(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAccountAlias", reflect.TypeOf((*MockIAMAPI)(nil).CreateAccountAlias), arg0) +} + +// CreateAccountAliasRequest mocks base method. +func (m *MockIAMAPI) CreateAccountAliasRequest(arg0 *iam.CreateAccountAliasInput) (*request.Request, *iam.CreateAccountAliasOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateAccountAliasRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.CreateAccountAliasOutput) + return ret0, ret1 +} + +// CreateAccountAliasRequest indicates an expected call of CreateAccountAliasRequest. +func (mr *MockIAMAPIMockRecorder) CreateAccountAliasRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAccountAliasRequest", reflect.TypeOf((*MockIAMAPI)(nil).CreateAccountAliasRequest), arg0) +} + +// CreateAccountAliasWithContext mocks base method. +func (m *MockIAMAPI) CreateAccountAliasWithContext(arg0 aws.Context, arg1 *iam.CreateAccountAliasInput, arg2 ...request.Option) (*iam.CreateAccountAliasOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateAccountAliasWithContext", varargs...) + ret0, _ := ret[0].(*iam.CreateAccountAliasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateAccountAliasWithContext indicates an expected call of CreateAccountAliasWithContext. +func (mr *MockIAMAPIMockRecorder) CreateAccountAliasWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAccountAliasWithContext", reflect.TypeOf((*MockIAMAPI)(nil).CreateAccountAliasWithContext), varargs...) +} + +// CreateGroup mocks base method. +func (m *MockIAMAPI) CreateGroup(arg0 *iam.CreateGroupInput) (*iam.CreateGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateGroup", arg0) + ret0, _ := ret[0].(*iam.CreateGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateGroup indicates an expected call of CreateGroup. +func (mr *MockIAMAPIMockRecorder) CreateGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGroup", reflect.TypeOf((*MockIAMAPI)(nil).CreateGroup), arg0) +} + +// CreateGroupRequest mocks base method. +func (m *MockIAMAPI) CreateGroupRequest(arg0 *iam.CreateGroupInput) (*request.Request, *iam.CreateGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.CreateGroupOutput) + return ret0, ret1 +} + +// CreateGroupRequest indicates an expected call of CreateGroupRequest. +func (mr *MockIAMAPIMockRecorder) CreateGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGroupRequest", reflect.TypeOf((*MockIAMAPI)(nil).CreateGroupRequest), arg0) +} + +// CreateGroupWithContext mocks base method. +func (m *MockIAMAPI) CreateGroupWithContext(arg0 aws.Context, arg1 *iam.CreateGroupInput, arg2 ...request.Option) (*iam.CreateGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateGroupWithContext", varargs...) + ret0, _ := ret[0].(*iam.CreateGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateGroupWithContext indicates an expected call of CreateGroupWithContext. +func (mr *MockIAMAPIMockRecorder) CreateGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGroupWithContext", reflect.TypeOf((*MockIAMAPI)(nil).CreateGroupWithContext), varargs...) +} + +// CreateInstanceProfile mocks base method. +func (m *MockIAMAPI) CreateInstanceProfile(arg0 *iam.CreateInstanceProfileInput) (*iam.CreateInstanceProfileOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateInstanceProfile", arg0) + ret0, _ := ret[0].(*iam.CreateInstanceProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateInstanceProfile indicates an expected call of CreateInstanceProfile. +func (mr *MockIAMAPIMockRecorder) CreateInstanceProfile(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateInstanceProfile", reflect.TypeOf((*MockIAMAPI)(nil).CreateInstanceProfile), arg0) +} + +// CreateInstanceProfileRequest mocks base method. +func (m *MockIAMAPI) CreateInstanceProfileRequest(arg0 *iam.CreateInstanceProfileInput) (*request.Request, *iam.CreateInstanceProfileOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateInstanceProfileRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.CreateInstanceProfileOutput) + return ret0, ret1 +} + +// CreateInstanceProfileRequest indicates an expected call of CreateInstanceProfileRequest. +func (mr *MockIAMAPIMockRecorder) CreateInstanceProfileRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateInstanceProfileRequest", reflect.TypeOf((*MockIAMAPI)(nil).CreateInstanceProfileRequest), arg0) +} + +// CreateInstanceProfileWithContext mocks base method. +func (m *MockIAMAPI) CreateInstanceProfileWithContext(arg0 aws.Context, arg1 *iam.CreateInstanceProfileInput, arg2 ...request.Option) (*iam.CreateInstanceProfileOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateInstanceProfileWithContext", varargs...) + ret0, _ := ret[0].(*iam.CreateInstanceProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateInstanceProfileWithContext indicates an expected call of CreateInstanceProfileWithContext. +func (mr *MockIAMAPIMockRecorder) CreateInstanceProfileWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateInstanceProfileWithContext", reflect.TypeOf((*MockIAMAPI)(nil).CreateInstanceProfileWithContext), varargs...) +} + +// CreateLoginProfile mocks base method. +func (m *MockIAMAPI) CreateLoginProfile(arg0 *iam.CreateLoginProfileInput) (*iam.CreateLoginProfileOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateLoginProfile", arg0) + ret0, _ := ret[0].(*iam.CreateLoginProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateLoginProfile indicates an expected call of CreateLoginProfile. +func (mr *MockIAMAPIMockRecorder) CreateLoginProfile(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateLoginProfile", reflect.TypeOf((*MockIAMAPI)(nil).CreateLoginProfile), arg0) +} + +// CreateLoginProfileRequest mocks base method. +func (m *MockIAMAPI) CreateLoginProfileRequest(arg0 *iam.CreateLoginProfileInput) (*request.Request, *iam.CreateLoginProfileOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateLoginProfileRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.CreateLoginProfileOutput) + return ret0, ret1 +} + +// CreateLoginProfileRequest indicates an expected call of CreateLoginProfileRequest. +func (mr *MockIAMAPIMockRecorder) CreateLoginProfileRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateLoginProfileRequest", reflect.TypeOf((*MockIAMAPI)(nil).CreateLoginProfileRequest), arg0) +} + +// CreateLoginProfileWithContext mocks base method. +func (m *MockIAMAPI) CreateLoginProfileWithContext(arg0 aws.Context, arg1 *iam.CreateLoginProfileInput, arg2 ...request.Option) (*iam.CreateLoginProfileOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateLoginProfileWithContext", varargs...) + ret0, _ := ret[0].(*iam.CreateLoginProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateLoginProfileWithContext indicates an expected call of CreateLoginProfileWithContext. +func (mr *MockIAMAPIMockRecorder) CreateLoginProfileWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateLoginProfileWithContext", reflect.TypeOf((*MockIAMAPI)(nil).CreateLoginProfileWithContext), varargs...) +} + +// CreateOpenIDConnectProvider mocks base method. +func (m *MockIAMAPI) CreateOpenIDConnectProvider(arg0 *iam.CreateOpenIDConnectProviderInput) (*iam.CreateOpenIDConnectProviderOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateOpenIDConnectProvider", arg0) + ret0, _ := ret[0].(*iam.CreateOpenIDConnectProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateOpenIDConnectProvider indicates an expected call of CreateOpenIDConnectProvider. +func (mr *MockIAMAPIMockRecorder) CreateOpenIDConnectProvider(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOpenIDConnectProvider", reflect.TypeOf((*MockIAMAPI)(nil).CreateOpenIDConnectProvider), arg0) +} + +// CreateOpenIDConnectProviderRequest mocks base method. +func (m *MockIAMAPI) CreateOpenIDConnectProviderRequest(arg0 *iam.CreateOpenIDConnectProviderInput) (*request.Request, *iam.CreateOpenIDConnectProviderOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateOpenIDConnectProviderRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.CreateOpenIDConnectProviderOutput) + return ret0, ret1 +} + +// CreateOpenIDConnectProviderRequest indicates an expected call of CreateOpenIDConnectProviderRequest. +func (mr *MockIAMAPIMockRecorder) CreateOpenIDConnectProviderRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOpenIDConnectProviderRequest", reflect.TypeOf((*MockIAMAPI)(nil).CreateOpenIDConnectProviderRequest), arg0) +} + +// CreateOpenIDConnectProviderWithContext mocks base method. +func (m *MockIAMAPI) CreateOpenIDConnectProviderWithContext(arg0 aws.Context, arg1 *iam.CreateOpenIDConnectProviderInput, arg2 ...request.Option) (*iam.CreateOpenIDConnectProviderOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateOpenIDConnectProviderWithContext", varargs...) + ret0, _ := ret[0].(*iam.CreateOpenIDConnectProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateOpenIDConnectProviderWithContext indicates an expected call of CreateOpenIDConnectProviderWithContext. +func (mr *MockIAMAPIMockRecorder) CreateOpenIDConnectProviderWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOpenIDConnectProviderWithContext", reflect.TypeOf((*MockIAMAPI)(nil).CreateOpenIDConnectProviderWithContext), varargs...) +} + +// CreatePolicy mocks base method. +func (m *MockIAMAPI) CreatePolicy(arg0 *iam.CreatePolicyInput) (*iam.CreatePolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreatePolicy", arg0) + ret0, _ := ret[0].(*iam.CreatePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreatePolicy indicates an expected call of CreatePolicy. +func (mr *MockIAMAPIMockRecorder) CreatePolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePolicy", reflect.TypeOf((*MockIAMAPI)(nil).CreatePolicy), arg0) +} + +// CreatePolicyRequest mocks base method. +func (m *MockIAMAPI) CreatePolicyRequest(arg0 *iam.CreatePolicyInput) (*request.Request, *iam.CreatePolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreatePolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.CreatePolicyOutput) + return ret0, ret1 +} + +// CreatePolicyRequest indicates an expected call of CreatePolicyRequest. +func (mr *MockIAMAPIMockRecorder) CreatePolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePolicyRequest", reflect.TypeOf((*MockIAMAPI)(nil).CreatePolicyRequest), arg0) +} + +// CreatePolicyVersion mocks base method. +func (m *MockIAMAPI) CreatePolicyVersion(arg0 *iam.CreatePolicyVersionInput) (*iam.CreatePolicyVersionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreatePolicyVersion", arg0) + ret0, _ := ret[0].(*iam.CreatePolicyVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreatePolicyVersion indicates an expected call of CreatePolicyVersion. +func (mr *MockIAMAPIMockRecorder) CreatePolicyVersion(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePolicyVersion", reflect.TypeOf((*MockIAMAPI)(nil).CreatePolicyVersion), arg0) +} + +// CreatePolicyVersionRequest mocks base method. +func (m *MockIAMAPI) CreatePolicyVersionRequest(arg0 *iam.CreatePolicyVersionInput) (*request.Request, *iam.CreatePolicyVersionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreatePolicyVersionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.CreatePolicyVersionOutput) + return ret0, ret1 +} + +// CreatePolicyVersionRequest indicates an expected call of CreatePolicyVersionRequest. +func (mr *MockIAMAPIMockRecorder) CreatePolicyVersionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePolicyVersionRequest", reflect.TypeOf((*MockIAMAPI)(nil).CreatePolicyVersionRequest), arg0) +} + +// CreatePolicyVersionWithContext mocks base method. +func (m *MockIAMAPI) CreatePolicyVersionWithContext(arg0 aws.Context, arg1 *iam.CreatePolicyVersionInput, arg2 ...request.Option) (*iam.CreatePolicyVersionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreatePolicyVersionWithContext", varargs...) + ret0, _ := ret[0].(*iam.CreatePolicyVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreatePolicyVersionWithContext indicates an expected call of CreatePolicyVersionWithContext. +func (mr *MockIAMAPIMockRecorder) CreatePolicyVersionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePolicyVersionWithContext", reflect.TypeOf((*MockIAMAPI)(nil).CreatePolicyVersionWithContext), varargs...) +} + +// CreatePolicyWithContext mocks base method. +func (m *MockIAMAPI) CreatePolicyWithContext(arg0 aws.Context, arg1 *iam.CreatePolicyInput, arg2 ...request.Option) (*iam.CreatePolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreatePolicyWithContext", varargs...) + ret0, _ := ret[0].(*iam.CreatePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreatePolicyWithContext indicates an expected call of CreatePolicyWithContext. +func (mr *MockIAMAPIMockRecorder) CreatePolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePolicyWithContext", reflect.TypeOf((*MockIAMAPI)(nil).CreatePolicyWithContext), varargs...) +} + +// CreateRole mocks base method. +func (m *MockIAMAPI) CreateRole(arg0 *iam.CreateRoleInput) (*iam.CreateRoleOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateRole", arg0) + ret0, _ := ret[0].(*iam.CreateRoleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateRole indicates an expected call of CreateRole. +func (mr *MockIAMAPIMockRecorder) CreateRole(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRole", reflect.TypeOf((*MockIAMAPI)(nil).CreateRole), arg0) +} + +// CreateRoleRequest mocks base method. +func (m *MockIAMAPI) CreateRoleRequest(arg0 *iam.CreateRoleInput) (*request.Request, *iam.CreateRoleOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateRoleRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.CreateRoleOutput) + return ret0, ret1 +} + +// CreateRoleRequest indicates an expected call of CreateRoleRequest. +func (mr *MockIAMAPIMockRecorder) CreateRoleRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRoleRequest", reflect.TypeOf((*MockIAMAPI)(nil).CreateRoleRequest), arg0) +} + +// CreateRoleWithContext mocks base method. +func (m *MockIAMAPI) CreateRoleWithContext(arg0 aws.Context, arg1 *iam.CreateRoleInput, arg2 ...request.Option) (*iam.CreateRoleOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateRoleWithContext", varargs...) + ret0, _ := ret[0].(*iam.CreateRoleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateRoleWithContext indicates an expected call of CreateRoleWithContext. +func (mr *MockIAMAPIMockRecorder) CreateRoleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRoleWithContext", reflect.TypeOf((*MockIAMAPI)(nil).CreateRoleWithContext), varargs...) +} + +// CreateSAMLProvider mocks base method. +func (m *MockIAMAPI) CreateSAMLProvider(arg0 *iam.CreateSAMLProviderInput) (*iam.CreateSAMLProviderOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateSAMLProvider", arg0) + ret0, _ := ret[0].(*iam.CreateSAMLProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateSAMLProvider indicates an expected call of CreateSAMLProvider. +func (mr *MockIAMAPIMockRecorder) CreateSAMLProvider(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateSAMLProvider", reflect.TypeOf((*MockIAMAPI)(nil).CreateSAMLProvider), arg0) +} + +// CreateSAMLProviderRequest mocks base method. +func (m *MockIAMAPI) CreateSAMLProviderRequest(arg0 *iam.CreateSAMLProviderInput) (*request.Request, *iam.CreateSAMLProviderOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateSAMLProviderRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.CreateSAMLProviderOutput) + return ret0, ret1 +} + +// CreateSAMLProviderRequest indicates an expected call of CreateSAMLProviderRequest. +func (mr *MockIAMAPIMockRecorder) CreateSAMLProviderRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateSAMLProviderRequest", reflect.TypeOf((*MockIAMAPI)(nil).CreateSAMLProviderRequest), arg0) +} + +// CreateSAMLProviderWithContext mocks base method. +func (m *MockIAMAPI) CreateSAMLProviderWithContext(arg0 aws.Context, arg1 *iam.CreateSAMLProviderInput, arg2 ...request.Option) (*iam.CreateSAMLProviderOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateSAMLProviderWithContext", varargs...) + ret0, _ := ret[0].(*iam.CreateSAMLProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateSAMLProviderWithContext indicates an expected call of CreateSAMLProviderWithContext. +func (mr *MockIAMAPIMockRecorder) CreateSAMLProviderWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateSAMLProviderWithContext", reflect.TypeOf((*MockIAMAPI)(nil).CreateSAMLProviderWithContext), varargs...) +} + +// CreateServiceLinkedRole mocks base method. +func (m *MockIAMAPI) CreateServiceLinkedRole(arg0 *iam.CreateServiceLinkedRoleInput) (*iam.CreateServiceLinkedRoleOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateServiceLinkedRole", arg0) + ret0, _ := ret[0].(*iam.CreateServiceLinkedRoleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateServiceLinkedRole indicates an expected call of CreateServiceLinkedRole. +func (mr *MockIAMAPIMockRecorder) CreateServiceLinkedRole(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateServiceLinkedRole", reflect.TypeOf((*MockIAMAPI)(nil).CreateServiceLinkedRole), arg0) +} + +// CreateServiceLinkedRoleRequest mocks base method. +func (m *MockIAMAPI) CreateServiceLinkedRoleRequest(arg0 *iam.CreateServiceLinkedRoleInput) (*request.Request, *iam.CreateServiceLinkedRoleOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateServiceLinkedRoleRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.CreateServiceLinkedRoleOutput) + return ret0, ret1 +} + +// CreateServiceLinkedRoleRequest indicates an expected call of CreateServiceLinkedRoleRequest. +func (mr *MockIAMAPIMockRecorder) CreateServiceLinkedRoleRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateServiceLinkedRoleRequest", reflect.TypeOf((*MockIAMAPI)(nil).CreateServiceLinkedRoleRequest), arg0) +} + +// CreateServiceLinkedRoleWithContext mocks base method. +func (m *MockIAMAPI) CreateServiceLinkedRoleWithContext(arg0 aws.Context, arg1 *iam.CreateServiceLinkedRoleInput, arg2 ...request.Option) (*iam.CreateServiceLinkedRoleOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateServiceLinkedRoleWithContext", varargs...) + ret0, _ := ret[0].(*iam.CreateServiceLinkedRoleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateServiceLinkedRoleWithContext indicates an expected call of CreateServiceLinkedRoleWithContext. +func (mr *MockIAMAPIMockRecorder) CreateServiceLinkedRoleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateServiceLinkedRoleWithContext", reflect.TypeOf((*MockIAMAPI)(nil).CreateServiceLinkedRoleWithContext), varargs...) +} + +// CreateServiceSpecificCredential mocks base method. +func (m *MockIAMAPI) CreateServiceSpecificCredential(arg0 *iam.CreateServiceSpecificCredentialInput) (*iam.CreateServiceSpecificCredentialOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateServiceSpecificCredential", arg0) + ret0, _ := ret[0].(*iam.CreateServiceSpecificCredentialOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateServiceSpecificCredential indicates an expected call of CreateServiceSpecificCredential. +func (mr *MockIAMAPIMockRecorder) CreateServiceSpecificCredential(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateServiceSpecificCredential", reflect.TypeOf((*MockIAMAPI)(nil).CreateServiceSpecificCredential), arg0) +} + +// CreateServiceSpecificCredentialRequest mocks base method. +func (m *MockIAMAPI) CreateServiceSpecificCredentialRequest(arg0 *iam.CreateServiceSpecificCredentialInput) (*request.Request, *iam.CreateServiceSpecificCredentialOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateServiceSpecificCredentialRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.CreateServiceSpecificCredentialOutput) + return ret0, ret1 +} + +// CreateServiceSpecificCredentialRequest indicates an expected call of CreateServiceSpecificCredentialRequest. +func (mr *MockIAMAPIMockRecorder) CreateServiceSpecificCredentialRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateServiceSpecificCredentialRequest", reflect.TypeOf((*MockIAMAPI)(nil).CreateServiceSpecificCredentialRequest), arg0) +} + +// CreateServiceSpecificCredentialWithContext mocks base method. +func (m *MockIAMAPI) CreateServiceSpecificCredentialWithContext(arg0 aws.Context, arg1 *iam.CreateServiceSpecificCredentialInput, arg2 ...request.Option) (*iam.CreateServiceSpecificCredentialOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateServiceSpecificCredentialWithContext", varargs...) + ret0, _ := ret[0].(*iam.CreateServiceSpecificCredentialOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateServiceSpecificCredentialWithContext indicates an expected call of CreateServiceSpecificCredentialWithContext. +func (mr *MockIAMAPIMockRecorder) CreateServiceSpecificCredentialWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateServiceSpecificCredentialWithContext", reflect.TypeOf((*MockIAMAPI)(nil).CreateServiceSpecificCredentialWithContext), varargs...) +} + +// CreateUser mocks base method. +func (m *MockIAMAPI) CreateUser(arg0 *iam.CreateUserInput) (*iam.CreateUserOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateUser", arg0) + ret0, _ := ret[0].(*iam.CreateUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateUser indicates an expected call of CreateUser. +func (mr *MockIAMAPIMockRecorder) CreateUser(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUser", reflect.TypeOf((*MockIAMAPI)(nil).CreateUser), arg0) +} + +// CreateUserRequest mocks base method. +func (m *MockIAMAPI) CreateUserRequest(arg0 *iam.CreateUserInput) (*request.Request, *iam.CreateUserOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateUserRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.CreateUserOutput) + return ret0, ret1 +} + +// CreateUserRequest indicates an expected call of CreateUserRequest. +func (mr *MockIAMAPIMockRecorder) CreateUserRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUserRequest", reflect.TypeOf((*MockIAMAPI)(nil).CreateUserRequest), arg0) +} + +// CreateUserWithContext mocks base method. +func (m *MockIAMAPI) CreateUserWithContext(arg0 aws.Context, arg1 *iam.CreateUserInput, arg2 ...request.Option) (*iam.CreateUserOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateUserWithContext", varargs...) + ret0, _ := ret[0].(*iam.CreateUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateUserWithContext indicates an expected call of CreateUserWithContext. +func (mr *MockIAMAPIMockRecorder) CreateUserWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUserWithContext", reflect.TypeOf((*MockIAMAPI)(nil).CreateUserWithContext), varargs...) +} + +// CreateVirtualMFADevice mocks base method. +func (m *MockIAMAPI) CreateVirtualMFADevice(arg0 *iam.CreateVirtualMFADeviceInput) (*iam.CreateVirtualMFADeviceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateVirtualMFADevice", arg0) + ret0, _ := ret[0].(*iam.CreateVirtualMFADeviceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateVirtualMFADevice indicates an expected call of CreateVirtualMFADevice. +func (mr *MockIAMAPIMockRecorder) CreateVirtualMFADevice(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateVirtualMFADevice", reflect.TypeOf((*MockIAMAPI)(nil).CreateVirtualMFADevice), arg0) +} + +// CreateVirtualMFADeviceRequest mocks base method. +func (m *MockIAMAPI) CreateVirtualMFADeviceRequest(arg0 *iam.CreateVirtualMFADeviceInput) (*request.Request, *iam.CreateVirtualMFADeviceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateVirtualMFADeviceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.CreateVirtualMFADeviceOutput) + return ret0, ret1 +} + +// CreateVirtualMFADeviceRequest indicates an expected call of CreateVirtualMFADeviceRequest. +func (mr *MockIAMAPIMockRecorder) CreateVirtualMFADeviceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateVirtualMFADeviceRequest", reflect.TypeOf((*MockIAMAPI)(nil).CreateVirtualMFADeviceRequest), arg0) +} + +// CreateVirtualMFADeviceWithContext mocks base method. +func (m *MockIAMAPI) CreateVirtualMFADeviceWithContext(arg0 aws.Context, arg1 *iam.CreateVirtualMFADeviceInput, arg2 ...request.Option) (*iam.CreateVirtualMFADeviceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateVirtualMFADeviceWithContext", varargs...) + ret0, _ := ret[0].(*iam.CreateVirtualMFADeviceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateVirtualMFADeviceWithContext indicates an expected call of CreateVirtualMFADeviceWithContext. +func (mr *MockIAMAPIMockRecorder) CreateVirtualMFADeviceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateVirtualMFADeviceWithContext", reflect.TypeOf((*MockIAMAPI)(nil).CreateVirtualMFADeviceWithContext), varargs...) +} + +// DeactivateMFADevice mocks base method. +func (m *MockIAMAPI) DeactivateMFADevice(arg0 *iam.DeactivateMFADeviceInput) (*iam.DeactivateMFADeviceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeactivateMFADevice", arg0) + ret0, _ := ret[0].(*iam.DeactivateMFADeviceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeactivateMFADevice indicates an expected call of DeactivateMFADevice. +func (mr *MockIAMAPIMockRecorder) DeactivateMFADevice(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeactivateMFADevice", reflect.TypeOf((*MockIAMAPI)(nil).DeactivateMFADevice), arg0) +} + +// DeactivateMFADeviceRequest mocks base method. +func (m *MockIAMAPI) DeactivateMFADeviceRequest(arg0 *iam.DeactivateMFADeviceInput) (*request.Request, *iam.DeactivateMFADeviceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeactivateMFADeviceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.DeactivateMFADeviceOutput) + return ret0, ret1 +} + +// DeactivateMFADeviceRequest indicates an expected call of DeactivateMFADeviceRequest. +func (mr *MockIAMAPIMockRecorder) DeactivateMFADeviceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeactivateMFADeviceRequest", reflect.TypeOf((*MockIAMAPI)(nil).DeactivateMFADeviceRequest), arg0) +} + +// DeactivateMFADeviceWithContext mocks base method. +func (m *MockIAMAPI) DeactivateMFADeviceWithContext(arg0 aws.Context, arg1 *iam.DeactivateMFADeviceInput, arg2 ...request.Option) (*iam.DeactivateMFADeviceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeactivateMFADeviceWithContext", varargs...) + ret0, _ := ret[0].(*iam.DeactivateMFADeviceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeactivateMFADeviceWithContext indicates an expected call of DeactivateMFADeviceWithContext. +func (mr *MockIAMAPIMockRecorder) DeactivateMFADeviceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeactivateMFADeviceWithContext", reflect.TypeOf((*MockIAMAPI)(nil).DeactivateMFADeviceWithContext), varargs...) +} + +// DeleteAccessKey mocks base method. +func (m *MockIAMAPI) DeleteAccessKey(arg0 *iam.DeleteAccessKeyInput) (*iam.DeleteAccessKeyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteAccessKey", arg0) + ret0, _ := ret[0].(*iam.DeleteAccessKeyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteAccessKey indicates an expected call of DeleteAccessKey. +func (mr *MockIAMAPIMockRecorder) DeleteAccessKey(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAccessKey", reflect.TypeOf((*MockIAMAPI)(nil).DeleteAccessKey), arg0) +} + +// DeleteAccessKeyRequest mocks base method. +func (m *MockIAMAPI) DeleteAccessKeyRequest(arg0 *iam.DeleteAccessKeyInput) (*request.Request, *iam.DeleteAccessKeyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteAccessKeyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.DeleteAccessKeyOutput) + return ret0, ret1 +} + +// DeleteAccessKeyRequest indicates an expected call of DeleteAccessKeyRequest. +func (mr *MockIAMAPIMockRecorder) DeleteAccessKeyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAccessKeyRequest", reflect.TypeOf((*MockIAMAPI)(nil).DeleteAccessKeyRequest), arg0) +} + +// DeleteAccessKeyWithContext mocks base method. +func (m *MockIAMAPI) DeleteAccessKeyWithContext(arg0 aws.Context, arg1 *iam.DeleteAccessKeyInput, arg2 ...request.Option) (*iam.DeleteAccessKeyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteAccessKeyWithContext", varargs...) + ret0, _ := ret[0].(*iam.DeleteAccessKeyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteAccessKeyWithContext indicates an expected call of DeleteAccessKeyWithContext. +func (mr *MockIAMAPIMockRecorder) DeleteAccessKeyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAccessKeyWithContext", reflect.TypeOf((*MockIAMAPI)(nil).DeleteAccessKeyWithContext), varargs...) +} + +// DeleteAccountAlias mocks base method. +func (m *MockIAMAPI) DeleteAccountAlias(arg0 *iam.DeleteAccountAliasInput) (*iam.DeleteAccountAliasOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteAccountAlias", arg0) + ret0, _ := ret[0].(*iam.DeleteAccountAliasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteAccountAlias indicates an expected call of DeleteAccountAlias. +func (mr *MockIAMAPIMockRecorder) DeleteAccountAlias(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAccountAlias", reflect.TypeOf((*MockIAMAPI)(nil).DeleteAccountAlias), arg0) +} + +// DeleteAccountAliasRequest mocks base method. +func (m *MockIAMAPI) DeleteAccountAliasRequest(arg0 *iam.DeleteAccountAliasInput) (*request.Request, *iam.DeleteAccountAliasOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteAccountAliasRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.DeleteAccountAliasOutput) + return ret0, ret1 +} + +// DeleteAccountAliasRequest indicates an expected call of DeleteAccountAliasRequest. +func (mr *MockIAMAPIMockRecorder) DeleteAccountAliasRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAccountAliasRequest", reflect.TypeOf((*MockIAMAPI)(nil).DeleteAccountAliasRequest), arg0) +} + +// DeleteAccountAliasWithContext mocks base method. +func (m *MockIAMAPI) DeleteAccountAliasWithContext(arg0 aws.Context, arg1 *iam.DeleteAccountAliasInput, arg2 ...request.Option) (*iam.DeleteAccountAliasOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteAccountAliasWithContext", varargs...) + ret0, _ := ret[0].(*iam.DeleteAccountAliasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteAccountAliasWithContext indicates an expected call of DeleteAccountAliasWithContext. +func (mr *MockIAMAPIMockRecorder) DeleteAccountAliasWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAccountAliasWithContext", reflect.TypeOf((*MockIAMAPI)(nil).DeleteAccountAliasWithContext), varargs...) +} + +// DeleteAccountPasswordPolicy mocks base method. +func (m *MockIAMAPI) DeleteAccountPasswordPolicy(arg0 *iam.DeleteAccountPasswordPolicyInput) (*iam.DeleteAccountPasswordPolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteAccountPasswordPolicy", arg0) + ret0, _ := ret[0].(*iam.DeleteAccountPasswordPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteAccountPasswordPolicy indicates an expected call of DeleteAccountPasswordPolicy. +func (mr *MockIAMAPIMockRecorder) DeleteAccountPasswordPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAccountPasswordPolicy", reflect.TypeOf((*MockIAMAPI)(nil).DeleteAccountPasswordPolicy), arg0) +} + +// DeleteAccountPasswordPolicyRequest mocks base method. +func (m *MockIAMAPI) DeleteAccountPasswordPolicyRequest(arg0 *iam.DeleteAccountPasswordPolicyInput) (*request.Request, *iam.DeleteAccountPasswordPolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteAccountPasswordPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.DeleteAccountPasswordPolicyOutput) + return ret0, ret1 +} + +// DeleteAccountPasswordPolicyRequest indicates an expected call of DeleteAccountPasswordPolicyRequest. +func (mr *MockIAMAPIMockRecorder) DeleteAccountPasswordPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAccountPasswordPolicyRequest", reflect.TypeOf((*MockIAMAPI)(nil).DeleteAccountPasswordPolicyRequest), arg0) +} + +// DeleteAccountPasswordPolicyWithContext mocks base method. +func (m *MockIAMAPI) DeleteAccountPasswordPolicyWithContext(arg0 aws.Context, arg1 *iam.DeleteAccountPasswordPolicyInput, arg2 ...request.Option) (*iam.DeleteAccountPasswordPolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteAccountPasswordPolicyWithContext", varargs...) + ret0, _ := ret[0].(*iam.DeleteAccountPasswordPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteAccountPasswordPolicyWithContext indicates an expected call of DeleteAccountPasswordPolicyWithContext. +func (mr *MockIAMAPIMockRecorder) DeleteAccountPasswordPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAccountPasswordPolicyWithContext", reflect.TypeOf((*MockIAMAPI)(nil).DeleteAccountPasswordPolicyWithContext), varargs...) +} + +// DeleteGroup mocks base method. +func (m *MockIAMAPI) DeleteGroup(arg0 *iam.DeleteGroupInput) (*iam.DeleteGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteGroup", arg0) + ret0, _ := ret[0].(*iam.DeleteGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteGroup indicates an expected call of DeleteGroup. +func (mr *MockIAMAPIMockRecorder) DeleteGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGroup", reflect.TypeOf((*MockIAMAPI)(nil).DeleteGroup), arg0) +} + +// DeleteGroupPolicy mocks base method. +func (m *MockIAMAPI) DeleteGroupPolicy(arg0 *iam.DeleteGroupPolicyInput) (*iam.DeleteGroupPolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteGroupPolicy", arg0) + ret0, _ := ret[0].(*iam.DeleteGroupPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteGroupPolicy indicates an expected call of DeleteGroupPolicy. +func (mr *MockIAMAPIMockRecorder) DeleteGroupPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGroupPolicy", reflect.TypeOf((*MockIAMAPI)(nil).DeleteGroupPolicy), arg0) +} + +// DeleteGroupPolicyRequest mocks base method. +func (m *MockIAMAPI) DeleteGroupPolicyRequest(arg0 *iam.DeleteGroupPolicyInput) (*request.Request, *iam.DeleteGroupPolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteGroupPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.DeleteGroupPolicyOutput) + return ret0, ret1 +} + +// DeleteGroupPolicyRequest indicates an expected call of DeleteGroupPolicyRequest. +func (mr *MockIAMAPIMockRecorder) DeleteGroupPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGroupPolicyRequest", reflect.TypeOf((*MockIAMAPI)(nil).DeleteGroupPolicyRequest), arg0) +} + +// DeleteGroupPolicyWithContext mocks base method. +func (m *MockIAMAPI) DeleteGroupPolicyWithContext(arg0 aws.Context, arg1 *iam.DeleteGroupPolicyInput, arg2 ...request.Option) (*iam.DeleteGroupPolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteGroupPolicyWithContext", varargs...) + ret0, _ := ret[0].(*iam.DeleteGroupPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteGroupPolicyWithContext indicates an expected call of DeleteGroupPolicyWithContext. +func (mr *MockIAMAPIMockRecorder) DeleteGroupPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGroupPolicyWithContext", reflect.TypeOf((*MockIAMAPI)(nil).DeleteGroupPolicyWithContext), varargs...) +} + +// DeleteGroupRequest mocks base method. +func (m *MockIAMAPI) DeleteGroupRequest(arg0 *iam.DeleteGroupInput) (*request.Request, *iam.DeleteGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.DeleteGroupOutput) + return ret0, ret1 +} + +// DeleteGroupRequest indicates an expected call of DeleteGroupRequest. +func (mr *MockIAMAPIMockRecorder) DeleteGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGroupRequest", reflect.TypeOf((*MockIAMAPI)(nil).DeleteGroupRequest), arg0) +} + +// DeleteGroupWithContext mocks base method. +func (m *MockIAMAPI) DeleteGroupWithContext(arg0 aws.Context, arg1 *iam.DeleteGroupInput, arg2 ...request.Option) (*iam.DeleteGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteGroupWithContext", varargs...) + ret0, _ := ret[0].(*iam.DeleteGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteGroupWithContext indicates an expected call of DeleteGroupWithContext. +func (mr *MockIAMAPIMockRecorder) DeleteGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGroupWithContext", reflect.TypeOf((*MockIAMAPI)(nil).DeleteGroupWithContext), varargs...) +} + +// DeleteInstanceProfile mocks base method. +func (m *MockIAMAPI) DeleteInstanceProfile(arg0 *iam.DeleteInstanceProfileInput) (*iam.DeleteInstanceProfileOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteInstanceProfile", arg0) + ret0, _ := ret[0].(*iam.DeleteInstanceProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteInstanceProfile indicates an expected call of DeleteInstanceProfile. +func (mr *MockIAMAPIMockRecorder) DeleteInstanceProfile(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteInstanceProfile", reflect.TypeOf((*MockIAMAPI)(nil).DeleteInstanceProfile), arg0) +} + +// DeleteInstanceProfileRequest mocks base method. +func (m *MockIAMAPI) DeleteInstanceProfileRequest(arg0 *iam.DeleteInstanceProfileInput) (*request.Request, *iam.DeleteInstanceProfileOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteInstanceProfileRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.DeleteInstanceProfileOutput) + return ret0, ret1 +} + +// DeleteInstanceProfileRequest indicates an expected call of DeleteInstanceProfileRequest. +func (mr *MockIAMAPIMockRecorder) DeleteInstanceProfileRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteInstanceProfileRequest", reflect.TypeOf((*MockIAMAPI)(nil).DeleteInstanceProfileRequest), arg0) +} + +// DeleteInstanceProfileWithContext mocks base method. +func (m *MockIAMAPI) DeleteInstanceProfileWithContext(arg0 aws.Context, arg1 *iam.DeleteInstanceProfileInput, arg2 ...request.Option) (*iam.DeleteInstanceProfileOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteInstanceProfileWithContext", varargs...) + ret0, _ := ret[0].(*iam.DeleteInstanceProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteInstanceProfileWithContext indicates an expected call of DeleteInstanceProfileWithContext. +func (mr *MockIAMAPIMockRecorder) DeleteInstanceProfileWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteInstanceProfileWithContext", reflect.TypeOf((*MockIAMAPI)(nil).DeleteInstanceProfileWithContext), varargs...) +} + +// DeleteLoginProfile mocks base method. +func (m *MockIAMAPI) DeleteLoginProfile(arg0 *iam.DeleteLoginProfileInput) (*iam.DeleteLoginProfileOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteLoginProfile", arg0) + ret0, _ := ret[0].(*iam.DeleteLoginProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteLoginProfile indicates an expected call of DeleteLoginProfile. +func (mr *MockIAMAPIMockRecorder) DeleteLoginProfile(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteLoginProfile", reflect.TypeOf((*MockIAMAPI)(nil).DeleteLoginProfile), arg0) +} + +// DeleteLoginProfileRequest mocks base method. +func (m *MockIAMAPI) DeleteLoginProfileRequest(arg0 *iam.DeleteLoginProfileInput) (*request.Request, *iam.DeleteLoginProfileOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteLoginProfileRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.DeleteLoginProfileOutput) + return ret0, ret1 +} + +// DeleteLoginProfileRequest indicates an expected call of DeleteLoginProfileRequest. +func (mr *MockIAMAPIMockRecorder) DeleteLoginProfileRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteLoginProfileRequest", reflect.TypeOf((*MockIAMAPI)(nil).DeleteLoginProfileRequest), arg0) +} + +// DeleteLoginProfileWithContext mocks base method. +func (m *MockIAMAPI) DeleteLoginProfileWithContext(arg0 aws.Context, arg1 *iam.DeleteLoginProfileInput, arg2 ...request.Option) (*iam.DeleteLoginProfileOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteLoginProfileWithContext", varargs...) + ret0, _ := ret[0].(*iam.DeleteLoginProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteLoginProfileWithContext indicates an expected call of DeleteLoginProfileWithContext. +func (mr *MockIAMAPIMockRecorder) DeleteLoginProfileWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteLoginProfileWithContext", reflect.TypeOf((*MockIAMAPI)(nil).DeleteLoginProfileWithContext), varargs...) +} + +// DeleteOpenIDConnectProvider mocks base method. +func (m *MockIAMAPI) DeleteOpenIDConnectProvider(arg0 *iam.DeleteOpenIDConnectProviderInput) (*iam.DeleteOpenIDConnectProviderOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteOpenIDConnectProvider", arg0) + ret0, _ := ret[0].(*iam.DeleteOpenIDConnectProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteOpenIDConnectProvider indicates an expected call of DeleteOpenIDConnectProvider. +func (mr *MockIAMAPIMockRecorder) DeleteOpenIDConnectProvider(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOpenIDConnectProvider", reflect.TypeOf((*MockIAMAPI)(nil).DeleteOpenIDConnectProvider), arg0) +} + +// DeleteOpenIDConnectProviderRequest mocks base method. +func (m *MockIAMAPI) DeleteOpenIDConnectProviderRequest(arg0 *iam.DeleteOpenIDConnectProviderInput) (*request.Request, *iam.DeleteOpenIDConnectProviderOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteOpenIDConnectProviderRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.DeleteOpenIDConnectProviderOutput) + return ret0, ret1 +} + +// DeleteOpenIDConnectProviderRequest indicates an expected call of DeleteOpenIDConnectProviderRequest. +func (mr *MockIAMAPIMockRecorder) DeleteOpenIDConnectProviderRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOpenIDConnectProviderRequest", reflect.TypeOf((*MockIAMAPI)(nil).DeleteOpenIDConnectProviderRequest), arg0) +} + +// DeleteOpenIDConnectProviderWithContext mocks base method. +func (m *MockIAMAPI) DeleteOpenIDConnectProviderWithContext(arg0 aws.Context, arg1 *iam.DeleteOpenIDConnectProviderInput, arg2 ...request.Option) (*iam.DeleteOpenIDConnectProviderOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteOpenIDConnectProviderWithContext", varargs...) + ret0, _ := ret[0].(*iam.DeleteOpenIDConnectProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteOpenIDConnectProviderWithContext indicates an expected call of DeleteOpenIDConnectProviderWithContext. +func (mr *MockIAMAPIMockRecorder) DeleteOpenIDConnectProviderWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOpenIDConnectProviderWithContext", reflect.TypeOf((*MockIAMAPI)(nil).DeleteOpenIDConnectProviderWithContext), varargs...) +} + +// DeletePolicy mocks base method. +func (m *MockIAMAPI) DeletePolicy(arg0 *iam.DeletePolicyInput) (*iam.DeletePolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeletePolicy", arg0) + ret0, _ := ret[0].(*iam.DeletePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeletePolicy indicates an expected call of DeletePolicy. +func (mr *MockIAMAPIMockRecorder) DeletePolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePolicy", reflect.TypeOf((*MockIAMAPI)(nil).DeletePolicy), arg0) +} + +// DeletePolicyRequest mocks base method. +func (m *MockIAMAPI) DeletePolicyRequest(arg0 *iam.DeletePolicyInput) (*request.Request, *iam.DeletePolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeletePolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.DeletePolicyOutput) + return ret0, ret1 +} + +// DeletePolicyRequest indicates an expected call of DeletePolicyRequest. +func (mr *MockIAMAPIMockRecorder) DeletePolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePolicyRequest", reflect.TypeOf((*MockIAMAPI)(nil).DeletePolicyRequest), arg0) +} + +// DeletePolicyVersion mocks base method. +func (m *MockIAMAPI) DeletePolicyVersion(arg0 *iam.DeletePolicyVersionInput) (*iam.DeletePolicyVersionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeletePolicyVersion", arg0) + ret0, _ := ret[0].(*iam.DeletePolicyVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeletePolicyVersion indicates an expected call of DeletePolicyVersion. +func (mr *MockIAMAPIMockRecorder) DeletePolicyVersion(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePolicyVersion", reflect.TypeOf((*MockIAMAPI)(nil).DeletePolicyVersion), arg0) +} + +// DeletePolicyVersionRequest mocks base method. +func (m *MockIAMAPI) DeletePolicyVersionRequest(arg0 *iam.DeletePolicyVersionInput) (*request.Request, *iam.DeletePolicyVersionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeletePolicyVersionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.DeletePolicyVersionOutput) + return ret0, ret1 +} + +// DeletePolicyVersionRequest indicates an expected call of DeletePolicyVersionRequest. +func (mr *MockIAMAPIMockRecorder) DeletePolicyVersionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePolicyVersionRequest", reflect.TypeOf((*MockIAMAPI)(nil).DeletePolicyVersionRequest), arg0) +} + +// DeletePolicyVersionWithContext mocks base method. +func (m *MockIAMAPI) DeletePolicyVersionWithContext(arg0 aws.Context, arg1 *iam.DeletePolicyVersionInput, arg2 ...request.Option) (*iam.DeletePolicyVersionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeletePolicyVersionWithContext", varargs...) + ret0, _ := ret[0].(*iam.DeletePolicyVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeletePolicyVersionWithContext indicates an expected call of DeletePolicyVersionWithContext. +func (mr *MockIAMAPIMockRecorder) DeletePolicyVersionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePolicyVersionWithContext", reflect.TypeOf((*MockIAMAPI)(nil).DeletePolicyVersionWithContext), varargs...) +} + +// DeletePolicyWithContext mocks base method. +func (m *MockIAMAPI) DeletePolicyWithContext(arg0 aws.Context, arg1 *iam.DeletePolicyInput, arg2 ...request.Option) (*iam.DeletePolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeletePolicyWithContext", varargs...) + ret0, _ := ret[0].(*iam.DeletePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeletePolicyWithContext indicates an expected call of DeletePolicyWithContext. +func (mr *MockIAMAPIMockRecorder) DeletePolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePolicyWithContext", reflect.TypeOf((*MockIAMAPI)(nil).DeletePolicyWithContext), varargs...) +} + +// DeleteRole mocks base method. +func (m *MockIAMAPI) DeleteRole(arg0 *iam.DeleteRoleInput) (*iam.DeleteRoleOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteRole", arg0) + ret0, _ := ret[0].(*iam.DeleteRoleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteRole indicates an expected call of DeleteRole. +func (mr *MockIAMAPIMockRecorder) DeleteRole(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRole", reflect.TypeOf((*MockIAMAPI)(nil).DeleteRole), arg0) +} + +// DeleteRolePermissionsBoundary mocks base method. +func (m *MockIAMAPI) DeleteRolePermissionsBoundary(arg0 *iam.DeleteRolePermissionsBoundaryInput) (*iam.DeleteRolePermissionsBoundaryOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteRolePermissionsBoundary", arg0) + ret0, _ := ret[0].(*iam.DeleteRolePermissionsBoundaryOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteRolePermissionsBoundary indicates an expected call of DeleteRolePermissionsBoundary. +func (mr *MockIAMAPIMockRecorder) DeleteRolePermissionsBoundary(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRolePermissionsBoundary", reflect.TypeOf((*MockIAMAPI)(nil).DeleteRolePermissionsBoundary), arg0) +} + +// DeleteRolePermissionsBoundaryRequest mocks base method. +func (m *MockIAMAPI) DeleteRolePermissionsBoundaryRequest(arg0 *iam.DeleteRolePermissionsBoundaryInput) (*request.Request, *iam.DeleteRolePermissionsBoundaryOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteRolePermissionsBoundaryRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.DeleteRolePermissionsBoundaryOutput) + return ret0, ret1 +} + +// DeleteRolePermissionsBoundaryRequest indicates an expected call of DeleteRolePermissionsBoundaryRequest. +func (mr *MockIAMAPIMockRecorder) DeleteRolePermissionsBoundaryRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRolePermissionsBoundaryRequest", reflect.TypeOf((*MockIAMAPI)(nil).DeleteRolePermissionsBoundaryRequest), arg0) +} + +// DeleteRolePermissionsBoundaryWithContext mocks base method. +func (m *MockIAMAPI) DeleteRolePermissionsBoundaryWithContext(arg0 aws.Context, arg1 *iam.DeleteRolePermissionsBoundaryInput, arg2 ...request.Option) (*iam.DeleteRolePermissionsBoundaryOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteRolePermissionsBoundaryWithContext", varargs...) + ret0, _ := ret[0].(*iam.DeleteRolePermissionsBoundaryOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteRolePermissionsBoundaryWithContext indicates an expected call of DeleteRolePermissionsBoundaryWithContext. +func (mr *MockIAMAPIMockRecorder) DeleteRolePermissionsBoundaryWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRolePermissionsBoundaryWithContext", reflect.TypeOf((*MockIAMAPI)(nil).DeleteRolePermissionsBoundaryWithContext), varargs...) +} + +// DeleteRolePolicy mocks base method. +func (m *MockIAMAPI) DeleteRolePolicy(arg0 *iam.DeleteRolePolicyInput) (*iam.DeleteRolePolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteRolePolicy", arg0) + ret0, _ := ret[0].(*iam.DeleteRolePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteRolePolicy indicates an expected call of DeleteRolePolicy. +func (mr *MockIAMAPIMockRecorder) DeleteRolePolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRolePolicy", reflect.TypeOf((*MockIAMAPI)(nil).DeleteRolePolicy), arg0) +} + +// DeleteRolePolicyRequest mocks base method. +func (m *MockIAMAPI) DeleteRolePolicyRequest(arg0 *iam.DeleteRolePolicyInput) (*request.Request, *iam.DeleteRolePolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteRolePolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.DeleteRolePolicyOutput) + return ret0, ret1 +} + +// DeleteRolePolicyRequest indicates an expected call of DeleteRolePolicyRequest. +func (mr *MockIAMAPIMockRecorder) DeleteRolePolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRolePolicyRequest", reflect.TypeOf((*MockIAMAPI)(nil).DeleteRolePolicyRequest), arg0) +} + +// DeleteRolePolicyWithContext mocks base method. +func (m *MockIAMAPI) DeleteRolePolicyWithContext(arg0 aws.Context, arg1 *iam.DeleteRolePolicyInput, arg2 ...request.Option) (*iam.DeleteRolePolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteRolePolicyWithContext", varargs...) + ret0, _ := ret[0].(*iam.DeleteRolePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteRolePolicyWithContext indicates an expected call of DeleteRolePolicyWithContext. +func (mr *MockIAMAPIMockRecorder) DeleteRolePolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRolePolicyWithContext", reflect.TypeOf((*MockIAMAPI)(nil).DeleteRolePolicyWithContext), varargs...) +} + +// DeleteRoleRequest mocks base method. +func (m *MockIAMAPI) DeleteRoleRequest(arg0 *iam.DeleteRoleInput) (*request.Request, *iam.DeleteRoleOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteRoleRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.DeleteRoleOutput) + return ret0, ret1 +} + +// DeleteRoleRequest indicates an expected call of DeleteRoleRequest. +func (mr *MockIAMAPIMockRecorder) DeleteRoleRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRoleRequest", reflect.TypeOf((*MockIAMAPI)(nil).DeleteRoleRequest), arg0) +} + +// DeleteRoleWithContext mocks base method. +func (m *MockIAMAPI) DeleteRoleWithContext(arg0 aws.Context, arg1 *iam.DeleteRoleInput, arg2 ...request.Option) (*iam.DeleteRoleOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteRoleWithContext", varargs...) + ret0, _ := ret[0].(*iam.DeleteRoleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteRoleWithContext indicates an expected call of DeleteRoleWithContext. +func (mr *MockIAMAPIMockRecorder) DeleteRoleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRoleWithContext", reflect.TypeOf((*MockIAMAPI)(nil).DeleteRoleWithContext), varargs...) +} + +// DeleteSAMLProvider mocks base method. +func (m *MockIAMAPI) DeleteSAMLProvider(arg0 *iam.DeleteSAMLProviderInput) (*iam.DeleteSAMLProviderOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteSAMLProvider", arg0) + ret0, _ := ret[0].(*iam.DeleteSAMLProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteSAMLProvider indicates an expected call of DeleteSAMLProvider. +func (mr *MockIAMAPIMockRecorder) DeleteSAMLProvider(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSAMLProvider", reflect.TypeOf((*MockIAMAPI)(nil).DeleteSAMLProvider), arg0) +} + +// DeleteSAMLProviderRequest mocks base method. +func (m *MockIAMAPI) DeleteSAMLProviderRequest(arg0 *iam.DeleteSAMLProviderInput) (*request.Request, *iam.DeleteSAMLProviderOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteSAMLProviderRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.DeleteSAMLProviderOutput) + return ret0, ret1 +} + +// DeleteSAMLProviderRequest indicates an expected call of DeleteSAMLProviderRequest. +func (mr *MockIAMAPIMockRecorder) DeleteSAMLProviderRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSAMLProviderRequest", reflect.TypeOf((*MockIAMAPI)(nil).DeleteSAMLProviderRequest), arg0) +} + +// DeleteSAMLProviderWithContext mocks base method. +func (m *MockIAMAPI) DeleteSAMLProviderWithContext(arg0 aws.Context, arg1 *iam.DeleteSAMLProviderInput, arg2 ...request.Option) (*iam.DeleteSAMLProviderOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteSAMLProviderWithContext", varargs...) + ret0, _ := ret[0].(*iam.DeleteSAMLProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteSAMLProviderWithContext indicates an expected call of DeleteSAMLProviderWithContext. +func (mr *MockIAMAPIMockRecorder) DeleteSAMLProviderWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSAMLProviderWithContext", reflect.TypeOf((*MockIAMAPI)(nil).DeleteSAMLProviderWithContext), varargs...) +} + +// DeleteSSHPublicKey mocks base method. +func (m *MockIAMAPI) DeleteSSHPublicKey(arg0 *iam.DeleteSSHPublicKeyInput) (*iam.DeleteSSHPublicKeyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteSSHPublicKey", arg0) + ret0, _ := ret[0].(*iam.DeleteSSHPublicKeyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteSSHPublicKey indicates an expected call of DeleteSSHPublicKey. +func (mr *MockIAMAPIMockRecorder) DeleteSSHPublicKey(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSSHPublicKey", reflect.TypeOf((*MockIAMAPI)(nil).DeleteSSHPublicKey), arg0) +} + +// DeleteSSHPublicKeyRequest mocks base method. +func (m *MockIAMAPI) DeleteSSHPublicKeyRequest(arg0 *iam.DeleteSSHPublicKeyInput) (*request.Request, *iam.DeleteSSHPublicKeyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteSSHPublicKeyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.DeleteSSHPublicKeyOutput) + return ret0, ret1 +} + +// DeleteSSHPublicKeyRequest indicates an expected call of DeleteSSHPublicKeyRequest. +func (mr *MockIAMAPIMockRecorder) DeleteSSHPublicKeyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSSHPublicKeyRequest", reflect.TypeOf((*MockIAMAPI)(nil).DeleteSSHPublicKeyRequest), arg0) +} + +// DeleteSSHPublicKeyWithContext mocks base method. +func (m *MockIAMAPI) DeleteSSHPublicKeyWithContext(arg0 aws.Context, arg1 *iam.DeleteSSHPublicKeyInput, arg2 ...request.Option) (*iam.DeleteSSHPublicKeyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteSSHPublicKeyWithContext", varargs...) + ret0, _ := ret[0].(*iam.DeleteSSHPublicKeyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteSSHPublicKeyWithContext indicates an expected call of DeleteSSHPublicKeyWithContext. +func (mr *MockIAMAPIMockRecorder) DeleteSSHPublicKeyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSSHPublicKeyWithContext", reflect.TypeOf((*MockIAMAPI)(nil).DeleteSSHPublicKeyWithContext), varargs...) +} + +// DeleteServerCertificate mocks base method. +func (m *MockIAMAPI) DeleteServerCertificate(arg0 *iam.DeleteServerCertificateInput) (*iam.DeleteServerCertificateOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteServerCertificate", arg0) + ret0, _ := ret[0].(*iam.DeleteServerCertificateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteServerCertificate indicates an expected call of DeleteServerCertificate. +func (mr *MockIAMAPIMockRecorder) DeleteServerCertificate(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteServerCertificate", reflect.TypeOf((*MockIAMAPI)(nil).DeleteServerCertificate), arg0) +} + +// DeleteServerCertificateRequest mocks base method. +func (m *MockIAMAPI) DeleteServerCertificateRequest(arg0 *iam.DeleteServerCertificateInput) (*request.Request, *iam.DeleteServerCertificateOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteServerCertificateRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.DeleteServerCertificateOutput) + return ret0, ret1 +} + +// DeleteServerCertificateRequest indicates an expected call of DeleteServerCertificateRequest. +func (mr *MockIAMAPIMockRecorder) DeleteServerCertificateRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteServerCertificateRequest", reflect.TypeOf((*MockIAMAPI)(nil).DeleteServerCertificateRequest), arg0) +} + +// DeleteServerCertificateWithContext mocks base method. +func (m *MockIAMAPI) DeleteServerCertificateWithContext(arg0 aws.Context, arg1 *iam.DeleteServerCertificateInput, arg2 ...request.Option) (*iam.DeleteServerCertificateOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteServerCertificateWithContext", varargs...) + ret0, _ := ret[0].(*iam.DeleteServerCertificateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteServerCertificateWithContext indicates an expected call of DeleteServerCertificateWithContext. +func (mr *MockIAMAPIMockRecorder) DeleteServerCertificateWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteServerCertificateWithContext", reflect.TypeOf((*MockIAMAPI)(nil).DeleteServerCertificateWithContext), varargs...) +} + +// DeleteServiceLinkedRole mocks base method. +func (m *MockIAMAPI) DeleteServiceLinkedRole(arg0 *iam.DeleteServiceLinkedRoleInput) (*iam.DeleteServiceLinkedRoleOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteServiceLinkedRole", arg0) + ret0, _ := ret[0].(*iam.DeleteServiceLinkedRoleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteServiceLinkedRole indicates an expected call of DeleteServiceLinkedRole. +func (mr *MockIAMAPIMockRecorder) DeleteServiceLinkedRole(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteServiceLinkedRole", reflect.TypeOf((*MockIAMAPI)(nil).DeleteServiceLinkedRole), arg0) +} + +// DeleteServiceLinkedRoleRequest mocks base method. +func (m *MockIAMAPI) DeleteServiceLinkedRoleRequest(arg0 *iam.DeleteServiceLinkedRoleInput) (*request.Request, *iam.DeleteServiceLinkedRoleOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteServiceLinkedRoleRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.DeleteServiceLinkedRoleOutput) + return ret0, ret1 +} + +// DeleteServiceLinkedRoleRequest indicates an expected call of DeleteServiceLinkedRoleRequest. +func (mr *MockIAMAPIMockRecorder) DeleteServiceLinkedRoleRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteServiceLinkedRoleRequest", reflect.TypeOf((*MockIAMAPI)(nil).DeleteServiceLinkedRoleRequest), arg0) +} + +// DeleteServiceLinkedRoleWithContext mocks base method. +func (m *MockIAMAPI) DeleteServiceLinkedRoleWithContext(arg0 aws.Context, arg1 *iam.DeleteServiceLinkedRoleInput, arg2 ...request.Option) (*iam.DeleteServiceLinkedRoleOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteServiceLinkedRoleWithContext", varargs...) + ret0, _ := ret[0].(*iam.DeleteServiceLinkedRoleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteServiceLinkedRoleWithContext indicates an expected call of DeleteServiceLinkedRoleWithContext. +func (mr *MockIAMAPIMockRecorder) DeleteServiceLinkedRoleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteServiceLinkedRoleWithContext", reflect.TypeOf((*MockIAMAPI)(nil).DeleteServiceLinkedRoleWithContext), varargs...) +} + +// DeleteServiceSpecificCredential mocks base method. +func (m *MockIAMAPI) DeleteServiceSpecificCredential(arg0 *iam.DeleteServiceSpecificCredentialInput) (*iam.DeleteServiceSpecificCredentialOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteServiceSpecificCredential", arg0) + ret0, _ := ret[0].(*iam.DeleteServiceSpecificCredentialOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteServiceSpecificCredential indicates an expected call of DeleteServiceSpecificCredential. +func (mr *MockIAMAPIMockRecorder) DeleteServiceSpecificCredential(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteServiceSpecificCredential", reflect.TypeOf((*MockIAMAPI)(nil).DeleteServiceSpecificCredential), arg0) +} + +// DeleteServiceSpecificCredentialRequest mocks base method. +func (m *MockIAMAPI) DeleteServiceSpecificCredentialRequest(arg0 *iam.DeleteServiceSpecificCredentialInput) (*request.Request, *iam.DeleteServiceSpecificCredentialOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteServiceSpecificCredentialRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.DeleteServiceSpecificCredentialOutput) + return ret0, ret1 +} + +// DeleteServiceSpecificCredentialRequest indicates an expected call of DeleteServiceSpecificCredentialRequest. +func (mr *MockIAMAPIMockRecorder) DeleteServiceSpecificCredentialRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteServiceSpecificCredentialRequest", reflect.TypeOf((*MockIAMAPI)(nil).DeleteServiceSpecificCredentialRequest), arg0) +} + +// DeleteServiceSpecificCredentialWithContext mocks base method. +func (m *MockIAMAPI) DeleteServiceSpecificCredentialWithContext(arg0 aws.Context, arg1 *iam.DeleteServiceSpecificCredentialInput, arg2 ...request.Option) (*iam.DeleteServiceSpecificCredentialOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteServiceSpecificCredentialWithContext", varargs...) + ret0, _ := ret[0].(*iam.DeleteServiceSpecificCredentialOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteServiceSpecificCredentialWithContext indicates an expected call of DeleteServiceSpecificCredentialWithContext. +func (mr *MockIAMAPIMockRecorder) DeleteServiceSpecificCredentialWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteServiceSpecificCredentialWithContext", reflect.TypeOf((*MockIAMAPI)(nil).DeleteServiceSpecificCredentialWithContext), varargs...) +} + +// DeleteSigningCertificate mocks base method. +func (m *MockIAMAPI) DeleteSigningCertificate(arg0 *iam.DeleteSigningCertificateInput) (*iam.DeleteSigningCertificateOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteSigningCertificate", arg0) + ret0, _ := ret[0].(*iam.DeleteSigningCertificateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteSigningCertificate indicates an expected call of DeleteSigningCertificate. +func (mr *MockIAMAPIMockRecorder) DeleteSigningCertificate(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSigningCertificate", reflect.TypeOf((*MockIAMAPI)(nil).DeleteSigningCertificate), arg0) +} + +// DeleteSigningCertificateRequest mocks base method. +func (m *MockIAMAPI) DeleteSigningCertificateRequest(arg0 *iam.DeleteSigningCertificateInput) (*request.Request, *iam.DeleteSigningCertificateOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteSigningCertificateRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.DeleteSigningCertificateOutput) + return ret0, ret1 +} + +// DeleteSigningCertificateRequest indicates an expected call of DeleteSigningCertificateRequest. +func (mr *MockIAMAPIMockRecorder) DeleteSigningCertificateRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSigningCertificateRequest", reflect.TypeOf((*MockIAMAPI)(nil).DeleteSigningCertificateRequest), arg0) +} + +// DeleteSigningCertificateWithContext mocks base method. +func (m *MockIAMAPI) DeleteSigningCertificateWithContext(arg0 aws.Context, arg1 *iam.DeleteSigningCertificateInput, arg2 ...request.Option) (*iam.DeleteSigningCertificateOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteSigningCertificateWithContext", varargs...) + ret0, _ := ret[0].(*iam.DeleteSigningCertificateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteSigningCertificateWithContext indicates an expected call of DeleteSigningCertificateWithContext. +func (mr *MockIAMAPIMockRecorder) DeleteSigningCertificateWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSigningCertificateWithContext", reflect.TypeOf((*MockIAMAPI)(nil).DeleteSigningCertificateWithContext), varargs...) +} + +// DeleteUser mocks base method. +func (m *MockIAMAPI) DeleteUser(arg0 *iam.DeleteUserInput) (*iam.DeleteUserOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteUser", arg0) + ret0, _ := ret[0].(*iam.DeleteUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteUser indicates an expected call of DeleteUser. +func (mr *MockIAMAPIMockRecorder) DeleteUser(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUser", reflect.TypeOf((*MockIAMAPI)(nil).DeleteUser), arg0) +} + +// DeleteUserPermissionsBoundary mocks base method. +func (m *MockIAMAPI) DeleteUserPermissionsBoundary(arg0 *iam.DeleteUserPermissionsBoundaryInput) (*iam.DeleteUserPermissionsBoundaryOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteUserPermissionsBoundary", arg0) + ret0, _ := ret[0].(*iam.DeleteUserPermissionsBoundaryOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteUserPermissionsBoundary indicates an expected call of DeleteUserPermissionsBoundary. +func (mr *MockIAMAPIMockRecorder) DeleteUserPermissionsBoundary(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserPermissionsBoundary", reflect.TypeOf((*MockIAMAPI)(nil).DeleteUserPermissionsBoundary), arg0) +} + +// DeleteUserPermissionsBoundaryRequest mocks base method. +func (m *MockIAMAPI) DeleteUserPermissionsBoundaryRequest(arg0 *iam.DeleteUserPermissionsBoundaryInput) (*request.Request, *iam.DeleteUserPermissionsBoundaryOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteUserPermissionsBoundaryRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.DeleteUserPermissionsBoundaryOutput) + return ret0, ret1 +} + +// DeleteUserPermissionsBoundaryRequest indicates an expected call of DeleteUserPermissionsBoundaryRequest. +func (mr *MockIAMAPIMockRecorder) DeleteUserPermissionsBoundaryRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserPermissionsBoundaryRequest", reflect.TypeOf((*MockIAMAPI)(nil).DeleteUserPermissionsBoundaryRequest), arg0) +} + +// DeleteUserPermissionsBoundaryWithContext mocks base method. +func (m *MockIAMAPI) DeleteUserPermissionsBoundaryWithContext(arg0 aws.Context, arg1 *iam.DeleteUserPermissionsBoundaryInput, arg2 ...request.Option) (*iam.DeleteUserPermissionsBoundaryOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteUserPermissionsBoundaryWithContext", varargs...) + ret0, _ := ret[0].(*iam.DeleteUserPermissionsBoundaryOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteUserPermissionsBoundaryWithContext indicates an expected call of DeleteUserPermissionsBoundaryWithContext. +func (mr *MockIAMAPIMockRecorder) DeleteUserPermissionsBoundaryWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserPermissionsBoundaryWithContext", reflect.TypeOf((*MockIAMAPI)(nil).DeleteUserPermissionsBoundaryWithContext), varargs...) +} + +// DeleteUserPolicy mocks base method. +func (m *MockIAMAPI) DeleteUserPolicy(arg0 *iam.DeleteUserPolicyInput) (*iam.DeleteUserPolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteUserPolicy", arg0) + ret0, _ := ret[0].(*iam.DeleteUserPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteUserPolicy indicates an expected call of DeleteUserPolicy. +func (mr *MockIAMAPIMockRecorder) DeleteUserPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserPolicy", reflect.TypeOf((*MockIAMAPI)(nil).DeleteUserPolicy), arg0) +} + +// DeleteUserPolicyRequest mocks base method. +func (m *MockIAMAPI) DeleteUserPolicyRequest(arg0 *iam.DeleteUserPolicyInput) (*request.Request, *iam.DeleteUserPolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteUserPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.DeleteUserPolicyOutput) + return ret0, ret1 +} + +// DeleteUserPolicyRequest indicates an expected call of DeleteUserPolicyRequest. +func (mr *MockIAMAPIMockRecorder) DeleteUserPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserPolicyRequest", reflect.TypeOf((*MockIAMAPI)(nil).DeleteUserPolicyRequest), arg0) +} + +// DeleteUserPolicyWithContext mocks base method. +func (m *MockIAMAPI) DeleteUserPolicyWithContext(arg0 aws.Context, arg1 *iam.DeleteUserPolicyInput, arg2 ...request.Option) (*iam.DeleteUserPolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteUserPolicyWithContext", varargs...) + ret0, _ := ret[0].(*iam.DeleteUserPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteUserPolicyWithContext indicates an expected call of DeleteUserPolicyWithContext. +func (mr *MockIAMAPIMockRecorder) DeleteUserPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserPolicyWithContext", reflect.TypeOf((*MockIAMAPI)(nil).DeleteUserPolicyWithContext), varargs...) +} + +// DeleteUserRequest mocks base method. +func (m *MockIAMAPI) DeleteUserRequest(arg0 *iam.DeleteUserInput) (*request.Request, *iam.DeleteUserOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteUserRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.DeleteUserOutput) + return ret0, ret1 +} + +// DeleteUserRequest indicates an expected call of DeleteUserRequest. +func (mr *MockIAMAPIMockRecorder) DeleteUserRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserRequest", reflect.TypeOf((*MockIAMAPI)(nil).DeleteUserRequest), arg0) +} + +// DeleteUserWithContext mocks base method. +func (m *MockIAMAPI) DeleteUserWithContext(arg0 aws.Context, arg1 *iam.DeleteUserInput, arg2 ...request.Option) (*iam.DeleteUserOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteUserWithContext", varargs...) + ret0, _ := ret[0].(*iam.DeleteUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteUserWithContext indicates an expected call of DeleteUserWithContext. +func (mr *MockIAMAPIMockRecorder) DeleteUserWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserWithContext", reflect.TypeOf((*MockIAMAPI)(nil).DeleteUserWithContext), varargs...) +} + +// DeleteVirtualMFADevice mocks base method. +func (m *MockIAMAPI) DeleteVirtualMFADevice(arg0 *iam.DeleteVirtualMFADeviceInput) (*iam.DeleteVirtualMFADeviceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteVirtualMFADevice", arg0) + ret0, _ := ret[0].(*iam.DeleteVirtualMFADeviceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteVirtualMFADevice indicates an expected call of DeleteVirtualMFADevice. +func (mr *MockIAMAPIMockRecorder) DeleteVirtualMFADevice(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVirtualMFADevice", reflect.TypeOf((*MockIAMAPI)(nil).DeleteVirtualMFADevice), arg0) +} + +// DeleteVirtualMFADeviceRequest mocks base method. +func (m *MockIAMAPI) DeleteVirtualMFADeviceRequest(arg0 *iam.DeleteVirtualMFADeviceInput) (*request.Request, *iam.DeleteVirtualMFADeviceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteVirtualMFADeviceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.DeleteVirtualMFADeviceOutput) + return ret0, ret1 +} + +// DeleteVirtualMFADeviceRequest indicates an expected call of DeleteVirtualMFADeviceRequest. +func (mr *MockIAMAPIMockRecorder) DeleteVirtualMFADeviceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVirtualMFADeviceRequest", reflect.TypeOf((*MockIAMAPI)(nil).DeleteVirtualMFADeviceRequest), arg0) +} + +// DeleteVirtualMFADeviceWithContext mocks base method. +func (m *MockIAMAPI) DeleteVirtualMFADeviceWithContext(arg0 aws.Context, arg1 *iam.DeleteVirtualMFADeviceInput, arg2 ...request.Option) (*iam.DeleteVirtualMFADeviceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteVirtualMFADeviceWithContext", varargs...) + ret0, _ := ret[0].(*iam.DeleteVirtualMFADeviceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteVirtualMFADeviceWithContext indicates an expected call of DeleteVirtualMFADeviceWithContext. +func (mr *MockIAMAPIMockRecorder) DeleteVirtualMFADeviceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVirtualMFADeviceWithContext", reflect.TypeOf((*MockIAMAPI)(nil).DeleteVirtualMFADeviceWithContext), varargs...) +} + +// DetachGroupPolicy mocks base method. +func (m *MockIAMAPI) DetachGroupPolicy(arg0 *iam.DetachGroupPolicyInput) (*iam.DetachGroupPolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DetachGroupPolicy", arg0) + ret0, _ := ret[0].(*iam.DetachGroupPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DetachGroupPolicy indicates an expected call of DetachGroupPolicy. +func (mr *MockIAMAPIMockRecorder) DetachGroupPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetachGroupPolicy", reflect.TypeOf((*MockIAMAPI)(nil).DetachGroupPolicy), arg0) +} + +// DetachGroupPolicyRequest mocks base method. +func (m *MockIAMAPI) DetachGroupPolicyRequest(arg0 *iam.DetachGroupPolicyInput) (*request.Request, *iam.DetachGroupPolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DetachGroupPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.DetachGroupPolicyOutput) + return ret0, ret1 +} + +// DetachGroupPolicyRequest indicates an expected call of DetachGroupPolicyRequest. +func (mr *MockIAMAPIMockRecorder) DetachGroupPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetachGroupPolicyRequest", reflect.TypeOf((*MockIAMAPI)(nil).DetachGroupPolicyRequest), arg0) +} + +// DetachGroupPolicyWithContext mocks base method. +func (m *MockIAMAPI) DetachGroupPolicyWithContext(arg0 aws.Context, arg1 *iam.DetachGroupPolicyInput, arg2 ...request.Option) (*iam.DetachGroupPolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DetachGroupPolicyWithContext", varargs...) + ret0, _ := ret[0].(*iam.DetachGroupPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DetachGroupPolicyWithContext indicates an expected call of DetachGroupPolicyWithContext. +func (mr *MockIAMAPIMockRecorder) DetachGroupPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetachGroupPolicyWithContext", reflect.TypeOf((*MockIAMAPI)(nil).DetachGroupPolicyWithContext), varargs...) +} + +// DetachRolePolicy mocks base method. +func (m *MockIAMAPI) DetachRolePolicy(arg0 *iam.DetachRolePolicyInput) (*iam.DetachRolePolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DetachRolePolicy", arg0) + ret0, _ := ret[0].(*iam.DetachRolePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DetachRolePolicy indicates an expected call of DetachRolePolicy. +func (mr *MockIAMAPIMockRecorder) DetachRolePolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetachRolePolicy", reflect.TypeOf((*MockIAMAPI)(nil).DetachRolePolicy), arg0) +} + +// DetachRolePolicyRequest mocks base method. +func (m *MockIAMAPI) DetachRolePolicyRequest(arg0 *iam.DetachRolePolicyInput) (*request.Request, *iam.DetachRolePolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DetachRolePolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.DetachRolePolicyOutput) + return ret0, ret1 +} + +// DetachRolePolicyRequest indicates an expected call of DetachRolePolicyRequest. +func (mr *MockIAMAPIMockRecorder) DetachRolePolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetachRolePolicyRequest", reflect.TypeOf((*MockIAMAPI)(nil).DetachRolePolicyRequest), arg0) +} + +// DetachRolePolicyWithContext mocks base method. +func (m *MockIAMAPI) DetachRolePolicyWithContext(arg0 aws.Context, arg1 *iam.DetachRolePolicyInput, arg2 ...request.Option) (*iam.DetachRolePolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DetachRolePolicyWithContext", varargs...) + ret0, _ := ret[0].(*iam.DetachRolePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DetachRolePolicyWithContext indicates an expected call of DetachRolePolicyWithContext. +func (mr *MockIAMAPIMockRecorder) DetachRolePolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetachRolePolicyWithContext", reflect.TypeOf((*MockIAMAPI)(nil).DetachRolePolicyWithContext), varargs...) +} + +// DetachUserPolicy mocks base method. +func (m *MockIAMAPI) DetachUserPolicy(arg0 *iam.DetachUserPolicyInput) (*iam.DetachUserPolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DetachUserPolicy", arg0) + ret0, _ := ret[0].(*iam.DetachUserPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DetachUserPolicy indicates an expected call of DetachUserPolicy. +func (mr *MockIAMAPIMockRecorder) DetachUserPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetachUserPolicy", reflect.TypeOf((*MockIAMAPI)(nil).DetachUserPolicy), arg0) +} + +// DetachUserPolicyRequest mocks base method. +func (m *MockIAMAPI) DetachUserPolicyRequest(arg0 *iam.DetachUserPolicyInput) (*request.Request, *iam.DetachUserPolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DetachUserPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.DetachUserPolicyOutput) + return ret0, ret1 +} + +// DetachUserPolicyRequest indicates an expected call of DetachUserPolicyRequest. +func (mr *MockIAMAPIMockRecorder) DetachUserPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetachUserPolicyRequest", reflect.TypeOf((*MockIAMAPI)(nil).DetachUserPolicyRequest), arg0) +} + +// DetachUserPolicyWithContext mocks base method. +func (m *MockIAMAPI) DetachUserPolicyWithContext(arg0 aws.Context, arg1 *iam.DetachUserPolicyInput, arg2 ...request.Option) (*iam.DetachUserPolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DetachUserPolicyWithContext", varargs...) + ret0, _ := ret[0].(*iam.DetachUserPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DetachUserPolicyWithContext indicates an expected call of DetachUserPolicyWithContext. +func (mr *MockIAMAPIMockRecorder) DetachUserPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetachUserPolicyWithContext", reflect.TypeOf((*MockIAMAPI)(nil).DetachUserPolicyWithContext), varargs...) +} + +// EnableMFADevice mocks base method. +func (m *MockIAMAPI) EnableMFADevice(arg0 *iam.EnableMFADeviceInput) (*iam.EnableMFADeviceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "EnableMFADevice", arg0) + ret0, _ := ret[0].(*iam.EnableMFADeviceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// EnableMFADevice indicates an expected call of EnableMFADevice. +func (mr *MockIAMAPIMockRecorder) EnableMFADevice(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnableMFADevice", reflect.TypeOf((*MockIAMAPI)(nil).EnableMFADevice), arg0) +} + +// EnableMFADeviceRequest mocks base method. +func (m *MockIAMAPI) EnableMFADeviceRequest(arg0 *iam.EnableMFADeviceInput) (*request.Request, *iam.EnableMFADeviceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "EnableMFADeviceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.EnableMFADeviceOutput) + return ret0, ret1 +} + +// EnableMFADeviceRequest indicates an expected call of EnableMFADeviceRequest. +func (mr *MockIAMAPIMockRecorder) EnableMFADeviceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnableMFADeviceRequest", reflect.TypeOf((*MockIAMAPI)(nil).EnableMFADeviceRequest), arg0) +} + +// EnableMFADeviceWithContext mocks base method. +func (m *MockIAMAPI) EnableMFADeviceWithContext(arg0 aws.Context, arg1 *iam.EnableMFADeviceInput, arg2 ...request.Option) (*iam.EnableMFADeviceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "EnableMFADeviceWithContext", varargs...) + ret0, _ := ret[0].(*iam.EnableMFADeviceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// EnableMFADeviceWithContext indicates an expected call of EnableMFADeviceWithContext. +func (mr *MockIAMAPIMockRecorder) EnableMFADeviceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnableMFADeviceWithContext", reflect.TypeOf((*MockIAMAPI)(nil).EnableMFADeviceWithContext), varargs...) +} + +// GenerateCredentialReport mocks base method. +func (m *MockIAMAPI) GenerateCredentialReport(arg0 *iam.GenerateCredentialReportInput) (*iam.GenerateCredentialReportOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GenerateCredentialReport", arg0) + ret0, _ := ret[0].(*iam.GenerateCredentialReportOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GenerateCredentialReport indicates an expected call of GenerateCredentialReport. +func (mr *MockIAMAPIMockRecorder) GenerateCredentialReport(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateCredentialReport", reflect.TypeOf((*MockIAMAPI)(nil).GenerateCredentialReport), arg0) +} + +// GenerateCredentialReportRequest mocks base method. +func (m *MockIAMAPI) GenerateCredentialReportRequest(arg0 *iam.GenerateCredentialReportInput) (*request.Request, *iam.GenerateCredentialReportOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GenerateCredentialReportRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.GenerateCredentialReportOutput) + return ret0, ret1 +} + +// GenerateCredentialReportRequest indicates an expected call of GenerateCredentialReportRequest. +func (mr *MockIAMAPIMockRecorder) GenerateCredentialReportRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateCredentialReportRequest", reflect.TypeOf((*MockIAMAPI)(nil).GenerateCredentialReportRequest), arg0) +} + +// GenerateCredentialReportWithContext mocks base method. +func (m *MockIAMAPI) GenerateCredentialReportWithContext(arg0 aws.Context, arg1 *iam.GenerateCredentialReportInput, arg2 ...request.Option) (*iam.GenerateCredentialReportOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GenerateCredentialReportWithContext", varargs...) + ret0, _ := ret[0].(*iam.GenerateCredentialReportOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GenerateCredentialReportWithContext indicates an expected call of GenerateCredentialReportWithContext. +func (mr *MockIAMAPIMockRecorder) GenerateCredentialReportWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateCredentialReportWithContext", reflect.TypeOf((*MockIAMAPI)(nil).GenerateCredentialReportWithContext), varargs...) +} + +// GenerateOrganizationsAccessReport mocks base method. +func (m *MockIAMAPI) GenerateOrganizationsAccessReport(arg0 *iam.GenerateOrganizationsAccessReportInput) (*iam.GenerateOrganizationsAccessReportOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GenerateOrganizationsAccessReport", arg0) + ret0, _ := ret[0].(*iam.GenerateOrganizationsAccessReportOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GenerateOrganizationsAccessReport indicates an expected call of GenerateOrganizationsAccessReport. +func (mr *MockIAMAPIMockRecorder) GenerateOrganizationsAccessReport(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateOrganizationsAccessReport", reflect.TypeOf((*MockIAMAPI)(nil).GenerateOrganizationsAccessReport), arg0) +} + +// GenerateOrganizationsAccessReportRequest mocks base method. +func (m *MockIAMAPI) GenerateOrganizationsAccessReportRequest(arg0 *iam.GenerateOrganizationsAccessReportInput) (*request.Request, *iam.GenerateOrganizationsAccessReportOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GenerateOrganizationsAccessReportRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.GenerateOrganizationsAccessReportOutput) + return ret0, ret1 +} + +// GenerateOrganizationsAccessReportRequest indicates an expected call of GenerateOrganizationsAccessReportRequest. +func (mr *MockIAMAPIMockRecorder) GenerateOrganizationsAccessReportRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateOrganizationsAccessReportRequest", reflect.TypeOf((*MockIAMAPI)(nil).GenerateOrganizationsAccessReportRequest), arg0) +} + +// GenerateOrganizationsAccessReportWithContext mocks base method. +func (m *MockIAMAPI) GenerateOrganizationsAccessReportWithContext(arg0 aws.Context, arg1 *iam.GenerateOrganizationsAccessReportInput, arg2 ...request.Option) (*iam.GenerateOrganizationsAccessReportOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GenerateOrganizationsAccessReportWithContext", varargs...) + ret0, _ := ret[0].(*iam.GenerateOrganizationsAccessReportOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GenerateOrganizationsAccessReportWithContext indicates an expected call of GenerateOrganizationsAccessReportWithContext. +func (mr *MockIAMAPIMockRecorder) GenerateOrganizationsAccessReportWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateOrganizationsAccessReportWithContext", reflect.TypeOf((*MockIAMAPI)(nil).GenerateOrganizationsAccessReportWithContext), varargs...) +} + +// GenerateServiceLastAccessedDetails mocks base method. +func (m *MockIAMAPI) GenerateServiceLastAccessedDetails(arg0 *iam.GenerateServiceLastAccessedDetailsInput) (*iam.GenerateServiceLastAccessedDetailsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GenerateServiceLastAccessedDetails", arg0) + ret0, _ := ret[0].(*iam.GenerateServiceLastAccessedDetailsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GenerateServiceLastAccessedDetails indicates an expected call of GenerateServiceLastAccessedDetails. +func (mr *MockIAMAPIMockRecorder) GenerateServiceLastAccessedDetails(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateServiceLastAccessedDetails", reflect.TypeOf((*MockIAMAPI)(nil).GenerateServiceLastAccessedDetails), arg0) +} + +// GenerateServiceLastAccessedDetailsRequest mocks base method. +func (m *MockIAMAPI) GenerateServiceLastAccessedDetailsRequest(arg0 *iam.GenerateServiceLastAccessedDetailsInput) (*request.Request, *iam.GenerateServiceLastAccessedDetailsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GenerateServiceLastAccessedDetailsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.GenerateServiceLastAccessedDetailsOutput) + return ret0, ret1 +} + +// GenerateServiceLastAccessedDetailsRequest indicates an expected call of GenerateServiceLastAccessedDetailsRequest. +func (mr *MockIAMAPIMockRecorder) GenerateServiceLastAccessedDetailsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateServiceLastAccessedDetailsRequest", reflect.TypeOf((*MockIAMAPI)(nil).GenerateServiceLastAccessedDetailsRequest), arg0) +} + +// GenerateServiceLastAccessedDetailsWithContext mocks base method. +func (m *MockIAMAPI) GenerateServiceLastAccessedDetailsWithContext(arg0 aws.Context, arg1 *iam.GenerateServiceLastAccessedDetailsInput, arg2 ...request.Option) (*iam.GenerateServiceLastAccessedDetailsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GenerateServiceLastAccessedDetailsWithContext", varargs...) + ret0, _ := ret[0].(*iam.GenerateServiceLastAccessedDetailsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GenerateServiceLastAccessedDetailsWithContext indicates an expected call of GenerateServiceLastAccessedDetailsWithContext. +func (mr *MockIAMAPIMockRecorder) GenerateServiceLastAccessedDetailsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateServiceLastAccessedDetailsWithContext", reflect.TypeOf((*MockIAMAPI)(nil).GenerateServiceLastAccessedDetailsWithContext), varargs...) +} + +// GetAccessKeyLastUsed mocks base method. +func (m *MockIAMAPI) GetAccessKeyLastUsed(arg0 *iam.GetAccessKeyLastUsedInput) (*iam.GetAccessKeyLastUsedOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetAccessKeyLastUsed", arg0) + ret0, _ := ret[0].(*iam.GetAccessKeyLastUsedOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetAccessKeyLastUsed indicates an expected call of GetAccessKeyLastUsed. +func (mr *MockIAMAPIMockRecorder) GetAccessKeyLastUsed(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccessKeyLastUsed", reflect.TypeOf((*MockIAMAPI)(nil).GetAccessKeyLastUsed), arg0) +} + +// GetAccessKeyLastUsedRequest mocks base method. +func (m *MockIAMAPI) GetAccessKeyLastUsedRequest(arg0 *iam.GetAccessKeyLastUsedInput) (*request.Request, *iam.GetAccessKeyLastUsedOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetAccessKeyLastUsedRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.GetAccessKeyLastUsedOutput) + return ret0, ret1 +} + +// GetAccessKeyLastUsedRequest indicates an expected call of GetAccessKeyLastUsedRequest. +func (mr *MockIAMAPIMockRecorder) GetAccessKeyLastUsedRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccessKeyLastUsedRequest", reflect.TypeOf((*MockIAMAPI)(nil).GetAccessKeyLastUsedRequest), arg0) +} + +// GetAccessKeyLastUsedWithContext mocks base method. +func (m *MockIAMAPI) GetAccessKeyLastUsedWithContext(arg0 aws.Context, arg1 *iam.GetAccessKeyLastUsedInput, arg2 ...request.Option) (*iam.GetAccessKeyLastUsedOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetAccessKeyLastUsedWithContext", varargs...) + ret0, _ := ret[0].(*iam.GetAccessKeyLastUsedOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetAccessKeyLastUsedWithContext indicates an expected call of GetAccessKeyLastUsedWithContext. +func (mr *MockIAMAPIMockRecorder) GetAccessKeyLastUsedWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccessKeyLastUsedWithContext", reflect.TypeOf((*MockIAMAPI)(nil).GetAccessKeyLastUsedWithContext), varargs...) +} + +// GetAccountAuthorizationDetails mocks base method. +func (m *MockIAMAPI) GetAccountAuthorizationDetails(arg0 *iam.GetAccountAuthorizationDetailsInput) (*iam.GetAccountAuthorizationDetailsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetAccountAuthorizationDetails", arg0) + ret0, _ := ret[0].(*iam.GetAccountAuthorizationDetailsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetAccountAuthorizationDetails indicates an expected call of GetAccountAuthorizationDetails. +func (mr *MockIAMAPIMockRecorder) GetAccountAuthorizationDetails(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccountAuthorizationDetails", reflect.TypeOf((*MockIAMAPI)(nil).GetAccountAuthorizationDetails), arg0) +} + +// GetAccountAuthorizationDetailsPages mocks base method. +func (m *MockIAMAPI) GetAccountAuthorizationDetailsPages(arg0 *iam.GetAccountAuthorizationDetailsInput, arg1 func(*iam.GetAccountAuthorizationDetailsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetAccountAuthorizationDetailsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetAccountAuthorizationDetailsPages indicates an expected call of GetAccountAuthorizationDetailsPages. +func (mr *MockIAMAPIMockRecorder) GetAccountAuthorizationDetailsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccountAuthorizationDetailsPages", reflect.TypeOf((*MockIAMAPI)(nil).GetAccountAuthorizationDetailsPages), arg0, arg1) +} + +// GetAccountAuthorizationDetailsPagesWithContext mocks base method. +func (m *MockIAMAPI) GetAccountAuthorizationDetailsPagesWithContext(arg0 aws.Context, arg1 *iam.GetAccountAuthorizationDetailsInput, arg2 func(*iam.GetAccountAuthorizationDetailsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetAccountAuthorizationDetailsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetAccountAuthorizationDetailsPagesWithContext indicates an expected call of GetAccountAuthorizationDetailsPagesWithContext. +func (mr *MockIAMAPIMockRecorder) GetAccountAuthorizationDetailsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccountAuthorizationDetailsPagesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).GetAccountAuthorizationDetailsPagesWithContext), varargs...) +} + +// GetAccountAuthorizationDetailsRequest mocks base method. +func (m *MockIAMAPI) GetAccountAuthorizationDetailsRequest(arg0 *iam.GetAccountAuthorizationDetailsInput) (*request.Request, *iam.GetAccountAuthorizationDetailsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetAccountAuthorizationDetailsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.GetAccountAuthorizationDetailsOutput) + return ret0, ret1 +} + +// GetAccountAuthorizationDetailsRequest indicates an expected call of GetAccountAuthorizationDetailsRequest. +func (mr *MockIAMAPIMockRecorder) GetAccountAuthorizationDetailsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccountAuthorizationDetailsRequest", reflect.TypeOf((*MockIAMAPI)(nil).GetAccountAuthorizationDetailsRequest), arg0) +} + +// GetAccountAuthorizationDetailsWithContext mocks base method. +func (m *MockIAMAPI) GetAccountAuthorizationDetailsWithContext(arg0 aws.Context, arg1 *iam.GetAccountAuthorizationDetailsInput, arg2 ...request.Option) (*iam.GetAccountAuthorizationDetailsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetAccountAuthorizationDetailsWithContext", varargs...) + ret0, _ := ret[0].(*iam.GetAccountAuthorizationDetailsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetAccountAuthorizationDetailsWithContext indicates an expected call of GetAccountAuthorizationDetailsWithContext. +func (mr *MockIAMAPIMockRecorder) GetAccountAuthorizationDetailsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccountAuthorizationDetailsWithContext", reflect.TypeOf((*MockIAMAPI)(nil).GetAccountAuthorizationDetailsWithContext), varargs...) +} + +// GetAccountPasswordPolicy mocks base method. +func (m *MockIAMAPI) GetAccountPasswordPolicy(arg0 *iam.GetAccountPasswordPolicyInput) (*iam.GetAccountPasswordPolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetAccountPasswordPolicy", arg0) + ret0, _ := ret[0].(*iam.GetAccountPasswordPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetAccountPasswordPolicy indicates an expected call of GetAccountPasswordPolicy. +func (mr *MockIAMAPIMockRecorder) GetAccountPasswordPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccountPasswordPolicy", reflect.TypeOf((*MockIAMAPI)(nil).GetAccountPasswordPolicy), arg0) +} + +// GetAccountPasswordPolicyRequest mocks base method. +func (m *MockIAMAPI) GetAccountPasswordPolicyRequest(arg0 *iam.GetAccountPasswordPolicyInput) (*request.Request, *iam.GetAccountPasswordPolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetAccountPasswordPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.GetAccountPasswordPolicyOutput) + return ret0, ret1 +} + +// GetAccountPasswordPolicyRequest indicates an expected call of GetAccountPasswordPolicyRequest. +func (mr *MockIAMAPIMockRecorder) GetAccountPasswordPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccountPasswordPolicyRequest", reflect.TypeOf((*MockIAMAPI)(nil).GetAccountPasswordPolicyRequest), arg0) +} + +// GetAccountPasswordPolicyWithContext mocks base method. +func (m *MockIAMAPI) GetAccountPasswordPolicyWithContext(arg0 aws.Context, arg1 *iam.GetAccountPasswordPolicyInput, arg2 ...request.Option) (*iam.GetAccountPasswordPolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetAccountPasswordPolicyWithContext", varargs...) + ret0, _ := ret[0].(*iam.GetAccountPasswordPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetAccountPasswordPolicyWithContext indicates an expected call of GetAccountPasswordPolicyWithContext. +func (mr *MockIAMAPIMockRecorder) GetAccountPasswordPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccountPasswordPolicyWithContext", reflect.TypeOf((*MockIAMAPI)(nil).GetAccountPasswordPolicyWithContext), varargs...) +} + +// GetAccountSummary mocks base method. +func (m *MockIAMAPI) GetAccountSummary(arg0 *iam.GetAccountSummaryInput) (*iam.GetAccountSummaryOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetAccountSummary", arg0) + ret0, _ := ret[0].(*iam.GetAccountSummaryOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetAccountSummary indicates an expected call of GetAccountSummary. +func (mr *MockIAMAPIMockRecorder) GetAccountSummary(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccountSummary", reflect.TypeOf((*MockIAMAPI)(nil).GetAccountSummary), arg0) +} + +// GetAccountSummaryRequest mocks base method. +func (m *MockIAMAPI) GetAccountSummaryRequest(arg0 *iam.GetAccountSummaryInput) (*request.Request, *iam.GetAccountSummaryOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetAccountSummaryRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.GetAccountSummaryOutput) + return ret0, ret1 +} + +// GetAccountSummaryRequest indicates an expected call of GetAccountSummaryRequest. +func (mr *MockIAMAPIMockRecorder) GetAccountSummaryRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccountSummaryRequest", reflect.TypeOf((*MockIAMAPI)(nil).GetAccountSummaryRequest), arg0) +} + +// GetAccountSummaryWithContext mocks base method. +func (m *MockIAMAPI) GetAccountSummaryWithContext(arg0 aws.Context, arg1 *iam.GetAccountSummaryInput, arg2 ...request.Option) (*iam.GetAccountSummaryOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetAccountSummaryWithContext", varargs...) + ret0, _ := ret[0].(*iam.GetAccountSummaryOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetAccountSummaryWithContext indicates an expected call of GetAccountSummaryWithContext. +func (mr *MockIAMAPIMockRecorder) GetAccountSummaryWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccountSummaryWithContext", reflect.TypeOf((*MockIAMAPI)(nil).GetAccountSummaryWithContext), varargs...) +} + +// GetContextKeysForCustomPolicy mocks base method. +func (m *MockIAMAPI) GetContextKeysForCustomPolicy(arg0 *iam.GetContextKeysForCustomPolicyInput) (*iam.GetContextKeysForPolicyResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetContextKeysForCustomPolicy", arg0) + ret0, _ := ret[0].(*iam.GetContextKeysForPolicyResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetContextKeysForCustomPolicy indicates an expected call of GetContextKeysForCustomPolicy. +func (mr *MockIAMAPIMockRecorder) GetContextKeysForCustomPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetContextKeysForCustomPolicy", reflect.TypeOf((*MockIAMAPI)(nil).GetContextKeysForCustomPolicy), arg0) +} + +// GetContextKeysForCustomPolicyRequest mocks base method. +func (m *MockIAMAPI) GetContextKeysForCustomPolicyRequest(arg0 *iam.GetContextKeysForCustomPolicyInput) (*request.Request, *iam.GetContextKeysForPolicyResponse) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetContextKeysForCustomPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.GetContextKeysForPolicyResponse) + return ret0, ret1 +} + +// GetContextKeysForCustomPolicyRequest indicates an expected call of GetContextKeysForCustomPolicyRequest. +func (mr *MockIAMAPIMockRecorder) GetContextKeysForCustomPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetContextKeysForCustomPolicyRequest", reflect.TypeOf((*MockIAMAPI)(nil).GetContextKeysForCustomPolicyRequest), arg0) +} + +// GetContextKeysForCustomPolicyWithContext mocks base method. +func (m *MockIAMAPI) GetContextKeysForCustomPolicyWithContext(arg0 aws.Context, arg1 *iam.GetContextKeysForCustomPolicyInput, arg2 ...request.Option) (*iam.GetContextKeysForPolicyResponse, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetContextKeysForCustomPolicyWithContext", varargs...) + ret0, _ := ret[0].(*iam.GetContextKeysForPolicyResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetContextKeysForCustomPolicyWithContext indicates an expected call of GetContextKeysForCustomPolicyWithContext. +func (mr *MockIAMAPIMockRecorder) GetContextKeysForCustomPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetContextKeysForCustomPolicyWithContext", reflect.TypeOf((*MockIAMAPI)(nil).GetContextKeysForCustomPolicyWithContext), varargs...) +} + +// GetContextKeysForPrincipalPolicy mocks base method. +func (m *MockIAMAPI) GetContextKeysForPrincipalPolicy(arg0 *iam.GetContextKeysForPrincipalPolicyInput) (*iam.GetContextKeysForPolicyResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetContextKeysForPrincipalPolicy", arg0) + ret0, _ := ret[0].(*iam.GetContextKeysForPolicyResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetContextKeysForPrincipalPolicy indicates an expected call of GetContextKeysForPrincipalPolicy. +func (mr *MockIAMAPIMockRecorder) GetContextKeysForPrincipalPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetContextKeysForPrincipalPolicy", reflect.TypeOf((*MockIAMAPI)(nil).GetContextKeysForPrincipalPolicy), arg0) +} + +// GetContextKeysForPrincipalPolicyRequest mocks base method. +func (m *MockIAMAPI) GetContextKeysForPrincipalPolicyRequest(arg0 *iam.GetContextKeysForPrincipalPolicyInput) (*request.Request, *iam.GetContextKeysForPolicyResponse) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetContextKeysForPrincipalPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.GetContextKeysForPolicyResponse) + return ret0, ret1 +} + +// GetContextKeysForPrincipalPolicyRequest indicates an expected call of GetContextKeysForPrincipalPolicyRequest. +func (mr *MockIAMAPIMockRecorder) GetContextKeysForPrincipalPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetContextKeysForPrincipalPolicyRequest", reflect.TypeOf((*MockIAMAPI)(nil).GetContextKeysForPrincipalPolicyRequest), arg0) +} + +// GetContextKeysForPrincipalPolicyWithContext mocks base method. +func (m *MockIAMAPI) GetContextKeysForPrincipalPolicyWithContext(arg0 aws.Context, arg1 *iam.GetContextKeysForPrincipalPolicyInput, arg2 ...request.Option) (*iam.GetContextKeysForPolicyResponse, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetContextKeysForPrincipalPolicyWithContext", varargs...) + ret0, _ := ret[0].(*iam.GetContextKeysForPolicyResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetContextKeysForPrincipalPolicyWithContext indicates an expected call of GetContextKeysForPrincipalPolicyWithContext. +func (mr *MockIAMAPIMockRecorder) GetContextKeysForPrincipalPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetContextKeysForPrincipalPolicyWithContext", reflect.TypeOf((*MockIAMAPI)(nil).GetContextKeysForPrincipalPolicyWithContext), varargs...) +} + +// GetCredentialReport mocks base method. +func (m *MockIAMAPI) GetCredentialReport(arg0 *iam.GetCredentialReportInput) (*iam.GetCredentialReportOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetCredentialReport", arg0) + ret0, _ := ret[0].(*iam.GetCredentialReportOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetCredentialReport indicates an expected call of GetCredentialReport. +func (mr *MockIAMAPIMockRecorder) GetCredentialReport(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCredentialReport", reflect.TypeOf((*MockIAMAPI)(nil).GetCredentialReport), arg0) +} + +// GetCredentialReportRequest mocks base method. +func (m *MockIAMAPI) GetCredentialReportRequest(arg0 *iam.GetCredentialReportInput) (*request.Request, *iam.GetCredentialReportOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetCredentialReportRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.GetCredentialReportOutput) + return ret0, ret1 +} + +// GetCredentialReportRequest indicates an expected call of GetCredentialReportRequest. +func (mr *MockIAMAPIMockRecorder) GetCredentialReportRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCredentialReportRequest", reflect.TypeOf((*MockIAMAPI)(nil).GetCredentialReportRequest), arg0) +} + +// GetCredentialReportWithContext mocks base method. +func (m *MockIAMAPI) GetCredentialReportWithContext(arg0 aws.Context, arg1 *iam.GetCredentialReportInput, arg2 ...request.Option) (*iam.GetCredentialReportOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetCredentialReportWithContext", varargs...) + ret0, _ := ret[0].(*iam.GetCredentialReportOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetCredentialReportWithContext indicates an expected call of GetCredentialReportWithContext. +func (mr *MockIAMAPIMockRecorder) GetCredentialReportWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCredentialReportWithContext", reflect.TypeOf((*MockIAMAPI)(nil).GetCredentialReportWithContext), varargs...) +} + +// GetGroup mocks base method. +func (m *MockIAMAPI) GetGroup(arg0 *iam.GetGroupInput) (*iam.GetGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetGroup", arg0) + ret0, _ := ret[0].(*iam.GetGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetGroup indicates an expected call of GetGroup. +func (mr *MockIAMAPIMockRecorder) GetGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroup", reflect.TypeOf((*MockIAMAPI)(nil).GetGroup), arg0) +} + +// GetGroupPages mocks base method. +func (m *MockIAMAPI) GetGroupPages(arg0 *iam.GetGroupInput, arg1 func(*iam.GetGroupOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetGroupPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetGroupPages indicates an expected call of GetGroupPages. +func (mr *MockIAMAPIMockRecorder) GetGroupPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroupPages", reflect.TypeOf((*MockIAMAPI)(nil).GetGroupPages), arg0, arg1) +} + +// GetGroupPagesWithContext mocks base method. +func (m *MockIAMAPI) GetGroupPagesWithContext(arg0 aws.Context, arg1 *iam.GetGroupInput, arg2 func(*iam.GetGroupOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetGroupPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetGroupPagesWithContext indicates an expected call of GetGroupPagesWithContext. +func (mr *MockIAMAPIMockRecorder) GetGroupPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroupPagesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).GetGroupPagesWithContext), varargs...) +} + +// GetGroupPolicy mocks base method. +func (m *MockIAMAPI) GetGroupPolicy(arg0 *iam.GetGroupPolicyInput) (*iam.GetGroupPolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetGroupPolicy", arg0) + ret0, _ := ret[0].(*iam.GetGroupPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetGroupPolicy indicates an expected call of GetGroupPolicy. +func (mr *MockIAMAPIMockRecorder) GetGroupPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroupPolicy", reflect.TypeOf((*MockIAMAPI)(nil).GetGroupPolicy), arg0) +} + +// GetGroupPolicyRequest mocks base method. +func (m *MockIAMAPI) GetGroupPolicyRequest(arg0 *iam.GetGroupPolicyInput) (*request.Request, *iam.GetGroupPolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetGroupPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.GetGroupPolicyOutput) + return ret0, ret1 +} + +// GetGroupPolicyRequest indicates an expected call of GetGroupPolicyRequest. +func (mr *MockIAMAPIMockRecorder) GetGroupPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroupPolicyRequest", reflect.TypeOf((*MockIAMAPI)(nil).GetGroupPolicyRequest), arg0) +} + +// GetGroupPolicyWithContext mocks base method. +func (m *MockIAMAPI) GetGroupPolicyWithContext(arg0 aws.Context, arg1 *iam.GetGroupPolicyInput, arg2 ...request.Option) (*iam.GetGroupPolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetGroupPolicyWithContext", varargs...) + ret0, _ := ret[0].(*iam.GetGroupPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetGroupPolicyWithContext indicates an expected call of GetGroupPolicyWithContext. +func (mr *MockIAMAPIMockRecorder) GetGroupPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroupPolicyWithContext", reflect.TypeOf((*MockIAMAPI)(nil).GetGroupPolicyWithContext), varargs...) +} + +// GetGroupRequest mocks base method. +func (m *MockIAMAPI) GetGroupRequest(arg0 *iam.GetGroupInput) (*request.Request, *iam.GetGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.GetGroupOutput) + return ret0, ret1 +} + +// GetGroupRequest indicates an expected call of GetGroupRequest. +func (mr *MockIAMAPIMockRecorder) GetGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroupRequest", reflect.TypeOf((*MockIAMAPI)(nil).GetGroupRequest), arg0) +} + +// GetGroupWithContext mocks base method. +func (m *MockIAMAPI) GetGroupWithContext(arg0 aws.Context, arg1 *iam.GetGroupInput, arg2 ...request.Option) (*iam.GetGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetGroupWithContext", varargs...) + ret0, _ := ret[0].(*iam.GetGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetGroupWithContext indicates an expected call of GetGroupWithContext. +func (mr *MockIAMAPIMockRecorder) GetGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroupWithContext", reflect.TypeOf((*MockIAMAPI)(nil).GetGroupWithContext), varargs...) +} + +// GetInstanceProfile mocks base method. +func (m *MockIAMAPI) GetInstanceProfile(arg0 *iam.GetInstanceProfileInput) (*iam.GetInstanceProfileOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetInstanceProfile", arg0) + ret0, _ := ret[0].(*iam.GetInstanceProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetInstanceProfile indicates an expected call of GetInstanceProfile. +func (mr *MockIAMAPIMockRecorder) GetInstanceProfile(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInstanceProfile", reflect.TypeOf((*MockIAMAPI)(nil).GetInstanceProfile), arg0) +} + +// GetInstanceProfileRequest mocks base method. +func (m *MockIAMAPI) GetInstanceProfileRequest(arg0 *iam.GetInstanceProfileInput) (*request.Request, *iam.GetInstanceProfileOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetInstanceProfileRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.GetInstanceProfileOutput) + return ret0, ret1 +} + +// GetInstanceProfileRequest indicates an expected call of GetInstanceProfileRequest. +func (mr *MockIAMAPIMockRecorder) GetInstanceProfileRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInstanceProfileRequest", reflect.TypeOf((*MockIAMAPI)(nil).GetInstanceProfileRequest), arg0) +} + +// GetInstanceProfileWithContext mocks base method. +func (m *MockIAMAPI) GetInstanceProfileWithContext(arg0 aws.Context, arg1 *iam.GetInstanceProfileInput, arg2 ...request.Option) (*iam.GetInstanceProfileOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetInstanceProfileWithContext", varargs...) + ret0, _ := ret[0].(*iam.GetInstanceProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetInstanceProfileWithContext indicates an expected call of GetInstanceProfileWithContext. +func (mr *MockIAMAPIMockRecorder) GetInstanceProfileWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInstanceProfileWithContext", reflect.TypeOf((*MockIAMAPI)(nil).GetInstanceProfileWithContext), varargs...) +} + +// GetLoginProfile mocks base method. +func (m *MockIAMAPI) GetLoginProfile(arg0 *iam.GetLoginProfileInput) (*iam.GetLoginProfileOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetLoginProfile", arg0) + ret0, _ := ret[0].(*iam.GetLoginProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetLoginProfile indicates an expected call of GetLoginProfile. +func (mr *MockIAMAPIMockRecorder) GetLoginProfile(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLoginProfile", reflect.TypeOf((*MockIAMAPI)(nil).GetLoginProfile), arg0) +} + +// GetLoginProfileRequest mocks base method. +func (m *MockIAMAPI) GetLoginProfileRequest(arg0 *iam.GetLoginProfileInput) (*request.Request, *iam.GetLoginProfileOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetLoginProfileRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.GetLoginProfileOutput) + return ret0, ret1 +} + +// GetLoginProfileRequest indicates an expected call of GetLoginProfileRequest. +func (mr *MockIAMAPIMockRecorder) GetLoginProfileRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLoginProfileRequest", reflect.TypeOf((*MockIAMAPI)(nil).GetLoginProfileRequest), arg0) +} + +// GetLoginProfileWithContext mocks base method. +func (m *MockIAMAPI) GetLoginProfileWithContext(arg0 aws.Context, arg1 *iam.GetLoginProfileInput, arg2 ...request.Option) (*iam.GetLoginProfileOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetLoginProfileWithContext", varargs...) + ret0, _ := ret[0].(*iam.GetLoginProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetLoginProfileWithContext indicates an expected call of GetLoginProfileWithContext. +func (mr *MockIAMAPIMockRecorder) GetLoginProfileWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLoginProfileWithContext", reflect.TypeOf((*MockIAMAPI)(nil).GetLoginProfileWithContext), varargs...) +} + +// GetOpenIDConnectProvider mocks base method. +func (m *MockIAMAPI) GetOpenIDConnectProvider(arg0 *iam.GetOpenIDConnectProviderInput) (*iam.GetOpenIDConnectProviderOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetOpenIDConnectProvider", arg0) + ret0, _ := ret[0].(*iam.GetOpenIDConnectProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetOpenIDConnectProvider indicates an expected call of GetOpenIDConnectProvider. +func (mr *MockIAMAPIMockRecorder) GetOpenIDConnectProvider(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOpenIDConnectProvider", reflect.TypeOf((*MockIAMAPI)(nil).GetOpenIDConnectProvider), arg0) +} + +// GetOpenIDConnectProviderRequest mocks base method. +func (m *MockIAMAPI) GetOpenIDConnectProviderRequest(arg0 *iam.GetOpenIDConnectProviderInput) (*request.Request, *iam.GetOpenIDConnectProviderOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetOpenIDConnectProviderRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.GetOpenIDConnectProviderOutput) + return ret0, ret1 +} + +// GetOpenIDConnectProviderRequest indicates an expected call of GetOpenIDConnectProviderRequest. +func (mr *MockIAMAPIMockRecorder) GetOpenIDConnectProviderRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOpenIDConnectProviderRequest", reflect.TypeOf((*MockIAMAPI)(nil).GetOpenIDConnectProviderRequest), arg0) +} + +// GetOpenIDConnectProviderWithContext mocks base method. +func (m *MockIAMAPI) GetOpenIDConnectProviderWithContext(arg0 aws.Context, arg1 *iam.GetOpenIDConnectProviderInput, arg2 ...request.Option) (*iam.GetOpenIDConnectProviderOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetOpenIDConnectProviderWithContext", varargs...) + ret0, _ := ret[0].(*iam.GetOpenIDConnectProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetOpenIDConnectProviderWithContext indicates an expected call of GetOpenIDConnectProviderWithContext. +func (mr *MockIAMAPIMockRecorder) GetOpenIDConnectProviderWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOpenIDConnectProviderWithContext", reflect.TypeOf((*MockIAMAPI)(nil).GetOpenIDConnectProviderWithContext), varargs...) +} + +// GetOrganizationsAccessReport mocks base method. +func (m *MockIAMAPI) GetOrganizationsAccessReport(arg0 *iam.GetOrganizationsAccessReportInput) (*iam.GetOrganizationsAccessReportOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetOrganizationsAccessReport", arg0) + ret0, _ := ret[0].(*iam.GetOrganizationsAccessReportOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetOrganizationsAccessReport indicates an expected call of GetOrganizationsAccessReport. +func (mr *MockIAMAPIMockRecorder) GetOrganizationsAccessReport(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrganizationsAccessReport", reflect.TypeOf((*MockIAMAPI)(nil).GetOrganizationsAccessReport), arg0) +} + +// GetOrganizationsAccessReportRequest mocks base method. +func (m *MockIAMAPI) GetOrganizationsAccessReportRequest(arg0 *iam.GetOrganizationsAccessReportInput) (*request.Request, *iam.GetOrganizationsAccessReportOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetOrganizationsAccessReportRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.GetOrganizationsAccessReportOutput) + return ret0, ret1 +} + +// GetOrganizationsAccessReportRequest indicates an expected call of GetOrganizationsAccessReportRequest. +func (mr *MockIAMAPIMockRecorder) GetOrganizationsAccessReportRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrganizationsAccessReportRequest", reflect.TypeOf((*MockIAMAPI)(nil).GetOrganizationsAccessReportRequest), arg0) +} + +// GetOrganizationsAccessReportWithContext mocks base method. +func (m *MockIAMAPI) GetOrganizationsAccessReportWithContext(arg0 aws.Context, arg1 *iam.GetOrganizationsAccessReportInput, arg2 ...request.Option) (*iam.GetOrganizationsAccessReportOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetOrganizationsAccessReportWithContext", varargs...) + ret0, _ := ret[0].(*iam.GetOrganizationsAccessReportOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetOrganizationsAccessReportWithContext indicates an expected call of GetOrganizationsAccessReportWithContext. +func (mr *MockIAMAPIMockRecorder) GetOrganizationsAccessReportWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrganizationsAccessReportWithContext", reflect.TypeOf((*MockIAMAPI)(nil).GetOrganizationsAccessReportWithContext), varargs...) +} + +// GetPolicy mocks base method. +func (m *MockIAMAPI) GetPolicy(arg0 *iam.GetPolicyInput) (*iam.GetPolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetPolicy", arg0) + ret0, _ := ret[0].(*iam.GetPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetPolicy indicates an expected call of GetPolicy. +func (mr *MockIAMAPIMockRecorder) GetPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPolicy", reflect.TypeOf((*MockIAMAPI)(nil).GetPolicy), arg0) +} + +// GetPolicyRequest mocks base method. +func (m *MockIAMAPI) GetPolicyRequest(arg0 *iam.GetPolicyInput) (*request.Request, *iam.GetPolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.GetPolicyOutput) + return ret0, ret1 +} + +// GetPolicyRequest indicates an expected call of GetPolicyRequest. +func (mr *MockIAMAPIMockRecorder) GetPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPolicyRequest", reflect.TypeOf((*MockIAMAPI)(nil).GetPolicyRequest), arg0) +} + +// GetPolicyVersion mocks base method. +func (m *MockIAMAPI) GetPolicyVersion(arg0 *iam.GetPolicyVersionInput) (*iam.GetPolicyVersionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetPolicyVersion", arg0) + ret0, _ := ret[0].(*iam.GetPolicyVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetPolicyVersion indicates an expected call of GetPolicyVersion. +func (mr *MockIAMAPIMockRecorder) GetPolicyVersion(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPolicyVersion", reflect.TypeOf((*MockIAMAPI)(nil).GetPolicyVersion), arg0) +} + +// GetPolicyVersionRequest mocks base method. +func (m *MockIAMAPI) GetPolicyVersionRequest(arg0 *iam.GetPolicyVersionInput) (*request.Request, *iam.GetPolicyVersionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetPolicyVersionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.GetPolicyVersionOutput) + return ret0, ret1 +} + +// GetPolicyVersionRequest indicates an expected call of GetPolicyVersionRequest. +func (mr *MockIAMAPIMockRecorder) GetPolicyVersionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPolicyVersionRequest", reflect.TypeOf((*MockIAMAPI)(nil).GetPolicyVersionRequest), arg0) +} + +// GetPolicyVersionWithContext mocks base method. +func (m *MockIAMAPI) GetPolicyVersionWithContext(arg0 aws.Context, arg1 *iam.GetPolicyVersionInput, arg2 ...request.Option) (*iam.GetPolicyVersionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetPolicyVersionWithContext", varargs...) + ret0, _ := ret[0].(*iam.GetPolicyVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetPolicyVersionWithContext indicates an expected call of GetPolicyVersionWithContext. +func (mr *MockIAMAPIMockRecorder) GetPolicyVersionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPolicyVersionWithContext", reflect.TypeOf((*MockIAMAPI)(nil).GetPolicyVersionWithContext), varargs...) +} + +// GetPolicyWithContext mocks base method. +func (m *MockIAMAPI) GetPolicyWithContext(arg0 aws.Context, arg1 *iam.GetPolicyInput, arg2 ...request.Option) (*iam.GetPolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetPolicyWithContext", varargs...) + ret0, _ := ret[0].(*iam.GetPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetPolicyWithContext indicates an expected call of GetPolicyWithContext. +func (mr *MockIAMAPIMockRecorder) GetPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPolicyWithContext", reflect.TypeOf((*MockIAMAPI)(nil).GetPolicyWithContext), varargs...) +} + +// GetRole mocks base method. +func (m *MockIAMAPI) GetRole(arg0 *iam.GetRoleInput) (*iam.GetRoleOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetRole", arg0) + ret0, _ := ret[0].(*iam.GetRoleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetRole indicates an expected call of GetRole. +func (mr *MockIAMAPIMockRecorder) GetRole(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRole", reflect.TypeOf((*MockIAMAPI)(nil).GetRole), arg0) +} + +// GetRolePolicy mocks base method. +func (m *MockIAMAPI) GetRolePolicy(arg0 *iam.GetRolePolicyInput) (*iam.GetRolePolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetRolePolicy", arg0) + ret0, _ := ret[0].(*iam.GetRolePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetRolePolicy indicates an expected call of GetRolePolicy. +func (mr *MockIAMAPIMockRecorder) GetRolePolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRolePolicy", reflect.TypeOf((*MockIAMAPI)(nil).GetRolePolicy), arg0) +} + +// GetRolePolicyRequest mocks base method. +func (m *MockIAMAPI) GetRolePolicyRequest(arg0 *iam.GetRolePolicyInput) (*request.Request, *iam.GetRolePolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetRolePolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.GetRolePolicyOutput) + return ret0, ret1 +} + +// GetRolePolicyRequest indicates an expected call of GetRolePolicyRequest. +func (mr *MockIAMAPIMockRecorder) GetRolePolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRolePolicyRequest", reflect.TypeOf((*MockIAMAPI)(nil).GetRolePolicyRequest), arg0) +} + +// GetRolePolicyWithContext mocks base method. +func (m *MockIAMAPI) GetRolePolicyWithContext(arg0 aws.Context, arg1 *iam.GetRolePolicyInput, arg2 ...request.Option) (*iam.GetRolePolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetRolePolicyWithContext", varargs...) + ret0, _ := ret[0].(*iam.GetRolePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetRolePolicyWithContext indicates an expected call of GetRolePolicyWithContext. +func (mr *MockIAMAPIMockRecorder) GetRolePolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRolePolicyWithContext", reflect.TypeOf((*MockIAMAPI)(nil).GetRolePolicyWithContext), varargs...) +} + +// GetRoleRequest mocks base method. +func (m *MockIAMAPI) GetRoleRequest(arg0 *iam.GetRoleInput) (*request.Request, *iam.GetRoleOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetRoleRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.GetRoleOutput) + return ret0, ret1 +} + +// GetRoleRequest indicates an expected call of GetRoleRequest. +func (mr *MockIAMAPIMockRecorder) GetRoleRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRoleRequest", reflect.TypeOf((*MockIAMAPI)(nil).GetRoleRequest), arg0) +} + +// GetRoleWithContext mocks base method. +func (m *MockIAMAPI) GetRoleWithContext(arg0 aws.Context, arg1 *iam.GetRoleInput, arg2 ...request.Option) (*iam.GetRoleOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetRoleWithContext", varargs...) + ret0, _ := ret[0].(*iam.GetRoleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetRoleWithContext indicates an expected call of GetRoleWithContext. +func (mr *MockIAMAPIMockRecorder) GetRoleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRoleWithContext", reflect.TypeOf((*MockIAMAPI)(nil).GetRoleWithContext), varargs...) +} + +// GetSAMLProvider mocks base method. +func (m *MockIAMAPI) GetSAMLProvider(arg0 *iam.GetSAMLProviderInput) (*iam.GetSAMLProviderOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetSAMLProvider", arg0) + ret0, _ := ret[0].(*iam.GetSAMLProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetSAMLProvider indicates an expected call of GetSAMLProvider. +func (mr *MockIAMAPIMockRecorder) GetSAMLProvider(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSAMLProvider", reflect.TypeOf((*MockIAMAPI)(nil).GetSAMLProvider), arg0) +} + +// GetSAMLProviderRequest mocks base method. +func (m *MockIAMAPI) GetSAMLProviderRequest(arg0 *iam.GetSAMLProviderInput) (*request.Request, *iam.GetSAMLProviderOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetSAMLProviderRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.GetSAMLProviderOutput) + return ret0, ret1 +} + +// GetSAMLProviderRequest indicates an expected call of GetSAMLProviderRequest. +func (mr *MockIAMAPIMockRecorder) GetSAMLProviderRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSAMLProviderRequest", reflect.TypeOf((*MockIAMAPI)(nil).GetSAMLProviderRequest), arg0) +} + +// GetSAMLProviderWithContext mocks base method. +func (m *MockIAMAPI) GetSAMLProviderWithContext(arg0 aws.Context, arg1 *iam.GetSAMLProviderInput, arg2 ...request.Option) (*iam.GetSAMLProviderOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetSAMLProviderWithContext", varargs...) + ret0, _ := ret[0].(*iam.GetSAMLProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetSAMLProviderWithContext indicates an expected call of GetSAMLProviderWithContext. +func (mr *MockIAMAPIMockRecorder) GetSAMLProviderWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSAMLProviderWithContext", reflect.TypeOf((*MockIAMAPI)(nil).GetSAMLProviderWithContext), varargs...) +} + +// GetSSHPublicKey mocks base method. +func (m *MockIAMAPI) GetSSHPublicKey(arg0 *iam.GetSSHPublicKeyInput) (*iam.GetSSHPublicKeyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetSSHPublicKey", arg0) + ret0, _ := ret[0].(*iam.GetSSHPublicKeyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetSSHPublicKey indicates an expected call of GetSSHPublicKey. +func (mr *MockIAMAPIMockRecorder) GetSSHPublicKey(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSSHPublicKey", reflect.TypeOf((*MockIAMAPI)(nil).GetSSHPublicKey), arg0) +} + +// GetSSHPublicKeyRequest mocks base method. +func (m *MockIAMAPI) GetSSHPublicKeyRequest(arg0 *iam.GetSSHPublicKeyInput) (*request.Request, *iam.GetSSHPublicKeyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetSSHPublicKeyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.GetSSHPublicKeyOutput) + return ret0, ret1 +} + +// GetSSHPublicKeyRequest indicates an expected call of GetSSHPublicKeyRequest. +func (mr *MockIAMAPIMockRecorder) GetSSHPublicKeyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSSHPublicKeyRequest", reflect.TypeOf((*MockIAMAPI)(nil).GetSSHPublicKeyRequest), arg0) +} + +// GetSSHPublicKeyWithContext mocks base method. +func (m *MockIAMAPI) GetSSHPublicKeyWithContext(arg0 aws.Context, arg1 *iam.GetSSHPublicKeyInput, arg2 ...request.Option) (*iam.GetSSHPublicKeyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetSSHPublicKeyWithContext", varargs...) + ret0, _ := ret[0].(*iam.GetSSHPublicKeyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetSSHPublicKeyWithContext indicates an expected call of GetSSHPublicKeyWithContext. +func (mr *MockIAMAPIMockRecorder) GetSSHPublicKeyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSSHPublicKeyWithContext", reflect.TypeOf((*MockIAMAPI)(nil).GetSSHPublicKeyWithContext), varargs...) +} + +// GetServerCertificate mocks base method. +func (m *MockIAMAPI) GetServerCertificate(arg0 *iam.GetServerCertificateInput) (*iam.GetServerCertificateOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetServerCertificate", arg0) + ret0, _ := ret[0].(*iam.GetServerCertificateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetServerCertificate indicates an expected call of GetServerCertificate. +func (mr *MockIAMAPIMockRecorder) GetServerCertificate(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServerCertificate", reflect.TypeOf((*MockIAMAPI)(nil).GetServerCertificate), arg0) +} + +// GetServerCertificateRequest mocks base method. +func (m *MockIAMAPI) GetServerCertificateRequest(arg0 *iam.GetServerCertificateInput) (*request.Request, *iam.GetServerCertificateOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetServerCertificateRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.GetServerCertificateOutput) + return ret0, ret1 +} + +// GetServerCertificateRequest indicates an expected call of GetServerCertificateRequest. +func (mr *MockIAMAPIMockRecorder) GetServerCertificateRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServerCertificateRequest", reflect.TypeOf((*MockIAMAPI)(nil).GetServerCertificateRequest), arg0) +} + +// GetServerCertificateWithContext mocks base method. +func (m *MockIAMAPI) GetServerCertificateWithContext(arg0 aws.Context, arg1 *iam.GetServerCertificateInput, arg2 ...request.Option) (*iam.GetServerCertificateOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetServerCertificateWithContext", varargs...) + ret0, _ := ret[0].(*iam.GetServerCertificateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetServerCertificateWithContext indicates an expected call of GetServerCertificateWithContext. +func (mr *MockIAMAPIMockRecorder) GetServerCertificateWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServerCertificateWithContext", reflect.TypeOf((*MockIAMAPI)(nil).GetServerCertificateWithContext), varargs...) +} + +// GetServiceLastAccessedDetails mocks base method. +func (m *MockIAMAPI) GetServiceLastAccessedDetails(arg0 *iam.GetServiceLastAccessedDetailsInput) (*iam.GetServiceLastAccessedDetailsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetServiceLastAccessedDetails", arg0) + ret0, _ := ret[0].(*iam.GetServiceLastAccessedDetailsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetServiceLastAccessedDetails indicates an expected call of GetServiceLastAccessedDetails. +func (mr *MockIAMAPIMockRecorder) GetServiceLastAccessedDetails(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceLastAccessedDetails", reflect.TypeOf((*MockIAMAPI)(nil).GetServiceLastAccessedDetails), arg0) +} + +// GetServiceLastAccessedDetailsRequest mocks base method. +func (m *MockIAMAPI) GetServiceLastAccessedDetailsRequest(arg0 *iam.GetServiceLastAccessedDetailsInput) (*request.Request, *iam.GetServiceLastAccessedDetailsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetServiceLastAccessedDetailsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.GetServiceLastAccessedDetailsOutput) + return ret0, ret1 +} + +// GetServiceLastAccessedDetailsRequest indicates an expected call of GetServiceLastAccessedDetailsRequest. +func (mr *MockIAMAPIMockRecorder) GetServiceLastAccessedDetailsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceLastAccessedDetailsRequest", reflect.TypeOf((*MockIAMAPI)(nil).GetServiceLastAccessedDetailsRequest), arg0) +} + +// GetServiceLastAccessedDetailsWithContext mocks base method. +func (m *MockIAMAPI) GetServiceLastAccessedDetailsWithContext(arg0 aws.Context, arg1 *iam.GetServiceLastAccessedDetailsInput, arg2 ...request.Option) (*iam.GetServiceLastAccessedDetailsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetServiceLastAccessedDetailsWithContext", varargs...) + ret0, _ := ret[0].(*iam.GetServiceLastAccessedDetailsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetServiceLastAccessedDetailsWithContext indicates an expected call of GetServiceLastAccessedDetailsWithContext. +func (mr *MockIAMAPIMockRecorder) GetServiceLastAccessedDetailsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceLastAccessedDetailsWithContext", reflect.TypeOf((*MockIAMAPI)(nil).GetServiceLastAccessedDetailsWithContext), varargs...) +} + +// GetServiceLastAccessedDetailsWithEntities mocks base method. +func (m *MockIAMAPI) GetServiceLastAccessedDetailsWithEntities(arg0 *iam.GetServiceLastAccessedDetailsWithEntitiesInput) (*iam.GetServiceLastAccessedDetailsWithEntitiesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetServiceLastAccessedDetailsWithEntities", arg0) + ret0, _ := ret[0].(*iam.GetServiceLastAccessedDetailsWithEntitiesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetServiceLastAccessedDetailsWithEntities indicates an expected call of GetServiceLastAccessedDetailsWithEntities. +func (mr *MockIAMAPIMockRecorder) GetServiceLastAccessedDetailsWithEntities(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceLastAccessedDetailsWithEntities", reflect.TypeOf((*MockIAMAPI)(nil).GetServiceLastAccessedDetailsWithEntities), arg0) +} + +// GetServiceLastAccessedDetailsWithEntitiesRequest mocks base method. +func (m *MockIAMAPI) GetServiceLastAccessedDetailsWithEntitiesRequest(arg0 *iam.GetServiceLastAccessedDetailsWithEntitiesInput) (*request.Request, *iam.GetServiceLastAccessedDetailsWithEntitiesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetServiceLastAccessedDetailsWithEntitiesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.GetServiceLastAccessedDetailsWithEntitiesOutput) + return ret0, ret1 +} + +// GetServiceLastAccessedDetailsWithEntitiesRequest indicates an expected call of GetServiceLastAccessedDetailsWithEntitiesRequest. +func (mr *MockIAMAPIMockRecorder) GetServiceLastAccessedDetailsWithEntitiesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceLastAccessedDetailsWithEntitiesRequest", reflect.TypeOf((*MockIAMAPI)(nil).GetServiceLastAccessedDetailsWithEntitiesRequest), arg0) +} + +// GetServiceLastAccessedDetailsWithEntitiesWithContext mocks base method. +func (m *MockIAMAPI) GetServiceLastAccessedDetailsWithEntitiesWithContext(arg0 aws.Context, arg1 *iam.GetServiceLastAccessedDetailsWithEntitiesInput, arg2 ...request.Option) (*iam.GetServiceLastAccessedDetailsWithEntitiesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetServiceLastAccessedDetailsWithEntitiesWithContext", varargs...) + ret0, _ := ret[0].(*iam.GetServiceLastAccessedDetailsWithEntitiesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetServiceLastAccessedDetailsWithEntitiesWithContext indicates an expected call of GetServiceLastAccessedDetailsWithEntitiesWithContext. +func (mr *MockIAMAPIMockRecorder) GetServiceLastAccessedDetailsWithEntitiesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceLastAccessedDetailsWithEntitiesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).GetServiceLastAccessedDetailsWithEntitiesWithContext), varargs...) +} + +// GetServiceLinkedRoleDeletionStatus mocks base method. +func (m *MockIAMAPI) GetServiceLinkedRoleDeletionStatus(arg0 *iam.GetServiceLinkedRoleDeletionStatusInput) (*iam.GetServiceLinkedRoleDeletionStatusOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetServiceLinkedRoleDeletionStatus", arg0) + ret0, _ := ret[0].(*iam.GetServiceLinkedRoleDeletionStatusOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetServiceLinkedRoleDeletionStatus indicates an expected call of GetServiceLinkedRoleDeletionStatus. +func (mr *MockIAMAPIMockRecorder) GetServiceLinkedRoleDeletionStatus(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceLinkedRoleDeletionStatus", reflect.TypeOf((*MockIAMAPI)(nil).GetServiceLinkedRoleDeletionStatus), arg0) +} + +// GetServiceLinkedRoleDeletionStatusRequest mocks base method. +func (m *MockIAMAPI) GetServiceLinkedRoleDeletionStatusRequest(arg0 *iam.GetServiceLinkedRoleDeletionStatusInput) (*request.Request, *iam.GetServiceLinkedRoleDeletionStatusOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetServiceLinkedRoleDeletionStatusRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.GetServiceLinkedRoleDeletionStatusOutput) + return ret0, ret1 +} + +// GetServiceLinkedRoleDeletionStatusRequest indicates an expected call of GetServiceLinkedRoleDeletionStatusRequest. +func (mr *MockIAMAPIMockRecorder) GetServiceLinkedRoleDeletionStatusRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceLinkedRoleDeletionStatusRequest", reflect.TypeOf((*MockIAMAPI)(nil).GetServiceLinkedRoleDeletionStatusRequest), arg0) +} + +// GetServiceLinkedRoleDeletionStatusWithContext mocks base method. +func (m *MockIAMAPI) GetServiceLinkedRoleDeletionStatusWithContext(arg0 aws.Context, arg1 *iam.GetServiceLinkedRoleDeletionStatusInput, arg2 ...request.Option) (*iam.GetServiceLinkedRoleDeletionStatusOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetServiceLinkedRoleDeletionStatusWithContext", varargs...) + ret0, _ := ret[0].(*iam.GetServiceLinkedRoleDeletionStatusOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetServiceLinkedRoleDeletionStatusWithContext indicates an expected call of GetServiceLinkedRoleDeletionStatusWithContext. +func (mr *MockIAMAPIMockRecorder) GetServiceLinkedRoleDeletionStatusWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceLinkedRoleDeletionStatusWithContext", reflect.TypeOf((*MockIAMAPI)(nil).GetServiceLinkedRoleDeletionStatusWithContext), varargs...) +} + +// GetUser mocks base method. +func (m *MockIAMAPI) GetUser(arg0 *iam.GetUserInput) (*iam.GetUserOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetUser", arg0) + ret0, _ := ret[0].(*iam.GetUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetUser indicates an expected call of GetUser. +func (mr *MockIAMAPIMockRecorder) GetUser(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUser", reflect.TypeOf((*MockIAMAPI)(nil).GetUser), arg0) +} + +// GetUserPolicy mocks base method. +func (m *MockIAMAPI) GetUserPolicy(arg0 *iam.GetUserPolicyInput) (*iam.GetUserPolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetUserPolicy", arg0) + ret0, _ := ret[0].(*iam.GetUserPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetUserPolicy indicates an expected call of GetUserPolicy. +func (mr *MockIAMAPIMockRecorder) GetUserPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserPolicy", reflect.TypeOf((*MockIAMAPI)(nil).GetUserPolicy), arg0) +} + +// GetUserPolicyRequest mocks base method. +func (m *MockIAMAPI) GetUserPolicyRequest(arg0 *iam.GetUserPolicyInput) (*request.Request, *iam.GetUserPolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetUserPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.GetUserPolicyOutput) + return ret0, ret1 +} + +// GetUserPolicyRequest indicates an expected call of GetUserPolicyRequest. +func (mr *MockIAMAPIMockRecorder) GetUserPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserPolicyRequest", reflect.TypeOf((*MockIAMAPI)(nil).GetUserPolicyRequest), arg0) +} + +// GetUserPolicyWithContext mocks base method. +func (m *MockIAMAPI) GetUserPolicyWithContext(arg0 aws.Context, arg1 *iam.GetUserPolicyInput, arg2 ...request.Option) (*iam.GetUserPolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetUserPolicyWithContext", varargs...) + ret0, _ := ret[0].(*iam.GetUserPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetUserPolicyWithContext indicates an expected call of GetUserPolicyWithContext. +func (mr *MockIAMAPIMockRecorder) GetUserPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserPolicyWithContext", reflect.TypeOf((*MockIAMAPI)(nil).GetUserPolicyWithContext), varargs...) +} + +// GetUserRequest mocks base method. +func (m *MockIAMAPI) GetUserRequest(arg0 *iam.GetUserInput) (*request.Request, *iam.GetUserOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetUserRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.GetUserOutput) + return ret0, ret1 +} + +// GetUserRequest indicates an expected call of GetUserRequest. +func (mr *MockIAMAPIMockRecorder) GetUserRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserRequest", reflect.TypeOf((*MockIAMAPI)(nil).GetUserRequest), arg0) +} + +// GetUserWithContext mocks base method. +func (m *MockIAMAPI) GetUserWithContext(arg0 aws.Context, arg1 *iam.GetUserInput, arg2 ...request.Option) (*iam.GetUserOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetUserWithContext", varargs...) + ret0, _ := ret[0].(*iam.GetUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetUserWithContext indicates an expected call of GetUserWithContext. +func (mr *MockIAMAPIMockRecorder) GetUserWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserWithContext", reflect.TypeOf((*MockIAMAPI)(nil).GetUserWithContext), varargs...) +} + +// ListAccessKeys mocks base method. +func (m *MockIAMAPI) ListAccessKeys(arg0 *iam.ListAccessKeysInput) (*iam.ListAccessKeysOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAccessKeys", arg0) + ret0, _ := ret[0].(*iam.ListAccessKeysOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAccessKeys indicates an expected call of ListAccessKeys. +func (mr *MockIAMAPIMockRecorder) ListAccessKeys(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAccessKeys", reflect.TypeOf((*MockIAMAPI)(nil).ListAccessKeys), arg0) +} + +// ListAccessKeysPages mocks base method. +func (m *MockIAMAPI) ListAccessKeysPages(arg0 *iam.ListAccessKeysInput, arg1 func(*iam.ListAccessKeysOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAccessKeysPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListAccessKeysPages indicates an expected call of ListAccessKeysPages. +func (mr *MockIAMAPIMockRecorder) ListAccessKeysPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAccessKeysPages", reflect.TypeOf((*MockIAMAPI)(nil).ListAccessKeysPages), arg0, arg1) +} + +// ListAccessKeysPagesWithContext mocks base method. +func (m *MockIAMAPI) ListAccessKeysPagesWithContext(arg0 aws.Context, arg1 *iam.ListAccessKeysInput, arg2 func(*iam.ListAccessKeysOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAccessKeysPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListAccessKeysPagesWithContext indicates an expected call of ListAccessKeysPagesWithContext. +func (mr *MockIAMAPIMockRecorder) ListAccessKeysPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAccessKeysPagesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListAccessKeysPagesWithContext), varargs...) +} + +// ListAccessKeysRequest mocks base method. +func (m *MockIAMAPI) ListAccessKeysRequest(arg0 *iam.ListAccessKeysInput) (*request.Request, *iam.ListAccessKeysOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAccessKeysRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ListAccessKeysOutput) + return ret0, ret1 +} + +// ListAccessKeysRequest indicates an expected call of ListAccessKeysRequest. +func (mr *MockIAMAPIMockRecorder) ListAccessKeysRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAccessKeysRequest", reflect.TypeOf((*MockIAMAPI)(nil).ListAccessKeysRequest), arg0) +} + +// ListAccessKeysWithContext mocks base method. +func (m *MockIAMAPI) ListAccessKeysWithContext(arg0 aws.Context, arg1 *iam.ListAccessKeysInput, arg2 ...request.Option) (*iam.ListAccessKeysOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAccessKeysWithContext", varargs...) + ret0, _ := ret[0].(*iam.ListAccessKeysOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAccessKeysWithContext indicates an expected call of ListAccessKeysWithContext. +func (mr *MockIAMAPIMockRecorder) ListAccessKeysWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAccessKeysWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListAccessKeysWithContext), varargs...) +} + +// ListAccountAliases mocks base method. +func (m *MockIAMAPI) ListAccountAliases(arg0 *iam.ListAccountAliasesInput) (*iam.ListAccountAliasesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAccountAliases", arg0) + ret0, _ := ret[0].(*iam.ListAccountAliasesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAccountAliases indicates an expected call of ListAccountAliases. +func (mr *MockIAMAPIMockRecorder) ListAccountAliases(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAccountAliases", reflect.TypeOf((*MockIAMAPI)(nil).ListAccountAliases), arg0) +} + +// ListAccountAliasesPages mocks base method. +func (m *MockIAMAPI) ListAccountAliasesPages(arg0 *iam.ListAccountAliasesInput, arg1 func(*iam.ListAccountAliasesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAccountAliasesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListAccountAliasesPages indicates an expected call of ListAccountAliasesPages. +func (mr *MockIAMAPIMockRecorder) ListAccountAliasesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAccountAliasesPages", reflect.TypeOf((*MockIAMAPI)(nil).ListAccountAliasesPages), arg0, arg1) +} + +// ListAccountAliasesPagesWithContext mocks base method. +func (m *MockIAMAPI) ListAccountAliasesPagesWithContext(arg0 aws.Context, arg1 *iam.ListAccountAliasesInput, arg2 func(*iam.ListAccountAliasesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAccountAliasesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListAccountAliasesPagesWithContext indicates an expected call of ListAccountAliasesPagesWithContext. +func (mr *MockIAMAPIMockRecorder) ListAccountAliasesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAccountAliasesPagesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListAccountAliasesPagesWithContext), varargs...) +} + +// ListAccountAliasesRequest mocks base method. +func (m *MockIAMAPI) ListAccountAliasesRequest(arg0 *iam.ListAccountAliasesInput) (*request.Request, *iam.ListAccountAliasesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAccountAliasesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ListAccountAliasesOutput) + return ret0, ret1 +} + +// ListAccountAliasesRequest indicates an expected call of ListAccountAliasesRequest. +func (mr *MockIAMAPIMockRecorder) ListAccountAliasesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAccountAliasesRequest", reflect.TypeOf((*MockIAMAPI)(nil).ListAccountAliasesRequest), arg0) +} + +// ListAccountAliasesWithContext mocks base method. +func (m *MockIAMAPI) ListAccountAliasesWithContext(arg0 aws.Context, arg1 *iam.ListAccountAliasesInput, arg2 ...request.Option) (*iam.ListAccountAliasesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAccountAliasesWithContext", varargs...) + ret0, _ := ret[0].(*iam.ListAccountAliasesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAccountAliasesWithContext indicates an expected call of ListAccountAliasesWithContext. +func (mr *MockIAMAPIMockRecorder) ListAccountAliasesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAccountAliasesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListAccountAliasesWithContext), varargs...) +} + +// ListAttachedGroupPolicies mocks base method. +func (m *MockIAMAPI) ListAttachedGroupPolicies(arg0 *iam.ListAttachedGroupPoliciesInput) (*iam.ListAttachedGroupPoliciesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAttachedGroupPolicies", arg0) + ret0, _ := ret[0].(*iam.ListAttachedGroupPoliciesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAttachedGroupPolicies indicates an expected call of ListAttachedGroupPolicies. +func (mr *MockIAMAPIMockRecorder) ListAttachedGroupPolicies(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAttachedGroupPolicies", reflect.TypeOf((*MockIAMAPI)(nil).ListAttachedGroupPolicies), arg0) +} + +// ListAttachedGroupPoliciesPages mocks base method. +func (m *MockIAMAPI) ListAttachedGroupPoliciesPages(arg0 *iam.ListAttachedGroupPoliciesInput, arg1 func(*iam.ListAttachedGroupPoliciesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAttachedGroupPoliciesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListAttachedGroupPoliciesPages indicates an expected call of ListAttachedGroupPoliciesPages. +func (mr *MockIAMAPIMockRecorder) ListAttachedGroupPoliciesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAttachedGroupPoliciesPages", reflect.TypeOf((*MockIAMAPI)(nil).ListAttachedGroupPoliciesPages), arg0, arg1) +} + +// ListAttachedGroupPoliciesPagesWithContext mocks base method. +func (m *MockIAMAPI) ListAttachedGroupPoliciesPagesWithContext(arg0 aws.Context, arg1 *iam.ListAttachedGroupPoliciesInput, arg2 func(*iam.ListAttachedGroupPoliciesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAttachedGroupPoliciesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListAttachedGroupPoliciesPagesWithContext indicates an expected call of ListAttachedGroupPoliciesPagesWithContext. +func (mr *MockIAMAPIMockRecorder) ListAttachedGroupPoliciesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAttachedGroupPoliciesPagesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListAttachedGroupPoliciesPagesWithContext), varargs...) +} + +// ListAttachedGroupPoliciesRequest mocks base method. +func (m *MockIAMAPI) ListAttachedGroupPoliciesRequest(arg0 *iam.ListAttachedGroupPoliciesInput) (*request.Request, *iam.ListAttachedGroupPoliciesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAttachedGroupPoliciesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ListAttachedGroupPoliciesOutput) + return ret0, ret1 +} + +// ListAttachedGroupPoliciesRequest indicates an expected call of ListAttachedGroupPoliciesRequest. +func (mr *MockIAMAPIMockRecorder) ListAttachedGroupPoliciesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAttachedGroupPoliciesRequest", reflect.TypeOf((*MockIAMAPI)(nil).ListAttachedGroupPoliciesRequest), arg0) +} + +// ListAttachedGroupPoliciesWithContext mocks base method. +func (m *MockIAMAPI) ListAttachedGroupPoliciesWithContext(arg0 aws.Context, arg1 *iam.ListAttachedGroupPoliciesInput, arg2 ...request.Option) (*iam.ListAttachedGroupPoliciesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAttachedGroupPoliciesWithContext", varargs...) + ret0, _ := ret[0].(*iam.ListAttachedGroupPoliciesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAttachedGroupPoliciesWithContext indicates an expected call of ListAttachedGroupPoliciesWithContext. +func (mr *MockIAMAPIMockRecorder) ListAttachedGroupPoliciesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAttachedGroupPoliciesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListAttachedGroupPoliciesWithContext), varargs...) +} + +// ListAttachedRolePolicies mocks base method. +func (m *MockIAMAPI) ListAttachedRolePolicies(arg0 *iam.ListAttachedRolePoliciesInput) (*iam.ListAttachedRolePoliciesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAttachedRolePolicies", arg0) + ret0, _ := ret[0].(*iam.ListAttachedRolePoliciesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAttachedRolePolicies indicates an expected call of ListAttachedRolePolicies. +func (mr *MockIAMAPIMockRecorder) ListAttachedRolePolicies(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAttachedRolePolicies", reflect.TypeOf((*MockIAMAPI)(nil).ListAttachedRolePolicies), arg0) +} + +// ListAttachedRolePoliciesPages mocks base method. +func (m *MockIAMAPI) ListAttachedRolePoliciesPages(arg0 *iam.ListAttachedRolePoliciesInput, arg1 func(*iam.ListAttachedRolePoliciesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAttachedRolePoliciesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListAttachedRolePoliciesPages indicates an expected call of ListAttachedRolePoliciesPages. +func (mr *MockIAMAPIMockRecorder) ListAttachedRolePoliciesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAttachedRolePoliciesPages", reflect.TypeOf((*MockIAMAPI)(nil).ListAttachedRolePoliciesPages), arg0, arg1) +} + +// ListAttachedRolePoliciesPagesWithContext mocks base method. +func (m *MockIAMAPI) ListAttachedRolePoliciesPagesWithContext(arg0 aws.Context, arg1 *iam.ListAttachedRolePoliciesInput, arg2 func(*iam.ListAttachedRolePoliciesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAttachedRolePoliciesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListAttachedRolePoliciesPagesWithContext indicates an expected call of ListAttachedRolePoliciesPagesWithContext. +func (mr *MockIAMAPIMockRecorder) ListAttachedRolePoliciesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAttachedRolePoliciesPagesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListAttachedRolePoliciesPagesWithContext), varargs...) +} + +// ListAttachedRolePoliciesRequest mocks base method. +func (m *MockIAMAPI) ListAttachedRolePoliciesRequest(arg0 *iam.ListAttachedRolePoliciesInput) (*request.Request, *iam.ListAttachedRolePoliciesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAttachedRolePoliciesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ListAttachedRolePoliciesOutput) + return ret0, ret1 +} + +// ListAttachedRolePoliciesRequest indicates an expected call of ListAttachedRolePoliciesRequest. +func (mr *MockIAMAPIMockRecorder) ListAttachedRolePoliciesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAttachedRolePoliciesRequest", reflect.TypeOf((*MockIAMAPI)(nil).ListAttachedRolePoliciesRequest), arg0) +} + +// ListAttachedRolePoliciesWithContext mocks base method. +func (m *MockIAMAPI) ListAttachedRolePoliciesWithContext(arg0 aws.Context, arg1 *iam.ListAttachedRolePoliciesInput, arg2 ...request.Option) (*iam.ListAttachedRolePoliciesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAttachedRolePoliciesWithContext", varargs...) + ret0, _ := ret[0].(*iam.ListAttachedRolePoliciesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAttachedRolePoliciesWithContext indicates an expected call of ListAttachedRolePoliciesWithContext. +func (mr *MockIAMAPIMockRecorder) ListAttachedRolePoliciesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAttachedRolePoliciesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListAttachedRolePoliciesWithContext), varargs...) +} + +// ListAttachedUserPolicies mocks base method. +func (m *MockIAMAPI) ListAttachedUserPolicies(arg0 *iam.ListAttachedUserPoliciesInput) (*iam.ListAttachedUserPoliciesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAttachedUserPolicies", arg0) + ret0, _ := ret[0].(*iam.ListAttachedUserPoliciesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAttachedUserPolicies indicates an expected call of ListAttachedUserPolicies. +func (mr *MockIAMAPIMockRecorder) ListAttachedUserPolicies(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAttachedUserPolicies", reflect.TypeOf((*MockIAMAPI)(nil).ListAttachedUserPolicies), arg0) +} + +// ListAttachedUserPoliciesPages mocks base method. +func (m *MockIAMAPI) ListAttachedUserPoliciesPages(arg0 *iam.ListAttachedUserPoliciesInput, arg1 func(*iam.ListAttachedUserPoliciesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAttachedUserPoliciesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListAttachedUserPoliciesPages indicates an expected call of ListAttachedUserPoliciesPages. +func (mr *MockIAMAPIMockRecorder) ListAttachedUserPoliciesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAttachedUserPoliciesPages", reflect.TypeOf((*MockIAMAPI)(nil).ListAttachedUserPoliciesPages), arg0, arg1) +} + +// ListAttachedUserPoliciesPagesWithContext mocks base method. +func (m *MockIAMAPI) ListAttachedUserPoliciesPagesWithContext(arg0 aws.Context, arg1 *iam.ListAttachedUserPoliciesInput, arg2 func(*iam.ListAttachedUserPoliciesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAttachedUserPoliciesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListAttachedUserPoliciesPagesWithContext indicates an expected call of ListAttachedUserPoliciesPagesWithContext. +func (mr *MockIAMAPIMockRecorder) ListAttachedUserPoliciesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAttachedUserPoliciesPagesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListAttachedUserPoliciesPagesWithContext), varargs...) +} + +// ListAttachedUserPoliciesRequest mocks base method. +func (m *MockIAMAPI) ListAttachedUserPoliciesRequest(arg0 *iam.ListAttachedUserPoliciesInput) (*request.Request, *iam.ListAttachedUserPoliciesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAttachedUserPoliciesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ListAttachedUserPoliciesOutput) + return ret0, ret1 +} + +// ListAttachedUserPoliciesRequest indicates an expected call of ListAttachedUserPoliciesRequest. +func (mr *MockIAMAPIMockRecorder) ListAttachedUserPoliciesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAttachedUserPoliciesRequest", reflect.TypeOf((*MockIAMAPI)(nil).ListAttachedUserPoliciesRequest), arg0) +} + +// ListAttachedUserPoliciesWithContext mocks base method. +func (m *MockIAMAPI) ListAttachedUserPoliciesWithContext(arg0 aws.Context, arg1 *iam.ListAttachedUserPoliciesInput, arg2 ...request.Option) (*iam.ListAttachedUserPoliciesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAttachedUserPoliciesWithContext", varargs...) + ret0, _ := ret[0].(*iam.ListAttachedUserPoliciesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAttachedUserPoliciesWithContext indicates an expected call of ListAttachedUserPoliciesWithContext. +func (mr *MockIAMAPIMockRecorder) ListAttachedUserPoliciesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAttachedUserPoliciesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListAttachedUserPoliciesWithContext), varargs...) +} + +// ListEntitiesForPolicy mocks base method. +func (m *MockIAMAPI) ListEntitiesForPolicy(arg0 *iam.ListEntitiesForPolicyInput) (*iam.ListEntitiesForPolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListEntitiesForPolicy", arg0) + ret0, _ := ret[0].(*iam.ListEntitiesForPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListEntitiesForPolicy indicates an expected call of ListEntitiesForPolicy. +func (mr *MockIAMAPIMockRecorder) ListEntitiesForPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListEntitiesForPolicy", reflect.TypeOf((*MockIAMAPI)(nil).ListEntitiesForPolicy), arg0) +} + +// ListEntitiesForPolicyPages mocks base method. +func (m *MockIAMAPI) ListEntitiesForPolicyPages(arg0 *iam.ListEntitiesForPolicyInput, arg1 func(*iam.ListEntitiesForPolicyOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListEntitiesForPolicyPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListEntitiesForPolicyPages indicates an expected call of ListEntitiesForPolicyPages. +func (mr *MockIAMAPIMockRecorder) ListEntitiesForPolicyPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListEntitiesForPolicyPages", reflect.TypeOf((*MockIAMAPI)(nil).ListEntitiesForPolicyPages), arg0, arg1) +} + +// ListEntitiesForPolicyPagesWithContext mocks base method. +func (m *MockIAMAPI) ListEntitiesForPolicyPagesWithContext(arg0 aws.Context, arg1 *iam.ListEntitiesForPolicyInput, arg2 func(*iam.ListEntitiesForPolicyOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListEntitiesForPolicyPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListEntitiesForPolicyPagesWithContext indicates an expected call of ListEntitiesForPolicyPagesWithContext. +func (mr *MockIAMAPIMockRecorder) ListEntitiesForPolicyPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListEntitiesForPolicyPagesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListEntitiesForPolicyPagesWithContext), varargs...) +} + +// ListEntitiesForPolicyRequest mocks base method. +func (m *MockIAMAPI) ListEntitiesForPolicyRequest(arg0 *iam.ListEntitiesForPolicyInput) (*request.Request, *iam.ListEntitiesForPolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListEntitiesForPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ListEntitiesForPolicyOutput) + return ret0, ret1 +} + +// ListEntitiesForPolicyRequest indicates an expected call of ListEntitiesForPolicyRequest. +func (mr *MockIAMAPIMockRecorder) ListEntitiesForPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListEntitiesForPolicyRequest", reflect.TypeOf((*MockIAMAPI)(nil).ListEntitiesForPolicyRequest), arg0) +} + +// ListEntitiesForPolicyWithContext mocks base method. +func (m *MockIAMAPI) ListEntitiesForPolicyWithContext(arg0 aws.Context, arg1 *iam.ListEntitiesForPolicyInput, arg2 ...request.Option) (*iam.ListEntitiesForPolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListEntitiesForPolicyWithContext", varargs...) + ret0, _ := ret[0].(*iam.ListEntitiesForPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListEntitiesForPolicyWithContext indicates an expected call of ListEntitiesForPolicyWithContext. +func (mr *MockIAMAPIMockRecorder) ListEntitiesForPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListEntitiesForPolicyWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListEntitiesForPolicyWithContext), varargs...) +} + +// ListGroupPolicies mocks base method. +func (m *MockIAMAPI) ListGroupPolicies(arg0 *iam.ListGroupPoliciesInput) (*iam.ListGroupPoliciesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListGroupPolicies", arg0) + ret0, _ := ret[0].(*iam.ListGroupPoliciesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListGroupPolicies indicates an expected call of ListGroupPolicies. +func (mr *MockIAMAPIMockRecorder) ListGroupPolicies(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGroupPolicies", reflect.TypeOf((*MockIAMAPI)(nil).ListGroupPolicies), arg0) +} + +// ListGroupPoliciesPages mocks base method. +func (m *MockIAMAPI) ListGroupPoliciesPages(arg0 *iam.ListGroupPoliciesInput, arg1 func(*iam.ListGroupPoliciesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListGroupPoliciesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListGroupPoliciesPages indicates an expected call of ListGroupPoliciesPages. +func (mr *MockIAMAPIMockRecorder) ListGroupPoliciesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGroupPoliciesPages", reflect.TypeOf((*MockIAMAPI)(nil).ListGroupPoliciesPages), arg0, arg1) +} + +// ListGroupPoliciesPagesWithContext mocks base method. +func (m *MockIAMAPI) ListGroupPoliciesPagesWithContext(arg0 aws.Context, arg1 *iam.ListGroupPoliciesInput, arg2 func(*iam.ListGroupPoliciesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListGroupPoliciesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListGroupPoliciesPagesWithContext indicates an expected call of ListGroupPoliciesPagesWithContext. +func (mr *MockIAMAPIMockRecorder) ListGroupPoliciesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGroupPoliciesPagesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListGroupPoliciesPagesWithContext), varargs...) +} + +// ListGroupPoliciesRequest mocks base method. +func (m *MockIAMAPI) ListGroupPoliciesRequest(arg0 *iam.ListGroupPoliciesInput) (*request.Request, *iam.ListGroupPoliciesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListGroupPoliciesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ListGroupPoliciesOutput) + return ret0, ret1 +} + +// ListGroupPoliciesRequest indicates an expected call of ListGroupPoliciesRequest. +func (mr *MockIAMAPIMockRecorder) ListGroupPoliciesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGroupPoliciesRequest", reflect.TypeOf((*MockIAMAPI)(nil).ListGroupPoliciesRequest), arg0) +} + +// ListGroupPoliciesWithContext mocks base method. +func (m *MockIAMAPI) ListGroupPoliciesWithContext(arg0 aws.Context, arg1 *iam.ListGroupPoliciesInput, arg2 ...request.Option) (*iam.ListGroupPoliciesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListGroupPoliciesWithContext", varargs...) + ret0, _ := ret[0].(*iam.ListGroupPoliciesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListGroupPoliciesWithContext indicates an expected call of ListGroupPoliciesWithContext. +func (mr *MockIAMAPIMockRecorder) ListGroupPoliciesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGroupPoliciesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListGroupPoliciesWithContext), varargs...) +} + +// ListGroups mocks base method. +func (m *MockIAMAPI) ListGroups(arg0 *iam.ListGroupsInput) (*iam.ListGroupsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListGroups", arg0) + ret0, _ := ret[0].(*iam.ListGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListGroups indicates an expected call of ListGroups. +func (mr *MockIAMAPIMockRecorder) ListGroups(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGroups", reflect.TypeOf((*MockIAMAPI)(nil).ListGroups), arg0) +} + +// ListGroupsForUser mocks base method. +func (m *MockIAMAPI) ListGroupsForUser(arg0 *iam.ListGroupsForUserInput) (*iam.ListGroupsForUserOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListGroupsForUser", arg0) + ret0, _ := ret[0].(*iam.ListGroupsForUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListGroupsForUser indicates an expected call of ListGroupsForUser. +func (mr *MockIAMAPIMockRecorder) ListGroupsForUser(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGroupsForUser", reflect.TypeOf((*MockIAMAPI)(nil).ListGroupsForUser), arg0) +} + +// ListGroupsForUserPages mocks base method. +func (m *MockIAMAPI) ListGroupsForUserPages(arg0 *iam.ListGroupsForUserInput, arg1 func(*iam.ListGroupsForUserOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListGroupsForUserPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListGroupsForUserPages indicates an expected call of ListGroupsForUserPages. +func (mr *MockIAMAPIMockRecorder) ListGroupsForUserPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGroupsForUserPages", reflect.TypeOf((*MockIAMAPI)(nil).ListGroupsForUserPages), arg0, arg1) +} + +// ListGroupsForUserPagesWithContext mocks base method. +func (m *MockIAMAPI) ListGroupsForUserPagesWithContext(arg0 aws.Context, arg1 *iam.ListGroupsForUserInput, arg2 func(*iam.ListGroupsForUserOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListGroupsForUserPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListGroupsForUserPagesWithContext indicates an expected call of ListGroupsForUserPagesWithContext. +func (mr *MockIAMAPIMockRecorder) ListGroupsForUserPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGroupsForUserPagesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListGroupsForUserPagesWithContext), varargs...) +} + +// ListGroupsForUserRequest mocks base method. +func (m *MockIAMAPI) ListGroupsForUserRequest(arg0 *iam.ListGroupsForUserInput) (*request.Request, *iam.ListGroupsForUserOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListGroupsForUserRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ListGroupsForUserOutput) + return ret0, ret1 +} + +// ListGroupsForUserRequest indicates an expected call of ListGroupsForUserRequest. +func (mr *MockIAMAPIMockRecorder) ListGroupsForUserRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGroupsForUserRequest", reflect.TypeOf((*MockIAMAPI)(nil).ListGroupsForUserRequest), arg0) +} + +// ListGroupsForUserWithContext mocks base method. +func (m *MockIAMAPI) ListGroupsForUserWithContext(arg0 aws.Context, arg1 *iam.ListGroupsForUserInput, arg2 ...request.Option) (*iam.ListGroupsForUserOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListGroupsForUserWithContext", varargs...) + ret0, _ := ret[0].(*iam.ListGroupsForUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListGroupsForUserWithContext indicates an expected call of ListGroupsForUserWithContext. +func (mr *MockIAMAPIMockRecorder) ListGroupsForUserWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGroupsForUserWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListGroupsForUserWithContext), varargs...) +} + +// ListGroupsPages mocks base method. +func (m *MockIAMAPI) ListGroupsPages(arg0 *iam.ListGroupsInput, arg1 func(*iam.ListGroupsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListGroupsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListGroupsPages indicates an expected call of ListGroupsPages. +func (mr *MockIAMAPIMockRecorder) ListGroupsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGroupsPages", reflect.TypeOf((*MockIAMAPI)(nil).ListGroupsPages), arg0, arg1) +} + +// ListGroupsPagesWithContext mocks base method. +func (m *MockIAMAPI) ListGroupsPagesWithContext(arg0 aws.Context, arg1 *iam.ListGroupsInput, arg2 func(*iam.ListGroupsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListGroupsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListGroupsPagesWithContext indicates an expected call of ListGroupsPagesWithContext. +func (mr *MockIAMAPIMockRecorder) ListGroupsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGroupsPagesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListGroupsPagesWithContext), varargs...) +} + +// ListGroupsRequest mocks base method. +func (m *MockIAMAPI) ListGroupsRequest(arg0 *iam.ListGroupsInput) (*request.Request, *iam.ListGroupsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListGroupsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ListGroupsOutput) + return ret0, ret1 +} + +// ListGroupsRequest indicates an expected call of ListGroupsRequest. +func (mr *MockIAMAPIMockRecorder) ListGroupsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGroupsRequest", reflect.TypeOf((*MockIAMAPI)(nil).ListGroupsRequest), arg0) +} + +// ListGroupsWithContext mocks base method. +func (m *MockIAMAPI) ListGroupsWithContext(arg0 aws.Context, arg1 *iam.ListGroupsInput, arg2 ...request.Option) (*iam.ListGroupsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListGroupsWithContext", varargs...) + ret0, _ := ret[0].(*iam.ListGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListGroupsWithContext indicates an expected call of ListGroupsWithContext. +func (mr *MockIAMAPIMockRecorder) ListGroupsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGroupsWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListGroupsWithContext), varargs...) +} + +// ListInstanceProfileTags mocks base method. +func (m *MockIAMAPI) ListInstanceProfileTags(arg0 *iam.ListInstanceProfileTagsInput) (*iam.ListInstanceProfileTagsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListInstanceProfileTags", arg0) + ret0, _ := ret[0].(*iam.ListInstanceProfileTagsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListInstanceProfileTags indicates an expected call of ListInstanceProfileTags. +func (mr *MockIAMAPIMockRecorder) ListInstanceProfileTags(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInstanceProfileTags", reflect.TypeOf((*MockIAMAPI)(nil).ListInstanceProfileTags), arg0) +} + +// ListInstanceProfileTagsRequest mocks base method. +func (m *MockIAMAPI) ListInstanceProfileTagsRequest(arg0 *iam.ListInstanceProfileTagsInput) (*request.Request, *iam.ListInstanceProfileTagsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListInstanceProfileTagsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ListInstanceProfileTagsOutput) + return ret0, ret1 +} + +// ListInstanceProfileTagsRequest indicates an expected call of ListInstanceProfileTagsRequest. +func (mr *MockIAMAPIMockRecorder) ListInstanceProfileTagsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInstanceProfileTagsRequest", reflect.TypeOf((*MockIAMAPI)(nil).ListInstanceProfileTagsRequest), arg0) +} + +// ListInstanceProfileTagsWithContext mocks base method. +func (m *MockIAMAPI) ListInstanceProfileTagsWithContext(arg0 aws.Context, arg1 *iam.ListInstanceProfileTagsInput, arg2 ...request.Option) (*iam.ListInstanceProfileTagsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListInstanceProfileTagsWithContext", varargs...) + ret0, _ := ret[0].(*iam.ListInstanceProfileTagsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListInstanceProfileTagsWithContext indicates an expected call of ListInstanceProfileTagsWithContext. +func (mr *MockIAMAPIMockRecorder) ListInstanceProfileTagsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInstanceProfileTagsWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListInstanceProfileTagsWithContext), varargs...) +} + +// ListInstanceProfiles mocks base method. +func (m *MockIAMAPI) ListInstanceProfiles(arg0 *iam.ListInstanceProfilesInput) (*iam.ListInstanceProfilesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListInstanceProfiles", arg0) + ret0, _ := ret[0].(*iam.ListInstanceProfilesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListInstanceProfiles indicates an expected call of ListInstanceProfiles. +func (mr *MockIAMAPIMockRecorder) ListInstanceProfiles(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInstanceProfiles", reflect.TypeOf((*MockIAMAPI)(nil).ListInstanceProfiles), arg0) +} + +// ListInstanceProfilesForRole mocks base method. +func (m *MockIAMAPI) ListInstanceProfilesForRole(arg0 *iam.ListInstanceProfilesForRoleInput) (*iam.ListInstanceProfilesForRoleOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListInstanceProfilesForRole", arg0) + ret0, _ := ret[0].(*iam.ListInstanceProfilesForRoleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListInstanceProfilesForRole indicates an expected call of ListInstanceProfilesForRole. +func (mr *MockIAMAPIMockRecorder) ListInstanceProfilesForRole(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInstanceProfilesForRole", reflect.TypeOf((*MockIAMAPI)(nil).ListInstanceProfilesForRole), arg0) +} + +// ListInstanceProfilesForRolePages mocks base method. +func (m *MockIAMAPI) ListInstanceProfilesForRolePages(arg0 *iam.ListInstanceProfilesForRoleInput, arg1 func(*iam.ListInstanceProfilesForRoleOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListInstanceProfilesForRolePages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListInstanceProfilesForRolePages indicates an expected call of ListInstanceProfilesForRolePages. +func (mr *MockIAMAPIMockRecorder) ListInstanceProfilesForRolePages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInstanceProfilesForRolePages", reflect.TypeOf((*MockIAMAPI)(nil).ListInstanceProfilesForRolePages), arg0, arg1) +} + +// ListInstanceProfilesForRolePagesWithContext mocks base method. +func (m *MockIAMAPI) ListInstanceProfilesForRolePagesWithContext(arg0 aws.Context, arg1 *iam.ListInstanceProfilesForRoleInput, arg2 func(*iam.ListInstanceProfilesForRoleOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListInstanceProfilesForRolePagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListInstanceProfilesForRolePagesWithContext indicates an expected call of ListInstanceProfilesForRolePagesWithContext. +func (mr *MockIAMAPIMockRecorder) ListInstanceProfilesForRolePagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInstanceProfilesForRolePagesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListInstanceProfilesForRolePagesWithContext), varargs...) +} + +// ListInstanceProfilesForRoleRequest mocks base method. +func (m *MockIAMAPI) ListInstanceProfilesForRoleRequest(arg0 *iam.ListInstanceProfilesForRoleInput) (*request.Request, *iam.ListInstanceProfilesForRoleOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListInstanceProfilesForRoleRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ListInstanceProfilesForRoleOutput) + return ret0, ret1 +} + +// ListInstanceProfilesForRoleRequest indicates an expected call of ListInstanceProfilesForRoleRequest. +func (mr *MockIAMAPIMockRecorder) ListInstanceProfilesForRoleRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInstanceProfilesForRoleRequest", reflect.TypeOf((*MockIAMAPI)(nil).ListInstanceProfilesForRoleRequest), arg0) +} + +// ListInstanceProfilesForRoleWithContext mocks base method. +func (m *MockIAMAPI) ListInstanceProfilesForRoleWithContext(arg0 aws.Context, arg1 *iam.ListInstanceProfilesForRoleInput, arg2 ...request.Option) (*iam.ListInstanceProfilesForRoleOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListInstanceProfilesForRoleWithContext", varargs...) + ret0, _ := ret[0].(*iam.ListInstanceProfilesForRoleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListInstanceProfilesForRoleWithContext indicates an expected call of ListInstanceProfilesForRoleWithContext. +func (mr *MockIAMAPIMockRecorder) ListInstanceProfilesForRoleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInstanceProfilesForRoleWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListInstanceProfilesForRoleWithContext), varargs...) +} + +// ListInstanceProfilesPages mocks base method. +func (m *MockIAMAPI) ListInstanceProfilesPages(arg0 *iam.ListInstanceProfilesInput, arg1 func(*iam.ListInstanceProfilesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListInstanceProfilesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListInstanceProfilesPages indicates an expected call of ListInstanceProfilesPages. +func (mr *MockIAMAPIMockRecorder) ListInstanceProfilesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInstanceProfilesPages", reflect.TypeOf((*MockIAMAPI)(nil).ListInstanceProfilesPages), arg0, arg1) +} + +// ListInstanceProfilesPagesWithContext mocks base method. +func (m *MockIAMAPI) ListInstanceProfilesPagesWithContext(arg0 aws.Context, arg1 *iam.ListInstanceProfilesInput, arg2 func(*iam.ListInstanceProfilesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListInstanceProfilesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListInstanceProfilesPagesWithContext indicates an expected call of ListInstanceProfilesPagesWithContext. +func (mr *MockIAMAPIMockRecorder) ListInstanceProfilesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInstanceProfilesPagesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListInstanceProfilesPagesWithContext), varargs...) +} + +// ListInstanceProfilesRequest mocks base method. +func (m *MockIAMAPI) ListInstanceProfilesRequest(arg0 *iam.ListInstanceProfilesInput) (*request.Request, *iam.ListInstanceProfilesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListInstanceProfilesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ListInstanceProfilesOutput) + return ret0, ret1 +} + +// ListInstanceProfilesRequest indicates an expected call of ListInstanceProfilesRequest. +func (mr *MockIAMAPIMockRecorder) ListInstanceProfilesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInstanceProfilesRequest", reflect.TypeOf((*MockIAMAPI)(nil).ListInstanceProfilesRequest), arg0) +} + +// ListInstanceProfilesWithContext mocks base method. +func (m *MockIAMAPI) ListInstanceProfilesWithContext(arg0 aws.Context, arg1 *iam.ListInstanceProfilesInput, arg2 ...request.Option) (*iam.ListInstanceProfilesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListInstanceProfilesWithContext", varargs...) + ret0, _ := ret[0].(*iam.ListInstanceProfilesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListInstanceProfilesWithContext indicates an expected call of ListInstanceProfilesWithContext. +func (mr *MockIAMAPIMockRecorder) ListInstanceProfilesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInstanceProfilesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListInstanceProfilesWithContext), varargs...) +} + +// ListMFADeviceTags mocks base method. +func (m *MockIAMAPI) ListMFADeviceTags(arg0 *iam.ListMFADeviceTagsInput) (*iam.ListMFADeviceTagsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListMFADeviceTags", arg0) + ret0, _ := ret[0].(*iam.ListMFADeviceTagsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListMFADeviceTags indicates an expected call of ListMFADeviceTags. +func (mr *MockIAMAPIMockRecorder) ListMFADeviceTags(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMFADeviceTags", reflect.TypeOf((*MockIAMAPI)(nil).ListMFADeviceTags), arg0) +} + +// ListMFADeviceTagsRequest mocks base method. +func (m *MockIAMAPI) ListMFADeviceTagsRequest(arg0 *iam.ListMFADeviceTagsInput) (*request.Request, *iam.ListMFADeviceTagsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListMFADeviceTagsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ListMFADeviceTagsOutput) + return ret0, ret1 +} + +// ListMFADeviceTagsRequest indicates an expected call of ListMFADeviceTagsRequest. +func (mr *MockIAMAPIMockRecorder) ListMFADeviceTagsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMFADeviceTagsRequest", reflect.TypeOf((*MockIAMAPI)(nil).ListMFADeviceTagsRequest), arg0) +} + +// ListMFADeviceTagsWithContext mocks base method. +func (m *MockIAMAPI) ListMFADeviceTagsWithContext(arg0 aws.Context, arg1 *iam.ListMFADeviceTagsInput, arg2 ...request.Option) (*iam.ListMFADeviceTagsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListMFADeviceTagsWithContext", varargs...) + ret0, _ := ret[0].(*iam.ListMFADeviceTagsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListMFADeviceTagsWithContext indicates an expected call of ListMFADeviceTagsWithContext. +func (mr *MockIAMAPIMockRecorder) ListMFADeviceTagsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMFADeviceTagsWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListMFADeviceTagsWithContext), varargs...) +} + +// ListMFADevices mocks base method. +func (m *MockIAMAPI) ListMFADevices(arg0 *iam.ListMFADevicesInput) (*iam.ListMFADevicesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListMFADevices", arg0) + ret0, _ := ret[0].(*iam.ListMFADevicesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListMFADevices indicates an expected call of ListMFADevices. +func (mr *MockIAMAPIMockRecorder) ListMFADevices(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMFADevices", reflect.TypeOf((*MockIAMAPI)(nil).ListMFADevices), arg0) +} + +// ListMFADevicesPages mocks base method. +func (m *MockIAMAPI) ListMFADevicesPages(arg0 *iam.ListMFADevicesInput, arg1 func(*iam.ListMFADevicesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListMFADevicesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListMFADevicesPages indicates an expected call of ListMFADevicesPages. +func (mr *MockIAMAPIMockRecorder) ListMFADevicesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMFADevicesPages", reflect.TypeOf((*MockIAMAPI)(nil).ListMFADevicesPages), arg0, arg1) +} + +// ListMFADevicesPagesWithContext mocks base method. +func (m *MockIAMAPI) ListMFADevicesPagesWithContext(arg0 aws.Context, arg1 *iam.ListMFADevicesInput, arg2 func(*iam.ListMFADevicesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListMFADevicesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListMFADevicesPagesWithContext indicates an expected call of ListMFADevicesPagesWithContext. +func (mr *MockIAMAPIMockRecorder) ListMFADevicesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMFADevicesPagesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListMFADevicesPagesWithContext), varargs...) +} + +// ListMFADevicesRequest mocks base method. +func (m *MockIAMAPI) ListMFADevicesRequest(arg0 *iam.ListMFADevicesInput) (*request.Request, *iam.ListMFADevicesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListMFADevicesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ListMFADevicesOutput) + return ret0, ret1 +} + +// ListMFADevicesRequest indicates an expected call of ListMFADevicesRequest. +func (mr *MockIAMAPIMockRecorder) ListMFADevicesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMFADevicesRequest", reflect.TypeOf((*MockIAMAPI)(nil).ListMFADevicesRequest), arg0) +} + +// ListMFADevicesWithContext mocks base method. +func (m *MockIAMAPI) ListMFADevicesWithContext(arg0 aws.Context, arg1 *iam.ListMFADevicesInput, arg2 ...request.Option) (*iam.ListMFADevicesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListMFADevicesWithContext", varargs...) + ret0, _ := ret[0].(*iam.ListMFADevicesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListMFADevicesWithContext indicates an expected call of ListMFADevicesWithContext. +func (mr *MockIAMAPIMockRecorder) ListMFADevicesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMFADevicesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListMFADevicesWithContext), varargs...) +} + +// ListOpenIDConnectProviderTags mocks base method. +func (m *MockIAMAPI) ListOpenIDConnectProviderTags(arg0 *iam.ListOpenIDConnectProviderTagsInput) (*iam.ListOpenIDConnectProviderTagsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListOpenIDConnectProviderTags", arg0) + ret0, _ := ret[0].(*iam.ListOpenIDConnectProviderTagsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListOpenIDConnectProviderTags indicates an expected call of ListOpenIDConnectProviderTags. +func (mr *MockIAMAPIMockRecorder) ListOpenIDConnectProviderTags(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOpenIDConnectProviderTags", reflect.TypeOf((*MockIAMAPI)(nil).ListOpenIDConnectProviderTags), arg0) +} + +// ListOpenIDConnectProviderTagsRequest mocks base method. +func (m *MockIAMAPI) ListOpenIDConnectProviderTagsRequest(arg0 *iam.ListOpenIDConnectProviderTagsInput) (*request.Request, *iam.ListOpenIDConnectProviderTagsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListOpenIDConnectProviderTagsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ListOpenIDConnectProviderTagsOutput) + return ret0, ret1 +} + +// ListOpenIDConnectProviderTagsRequest indicates an expected call of ListOpenIDConnectProviderTagsRequest. +func (mr *MockIAMAPIMockRecorder) ListOpenIDConnectProviderTagsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOpenIDConnectProviderTagsRequest", reflect.TypeOf((*MockIAMAPI)(nil).ListOpenIDConnectProviderTagsRequest), arg0) +} + +// ListOpenIDConnectProviderTagsWithContext mocks base method. +func (m *MockIAMAPI) ListOpenIDConnectProviderTagsWithContext(arg0 aws.Context, arg1 *iam.ListOpenIDConnectProviderTagsInput, arg2 ...request.Option) (*iam.ListOpenIDConnectProviderTagsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListOpenIDConnectProviderTagsWithContext", varargs...) + ret0, _ := ret[0].(*iam.ListOpenIDConnectProviderTagsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListOpenIDConnectProviderTagsWithContext indicates an expected call of ListOpenIDConnectProviderTagsWithContext. +func (mr *MockIAMAPIMockRecorder) ListOpenIDConnectProviderTagsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOpenIDConnectProviderTagsWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListOpenIDConnectProviderTagsWithContext), varargs...) +} + +// ListOpenIDConnectProviders mocks base method. +func (m *MockIAMAPI) ListOpenIDConnectProviders(arg0 *iam.ListOpenIDConnectProvidersInput) (*iam.ListOpenIDConnectProvidersOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListOpenIDConnectProviders", arg0) + ret0, _ := ret[0].(*iam.ListOpenIDConnectProvidersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListOpenIDConnectProviders indicates an expected call of ListOpenIDConnectProviders. +func (mr *MockIAMAPIMockRecorder) ListOpenIDConnectProviders(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOpenIDConnectProviders", reflect.TypeOf((*MockIAMAPI)(nil).ListOpenIDConnectProviders), arg0) +} + +// ListOpenIDConnectProvidersRequest mocks base method. +func (m *MockIAMAPI) ListOpenIDConnectProvidersRequest(arg0 *iam.ListOpenIDConnectProvidersInput) (*request.Request, *iam.ListOpenIDConnectProvidersOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListOpenIDConnectProvidersRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ListOpenIDConnectProvidersOutput) + return ret0, ret1 +} + +// ListOpenIDConnectProvidersRequest indicates an expected call of ListOpenIDConnectProvidersRequest. +func (mr *MockIAMAPIMockRecorder) ListOpenIDConnectProvidersRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOpenIDConnectProvidersRequest", reflect.TypeOf((*MockIAMAPI)(nil).ListOpenIDConnectProvidersRequest), arg0) +} + +// ListOpenIDConnectProvidersWithContext mocks base method. +func (m *MockIAMAPI) ListOpenIDConnectProvidersWithContext(arg0 aws.Context, arg1 *iam.ListOpenIDConnectProvidersInput, arg2 ...request.Option) (*iam.ListOpenIDConnectProvidersOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListOpenIDConnectProvidersWithContext", varargs...) + ret0, _ := ret[0].(*iam.ListOpenIDConnectProvidersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListOpenIDConnectProvidersWithContext indicates an expected call of ListOpenIDConnectProvidersWithContext. +func (mr *MockIAMAPIMockRecorder) ListOpenIDConnectProvidersWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOpenIDConnectProvidersWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListOpenIDConnectProvidersWithContext), varargs...) +} + +// ListPolicies mocks base method. +func (m *MockIAMAPI) ListPolicies(arg0 *iam.ListPoliciesInput) (*iam.ListPoliciesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListPolicies", arg0) + ret0, _ := ret[0].(*iam.ListPoliciesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListPolicies indicates an expected call of ListPolicies. +func (mr *MockIAMAPIMockRecorder) ListPolicies(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPolicies", reflect.TypeOf((*MockIAMAPI)(nil).ListPolicies), arg0) +} + +// ListPoliciesGrantingServiceAccess mocks base method. +func (m *MockIAMAPI) ListPoliciesGrantingServiceAccess(arg0 *iam.ListPoliciesGrantingServiceAccessInput) (*iam.ListPoliciesGrantingServiceAccessOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListPoliciesGrantingServiceAccess", arg0) + ret0, _ := ret[0].(*iam.ListPoliciesGrantingServiceAccessOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListPoliciesGrantingServiceAccess indicates an expected call of ListPoliciesGrantingServiceAccess. +func (mr *MockIAMAPIMockRecorder) ListPoliciesGrantingServiceAccess(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPoliciesGrantingServiceAccess", reflect.TypeOf((*MockIAMAPI)(nil).ListPoliciesGrantingServiceAccess), arg0) +} + +// ListPoliciesGrantingServiceAccessRequest mocks base method. +func (m *MockIAMAPI) ListPoliciesGrantingServiceAccessRequest(arg0 *iam.ListPoliciesGrantingServiceAccessInput) (*request.Request, *iam.ListPoliciesGrantingServiceAccessOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListPoliciesGrantingServiceAccessRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ListPoliciesGrantingServiceAccessOutput) + return ret0, ret1 +} + +// ListPoliciesGrantingServiceAccessRequest indicates an expected call of ListPoliciesGrantingServiceAccessRequest. +func (mr *MockIAMAPIMockRecorder) ListPoliciesGrantingServiceAccessRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPoliciesGrantingServiceAccessRequest", reflect.TypeOf((*MockIAMAPI)(nil).ListPoliciesGrantingServiceAccessRequest), arg0) +} + +// ListPoliciesGrantingServiceAccessWithContext mocks base method. +func (m *MockIAMAPI) ListPoliciesGrantingServiceAccessWithContext(arg0 aws.Context, arg1 *iam.ListPoliciesGrantingServiceAccessInput, arg2 ...request.Option) (*iam.ListPoliciesGrantingServiceAccessOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListPoliciesGrantingServiceAccessWithContext", varargs...) + ret0, _ := ret[0].(*iam.ListPoliciesGrantingServiceAccessOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListPoliciesGrantingServiceAccessWithContext indicates an expected call of ListPoliciesGrantingServiceAccessWithContext. +func (mr *MockIAMAPIMockRecorder) ListPoliciesGrantingServiceAccessWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPoliciesGrantingServiceAccessWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListPoliciesGrantingServiceAccessWithContext), varargs...) +} + +// ListPoliciesPages mocks base method. +func (m *MockIAMAPI) ListPoliciesPages(arg0 *iam.ListPoliciesInput, arg1 func(*iam.ListPoliciesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListPoliciesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListPoliciesPages indicates an expected call of ListPoliciesPages. +func (mr *MockIAMAPIMockRecorder) ListPoliciesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPoliciesPages", reflect.TypeOf((*MockIAMAPI)(nil).ListPoliciesPages), arg0, arg1) +} + +// ListPoliciesPagesWithContext mocks base method. +func (m *MockIAMAPI) ListPoliciesPagesWithContext(arg0 aws.Context, arg1 *iam.ListPoliciesInput, arg2 func(*iam.ListPoliciesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListPoliciesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListPoliciesPagesWithContext indicates an expected call of ListPoliciesPagesWithContext. +func (mr *MockIAMAPIMockRecorder) ListPoliciesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPoliciesPagesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListPoliciesPagesWithContext), varargs...) +} + +// ListPoliciesRequest mocks base method. +func (m *MockIAMAPI) ListPoliciesRequest(arg0 *iam.ListPoliciesInput) (*request.Request, *iam.ListPoliciesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListPoliciesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ListPoliciesOutput) + return ret0, ret1 +} + +// ListPoliciesRequest indicates an expected call of ListPoliciesRequest. +func (mr *MockIAMAPIMockRecorder) ListPoliciesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPoliciesRequest", reflect.TypeOf((*MockIAMAPI)(nil).ListPoliciesRequest), arg0) +} + +// ListPoliciesWithContext mocks base method. +func (m *MockIAMAPI) ListPoliciesWithContext(arg0 aws.Context, arg1 *iam.ListPoliciesInput, arg2 ...request.Option) (*iam.ListPoliciesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListPoliciesWithContext", varargs...) + ret0, _ := ret[0].(*iam.ListPoliciesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListPoliciesWithContext indicates an expected call of ListPoliciesWithContext. +func (mr *MockIAMAPIMockRecorder) ListPoliciesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPoliciesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListPoliciesWithContext), varargs...) +} + +// ListPolicyTags mocks base method. +func (m *MockIAMAPI) ListPolicyTags(arg0 *iam.ListPolicyTagsInput) (*iam.ListPolicyTagsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListPolicyTags", arg0) + ret0, _ := ret[0].(*iam.ListPolicyTagsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListPolicyTags indicates an expected call of ListPolicyTags. +func (mr *MockIAMAPIMockRecorder) ListPolicyTags(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPolicyTags", reflect.TypeOf((*MockIAMAPI)(nil).ListPolicyTags), arg0) +} + +// ListPolicyTagsRequest mocks base method. +func (m *MockIAMAPI) ListPolicyTagsRequest(arg0 *iam.ListPolicyTagsInput) (*request.Request, *iam.ListPolicyTagsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListPolicyTagsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ListPolicyTagsOutput) + return ret0, ret1 +} + +// ListPolicyTagsRequest indicates an expected call of ListPolicyTagsRequest. +func (mr *MockIAMAPIMockRecorder) ListPolicyTagsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPolicyTagsRequest", reflect.TypeOf((*MockIAMAPI)(nil).ListPolicyTagsRequest), arg0) +} + +// ListPolicyTagsWithContext mocks base method. +func (m *MockIAMAPI) ListPolicyTagsWithContext(arg0 aws.Context, arg1 *iam.ListPolicyTagsInput, arg2 ...request.Option) (*iam.ListPolicyTagsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListPolicyTagsWithContext", varargs...) + ret0, _ := ret[0].(*iam.ListPolicyTagsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListPolicyTagsWithContext indicates an expected call of ListPolicyTagsWithContext. +func (mr *MockIAMAPIMockRecorder) ListPolicyTagsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPolicyTagsWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListPolicyTagsWithContext), varargs...) +} + +// ListPolicyVersions mocks base method. +func (m *MockIAMAPI) ListPolicyVersions(arg0 *iam.ListPolicyVersionsInput) (*iam.ListPolicyVersionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListPolicyVersions", arg0) + ret0, _ := ret[0].(*iam.ListPolicyVersionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListPolicyVersions indicates an expected call of ListPolicyVersions. +func (mr *MockIAMAPIMockRecorder) ListPolicyVersions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPolicyVersions", reflect.TypeOf((*MockIAMAPI)(nil).ListPolicyVersions), arg0) +} + +// ListPolicyVersionsPages mocks base method. +func (m *MockIAMAPI) ListPolicyVersionsPages(arg0 *iam.ListPolicyVersionsInput, arg1 func(*iam.ListPolicyVersionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListPolicyVersionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListPolicyVersionsPages indicates an expected call of ListPolicyVersionsPages. +func (mr *MockIAMAPIMockRecorder) ListPolicyVersionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPolicyVersionsPages", reflect.TypeOf((*MockIAMAPI)(nil).ListPolicyVersionsPages), arg0, arg1) +} + +// ListPolicyVersionsPagesWithContext mocks base method. +func (m *MockIAMAPI) ListPolicyVersionsPagesWithContext(arg0 aws.Context, arg1 *iam.ListPolicyVersionsInput, arg2 func(*iam.ListPolicyVersionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListPolicyVersionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListPolicyVersionsPagesWithContext indicates an expected call of ListPolicyVersionsPagesWithContext. +func (mr *MockIAMAPIMockRecorder) ListPolicyVersionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPolicyVersionsPagesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListPolicyVersionsPagesWithContext), varargs...) +} + +// ListPolicyVersionsRequest mocks base method. +func (m *MockIAMAPI) ListPolicyVersionsRequest(arg0 *iam.ListPolicyVersionsInput) (*request.Request, *iam.ListPolicyVersionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListPolicyVersionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ListPolicyVersionsOutput) + return ret0, ret1 +} + +// ListPolicyVersionsRequest indicates an expected call of ListPolicyVersionsRequest. +func (mr *MockIAMAPIMockRecorder) ListPolicyVersionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPolicyVersionsRequest", reflect.TypeOf((*MockIAMAPI)(nil).ListPolicyVersionsRequest), arg0) +} + +// ListPolicyVersionsWithContext mocks base method. +func (m *MockIAMAPI) ListPolicyVersionsWithContext(arg0 aws.Context, arg1 *iam.ListPolicyVersionsInput, arg2 ...request.Option) (*iam.ListPolicyVersionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListPolicyVersionsWithContext", varargs...) + ret0, _ := ret[0].(*iam.ListPolicyVersionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListPolicyVersionsWithContext indicates an expected call of ListPolicyVersionsWithContext. +func (mr *MockIAMAPIMockRecorder) ListPolicyVersionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPolicyVersionsWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListPolicyVersionsWithContext), varargs...) +} + +// ListRolePolicies mocks base method. +func (m *MockIAMAPI) ListRolePolicies(arg0 *iam.ListRolePoliciesInput) (*iam.ListRolePoliciesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListRolePolicies", arg0) + ret0, _ := ret[0].(*iam.ListRolePoliciesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListRolePolicies indicates an expected call of ListRolePolicies. +func (mr *MockIAMAPIMockRecorder) ListRolePolicies(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRolePolicies", reflect.TypeOf((*MockIAMAPI)(nil).ListRolePolicies), arg0) +} + +// ListRolePoliciesPages mocks base method. +func (m *MockIAMAPI) ListRolePoliciesPages(arg0 *iam.ListRolePoliciesInput, arg1 func(*iam.ListRolePoliciesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListRolePoliciesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListRolePoliciesPages indicates an expected call of ListRolePoliciesPages. +func (mr *MockIAMAPIMockRecorder) ListRolePoliciesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRolePoliciesPages", reflect.TypeOf((*MockIAMAPI)(nil).ListRolePoliciesPages), arg0, arg1) +} + +// ListRolePoliciesPagesWithContext mocks base method. +func (m *MockIAMAPI) ListRolePoliciesPagesWithContext(arg0 aws.Context, arg1 *iam.ListRolePoliciesInput, arg2 func(*iam.ListRolePoliciesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListRolePoliciesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListRolePoliciesPagesWithContext indicates an expected call of ListRolePoliciesPagesWithContext. +func (mr *MockIAMAPIMockRecorder) ListRolePoliciesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRolePoliciesPagesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListRolePoliciesPagesWithContext), varargs...) +} + +// ListRolePoliciesRequest mocks base method. +func (m *MockIAMAPI) ListRolePoliciesRequest(arg0 *iam.ListRolePoliciesInput) (*request.Request, *iam.ListRolePoliciesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListRolePoliciesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ListRolePoliciesOutput) + return ret0, ret1 +} + +// ListRolePoliciesRequest indicates an expected call of ListRolePoliciesRequest. +func (mr *MockIAMAPIMockRecorder) ListRolePoliciesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRolePoliciesRequest", reflect.TypeOf((*MockIAMAPI)(nil).ListRolePoliciesRequest), arg0) +} + +// ListRolePoliciesWithContext mocks base method. +func (m *MockIAMAPI) ListRolePoliciesWithContext(arg0 aws.Context, arg1 *iam.ListRolePoliciesInput, arg2 ...request.Option) (*iam.ListRolePoliciesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListRolePoliciesWithContext", varargs...) + ret0, _ := ret[0].(*iam.ListRolePoliciesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListRolePoliciesWithContext indicates an expected call of ListRolePoliciesWithContext. +func (mr *MockIAMAPIMockRecorder) ListRolePoliciesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRolePoliciesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListRolePoliciesWithContext), varargs...) +} + +// ListRoleTags mocks base method. +func (m *MockIAMAPI) ListRoleTags(arg0 *iam.ListRoleTagsInput) (*iam.ListRoleTagsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListRoleTags", arg0) + ret0, _ := ret[0].(*iam.ListRoleTagsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListRoleTags indicates an expected call of ListRoleTags. +func (mr *MockIAMAPIMockRecorder) ListRoleTags(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRoleTags", reflect.TypeOf((*MockIAMAPI)(nil).ListRoleTags), arg0) +} + +// ListRoleTagsRequest mocks base method. +func (m *MockIAMAPI) ListRoleTagsRequest(arg0 *iam.ListRoleTagsInput) (*request.Request, *iam.ListRoleTagsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListRoleTagsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ListRoleTagsOutput) + return ret0, ret1 +} + +// ListRoleTagsRequest indicates an expected call of ListRoleTagsRequest. +func (mr *MockIAMAPIMockRecorder) ListRoleTagsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRoleTagsRequest", reflect.TypeOf((*MockIAMAPI)(nil).ListRoleTagsRequest), arg0) +} + +// ListRoleTagsWithContext mocks base method. +func (m *MockIAMAPI) ListRoleTagsWithContext(arg0 aws.Context, arg1 *iam.ListRoleTagsInput, arg2 ...request.Option) (*iam.ListRoleTagsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListRoleTagsWithContext", varargs...) + ret0, _ := ret[0].(*iam.ListRoleTagsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListRoleTagsWithContext indicates an expected call of ListRoleTagsWithContext. +func (mr *MockIAMAPIMockRecorder) ListRoleTagsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRoleTagsWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListRoleTagsWithContext), varargs...) +} + +// ListRoles mocks base method. +func (m *MockIAMAPI) ListRoles(arg0 *iam.ListRolesInput) (*iam.ListRolesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListRoles", arg0) + ret0, _ := ret[0].(*iam.ListRolesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListRoles indicates an expected call of ListRoles. +func (mr *MockIAMAPIMockRecorder) ListRoles(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRoles", reflect.TypeOf((*MockIAMAPI)(nil).ListRoles), arg0) +} + +// ListRolesPages mocks base method. +func (m *MockIAMAPI) ListRolesPages(arg0 *iam.ListRolesInput, arg1 func(*iam.ListRolesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListRolesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListRolesPages indicates an expected call of ListRolesPages. +func (mr *MockIAMAPIMockRecorder) ListRolesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRolesPages", reflect.TypeOf((*MockIAMAPI)(nil).ListRolesPages), arg0, arg1) +} + +// ListRolesPagesWithContext mocks base method. +func (m *MockIAMAPI) ListRolesPagesWithContext(arg0 aws.Context, arg1 *iam.ListRolesInput, arg2 func(*iam.ListRolesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListRolesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListRolesPagesWithContext indicates an expected call of ListRolesPagesWithContext. +func (mr *MockIAMAPIMockRecorder) ListRolesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRolesPagesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListRolesPagesWithContext), varargs...) +} + +// ListRolesRequest mocks base method. +func (m *MockIAMAPI) ListRolesRequest(arg0 *iam.ListRolesInput) (*request.Request, *iam.ListRolesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListRolesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ListRolesOutput) + return ret0, ret1 +} + +// ListRolesRequest indicates an expected call of ListRolesRequest. +func (mr *MockIAMAPIMockRecorder) ListRolesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRolesRequest", reflect.TypeOf((*MockIAMAPI)(nil).ListRolesRequest), arg0) +} + +// ListRolesWithContext mocks base method. +func (m *MockIAMAPI) ListRolesWithContext(arg0 aws.Context, arg1 *iam.ListRolesInput, arg2 ...request.Option) (*iam.ListRolesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListRolesWithContext", varargs...) + ret0, _ := ret[0].(*iam.ListRolesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListRolesWithContext indicates an expected call of ListRolesWithContext. +func (mr *MockIAMAPIMockRecorder) ListRolesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRolesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListRolesWithContext), varargs...) +} + +// ListSAMLProviderTags mocks base method. +func (m *MockIAMAPI) ListSAMLProviderTags(arg0 *iam.ListSAMLProviderTagsInput) (*iam.ListSAMLProviderTagsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListSAMLProviderTags", arg0) + ret0, _ := ret[0].(*iam.ListSAMLProviderTagsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListSAMLProviderTags indicates an expected call of ListSAMLProviderTags. +func (mr *MockIAMAPIMockRecorder) ListSAMLProviderTags(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSAMLProviderTags", reflect.TypeOf((*MockIAMAPI)(nil).ListSAMLProviderTags), arg0) +} + +// ListSAMLProviderTagsRequest mocks base method. +func (m *MockIAMAPI) ListSAMLProviderTagsRequest(arg0 *iam.ListSAMLProviderTagsInput) (*request.Request, *iam.ListSAMLProviderTagsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListSAMLProviderTagsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ListSAMLProviderTagsOutput) + return ret0, ret1 +} + +// ListSAMLProviderTagsRequest indicates an expected call of ListSAMLProviderTagsRequest. +func (mr *MockIAMAPIMockRecorder) ListSAMLProviderTagsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSAMLProviderTagsRequest", reflect.TypeOf((*MockIAMAPI)(nil).ListSAMLProviderTagsRequest), arg0) +} + +// ListSAMLProviderTagsWithContext mocks base method. +func (m *MockIAMAPI) ListSAMLProviderTagsWithContext(arg0 aws.Context, arg1 *iam.ListSAMLProviderTagsInput, arg2 ...request.Option) (*iam.ListSAMLProviderTagsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListSAMLProviderTagsWithContext", varargs...) + ret0, _ := ret[0].(*iam.ListSAMLProviderTagsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListSAMLProviderTagsWithContext indicates an expected call of ListSAMLProviderTagsWithContext. +func (mr *MockIAMAPIMockRecorder) ListSAMLProviderTagsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSAMLProviderTagsWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListSAMLProviderTagsWithContext), varargs...) +} + +// ListSAMLProviders mocks base method. +func (m *MockIAMAPI) ListSAMLProviders(arg0 *iam.ListSAMLProvidersInput) (*iam.ListSAMLProvidersOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListSAMLProviders", arg0) + ret0, _ := ret[0].(*iam.ListSAMLProvidersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListSAMLProviders indicates an expected call of ListSAMLProviders. +func (mr *MockIAMAPIMockRecorder) ListSAMLProviders(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSAMLProviders", reflect.TypeOf((*MockIAMAPI)(nil).ListSAMLProviders), arg0) +} + +// ListSAMLProvidersRequest mocks base method. +func (m *MockIAMAPI) ListSAMLProvidersRequest(arg0 *iam.ListSAMLProvidersInput) (*request.Request, *iam.ListSAMLProvidersOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListSAMLProvidersRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ListSAMLProvidersOutput) + return ret0, ret1 +} + +// ListSAMLProvidersRequest indicates an expected call of ListSAMLProvidersRequest. +func (mr *MockIAMAPIMockRecorder) ListSAMLProvidersRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSAMLProvidersRequest", reflect.TypeOf((*MockIAMAPI)(nil).ListSAMLProvidersRequest), arg0) +} + +// ListSAMLProvidersWithContext mocks base method. +func (m *MockIAMAPI) ListSAMLProvidersWithContext(arg0 aws.Context, arg1 *iam.ListSAMLProvidersInput, arg2 ...request.Option) (*iam.ListSAMLProvidersOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListSAMLProvidersWithContext", varargs...) + ret0, _ := ret[0].(*iam.ListSAMLProvidersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListSAMLProvidersWithContext indicates an expected call of ListSAMLProvidersWithContext. +func (mr *MockIAMAPIMockRecorder) ListSAMLProvidersWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSAMLProvidersWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListSAMLProvidersWithContext), varargs...) +} + +// ListSSHPublicKeys mocks base method. +func (m *MockIAMAPI) ListSSHPublicKeys(arg0 *iam.ListSSHPublicKeysInput) (*iam.ListSSHPublicKeysOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListSSHPublicKeys", arg0) + ret0, _ := ret[0].(*iam.ListSSHPublicKeysOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListSSHPublicKeys indicates an expected call of ListSSHPublicKeys. +func (mr *MockIAMAPIMockRecorder) ListSSHPublicKeys(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSSHPublicKeys", reflect.TypeOf((*MockIAMAPI)(nil).ListSSHPublicKeys), arg0) +} + +// ListSSHPublicKeysPages mocks base method. +func (m *MockIAMAPI) ListSSHPublicKeysPages(arg0 *iam.ListSSHPublicKeysInput, arg1 func(*iam.ListSSHPublicKeysOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListSSHPublicKeysPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListSSHPublicKeysPages indicates an expected call of ListSSHPublicKeysPages. +func (mr *MockIAMAPIMockRecorder) ListSSHPublicKeysPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSSHPublicKeysPages", reflect.TypeOf((*MockIAMAPI)(nil).ListSSHPublicKeysPages), arg0, arg1) +} + +// ListSSHPublicKeysPagesWithContext mocks base method. +func (m *MockIAMAPI) ListSSHPublicKeysPagesWithContext(arg0 aws.Context, arg1 *iam.ListSSHPublicKeysInput, arg2 func(*iam.ListSSHPublicKeysOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListSSHPublicKeysPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListSSHPublicKeysPagesWithContext indicates an expected call of ListSSHPublicKeysPagesWithContext. +func (mr *MockIAMAPIMockRecorder) ListSSHPublicKeysPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSSHPublicKeysPagesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListSSHPublicKeysPagesWithContext), varargs...) +} + +// ListSSHPublicKeysRequest mocks base method. +func (m *MockIAMAPI) ListSSHPublicKeysRequest(arg0 *iam.ListSSHPublicKeysInput) (*request.Request, *iam.ListSSHPublicKeysOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListSSHPublicKeysRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ListSSHPublicKeysOutput) + return ret0, ret1 +} + +// ListSSHPublicKeysRequest indicates an expected call of ListSSHPublicKeysRequest. +func (mr *MockIAMAPIMockRecorder) ListSSHPublicKeysRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSSHPublicKeysRequest", reflect.TypeOf((*MockIAMAPI)(nil).ListSSHPublicKeysRequest), arg0) +} + +// ListSSHPublicKeysWithContext mocks base method. +func (m *MockIAMAPI) ListSSHPublicKeysWithContext(arg0 aws.Context, arg1 *iam.ListSSHPublicKeysInput, arg2 ...request.Option) (*iam.ListSSHPublicKeysOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListSSHPublicKeysWithContext", varargs...) + ret0, _ := ret[0].(*iam.ListSSHPublicKeysOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListSSHPublicKeysWithContext indicates an expected call of ListSSHPublicKeysWithContext. +func (mr *MockIAMAPIMockRecorder) ListSSHPublicKeysWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSSHPublicKeysWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListSSHPublicKeysWithContext), varargs...) +} + +// ListServerCertificateTags mocks base method. +func (m *MockIAMAPI) ListServerCertificateTags(arg0 *iam.ListServerCertificateTagsInput) (*iam.ListServerCertificateTagsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListServerCertificateTags", arg0) + ret0, _ := ret[0].(*iam.ListServerCertificateTagsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListServerCertificateTags indicates an expected call of ListServerCertificateTags. +func (mr *MockIAMAPIMockRecorder) ListServerCertificateTags(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServerCertificateTags", reflect.TypeOf((*MockIAMAPI)(nil).ListServerCertificateTags), arg0) +} + +// ListServerCertificateTagsRequest mocks base method. +func (m *MockIAMAPI) ListServerCertificateTagsRequest(arg0 *iam.ListServerCertificateTagsInput) (*request.Request, *iam.ListServerCertificateTagsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListServerCertificateTagsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ListServerCertificateTagsOutput) + return ret0, ret1 +} + +// ListServerCertificateTagsRequest indicates an expected call of ListServerCertificateTagsRequest. +func (mr *MockIAMAPIMockRecorder) ListServerCertificateTagsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServerCertificateTagsRequest", reflect.TypeOf((*MockIAMAPI)(nil).ListServerCertificateTagsRequest), arg0) +} + +// ListServerCertificateTagsWithContext mocks base method. +func (m *MockIAMAPI) ListServerCertificateTagsWithContext(arg0 aws.Context, arg1 *iam.ListServerCertificateTagsInput, arg2 ...request.Option) (*iam.ListServerCertificateTagsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListServerCertificateTagsWithContext", varargs...) + ret0, _ := ret[0].(*iam.ListServerCertificateTagsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListServerCertificateTagsWithContext indicates an expected call of ListServerCertificateTagsWithContext. +func (mr *MockIAMAPIMockRecorder) ListServerCertificateTagsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServerCertificateTagsWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListServerCertificateTagsWithContext), varargs...) +} + +// ListServerCertificates mocks base method. +func (m *MockIAMAPI) ListServerCertificates(arg0 *iam.ListServerCertificatesInput) (*iam.ListServerCertificatesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListServerCertificates", arg0) + ret0, _ := ret[0].(*iam.ListServerCertificatesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListServerCertificates indicates an expected call of ListServerCertificates. +func (mr *MockIAMAPIMockRecorder) ListServerCertificates(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServerCertificates", reflect.TypeOf((*MockIAMAPI)(nil).ListServerCertificates), arg0) +} + +// ListServerCertificatesPages mocks base method. +func (m *MockIAMAPI) ListServerCertificatesPages(arg0 *iam.ListServerCertificatesInput, arg1 func(*iam.ListServerCertificatesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListServerCertificatesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListServerCertificatesPages indicates an expected call of ListServerCertificatesPages. +func (mr *MockIAMAPIMockRecorder) ListServerCertificatesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServerCertificatesPages", reflect.TypeOf((*MockIAMAPI)(nil).ListServerCertificatesPages), arg0, arg1) +} + +// ListServerCertificatesPagesWithContext mocks base method. +func (m *MockIAMAPI) ListServerCertificatesPagesWithContext(arg0 aws.Context, arg1 *iam.ListServerCertificatesInput, arg2 func(*iam.ListServerCertificatesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListServerCertificatesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListServerCertificatesPagesWithContext indicates an expected call of ListServerCertificatesPagesWithContext. +func (mr *MockIAMAPIMockRecorder) ListServerCertificatesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServerCertificatesPagesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListServerCertificatesPagesWithContext), varargs...) +} + +// ListServerCertificatesRequest mocks base method. +func (m *MockIAMAPI) ListServerCertificatesRequest(arg0 *iam.ListServerCertificatesInput) (*request.Request, *iam.ListServerCertificatesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListServerCertificatesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ListServerCertificatesOutput) + return ret0, ret1 +} + +// ListServerCertificatesRequest indicates an expected call of ListServerCertificatesRequest. +func (mr *MockIAMAPIMockRecorder) ListServerCertificatesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServerCertificatesRequest", reflect.TypeOf((*MockIAMAPI)(nil).ListServerCertificatesRequest), arg0) +} + +// ListServerCertificatesWithContext mocks base method. +func (m *MockIAMAPI) ListServerCertificatesWithContext(arg0 aws.Context, arg1 *iam.ListServerCertificatesInput, arg2 ...request.Option) (*iam.ListServerCertificatesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListServerCertificatesWithContext", varargs...) + ret0, _ := ret[0].(*iam.ListServerCertificatesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListServerCertificatesWithContext indicates an expected call of ListServerCertificatesWithContext. +func (mr *MockIAMAPIMockRecorder) ListServerCertificatesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServerCertificatesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListServerCertificatesWithContext), varargs...) +} + +// ListServiceSpecificCredentials mocks base method. +func (m *MockIAMAPI) ListServiceSpecificCredentials(arg0 *iam.ListServiceSpecificCredentialsInput) (*iam.ListServiceSpecificCredentialsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListServiceSpecificCredentials", arg0) + ret0, _ := ret[0].(*iam.ListServiceSpecificCredentialsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListServiceSpecificCredentials indicates an expected call of ListServiceSpecificCredentials. +func (mr *MockIAMAPIMockRecorder) ListServiceSpecificCredentials(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServiceSpecificCredentials", reflect.TypeOf((*MockIAMAPI)(nil).ListServiceSpecificCredentials), arg0) +} + +// ListServiceSpecificCredentialsRequest mocks base method. +func (m *MockIAMAPI) ListServiceSpecificCredentialsRequest(arg0 *iam.ListServiceSpecificCredentialsInput) (*request.Request, *iam.ListServiceSpecificCredentialsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListServiceSpecificCredentialsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ListServiceSpecificCredentialsOutput) + return ret0, ret1 +} + +// ListServiceSpecificCredentialsRequest indicates an expected call of ListServiceSpecificCredentialsRequest. +func (mr *MockIAMAPIMockRecorder) ListServiceSpecificCredentialsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServiceSpecificCredentialsRequest", reflect.TypeOf((*MockIAMAPI)(nil).ListServiceSpecificCredentialsRequest), arg0) +} + +// ListServiceSpecificCredentialsWithContext mocks base method. +func (m *MockIAMAPI) ListServiceSpecificCredentialsWithContext(arg0 aws.Context, arg1 *iam.ListServiceSpecificCredentialsInput, arg2 ...request.Option) (*iam.ListServiceSpecificCredentialsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListServiceSpecificCredentialsWithContext", varargs...) + ret0, _ := ret[0].(*iam.ListServiceSpecificCredentialsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListServiceSpecificCredentialsWithContext indicates an expected call of ListServiceSpecificCredentialsWithContext. +func (mr *MockIAMAPIMockRecorder) ListServiceSpecificCredentialsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServiceSpecificCredentialsWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListServiceSpecificCredentialsWithContext), varargs...) +} + +// ListSigningCertificates mocks base method. +func (m *MockIAMAPI) ListSigningCertificates(arg0 *iam.ListSigningCertificatesInput) (*iam.ListSigningCertificatesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListSigningCertificates", arg0) + ret0, _ := ret[0].(*iam.ListSigningCertificatesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListSigningCertificates indicates an expected call of ListSigningCertificates. +func (mr *MockIAMAPIMockRecorder) ListSigningCertificates(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSigningCertificates", reflect.TypeOf((*MockIAMAPI)(nil).ListSigningCertificates), arg0) +} + +// ListSigningCertificatesPages mocks base method. +func (m *MockIAMAPI) ListSigningCertificatesPages(arg0 *iam.ListSigningCertificatesInput, arg1 func(*iam.ListSigningCertificatesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListSigningCertificatesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListSigningCertificatesPages indicates an expected call of ListSigningCertificatesPages. +func (mr *MockIAMAPIMockRecorder) ListSigningCertificatesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSigningCertificatesPages", reflect.TypeOf((*MockIAMAPI)(nil).ListSigningCertificatesPages), arg0, arg1) +} + +// ListSigningCertificatesPagesWithContext mocks base method. +func (m *MockIAMAPI) ListSigningCertificatesPagesWithContext(arg0 aws.Context, arg1 *iam.ListSigningCertificatesInput, arg2 func(*iam.ListSigningCertificatesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListSigningCertificatesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListSigningCertificatesPagesWithContext indicates an expected call of ListSigningCertificatesPagesWithContext. +func (mr *MockIAMAPIMockRecorder) ListSigningCertificatesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSigningCertificatesPagesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListSigningCertificatesPagesWithContext), varargs...) +} + +// ListSigningCertificatesRequest mocks base method. +func (m *MockIAMAPI) ListSigningCertificatesRequest(arg0 *iam.ListSigningCertificatesInput) (*request.Request, *iam.ListSigningCertificatesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListSigningCertificatesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ListSigningCertificatesOutput) + return ret0, ret1 +} + +// ListSigningCertificatesRequest indicates an expected call of ListSigningCertificatesRequest. +func (mr *MockIAMAPIMockRecorder) ListSigningCertificatesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSigningCertificatesRequest", reflect.TypeOf((*MockIAMAPI)(nil).ListSigningCertificatesRequest), arg0) +} + +// ListSigningCertificatesWithContext mocks base method. +func (m *MockIAMAPI) ListSigningCertificatesWithContext(arg0 aws.Context, arg1 *iam.ListSigningCertificatesInput, arg2 ...request.Option) (*iam.ListSigningCertificatesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListSigningCertificatesWithContext", varargs...) + ret0, _ := ret[0].(*iam.ListSigningCertificatesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListSigningCertificatesWithContext indicates an expected call of ListSigningCertificatesWithContext. +func (mr *MockIAMAPIMockRecorder) ListSigningCertificatesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSigningCertificatesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListSigningCertificatesWithContext), varargs...) +} + +// ListUserPolicies mocks base method. +func (m *MockIAMAPI) ListUserPolicies(arg0 *iam.ListUserPoliciesInput) (*iam.ListUserPoliciesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListUserPolicies", arg0) + ret0, _ := ret[0].(*iam.ListUserPoliciesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListUserPolicies indicates an expected call of ListUserPolicies. +func (mr *MockIAMAPIMockRecorder) ListUserPolicies(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUserPolicies", reflect.TypeOf((*MockIAMAPI)(nil).ListUserPolicies), arg0) +} + +// ListUserPoliciesPages mocks base method. +func (m *MockIAMAPI) ListUserPoliciesPages(arg0 *iam.ListUserPoliciesInput, arg1 func(*iam.ListUserPoliciesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListUserPoliciesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListUserPoliciesPages indicates an expected call of ListUserPoliciesPages. +func (mr *MockIAMAPIMockRecorder) ListUserPoliciesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUserPoliciesPages", reflect.TypeOf((*MockIAMAPI)(nil).ListUserPoliciesPages), arg0, arg1) +} + +// ListUserPoliciesPagesWithContext mocks base method. +func (m *MockIAMAPI) ListUserPoliciesPagesWithContext(arg0 aws.Context, arg1 *iam.ListUserPoliciesInput, arg2 func(*iam.ListUserPoliciesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListUserPoliciesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListUserPoliciesPagesWithContext indicates an expected call of ListUserPoliciesPagesWithContext. +func (mr *MockIAMAPIMockRecorder) ListUserPoliciesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUserPoliciesPagesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListUserPoliciesPagesWithContext), varargs...) +} + +// ListUserPoliciesRequest mocks base method. +func (m *MockIAMAPI) ListUserPoliciesRequest(arg0 *iam.ListUserPoliciesInput) (*request.Request, *iam.ListUserPoliciesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListUserPoliciesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ListUserPoliciesOutput) + return ret0, ret1 +} + +// ListUserPoliciesRequest indicates an expected call of ListUserPoliciesRequest. +func (mr *MockIAMAPIMockRecorder) ListUserPoliciesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUserPoliciesRequest", reflect.TypeOf((*MockIAMAPI)(nil).ListUserPoliciesRequest), arg0) +} + +// ListUserPoliciesWithContext mocks base method. +func (m *MockIAMAPI) ListUserPoliciesWithContext(arg0 aws.Context, arg1 *iam.ListUserPoliciesInput, arg2 ...request.Option) (*iam.ListUserPoliciesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListUserPoliciesWithContext", varargs...) + ret0, _ := ret[0].(*iam.ListUserPoliciesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListUserPoliciesWithContext indicates an expected call of ListUserPoliciesWithContext. +func (mr *MockIAMAPIMockRecorder) ListUserPoliciesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUserPoliciesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListUserPoliciesWithContext), varargs...) +} + +// ListUserTags mocks base method. +func (m *MockIAMAPI) ListUserTags(arg0 *iam.ListUserTagsInput) (*iam.ListUserTagsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListUserTags", arg0) + ret0, _ := ret[0].(*iam.ListUserTagsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListUserTags indicates an expected call of ListUserTags. +func (mr *MockIAMAPIMockRecorder) ListUserTags(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUserTags", reflect.TypeOf((*MockIAMAPI)(nil).ListUserTags), arg0) +} + +// ListUserTagsPages mocks base method. +func (m *MockIAMAPI) ListUserTagsPages(arg0 *iam.ListUserTagsInput, arg1 func(*iam.ListUserTagsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListUserTagsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListUserTagsPages indicates an expected call of ListUserTagsPages. +func (mr *MockIAMAPIMockRecorder) ListUserTagsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUserTagsPages", reflect.TypeOf((*MockIAMAPI)(nil).ListUserTagsPages), arg0, arg1) +} + +// ListUserTagsPagesWithContext mocks base method. +func (m *MockIAMAPI) ListUserTagsPagesWithContext(arg0 aws.Context, arg1 *iam.ListUserTagsInput, arg2 func(*iam.ListUserTagsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListUserTagsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListUserTagsPagesWithContext indicates an expected call of ListUserTagsPagesWithContext. +func (mr *MockIAMAPIMockRecorder) ListUserTagsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUserTagsPagesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListUserTagsPagesWithContext), varargs...) +} + +// ListUserTagsRequest mocks base method. +func (m *MockIAMAPI) ListUserTagsRequest(arg0 *iam.ListUserTagsInput) (*request.Request, *iam.ListUserTagsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListUserTagsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ListUserTagsOutput) + return ret0, ret1 +} + +// ListUserTagsRequest indicates an expected call of ListUserTagsRequest. +func (mr *MockIAMAPIMockRecorder) ListUserTagsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUserTagsRequest", reflect.TypeOf((*MockIAMAPI)(nil).ListUserTagsRequest), arg0) +} + +// ListUserTagsWithContext mocks base method. +func (m *MockIAMAPI) ListUserTagsWithContext(arg0 aws.Context, arg1 *iam.ListUserTagsInput, arg2 ...request.Option) (*iam.ListUserTagsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListUserTagsWithContext", varargs...) + ret0, _ := ret[0].(*iam.ListUserTagsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListUserTagsWithContext indicates an expected call of ListUserTagsWithContext. +func (mr *MockIAMAPIMockRecorder) ListUserTagsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUserTagsWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListUserTagsWithContext), varargs...) +} + +// ListUsers mocks base method. +func (m *MockIAMAPI) ListUsers(arg0 *iam.ListUsersInput) (*iam.ListUsersOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListUsers", arg0) + ret0, _ := ret[0].(*iam.ListUsersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListUsers indicates an expected call of ListUsers. +func (mr *MockIAMAPIMockRecorder) ListUsers(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUsers", reflect.TypeOf((*MockIAMAPI)(nil).ListUsers), arg0) +} + +// ListUsersPages mocks base method. +func (m *MockIAMAPI) ListUsersPages(arg0 *iam.ListUsersInput, arg1 func(*iam.ListUsersOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListUsersPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListUsersPages indicates an expected call of ListUsersPages. +func (mr *MockIAMAPIMockRecorder) ListUsersPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUsersPages", reflect.TypeOf((*MockIAMAPI)(nil).ListUsersPages), arg0, arg1) +} + +// ListUsersPagesWithContext mocks base method. +func (m *MockIAMAPI) ListUsersPagesWithContext(arg0 aws.Context, arg1 *iam.ListUsersInput, arg2 func(*iam.ListUsersOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListUsersPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListUsersPagesWithContext indicates an expected call of ListUsersPagesWithContext. +func (mr *MockIAMAPIMockRecorder) ListUsersPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUsersPagesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListUsersPagesWithContext), varargs...) +} + +// ListUsersRequest mocks base method. +func (m *MockIAMAPI) ListUsersRequest(arg0 *iam.ListUsersInput) (*request.Request, *iam.ListUsersOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListUsersRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ListUsersOutput) + return ret0, ret1 +} + +// ListUsersRequest indicates an expected call of ListUsersRequest. +func (mr *MockIAMAPIMockRecorder) ListUsersRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUsersRequest", reflect.TypeOf((*MockIAMAPI)(nil).ListUsersRequest), arg0) +} + +// ListUsersWithContext mocks base method. +func (m *MockIAMAPI) ListUsersWithContext(arg0 aws.Context, arg1 *iam.ListUsersInput, arg2 ...request.Option) (*iam.ListUsersOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListUsersWithContext", varargs...) + ret0, _ := ret[0].(*iam.ListUsersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListUsersWithContext indicates an expected call of ListUsersWithContext. +func (mr *MockIAMAPIMockRecorder) ListUsersWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUsersWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListUsersWithContext), varargs...) +} + +// ListVirtualMFADevices mocks base method. +func (m *MockIAMAPI) ListVirtualMFADevices(arg0 *iam.ListVirtualMFADevicesInput) (*iam.ListVirtualMFADevicesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListVirtualMFADevices", arg0) + ret0, _ := ret[0].(*iam.ListVirtualMFADevicesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListVirtualMFADevices indicates an expected call of ListVirtualMFADevices. +func (mr *MockIAMAPIMockRecorder) ListVirtualMFADevices(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListVirtualMFADevices", reflect.TypeOf((*MockIAMAPI)(nil).ListVirtualMFADevices), arg0) +} + +// ListVirtualMFADevicesPages mocks base method. +func (m *MockIAMAPI) ListVirtualMFADevicesPages(arg0 *iam.ListVirtualMFADevicesInput, arg1 func(*iam.ListVirtualMFADevicesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListVirtualMFADevicesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListVirtualMFADevicesPages indicates an expected call of ListVirtualMFADevicesPages. +func (mr *MockIAMAPIMockRecorder) ListVirtualMFADevicesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListVirtualMFADevicesPages", reflect.TypeOf((*MockIAMAPI)(nil).ListVirtualMFADevicesPages), arg0, arg1) +} + +// ListVirtualMFADevicesPagesWithContext mocks base method. +func (m *MockIAMAPI) ListVirtualMFADevicesPagesWithContext(arg0 aws.Context, arg1 *iam.ListVirtualMFADevicesInput, arg2 func(*iam.ListVirtualMFADevicesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListVirtualMFADevicesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListVirtualMFADevicesPagesWithContext indicates an expected call of ListVirtualMFADevicesPagesWithContext. +func (mr *MockIAMAPIMockRecorder) ListVirtualMFADevicesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListVirtualMFADevicesPagesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListVirtualMFADevicesPagesWithContext), varargs...) +} + +// ListVirtualMFADevicesRequest mocks base method. +func (m *MockIAMAPI) ListVirtualMFADevicesRequest(arg0 *iam.ListVirtualMFADevicesInput) (*request.Request, *iam.ListVirtualMFADevicesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListVirtualMFADevicesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ListVirtualMFADevicesOutput) + return ret0, ret1 +} + +// ListVirtualMFADevicesRequest indicates an expected call of ListVirtualMFADevicesRequest. +func (mr *MockIAMAPIMockRecorder) ListVirtualMFADevicesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListVirtualMFADevicesRequest", reflect.TypeOf((*MockIAMAPI)(nil).ListVirtualMFADevicesRequest), arg0) +} + +// ListVirtualMFADevicesWithContext mocks base method. +func (m *MockIAMAPI) ListVirtualMFADevicesWithContext(arg0 aws.Context, arg1 *iam.ListVirtualMFADevicesInput, arg2 ...request.Option) (*iam.ListVirtualMFADevicesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListVirtualMFADevicesWithContext", varargs...) + ret0, _ := ret[0].(*iam.ListVirtualMFADevicesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListVirtualMFADevicesWithContext indicates an expected call of ListVirtualMFADevicesWithContext. +func (mr *MockIAMAPIMockRecorder) ListVirtualMFADevicesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListVirtualMFADevicesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListVirtualMFADevicesWithContext), varargs...) +} + +// PutGroupPolicy mocks base method. +func (m *MockIAMAPI) PutGroupPolicy(arg0 *iam.PutGroupPolicyInput) (*iam.PutGroupPolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutGroupPolicy", arg0) + ret0, _ := ret[0].(*iam.PutGroupPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutGroupPolicy indicates an expected call of PutGroupPolicy. +func (mr *MockIAMAPIMockRecorder) PutGroupPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutGroupPolicy", reflect.TypeOf((*MockIAMAPI)(nil).PutGroupPolicy), arg0) +} + +// PutGroupPolicyRequest mocks base method. +func (m *MockIAMAPI) PutGroupPolicyRequest(arg0 *iam.PutGroupPolicyInput) (*request.Request, *iam.PutGroupPolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutGroupPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.PutGroupPolicyOutput) + return ret0, ret1 +} + +// PutGroupPolicyRequest indicates an expected call of PutGroupPolicyRequest. +func (mr *MockIAMAPIMockRecorder) PutGroupPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutGroupPolicyRequest", reflect.TypeOf((*MockIAMAPI)(nil).PutGroupPolicyRequest), arg0) +} + +// PutGroupPolicyWithContext mocks base method. +func (m *MockIAMAPI) PutGroupPolicyWithContext(arg0 aws.Context, arg1 *iam.PutGroupPolicyInput, arg2 ...request.Option) (*iam.PutGroupPolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PutGroupPolicyWithContext", varargs...) + ret0, _ := ret[0].(*iam.PutGroupPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutGroupPolicyWithContext indicates an expected call of PutGroupPolicyWithContext. +func (mr *MockIAMAPIMockRecorder) PutGroupPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutGroupPolicyWithContext", reflect.TypeOf((*MockIAMAPI)(nil).PutGroupPolicyWithContext), varargs...) +} + +// PutRolePermissionsBoundary mocks base method. +func (m *MockIAMAPI) PutRolePermissionsBoundary(arg0 *iam.PutRolePermissionsBoundaryInput) (*iam.PutRolePermissionsBoundaryOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutRolePermissionsBoundary", arg0) + ret0, _ := ret[0].(*iam.PutRolePermissionsBoundaryOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutRolePermissionsBoundary indicates an expected call of PutRolePermissionsBoundary. +func (mr *MockIAMAPIMockRecorder) PutRolePermissionsBoundary(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutRolePermissionsBoundary", reflect.TypeOf((*MockIAMAPI)(nil).PutRolePermissionsBoundary), arg0) +} + +// PutRolePermissionsBoundaryRequest mocks base method. +func (m *MockIAMAPI) PutRolePermissionsBoundaryRequest(arg0 *iam.PutRolePermissionsBoundaryInput) (*request.Request, *iam.PutRolePermissionsBoundaryOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutRolePermissionsBoundaryRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.PutRolePermissionsBoundaryOutput) + return ret0, ret1 +} + +// PutRolePermissionsBoundaryRequest indicates an expected call of PutRolePermissionsBoundaryRequest. +func (mr *MockIAMAPIMockRecorder) PutRolePermissionsBoundaryRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutRolePermissionsBoundaryRequest", reflect.TypeOf((*MockIAMAPI)(nil).PutRolePermissionsBoundaryRequest), arg0) +} + +// PutRolePermissionsBoundaryWithContext mocks base method. +func (m *MockIAMAPI) PutRolePermissionsBoundaryWithContext(arg0 aws.Context, arg1 *iam.PutRolePermissionsBoundaryInput, arg2 ...request.Option) (*iam.PutRolePermissionsBoundaryOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PutRolePermissionsBoundaryWithContext", varargs...) + ret0, _ := ret[0].(*iam.PutRolePermissionsBoundaryOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutRolePermissionsBoundaryWithContext indicates an expected call of PutRolePermissionsBoundaryWithContext. +func (mr *MockIAMAPIMockRecorder) PutRolePermissionsBoundaryWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutRolePermissionsBoundaryWithContext", reflect.TypeOf((*MockIAMAPI)(nil).PutRolePermissionsBoundaryWithContext), varargs...) +} + +// PutRolePolicy mocks base method. +func (m *MockIAMAPI) PutRolePolicy(arg0 *iam.PutRolePolicyInput) (*iam.PutRolePolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutRolePolicy", arg0) + ret0, _ := ret[0].(*iam.PutRolePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutRolePolicy indicates an expected call of PutRolePolicy. +func (mr *MockIAMAPIMockRecorder) PutRolePolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutRolePolicy", reflect.TypeOf((*MockIAMAPI)(nil).PutRolePolicy), arg0) +} + +// PutRolePolicyRequest mocks base method. +func (m *MockIAMAPI) PutRolePolicyRequest(arg0 *iam.PutRolePolicyInput) (*request.Request, *iam.PutRolePolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutRolePolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.PutRolePolicyOutput) + return ret0, ret1 +} + +// PutRolePolicyRequest indicates an expected call of PutRolePolicyRequest. +func (mr *MockIAMAPIMockRecorder) PutRolePolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutRolePolicyRequest", reflect.TypeOf((*MockIAMAPI)(nil).PutRolePolicyRequest), arg0) +} + +// PutRolePolicyWithContext mocks base method. +func (m *MockIAMAPI) PutRolePolicyWithContext(arg0 aws.Context, arg1 *iam.PutRolePolicyInput, arg2 ...request.Option) (*iam.PutRolePolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PutRolePolicyWithContext", varargs...) + ret0, _ := ret[0].(*iam.PutRolePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutRolePolicyWithContext indicates an expected call of PutRolePolicyWithContext. +func (mr *MockIAMAPIMockRecorder) PutRolePolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutRolePolicyWithContext", reflect.TypeOf((*MockIAMAPI)(nil).PutRolePolicyWithContext), varargs...) +} + +// PutUserPermissionsBoundary mocks base method. +func (m *MockIAMAPI) PutUserPermissionsBoundary(arg0 *iam.PutUserPermissionsBoundaryInput) (*iam.PutUserPermissionsBoundaryOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutUserPermissionsBoundary", arg0) + ret0, _ := ret[0].(*iam.PutUserPermissionsBoundaryOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutUserPermissionsBoundary indicates an expected call of PutUserPermissionsBoundary. +func (mr *MockIAMAPIMockRecorder) PutUserPermissionsBoundary(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutUserPermissionsBoundary", reflect.TypeOf((*MockIAMAPI)(nil).PutUserPermissionsBoundary), arg0) +} + +// PutUserPermissionsBoundaryRequest mocks base method. +func (m *MockIAMAPI) PutUserPermissionsBoundaryRequest(arg0 *iam.PutUserPermissionsBoundaryInput) (*request.Request, *iam.PutUserPermissionsBoundaryOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutUserPermissionsBoundaryRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.PutUserPermissionsBoundaryOutput) + return ret0, ret1 +} + +// PutUserPermissionsBoundaryRequest indicates an expected call of PutUserPermissionsBoundaryRequest. +func (mr *MockIAMAPIMockRecorder) PutUserPermissionsBoundaryRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutUserPermissionsBoundaryRequest", reflect.TypeOf((*MockIAMAPI)(nil).PutUserPermissionsBoundaryRequest), arg0) +} + +// PutUserPermissionsBoundaryWithContext mocks base method. +func (m *MockIAMAPI) PutUserPermissionsBoundaryWithContext(arg0 aws.Context, arg1 *iam.PutUserPermissionsBoundaryInput, arg2 ...request.Option) (*iam.PutUserPermissionsBoundaryOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PutUserPermissionsBoundaryWithContext", varargs...) + ret0, _ := ret[0].(*iam.PutUserPermissionsBoundaryOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutUserPermissionsBoundaryWithContext indicates an expected call of PutUserPermissionsBoundaryWithContext. +func (mr *MockIAMAPIMockRecorder) PutUserPermissionsBoundaryWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutUserPermissionsBoundaryWithContext", reflect.TypeOf((*MockIAMAPI)(nil).PutUserPermissionsBoundaryWithContext), varargs...) +} + +// PutUserPolicy mocks base method. +func (m *MockIAMAPI) PutUserPolicy(arg0 *iam.PutUserPolicyInput) (*iam.PutUserPolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutUserPolicy", arg0) + ret0, _ := ret[0].(*iam.PutUserPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutUserPolicy indicates an expected call of PutUserPolicy. +func (mr *MockIAMAPIMockRecorder) PutUserPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutUserPolicy", reflect.TypeOf((*MockIAMAPI)(nil).PutUserPolicy), arg0) +} + +// PutUserPolicyRequest mocks base method. +func (m *MockIAMAPI) PutUserPolicyRequest(arg0 *iam.PutUserPolicyInput) (*request.Request, *iam.PutUserPolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutUserPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.PutUserPolicyOutput) + return ret0, ret1 +} + +// PutUserPolicyRequest indicates an expected call of PutUserPolicyRequest. +func (mr *MockIAMAPIMockRecorder) PutUserPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutUserPolicyRequest", reflect.TypeOf((*MockIAMAPI)(nil).PutUserPolicyRequest), arg0) +} + +// PutUserPolicyWithContext mocks base method. +func (m *MockIAMAPI) PutUserPolicyWithContext(arg0 aws.Context, arg1 *iam.PutUserPolicyInput, arg2 ...request.Option) (*iam.PutUserPolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PutUserPolicyWithContext", varargs...) + ret0, _ := ret[0].(*iam.PutUserPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutUserPolicyWithContext indicates an expected call of PutUserPolicyWithContext. +func (mr *MockIAMAPIMockRecorder) PutUserPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutUserPolicyWithContext", reflect.TypeOf((*MockIAMAPI)(nil).PutUserPolicyWithContext), varargs...) +} + +// RemoveClientIDFromOpenIDConnectProvider mocks base method. +func (m *MockIAMAPI) RemoveClientIDFromOpenIDConnectProvider(arg0 *iam.RemoveClientIDFromOpenIDConnectProviderInput) (*iam.RemoveClientIDFromOpenIDConnectProviderOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RemoveClientIDFromOpenIDConnectProvider", arg0) + ret0, _ := ret[0].(*iam.RemoveClientIDFromOpenIDConnectProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RemoveClientIDFromOpenIDConnectProvider indicates an expected call of RemoveClientIDFromOpenIDConnectProvider. +func (mr *MockIAMAPIMockRecorder) RemoveClientIDFromOpenIDConnectProvider(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveClientIDFromOpenIDConnectProvider", reflect.TypeOf((*MockIAMAPI)(nil).RemoveClientIDFromOpenIDConnectProvider), arg0) +} + +// RemoveClientIDFromOpenIDConnectProviderRequest mocks base method. +func (m *MockIAMAPI) RemoveClientIDFromOpenIDConnectProviderRequest(arg0 *iam.RemoveClientIDFromOpenIDConnectProviderInput) (*request.Request, *iam.RemoveClientIDFromOpenIDConnectProviderOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RemoveClientIDFromOpenIDConnectProviderRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.RemoveClientIDFromOpenIDConnectProviderOutput) + return ret0, ret1 +} + +// RemoveClientIDFromOpenIDConnectProviderRequest indicates an expected call of RemoveClientIDFromOpenIDConnectProviderRequest. +func (mr *MockIAMAPIMockRecorder) RemoveClientIDFromOpenIDConnectProviderRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveClientIDFromOpenIDConnectProviderRequest", reflect.TypeOf((*MockIAMAPI)(nil).RemoveClientIDFromOpenIDConnectProviderRequest), arg0) +} + +// RemoveClientIDFromOpenIDConnectProviderWithContext mocks base method. +func (m *MockIAMAPI) RemoveClientIDFromOpenIDConnectProviderWithContext(arg0 aws.Context, arg1 *iam.RemoveClientIDFromOpenIDConnectProviderInput, arg2 ...request.Option) (*iam.RemoveClientIDFromOpenIDConnectProviderOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RemoveClientIDFromOpenIDConnectProviderWithContext", varargs...) + ret0, _ := ret[0].(*iam.RemoveClientIDFromOpenIDConnectProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RemoveClientIDFromOpenIDConnectProviderWithContext indicates an expected call of RemoveClientIDFromOpenIDConnectProviderWithContext. +func (mr *MockIAMAPIMockRecorder) RemoveClientIDFromOpenIDConnectProviderWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveClientIDFromOpenIDConnectProviderWithContext", reflect.TypeOf((*MockIAMAPI)(nil).RemoveClientIDFromOpenIDConnectProviderWithContext), varargs...) +} + +// RemoveRoleFromInstanceProfile mocks base method. +func (m *MockIAMAPI) RemoveRoleFromInstanceProfile(arg0 *iam.RemoveRoleFromInstanceProfileInput) (*iam.RemoveRoleFromInstanceProfileOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RemoveRoleFromInstanceProfile", arg0) + ret0, _ := ret[0].(*iam.RemoveRoleFromInstanceProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RemoveRoleFromInstanceProfile indicates an expected call of RemoveRoleFromInstanceProfile. +func (mr *MockIAMAPIMockRecorder) RemoveRoleFromInstanceProfile(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveRoleFromInstanceProfile", reflect.TypeOf((*MockIAMAPI)(nil).RemoveRoleFromInstanceProfile), arg0) +} + +// RemoveRoleFromInstanceProfileRequest mocks base method. +func (m *MockIAMAPI) RemoveRoleFromInstanceProfileRequest(arg0 *iam.RemoveRoleFromInstanceProfileInput) (*request.Request, *iam.RemoveRoleFromInstanceProfileOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RemoveRoleFromInstanceProfileRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.RemoveRoleFromInstanceProfileOutput) + return ret0, ret1 +} + +// RemoveRoleFromInstanceProfileRequest indicates an expected call of RemoveRoleFromInstanceProfileRequest. +func (mr *MockIAMAPIMockRecorder) RemoveRoleFromInstanceProfileRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveRoleFromInstanceProfileRequest", reflect.TypeOf((*MockIAMAPI)(nil).RemoveRoleFromInstanceProfileRequest), arg0) +} + +// RemoveRoleFromInstanceProfileWithContext mocks base method. +func (m *MockIAMAPI) RemoveRoleFromInstanceProfileWithContext(arg0 aws.Context, arg1 *iam.RemoveRoleFromInstanceProfileInput, arg2 ...request.Option) (*iam.RemoveRoleFromInstanceProfileOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RemoveRoleFromInstanceProfileWithContext", varargs...) + ret0, _ := ret[0].(*iam.RemoveRoleFromInstanceProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RemoveRoleFromInstanceProfileWithContext indicates an expected call of RemoveRoleFromInstanceProfileWithContext. +func (mr *MockIAMAPIMockRecorder) RemoveRoleFromInstanceProfileWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveRoleFromInstanceProfileWithContext", reflect.TypeOf((*MockIAMAPI)(nil).RemoveRoleFromInstanceProfileWithContext), varargs...) +} + +// RemoveUserFromGroup mocks base method. +func (m *MockIAMAPI) RemoveUserFromGroup(arg0 *iam.RemoveUserFromGroupInput) (*iam.RemoveUserFromGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RemoveUserFromGroup", arg0) + ret0, _ := ret[0].(*iam.RemoveUserFromGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RemoveUserFromGroup indicates an expected call of RemoveUserFromGroup. +func (mr *MockIAMAPIMockRecorder) RemoveUserFromGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveUserFromGroup", reflect.TypeOf((*MockIAMAPI)(nil).RemoveUserFromGroup), arg0) +} + +// RemoveUserFromGroupRequest mocks base method. +func (m *MockIAMAPI) RemoveUserFromGroupRequest(arg0 *iam.RemoveUserFromGroupInput) (*request.Request, *iam.RemoveUserFromGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RemoveUserFromGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.RemoveUserFromGroupOutput) + return ret0, ret1 +} + +// RemoveUserFromGroupRequest indicates an expected call of RemoveUserFromGroupRequest. +func (mr *MockIAMAPIMockRecorder) RemoveUserFromGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveUserFromGroupRequest", reflect.TypeOf((*MockIAMAPI)(nil).RemoveUserFromGroupRequest), arg0) +} + +// RemoveUserFromGroupWithContext mocks base method. +func (m *MockIAMAPI) RemoveUserFromGroupWithContext(arg0 aws.Context, arg1 *iam.RemoveUserFromGroupInput, arg2 ...request.Option) (*iam.RemoveUserFromGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RemoveUserFromGroupWithContext", varargs...) + ret0, _ := ret[0].(*iam.RemoveUserFromGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RemoveUserFromGroupWithContext indicates an expected call of RemoveUserFromGroupWithContext. +func (mr *MockIAMAPIMockRecorder) RemoveUserFromGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveUserFromGroupWithContext", reflect.TypeOf((*MockIAMAPI)(nil).RemoveUserFromGroupWithContext), varargs...) +} + +// ResetServiceSpecificCredential mocks base method. +func (m *MockIAMAPI) ResetServiceSpecificCredential(arg0 *iam.ResetServiceSpecificCredentialInput) (*iam.ResetServiceSpecificCredentialOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ResetServiceSpecificCredential", arg0) + ret0, _ := ret[0].(*iam.ResetServiceSpecificCredentialOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ResetServiceSpecificCredential indicates an expected call of ResetServiceSpecificCredential. +func (mr *MockIAMAPIMockRecorder) ResetServiceSpecificCredential(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResetServiceSpecificCredential", reflect.TypeOf((*MockIAMAPI)(nil).ResetServiceSpecificCredential), arg0) +} + +// ResetServiceSpecificCredentialRequest mocks base method. +func (m *MockIAMAPI) ResetServiceSpecificCredentialRequest(arg0 *iam.ResetServiceSpecificCredentialInput) (*request.Request, *iam.ResetServiceSpecificCredentialOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ResetServiceSpecificCredentialRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ResetServiceSpecificCredentialOutput) + return ret0, ret1 +} + +// ResetServiceSpecificCredentialRequest indicates an expected call of ResetServiceSpecificCredentialRequest. +func (mr *MockIAMAPIMockRecorder) ResetServiceSpecificCredentialRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResetServiceSpecificCredentialRequest", reflect.TypeOf((*MockIAMAPI)(nil).ResetServiceSpecificCredentialRequest), arg0) +} + +// ResetServiceSpecificCredentialWithContext mocks base method. +func (m *MockIAMAPI) ResetServiceSpecificCredentialWithContext(arg0 aws.Context, arg1 *iam.ResetServiceSpecificCredentialInput, arg2 ...request.Option) (*iam.ResetServiceSpecificCredentialOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ResetServiceSpecificCredentialWithContext", varargs...) + ret0, _ := ret[0].(*iam.ResetServiceSpecificCredentialOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ResetServiceSpecificCredentialWithContext indicates an expected call of ResetServiceSpecificCredentialWithContext. +func (mr *MockIAMAPIMockRecorder) ResetServiceSpecificCredentialWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResetServiceSpecificCredentialWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ResetServiceSpecificCredentialWithContext), varargs...) +} + +// ResyncMFADevice mocks base method. +func (m *MockIAMAPI) ResyncMFADevice(arg0 *iam.ResyncMFADeviceInput) (*iam.ResyncMFADeviceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ResyncMFADevice", arg0) + ret0, _ := ret[0].(*iam.ResyncMFADeviceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ResyncMFADevice indicates an expected call of ResyncMFADevice. +func (mr *MockIAMAPIMockRecorder) ResyncMFADevice(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResyncMFADevice", reflect.TypeOf((*MockIAMAPI)(nil).ResyncMFADevice), arg0) +} + +// ResyncMFADeviceRequest mocks base method. +func (m *MockIAMAPI) ResyncMFADeviceRequest(arg0 *iam.ResyncMFADeviceInput) (*request.Request, *iam.ResyncMFADeviceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ResyncMFADeviceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.ResyncMFADeviceOutput) + return ret0, ret1 +} + +// ResyncMFADeviceRequest indicates an expected call of ResyncMFADeviceRequest. +func (mr *MockIAMAPIMockRecorder) ResyncMFADeviceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResyncMFADeviceRequest", reflect.TypeOf((*MockIAMAPI)(nil).ResyncMFADeviceRequest), arg0) +} + +// ResyncMFADeviceWithContext mocks base method. +func (m *MockIAMAPI) ResyncMFADeviceWithContext(arg0 aws.Context, arg1 *iam.ResyncMFADeviceInput, arg2 ...request.Option) (*iam.ResyncMFADeviceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ResyncMFADeviceWithContext", varargs...) + ret0, _ := ret[0].(*iam.ResyncMFADeviceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ResyncMFADeviceWithContext indicates an expected call of ResyncMFADeviceWithContext. +func (mr *MockIAMAPIMockRecorder) ResyncMFADeviceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResyncMFADeviceWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ResyncMFADeviceWithContext), varargs...) +} + +// SetDefaultPolicyVersion mocks base method. +func (m *MockIAMAPI) SetDefaultPolicyVersion(arg0 *iam.SetDefaultPolicyVersionInput) (*iam.SetDefaultPolicyVersionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetDefaultPolicyVersion", arg0) + ret0, _ := ret[0].(*iam.SetDefaultPolicyVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetDefaultPolicyVersion indicates an expected call of SetDefaultPolicyVersion. +func (mr *MockIAMAPIMockRecorder) SetDefaultPolicyVersion(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDefaultPolicyVersion", reflect.TypeOf((*MockIAMAPI)(nil).SetDefaultPolicyVersion), arg0) +} + +// SetDefaultPolicyVersionRequest mocks base method. +func (m *MockIAMAPI) SetDefaultPolicyVersionRequest(arg0 *iam.SetDefaultPolicyVersionInput) (*request.Request, *iam.SetDefaultPolicyVersionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetDefaultPolicyVersionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.SetDefaultPolicyVersionOutput) + return ret0, ret1 +} + +// SetDefaultPolicyVersionRequest indicates an expected call of SetDefaultPolicyVersionRequest. +func (mr *MockIAMAPIMockRecorder) SetDefaultPolicyVersionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDefaultPolicyVersionRequest", reflect.TypeOf((*MockIAMAPI)(nil).SetDefaultPolicyVersionRequest), arg0) +} + +// SetDefaultPolicyVersionWithContext mocks base method. +func (m *MockIAMAPI) SetDefaultPolicyVersionWithContext(arg0 aws.Context, arg1 *iam.SetDefaultPolicyVersionInput, arg2 ...request.Option) (*iam.SetDefaultPolicyVersionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SetDefaultPolicyVersionWithContext", varargs...) + ret0, _ := ret[0].(*iam.SetDefaultPolicyVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetDefaultPolicyVersionWithContext indicates an expected call of SetDefaultPolicyVersionWithContext. +func (mr *MockIAMAPIMockRecorder) SetDefaultPolicyVersionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDefaultPolicyVersionWithContext", reflect.TypeOf((*MockIAMAPI)(nil).SetDefaultPolicyVersionWithContext), varargs...) +} + +// SetSecurityTokenServicePreferences mocks base method. +func (m *MockIAMAPI) SetSecurityTokenServicePreferences(arg0 *iam.SetSecurityTokenServicePreferencesInput) (*iam.SetSecurityTokenServicePreferencesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetSecurityTokenServicePreferences", arg0) + ret0, _ := ret[0].(*iam.SetSecurityTokenServicePreferencesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetSecurityTokenServicePreferences indicates an expected call of SetSecurityTokenServicePreferences. +func (mr *MockIAMAPIMockRecorder) SetSecurityTokenServicePreferences(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSecurityTokenServicePreferences", reflect.TypeOf((*MockIAMAPI)(nil).SetSecurityTokenServicePreferences), arg0) +} + +// SetSecurityTokenServicePreferencesRequest mocks base method. +func (m *MockIAMAPI) SetSecurityTokenServicePreferencesRequest(arg0 *iam.SetSecurityTokenServicePreferencesInput) (*request.Request, *iam.SetSecurityTokenServicePreferencesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetSecurityTokenServicePreferencesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.SetSecurityTokenServicePreferencesOutput) + return ret0, ret1 +} + +// SetSecurityTokenServicePreferencesRequest indicates an expected call of SetSecurityTokenServicePreferencesRequest. +func (mr *MockIAMAPIMockRecorder) SetSecurityTokenServicePreferencesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSecurityTokenServicePreferencesRequest", reflect.TypeOf((*MockIAMAPI)(nil).SetSecurityTokenServicePreferencesRequest), arg0) +} + +// SetSecurityTokenServicePreferencesWithContext mocks base method. +func (m *MockIAMAPI) SetSecurityTokenServicePreferencesWithContext(arg0 aws.Context, arg1 *iam.SetSecurityTokenServicePreferencesInput, arg2 ...request.Option) (*iam.SetSecurityTokenServicePreferencesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SetSecurityTokenServicePreferencesWithContext", varargs...) + ret0, _ := ret[0].(*iam.SetSecurityTokenServicePreferencesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetSecurityTokenServicePreferencesWithContext indicates an expected call of SetSecurityTokenServicePreferencesWithContext. +func (mr *MockIAMAPIMockRecorder) SetSecurityTokenServicePreferencesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSecurityTokenServicePreferencesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).SetSecurityTokenServicePreferencesWithContext), varargs...) +} + +// SimulateCustomPolicy mocks base method. +func (m *MockIAMAPI) SimulateCustomPolicy(arg0 *iam.SimulateCustomPolicyInput) (*iam.SimulatePolicyResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SimulateCustomPolicy", arg0) + ret0, _ := ret[0].(*iam.SimulatePolicyResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SimulateCustomPolicy indicates an expected call of SimulateCustomPolicy. +func (mr *MockIAMAPIMockRecorder) SimulateCustomPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SimulateCustomPolicy", reflect.TypeOf((*MockIAMAPI)(nil).SimulateCustomPolicy), arg0) +} + +// SimulateCustomPolicyPages mocks base method. +func (m *MockIAMAPI) SimulateCustomPolicyPages(arg0 *iam.SimulateCustomPolicyInput, arg1 func(*iam.SimulatePolicyResponse, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SimulateCustomPolicyPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// SimulateCustomPolicyPages indicates an expected call of SimulateCustomPolicyPages. +func (mr *MockIAMAPIMockRecorder) SimulateCustomPolicyPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SimulateCustomPolicyPages", reflect.TypeOf((*MockIAMAPI)(nil).SimulateCustomPolicyPages), arg0, arg1) +} + +// SimulateCustomPolicyPagesWithContext mocks base method. +func (m *MockIAMAPI) SimulateCustomPolicyPagesWithContext(arg0 aws.Context, arg1 *iam.SimulateCustomPolicyInput, arg2 func(*iam.SimulatePolicyResponse, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SimulateCustomPolicyPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// SimulateCustomPolicyPagesWithContext indicates an expected call of SimulateCustomPolicyPagesWithContext. +func (mr *MockIAMAPIMockRecorder) SimulateCustomPolicyPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SimulateCustomPolicyPagesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).SimulateCustomPolicyPagesWithContext), varargs...) +} + +// SimulateCustomPolicyRequest mocks base method. +func (m *MockIAMAPI) SimulateCustomPolicyRequest(arg0 *iam.SimulateCustomPolicyInput) (*request.Request, *iam.SimulatePolicyResponse) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SimulateCustomPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.SimulatePolicyResponse) + return ret0, ret1 +} + +// SimulateCustomPolicyRequest indicates an expected call of SimulateCustomPolicyRequest. +func (mr *MockIAMAPIMockRecorder) SimulateCustomPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SimulateCustomPolicyRequest", reflect.TypeOf((*MockIAMAPI)(nil).SimulateCustomPolicyRequest), arg0) +} + +// SimulateCustomPolicyWithContext mocks base method. +func (m *MockIAMAPI) SimulateCustomPolicyWithContext(arg0 aws.Context, arg1 *iam.SimulateCustomPolicyInput, arg2 ...request.Option) (*iam.SimulatePolicyResponse, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SimulateCustomPolicyWithContext", varargs...) + ret0, _ := ret[0].(*iam.SimulatePolicyResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SimulateCustomPolicyWithContext indicates an expected call of SimulateCustomPolicyWithContext. +func (mr *MockIAMAPIMockRecorder) SimulateCustomPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SimulateCustomPolicyWithContext", reflect.TypeOf((*MockIAMAPI)(nil).SimulateCustomPolicyWithContext), varargs...) +} + +// SimulatePrincipalPolicy mocks base method. +func (m *MockIAMAPI) SimulatePrincipalPolicy(arg0 *iam.SimulatePrincipalPolicyInput) (*iam.SimulatePolicyResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SimulatePrincipalPolicy", arg0) + ret0, _ := ret[0].(*iam.SimulatePolicyResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SimulatePrincipalPolicy indicates an expected call of SimulatePrincipalPolicy. +func (mr *MockIAMAPIMockRecorder) SimulatePrincipalPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SimulatePrincipalPolicy", reflect.TypeOf((*MockIAMAPI)(nil).SimulatePrincipalPolicy), arg0) +} + +// SimulatePrincipalPolicyPages mocks base method. +func (m *MockIAMAPI) SimulatePrincipalPolicyPages(arg0 *iam.SimulatePrincipalPolicyInput, arg1 func(*iam.SimulatePolicyResponse, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SimulatePrincipalPolicyPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// SimulatePrincipalPolicyPages indicates an expected call of SimulatePrincipalPolicyPages. +func (mr *MockIAMAPIMockRecorder) SimulatePrincipalPolicyPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SimulatePrincipalPolicyPages", reflect.TypeOf((*MockIAMAPI)(nil).SimulatePrincipalPolicyPages), arg0, arg1) +} + +// SimulatePrincipalPolicyPagesWithContext mocks base method. +func (m *MockIAMAPI) SimulatePrincipalPolicyPagesWithContext(arg0 aws.Context, arg1 *iam.SimulatePrincipalPolicyInput, arg2 func(*iam.SimulatePolicyResponse, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SimulatePrincipalPolicyPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// SimulatePrincipalPolicyPagesWithContext indicates an expected call of SimulatePrincipalPolicyPagesWithContext. +func (mr *MockIAMAPIMockRecorder) SimulatePrincipalPolicyPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SimulatePrincipalPolicyPagesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).SimulatePrincipalPolicyPagesWithContext), varargs...) +} + +// SimulatePrincipalPolicyRequest mocks base method. +func (m *MockIAMAPI) SimulatePrincipalPolicyRequest(arg0 *iam.SimulatePrincipalPolicyInput) (*request.Request, *iam.SimulatePolicyResponse) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SimulatePrincipalPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.SimulatePolicyResponse) + return ret0, ret1 +} + +// SimulatePrincipalPolicyRequest indicates an expected call of SimulatePrincipalPolicyRequest. +func (mr *MockIAMAPIMockRecorder) SimulatePrincipalPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SimulatePrincipalPolicyRequest", reflect.TypeOf((*MockIAMAPI)(nil).SimulatePrincipalPolicyRequest), arg0) +} + +// SimulatePrincipalPolicyWithContext mocks base method. +func (m *MockIAMAPI) SimulatePrincipalPolicyWithContext(arg0 aws.Context, arg1 *iam.SimulatePrincipalPolicyInput, arg2 ...request.Option) (*iam.SimulatePolicyResponse, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SimulatePrincipalPolicyWithContext", varargs...) + ret0, _ := ret[0].(*iam.SimulatePolicyResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SimulatePrincipalPolicyWithContext indicates an expected call of SimulatePrincipalPolicyWithContext. +func (mr *MockIAMAPIMockRecorder) SimulatePrincipalPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SimulatePrincipalPolicyWithContext", reflect.TypeOf((*MockIAMAPI)(nil).SimulatePrincipalPolicyWithContext), varargs...) +} + +// TagInstanceProfile mocks base method. +func (m *MockIAMAPI) TagInstanceProfile(arg0 *iam.TagInstanceProfileInput) (*iam.TagInstanceProfileOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagInstanceProfile", arg0) + ret0, _ := ret[0].(*iam.TagInstanceProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagInstanceProfile indicates an expected call of TagInstanceProfile. +func (mr *MockIAMAPIMockRecorder) TagInstanceProfile(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagInstanceProfile", reflect.TypeOf((*MockIAMAPI)(nil).TagInstanceProfile), arg0) +} + +// TagInstanceProfileRequest mocks base method. +func (m *MockIAMAPI) TagInstanceProfileRequest(arg0 *iam.TagInstanceProfileInput) (*request.Request, *iam.TagInstanceProfileOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagInstanceProfileRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.TagInstanceProfileOutput) + return ret0, ret1 +} + +// TagInstanceProfileRequest indicates an expected call of TagInstanceProfileRequest. +func (mr *MockIAMAPIMockRecorder) TagInstanceProfileRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagInstanceProfileRequest", reflect.TypeOf((*MockIAMAPI)(nil).TagInstanceProfileRequest), arg0) +} + +// TagInstanceProfileWithContext mocks base method. +func (m *MockIAMAPI) TagInstanceProfileWithContext(arg0 aws.Context, arg1 *iam.TagInstanceProfileInput, arg2 ...request.Option) (*iam.TagInstanceProfileOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "TagInstanceProfileWithContext", varargs...) + ret0, _ := ret[0].(*iam.TagInstanceProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagInstanceProfileWithContext indicates an expected call of TagInstanceProfileWithContext. +func (mr *MockIAMAPIMockRecorder) TagInstanceProfileWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagInstanceProfileWithContext", reflect.TypeOf((*MockIAMAPI)(nil).TagInstanceProfileWithContext), varargs...) +} + +// TagMFADevice mocks base method. +func (m *MockIAMAPI) TagMFADevice(arg0 *iam.TagMFADeviceInput) (*iam.TagMFADeviceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagMFADevice", arg0) + ret0, _ := ret[0].(*iam.TagMFADeviceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagMFADevice indicates an expected call of TagMFADevice. +func (mr *MockIAMAPIMockRecorder) TagMFADevice(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagMFADevice", reflect.TypeOf((*MockIAMAPI)(nil).TagMFADevice), arg0) +} + +// TagMFADeviceRequest mocks base method. +func (m *MockIAMAPI) TagMFADeviceRequest(arg0 *iam.TagMFADeviceInput) (*request.Request, *iam.TagMFADeviceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagMFADeviceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.TagMFADeviceOutput) + return ret0, ret1 +} + +// TagMFADeviceRequest indicates an expected call of TagMFADeviceRequest. +func (mr *MockIAMAPIMockRecorder) TagMFADeviceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagMFADeviceRequest", reflect.TypeOf((*MockIAMAPI)(nil).TagMFADeviceRequest), arg0) +} + +// TagMFADeviceWithContext mocks base method. +func (m *MockIAMAPI) TagMFADeviceWithContext(arg0 aws.Context, arg1 *iam.TagMFADeviceInput, arg2 ...request.Option) (*iam.TagMFADeviceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "TagMFADeviceWithContext", varargs...) + ret0, _ := ret[0].(*iam.TagMFADeviceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagMFADeviceWithContext indicates an expected call of TagMFADeviceWithContext. +func (mr *MockIAMAPIMockRecorder) TagMFADeviceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagMFADeviceWithContext", reflect.TypeOf((*MockIAMAPI)(nil).TagMFADeviceWithContext), varargs...) +} + +// TagOpenIDConnectProvider mocks base method. +func (m *MockIAMAPI) TagOpenIDConnectProvider(arg0 *iam.TagOpenIDConnectProviderInput) (*iam.TagOpenIDConnectProviderOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagOpenIDConnectProvider", arg0) + ret0, _ := ret[0].(*iam.TagOpenIDConnectProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagOpenIDConnectProvider indicates an expected call of TagOpenIDConnectProvider. +func (mr *MockIAMAPIMockRecorder) TagOpenIDConnectProvider(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagOpenIDConnectProvider", reflect.TypeOf((*MockIAMAPI)(nil).TagOpenIDConnectProvider), arg0) +} + +// TagOpenIDConnectProviderRequest mocks base method. +func (m *MockIAMAPI) TagOpenIDConnectProviderRequest(arg0 *iam.TagOpenIDConnectProviderInput) (*request.Request, *iam.TagOpenIDConnectProviderOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagOpenIDConnectProviderRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.TagOpenIDConnectProviderOutput) + return ret0, ret1 +} + +// TagOpenIDConnectProviderRequest indicates an expected call of TagOpenIDConnectProviderRequest. +func (mr *MockIAMAPIMockRecorder) TagOpenIDConnectProviderRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagOpenIDConnectProviderRequest", reflect.TypeOf((*MockIAMAPI)(nil).TagOpenIDConnectProviderRequest), arg0) +} + +// TagOpenIDConnectProviderWithContext mocks base method. +func (m *MockIAMAPI) TagOpenIDConnectProviderWithContext(arg0 aws.Context, arg1 *iam.TagOpenIDConnectProviderInput, arg2 ...request.Option) (*iam.TagOpenIDConnectProviderOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "TagOpenIDConnectProviderWithContext", varargs...) + ret0, _ := ret[0].(*iam.TagOpenIDConnectProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagOpenIDConnectProviderWithContext indicates an expected call of TagOpenIDConnectProviderWithContext. +func (mr *MockIAMAPIMockRecorder) TagOpenIDConnectProviderWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagOpenIDConnectProviderWithContext", reflect.TypeOf((*MockIAMAPI)(nil).TagOpenIDConnectProviderWithContext), varargs...) +} + +// TagPolicy mocks base method. +func (m *MockIAMAPI) TagPolicy(arg0 *iam.TagPolicyInput) (*iam.TagPolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagPolicy", arg0) + ret0, _ := ret[0].(*iam.TagPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagPolicy indicates an expected call of TagPolicy. +func (mr *MockIAMAPIMockRecorder) TagPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagPolicy", reflect.TypeOf((*MockIAMAPI)(nil).TagPolicy), arg0) +} + +// TagPolicyRequest mocks base method. +func (m *MockIAMAPI) TagPolicyRequest(arg0 *iam.TagPolicyInput) (*request.Request, *iam.TagPolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.TagPolicyOutput) + return ret0, ret1 +} + +// TagPolicyRequest indicates an expected call of TagPolicyRequest. +func (mr *MockIAMAPIMockRecorder) TagPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagPolicyRequest", reflect.TypeOf((*MockIAMAPI)(nil).TagPolicyRequest), arg0) +} + +// TagPolicyWithContext mocks base method. +func (m *MockIAMAPI) TagPolicyWithContext(arg0 aws.Context, arg1 *iam.TagPolicyInput, arg2 ...request.Option) (*iam.TagPolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "TagPolicyWithContext", varargs...) + ret0, _ := ret[0].(*iam.TagPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagPolicyWithContext indicates an expected call of TagPolicyWithContext. +func (mr *MockIAMAPIMockRecorder) TagPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagPolicyWithContext", reflect.TypeOf((*MockIAMAPI)(nil).TagPolicyWithContext), varargs...) +} + +// TagRole mocks base method. +func (m *MockIAMAPI) TagRole(arg0 *iam.TagRoleInput) (*iam.TagRoleOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagRole", arg0) + ret0, _ := ret[0].(*iam.TagRoleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagRole indicates an expected call of TagRole. +func (mr *MockIAMAPIMockRecorder) TagRole(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagRole", reflect.TypeOf((*MockIAMAPI)(nil).TagRole), arg0) +} + +// TagRoleRequest mocks base method. +func (m *MockIAMAPI) TagRoleRequest(arg0 *iam.TagRoleInput) (*request.Request, *iam.TagRoleOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagRoleRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.TagRoleOutput) + return ret0, ret1 +} + +// TagRoleRequest indicates an expected call of TagRoleRequest. +func (mr *MockIAMAPIMockRecorder) TagRoleRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagRoleRequest", reflect.TypeOf((*MockIAMAPI)(nil).TagRoleRequest), arg0) +} + +// TagRoleWithContext mocks base method. +func (m *MockIAMAPI) TagRoleWithContext(arg0 aws.Context, arg1 *iam.TagRoleInput, arg2 ...request.Option) (*iam.TagRoleOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "TagRoleWithContext", varargs...) + ret0, _ := ret[0].(*iam.TagRoleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagRoleWithContext indicates an expected call of TagRoleWithContext. +func (mr *MockIAMAPIMockRecorder) TagRoleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagRoleWithContext", reflect.TypeOf((*MockIAMAPI)(nil).TagRoleWithContext), varargs...) +} + +// TagSAMLProvider mocks base method. +func (m *MockIAMAPI) TagSAMLProvider(arg0 *iam.TagSAMLProviderInput) (*iam.TagSAMLProviderOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagSAMLProvider", arg0) + ret0, _ := ret[0].(*iam.TagSAMLProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagSAMLProvider indicates an expected call of TagSAMLProvider. +func (mr *MockIAMAPIMockRecorder) TagSAMLProvider(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagSAMLProvider", reflect.TypeOf((*MockIAMAPI)(nil).TagSAMLProvider), arg0) +} + +// TagSAMLProviderRequest mocks base method. +func (m *MockIAMAPI) TagSAMLProviderRequest(arg0 *iam.TagSAMLProviderInput) (*request.Request, *iam.TagSAMLProviderOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagSAMLProviderRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.TagSAMLProviderOutput) + return ret0, ret1 +} + +// TagSAMLProviderRequest indicates an expected call of TagSAMLProviderRequest. +func (mr *MockIAMAPIMockRecorder) TagSAMLProviderRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagSAMLProviderRequest", reflect.TypeOf((*MockIAMAPI)(nil).TagSAMLProviderRequest), arg0) +} + +// TagSAMLProviderWithContext mocks base method. +func (m *MockIAMAPI) TagSAMLProviderWithContext(arg0 aws.Context, arg1 *iam.TagSAMLProviderInput, arg2 ...request.Option) (*iam.TagSAMLProviderOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "TagSAMLProviderWithContext", varargs...) + ret0, _ := ret[0].(*iam.TagSAMLProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagSAMLProviderWithContext indicates an expected call of TagSAMLProviderWithContext. +func (mr *MockIAMAPIMockRecorder) TagSAMLProviderWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagSAMLProviderWithContext", reflect.TypeOf((*MockIAMAPI)(nil).TagSAMLProviderWithContext), varargs...) +} + +// TagServerCertificate mocks base method. +func (m *MockIAMAPI) TagServerCertificate(arg0 *iam.TagServerCertificateInput) (*iam.TagServerCertificateOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagServerCertificate", arg0) + ret0, _ := ret[0].(*iam.TagServerCertificateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagServerCertificate indicates an expected call of TagServerCertificate. +func (mr *MockIAMAPIMockRecorder) TagServerCertificate(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagServerCertificate", reflect.TypeOf((*MockIAMAPI)(nil).TagServerCertificate), arg0) +} + +// TagServerCertificateRequest mocks base method. +func (m *MockIAMAPI) TagServerCertificateRequest(arg0 *iam.TagServerCertificateInput) (*request.Request, *iam.TagServerCertificateOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagServerCertificateRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.TagServerCertificateOutput) + return ret0, ret1 +} + +// TagServerCertificateRequest indicates an expected call of TagServerCertificateRequest. +func (mr *MockIAMAPIMockRecorder) TagServerCertificateRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagServerCertificateRequest", reflect.TypeOf((*MockIAMAPI)(nil).TagServerCertificateRequest), arg0) +} + +// TagServerCertificateWithContext mocks base method. +func (m *MockIAMAPI) TagServerCertificateWithContext(arg0 aws.Context, arg1 *iam.TagServerCertificateInput, arg2 ...request.Option) (*iam.TagServerCertificateOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "TagServerCertificateWithContext", varargs...) + ret0, _ := ret[0].(*iam.TagServerCertificateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagServerCertificateWithContext indicates an expected call of TagServerCertificateWithContext. +func (mr *MockIAMAPIMockRecorder) TagServerCertificateWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagServerCertificateWithContext", reflect.TypeOf((*MockIAMAPI)(nil).TagServerCertificateWithContext), varargs...) +} + +// TagUser mocks base method. +func (m *MockIAMAPI) TagUser(arg0 *iam.TagUserInput) (*iam.TagUserOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagUser", arg0) + ret0, _ := ret[0].(*iam.TagUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagUser indicates an expected call of TagUser. +func (mr *MockIAMAPIMockRecorder) TagUser(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagUser", reflect.TypeOf((*MockIAMAPI)(nil).TagUser), arg0) +} + +// TagUserRequest mocks base method. +func (m *MockIAMAPI) TagUserRequest(arg0 *iam.TagUserInput) (*request.Request, *iam.TagUserOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagUserRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.TagUserOutput) + return ret0, ret1 +} + +// TagUserRequest indicates an expected call of TagUserRequest. +func (mr *MockIAMAPIMockRecorder) TagUserRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagUserRequest", reflect.TypeOf((*MockIAMAPI)(nil).TagUserRequest), arg0) +} + +// TagUserWithContext mocks base method. +func (m *MockIAMAPI) TagUserWithContext(arg0 aws.Context, arg1 *iam.TagUserInput, arg2 ...request.Option) (*iam.TagUserOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "TagUserWithContext", varargs...) + ret0, _ := ret[0].(*iam.TagUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagUserWithContext indicates an expected call of TagUserWithContext. +func (mr *MockIAMAPIMockRecorder) TagUserWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagUserWithContext", reflect.TypeOf((*MockIAMAPI)(nil).TagUserWithContext), varargs...) +} + +// UntagInstanceProfile mocks base method. +func (m *MockIAMAPI) UntagInstanceProfile(arg0 *iam.UntagInstanceProfileInput) (*iam.UntagInstanceProfileOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagInstanceProfile", arg0) + ret0, _ := ret[0].(*iam.UntagInstanceProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagInstanceProfile indicates an expected call of UntagInstanceProfile. +func (mr *MockIAMAPIMockRecorder) UntagInstanceProfile(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagInstanceProfile", reflect.TypeOf((*MockIAMAPI)(nil).UntagInstanceProfile), arg0) +} + +// UntagInstanceProfileRequest mocks base method. +func (m *MockIAMAPI) UntagInstanceProfileRequest(arg0 *iam.UntagInstanceProfileInput) (*request.Request, *iam.UntagInstanceProfileOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagInstanceProfileRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.UntagInstanceProfileOutput) + return ret0, ret1 +} + +// UntagInstanceProfileRequest indicates an expected call of UntagInstanceProfileRequest. +func (mr *MockIAMAPIMockRecorder) UntagInstanceProfileRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagInstanceProfileRequest", reflect.TypeOf((*MockIAMAPI)(nil).UntagInstanceProfileRequest), arg0) +} + +// UntagInstanceProfileWithContext mocks base method. +func (m *MockIAMAPI) UntagInstanceProfileWithContext(arg0 aws.Context, arg1 *iam.UntagInstanceProfileInput, arg2 ...request.Option) (*iam.UntagInstanceProfileOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UntagInstanceProfileWithContext", varargs...) + ret0, _ := ret[0].(*iam.UntagInstanceProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagInstanceProfileWithContext indicates an expected call of UntagInstanceProfileWithContext. +func (mr *MockIAMAPIMockRecorder) UntagInstanceProfileWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagInstanceProfileWithContext", reflect.TypeOf((*MockIAMAPI)(nil).UntagInstanceProfileWithContext), varargs...) +} + +// UntagMFADevice mocks base method. +func (m *MockIAMAPI) UntagMFADevice(arg0 *iam.UntagMFADeviceInput) (*iam.UntagMFADeviceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagMFADevice", arg0) + ret0, _ := ret[0].(*iam.UntagMFADeviceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagMFADevice indicates an expected call of UntagMFADevice. +func (mr *MockIAMAPIMockRecorder) UntagMFADevice(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagMFADevice", reflect.TypeOf((*MockIAMAPI)(nil).UntagMFADevice), arg0) +} + +// UntagMFADeviceRequest mocks base method. +func (m *MockIAMAPI) UntagMFADeviceRequest(arg0 *iam.UntagMFADeviceInput) (*request.Request, *iam.UntagMFADeviceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagMFADeviceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.UntagMFADeviceOutput) + return ret0, ret1 +} + +// UntagMFADeviceRequest indicates an expected call of UntagMFADeviceRequest. +func (mr *MockIAMAPIMockRecorder) UntagMFADeviceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagMFADeviceRequest", reflect.TypeOf((*MockIAMAPI)(nil).UntagMFADeviceRequest), arg0) +} + +// UntagMFADeviceWithContext mocks base method. +func (m *MockIAMAPI) UntagMFADeviceWithContext(arg0 aws.Context, arg1 *iam.UntagMFADeviceInput, arg2 ...request.Option) (*iam.UntagMFADeviceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UntagMFADeviceWithContext", varargs...) + ret0, _ := ret[0].(*iam.UntagMFADeviceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagMFADeviceWithContext indicates an expected call of UntagMFADeviceWithContext. +func (mr *MockIAMAPIMockRecorder) UntagMFADeviceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagMFADeviceWithContext", reflect.TypeOf((*MockIAMAPI)(nil).UntagMFADeviceWithContext), varargs...) +} + +// UntagOpenIDConnectProvider mocks base method. +func (m *MockIAMAPI) UntagOpenIDConnectProvider(arg0 *iam.UntagOpenIDConnectProviderInput) (*iam.UntagOpenIDConnectProviderOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagOpenIDConnectProvider", arg0) + ret0, _ := ret[0].(*iam.UntagOpenIDConnectProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagOpenIDConnectProvider indicates an expected call of UntagOpenIDConnectProvider. +func (mr *MockIAMAPIMockRecorder) UntagOpenIDConnectProvider(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagOpenIDConnectProvider", reflect.TypeOf((*MockIAMAPI)(nil).UntagOpenIDConnectProvider), arg0) +} + +// UntagOpenIDConnectProviderRequest mocks base method. +func (m *MockIAMAPI) UntagOpenIDConnectProviderRequest(arg0 *iam.UntagOpenIDConnectProviderInput) (*request.Request, *iam.UntagOpenIDConnectProviderOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagOpenIDConnectProviderRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.UntagOpenIDConnectProviderOutput) + return ret0, ret1 +} + +// UntagOpenIDConnectProviderRequest indicates an expected call of UntagOpenIDConnectProviderRequest. +func (mr *MockIAMAPIMockRecorder) UntagOpenIDConnectProviderRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagOpenIDConnectProviderRequest", reflect.TypeOf((*MockIAMAPI)(nil).UntagOpenIDConnectProviderRequest), arg0) +} + +// UntagOpenIDConnectProviderWithContext mocks base method. +func (m *MockIAMAPI) UntagOpenIDConnectProviderWithContext(arg0 aws.Context, arg1 *iam.UntagOpenIDConnectProviderInput, arg2 ...request.Option) (*iam.UntagOpenIDConnectProviderOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UntagOpenIDConnectProviderWithContext", varargs...) + ret0, _ := ret[0].(*iam.UntagOpenIDConnectProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagOpenIDConnectProviderWithContext indicates an expected call of UntagOpenIDConnectProviderWithContext. +func (mr *MockIAMAPIMockRecorder) UntagOpenIDConnectProviderWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagOpenIDConnectProviderWithContext", reflect.TypeOf((*MockIAMAPI)(nil).UntagOpenIDConnectProviderWithContext), varargs...) +} + +// UntagPolicy mocks base method. +func (m *MockIAMAPI) UntagPolicy(arg0 *iam.UntagPolicyInput) (*iam.UntagPolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagPolicy", arg0) + ret0, _ := ret[0].(*iam.UntagPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagPolicy indicates an expected call of UntagPolicy. +func (mr *MockIAMAPIMockRecorder) UntagPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagPolicy", reflect.TypeOf((*MockIAMAPI)(nil).UntagPolicy), arg0) +} + +// UntagPolicyRequest mocks base method. +func (m *MockIAMAPI) UntagPolicyRequest(arg0 *iam.UntagPolicyInput) (*request.Request, *iam.UntagPolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.UntagPolicyOutput) + return ret0, ret1 +} + +// UntagPolicyRequest indicates an expected call of UntagPolicyRequest. +func (mr *MockIAMAPIMockRecorder) UntagPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagPolicyRequest", reflect.TypeOf((*MockIAMAPI)(nil).UntagPolicyRequest), arg0) +} + +// UntagPolicyWithContext mocks base method. +func (m *MockIAMAPI) UntagPolicyWithContext(arg0 aws.Context, arg1 *iam.UntagPolicyInput, arg2 ...request.Option) (*iam.UntagPolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UntagPolicyWithContext", varargs...) + ret0, _ := ret[0].(*iam.UntagPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagPolicyWithContext indicates an expected call of UntagPolicyWithContext. +func (mr *MockIAMAPIMockRecorder) UntagPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagPolicyWithContext", reflect.TypeOf((*MockIAMAPI)(nil).UntagPolicyWithContext), varargs...) +} + +// UntagRole mocks base method. +func (m *MockIAMAPI) UntagRole(arg0 *iam.UntagRoleInput) (*iam.UntagRoleOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagRole", arg0) + ret0, _ := ret[0].(*iam.UntagRoleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagRole indicates an expected call of UntagRole. +func (mr *MockIAMAPIMockRecorder) UntagRole(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagRole", reflect.TypeOf((*MockIAMAPI)(nil).UntagRole), arg0) +} + +// UntagRoleRequest mocks base method. +func (m *MockIAMAPI) UntagRoleRequest(arg0 *iam.UntagRoleInput) (*request.Request, *iam.UntagRoleOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagRoleRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.UntagRoleOutput) + return ret0, ret1 +} + +// UntagRoleRequest indicates an expected call of UntagRoleRequest. +func (mr *MockIAMAPIMockRecorder) UntagRoleRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagRoleRequest", reflect.TypeOf((*MockIAMAPI)(nil).UntagRoleRequest), arg0) +} + +// UntagRoleWithContext mocks base method. +func (m *MockIAMAPI) UntagRoleWithContext(arg0 aws.Context, arg1 *iam.UntagRoleInput, arg2 ...request.Option) (*iam.UntagRoleOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UntagRoleWithContext", varargs...) + ret0, _ := ret[0].(*iam.UntagRoleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagRoleWithContext indicates an expected call of UntagRoleWithContext. +func (mr *MockIAMAPIMockRecorder) UntagRoleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagRoleWithContext", reflect.TypeOf((*MockIAMAPI)(nil).UntagRoleWithContext), varargs...) +} + +// UntagSAMLProvider mocks base method. +func (m *MockIAMAPI) UntagSAMLProvider(arg0 *iam.UntagSAMLProviderInput) (*iam.UntagSAMLProviderOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagSAMLProvider", arg0) + ret0, _ := ret[0].(*iam.UntagSAMLProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagSAMLProvider indicates an expected call of UntagSAMLProvider. +func (mr *MockIAMAPIMockRecorder) UntagSAMLProvider(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagSAMLProvider", reflect.TypeOf((*MockIAMAPI)(nil).UntagSAMLProvider), arg0) +} + +// UntagSAMLProviderRequest mocks base method. +func (m *MockIAMAPI) UntagSAMLProviderRequest(arg0 *iam.UntagSAMLProviderInput) (*request.Request, *iam.UntagSAMLProviderOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagSAMLProviderRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.UntagSAMLProviderOutput) + return ret0, ret1 +} + +// UntagSAMLProviderRequest indicates an expected call of UntagSAMLProviderRequest. +func (mr *MockIAMAPIMockRecorder) UntagSAMLProviderRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagSAMLProviderRequest", reflect.TypeOf((*MockIAMAPI)(nil).UntagSAMLProviderRequest), arg0) +} + +// UntagSAMLProviderWithContext mocks base method. +func (m *MockIAMAPI) UntagSAMLProviderWithContext(arg0 aws.Context, arg1 *iam.UntagSAMLProviderInput, arg2 ...request.Option) (*iam.UntagSAMLProviderOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UntagSAMLProviderWithContext", varargs...) + ret0, _ := ret[0].(*iam.UntagSAMLProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagSAMLProviderWithContext indicates an expected call of UntagSAMLProviderWithContext. +func (mr *MockIAMAPIMockRecorder) UntagSAMLProviderWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagSAMLProviderWithContext", reflect.TypeOf((*MockIAMAPI)(nil).UntagSAMLProviderWithContext), varargs...) +} + +// UntagServerCertificate mocks base method. +func (m *MockIAMAPI) UntagServerCertificate(arg0 *iam.UntagServerCertificateInput) (*iam.UntagServerCertificateOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagServerCertificate", arg0) + ret0, _ := ret[0].(*iam.UntagServerCertificateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagServerCertificate indicates an expected call of UntagServerCertificate. +func (mr *MockIAMAPIMockRecorder) UntagServerCertificate(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagServerCertificate", reflect.TypeOf((*MockIAMAPI)(nil).UntagServerCertificate), arg0) +} + +// UntagServerCertificateRequest mocks base method. +func (m *MockIAMAPI) UntagServerCertificateRequest(arg0 *iam.UntagServerCertificateInput) (*request.Request, *iam.UntagServerCertificateOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagServerCertificateRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.UntagServerCertificateOutput) + return ret0, ret1 +} + +// UntagServerCertificateRequest indicates an expected call of UntagServerCertificateRequest. +func (mr *MockIAMAPIMockRecorder) UntagServerCertificateRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagServerCertificateRequest", reflect.TypeOf((*MockIAMAPI)(nil).UntagServerCertificateRequest), arg0) +} + +// UntagServerCertificateWithContext mocks base method. +func (m *MockIAMAPI) UntagServerCertificateWithContext(arg0 aws.Context, arg1 *iam.UntagServerCertificateInput, arg2 ...request.Option) (*iam.UntagServerCertificateOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UntagServerCertificateWithContext", varargs...) + ret0, _ := ret[0].(*iam.UntagServerCertificateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagServerCertificateWithContext indicates an expected call of UntagServerCertificateWithContext. +func (mr *MockIAMAPIMockRecorder) UntagServerCertificateWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagServerCertificateWithContext", reflect.TypeOf((*MockIAMAPI)(nil).UntagServerCertificateWithContext), varargs...) +} + +// UntagUser mocks base method. +func (m *MockIAMAPI) UntagUser(arg0 *iam.UntagUserInput) (*iam.UntagUserOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagUser", arg0) + ret0, _ := ret[0].(*iam.UntagUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagUser indicates an expected call of UntagUser. +func (mr *MockIAMAPIMockRecorder) UntagUser(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagUser", reflect.TypeOf((*MockIAMAPI)(nil).UntagUser), arg0) +} + +// UntagUserRequest mocks base method. +func (m *MockIAMAPI) UntagUserRequest(arg0 *iam.UntagUserInput) (*request.Request, *iam.UntagUserOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagUserRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.UntagUserOutput) + return ret0, ret1 +} + +// UntagUserRequest indicates an expected call of UntagUserRequest. +func (mr *MockIAMAPIMockRecorder) UntagUserRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagUserRequest", reflect.TypeOf((*MockIAMAPI)(nil).UntagUserRequest), arg0) +} + +// UntagUserWithContext mocks base method. +func (m *MockIAMAPI) UntagUserWithContext(arg0 aws.Context, arg1 *iam.UntagUserInput, arg2 ...request.Option) (*iam.UntagUserOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UntagUserWithContext", varargs...) + ret0, _ := ret[0].(*iam.UntagUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagUserWithContext indicates an expected call of UntagUserWithContext. +func (mr *MockIAMAPIMockRecorder) UntagUserWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagUserWithContext", reflect.TypeOf((*MockIAMAPI)(nil).UntagUserWithContext), varargs...) +} + +// UpdateAccessKey mocks base method. +func (m *MockIAMAPI) UpdateAccessKey(arg0 *iam.UpdateAccessKeyInput) (*iam.UpdateAccessKeyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateAccessKey", arg0) + ret0, _ := ret[0].(*iam.UpdateAccessKeyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateAccessKey indicates an expected call of UpdateAccessKey. +func (mr *MockIAMAPIMockRecorder) UpdateAccessKey(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAccessKey", reflect.TypeOf((*MockIAMAPI)(nil).UpdateAccessKey), arg0) +} + +// UpdateAccessKeyRequest mocks base method. +func (m *MockIAMAPI) UpdateAccessKeyRequest(arg0 *iam.UpdateAccessKeyInput) (*request.Request, *iam.UpdateAccessKeyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateAccessKeyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.UpdateAccessKeyOutput) + return ret0, ret1 +} + +// UpdateAccessKeyRequest indicates an expected call of UpdateAccessKeyRequest. +func (mr *MockIAMAPIMockRecorder) UpdateAccessKeyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAccessKeyRequest", reflect.TypeOf((*MockIAMAPI)(nil).UpdateAccessKeyRequest), arg0) +} + +// UpdateAccessKeyWithContext mocks base method. +func (m *MockIAMAPI) UpdateAccessKeyWithContext(arg0 aws.Context, arg1 *iam.UpdateAccessKeyInput, arg2 ...request.Option) (*iam.UpdateAccessKeyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateAccessKeyWithContext", varargs...) + ret0, _ := ret[0].(*iam.UpdateAccessKeyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateAccessKeyWithContext indicates an expected call of UpdateAccessKeyWithContext. +func (mr *MockIAMAPIMockRecorder) UpdateAccessKeyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAccessKeyWithContext", reflect.TypeOf((*MockIAMAPI)(nil).UpdateAccessKeyWithContext), varargs...) +} + +// UpdateAccountPasswordPolicy mocks base method. +func (m *MockIAMAPI) UpdateAccountPasswordPolicy(arg0 *iam.UpdateAccountPasswordPolicyInput) (*iam.UpdateAccountPasswordPolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateAccountPasswordPolicy", arg0) + ret0, _ := ret[0].(*iam.UpdateAccountPasswordPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateAccountPasswordPolicy indicates an expected call of UpdateAccountPasswordPolicy. +func (mr *MockIAMAPIMockRecorder) UpdateAccountPasswordPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAccountPasswordPolicy", reflect.TypeOf((*MockIAMAPI)(nil).UpdateAccountPasswordPolicy), arg0) +} + +// UpdateAccountPasswordPolicyRequest mocks base method. +func (m *MockIAMAPI) UpdateAccountPasswordPolicyRequest(arg0 *iam.UpdateAccountPasswordPolicyInput) (*request.Request, *iam.UpdateAccountPasswordPolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateAccountPasswordPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.UpdateAccountPasswordPolicyOutput) + return ret0, ret1 +} + +// UpdateAccountPasswordPolicyRequest indicates an expected call of UpdateAccountPasswordPolicyRequest. +func (mr *MockIAMAPIMockRecorder) UpdateAccountPasswordPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAccountPasswordPolicyRequest", reflect.TypeOf((*MockIAMAPI)(nil).UpdateAccountPasswordPolicyRequest), arg0) +} + +// UpdateAccountPasswordPolicyWithContext mocks base method. +func (m *MockIAMAPI) UpdateAccountPasswordPolicyWithContext(arg0 aws.Context, arg1 *iam.UpdateAccountPasswordPolicyInput, arg2 ...request.Option) (*iam.UpdateAccountPasswordPolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateAccountPasswordPolicyWithContext", varargs...) + ret0, _ := ret[0].(*iam.UpdateAccountPasswordPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateAccountPasswordPolicyWithContext indicates an expected call of UpdateAccountPasswordPolicyWithContext. +func (mr *MockIAMAPIMockRecorder) UpdateAccountPasswordPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAccountPasswordPolicyWithContext", reflect.TypeOf((*MockIAMAPI)(nil).UpdateAccountPasswordPolicyWithContext), varargs...) +} + +// UpdateAssumeRolePolicy mocks base method. +func (m *MockIAMAPI) UpdateAssumeRolePolicy(arg0 *iam.UpdateAssumeRolePolicyInput) (*iam.UpdateAssumeRolePolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateAssumeRolePolicy", arg0) + ret0, _ := ret[0].(*iam.UpdateAssumeRolePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateAssumeRolePolicy indicates an expected call of UpdateAssumeRolePolicy. +func (mr *MockIAMAPIMockRecorder) UpdateAssumeRolePolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAssumeRolePolicy", reflect.TypeOf((*MockIAMAPI)(nil).UpdateAssumeRolePolicy), arg0) +} + +// UpdateAssumeRolePolicyRequest mocks base method. +func (m *MockIAMAPI) UpdateAssumeRolePolicyRequest(arg0 *iam.UpdateAssumeRolePolicyInput) (*request.Request, *iam.UpdateAssumeRolePolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateAssumeRolePolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.UpdateAssumeRolePolicyOutput) + return ret0, ret1 +} + +// UpdateAssumeRolePolicyRequest indicates an expected call of UpdateAssumeRolePolicyRequest. +func (mr *MockIAMAPIMockRecorder) UpdateAssumeRolePolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAssumeRolePolicyRequest", reflect.TypeOf((*MockIAMAPI)(nil).UpdateAssumeRolePolicyRequest), arg0) +} + +// UpdateAssumeRolePolicyWithContext mocks base method. +func (m *MockIAMAPI) UpdateAssumeRolePolicyWithContext(arg0 aws.Context, arg1 *iam.UpdateAssumeRolePolicyInput, arg2 ...request.Option) (*iam.UpdateAssumeRolePolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateAssumeRolePolicyWithContext", varargs...) + ret0, _ := ret[0].(*iam.UpdateAssumeRolePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateAssumeRolePolicyWithContext indicates an expected call of UpdateAssumeRolePolicyWithContext. +func (mr *MockIAMAPIMockRecorder) UpdateAssumeRolePolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAssumeRolePolicyWithContext", reflect.TypeOf((*MockIAMAPI)(nil).UpdateAssumeRolePolicyWithContext), varargs...) +} + +// UpdateGroup mocks base method. +func (m *MockIAMAPI) UpdateGroup(arg0 *iam.UpdateGroupInput) (*iam.UpdateGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateGroup", arg0) + ret0, _ := ret[0].(*iam.UpdateGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateGroup indicates an expected call of UpdateGroup. +func (mr *MockIAMAPIMockRecorder) UpdateGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGroup", reflect.TypeOf((*MockIAMAPI)(nil).UpdateGroup), arg0) +} + +// UpdateGroupRequest mocks base method. +func (m *MockIAMAPI) UpdateGroupRequest(arg0 *iam.UpdateGroupInput) (*request.Request, *iam.UpdateGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.UpdateGroupOutput) + return ret0, ret1 +} + +// UpdateGroupRequest indicates an expected call of UpdateGroupRequest. +func (mr *MockIAMAPIMockRecorder) UpdateGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGroupRequest", reflect.TypeOf((*MockIAMAPI)(nil).UpdateGroupRequest), arg0) +} + +// UpdateGroupWithContext mocks base method. +func (m *MockIAMAPI) UpdateGroupWithContext(arg0 aws.Context, arg1 *iam.UpdateGroupInput, arg2 ...request.Option) (*iam.UpdateGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateGroupWithContext", varargs...) + ret0, _ := ret[0].(*iam.UpdateGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateGroupWithContext indicates an expected call of UpdateGroupWithContext. +func (mr *MockIAMAPIMockRecorder) UpdateGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGroupWithContext", reflect.TypeOf((*MockIAMAPI)(nil).UpdateGroupWithContext), varargs...) +} + +// UpdateLoginProfile mocks base method. +func (m *MockIAMAPI) UpdateLoginProfile(arg0 *iam.UpdateLoginProfileInput) (*iam.UpdateLoginProfileOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateLoginProfile", arg0) + ret0, _ := ret[0].(*iam.UpdateLoginProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateLoginProfile indicates an expected call of UpdateLoginProfile. +func (mr *MockIAMAPIMockRecorder) UpdateLoginProfile(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateLoginProfile", reflect.TypeOf((*MockIAMAPI)(nil).UpdateLoginProfile), arg0) +} + +// UpdateLoginProfileRequest mocks base method. +func (m *MockIAMAPI) UpdateLoginProfileRequest(arg0 *iam.UpdateLoginProfileInput) (*request.Request, *iam.UpdateLoginProfileOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateLoginProfileRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.UpdateLoginProfileOutput) + return ret0, ret1 +} + +// UpdateLoginProfileRequest indicates an expected call of UpdateLoginProfileRequest. +func (mr *MockIAMAPIMockRecorder) UpdateLoginProfileRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateLoginProfileRequest", reflect.TypeOf((*MockIAMAPI)(nil).UpdateLoginProfileRequest), arg0) +} + +// UpdateLoginProfileWithContext mocks base method. +func (m *MockIAMAPI) UpdateLoginProfileWithContext(arg0 aws.Context, arg1 *iam.UpdateLoginProfileInput, arg2 ...request.Option) (*iam.UpdateLoginProfileOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateLoginProfileWithContext", varargs...) + ret0, _ := ret[0].(*iam.UpdateLoginProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateLoginProfileWithContext indicates an expected call of UpdateLoginProfileWithContext. +func (mr *MockIAMAPIMockRecorder) UpdateLoginProfileWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateLoginProfileWithContext", reflect.TypeOf((*MockIAMAPI)(nil).UpdateLoginProfileWithContext), varargs...) +} + +// UpdateOpenIDConnectProviderThumbprint mocks base method. +func (m *MockIAMAPI) UpdateOpenIDConnectProviderThumbprint(arg0 *iam.UpdateOpenIDConnectProviderThumbprintInput) (*iam.UpdateOpenIDConnectProviderThumbprintOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateOpenIDConnectProviderThumbprint", arg0) + ret0, _ := ret[0].(*iam.UpdateOpenIDConnectProviderThumbprintOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateOpenIDConnectProviderThumbprint indicates an expected call of UpdateOpenIDConnectProviderThumbprint. +func (mr *MockIAMAPIMockRecorder) UpdateOpenIDConnectProviderThumbprint(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateOpenIDConnectProviderThumbprint", reflect.TypeOf((*MockIAMAPI)(nil).UpdateOpenIDConnectProviderThumbprint), arg0) +} + +// UpdateOpenIDConnectProviderThumbprintRequest mocks base method. +func (m *MockIAMAPI) UpdateOpenIDConnectProviderThumbprintRequest(arg0 *iam.UpdateOpenIDConnectProviderThumbprintInput) (*request.Request, *iam.UpdateOpenIDConnectProviderThumbprintOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateOpenIDConnectProviderThumbprintRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.UpdateOpenIDConnectProviderThumbprintOutput) + return ret0, ret1 +} + +// UpdateOpenIDConnectProviderThumbprintRequest indicates an expected call of UpdateOpenIDConnectProviderThumbprintRequest. +func (mr *MockIAMAPIMockRecorder) UpdateOpenIDConnectProviderThumbprintRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateOpenIDConnectProviderThumbprintRequest", reflect.TypeOf((*MockIAMAPI)(nil).UpdateOpenIDConnectProviderThumbprintRequest), arg0) +} + +// UpdateOpenIDConnectProviderThumbprintWithContext mocks base method. +func (m *MockIAMAPI) UpdateOpenIDConnectProviderThumbprintWithContext(arg0 aws.Context, arg1 *iam.UpdateOpenIDConnectProviderThumbprintInput, arg2 ...request.Option) (*iam.UpdateOpenIDConnectProviderThumbprintOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateOpenIDConnectProviderThumbprintWithContext", varargs...) + ret0, _ := ret[0].(*iam.UpdateOpenIDConnectProviderThumbprintOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateOpenIDConnectProviderThumbprintWithContext indicates an expected call of UpdateOpenIDConnectProviderThumbprintWithContext. +func (mr *MockIAMAPIMockRecorder) UpdateOpenIDConnectProviderThumbprintWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateOpenIDConnectProviderThumbprintWithContext", reflect.TypeOf((*MockIAMAPI)(nil).UpdateOpenIDConnectProviderThumbprintWithContext), varargs...) +} + +// UpdateRole mocks base method. +func (m *MockIAMAPI) UpdateRole(arg0 *iam.UpdateRoleInput) (*iam.UpdateRoleOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateRole", arg0) + ret0, _ := ret[0].(*iam.UpdateRoleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateRole indicates an expected call of UpdateRole. +func (mr *MockIAMAPIMockRecorder) UpdateRole(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRole", reflect.TypeOf((*MockIAMAPI)(nil).UpdateRole), arg0) +} + +// UpdateRoleDescription mocks base method. +func (m *MockIAMAPI) UpdateRoleDescription(arg0 *iam.UpdateRoleDescriptionInput) (*iam.UpdateRoleDescriptionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateRoleDescription", arg0) + ret0, _ := ret[0].(*iam.UpdateRoleDescriptionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateRoleDescription indicates an expected call of UpdateRoleDescription. +func (mr *MockIAMAPIMockRecorder) UpdateRoleDescription(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRoleDescription", reflect.TypeOf((*MockIAMAPI)(nil).UpdateRoleDescription), arg0) +} + +// UpdateRoleDescriptionRequest mocks base method. +func (m *MockIAMAPI) UpdateRoleDescriptionRequest(arg0 *iam.UpdateRoleDescriptionInput) (*request.Request, *iam.UpdateRoleDescriptionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateRoleDescriptionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.UpdateRoleDescriptionOutput) + return ret0, ret1 +} + +// UpdateRoleDescriptionRequest indicates an expected call of UpdateRoleDescriptionRequest. +func (mr *MockIAMAPIMockRecorder) UpdateRoleDescriptionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRoleDescriptionRequest", reflect.TypeOf((*MockIAMAPI)(nil).UpdateRoleDescriptionRequest), arg0) +} + +// UpdateRoleDescriptionWithContext mocks base method. +func (m *MockIAMAPI) UpdateRoleDescriptionWithContext(arg0 aws.Context, arg1 *iam.UpdateRoleDescriptionInput, arg2 ...request.Option) (*iam.UpdateRoleDescriptionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateRoleDescriptionWithContext", varargs...) + ret0, _ := ret[0].(*iam.UpdateRoleDescriptionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateRoleDescriptionWithContext indicates an expected call of UpdateRoleDescriptionWithContext. +func (mr *MockIAMAPIMockRecorder) UpdateRoleDescriptionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRoleDescriptionWithContext", reflect.TypeOf((*MockIAMAPI)(nil).UpdateRoleDescriptionWithContext), varargs...) +} + +// UpdateRoleRequest mocks base method. +func (m *MockIAMAPI) UpdateRoleRequest(arg0 *iam.UpdateRoleInput) (*request.Request, *iam.UpdateRoleOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateRoleRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.UpdateRoleOutput) + return ret0, ret1 +} + +// UpdateRoleRequest indicates an expected call of UpdateRoleRequest. +func (mr *MockIAMAPIMockRecorder) UpdateRoleRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRoleRequest", reflect.TypeOf((*MockIAMAPI)(nil).UpdateRoleRequest), arg0) +} + +// UpdateRoleWithContext mocks base method. +func (m *MockIAMAPI) UpdateRoleWithContext(arg0 aws.Context, arg1 *iam.UpdateRoleInput, arg2 ...request.Option) (*iam.UpdateRoleOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateRoleWithContext", varargs...) + ret0, _ := ret[0].(*iam.UpdateRoleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateRoleWithContext indicates an expected call of UpdateRoleWithContext. +func (mr *MockIAMAPIMockRecorder) UpdateRoleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRoleWithContext", reflect.TypeOf((*MockIAMAPI)(nil).UpdateRoleWithContext), varargs...) +} + +// UpdateSAMLProvider mocks base method. +func (m *MockIAMAPI) UpdateSAMLProvider(arg0 *iam.UpdateSAMLProviderInput) (*iam.UpdateSAMLProviderOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateSAMLProvider", arg0) + ret0, _ := ret[0].(*iam.UpdateSAMLProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateSAMLProvider indicates an expected call of UpdateSAMLProvider. +func (mr *MockIAMAPIMockRecorder) UpdateSAMLProvider(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSAMLProvider", reflect.TypeOf((*MockIAMAPI)(nil).UpdateSAMLProvider), arg0) +} + +// UpdateSAMLProviderRequest mocks base method. +func (m *MockIAMAPI) UpdateSAMLProviderRequest(arg0 *iam.UpdateSAMLProviderInput) (*request.Request, *iam.UpdateSAMLProviderOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateSAMLProviderRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.UpdateSAMLProviderOutput) + return ret0, ret1 +} + +// UpdateSAMLProviderRequest indicates an expected call of UpdateSAMLProviderRequest. +func (mr *MockIAMAPIMockRecorder) UpdateSAMLProviderRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSAMLProviderRequest", reflect.TypeOf((*MockIAMAPI)(nil).UpdateSAMLProviderRequest), arg0) +} + +// UpdateSAMLProviderWithContext mocks base method. +func (m *MockIAMAPI) UpdateSAMLProviderWithContext(arg0 aws.Context, arg1 *iam.UpdateSAMLProviderInput, arg2 ...request.Option) (*iam.UpdateSAMLProviderOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateSAMLProviderWithContext", varargs...) + ret0, _ := ret[0].(*iam.UpdateSAMLProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateSAMLProviderWithContext indicates an expected call of UpdateSAMLProviderWithContext. +func (mr *MockIAMAPIMockRecorder) UpdateSAMLProviderWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSAMLProviderWithContext", reflect.TypeOf((*MockIAMAPI)(nil).UpdateSAMLProviderWithContext), varargs...) +} + +// UpdateSSHPublicKey mocks base method. +func (m *MockIAMAPI) UpdateSSHPublicKey(arg0 *iam.UpdateSSHPublicKeyInput) (*iam.UpdateSSHPublicKeyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateSSHPublicKey", arg0) + ret0, _ := ret[0].(*iam.UpdateSSHPublicKeyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateSSHPublicKey indicates an expected call of UpdateSSHPublicKey. +func (mr *MockIAMAPIMockRecorder) UpdateSSHPublicKey(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSSHPublicKey", reflect.TypeOf((*MockIAMAPI)(nil).UpdateSSHPublicKey), arg0) +} + +// UpdateSSHPublicKeyRequest mocks base method. +func (m *MockIAMAPI) UpdateSSHPublicKeyRequest(arg0 *iam.UpdateSSHPublicKeyInput) (*request.Request, *iam.UpdateSSHPublicKeyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateSSHPublicKeyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.UpdateSSHPublicKeyOutput) + return ret0, ret1 +} + +// UpdateSSHPublicKeyRequest indicates an expected call of UpdateSSHPublicKeyRequest. +func (mr *MockIAMAPIMockRecorder) UpdateSSHPublicKeyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSSHPublicKeyRequest", reflect.TypeOf((*MockIAMAPI)(nil).UpdateSSHPublicKeyRequest), arg0) +} + +// UpdateSSHPublicKeyWithContext mocks base method. +func (m *MockIAMAPI) UpdateSSHPublicKeyWithContext(arg0 aws.Context, arg1 *iam.UpdateSSHPublicKeyInput, arg2 ...request.Option) (*iam.UpdateSSHPublicKeyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateSSHPublicKeyWithContext", varargs...) + ret0, _ := ret[0].(*iam.UpdateSSHPublicKeyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateSSHPublicKeyWithContext indicates an expected call of UpdateSSHPublicKeyWithContext. +func (mr *MockIAMAPIMockRecorder) UpdateSSHPublicKeyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSSHPublicKeyWithContext", reflect.TypeOf((*MockIAMAPI)(nil).UpdateSSHPublicKeyWithContext), varargs...) +} + +// UpdateServerCertificate mocks base method. +func (m *MockIAMAPI) UpdateServerCertificate(arg0 *iam.UpdateServerCertificateInput) (*iam.UpdateServerCertificateOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateServerCertificate", arg0) + ret0, _ := ret[0].(*iam.UpdateServerCertificateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateServerCertificate indicates an expected call of UpdateServerCertificate. +func (mr *MockIAMAPIMockRecorder) UpdateServerCertificate(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateServerCertificate", reflect.TypeOf((*MockIAMAPI)(nil).UpdateServerCertificate), arg0) +} + +// UpdateServerCertificateRequest mocks base method. +func (m *MockIAMAPI) UpdateServerCertificateRequest(arg0 *iam.UpdateServerCertificateInput) (*request.Request, *iam.UpdateServerCertificateOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateServerCertificateRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.UpdateServerCertificateOutput) + return ret0, ret1 +} + +// UpdateServerCertificateRequest indicates an expected call of UpdateServerCertificateRequest. +func (mr *MockIAMAPIMockRecorder) UpdateServerCertificateRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateServerCertificateRequest", reflect.TypeOf((*MockIAMAPI)(nil).UpdateServerCertificateRequest), arg0) +} + +// UpdateServerCertificateWithContext mocks base method. +func (m *MockIAMAPI) UpdateServerCertificateWithContext(arg0 aws.Context, arg1 *iam.UpdateServerCertificateInput, arg2 ...request.Option) (*iam.UpdateServerCertificateOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateServerCertificateWithContext", varargs...) + ret0, _ := ret[0].(*iam.UpdateServerCertificateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateServerCertificateWithContext indicates an expected call of UpdateServerCertificateWithContext. +func (mr *MockIAMAPIMockRecorder) UpdateServerCertificateWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateServerCertificateWithContext", reflect.TypeOf((*MockIAMAPI)(nil).UpdateServerCertificateWithContext), varargs...) +} + +// UpdateServiceSpecificCredential mocks base method. +func (m *MockIAMAPI) UpdateServiceSpecificCredential(arg0 *iam.UpdateServiceSpecificCredentialInput) (*iam.UpdateServiceSpecificCredentialOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateServiceSpecificCredential", arg0) + ret0, _ := ret[0].(*iam.UpdateServiceSpecificCredentialOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateServiceSpecificCredential indicates an expected call of UpdateServiceSpecificCredential. +func (mr *MockIAMAPIMockRecorder) UpdateServiceSpecificCredential(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateServiceSpecificCredential", reflect.TypeOf((*MockIAMAPI)(nil).UpdateServiceSpecificCredential), arg0) +} + +// UpdateServiceSpecificCredentialRequest mocks base method. +func (m *MockIAMAPI) UpdateServiceSpecificCredentialRequest(arg0 *iam.UpdateServiceSpecificCredentialInput) (*request.Request, *iam.UpdateServiceSpecificCredentialOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateServiceSpecificCredentialRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.UpdateServiceSpecificCredentialOutput) + return ret0, ret1 +} + +// UpdateServiceSpecificCredentialRequest indicates an expected call of UpdateServiceSpecificCredentialRequest. +func (mr *MockIAMAPIMockRecorder) UpdateServiceSpecificCredentialRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateServiceSpecificCredentialRequest", reflect.TypeOf((*MockIAMAPI)(nil).UpdateServiceSpecificCredentialRequest), arg0) +} + +// UpdateServiceSpecificCredentialWithContext mocks base method. +func (m *MockIAMAPI) UpdateServiceSpecificCredentialWithContext(arg0 aws.Context, arg1 *iam.UpdateServiceSpecificCredentialInput, arg2 ...request.Option) (*iam.UpdateServiceSpecificCredentialOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateServiceSpecificCredentialWithContext", varargs...) + ret0, _ := ret[0].(*iam.UpdateServiceSpecificCredentialOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateServiceSpecificCredentialWithContext indicates an expected call of UpdateServiceSpecificCredentialWithContext. +func (mr *MockIAMAPIMockRecorder) UpdateServiceSpecificCredentialWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateServiceSpecificCredentialWithContext", reflect.TypeOf((*MockIAMAPI)(nil).UpdateServiceSpecificCredentialWithContext), varargs...) +} + +// UpdateSigningCertificate mocks base method. +func (m *MockIAMAPI) UpdateSigningCertificate(arg0 *iam.UpdateSigningCertificateInput) (*iam.UpdateSigningCertificateOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateSigningCertificate", arg0) + ret0, _ := ret[0].(*iam.UpdateSigningCertificateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateSigningCertificate indicates an expected call of UpdateSigningCertificate. +func (mr *MockIAMAPIMockRecorder) UpdateSigningCertificate(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSigningCertificate", reflect.TypeOf((*MockIAMAPI)(nil).UpdateSigningCertificate), arg0) +} + +// UpdateSigningCertificateRequest mocks base method. +func (m *MockIAMAPI) UpdateSigningCertificateRequest(arg0 *iam.UpdateSigningCertificateInput) (*request.Request, *iam.UpdateSigningCertificateOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateSigningCertificateRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.UpdateSigningCertificateOutput) + return ret0, ret1 +} + +// UpdateSigningCertificateRequest indicates an expected call of UpdateSigningCertificateRequest. +func (mr *MockIAMAPIMockRecorder) UpdateSigningCertificateRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSigningCertificateRequest", reflect.TypeOf((*MockIAMAPI)(nil).UpdateSigningCertificateRequest), arg0) +} + +// UpdateSigningCertificateWithContext mocks base method. +func (m *MockIAMAPI) UpdateSigningCertificateWithContext(arg0 aws.Context, arg1 *iam.UpdateSigningCertificateInput, arg2 ...request.Option) (*iam.UpdateSigningCertificateOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateSigningCertificateWithContext", varargs...) + ret0, _ := ret[0].(*iam.UpdateSigningCertificateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateSigningCertificateWithContext indicates an expected call of UpdateSigningCertificateWithContext. +func (mr *MockIAMAPIMockRecorder) UpdateSigningCertificateWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSigningCertificateWithContext", reflect.TypeOf((*MockIAMAPI)(nil).UpdateSigningCertificateWithContext), varargs...) +} + +// UpdateUser mocks base method. +func (m *MockIAMAPI) UpdateUser(arg0 *iam.UpdateUserInput) (*iam.UpdateUserOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateUser", arg0) + ret0, _ := ret[0].(*iam.UpdateUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateUser indicates an expected call of UpdateUser. +func (mr *MockIAMAPIMockRecorder) UpdateUser(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUser", reflect.TypeOf((*MockIAMAPI)(nil).UpdateUser), arg0) +} + +// UpdateUserRequest mocks base method. +func (m *MockIAMAPI) UpdateUserRequest(arg0 *iam.UpdateUserInput) (*request.Request, *iam.UpdateUserOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateUserRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.UpdateUserOutput) + return ret0, ret1 +} + +// UpdateUserRequest indicates an expected call of UpdateUserRequest. +func (mr *MockIAMAPIMockRecorder) UpdateUserRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserRequest", reflect.TypeOf((*MockIAMAPI)(nil).UpdateUserRequest), arg0) +} + +// UpdateUserWithContext mocks base method. +func (m *MockIAMAPI) UpdateUserWithContext(arg0 aws.Context, arg1 *iam.UpdateUserInput, arg2 ...request.Option) (*iam.UpdateUserOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateUserWithContext", varargs...) + ret0, _ := ret[0].(*iam.UpdateUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateUserWithContext indicates an expected call of UpdateUserWithContext. +func (mr *MockIAMAPIMockRecorder) UpdateUserWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserWithContext", reflect.TypeOf((*MockIAMAPI)(nil).UpdateUserWithContext), varargs...) +} + +// UploadSSHPublicKey mocks base method. +func (m *MockIAMAPI) UploadSSHPublicKey(arg0 *iam.UploadSSHPublicKeyInput) (*iam.UploadSSHPublicKeyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UploadSSHPublicKey", arg0) + ret0, _ := ret[0].(*iam.UploadSSHPublicKeyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UploadSSHPublicKey indicates an expected call of UploadSSHPublicKey. +func (mr *MockIAMAPIMockRecorder) UploadSSHPublicKey(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UploadSSHPublicKey", reflect.TypeOf((*MockIAMAPI)(nil).UploadSSHPublicKey), arg0) +} + +// UploadSSHPublicKeyRequest mocks base method. +func (m *MockIAMAPI) UploadSSHPublicKeyRequest(arg0 *iam.UploadSSHPublicKeyInput) (*request.Request, *iam.UploadSSHPublicKeyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UploadSSHPublicKeyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.UploadSSHPublicKeyOutput) + return ret0, ret1 +} + +// UploadSSHPublicKeyRequest indicates an expected call of UploadSSHPublicKeyRequest. +func (mr *MockIAMAPIMockRecorder) UploadSSHPublicKeyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UploadSSHPublicKeyRequest", reflect.TypeOf((*MockIAMAPI)(nil).UploadSSHPublicKeyRequest), arg0) +} + +// UploadSSHPublicKeyWithContext mocks base method. +func (m *MockIAMAPI) UploadSSHPublicKeyWithContext(arg0 aws.Context, arg1 *iam.UploadSSHPublicKeyInput, arg2 ...request.Option) (*iam.UploadSSHPublicKeyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UploadSSHPublicKeyWithContext", varargs...) + ret0, _ := ret[0].(*iam.UploadSSHPublicKeyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UploadSSHPublicKeyWithContext indicates an expected call of UploadSSHPublicKeyWithContext. +func (mr *MockIAMAPIMockRecorder) UploadSSHPublicKeyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UploadSSHPublicKeyWithContext", reflect.TypeOf((*MockIAMAPI)(nil).UploadSSHPublicKeyWithContext), varargs...) +} + +// UploadServerCertificate mocks base method. +func (m *MockIAMAPI) UploadServerCertificate(arg0 *iam.UploadServerCertificateInput) (*iam.UploadServerCertificateOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UploadServerCertificate", arg0) + ret0, _ := ret[0].(*iam.UploadServerCertificateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UploadServerCertificate indicates an expected call of UploadServerCertificate. +func (mr *MockIAMAPIMockRecorder) UploadServerCertificate(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UploadServerCertificate", reflect.TypeOf((*MockIAMAPI)(nil).UploadServerCertificate), arg0) +} + +// UploadServerCertificateRequest mocks base method. +func (m *MockIAMAPI) UploadServerCertificateRequest(arg0 *iam.UploadServerCertificateInput) (*request.Request, *iam.UploadServerCertificateOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UploadServerCertificateRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.UploadServerCertificateOutput) + return ret0, ret1 +} + +// UploadServerCertificateRequest indicates an expected call of UploadServerCertificateRequest. +func (mr *MockIAMAPIMockRecorder) UploadServerCertificateRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UploadServerCertificateRequest", reflect.TypeOf((*MockIAMAPI)(nil).UploadServerCertificateRequest), arg0) +} + +// UploadServerCertificateWithContext mocks base method. +func (m *MockIAMAPI) UploadServerCertificateWithContext(arg0 aws.Context, arg1 *iam.UploadServerCertificateInput, arg2 ...request.Option) (*iam.UploadServerCertificateOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UploadServerCertificateWithContext", varargs...) + ret0, _ := ret[0].(*iam.UploadServerCertificateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UploadServerCertificateWithContext indicates an expected call of UploadServerCertificateWithContext. +func (mr *MockIAMAPIMockRecorder) UploadServerCertificateWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UploadServerCertificateWithContext", reflect.TypeOf((*MockIAMAPI)(nil).UploadServerCertificateWithContext), varargs...) +} + +// UploadSigningCertificate mocks base method. +func (m *MockIAMAPI) UploadSigningCertificate(arg0 *iam.UploadSigningCertificateInput) (*iam.UploadSigningCertificateOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UploadSigningCertificate", arg0) + ret0, _ := ret[0].(*iam.UploadSigningCertificateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UploadSigningCertificate indicates an expected call of UploadSigningCertificate. +func (mr *MockIAMAPIMockRecorder) UploadSigningCertificate(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UploadSigningCertificate", reflect.TypeOf((*MockIAMAPI)(nil).UploadSigningCertificate), arg0) +} + +// UploadSigningCertificateRequest mocks base method. +func (m *MockIAMAPI) UploadSigningCertificateRequest(arg0 *iam.UploadSigningCertificateInput) (*request.Request, *iam.UploadSigningCertificateOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UploadSigningCertificateRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.UploadSigningCertificateOutput) + return ret0, ret1 +} + +// UploadSigningCertificateRequest indicates an expected call of UploadSigningCertificateRequest. +func (mr *MockIAMAPIMockRecorder) UploadSigningCertificateRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UploadSigningCertificateRequest", reflect.TypeOf((*MockIAMAPI)(nil).UploadSigningCertificateRequest), arg0) +} + +// UploadSigningCertificateWithContext mocks base method. +func (m *MockIAMAPI) UploadSigningCertificateWithContext(arg0 aws.Context, arg1 *iam.UploadSigningCertificateInput, arg2 ...request.Option) (*iam.UploadSigningCertificateOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UploadSigningCertificateWithContext", varargs...) + ret0, _ := ret[0].(*iam.UploadSigningCertificateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UploadSigningCertificateWithContext indicates an expected call of UploadSigningCertificateWithContext. +func (mr *MockIAMAPIMockRecorder) UploadSigningCertificateWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UploadSigningCertificateWithContext", reflect.TypeOf((*MockIAMAPI)(nil).UploadSigningCertificateWithContext), varargs...) +} + +// WaitUntilInstanceProfileExists mocks base method. +func (m *MockIAMAPI) WaitUntilInstanceProfileExists(arg0 *iam.GetInstanceProfileInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilInstanceProfileExists", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilInstanceProfileExists indicates an expected call of WaitUntilInstanceProfileExists. +func (mr *MockIAMAPIMockRecorder) WaitUntilInstanceProfileExists(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilInstanceProfileExists", reflect.TypeOf((*MockIAMAPI)(nil).WaitUntilInstanceProfileExists), arg0) +} + +// WaitUntilInstanceProfileExistsWithContext mocks base method. +func (m *MockIAMAPI) WaitUntilInstanceProfileExistsWithContext(arg0 aws.Context, arg1 *iam.GetInstanceProfileInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilInstanceProfileExistsWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilInstanceProfileExistsWithContext indicates an expected call of WaitUntilInstanceProfileExistsWithContext. +func (mr *MockIAMAPIMockRecorder) WaitUntilInstanceProfileExistsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilInstanceProfileExistsWithContext", reflect.TypeOf((*MockIAMAPI)(nil).WaitUntilInstanceProfileExistsWithContext), varargs...) +} + +// WaitUntilPolicyExists mocks base method. +func (m *MockIAMAPI) WaitUntilPolicyExists(arg0 *iam.GetPolicyInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilPolicyExists", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilPolicyExists indicates an expected call of WaitUntilPolicyExists. +func (mr *MockIAMAPIMockRecorder) WaitUntilPolicyExists(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilPolicyExists", reflect.TypeOf((*MockIAMAPI)(nil).WaitUntilPolicyExists), arg0) +} + +// WaitUntilPolicyExistsWithContext mocks base method. +func (m *MockIAMAPI) WaitUntilPolicyExistsWithContext(arg0 aws.Context, arg1 *iam.GetPolicyInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilPolicyExistsWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilPolicyExistsWithContext indicates an expected call of WaitUntilPolicyExistsWithContext. +func (mr *MockIAMAPIMockRecorder) WaitUntilPolicyExistsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilPolicyExistsWithContext", reflect.TypeOf((*MockIAMAPI)(nil).WaitUntilPolicyExistsWithContext), varargs...) +} + +// WaitUntilRoleExists mocks base method. +func (m *MockIAMAPI) WaitUntilRoleExists(arg0 *iam.GetRoleInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilRoleExists", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilRoleExists indicates an expected call of WaitUntilRoleExists. +func (mr *MockIAMAPIMockRecorder) WaitUntilRoleExists(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilRoleExists", reflect.TypeOf((*MockIAMAPI)(nil).WaitUntilRoleExists), arg0) +} + +// WaitUntilRoleExistsWithContext mocks base method. +func (m *MockIAMAPI) WaitUntilRoleExistsWithContext(arg0 aws.Context, arg1 *iam.GetRoleInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilRoleExistsWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilRoleExistsWithContext indicates an expected call of WaitUntilRoleExistsWithContext. +func (mr *MockIAMAPIMockRecorder) WaitUntilRoleExistsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilRoleExistsWithContext", reflect.TypeOf((*MockIAMAPI)(nil).WaitUntilRoleExistsWithContext), varargs...) +} + +// WaitUntilUserExists mocks base method. +func (m *MockIAMAPI) WaitUntilUserExists(arg0 *iam.GetUserInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilUserExists", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilUserExists indicates an expected call of WaitUntilUserExists. +func (mr *MockIAMAPIMockRecorder) WaitUntilUserExists(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilUserExists", reflect.TypeOf((*MockIAMAPI)(nil).WaitUntilUserExists), arg0) +} + +// WaitUntilUserExistsWithContext mocks base method. +func (m *MockIAMAPI) WaitUntilUserExistsWithContext(arg0 aws.Context, arg1 *iam.GetUserInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilUserExistsWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilUserExistsWithContext indicates an expected call of WaitUntilUserExistsWithContext. +func (mr *MockIAMAPIMockRecorder) WaitUntilUserExistsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilUserExistsWithContext", reflect.TypeOf((*MockIAMAPI)(nil).WaitUntilUserExistsWithContext), varargs...) +} diff --git a/pkg/awsutil/account.go b/pkg/awsutil/account.go index c7496f7e..19a8ae30 100644 --- a/pkg/awsutil/account.go +++ b/pkg/awsutil/account.go @@ -5,8 +5,8 @@ import ( "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/sts" + "github.com/ekristen/aws-nuke/pkg/config" "github.com/pkg/errors" - "github.com/rebuy-de/aws-nuke/v2/pkg/config" ) type Account struct { @@ -56,7 +56,7 @@ func NewAccount(creds Credentials, endpoints config.CustomEndpoints) (*Account, return nil, errors.Wrap(err, "failed get account alias") } - aliases := []string{} + var aliases []string for _, alias := range aliasesOutput.AccountAliases { if alias != nil { aliases = append(aliases, *alias) diff --git a/pkg/awsutil/errors.go b/pkg/awsutil/errors.go deleted file mode 100644 index 543f699a..00000000 --- a/pkg/awsutil/errors.go +++ /dev/null @@ -1,13 +0,0 @@ -package awsutil - -type ErrSkipRequest string - -func (err ErrSkipRequest) Error() string { - return string(err) -} - -type ErrUnknownEndpoint string - -func (err ErrUnknownEndpoint) Error() string { - return string(err) -} diff --git a/pkg/awsutil/session.go b/pkg/awsutil/session.go index f420df77..64d66365 100644 --- a/pkg/awsutil/session.go +++ b/pkg/awsutil/session.go @@ -14,7 +14,8 @@ import ( "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/s3control" - "github.com/rebuy-de/aws-nuke/v2/pkg/config" + "github.com/ekristen/aws-nuke/pkg/config" + sdkerrors "github.com/ekristen/libnuke/pkg/errors" log "github.com/sirupsen/logrus" ) @@ -101,7 +102,6 @@ func (c *Credentials) rootSession() (*session.Session, error) { Profile: c.Profile, AssumeRoleTokenProvider: stscreds.StdinTokenProvider, } - } opts.Config.Region = aws.String(region) @@ -149,7 +149,7 @@ func (c *Credentials) NewSession(region, serviceType string) (*session.Session, if customRegion := c.CustomEndpoints.GetRegion(region); customRegion != nil { customService := customRegion.Services.GetService(serviceType) if customService == nil { - return nil, ErrSkipRequest(fmt.Sprintf( + return nil, sdkerrors.ErrSkipRequest(fmt.Sprintf( ".service '%s' is not available in region '%s'", serviceType, region)) } @@ -185,11 +185,11 @@ func (c *Credentials) NewSession(region, serviceType string) (*session.Session, } sess.Handlers.Send.PushFront(func(r *request.Request) { - log.Debugf("sending AWS request:\n%s", DumpRequest(r.HTTPRequest)) + log.Tracef("sending AWS request:\n%s", DumpRequest(r.HTTPRequest)) }) sess.Handlers.ValidateResponse.PushFront(func(r *request.Request) { - log.Debugf("received AWS response:\n%s", DumpResponse(r.HTTPResponse)) + log.Tracef("received AWS response:\n%s", DumpResponse(r.HTTPResponse)) }) if !isCustom { @@ -216,7 +216,7 @@ func skipMissingServiceInRegionHandler(r *request.Request) { _, ok = rs[region] if !ok { - r.Error = ErrSkipRequest(fmt.Sprintf( + r.Error = sdkerrors.ErrSkipRequest(fmt.Sprintf( "service '%s' is not available in region '%s'", service, region)) } @@ -234,25 +234,25 @@ func skipGlobalHandler(global bool) func(r *request.Request) { if !ok { // This means that the service does not exist in the endpoints list. if global { - r.Error = ErrSkipRequest(fmt.Sprintf("service '%s' is was not found in the endpoint list; assuming it is not global", service)) + r.Error = sdkerrors.ErrSkipRequest(fmt.Sprintf("service '%s' is was not found in the endpoint list; assuming it is not global", service)) } else { host := r.HTTPRequest.URL.Hostname() _, err := net.LookupHost(host) if err != nil { log.Debug(err) - r.Error = ErrUnknownEndpoint(fmt.Sprintf("DNS lookup failed for %s; assuming it does not exist in this region", host)) + r.Error = sdkerrors.ErrUnknownEndpoint(fmt.Sprintf("DNS lookup failed for %s; assuming it does not exist in this region", host)) } } return } if len(rs) == 0 && !global { - r.Error = ErrSkipRequest(fmt.Sprintf("service '%s' is global, but the session is not", service)) + r.Error = sdkerrors.ErrSkipRequest(fmt.Sprintf("service '%s' is global, but the session is not", service)) return } if (len(rs) > 0 && global) && service != "sts" { - r.Error = ErrSkipRequest(fmt.Sprintf("service '%s' is not global, but the session is", service)) + r.Error = sdkerrors.ErrSkipRequest(fmt.Sprintf("service '%s' is not global, but the session is", service)) return } } diff --git a/pkg/awsutil/util.go b/pkg/awsutil/util.go index 4ad9faca..460c1e0b 100644 --- a/pkg/awsutil/util.go +++ b/pkg/awsutil/util.go @@ -2,11 +2,13 @@ package awsutil import ( "bytes" + "errors" + "github.com/aws/aws-sdk-go/aws/awserr" "net/http" "net/http/httputil" "regexp" - "github.com/rebuy-de/aws-nuke/v2/pkg/util" + "github.com/ekristen/libnuke/pkg/utils" log "github.com/sirupsen/logrus" ) @@ -28,7 +30,7 @@ func DumpRequest(r *http.Request) string { dump = bytes.TrimSpace(dump) dump = HideSecureHeaders(dump) - dump = util.IndentBytes(dump, []byte(" > ")) + dump = utils.IndentBytes(dump, []byte(" > ")) return string(dump) } @@ -41,6 +43,16 @@ func DumpResponse(r *http.Response) string { } dump = bytes.TrimSpace(dump) - dump = util.IndentBytes(dump, []byte(" < ")) + dump = utils.IndentBytes(dump, []byte(" < ")) return string(dump) } + +func IsAWSError(err error, code string) bool { + var aerr awserr.Error + ok := errors.As(err, &aerr) + if !ok { + return false + } + + return aerr.Code() == code +} diff --git a/pkg/awsutil/util_test.go b/pkg/awsutil/util_test.go index 452eb4fa..7dc03551 100644 --- a/pkg/awsutil/util_test.go +++ b/pkg/awsutil/util_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/rebuy-de/aws-nuke/v2/pkg/awsutil" + "github.com/ekristen/aws-nuke/pkg/awsutil" ) func TestSecretRegex(t *testing.T) { diff --git a/pkg/commands/global/global.go b/pkg/commands/global/global.go new file mode 100644 index 00000000..d104fe83 --- /dev/null +++ b/pkg/commands/global/global.go @@ -0,0 +1,67 @@ +package global + +import ( + "fmt" + "path" + "runtime" + + "github.com/sirupsen/logrus" + "github.com/urfave/cli/v2" +) + +func Flags() []cli.Flag { + globalFlags := []cli.Flag{ + &cli.StringFlag{ + Name: "log-level", + Usage: "Log Level", + Aliases: []string{"l"}, + EnvVars: []string{"LOGLEVEL"}, + Value: "info", + }, + &cli.BoolFlag{ + Name: "log-caller", + Usage: "log the caller (aka line number and file)", + }, + &cli.BoolFlag{ + Name: "log-disable-color", + Usage: "disable log coloring", + }, + &cli.BoolFlag{ + Name: "log-full-timestamp", + Usage: "force log output to always show full timestamp", + }, + } + + return globalFlags +} + +func Before(c *cli.Context) error { + formatter := &logrus.TextFormatter{ + DisableColors: c.Bool("log-disable-color"), + FullTimestamp: c.Bool("log-full-timestamp"), + } + if c.Bool("log-caller") { + logrus.SetReportCaller(true) + + formatter.CallerPrettyfier = func(f *runtime.Frame) (string, string) { + return "", fmt.Sprintf("%s:%d", path.Base(f.File), f.Line) + } + } + + logrus.SetFormatter(formatter) + + switch c.String("log-level") { + case "trace": + logrus.SetLevel(logrus.TraceLevel) + case "debug": + logrus.SetLevel(logrus.DebugLevel) + case "info": + logrus.SetLevel(logrus.InfoLevel) + case "warn": + logrus.SetLevel(logrus.WarnLevel) + case "error": + logrus.SetLevel(logrus.ErrorLevel) + } + + return nil +} diff --git a/pkg/commands/list/list.go b/pkg/commands/list/list.go new file mode 100644 index 00000000..ebd19af6 --- /dev/null +++ b/pkg/commands/list/list.go @@ -0,0 +1,36 @@ +package list + +import ( + "fmt" + "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/urfave/cli/v2" + + "github.com/ekristen/aws-nuke/pkg/commands/global" + "github.com/ekristen/aws-nuke/pkg/common" + + _ "github.com/ekristen/aws-nuke/resources" +) + +func execute(c *cli.Context) error { + ls := resource.GetListersForScope(nuke.Account) + + for name, _ := range ls { + fmt.Println(name) + } + + return nil +} + +func init() { + cmd := &cli.Command{ + Name: "resource-types", + Aliases: []string{"list-resources"}, + Usage: "list available resources to nuke", + Flags: global.Flags(), + Before: global.Before, + Action: execute, + } + + common.RegisterCommand(cmd) +} diff --git a/pkg/commands/nuke/command.go b/pkg/commands/nuke/command.go new file mode 100644 index 00000000..555e0761 --- /dev/null +++ b/pkg/commands/nuke/command.go @@ -0,0 +1,200 @@ +package nuke + +import ( + "context" + "fmt" + "os" + + "github.com/aws/aws-sdk-go/aws/endpoints" + + "github.com/sirupsen/logrus" + "github.com/urfave/cli/v2" + + sdknuke "github.com/ekristen/libnuke/pkg/nuke" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/awsutil" + "github.com/ekristen/aws-nuke/pkg/commands/global" + "github.com/ekristen/aws-nuke/pkg/common" + "github.com/ekristen/aws-nuke/pkg/config" + "github.com/ekristen/aws-nuke/pkg/nuke" +) + +func execute(c *cli.Context) error { + ctx, cancel := context.WithCancel(c.Context) + defer cancel() + + _ = ctx + + var ( + err error + creds awsutil.Credentials + defaultRegion string + ) + + if !creds.HasKeys() && !creds.HasProfile() && defaultRegion != "" { + creds.AccessKeyID = os.Getenv("AWS_ACCESS_KEY_ID") + creds.SecretAccessKey = os.Getenv("AWS_SECRET_ACCESS_KEY") + } + err = creds.Validate() + if err != nil { + return err + } + + params := nuke.Parameters{ + Parameters: sdknuke.Parameters{ + Force: c.Bool("force"), + ForceSleep: c.Int("force-sleep"), + Quiet: c.Bool("quiet"), + NoDryRun: c.Bool("no-dry-run"), + }, + Targets: c.StringSlice("only-resource"), + Excludes: c.StringSlice("exclude-resource"), + CloudControl: c.StringSlice("cloud-control"), + } + + parsedConfig, err := config.Load(c.Path("config")) + if err != nil { + logrus.Errorf("Failed to parse config file %s", c.Path("config")) + return err + } + + if defaultRegion != "" { + awsutil.DefaultRegionID = defaultRegion + switch defaultRegion { + case endpoints.UsEast1RegionID, endpoints.UsEast2RegionID, endpoints.UsWest1RegionID, endpoints.UsWest2RegionID: + awsutil.DefaultAWSPartitionID = endpoints.AwsPartitionID + case endpoints.UsGovEast1RegionID, endpoints.UsGovWest1RegionID: + awsutil.DefaultAWSPartitionID = endpoints.AwsUsGovPartitionID + default: + if parsedConfig.CustomEndpoints.GetRegion(defaultRegion) == nil { + err = fmt.Errorf("the custom region '%s' must be specified in the configuration 'endpoints'", defaultRegion) + logrus.Error(err.Error()) + return err + } + } + } + + account, err := awsutil.NewAccount(creds, parsedConfig.CustomEndpoints) + if err != nil { + return err + } + + filters, err := parsedConfig.Filters(account.ID()) + if err != nil { + return err + } + + n := nuke.New(params, parsedConfig, filters, *account) + + n.RegisterValidateHandler(func() error { + return parsedConfig.ValidateAccount(n.Account.ID(), n.Account.Aliases()) + }) + + n.RegisterPrompt(n.Prompt) + + accountConfig := parsedConfig.Accounts[n.Account.ID()] + resourceTypes := nuke.ResolveResourceTypes( + resource.GetNames(), + nuke.GetCloudControlMapping(), + []types.Collection{ + n.Parameters.Targets, + n.Config.GetResourceTypes().Targets, + accountConfig.ResourceTypes.Targets, + }, + []types.Collection{ + n.Parameters.Excludes, + n.Config.GetResourceTypes().Excludes, + accountConfig.ResourceTypes.Excludes, + }, + []types.Collection{ + n.Parameters.CloudControl, + n.Config.GetResourceTypes().CloudControl, + accountConfig.ResourceTypes.CloudControl, + }, + ) + + // mutateOps is a function that will be called for each resource type to mutate the options + // for the scanner based on whatever criteria you want. However, in this case for the aws-nuke + // tool, it's mutating the opts to create the proper session for the proper region. + var mutateOps = func(opts interface{}, resourceType string) interface{} { + o := opts.(*nuke.ListerOpts) + + session, err := o.Region.Session(resourceType) + if err != nil { + panic(err) + } + + o.Session = session + return o + } + + for _, regionName := range parsedConfig.Regions { + region := nuke.NewRegion(regionName, n.Account.ResourceTypeToServiceType, n.Account.NewSession) + scanner := sdknuke.NewScanner(regionName, resourceTypes, &nuke.ListerOpts{ + Region: region, + }) + + regMutateErr := scanner.RegisterMutateOptsFunc(mutateOps) + if regMutateErr != nil { + return regMutateErr + } + + regScanErr := n.RegisterScanner(nuke.Account, scanner) + if regScanErr != nil { + return regScanErr + } + } + + return n.Run(ctx) +} + +func init() { + flags := []cli.Flag{ + &cli.PathFlag{ + Name: "config", + Usage: "path to config file", + Value: "config.yaml", + }, + &cli.BoolFlag{ + Name: "force", + Usage: "disable prompting for verification to run", + }, + &cli.IntFlag{ + Name: "force-sleep", + Usage: "seconds to sleep", + Value: 10, + }, + &cli.BoolFlag{ + Name: "quiet", + Usage: "hide filtered messages", + }, + &cli.BoolFlag{ + Name: "no-dry-run", + Usage: "actually run the removal of the resources after discovery", + }, + &cli.StringSliceFlag{ + Name: "only-resource", + Usage: "only run against these resource types", + Aliases: []string{"target"}, + }, + &cli.BoolFlag{ + Name: "experimental-deps", + Usage: "turn on dependency removal ordering", + }, + } + + cmd := &cli.Command{ + Name: "run", + Usage: "run nuke against an aws account and remove everything from it", + Aliases: []string{ + "nuke", + }, + Flags: append(flags, global.Flags()...), + Before: global.Before, + Action: execute, + } + + common.RegisterCommand(cmd) +} diff --git a/pkg/common/commands.go b/pkg/common/commands.go new file mode 100644 index 00000000..1f44bfbd --- /dev/null +++ b/pkg/common/commands.go @@ -0,0 +1,24 @@ +package common + +import ( + "github.com/sirupsen/logrus" + "github.com/urfave/cli/v2" +) + +var commands []*cli.Command + +// Commander -- +type Commander interface { + Execute(c *cli.Context) +} + +// RegisterCommand -- +func RegisterCommand(command *cli.Command) { + logrus.Debugln("Registering", command.Name, "command...") + commands = append(commands, command) +} + +// GetCommands -- +func GetCommands() []*cli.Command { + return commands +} diff --git a/pkg/common/version.go b/pkg/common/version.go new file mode 100644 index 00000000..7323449a --- /dev/null +++ b/pkg/common/version.go @@ -0,0 +1,32 @@ +package common + +// NAME of the App +var NAME = "aws-nuke" + +// SUMMARY of the Version +var SUMMARY = "3.0.0-beta.1" + +// BRANCH of the Version +var BRANCH = "dev" + +var COMMIT = "dirty" + +// AppVersion -- +var AppVersion AppVersionInfo + +// AppVersionInfo -- +type AppVersionInfo struct { + Name string + Branch string + Summary string + Commit string +} + +func init() { + AppVersion = AppVersionInfo{ + Name: NAME, + Branch: BRANCH, + Summary: SUMMARY, + Commit: COMMIT, + } +} diff --git a/pkg/config/config.go b/pkg/config/config.go index d87a1e8b..bd531bd7 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -3,27 +3,29 @@ package config import ( "bytes" "fmt" - "io/ioutil" + "os" "strings" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + yaml "gopkg.in/yaml.v3" - log "github.com/sirupsen/logrus" - "gopkg.in/yaml.v3" + "github.com/sirupsen/logrus" + + "github.com/ekristen/libnuke/pkg/filter" + "github.com/ekristen/libnuke/pkg/types" ) +type Account struct { + Filters filter.Filters `yaml:"filters"` + ResourceTypes ResourceTypes `yaml:"resource-types"` + Presets []string `yaml:"presets"` +} + type ResourceTypes struct { Targets types.Collection `yaml:"targets"` Excludes types.Collection `yaml:"excludes"` CloudControl types.Collection `yaml:"cloud-control"` } -type Account struct { - Filters Filters `yaml:"filters"` - ResourceTypes ResourceTypes `yaml:"resource-types"` - Presets []string `yaml:"presets"` -} - type Nuke struct { // Deprecated: Use AccountBlocklist instead. AccountBlacklist []string `yaml:"account-blacklist"` @@ -51,7 +53,7 @@ type DisableDeletionProtection struct { } type PresetDefinitions struct { - Filters Filters `yaml:"filters"` + Filters filter.Filters `yaml:"filters"` } type CustomService struct { @@ -73,24 +75,24 @@ type CustomEndpoints []*CustomRegion func Load(path string) (*Nuke, error) { var err error - raw, err := ioutil.ReadFile(path) + raw, err := os.ReadFile(path) if err != nil { return nil, err } - config := new(Nuke) + cfg := new(Nuke) dec := yaml.NewDecoder(bytes.NewReader(raw)) dec.KnownFields(true) - err = dec.Decode(&config) + err = dec.Decode(&cfg) if err != nil { return nil, err } - if err := config.resolveDeprecations(); err != nil { + if err := cfg.ResolveDeprecations(); err != nil { return nil, err } - return config, nil + return cfg, nil } func (c *Nuke) ResolveBlocklist() []string { @@ -98,7 +100,7 @@ func (c *Nuke) ResolveBlocklist() []string { return c.AccountBlocklist } - log.Warn("deprecated configuration key 'account-blacklist' - please use 'account-blocklist' instead") + logrus.Warn("deprecated configuration key 'account-blacklist' - please use 'account-blocklist' instead") return c.AccountBlacklist } @@ -117,6 +119,10 @@ func (c *Nuke) InBlocklist(searchID string) bool { return false } +func (c *Nuke) Validate(accountID string) error { + return nil +} + func (c *Nuke) ValidateAccount(accountID string, aliases []string) error { if !c.HasBlocklist() { return fmt.Errorf("The config file contains an empty blocklist. " + @@ -150,12 +156,12 @@ func (c *Nuke) ValidateAccount(accountID string, aliases []string) error { return nil } -func (c *Nuke) Filters(accountID string) (Filters, error) { +func (c *Nuke) Filters(accountID string) (filter.Filters, error) { account := c.Accounts[accountID] filters := account.Filters if filters == nil { - filters = Filters{} + filters = filter.Filters{} } if account.Presets == nil { @@ -163,7 +169,7 @@ func (c *Nuke) Filters(accountID string) (Filters, error) { } for _, presetName := range account.Presets { - notFound := fmt.Errorf("Could not find filter preset '%s'", presetName) + notFound := fmt.Errorf("could not find filter preset '%s'", presetName) if c.Presets == nil { return nil, notFound } @@ -179,7 +185,19 @@ func (c *Nuke) Filters(accountID string) (Filters, error) { return filters, nil } -func (c *Nuke) resolveDeprecations() error { +func (c *Nuke) GetFeatureFlags() FeatureFlags { + return c.FeatureFlags +} + +func (c *Nuke) GetPresets() map[string]PresetDefinitions { + return c.Presets +} + +func (c *Nuke) GetResourceTypes() ResourceTypes { + return c.ResourceTypes +} + +func (c *Nuke) ResolveDeprecations() error { deprecations := map[string]string{ "EC2DhcpOptions": "EC2DHCPOptions", "EC2InternetGatewayAttachement": "EC2InternetGatewayAttachment", @@ -203,6 +221,9 @@ func (c *Nuke) resolveDeprecations() error { "IamUserGroupAttachement": "IAMUserGroupAttachment", "IamUserPolicyAttachement": "IAMUserPolicyAttachment", "RDSCluster": "RDSDBCluster", + "EKSFargateProfiles": "EKSFargateProfile", + "EKSNodegroups": "EKSNodegroup", + "NetpuneSnapshot": "NeptuneSnapshot", } for _, a := range c.Accounts { @@ -211,7 +232,7 @@ func (c *Nuke) resolveDeprecations() error { if !ok { continue } - log.Warnf("deprecated resource type '%s' - converting to '%s'\n", resourceType, replacement) + logrus.Warnf("deprecated resource type '%s' - converting to '%s'\n", resourceType, replacement) if _, ok := a.Filters[replacement]; ok { return fmt.Errorf("using deprecated resource type and replacement: '%s','%s'", resourceType, replacement) diff --git a/pkg/config/config_test.go b/pkg/config/config_test.go index ad355559..ce535848 100644 --- a/pkg/config/config_test.go +++ b/pkg/config/config_test.go @@ -2,11 +2,11 @@ package config import ( "fmt" + "github.com/ekristen/libnuke/pkg/filter" + "github.com/ekristen/libnuke/pkg/types" "reflect" "strings" "testing" - - "github.com/rebuy-de/aws-nuke/v2/pkg/types" ) func TestConfigBlocklist(t *testing.T) { @@ -46,7 +46,7 @@ func TestConfigBlocklist(t *testing.T) { } func TestLoadExampleConfig(t *testing.T) { - config, err := Load("test-fixtures/example.yaml") + config, err := Load("testdata/example.yaml") if err != nil { t.Fatal(err) } @@ -57,12 +57,12 @@ func TestLoadExampleConfig(t *testing.T) { Accounts: map[string]Account{ "555133742": { Presets: []string{"terraform"}, - Filters: Filters{ + Filters: filter.Filters{ "IAMRole": { - NewExactFilter("uber.admin"), + filter.NewExactFilter("uber.admin"), }, "IAMRolePolicyAttachment": { - NewExactFilter("uber.admin -> AdministratorAccess"), + filter.NewExactFilter("uber.admin -> AdministratorAccess"), }, }, ResourceTypes: ResourceTypes{ @@ -76,10 +76,10 @@ func TestLoadExampleConfig(t *testing.T) { }, Presets: map[string]PresetDefinitions{ "terraform": { - Filters: Filters{ + Filters: filter.Filters{ "S3Bucket": { - Filter{ - Type: FilterTypeGlob, + filter.Filter{ + Type: filter.Glob, Value: "my-statebucket-*", }, }, @@ -118,24 +118,24 @@ func TestResolveDeprecations(t *testing.T) { Regions: []string{"eu-west-1"}, Accounts: map[string]Account{ "555133742": { - Filters: Filters{ + Filters: filter.Filters{ "IamRole": { - NewExactFilter("uber.admin"), - NewExactFilter("foo.bar"), + filter.NewExactFilter("uber.admin"), + filter.NewExactFilter("foo.bar"), }, "IAMRolePolicyAttachment": { - NewExactFilter("uber.admin -> AdministratorAccess"), + filter.NewExactFilter("uber.admin -> AdministratorAccess"), }, }, }, "2345678901": { - Filters: Filters{ + Filters: filter.Filters{ "ECRrepository": { - NewExactFilter("foo:bar"), - NewExactFilter("bar:foo"), + filter.NewExactFilter("foo:bar"), + filter.NewExactFilter("bar:foo"), }, "IAMRolePolicyAttachment": { - NewExactFilter("uber.admin -> AdministratorAccess"), + filter.NewExactFilter("uber.admin -> AdministratorAccess"), }, }, }, @@ -144,30 +144,30 @@ func TestResolveDeprecations(t *testing.T) { expect := map[string]Account{ "555133742": { - Filters: Filters{ + Filters: filter.Filters{ "IAMRole": { - NewExactFilter("uber.admin"), - NewExactFilter("foo.bar"), + filter.NewExactFilter("uber.admin"), + filter.NewExactFilter("foo.bar"), }, "IAMRolePolicyAttachment": { - NewExactFilter("uber.admin -> AdministratorAccess"), + filter.NewExactFilter("uber.admin -> AdministratorAccess"), }, }, }, "2345678901": { - Filters: Filters{ + Filters: filter.Filters{ "ECRRepository": { - NewExactFilter("foo:bar"), - NewExactFilter("bar:foo"), + filter.NewExactFilter("foo:bar"), + filter.NewExactFilter("bar:foo"), }, "IAMRolePolicyAttachment": { - NewExactFilter("uber.admin -> AdministratorAccess"), + filter.NewExactFilter("uber.admin -> AdministratorAccess"), }, }, }, } - err := config.resolveDeprecations() + err := config.ResolveDeprecations() if err != nil { t.Fatal(err) } @@ -182,24 +182,24 @@ func TestResolveDeprecations(t *testing.T) { Regions: []string{"eu-west-1"}, Accounts: map[string]Account{ "555133742": { - Filters: Filters{ + Filters: filter.Filters{ "IamUserAccessKeys": { - NewExactFilter("X")}, + filter.NewExactFilter("X")}, "IAMUserAccessKey": { - NewExactFilter("Y")}, + filter.NewExactFilter("Y")}, }, }, }, } - err = invalidConfig.resolveDeprecations() + err = invalidConfig.ResolveDeprecations() if err == nil || !strings.Contains(err.Error(), "using deprecated resource type and replacement") { t.Fatal("invalid config did not cause correct error") } } func TestConfigValidation(t *testing.T) { - config, err := Load("test-fixtures/example.yaml") + config, err := Load("testdata/example.yaml") if err != nil { t.Fatal(err) } @@ -232,7 +232,7 @@ func TestConfigValidation(t *testing.T) { } func TestDeprecatedConfigKeys(t *testing.T) { - config, err := Load("test-fixtures/deprecated-keys-config.yaml") + config, err := Load("testdata/deprecated-keys-config.yaml") if err != nil { t.Fatal(err) } @@ -243,7 +243,7 @@ func TestDeprecatedConfigKeys(t *testing.T) { } func TestFilterMerge(t *testing.T) { - config, err := Load("test-fixtures/example.yaml") + config, err := Load("testdata/example.yaml") if err != nil { t.Fatal(err) } @@ -253,19 +253,19 @@ func TestFilterMerge(t *testing.T) { t.Fatal(err) } - expect := Filters{ - "S3Bucket": []Filter{ + expect := filter.Filters{ + "S3Bucket": []filter.Filter{ { Type: "glob", Value: "my-statebucket-*", }, }, - "IAMRole": []Filter{ + "IAMRole": []filter.Filter{ { Type: "exact", Value: "uber.admin", }, }, - "IAMRolePolicyAttachment": []Filter{ + "IAMRolePolicyAttachment": []filter.Filter{ { Type: "exact", Value: "uber.admin -> AdministratorAccess", @@ -281,7 +281,7 @@ func TestFilterMerge(t *testing.T) { } func TestGetCustomRegion(t *testing.T) { - config, err := Load("test-fixtures/example.yaml") + config, err := Load("testdata/example.yaml") if err != nil { t.Fatal(err) } @@ -303,6 +303,5 @@ func TestGetCustomRegion(t *testing.T) { if rdsService != nil { t.Fatal("Expected to not find a custom rds service for region10") } - }) } diff --git a/pkg/config/filter.go b/pkg/config/filter.go deleted file mode 100644 index 61fcbef0..00000000 --- a/pkg/config/filter.go +++ /dev/null @@ -1,130 +0,0 @@ -package config - -import ( - "fmt" - "regexp" - "strconv" - "strings" - "time" - - "github.com/mb0/glob" -) - -type FilterType string - -const ( - FilterTypeEmpty FilterType = "" - FilterTypeExact = "exact" - FilterTypeGlob = "glob" - FilterTypeRegex = "regex" - FilterTypeContains = "contains" - FilterTypeDateOlderThan = "dateOlderThan" -) - -type Filters map[string][]Filter - -func (f Filters) Merge(f2 Filters) { - for resourceType, filter := range f2 { - f[resourceType] = append(f[resourceType], filter...) - } -} - -type Filter struct { - Property string - Type FilterType - Value string - Invert string -} - -func (f Filter) Match(o string) (bool, error) { - switch f.Type { - case FilterTypeEmpty: - fallthrough - - case FilterTypeExact: - return f.Value == o, nil - - case FilterTypeContains: - return strings.Contains(o, f.Value), nil - - case FilterTypeGlob: - return glob.Match(f.Value, o) - - case FilterTypeRegex: - re, err := regexp.Compile(f.Value) - if err != nil { - return false, err - } - return re.MatchString(o), nil - - case FilterTypeDateOlderThan: - if o == "" { - return false, nil - } - duration, err := time.ParseDuration(f.Value) - if err != nil { - return false, err - } - fieldTime, err := parseDate(o) - if err != nil { - return false, err - } - fieldTimeWithOffset := fieldTime.Add(duration) - - return fieldTimeWithOffset.After(time.Now()), nil - - default: - return false, fmt.Errorf("unknown type %s", f.Type) - } -} - -func parseDate(input string) (time.Time, error) { - if i, err := strconv.ParseInt(input, 10, 64); err == nil { - t := time.Unix(i, 0) - return t, nil - } - - formats := []string{"2006-01-02", - "2006/01/02", - "2006-01-02T15:04:05Z", - "2006-01-02 15:04:05.000 -0700 MST", // Date format used by AWS for CreateTime on ASGs - time.RFC3339Nano, // Format of t.MarshalText() and t.MarshalJSON() - time.RFC3339, - } - for _, f := range formats { - t, err := time.Parse(f, input) - if err == nil { - return t, nil - } - } - return time.Now(), fmt.Errorf("unable to parse time %s", input) -} - -func (f *Filter) UnmarshalYAML(unmarshal func(interface{}) error) error { - var value string - - if unmarshal(&value) == nil { - f.Type = FilterTypeExact - f.Value = value - return nil - } - - m := map[string]string{} - err := unmarshal(m) - if err != nil { - return err - } - - f.Type = FilterType(m["type"]) - f.Value = m["value"] - f.Property = m["property"] - f.Invert = m["invert"] - return nil -} - -func NewExactFilter(value string) Filter { - return Filter{ - Type: FilterTypeExact, - Value: value, - } -} diff --git a/pkg/config/filter_test.go b/pkg/config/filter_test.go deleted file mode 100644 index a26df88c..00000000 --- a/pkg/config/filter_test.go +++ /dev/null @@ -1,102 +0,0 @@ -package config_test - -import ( - "strconv" - "testing" - "time" - - "github.com/rebuy-de/aws-nuke/v2/pkg/config" - yaml "gopkg.in/yaml.v3" -) - -func TestUnmarshalFilter(t *testing.T) { - past := time.Now().UTC().Add(-24 * time.Hour) - future := time.Now().UTC().Add(24 * time.Hour) - cases := []struct { - yaml string - match, mismatch []string - }{ - { - yaml: `foo`, - match: []string{"foo"}, - mismatch: []string{"fo", "fooo", "o", "fo"}, - }, - { - yaml: `{"type":"exact","value":"foo"}`, - match: []string{"foo"}, - mismatch: []string{"fo", "fooo", "o", "fo"}, - }, - { - yaml: `{"type":"glob","value":"b*sh"}`, - match: []string{"bish", "bash", "bosh", "bush", "boooooosh", "bsh"}, - mismatch: []string{"woooosh", "fooo", "o", "fo"}, - }, - { - yaml: `{"type":"glob","value":"b?sh"}`, - match: []string{"bish", "bash", "bosh", "bush"}, - mismatch: []string{"woooosh", "fooo", "o", "fo", "boooooosh", "bsh"}, - }, - { - yaml: `{"type":"regex","value":"b[iao]sh"}`, - match: []string{"bish", "bash", "bosh"}, - mismatch: []string{"woooosh", "fooo", "o", "fo", "boooooosh", "bsh", "bush"}, - }, - { - yaml: `{"type":"contains","value":"mba"}`, - match: []string{"bimbaz", "mba", "bi mba z"}, - mismatch: []string{"bim-baz"}, - }, - { - yaml: `{"type":"dateOlderThan","value":"0"}`, - match: []string{strconv.Itoa(int(future.Unix())), - future.Format("2006-01-02"), - future.Format("2006/01/02"), - future.Format("2006-01-02T15:04:05Z"), - future.Format(time.RFC3339Nano), - future.Format(time.RFC3339), - }, - mismatch: []string{"", - strconv.Itoa(int(past.Unix())), - past.Format("2006-01-02"), - past.Format("2006/01/02"), - past.Format("2006-01-02T15:04:05Z"), - past.Format(time.RFC3339Nano), - past.Format(time.RFC3339), - }, - }, - } - - for _, tc := range cases { - t.Run(tc.yaml, func(t *testing.T) { - var filter config.Filter - - err := yaml.Unmarshal([]byte(tc.yaml), &filter) - if err != nil { - t.Fatal(err) - } - - for _, o := range tc.match { - match, err := filter.Match(o) - if err != nil { - t.Fatal(err) - } - - if !match { - t.Fatalf("'%v' should match", o) - } - } - - for _, o := range tc.mismatch { - match, err := filter.Match(o) - if err != nil { - t.Fatal(err) - } - - if match { - t.Fatalf("'%v' should not match", o) - } - } - }) - } - -} diff --git a/pkg/config/test-fixtures/deprecated-keys-config.yaml b/pkg/config/test-fixtures/deprecated-keys-config.yaml deleted file mode 100644 index 17e39f1f..00000000 --- a/pkg/config/test-fixtures/deprecated-keys-config.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -account-blacklist: - - 1234567890 \ No newline at end of file diff --git a/pkg/config/test-fixtures/example.yaml b/pkg/config/test-fixtures/example.yaml deleted file mode 100644 index f5ca65f3..00000000 --- a/pkg/config/test-fixtures/example.yaml +++ /dev/null @@ -1,45 +0,0 @@ ---- -regions: -- "eu-west-1" -- stratoscale - -account-blocklist: -- 1234567890 - -endpoints: -- region: stratoscale - tls_insecure_skip_verify: true - services: - - service: ec2 - url: https://stratoscale.cloud.internal/api/v2/aws/ec2 - - service: s3 - url: https://stratoscale.cloud.internal:1060 - tls_insecure_skip_verify: true - -resource-types: - targets: - - DynamoDBTable - - S3Bucket - - S3Object - excludes: - - IAMRole - -accounts: - 555133742: - presets: - - "terraform" - resource-types: - targets: - - S3Bucket - filters: - IAMRole: - - "uber.admin" - IAMRolePolicyAttachment: - - "uber.admin -> AdministratorAccess" - -presets: - terraform: - filters: - S3Bucket: - - type: glob - value: "my-statebucket-*" diff --git a/pkg/config/testdata/deprecated-keys-config.yaml b/pkg/config/testdata/deprecated-keys-config.yaml new file mode 100644 index 00000000..55ac8b57 --- /dev/null +++ b/pkg/config/testdata/deprecated-keys-config.yaml @@ -0,0 +1,3 @@ +--- +account-blocklist: + - 1234567890 diff --git a/pkg/config/testdata/example.yaml b/pkg/config/testdata/example.yaml new file mode 100644 index 00000000..777250c4 --- /dev/null +++ b/pkg/config/testdata/example.yaml @@ -0,0 +1,45 @@ +--- +regions: + - "eu-west-1" + - stratoscale + +account-blocklist: + - 1234567890 + +endpoints: + - region: stratoscale + tls_insecure_skip_verify: true + services: + - service: ec2 + url: https://stratoscale.cloud.internal/api/v2/aws/ec2 + - service: s3 + url: https://stratoscale.cloud.internal:1060 + tls_insecure_skip_verify: true + +resource-types: + targets: + - DynamoDBTable + - S3Bucket + - S3Object + excludes: + - IAMRole + +accounts: + 555133742: + presets: + - "terraform" + resource-types: + targets: + - S3Bucket + filters: + IAMRole: + - "uber.admin" + IAMRolePolicyAttachment: + - "uber.admin -> AdministratorAccess" + +presets: + terraform: + filters: + S3Bucket: + - type: glob + value: "my-statebucket-*" \ No newline at end of file diff --git a/pkg/nuke/cloudcontrol.go b/pkg/nuke/cloudcontrol.go new file mode 100644 index 00000000..6d953339 --- /dev/null +++ b/pkg/nuke/cloudcontrol.go @@ -0,0 +1,23 @@ +package nuke + +import ( + "fmt" + "github.com/ekristen/libnuke/pkg/resource" +) + +var cloudControlMapping = map[string]string{} + +func GetCloudControlMapping() map[string]string { + return cloudControlMapping +} + +func MapCloudControl(typeName string) resource.RegisterOption { + return func(name string, lister resource.Lister) { + _, exists := cloudControlMapping[typeName] + if exists { + panic(fmt.Sprintf("a cloud control mapping for %s already exists", typeName)) + } + + cloudControlMapping[typeName] = name + } +} diff --git a/pkg/nuke/nuke.go b/pkg/nuke/nuke.go new file mode 100644 index 00000000..ad3498f4 --- /dev/null +++ b/pkg/nuke/nuke.go @@ -0,0 +1,69 @@ +package nuke + +import ( + "fmt" + "github.com/ekristen/aws-nuke/pkg/awsutil" + "github.com/ekristen/aws-nuke/pkg/config" + "github.com/ekristen/libnuke/pkg/featureflag" + "github.com/ekristen/libnuke/pkg/filter" + sdknuke "github.com/ekristen/libnuke/pkg/nuke" + "github.com/ekristen/libnuke/pkg/utils" + "github.com/sirupsen/logrus" + "time" +) + +type Parameters struct { + sdknuke.Parameters + + Targets []string + Excludes []string + CloudControl []string +} + +type Nuke struct { + *sdknuke.Nuke + Parameters Parameters + Config *config.Nuke + Account awsutil.Account +} + +func (n *Nuke) Prompt() error { + forceSleep := time.Duration(n.Parameters.ForceSleep) * time.Second + + fmt.Printf("Do you really want to nuke the account with "+ + "the ID %s and the alias '%s'?\n", n.Account.ID(), n.Account.Alias()) + if n.Parameters.Force { + fmt.Printf("Waiting %v before continuing.\n", forceSleep) + time.Sleep(forceSleep) + } else { + fmt.Printf("Do you want to continue? Enter account alias to continue.\n") + if err := utils.Prompt(n.Account.Alias()); err != nil { + return err + } + } + + return nil +} + +func New(params Parameters, config *config.Nuke, filters filter.Filters, account awsutil.Account) *Nuke { + n := Nuke{ + Nuke: sdknuke.New(params.Parameters, filters), + Parameters: params, + Config: config, + Account: account, + } + + n.SetLogger(logrus.WithField("component", "nuke")) + + defaultValue := featureflag.Bool(false) + + n.RegisterFeatureFlags("DisableEC2InstanceStopProtection", defaultValue, featureflag.Bool(config.FeatureFlags.DisableEC2InstanceStopProtection)) + n.RegisterFeatureFlags("ForceDeleteLightsailAddOns", defaultValue, featureflag.Bool(config.FeatureFlags.ForceDeleteLightsailAddOns)) + n.RegisterFeatureFlags("DisableDeletionProtection_RDSInstance", defaultValue, featureflag.Bool(config.FeatureFlags.DisableDeletionProtection.RDSInstance)) + n.RegisterFeatureFlags("DisableDeletionProtection_EC2Instance", defaultValue, featureflag.Bool(config.FeatureFlags.DisableDeletionProtection.EC2Instance)) + n.RegisterFeatureFlags("DisableDeletionProtection_ELBv2", defaultValue, featureflag.Bool(config.FeatureFlags.DisableDeletionProtection.ELBv2)) + n.RegisterFeatureFlags("DisableDeletionProtection_CloudformationStack", defaultValue, featureflag.Bool(config.FeatureFlags.DisableDeletionProtection.CloudformationStack)) + n.RegisterFeatureFlags("DisableDeletionProtection_QLDBLedger", defaultValue, featureflag.Bool(config.FeatureFlags.DisableDeletionProtection.QLDBLedger)) + + return &n +} diff --git a/cmd/region.go b/pkg/nuke/region.go similarity index 92% rename from cmd/region.go rename to pkg/nuke/region.go index adf5f58d..cd4fc20d 100644 --- a/cmd/region.go +++ b/pkg/nuke/region.go @@ -1,11 +1,11 @@ -package cmd +package nuke import ( "fmt" + sdkerrors "github.com/ekristen/libnuke/pkg/errors" "sync" "github.com/aws/aws-sdk-go/aws/session" - "github.com/rebuy-de/aws-nuke/v2/pkg/awsutil" ) // SessionFactory support for custom endpoints @@ -36,7 +36,7 @@ func NewRegion(name string, typeResolver ResourceTypeResolver, sessionFactory Se func (region *Region) Session(resourceType string) (*session.Session, error) { svcType := region.ResTypeResolver(region.Name, resourceType) if svcType == "" { - return nil, awsutil.ErrSkipRequest(fmt.Sprintf( + return nil, sdkerrors.ErrSkipRequest(fmt.Sprintf( "No service available in region '%s' to handle '%s'", region.Name, resourceType)) } diff --git a/pkg/nuke/resource.go b/pkg/nuke/resource.go new file mode 100644 index 00000000..e55bbfbf --- /dev/null +++ b/pkg/nuke/resource.go @@ -0,0 +1,27 @@ +package nuke + +import ( + "github.com/aws/aws-sdk-go/aws/session" + "github.com/ekristen/libnuke/pkg/resource" +) + +const ( + Account resource.Scope = "account" +) + +type ListerOpts struct { + Region *Region + Session *session.Session +} + +func (o ListerOpts) ID() string { + return "" +} + +type Lister struct { + opts ListerOpts +} + +func (l *Lister) SetOptions(opts interface{}) { + l.opts = opts.(ListerOpts) +} diff --git a/cmd/util.go b/pkg/nuke/utils.go similarity index 50% rename from cmd/util.go rename to pkg/nuke/utils.go index 868e7f04..a27253b8 100644 --- a/cmd/util.go +++ b/pkg/nuke/utils.go @@ -1,34 +1,13 @@ -package cmd +package nuke import ( - "bufio" - "fmt" - "os" - "strings" - - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + "github.com/ekristen/libnuke/pkg/types" ) -func Prompt(expect string) error { - fmt.Print("> ") - reader := bufio.NewReader(os.Stdin) - text, err := reader.ReadString('\n') - if err != nil { - return err - } - - if strings.TrimSpace(text) != expect { - return fmt.Errorf("aborted") - } - fmt.Println() - - return nil -} - func ResolveResourceTypes( - base types.Collection, mapping map[string]string, + base types.Collection, + mapping map[string]string, include, exclude, cloudControl []types.Collection) types.Collection { - for _, cl := range cloudControl { oldStyle := types.Collection{} for _, c := range cl { @@ -54,7 +33,3 @@ func ResolveResourceTypes( return base } - -func IsTrue(s string) bool { - return strings.TrimSpace(strings.ToLower(s)) == "true" -} diff --git a/pkg/types/collection.go b/pkg/types/collection.go deleted file mode 100644 index 408a696b..00000000 --- a/pkg/types/collection.go +++ /dev/null @@ -1,50 +0,0 @@ -package types - -type Collection []string - -func (c Collection) Intersect(o Collection) Collection { - mo := o.toMap() - - result := Collection{} - for _, t := range c { - if mo[t] { - result = append(result, t) - } - } - - return result -} - -func (c Collection) Remove(o Collection) Collection { - mo := o.toMap() - - result := Collection{} - for _, t := range c { - if !mo[t] { - result = append(result, t) - } - } - - return result -} - -func (c Collection) Union(o Collection) Collection { - ms := c.toMap() - - result := []string(c) - for _, oi := range o { - if !ms[oi] { - result = append(result, oi) - } - } - - return Collection(result) -} - -func (c Collection) toMap() map[string]bool { - m := map[string]bool{} - for _, t := range c { - m[t] = true - } - return m -} diff --git a/pkg/types/collection_test.go b/pkg/types/collection_test.go deleted file mode 100644 index 72f3882b..00000000 --- a/pkg/types/collection_test.go +++ /dev/null @@ -1,50 +0,0 @@ -package types_test - -import ( - "fmt" - "testing" - - "github.com/rebuy-de/aws-nuke/v2/pkg/types" -) - -func TestSetInterset(t *testing.T) { - s1 := types.Collection{"a", "b", "c"} - s2 := types.Collection{"b", "a", "d"} - - r := s1.Intersect(s2) - - want := fmt.Sprint([]string{"a", "b"}) - have := fmt.Sprint(r) - - if want != have { - t.Errorf("Wrong result. Want: %s. Have: %s", want, have) - } -} - -func TestSetRemove(t *testing.T) { - s1 := types.Collection{"a", "b", "c"} - s2 := types.Collection{"b", "a", "d"} - - r := s1.Remove(s2) - - want := fmt.Sprint([]string{"c"}) - have := fmt.Sprint(r) - - if want != have { - t.Errorf("Wrong result. Want: %s. Have: %s", want, have) - } -} - -func TestSetUnion(t *testing.T) { - s1 := types.Collection{"a", "b", "c"} - s2 := types.Collection{"b", "a", "d"} - - r := s1.Union(s2) - - want := fmt.Sprint([]string{"a", "b", "c", "d"}) - have := fmt.Sprint(r) - - if want != have { - t.Errorf("Wrong result. Want: %s. Have: %s", want, have) - } -} diff --git a/pkg/types/properties.go b/pkg/types/properties.go deleted file mode 100644 index 5789669b..00000000 --- a/pkg/types/properties.go +++ /dev/null @@ -1,122 +0,0 @@ -package types - -import ( - "fmt" - "sort" - "strings" -) - -type Properties map[string]string - -func NewProperties() Properties { - return make(Properties) -} - -func (p Properties) String() string { - parts := []string{} - for k, v := range p { - parts = append(parts, fmt.Sprintf(`%s: "%v"`, k, v)) - } - - sort.Strings(parts) - - return fmt.Sprintf("[%s]", strings.Join(parts, ", ")) -} - -func (p Properties) Set(key string, value interface{}) Properties { - if value == nil { - return p - } - - switch v := value.(type) { - case *string: - if v == nil { - return p - } - p[key] = *v - case []byte: - p[key] = string(v) - case *bool: - if v == nil { - return p - } - p[key] = fmt.Sprint(*v) - case *int64: - if v == nil { - return p - } - p[key] = fmt.Sprint(*v) - case *int: - if v == nil { - return p - } - p[key] = fmt.Sprint(*v) - default: - // Fallback to Stringer interface. This produces gibberish on pointers, - // but is the only way to avoid reflection. - p[key] = fmt.Sprint(value) - } - - return p -} - -func (p Properties) SetTag(tagKey *string, tagValue interface{}) Properties { - return p.SetTagWithPrefix("", tagKey, tagValue) -} - -func (p Properties) SetTagWithPrefix(prefix string, tagKey *string, tagValue interface{}) Properties { - if tagKey == nil { - return p - } - - keyStr := strings.TrimSpace(*tagKey) - prefix = strings.TrimSpace(prefix) - - if keyStr == "" { - return p - } - - if prefix != "" { - keyStr = fmt.Sprintf("%s:%s", prefix, keyStr) - } - - keyStr = fmt.Sprintf("tag:%s", keyStr) - - return p.Set(keyStr, tagValue) -} - -func (p Properties) Get(key string) string { - value, ok := p[key] - if !ok { - return "" - } - - return value -} - -func (p Properties) Equals(o Properties) bool { - if p == nil && o == nil { - return true - } - - if p == nil || o == nil { - return false - } - - if len(p) != len(o) { - return false - } - - for k, pv := range p { - ov, ok := o[k] - if !ok { - return false - } - - if pv != ov { - return false - } - } - - return true -} diff --git a/pkg/types/properties_test.go b/pkg/types/properties_test.go deleted file mode 100644 index 79481099..00000000 --- a/pkg/types/properties_test.go +++ /dev/null @@ -1,163 +0,0 @@ -package types_test - -import ( - "fmt" - "testing" - - "github.com/aws/aws-sdk-go/aws" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" -) - -func TestPropertiesEquals(t *testing.T) { - cases := []struct { - p1, p2 types.Properties - result bool - }{ - { - p1: nil, - p2: nil, - result: true, - }, - { - p1: nil, - p2: types.NewProperties(), - result: false, - }, - { - p1: types.NewProperties(), - p2: types.NewProperties(), - result: true, - }, - { - p1: types.NewProperties().Set("blub", "blubber"), - p2: types.NewProperties().Set("blub", "blubber"), - result: true, - }, - { - p1: types.NewProperties().Set("blub", "foo"), - p2: types.NewProperties().Set("blub", "bar"), - result: false, - }, - { - p1: types.NewProperties().Set("bim", "baz").Set("blub", "blubber"), - p2: types.NewProperties().Set("bim", "baz").Set("blub", "blubber"), - result: true, - }, - { - p1: types.NewProperties().Set("bim", "baz").Set("blub", "foo"), - p2: types.NewProperties().Set("bim", "baz").Set("blub", "bar"), - result: false, - }, - } - - for i, tc := range cases { - t.Run(fmt.Sprint(i), func(t *testing.T) { - if tc.p1.Equals(tc.p2) != tc.result { - t.Errorf("Test Case failed. Want %t. Got %t.", !tc.result, tc.result) - t.Errorf("p1: %s", tc.p1.String()) - t.Errorf("p2: %s", tc.p2.String()) - } else if tc.p2.Equals(tc.p1) != tc.result { - t.Errorf("Test Case reverse check failed. Want %t. Got %t.", !tc.result, tc.result) - t.Errorf("p1: %s", tc.p1.String()) - t.Errorf("p2: %s", tc.p2.String()) - } - }) - } -} - -func TestPropertiesSetTag(t *testing.T) { - cases := []struct { - name string - key *string - value interface{} - want string - }{ - { - name: "string", - key: aws.String("name"), - value: "blubber", - want: `[tag:name: "blubber"]`, - }, - { - name: "string_ptr", - key: aws.String("name"), - value: aws.String("blubber"), - want: `[tag:name: "blubber"]`, - }, - { - name: "int", - key: aws.String("int"), - value: 42, - want: `[tag:int: "42"]`, - }, - { - name: "nil", - key: aws.String("nothing"), - value: nil, - want: `[]`, - }, - { - name: "empty_key", - key: aws.String(""), - value: "empty", - want: `[]`, - }, - { - name: "nil_key", - key: nil, - value: "empty", - want: `[]`, - }, - } - - for _, tc := range cases { - t.Run(tc.name, func(t *testing.T) { - p := types.NewProperties() - - p.SetTag(tc.key, tc.value) - have := p.String() - - if tc.want != have { - t.Errorf("'%s' != '%s'", tc.want, have) - } - }) - } -} - -func TestPropertiesSetTagWithPrefix(t *testing.T) { - cases := []struct { - name string - prefix string - key *string - value interface{} - want string - }{ - { - name: "empty", - prefix: "", - key: aws.String("name"), - value: "blubber", - want: `[tag:name: "blubber"]`, - }, - { - name: "nonempty", - prefix: "bish", - key: aws.String("bash"), - value: "bosh", - want: `[tag:bish:bash: "bosh"]`, - }, - } - - for _, tc := range cases { - t.Run(tc.name, func(t *testing.T) { - p := types.NewProperties() - - p.SetTagWithPrefix(tc.prefix, tc.key, tc.value) - have := p.String() - - if tc.want != have { - t.Errorf("'%s' != '%s'", tc.want, have) - } - }) - } -} diff --git a/pkg/util/indent.go b/pkg/util/indent.go deleted file mode 100644 index 2a09e535..00000000 --- a/pkg/util/indent.go +++ /dev/null @@ -1,18 +0,0 @@ -package util - -func Indent(s, prefix string) string { - return string(IndentBytes([]byte(s), []byte(prefix))) -} - -func IndentBytes(b, prefix []byte) []byte { - var res []byte - bol := true - for _, c := range b { - if bol && c != '\n' { - res = append(res, prefix...) - } - res = append(res, c) - bol = c == '\n' - } - return res -} diff --git a/pkg/util/unique_id.go b/pkg/util/unique_id.go deleted file mode 100644 index bb79863c..00000000 --- a/pkg/util/unique_id.go +++ /dev/null @@ -1,25 +0,0 @@ -package util - -import ( - "bytes" - "math/rand" - "time" -) - -// Returns a unique (ish) id we can attach to resources and tfstate files so they don't conflict with each other -// Uses base 62 to generate a 6 character string that's unlikely to collide with the handful of tests we run in -// parallel. Based on code here: http://stackoverflow.com/a/9543797/483528 -func UniqueID() string { - - const BASE_62_CHARS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" - const UNIQUE_ID_LENGTH = 6 // Should be good for 62^6 = 56+ billion combinations - - var out bytes.Buffer - - rand := rand.New(rand.NewSource(time.Now().UnixNano())) - for i := 0; i < UNIQUE_ID_LENGTH; i++ { - out.WriteByte(BASE_62_CHARS[rand.Intn(len(BASE_62_CHARS))]) - } - - return out.String() -} diff --git a/resources/accessanalyzer-analyzers.go b/resources/accessanalyzer-analyzers.go index e1f957d7..9162cb24 100644 --- a/resources/accessanalyzer-analyzers.go +++ b/resources/accessanalyzer-analyzers.go @@ -1,12 +1,19 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/accessanalyzer" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const AccessAnalyzerResource = "AccessAnalyzer" + type AccessAnalyzer struct { svc *accessanalyzer.AccessAnalyzer arn string @@ -16,19 +23,25 @@ type AccessAnalyzer struct { } func init() { - register("AccessAnalyzer", ListAccessAnalyzer, - mapCloudControl("AWS::AccessAnalyzer::Analyzer")) + resource.Register(resource.Registration{ + Name: AccessAnalyzerResource, + Scope: nuke.Account, + Lister: &AccessAnalyzerLister{}, + }, nuke.MapCloudControl("AWS::AccessAnalyzer::Analyzer")) } -func ListAccessAnalyzer(sess *session.Session) ([]Resource, error) { - svc := accessanalyzer.New(sess) +type AccessAnalyzerLister struct{} + +func (l *AccessAnalyzerLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := accessanalyzer.New(opts.Session) params := &accessanalyzer.ListAnalyzersInput{ Type: aws.String("ACCOUNT"), } - resources := make([]Resource, 0) - err := svc.ListAnalyzersPages(params, + resources := make([]resource.Resource, 0) + if err := svc.ListAnalyzersPages(params, func(page *accessanalyzer.ListAnalyzersOutput, lastPage bool) bool { for _, analyzer := range page.Analyzers { resources = append(resources, &AccessAnalyzer{ @@ -40,15 +53,14 @@ func ListAccessAnalyzer(sess *session.Session) ([]Resource, error) { }) } return true - }) - if err != nil { + }); err != nil { return nil, err } return resources, nil } -func (a *AccessAnalyzer) Remove() error { +func (a *AccessAnalyzer) Remove(_ context.Context) error { _, err := a.svc.DeleteAnalyzer(&accessanalyzer.DeleteAnalyzerInput{AnalyzerName: &a.name}) return err diff --git a/resources/accessanalyzer-archiverules.go b/resources/accessanalyzer-archiverules.go index 0ffa8128..4a86f253 100644 --- a/resources/accessanalyzer-archiverules.go +++ b/resources/accessanalyzer-archiverules.go @@ -1,30 +1,70 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/accessanalyzer" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const AccessAnalyzerArchiveRuleResource = "ArchiveRule" + +func init() { + resource.Register(resource.Registration{ + Name: AccessAnalyzerArchiveRuleResource, + Scope: nuke.Account, + Lister: &AccessAnalyzerArchiveRuleLister{}, + }) +} + type ArchiveRule struct { svc *accessanalyzer.AccessAnalyzer ruleName string analyzerName string } -func init() { - register("ArchiveRule", ListArchiveRule) +func (a *ArchiveRule) Remove(_ context.Context) error { + _, err := a.svc.DeleteArchiveRule(&accessanalyzer.DeleteArchiveRuleInput{ + AnalyzerName: &a.analyzerName, + RuleName: &a.ruleName, + }) + + return err +} + +func (a *ArchiveRule) Properties() types.Properties { + properties := types.NewProperties() + + properties.Set("RuleName", a.ruleName) + properties.Set("AnalyzerName", a.analyzerName) + + return properties +} + +func (a *ArchiveRule) String() string { + return a.ruleName } -func ListArchiveRule(sess *session.Session) ([]Resource, error) { - svc := accessanalyzer.New(sess) +// --------------------------- + +type AccessAnalyzerArchiveRuleLister struct{} + +func (l *AccessAnalyzerArchiveRuleLister) List(ctx context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) - analyzers, err := ListAccessAnalyzer(sess) + svc := accessanalyzer.New(opts.Session) + + lister := &AccessAnalyzerLister{} + analyzers, err := lister.List(ctx, o) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, analyzer := range analyzers { a, ok := analyzer.(*AccessAnalyzer) @@ -54,25 +94,3 @@ func ListArchiveRule(sess *session.Session) ([]Resource, error) { return resources, nil } - -func (a *ArchiveRule) Remove() error { - _, err := a.svc.DeleteArchiveRule(&accessanalyzer.DeleteArchiveRuleInput{ - AnalyzerName: &a.analyzerName, - RuleName: &a.ruleName, - }) - - return err -} - -func (a *ArchiveRule) Properties() types.Properties { - properties := types.NewProperties() - - properties.Set("RuleName", a.ruleName) - properties.Set("AnalyzerName", a.analyzerName) - - return properties -} - -func (a *ArchiveRule) String() string { - return a.ruleName -} diff --git a/resources/acm-certificates.go b/resources/acm-certificates.go index 4a8d7bb2..0ee0da17 100644 --- a/resources/acm-certificates.go +++ b/resources/acm-certificates.go @@ -1,26 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/acm" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ACMCertificate struct { - svc *acm.ACM - certificateARN *string - certificateDetail *acm.CertificateDetail - tags []*acm.Tag -} +const ACMCertificateResource = "ACMCertificate" func init() { - register("ACMCertificate", ListACMCertificates) + resource.Register(resource.Registration{ + Name: ACMCertificateResource, + Scope: nuke.Account, + Lister: &ACMCertificateLister{}, + }) } -func ListACMCertificates(sess *session.Session) ([]Resource, error) { - svc := acm.New(sess) - resources := []Resource{} +type ACMCertificateLister struct{} + +func (l *ACMCertificateLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := acm.New(opts.Session) + var resources []resource.Resource params := &acm.ListCertificatesInput{ MaxItems: aws.Int64(100), @@ -78,8 +86,14 @@ func ListACMCertificates(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *ACMCertificate) Remove() error { +type ACMCertificate struct { + svc *acm.ACM + certificateARN *string + certificateDetail *acm.CertificateDetail + tags []*acm.Tag +} +func (f *ACMCertificate) Remove(_ context.Context) error { _, err := f.svc.DeleteCertificate(&acm.DeleteCertificateInput{ CertificateArn: f.certificateARN, }) diff --git a/resources/acmpca-certificateauthorities.go b/resources/acmpca-certificateauthorities.go index 4286c539..1a2ab25f 100644 --- a/resources/acmpca-certificateauthorities.go +++ b/resources/acmpca-certificateauthorities.go @@ -1,30 +1,37 @@ package resources import ( + "context" + "fmt" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/acmpca" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ACMPCACertificateAuthority struct { - svc *acmpca.ACMPCA - ARN *string - status *string - tags []*acmpca.Tag -} +const ACMPCACertificateAuthorityResource = "ACMPCACertificateAuthority" func init() { - register("ACMPCACertificateAuthority", ListACMPCACertificateAuthorities, - mapCloudControl("AWS::ACMPCA::CertificateAuthority")) + resource.Register(resource.Registration{ + Name: ACMPCACertificateAuthorityResource, + Scope: nuke.Account, + Lister: &ACMPCACertificateAuthorityLister{}, + }, nuke.MapCloudControl("AWS::ACMPCA::CertificateAuthority")) } -func ListACMPCACertificateAuthorities(sess *session.Session) ([]Resource, error) { - svc := acmpca.New(sess) - resources := []Resource{} - tags := []*acmpca.Tag{} +type ACMPCACertificateAuthorityLister struct{} + +func (l *ACMPCACertificateAuthorityLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := acmpca.New(opts.Session) + + var resources []resource.Resource + var tags []*acmpca.Tag params := &acmpca.ListCertificateAuthoritiesInput{ MaxResults: aws.Int64(100), @@ -72,7 +79,14 @@ func ListACMPCACertificateAuthorities(sess *session.Session) ([]Resource, error) return resources, nil } -func (f *ACMPCACertificateAuthority) Remove() error { +type ACMPCACertificateAuthority struct { + svc *acmpca.ACMPCA + ARN *string + status *string + tags []*acmpca.Tag +} + +func (f *ACMPCACertificateAuthority) Remove(_ context.Context) error { _, err := f.svc.DeleteCertificateAuthority(&acmpca.DeleteCertificateAuthorityInput{ CertificateAuthorityArn: f.ARN, diff --git a/resources/acmpca-certificateauthoritystates.go b/resources/acmpca-certificateauthoritystates.go index 64ded272..850494b2 100644 --- a/resources/acmpca-certificateauthoritystates.go +++ b/resources/acmpca-certificateauthoritystates.go @@ -1,29 +1,37 @@ package resources import ( + "context" + "fmt" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/acmpca" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ACMPCACertificateAuthorityState struct { - svc *acmpca.ACMPCA - ARN *string - status *string - tags []*acmpca.Tag -} +const ACMPCACertificateAuthorityStateResource = "ACMPCACertificateAuthorityState" func init() { - register("ACMPCACertificateAuthorityState", ListACMPCACertificateAuthorityStates) + resource.Register(resource.Registration{ + Name: ACMPCACertificateAuthorityStateResource, + Scope: nuke.Account, + Lister: &ACMPCACertificateAuthorityStateLister{}, + }) } -func ListACMPCACertificateAuthorityStates(sess *session.Session) ([]Resource, error) { - svc := acmpca.New(sess) - resources := []Resource{} - tags := []*acmpca.Tag{} +type ACMPCACertificateAuthorityStateLister struct{} + +func (l *ACMPCACertificateAuthorityStateLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := acmpca.New(opts.Session) + + var resources []resource.Resource + var tags []*acmpca.Tag params := &acmpca.ListCertificateAuthoritiesInput{ MaxResults: aws.Int64(100), @@ -71,7 +79,14 @@ func ListACMPCACertificateAuthorityStates(sess *session.Session) ([]Resource, er return resources, nil } -func (f *ACMPCACertificateAuthorityState) Remove() error { +type ACMPCACertificateAuthorityState struct { + svc *acmpca.ACMPCA + ARN *string + status *string + tags []*acmpca.Tag +} + +func (f *ACMPCACertificateAuthorityState) Remove(_ context.Context) error { _, err := f.svc.UpdateCertificateAuthority(&acmpca.UpdateCertificateAuthorityInput{ CertificateAuthorityArn: f.ARN, diff --git a/resources/apigateway-apikeys.go b/resources/apigateway-apikeys.go index 6f014151..e3a0dadd 100644 --- a/resources/apigateway-apikeys.go +++ b/resources/apigateway-apikeys.go @@ -1,24 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/apigateway" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type APIGatewayAPIKey struct { - svc *apigateway.APIGateway - APIKey *string -} +const APIGatewayAPIKeyResource = "APIGatewayAPIKey" func init() { - register("APIGatewayAPIKey", ListAPIGatewayAPIKeys, - mapCloudControl("AWS::ApiGateway::ApiKey")) + resource.Register(resource.Registration{ + Name: APIGatewayAPIKeyResource, + Scope: nuke.Account, + Lister: &APIGatewayAPIKeyLister{}, + }, nuke.MapCloudControl("AWS::ApiGateway::ApiKey")) } -func ListAPIGatewayAPIKeys(sess *session.Session) ([]Resource, error) { - svc := apigateway.New(sess) - resources := []Resource{} +type APIGatewayAPIKeyLister struct{} + +func (l *APIGatewayAPIKeyLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := apigateway.New(opts.Session) + + var resources []resource.Resource params := &apigateway.GetApiKeysInput{ Limit: aws.Int64(100), @@ -47,7 +56,12 @@ func ListAPIGatewayAPIKeys(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *APIGatewayAPIKey) Remove() error { +type APIGatewayAPIKey struct { + svc *apigateway.APIGateway + APIKey *string +} + +func (f *APIGatewayAPIKey) Remove(_ context.Context) error { _, err := f.svc.DeleteApiKey(&apigateway.DeleteApiKeyInput{ ApiKey: f.APIKey, diff --git a/resources/apigateway-clientcertificates.go b/resources/apigateway-clientcertificates.go index 2d6dd486..0c1147cc 100644 --- a/resources/apigateway-clientcertificates.go +++ b/resources/apigateway-clientcertificates.go @@ -1,24 +1,32 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/apigateway" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type APIGatewayClientCertificate struct { - svc *apigateway.APIGateway - clientCertificateID *string -} +const APIGatewayClientCertificateResource = "APIGatewayClientCertificate" func init() { - register("APIGatewayClientCertificate", ListAPIGatewayClientCertificates, - mapCloudControl("AWS::ApiGateway::ClientCertificate")) + resource.Register(resource.Registration{ + Name: APIGatewayClientCertificateResource, + Scope: nuke.Account, + Lister: &APIGatewayClientCertificateLister{}, + }, nuke.MapCloudControl("AWS::ApiGateway::ClientCertificate")) } -func ListAPIGatewayClientCertificates(sess *session.Session) ([]Resource, error) { - svc := apigateway.New(sess) - resources := []Resource{} +type APIGatewayClientCertificateLister struct{} + +func (l *APIGatewayClientCertificateLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := apigateway.New(opts.Session) + var resources []resource.Resource params := &apigateway.GetClientCertificatesInput{ Limit: aws.Int64(100), @@ -47,8 +55,12 @@ func ListAPIGatewayClientCertificates(sess *session.Session) ([]Resource, error) return resources, nil } -func (f *APIGatewayClientCertificate) Remove() error { +type APIGatewayClientCertificate struct { + svc *apigateway.APIGateway + clientCertificateID *string +} +func (f *APIGatewayClientCertificate) Remove(_ context.Context) error { _, err := f.svc.DeleteClientCertificate(&apigateway.DeleteClientCertificateInput{ ClientCertificateId: f.clientCertificateID, }) diff --git a/resources/apigateway-domainnames.go b/resources/apigateway-domainnames.go index c1391481..a4c87941 100644 --- a/resources/apigateway-domainnames.go +++ b/resources/apigateway-domainnames.go @@ -1,23 +1,32 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/apigateway" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type APIGatewayDomainName struct { - svc *apigateway.APIGateway - domainName *string -} +const APIGatewayDomainNameResource = "APIGatewayDomainName" func init() { - register("APIGatewayDomainName", ListAPIGatewayDomainNames) + resource.Register(resource.Registration{ + Name: APIGatewayDomainNameResource, + Scope: nuke.Account, + Lister: &APIGatewayDomainNameLister{}, + }) } -func ListAPIGatewayDomainNames(sess *session.Session) ([]Resource, error) { - svc := apigateway.New(sess) - resources := []Resource{} +type APIGatewayDomainNameLister struct{} + +func (l *APIGatewayDomainNameLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := apigateway.New(opts.Session) + var resources []resource.Resource params := &apigateway.GetDomainNamesInput{ Limit: aws.Int64(100), @@ -46,8 +55,12 @@ func ListAPIGatewayDomainNames(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *APIGatewayDomainName) Remove() error { +type APIGatewayDomainName struct { + svc *apigateway.APIGateway + domainName *string +} +func (f *APIGatewayDomainName) Remove(_ context.Context) error { _, err := f.svc.DeleteDomainName(&apigateway.DeleteDomainNameInput{ DomainName: f.domainName, }) diff --git a/resources/apigateway-restapis.go b/resources/apigateway-restapis.go index 614be8f1..7bff13c3 100644 --- a/resources/apigateway-restapis.go +++ b/resources/apigateway-restapis.go @@ -1,12 +1,29 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/apigateway" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const APIGatewayRestAPIResource = "APIGatewayRestAPI" + +func init() { + resource.Register(resource.Registration{ + Name: APIGatewayRestAPIResource, + Scope: nuke.Account, + Lister: &APIGatewayRestAPILister{}, + }) +} + +type APIGatewayRestAPILister struct{} + type APIGatewayRestAPI struct { svc *apigateway.APIGateway restAPIID *string @@ -15,13 +32,11 @@ type APIGatewayRestAPI struct { tags map[string]*string } -func init() { - register("APIGatewayRestAPI", ListAPIGatewayRestApis) -} +func (l *APIGatewayRestAPILister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := apigateway.New(opts.Session) -func ListAPIGatewayRestApis(sess *session.Session) ([]Resource, error) { - svc := apigateway.New(sess) - resources := []Resource{} + var resources []resource.Resource params := &apigateway.GetRestApisInput{ Limit: aws.Int64(100), @@ -53,8 +68,7 @@ func ListAPIGatewayRestApis(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *APIGatewayRestAPI) Remove() error { - +func (f *APIGatewayRestAPI) Remove(_ context.Context) error { _, err := f.svc.DeleteRestApi(&apigateway.DeleteRestApiInput{ RestApiId: f.restAPIID, }) diff --git a/resources/apigateway-usageplans.go b/resources/apigateway-usageplans.go index a6852549..18ae5c7d 100644 --- a/resources/apigateway-usageplans.go +++ b/resources/apigateway-usageplans.go @@ -1,12 +1,29 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/apigateway" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const APIGatewayUsagePlanResource = "APIGatewayUsagePlan" + +func init() { + resource.Register(resource.Registration{ + Name: APIGatewayUsagePlanResource, + Scope: nuke.Account, + Lister: &APIGatewayUsagePlanLister{}, + }, nuke.MapCloudControl("AWS::ApiGateway::UsagePlan")) +} + +type APIGatewayUsagePlanLister struct{} + type APIGatewayUsagePlan struct { svc *apigateway.APIGateway usagePlanID *string @@ -14,14 +31,10 @@ type APIGatewayUsagePlan struct { tags map[string]*string } -func init() { - register("APIGatewayUsagePlan", ListAPIGatewayUsagePlans, - mapCloudControl("AWS::ApiGateway::UsagePlan")) -} - -func ListAPIGatewayUsagePlans(sess *session.Session) ([]Resource, error) { - svc := apigateway.New(sess) - resources := []Resource{} +func (l *APIGatewayUsagePlanLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := apigateway.New(opts.Session) + var resources []resource.Resource params := &apigateway.GetUsagePlansInput{ Limit: aws.Int64(100), @@ -52,8 +65,7 @@ func ListAPIGatewayUsagePlans(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *APIGatewayUsagePlan) Remove() error { - +func (f *APIGatewayUsagePlan) Remove(_ context.Context) error { _, err := f.svc.DeleteUsagePlan(&apigateway.DeleteUsagePlanInput{ UsagePlanId: f.usagePlanID, }) diff --git a/resources/apigateway-vpclinks.go b/resources/apigateway-vpclinks.go index 944a1bc8..edee61b9 100644 --- a/resources/apigateway-vpclinks.go +++ b/resources/apigateway-vpclinks.go @@ -1,26 +1,31 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/apigateway" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" ) -type APIGatewayVpcLink struct { - svc *apigateway.APIGateway - vpcLinkID *string - name *string - tags map[string]*string -} +const APIGatewayVpcLinkResource = "APIGatewayVpcLink" func init() { - register("APIGatewayVpcLink", ListAPIGatewayVpcLinks) + resource.Register(resource.Registration{ + Name: APIGatewayVpcLinkResource, + Scope: nuke.Account, + Lister: &APIGatewayVpcLinkLister{}, + }) } -func ListAPIGatewayVpcLinks(sess *session.Session) ([]Resource, error) { - svc := apigateway.New(sess) - resources := []Resource{} +type APIGatewayVpcLinkLister struct{} + +func (l *APIGatewayVpcLinkLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := apigateway.New(opts.Session) + var resources []resource.Resource params := &apigateway.GetVpcLinksInput{ Limit: aws.Int64(100), @@ -51,8 +56,14 @@ func ListAPIGatewayVpcLinks(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *APIGatewayVpcLink) Remove() error { +type APIGatewayVpcLink struct { + svc *apigateway.APIGateway + vpcLinkID *string + name *string + tags map[string]*string +} +func (f *APIGatewayVpcLink) Remove(_ context.Context) error { _, err := f.svc.DeleteVpcLink(&apigateway.DeleteVpcLinkInput{ VpcLinkId: f.vpcLinkID, }) diff --git a/resources/apigatewayv2-apis.go b/resources/apigatewayv2-apis.go index 304c656b..09fd450d 100644 --- a/resources/apigatewayv2-apis.go +++ b/resources/apigatewayv2-apis.go @@ -1,28 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/apigatewayv2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type APIGatewayV2API struct { - svc *apigatewayv2.ApiGatewayV2 - v2APIID *string - name *string - protocolType *string - version *string - tags map[string]*string -} +const APIGatewayV2APIResource = "APIGatewayV2API" func init() { - register("APIGatewayV2API", ListAPIGatewayV2APIs) + resource.Register(resource.Registration{ + Name: APIGatewayV2APIResource, + Scope: nuke.Account, + Lister: &APIGatewayV2APILister{}, + }) } -func ListAPIGatewayV2APIs(sess *session.Session) ([]Resource, error) { - svc := apigatewayv2.New(sess) - resources := []Resource{} +type APIGatewayV2APILister struct{} + +func (l *APIGatewayV2APILister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := apigatewayv2.New(opts.Session) + var resources []resource.Resource params := &apigatewayv2.GetApisInput{ MaxResults: aws.String("100"), @@ -55,8 +60,16 @@ func ListAPIGatewayV2APIs(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *APIGatewayV2API) Remove() error { +type APIGatewayV2API struct { + svc *apigatewayv2.ApiGatewayV2 + v2APIID *string + name *string + protocolType *string + version *string + tags map[string]*string +} +func (f *APIGatewayV2API) Remove(_ context.Context) error { _, err := f.svc.DeleteApi(&apigatewayv2.DeleteApiInput{ ApiId: f.v2APIID, }) diff --git a/resources/apigatewayv2-vpclinks.go b/resources/apigatewayv2-vpc-links.go similarity index 64% rename from resources/apigatewayv2-vpclinks.go rename to resources/apigatewayv2-vpc-links.go index 2c1dab14..18b4da3a 100644 --- a/resources/apigatewayv2-vpclinks.go +++ b/resources/apigatewayv2-vpc-links.go @@ -1,26 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/apigatewayv2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type APIGatewayV2VpcLink struct { - svc *apigatewayv2.ApiGatewayV2 - vpcLinkID *string - name *string - tags map[string]*string -} +const APIGatewayV2VpcLinkResource = "APIGatewayV2VpcLink" func init() { - register("APIGatewayV2VpcLink", ListAPIGatewayV2VpcLinks) + resource.Register(resource.Registration{ + Name: APIGatewayV2VpcLinkResource, + Scope: nuke.Account, + Lister: &APIGatewayV2VpcLinkLister{}, + }) } -func ListAPIGatewayV2VpcLinks(sess *session.Session) ([]Resource, error) { - svc := apigatewayv2.New(sess) - resources := []Resource{} +type APIGatewayV2VpcLinkLister struct{} + +func (l *APIGatewayV2VpcLinkLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := apigatewayv2.New(opts.Session) + var resources []resource.Resource params := &apigatewayv2.GetVpcLinksInput{ MaxResults: aws.String("100"), @@ -51,8 +58,14 @@ func ListAPIGatewayV2VpcLinks(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *APIGatewayV2VpcLink) Remove() error { +type APIGatewayV2VpcLink struct { + svc *apigatewayv2.ApiGatewayV2 + vpcLinkID *string + name *string + tags map[string]*string +} +func (f *APIGatewayV2VpcLink) Remove(_ context.Context) error { _, err := f.svc.DeleteVpcLink(&apigatewayv2.DeleteVpcLinkInput{ VpcLinkId: f.vpcLinkID, }) diff --git a/resources/applicationautoscalingscalabletargets.go b/resources/applicationautoscaling-scalable-targets.go similarity index 67% rename from resources/applicationautoscalingscalabletargets.go rename to resources/applicationautoscaling-scalable-targets.go index 066cbefb..39d33a3a 100644 --- a/resources/applicationautoscalingscalabletargets.go +++ b/resources/applicationautoscaling-scalable-targets.go @@ -1,31 +1,36 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/applicationautoscaling" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type AppAutoScaling struct { - svc *applicationautoscaling.ApplicationAutoScaling - target *applicationautoscaling.ScalableTarget - id string - roleARN string - dimension string - namespace string -} +const ApplicationAutoScalingScalableTargetResource = "ApplicationAutoScalingScalableTarget" func init() { - register("ApplicationAutoScalingScalableTarget", ListApplicationAutoScalingScalableTargets) + resource.Register(resource.Registration{ + Name: ApplicationAutoScalingScalableTargetResource, + Scope: nuke.Account, + Lister: &ApplicationAutoScalingScalableTargetLister{}, + }) } -func ListApplicationAutoScalingScalableTargets(sess *session.Session) ([]Resource, error) { - svc := applicationautoscaling.New(sess) +type ApplicationAutoScalingScalableTargetLister struct{} + +func (l *ApplicationAutoScalingScalableTargetLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := applicationautoscaling.New(opts.Session) namespaces := applicationautoscaling.ServiceNamespace_Values() params := &applicationautoscaling.DescribeScalableTargetsInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, namespace := range namespaces { for { params.ServiceNamespace = &namespace @@ -55,7 +60,16 @@ func ListApplicationAutoScalingScalableTargets(sess *session.Session) ([]Resourc return resources, nil } -func (a *AppAutoScaling) Remove() error { +type AppAutoScaling struct { + svc *applicationautoscaling.ApplicationAutoScaling + target *applicationautoscaling.ScalableTarget + id string + roleARN string + dimension string + namespace string +} + +func (a *AppAutoScaling) Remove(_ context.Context) error { _, err := a.svc.DeregisterScalableTarget(&applicationautoscaling.DeregisterScalableTargetInput{ ResourceId: &a.id, ScalableDimension: &a.dimension, diff --git a/resources/appmesh-gatewayroute.go b/resources/appmesh-gatewayroute.go index 2574bcd9..ba7df7df 100644 --- a/resources/appmesh-gatewayroute.go +++ b/resources/appmesh-gatewayroute.go @@ -1,25 +1,32 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/appmesh" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type AppMeshGatewayRoute struct { - svc *appmesh.AppMesh - routeName *string - meshName *string - virtualGatewayName *string -} +const AppMeshGatewayRouteResource = "AppMeshGatewayRoute" func init() { - register("AppMeshGatewayRoute", ListAppMeshGatewayRoutes) + resource.Register(resource.Registration{ + Name: AppMeshGatewayRouteResource, + Scope: nuke.Account, + Lister: &AppMeshGatewayRouteLister{}, + }) } -func ListAppMeshGatewayRoutes(sess *session.Session) ([]Resource, error) { - svc := appmesh.New(sess) - resources := []Resource{} +type AppMeshGatewayRouteLister struct{} + +func (l *AppMeshGatewayRouteLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := appmesh.New(opts.Session) + var resources []resource.Resource // Get Meshes var meshNames []*string @@ -86,7 +93,14 @@ func ListAppMeshGatewayRoutes(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *AppMeshGatewayRoute) Remove() error { +type AppMeshGatewayRoute struct { + svc *appmesh.AppMesh + routeName *string + meshName *string + virtualGatewayName *string +} + +func (f *AppMeshGatewayRoute) Remove(_ context.Context) error { _, err := f.svc.DeleteGatewayRoute(&appmesh.DeleteGatewayRouteInput{ MeshName: f.meshName, GatewayRouteName: f.routeName, diff --git a/resources/appmesh-mesh.go b/resources/appmesh-mesh.go index e0c2e35f..d7130e5d 100644 --- a/resources/appmesh-mesh.go +++ b/resources/appmesh-mesh.go @@ -1,24 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/appmesh" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type AppMeshMesh struct { - svc *appmesh.AppMesh - meshName *string -} +const AppMeshMeshResource = "AppMeshMesh" func init() { - register("AppMeshMesh", ListAppMeshMeshes) + resource.Register(resource.Registration{ + Name: AppMeshMeshResource, + Scope: nuke.Account, + Lister: &AppMeshMeshLister{}, + }) } -func ListAppMeshMeshes(sess *session.Session) ([]Resource, error) { - svc := appmesh.New(sess) - resources := []Resource{} +type AppMeshMeshLister struct{} + +func (l *AppMeshMeshLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := appmesh.New(opts.Session) + var resources []resource.Resource params := &appmesh.ListMeshesInput{ Limit: aws.Int64(100), @@ -47,7 +56,12 @@ func ListAppMeshMeshes(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *AppMeshMesh) Remove() error { +type AppMeshMesh struct { + svc *appmesh.AppMesh + meshName *string +} + +func (f *AppMeshMesh) Remove(_ context.Context) error { _, err := f.svc.DeleteMesh(&appmesh.DeleteMeshInput{ MeshName: f.meshName, }) diff --git a/resources/appmesh-route.go b/resources/appmesh-route.go index 2d249007..467e22f5 100644 --- a/resources/appmesh-route.go +++ b/resources/appmesh-route.go @@ -1,25 +1,32 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/appmesh" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type AppMeshRoute struct { - svc *appmesh.AppMesh - routeName *string - meshName *string - virtualRouterName *string -} +const AppMeshRouteResource = "AppMeshRoute" func init() { - register("AppMeshRoute", ListAppMeshRoutes) + resource.Register(resource.Registration{ + Name: AppMeshRouteResource, + Scope: nuke.Account, + Lister: &AppMeshRouteLister{}, + }) } -func ListAppMeshRoutes(sess *session.Session) ([]Resource, error) { - svc := appmesh.New(sess) - resources := []Resource{} +type AppMeshRouteLister struct{} + +func (l *AppMeshRouteLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := appmesh.New(opts.Session) + var resources []resource.Resource // Get Meshes var meshNames []*string @@ -86,7 +93,14 @@ func ListAppMeshRoutes(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *AppMeshRoute) Remove() error { +type AppMeshRoute struct { + svc *appmesh.AppMesh + routeName *string + meshName *string + virtualRouterName *string +} + +func (f *AppMeshRoute) Remove(_ context.Context) error { _, err := f.svc.DeleteRoute(&appmesh.DeleteRouteInput{ MeshName: f.meshName, RouteName: f.routeName, diff --git a/resources/appmesh-virtualgateway.go b/resources/appmesh-virtualgateway.go index 913150fd..acbca280 100644 --- a/resources/appmesh-virtualgateway.go +++ b/resources/appmesh-virtualgateway.go @@ -1,24 +1,32 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/appmesh" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type AppMeshVirtualGateway struct { - svc *appmesh.AppMesh - meshName *string - virtualGatewayName *string -} +const AppMeshVirtualGatewayResource = "AppMeshVirtualGateway" func init() { - register("AppMeshVirtualGateway", ListAppMeshVirtualGateways) + resource.Register(resource.Registration{ + Name: AppMeshVirtualGatewayResource, + Scope: nuke.Account, + Lister: &AppMeshVirtualGatewayLister{}, + }) } -func ListAppMeshVirtualGateways(sess *session.Session) ([]Resource, error) { - svc := appmesh.New(sess) - resources := []Resource{} +type AppMeshVirtualGatewayLister struct{} + +func (l *AppMeshVirtualGatewayLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := appmesh.New(opts.Session) + var resources []resource.Resource // Get Meshes var meshNames []*string @@ -66,7 +74,13 @@ func ListAppMeshVirtualGateways(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *AppMeshVirtualGateway) Remove() error { +type AppMeshVirtualGateway struct { + svc *appmesh.AppMesh + meshName *string + virtualGatewayName *string +} + +func (f *AppMeshVirtualGateway) Remove(_ context.Context) error { _, err := f.svc.DeleteVirtualGateway(&appmesh.DeleteVirtualGatewayInput{ MeshName: f.meshName, VirtualGatewayName: f.virtualGatewayName, diff --git a/resources/appmesh-virtualnode.go b/resources/appmesh-virtualnode.go index b7f3c02e..a33af143 100644 --- a/resources/appmesh-virtualnode.go +++ b/resources/appmesh-virtualnode.go @@ -1,24 +1,33 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/appmesh" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type AppMeshVirtualNode struct { - svc *appmesh.AppMesh - meshName *string - virtualNodeName *string -} +const AppMeshVirtualNodeResource = "AppMeshVirtualNode" func init() { - register("AppMeshVirtualNode", ListAppMeshVirtualNodes) + resource.Register(resource.Registration{ + Name: AppMeshVirtualNodeResource, + Scope: nuke.Account, + Lister: &AppMeshVirtualNodeLister{}, + }) } -func ListAppMeshVirtualNodes(sess *session.Session) ([]Resource, error) { - svc := appmesh.New(sess) - resources := []Resource{} +type AppMeshVirtualNodeLister struct{} + +func (l *AppMeshVirtualNodeLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := appmesh.New(opts.Session) + resources := make([]resource.Resource, 0) // Get Meshes var meshNames []*string @@ -66,7 +75,13 @@ func ListAppMeshVirtualNodes(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *AppMeshVirtualNode) Remove() error { +type AppMeshVirtualNode struct { + svc *appmesh.AppMesh + meshName *string + virtualNodeName *string +} + +func (f *AppMeshVirtualNode) Remove(_ context.Context) error { _, err := f.svc.DeleteVirtualNode(&appmesh.DeleteVirtualNodeInput{ MeshName: f.meshName, VirtualNodeName: f.virtualNodeName, diff --git a/resources/appmesh-virtualrouter.go b/resources/appmesh-virtualrouter.go index 969499b5..e2e5d0a4 100644 --- a/resources/appmesh-virtualrouter.go +++ b/resources/appmesh-virtualrouter.go @@ -1,9 +1,14 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/appmesh" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type AppMeshVirtualRouter struct { @@ -12,13 +17,23 @@ type AppMeshVirtualRouter struct { virtualRouterName *string } +const AppMeshVirtualRouterResource = "AppMeshVirtualRouter" + func init() { - register("AppMeshVirtualRouter", ListAppMeshVirtualRouters) + resource.Register(resource.Registration{ + Name: AppMeshVirtualRouterResource, + Scope: nuke.Account, + Lister: &AppMeshVirtualRouterLister{}, + }) } -func ListAppMeshVirtualRouters(sess *session.Session) ([]Resource, error) { - svc := appmesh.New(sess) - resources := []Resource{} +type AppMeshVirtualRouterLister struct{} + +func (l *AppMeshVirtualRouterLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := appmesh.New(opts.Session) + resources := make([]resource.Resource, 0) // Get Meshes var meshNames []*string @@ -66,7 +81,7 @@ func ListAppMeshVirtualRouters(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *AppMeshVirtualRouter) Remove() error { +func (f *AppMeshVirtualRouter) Remove(_ context.Context) error { _, err := f.svc.DeleteVirtualRouter(&appmesh.DeleteVirtualRouterInput{ MeshName: f.meshName, VirtualRouterName: f.virtualRouterName, diff --git a/resources/appmesh-virtualservice.go b/resources/appmesh-virtualservice.go index 41ed8498..5bebe847 100644 --- a/resources/appmesh-virtualservice.go +++ b/resources/appmesh-virtualservice.go @@ -1,9 +1,14 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/appmesh" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type AppMeshVirtualService struct { @@ -12,13 +17,23 @@ type AppMeshVirtualService struct { virtualServiceName *string } +const AppMeshVirtualServiceResource = "AppMeshVirtualService" + func init() { - register("AppMeshVirtualService", ListAppMeshVirtualServices) + resource.Register(resource.Registration{ + Name: AppMeshVirtualServiceResource, + Scope: nuke.Account, + Lister: &AppMeshVirtualServiceLister{}, + }) } -func ListAppMeshVirtualServices(sess *session.Session) ([]Resource, error) { - svc := appmesh.New(sess) - resources := []Resource{} +type AppMeshVirtualServiceLister struct{} + +func (l *AppMeshVirtualServiceLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := appmesh.New(opts.Session) + resources := make([]resource.Resource, 0) // Get Meshes var meshNames []*string @@ -66,7 +81,7 @@ func ListAppMeshVirtualServices(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *AppMeshVirtualService) Remove() error { +func (f *AppMeshVirtualService) Remove(_ context.Context) error { _, err := f.svc.DeleteVirtualService(&appmesh.DeleteVirtualServiceInput{ MeshName: f.meshName, VirtualServiceName: f.virtualServiceName, diff --git a/resources/appstream-directoryconfigs.go b/resources/appstream-directoryconfigs.go index 9ff4e418..a860cbb0 100644 --- a/resources/appstream-directoryconfigs.go +++ b/resources/appstream-directoryconfigs.go @@ -1,9 +1,14 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/appstream" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type AppStreamDirectoryConfig struct { @@ -11,13 +16,23 @@ type AppStreamDirectoryConfig struct { name *string } +const AppStreamDirectoryConfigResource = "AppStreamDirectoryConfig" + func init() { - register("AppStreamDirectoryConfig", ListAppStreamDirectoryConfigs) + resource.Register(resource.Registration{ + Name: AppStreamDirectoryConfigResource, + Scope: nuke.Account, + Lister: &AppStreamDirectoryConfigLister{}, + }) } -func ListAppStreamDirectoryConfigs(sess *session.Session) ([]Resource, error) { - svc := appstream.New(sess) - resources := []Resource{} +type AppStreamDirectoryConfigLister struct{} + +func (l *AppStreamDirectoryConfigLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := appstream.New(opts.Session) + resources := make([]resource.Resource, 0) params := &appstream.DescribeDirectoryConfigsInput{ MaxResults: aws.Int64(100), @@ -46,8 +61,7 @@ func ListAppStreamDirectoryConfigs(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *AppStreamDirectoryConfig) Remove() error { - +func (f *AppStreamDirectoryConfig) Remove(_ context.Context) error { _, err := f.svc.DeleteDirectoryConfig(&appstream.DeleteDirectoryConfigInput{ DirectoryName: f.name, }) diff --git a/resources/appstream-fleets.go b/resources/appstream-fleets.go index 2969997a..0b65de93 100644 --- a/resources/appstream-fleets.go +++ b/resources/appstream-fleets.go @@ -1,8 +1,12 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/appstream" + + "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/libnuke/pkg/resource" ) type AppStreamFleet struct { @@ -10,13 +14,23 @@ type AppStreamFleet struct { name *string } +const AppStreamFleetResource = "AppStreamFleet" + func init() { - register("AppStreamFleet", ListAppStreamFleets) + resource.Register(resource.Registration{ + Name: AppStreamFleetResource, + Scope: nuke.Account, + Lister: &AppStreamFleetLister{}, + }) } -func ListAppStreamFleets(sess *session.Session) ([]Resource, error) { - svc := appstream.New(sess) - resources := []Resource{} +type AppStreamFleetLister struct{} + +func (l *AppStreamFleetLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := appstream.New(opts.Session) + resources := make([]resource.Resource, 0) params := &appstream.DescribeFleetsInput{} @@ -43,8 +57,7 @@ func ListAppStreamFleets(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *AppStreamFleet) Remove() error { - +func (f *AppStreamFleet) Remove(_ context.Context) error { _, err := f.svc.StopFleet(&appstream.StopFleetInput{ Name: f.name, }) diff --git a/resources/appstream-fleetstates.go b/resources/appstream-fleetstates.go index e703c501..48324fba 100644 --- a/resources/appstream-fleetstates.go +++ b/resources/appstream-fleetstates.go @@ -1,10 +1,15 @@ package resources import ( + "context" + "fmt" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/appstream" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type AppStreamFleetState struct { @@ -13,13 +18,23 @@ type AppStreamFleetState struct { state *string } +const AppStreamFleetStateResource = "AppStreamFleetState" + func init() { - register("AppStreamFleetState", ListAppStreamFleetStates) + resource.Register(resource.Registration{ + Name: AppStreamFleetStateResource, + Scope: nuke.Account, + Lister: &AppStreamFleetStateLister{}, + }) } -func ListAppStreamFleetStates(sess *session.Session) ([]Resource, error) { - svc := appstream.New(sess) - resources := []Resource{} +type AppStreamFleetStateLister struct{} + +func (l *AppStreamFleetStateLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := appstream.New(opts.Session) + resources := make([]resource.Resource, 0) params := &appstream.DescribeFleetsInput{} @@ -47,7 +62,7 @@ func ListAppStreamFleetStates(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *AppStreamFleetState) Remove() error { +func (f *AppStreamFleetState) Remove(_ context.Context) error { _, err := f.svc.StopFleet(&appstream.StopFleetInput{ Name: f.name, diff --git a/resources/appstream-imagebuilders.go b/resources/appstream-imagebuilders.go index 735434a1..1c3e7b64 100644 --- a/resources/appstream-imagebuilders.go +++ b/resources/appstream-imagebuilders.go @@ -1,9 +1,14 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/appstream" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type AppStreamImageBuilder struct { @@ -11,13 +16,23 @@ type AppStreamImageBuilder struct { name *string } +const AppStreamImageBuilderResource = "AppStreamImageBuilder" + func init() { - register("AppStreamImageBuilder", ListAppStreamImageBuilders) + resource.Register(resource.Registration{ + Name: AppStreamImageBuilderResource, + Scope: nuke.Account, + Lister: &AppStreamImageBuilderLister{}, + }) } -func ListAppStreamImageBuilders(sess *session.Session) ([]Resource, error) { - svc := appstream.New(sess) - resources := []Resource{} +type AppStreamImageBuilderLister struct{} + +func (l *AppStreamImageBuilderLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := appstream.New(opts.Session) + resources := make([]resource.Resource, 0) params := &appstream.DescribeImageBuildersInput{ MaxResults: aws.Int64(100), @@ -46,8 +61,7 @@ func ListAppStreamImageBuilders(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *AppStreamImageBuilder) Remove() error { - +func (f *AppStreamImageBuilder) Remove(_ context.Context) error { _, err := f.svc.DeleteImageBuilder(&appstream.DeleteImageBuilderInput{ Name: f.name, }) diff --git a/resources/appstream-imagebuilderwaiters.go b/resources/appstream-imagebuilderwaiters.go index fc5faf83..bd97f670 100644 --- a/resources/appstream-imagebuilderwaiters.go +++ b/resources/appstream-imagebuilderwaiters.go @@ -1,11 +1,16 @@ package resources import ( + "context" + "fmt" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/appstream" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type AppStreamImageBuilderWaiter struct { @@ -14,13 +19,23 @@ type AppStreamImageBuilderWaiter struct { state *string } +const AppStreamImageBuilderWaiterResource = "AppStreamImageBuilderWaiter" + func init() { - register("AppStreamImageBuilderWaiter", ListAppStreamImageBuilderWaiters) + resource.Register(resource.Registration{ + Name: AppStreamImageBuilderWaiterResource, + Scope: nuke.Account, + Lister: &AppStreamImageBuilderWaiterLister{}, + }) } -func ListAppStreamImageBuilderWaiters(sess *session.Session) ([]Resource, error) { - svc := appstream.New(sess) - resources := []Resource{} +type AppStreamImageBuilderWaiterLister struct{} + +func (l *AppStreamImageBuilderWaiterLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := appstream.New(opts.Session) + resources := make([]resource.Resource, 0) params := &appstream.DescribeImageBuildersInput{ MaxResults: aws.Int64(100), @@ -50,7 +65,7 @@ func ListAppStreamImageBuilderWaiters(sess *session.Session) ([]Resource, error) return resources, nil } -func (f *AppStreamImageBuilderWaiter) Remove() error { +func (f *AppStreamImageBuilderWaiter) Remove(_ context.Context) error { return nil } diff --git a/resources/appstream-images.go b/resources/appstream-images.go index 4530d26c..914ad192 100644 --- a/resources/appstream-images.go +++ b/resources/appstream-images.go @@ -1,11 +1,16 @@ package resources import ( + "context" + "fmt" "strings" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/appstream" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type AppStreamImage struct { @@ -14,13 +19,23 @@ type AppStreamImage struct { visibility *string } +const AppStreamImageResource = "AppStreamImage" + func init() { - register("AppStreamImage", ListAppStreamImages) + resource.Register(resource.Registration{ + Name: AppStreamImageResource, + Scope: nuke.Account, + Lister: &AppStreamImageLister{}, + }) } -func ListAppStreamImages(sess *session.Session) ([]Resource, error) { - svc := appstream.New(sess) - resources := []Resource{} +type AppStreamImageLister struct{} + +func (l *AppStreamImageLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := appstream.New(opts.Session) + resources := make([]resource.Resource, 0) params := &appstream.DescribeImagesInput{} @@ -40,8 +55,7 @@ func ListAppStreamImages(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *AppStreamImage) Remove() error { - +func (f *AppStreamImage) Remove(_ context.Context) error { _, err := f.svc.DeleteImage(&appstream.DeleteImageInput{ Name: f.name, }) diff --git a/resources/appstream-stack-fleet-attachments.go b/resources/appstream-stack-fleet-attachments.go index c156ffe7..a5d1eadb 100644 --- a/resources/appstream-stack-fleet-attachments.go +++ b/resources/appstream-stack-fleet-attachments.go @@ -1,10 +1,15 @@ package resources import ( + "context" + "fmt" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/appstream" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type AppStreamStackFleetAttachment struct { @@ -13,14 +18,24 @@ type AppStreamStackFleetAttachment struct { fleetName *string } +const AppStreamStackFleetAttachmentResource = "AppStreamStackFleetAttachment" + func init() { - register("AppStreamStackFleetAttachment", ListAppStreamStackFleetAttachments) + resource.Register(resource.Registration{ + Name: AppStreamStackFleetAttachmentResource, + Scope: nuke.Account, + Lister: &AppStreamStackFleetAttachmentLister{}, + }) } -func ListAppStreamStackFleetAttachments(sess *session.Session) ([]Resource, error) { - svc := appstream.New(sess) - resources := []Resource{} - stacks := []*appstream.Stack{} +type AppStreamStackFleetAttachmentLister struct{} + +func (l *AppStreamStackFleetAttachmentLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := appstream.New(opts.Session) + resources := make([]resource.Resource, 0) + var stacks []*appstream.Stack params := &appstream.DescribeStacksInput{} for { @@ -61,7 +76,7 @@ func ListAppStreamStackFleetAttachments(sess *session.Session) ([]Resource, erro return resources, nil } -func (f *AppStreamStackFleetAttachment) Remove() error { +func (f *AppStreamStackFleetAttachment) Remove(_ context.Context) error { _, err := f.svc.DisassociateFleet(&appstream.DisassociateFleetInput{ StackName: f.stackName, diff --git a/resources/appstream-stacks.go b/resources/appstream-stacks.go index 1c3f6402..39cd0098 100644 --- a/resources/appstream-stacks.go +++ b/resources/appstream-stacks.go @@ -1,8 +1,12 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/appstream" + + "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/libnuke/pkg/resource" ) type AppStreamStack struct { @@ -10,13 +14,23 @@ type AppStreamStack struct { name *string } +const AppStreamStackResource = "AppStreamStack" + func init() { - register("AppStreamStack", ListAppStreamStacks) + resource.Register(resource.Registration{ + Name: AppStreamStackResource, + Scope: nuke.Account, + Lister: &AppStreamStackLister{}, + }) } -func ListAppStreamStacks(sess *session.Session) ([]Resource, error) { - svc := appstream.New(sess) - resources := []Resource{} +type AppStreamStackLister struct{} + +func (l *AppStreamStackLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := appstream.New(opts.Session) + resources := make([]resource.Resource, 0) params := &appstream.DescribeStacksInput{} @@ -43,8 +57,7 @@ func ListAppStreamStacks(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *AppStreamStack) Remove() error { - +func (f *AppStreamStack) Remove(_ context.Context) error { _, err := f.svc.DeleteStack(&appstream.DeleteStackInput{ Name: f.name, }) diff --git a/resources/appsync-graphqlapis.go b/resources/appsync-graphqlapis.go index 586e77f0..967d1236 100644 --- a/resources/appsync-graphqlapis.go +++ b/resources/appsync-graphqlapis.go @@ -1,28 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/appsync" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -// AppSyncGraphqlAPI - An AWS AppSync GraphQL API -type AppSyncGraphqlAPI struct { - svc *appsync.AppSync - apiID *string - name *string - tags map[string]*string -} +const AppSyncGraphqlAPIResource = "AppSyncGraphqlAPI" func init() { - register("AppSyncGraphqlAPI", ListAppSyncGraphqlAPIs) + resource.Register(resource.Registration{ + Name: AppSyncGraphqlAPIResource, + Scope: nuke.Account, + Lister: &AppSyncGraphqlAPILister{}, + }) } -// ListAppSyncGraphqlAPIs - List all AWS AppSync GraphQL APIs in the account -func ListAppSyncGraphqlAPIs(sess *session.Session) ([]Resource, error) { - svc := appsync.New(sess) - resources := []Resource{} +type AppSyncGraphqlAPILister struct{} + +// List - List all AWS AppSync GraphQL APIs in the account +func (l *AppSyncGraphqlAPILister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := appsync.New(opts.Session) + var resources []resource.Resource params := &appsync.ListGraphqlApisInput{ MaxResults: aws.Int64(25), @@ -53,8 +59,16 @@ func ListAppSyncGraphqlAPIs(sess *session.Session) ([]Resource, error) { return resources, nil } +// AppSyncGraphqlAPI - An AWS AppSync GraphQL API +type AppSyncGraphqlAPI struct { + svc *appsync.AppSync + apiID *string + name *string + tags map[string]*string +} + // Remove - remove an AWS AppSync GraphQL API -func (f *AppSyncGraphqlAPI) Remove() error { +func (f *AppSyncGraphqlAPI) Remove(_ context.Context) error { _, err := f.svc.DeleteGraphqlApi(&appsync.DeleteGraphqlApiInput{ ApiId: f.apiID, }) diff --git a/resources/athena-named-queries.go b/resources/athena-named-queries.go index acc002c6..55f44a62 100644 --- a/resources/athena-named-queries.go +++ b/resources/athena-named-queries.go @@ -1,24 +1,38 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/athena" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const AthenaNamedQueryResource = "AthenaNamedQuery" + func init() { - register("AthenaNamedQuery", ListAthenaNamedQueries, - mapCloudControl("AWS::Athena::NamedQuery")) + resource.Register(resource.Registration{ + Name: AthenaNamedQueryResource, + Scope: nuke.Account, + Lister: &AthenaNamedQueryLister{}, + }) } +type AthenaNamedQueryLister struct{} + type AthenaNamedQuery struct { svc *athena.Athena id *string } -func ListAthenaNamedQueries(sess *session.Session) ([]Resource, error) { - svc := athena.New(sess) - resources := []Resource{} +func (l *AthenaNamedQueryLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := athena.New(opts.Session) + resources := make([]resource.Resource, 0) // List WorkGroup var workgroupNames []*string @@ -61,7 +75,7 @@ func ListAthenaNamedQueries(sess *session.Session) ([]Resource, error) { return resources, err } -func (a *AthenaNamedQuery) Remove() error { +func (a *AthenaNamedQuery) Remove(_ context.Context) error { _, err := a.svc.DeleteNamedQuery(&athena.DeleteNamedQueryInput{ NamedQueryId: a.id, }) diff --git a/resources/athena-work-groups.go b/resources/athena-work-groups.go index d1de2361..6bb43bfe 100644 --- a/resources/athena-work-groups.go +++ b/resources/athena-work-groups.go @@ -1,34 +1,49 @@ package resources import ( + "context" + "errors" "fmt" + "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/athena" "github.com/aws/aws-sdk-go/service/sts" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" - "github.com/sirupsen/logrus" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const AthenaWorkGroupResource = "AthenaWorkGroup" + func init() { - register("AthenaWorkGroup", ListAthenaWorkGroups, - mapCloudControl("AWS::Athena::WorkGroup")) + resource.Register(resource.Registration{ + Name: AthenaWorkGroupResource, + Scope: nuke.Account, + Lister: &AthenaWorkGroupLister{}, + }) } +type AthenaWorkGroupLister struct{} + type AthenaWorkGroup struct { svc *athena.Athena name *string arn *string } -func ListAthenaWorkGroups(sess *session.Session) ([]Resource, error) { - svc := athena.New(sess) - resources := []Resource{} +func (l *AthenaWorkGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := athena.New(opts.Session) + resources := make([]resource.Resource, 0) // Lookup current account ID - stsSvc := sts.New(sess) + stsSvc := sts.New(opts.Session) callerID, err := stsSvc.GetCallerIdentity(&sts.GetCallerIdentityInput{}) if err != nil { return nil, err @@ -68,10 +83,11 @@ func ListAthenaWorkGroups(sess *session.Session) ([]Resource, error) { return resources, err } -func (a *AthenaWorkGroup) Remove() error { +func (a *AthenaWorkGroup) Remove(_ context.Context) error { // Primary WorkGroup cannot be deleted, // but we can reset it to a clean state if *a.name == "primary" { + // TODO: pass logger via ListerOpts instead of using global logrus.Info("Primary Athena WorkGroup may not be deleted. Resetting configuration only.") // Reset the configuration to its default state diff --git a/resources/autoscaling-groups.go b/resources/autoscaling-groups.go index 5f41ec7d..264c767b 100644 --- a/resources/autoscaling-groups.go +++ b/resources/autoscaling-groups.go @@ -1,19 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/autoscaling" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const AutoScalingGroupResource = "AutoScalingGroup" + func init() { - register("AutoScalingGroup", ListAutoscalingGroups) + resource.Register(resource.Registration{ + Name: AutoScalingGroupResource, + Scope: nuke.Account, + Lister: &AutoScalingGroupLister{}, + }) } -func ListAutoscalingGroups(s *session.Session) ([]Resource, error) { - svc := autoscaling.New(s) - resources := make([]Resource, 0) +type AutoScalingGroupLister struct{} + +func (l *AutoScalingGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := autoscaling.New(opts.Session) + resources := make([]resource.Resource, 0) params := &autoscaling.DescribeAutoScalingGroupsInput{} err := svc.DescribeAutoScalingGroupsPages(params, @@ -41,7 +56,7 @@ type AutoScalingGroup struct { tags []*autoscaling.TagDescription } -func (asg *AutoScalingGroup) Remove() error { +func (asg *AutoScalingGroup) Remove(_ context.Context) error { params := &autoscaling.DeleteAutoScalingGroupInput{ AutoScalingGroupName: asg.group.AutoScalingGroupName, ForceDelete: aws.Bool(true), diff --git a/resources/autoscaling-launch-configurations.go b/resources/autoscaling-launch-configurations.go new file mode 100644 index 00000000..2790857a --- /dev/null +++ b/resources/autoscaling-launch-configurations.go @@ -0,0 +1,72 @@ +package resources + +import ( + "context" + + "github.com/aws/aws-sdk-go/service/autoscaling" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" +) + +// TODO: review if this should be prefixed with Autoscaling + +const LaunchConfigurationResource = "LaunchConfiguration" + +func init() { + resource.Register(resource.Registration{ + Name: LaunchConfigurationResource, + Scope: nuke.Account, + Lister: &LaunchConfigurationLister{}, + }) +} + +type LaunchConfigurationLister struct{} + +func (l *LaunchConfigurationLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + resources := make([]resource.Resource, 0) + svc := autoscaling.New(opts.Session) + + params := &autoscaling.DescribeLaunchConfigurationsInput{} + err := svc.DescribeLaunchConfigurationsPages(params, + func(page *autoscaling.DescribeLaunchConfigurationsOutput, lastPage bool) bool { + for _, launchConfig := range page.LaunchConfigurations { + resources = append(resources, &LaunchConfiguration{ + svc: svc, + name: launchConfig.LaunchConfigurationName, + }) + } + return !lastPage + }) + + if err != nil { + return nil, err + } + + return resources, nil +} + +type LaunchConfiguration struct { + svc *autoscaling.AutoScaling + name *string +} + +func (c *LaunchConfiguration) Remove(_ context.Context) error { + params := &autoscaling.DeleteLaunchConfigurationInput{ + LaunchConfigurationName: c.name, + } + + _, err := c.svc.DeleteLaunchConfiguration(params) + if err != nil { + return err + } + + return nil +} + +func (c *LaunchConfiguration) String() string { + return *c.name +} diff --git a/resources/autoscaling-launchconfigurations.go b/resources/autoscaling-launchconfigurations.go deleted file mode 100644 index 36b312f5..00000000 --- a/resources/autoscaling-launchconfigurations.go +++ /dev/null @@ -1,55 +0,0 @@ -package resources - -import ( - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/autoscaling" -) - -func init() { - register("LaunchConfiguration", ListLaunchConfigurations) -} - -func ListLaunchConfigurations(s *session.Session) ([]Resource, error) { - resources := make([]Resource, 0) - svc := autoscaling.New(s) - - params := &autoscaling.DescribeLaunchConfigurationsInput{} - err := svc.DescribeLaunchConfigurationsPages(params, - func(page *autoscaling.DescribeLaunchConfigurationsOutput, lastPage bool) bool { - for _, launchconfig := range page.LaunchConfigurations { - resources = append(resources, &LaunchConfiguration{ - svc: svc, - name: launchconfig.LaunchConfigurationName, - }) - } - return !lastPage - }) - - if err != nil { - return nil, err - } - - return resources, nil -} - -type LaunchConfiguration struct { - svc *autoscaling.AutoScaling - name *string -} - -func (launchconfiguration *LaunchConfiguration) Remove() error { - params := &autoscaling.DeleteLaunchConfigurationInput{ - LaunchConfigurationName: launchconfiguration.name, - } - - _, err := launchconfiguration.svc.DeleteLaunchConfiguration(params) - if err != nil { - return err - } - - return nil -} - -func (launchconfiguration *LaunchConfiguration) String() string { - return *launchconfiguration.name -} diff --git a/resources/autoscaling-lifecyclehooks.go b/resources/autoscaling-lifecycle-hooks.go similarity index 64% rename from resources/autoscaling-lifecyclehooks.go rename to resources/autoscaling-lifecycle-hooks.go index fbc3facd..c056d4a9 100644 --- a/resources/autoscaling-lifecyclehooks.go +++ b/resources/autoscaling-lifecycle-hooks.go @@ -1,24 +1,40 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/autoscaling" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +// TODO: review if this should be prefixed with Autoscaling + +const LifecycleHookResource = "LifecycleHook" + func init() { - register("LifecycleHook", ListLifecycleHooks, - mapCloudControl("AWS::AutoScaling::LifecycleHook")) + resource.Register(resource.Registration{ + Name: LifecycleHookResource, + Scope: nuke.Account, + Lister: &LifecycleHookLister{}, + }) } -func ListLifecycleHooks(s *session.Session) ([]Resource, error) { - svc := autoscaling.New(s) +type LifecycleHookLister struct{} + +func (l *LifecycleHookLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := autoscaling.New(opts.Session) asgResp, err := svc.DescribeAutoScalingGroups(&autoscaling.DescribeAutoScalingGroupsInput{}) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, asg := range asgResp.AutoScalingGroups { lchResp, err := svc.DescribeLifecycleHooks(&autoscaling.DescribeLifecycleHooksInput{ AutoScalingGroupName: asg.AutoScalingGroupName, @@ -45,7 +61,7 @@ type LifecycleHook struct { autoScalingGroupName *string } -func (lch *LifecycleHook) Remove() error { +func (lch *LifecycleHook) Remove(_ context.Context) error { params := &autoscaling.DeleteLifecycleHookInput{ AutoScalingGroupName: lch.autoScalingGroupName, LifecycleHookName: lch.lifecycleHookName, diff --git a/resources/autoscalingplans-scalingplans.go b/resources/autoscalingplans-scalingplans.go index 17e9c328..f354ba01 100644 --- a/resources/autoscalingplans-scalingplans.go +++ b/resources/autoscalingplans-scalingplans.go @@ -1,25 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/autoscalingplans" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type AutoScalingPlansScalingPlan struct { - svc *autoscalingplans.AutoScalingPlans - scalingPlanName *string - scalingPlanVersion *int64 -} +const AutoScalingPlansScalingPlanResource = "AutoScalingPlansScalingPlan" func init() { - register("AutoScalingPlansScalingPlan", ListAutoScalingPlansScalingPlans) + resource.Register(resource.Registration{ + Name: AutoScalingPlansScalingPlanResource, + Scope: nuke.Account, + Lister: &AutoScalingPlansScalingPlanLister{}, + }) } -func ListAutoScalingPlansScalingPlans(sess *session.Session) ([]Resource, error) { - svc := autoscalingplans.New(sess) +type AutoScalingPlansScalingPlanLister struct{} + +func (l *AutoScalingPlansScalingPlanLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := autoscalingplans.New(opts.Session) svc.ClientInfo.SigningName = "autoscaling-plans" - resources := []Resource{} + resources := make([]resource.Resource, 0) params := &autoscalingplans.DescribeScalingPlansInput{ MaxResults: aws.Int64(50), @@ -49,8 +58,13 @@ func ListAutoScalingPlansScalingPlans(sess *session.Session) ([]Resource, error) return resources, nil } -func (f *AutoScalingPlansScalingPlan) Remove() error { +type AutoScalingPlansScalingPlan struct { + svc *autoscalingplans.AutoScalingPlans + scalingPlanName *string + scalingPlanVersion *int64 +} +func (f *AutoScalingPlansScalingPlan) Remove(_ context.Context) error { _, err := f.svc.DeleteScalingPlan(&autoscalingplans.DeleteScalingPlanInput{ ScalingPlanName: f.scalingPlanName, ScalingPlanVersion: f.scalingPlanVersion, diff --git a/resources/backup-plans.go b/resources/backup-plans.go index e44e5292..8985a97c 100644 --- a/resources/backup-plans.go +++ b/resources/backup-plans.go @@ -1,11 +1,17 @@ package resources import ( + "context" + "fmt" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/backup" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" "strings" + + "github.com/aws/aws-sdk-go/service/backup" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type BackupPlan struct { @@ -16,19 +22,29 @@ type BackupPlan struct { tags map[string]*string } +const AWSBackupPlanResource = "AWSBackupPlan" + func init() { - register("AWSBackupPlan", ListBackupPlans) + resource.Register(resource.Registration{ + Name: AWSBackupPlanResource, + Scope: nuke.Account, + Lister: &AWSBackupPlanLister{}, + }) } -func ListBackupPlans(sess *session.Session) ([]Resource, error) { - svc := backup.New(sess) +type AWSBackupPlanLister struct{} + +func (l *AWSBackupPlanLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := backup.New(opts.Session) falseValue := false maxBackupsLen := int64(100) params := &backup.ListBackupPlansInput{ IncludeDeleted: &falseValue, MaxResults: &maxBackupsLen, // aws default limit on number of backup plans per account } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { output, err := svc.ListBackupPlans(params) @@ -67,7 +83,7 @@ func (b *BackupPlan) Properties() types.Properties { return properties } -func (b *BackupPlan) Remove() error { +func (b *BackupPlan) Remove(_ context.Context) error { _, err := b.svc.DeleteBackupPlan(&backup.DeleteBackupPlanInput{ BackupPlanId: &b.id, }) diff --git a/resources/backup-recovery-points.go b/resources/backup-recovery-points.go index e948d6d6..c3f0f266 100644 --- a/resources/backup-recovery-points.go +++ b/resources/backup-recovery-points.go @@ -1,10 +1,16 @@ package resources import ( + "context" + "fmt" - "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/backup" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type BackupRecoveryPoint struct { @@ -13,22 +19,32 @@ type BackupRecoveryPoint struct { backupVaultName string } +const AWSBackupRecoveryPointResource = "AWSBackupRecoveryPoint" + func init() { - register("AWSBackupRecoveryPoint", ListBackupRecoveryPoints) + resource.Register(resource.Registration{ + Name: AWSBackupRecoveryPointResource, + Scope: nuke.Account, + Lister: &AWSBackupRecoveryPointLister{}, + }) } -func ListBackupRecoveryPoints(sess *session.Session) ([]Resource, error) { - svc := backup.New(sess) - max_vaults_len := int64(100) +type AWSBackupRecoveryPointLister struct{} + +func (l *AWSBackupRecoveryPointLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := backup.New(opts.Session) + maxVaultsLen := int64(100) params := &backup.ListBackupVaultsInput{ - MaxResults: &max_vaults_len, // aws default limit on number of backup vaults per account + MaxResults: &maxVaultsLen, // aws default limit on number of backup vaults per account } resp, err := svc.ListBackupVaults(params) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, out := range resp.BackupVaultList { recoveryPointsOutput, _ := svc.ListRecoveryPointsByBackupVault(&backup.ListRecoveryPointsByBackupVaultInput{BackupVaultName: out.BackupVaultName}) for _, rp := range recoveryPointsOutput.RecoveryPoints { @@ -49,7 +65,7 @@ func (b *BackupRecoveryPoint) Properties() types.Properties { return properties } -func (b *BackupRecoveryPoint) Remove() error { +func (b *BackupRecoveryPoint) Remove(_ context.Context) error { _, err := b.svc.DeleteRecoveryPoint(&backup.DeleteRecoveryPointInput{ BackupVaultName: &b.backupVaultName, RecoveryPointArn: &b.arn, diff --git a/resources/backup-selections.go b/resources/backup-selections.go index aff71b40..eb8ddb83 100644 --- a/resources/backup-selections.go +++ b/resources/backup-selections.go @@ -1,11 +1,17 @@ package resources import ( + "context" + "fmt" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/backup" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" "strings" + + "github.com/aws/aws-sdk-go/service/backup" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type BackupSelection struct { @@ -15,19 +21,29 @@ type BackupSelection struct { selectionName string } +const AWSBackupSelectionResource = "AWSBackupSelection" + func init() { - register("AWSBackupSelection", ListBackupSelections) + resource.Register(resource.Registration{ + Name: AWSBackupSelectionResource, + Scope: nuke.Account, + Lister: &AWSBackupSelectionLister{}, + }) } -func ListBackupSelections(sess *session.Session) ([]Resource, error) { - svc := backup.New(sess) - false_value := false - max_backups_len := int64(100) +type AWSBackupSelectionLister struct{} + +func (l *AWSBackupSelectionLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := backup.New(opts.Session) + falseValue := false + maxBackupsLen := int64(100) params := &backup.ListBackupPlansInput{ - IncludeDeleted: &false_value, - MaxResults: &max_backups_len, // aws default limit on number of backup plans per account + IncludeDeleted: &falseValue, + MaxResults: &maxBackupsLen, // aws default limit on number of backup plans per account } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { output, err := svc.ListBackupPlans(params) @@ -65,7 +81,7 @@ func (b *BackupSelection) Properties() types.Properties { return properties } -func (b *BackupSelection) Remove() error { +func (b *BackupSelection) Remove(_ context.Context) error { _, err := b.svc.DeleteBackupSelection(&backup.DeleteBackupSelectionInput{ BackupPlanId: &b.planId, SelectionId: &b.selectionId, diff --git a/resources/backup-vaults-access-policies.go b/resources/backup-vaults-access-policies.go index 553efc66..51d499b3 100644 --- a/resources/backup-vaults-access-policies.go +++ b/resources/backup-vaults-access-policies.go @@ -1,7 +1,11 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + + "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/aws/aws-sdk-go/service/backup" ) @@ -10,12 +14,22 @@ type BackupVaultAccessPolicy struct { backupVaultName string } +const AWSBackupVaultAccessPolicyResource = "AWSBackupVaultAccessPolicy" + func init() { - register("AWSBackupVaultAccessPolicy", ListBackupVaultAccessPolicies) + resource.Register(resource.Registration{ + Name: AWSBackupVaultAccessPolicyResource, + Scope: nuke.Account, + Lister: &AWSBackupVaultAccessPolicyLister{}, + }) } -func ListBackupVaultAccessPolicies(sess *session.Session) ([]Resource, error) { - svc := backup.New(sess) +type AWSBackupVaultAccessPolicyLister struct{} + +func (l *AWSBackupVaultAccessPolicyLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := backup.New(opts.Session) maxVaultsLen := int64(100) params := &backup.ListBackupVaultsInput{ MaxResults: &maxVaultsLen, // aws default limit on number of backup vaults per account @@ -26,7 +40,7 @@ func ListBackupVaultAccessPolicies(sess *session.Session) ([]Resource, error) { } // Iterate over backup vaults and add vault policies that exist. - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, out := range resp.BackupVaultList { // Check if the Backup Vault has an Access Policy set resp, err := svc.GetBackupVaultAccessPolicy(&backup.GetBackupVaultAccessPolicyInput{ @@ -57,7 +71,7 @@ func ListBackupVaultAccessPolicies(sess *session.Session) ([]Resource, error) { return resources, nil } -func (b *BackupVaultAccessPolicy) Remove() error { +func (b *BackupVaultAccessPolicy) Remove(_ context.Context) error { // Set the policy to a policy that allows deletion before removal. // // This is required to delete the policy for the automagically created vaults diff --git a/resources/backup-vaults.go b/resources/backup-vaults.go index d428c65e..21a006b9 100644 --- a/resources/backup-vaults.go +++ b/resources/backup-vaults.go @@ -1,10 +1,16 @@ package resources import ( + "context" + "fmt" - "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/backup" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type BackupVault struct { @@ -14,22 +20,32 @@ type BackupVault struct { tags map[string]*string } +const AWSBackupVaultResource = "AWSBackupVault" + func init() { - register("AWSBackupVault", ListBackupVaults) + resource.Register(resource.Registration{ + Name: AWSBackupVaultResource, + Scope: nuke.Account, + Lister: &AWSBackupVaultLister{}, + }) } -func ListBackupVaults(sess *session.Session) ([]Resource, error) { - svc := backup.New(sess) - max_vaults_len := int64(100) +type AWSBackupVaultLister struct{} + +func (l *AWSBackupVaultLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := backup.New(opts.Session) + maxVaultsLen := int64(100) params := &backup.ListBackupVaultsInput{ - MaxResults: &max_vaults_len, // aws default limit on number of backup vaults per account + MaxResults: &maxVaultsLen, // aws default limit on number of backup vaults per account } resp, err := svc.ListBackupVaults(params) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, out := range resp.BackupVaultList { tagsOutput, _ := svc.ListTags(&backup.ListTagsInput{ResourceArn: out.BackupVaultArn}) resources = append(resources, &BackupVault{ @@ -52,7 +68,7 @@ func (b *BackupVault) Properties() types.Properties { return properties } -func (b *BackupVault) Remove() error { +func (b *BackupVault) Remove(_ context.Context) error { _, err := b.svc.DeleteBackupVault(&backup.DeleteBackupVaultInput{ BackupVaultName: &b.name, }) diff --git a/resources/batch-computeenvironmentstates.go b/resources/batch-compute-environment-states.go similarity index 61% rename from resources/batch-computeenvironmentstates.go rename to resources/batch-compute-environment-states.go index cf867b16..d1c0f0f4 100644 --- a/resources/batch-computeenvironmentstates.go +++ b/resources/batch-compute-environment-states.go @@ -1,27 +1,36 @@ package resources import ( + "context" + "fmt" "strings" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/batch" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type BatchComputeEnvironmentState struct { - svc *batch.Batch - computeEnvironmentName *string - state *string -} +const BatchComputeEnvironmentStateResource = "BatchComputeEnvironmentState" func init() { - register("BatchComputeEnvironmentState", ListBatchComputeEnvironmentStates) + resource.Register(resource.Registration{ + Name: BatchComputeEnvironmentStateResource, + Scope: nuke.Account, + Lister: &BatchComputeEnvironmentStateLister{}, + }) } -func ListBatchComputeEnvironmentStates(sess *session.Session) ([]Resource, error) { - svc := batch.New(sess) - resources := []Resource{} +type BatchComputeEnvironmentStateLister struct{} + +func (l *BatchComputeEnvironmentStateLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := batch.New(opts.Session) + resources := make([]resource.Resource, 0) params := &batch.DescribeComputeEnvironmentsInput{ MaxResults: aws.Int64(100), @@ -35,9 +44,9 @@ func ListBatchComputeEnvironmentStates(sess *session.Session) ([]Resource, error for _, computeEnvironment := range output.ComputeEnvironments { resources = append(resources, &BatchComputeEnvironmentState{ - svc: svc, + svc: svc, computeEnvironmentName: computeEnvironment.ComputeEnvironmentName, - state: computeEnvironment.State, + state: computeEnvironment.State, }) } @@ -51,8 +60,13 @@ func ListBatchComputeEnvironmentStates(sess *session.Session) ([]Resource, error return resources, nil } -func (f *BatchComputeEnvironmentState) Remove() error { +type BatchComputeEnvironmentState struct { + svc *batch.Batch + computeEnvironmentName *string + state *string +} +func (f *BatchComputeEnvironmentState) Remove(_ context.Context) error { _, err := f.svc.UpdateComputeEnvironment(&batch.UpdateComputeEnvironmentInput{ ComputeEnvironment: f.computeEnvironmentName, State: aws.String("DISABLED"), diff --git a/resources/batch-computeenvironments.go b/resources/batch-compute-environments.go similarity index 58% rename from resources/batch-computeenvironments.go rename to resources/batch-compute-environments.go index b9908d3e..1ca3c99d 100644 --- a/resources/batch-computeenvironments.go +++ b/resources/batch-compute-environments.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/batch" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type BatchComputeEnvironment struct { - svc *batch.Batch - computeEnvironmentName *string -} +const BatchComputeEnvironmentResource = "BatchComputeEnvironment" func init() { - register("BatchComputeEnvironment", ListBatchComputeEnvironments) + resource.Register(resource.Registration{ + Name: BatchComputeEnvironmentResource, + Scope: nuke.Account, + Lister: &BatchComputeEnvironmentLister{}, + }) } -func ListBatchComputeEnvironments(sess *session.Session) ([]Resource, error) { - svc := batch.New(sess) - resources := []Resource{} +type BatchComputeEnvironmentLister struct{} + +func (l *BatchComputeEnvironmentLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := batch.New(opts.Session) + resources := make([]resource.Resource, 0) params := &batch.DescribeComputeEnvironmentsInput{ MaxResults: aws.Int64(100), @@ -31,7 +41,7 @@ func ListBatchComputeEnvironments(sess *session.Session) ([]Resource, error) { for _, computeEnvironment := range output.ComputeEnvironments { resources = append(resources, &BatchComputeEnvironment{ - svc: svc, + svc: svc, computeEnvironmentName: computeEnvironment.ComputeEnvironmentName, }) } @@ -46,8 +56,12 @@ func ListBatchComputeEnvironments(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *BatchComputeEnvironment) Remove() error { +type BatchComputeEnvironment struct { + svc *batch.Batch + computeEnvironmentName *string +} +func (f *BatchComputeEnvironment) Remove(_ context.Context) error { _, err := f.svc.DeleteComputeEnvironment(&batch.DeleteComputeEnvironmentInput{ ComputeEnvironment: f.computeEnvironmentName, }) diff --git a/resources/batch-jobqueuestates.go b/resources/batch-job-queue-states.go similarity index 63% rename from resources/batch-jobqueuestates.go rename to resources/batch-job-queue-states.go index ed4e3044..890e607d 100644 --- a/resources/batch-jobqueuestates.go +++ b/resources/batch-job-queue-states.go @@ -1,12 +1,17 @@ package resources import ( + "context" + "fmt" "strings" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/batch" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type BatchJobQueueState struct { @@ -15,13 +20,23 @@ type BatchJobQueueState struct { state *string } +const BatchJobQueueStateResource = "BatchJobQueueState" + func init() { - register("BatchJobQueueState", ListBatchJobQueueStates) + resource.Register(resource.Registration{ + Name: BatchJobQueueStateResource, + Scope: nuke.Account, + Lister: &BatchJobQueueStateLister{}, + }) } -func ListBatchJobQueueStates(sess *session.Session) ([]Resource, error) { - svc := batch.New(sess) - resources := []Resource{} +type BatchJobQueueStateLister struct{} + +func (l *BatchJobQueueStateLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := batch.New(opts.Session) + resources := make([]resource.Resource, 0) params := &batch.DescribeJobQueuesInput{ MaxResults: aws.Int64(100), @@ -51,7 +66,7 @@ func ListBatchJobQueueStates(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *BatchJobQueueState) Remove() error { +func (f *BatchJobQueueState) Remove(_ context.Context) error { _, err := f.svc.UpdateJobQueue(&batch.UpdateJobQueueInput{ JobQueue: f.jobQueue, diff --git a/resources/batch-jobqueues.go b/resources/batch-job-queues.go similarity index 58% rename from resources/batch-jobqueues.go rename to resources/batch-job-queues.go index e32bf94c..3339dea7 100644 --- a/resources/batch-jobqueues.go +++ b/resources/batch-job-queues.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/batch" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type BatchJobQueue struct { - svc *batch.Batch - jobQueue *string -} +const BatchJobQueueResource = "BatchJobQueue" func init() { - register("BatchJobQueue", ListBatchJobQueues) + resource.Register(resource.Registration{ + Name: BatchJobQueueResource, + Scope: nuke.Account, + Lister: &BatchJobQueueLister{}, + }) } -func ListBatchJobQueues(sess *session.Session) ([]Resource, error) { - svc := batch.New(sess) - resources := []Resource{} +type BatchJobQueueLister struct{} + +func (l *BatchJobQueueLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := batch.New(opts.Session) + resources := make([]resource.Resource, 0) params := &batch.DescribeJobQueuesInput{ MaxResults: aws.Int64(100), @@ -46,7 +56,12 @@ func ListBatchJobQueues(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *BatchJobQueue) Remove() error { +type BatchJobQueue struct { + svc *batch.Batch + jobQueue *string +} + +func (f *BatchJobQueue) Remove(_ context.Context) error { _, err := f.svc.DeleteJobQueue(&batch.DeleteJobQueueInput{ JobQueue: f.jobQueue, diff --git a/resources/billing-costandusagereports.go b/resources/billing-costandusagereports.go index b0148cbd..e0843123 100644 --- a/resources/billing-costandusagereports.go +++ b/resources/billing-costandusagereports.go @@ -1,16 +1,29 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/costandusagereportservice" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const BillingCostandUsageReportResource = "BillingCostandUsageReport" + func init() { - register("BillingCostandUsageReport", ListBillingCostandUsageReports) + resource.Register(resource.Registration{ + Name: BillingCostandUsageReportResource, + Scope: nuke.Account, + Lister: &BillingCostandUsageReportLister{}, + }) } +type BillingCostandUsageReportLister struct{} + type BillingCostandUsageReport struct { svc *costandusagereportservice.CostandUsageReportService reportName *string @@ -19,8 +32,10 @@ type BillingCostandUsageReport struct { s3Region *string } -func ListBillingCostandUsageReports(sess *session.Session) ([]Resource, error) { - svc := costandusagereportservice.New(sess) +func (l *BillingCostandUsageReportLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := costandusagereportservice.New(opts.Session) params := &costandusagereportservice.DescribeReportDefinitionsInput{ MaxResults: aws.Int64(5), } @@ -36,21 +51,21 @@ func ListBillingCostandUsageReports(sess *session.Session) ([]Resource, error) { return nil, err } - resources := []Resource{} + resources := make([]resource.Resource, 0) for _, report := range reports { resources = append(resources, &BillingCostandUsageReport{ - svc: svc, - reportName: report.ReportName, - s3Bucket: report.S3Bucket, - s3Prefix: report.S3Prefix, - s3Region: report.S3Region, + svc: svc, + reportName: report.ReportName, + s3Bucket: report.S3Bucket, + s3Prefix: report.S3Prefix, + s3Region: report.S3Region, }) } return resources, nil } -func (r *BillingCostandUsageReport) Remove() error { +func (r *BillingCostandUsageReport) Remove(_ context.Context) error { _, err := r.svc.DeleteReportDefinition(&costandusagereportservice.DeleteReportDefinitionInput{ ReportName: r.reportName, }) diff --git a/resources/budgets.go b/resources/budgets.go index 1efd052e..045a29f1 100644 --- a/resources/budgets.go +++ b/resources/budgets.go @@ -1,30 +1,37 @@ package resources import ( - "fmt" + "context" + "fmt" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/budgets" "github.com/aws/aws-sdk-go/service/sts" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const BudgetResource = "Budget" + func init() { - register("Budget", ListBudgets) + resource.Register(resource.Registration{ + Name: BudgetResource, + Scope: nuke.Account, + Lister: &BudgetLister{}, + }) } -type Budget struct { - svc *budgets.Budgets - name *string - budgetType *string - accountId *string -} +type BudgetLister struct{} -func ListBudgets(sess *session.Session) ([]Resource, error) { - svc := budgets.New(sess) +func (l *BudgetLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := budgets.New(opts.Session) - identityOutput, err := sts.New(sess).GetCallerIdentity(nil) + // TODO: modify ListerOpts to include Account to reduce API calls + identityOutput, err := sts.New(opts.Session).GetCallerIdentity(nil) if err != nil { fmt.Printf("sts error: %s \n", err) return nil, err @@ -48,7 +55,7 @@ func ListBudgets(sess *session.Session) ([]Resource, error) { return nil, err } - resources := []Resource{} + var resources []resource.Resource for _, bud := range buds { resources = append(resources, &Budget{ svc: svc, @@ -61,7 +68,14 @@ func ListBudgets(sess *session.Session) ([]Resource, error) { return resources, nil } -func (b *Budget) Remove() error { +type Budget struct { + svc *budgets.Budgets + name *string + budgetType *string + accountId *string +} + +func (b *Budget) Remove(_ context.Context) error { _, err := b.svc.DeleteBudget(&budgets.DeleteBudgetInput{ AccountId: b.accountId, diff --git a/resources/cloud9-environments.go b/resources/cloud9-environments.go index e92fdfb3..a556a806 100644 --- a/resources/cloud9-environments.go +++ b/resources/cloud9-environments.go @@ -1,9 +1,14 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/cloud9" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type Cloud9Environment struct { @@ -11,13 +16,23 @@ type Cloud9Environment struct { environmentID *string } +const Cloud9EnvironmentResource = "Cloud9Environment" + func init() { - register("Cloud9Environment", ListCloud9Environments) + resource.Register(resource.Registration{ + Name: Cloud9EnvironmentResource, + Scope: nuke.Account, + Lister: &Cloud9EnvironmentLister{}, + }) } -func ListCloud9Environments(sess *session.Session) ([]Resource, error) { - svc := cloud9.New(sess) - resources := []Resource{} +type Cloud9EnvironmentLister struct{} + +func (l *Cloud9EnvironmentLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := cloud9.New(opts.Session) + resources := make([]resource.Resource, 0) params := &cloud9.ListEnvironmentsInput{ MaxResults: aws.Int64(25), @@ -46,8 +61,7 @@ func ListCloud9Environments(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *Cloud9Environment) Remove() error { - +func (f *Cloud9Environment) Remove(_ context.Context) error { _, err := f.svc.DeleteEnvironment(&cloud9.DeleteEnvironmentInput{ EnvironmentId: f.environmentID, }) diff --git a/resources/cloudcontrol.go b/resources/cloudcontrol.go index 735d18a4..c9737a76 100644 --- a/resources/cloudcontrol.go +++ b/resources/cloudcontrol.go @@ -1,16 +1,24 @@ package resources import ( + "context" + "encoding/json" "fmt" + "github.com/aws/aws-sdk-go/aws/awserr" + sdkerrors "github.com/ekristen/libnuke/pkg/errors" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/cloudcontrolapi" "github.com/google/uuid" "github.com/pkg/errors" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" "github.com/sirupsen/logrus" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/cloudcontrolapi" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) func init() { @@ -20,13 +28,16 @@ func init() { // // To get an overview of available cloud control resource types run this // command in the repo root: - // go run ./dev/list-cloudcontrol + // go run ./tools/list-cloudcontrol + // + // If there's a resource definition for the resource type, then there's no + // need to define it here as well, you should use the MapCloudControl func + // see ecr-public-repository.go for an example. registerCloudControl("AWS::AppFlow::ConnectorProfile") registerCloudControl("AWS::AppFlow::Flow") registerCloudControl("AWS::AppRunner::Service") registerCloudControl("AWS::ApplicationInsights::Application") registerCloudControl("AWS::Backup::Framework") - registerCloudControl("AWS::ECR::PublicRepository") registerCloudControl("AWS::ECR::PullThroughCacheRule") registerCloudControl("AWS::ECR::RegistryPolicy") registerCloudControl("AWS::ECR::ReplicationConfiguration") @@ -41,50 +52,71 @@ func init() { registerCloudControl("AWS::NetworkFirewall::RuleGroup") } -func NewListCloudControlResource(typeName string) func(*session.Session) ([]Resource, error) { - return func(sess *session.Session) ([]Resource, error) { - svc := cloudcontrolapi.New(sess) +func registerCloudControl(typeName string) { + resource.Register(resource.Registration{ + Name: typeName, + Scope: nuke.Account, + Lister: &CloudControlResourceLister{ + TypeName: typeName, + }, + }, nuke.MapCloudControl(typeName)) +} - params := &cloudcontrolapi.ListResourcesInput{ - TypeName: aws.String(typeName), - } - resources := make([]Resource, 0) - err := svc.ListResourcesPages(params, func(page *cloudcontrolapi.ListResourcesOutput, lastPage bool) bool { - for _, desc := range page.ResourceDescriptions { - identifier := aws.StringValue(desc.Identifier) +type CloudControlResourceLister struct { + TypeName string +} - properties, err := cloudControlParseProperties(aws.StringValue(desc.Properties)) - if err != nil { - logrus. - WithError(errors.WithStack(err)). - WithField("type-name", typeName). - WithField("identifier", identifier). - Error("failed to parse cloud control properties") - continue - } - properties = properties.Set("Identifier", identifier) - resources = append(resources, &CloudControlResource{ - svc: svc, - clientToken: uuid.New().String(), - typeName: typeName, - identifier: identifier, - properties: properties, - }) - } +func (l *CloudControlResourceLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) - return true - }) + svc := cloudcontrolapi.New(opts.Session) - if err != nil { - return nil, err + params := &cloudcontrolapi.ListResourcesInput{ + TypeName: aws.String(l.TypeName), + } + resources := make([]resource.Resource, 0) + if err := svc.ListResourcesPages(params, func(page *cloudcontrolapi.ListResourcesOutput, lastPage bool) bool { + for _, desc := range page.ResourceDescriptions { + identifier := aws.StringValue(desc.Identifier) + + properties, err := cloudControlParseProperties(aws.StringValue(desc.Properties)) + if err != nil { + logrus. + WithError(errors.WithStack(err)). + WithField("type-name", l.TypeName). + WithField("identifier", identifier). + Error("failed to parse cloud control properties") + continue + } + properties = properties.Set("Identifier", identifier) + resources = append(resources, &CloudControlResource{ + svc: svc, + clientToken: uuid.New().String(), + typeName: l.TypeName, + identifier: identifier, + properties: properties, + }) } - return resources, nil + return true + }); err != nil { + // If a Type is not available in a region we shouldn't throw an error for it. + var awsError awserr.Error + if errors.As(err, &awsError) { + if awsError.Code() == "TypeNotFoundException" { + return nil, sdkerrors.ErrSkipRequest( + "cloudformation type not available in region: " + *opts.Session.Config.Region) + } + } + + return nil, err } + + return resources, nil } func cloudControlParseProperties(payload string) (types.Properties, error) { - // Warning: The implementation of this function is not very straighforward, + // Warning: The implementation of this function is not very straightforward, // because the aws-nuke filter functions expect a very rigid structure and // the properties from the Cloud Control API are very dynamic. @@ -152,11 +184,11 @@ func (r *CloudControlResource) String() string { return r.identifier } -func (i *CloudControlResource) Remove() error { - _, err := i.svc.DeleteResource(&cloudcontrolapi.DeleteResourceInput{ - ClientToken: &i.clientToken, - Identifier: &i.identifier, - TypeName: &i.typeName, +func (r *CloudControlResource) Remove(_ context.Context) error { + _, err := r.svc.DeleteResource(&cloudcontrolapi.DeleteResourceInput{ + ClientToken: &r.clientToken, + Identifier: &r.identifier, + TypeName: &r.typeName, }) return err } diff --git a/resources/cloudcontrol_test.go b/resources/cloudcontrol_test.go index 7fc14ced..8c24797c 100644 --- a/resources/cloudcontrol_test.go +++ b/resources/cloudcontrol_test.go @@ -4,7 +4,7 @@ import ( "testing" "github.com/sirupsen/logrus" - "github.com/stretchr/testify/require" + "github.com/stretchr/testify/assert" ) func TestCloudControlParseProperties(t *testing.T) { @@ -13,20 +13,29 @@ func TestCloudControlParseProperties(t *testing.T) { cases := []struct { name string payload string - want string + want []string }{ { name: "ActualEC2VPC", payload: `{"VpcId":"vpc-456","InstanceTenancy":"default","CidrBlockAssociations":["vpc-cidr-assoc-1234", "vpc-cidr-assoc-5678"],"CidrBlock":"10.10.0.0/16","Tags":[{"Value":"Kubernetes VPC","Key":"Name"}]}`, - want: `[CidrBlock: "10.10.0.0/16", CidrBlockAssociations.["vpc-cidr-assoc-1234"]: "true", CidrBlockAssociations.["vpc-cidr-assoc-5678"]: "true", InstanceTenancy: "default", Tags.["Name"]: "Kubernetes VPC", VpcId: "vpc-456"]`, + want: []string{ + `CidrBlock: "10.10.0.0/16"`, + `Tags.["Name"]: "Kubernetes VPC"`, + `VpcId: "vpc-456"`, + `InstanceTenancy: "default"`, + `CidrBlockAssociations.["vpc-cidr-assoc-1234"]: "true"`, + `CidrBlockAssociations.["vpc-cidr-assoc-5678"]: "true"`, + }, }, } for _, tc := range cases { t.Run(tc.name, func(t *testing.T) { result, err := cloudControlParseProperties(tc.payload) - require.NoError(t, err) - require.Equal(t, tc.want, result.String()) + assert.NoError(t, err) + for _, w := range tc.want { + assert.Contains(t, result.String(), w) + } }) } } diff --git a/resources/clouddirectory-directories.go b/resources/clouddirectory-directories.go index 9562563f..770597eb 100644 --- a/resources/clouddirectory-directories.go +++ b/resources/clouddirectory-directories.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/clouddirectory" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type CloudDirectoryDirectory struct { - svc *clouddirectory.CloudDirectory - directoryARN *string -} +const CloudDirectoryDirectoryResource = "CloudDirectoryDirectory" func init() { - register("CloudDirectoryDirectory", ListCloudDirectoryDirectories) + resource.Register(resource.Registration{ + Name: CloudDirectoryDirectoryResource, + Scope: nuke.Account, + Lister: &CloudDirectoryDirectoryLister{}, + }) } -func ListCloudDirectoryDirectories(sess *session.Session) ([]Resource, error) { - svc := clouddirectory.New(sess) - resources := []Resource{} +type CloudDirectoryDirectoryLister struct{} + +func (l *CloudDirectoryDirectoryLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := clouddirectory.New(opts.Session) + resources := make([]resource.Resource, 0) params := &clouddirectory.ListDirectoriesInput{ MaxResults: aws.Int64(30), @@ -47,7 +57,12 @@ func ListCloudDirectoryDirectories(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *CloudDirectoryDirectory) Remove() error { +type CloudDirectoryDirectory struct { + svc *clouddirectory.CloudDirectory + directoryARN *string +} + +func (f *CloudDirectoryDirectory) Remove(_ context.Context) error { _, err := f.svc.DisableDirectory(&clouddirectory.DisableDirectoryInput{ DirectoryArn: f.directoryARN, diff --git a/resources/clouddirectory-schemas.go b/resources/clouddirectory-schemas.go index 8f36db42..72e41ade 100644 --- a/resources/clouddirectory-schemas.go +++ b/resources/clouddirectory-schemas.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/clouddirectory" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type CloudDirectorySchema struct { - svc *clouddirectory.CloudDirectory - schemaARN *string -} +const CloudDirectorySchemaResource = "CloudDirectorySchema" func init() { - register("CloudDirectorySchema", ListCloudDirectorySchemas) + resource.Register(resource.Registration{ + Name: CloudDirectorySchemaResource, + Scope: nuke.Account, + Lister: &CloudDirectorySchemaLister{}, + }) } -func ListCloudDirectorySchemas(sess *session.Session) ([]Resource, error) { - svc := clouddirectory.New(sess) - resources := []Resource{} +type CloudDirectorySchemaLister struct{} + +func (l *CloudDirectorySchemaLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := clouddirectory.New(opts.Session) + resources := make([]resource.Resource, 0) developmentParams := &clouddirectory.ListDevelopmentSchemaArnsInput{ MaxResults: aws.Int64(30), @@ -72,7 +82,12 @@ func ListCloudDirectorySchemas(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *CloudDirectorySchema) Remove() error { +type CloudDirectorySchema struct { + svc *clouddirectory.CloudDirectory + schemaARN *string +} + +func (f *CloudDirectorySchema) Remove(_ context.Context) error { _, err := f.svc.DeleteSchema(&clouddirectory.DeleteSchemaInput{ SchemaArn: f.schemaARN, diff --git a/resources/cloudformation-stack.go b/resources/cloudformation-stack.go index ce194d64..f2cee74f 100644 --- a/resources/cloudformation-stack.go +++ b/resources/cloudformation-stack.go @@ -1,31 +1,48 @@ package resources import ( + "context" + "errors" "strings" "time" + "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/cloudformation" "github.com/aws/aws-sdk-go/service/cloudformation/cloudformationiface" - "github.com/rebuy-de/aws-nuke/v2/pkg/config" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" - "github.com/sirupsen/logrus" + + liberrors "github.com/ekristen/libnuke/pkg/errors" + "github.com/ekristen/libnuke/pkg/featureflag" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -const CLOUDFORMATION_MAX_DELETE_ATTEMPT = 3 +const CloudformationMaxDeleteAttempt = 3 + +const CloudFormationStackResource = "CloudFormationStack" func init() { - register("CloudFormationStack", ListCloudFormationStacks) + resource.Register(resource.Registration{ + Name: CloudFormationStackResource, + Scope: nuke.Account, + Lister: &CloudFormationStackLister{}, + }) } -func ListCloudFormationStacks(sess *session.Session) ([]Resource, error) { - svc := cloudformation.New(sess) +type CloudFormationStackLister struct{} + +func (l *CloudFormationStackLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := cloudformation.New(opts.Session) params := &cloudformation.DescribeStacksInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { resp, err := svc.DescribeStacks(params) @@ -33,13 +50,10 @@ func ListCloudFormationStacks(sess *session.Session) ([]Resource, error) { return nil, err } for _, stack := range resp.Stacks { - if aws.StringValue(stack.ParentId) != "" { - continue - } resources = append(resources, &CloudFormationStack{ svc: svc, stack: stack, - maxDeleteAttempts: CLOUDFORMATION_MAX_DELETE_ATTEMPT, + maxDeleteAttempts: CloudformationMaxDeleteAttempt, }) } @@ -57,24 +71,34 @@ type CloudFormationStack struct { svc cloudformationiface.CloudFormationAPI stack *cloudformation.Stack maxDeleteAttempts int - featureFlags config.FeatureFlags + featureFlags *featureflag.FeatureFlags } -func (cfs *CloudFormationStack) FeatureFlags(ff config.FeatureFlags) { +func (cfs *CloudFormationStack) FeatureFlags(ff *featureflag.FeatureFlags) { cfs.featureFlags = ff } -func (cfs *CloudFormationStack) Remove() error { +func (cfs *CloudFormationStack) Remove(_ context.Context) error { return cfs.removeWithAttempts(0) } func (cfs *CloudFormationStack) removeWithAttempts(attempt int) error { + ffddpCFS, err := cfs.featureFlags.Get("DisableDeletionProtection_CloudformationStack") + if err != nil { + return err + } + if err := cfs.doRemove(); err != nil { + // TODO: pass logrus in via ListerOpts so that it can be used here instead of global + logrus.Errorf("CloudFormationStack stackName=%s attempt=%d maxAttempts=%d delete failed: %s", *cfs.stack.StackName, attempt, cfs.maxDeleteAttempts, err.Error()) - awsErr, ok := err.(awserr.Error) + + var awsErr awserr.Error + ok := errors.As(err, &awsErr) if ok && awsErr.Code() == "ValidationError" && awsErr.Message() == "Stack ["+*cfs.stack.StackName+"] cannot be deleted while TerminationProtection is enabled" { - if cfs.featureFlags.DisableDeletionProtection.CloudformationStack { + + if ffddpCFS.Enabled() { logrus.Infof("CloudFormationStack stackName=%s attempt=%d maxAttempts=%d updating termination protection", *cfs.stack.StackName, attempt, cfs.maxDeleteAttempts) _, err = cfs.svc.UpdateTerminationProtection(&cloudformation.UpdateTerminationProtectionInput{ EnableTerminationProtection: aws.Bool(false), @@ -89,7 +113,7 @@ func (cfs *CloudFormationStack) removeWithAttempts(attempt int) error { } } if attempt >= cfs.maxDeleteAttempts { - return errors.New("CFS might not be deleted after this run.") + return errors.New("CFS might not be deleted after this run") } else { return cfs.removeWithAttempts(attempt + 1) } @@ -98,12 +122,39 @@ func (cfs *CloudFormationStack) removeWithAttempts(attempt int) error { } } +func GetParentStack(svc cloudformationiface.CloudFormationAPI, stackId string) (*cloudformation.Stack, error) { + o, err := svc.DescribeStacks(&cloudformation.DescribeStacksInput{}) + if err != nil { + return nil, err + } + + for _, o := range o.Stacks { + if *o.StackId == stackId { + return o, nil + } + } + + return nil, nil +} + func (cfs *CloudFormationStack) doRemove() error { + if cfs.stack.ParentId != nil { + p, err := GetParentStack(cfs.svc, *cfs.stack.ParentId) + if err != nil { + return err + } + + if p != nil { + return liberrors.ErrHoldResource("waiting for parent stack") + } + } + o, err := cfs.svc.DescribeStacks(&cloudformation.DescribeStacksInput{ StackName: cfs.stack.StackName, }) if err != nil { - if awsErr, ok := err.(awserr.Error); ok { + var awsErr awserr.Error + if errors.As(err, &awsErr) { if awsErr.Code() == "ValidationFailed" && strings.HasSuffix(awsErr.Message(), " does not exist") { logrus.Infof("CloudFormationStack stackName=%s no longer exists", *cfs.stack.StackName) return nil @@ -123,7 +174,7 @@ func (cfs *CloudFormationStack) doRemove() error { }) } else if *stack.StackStatus == cloudformation.StackStatusDeleteFailed { logrus.Infof("CloudFormationStack stackName=%s delete failed. Attempting to retain and delete stack", *cfs.stack.StackName) - // This means the CFS has undeleteable resources. + // This means the CFS has undetectable resources. // In order to move on with nuking, we retain them in the deletion. retainableResources, err := cfs.svc.ListStackResources(&cloudformation.ListStackResourcesInput{ StackName: cfs.stack.StackName, diff --git a/resources/cloudformation-stack_test.go b/resources/cloudformation-stack_test.go index cd261914..8825c682 100644 --- a/resources/cloudformation-stack_test.go +++ b/resources/cloudformation-stack_test.go @@ -1,14 +1,20 @@ package resources import ( + "context" "testing" + "github.com/golang/mock/gomock" + "github.com/gotidy/ptr" + "github.com/stretchr/testify/assert" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/service/cloudformation" - "github.com/golang/mock/gomock" - "github.com/rebuy-de/aws-nuke/v2/mocks/mock_cloudformationiface" - "github.com/stretchr/testify/assert" + + "github.com/ekristen/libnuke/pkg/featureflag" + + "github.com/ekristen/aws-nuke/mocks/mock_cloudformationiface" ) func TestCloudformationStack_Remove_StackAlreadyDeleted(t *testing.T) { @@ -23,8 +29,11 @@ func TestCloudformationStack_Remove_StackAlreadyDeleted(t *testing.T) { stack: &cloudformation.Stack{ StackName: aws.String("foobar"), }, + featureFlags: &featureflag.FeatureFlags{}, } + stack.featureFlags.New("DisableDeletionProtection_CloudformationStack", ptr.Bool(true), ptr.Bool(true)) + mockCloudformation.EXPECT().DescribeStacks(gomock.Eq(&cloudformation.DescribeStacksInput{ StackName: aws.String("foobar"), })).Return(&cloudformation.DescribeStacksOutput{ @@ -35,7 +44,7 @@ func TestCloudformationStack_Remove_StackAlreadyDeleted(t *testing.T) { }, }, nil) - err := stack.Remove() + err := stack.Remove(context.TODO()) a.Nil(err) } @@ -50,14 +59,16 @@ func TestCloudformationStack_Remove_StackDoesNotExist(t *testing.T) { svc: mockCloudformation, stack: &cloudformation.Stack{ StackName: aws.String("foobar"), - }, + }, featureFlags: &featureflag.FeatureFlags{}, } + stack.featureFlags.New("DisableDeletionProtection_CloudformationStack", ptr.Bool(true), ptr.Bool(true)) + mockCloudformation.EXPECT().DescribeStacks(gomock.Eq(&cloudformation.DescribeStacksInput{ StackName: aws.String("foobar"), })).Return(nil, awserr.New("ValidationFailed", "Stack with id foobar does not exist", nil)) - err := stack.Remove() + err := stack.Remove(context.TODO()) a.Nil(err) } @@ -73,8 +84,11 @@ func TestCloudformationStack_Remove_DeleteFailed(t *testing.T) { stack: &cloudformation.Stack{ StackName: aws.String("foobar"), }, + featureFlags: &featureflag.FeatureFlags{}, } + stack.featureFlags.New("DisableDeletionProtection_CloudformationStack", ptr.Bool(true), ptr.Bool(true)) + gomock.InOrder( mockCloudformation.EXPECT().DescribeStacks(gomock.Eq(&cloudformation.DescribeStacksInput{ StackName: aws.String("foobar"), @@ -110,7 +124,7 @@ func TestCloudformationStack_Remove_DeleteFailed(t *testing.T) { })).Return(nil), ) - err := stack.Remove() + err := stack.Remove(context.TODO()) a.Nil(err) } @@ -127,8 +141,11 @@ func TestCloudformationStack_Remove_DeleteInProgress(t *testing.T) { stack: &cloudformation.Stack{ StackName: aws.String("foobar"), }, + featureFlags: &featureflag.FeatureFlags{}, } + stack.featureFlags.New("DisableDeletionProtection_CloudformationStack", ptr.Bool(true), ptr.Bool(true)) + gomock.InOrder( mockCloudformation.EXPECT().DescribeStacks(gomock.Eq(&cloudformation.DescribeStacksInput{ StackName: aws.String("foobar"), @@ -145,7 +162,7 @@ func TestCloudformationStack_Remove_DeleteInProgress(t *testing.T) { })).Return(nil), ) - err := stack.Remove() + err := stack.Remove(context.TODO()) a.Nil(err) } @@ -174,8 +191,11 @@ func TestCloudformationStack_Remove_Stack_InCompletedStatus(t *testing.T) { stack: &cloudformation.Stack{ StackName: aws.String("foobar"), }, + featureFlags: &featureflag.FeatureFlags{}, } + stack.featureFlags.New("DisableDeletionProtection_CloudformationStack", ptr.Bool(true), ptr.Bool(true)) + gomock.InOrder( mockCloudformation.EXPECT().DescribeStacks(gomock.Eq(&cloudformation.DescribeStacksInput{ StackName: aws.String("foobar"), @@ -196,7 +216,7 @@ func TestCloudformationStack_Remove_Stack_InCompletedStatus(t *testing.T) { })).Return(nil), ) - err := stack.Remove() + err := stack.Remove(context.TODO()) a.Nil(err) }) } @@ -221,8 +241,11 @@ func TestCloudformationStack_Remove_Stack_CreateInProgress(t *testing.T) { stack: &cloudformation.Stack{ StackName: aws.String("foobar"), }, + featureFlags: &featureflag.FeatureFlags{}, } + stack.featureFlags.New("DisableDeletionProtection_CloudformationStack", ptr.Bool(true), ptr.Bool(true)) + gomock.InOrder( mockCloudformation.EXPECT().DescribeStacks(gomock.Eq(&cloudformation.DescribeStacksInput{ StackName: aws.String("foobar"), @@ -247,7 +270,7 @@ func TestCloudformationStack_Remove_Stack_CreateInProgress(t *testing.T) { })).Return(nil), ) - err := stack.Remove() + err := stack.Remove(context.TODO()) a.Nil(err) }) } @@ -273,8 +296,11 @@ func TestCloudformationStack_Remove_Stack_UpdateInProgress(t *testing.T) { stack: &cloudformation.Stack{ StackName: aws.String("foobar"), }, + featureFlags: &featureflag.FeatureFlags{}, } + stack.featureFlags.New("DisableDeletionProtection_CloudformationStack", ptr.Bool(true), ptr.Bool(true)) + gomock.InOrder( mockCloudformation.EXPECT().DescribeStacks(gomock.Eq(&cloudformation.DescribeStacksInput{ StackName: aws.String("foobar"), @@ -299,7 +325,7 @@ func TestCloudformationStack_Remove_Stack_UpdateInProgress(t *testing.T) { })).Return(nil), ) - err := stack.Remove() + err := stack.Remove(context.TODO()) a.Nil(err) }) } diff --git a/resources/cloudformation-stackset.go b/resources/cloudformation-stackset.go index d1631816..04f72e30 100644 --- a/resources/cloudformation-stackset.go +++ b/resources/cloudformation-stackset.go @@ -1,30 +1,44 @@ package resources import ( + "context" + + "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/libnuke/pkg/resource" + "fmt" "strings" "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/cloudformation" "github.com/aws/aws-sdk-go/service/cloudformation/cloudformationiface" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + "github.com/ekristen/libnuke/pkg/types" "github.com/sirupsen/logrus" ) +const CloudFormationStackSetResource = "CloudFormationStackSet" + func init() { - register("CloudFormationStackSet", ListCloudFormationStackSets, - mapCloudControl("AWS::CloudFormation::StackSet")) + resource.Register(resource.Registration{ + Name: CloudFormationStackSetResource, + Scope: nuke.Account, + Lister: &CloudFormationStackSetLister{}, + }) } -func ListCloudFormationStackSets(sess *session.Session) ([]Resource, error) { - svc := cloudformation.New(sess) +type CloudFormationStackSetLister struct{} + +func (l *CloudFormationStackSetLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := cloudformation.New(opts.Session) params := &cloudformation.ListStackSetsInput{ Status: aws.String(cloudformation.StackSetStatusActive), } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { resp, err := svc.ListStackSets(params) @@ -132,7 +146,7 @@ func (cfs *CloudFormationStackSet) deleteStackInstances(accountId string, region return cfs.waitForStackSetOperation(*result.OperationId) } -func (cfs *CloudFormationStackSet) Remove() error { +func (cfs *CloudFormationStackSet) Remove(_ context.Context) error { accounts, err := cfs.findStackInstances() if err != nil { return err diff --git a/resources/cloudformation-stackset_test.go b/resources/cloudformation-stackset_test.go index 26f13968..f07e5798 100644 --- a/resources/cloudformation-stackset_test.go +++ b/resources/cloudformation-stackset_test.go @@ -1,13 +1,16 @@ package resources import ( + "context" "testing" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/cloudformation" "github.com/golang/mock/gomock" - "github.com/rebuy-de/aws-nuke/v2/mocks/mock_cloudformationiface" "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/cloudformation" + + "github.com/ekristen/aws-nuke/mocks/mock_cloudformationiface" ) func TestCloudformationStackSet_Remove(t *testing.T) { @@ -70,7 +73,7 @@ func TestCloudformationStackSet_Remove(t *testing.T) { StackSetName: aws.String("foobar"), })).Return(&cloudformation.DeleteStackSetOutput{}, nil) - err := stackSet.Remove() + err := stackSet.Remove(context.TODO()) a.Nil(err) } @@ -145,7 +148,7 @@ func TestCloudformationStackSet_Remove_MultipleAccounts(t *testing.T) { StackSetName: aws.String("foobar"), })).Return(&cloudformation.DeleteStackSetOutput{}, nil) - err := stackSet.Remove() + err := stackSet.Remove(context.TODO()) a.Nil(err) } @@ -192,6 +195,6 @@ func TestCloudformationStackSet_Remove_DeleteStackInstanceFailed(t *testing.T) { }, }, nil) - err := stackSet.Remove() + err := stackSet.Remove(context.TODO()) a.EqualError(err, "unable to delete stackSet=foobar operationId=o1 status=FAILED") } diff --git a/resources/cloudformation-type.go b/resources/cloudformation-type.go index 4c43eb4b..3c349c0f 100644 --- a/resources/cloudformation-type.go +++ b/resources/cloudformation-type.go @@ -1,23 +1,40 @@ package resources import ( + "context" + "fmt" - "github.com/aws/aws-sdk-go/aws/session" + + "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/service/cloudformation" "github.com/aws/aws-sdk-go/service/cloudformation/cloudformationiface" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" - "github.com/sirupsen/logrus" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const CloudFormationTypeResource = "CloudFormationType" + func init() { - register("CloudFormationType", ListCloudFormationTypes) + resource.Register(resource.Registration{ + Name: CloudFormationTypeResource, + Scope: nuke.Account, + Lister: &CloudFormationTypeLister{}, + }) } -func ListCloudFormationTypes(sess *session.Session) ([]Resource, error) { - svc := cloudformation.New(sess) +type CloudFormationTypeLister struct{} + +func (l *CloudFormationTypeLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := cloudformation.New(opts.Session) params := &cloudformation.ListTypesInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { resp, err := svc.ListTypes(params) @@ -67,7 +84,7 @@ func (cfs *CloudFormationType) findAllVersionSummaries() ([]*cloudformation.Type } } -func (cfs *CloudFormationType) Remove() error { +func (cfs *CloudFormationType) Remove(_ context.Context) error { typeVersionSummaries, loadErr := cfs.findAllVersionSummaries() if loadErr != nil { return loadErr @@ -91,7 +108,7 @@ func (cfs *CloudFormationType) Remove() error { } if failed { - return fmt.Errorf("Unable to remove all CloudFormationType versions arn=%s", *cfs.typeSummary.TypeArn) + return fmt.Errorf("unable to remove all CloudFormationType versions arn=%s", *cfs.typeSummary.TypeArn) } _, err := cfs.svc.DeregisterType(&cloudformation.DeregisterTypeInput{ diff --git a/resources/cloudformation-type_test.go b/resources/cloudformation-type_test.go index 6074cbc5..67b6ded0 100644 --- a/resources/cloudformation-type_test.go +++ b/resources/cloudformation-type_test.go @@ -1,13 +1,15 @@ package resources import ( + "context" "testing" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/cloudformation" "github.com/golang/mock/gomock" - "github.com/rebuy-de/aws-nuke/v2/mocks/mock_cloudformationiface" "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/cloudformation" + "github.com/ekristen/aws-nuke/mocks/mock_cloudformationiface" ) func TestCloudformationType_Remove(t *testing.T) { @@ -60,7 +62,6 @@ func TestCloudformationType_Remove(t *testing.T) { Arn: aws.String("foobar"), }) - err := cfnType.Remove() + err := cfnType.Remove(context.TODO()) a.Nil(err) - } diff --git a/resources/cloudfront-distributiondeployments.go b/resources/cloudfront-distribution-deployments.go similarity index 67% rename from resources/cloudfront-distributiondeployments.go rename to resources/cloudfront-distribution-deployments.go index 168f0acb..9507ed6f 100644 --- a/resources/cloudfront-distributiondeployments.go +++ b/resources/cloudfront-distribution-deployments.go @@ -1,11 +1,16 @@ package resources import ( + "context" + "fmt" + "github.com/gotidy/ptr" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/cloudfront" + + "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/libnuke/pkg/resource" ) type CloudFrontDistributionDeployment struct { @@ -16,14 +21,24 @@ type CloudFrontDistributionDeployment struct { status string } +const CloudFrontDistributionDeploymentResource = "CloudFrontDistributionDeployment" + func init() { - register("CloudFrontDistributionDeployment", ListCloudFrontDistributionDeployments) + resource.Register(resource.Registration{ + Name: CloudFrontDistributionDeploymentResource, + Scope: nuke.Account, + Lister: &CloudFrontDistributionDeploymentLister{}, + }) } -func ListCloudFrontDistributionDeployments(sess *session.Session) ([]Resource, error) { - svc := cloudfront.New(sess) - resources := []Resource{} - distributions := []*cloudfront.DistributionSummary{} +type CloudFrontDistributionDeploymentLister struct{} + +func (l *CloudFrontDistributionDeploymentLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := cloudfront.New(opts.Session) + resources := make([]resource.Resource, 0) + var distributions []*cloudfront.DistributionSummary params := &cloudfront.ListDistributionsInput{ MaxItems: aws.Int64(25), @@ -59,15 +74,14 @@ func ListCloudFrontDistributionDeployments(sess *session.Session) ([]Resource, e distributionID: resp.Distribution.Id, eTag: resp.ETag, distributionConfig: resp.Distribution.DistributionConfig, - status: UnPtrString(resp.Distribution.Status, "unknown"), + status: ptr.ToString(resp.Distribution.Status), }) } return resources, nil } -func (f *CloudFrontDistributionDeployment) Remove() error { - +func (f *CloudFrontDistributionDeployment) Remove(_ context.Context) error { f.distributionConfig.Enabled = aws.Bool(false) _, err := f.svc.UpdateDistribution(&cloudfront.UpdateDistributionInput{ diff --git a/resources/cloudfront-distributions.go b/resources/cloudfront-distributions.go index a85cee29..69e58450 100644 --- a/resources/cloudfront-distributions.go +++ b/resources/cloudfront-distributions.go @@ -1,29 +1,39 @@ package resources import ( + "context" + "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/cloudfront" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type CloudFrontDistribution struct { - svc *cloudfront.CloudFront - ID *string - status *string - lastModifiedTime *time.Time - tags []*cloudfront.Tag -} +const CloudFrontDistributionResource = "CloudFrontDistribution" func init() { - register("CloudFrontDistribution", ListCloudFrontDistributions) + resource.Register(resource.Registration{ + Name: CloudFrontDistributionResource, + Scope: nuke.Account, + Lister: &CloudFrontDistributionLister{}, + DependsOn: []string{ + CloudFrontDistributionDeploymentResource, + }, + }) } -func ListCloudFrontDistributions(sess *session.Session) ([]Resource, error) { - svc := cloudfront.New(sess) - resources := []Resource{} +type CloudFrontDistributionLister struct{} + +func (l *CloudFrontDistributionLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := cloudfront.New(opts.Session) + resources := make([]resource.Resource, 0) params := &cloudfront.ListDistributionsInput{ MaxItems: aws.Int64(25), @@ -62,6 +72,14 @@ func ListCloudFrontDistributions(sess *session.Session) ([]Resource, error) { return resources, nil } +type CloudFrontDistribution struct { + svc *cloudfront.CloudFront + ID *string + status *string + lastModifiedTime *time.Time + tags []*cloudfront.Tag +} + func (f *CloudFrontDistribution) Properties() types.Properties { properties := types.NewProperties(). Set("LastModifiedTime", f.lastModifiedTime.Format(time.RFC3339)) @@ -72,8 +90,7 @@ func (f *CloudFrontDistribution) Properties() types.Properties { return properties } -func (f *CloudFrontDistribution) Remove() error { - +func (f *CloudFrontDistribution) Remove(_ context.Context) error { // Get Existing eTag resp, err := f.svc.GetDistributionConfig(&cloudfront.GetDistributionConfigInput{ Id: f.ID, diff --git a/resources/cloudfront-function.go b/resources/cloudfront-function.go index 3be06d6f..0037f7dc 100644 --- a/resources/cloudfront-function.go +++ b/resources/cloudfront-function.go @@ -1,24 +1,33 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/cloudfront" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type CloudFrontFunction struct { - svc *cloudfront.CloudFront - name *string - stage *string -} +const CloudFrontFunctionResource = "CloudFrontFunction" func init() { - register("CloudFrontFunction", ListCloudFrontFunctions) + resource.Register(resource.Registration{ + Name: CloudFrontFunctionResource, + Scope: nuke.Account, + Lister: &CloudFrontFunctionLister{}, + }) } -func ListCloudFrontFunctions(sess *session.Session) ([]Resource, error) { - svc := cloudfront.New(sess) - resources := []Resource{} +type CloudFrontFunctionLister struct{} + +func (l *CloudFrontFunctionLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := cloudfront.New(opts.Session) + resources := make([]resource.Resource, 0) params := &cloudfront.ListFunctionsInput{} for { @@ -45,7 +54,13 @@ func ListCloudFrontFunctions(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *CloudFrontFunction) Remove() error { +type CloudFrontFunction struct { + svc *cloudfront.CloudFront + name *string + stage *string +} + +func (f *CloudFrontFunction) Remove(_ context.Context) error { resp, err := f.svc.GetFunction(&cloudfront.GetFunctionInput{ Name: f.name, Stage: f.stage, diff --git a/resources/cloudfront-origin-access-control.go b/resources/cloudfront-origin-access-control.go index 7ff6262f..4fb4bb82 100644 --- a/resources/cloudfront-origin-access-control.go +++ b/resources/cloudfront-origin-access-control.go @@ -1,23 +1,33 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/cloudfront" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type CloudFrontOriginAccessControl struct { - svc *cloudfront.CloudFront - ID *string -} +const CloudFrontOriginAccessControlResource = "CloudFrontOriginAccessControl" func init() { - register("CloudFrontOriginAccessControl", ListCloudFrontOriginAccessControls) + resource.Register(resource.Registration{ + Name: CloudFrontOriginAccessControlResource, + Scope: nuke.Account, + Lister: &CloudFrontOriginAccessControlLister{}, + }) } -func ListCloudFrontOriginAccessControls(sess *session.Session) ([]Resource, error) { - svc := cloudfront.New(sess) - resources := []Resource{} +type CloudFrontOriginAccessControlLister struct{} + +func (l *CloudFrontOriginAccessControlLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := cloudfront.New(opts.Session) + resources := make([]resource.Resource, 0) params := &cloudfront.ListOriginAccessControlsInput{} for { @@ -43,7 +53,12 @@ func ListCloudFrontOriginAccessControls(sess *session.Session) ([]Resource, erro return resources, nil } -func (f *CloudFrontOriginAccessControl) Remove() error { +type CloudFrontOriginAccessControl struct { + svc *cloudfront.CloudFront + ID *string +} + +func (f *CloudFrontOriginAccessControl) Remove(_ context.Context) error { resp, err := f.svc.GetOriginAccessControl(&cloudfront.GetOriginAccessControlInput{ Id: f.ID, }) diff --git a/resources/cloudfront-origin-access-identities.go b/resources/cloudfront-origin-access-identities.go index 375121f6..2c071a5d 100644 --- a/resources/cloudfront-origin-access-identities.go +++ b/resources/cloudfront-origin-access-identities.go @@ -1,58 +1,73 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/cloudfront" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + "context" + + "github.com/aws/aws-sdk-go/service/cloudfront" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type CloudFrontOriginAccessIdentity struct { - svc *cloudfront.CloudFront - ID *string -} +const CloudFrontOriginAccessIdentityResource = "CloudFrontOriginAccessIdentity" func init() { - register("CloudFrontOriginAccessIdentity", ListCloudFrontOriginAccessIdentities) + resource.Register(resource.Registration{ + Name: CloudFrontOriginAccessIdentityResource, + Scope: nuke.Account, + Lister: &CloudFrontOriginAccessIdentityLister{}, + }) +} + +type CloudFrontOriginAccessIdentityLister struct{} + +func (l *CloudFrontOriginAccessIdentityLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := cloudfront.New(opts.Session) + resources := make([]resource.Resource, 0) + + for { + resp, err := svc.ListCloudFrontOriginAccessIdentities(nil) + if err != nil { + return nil, err + } + + for _, item := range resp.CloudFrontOriginAccessIdentityList.Items { + resources = append(resources, &CloudFrontOriginAccessIdentity{ + svc: svc, + ID: item.Id, + }) + } + return resources, nil + } } -func ListCloudFrontOriginAccessIdentities(sess *session.Session) ([]Resource, error) { - svc := cloudfront.New(sess) - resources := []Resource{} - - for { - resp, err := svc.ListCloudFrontOriginAccessIdentities(nil) - if err != nil { - return nil, err - } - - for _, item := range resp.CloudFrontOriginAccessIdentityList.Items { - resources = append(resources,&CloudFrontOriginAccessIdentity{ - svc: svc, - ID: item.Id, - }) - } - return resources, nil - } +type CloudFrontOriginAccessIdentity struct { + svc *cloudfront.CloudFront + ID *string } -func (f *CloudFrontOriginAccessIdentity) Remove() error { - resp, err := f.svc.GetCloudFrontOriginAccessIdentity(&cloudfront.GetCloudFrontOriginAccessIdentityInput{ - Id: f.ID, - }) - if err != nil { - return err - } +func (f *CloudFrontOriginAccessIdentity) Remove(_ context.Context) error { + resp, err := f.svc.GetCloudFrontOriginAccessIdentity(&cloudfront.GetCloudFrontOriginAccessIdentityInput{ + Id: f.ID, + }) + if err != nil { + return err + } - _, err = f.svc.DeleteCloudFrontOriginAccessIdentity(&cloudfront.DeleteCloudFrontOriginAccessIdentityInput{ - Id: f.ID, - IfMatch: resp.ETag, - }) + _, err = f.svc.DeleteCloudFrontOriginAccessIdentity(&cloudfront.DeleteCloudFrontOriginAccessIdentityInput{ + Id: f.ID, + IfMatch: resp.ETag, + }) - return err + return err } func (f *CloudFrontOriginAccessIdentity) Properties() types.Properties { - properties := types.NewProperties() - properties.Set("ID", f.ID) - return properties + properties := types.NewProperties() + properties.Set("ID", f.ID) + return properties } diff --git a/resources/cloudhsmv2-cluster.go b/resources/cloudhsmv2-cluster.go index 2e03d0ee..557f8b47 100644 --- a/resources/cloudhsmv2-cluster.go +++ b/resources/cloudhsmv2-cluster.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/cloudhsmv2" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type CloudHSMV2Cluster struct { - svc *cloudhsmv2.CloudHSMV2 - clusterID *string -} +const CloudHSMV2ClusterResource = "CloudHSMV2Cluster" func init() { - register("CloudHSMV2Cluster", ListCloudHSMV2Clusters) + resource.Register(resource.Registration{ + Name: CloudHSMV2ClusterResource, + Scope: nuke.Account, + Lister: &CloudHSMV2ClusterLister{}, + }) } -func ListCloudHSMV2Clusters(sess *session.Session) ([]Resource, error) { - svc := cloudhsmv2.New(sess) - resources := []Resource{} +type CloudHSMV2ClusterLister struct{} + +func (l *CloudHSMV2ClusterLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := cloudhsmv2.New(opts.Session) + resources := make([]resource.Resource, 0) params := &cloudhsmv2.DescribeClustersInput{ MaxResults: aws.Int64(25), @@ -46,8 +56,12 @@ func ListCloudHSMV2Clusters(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *CloudHSMV2Cluster) Remove() error { +type CloudHSMV2Cluster struct { + svc *cloudhsmv2.CloudHSMV2 + clusterID *string +} +func (f *CloudHSMV2Cluster) Remove(_ context.Context) error { _, err := f.svc.DeleteCluster(&cloudhsmv2.DeleteClusterInput{ ClusterId: f.clusterID, }) diff --git a/resources/cloudhsmv2-clusterhsms.go b/resources/cloudhsmv2-clusterhsms.go index b2e12491..1f6b7cdf 100644 --- a/resources/cloudhsmv2-clusterhsms.go +++ b/resources/cloudhsmv2-clusterhsms.go @@ -1,24 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/cloudhsmv2" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type CloudHSMV2ClusterHSM struct { - svc *cloudhsmv2.CloudHSMV2 - clusterID *string - hsmID *string -} +const CloudHSMV2ClusterHSMResource = "CloudHSMV2ClusterHSM" func init() { - register("CloudHSMV2ClusterHSM", ListCloudHSMV2ClusterHSMs) + resource.Register(resource.Registration{ + Name: CloudHSMV2ClusterHSMResource, + Scope: nuke.Account, + Lister: &CloudHSMV2ClusterHSMLister{}, + }) } -func ListCloudHSMV2ClusterHSMs(sess *session.Session) ([]Resource, error) { - svc := cloudhsmv2.New(sess) - resources := []Resource{} +type CloudHSMV2ClusterHSMLister struct{} + +func (l *CloudHSMV2ClusterHSMLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := cloudhsmv2.New(opts.Session) + resources := make([]resource.Resource, 0) params := &cloudhsmv2.DescribeClustersInput{ MaxResults: aws.Int64(25), @@ -51,8 +60,13 @@ func ListCloudHSMV2ClusterHSMs(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *CloudHSMV2ClusterHSM) Remove() error { +type CloudHSMV2ClusterHSM struct { + svc *cloudhsmv2.CloudHSMV2 + clusterID *string + hsmID *string +} +func (f *CloudHSMV2ClusterHSM) Remove(_ context.Context) error { _, err := f.svc.DeleteHsm(&cloudhsmv2.DeleteHsmInput{ ClusterId: f.clusterID, HsmId: f.hsmID, diff --git a/resources/cloudsearch-domains.go b/resources/cloudsearch-domains.go index 7d718ecf..c7b676ed 100644 --- a/resources/cloudsearch-domains.go +++ b/resources/cloudsearch-domains.go @@ -1,21 +1,31 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/cloudsearch" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type CloudSearchDomain struct { - svc *cloudsearch.CloudSearch - domainName *string -} +const CloudSearchDomainResource = "CloudSearchDomain" func init() { - register("CloudSearchDomain", ListCloudSearchDomains) + resource.Register(resource.Registration{ + Name: CloudSearchDomainResource, + Scope: nuke.Account, + Lister: &CloudSearchDomainLister{}, + }) } -func ListCloudSearchDomains(sess *session.Session) ([]Resource, error) { - svc := cloudsearch.New(sess) +type CloudSearchDomainLister struct{} + +func (l *CloudSearchDomainLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := cloudsearch.New(opts.Session) params := &cloudsearch.DescribeDomainsInput{} @@ -24,7 +34,7 @@ func ListCloudSearchDomains(sess *session.Session) ([]Resource, error) { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, domain := range resp.DomainStatusList { resources = append(resources, &CloudSearchDomain{ svc: svc, @@ -34,8 +44,12 @@ func ListCloudSearchDomains(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *CloudSearchDomain) Remove() error { +type CloudSearchDomain struct { + svc *cloudsearch.CloudSearch + domainName *string +} +func (f *CloudSearchDomain) Remove(_ context.Context) error { _, err := f.svc.DeleteDomain(&cloudsearch.DeleteDomainInput{ DomainName: f.domainName, }) diff --git a/resources/cloudtrail-trails.go b/resources/cloudtrail-trails.go index 3f6c1297..5164f2e7 100644 --- a/resources/cloudtrail-trails.go +++ b/resources/cloudtrail-trails.go @@ -1,23 +1,38 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/cloudtrail" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const CloudTrailTrailResource = "CloudTrailTrail" + func init() { - register("CloudTrailTrail", ListCloudTrailTrails) + resource.Register(resource.Registration{ + Name: CloudTrailTrailResource, + Scope: nuke.Account, + Lister: &CloudTrailTrailLister{}, + }) } -func ListCloudTrailTrails(sess *session.Session) ([]Resource, error) { - svc := cloudtrail.New(sess) +type CloudTrailTrailLister struct{} + +func (l *CloudTrailTrailLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := cloudtrail.New(opts.Session) resp, err := svc.DescribeTrails(nil) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, trail := range resp.TrailList { resources = append(resources, &CloudTrailTrail{ svc: svc, @@ -33,7 +48,7 @@ type CloudTrailTrail struct { name *string } -func (trail *CloudTrailTrail) Remove() error { +func (trail *CloudTrailTrail) Remove(_ context.Context) error { _, err := trail.svc.DeleteTrail(&cloudtrail.DeleteTrailInput{ Name: trail.name, }) diff --git a/resources/cloudwatch-alarms.go b/resources/cloudwatch-alarms.go index 55fa2d83..fe695c50 100644 --- a/resources/cloudwatch-alarms.go +++ b/resources/cloudwatch-alarms.go @@ -1,25 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/cloudwatch" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type CloudWatchAlarm struct { - svc *cloudwatch.CloudWatch - alarmName *string - tags []*cloudwatch.Tag -} +const CloudWatchAlarmResource = "CloudWatchAlarm" func init() { - register("CloudWatchAlarm", ListCloudWatchAlarms) + resource.Register(resource.Registration{ + Name: CloudWatchAlarmResource, + Scope: nuke.Account, + Lister: &CloudWatchAlarmLister{}, + }) } -func ListCloudWatchAlarms(sess *session.Session) ([]Resource, error) { - svc := cloudwatch.New(sess) - resources := []Resource{} +type CloudWatchAlarmLister struct{} + +func (l *CloudWatchAlarmLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := cloudwatch.New(opts.Session) + resources := make([]resource.Resource, 0) params := &cloudwatch.DescribeAlarmsInput{ MaxRecords: aws.Int64(100), @@ -62,8 +71,13 @@ func GetAlarmTags(svc *cloudwatch.CloudWatch, arn *string) ([]*cloudwatch.Tag, e return resp.Tags, nil } -func (f *CloudWatchAlarm) Remove() error { +type CloudWatchAlarm struct { + svc *cloudwatch.CloudWatch + alarmName *string + tags []*cloudwatch.Tag +} +func (f *CloudWatchAlarm) Remove(_ context.Context) error { _, err := f.svc.DeleteAlarms(&cloudwatch.DeleteAlarmsInput{ AlarmNames: []*string{f.alarmName}, }) diff --git a/resources/cloudwatch-dashboards.go b/resources/cloudwatch-dashboards.go index a2e20beb..f63ff4c4 100644 --- a/resources/cloudwatch-dashboards.go +++ b/resources/cloudwatch-dashboards.go @@ -1,22 +1,32 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/cloudwatch" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type CloudWatchDashboard struct { - svc *cloudwatch.CloudWatch - dashboardName *string -} +const CloudWatchDashboardResource = "CloudWatchDashboard" func init() { - register("CloudWatchDashboard", ListCloudWatchDashboards) + resource.Register(resource.Registration{ + Name: CloudWatchDashboardResource, + Scope: nuke.Account, + Lister: &CloudWatchDashboardLister{}, + }) } -func ListCloudWatchDashboards(sess *session.Session) ([]Resource, error) { - svc := cloudwatch.New(sess) - resources := []Resource{} +type CloudWatchDashboardLister struct{} + +func (l *CloudWatchDashboardLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := cloudwatch.New(opts.Session) + resources := make([]resource.Resource, 0) params := &cloudwatch.ListDashboardsInput{} @@ -43,8 +53,12 @@ func ListCloudWatchDashboards(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *CloudWatchDashboard) Remove() error { +type CloudWatchDashboard struct { + svc *cloudwatch.CloudWatch + dashboardName *string +} +func (f *CloudWatchDashboard) Remove(_ context.Context) error { _, err := f.svc.DeleteDashboards(&cloudwatch.DeleteDashboardsInput{ DashboardNames: []*string{f.dashboardName}, }) diff --git a/resources/cloudwatchevents-buses.go b/resources/cloudwatchevents-buses.go index b4c3d8a1..e4a6ace5 100644 --- a/resources/cloudwatchevents-buses.go +++ b/resources/cloudwatchevents-buses.go @@ -1,23 +1,38 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/cloudwatchevents" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const CloudWatchEventsBusesResource = "CloudWatchEventsBuses" + func init() { - register("CloudWatchEventsBuses", ListCloudWatchEventsBuses) + resource.Register(resource.Registration{ + Name: CloudWatchEventsBusesResource, + Scope: nuke.Account, + Lister: &CloudWatchEventsBusesLister{}, + }) } -func ListCloudWatchEventsBuses(sess *session.Session) ([]Resource, error) { - svc := cloudwatchevents.New(sess) +type CloudWatchEventsBusesLister struct{} + +func (l *CloudWatchEventsBusesLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := cloudwatchevents.New(opts.Session) resp, err := svc.ListEventBuses(nil) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, bus := range resp.EventBuses { if *bus.Name == "default" { continue @@ -36,7 +51,7 @@ type CloudWatchEventsBus struct { name *string } -func (bus *CloudWatchEventsBus) Remove() error { +func (bus *CloudWatchEventsBus) Remove(_ context.Context) error { _, err := bus.svc.DeleteEventBus(&cloudwatchevents.DeleteEventBusInput{ Name: bus.name, }) diff --git a/resources/cloudwatchevents-rules.go b/resources/cloudwatchevents-rules.go index 3b6caeb9..f14e6c1a 100644 --- a/resources/cloudwatchevents-rules.go +++ b/resources/cloudwatchevents-rules.go @@ -1,26 +1,41 @@ package resources import ( + "context" + "fmt" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/cloudwatchevents" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const CloudWatchEventsRuleResource = "CloudWatchEventsRule" + func init() { - register("CloudWatchEventsRule", ListCloudWatchEventsRules) + resource.Register(resource.Registration{ + Name: CloudWatchEventsRuleResource, + Scope: nuke.Account, + Lister: &CloudWatchEventsRuleLister{}, + }) } -func ListCloudWatchEventsRules(sess *session.Session) ([]Resource, error) { - svc := cloudwatchevents.New(sess) +type CloudWatchEventsRuleLister struct{} + +func (l *CloudWatchEventsRuleLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := cloudwatchevents.New(opts.Session) resp, err := svc.ListEventBuses(nil) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, bus := range resp.EventBuses { resp, err := svc.ListRules(&cloudwatchevents.ListRulesInput{ EventBusName: bus.Name, @@ -46,7 +61,7 @@ type CloudWatchEventsRule struct { busName *string } -func (rule *CloudWatchEventsRule) Remove() error { +func (rule *CloudWatchEventsRule) Remove(_ context.Context) error { _, err := rule.svc.DeleteRule(&cloudwatchevents.DeleteRuleInput{ Name: rule.name, EventBusName: rule.busName, @@ -56,5 +71,6 @@ func (rule *CloudWatchEventsRule) Remove() error { } func (rule *CloudWatchEventsRule) String() string { + // TODO: remove Rule:, mark as breaking change for filters return fmt.Sprintf("Rule: %s", *rule.name) } diff --git a/resources/cloudwatchevents-targets.go b/resources/cloudwatchevents-targets.go index 2d95a665..e622fc69 100644 --- a/resources/cloudwatchevents-targets.go +++ b/resources/cloudwatchevents-targets.go @@ -1,26 +1,41 @@ package resources import ( + "context" + "fmt" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/cloudwatchevents" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const CloudWatchEventsTargetResource = "CloudWatchEventsTarget" + func init() { - register("CloudWatchEventsTarget", ListCloudWatchEventsTargets) + resource.Register(resource.Registration{ + Name: CloudWatchEventsTargetResource, + Scope: nuke.Account, + Lister: &CloudWatchEventsTargetLister{}, + }) } -func ListCloudWatchEventsTargets(sess *session.Session) ([]Resource, error) { - svc := cloudwatchevents.New(sess) +type CloudWatchEventsTargetLister struct{} + +func (l *CloudWatchEventsTargetLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := cloudwatchevents.New(opts.Session) resp, err := svc.ListEventBuses(nil) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, bus := range resp.EventBuses { resp, err := svc.ListRules(&cloudwatchevents.ListRulesInput{ EventBusName: bus.Name, @@ -57,7 +72,7 @@ type CloudWatchEventsTarget struct { busName *string } -func (target *CloudWatchEventsTarget) Remove() error { +func (target *CloudWatchEventsTarget) Remove(_ context.Context) error { ids := []*string{target.targetId} _, err := target.svc.RemoveTargets(&cloudwatchevents.RemoveTargetsInput{ Ids: ids, @@ -69,5 +84,7 @@ func (target *CloudWatchEventsTarget) Remove() error { } func (target *CloudWatchEventsTarget) String() string { + // TODO: change this to IAM format rule -> target and mark as breaking change for filters + // TODO: add properties for rule and target separately return fmt.Sprintf("Rule: %s Target ID: %s", *target.ruleName, *target.targetId) } diff --git a/resources/cloudwatchlogs-destinations.go b/resources/cloudwatchlogs-destinations.go index e18f9bef..97d7050e 100644 --- a/resources/cloudwatchlogs-destinations.go +++ b/resources/cloudwatchlogs-destinations.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/cloudwatchlogs" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type CloudWatchLogsDestination struct { - svc *cloudwatchlogs.CloudWatchLogs - destinationName *string -} +const CloudWatchLogsDestinationResource = "CloudWatchLogsDestination" func init() { - register("CloudWatchLogsDestination", ListCloudWatchLogsDestinations) + resource.Register(resource.Registration{ + Name: CloudWatchLogsDestinationResource, + Scope: nuke.Account, + Lister: &CloudWatchLogsDestinationLister{}, + }) } -func ListCloudWatchLogsDestinations(sess *session.Session) ([]Resource, error) { - svc := cloudwatchlogs.New(sess) - resources := []Resource{} +type CloudWatchLogsDestinationLister struct{} + +func (l *CloudWatchLogsDestinationLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := cloudwatchlogs.New(opts.Session) + resources := make([]resource.Resource, 0) params := &cloudwatchlogs.DescribeDestinationsInput{ Limit: aws.Int64(50), @@ -46,8 +56,12 @@ func ListCloudWatchLogsDestinations(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *CloudWatchLogsDestination) Remove() error { +type CloudWatchLogsDestination struct { + svc *cloudwatchlogs.CloudWatchLogs + destinationName *string +} +func (f *CloudWatchLogsDestination) Remove(_ context.Context) error { _, err := f.svc.DeleteDestination(&cloudwatchlogs.DeleteDestinationInput{ DestinationName: f.destinationName, }) diff --git a/resources/cloudwatchlogs-loggroups.go b/resources/cloudwatchlogs-loggroups.go index 76610dd3..4c885040 100644 --- a/resources/cloudwatchlogs-loggroups.go +++ b/resources/cloudwatchlogs-loggroups.go @@ -1,29 +1,37 @@ package resources import ( + "context" + "strings" "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/cloudwatchlogs" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type CloudWatchLogsLogGroup struct { - svc *cloudwatchlogs.CloudWatchLogs - logGroup *cloudwatchlogs.LogGroup - lastEvent string - tags map[string]*string -} +const CloudWatchLogsLogGroupResource = "CloudWatchLogsLogGroup" func init() { - register("CloudWatchLogsLogGroup", ListCloudWatchLogsLogGroups) + resource.Register(resource.Registration{ + Name: CloudWatchLogsLogGroupResource, + Scope: nuke.Account, + Lister: &CloudWatchLogsLogGroupLister{}, + }) } -func ListCloudWatchLogsLogGroups(sess *session.Session) ([]Resource, error) { - svc := cloudwatchlogs.New(sess) - resources := []Resource{} +type CloudWatchLogsLogGroupLister struct{} + +func (l *CloudWatchLogsLogGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := cloudwatchlogs.New(opts.Session) + resources := make([]resource.Resource, 0) params := &cloudwatchlogs.DescribeLogGroupsInput{ Limit: aws.Int64(50), @@ -80,8 +88,14 @@ func ListCloudWatchLogsLogGroups(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *CloudWatchLogsLogGroup) Remove() error { +type CloudWatchLogsLogGroup struct { + svc *cloudwatchlogs.CloudWatchLogs + logGroup *cloudwatchlogs.LogGroup + lastEvent string + tags map[string]*string +} +func (f *CloudWatchLogsLogGroup) Remove(_ context.Context) error { _, err := f.svc.DeleteLogGroup(&cloudwatchlogs.DeleteLogGroupInput{ LogGroupName: f.logGroup.LogGroupName, }) diff --git a/resources/cloudwatchlogs-resourcepolicy.go b/resources/cloudwatchlogs-resourcepolicy.go index d8f609d0..8eb5566c 100644 --- a/resources/cloudwatchlogs-resourcepolicy.go +++ b/resources/cloudwatchlogs-resourcepolicy.go @@ -1,24 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/cloudwatchlogs" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type CloudWatchLogsResourcePolicy struct { - svc *cloudwatchlogs.CloudWatchLogs - policyName *string -} +const CloudWatchLogsResourcePolicyResource = "CloudWatchLogsResourcePolicy" func init() { - register("CloudWatchLogsResourcePolicy", ListCloudWatchLogsResourcePolicies) + resource.Register(resource.Registration{ + Name: CloudWatchLogsResourcePolicyResource, + Scope: nuke.Account, + Lister: &CloudWatchLogsResourcePolicyLister{}, + }) } -func ListCloudWatchLogsResourcePolicies(sess *session.Session) ([]Resource, error) { - svc := cloudwatchlogs.New(sess) - resources := []Resource{} +type CloudWatchLogsResourcePolicyLister struct{} + +func (l *CloudWatchLogsResourcePolicyLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := cloudwatchlogs.New(opts.Session) + resources := make([]resource.Resource, 0) params := &cloudwatchlogs.DescribeResourcePoliciesInput{ Limit: aws.Int64(50), @@ -47,8 +57,12 @@ func ListCloudWatchLogsResourcePolicies(sess *session.Session) ([]Resource, erro return resources, nil } -func (p *CloudWatchLogsResourcePolicy) Remove() error { +type CloudWatchLogsResourcePolicy struct { + svc *cloudwatchlogs.CloudWatchLogs + policyName *string +} +func (p *CloudWatchLogsResourcePolicy) Remove(_ context.Context) error { _, err := p.svc.DeleteResourcePolicy(&cloudwatchlogs.DeleteResourcePolicyInput{ PolicyName: p.policyName, }) diff --git a/resources/codeartifact-domains.go b/resources/codeartifact-domains.go index f419594a..a64054d4 100644 --- a/resources/codeartifact-domains.go +++ b/resources/codeartifact-domains.go @@ -1,24 +1,33 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/codeartifact" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type CodeArtifactDomain struct { - svc *codeartifact.CodeArtifact - name *string - tags map[string]*string -} +const CodeArtifactDomainResource = "CodeArtifactDomain" func init() { - register("CodeArtifactDomain", ListCodeArtifactDomains) + resource.Register(resource.Registration{ + Name: CodeArtifactDomainResource, + Scope: nuke.Account, + Lister: &CodeArtifactDomainLister{}, + }) } -func ListCodeArtifactDomains(sess *session.Session) ([]Resource, error) { - svc := codeartifact.New(sess) - resources := []Resource{} +type CodeArtifactDomainLister struct{} + +func (l *CodeArtifactDomainLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := codeartifact.New(opts.Session) + resources := make([]resource.Resource, 0) params := &codeartifact.ListDomainsInput{} @@ -62,7 +71,13 @@ func GetDomainTags(svc *codeartifact.CodeArtifact, arn *string) map[string]*stri return tags } -func (d *CodeArtifactDomain) Remove() error { +type CodeArtifactDomain struct { + svc *codeartifact.CodeArtifact + name *string + tags map[string]*string +} + +func (d *CodeArtifactDomain) Remove(_ context.Context) error { _, err := d.svc.DeleteDomain(&codeartifact.DeleteDomainInput{ Domain: d.name, }) diff --git a/resources/codeartifact-repositories.go b/resources/codeartifact-repositories.go index 90bd51e5..ddea3331 100644 --- a/resources/codeartifact-repositories.go +++ b/resources/codeartifact-repositories.go @@ -1,25 +1,33 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/codeartifact" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type CodeArtifactRepository struct { - svc *codeartifact.CodeArtifact - name *string - domain *string - tags map[string]*string -} +const CodeArtifactRepositoryResource = "CodeArtifactRepository" func init() { - register("CodeArtifactRepository", ListCodeArtifactRepositories) + resource.Register(resource.Registration{ + Name: CodeArtifactRepositoryResource, + Scope: nuke.Account, + Lister: &CodeArtifactRepositoryLister{}, + }) } -func ListCodeArtifactRepositories(sess *session.Session) ([]Resource, error) { - svc := codeartifact.New(sess) - resources := []Resource{} +type CodeArtifactRepositoryLister struct{} + +func (l *CodeArtifactRepositoryLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := codeartifact.New(opts.Session) + resources := make([]resource.Resource, 0) params := &codeartifact.ListRepositoriesInput{} @@ -61,7 +69,14 @@ func GetRepositoryTags(svc *codeartifact.CodeArtifact, arn *string) map[string]* return tags } -func (r *CodeArtifactRepository) Remove() error { +type CodeArtifactRepository struct { + svc *codeartifact.CodeArtifact + name *string + domain *string + tags map[string]*string +} + +func (r *CodeArtifactRepository) Remove(_ context.Context) error { _, err := r.svc.DeleteRepository(&codeartifact.DeleteRepositoryInput{ Repository: r.name, Domain: r.domain, diff --git a/resources/codebuild-projects.go b/resources/codebuild-projects.go index 97d901c6..19ecd0f7 100644 --- a/resources/codebuild-projects.go +++ b/resources/codebuild-projects.go @@ -1,21 +1,28 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/codebuild" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type CodeBuildProject struct { - svc *codebuild.CodeBuild - projectName *string - tags map[string]*string -} +const CodeBuildProjectResource = "CodeBuildProject" func init() { - register("CodeBuildProject", ListCodeBuildProjects) + resource.Register(resource.Registration{ + Name: CodeBuildProjectResource, + Scope: nuke.Account, + Lister: &CodeBuildProjectLister{}, + }) } +type CodeBuildProjectLister struct{} + func GetTags(svc *codebuild.CodeBuild, project *string) map[string]*string { tags := make(map[string]*string) batchResult, _ := svc.BatchGetProjects(&codebuild.BatchGetProjectsInput{Names: []*string{project}}) @@ -34,9 +41,11 @@ func GetTags(svc *codebuild.CodeBuild, project *string) map[string]*string { return nil } -func ListCodeBuildProjects(sess *session.Session) ([]Resource, error) { - svc := codebuild.New(sess) - resources := []Resource{} +func (l *CodeBuildProjectLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := codebuild.New(opts.Session) + resources := make([]resource.Resource, 0) params := &codebuild.ListProjectsInput{} @@ -64,8 +73,13 @@ func ListCodeBuildProjects(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *CodeBuildProject) Remove() error { +type CodeBuildProject struct { + svc *codebuild.CodeBuild + projectName *string + tags map[string]*string +} +func (f *CodeBuildProject) Remove(_ context.Context) error { _, err := f.svc.DeleteProject(&codebuild.DeleteProjectInput{ Name: f.projectName, }) diff --git a/resources/codecommit-repositories.go b/resources/codecommit-repositories.go index 7efa0122..2a2c4ec8 100644 --- a/resources/codecommit-repositories.go +++ b/resources/codecommit-repositories.go @@ -1,22 +1,33 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/codecommit" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type CodeCommitRepository struct { - svc *codecommit.CodeCommit - repositoryName *string -} +const CodeCommitRepositoryResource = "CodeCommitRepository" func init() { - register("CodeCommitRepository", ListCodeCommitRepositories) + resource.Register(resource.Registration{ + Name: CodeCommitRepositoryResource, + Scope: nuke.Account, + Lister: &CodeCommitRepositoryLister{}, + }) } -func ListCodeCommitRepositories(sess *session.Session) ([]Resource, error) { - svc := codecommit.New(sess) - resources := []Resource{} +type CodeCommitRepositoryLister struct{} + +// List - Return a list of all CodeCommit Repositories as Resources +func (l *CodeCommitRepositoryLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := codecommit.New(opts.Session) + resources := make([]resource.Resource, 0) params := &codecommit.ListRepositoriesInput{} @@ -43,8 +54,13 @@ func ListCodeCommitRepositories(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *CodeCommitRepository) Remove() error { +type CodeCommitRepository struct { + svc *codecommit.CodeCommit + repositoryName *string +} +// Remove - Removes the CodeCommit Repository +func (f *CodeCommitRepository) Remove(_ context.Context) error { _, err := f.svc.DeleteRepository(&codecommit.DeleteRepositoryInput{ RepositoryName: f.repositoryName, }) diff --git a/resources/codedeploy-applications.go b/resources/codedeploy-applications.go index 9900f7b3..e2145862 100644 --- a/resources/codedeploy-applications.go +++ b/resources/codedeploy-applications.go @@ -1,22 +1,32 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/codedeploy" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type CodeDeployApplication struct { - svc *codedeploy.CodeDeploy - applicationName *string -} +const CodeDeployApplicationResource = "CodeDeployApplication" func init() { - register("CodeDeployApplication", ListCodeDeployApplications) + resource.Register(resource.Registration{ + Name: CodeDeployApplicationResource, + Scope: nuke.Account, + Lister: &CodeDeployApplicationLister{}, + }) } -func ListCodeDeployApplications(sess *session.Session) ([]Resource, error) { - svc := codedeploy.New(sess) - resources := []Resource{} +type CodeDeployApplicationLister struct{} + +func (l *CodeDeployApplicationLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := codedeploy.New(opts.Session) + resources := make([]resource.Resource, 0) params := &codedeploy.ListApplicationsInput{} @@ -43,8 +53,12 @@ func ListCodeDeployApplications(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *CodeDeployApplication) Remove() error { +type CodeDeployApplication struct { + svc *codedeploy.CodeDeploy + applicationName *string +} +func (f *CodeDeployApplication) Remove(_ context.Context) error { _, err := f.svc.DeleteApplication(&codedeploy.DeleteApplicationInput{ ApplicationName: f.applicationName, }) diff --git a/resources/codepipeline-pipelines.go b/resources/codepipeline-pipelines.go index ba436a27..3b43972e 100644 --- a/resources/codepipeline-pipelines.go +++ b/resources/codepipeline-pipelines.go @@ -1,22 +1,32 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/codepipeline" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type CodePipelinePipeline struct { - svc *codepipeline.CodePipeline - pipelineName *string -} +const CodePipelinePipelineResource = "CodePipelinePipeline" func init() { - register("CodePipelinePipeline", ListCodePipelinePipelines) + resource.Register(resource.Registration{ + Name: CodePipelinePipelineResource, + Scope: nuke.Account, + Lister: &CodePipelinePipelineLister{}, + }) } -func ListCodePipelinePipelines(sess *session.Session) ([]Resource, error) { - svc := codepipeline.New(sess) - resources := []Resource{} +type CodePipelinePipelineLister struct{} + +func (l *CodePipelinePipelineLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := codepipeline.New(opts.Session) + resources := make([]resource.Resource, 0) params := &codepipeline.ListPipelinesInput{} @@ -43,8 +53,12 @@ func ListCodePipelinePipelines(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *CodePipelinePipeline) Remove() error { +type CodePipelinePipeline struct { + svc *codepipeline.CodePipeline + pipelineName *string +} +func (f *CodePipelinePipeline) Remove(_ context.Context) error { _, err := f.svc.DeletePipeline(&codepipeline.DeletePipelineInput{ Name: f.pipelineName, }) diff --git a/resources/codestar-connections.go b/resources/codestar-connections.go index 1d49201c..21d84251 100644 --- a/resources/codestar-connections.go +++ b/resources/codestar-connections.go @@ -1,26 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/codestarconnections" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type CodeStarConnection struct { - svc *codestarconnections.CodeStarConnections - connectionARN *string - connectionName *string - providerType *string -} +const CodeStarConnectionResource = "CodeStarConnection" func init() { - register("CodeStarConnection", ListCodeStarConnections) + resource.Register(resource.Registration{ + Name: CodeStarConnectionResource, + Scope: nuke.Account, + Lister: &CodeStarConnectionLister{}, + }) } -func ListCodeStarConnections(sess *session.Session) ([]Resource, error) { - svc := codestarconnections.New(sess) - resources := []Resource{} +type CodeStarConnectionLister struct{} + +func (l *CodeStarConnectionLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := codestarconnections.New(opts.Session) + resources := make([]resource.Resource, 0) params := &codestarconnections.ListConnectionsInput{ MaxResults: aws.Int64(100), @@ -34,10 +42,10 @@ func ListCodeStarConnections(sess *session.Session) ([]Resource, error) { for _, connection := range output.Connections { resources = append(resources, &CodeStarConnection{ - svc: svc, - connectionARN: connection.ConnectionArn, - connectionName: connection.ConnectionName, - providerType: connection.ProviderType, + svc: svc, + connectionARN: connection.ConnectionArn, + connectionName: connection.ConnectionName, + providerType: connection.ProviderType, }) } @@ -51,8 +59,14 @@ func ListCodeStarConnections(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *CodeStarConnection) Remove() error { +type CodeStarConnection struct { + svc *codestarconnections.CodeStarConnections + connectionARN *string + connectionName *string + providerType *string +} +func (f *CodeStarConnection) Remove(_ context.Context) error { _, err := f.svc.DeleteConnection(&codestarconnections.DeleteConnectionInput{ ConnectionArn: f.connectionARN, }) @@ -68,7 +82,6 @@ func (f *CodeStarConnection) Properties() types.Properties { return properties } - func (f *CodeStarConnection) String() string { return *f.connectionName } diff --git a/resources/codestar-notifications.go b/resources/codestar-notifications.go index 1d78b287..a15be1d1 100644 --- a/resources/codestar-notifications.go +++ b/resources/codestar-notifications.go @@ -1,29 +1,36 @@ package resources import ( + "context" + "fmt" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/codestarnotifications" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type CodeStarNotificationRule struct { - svc *codestarnotifications.CodeStarNotifications - id *string - name *string - arn *string - tags map[string]*string -} +const CodeStarNotificationRuleResource = "CodeStarNotificationRule" func init() { - register("CodeStarNotificationRule", ListCodeStarNotificationRules) + resource.Register(resource.Registration{ + Name: CodeStarNotificationRuleResource, + Scope: nuke.Account, + Lister: &CodeStarNotificationRuleLister{}, + }) } -func ListCodeStarNotificationRules(sess *session.Session) ([]Resource, error) { - svc := codestarnotifications.New(sess) - resources := []Resource{} +type CodeStarNotificationRuleLister struct{} + +func (l *CodeStarNotificationRuleLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := codestarnotifications.New(opts.Session) + resources := make([]resource.Resource, 0) params := &codestarnotifications.ListNotificationRulesInput{ MaxResults: aws.Int64(100), @@ -62,8 +69,15 @@ func ListCodeStarNotificationRules(sess *session.Session) ([]Resource, error) { return resources, nil } -func (cn *CodeStarNotificationRule) Remove() error { +type CodeStarNotificationRule struct { + svc *codestarnotifications.CodeStarNotifications + id *string + name *string + arn *string + tags map[string]*string +} +func (cn *CodeStarNotificationRule) Remove(_ context.Context) error { _, err := cn.svc.DeleteNotificationRule(&codestarnotifications.DeleteNotificationRuleInput{ Arn: cn.arn, }) diff --git a/resources/codestar-projects.go b/resources/codestar-projects.go index ef80c61d..e8d54c25 100644 --- a/resources/codestar-projects.go +++ b/resources/codestar-projects.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/codestar" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type CodeStarProject struct { - svc *codestar.CodeStar - id *string -} +const CodeStarProjectResource = "CodeStarProject" func init() { - register("CodeStarProject", ListCodeStarProjects) + resource.Register(resource.Registration{ + Name: CodeStarProjectResource, + Scope: nuke.Account, + Lister: &CodeStarProjectLister{}, + }) } -func ListCodeStarProjects(sess *session.Session) ([]Resource, error) { - svc := codestar.New(sess) - resources := []Resource{} +type CodeStarProjectLister struct{} + +func (l *CodeStarProjectLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := codestar.New(opts.Session) + resources := make([]resource.Resource, 0) params := &codestar.ListProjectsInput{ MaxResults: aws.Int64(100), @@ -46,8 +56,12 @@ func ListCodeStarProjects(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *CodeStarProject) Remove() error { +type CodeStarProject struct { + svc *codestar.CodeStar + id *string +} +func (f *CodeStarProject) Remove(_ context.Context) error { _, err := f.svc.DeleteProject(&codestar.DeleteProjectInput{ Id: f.id, }) diff --git a/resources/cognito-identity-providers.go b/resources/cognito-identity-providers.go index 6c80cd70..6ad4be5a 100644 --- a/resources/cognito-identity-providers.go +++ b/resources/cognito-identity-providers.go @@ -1,34 +1,43 @@ package resources import ( + "context" + + "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/cognitoidentityprovider" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" - "github.com/sirupsen/logrus" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type CognitoIdentityProvider struct { - svc *cognitoidentityprovider.CognitoIdentityProvider - name *string - providerType *string - userPoolName *string - userPoolId *string -} +const CognitoIdentityProviderResource = "CognitoIdentityProvider" func init() { - register("CognitoIdentityProvider", ListCognitoIdentityProviders) + resource.Register(resource.Registration{ + Name: CognitoIdentityProviderResource, + Scope: nuke.Account, + Lister: &CognitoIdentityProviderLister{}, + }) } -func ListCognitoIdentityProviders(sess *session.Session) ([]Resource, error) { - svc := cognitoidentityprovider.New(sess) +type CognitoIdentityProviderLister struct{} + +func (l *CognitoIdentityProviderLister) List(ctx context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) - userPools, poolErr := ListCognitoUserPools(sess) + svc := cognitoidentityprovider.New(opts.Session) + + userPoolsLister := &CognitoUserPoolLister{} + userPools, poolErr := userPoolsLister.List(ctx, o) if poolErr != nil { return nil, poolErr } - resources := []Resource{} + resources := make([]resource.Resource, 0) for _, userPoolResource := range userPools { userPool, ok := userPoolResource.(*CognitoUserPool) @@ -69,8 +78,15 @@ func ListCognitoIdentityProviders(sess *session.Session) ([]Resource, error) { return resources, nil } -func (p *CognitoIdentityProvider) Remove() error { +type CognitoIdentityProvider struct { + svc *cognitoidentityprovider.CognitoIdentityProvider + name *string + providerType *string + userPoolName *string + userPoolId *string +} +func (p *CognitoIdentityProvider) Remove(_ context.Context) error { _, err := p.svc.DeleteIdentityProvider(&cognitoidentityprovider.DeleteIdentityProviderInput{ UserPoolId: p.userPoolId, ProviderName: p.name, diff --git a/resources/cognito-identitypools.go b/resources/cognito-identitypools.go index ee67df42..f591ef73 100644 --- a/resources/cognito-identitypools.go +++ b/resources/cognito-identitypools.go @@ -1,8 +1,13 @@ package resources import ( + "context" + + "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/cognitoidentity" ) @@ -12,13 +17,23 @@ type CognitoIdentityPool struct { id *string } +const CognitoIdentityPoolResource = "CognitoIdentityPool" + func init() { - register("CognitoIdentityPool", ListCognitoIdentityPools) + resource.Register(resource.Registration{ + Name: CognitoIdentityPoolResource, + Scope: nuke.Account, + Lister: &CognitoIdentityPoolLister{}, + }) } -func ListCognitoIdentityPools(sess *session.Session) ([]Resource, error) { - svc := cognitoidentity.New(sess) - resources := []Resource{} +type CognitoIdentityPoolLister struct{} + +func (l *CognitoIdentityPoolLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := cognitoidentity.New(opts.Session) + resources := make([]resource.Resource, 0) params := &cognitoidentity.ListIdentityPoolsInput{ MaxResults: aws.Int64(50), @@ -48,7 +63,7 @@ func ListCognitoIdentityPools(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *CognitoIdentityPool) Remove() error { +func (f *CognitoIdentityPool) Remove(_ context.Context) error { _, err := f.svc.DeleteIdentityPool(&cognitoidentity.DeleteIdentityPoolInput{ IdentityPoolId: f.id, diff --git a/resources/cognito-userpool-clients.go b/resources/cognito-userpool-clients.go index e715dbe1..d8f59510 100644 --- a/resources/cognito-userpool-clients.go +++ b/resources/cognito-userpool-clients.go @@ -1,34 +1,43 @@ package resources import ( + "context" + + "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/cognitoidentityprovider" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" - "github.com/sirupsen/logrus" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type CognitoUserPoolClient struct { - svc *cognitoidentityprovider.CognitoIdentityProvider - name *string - id *string - userPoolName *string - userPoolId *string -} +const CognitoUserPoolClientResource = "CognitoUserPoolClient" func init() { - register("CognitoUserPoolClient", ListCognitoUserPoolClients) + resource.Register(resource.Registration{ + Name: CognitoUserPoolClientResource, + Scope: nuke.Account, + Lister: &CognitoUserPoolClientLister{}, + }) } -func ListCognitoUserPoolClients(sess *session.Session) ([]Resource, error) { - svc := cognitoidentityprovider.New(sess) +type CognitoUserPoolClientLister struct{} + +func (l *CognitoUserPoolClientLister) List(ctx context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) - userPools, poolErr := ListCognitoUserPools(sess) + svc := cognitoidentityprovider.New(opts.Session) + + userPoolsLister := &CognitoUserPoolLister{} + userPools, poolErr := userPoolsLister.List(ctx, o) if poolErr != nil { return nil, poolErr } - resources := []Resource{} + resources := make([]resource.Resource, 0) for _, userPoolResource := range userPools { userPool, ok := userPoolResource.(*CognitoUserPool) @@ -69,8 +78,15 @@ func ListCognitoUserPoolClients(sess *session.Session) ([]Resource, error) { return resources, nil } -func (p *CognitoUserPoolClient) Remove() error { +type CognitoUserPoolClient struct { + svc *cognitoidentityprovider.CognitoIdentityProvider + name *string + id *string + userPoolName *string + userPoolId *string +} +func (p *CognitoUserPoolClient) Remove(_ context.Context) error { _, err := p.svc.DeleteUserPoolClient(&cognitoidentityprovider.DeleteUserPoolClientInput{ ClientId: p.id, UserPoolId: p.userPoolId, diff --git a/resources/cognito-userpool-domains.go b/resources/cognito-userpool-domains.go index 3e36c165..30df2ca9 100644 --- a/resources/cognito-userpool-domains.go +++ b/resources/cognito-userpool-domains.go @@ -1,31 +1,41 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/cognitoidentityprovider" + "context" + "github.com/sirupsen/logrus" + + "github.com/aws/aws-sdk-go/service/cognitoidentityprovider" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type CognitoUserPoolDomain struct { - svc *cognitoidentityprovider.CognitoIdentityProvider - name *string - userPoolName *string - userPoolId *string -} +const CognitoUserPoolDomainResource = "CognitoUserPoolDomain" func init() { - register("CognitoUserPoolDomain", ListCognitoUserPoolDomains) + resource.Register(resource.Registration{ + Name: CognitoUserPoolDomainResource, + Scope: nuke.Account, + Lister: &CognitoUserPoolDomainLister{}, + }) } -func ListCognitoUserPoolDomains(sess *session.Session) ([]Resource, error) { - svc := cognitoidentityprovider.New(sess) +type CognitoUserPoolDomainLister struct{} + +func (l *CognitoUserPoolDomainLister) List(ctx context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := cognitoidentityprovider.New(opts.Session) - userPools, poolErr := ListCognitoUserPools(sess) + userPoolsLister := &CognitoUserPoolLister{} + userPools, poolErr := userPoolsLister.List(ctx, o) if poolErr != nil { return nil, poolErr } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, userPoolResource := range userPools { userPool, ok := userPoolResource.(*CognitoUserPool) if !ok { @@ -56,7 +66,14 @@ func ListCognitoUserPoolDomains(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *CognitoUserPoolDomain) Remove() error { +type CognitoUserPoolDomain struct { + svc *cognitoidentityprovider.CognitoIdentityProvider + name *string + userPoolName *string + userPoolId *string +} + +func (f *CognitoUserPoolDomain) Remove(_ context.Context) error { params := &cognitoidentityprovider.DeleteUserPoolDomainInput{ Domain: f.name, UserPoolId: f.userPoolId, diff --git a/resources/cognito-userpools.go b/resources/cognito-userpools.go index c1a5f819..b46c57bb 100644 --- a/resources/cognito-userpools.go +++ b/resources/cognito-userpools.go @@ -1,24 +1,38 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/cognitoidentityprovider" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type CognitoUserPool struct { - svc *cognitoidentityprovider.CognitoIdentityProvider - name *string - id *string -} +const CognitoUserPoolResource = "CognitoUserPool" func init() { - register("CognitoUserPool", ListCognitoUserPools) + resource.Register(resource.Registration{ + Name: CognitoUserPoolResource, + Scope: nuke.Account, + Lister: &CognitoUserPoolLister{}, + DependsOn: []string{ + CognitoIdentityPoolResource, + CognitoUserPoolClientResource, + CognitoUserPoolDomainResource, + }, + }) } -func ListCognitoUserPools(sess *session.Session) ([]Resource, error) { - svc := cognitoidentityprovider.New(sess) - resources := []Resource{} +type CognitoUserPoolLister struct{} + +func (l *CognitoUserPoolLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := cognitoidentityprovider.New(opts.Session) + resources := make([]resource.Resource, 0) params := &cognitoidentityprovider.ListUserPoolsInput{ MaxResults: aws.Int64(50), @@ -48,8 +62,13 @@ func ListCognitoUserPools(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *CognitoUserPool) Remove() error { +type CognitoUserPool struct { + svc *cognitoidentityprovider.CognitoIdentityProvider + name *string + id *string +} +func (f *CognitoUserPool) Remove(_ context.Context) error { _, err := f.svc.DeleteUserPool(&cognitoidentityprovider.DeleteUserPoolInput{ UserPoolId: f.id, }) diff --git a/resources/comprehend_document_classifier.go b/resources/comprehend-document-classifier.go similarity index 75% rename from resources/comprehend_document_classifier.go rename to resources/comprehend-document-classifier.go index 680e8bbd..27478b77 100644 --- a/resources/comprehend_document_classifier.go +++ b/resources/comprehend-document-classifier.go @@ -1,21 +1,37 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/comprehend" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + "context" + "github.com/sirupsen/logrus" + + "github.com/aws/aws-sdk-go/service/comprehend" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const ComprehendDocumentClassifierResource = "ComprehendDocumentClassifier" + func init() { - register("ComprehendDocumentClassifier", ListComprehendDocumentClassifiers) + resource.Register(resource.Registration{ + Name: ComprehendDocumentClassifierResource, + Scope: nuke.Account, + Lister: &ComprehendDocumentClassifierLister{}, + }) } -func ListComprehendDocumentClassifiers(sess *session.Session) ([]Resource, error) { - svc := comprehend.New(sess) +type ComprehendDocumentClassifierLister struct{} + +func (l *ComprehendDocumentClassifierLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := comprehend.New(opts.Session) params := &comprehend.ListDocumentClassifiersInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { resp, err := svc.ListDocumentClassifiers(params) @@ -44,7 +60,7 @@ type ComprehendDocumentClassifier struct { documentClassifier *comprehend.DocumentClassifierProperties } -func (ce *ComprehendDocumentClassifier) Remove() error { +func (ce *ComprehendDocumentClassifier) Remove(_ context.Context) error { switch *ce.documentClassifier.Status { case "IN_ERROR": fallthrough diff --git a/resources/comprehend_dominant_language_detection_job.go b/resources/comprehend-dominant-language-detection-job.go similarity index 65% rename from resources/comprehend_dominant_language_detection_job.go rename to resources/comprehend-dominant-language-detection-job.go index 26bcf860..4905da3b 100644 --- a/resources/comprehend_dominant_language_detection_job.go +++ b/resources/comprehend-dominant-language-detection-job.go @@ -1,20 +1,35 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/comprehend" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const ComprehendDominantLanguageDetectionJobResource = "ComprehendDominantLanguageDetectionJob" + func init() { - register("ComprehendDominantLanguageDetectionJob", ListComprehendDominantLanguageDetectionJobs) + resource.Register(resource.Registration{ + Name: ComprehendDominantLanguageDetectionJobResource, + Scope: nuke.Account, + Lister: &ComprehendDominantLanguageDetectionJobLister{}, + }) } -func ListComprehendDominantLanguageDetectionJobs(sess *session.Session) ([]Resource, error) { - svc := comprehend.New(sess) +type ComprehendDominantLanguageDetectionJobLister struct{} + +func (l *ComprehendDominantLanguageDetectionJobLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := comprehend.New(opts.Session) params := &comprehend.ListDominantLanguageDetectionJobsInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { resp, err := svc.ListDominantLanguageDetectionJobs(params) @@ -43,7 +58,7 @@ type ComprehendDominantLanguageDetectionJob struct { dominantLanguageDetectionJob *comprehend.DominantLanguageDetectionJobProperties } -func (ce *ComprehendDominantLanguageDetectionJob) Remove() error { +func (ce *ComprehendDominantLanguageDetectionJob) Remove(_ context.Context) error { _, err := ce.svc.StopDominantLanguageDetectionJob(&comprehend.StopDominantLanguageDetectionJobInput{ JobId: ce.dominantLanguageDetectionJob.JobId, }) diff --git a/resources/comprehend_endpoint.go b/resources/comprehend-endpoint.go similarity index 61% rename from resources/comprehend_endpoint.go rename to resources/comprehend-endpoint.go index 59c81fb8..384c81bc 100644 --- a/resources/comprehend_endpoint.go +++ b/resources/comprehend-endpoint.go @@ -1,20 +1,35 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/comprehend" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const ComprehendEndpointResource = "ComprehendEndpoint" + func init() { - register("ComprehendEndpoint", ListComprehendEndpoints) + resource.Register(resource.Registration{ + Name: ComprehendEndpointResource, + Scope: nuke.Account, + Lister: &ComprehendEndpointLister{}, + }) } -func ListComprehendEndpoints(sess *session.Session) ([]Resource, error) { - svc := comprehend.New(sess) +type ComprehendEndpointLister struct{} + +func (l *ComprehendEndpointLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := comprehend.New(opts.Session) params := &comprehend.ListEndpointsInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { resp, err := svc.ListEndpoints(params) @@ -43,7 +58,7 @@ type ComprehendEndpoint struct { endpoint *comprehend.EndpointProperties } -func (ce *ComprehendEndpoint) Remove() error { +func (ce *ComprehendEndpoint) Remove(_ context.Context) error { _, err := ce.svc.DeleteEndpoint(&comprehend.DeleteEndpointInput{ EndpointArn: ce.endpoint.EndpointArn, }) diff --git a/resources/comprehend_entities_detection_job.go b/resources/comprehend-entities-detection-job.go similarity index 67% rename from resources/comprehend_entities_detection_job.go rename to resources/comprehend-entities-detection-job.go index 3ae80484..10c663e4 100644 --- a/resources/comprehend_entities_detection_job.go +++ b/resources/comprehend-entities-detection-job.go @@ -1,20 +1,35 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/comprehend" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const ComprehendEntitiesDetectionJobResource = "ComprehendEntitiesDetectionJob" + func init() { - register("ComprehendEntitiesDetectionJob", ListComprehendEntitiesDetectionJobs) + resource.Register(resource.Registration{ + Name: ComprehendEntitiesDetectionJobResource, + Scope: nuke.Account, + Lister: &ComprehendEntitiesDetectionJobLister{}, + }) } -func ListComprehendEntitiesDetectionJobs(sess *session.Session) ([]Resource, error) { - svc := comprehend.New(sess) +type ComprehendEntitiesDetectionJobLister struct{} + +func (l *ComprehendEntitiesDetectionJobLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := comprehend.New(opts.Session) params := &comprehend.ListEntitiesDetectionJobsInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { resp, err := svc.ListEntitiesDetectionJobs(params) @@ -48,7 +63,7 @@ type ComprehendEntitiesDetectionJob struct { entitiesDetectionJob *comprehend.EntitiesDetectionJobProperties } -func (ce *ComprehendEntitiesDetectionJob) Remove() error { +func (ce *ComprehendEntitiesDetectionJob) Remove(_ context.Context) error { _, err := ce.svc.StopEntitiesDetectionJob(&comprehend.StopEntitiesDetectionJobInput{ JobId: ce.entitiesDetectionJob.JobId, }) diff --git a/resources/comprehend_entity_recognizer.go b/resources/comprehend-entity-recognizer.go similarity index 74% rename from resources/comprehend_entity_recognizer.go rename to resources/comprehend-entity-recognizer.go index 61f57593..982701d5 100644 --- a/resources/comprehend_entity_recognizer.go +++ b/resources/comprehend-entity-recognizer.go @@ -1,21 +1,37 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/comprehend" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + "context" + "github.com/sirupsen/logrus" + + "github.com/aws/aws-sdk-go/service/comprehend" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const ComprehendEntityRecognizerResource = "ComprehendEntityRecognizer" + func init() { - register("ComprehendEntityRecognizer", ListComprehendEntityRecognizers) + resource.Register(resource.Registration{ + Name: ComprehendEntityRecognizerResource, + Scope: nuke.Account, + Lister: &ComprehendEntityRecognizerLister{}, + }) } -func ListComprehendEntityRecognizers(sess *session.Session) ([]Resource, error) { - svc := comprehend.New(sess) +type ComprehendEntityRecognizerLister struct{} + +func (l *ComprehendEntityRecognizerLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := comprehend.New(opts.Session) params := &comprehend.ListEntityRecognizersInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { resp, err := svc.ListEntityRecognizers(params) @@ -44,7 +60,7 @@ type ComprehendEntityRecognizer struct { entityRecognizer *comprehend.EntityRecognizerProperties } -func (ce *ComprehendEntityRecognizer) Remove() error { +func (ce *ComprehendEntityRecognizer) Remove(_ context.Context) error { switch *ce.entityRecognizer.Status { case "IN_ERROR": fallthrough diff --git a/resources/comprehend_key_phrases_detection_job.go b/resources/comprehend-key-phrases-detection-job.go similarity index 64% rename from resources/comprehend_key_phrases_detection_job.go rename to resources/comprehend-key-phrases-detection-job.go index 3a78d963..a729b668 100644 --- a/resources/comprehend_key_phrases_detection_job.go +++ b/resources/comprehend-key-phrases-detection-job.go @@ -1,20 +1,35 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/comprehend" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const ComprehendKeyPhrasesDetectionJobResource = "ComprehendKeyPhrasesDetectionJob" + func init() { - register("ComprehendKeyPhrasesDetectionJob", ListComprehendKeyPhrasesDetectionJobs) + resource.Register(resource.Registration{ + Name: ComprehendKeyPhrasesDetectionJobResource, + Scope: nuke.Account, + Lister: &ComprehendKeyPhrasesDetectionJobLister{}, + }) } -func ListComprehendKeyPhrasesDetectionJobs(sess *session.Session) ([]Resource, error) { - svc := comprehend.New(sess) +type ComprehendKeyPhrasesDetectionJobLister struct{} + +func (l *ComprehendKeyPhrasesDetectionJobLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := comprehend.New(opts.Session) params := &comprehend.ListKeyPhrasesDetectionJobsInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { resp, err := svc.ListKeyPhrasesDetectionJobs(params) @@ -43,7 +58,7 @@ type ComprehendKeyPhrasesDetectionJob struct { keyPhrasesDetectionJob *comprehend.KeyPhrasesDetectionJobProperties } -func (ce *ComprehendKeyPhrasesDetectionJob) Remove() error { +func (ce *ComprehendKeyPhrasesDetectionJob) Remove(_ context.Context) error { _, err := ce.svc.StopKeyPhrasesDetectionJob(&comprehend.StopKeyPhrasesDetectionJobInput{ JobId: ce.keyPhrasesDetectionJob.JobId, }) diff --git a/resources/comprehend_sentiment_detection_job.go b/resources/comprehend-sentiment-detection-job.go similarity index 67% rename from resources/comprehend_sentiment_detection_job.go rename to resources/comprehend-sentiment-detection-job.go index eddd2041..84244d6c 100644 --- a/resources/comprehend_sentiment_detection_job.go +++ b/resources/comprehend-sentiment-detection-job.go @@ -1,20 +1,35 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/comprehend" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const ComprehendSentimentDetectionJobResource = "ComprehendSentimentDetectionJob" + func init() { - register("ComprehendSentimentDetectionJob", ListComprehendSentimentDetectionJobs) + resource.Register(resource.Registration{ + Name: ComprehendSentimentDetectionJobResource, + Scope: nuke.Account, + Lister: &ComprehendSentimentDetectionJobLister{}, + }) } -func ListComprehendSentimentDetectionJobs(sess *session.Session) ([]Resource, error) { - svc := comprehend.New(sess) +type ComprehendSentimentDetectionJobLister struct{} + +func (l *ComprehendSentimentDetectionJobLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := comprehend.New(opts.Session) params := &comprehend.ListSentimentDetectionJobsInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { resp, err := svc.ListSentimentDetectionJobs(params) @@ -48,7 +63,7 @@ type ComprehendSentimentDetectionJob struct { sentimentDetectionJob *comprehend.SentimentDetectionJobProperties } -func (ce *ComprehendSentimentDetectionJob) Remove() error { +func (ce *ComprehendSentimentDetectionJob) Remove(_ context.Context) error { _, err := ce.svc.StopSentimentDetectionJob(&comprehend.StopSentimentDetectionJobInput{ JobId: ce.sentimentDetectionJob.JobId, }) diff --git a/resources/configservice-configrules.go b/resources/configservice-configrules.go index 6d618942..03fcbd71 100644 --- a/resources/configservice-configrules.go +++ b/resources/configservice-configrules.go @@ -1,25 +1,35 @@ package resources import ( + "context" + "fmt" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/configservice" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ConfigServiceConfigRule struct { - svc *configservice.ConfigService - configRuleName *string - createdBy *string -} +const ConfigServiceConfigRuleResource = "ConfigServiceConfigRule" func init() { - register("ConfigServiceConfigRule", ListConfigServiceConfigRules) + resource.Register(resource.Registration{ + Name: ConfigServiceConfigRuleResource, + Scope: nuke.Account, + Lister: &ConfigServiceConfigRuleLister{}, + }) } -func ListConfigServiceConfigRules(sess *session.Session) ([]Resource, error) { - svc := configservice.New(sess) - var resources []Resource +type ConfigServiceConfigRuleLister struct{} + +func (l *ConfigServiceConfigRuleLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := configservice.New(opts.Session) + var resources []resource.Resource params := &configservice.DescribeConfigRulesInput{} @@ -47,6 +57,12 @@ func ListConfigServiceConfigRules(sess *session.Session) ([]Resource, error) { return resources, nil } +type ConfigServiceConfigRule struct { + svc *configservice.ConfigService + configRuleName *string + createdBy *string +} + func (f *ConfigServiceConfigRule) Filter() error { if aws.StringValue(f.createdBy) == "securityhub.amazonaws.com" { return fmt.Errorf("cannot remove rule owned by securityhub.amazonaws.com") @@ -55,8 +71,7 @@ func (f *ConfigServiceConfigRule) Filter() error { return nil } -func (f *ConfigServiceConfigRule) Remove() error { - +func (f *ConfigServiceConfigRule) Remove(_ context.Context) error { _, err := f.svc.DeleteConfigRule(&configservice.DeleteConfigRuleInput{ ConfigRuleName: f.configRuleName, }) diff --git a/resources/configservice-configurationrecorders.go b/resources/configservice-configurationrecorders.go index 669bbfe3..21ad7296 100644 --- a/resources/configservice-configurationrecorders.go +++ b/resources/configservice-configurationrecorders.go @@ -1,21 +1,31 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/configservice" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ConfigServiceConfigurationRecorder struct { - svc *configservice.ConfigService - configurationRecorderName *string -} +const ConfigServiceConfigurationRecorderResource = "ConfigServiceConfigurationRecorder" func init() { - register("ConfigServiceConfigurationRecorder", ListConfigServiceConfigurationRecorders) + resource.Register(resource.Registration{ + Name: ConfigServiceConfigurationRecorderResource, + Scope: nuke.Account, + Lister: &ConfigServiceConfigurationRecorderLister{}, + }) } -func ListConfigServiceConfigurationRecorders(sess *session.Session) ([]Resource, error) { - svc := configservice.New(sess) +type ConfigServiceConfigurationRecorderLister struct{} + +func (l *ConfigServiceConfigurationRecorderLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := configservice.New(opts.Session) params := &configservice.DescribeConfigurationRecordersInput{} resp, err := svc.DescribeConfigurationRecorders(params) @@ -23,10 +33,10 @@ func ListConfigServiceConfigurationRecorders(sess *session.Session) ([]Resource, return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, configurationRecorder := range resp.ConfigurationRecorders { resources = append(resources, &ConfigServiceConfigurationRecorder{ - svc: svc, + svc: svc, configurationRecorderName: configurationRecorder.Name, }) } @@ -34,8 +44,12 @@ func ListConfigServiceConfigurationRecorders(sess *session.Session) ([]Resource, return resources, nil } -func (f *ConfigServiceConfigurationRecorder) Remove() error { +type ConfigServiceConfigurationRecorder struct { + svc *configservice.ConfigService + configurationRecorderName *string +} +func (f *ConfigServiceConfigurationRecorder) Remove(_ context.Context) error { _, err := f.svc.DeleteConfigurationRecorder(&configservice.DeleteConfigurationRecorderInput{ ConfigurationRecorderName: f.configurationRecorderName, }) diff --git a/resources/configservice-deliverychannels.go b/resources/configservice-deliverychannels.go index 1d29c92e..6784cd06 100644 --- a/resources/configservice-deliverychannels.go +++ b/resources/configservice-deliverychannels.go @@ -1,21 +1,31 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/configservice" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ConfigServiceDeliveryChannel struct { - svc *configservice.ConfigService - deliveryChannelName *string -} +const ConfigServiceDeliveryChannelResource = "ConfigServiceDeliveryChannel" func init() { - register("ConfigServiceDeliveryChannel", ListConfigServiceDeliveryChannels) + resource.Register(resource.Registration{ + Name: ConfigServiceDeliveryChannelResource, + Scope: nuke.Account, + Lister: &ConfigServiceDeliveryChannelLister{}, + }) } -func ListConfigServiceDeliveryChannels(sess *session.Session) ([]Resource, error) { - svc := configservice.New(sess) +type ConfigServiceDeliveryChannelLister struct{} + +func (l *ConfigServiceDeliveryChannelLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := configservice.New(opts.Session) params := &configservice.DescribeDeliveryChannelsInput{} resp, err := svc.DescribeDeliveryChannels(params) @@ -23,7 +33,7 @@ func ListConfigServiceDeliveryChannels(sess *session.Session) ([]Resource, error return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, deliveryChannel := range resp.DeliveryChannels { resources = append(resources, &ConfigServiceDeliveryChannel{ svc: svc, @@ -34,8 +44,12 @@ func ListConfigServiceDeliveryChannels(sess *session.Session) ([]Resource, error return resources, nil } -func (f *ConfigServiceDeliveryChannel) Remove() error { +type ConfigServiceDeliveryChannel struct { + svc *configservice.ConfigService + deliveryChannelName *string +} +func (f *ConfigServiceDeliveryChannel) Remove(_ context.Context) error { _, err := f.svc.DeleteDeliveryChannel(&configservice.DeleteDeliveryChannelInput{ DeliveryChannelName: f.deliveryChannelName, }) diff --git a/resources/databasemigrationservice-certificates.go b/resources/databasemigrationservice-certificates.go index 6d455d5c..2fc8a326 100644 --- a/resources/databasemigrationservice-certificates.go +++ b/resources/databasemigrationservice-certificates.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/databasemigrationservice" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type DatabaseMigrationServiceCertificate struct { - svc *databasemigrationservice.DatabaseMigrationService - ARN *string -} +const DatabaseMigrationServiceCertificateResource = "DatabaseMigrationServiceCertificate" func init() { - register("DatabaseMigrationServiceCertificate", ListDatabaseMigrationServiceCertificates) + resource.Register(resource.Registration{ + Name: DatabaseMigrationServiceCertificateResource, + Scope: nuke.Account, + Lister: &DatabaseMigrationServiceCertificateLister{}, + }) } -func ListDatabaseMigrationServiceCertificates(sess *session.Session) ([]Resource, error) { - svc := databasemigrationservice.New(sess) - resources := []Resource{} +type DatabaseMigrationServiceCertificateLister struct{} + +func (l *DatabaseMigrationServiceCertificateLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := databasemigrationservice.New(opts.Session) + resources := make([]resource.Resource, 0) params := &databasemigrationservice.DescribeCertificatesInput{ MaxRecords: aws.Int64(100), @@ -46,8 +56,12 @@ func ListDatabaseMigrationServiceCertificates(sess *session.Session) ([]Resource return resources, nil } -func (f *DatabaseMigrationServiceCertificate) Remove() error { +type DatabaseMigrationServiceCertificate struct { + svc *databasemigrationservice.DatabaseMigrationService + ARN *string +} +func (f *DatabaseMigrationServiceCertificate) Remove(_ context.Context) error { _, err := f.svc.DeleteEndpoint(&databasemigrationservice.DeleteEndpointInput{ EndpointArn: f.ARN, }) diff --git a/resources/databasemigrationservice-endpoints.go b/resources/databasemigrationservice-endpoints.go index 1bfe86a3..1cffce3e 100644 --- a/resources/databasemigrationservice-endpoints.go +++ b/resources/databasemigrationservice-endpoints.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/databasemigrationservice" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type DatabaseMigrationServiceEndpoint struct { - svc *databasemigrationservice.DatabaseMigrationService - ARN *string -} +const DatabaseMigrationServiceEndpointResource = "DatabaseMigrationServiceEndpoint" func init() { - register("DatabaseMigrationServiceEndpoint", ListDatabaseMigrationServiceEndpoints) + resource.Register(resource.Registration{ + Name: DatabaseMigrationServiceEndpointResource, + Scope: nuke.Account, + Lister: &DatabaseMigrationServiceEndpointLister{}, + }) } -func ListDatabaseMigrationServiceEndpoints(sess *session.Session) ([]Resource, error) { - svc := databasemigrationservice.New(sess) - resources := []Resource{} +type DatabaseMigrationServiceEndpointLister struct{} + +func (l *DatabaseMigrationServiceEndpointLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := databasemigrationservice.New(opts.Session) + resources := make([]resource.Resource, 0) params := &databasemigrationservice.DescribeEndpointsInput{ MaxRecords: aws.Int64(100), @@ -46,8 +56,12 @@ func ListDatabaseMigrationServiceEndpoints(sess *session.Session) ([]Resource, e return resources, nil } -func (f *DatabaseMigrationServiceEndpoint) Remove() error { +type DatabaseMigrationServiceEndpoint struct { + svc *databasemigrationservice.DatabaseMigrationService + ARN *string +} +func (f *DatabaseMigrationServiceEndpoint) Remove(_ context.Context) error { _, err := f.svc.DeleteEndpoint(&databasemigrationservice.DeleteEndpointInput{ EndpointArn: f.ARN, }) diff --git a/resources/databasemigrationservice-eventsubscriptions.go b/resources/databasemigrationservice-eventsubscriptions.go index 1c9fba2a..7373b33a 100644 --- a/resources/databasemigrationservice-eventsubscriptions.go +++ b/resources/databasemigrationservice-eventsubscriptions.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/databasemigrationservice" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type DatabaseMigrationServiceEventSubscription struct { - svc *databasemigrationservice.DatabaseMigrationService - subscriptionName *string -} +const DatabaseMigrationServiceEventSubscriptionResource = "DatabaseMigrationServiceEventSubscription" func init() { - register("DatabaseMigrationServiceEventSubscription", ListDatabaseMigrationServiceEventSubscriptions) + resource.Register(resource.Registration{ + Name: DatabaseMigrationServiceEventSubscriptionResource, + Scope: nuke.Account, + Lister: &DatabaseMigrationServiceEventSubscriptionLister{}, + }) } -func ListDatabaseMigrationServiceEventSubscriptions(sess *session.Session) ([]Resource, error) { - svc := databasemigrationservice.New(sess) - resources := []Resource{} +type DatabaseMigrationServiceEventSubscriptionLister struct{} + +func (l *DatabaseMigrationServiceEventSubscriptionLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := databasemigrationservice.New(opts.Session) + resources := make([]resource.Resource, 0) params := &databasemigrationservice.DescribeEventSubscriptionsInput{ MaxRecords: aws.Int64(100), @@ -46,8 +56,12 @@ func ListDatabaseMigrationServiceEventSubscriptions(sess *session.Session) ([]Re return resources, nil } -func (f *DatabaseMigrationServiceEventSubscription) Remove() error { +type DatabaseMigrationServiceEventSubscription struct { + svc *databasemigrationservice.DatabaseMigrationService + subscriptionName *string +} +func (f *DatabaseMigrationServiceEventSubscription) Remove(_ context.Context) error { _, err := f.svc.DeleteEventSubscription(&databasemigrationservice.DeleteEventSubscriptionInput{ SubscriptionName: f.subscriptionName, }) diff --git a/resources/databasemigrationservice-replicationinstances.go b/resources/databasemigrationservice-replicationinstances.go index 69514f40..bcb10882 100644 --- a/resources/databasemigrationservice-replicationinstances.go +++ b/resources/databasemigrationservice-replicationinstances.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/databasemigrationservice" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type DatabaseMigrationServiceReplicationInstance struct { - svc *databasemigrationservice.DatabaseMigrationService - ARN *string -} +const DatabaseMigrationServiceReplicationInstanceResource = "DatabaseMigrationServiceReplicationInstance" func init() { - register("DatabaseMigrationServiceReplicationInstance", ListDatabaseMigrationServiceReplicationInstances) + resource.Register(resource.Registration{ + Name: DatabaseMigrationServiceReplicationInstanceResource, + Scope: nuke.Account, + Lister: &DatabaseMigrationServiceReplicationInstanceLister{}, + }) } -func ListDatabaseMigrationServiceReplicationInstances(sess *session.Session) ([]Resource, error) { - svc := databasemigrationservice.New(sess) - resources := []Resource{} +type DatabaseMigrationServiceReplicationInstanceLister struct{} + +func (l *DatabaseMigrationServiceReplicationInstanceLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := databasemigrationservice.New(opts.Session) + resources := make([]resource.Resource, 0) params := &databasemigrationservice.DescribeReplicationInstancesInput{ MaxRecords: aws.Int64(100), @@ -46,8 +56,12 @@ func ListDatabaseMigrationServiceReplicationInstances(sess *session.Session) ([] return resources, nil } -func (f *DatabaseMigrationServiceReplicationInstance) Remove() error { +type DatabaseMigrationServiceReplicationInstance struct { + svc *databasemigrationservice.DatabaseMigrationService + ARN *string +} +func (f *DatabaseMigrationServiceReplicationInstance) Remove(_ context.Context) error { _, err := f.svc.DeleteReplicationInstance(&databasemigrationservice.DeleteReplicationInstanceInput{ ReplicationInstanceArn: f.ARN, }) diff --git a/resources/databasemigrationservice-replicationtasks.go b/resources/databasemigrationservice-replicationtasks.go index 74f4b815..1f7ec36b 100644 --- a/resources/databasemigrationservice-replicationtasks.go +++ b/resources/databasemigrationservice-replicationtasks.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/databasemigrationservice" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type DatabaseMigrationServiceReplicationTask struct { - svc *databasemigrationservice.DatabaseMigrationService - ARN *string -} +const DatabaseMigrationServiceReplicationTaskResource = "DatabaseMigrationServiceReplicationTask" func init() { - register("DatabaseMigrationServiceReplicationTask", ListDatabaseMigrationServiceReplicationTasks) + resource.Register(resource.Registration{ + Name: DatabaseMigrationServiceReplicationTaskResource, + Scope: nuke.Account, + Lister: &DatabaseMigrationServiceReplicationTaskLister{}, + }) } -func ListDatabaseMigrationServiceReplicationTasks(sess *session.Session) ([]Resource, error) { - svc := databasemigrationservice.New(sess) - resources := []Resource{} +type DatabaseMigrationServiceReplicationTaskLister struct{} + +func (l *DatabaseMigrationServiceReplicationTaskLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := databasemigrationservice.New(opts.Session) + resources := make([]resource.Resource, 0) params := &databasemigrationservice.DescribeReplicationTasksInput{ MaxRecords: aws.Int64(100), @@ -46,8 +56,12 @@ func ListDatabaseMigrationServiceReplicationTasks(sess *session.Session) ([]Reso return resources, nil } -func (f *DatabaseMigrationServiceReplicationTask) Remove() error { +type DatabaseMigrationServiceReplicationTask struct { + svc *databasemigrationservice.DatabaseMigrationService + ARN *string +} +func (f *DatabaseMigrationServiceReplicationTask) Remove(_ context.Context) error { _, err := f.svc.DeleteReplicationTask(&databasemigrationservice.DeleteReplicationTaskInput{ ReplicationTaskArn: f.ARN, }) diff --git a/resources/databasemigrationservice-subnetgroups.go b/resources/databasemigrationservice-subnetgroups.go index 7490dcce..c8be9d48 100644 --- a/resources/databasemigrationservice-subnetgroups.go +++ b/resources/databasemigrationservice-subnetgroups.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/databasemigrationservice" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type DatabaseMigrationServiceSubnetGroup struct { - svc *databasemigrationservice.DatabaseMigrationService - ID *string -} +const DatabaseMigrationServiceSubnetGroupResource = "DatabaseMigrationServiceSubnetGroup" func init() { - register("DatabaseMigrationServiceSubnetGroup", ListDatabaseMigrationServiceSubnetGroups) + resource.Register(resource.Registration{ + Name: DatabaseMigrationServiceSubnetGroupResource, + Scope: nuke.Account, + Lister: &DatabaseMigrationServiceSubnetGroupLister{}, + }) } -func ListDatabaseMigrationServiceSubnetGroups(sess *session.Session) ([]Resource, error) { - svc := databasemigrationservice.New(sess) - resources := []Resource{} +type DatabaseMigrationServiceSubnetGroupLister struct{} + +func (l *DatabaseMigrationServiceSubnetGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := databasemigrationservice.New(opts.Session) + resources := make([]resource.Resource, 0) params := &databasemigrationservice.DescribeReplicationSubnetGroupsInput{ MaxRecords: aws.Int64(100), @@ -46,8 +56,12 @@ func ListDatabaseMigrationServiceSubnetGroups(sess *session.Session) ([]Resource return resources, nil } -func (f *DatabaseMigrationServiceSubnetGroup) Remove() error { +type DatabaseMigrationServiceSubnetGroup struct { + svc *databasemigrationservice.DatabaseMigrationService + ID *string +} +func (f *DatabaseMigrationServiceSubnetGroup) Remove(_ context.Context) error { _, err := f.svc.DeleteReplicationSubnetGroup(&databasemigrationservice.DeleteReplicationSubnetGroupInput{ ReplicationSubnetGroupIdentifier: f.ID, }) diff --git a/resources/datapipeline-pipelines.go b/resources/datapipeline-pipelines.go index ef7d3b0e..ad56b0b1 100644 --- a/resources/datapipeline-pipelines.go +++ b/resources/datapipeline-pipelines.go @@ -1,22 +1,32 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/datapipeline" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type DataPipelinePipeline struct { - svc *datapipeline.DataPipeline - pipelineID *string -} +const DataPipelinePipelineResource = "DataPipelinePipeline" func init() { - register("DataPipelinePipeline", ListDataPipelinePipelines) + resource.Register(resource.Registration{ + Name: DataPipelinePipelineResource, + Scope: nuke.Account, + Lister: &DataPipelinePipelineLister{}, + }) } -func ListDataPipelinePipelines(sess *session.Session) ([]Resource, error) { - svc := datapipeline.New(sess) - resources := []Resource{} +type DataPipelinePipelineLister struct{} + +func (l *DataPipelinePipelineLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := datapipeline.New(opts.Session) + resources := make([]resource.Resource, 0) params := &datapipeline.ListPipelinesInput{} @@ -43,8 +53,12 @@ func ListDataPipelinePipelines(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *DataPipelinePipeline) Remove() error { +type DataPipelinePipeline struct { + svc *datapipeline.DataPipeline + pipelineID *string +} +func (f *DataPipelinePipeline) Remove(_ context.Context) error { _, err := f.svc.DeletePipeline(&datapipeline.DeletePipelineInput{ PipelineId: f.pipelineID, }) diff --git a/resources/dax-clusters.go b/resources/dax-clusters.go index ce96e2b9..2b937b9b 100644 --- a/resources/dax-clusters.go +++ b/resources/dax-clusters.go @@ -1,23 +1,37 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/dax" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type DAXCluster struct { - svc *dax.DAX - clusterName *string -} +const DAXClusterResource = "DAXCluster" func init() { - register("DAXCluster", ListDAXClusters) + resource.Register(resource.Registration{ + Name: DAXClusterResource, + Scope: nuke.Account, + Lister: &DAXClusterLister{}, + DependsOn: []string{ + DAXParameterGroupResource, + DAXSubnetGroupResource, + }, + }) } -func ListDAXClusters(sess *session.Session) ([]Resource, error) { - svc := dax.New(sess) - resources := []Resource{} +type DAXClusterLister struct{} + +func (l *DAXClusterLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := dax.New(opts.Session) + resources := make([]resource.Resource, 0) params := &dax.DescribeClustersInput{ MaxResults: aws.Int64(100), @@ -46,8 +60,12 @@ func ListDAXClusters(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *DAXCluster) Remove() error { +type DAXCluster struct { + svc *dax.DAX + clusterName *string +} +func (f *DAXCluster) Remove(_ context.Context) error { _, err := f.svc.DeleteCluster(&dax.DeleteClusterInput{ ClusterName: f.clusterName, }) diff --git a/resources/dax-parametergroups.go b/resources/dax-parametergroups.go index 4f133a98..f022040d 100644 --- a/resources/dax-parametergroups.go +++ b/resources/dax-parametergroups.go @@ -1,11 +1,16 @@ package resources import ( + "context" + "strings" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/dax" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type DAXParameterGroup struct { @@ -13,13 +18,23 @@ type DAXParameterGroup struct { parameterGroupName *string } +const DAXParameterGroupResource = "DAXParameterGroup" + func init() { - register("DAXParameterGroup", ListDAXParameterGroups) + resource.Register(resource.Registration{ + Name: DAXParameterGroupResource, + Scope: nuke.Account, + Lister: &DAXParameterGroupLister{}, + }) } -func ListDAXParameterGroups(sess *session.Session) ([]Resource, error) { - svc := dax.New(sess) - resources := []Resource{} +type DAXParameterGroupLister struct{} + +func (l *DAXParameterGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := dax.New(opts.Session) + resources := make([]resource.Resource, 0) params := &dax.DescribeParameterGroupsInput{ MaxResults: aws.Int64(100), @@ -51,8 +66,7 @@ func ListDAXParameterGroups(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *DAXParameterGroup) Remove() error { - +func (f *DAXParameterGroup) Remove(_ context.Context) error { _, err := f.svc.DeleteParameterGroup(&dax.DeleteParameterGroupInput{ ParameterGroupName: f.parameterGroupName, }) diff --git a/resources/dax-subnetgroups.go b/resources/dax-subnetgroups.go index c451f6e8..0655aba0 100644 --- a/resources/dax-subnetgroups.go +++ b/resources/dax-subnetgroups.go @@ -1,24 +1,35 @@ package resources import ( + "context" + + "fmt" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/dax" - "fmt" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type DAXSubnetGroup struct { - svc *dax.DAX - subnetGroupName *string -} +const DAXSubnetGroupResource = "DAXSubnetGroup" func init() { - register("DAXSubnetGroup", ListDAXSubnetGroups) + resource.Register(resource.Registration{ + Name: DAXSubnetGroupResource, + Scope: nuke.Account, + Lister: &DAXSubnetGroupLister{}, + }) } -func ListDAXSubnetGroups(sess *session.Session) ([]Resource, error) { - svc := dax.New(sess) - resources := []Resource{} +type DAXSubnetGroupLister struct{} + +func (l *DAXSubnetGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := dax.New(opts.Session) + resources := make([]resource.Resource, 0) params := &dax.DescribeSubnetGroupsInput{ MaxResults: aws.Int64(100), @@ -47,15 +58,19 @@ func ListDAXSubnetGroups(sess *session.Session) ([]Resource, error) { return resources, nil } +type DAXSubnetGroup struct { + svc *dax.DAX + subnetGroupName *string +} + func (f *DAXSubnetGroup) Filter() error { if *f.subnetGroupName == "default" { - return fmt.Errorf("Cannot delete default DAX Subnet group") + return fmt.Errorf("cannot delete default DAX Subnet group") } return nil } -func (f *DAXSubnetGroup) Remove() error { - +func (f *DAXSubnetGroup) Remove(_ context.Context) error { _, err := f.svc.DeleteSubnetGroup(&dax.DeleteSubnetGroupInput{ SubnetGroupName: f.subnetGroupName, }) diff --git a/resources/devicefarm-projects.go b/resources/devicefarm-projects.go index b741fd7a..05b3222c 100644 --- a/resources/devicefarm-projects.go +++ b/resources/devicefarm-projects.go @@ -1,22 +1,32 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/devicefarm" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type DeviceFarmProject struct { - svc *devicefarm.DeviceFarm - ARN *string -} +const DeviceFarmProjectResource = "DeviceFarmProject" func init() { - register("DeviceFarmProject", ListDeviceFarmProjects) + resource.Register(resource.Registration{ + Name: DeviceFarmProjectResource, + Scope: nuke.Account, + Lister: &DeviceFarmProjectLister{}, + }) } -func ListDeviceFarmProjects(sess *session.Session) ([]Resource, error) { - svc := devicefarm.New(sess) - resources := []Resource{} +type DeviceFarmProjectLister struct{} + +func (l *DeviceFarmProjectLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := devicefarm.New(opts.Session) + resources := make([]resource.Resource, 0) params := &devicefarm.ListProjectsInput{} @@ -43,8 +53,12 @@ func ListDeviceFarmProjects(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *DeviceFarmProject) Remove() error { +type DeviceFarmProject struct { + svc *devicefarm.DeviceFarm + ARN *string +} +func (f *DeviceFarmProject) Remove(_ context.Context) error { _, err := f.svc.DeleteProject(&devicefarm.DeleteProjectInput{ Arn: f.ARN, }) diff --git a/resources/directoryservice-directories.go b/resources/directoryservice-directories.go index c2d2207d..0a7f1528 100644 --- a/resources/directoryservice-directories.go +++ b/resources/directoryservice-directories.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/directoryservice" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type DirectoryServiceDirectory struct { - svc *directoryservice.DirectoryService - directoryID *string -} +const DirectoryServiceDirectoryResource = "DirectoryServiceDirectory" func init() { - register("DirectoryServiceDirectory", ListDirectoryServiceDirectories) + resource.Register(resource.Registration{ + Name: DirectoryServiceDirectoryResource, + Scope: nuke.Account, + Lister: &DirectoryServiceDirectoryLister{}, + }) } -func ListDirectoryServiceDirectories(sess *session.Session) ([]Resource, error) { - svc := directoryservice.New(sess) - resources := []Resource{} +type DirectoryServiceDirectoryLister struct{} + +func (l *DirectoryServiceDirectoryLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := directoryservice.New(opts.Session) + resources := make([]resource.Resource, 0) params := &directoryservice.DescribeDirectoriesInput{ Limit: aws.Int64(100), @@ -46,8 +56,12 @@ func ListDirectoryServiceDirectories(sess *session.Session) ([]Resource, error) return resources, nil } -func (f *DirectoryServiceDirectory) Remove() error { +type DirectoryServiceDirectory struct { + svc *directoryservice.DirectoryService + directoryID *string +} +func (f *DirectoryServiceDirectory) Remove(_ context.Context) error { _, err := f.svc.DeleteDirectory(&directoryservice.DeleteDirectoryInput{ DirectoryId: f.directoryID, }) diff --git a/resources/dynamodb-items.go b/resources/dynamodb-items.go index 169c9619..ec32caa6 100644 --- a/resources/dynamodb-items.go +++ b/resources/dynamodb-items.go @@ -1,36 +1,45 @@ package resources import ( + "context" + "strings" + "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/dynamodb" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" - "github.com/sirupsen/logrus" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type DynamoDBTableItem struct { - svc *dynamodb.DynamoDB - id map[string]*dynamodb.AttributeValue - table *DynamoDBTable - keyName string - keyValue string -} +const DynamoDBTableItemResource = "DynamoDBTableItem" func init() { - register("DynamoDBTableItem", ListDynamoDBItems) + resource.Register(resource.Registration{ + Name: DynamoDBTableItemResource, + Scope: nuke.Account, + Lister: &DynamoDBTableItemLister{}, + }) } -func ListDynamoDBItems(sess *session.Session) ([]Resource, error) { - svc := dynamodb.New(sess) +type DynamoDBTableItemLister struct{} + +func (l *DynamoDBTableItemLister) List(ctx context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := dynamodb.New(opts.Session) - tables, tablesErr := ListDynamoDBTables(sess) + tableLister := &DynamoDBTableLister{} + tables, tablesErr := tableLister.List(ctx, o) if tablesErr != nil { return nil, tablesErr } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, dynamoTableResource := range tables { dynamoTable, ok := dynamoTableResource.(*DynamoDBTable) if !ok { @@ -83,7 +92,15 @@ func ListDynamoDBItems(sess *session.Session) ([]Resource, error) { return resources, nil } -func (i *DynamoDBTableItem) Remove() error { +type DynamoDBTableItem struct { + svc *dynamodb.DynamoDB + id map[string]*dynamodb.AttributeValue + table *DynamoDBTable + keyName string + keyValue string +} + +func (i *DynamoDBTableItem) Remove(_ context.Context) error { params := &dynamodb.DeleteItemInput{ Key: i.id, TableName: &i.table.id, diff --git a/resources/dynamodb-tables.go b/resources/dynamodb-tables.go index 04a57fa1..3df944ca 100644 --- a/resources/dynamodb-tables.go +++ b/resources/dynamodb-tables.go @@ -1,31 +1,43 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/dynamodb" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type DynamoDBTable struct { - svc *dynamodb.DynamoDB - id string - tags []*dynamodb.Tag -} +const DynamoDBTableResource = "DynamoDBTable" func init() { - register("DynamoDBTable", ListDynamoDBTables) + resource.Register(resource.Registration{ + Name: DynamoDBTableResource, + Scope: nuke.Account, + Lister: &DynamoDBTableLister{}, + DependsOn: []string{ + DynamoDBTableItemResource, + }, + }) } -func ListDynamoDBTables(sess *session.Session) ([]Resource, error) { - svc := dynamodb.New(sess) +type DynamoDBTableLister struct{} + +func (l *DynamoDBTableLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := dynamodb.New(opts.Session) resp, err := svc.ListTables(&dynamodb.ListTablesInput{}) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, tableName := range resp.TableNames { tags, err := GetTableTags(svc, tableName) @@ -34,8 +46,8 @@ func ListDynamoDBTables(sess *session.Session) ([]Resource, error) { } resources = append(resources, &DynamoDBTable{ - svc: svc, - id: *tableName, + svc: svc, + id: *tableName, tags: tags, }) } @@ -43,7 +55,13 @@ func ListDynamoDBTables(sess *session.Session) ([]Resource, error) { return resources, nil } -func (i *DynamoDBTable) Remove() error { +type DynamoDBTable struct { + svc *dynamodb.DynamoDB + id string + tags []*dynamodb.Tag +} + +func (i *DynamoDBTable) Remove(_ context.Context) error { params := &dynamodb.DeleteTableInput{ TableName: aws.String(i.id), } @@ -65,7 +83,7 @@ func GetTableTags(svc *dynamodb.DynamoDB, tableName *string) ([]*dynamodb.Tag, e return make([]*dynamodb.Tag, 0), err } - tags, err := svc.ListTagsOfResource(&dynamodb.ListTagsOfResourceInput{ + tags, err := svc.ListTagsOfResource(&dynamodb.ListTagsOfResourceInput{ ResourceArn: result.Table.TableArn, }) @@ -77,17 +95,16 @@ func GetTableTags(svc *dynamodb.DynamoDB, tableName *string) ([]*dynamodb.Tag, e } func (i *DynamoDBTable) Properties() types.Properties { - properties := types.NewProperties() - properties.Set("Identifier", i.id) + properties := types.NewProperties() + properties.Set("Identifier", i.id) - for _, tag := range i.tags { - properties.SetTag(tag.Key, tag.Value) - } + for _, tag := range i.tags { + properties.SetTag(tag.Key, tag.Value) + } - return properties + return properties } - func (i *DynamoDBTable) String() string { return i.id } diff --git a/resources/ec2-client-vpn-endpoint-attachments.go b/resources/ec2-client-vpn-endpoint-attachment.go similarity index 66% rename from resources/ec2-client-vpn-endpoint-attachments.go rename to resources/ec2-client-vpn-endpoint-attachment.go index dd8691b7..7c0c22e7 100644 --- a/resources/ec2-client-vpn-endpoint-attachments.go +++ b/resources/ec2-client-vpn-endpoint-attachment.go @@ -1,25 +1,35 @@ package resources import ( + "context" + "fmt" - "github.com/aws/aws-sdk-go/aws/session" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/service/ec2" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type EC2ClientVpnEndpointAttachments struct { - svc *ec2.EC2 - associationId *string - clientVpnEndpointId *string - vpcId *string -} +const EC2ClientVpnEndpointAttachmentResource = "EC2ClientVpnEndpointAttachment" func init() { - register("EC2ClientVpnEndpointAttachment", ListEC2ClientVpnEndpointAttachments) + resource.Register(resource.Registration{ + Name: EC2ClientVpnEndpointAttachmentResource, + Scope: nuke.Account, + Lister: &EC2ClientVpnEndpointAttachmentLister{}, + }) } -func ListEC2ClientVpnEndpointAttachments(sess *session.Session) ([]Resource, error) { - svc := ec2.New(sess) +type EC2ClientVpnEndpointAttachmentLister struct{} + +func (l *EC2ClientVpnEndpointAttachmentLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ec2.New(opts.Session) endpoints := make([]*string, 0) @@ -35,7 +45,7 @@ func ListEC2ClientVpnEndpointAttachments(sess *session.Session) ([]Resource, err return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, clientVpnEndpointId := range endpoints { params := &ec2.DescribeClientVpnTargetNetworksInput{ ClientVpnEndpointId: clientVpnEndpointId, @@ -60,7 +70,14 @@ func ListEC2ClientVpnEndpointAttachments(sess *session.Session) ([]Resource, err return resources, nil } -func (e *EC2ClientVpnEndpointAttachments) Remove() error { +type EC2ClientVpnEndpointAttachments struct { + svc *ec2.EC2 + associationId *string + clientVpnEndpointId *string + vpcId *string +} + +func (e *EC2ClientVpnEndpointAttachments) Remove(_ context.Context) error { params := &ec2.DisassociateClientVpnTargetNetworkInput{ AssociationId: e.associationId, ClientVpnEndpointId: e.clientVpnEndpointId, @@ -75,5 +92,5 @@ func (e *EC2ClientVpnEndpointAttachments) Remove() error { } func (e *EC2ClientVpnEndpointAttachments) String() string { - return fmt.Sprintf("%s -> %s", *e.clientVpnEndpointId, *e.vpcId) + return fmt.Sprintf("%s -> %s", ptr.ToString(e.clientVpnEndpointId), ptr.ToString(e.vpcId)) } diff --git a/resources/ec2-client-vpn-endpoint.go b/resources/ec2-client-vpn-endpoint.go index c318505f..f0225b84 100644 --- a/resources/ec2-client-vpn-endpoint.go +++ b/resources/ec2-client-vpn-endpoint.go @@ -1,24 +1,36 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/ec2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type EC2ClientVpnEndpoint struct { - svc *ec2.EC2 - id string - cveTags []*ec2.Tag -} +const EC2ClientVpnEndpointResource = "EC2ClientVpnEndpoint" func init() { - register("EC2ClientVpnEndpoint", ListEC2ClientVpnEndoint) + resource.Register(resource.Registration{ + Name: EC2ClientVpnEndpointResource, + Scope: nuke.Account, + Lister: &EC2ClientVpnEndpointLister{}, + DependsOn: []string{ + EC2ClientVpnEndpointAttachmentResource, + }, + }) } -func ListEC2ClientVpnEndoint(sess *session.Session) ([]Resource, error) { - svc := ec2.New(sess) - resources := make([]Resource, 0) +type EC2ClientVpnEndpointLister struct{} + +func (l *EC2ClientVpnEndpointLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ec2.New(opts.Session) + resources := make([]resource.Resource, 0) params := &ec2.DescribeClientVpnEndpointsInput{} err := svc.DescribeClientVpnEndpointsPages(params, @@ -39,7 +51,13 @@ func ListEC2ClientVpnEndoint(sess *session.Session) ([]Resource, error) { return resources, nil } -func (c *EC2ClientVpnEndpoint) Remove() error { +type EC2ClientVpnEndpoint struct { + svc *ec2.EC2 + id string + cveTags []*ec2.Tag +} + +func (c *EC2ClientVpnEndpoint) Remove(_ context.Context) error { params := &ec2.DeleteClientVpnEndpointInput{ ClientVpnEndpointId: &c.id, } diff --git a/resources/ec2-customer-gateways.go b/resources/ec2-customer-gateway.go similarity index 59% rename from resources/ec2-customer-gateways.go rename to resources/ec2-customer-gateway.go index b8ce2ce0..0f9ecd13 100644 --- a/resources/ec2-customer-gateways.go +++ b/resources/ec2-customer-gateway.go @@ -1,24 +1,32 @@ package resources import ( + "context" + "fmt" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ec2" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type EC2CustomerGateway struct { - svc *ec2.EC2 - id string - state string -} +const EC2CustomerGatewayResource = "EC2CustomerGateway" func init() { - register("EC2CustomerGateway", ListEC2CustomerGateways) + resource.Register(resource.Registration{ + Name: EC2CustomerGatewayResource, + Scope: nuke.Account, + Lister: &EC2CustomerGatewayLister{}, + }) } -func ListEC2CustomerGateways(sess *session.Session) ([]Resource, error) { - svc := ec2.New(sess) +type EC2CustomerGatewayLister struct{} + +func (l *EC2CustomerGatewayLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := ec2.New(opts.Session) params := &ec2.DescribeCustomerGatewaysInput{} resp, err := svc.DescribeCustomerGateways(params) @@ -26,7 +34,7 @@ func ListEC2CustomerGateways(sess *session.Session) ([]Resource, error) { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, out := range resp.CustomerGateways { resources = append(resources, &EC2CustomerGateway{ svc: svc, @@ -38,6 +46,12 @@ func ListEC2CustomerGateways(sess *session.Session) ([]Resource, error) { return resources, nil } +type EC2CustomerGateway struct { + svc *ec2.EC2 + id string + state string +} + func (c *EC2CustomerGateway) Filter() error { if c.state == "deleted" { return fmt.Errorf("already deleted") @@ -45,7 +59,7 @@ func (c *EC2CustomerGateway) Filter() error { return nil } -func (c *EC2CustomerGateway) Remove() error { +func (c *EC2CustomerGateway) Remove(_ context.Context) error { params := &ec2.DeleteCustomerGatewayInput{ CustomerGatewayId: &c.id, } diff --git a/resources/ec2-default-security-group-rules.go b/resources/ec2-default-security-group-rules.go index 71903cc0..eb52c2b2 100644 --- a/resources/ec2-default-security-group-rules.go +++ b/resources/ec2-default-security-group-rules.go @@ -1,26 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ec2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type EC2DefaultSecurityGroupRule struct { - svc *ec2.EC2 - id *string - groupId *string - isEgress *bool -} +const EC2DefaultSecurityGroupRuleResource = "EC2DefaultSecurityGroupRule" func init() { - register("EC2DefaultSecurityGroupRule", ListEC2SecurityGroupRules) + resource.Register(resource.Registration{ + Name: EC2DefaultSecurityGroupRuleResource, + Scope: nuke.Account, + Lister: &EC2DefaultSecurityGroupRuleLister{}, + }) } -func ListEC2SecurityGroupRules(sess *session.Session) ([]Resource, error) { - svc := ec2.New(sess) - resources := make([]Resource, 0) +type EC2DefaultSecurityGroupRuleLister struct{} + +func (l *EC2DefaultSecurityGroupRuleLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ec2.New(opts.Session) + resources := make([]resource.Resource, 0) sgFilters := []*ec2.Filter{ { @@ -73,7 +81,14 @@ func ListEC2SecurityGroupRules(sess *session.Session) ([]Resource, error) { return resources, nil } -func (r *EC2DefaultSecurityGroupRule) Remove() error { +type EC2DefaultSecurityGroupRule struct { + svc *ec2.EC2 + id *string + groupId *string + isEgress *bool +} + +func (r *EC2DefaultSecurityGroupRule) Remove(_ context.Context) error { rules := make([]*string, 1) rules[0] = r.id if *r.isEgress { diff --git a/resources/ec2-dhcp-options.go b/resources/ec2-dhcp-options.go index 705865a0..5c840ed0 100644 --- a/resources/ec2-dhcp-options.go +++ b/resources/ec2-dhcp-options.go @@ -1,24 +1,34 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/service/ec2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type EC2DHCPOption struct { - svc *ec2.EC2 - id *string - tags []*ec2.Tag - defaultVPC bool -} +const EC2DHCPOptionResource = "EC2DHCPOption" func init() { - register("EC2DHCPOption", ListEC2DHCPOptions) + resource.Register(resource.Registration{ + Name: EC2DHCPOptionResource, + Scope: nuke.Account, + Lister: &EC2DHCPOptionLister{}, + }) } -func ListEC2DHCPOptions(sess *session.Session) ([]Resource, error) { - svc := ec2.New(sess) +type EC2DHCPOptionLister struct{} + +func (l *EC2DHCPOptionLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ec2.New(opts.Session) resp, err := svc.DescribeDhcpOptions(&ec2.DescribeDhcpOptionsInput{}) if err != nil { @@ -27,23 +37,30 @@ func ListEC2DHCPOptions(sess *session.Session) ([]Resource, error) { defVpcDhcpOptsId := "" if defVpc := DefaultVpc(svc); defVpc != nil { - defVpcDhcpOptsId = *defVpc.DhcpOptionsId + defVpcDhcpOptsId = ptr.ToString(defVpc.DhcpOptionsId) } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, out := range resp.DhcpOptions { resources = append(resources, &EC2DHCPOption{ svc: svc, id: out.DhcpOptionsId, tags: out.Tags, - defaultVPC: defVpcDhcpOptsId == *out.DhcpOptionsId, + defaultVPC: defVpcDhcpOptsId == ptr.ToString(out.DhcpOptionsId), }) } return resources, nil } -func (e *EC2DHCPOption) Remove() error { +type EC2DHCPOption struct { + svc *ec2.EC2 + id *string + tags []*ec2.Tag + defaultVPC bool +} + +func (e *EC2DHCPOption) Remove(_ context.Context) error { params := &ec2.DeleteDhcpOptionsInput{ DhcpOptionsId: e.id, } @@ -66,5 +83,5 @@ func (e *EC2DHCPOption) Properties() types.Properties { } func (e *EC2DHCPOption) String() string { - return *e.id + return ptr.ToString(e.id) } diff --git a/resources/ec2-egress-only-internet-gateways.go b/resources/ec2-egress-only-internet-gateways.go index d8f81b25..398a7f63 100644 --- a/resources/ec2-egress-only-internet-gateways.go +++ b/resources/ec2-egress-only-internet-gateways.go @@ -1,24 +1,36 @@ package resources import ( + "context" + + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ec2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type EC2EgressOnlyInternetGateway struct { - svc *ec2.EC2 - igw *ec2.EgressOnlyInternetGateway -} +const EC2EgressOnlyInternetGatewayResource = "EC2EgressOnlyInternetGateway" func init() { - register("EC2EgressOnlyInternetGateway", ListEC2EgressOnlyInternetGateways) + resource.Register(resource.Registration{ + Name: EC2EgressOnlyInternetGatewayResource, + Scope: nuke.Account, + Lister: &EC2EgressOnlyInternetGatewayLister{}, + }) } -func ListEC2EgressOnlyInternetGateways(sess *session.Session) ([]Resource, error) { - svc := ec2.New(sess) - resources := make([]Resource, 0) +type EC2EgressOnlyInternetGatewayLister struct{} + +func (l *EC2EgressOnlyInternetGatewayLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ec2.New(opts.Session) + resources := make([]resource.Resource, 0) igwInputParams := &ec2.DescribeEgressOnlyInternetGatewaysInput{ MaxResults: aws.Int64(255), } @@ -46,7 +58,12 @@ func ListEC2EgressOnlyInternetGateways(sess *session.Session) ([]Resource, error return resources, nil } -func (e *EC2EgressOnlyInternetGateway) Remove() error { +type EC2EgressOnlyInternetGateway struct { + svc *ec2.EC2 + igw *ec2.EgressOnlyInternetGateway +} + +func (e *EC2EgressOnlyInternetGateway) Remove(_ context.Context) error { params := &ec2.DeleteEgressOnlyInternetGatewayInput{ EgressOnlyInternetGatewayId: e.igw.EgressOnlyInternetGatewayId, } @@ -68,5 +85,5 @@ func (e *EC2EgressOnlyInternetGateway) Properties() types.Properties { } func (e *EC2EgressOnlyInternetGateway) String() string { - return *e.igw.EgressOnlyInternetGatewayId + return ptr.ToString(e.igw.EgressOnlyInternetGatewayId) } diff --git a/resources/ec2-eip.go b/resources/ec2-eip.go index 19b0d66b..8cf1eba8 100644 --- a/resources/ec2-eip.go +++ b/resources/ec2-eip.go @@ -1,24 +1,34 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/service/ec2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type EC2Address struct { - svc *ec2.EC2 - eip *ec2.Address - id string - ip string -} +const EC2AddressResource = "EC2Address" func init() { - register("EC2Address", ListEC2Addresses) + resource.Register(resource.Registration{ + Name: EC2AddressResource, + Scope: nuke.Account, + Lister: &EC2AddressLister{}, + }) } -func ListEC2Addresses(sess *session.Session) ([]Resource, error) { - svc := ec2.New(sess) +type EC2AddressLister struct{} + +func (l *EC2AddressLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ec2.New(opts.Session) params := &ec2.DescribeAddressesInput{} resp, err := svc.DescribeAddresses(params) @@ -26,20 +36,27 @@ func ListEC2Addresses(sess *session.Session) ([]Resource, error) { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, out := range resp.Addresses { resources = append(resources, &EC2Address{ svc: svc, eip: out, - id: *out.AllocationId, - ip: *out.PublicIp, + id: ptr.ToString(out.AllocationId), + ip: ptr.ToString(out.PublicIp), }) } return resources, nil } -func (e *EC2Address) Remove() error { +type EC2Address struct { + svc *ec2.EC2 + eip *ec2.Address + id string + ip string +} + +func (e *EC2Address) Remove(_ context.Context) error { _, err := e.svc.ReleaseAddress(&ec2.ReleaseAddressInput{ AllocationId: &e.id, }) diff --git a/resources/ec2-hosts.go b/resources/ec2-host.go similarity index 70% rename from resources/ec2-hosts.go rename to resources/ec2-host.go index d49129da..1a3b4e67 100644 --- a/resources/ec2-hosts.go +++ b/resources/ec2-host.go @@ -1,30 +1,37 @@ package resources import ( + "context" + "fmt" "time" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ec2" - "github.com/rebuy-de/aws-nuke/v2/pkg/config" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" -) -type EC2Host struct { - svc *ec2.EC2 - host *ec2.Host + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" - featureFlags config.FeatureFlags -} + "github.com/ekristen/aws-nuke/pkg/nuke" +) + +const EC2HostResource = "EC2Host" func init() { - register("EC2Host", ListEC2Hosts) + resource.Register(resource.Registration{ + Name: EC2HostResource, + Scope: nuke.Account, + Lister: &EC2HostLister{}, + }) } -func ListEC2Hosts(sess *session.Session) ([]Resource, error) { - svc := ec2.New(sess) +type EC2HostLister struct{} + +func (l *EC2HostLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ec2.New(opts.Session) params := &ec2.DescribeHostsInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { resp, err := svc.DescribeHosts(params) if err != nil { @@ -50,6 +57,11 @@ func ListEC2Hosts(sess *session.Session) ([]Resource, error) { return resources, nil } +type EC2Host struct { + svc *ec2.EC2 + host *ec2.Host +} + func (i *EC2Host) Filter() error { if *i.host.State == "released" { return fmt.Errorf("already released") @@ -57,7 +69,7 @@ func (i *EC2Host) Filter() error { return nil } -func (i *EC2Host) Remove() error { +func (i *EC2Host) Remove(_ context.Context) error { params := &ec2.ReleaseHostsInput{ HostIds: []*string{i.host.HostId}, } diff --git a/resources/ec2-images.go b/resources/ec2-image.go similarity index 65% rename from resources/ec2-images.go rename to resources/ec2-image.go index dd45de68..e042d47e 100644 --- a/resources/ec2-images.go +++ b/resources/ec2-image.go @@ -1,26 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ec2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type EC2Image struct { - svc *ec2.EC2 - creationDate string - id string - name string - tags []*ec2.Tag -} +const EC2ImageResource = "EC2Image" func init() { - register("EC2Image", ListEC2Images) + resource.Register(resource.Registration{ + Name: EC2ImageResource, + Scope: nuke.Account, + Lister: &EC2ImageLister{}, + }) } -func ListEC2Images(sess *session.Session) ([]Resource, error) { - svc := ec2.New(sess) +type EC2ImageLister struct{} + +func (l *EC2ImageLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ec2.New(opts.Session) params := &ec2.DescribeImagesInput{ Owners: []*string{ aws.String("self"), @@ -31,7 +38,7 @@ func ListEC2Images(sess *session.Session) ([]Resource, error) { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, out := range resp.Images { resources = append(resources, &EC2Image{ svc: svc, @@ -45,7 +52,15 @@ func ListEC2Images(sess *session.Session) ([]Resource, error) { return resources, nil } -func (e *EC2Image) Remove() error { +type EC2Image struct { + svc *ec2.EC2 + creationDate string + id string + name string + tags []*ec2.Tag +} + +func (e *EC2Image) Remove(_ context.Context) error { _, err := e.svc.DeregisterImage(&ec2.DeregisterImageInput{ ImageId: &e.id, }) diff --git a/resources/ec2-instances.go b/resources/ec2-instance.go similarity index 72% rename from resources/ec2-instances.go rename to resources/ec2-instance.go index 470ac5d6..0bd8ccc4 100644 --- a/resources/ec2-instances.go +++ b/resources/ec2-instance.go @@ -1,32 +1,39 @@ package resources import ( + "context" + + "errors" "fmt" + "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/libnuke/pkg/featureflag" + "github.com/ekristen/libnuke/pkg/resource" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ec2" - "github.com/rebuy-de/aws-nuke/v2/pkg/config" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + "github.com/ekristen/libnuke/pkg/types" ) -type EC2Instance struct { - svc *ec2.EC2 - instance *ec2.Instance - - featureFlags config.FeatureFlags -} +const EC2InstanceResource = "EC2Instance" func init() { - register("EC2Instance", ListEC2Instances) + resource.Register(resource.Registration{ + Name: EC2InstanceResource, + Scope: nuke.Account, + Lister: &EC2InstanceLister{}, + }) } -func ListEC2Instances(sess *session.Session) ([]Resource, error) { - svc := ec2.New(sess) +type EC2InstanceLister struct{} + +func (l *EC2InstanceLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ec2.New(opts.Session) params := &ec2.DescribeInstancesInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { resp, err := svc.DescribeInstances(params) if err != nil { @@ -54,7 +61,14 @@ func ListEC2Instances(sess *session.Session) ([]Resource, error) { return resources, nil } -func (i *EC2Instance) FeatureFlags(ff config.FeatureFlags) { +type EC2Instance struct { + svc *ec2.EC2 + instance *ec2.Instance + + featureFlags *featureflag.FeatureFlags +} + +func (i *EC2Instance) FeatureFlags(ff *featureflag.FeatureFlags) { i.featureFlags = ff } @@ -65,19 +79,30 @@ func (i *EC2Instance) Filter() error { return nil } -func (i *EC2Instance) Remove() error { +func (i *EC2Instance) Remove(_ context.Context) error { + ffddpEC2Instance, err := i.featureFlags.Get("DisableDeletionProtection_EC2Instance") + if err != nil { + return err + } + + ffDisableEC2InstanceStopProtection, err := i.featureFlags.Get("DisableEC2InstanceStopProtection") + if err != nil { + return err + } + params := &ec2.TerminateInstancesInput{ InstanceIds: []*string{i.instance.InstanceId}, } - _, err := i.svc.TerminateInstances(params) - if err != nil { - awsErr, ok := err.(awserr.Error) + if _, err := i.svc.TerminateInstances(params); err != nil { + var awsErr awserr.Error + ok := errors.As(err, &awsErr) + // Check for Termination Protection, disable it, and try termination again. if ok && awsErr.Code() == "OperationNotPermitted" && awsErr.Message() == "The instance '"+*i.instance.InstanceId+"' may not be "+ "terminated. Modify its 'disableApiTermination' instance attribute and "+ - "try again." && i.featureFlags.DisableDeletionProtection.EC2Instance { + "try again." && ffddpEC2Instance.Enabled() { termErr := i.DisableTerminationProtection() if termErr != nil { return termErr @@ -86,7 +111,7 @@ func (i *EC2Instance) Remove() error { // If we still get an error, we'll check for type and let the next routine // handle it. if err != nil { - awsErr, ok = err.(awserr.Error) + ok = errors.As(err, &awsErr) } } @@ -94,7 +119,7 @@ func (i *EC2Instance) Remove() error { if ok && awsErr.Code() == "OperationNotPermitted" && awsErr.Message() == "The instance '"+*i.instance.InstanceId+"' may not be "+ "terminated. Modify its 'disableApiStop' instance attribute and try "+ - "again." && i.featureFlags.DisableEC2InstanceStopProtection { + "again." && ffDisableEC2InstanceStopProtection.Enabled() { stopErr := i.DisableStopProtection() if stopErr != nil { return stopErr @@ -107,6 +132,7 @@ func (i *EC2Instance) Remove() error { return err } } + return nil } diff --git a/resources/ec2-internet-gateway-attachments.go b/resources/ec2-internet-gateway-attachments.go index 107602fd..464c4397 100644 --- a/resources/ec2-internet-gateway-attachments.go +++ b/resources/ec2-internet-gateway-attachments.go @@ -1,36 +1,43 @@ package resources import ( + "context" + "fmt" + "github.com/gotidy/ptr" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ec2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type EC2InternetGatewayAttachment struct { - svc *ec2.EC2 - vpcId *string - vpcTags []*ec2.Tag - igwId *string - igwTags []*ec2.Tag - defaultVPC bool -} +const EC2InternetGatewayAttachmentResource = "EC2InternetGatewayAttachment" func init() { - register("EC2InternetGatewayAttachment", ListEC2InternetGatewayAttachments) + resource.Register(resource.Registration{ + Name: EC2InternetGatewayAttachmentResource, + Scope: nuke.Account, + Lister: &EC2InternetGatewayAttachmentLister{}, + }) } -func ListEC2InternetGatewayAttachments(sess *session.Session) ([]Resource, error) { - svc := ec2.New(sess) +type EC2InternetGatewayAttachmentLister struct{} + +func (l *EC2InternetGatewayAttachmentLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ec2.New(opts.Session) resp, err := svc.DescribeVpcs(nil) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, vpc := range resp.Vpcs { params := &ec2.DescribeInternetGatewaysInput{ Filters: []*ec2.Filter{ @@ -61,7 +68,16 @@ func ListEC2InternetGatewayAttachments(sess *session.Session) ([]Resource, error return resources, nil } -func (e *EC2InternetGatewayAttachment) Remove() error { +type EC2InternetGatewayAttachment struct { + svc *ec2.EC2 + vpcId *string + vpcTags []*ec2.Tag + igwId *string + igwTags []*ec2.Tag + defaultVPC bool +} + +func (e *EC2InternetGatewayAttachment) Remove(_ context.Context) error { params := &ec2.DetachInternetGatewayInput{ VpcId: e.vpcId, InternetGatewayId: e.igwId, @@ -88,5 +104,5 @@ func (e *EC2InternetGatewayAttachment) Properties() types.Properties { } func (e *EC2InternetGatewayAttachment) String() string { - return fmt.Sprintf("%s -> %s", *e.igwId, *e.vpcId) + return fmt.Sprintf("%s -> %s", ptr.ToString(e.igwId), ptr.ToString(e.vpcId)) } diff --git a/resources/ec2-internet-gateways.go b/resources/ec2-internet-gateways.go index 15ef9a58..7c946a97 100644 --- a/resources/ec2-internet-gateways.go +++ b/resources/ec2-internet-gateways.go @@ -1,23 +1,33 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/ec2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + "github.com/gotidy/ptr" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type EC2InternetGateway struct { - svc *ec2.EC2 - igw *ec2.InternetGateway - defaultVPC bool -} +const EC2InternetGatewayResource = "EC2InternetGateway" func init() { - register("EC2InternetGateway", ListEC2InternetGateways) + resource.Register(resource.Registration{ + Name: EC2InternetGatewayResource, + Scope: nuke.Account, + Lister: &EC2InternetGatewayLister{}, + }) } -func ListEC2InternetGateways(sess *session.Session) ([]Resource, error) { - svc := ec2.New(sess) +type EC2InternetGatewayLister struct{} + +func (l *EC2InternetGatewayLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ec2.New(opts.Session) resp, err := svc.DescribeInternetGateways(nil) if err != nil { @@ -29,7 +39,7 @@ func ListEC2InternetGateways(sess *session.Session) ([]Resource, error) { defVpcId = *defVpc.VpcId } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, igw := range resp.InternetGateways { resources = append(resources, &EC2InternetGateway{ svc: svc, @@ -54,7 +64,13 @@ func HasVpcAttachment(vpcId *string, attachments []*ec2.InternetGatewayAttachmen return false } -func (e *EC2InternetGateway) Remove() error { +type EC2InternetGateway struct { + svc *ec2.EC2 + igw *ec2.InternetGateway + defaultVPC bool +} + +func (e *EC2InternetGateway) Remove(_ context.Context) error { params := &ec2.DeleteInternetGatewayInput{ InternetGatewayId: e.igw.InternetGatewayId, } @@ -78,5 +94,5 @@ func (e *EC2InternetGateway) Properties() types.Properties { } func (e *EC2InternetGateway) String() string { - return *e.igw.InternetGatewayId + return ptr.ToString(e.igw.InternetGatewayId) } diff --git a/resources/ec2-key-pairs.go b/resources/ec2-key-pairs.go index 2e85f622..25830813 100644 --- a/resources/ec2-key-pairs.go +++ b/resources/ec2-key-pairs.go @@ -1,30 +1,39 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/ec2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type EC2KeyPair struct { - svc *ec2.EC2 - name string - tags []*ec2.Tag -} +const EC2KeyPairResource = "EC2KeyPair" func init() { - register("EC2KeyPair", ListEC2KeyPairs) + resource.Register(resource.Registration{ + Name: EC2KeyPairResource, + Scope: nuke.Account, + Lister: &EC2KeyPairLister{}, + }) } -func ListEC2KeyPairs(sess *session.Session) ([]Resource, error) { - svc := ec2.New(sess) +type EC2KeyPairLister struct{} + +func (l *EC2KeyPairLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ec2.New(opts.Session) resp, err := svc.DescribeKeyPairs(nil) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, out := range resp.KeyPairs { resources = append(resources, &EC2KeyPair{ svc: svc, @@ -36,7 +45,13 @@ func ListEC2KeyPairs(sess *session.Session) ([]Resource, error) { return resources, nil } -func (e *EC2KeyPair) Remove() error { +type EC2KeyPair struct { + svc *ec2.EC2 + name string + tags []*ec2.Tag +} + +func (e *EC2KeyPair) Remove(_ context.Context) error { params := &ec2.DeleteKeyPairInput{ KeyName: &e.name, } diff --git a/resources/ec2-launch-templates.go b/resources/ec2-launch-templates.go index 2b8f4e13..063e069e 100644 --- a/resources/ec2-launch-templates.go +++ b/resources/ec2-launch-templates.go @@ -1,30 +1,41 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/service/ec2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type EC2LaunchTemplate struct { - svc *ec2.EC2 - name *string - tag []*ec2.Tag -} +const EC2LaunchTemplateResource = "EC2LaunchTemplate" func init() { - register("EC2LaunchTemplate", ListEC2LaunchTemplates) + resource.Register(resource.Registration{ + Name: EC2LaunchTemplateResource, + Scope: nuke.Account, + Lister: &EC2LaunchTemplateLister{}, + }) } -func ListEC2LaunchTemplates(sess *session.Session) ([]Resource, error) { - svc := ec2.New(sess) +type EC2LaunchTemplateLister struct{} + +func (l *EC2LaunchTemplateLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ec2.New(opts.Session) resp, err := svc.DescribeLaunchTemplates(nil) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, template := range resp.LaunchTemplates { resources = append(resources, &EC2LaunchTemplate{ svc: svc, @@ -35,7 +46,13 @@ func ListEC2LaunchTemplates(sess *session.Session) ([]Resource, error) { return resources, nil } -func (template *EC2LaunchTemplate) Remove() error { +type EC2LaunchTemplate struct { + svc *ec2.EC2 + name *string + tag []*ec2.Tag +} + +func (template *EC2LaunchTemplate) Remove(_ context.Context) error { _, err := template.svc.DeleteLaunchTemplate(&ec2.DeleteLaunchTemplateInput{ LaunchTemplateName: template.name, }) @@ -52,5 +69,5 @@ func (template *EC2LaunchTemplate) Properties() types.Properties { } func (template *EC2LaunchTemplate) String() string { - return *template.name + return ptr.ToString(template.name) } diff --git a/resources/ec2-nat-gateways.go b/resources/ec2-nat-gateways.go index c69be4e2..f70c7835 100644 --- a/resources/ec2-nat-gateways.go +++ b/resources/ec2-nat-gateways.go @@ -1,24 +1,35 @@ package resources import ( + "context" + "fmt" - "github.com/aws/aws-sdk-go/aws/session" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/service/ec2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type EC2NATGateway struct { - svc *ec2.EC2 - natgw *ec2.NatGateway -} +const EC2NATGatewayResource = "EC2NATGateway" func init() { - register("EC2NATGateway", ListEC2NATGateways) + resource.Register(resource.Registration{ + Name: EC2NATGatewayResource, + Scope: nuke.Account, + Lister: &EC2NATGatewayLister{}, + }) } -func ListEC2NATGateways(sess *session.Session) ([]Resource, error) { - svc := ec2.New(sess) +type EC2NATGatewayLister struct{} + +func (l *EC2NATGatewayLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := ec2.New(opts.Session) params := &ec2.DescribeNatGatewaysInput{} resp, err := svc.DescribeNatGateways(params) @@ -26,7 +37,7 @@ func ListEC2NATGateways(sess *session.Session) ([]Resource, error) { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, natgw := range resp.NatGateways { resources = append(resources, &EC2NATGateway{ svc: svc, @@ -37,6 +48,11 @@ func ListEC2NATGateways(sess *session.Session) ([]Resource, error) { return resources, nil } +type EC2NATGateway struct { + svc *ec2.EC2 + natgw *ec2.NatGateway +} + func (n *EC2NATGateway) Filter() error { if *n.natgw.State == "deleted" { return fmt.Errorf("already deleted") @@ -44,7 +60,7 @@ func (n *EC2NATGateway) Filter() error { return nil } -func (n *EC2NATGateway) Remove() error { +func (n *EC2NATGateway) Remove(_ context.Context) error { params := &ec2.DeleteNatGatewayInput{ NatGatewayId: n.natgw.NatGatewayId, } @@ -66,5 +82,5 @@ func (n *EC2NATGateway) Properties() types.Properties { } func (n *EC2NATGateway) String() string { - return *n.natgw.NatGatewayId + return ptr.ToString(n.natgw.NatGatewayId) } diff --git a/resources/ec2-network-acls.go b/resources/ec2-network-acls.go index 4d3c6ed8..9ccc246a 100644 --- a/resources/ec2-network-acls.go +++ b/resources/ec2-network-acls.go @@ -1,34 +1,43 @@ package resources import ( + "context" + "fmt" - "github.com/aws/aws-sdk-go/aws/session" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/service/ec2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type EC2NetworkACL struct { - svc *ec2.EC2 - id *string - isDefault *bool - tags []*ec2.Tag - ownerID *string -} +const EC2NetworkACLResource = "EC2NetworkACL" func init() { - register("EC2NetworkACL", ListEC2NetworkACLs) + resource.Register(resource.Registration{ + Name: EC2NetworkACLResource, + Scope: nuke.Account, + Lister: &EC2NetworkACLLister{}, + }) } -func ListEC2NetworkACLs(sess *session.Session) ([]Resource, error) { - svc := ec2.New(sess) +type EC2NetworkACLLister struct{} + +func (l *EC2NetworkACLLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ec2.New(opts.Session) resp, err := svc.DescribeNetworkAcls(nil) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, out := range resp.NetworkAcls { resources = append(resources, &EC2NetworkACL{ @@ -43,15 +52,23 @@ func ListEC2NetworkACLs(sess *session.Session) ([]Resource, error) { return resources, nil } +type EC2NetworkACL struct { + svc *ec2.EC2 + id *string + isDefault *bool + tags []*ec2.Tag + ownerID *string +} + func (e *EC2NetworkACL) Filter() error { - if *e.isDefault { + if ptr.ToBool(e.isDefault) { return fmt.Errorf("cannot delete default VPC") } return nil } -func (e *EC2NetworkACL) Remove() error { +func (e *EC2NetworkACL) Remove(_ context.Context) error { params := &ec2.DeleteNetworkAclInput{ NetworkAclId: e.id, } @@ -64,16 +81,16 @@ func (e *EC2NetworkACL) Remove() error { return nil } -func (f *EC2NetworkACL) Properties() types.Properties { +func (e *EC2NetworkACL) Properties() types.Properties { properties := types.NewProperties() - for _, tag := range f.tags { + for _, tag := range e.tags { properties.SetTag(tag.Key, tag.Value) } - properties.Set("ID", f.id) - properties.Set("OwnerID", f.ownerID) + properties.Set("ID", e.id) + properties.Set("OwnerID", e.ownerID) return properties } func (e *EC2NetworkACL) String() string { - return *e.id + return ptr.ToString(e.id) } diff --git a/resources/ec2-network-interfaces.go b/resources/ec2-network-interfaces.go index c9ed6cfe..458689e5 100644 --- a/resources/ec2-network-interfaces.go +++ b/resources/ec2-network-interfaces.go @@ -1,33 +1,43 @@ package resources import ( + "context" + "fmt" "strings" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ec2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type EC2NetworkInterface struct { - svc *ec2.EC2 - eni *ec2.NetworkInterface -} +const EC2NetworkInterfaceResource = "EC2NetworkInterface" func init() { - register("EC2NetworkInterface", ListEC2NetworkInterfaces) + resource.Register(resource.Registration{ + Name: EC2NetworkInterfaceResource, + Scope: nuke.Account, + Lister: &EC2NetworkInterfaceLister{}, + }) } -func ListEC2NetworkInterfaces(sess *session.Session) ([]Resource, error) { - svc := ec2.New(sess) +type EC2NetworkInterfaceLister struct{} + +func (l *EC2NetworkInterfaceLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ec2.New(opts.Session) resp, err := svc.DescribeNetworkInterfaces(nil) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, out := range resp.NetworkInterfaces { resources = append(resources, &EC2NetworkInterface{ @@ -39,8 +49,12 @@ func ListEC2NetworkInterfaces(sess *session.Session) ([]Resource, error) { return resources, nil } -func (e *EC2NetworkInterface) Remove() error { +type EC2NetworkInterface struct { + svc *ec2.EC2 + eni *ec2.NetworkInterface +} +func (e *EC2NetworkInterface) Remove(_ context.Context) error { if e.eni.Attachment != nil { _, err := e.svc.DetachNetworkInterface(&ec2.DetachNetworkInterfaceInput{ AttachmentId: e.eni.Attachment.AttachmentId, @@ -69,21 +83,21 @@ func (e *EC2NetworkInterface) Remove() error { return nil } -func (r *EC2NetworkInterface) Properties() types.Properties { +func (e *EC2NetworkInterface) Properties() types.Properties { properties := types.NewProperties() - for _, tag := range r.eni.TagSet { + for _, tag := range e.eni.TagSet { properties.SetTag(tag.Key, tag.Value) } properties. - Set("ID", r.eni.NetworkInterfaceId). - Set("VPC", r.eni.VpcId). - Set("AvailabilityZone", r.eni.AvailabilityZone). - Set("PrivateIPAddress", r.eni.PrivateIpAddress). - Set("SubnetID", r.eni.SubnetId). - Set("Status", r.eni.Status) + Set("ID", e.eni.NetworkInterfaceId). + Set("VPC", e.eni.VpcId). + Set("AvailabilityZone", e.eni.AvailabilityZone). + Set("PrivateIPAddress", e.eni.PrivateIpAddress). + Set("SubnetID", e.eni.SubnetId). + Set("Status", e.eni.Status) return properties } -func (r *EC2NetworkInterface) String() string { - return *r.eni.NetworkInterfaceId +func (e *EC2NetworkInterface) String() string { + return *e.eni.NetworkInterfaceId } diff --git a/resources/ec2-placement-groups.go b/resources/ec2-placement-groups.go index 302b970a..e7019307 100644 --- a/resources/ec2-placement-groups.go +++ b/resources/ec2-placement-groups.go @@ -1,24 +1,33 @@ package resources import ( + "context" + "fmt" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ec2" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type EC2PlacementGroup struct { - svc *ec2.EC2 - name string - state string -} +const EC2PlacementGroupResource = "EC2PlacementGroup" func init() { - register("EC2PlacementGroup", ListEC2PlacementGroups) + resource.Register(resource.Registration{ + Name: EC2PlacementGroupResource, + Scope: nuke.Account, + Lister: &EC2PlacementGroupLister{}, + }) } -func ListEC2PlacementGroups(sess *session.Session) ([]Resource, error) { - svc := ec2.New(sess) +type EC2PlacementGroupLister struct{} + +func (l *EC2PlacementGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ec2.New(opts.Session) params := &ec2.DescribePlacementGroupsInput{} resp, err := svc.DescribePlacementGroups(params) @@ -26,7 +35,7 @@ func ListEC2PlacementGroups(sess *session.Session) ([]Resource, error) { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, out := range resp.PlacementGroups { resources = append(resources, &EC2PlacementGroup{ svc: svc, @@ -38,6 +47,12 @@ func ListEC2PlacementGroups(sess *session.Session) ([]Resource, error) { return resources, nil } +type EC2PlacementGroup struct { + svc *ec2.EC2 + name string + state string +} + func (p *EC2PlacementGroup) Filter() error { if p.state == "deleted" { return fmt.Errorf("already deleted") @@ -45,7 +60,7 @@ func (p *EC2PlacementGroup) Filter() error { return nil } -func (p *EC2PlacementGroup) Remove() error { +func (p *EC2PlacementGroup) Remove(_ context.Context) error { params := &ec2.DeletePlacementGroupInput{ GroupName: &p.name, } diff --git a/resources/ec2-route-tables.go b/resources/ec2-route-tables.go index e8313c36..da4618a4 100644 --- a/resources/ec2-route-tables.go +++ b/resources/ec2-route-tables.go @@ -1,23 +1,45 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + + "fmt" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/service/ec2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const EC2RouteTableResource = "EC2RouteTable" + +func init() { + resource.Register(resource.Registration{ + Name: EC2RouteTableResource, + Scope: nuke.Account, + Lister: &EC2RouteTableLister{}, + DependsOn: []string{ + EC2SubnetResource, + }, + }) +} + type EC2RouteTable struct { svc *ec2.EC2 routeTable *ec2.RouteTable defaultVPC bool + vpc *ec2.Vpc } -func init() { - register("EC2RouteTable", ListEC2RouteTables) -} +type EC2RouteTableLister struct{} + +func (l *EC2RouteTableLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) -func ListEC2RouteTables(sess *session.Session) ([]Resource, error) { - svc := ec2.New(sess) + svc := ec2.New(opts.Session) resp, err := svc.DescribeRouteTables(nil) if err != nil { @@ -26,22 +48,38 @@ func ListEC2RouteTables(sess *session.Session) ([]Resource, error) { defVpcId := "" if defVpc := DefaultVpc(svc); defVpc != nil { - defVpcId = *defVpc.VpcId + defVpcId = ptr.ToString(defVpc.VpcId) } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, out := range resp.RouteTables { + vpc, err := GetVPC(svc, out.VpcId) + if err != nil { + return resources, nil + } + resources = append(resources, &EC2RouteTable{ svc: svc, routeTable: out, - defaultVPC: defVpcId == *out.VpcId, + defaultVPC: defVpcId == ptr.ToString(out.VpcId), + vpc: vpc, }) } return resources, nil } -func (e *EC2RouteTable) Remove() error { +func (e *EC2RouteTable) Filter() error { + for _, association := range e.routeTable.Associations { + if *association.Main { + return fmt.Errorf("main route tables cannot be deleted") + } + } + + return nil +} + +func (e *EC2RouteTable) Remove(_ context.Context) error { params := &ec2.DeleteRouteTableInput{ RouteTableId: e.routeTable.RouteTableId, } @@ -56,13 +94,21 @@ func (e *EC2RouteTable) Remove() error { func (e *EC2RouteTable) Properties() types.Properties { properties := types.NewProperties() + + properties.Set("DefaultVPC", e.defaultVPC) + properties.Set("vpcID", e.routeTable.VpcId) + for _, tagValue := range e.routeTable.Tags { properties.SetTag(tagValue.Key, tagValue.Value) } - properties.Set("DefaultVPC", e.defaultVPC) + + for _, tagValue := range e.vpc.Tags { + properties.SetTagWithPrefix("vpc", tagValue.Key, tagValue.Value) + } + return properties } func (e *EC2RouteTable) String() string { - return *e.routeTable.RouteTableId + return ptr.ToString(e.routeTable.RouteTableId) } diff --git a/resources/ec2-security-groups.go b/resources/ec2-security-groups.go index 6792ac92..f0a28d8d 100644 --- a/resources/ec2-security-groups.go +++ b/resources/ec2-security-groups.go @@ -1,13 +1,34 @@ package resources import ( + "context" + "fmt" - "github.com/aws/aws-sdk-go/aws/session" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/service/ec2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" ) +const EC2SecurityGroupResource = "EC2SecurityGroup" + +func init() { + resource.Register(resource.Registration{ + Name: EC2SecurityGroupResource, + Scope: nuke.Account, + Lister: &EC2SecurityGroupLister{}, + DependsOn: []string{ + ELBv2Resource, + EC2DefaultSecurityGroupRuleResource, + }, + }) +} + type EC2SecurityGroup struct { svc *ec2.EC2 group *ec2.SecurityGroup @@ -18,16 +39,16 @@ type EC2SecurityGroup struct { ownerID *string } -func init() { - register("EC2SecurityGroup", ListEC2SecurityGroups) -} +type EC2SecurityGroupLister struct{} -func ListEC2SecurityGroups(sess *session.Session) ([]Resource, error) { - svc := ec2.New(sess) - resources := make([]Resource, 0) +func (l *EC2SecurityGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ec2.New(opts.Session) + resources := make([]resource.Resource, 0) params := &ec2.DescribeSecurityGroupsInput{} - err := svc.DescribeSecurityGroupsPages(params, + if err := svc.DescribeSecurityGroupsPages(params, func(page *ec2.DescribeSecurityGroupsOutput, lastPage bool) bool { for _, group := range page.SecurityGroups { resources = append(resources, &EC2SecurityGroup{ @@ -41,9 +62,7 @@ func ListEC2SecurityGroups(sess *session.Session) ([]Resource, error) { }) } return !lastPage - }) - - if err != nil { + }); err != nil { return nil, err } @@ -51,14 +70,14 @@ func ListEC2SecurityGroups(sess *session.Session) ([]Resource, error) { } func (sg *EC2SecurityGroup) Filter() error { - if *sg.name == "default" { + if ptr.ToString(sg.name) == "default" { return fmt.Errorf("cannot delete group 'default'") } return nil } -func (sg *EC2SecurityGroup) Remove() error { +func (sg *EC2SecurityGroup) Remove(_ context.Context) error { if len(sg.egress) > 0 { egressParams := &ec2.RevokeSecurityGroupEgressInput{ GroupId: sg.id, @@ -100,5 +119,5 @@ func (sg *EC2SecurityGroup) Properties() types.Properties { } func (sg *EC2SecurityGroup) String() string { - return *sg.id + return ptr.ToString(sg.id) } diff --git a/resources/ec2-snapshots.go b/resources/ec2-snapshots.go index 4460c53a..911ba1dc 100644 --- a/resources/ec2-snapshots.go +++ b/resources/ec2-snapshots.go @@ -1,28 +1,36 @@ package resources import ( + "context" + "fmt" "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ec2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type EC2Snapshot struct { - svc *ec2.EC2 - id string - startTime *time.Time - tags []*ec2.Tag -} +const EC2SnapshotResource = "EC2Snapshot" func init() { - register("EC2Snapshot", ListEC2Snapshots) + resource.Register(resource.Registration{ + Name: EC2SnapshotResource, + Scope: nuke.Account, + Lister: &EC2SnapshotLister{}, + }) } -func ListEC2Snapshots(sess *session.Session) ([]Resource, error) { - svc := ec2.New(sess) +type EC2SnapshotLister struct{} + +func (l *EC2SnapshotLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ec2.New(opts.Session) params := &ec2.DescribeSnapshotsInput{ OwnerIds: []*string{ aws.String("self"), @@ -33,7 +41,7 @@ func ListEC2Snapshots(sess *session.Session) ([]Resource, error) { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, out := range resp.Snapshots { resources = append(resources, &EC2Snapshot{ svc: svc, @@ -46,6 +54,13 @@ func ListEC2Snapshots(sess *session.Session) ([]Resource, error) { return resources, nil } +type EC2Snapshot struct { + svc *ec2.EC2 + id string + startTime *time.Time + tags []*ec2.Tag +} + func (e *EC2Snapshot) Properties() types.Properties { properties := types.NewProperties() properties.Set("StartTime", e.startTime.Format(time.RFC3339)) @@ -56,7 +71,7 @@ func (e *EC2Snapshot) Properties() types.Properties { return properties } -func (e *EC2Snapshot) Remove() error { +func (e *EC2Snapshot) Remove(_ context.Context) error { _, err := e.svc.DeleteSnapshot(&ec2.DeleteSnapshotInput{ SnapshotId: &e.id, }) diff --git a/resources/ec2-spot-fleet-requests.go b/resources/ec2-spot-fleet-requests.go index 109a4e1f..57f75d7c 100644 --- a/resources/ec2-spot-fleet-requests.go +++ b/resources/ec2-spot-fleet-requests.go @@ -1,32 +1,41 @@ package resources import ( + "context" + "fmt" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ec2" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type EC2SpotFleetRequest struct { - svc *ec2.EC2 - id string - state string -} +const EC2SpotFleetRequestResource = "EC2SpotFleetRequest" func init() { - register("EC2SpotFleetRequest", ListEC2SpotFleetRequests) + resource.Register(resource.Registration{ + Name: EC2SpotFleetRequestResource, + Scope: nuke.Account, + Lister: &EC2SpotFleetRequestLister{}, + }) } -func ListEC2SpotFleetRequests(sess *session.Session) ([]Resource, error) { - svc := ec2.New(sess) +type EC2SpotFleetRequestLister struct{} + +func (l *EC2SpotFleetRequestLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ec2.New(opts.Session) resp, err := svc.DescribeSpotFleetRequests(nil) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, config := range resp.SpotFleetRequestConfigs { resources = append(resources, &EC2SpotFleetRequest{ svc: svc, @@ -38,6 +47,12 @@ func ListEC2SpotFleetRequests(sess *session.Session) ([]Resource, error) { return resources, nil } +type EC2SpotFleetRequest struct { + svc *ec2.EC2 + id string + state string +} + func (i *EC2SpotFleetRequest) Filter() error { if i.state == "cancelled" { return fmt.Errorf("already cancelled") @@ -45,7 +60,7 @@ func (i *EC2SpotFleetRequest) Filter() error { return nil } -func (i *EC2SpotFleetRequest) Remove() error { +func (i *EC2SpotFleetRequest) Remove(_ context.Context) error { params := &ec2.CancelSpotFleetRequestsInput{ TerminateInstances: aws.Bool(true), SpotFleetRequestIds: []*string{ diff --git a/resources/ec2-subnets.go b/resources/ec2-subnets.go index 599adff6..7d3764ee 100644 --- a/resources/ec2-subnets.go +++ b/resources/ec2-subnets.go @@ -1,23 +1,41 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/ec2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const EC2SubnetResource = "EC2Subnet" + +func init() { + resource.Register(resource.Registration{ + Name: EC2SubnetResource, + Scope: nuke.Account, + Lister: &EC2SubnetLister{}, + DependsOn: []string{ + EC2NetworkInterfaceResource, + }, + }) +} + type EC2Subnet struct { svc *ec2.EC2 subnet *ec2.Subnet defaultVPC bool } -func init() { - register("EC2Subnet", ListEC2Subnets) -} +type EC2SubnetLister struct{} + +func (l *EC2SubnetLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) -func ListEC2Subnets(sess *session.Session) ([]Resource, error) { - svc := ec2.New(sess) + svc := ec2.New(opts.Session) params := &ec2.DescribeSubnetsInput{} resp, err := svc.DescribeSubnets(params) @@ -30,7 +48,7 @@ func ListEC2Subnets(sess *session.Session) ([]Resource, error) { defVpcId = *defVpc.VpcId } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, out := range resp.Subnets { resources = append(resources, &EC2Subnet{ svc: svc, @@ -42,7 +60,7 @@ func ListEC2Subnets(sess *session.Session) ([]Resource, error) { return resources, nil } -func (e *EC2Subnet) Remove() error { +func (e *EC2Subnet) Remove(_ context.Context) error { params := &ec2.DeleteSubnetInput{ SubnetId: e.subnet.SubnetId, } @@ -57,12 +75,16 @@ func (e *EC2Subnet) Remove() error { func (e *EC2Subnet) Properties() types.Properties { properties := types.NewProperties() - for _, tagValue := range e.subnet.Tags { - properties.SetTag(tagValue.Key, tagValue.Value) - } + properties.Set("DefaultForAz", e.subnet.DefaultForAz) properties.Set("DefaultVPC", e.defaultVPC) properties.Set("OwnerID", e.subnet.OwnerId) + properties.Set("VpcID", e.subnet.VpcId) + + for _, tagValue := range e.subnet.Tags { + properties.SetTag(tagValue.Key, tagValue.Value) + } + return properties } diff --git a/resources/ec2-tgw-attachments.go b/resources/ec2-tgw-attachments.go index ca7dc369..01944696 100644 --- a/resources/ec2-tgw-attachments.go +++ b/resources/ec2-tgw-attachments.go @@ -1,26 +1,37 @@ package resources import ( + "context" + "fmt" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ec2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type EC2TGWAttachment struct { - svc *ec2.EC2 - tgwa *ec2.TransitGatewayAttachment -} +const EC2TGWAttachmentResource = "EC2TGWAttachment" func init() { - register("EC2TGWAttachment", ListEC2TGWAttachments) + resource.Register(resource.Registration{ + Name: EC2TGWAttachmentResource, + Scope: nuke.Account, + Lister: &EC2TGWAttachmentLister{}, + }) } -func ListEC2TGWAttachments(sess *session.Session) ([]Resource, error) { - svc := ec2.New(sess) +type EC2TGWAttachmentLister struct{} + +func (l *EC2TGWAttachmentLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ec2.New(opts.Session) + params := &ec2.DescribeTransitGatewayAttachmentsInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { resp, err := svc.DescribeTransitGatewayAttachments(params) if err != nil { @@ -46,7 +57,12 @@ func ListEC2TGWAttachments(sess *session.Session) ([]Resource, error) { return resources, nil } -func (e *EC2TGWAttachment) Remove() error { +type EC2TGWAttachment struct { + svc *ec2.EC2 + tgwa *ec2.TransitGatewayAttachment +} + +func (e *EC2TGWAttachment) Remove(_ context.Context) error { if *e.tgwa.ResourceType == "VPN" { // This will get deleted as part of EC2VPNConnection, there is no API // as part of TGW to delete VPN attachments. diff --git a/resources/ec2-tgw.go b/resources/ec2-tgw.go index e247bc5c..7028467c 100644 --- a/resources/ec2-tgw.go +++ b/resources/ec2-tgw.go @@ -1,26 +1,40 @@ package resources import ( + "context" + "fmt" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ec2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type EC2TGW struct { - svc *ec2.EC2 - tgw *ec2.TransitGateway -} +const EC2TGWResource = "EC2TGW" func init() { - register("EC2TGW", ListEC2TGWs) + resource.Register(resource.Registration{ + Name: EC2TGWResource, + Scope: nuke.Account, + Lister: &EC2TGWLister{}, + DependsOn: []string{ + EC2TGWAttachmentResource, + }, + }) } -func ListEC2TGWs(sess *session.Session) ([]Resource, error) { - svc := ec2.New(sess) +type EC2TGWLister struct{} + +func (l *EC2TGWLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ec2.New(opts.Session) + params := &ec2.DescribeTransitGatewaysInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { resp, err := svc.DescribeTransitGateways(params) if err != nil { @@ -46,7 +60,12 @@ func ListEC2TGWs(sess *session.Session) ([]Resource, error) { return resources, nil } -func (e *EC2TGW) Remove() error { +type EC2TGW struct { + svc *ec2.EC2 + tgw *ec2.TransitGateway +} + +func (e *EC2TGW) Remove(_ context.Context) error { params := &ec2.DeleteTransitGatewayInput{ TransitGatewayId: e.tgw.TransitGatewayId, } diff --git a/resources/ec2-volume.go b/resources/ec2-volume.go index 58957120..da217d09 100644 --- a/resources/ec2-volume.go +++ b/resources/ec2-volume.go @@ -1,29 +1,44 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/ec2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const EC2VolumeResource = "EC2Volume" + +func init() { + resource.Register(resource.Registration{ + Name: EC2VolumeResource, + Scope: nuke.Account, + Lister: &EC2VolumeLister{}, + }) +} + type EC2Volume struct { svc *ec2.EC2 volume *ec2.Volume } -func init() { - register("EC2Volume", ListEC2Volumes) -} +type EC2VolumeLister struct{} + +func (l *EC2VolumeLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) -func ListEC2Volumes(sess *session.Session) ([]Resource, error) { - svc := ec2.New(sess) + svc := ec2.New(opts.Session) resp, err := svc.DescribeVolumes(nil) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, out := range resp.Volumes { resources = append(resources, &EC2Volume{ svc: svc, @@ -34,7 +49,7 @@ func ListEC2Volumes(sess *session.Session) ([]Resource, error) { return resources, nil } -func (e *EC2Volume) Remove() error { +func (e *EC2Volume) Remove(_ context.Context) error { _, err := e.svc.DeleteVolume(&ec2.DeleteVolumeInput{ VolumeId: e.volume.VolumeId, }) diff --git a/resources/ec2-vpc-endpoint-connections.go b/resources/ec2-vpc-endpoint-connections.go index 68c67dd2..dc4b313c 100644 --- a/resources/ec2-vpc-endpoint-connections.go +++ b/resources/ec2-vpc-endpoint-connections.go @@ -1,29 +1,36 @@ package resources import ( + "context" + "fmt" - "github.com/aws/aws-sdk-go/aws" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" - "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ec2" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type EC2VPCEndpointConnection struct { - svc *ec2.EC2 - serviceID *string - vpcEndpointID *string - state *string - owner *string -} +const EC2VPCEndpointConnectionResource = "EC2VPCEndpointConnection" func init() { - register("EC2VPCEndpointConnection", ListEC2VPCEndpointConnections) + resource.Register(resource.Registration{ + Name: EC2VPCEndpointConnectionResource, + Scope: nuke.Account, + Lister: &EC2VPCEndpointConnectionLister{}, + }) } -func ListEC2VPCEndpointConnections(sess *session.Session) ([]Resource, error) { - svc := ec2.New(sess) - resources := make([]Resource, 0) +type EC2VPCEndpointConnectionLister struct{} + +func (l *EC2VPCEndpointConnectionLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ec2.New(opts.Session) + resources := make([]resource.Resource, 0) params := &ec2.DescribeVpcEndpointConnectionsInput{ MaxResults: aws.Int64(100), } @@ -54,6 +61,14 @@ func ListEC2VPCEndpointConnections(sess *session.Session) ([]Resource, error) { return resources, nil } +type EC2VPCEndpointConnection struct { + svc *ec2.EC2 + serviceID *string + vpcEndpointID *string + state *string + owner *string +} + func (c *EC2VPCEndpointConnection) Filter() error { if *c.state == "deleting" || *c.state == "deleted" { return fmt.Errorf("already deleted") @@ -61,7 +76,7 @@ func (c *EC2VPCEndpointConnection) Filter() error { return nil } -func (c *EC2VPCEndpointConnection) Remove() error { +func (c *EC2VPCEndpointConnection) Remove(_ context.Context) error { params := &ec2.RejectVpcEndpointConnectionsInput{ ServiceId: c.serviceID, VpcEndpointIds: []*string{ diff --git a/resources/ec2-vpc-endpoint-service-configurations.go b/resources/ec2-vpc-endpoint-service-configurations.go index 8b51aae3..89379f42 100644 --- a/resources/ec2-vpc-endpoint-service-configurations.go +++ b/resources/ec2-vpc-endpoint-service-configurations.go @@ -1,25 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ec2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type EC2VPCEndpointServiceConfiguration struct { - svc *ec2.EC2 - id *string - name *string -} +const EC2VPCEndpointServiceConfigurationResource = "EC2VPCEndpointServiceConfiguration" func init() { - register("EC2VPCEndpointServiceConfiguration", ListEC2VPCEndpointServiceConfigurations) + resource.Register(resource.Registration{ + Name: EC2VPCEndpointServiceConfigurationResource, + Scope: nuke.Account, + Lister: &EC2VPCEndpointServiceConfigurationLister{}, + }) } -func ListEC2VPCEndpointServiceConfigurations(sess *session.Session) ([]Resource, error) { - svc := ec2.New(sess) - resources := make([]Resource, 0) +type EC2VPCEndpointServiceConfigurationLister struct{} + +func (l *EC2VPCEndpointServiceConfigurationLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := ec2.New(opts.Session) + resources := make([]resource.Resource, 0) params := &ec2.DescribeVpcEndpointServiceConfigurationsInput{ MaxResults: aws.Int64(100), @@ -49,7 +57,13 @@ func ListEC2VPCEndpointServiceConfigurations(sess *session.Session) ([]Resource, return resources, nil } -func (e *EC2VPCEndpointServiceConfiguration) Remove() error { +type EC2VPCEndpointServiceConfiguration struct { + svc *ec2.EC2 + id *string + name *string +} + +func (e *EC2VPCEndpointServiceConfiguration) Remove(_ context.Context) error { params := &ec2.DeleteVpcEndpointServiceConfigurationsInput{ ServiceIds: []*string{e.id}, } diff --git a/resources/ec2-vpcEndpoint.go b/resources/ec2-vpc-endpoint.go similarity index 55% rename from resources/ec2-vpcEndpoint.go rename to resources/ec2-vpc-endpoint.go index 9cb1c3f6..3db5dc57 100644 --- a/resources/ec2-vpcEndpoint.go +++ b/resources/ec2-vpc-endpoint.go @@ -1,31 +1,43 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ec2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type EC2VPCEndpoint struct { - svc *ec2.EC2 - id *string - tags []*ec2.Tag -} +const EC2VPCEndpointResource = "EC2VPCEndpoint" func init() { - register("EC2VPCEndpoint", ListEC2VPCEndpoints) + resource.Register(resource.Registration{ + Name: EC2VPCEndpointResource, + Scope: nuke.Account, + Lister: &EC2VPCEndpointLister{}, + DependsOn: []string{ + EC2VPCEndpointConnectionResource, + EC2VPCEndpointServiceConfigurationResource, + }, + }) } -func ListEC2VPCEndpoints(sess *session.Session) ([]Resource, error) { - svc := ec2.New(sess) +type EC2VPCEndpointLister struct{} + +func (l *EC2VPCEndpointLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := ec2.New(opts.Session) resp, err := svc.DescribeVpcs(nil) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, vpc := range resp.Vpcs { params := &ec2.DescribeVpcEndpointsInput{ Filters: []*ec2.Filter{ @@ -53,12 +65,18 @@ func ListEC2VPCEndpoints(sess *session.Session) ([]Resource, error) { return resources, nil } -func (endpoint *EC2VPCEndpoint) Remove() error { +type EC2VPCEndpoint struct { + svc *ec2.EC2 + id *string + tags []*ec2.Tag +} + +func (e *EC2VPCEndpoint) Remove(_ context.Context) error { params := &ec2.DeleteVpcEndpointsInput{ - VpcEndpointIds: []*string{endpoint.id}, + VpcEndpointIds: []*string{e.id}, } - _, err := endpoint.svc.DeleteVpcEndpoints(params) + _, err := e.svc.DeleteVpcEndpoints(params) if err != nil { return err } @@ -74,6 +92,6 @@ func (e *EC2VPCEndpoint) Properties() types.Properties { return properties } -func (endpoint *EC2VPCEndpoint) String() string { - return *endpoint.id +func (e *EC2VPCEndpoint) String() string { + return *e.id } diff --git a/resources/ec2-vpc-peering-connections.go b/resources/ec2-vpc-peering-connections.go index 1c79119e..47d9e042 100644 --- a/resources/ec2-vpc-peering-connections.go +++ b/resources/ec2-vpc-peering-connections.go @@ -1,27 +1,36 @@ package resources import ( + "context" + "fmt" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ec2" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type EC2VPCPeeringConnection struct { - svc *ec2.EC2 - id *string - status *string -} +const EC2VPCPeeringConnectionResource = "EC2VPCPeeringConnection" func init() { - register("EC2VPCPeeringConnection", ListEC2VPCPeeringConnections) + resource.Register(resource.Registration{ + Name: EC2VPCPeeringConnectionResource, + Scope: nuke.Account, + Lister: &EC2VPCPeeringConnectionLister{}, + }) } -func ListEC2VPCPeeringConnections(sess *session.Session) ([]Resource, error) { - svc := ec2.New(sess) - resources := make([]Resource, 0) +type EC2VPCPeeringConnectionLister struct{} - // filter should be set as deleted vpc connetions are returned +func (l *EC2VPCPeeringConnectionLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ec2.New(opts.Session) + resources := make([]resource.Resource, 0) + + // filter should be set as deleted vpc connections are returned params := &ec2.DescribeVpcPeeringConnectionsInput{} resp, err := svc.DescribeVpcPeeringConnections(params) @@ -40,6 +49,12 @@ func ListEC2VPCPeeringConnections(sess *session.Session) ([]Resource, error) { return resources, nil } +type EC2VPCPeeringConnection struct { + svc *ec2.EC2 + id *string + status *string +} + func (p *EC2VPCPeeringConnection) Filter() error { if *p.status == "deleting" || *p.status == "deleted" { return fmt.Errorf("already deleted") @@ -47,7 +62,7 @@ func (p *EC2VPCPeeringConnection) Filter() error { return nil } -func (p *EC2VPCPeeringConnection) Remove() error { +func (p *EC2VPCPeeringConnection) Remove(_ context.Context) error { params := &ec2.DeleteVpcPeeringConnectionInput{ VpcPeeringConnectionId: p.id, } diff --git a/resources/ec2-vpc.go b/resources/ec2-vpc.go index 4e9efc0c..9e7c19c5 100644 --- a/resources/ec2-vpc.go +++ b/resources/ec2-vpc.go @@ -1,31 +1,56 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ec2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const EC2VPCResource = "EC2VPC" + +func init() { + resource.Register(resource.Registration{ + Name: EC2VPCResource, + Scope: nuke.Account, + Lister: &EC2VPCLister{}, + DependsOn: []string{ + EC2SubnetResource, + EC2RouteTableResource, + EC2DHCPOptionResource, + EC2NetworkACLResource, + EC2NetworkInterfaceResource, + EC2InternetGatewayAttachmentResource, + EC2VPCEndpointResource, + EC2VPCPeeringConnectionResource, + EC2VPNGatewayResource, + EC2EgressOnlyInternetGatewayResource, + }, + }, nuke.MapCloudControl("AWS::EC2::VPC")) +} + type EC2VPC struct { svc *ec2.EC2 vpc *ec2.Vpc } -func init() { - register("EC2VPC", ListEC2VPCs, - mapCloudControl("AWS::EC2::VPC")) -} +type EC2VPCLister struct{} -func ListEC2VPCs(sess *session.Session) ([]Resource, error) { - svc := ec2.New(sess) +func (l *EC2VPCLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := ec2.New(opts.Session) resp, err := svc.DescribeVpcs(nil) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, vpc := range resp.Vpcs { resources = append(resources, &EC2VPC{ svc: svc, @@ -36,27 +61,7 @@ func ListEC2VPCs(sess *session.Session) ([]Resource, error) { return resources, nil } -func DefaultVpc(svc *ec2.EC2) *ec2.Vpc { - resp, err := svc.DescribeVpcs(&ec2.DescribeVpcsInput{ - Filters: []*ec2.Filter{ - { - Name: aws.String("is-default"), - Values: aws.StringSlice([]string{"true"}), - }, - }, - }) - if err != nil { - return nil - } - - if len(resp.Vpcs) == 0 { - return nil - } - - return resp.Vpcs[0] -} - -func (e *EC2VPC) Remove() error { +func (e *EC2VPC) Remove(_ context.Context) error { params := &ec2.DeleteVpcInput{ VpcId: e.vpc.VpcId, } @@ -83,3 +88,38 @@ func (e *EC2VPC) Properties() types.Properties { func (e *EC2VPC) String() string { return *e.vpc.VpcId } + +func DefaultVpc(svc *ec2.EC2) *ec2.Vpc { + resp, err := svc.DescribeVpcs(&ec2.DescribeVpcsInput{ + Filters: []*ec2.Filter{ + { + Name: aws.String("is-default"), + Values: aws.StringSlice([]string{"true"}), + }, + }, + }) + if err != nil { + return nil + } + + if len(resp.Vpcs) == 0 { + return nil + } + + return resp.Vpcs[0] +} + +func GetVPC(svc *ec2.EC2, vpcID *string) (*ec2.Vpc, error) { + resp, err := svc.DescribeVpcs(&ec2.DescribeVpcsInput{ + VpcIds: []*string{vpcID}, + }) + if err != nil { + return nil, err + } + + if len(resp.Vpcs) == 0 { + return nil, nil + } + + return resp.Vpcs[0], nil +} diff --git a/resources/ec2-vpn-connections.go b/resources/ec2-vpn-connections.go index be78228b..dd701a5f 100644 --- a/resources/ec2-vpn-connections.go +++ b/resources/ec2-vpn-connections.go @@ -1,24 +1,33 @@ package resources import ( + "context" + "fmt" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ec2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type EC2VPNConnection struct { - svc *ec2.EC2 - conn *ec2.VpnConnection -} +const EC2VPNConnectionResource = "EC2VPNConnection" func init() { - register("EC2VPNConnection", ListEC2VPNConnections) + resource.Register(resource.Registration{ + Name: EC2VPNConnectionResource, + Scope: nuke.Account, + Lister: &EC2VPNConnectionLister{}, + }) } -func ListEC2VPNConnections(sess *session.Session) ([]Resource, error) { - svc := ec2.New(sess) +type EC2VPNConnectionLister struct{} + +func (l *EC2VPNConnectionLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := ec2.New(opts.Session) params := &ec2.DescribeVpnConnectionsInput{} resp, err := svc.DescribeVpnConnections(params) @@ -26,17 +35,22 @@ func ListEC2VPNConnections(sess *session.Session) ([]Resource, error) { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, out := range resp.VpnConnections { resources = append(resources, &EC2VPNConnection{ - svc: svc, - conn: out, + svc: svc, + conn: out, }) } return resources, nil } +type EC2VPNConnection struct { + svc *ec2.EC2 + conn *ec2.VpnConnection +} + func (v *EC2VPNConnection) Filter() error { if *v.conn.State == "deleted" { return fmt.Errorf("already deleted") @@ -44,7 +58,7 @@ func (v *EC2VPNConnection) Filter() error { return nil } -func (v *EC2VPNConnection) Remove() error { +func (v *EC2VPNConnection) Remove(_ context.Context) error { params := &ec2.DeleteVpnConnectionInput{ VpnConnectionId: v.conn.VpnConnectionId, } diff --git a/resources/ec2-vpn-gateway-attachments.go b/resources/ec2-vpn-gateway-attachments.go index 5a5e5980..5d0d93ca 100644 --- a/resources/ec2-vpn-gateway-attachments.go +++ b/resources/ec2-vpn-gateway-attachments.go @@ -1,36 +1,41 @@ package resources import ( + "context" + "fmt" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ec2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type EC2VPNGatewayAttachment struct { - svc *ec2.EC2 - vpcId string - vpnId string - state string - vpcTags []*ec2.Tag - vgwTags []*ec2.Tag -} +const EC2VPNGatewayAttachmentResource = "EC2VPNGatewayAttachment" func init() { - register("EC2VPNGatewayAttachment", ListEC2VPNGatewayAttachments) + resource.Register(resource.Registration{ + Name: EC2VPNGatewayAttachmentResource, + Scope: nuke.Account, + Lister: &EC2VPNGatewayAttachmentLister{}, + }) } -func ListEC2VPNGatewayAttachments(sess *session.Session) ([]Resource, error) { - svc := ec2.New(sess) +type EC2VPNGatewayAttachmentLister struct{} + +func (l *EC2VPNGatewayAttachmentLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := ec2.New(opts.Session) resp, err := svc.DescribeVpcs(nil) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, vpc := range resp.Vpcs { params := &ec2.DescribeVpnGatewaysInput{ Filters: []*ec2.Filter{ @@ -60,6 +65,15 @@ func ListEC2VPNGatewayAttachments(sess *session.Session) ([]Resource, error) { return resources, nil } +type EC2VPNGatewayAttachment struct { + svc *ec2.EC2 + vpcId string + vpnId string + state string + vpcTags []*ec2.Tag + vgwTags []*ec2.Tag +} + func (v *EC2VPNGatewayAttachment) Filter() error { if v.state == "detached" { return fmt.Errorf("already detached") @@ -67,7 +81,7 @@ func (v *EC2VPNGatewayAttachment) Filter() error { return nil } -func (v *EC2VPNGatewayAttachment) Remove() error { +func (v *EC2VPNGatewayAttachment) Remove(_ context.Context) error { params := &ec2.DetachVpnGatewayInput{ VpcId: &v.vpcId, VpnGatewayId: &v.vpnId, diff --git a/resources/ec2-vpn-gateways.go b/resources/ec2-vpn-gateways.go index 0b0321df..dd76afdf 100644 --- a/resources/ec2-vpn-gateways.go +++ b/resources/ec2-vpn-gateways.go @@ -1,24 +1,35 @@ package resources import ( + "context" + "fmt" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ec2" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type EC2VPNGateway struct { - svc *ec2.EC2 - id string - state string -} +const EC2VPNGatewayResource = "EC2VPNGateway" func init() { - register("EC2VPNGateway", ListEC2VPNGateways) + resource.Register(resource.Registration{ + Name: EC2VPNGatewayResource, + Scope: nuke.Account, + Lister: &EC2VPNGatewayLister{}, + DependsOn: []string{ + EC2VPNGatewayAttachmentResource, + }, + }) } -func ListEC2VPNGateways(sess *session.Session) ([]Resource, error) { - svc := ec2.New(sess) +type EC2VPNGatewayLister struct{} + +func (l *EC2VPNGatewayLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := ec2.New(opts.Session) params := &ec2.DescribeVpnGatewaysInput{} resp, err := svc.DescribeVpnGateways(params) @@ -26,7 +37,7 @@ func ListEC2VPNGateways(sess *session.Session) ([]Resource, error) { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, out := range resp.VpnGateways { resources = append(resources, &EC2VPNGateway{ svc: svc, @@ -38,6 +49,12 @@ func ListEC2VPNGateways(sess *session.Session) ([]Resource, error) { return resources, nil } +type EC2VPNGateway struct { + svc *ec2.EC2 + id string + state string +} + func (v *EC2VPNGateway) Filter() error { if v.state == "deleted" { return fmt.Errorf("already deleted") @@ -45,7 +62,7 @@ func (v *EC2VPNGateway) Filter() error { return nil } -func (v *EC2VPNGateway) Remove() error { +func (v *EC2VPNGateway) Remove(_ context.Context) error { params := &ec2.DeleteVpnGatewayInput{ VpnGatewayId: &v.id, } diff --git a/resources/ecr-public-repository.go b/resources/ecr-public-repository.go new file mode 100644 index 00000000..084f406d --- /dev/null +++ b/resources/ecr-public-repository.go @@ -0,0 +1,105 @@ +package resources + +import ( + "context" + + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/ecrpublic" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" +) + +const ECRPublicRepositoryResource = "ECRPublicRepository" + +func init() { + resource.Register(resource.Registration{ + Name: ECRPublicRepositoryResource, + Scope: nuke.Account, + Lister: &ECRPublicRepositoryLister{}, + DependsOn: []string{ + EC2VPNGatewayAttachmentResource, + }, + }, nuke.MapCloudControl("AWS::ECR::PublicRepository")) +} + +type ECRPublicRepositoryLister struct{} + +func (l *ECRPublicRepositoryLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := ecrpublic.New(opts.Session) + var resources []resource.Resource + + input := &ecrpublic.DescribeRepositoriesInput{ + MaxResults: aws.Int64(100), + } + + for { + output, err := svc.DescribeRepositories(input) + if err != nil { + return nil, err + } + + for _, repository := range output.Repositories { + tagResp, err := svc.ListTagsForResource(&ecrpublic.ListTagsForResourceInput{ + ResourceArn: repository.RepositoryArn, + }) + if err != nil { + return nil, err + } + resources = append(resources, &ECRPublicRepository{ + svc: svc, + name: repository.RepositoryName, + createdTime: repository.CreatedAt, + tags: tagResp.Tags, + }) + } + + if output.NextToken == nil { + break + } + + input.NextToken = output.NextToken + } + + return resources, nil +} + +type ECRPublicRepository struct { + svc *ecrpublic.ECRPublic + name *string + createdTime *time.Time + tags []*ecrpublic.Tag +} + +func (r *ECRPublicRepository) Filter() error { + return nil +} + +func (r *ECRPublicRepository) Properties() types.Properties { + props := types.NewProperties() + props.Set("CreatedTime", r.createdTime.Format(time.RFC3339)) + + for _, t := range r.tags { + props.SetTag(t.Key, t.Value) + } + + return props +} + +func (r *ECRPublicRepository) Remove(_ context.Context) error { + params := &ecrpublic.DeleteRepositoryInput{ + RepositoryName: r.name, + Force: aws.Bool(true), + } + _, err := r.svc.DeleteRepository(params) + return err +} + +func (r *ECRPublicRepository) String() string { + return *r.name +} diff --git a/resources/ecr-repository.go b/resources/ecr-repository.go index b8bb7be2..5e0a32b1 100644 --- a/resources/ecr-repository.go +++ b/resources/ecr-repository.go @@ -1,30 +1,37 @@ package resources import ( + "context" + "fmt" "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ecr" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ECRRepository struct { - svc *ecr.ECR - name *string - createdTime *time.Time - tags []*ecr.Tag -} +const ECRRepositoryResource = "ECRRepository" +const ECRRepositoryCloudControlResource = "AWS::ECR::Repository" func init() { - register("ECRRepository", ListECRRepositories, - mapCloudControl("AWS::ECR::Repository")) + resource.Register(resource.Registration{ + Name: ECRRepositoryResource, + Scope: nuke.Account, + Lister: &ECRRepositoryLister{}, + }, nuke.MapCloudControl(ECRRepositoryCloudControlResource)) } -func ListECRRepositories(sess *session.Session) ([]Resource, error) { - svc := ecr.New(sess) - resources := []Resource{} +type ECRRepositoryLister struct{} + +func (l *ECRRepositoryLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := ecr.New(opts.Session) + var resources []resource.Resource input := &ecr.DescribeRepositoriesInput{ MaxResults: aws.Int64(100), @@ -61,6 +68,13 @@ func ListECRRepositories(sess *session.Session) ([]Resource, error) { return resources, nil } +type ECRRepository struct { + svc *ecr.ECR + name *string + createdTime *time.Time + tags []*ecr.Tag +} + func (r *ECRRepository) Filter() error { return nil } @@ -75,7 +89,7 @@ func (r *ECRRepository) Properties() types.Properties { return properties } -func (r *ECRRepository) Remove() error { +func (r *ECRRepository) Remove(_ context.Context) error { params := &ecr.DeleteRepositoryInput{ RepositoryName: r.name, Force: aws.Bool(true), diff --git a/resources/ecs-clusterinstances.go b/resources/ecs-clusterinstances.go index 37301a10..3702abf3 100644 --- a/resources/ecs-clusterinstances.go +++ b/resources/ecs-clusterinstances.go @@ -1,27 +1,36 @@ package resources import ( + "context" + "fmt" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ecs" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ECSClusterInstance struct { - svc *ecs.ECS - instanceARN *string - clusterARN *string -} +const ECSClusterInstanceResource = "ECSClusterInstance" func init() { - register("ECSClusterInstance", ListECSClusterInstances) + resource.Register(resource.Registration{ + Name: ECSClusterInstanceResource, + Scope: nuke.Account, + Lister: &ECSClusterInstanceLister{}, + }) } -func ListECSClusterInstances(sess *session.Session) ([]Resource, error) { - svc := ecs.New(sess) - resources := []Resource{} - clusters := []*string{} +type ECSClusterInstanceLister struct{} + +func (l *ECSClusterInstanceLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ecs.New(opts.Session) + resources := make([]resource.Resource, 0) + var clusters []*string clusterParams := &ecs.ListClustersInput{ MaxResults: aws.Int64(100), @@ -75,8 +84,13 @@ func ListECSClusterInstances(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *ECSClusterInstance) Remove() error { +type ECSClusterInstance struct { + svc *ecs.ECS + instanceARN *string + clusterARN *string +} +func (f *ECSClusterInstance) Remove(_ context.Context) error { _, err := f.svc.DeregisterContainerInstance(&ecs.DeregisterContainerInstanceInput{ Cluster: f.clusterARN, ContainerInstance: f.instanceARN, diff --git a/resources/ecs-clusters.go b/resources/ecs-clusters.go index fe4b229c..e56f5400 100644 --- a/resources/ecs-clusters.go +++ b/resources/ecs-clusters.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ecs" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ECSCluster struct { - svc *ecs.ECS - ARN *string -} +const ECSClusterResource = "ECSCluster" func init() { - register("ECSCluster", ListECSClusters) + resource.Register(resource.Registration{ + Name: ECSClusterResource, + Scope: nuke.Account, + Lister: &ECSClusterLister{}, + }) } -func ListECSClusters(sess *session.Session) ([]Resource, error) { - svc := ecs.New(sess) - resources := []Resource{} +type ECSClusterLister struct{} + +func (l *ECSClusterLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ecs.New(opts.Session) + resources := make([]resource.Resource, 0) params := &ecs.ListClustersInput{ MaxResults: aws.Int64(100), @@ -46,8 +56,12 @@ func ListECSClusters(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *ECSCluster) Remove() error { +type ECSCluster struct { + svc *ecs.ECS + ARN *string +} +func (f *ECSCluster) Remove(_ context.Context) error { _, err := f.svc.DeleteCluster(&ecs.DeleteClusterInput{ Cluster: f.ARN, }) diff --git a/resources/ecs-services.go b/resources/ecs-services.go index d5a3792e..c157e66a 100644 --- a/resources/ecs-services.go +++ b/resources/ecs-services.go @@ -1,26 +1,35 @@ package resources import ( + "context" + "fmt" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ecs" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ECSService struct { - svc *ecs.ECS - serviceARN *string - clusterARN *string -} +const ECSServiceResource = "ECSService" func init() { - register("ECSService", ListECSServices) + resource.Register(resource.Registration{ + Name: ECSServiceResource, + Scope: nuke.Account, + Lister: &ECSServiceLister{}, + }) } -func ListECSServices(sess *session.Session) ([]Resource, error) { - svc := ecs.New(sess) - resources := []Resource{} +type ECSServiceLister struct{} + +func (l *ECSServiceLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ecs.New(opts.Session) + resources := make([]resource.Resource, 0) clusters := []*string{} clusterParams := &ecs.ListClustersInput{ @@ -75,8 +84,13 @@ func ListECSServices(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *ECSService) Remove() error { +type ECSService struct { + svc *ecs.ECS + serviceARN *string + clusterARN *string +} +func (f *ECSService) Remove(_ context.Context) error { _, err := f.svc.DeleteService(&ecs.DeleteServiceInput{ Cluster: f.clusterARN, Service: f.serviceARN, diff --git a/resources/ecs-taskdefinitions.go b/resources/ecs-taskdefinitions.go index 0ced17c8..af7ede37 100644 --- a/resources/ecs-taskdefinitions.go +++ b/resources/ecs-taskdefinitions.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ecs" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ECSTaskDefinition struct { - svc *ecs.ECS - ARN *string -} +const ECSTaskDefinitionResource = "ECSTaskDefinition" func init() { - register("ECSTaskDefinition", ListECSTaskDefinitions) + resource.Register(resource.Registration{ + Name: ECSTaskDefinitionResource, + Scope: nuke.Account, + Lister: &ECSTaskDefinitionLister{}, + }) } -func ListECSTaskDefinitions(sess *session.Session) ([]Resource, error) { - svc := ecs.New(sess) - resources := []Resource{} +type ECSTaskDefinitionLister struct{} + +func (l *ECSTaskDefinitionLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ecs.New(opts.Session) + resources := make([]resource.Resource, 0) params := &ecs.ListTaskDefinitionsInput{ MaxResults: aws.Int64(100), @@ -46,8 +56,12 @@ func ListECSTaskDefinitions(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *ECSTaskDefinition) Remove() error { +type ECSTaskDefinition struct { + svc *ecs.ECS + ARN *string +} +func (f *ECSTaskDefinition) Remove(_ context.Context) error { _, err := f.svc.DeregisterTaskDefinition(&ecs.DeregisterTaskDefinitionInput{ TaskDefinition: f.ARN, }) diff --git a/resources/ecs-tasks.go b/resources/ecs-tasks.go index c492bd2d..8b14c8c3 100644 --- a/resources/ecs-tasks.go +++ b/resources/ecs-tasks.go @@ -1,26 +1,35 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ecs" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ECSTask struct { - svc *ecs.ECS - taskARN *string - clusterARN *string -} +const ECSTaskResource = "ECSTask" func init() { - register("ECSTask", ListECSTasks) + resource.Register(resource.Registration{ + Name: ECSTaskResource, + Scope: nuke.Account, + Lister: &ECSTaskLister{}, + }) } -func ListECSTasks(sess *session.Session) ([]Resource, error) { - svc := ecs.New(sess) - resources := []Resource{} - clusters := []*string{} +type ECSTaskLister struct{} + +func (l *ECSTaskLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ecs.New(opts.Session) + resources := make([]resource.Resource, 0) + var clusters []*string clusterParams := &ecs.ListClustersInput{ MaxResults: aws.Int64(100), @@ -72,6 +81,12 @@ func ListECSTasks(sess *session.Session) ([]Resource, error) { return resources, nil } +type ECSTask struct { + svc *ecs.ECS + taskARN *string + clusterARN *string +} + func (t *ECSTask) Filter() error { return nil } @@ -84,13 +99,12 @@ func (t *ECSTask) Properties() types.Properties { return properties } -func (t *ECSTask) Remove() error { +func (t *ECSTask) Remove(_ context.Context) error { // When StopTask is called on a task, the equivalent of docker stop is issued to the // containers running in the task. This results in a SIGTERM value and a default // 30-second timeout, after which the SIGKILL value is sent and the containers are // forcibly stopped. If the container handles the SIGTERM value gracefully and exits // within 30 seconds from receiving it, no SIGKILL value is sent. - _, err := t.svc.StopTask(&ecs.StopTaskInput{ Cluster: t.clusterARN, Task: t.taskARN, diff --git a/resources/efs-filesystem.go b/resources/efs-filesystem.go index 9430b39d..e50d27dd 100644 --- a/resources/efs-filesystem.go +++ b/resources/efs-filesystem.go @@ -1,31 +1,39 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/efs" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type EFSFileSystem struct { - svc *efs.EFS - id string - name string - tagList []*efs.Tag -} +const EFSFileSystemResource = "EFSFileSystem" func init() { - register("EFSFileSystem", ListEFSFileSystems) + resource.Register(resource.Registration{ + Name: EFSFileSystemResource, + Scope: nuke.Account, + Lister: &EFSFileSystemLister{}, + }) } -func ListEFSFileSystems(sess *session.Session) ([]Resource, error) { - svc := efs.New(sess) +type EFSFileSystemLister struct{} + +func (l *EFSFileSystemLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := efs.New(opts.Session) resp, err := svc.DescribeFileSystems(nil) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, fs := range resp.FileSystems { lto, err := svc.ListTagsForResource(&efs.ListTagsForResourceInput{ResourceId: fs.FileSystemId}) if err != nil { @@ -43,7 +51,14 @@ func ListEFSFileSystems(sess *session.Session) ([]Resource, error) { return resources, nil } -func (e *EFSFileSystem) Remove() error { +type EFSFileSystem struct { + svc *efs.EFS + id string + name string + tagList []*efs.Tag +} + +func (e *EFSFileSystem) Remove(_ context.Context) error { _, err := e.svc.DeleteFileSystem(&efs.DeleteFileSystemInput{ FileSystemId: &e.id, }) diff --git a/resources/efs-mount-targets.go b/resources/efs-mount-targets.go index 13d5e7d3..67c76bab 100644 --- a/resources/efs-mount-targets.go +++ b/resources/efs-mount-targets.go @@ -1,33 +1,41 @@ package resources import ( + "context" + "fmt" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/efs" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type EFSMountTarget struct { - svc *efs.EFS - id string - fsid string - fsTags []*efs.Tag -} +const EFSMountTargetResource = "EFSMountTarget" func init() { - register("EFSMountTarget", ListEFSMountTargets) + resource.Register(resource.Registration{ + Name: EFSMountTargetResource, + Scope: nuke.Account, + Lister: &EFSMountTargetLister{}, + }) } -func ListEFSMountTargets(sess *session.Session) ([]Resource, error) { - svc := efs.New(sess) +type EFSMountTargetLister struct{} + +func (l *EFSMountTargetLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := efs.New(opts.Session) resp, err := svc.DescribeFileSystems(nil) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, fs := range resp.FileSystems { mt, err := svc.DescribeMountTargets(&efs.DescribeMountTargetsInput{ FileSystemId: fs.FileSystemId, @@ -45,7 +53,7 @@ func ListEFSMountTargets(sess *session.Session) ([]Resource, error) { resources = append(resources, &EFSMountTarget{ svc: svc, id: *t.MountTargetId, - fsid: *t.FileSystemId, + fsID: *t.FileSystemId, fsTags: lto.Tags, }) @@ -55,7 +63,14 @@ func ListEFSMountTargets(sess *session.Session) ([]Resource, error) { return resources, nil } -func (e *EFSMountTarget) Remove() error { +type EFSMountTarget struct { + svc *efs.EFS + id string + fsID string + fsTags []*efs.Tag +} + +func (e *EFSMountTarget) Remove(_ context.Context) error { _, err := e.svc.DeleteMountTarget(&efs.DeleteMountTargetInput{ MountTargetId: &e.id, }) @@ -69,10 +84,10 @@ func (e *EFSMountTarget) Properties() types.Properties { properties.SetTagWithPrefix("efs", tagValue.Key, tagValue.Value) } properties.Set("Name", e.id) - properties.Set("ID", e.fsid) + properties.Set("ID", e.fsID) return properties } func (e *EFSMountTarget) String() string { - return fmt.Sprintf("%s:%s", e.fsid, e.id) + return fmt.Sprintf("%s:%s", e.fsID, e.id) } diff --git a/resources/eks-clusters.go b/resources/eks-clusters.go index 999d33a0..a1c25fb9 100644 --- a/resources/eks-clusters.go +++ b/resources/eks-clusters.go @@ -1,27 +1,35 @@ package resources import ( + "context" + "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/eks" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type EKSCluster struct { - svc *eks.EKS - name *string - cluster *eks.Cluster -} +const EKSClusterResource = "EKSCluster" func init() { - register("EKSCluster", ListEKSClusters) + resource.Register(resource.Registration{ + Name: EKSClusterResource, + Scope: nuke.Account, + Lister: &EKSClusterLister{}, + }) } -func ListEKSClusters(sess *session.Session) ([]Resource, error) { - svc := eks.New(sess) - resources := []Resource{} +type EKSClusterLister struct{} + +func (l *EKSClusterLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := eks.New(opts.Session) + var resources []resource.Resource params := &eks.ListClustersInput{ MaxResults: aws.Int64(100), @@ -53,7 +61,13 @@ func ListEKSClusters(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *EKSCluster) Remove() error { +type EKSCluster struct { + svc *eks.EKS + name *string + cluster *eks.Cluster +} + +func (f *EKSCluster) Remove(_ context.Context) error { _, err := f.svc.DeleteCluster(&eks.DeleteClusterInput{ Name: f.name, diff --git a/resources/eks-fargate.go b/resources/eks-fargate.go index feb2a725..e8eb6106 100644 --- a/resources/eks-fargate.go +++ b/resources/eks-fargate.go @@ -1,28 +1,36 @@ package resources import ( + "context" + "fmt" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/eks" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type EKSFargateProfile struct { - svc *eks.EKS - cluster *string - name *string -} +const EKSFargateProfileResource = "EKSFargateProfile" func init() { - register("EKSFargateProfiles", ListEKSFargateProfiles) + resource.Register(resource.Registration{ + Name: EKSFargateProfileResource, + Scope: nuke.Account, + Lister: &EKSFargateProfileLister{}, + }) } -func ListEKSFargateProfiles(sess *session.Session) ([]Resource, error) { - svc := eks.New(sess) - clusterNames := []*string{} - resources := []Resource{} +type EKSFargateProfileLister struct{} + +func (l *EKSFargateProfileLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := eks.New(opts.Session) + var clusterNames []*string + var resources []resource.Resource clusterInputParams := &eks.ListClustersInput{ MaxResults: aws.Int64(100), @@ -81,7 +89,13 @@ func ListEKSFargateProfiles(sess *session.Session) ([]Resource, error) { return resources, nil } -func (fp *EKSFargateProfile) Remove() error { +type EKSFargateProfile struct { + svc *eks.EKS + cluster *string + name *string +} + +func (fp *EKSFargateProfile) Remove(_ context.Context) error { _, err := fp.svc.DeleteFargateProfile(&eks.DeleteFargateProfileInput{ ClusterName: fp.cluster, FargateProfileName: fp.name, diff --git a/resources/eks-nodegroups.go b/resources/eks-nodegroups.go index 8cf8d6ff..6ad79f5b 100644 --- a/resources/eks-nodegroups.go +++ b/resources/eks-nodegroups.go @@ -1,28 +1,38 @@ package resources import ( + "context" + "fmt" "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/eks" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type EKSNodegroup struct { - svc *eks.EKS - nodegroup *eks.Nodegroup -} +const EKSNodegroupResource = "EKSNodegroup" func init() { - register("EKSNodegroups", ListEKSNodegroups) + resource.Register(resource.Registration{ + Name: EKSNodegroupResource, + Scope: nuke.Account, + Lister: &EKSNodegroupLister{}, + }) } -func ListEKSNodegroups(sess *session.Session) ([]Resource, error) { - svc := eks.New(sess) - clusterNames := []*string{} - resources := []Resource{} +type EKSNodegroupLister struct{} + +func (l *EKSNodegroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := eks.New(opts.Session) + + var clusterNames []*string + var resources []resource.Resource clusterInputParams := &eks.ListClustersInput{ MaxResults: aws.Int64(100), @@ -86,7 +96,12 @@ func ListEKSNodegroups(sess *session.Session) ([]Resource, error) { return resources, nil } -func (ng *EKSNodegroup) Remove() error { +type EKSNodegroup struct { + svc *eks.EKS + nodegroup *eks.Nodegroup +} + +func (ng *EKSNodegroup) Remove(_ context.Context) error { _, err := ng.svc.DeleteNodegroup(&eks.DeleteNodegroupInput{ ClusterName: ng.nodegroup.ClusterName, NodegroupName: ng.nodegroup.NodegroupName, diff --git a/resources/elasticache-cacheparametergroups.go b/resources/elasticache-cacheparametergroups.go index c6d3e00c..aa9981a9 100644 --- a/resources/elasticache-cacheparametergroups.go +++ b/resources/elasticache-cacheparametergroups.go @@ -1,28 +1,37 @@ package resources import ( + "context" + "fmt" "strings" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/elasticache" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ElasticacheCacheParameterGroup struct { - svc *elasticache.ElastiCache - groupName *string - groupFamily *string -} +const ElasticacheCacheParameterGroupResource = "ElasticacheCacheParameterGroup" func init() { - register("ElasticacheCacheParameterGroup", ListElasticacheCacheParameterGroups) + resource.Register(resource.Registration{ + Name: ElasticacheCacheParameterGroupResource, + Scope: nuke.Account, + Lister: &ElasticacheCacheParameterGroupLister{}, + }) } -func ListElasticacheCacheParameterGroups(sess *session.Session) ([]Resource, error) { - svc := elasticache.New(sess) - var resources []Resource +type ElasticacheCacheParameterGroupLister struct{} + +func (l *ElasticacheCacheParameterGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := elasticache.New(opts.Session) + var resources []resource.Resource params := &elasticache.DescribeCacheParameterGroupsInput{MaxRecords: aws.Int64(100)} @@ -50,14 +59,20 @@ func ListElasticacheCacheParameterGroups(sess *session.Session) ([]Resource, err return resources, nil } +type ElasticacheCacheParameterGroup struct { + svc *elasticache.ElastiCache + groupName *string + groupFamily *string +} + func (i *ElasticacheCacheParameterGroup) Filter() error { if strings.HasPrefix(*i.groupName, "default.") { - return fmt.Errorf("Cannot delete default cache parameter group") + return fmt.Errorf("cannot delete default cache parameter group") } return nil } -func (i *ElasticacheCacheParameterGroup) Remove() error { +func (i *ElasticacheCacheParameterGroup) Remove(_ context.Context) error { params := &elasticache.DeleteCacheParameterGroupInput{ CacheParameterGroupName: i.groupName, } diff --git a/resources/elasticache-memcachecluster.go b/resources/elasticache-memcacheclusters.go similarity index 53% rename from resources/elasticache-memcachecluster.go rename to resources/elasticache-memcacheclusters.go index c251b12b..676a1cd0 100644 --- a/resources/elasticache-memcachecluster.go +++ b/resources/elasticache-memcacheclusters.go @@ -1,30 +1,45 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/elasticache" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ElasticacheCacheCluster struct { - svc *elasticache.ElastiCache - clusterID *string - status *string -} +const ElasticacheCacheClusterResource = "ElasticacheCacheCluster" func init() { - register("ElasticacheCacheCluster", ListElasticacheCacheClusters) + resource.Register(resource.Registration{ + Name: ElasticacheCacheClusterResource, + Scope: nuke.Account, + Lister: &ElasticacheCacheClusterLister{}, + DependsOn: []string{ + ElasticacheCacheParameterGroupResource, + ElasticacheReplicationGroupResource, + ElasticacheSubnetGroupResource, + }, + }) } -func ListElasticacheCacheClusters(sess *session.Session) ([]Resource, error) { - svc := elasticache.New(sess) +type ElasticacheCacheClusterLister struct{} + +func (l *ElasticacheCacheClusterLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := elasticache.New(opts.Session) params := &elasticache.DescribeCacheClustersInput{MaxRecords: aws.Int64(100)} resp, err := svc.DescribeCacheClusters(params) if err != nil { return nil, err } - var resources []Resource + + var resources []resource.Resource for _, cacheCluster := range resp.CacheClusters { resources = append(resources, &ElasticacheCacheCluster{ svc: svc, @@ -36,7 +51,13 @@ func ListElasticacheCacheClusters(sess *session.Session) ([]Resource, error) { return resources, nil } -func (i *ElasticacheCacheCluster) Remove() error { +type ElasticacheCacheCluster struct { + svc *elasticache.ElastiCache + clusterID *string + status *string +} + +func (i *ElasticacheCacheCluster) Remove(_ context.Context) error { params := &elasticache.DeleteCacheClusterInput{ CacheClusterId: i.clusterID, } diff --git a/resources/elasticache-replicationgroups.go b/resources/elasticache-replicationgroups.go index b677263e..9f3b07cf 100644 --- a/resources/elasticache-replicationgroups.go +++ b/resources/elasticache-replicationgroups.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/elasticache" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ElasticacheReplicationGroup struct { - svc *elasticache.ElastiCache - groupID *string -} +const ElasticacheReplicationGroupResource = "ElasticacheReplicationGroup" func init() { - register("ElasticacheReplicationGroup", ListElasticacheReplicationGroups) + resource.Register(resource.Registration{ + Name: ElasticacheReplicationGroupResource, + Scope: nuke.Account, + Lister: &ElasticacheReplicationGroupLister{}, + }) } -func ListElasticacheReplicationGroups(sess *session.Session) ([]Resource, error) { - svc := elasticache.New(sess) - var resources []Resource +type ElasticacheReplicationGroupLister struct{} + +func (l *ElasticacheReplicationGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := elasticache.New(opts.Session) + var resources []resource.Resource params := &elasticache.DescribeReplicationGroupsInput{MaxRecords: aws.Int64(100)} @@ -44,7 +54,12 @@ func ListElasticacheReplicationGroups(sess *session.Session) ([]Resource, error) return resources, nil } -func (i *ElasticacheReplicationGroup) Remove() error { +type ElasticacheReplicationGroup struct { + svc *elasticache.ElastiCache + groupID *string +} + +func (i *ElasticacheReplicationGroup) Remove(_ context.Context) error { params := &elasticache.DeleteReplicationGroupInput{ ReplicationGroupId: i.groupID, } diff --git a/resources/elasticache-subnetgroups.go b/resources/elasticache-subnetgroups.go index 2e17689e..d8be4a09 100644 --- a/resources/elasticache-subnetgroups.go +++ b/resources/elasticache-subnetgroups.go @@ -1,29 +1,39 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/elasticache" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ElasticacheSubnetGroup struct { - svc *elasticache.ElastiCache - name *string -} +const ElasticacheSubnetGroupResource = "ElasticacheSubnetGroup" func init() { - register("ElasticacheSubnetGroup", ListElasticacheSubnetGroups) + resource.Register(resource.Registration{ + Name: ElasticacheSubnetGroupResource, + Scope: nuke.Account, + Lister: &ElasticacheSubnetGroupLister{}, + }) } -func ListElasticacheSubnetGroups(sess *session.Session) ([]Resource, error) { - svc := elasticache.New(sess) +type ElasticacheSubnetGroupLister struct{} + +func (l *ElasticacheSubnetGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := elasticache.New(opts.Session) params := &elasticache.DescribeCacheSubnetGroupsInput{MaxRecords: aws.Int64(100)} resp, err := svc.DescribeCacheSubnetGroups(params) if err != nil { return nil, err } - var resources []Resource + var resources []resource.Resource for _, subnetGroup := range resp.CacheSubnetGroups { resources = append(resources, &ElasticacheSubnetGroup{ svc: svc, @@ -35,7 +45,12 @@ func ListElasticacheSubnetGroups(sess *session.Session) ([]Resource, error) { return resources, nil } -func (i *ElasticacheSubnetGroup) Remove() error { +type ElasticacheSubnetGroup struct { + svc *elasticache.ElastiCache + name *string +} + +func (i *ElasticacheSubnetGroup) Remove(_ context.Context) error { params := &elasticache.DeleteCacheSubnetGroupInput{ CacheSubnetGroupName: i.name, } diff --git a/resources/elasticbeanstalk-applications.go b/resources/elasticbeanstalk-applications.go index 1da129f5..eafb53fd 100644 --- a/resources/elasticbeanstalk-applications.go +++ b/resources/elasticbeanstalk-applications.go @@ -1,22 +1,32 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/elasticbeanstalk" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ElasticBeanstalkApplication struct { - svc *elasticbeanstalk.ElasticBeanstalk - name *string -} +const ElasticBeanstalkApplicationResource = "ElasticBeanstalkApplication" func init() { - register("ElasticBeanstalkApplication", ListElasticBeanstalkApplications) + resource.Register(resource.Registration{ + Name: ElasticBeanstalkApplicationResource, + Scope: nuke.Account, + Lister: &ElasticBeanstalkApplicationLister{}, + }) } -func ListElasticBeanstalkApplications(sess *session.Session) ([]Resource, error) { - svc := elasticbeanstalk.New(sess) - resources := []Resource{} +type ElasticBeanstalkApplicationLister struct{} + +func (l *ElasticBeanstalkApplicationLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := elasticbeanstalk.New(opts.Session) + resources := make([]resource.Resource, 0) params := &elasticbeanstalk.DescribeApplicationsInput{} @@ -35,8 +45,12 @@ func ListElasticBeanstalkApplications(sess *session.Session) ([]Resource, error) return resources, nil } -func (f *ElasticBeanstalkApplication) Remove() error { +type ElasticBeanstalkApplication struct { + svc *elasticbeanstalk.ElasticBeanstalk + name *string +} +func (f *ElasticBeanstalkApplication) Remove(_ context.Context) error { _, err := f.svc.DeleteApplication(&elasticbeanstalk.DeleteApplicationInput{ ApplicationName: f.name, }) diff --git a/resources/elasticbeanstalk-environments.go b/resources/elasticbeanstalk-environments.go index b65a50c2..247657db 100644 --- a/resources/elasticbeanstalk-environments.go +++ b/resources/elasticbeanstalk-environments.go @@ -1,25 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/elasticbeanstalk" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ElasticBeanstalkEnvironment struct { - svc *elasticbeanstalk.ElasticBeanstalk - ID *string - name *string -} +const ElasticBeanstalkEnvironmentResource = "ElasticBeanstalkEnvironment" func init() { - register("ElasticBeanstalkEnvironment", ListElasticBeanstalkEnvironments) + resource.Register(resource.Registration{ + Name: ElasticBeanstalkEnvironmentResource, + Scope: nuke.Account, + Lister: &ElasticBeanstalkEnvironmentLister{}, + }) } -func ListElasticBeanstalkEnvironments(sess *session.Session) ([]Resource, error) { - svc := elasticbeanstalk.New(sess) - resources := []Resource{} +type ElasticBeanstalkEnvironmentLister struct{} + +func (l *ElasticBeanstalkEnvironmentLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := elasticbeanstalk.New(opts.Session) + resources := make([]resource.Resource, 0) params := &elasticbeanstalk.DescribeEnvironmentsInput{ MaxRecords: aws.Int64(100), @@ -50,8 +59,13 @@ func ListElasticBeanstalkEnvironments(sess *session.Session) ([]Resource, error) return resources, nil } -func (f *ElasticBeanstalkEnvironment) Remove() error { +type ElasticBeanstalkEnvironment struct { + svc *elasticbeanstalk.ElasticBeanstalk + ID *string + name *string +} +func (f *ElasticBeanstalkEnvironment) Remove(_ context.Context) error { _, err := f.svc.TerminateEnvironment(&elasticbeanstalk.TerminateEnvironmentInput{ EnvironmentId: f.ID, ForceTerminate: aws.Bool(true), diff --git a/resources/elasticsearchservice-domain.go b/resources/elasticsearchservice-domain.go index f6e461ca..88a35ca8 100644 --- a/resources/elasticsearchservice-domain.go +++ b/resources/elasticsearchservice-domain.go @@ -1,23 +1,32 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/elasticsearchservice" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ESDomain struct { - svc *elasticsearchservice.ElasticsearchService - domainName *string - tagList []*elasticsearchservice.Tag -} +const ESDomainResource = "ESDomain" func init() { - register("ESDomain", ListESDomains) + resource.Register(resource.Registration{ + Name: ESDomainResource, + Scope: nuke.Account, + Lister: &ESDomainLister{}, + }) } -func ListESDomains(sess *session.Session) ([]Resource, error) { - svc := elasticsearchservice.New(sess) +type ESDomainLister struct{} + +func (l *ESDomainLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := elasticsearchservice.New(opts.Session) params := &elasticsearchservice.ListDomainNamesInput{} resp, err := svc.ListDomainNames(params) @@ -25,7 +34,7 @@ func ListESDomains(sess *session.Session) ([]Resource, error) { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, domain := range resp.DomainNames { dedo, err := svc.DescribeElasticsearchDomain( &elasticsearchservice.DescribeElasticsearchDomainInput{DomainName: domain.DomainName}) @@ -46,8 +55,13 @@ func ListESDomains(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *ESDomain) Remove() error { +type ESDomain struct { + svc *elasticsearchservice.ElasticsearchService + domainName *string + tagList []*elasticsearchservice.Tag +} +func (f *ESDomain) Remove(_ context.Context) error { _, err := f.svc.DeleteElasticsearchDomain(&elasticsearchservice.DeleteElasticsearchDomainInput{ DomainName: f.domainName, }) diff --git a/resources/elastictranscoder-pipelines.go b/resources/elastictranscoder-pipelines.go index 28264a05..bdcb7b2e 100644 --- a/resources/elastictranscoder-pipelines.go +++ b/resources/elastictranscoder-pipelines.go @@ -1,22 +1,32 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/elastictranscoder" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ElasticTranscoderPipeline struct { - svc *elastictranscoder.ElasticTranscoder - pipelineID *string -} +const ElasticTranscoderPipelineResource = "ElasticTranscoderPipeline" func init() { - register("ElasticTranscoderPipeline", ListElasticTranscoderPipelines) + resource.Register(resource.Registration{ + Name: ElasticTranscoderPipelineResource, + Scope: nuke.Account, + Lister: &ElasticTranscoderPipelineLister{}, + }) } -func ListElasticTranscoderPipelines(sess *session.Session) ([]Resource, error) { - svc := elastictranscoder.New(sess) - resources := []Resource{} +type ElasticTranscoderPipelineLister struct{} + +func (l *ElasticTranscoderPipelineLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := elastictranscoder.New(opts.Session) + resources := make([]resource.Resource, 0) params := &elastictranscoder.ListPipelinesInput{} @@ -43,8 +53,12 @@ func ListElasticTranscoderPipelines(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *ElasticTranscoderPipeline) Remove() error { +type ElasticTranscoderPipeline struct { + svc *elastictranscoder.ElasticTranscoder + pipelineID *string +} +func (f *ElasticTranscoderPipeline) Remove(_ context.Context) error { _, err := f.svc.DeletePipeline(&elastictranscoder.DeletePipelineInput{ Id: f.pipelineID, }) diff --git a/resources/elb-elb.go b/resources/elb-elb.go index fd37b0cf..d8dd12df 100644 --- a/resources/elb-elb.go +++ b/resources/elb-elb.go @@ -1,28 +1,37 @@ package resources import ( + "context" + "time" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/elb" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ELBLoadBalancer struct { - svc *elb.ELB - elb *elb.LoadBalancerDescription - tags []*elb.Tag -} +const ELBResource = "ELB" func init() { - register("ELB", ListELBLoadBalancers) + resource.Register(resource.Registration{ + Name: ELBResource, + Scope: nuke.Account, + Lister: &ELBLister{}, + }) } -func ListELBLoadBalancers(sess *session.Session) ([]Resource, error) { - resources := make([]Resource, 0) +type ELBLister struct{} + +func (l *ELBLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + resources := make([]resource.Resource, 0) elbNames := make([]*string, 0) elbNameToRsc := make(map[string]*elb.LoadBalancerDescription) - svc := elb.New(sess) + svc := elb.New(opts.Session) err := svc.DescribeLoadBalancersPages(nil, func(page *elb.DescribeLoadBalancersOutput, lastPage bool) bool { @@ -50,10 +59,10 @@ func ListELBLoadBalancers(sess *session.Session) ([]Resource, error) { return nil, err } for _, elbTagInfo := range tagResp.TagDescriptions { - elb := elbNameToRsc[*elbTagInfo.LoadBalancerName] + elbEntity := elbNameToRsc[*elbTagInfo.LoadBalancerName] resources = append(resources, &ELBLoadBalancer{ svc: svc, - elb: elb, + elb: elbEntity, tags: elbTagInfo.Tags, }) } @@ -65,7 +74,13 @@ func ListELBLoadBalancers(sess *session.Session) ([]Resource, error) { return resources, nil } -func (e *ELBLoadBalancer) Remove() error { +type ELBLoadBalancer struct { + svc *elb.ELB + elb *elb.LoadBalancerDescription + tags []*elb.Tag +} + +func (e *ELBLoadBalancer) Remove(_ context.Context) error { params := &elb.DeleteLoadBalancerInput{ LoadBalancerName: e.elb.LoadBalancerName, } diff --git a/resources/elbv2-alb.go b/resources/elbv2-alb.go index 9e571711..344c54cd 100644 --- a/resources/elbv2-alb.go +++ b/resources/elbv2-alb.go @@ -1,29 +1,45 @@ package resources import ( + "context" + + "errors" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/elbv2" - "github.com/rebuy-de/aws-nuke/v2/pkg/config" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/featureflag" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type ELBv2LoadBalancer struct { svc *elbv2.ELBV2 tags []*elbv2.Tag elb *elbv2.LoadBalancer - featureFlags config.FeatureFlags + featureFlags *featureflag.FeatureFlags } +const ELBv2Resource = "ELBv2" + func init() { - register("ELBv2", ListELBv2LoadBalancers) + resource.Register(resource.Registration{ + Name: ELBv2Resource, + Scope: nuke.Account, + Lister: &ELBv2Lister{}, + }) } -func ListELBv2LoadBalancers(sess *session.Session) ([]Resource, error) { - svc := elbv2.New(sess) +type ELBv2Lister struct{} + +func (l *ELBv2Lister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := elbv2.New(opts.Session) var tagReqELBv2ARNs []*string elbv2ARNToRsc := make(map[string]*elbv2.LoadBalancer) @@ -43,7 +59,7 @@ func ListELBv2LoadBalancers(sess *session.Session) ([]Resource, error) { // Tags for ELBv2s need to be fetched separately // We can only specify up to 20 in a single call // See: https://github.com/aws/aws-sdk-go/blob/0e8c61841163762f870f6976775800ded4a789b0/service/elbv2/api.go#L5398 - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for len(tagReqELBv2ARNs) > 0 { requestElements := len(tagReqELBv2ARNs) if requestElements > 20 { @@ -71,34 +87,43 @@ func ListELBv2LoadBalancers(sess *session.Session) ([]Resource, error) { return resources, nil } -func (e *ELBv2LoadBalancer) FeatureFlags(ff config.FeatureFlags) { +func (e *ELBv2LoadBalancer) FeatureFlags(ff *featureflag.FeatureFlags) { e.featureFlags = ff } -func (e *ELBv2LoadBalancer) Remove() error { +func (e *ELBv2LoadBalancer) Remove(_ context.Context) error { + ffdddElbV2, err := e.featureFlags.Get("DisableDeletionProtection_ELBv2") + if err != nil { + return err + } + params := &elbv2.DeleteLoadBalancerInput{ LoadBalancerArn: e.elb.LoadBalancerArn, } - _, err := e.svc.DeleteLoadBalancer(params) - if err != nil { - if e.featureFlags.DisableDeletionProtection.ELBv2 { - awsErr, ok := err.(awserr.Error) + if _, err := e.svc.DeleteLoadBalancer(params); err != nil { + if ffdddElbV2.Enabled() { + var awsErr awserr.Error + ok := errors.As(err, &awsErr) if ok && awsErr.Code() == "OperationNotPermitted" && awsErr.Message() == "Load balancer '"+*e.elb.LoadBalancerArn+"' cannot be deleted because deletion protection is enabled" { err = e.DisableProtection() if err != nil { return err } + _, err := e.svc.DeleteLoadBalancer(params) if err != nil { return err } + return nil } } + return err } + return nil } @@ -112,10 +137,12 @@ func (e *ELBv2LoadBalancer) DisableProtection() error { }, }, } + _, err := e.svc.ModifyLoadBalancerAttributes(params) if err != nil { return err } + return nil } @@ -123,6 +150,7 @@ func (e *ELBv2LoadBalancer) Properties() types.Properties { properties := types.NewProperties(). Set("CreatedTime", e.elb.CreatedTime.Format(time.RFC3339)). Set("ARN", e.elb.LoadBalancerArn) + for _, tagValue := range e.tags { properties.SetTag(tagValue.Key, tagValue.Value) } diff --git a/resources/elbv2-targetgroup.go b/resources/elbv2-targetgroup.go index 7699567e..ee7a4c63 100644 --- a/resources/elbv2-targetgroup.go +++ b/resources/elbv2-targetgroup.go @@ -1,23 +1,35 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/elbv2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ELBv2TargetGroup struct { - svc *elbv2.ELBV2 - tg *elbv2.TargetGroup - tags []*elbv2.Tag -} +const ELBv2TargetGroupResource = "ELBv2TargetGroup" func init() { - register("ELBv2TargetGroup", ListELBv2TargetGroups) + resource.Register(resource.Registration{ + Name: ELBv2TargetGroupResource, + Scope: nuke.Account, + Lister: &ELBv2TargetGroupLister{}, + DependsOn: []string{ + ELBv2Resource, + }, + }) } -func ListELBv2TargetGroups(sess *session.Session) ([]Resource, error) { - svc := elbv2.New(sess) +type ELBv2TargetGroupLister struct{} + +func (l *ELBv2TargetGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := elbv2.New(opts.Session) var tagReqELBv2TargetGroupARNs []*string targetGroupARNToRsc := make(map[string]*elbv2.TargetGroup) @@ -36,7 +48,7 @@ func ListELBv2TargetGroups(sess *session.Session) ([]Resource, error) { // Tags for ELBv2 target groups need to be fetched separately // We can only specify up to 20 in a single call // See: https://github.com/aws/aws-sdk-go/blob/0e8c61841163762f870f6976775800ded4a789b0/service/elbv2/api.go#L5398 - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for len(tagReqELBv2TargetGroupARNs) > 0 { requestElements := len(tagReqELBv2TargetGroupARNs) if requestElements > 20 { @@ -63,7 +75,13 @@ func ListELBv2TargetGroups(sess *session.Session) ([]Resource, error) { return resources, nil } -func (e *ELBv2TargetGroup) Remove() error { +type ELBv2TargetGroup struct { + svc *elbv2.ELBV2 + tg *elbv2.TargetGroup + tags []*elbv2.Tag +} + +func (e *ELBv2TargetGroup) Remove(_ context.Context) error { _, err := e.svc.DeleteTargetGroup(&elbv2.DeleteTargetGroupInput{ TargetGroupArn: e.tg.TargetGroupArn, }) @@ -78,10 +96,13 @@ func (e *ELBv2TargetGroup) Remove() error { func (e *ELBv2TargetGroup) Properties() types.Properties { properties := types.NewProperties(). Set("ARN", e.tg.TargetGroupArn) + for _, tagValue := range e.tags { properties.SetTag(tagValue.Key, tagValue.Value) } + properties.Set("IsLoadBalanced", len(e.tg.LoadBalancerArns) > 0) + return properties } diff --git a/resources/emr-clusters.go b/resources/emr-clusters.go index 7c3da8c1..187373f4 100644 --- a/resources/emr-clusters.go +++ b/resources/emr-clusters.go @@ -1,28 +1,37 @@ package resources import ( + "context" + "fmt" "strings" "time" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/emr" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type EMRCluster struct { - svc *emr.EMR - cluster *emr.ClusterSummary - state *string -} +const EMRClusterResource = "EMRCluster" func init() { - register("EMRCluster", ListEMRClusters) + resource.Register(resource.Registration{ + Name: EMRClusterResource, + Scope: nuke.Account, + Lister: &EMRClusterLister{}, + }) } -func ListEMRClusters(sess *session.Session) ([]Resource, error) { - svc := emr.New(sess) - resources := []Resource{} +type EMRClusterLister struct{} + +func (l *EMRClusterLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := emr.New(opts.Session) + resources := make([]resource.Resource, 0) params := &emr.ListClustersInput{} @@ -50,18 +59,25 @@ func ListEMRClusters(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *EMRCluster) Properties() types.Properties { - properties := types.NewProperties(). - Set("CreatedTime", f.cluster.Status.Timeline.CreationDateTime.Format(time.RFC3339)) - return properties +type EMRCluster struct { + svc *emr.EMR + cluster *emr.ClusterSummary + state *string } -func (f *EMRCluster) Remove() error { +func (f *EMRCluster) Filter() error { + if strings.Contains(*f.state, "TERMINATED") { + return fmt.Errorf("already terminated") + } + return nil +} - //Call names are inconsistent in the SDK +func (f *EMRCluster) Remove(_ context.Context) error { + // Note: Call names are inconsistent in the SDK _, err := f.svc.TerminateJobFlows(&emr.TerminateJobFlowsInput{ JobFlowIds: []*string{f.cluster.Id}, }) + // Force nil return due to async callbacks blocking if err == nil { return nil @@ -70,13 +86,13 @@ func (f *EMRCluster) Remove() error { return err } -func (f *EMRCluster) String() string { - return *f.cluster.Id +func (f *EMRCluster) Properties() types.Properties { + properties := types.NewProperties(). + Set("CreatedTime", f.cluster.Status.Timeline.CreationDateTime.Format(time.RFC3339)) + + return properties } -func (f *EMRCluster) Filter() error { - if strings.Contains(*f.state, "TERMINATED") { - return fmt.Errorf("already terminated") - } - return nil +func (f *EMRCluster) String() string { + return *f.cluster.Id } diff --git a/resources/emr-securityconfigurations.go b/resources/emr-securityconfigurations.go index d622f00f..711e495b 100644 --- a/resources/emr-securityconfigurations.go +++ b/resources/emr-securityconfigurations.go @@ -1,22 +1,32 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/emr" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type EMRSecurityConfiguration struct { - svc *emr.EMR - name *string -} +const EMRSecurityConfigurationResource = "EMRSecurityConfiguration" func init() { - register("EMRSecurityConfiguration", ListEMRSecurityConfiguration) + resource.Register(resource.Registration{ + Name: EMRSecurityConfigurationResource, + Scope: nuke.Account, + Lister: &EMRSecurityConfigurationLister{}, + }) } -func ListEMRSecurityConfiguration(sess *session.Session) ([]Resource, error) { - svc := emr.New(sess) - resources := []Resource{} +type EMRSecurityConfigurationLister struct{} + +func (l *EMRSecurityConfigurationLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := emr.New(opts.Session) + resources := make([]resource.Resource, 0) params := &emr.ListSecurityConfigurationsInput{} @@ -43,9 +53,13 @@ func ListEMRSecurityConfiguration(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *EMRSecurityConfiguration) Remove() error { +type EMRSecurityConfiguration struct { + svc *emr.EMR + name *string +} - //Call names are inconsistent in the SDK +func (f *EMRSecurityConfiguration) Remove(_ context.Context) error { + // Note: Call names are inconsistent in the SDK _, err := f.svc.DeleteSecurityConfiguration(&emr.DeleteSecurityConfigurationInput{ Name: f.name, }) diff --git a/resources/firehose-deliverystreams.go b/resources/firehose-deliverystreams.go index 831f457f..c6fdd4cd 100644 --- a/resources/firehose-deliverystreams.go +++ b/resources/firehose-deliverystreams.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/firehose" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type FirehoseDeliveryStream struct { - svc *firehose.Firehose - deliveryStreamName *string -} +const FirehoseDeliveryStreamResource = "FirehoseDeliveryStream" func init() { - register("FirehoseDeliveryStream", ListFirehoseDeliveryStreams) + resource.Register(resource.Registration{ + Name: FirehoseDeliveryStreamResource, + Scope: nuke.Account, + Lister: &FirehoseDeliveryStreamLister{}, + }) } -func ListFirehoseDeliveryStreams(sess *session.Session) ([]Resource, error) { - svc := firehose.New(sess) - resources := []Resource{} +type FirehoseDeliveryStreamLister struct{} + +func (l *FirehoseDeliveryStreamLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := firehose.New(opts.Session) + resources := make([]resource.Resource, 0) var lastDeliveryStreamName *string params := &firehose.ListDeliveryStreamsInput{ @@ -48,8 +58,12 @@ func ListFirehoseDeliveryStreams(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *FirehoseDeliveryStream) Remove() error { +type FirehoseDeliveryStream struct { + svc *firehose.Firehose + deliveryStreamName *string +} +func (f *FirehoseDeliveryStream) Remove(_ context.Context) error { _, err := f.svc.DeleteDeliveryStream(&firehose.DeleteDeliveryStreamInput{ DeliveryStreamName: f.deliveryStreamName, }) diff --git a/resources/fms_notification_channels.go b/resources/fms-notification-channels.go similarity index 53% rename from resources/fms_notification_channels.go rename to resources/fms-notification-channels.go index f7a832d0..98402cb0 100644 --- a/resources/fms_notification_channels.go +++ b/resources/fms-notification-channels.go @@ -1,31 +1,42 @@ package resources import ( + "context" + + "errors" "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/fms" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type FMSNotificationChannel struct { - svc *fms.FMS -} +const FMSNotificationChannelResource = "FMSNotificationChannel" func init() { - register("FMSNotificationChannel", ListFMSNotificationChannel) + resource.Register(resource.Registration{ + Name: FMSNotificationChannelResource, + Scope: nuke.Account, + Lister: &FMSNotificationChannelLister{}, + }) } -func ListFMSNotificationChannel(sess *session.Session) ([]Resource, error) { - svc := fms.New(sess) - resources := []Resource{} +type FMSNotificationChannelLister struct{} + +func (l *FMSNotificationChannelLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := fms.New(opts.Session) + resources := make([]resource.Resource, 0) if _, err := svc.GetNotificationChannel(&fms.GetNotificationChannelInput{}); err != nil { - if aerr, ok := err.(awserr.Error); ok { + var aerr awserr.Error + if errors.As(err, &aerr) { if aerr.Code() != fms.ErrCodeResourceNotFoundException { return nil, err } - } else { - return nil, err } } else { resources = append(resources, &FMSNotificationChannel{ @@ -36,8 +47,11 @@ func ListFMSNotificationChannel(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *FMSNotificationChannel) Remove() error { +type FMSNotificationChannel struct { + svc *fms.FMS +} +func (f *FMSNotificationChannel) Remove(_ context.Context) error { _, err := f.svc.DeleteNotificationChannel(&fms.DeleteNotificationChannelInput{}) return err diff --git a/resources/fms_policies.go b/resources/fms-policies.go similarity index 63% rename from resources/fms_policies.go rename to resources/fms-policies.go index f369518a..c9d7587a 100644 --- a/resources/fms_policies.go +++ b/resources/fms-policies.go @@ -1,24 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/fms" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type FMSPolicy struct { - svc *fms.FMS - policy *fms.PolicySummary -} +const FMSPolicyResource = "FMSPolicy" func init() { - register("FMSPolicy", ListFMSPolicies) + resource.Register(resource.Registration{ + Name: FMSPolicyResource, + Scope: nuke.Account, + Lister: &FMSPolicyLister{}, + }) } -func ListFMSPolicies(sess *session.Session) ([]Resource, error) { - svc := fms.New(sess) - resources := []Resource{} +type FMSPolicyLister struct{} + +func (l *FMSPolicyLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := fms.New(opts.Session) + resources := make([]resource.Resource, 0) params := &fms.ListPoliciesInput{ MaxResults: aws.Int64(50), @@ -47,8 +57,12 @@ func ListFMSPolicies(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *FMSPolicy) Remove() error { +type FMSPolicy struct { + svc *fms.FMS + policy *fms.PolicySummary +} +func (f *FMSPolicy) Remove(_ context.Context) error { _, err := f.svc.DeletePolicy(&fms.DeletePolicyInput{ PolicyId: f.policy.PolicyId, DeleteAllPolicyResources: aws.Bool(false), diff --git a/resources/fsx-backups.go b/resources/fsx-backups.go index b3dae7ae..53bf07d6 100644 --- a/resources/fsx-backups.go +++ b/resources/fsx-backups.go @@ -1,24 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/fsx" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type FSxBackup struct { - svc *fsx.FSx - backup *fsx.Backup -} +const FSxBackupResource = "FSxBackup" func init() { - register("FSxBackup", ListFSxBackups) + resource.Register(resource.Registration{ + Name: FSxBackupResource, + Scope: nuke.Account, + Lister: &FSxBackupLister{}, + }) } -func ListFSxBackups(sess *session.Session) ([]Resource, error) { - svc := fsx.New(sess) - resources := []Resource{} +type FSxBackupLister struct{} + +func (l *FSxBackupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := fsx.New(opts.Session) + resources := make([]resource.Resource, 0) params := &fsx.DescribeBackupsInput{ MaxResults: aws.Int64(100), @@ -45,7 +55,12 @@ func ListFSxBackups(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *FSxBackup) Remove() error { +type FSxBackup struct { + svc *fsx.FSx + backup *fsx.Backup +} + +func (f *FSxBackup) Remove(_ context.Context) error { _, err := f.svc.DeleteBackup(&fsx.DeleteBackupInput{ BackupId: f.backup.BackupId, }) diff --git a/resources/fsx-filesystems.go b/resources/fsx-filesystems.go index 3fccf121..ea06b90b 100644 --- a/resources/fsx-filesystems.go +++ b/resources/fsx-filesystems.go @@ -1,24 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/fsx" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type FSxFileSystem struct { - svc *fsx.FSx - filesystem *fsx.FileSystem -} +const FSxFileSystemResource = "FSxFileSystem" func init() { - register("FSxFileSystem", ListFSxFileSystems) + resource.Register(resource.Registration{ + Name: FSxFileSystemResource, + Scope: nuke.Account, + Lister: &FSxFileSystemLister{}, + }) } -func ListFSxFileSystems(sess *session.Session) ([]Resource, error) { - svc := fsx.New(sess) - resources := []Resource{} +type FSxFileSystemLister struct{} + +func (l *FSxFileSystemLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := fsx.New(opts.Session) + resources := make([]resource.Resource, 0) params := &fsx.DescribeFileSystemsInput{ MaxResults: aws.Int64(100), @@ -45,7 +55,12 @@ func ListFSxFileSystems(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *FSxFileSystem) Remove() error { +type FSxFileSystem struct { + svc *fsx.FSx + filesystem *fsx.FileSystem +} + +func (f *FSxFileSystem) Remove(_ context.Context) error { _, err := f.svc.DeleteFileSystem(&fsx.DeleteFileSystemInput{ FileSystemId: f.filesystem.FileSystemId, }) diff --git a/resources/ga-accelerators.go b/resources/ga-accelerators.go index 2ebfd50b..75717225 100644 --- a/resources/ga-accelerators.go +++ b/resources/ga-accelerators.go @@ -1,10 +1,14 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/globalaccelerator" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) // GlobalAccelerator model @@ -13,14 +17,24 @@ type GlobalAccelerator struct { ARN *string } +const GlobalAcceleratorResource = "GlobalAccelerator" + func init() { - register("GlobalAccelerator", ListGlobalAccelerators) + resource.Register(resource.Registration{ + Name: GlobalAcceleratorResource, + Scope: nuke.Account, + Lister: &GlobalAcceleratorLister{}, + }) } -// ListGlobalAccelerators enumerates all available accelerators -func ListGlobalAccelerators(sess *session.Session) ([]Resource, error) { - svc := globalaccelerator.New(sess) - resources := []Resource{} +type GlobalAcceleratorLister struct{} + +// List enumerates all available accelerators +func (l *GlobalAcceleratorLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := globalaccelerator.New(opts.Session) + resources := make([]resource.Resource, 0) params := &globalaccelerator.ListAcceleratorsInput{ MaxResults: aws.Int64(100), @@ -50,7 +64,7 @@ func ListGlobalAccelerators(sess *session.Session) ([]Resource, error) { } // Remove resource -func (ga *GlobalAccelerator) Remove() error { +func (ga *GlobalAccelerator) Remove(_ context.Context) error { accel, err := ga.svc.DescribeAccelerator(&globalaccelerator.DescribeAcceleratorInput{ AcceleratorArn: ga.ARN, }) diff --git a/resources/ga-endpoints.go b/resources/ga-endpoints.go index 105ae6d5..36622ea6 100644 --- a/resources/ga-endpoints.go +++ b/resources/ga-endpoints.go @@ -1,30 +1,39 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/globalaccelerator" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -// GlobalAcceleratorEndpointGroup model -type GlobalAcceleratorEndpointGroup struct { - svc *globalaccelerator.GlobalAccelerator - ARN *string -} +const GlobalAcceleratorEndpointGroupResource = "GlobalAcceleratorEndpointGroup" func init() { - register("GlobalAcceleratorEndpointGroup", ListGlobalAcceleratorEndpointGroups) + resource.Register(resource.Registration{ + Name: GlobalAcceleratorEndpointGroupResource, + Scope: nuke.Account, + Lister: &GlobalAcceleratorEndpointGroupLister{}, + }) } -// ListGlobalAcceleratorEndpointGroups enumerates all available accelerators -func ListGlobalAcceleratorEndpointGroups(sess *session.Session) ([]Resource, error) { - svc := globalaccelerator.New(sess) - acceleratorARNs := []*string{} - listenerARNs := []*string{} - resources := []Resource{} +type GlobalAcceleratorEndpointGroupLister struct{} - // get all accelerator arns +// List enumerates all available accelerators +func (l *GlobalAcceleratorEndpointGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := globalaccelerator.New(opts.Session) + var acceleratorARNs []*string + var listenerARNs []*string + resources := make([]resource.Resource, 0) + + // get all accelerator ARNs acceleratorParams := &globalaccelerator.ListAcceleratorsInput{ MaxResults: aws.Int64(100), } @@ -46,7 +55,7 @@ func ListGlobalAcceleratorEndpointGroups(sess *session.Session) ([]Resource, err acceleratorParams.NextToken = output.NextToken } - // get all listerners arns of all accelerators + // get all listeners ARNs of all accelerators for _, acceleratorARN := range acceleratorARNs { listenerParams := &globalaccelerator.ListListenersInput{ MaxResults: aws.Int64(100), @@ -102,23 +111,29 @@ func ListGlobalAcceleratorEndpointGroups(sess *session.Session) ([]Resource, err return resources, nil } +// GlobalAcceleratorEndpointGroup model +type GlobalAcceleratorEndpointGroup struct { + svc *globalaccelerator.GlobalAccelerator + ARN *string +} + // Remove resource -func (gaeg *GlobalAcceleratorEndpointGroup) Remove() error { - _, err := gaeg.svc.DeleteEndpointGroup(&globalaccelerator.DeleteEndpointGroupInput{ - EndpointGroupArn: gaeg.ARN, +func (g *GlobalAcceleratorEndpointGroup) Remove(_ context.Context) error { + _, err := g.svc.DeleteEndpointGroup(&globalaccelerator.DeleteEndpointGroupInput{ + EndpointGroupArn: g.ARN, }) return err } // Properties definition -func (gaeg *GlobalAcceleratorEndpointGroup) Properties() types.Properties { +func (g *GlobalAcceleratorEndpointGroup) Properties() types.Properties { properties := types.NewProperties() - properties.Set("ARN", gaeg.ARN) + properties.Set("ARN", g.ARN) return properties } // String representation -func (gaeg *GlobalAcceleratorEndpointGroup) String() string { - return *gaeg.ARN +func (g *GlobalAcceleratorEndpointGroup) String() string { + return *g.ARN } diff --git a/resources/ga-listeners.go b/resources/ga-listeners.go index 8eedb85e..8bae2a98 100644 --- a/resources/ga-listeners.go +++ b/resources/ga-listeners.go @@ -1,29 +1,38 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/globalaccelerator" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -// GlobalAcceleratorListener model -type GlobalAcceleratorListener struct { - svc *globalaccelerator.GlobalAccelerator - ARN *string -} +const GlobalAcceleratorListenerResource = "GlobalAcceleratorListener" func init() { - register("GlobalAcceleratorListener", ListGlobalAcceleratorListeners) + resource.Register(resource.Registration{ + Name: GlobalAcceleratorListenerResource, + Scope: nuke.Account, + Lister: &GlobalAcceleratorListenerLister{}, + }) } -// ListGlobalAcceleratorListeners enumerates all available listeners of all available accelerators -func ListGlobalAcceleratorListeners(sess *session.Session) ([]Resource, error) { - svc := globalaccelerator.New(sess) - acceleratorARNs := []*string{} - resources := []Resource{} +type GlobalAcceleratorListenerLister struct{} - // get all accelerator arns +// List enumerates all available listeners of all available accelerators +func (l *GlobalAcceleratorListenerLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := globalaccelerator.New(opts.Session) + var acceleratorARNs []*string + resources := make([]resource.Resource, 0) + + // get all accelerator ARNs acceleratorParams := &globalaccelerator.ListAcceleratorsInput{ MaxResults: aws.Int64(100), } @@ -45,7 +54,7 @@ func ListGlobalAcceleratorListeners(sess *session.Session) ([]Resource, error) { acceleratorParams.NextToken = output.NextToken } - // get all listerners + // get all listeners for _, acceleratorARN := range acceleratorARNs { params := &globalaccelerator.ListListenersInput{ MaxResults: aws.Int64(100), @@ -76,23 +85,29 @@ func ListGlobalAcceleratorListeners(sess *session.Session) ([]Resource, error) { return resources, nil } +// GlobalAcceleratorListener model +type GlobalAcceleratorListener struct { + svc *globalaccelerator.GlobalAccelerator + ARN *string +} + // Remove resource -func (gal *GlobalAcceleratorListener) Remove() error { - _, err := gal.svc.DeleteListener(&globalaccelerator.DeleteListenerInput{ - ListenerArn: gal.ARN, +func (g *GlobalAcceleratorListener) Remove(_ context.Context) error { + _, err := g.svc.DeleteListener(&globalaccelerator.DeleteListenerInput{ + ListenerArn: g.ARN, }) return err } // Properties definition -func (gal *GlobalAcceleratorListener) Properties() types.Properties { +func (g *GlobalAcceleratorListener) Properties() types.Properties { properties := types.NewProperties() - properties.Set("ARN", gal.ARN) + properties.Set("ARN", g.ARN) return properties } // String representation -func (gal *GlobalAcceleratorListener) String() string { - return *gal.ARN +func (g *GlobalAcceleratorListener) String() string { + return *g.ARN } diff --git a/resources/glue-classifiers.go b/resources/glue-classifiers.go index 7f3fd18a..d3276755 100644 --- a/resources/glue-classifiers.go +++ b/resources/glue-classifiers.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/glue" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type GlueClassifier struct { - svc *glue.Glue - name *string -} +const GlueClassifierResource = "GlueClassifier" func init() { - register("GlueClassifier", ListGlueClassifiers) + resource.Register(resource.Registration{ + Name: GlueClassifierResource, + Scope: nuke.Account, + Lister: &GlueClassifierLister{}, + }) } -func ListGlueClassifiers(sess *session.Session) ([]Resource, error) { - svc := glue.New(sess) - resources := []Resource{} +type GlueClassifierLister struct{} + +func (l *GlueClassifierLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := glue.New(opts.Session) + resources := make([]resource.Resource, 0) params := &glue.GetClassifiersInput{ MaxResults: aws.Int64(100), @@ -58,8 +68,12 @@ func ListGlueClassifiers(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *GlueClassifier) Remove() error { +type GlueClassifier struct { + svc *glue.Glue + name *string +} +func (f *GlueClassifier) Remove(_ context.Context) error { _, err := f.svc.DeleteClassifier(&glue.DeleteClassifierInput{ Name: f.name, }) diff --git a/resources/glue-connections.go b/resources/glue-connections.go index c775727c..d0f505d0 100644 --- a/resources/glue-connections.go +++ b/resources/glue-connections.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/glue" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type GlueConnection struct { - svc *glue.Glue - connectionName *string -} +const GlueConnectionResource = "GlueConnection" func init() { - register("GlueConnection", ListGlueConnections) + resource.Register(resource.Registration{ + Name: GlueConnectionResource, + Scope: nuke.Account, + Lister: &GlueConnectionLister{}, + }) } -func ListGlueConnections(sess *session.Session) ([]Resource, error) { - svc := glue.New(sess) - resources := []Resource{} +type GlueConnectionLister struct{} + +func (l *GlueConnectionLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := glue.New(opts.Session) + resources := make([]resource.Resource, 0) params := &glue.GetConnectionsInput{ MaxResults: aws.Int64(100), @@ -46,8 +56,12 @@ func ListGlueConnections(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *GlueConnection) Remove() error { +type GlueConnection struct { + svc *glue.Glue + connectionName *string +} +func (f *GlueConnection) Remove(_ context.Context) error { _, err := f.svc.DeleteConnection(&glue.DeleteConnectionInput{ ConnectionName: f.connectionName, }) diff --git a/resources/glue-crawlers.go b/resources/glue-crawlers.go index 90a5f3a9..916603e6 100644 --- a/resources/glue-crawlers.go +++ b/resources/glue-crawlers.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/glue" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type GlueCrawler struct { - svc *glue.Glue - name *string -} +const GlueCrawlerResource = "GlueCrawler" func init() { - register("GlueCrawler", ListGlueCrawlers) + resource.Register(resource.Registration{ + Name: GlueCrawlerResource, + Scope: nuke.Account, + Lister: &GlueCrawlerLister{}, + }) } -func ListGlueCrawlers(sess *session.Session) ([]Resource, error) { - svc := glue.New(sess) - resources := []Resource{} +type GlueCrawlerLister struct{} + +func (l *GlueCrawlerLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := glue.New(opts.Session) + resources := make([]resource.Resource, 0) params := &glue.GetCrawlersInput{ MaxResults: aws.Int64(100), @@ -46,8 +56,12 @@ func ListGlueCrawlers(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *GlueCrawler) Remove() error { +type GlueCrawler struct { + svc *glue.Glue + name *string +} +func (f *GlueCrawler) Remove(_ context.Context) error { _, err := f.svc.DeleteCrawler(&glue.DeleteCrawlerInput{ Name: f.name, }) diff --git a/resources/glue-databases.go b/resources/glue-databases.go index 3a924bdc..12673a73 100644 --- a/resources/glue-databases.go +++ b/resources/glue-databases.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/glue" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type GlueDatabase struct { - svc *glue.Glue - name *string -} +const GlueDatabaseResource = "GlueDatabase" func init() { - register("GlueDatabase", ListGlueDatabases) + resource.Register(resource.Registration{ + Name: GlueDatabaseResource, + Scope: nuke.Account, + Lister: &GlueDatabaseLister{}, + }) } -func ListGlueDatabases(sess *session.Session) ([]Resource, error) { - svc := glue.New(sess) - resources := []Resource{} +type GlueDatabaseLister struct{} + +func (l *GlueDatabaseLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := glue.New(opts.Session) + resources := make([]resource.Resource, 0) params := &glue.GetDatabasesInput{ MaxResults: aws.Int64(100), @@ -46,8 +56,12 @@ func ListGlueDatabases(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *GlueDatabase) Remove() error { +type GlueDatabase struct { + svc *glue.Glue + name *string +} +func (f *GlueDatabase) Remove(_ context.Context) error { _, err := f.svc.DeleteDatabase(&glue.DeleteDatabaseInput{ Name: f.name, }) diff --git a/resources/glue-devendpoints.go b/resources/glue-devendpoints.go index 7b491f07..04c4b4ae 100644 --- a/resources/glue-devendpoints.go +++ b/resources/glue-devendpoints.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/glue" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type GlueDevEndpoint struct { - svc *glue.Glue - endpointName *string -} +const GlueDevEndpointResource = "GlueDevEndpoint" func init() { - register("GlueDevEndpoint", ListGlueDevEndpoints) + resource.Register(resource.Registration{ + Name: GlueDevEndpointResource, + Scope: nuke.Account, + Lister: &GlueDevEndpointLister{}, + }) } -func ListGlueDevEndpoints(sess *session.Session) ([]Resource, error) { - svc := glue.New(sess) - resources := []Resource{} +type GlueDevEndpointLister struct{} + +func (l *GlueDevEndpointLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := glue.New(opts.Session) + resources := make([]resource.Resource, 0) params := &glue.GetDevEndpointsInput{ MaxResults: aws.Int64(100), @@ -47,8 +57,12 @@ func ListGlueDevEndpoints(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *GlueDevEndpoint) Remove() error { +type GlueDevEndpoint struct { + svc *glue.Glue + endpointName *string +} +func (f *GlueDevEndpoint) Remove(_ context.Context) error { _, err := f.svc.DeleteDevEndpoint(&glue.DeleteDevEndpointInput{ EndpointName: f.endpointName, }) diff --git a/resources/glue-jobs.go b/resources/glue-jobs.go index ec25e358..af6a7e37 100644 --- a/resources/glue-jobs.go +++ b/resources/glue-jobs.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/glue" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type GlueJob struct { - svc *glue.Glue - jobName *string -} +const GlueJobResource = "GlueJob" func init() { - register("GlueJob", ListGlueJobs) + resource.Register(resource.Registration{ + Name: GlueJobResource, + Scope: nuke.Account, + Lister: &GlueJobLister{}, + }) } -func ListGlueJobs(sess *session.Session) ([]Resource, error) { - svc := glue.New(sess) - resources := []Resource{} +type GlueJobLister struct{} + +func (l *GlueJobLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := glue.New(opts.Session) + resources := make([]resource.Resource, 0) params := &glue.GetJobsInput{ MaxResults: aws.Int64(100), @@ -46,8 +56,12 @@ func ListGlueJobs(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *GlueJob) Remove() error { +type GlueJob struct { + svc *glue.Glue + jobName *string +} +func (f *GlueJob) Remove(_ context.Context) error { _, err := f.svc.DeleteJob(&glue.DeleteJobInput{ JobName: f.jobName, }) diff --git a/resources/glue-triggers.go b/resources/glue-triggers.go index 410d55a0..3556ba62 100644 --- a/resources/glue-triggers.go +++ b/resources/glue-triggers.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/glue" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type GlueTrigger struct { - svc *glue.Glue - name *string -} +const GlueTriggerResource = "GlueTrigger" func init() { - register("GlueTrigger", ListGlueTriggers) + resource.Register(resource.Registration{ + Name: GlueTriggerResource, + Scope: nuke.Account, + Lister: &GlueTriggerLister{}, + }) } -func ListGlueTriggers(sess *session.Session) ([]Resource, error) { - svc := glue.New(sess) - resources := []Resource{} +type GlueTriggerLister struct{} + +func (l *GlueTriggerLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := glue.New(opts.Session) + resources := make([]resource.Resource, 0) params := &glue.GetTriggersInput{ MaxResults: aws.Int64(100), @@ -46,7 +56,12 @@ func ListGlueTriggers(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *GlueTrigger) Remove() error { +type GlueTrigger struct { + svc *glue.Glue + name *string +} + +func (f *GlueTrigger) Remove(_ context.Context) error { _, err := f.svc.DeleteTrigger(&glue.DeleteTriggerInput{ Name: f.name, diff --git a/resources/gluedatabrew-datasets.go b/resources/gluedatabrew-datasets.go index 72353b64..53ede302 100644 --- a/resources/gluedatabrew-datasets.go +++ b/resources/gluedatabrew-datasets.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/gluedatabrew" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type GlueDataBrewDatasets struct { - svc *gluedatabrew.GlueDataBrew - name *string -} +const GlueDataBrewDatasetsResource = "GlueDataBrewDatasets" func init() { - register("GlueDataBrewDatasets", ListGlueDatasets) + resource.Register(resource.Registration{ + Name: GlueDataBrewDatasetsResource, + Scope: nuke.Account, + Lister: &GlueDataBrewDatasetsLister{}, + }) } -func ListGlueDatasets(sess *session.Session) ([]Resource, error) { - svc := gluedatabrew.New(sess) - resources := []Resource{} +type GlueDataBrewDatasetsLister struct{} + +func (l *GlueDataBrewDatasetsLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := gluedatabrew.New(opts.Session) + resources := make([]resource.Resource, 0) params := &gluedatabrew.ListDatasetsInput{ MaxResults: aws.Int64(100), @@ -46,7 +56,12 @@ func ListGlueDatasets(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *GlueDataBrewDatasets) Remove() error { +type GlueDataBrewDatasets struct { + svc *gluedatabrew.GlueDataBrew + name *string +} + +func (f *GlueDataBrewDatasets) Remove(_ context.Context) error { _, err := f.svc.DeleteDataset(&gluedatabrew.DeleteDatasetInput{ Name: f.name, }) diff --git a/resources/gluedatabrew-jobs.go b/resources/gluedatabrew-jobs.go index b4da5f05..f700b85c 100644 --- a/resources/gluedatabrew-jobs.go +++ b/resources/gluedatabrew-jobs.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/gluedatabrew" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type GlueDataBrewJobs struct { - svc *gluedatabrew.GlueDataBrew - name *string -} +const GlueDataBrewJobsResource = "GlueDataBrewJobs" func init() { - register("GlueDataBrewJobs", ListGlueDataBrewJobs) + resource.Register(resource.Registration{ + Name: GlueDataBrewJobsResource, + Scope: nuke.Account, + Lister: &GlueDataBrewJobsLister{}, + }) } -func ListGlueDataBrewJobs(sess *session.Session) ([]Resource, error) { - svc := gluedatabrew.New(sess) - resources := []Resource{} +type GlueDataBrewJobsLister struct{} + +func (l *GlueDataBrewJobsLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := gluedatabrew.New(opts.Session) + resources := make([]resource.Resource, 0) params := &gluedatabrew.ListJobsInput{ MaxResults: aws.Int64(100), @@ -46,7 +56,12 @@ func ListGlueDataBrewJobs(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *GlueDataBrewJobs) Remove() error { +type GlueDataBrewJobs struct { + svc *gluedatabrew.GlueDataBrew + name *string +} + +func (f *GlueDataBrewJobs) Remove(_ context.Context) error { _, err := f.svc.DeleteJob(&gluedatabrew.DeleteJobInput{ Name: f.name, }) diff --git a/resources/gluedatabrew-projects.go b/resources/gluedatabrew-projects.go index 3ea8ec4f..6c6e4588 100644 --- a/resources/gluedatabrew-projects.go +++ b/resources/gluedatabrew-projects.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/gluedatabrew" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type GlueDataBrewProjects struct { - svc *gluedatabrew.GlueDataBrew - name *string -} +const GlueDataBrewProjectsResource = "GlueDataBrewProjects" func init() { - register("GlueDataBrewProjects", ListGlueDataBrewProjects) + resource.Register(resource.Registration{ + Name: GlueDataBrewProjectsResource, + Scope: nuke.Account, + Lister: &GlueDataBrewProjectsLister{}, + }) } -func ListGlueDataBrewProjects(sess *session.Session) ([]Resource, error) { - svc := gluedatabrew.New(sess) - resources := []Resource{} +type GlueDataBrewProjectsLister struct{} + +func (l *GlueDataBrewProjectsLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := gluedatabrew.New(opts.Session) + resources := make([]resource.Resource, 0) params := &gluedatabrew.ListProjectsInput{ MaxResults: aws.Int64(100), @@ -46,7 +56,12 @@ func ListGlueDataBrewProjects(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *GlueDataBrewProjects) Remove() error { +type GlueDataBrewProjects struct { + svc *gluedatabrew.GlueDataBrew + name *string +} + +func (f *GlueDataBrewProjects) Remove(_ context.Context) error { _, err := f.svc.DeleteProject(&gluedatabrew.DeleteProjectInput{ Name: f.name, }) diff --git a/resources/gluedatabrew-recipe.go b/resources/gluedatabrew-recipe.go index 8bc8331f..967448dc 100644 --- a/resources/gluedatabrew-recipe.go +++ b/resources/gluedatabrew-recipe.go @@ -1,24 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/gluedatabrew" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type GlueDataBrewRecipe struct { - svc *gluedatabrew.GlueDataBrew - name *string - recipeversion *string -} +const GlueDataBrewRecipeResource = "GlueDataBrewRecipe" func init() { - register("GlueDataBrewRecipe", ListGlueDataBrewRecipe) + resource.Register(resource.Registration{ + Name: GlueDataBrewRecipeResource, + Scope: nuke.Account, + Lister: &GlueDataBrewRecipeLister{}, + }) } -func ListGlueDataBrewRecipe(sess *session.Session) ([]Resource, error) { - svc := gluedatabrew.New(sess) - resources := []Resource{} +type GlueDataBrewRecipeLister struct{} + +func (l *GlueDataBrewRecipeLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := gluedatabrew.New(opts.Session) + resources := make([]resource.Resource, 0) params := &gluedatabrew.ListRecipesInput{ MaxResults: aws.Int64(100), @@ -34,7 +43,7 @@ func ListGlueDataBrewRecipe(sess *session.Session) ([]Resource, error) { resources = append(resources, &GlueDataBrewRecipe{ svc: svc, name: recipe.Name, - recipeversion: recipe.RecipeVersion, + recipeVersion: recipe.RecipeVersion, }) } @@ -48,10 +57,16 @@ func ListGlueDataBrewRecipe(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *GlueDataBrewRecipe) Remove() error { +type GlueDataBrewRecipe struct { + svc *gluedatabrew.GlueDataBrew + name *string + recipeVersion *string +} + +func (f *GlueDataBrewRecipe) Remove(_ context.Context) error { _, err := f.svc.DeleteRecipeVersion(&gluedatabrew.DeleteRecipeVersionInput{ Name: f.name, - RecipeVersion: f.recipeversion, + RecipeVersion: f.recipeVersion, }) return err diff --git a/resources/gluedatabrew-rulesets.go b/resources/gluedatabrew-rulesets.go index 24bbeb52..a00d1a11 100644 --- a/resources/gluedatabrew-rulesets.go +++ b/resources/gluedatabrew-rulesets.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/gluedatabrew" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type GlueDataBrewRulesets struct { - svc *gluedatabrew.GlueDataBrew - name *string -} +const GlueDataBrewRulesetsResource = "GlueDataBrewRulesets" func init() { - register("GlueDataBrewRulesets", ListGlueDataBrewRulesets) + resource.Register(resource.Registration{ + Name: GlueDataBrewRulesetsResource, + Scope: nuke.Account, + Lister: &GlueDataBrewRulesetsLister{}, + }) } -func ListGlueDataBrewRulesets(sess *session.Session) ([]Resource, error) { - svc := gluedatabrew.New(sess) - resources := []Resource{} +type GlueDataBrewRulesetsLister struct{} + +func (l *GlueDataBrewRulesetsLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := gluedatabrew.New(opts.Session) + resources := make([]resource.Resource, 0) params := &gluedatabrew.ListRulesetsInput{ MaxResults: aws.Int64(100), @@ -46,7 +56,12 @@ func ListGlueDataBrewRulesets(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *GlueDataBrewRulesets) Remove() error { +type GlueDataBrewRulesets struct { + svc *gluedatabrew.GlueDataBrew + name *string +} + +func (f *GlueDataBrewRulesets) Remove(_ context.Context) error { _, err := f.svc.DeleteRuleset(&gluedatabrew.DeleteRulesetInput{ Name: f.name, }) diff --git a/resources/gluedatabrew-schedules.go b/resources/gluedatabrew-schedules.go index bfdd0781..9b24eb87 100644 --- a/resources/gluedatabrew-schedules.go +++ b/resources/gluedatabrew-schedules.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/gluedatabrew" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type GlueDataBrewSchedules struct { - svc *gluedatabrew.GlueDataBrew - name *string -} +const GlueDataBrewSchedulesResource = "GlueDataBrewSchedules" func init() { - register("GlueDataBrewSchedules", ListGlueDataBrewSchedules) + resource.Register(resource.Registration{ + Name: GlueDataBrewSchedulesResource, + Scope: nuke.Account, + Lister: &GlueDataBrewSchedulesLister{}, + }) } -func ListGlueDataBrewSchedules(sess *session.Session) ([]Resource, error) { - svc := gluedatabrew.New(sess) - resources := []Resource{} +type GlueDataBrewSchedulesLister struct{} + +func (l *GlueDataBrewSchedulesLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := gluedatabrew.New(opts.Session) + resources := make([]resource.Resource, 0) params := &gluedatabrew.ListSchedulesInput{ MaxResults: aws.Int64(100), @@ -46,7 +56,12 @@ func ListGlueDataBrewSchedules(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *GlueDataBrewSchedules) Remove() error { +type GlueDataBrewSchedules struct { + svc *gluedatabrew.GlueDataBrew + name *string +} + +func (f *GlueDataBrewSchedules) Remove(_ context.Context) error { _, err := f.svc.DeleteSchedule(&gluedatabrew.DeleteScheduleInput{ Name: f.name, }) diff --git a/resources/guardduty.go b/resources/guardduty.go index 8a40ed2d..ae0594a6 100644 --- a/resources/guardduty.go +++ b/resources/guardduty.go @@ -1,24 +1,34 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/guardduty" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type GuardDutyDetector struct { - svc *guardduty.GuardDuty - id *string -} +const GuardDutyDetectorResource = "GuardDutyDetector" func init() { - register("GuardDutyDetector", ListGuardDutyDetectors) + resource.Register(resource.Registration{ + Name: GuardDutyDetectorResource, + Scope: nuke.Account, + Lister: &GuardDutyDetectorLister{}, + }) } -func ListGuardDutyDetectors(sess *session.Session) ([]Resource, error) { - svc := guardduty.New(sess) +type GuardDutyDetectorLister struct{} - detectors := make([]Resource, 0) +func (l *GuardDutyDetectorLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := guardduty.New(opts.Session) + + detectors := make([]resource.Resource, 0) params := &guardduty.ListDetectorsInput{} @@ -37,19 +47,24 @@ func ListGuardDutyDetectors(sess *session.Session) ([]Resource, error) { return detectors, nil } -func (detector *GuardDutyDetector) Remove() error { - _, err := detector.svc.DeleteDetector(&guardduty.DeleteDetectorInput{ - DetectorId: detector.id, +type GuardDutyDetector struct { + svc *guardduty.GuardDuty + id *string +} + +func (r *GuardDutyDetector) Remove(_ context.Context) error { + _, err := r.svc.DeleteDetector(&guardduty.DeleteDetectorInput{ + DetectorId: r.id, }) return err } -func (detector *GuardDutyDetector) Properties() types.Properties { +func (r *GuardDutyDetector) Properties() types.Properties { properties := types.NewProperties() - properties.Set("DetectorID", detector.id) + properties.Set("DetectorID", r.id) return properties } -func (detector *GuardDutyDetector) String() string { - return *detector.id +func (r *GuardDutyDetector) String() string { + return *r.id } diff --git a/resources/iam-account-setting-password-policy.go b/resources/iam-account-setting-password-policy.go index 7336d184..d0a1176d 100644 --- a/resources/iam-account-setting-password-policy.go +++ b/resources/iam-account-setting-password-policy.go @@ -1,30 +1,43 @@ package resources import ( + "context" + + "errors" + "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type IAMAccountSettingPasswordPolicy struct { - svc iamiface.IAMAPI - policy *iam.PasswordPolicy -} +const IAMAccountSettingPasswordPolicyResource = "IAMAccountSettingPasswordPolicy" func init() { - register("IAMAccountSettingPasswordPolicy", ListIAMAccountSettingPasswordPolicy) + resource.Register(resource.Registration{ + Name: IAMAccountSettingPasswordPolicyResource, + Scope: nuke.Account, + Lister: &IAMAccountSettingPasswordPolicyLister{}, + }) } -func ListIAMAccountSettingPasswordPolicy(sess *session.Session) ([]Resource, error) { - resources := make([]Resource, 0) +type IAMAccountSettingPasswordPolicyLister struct{} - svc := iam.New(sess) +func (l *IAMAccountSettingPasswordPolicyLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + resources := make([]resource.Resource, 0) + + svc := iam.New(opts.Session) resp, err := svc.GetAccountPasswordPolicy(&iam.GetAccountPasswordPolicyInput{}) if err != nil { - if aerr, ok := err.(awserr.Error); ok { + var aerr awserr.Error + if errors.As(err, &aerr) { switch aerr.Code() { case iam.ErrCodeNoSuchEntityException: return nil, nil @@ -44,11 +57,17 @@ func ListIAMAccountSettingPasswordPolicy(sess *session.Session) ([]Resource, err return resources, nil } -func (e *IAMAccountSettingPasswordPolicy) Remove() error { +type IAMAccountSettingPasswordPolicy struct { + svc iamiface.IAMAPI + policy *iam.PasswordPolicy +} + +func (e *IAMAccountSettingPasswordPolicy) Remove(_ context.Context) error { _, err := e.svc.DeleteAccountPasswordPolicy(&iam.DeleteAccountPasswordPolicyInput{}) if err != nil { return err } + return nil } diff --git a/resources/iam-group-policies.go b/resources/iam-group-policies.go index 5a10e1f1..fd8b02d2 100644 --- a/resources/iam-group-policies.go +++ b/resources/iam-group-policies.go @@ -1,32 +1,40 @@ package resources import ( + "context" + "fmt" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type IAMGroupPolicy struct { - svc iamiface.IAMAPI - policyName string - groupName string -} +const IAMGroupPolicyResource = "IAMGroupPolicy" func init() { - register("IAMGroupPolicy", ListIAMGroupPolicies) + resource.Register(resource.Registration{ + Name: IAMGroupPolicyResource, + Scope: nuke.Account, + Lister: &IAMGroupPolicyLister{}, + }) } -func ListIAMGroupPolicies(sess *session.Session) ([]Resource, error) { - svc := iam.New(sess) +type IAMGroupPolicyLister struct{} +func (l *IAMGroupPolicyLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := iam.New(opts.Session) resp, err := svc.ListGroups(nil) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, group := range resp.Groups { resp, err := svc.ListGroupPolicies( &iam.ListGroupPoliciesInput{ @@ -48,7 +56,13 @@ func ListIAMGroupPolicies(sess *session.Session) ([]Resource, error) { return resources, nil } -func (e *IAMGroupPolicy) Remove() error { +type IAMGroupPolicy struct { + svc iamiface.IAMAPI + policyName string + groupName string +} + +func (e *IAMGroupPolicy) Remove(_ context.Context) error { _, err := e.svc.DeleteGroupPolicy( &iam.DeleteGroupPolicyInput{ PolicyName: &e.policyName, diff --git a/resources/iam-group-policies_mock_test.go b/resources/iam-group-policies_mock_test.go index baba41f9..eee966a7 100644 --- a/resources/iam-group-policies_mock_test.go +++ b/resources/iam-group-policies_mock_test.go @@ -1,13 +1,16 @@ package resources import ( + "context" "testing" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/iam" "github.com/golang/mock/gomock" - "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + + "github.com/ekristen/aws-nuke/mocks/mock_iamiface" ) func Test_Mock_IAMGroupPolicy_Remove(t *testing.T) { @@ -28,6 +31,6 @@ func Test_Mock_IAMGroupPolicy_Remove(t *testing.T) { GroupName: aws.String(iamGroupPolicy.groupName), })).Return(&iam.DeleteGroupPolicyOutput{}, nil) - err := iamGroupPolicy.Remove() + err := iamGroupPolicy.Remove(context.TODO()) a.Nil(err) } diff --git a/resources/iam-group-policy-attachments.go b/resources/iam-group-policy-attachments.go index 46cd2bb8..038516a1 100644 --- a/resources/iam-group-policy-attachments.go +++ b/resources/iam-group-policy-attachments.go @@ -1,34 +1,42 @@ package resources import ( + "context" + "fmt" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type IAMGroupPolicyAttachment struct { - svc iamiface.IAMAPI - policyArn string - policyName string - groupName string -} +const IAMGroupPolicyAttachmentResource = "IAMGroupPolicyAttachment" func init() { - register("IAMGroupPolicyAttachment", ListIAMGroupPolicyAttachments) + resource.Register(resource.Registration{ + Name: IAMGroupPolicyAttachmentResource, + Scope: nuke.Account, + Lister: &IAMGroupPolicyAttachmentLister{}, + }) } -func ListIAMGroupPolicyAttachments(sess *session.Session) ([]Resource, error) { - svc := iam.New(sess) +type IAMGroupPolicyAttachmentLister struct{} + +func (l *IAMGroupPolicyAttachmentLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := iam.New(opts.Session) resp, err := svc.ListGroups(nil) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, role := range resp.Groups { resp, err := svc.ListAttachedGroupPolicies( &iam.ListAttachedGroupPoliciesInput{ @@ -51,7 +59,14 @@ func ListIAMGroupPolicyAttachments(sess *session.Session) ([]Resource, error) { return resources, nil } -func (e *IAMGroupPolicyAttachment) Remove() error { +type IAMGroupPolicyAttachment struct { + svc iamiface.IAMAPI + policyArn string + policyName string + groupName string +} + +func (e *IAMGroupPolicyAttachment) Remove(_ context.Context) error { _, err := e.svc.DetachGroupPolicy( &iam.DetachGroupPolicyInput{ PolicyArn: &e.policyArn, diff --git a/resources/iam-group-policy-attachments_mock_test.go b/resources/iam-group-policy-attachments_mock_test.go index f068b0d3..145344a2 100644 --- a/resources/iam-group-policy-attachments_mock_test.go +++ b/resources/iam-group-policy-attachments_mock_test.go @@ -1,13 +1,16 @@ package resources import ( + "context" "testing" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/iam" "github.com/golang/mock/gomock" - "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + + "github.com/ekristen/aws-nuke/mocks/mock_iamiface" ) func Test_Mock_IAMGroupPolicyAttachment_Remove(t *testing.T) { @@ -29,6 +32,6 @@ func Test_Mock_IAMGroupPolicyAttachment_Remove(t *testing.T) { GroupName: aws.String(iamGroupPolicyAttachment.groupName), })).Return(&iam.DetachGroupPolicyOutput{}, nil) - err := iamGroupPolicyAttachment.Remove() + err := iamGroupPolicyAttachment.Remove(context.TODO()) a.Nil(err) } diff --git a/resources/iam-groups.go b/resources/iam-groups.go index e88889ce..b8223648 100644 --- a/resources/iam-groups.go +++ b/resources/iam-groups.go @@ -1,12 +1,31 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const IAMGroupResource = "IAMGroup" + +func init() { + resource.Register(resource.Registration{ + Name: IAMGroupResource, + Scope: nuke.Account, + Lister: &IAMGroupLister{}, + DependsOn: []string{ + IAMUserGroupAttachmentResource, + IAMGroupPolicyResource, + }, + }) +} + type IAMGroup struct { svc iamiface.IAMAPI id string @@ -14,33 +33,7 @@ type IAMGroup struct { path string } -func init() { - register("IAMGroup", ListIAMGroups) -} - -func ListIAMGroups(sess *session.Session) ([]Resource, error) { - svc := iam.New(sess) - resources := []Resource{} - - err := svc.ListGroupsPages(nil, func(page *iam.ListGroupsOutput, lastPage bool) bool { - for _, out := range page.Groups { - resources = append(resources, &IAMGroup{ - svc: svc, - id: *out.GroupId, - name: *out.GroupName, - path: *out.Path, - }) - } - return true - }) - if err != nil { - return nil, err - } - - return resources, nil -} - -func (e *IAMGroup) Remove() error { +func (e *IAMGroup) Remove(_ context.Context) error { _, err := e.svc.DeleteGroup(&iam.DeleteGroupInput{ GroupName: &e.name, }) @@ -61,3 +54,30 @@ func (e *IAMGroup) Properties() types.Properties { Set("Path", e.path). Set("ID", e.id) } + +// -------------- + +type IAMGroupLister struct{} + +func (l *IAMGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := iam.New(opts.Session) + var resources []resource.Resource + + if err := svc.ListGroupsPages(nil, func(page *iam.ListGroupsOutput, lastPage bool) bool { + for _, out := range page.Groups { + resources = append(resources, &IAMGroup{ + svc: svc, + id: *out.GroupId, + name: *out.GroupName, + path: *out.Path, + }) + } + return true + }); err != nil { + return nil, err + } + + return resources, nil +} diff --git a/resources/iam-groups_mock_test.go b/resources/iam-groups_mock_test.go index 83dd9d21..83a2b362 100644 --- a/resources/iam-groups_mock_test.go +++ b/resources/iam-groups_mock_test.go @@ -1,13 +1,16 @@ package resources import ( + "context" "testing" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/iam" "github.com/golang/mock/gomock" - "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + + "github.com/ekristen/aws-nuke/mocks/mock_iamiface" ) func Test_Mock_IAMGroup_Remove(t *testing.T) { @@ -26,6 +29,6 @@ func Test_Mock_IAMGroup_Remove(t *testing.T) { GroupName: aws.String(iamGroup.name), })).Return(&iam.DeleteGroupOutput{}, nil) - err := iamGroup.Remove() + err := iamGroup.Remove(context.TODO()) a.Nil(err) } diff --git a/resources/iam-instance-profile-role_mock_test.go b/resources/iam-instance-profile-role_mock_test.go index 2ed83f33..897f993a 100644 --- a/resources/iam-instance-profile-role_mock_test.go +++ b/resources/iam-instance-profile-role_mock_test.go @@ -1,13 +1,16 @@ package resources import ( + "context" "testing" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/iam" "github.com/golang/mock/gomock" - "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + + "github.com/ekristen/aws-nuke/mocks/mock_iamiface" ) func Test_Mock_IAMInstanceProfileRole_Remove(t *testing.T) { @@ -18,18 +21,20 @@ func Test_Mock_IAMInstanceProfileRole_Remove(t *testing.T) { mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) iamInstanceProfileRole := IAMInstanceProfileRole{ - svc: mockIAM, - role: "role:foobar", + svc: mockIAM, + role: &iam.Role{ + RoleName: aws.String("role:foobar"), + }, profile: &iam.InstanceProfile{ InstanceProfileName: aws.String("profile:foobar"), }, } mockIAM.EXPECT().RemoveRoleFromInstanceProfile(gomock.Eq(&iam.RemoveRoleFromInstanceProfileInput{ - RoleName: aws.String(iamInstanceProfileRole.role), + RoleName: iamInstanceProfileRole.role.RoleName, InstanceProfileName: iamInstanceProfileRole.profile.InstanceProfileName, })).Return(&iam.RemoveRoleFromInstanceProfileOutput{}, nil) - err := iamInstanceProfileRole.Remove() + err := iamInstanceProfileRole.Remove(context.TODO()) a.Nil(err) } diff --git a/resources/iam-instance-profile-roles.go b/resources/iam-instance-profile-roles.go index 3f9f9d09..1b775d7f 100644 --- a/resources/iam-instance-profile-roles.go +++ b/resources/iam-instance-profile-roles.go @@ -1,30 +1,41 @@ package resources import ( + "context" + "fmt" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" - "github.com/sirupsen/logrus" "time" - "github.com/aws/aws-sdk-go/aws/session" + "github.com/gotidy/ptr" + "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type IAMInstanceProfileRole struct { - svc iamiface.IAMAPI - role *iam.Role - profile *iam.InstanceProfile -} +const IAMInstanceProfileRoleResource = "IAMInstanceProfileRole" func init() { - register("IAMInstanceProfileRole", ListIAMInstanceProfileRoles) + resource.Register(resource.Registration{ + Name: IAMInstanceProfileRoleResource, + Scope: nuke.Account, + Lister: &IAMInstanceProfileRoleLister{}, + }) } -func ListIAMInstanceProfileRoles(sess *session.Session) ([]Resource, error) { - svc := iam.New(sess) +type IAMInstanceProfileRoleLister struct{} + +func (l *IAMInstanceProfileRoleLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := iam.New(opts.Session) params := &iam.ListInstanceProfilesInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { resp, err := svc.ListInstanceProfiles(params) @@ -61,7 +72,13 @@ func ListIAMInstanceProfileRoles(sess *session.Session) ([]Resource, error) { return resources, nil } -func (e *IAMInstanceProfileRole) Remove() error { +type IAMInstanceProfileRole struct { + svc iamiface.IAMAPI + role *iam.Role + profile *iam.InstanceProfile +} + +func (e *IAMInstanceProfileRole) Remove(_ context.Context) error { _, err := e.svc.RemoveRoleFromInstanceProfile( &iam.RemoveRoleFromInstanceProfileInput{ InstanceProfileName: e.profile.InstanceProfileName, @@ -75,7 +92,7 @@ func (e *IAMInstanceProfileRole) Remove() error { } func (e *IAMInstanceProfileRole) String() string { - return fmt.Sprintf("%s -> %s", *e.profile.InstanceProfileName, e.role) + return fmt.Sprintf("%s -> %s", ptr.ToString(e.profile.InstanceProfileName), ptr.ToString(e.role.RoleName)) } func (e *IAMInstanceProfileRole) Properties() types.Properties { @@ -95,5 +112,6 @@ func (e *IAMInstanceProfileRole) Properties() types.Properties { for _, tagValue := range e.role.Tags { properties.SetTagWithPrefix("role", tagValue.Key, tagValue.Value) } + return properties } diff --git a/resources/iam-instance-profiles.go b/resources/iam-instance-profiles.go index 5b6542c0..ae46174f 100644 --- a/resources/iam-instance-profiles.go +++ b/resources/iam-instance-profiles.go @@ -1,36 +1,37 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + + "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" - "github.com/sirupsen/logrus" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type IAMInstanceProfile struct { - svc iamiface.IAMAPI - name string - path string - profile *iam.InstanceProfile -} +const IAMInstanceProfileResource = "IAMInstanceProfile" func init() { - register("IAMInstanceProfile", ListIAMInstanceProfiles) + resource.Register(resource.Registration{ + Name: IAMInstanceProfileResource, + Scope: nuke.Account, + Lister: &IAMInstanceProfileLister{}, + }) } -func GetIAMInstanceProfile(svc *iam.IAM, instanceProfileName *string) (*iam.InstanceProfile, error) { - params := &iam.GetInstanceProfileInput{ - InstanceProfileName: instanceProfileName, - } - resp, err := svc.GetInstanceProfile(params) - return resp.InstanceProfile, err -} +type IAMInstanceProfileLister struct{} + +func (l *IAMInstanceProfileLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) -func ListIAMInstanceProfiles(sess *session.Session) ([]Resource, error) { - svc := iam.New(sess) + svc := iam.New(opts.Session) params := &iam.ListInstanceProfilesInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { resp, err := svc.ListInstanceProfiles(params) @@ -66,7 +67,22 @@ func ListIAMInstanceProfiles(sess *session.Session) ([]Resource, error) { return resources, nil } -func (e *IAMInstanceProfile) Remove() error { +func GetIAMInstanceProfile(svc *iam.IAM, instanceProfileName *string) (*iam.InstanceProfile, error) { + params := &iam.GetInstanceProfileInput{ + InstanceProfileName: instanceProfileName, + } + resp, err := svc.GetInstanceProfile(params) + return resp.InstanceProfile, err +} + +type IAMInstanceProfile struct { + svc iamiface.IAMAPI + name string + path string + profile *iam.InstanceProfile +} + +func (e *IAMInstanceProfile) Remove(_ context.Context) error { _, err := e.svc.DeleteInstanceProfile(&iam.DeleteInstanceProfileInput{ InstanceProfileName: &e.name, }) diff --git a/resources/iam-instance-profiles_mock_test.go b/resources/iam-instance-profiles_mock_test.go index 6ae79ccb..263f36d1 100644 --- a/resources/iam-instance-profiles_mock_test.go +++ b/resources/iam-instance-profiles_mock_test.go @@ -1,13 +1,17 @@ package resources import ( + "context" + "testing" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/iam" "github.com/golang/mock/gomock" - "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + + "github.com/ekristen/aws-nuke/mocks/mock_iamiface" ) func Test_Mock_IAMInstanceProfile_Remove(t *testing.T) { @@ -26,6 +30,6 @@ func Test_Mock_IAMInstanceProfile_Remove(t *testing.T) { InstanceProfileName: aws.String(iamInstanceProfile.name), })).Return(&iam.DeleteInstanceProfileOutput{}, nil) - err := iamInstanceProfile.Remove() + err := iamInstanceProfile.Remove(context.TODO()) a.Nil(err) } diff --git a/resources/iam-login-profiles.go b/resources/iam-login-profiles.go index f162aaa4..faa53dd2 100644 --- a/resources/iam-login-profiles.go +++ b/resources/iam-login-profiles.go @@ -1,37 +1,51 @@ package resources import ( + "context" + + "errors" + + "github.com/gotidy/ptr" + "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" - "github.com/sirupsen/logrus" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type IAMLoginProfile struct { - svc iamiface.IAMAPI - name string -} +const IAMLoginProfileResource = "IAMLoginProfile" func init() { - register("IAMLoginProfile", ListIAMLoginProfiles) + resource.Register(resource.Registration{ + Name: IAMLoginProfileResource, + Scope: nuke.Account, + Lister: &IAMLoginProfileLister{}, + }) } -func ListIAMLoginProfiles(sess *session.Session) ([]Resource, error) { - svc := iam.New(sess) +type IAMLoginProfileLister struct{} + +func (l *IAMLoginProfileLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := iam.New(opts.Session) resp, err := svc.ListUsers(nil) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, out := range resp.Users { lpresp, err := svc.GetLoginProfile(&iam.GetLoginProfileInput{UserName: out.UserName}) if err != nil { - if aerr, ok := err.(awserr.Error); ok { - switch aerr.Code() { + var awsError awserr.Error + if errors.As(err, &awsError) { + switch awsError.Code() { case iam.ErrCodeNoSuchEntityException: // The user does not have a login profile and we do not // need to print an error for that. @@ -40,14 +54,14 @@ func ListIAMLoginProfiles(sess *session.Session) ([]Resource, error) { } logrus.Errorf("failed to list login profile for user %s: %v", - *out.UserName, err) + ptr.ToString(out.UserName), err) continue } if lpresp.LoginProfile != nil { resources = append(resources, &IAMLoginProfile{ svc: svc, - name: *out.UserName, + name: ptr.ToString(out.UserName), }) } } @@ -55,7 +69,12 @@ func ListIAMLoginProfiles(sess *session.Session) ([]Resource, error) { return resources, nil } -func (e *IAMLoginProfile) Remove() error { +type IAMLoginProfile struct { + svc iamiface.IAMAPI + name string +} + +func (e *IAMLoginProfile) Remove(_ context.Context) error { _, err := e.svc.DeleteLoginProfile(&iam.DeleteLoginProfileInput{UserName: &e.name}) if err != nil { return err diff --git a/resources/iam-login-profiles_mock_test.go b/resources/iam-login-profiles_mock_test.go index 91c04d70..db6d0161 100644 --- a/resources/iam-login-profiles_mock_test.go +++ b/resources/iam-login-profiles_mock_test.go @@ -1,13 +1,16 @@ package resources import ( + "context" "testing" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/iam" "github.com/golang/mock/gomock" - "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + + "github.com/ekristen/aws-nuke/mocks/mock_iamiface" ) func Test_Mock_IAMLoginProfile_Remove(t *testing.T) { @@ -26,6 +29,6 @@ func Test_Mock_IAMLoginProfile_Remove(t *testing.T) { UserName: aws.String(iamLoginProfile.name), })).Return(&iam.DeleteLoginProfileOutput{}, nil) - err := iamLoginProfile.Remove() + err := iamLoginProfile.Remove(context.TODO()) a.Nil(err) } diff --git a/resources/iam-open-id-connect-provider.go b/resources/iam-open-id-connect-provider.go index 84ff288b..e6455fb9 100644 --- a/resources/iam-open-id-connect-provider.go +++ b/resources/iam-open-id-connect-provider.go @@ -1,34 +1,43 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type IAMOpenIDConnectProvider struct { - svc iamiface.IAMAPI - arn string - tags []*iam.Tag -} +const IAMOpenIDConnectProviderResource = "IAMOpenIDConnectProvider" func init() { - register("IAMOpenIDConnectProvider", ListIAMOpenIDConnectProvider) + resource.Register(resource.Registration{ + Name: IAMOpenIDConnectProviderResource, + Scope: nuke.Account, + Lister: &IAMOpenIDConnectProviderLister{}, + }) } -func ListIAMOpenIDConnectProvider(sess *session.Session) ([]Resource, error) { - svc := iam.New(sess) - params := &iam.ListOpenIDConnectProvidersInput{} - resources := make([]Resource, 0) +type IAMOpenIDConnectProviderLister struct{} + +func (l *IAMOpenIDConnectProviderLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) - resp, err := svc.ListOpenIDConnectProviders(params) + svc := iam.New(opts.Session) + + listParams := &iam.ListOpenIDConnectProvidersInput{} + resources := make([]resource.Resource, 0) + + resp, err := svc.ListOpenIDConnectProviders(listParams) if err != nil { return nil, err } for _, out := range resp.OpenIDConnectProviderList { - params := &iam.GetOpenIDConnectProviderInput{ OpenIDConnectProviderArn: out.Arn, } @@ -48,7 +57,13 @@ func ListIAMOpenIDConnectProvider(sess *session.Session) ([]Resource, error) { return resources, nil } -func (e *IAMOpenIDConnectProvider) Remove() error { +type IAMOpenIDConnectProvider struct { + svc iamiface.IAMAPI + arn string + tags []*iam.Tag +} + +func (e *IAMOpenIDConnectProvider) Remove(_ context.Context) error { _, err := e.svc.DeleteOpenIDConnectProvider(&iam.DeleteOpenIDConnectProviderInput{ OpenIDConnectProviderArn: &e.arn, }) diff --git a/resources/iam-open-id-connect-provider_mock_test.go b/resources/iam-open-id-connect-provider_mock_test.go index 0f6a68d0..5ffff0bb 100644 --- a/resources/iam-open-id-connect-provider_mock_test.go +++ b/resources/iam-open-id-connect-provider_mock_test.go @@ -1,13 +1,16 @@ package resources import ( + "context" "testing" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/iam" "github.com/golang/mock/gomock" - "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + + "github.com/ekristen/aws-nuke/mocks/mock_iamiface" ) func Test_Mock_IAMOpenIDConnectProvider_Remove(t *testing.T) { @@ -26,6 +29,6 @@ func Test_Mock_IAMOpenIDConnectProvider_Remove(t *testing.T) { OpenIDConnectProviderArn: aws.String(iamOpenIDConnectProvider.arn), })).Return(&iam.DeleteOpenIDConnectProviderOutput{}, nil) - err := iamOpenIDConnectProvider.Remove() + err := iamOpenIDConnectProvider.Remove(context.TODO()) a.Nil(err) } diff --git a/resources/iam-policies.go b/resources/iam-policies.go index cbb9cd7b..aa09af80 100644 --- a/resources/iam-policies.go +++ b/resources/iam-policies.go @@ -1,14 +1,35 @@ package resources import ( + "context" + + "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" - "github.com/sirupsen/logrus" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const IAMPolicyResource = "IAMPolicy" + +func init() { + resource.Register(resource.Registration{ + Name: IAMPolicyResource, + Scope: nuke.Account, + Lister: &IAMPolicyLister{}, + DependsOn: []string{ + IAMUserPolicyAttachmentResource, + IAMGroupPolicyAttachmentResource, + IAMRolePolicyAttachmentResource, + }, + }) +} + type IAMPolicy struct { svc iamiface.IAMAPI name string @@ -18,10 +39,54 @@ type IAMPolicy struct { tags []*iam.Tag } -func init() { - register("IAMPolicy", ListIAMPolicies) +func (e *IAMPolicy) Remove(_ context.Context) error { + resp, err := e.svc.ListPolicyVersions(&iam.ListPolicyVersionsInput{ + PolicyArn: &e.arn, + }) + if err != nil { + return err + } + for _, version := range resp.Versions { + if !*version.IsDefaultVersion { + _, err = e.svc.DeletePolicyVersion(&iam.DeletePolicyVersionInput{ + PolicyArn: &e.arn, + VersionId: version.VersionId, + }) + if err != nil { + return err + } + + } + } + _, err = e.svc.DeletePolicy(&iam.DeletePolicyInput{ + PolicyArn: &e.arn, + }) + if err != nil { + return err + } + + return nil } +func (e *IAMPolicy) Properties() types.Properties { + properties := types.NewProperties() + + properties.Set("Name", e.name) + properties.Set("ARN", e.arn) + properties.Set("Path", e.path) + properties.Set("PolicyID", e.policyId) + for _, tag := range e.tags { + properties.SetTag(tag.Key, tag.Value) + } + return properties +} + +func (e *IAMPolicy) String() string { + return e.arn +} + +// ------------- + func GetIAMPolicy(svc *iam.IAM, policyArn *string) (*iam.Policy, error) { params := &iam.GetPolicyInput{ PolicyArn: policyArn, @@ -30,8 +95,12 @@ func GetIAMPolicy(svc *iam.IAM, policyArn *string) (*iam.Policy, error) { return resp.Policy, err } -func ListIAMPolicies(sess *session.Session) ([]Resource, error) { - svc := iam.New(sess) +type IAMPolicyLister struct{} + +func (l *IAMPolicyLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := iam.New(opts.Session) params := &iam.ListPoliciesInput{ Scope: aws.String("Local"), @@ -39,7 +108,7 @@ func ListIAMPolicies(sess *session.Session) ([]Resource, error) { policies := make([]*iam.Policy, 0) - err := svc.ListPoliciesPages(params, + if err := svc.ListPoliciesPages(params, func(page *iam.ListPoliciesOutput, lastPage bool) bool { for _, listedPolicy := range page.Policies { policy, err := GetIAMPolicy(svc, listedPolicy.Arn) @@ -50,12 +119,11 @@ func ListIAMPolicies(sess *session.Session) ([]Resource, error) { policies = append(policies, policy) } return true - }) - if err != nil { + }); err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, out := range policies { resources = append(resources, &IAMPolicy{ @@ -70,49 +138,3 @@ func ListIAMPolicies(sess *session.Session) ([]Resource, error) { return resources, nil } - -func (e *IAMPolicy) Remove() error { - resp, err := e.svc.ListPolicyVersions(&iam.ListPolicyVersionsInput{ - PolicyArn: &e.arn, - }) - if err != nil { - return err - } - for _, version := range resp.Versions { - if !*version.IsDefaultVersion { - _, err = e.svc.DeletePolicyVersion(&iam.DeletePolicyVersionInput{ - PolicyArn: &e.arn, - VersionId: version.VersionId, - }) - if err != nil { - return err - } - - } - } - _, err = e.svc.DeletePolicy(&iam.DeletePolicyInput{ - PolicyArn: &e.arn, - }) - if err != nil { - return err - } - - return nil -} - -func (policy *IAMPolicy) Properties() types.Properties { - properties := types.NewProperties() - - properties.Set("Name", policy.name) - properties.Set("ARN", policy.arn) - properties.Set("Path", policy.path) - properties.Set("PolicyID", policy.policyId) - for _, tag := range policy.tags { - properties.SetTag(tag.Key, tag.Value) - } - return properties -} - -func (e *IAMPolicy) String() string { - return e.arn -} diff --git a/resources/iam-policies_mock_test.go b/resources/iam-policies_mock_test.go index d360371b..dee908b5 100644 --- a/resources/iam-policies_mock_test.go +++ b/resources/iam-policies_mock_test.go @@ -1,13 +1,16 @@ package resources import ( + "context" "testing" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/iam" "github.com/golang/mock/gomock" - "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + + "github.com/ekristen/aws-nuke/mocks/mock_iamiface" ) func Test_Mock_IAMPolicy_Remove(t *testing.T) { @@ -39,7 +42,7 @@ func Test_Mock_IAMPolicy_Remove(t *testing.T) { PolicyArn: aws.String(iamPolicy.arn), })).Return(&iam.DeletePolicyOutput{}, nil) - err := iamPolicy.Remove() + err := iamPolicy.Remove(context.TODO()) a.Nil(err) } @@ -90,6 +93,6 @@ func Test_Mock_IAMPolicy_WithVersions_Remove(t *testing.T) { PolicyArn: aws.String(iamPolicy.arn), })).Return(&iam.DeletePolicyOutput{}, nil) - err := iamPolicy.Remove() + err := iamPolicy.Remove(context.TODO()) a.Nil(err) } diff --git a/resources/iam-role-policy-attachments.go b/resources/iam-role-policy-attachments.go index dfaae37a..bce2010f 100644 --- a/resources/iam-role-policy-attachments.go +++ b/resources/iam-role-policy-attachments.go @@ -1,17 +1,33 @@ package resources import ( + "context" + "fmt" "strings" "time" - "github.com/aws/aws-sdk-go/aws/session" + "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" - "github.com/sirupsen/logrus" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const IAMRolePolicyAttachmentResource = "IAMRolePolicyAttachment" + +func init() { + resource.Register(resource.Registration{ + Name: IAMRolePolicyAttachmentResource, + Scope: nuke.Account, + Lister: &IAMRolePolicyAttachmentLister{}, + }) +} + type IAMRolePolicyAttachment struct { svc iamiface.IAMAPI policyArn string @@ -19,14 +35,58 @@ type IAMRolePolicyAttachment struct { role *iam.Role } -func init() { - register("IAMRolePolicyAttachment", ListIAMRolePolicyAttachments) +func (e *IAMRolePolicyAttachment) Filter() error { + if strings.Contains(e.policyArn, ":iam::aws:policy/aws-service-role/") { + return fmt.Errorf("cannot detach from service roles") + } + if strings.HasPrefix(*e.role.Path, "/aws-reserved/sso.amazonaws.com/") { + return fmt.Errorf("cannot detach from SSO roles") + } + return nil +} + +func (e *IAMRolePolicyAttachment) Remove(_ context.Context) error { + _, err := e.svc.DetachRolePolicy( + &iam.DetachRolePolicyInput{ + PolicyArn: &e.policyArn, + RoleName: e.role.RoleName, + }) + if err != nil { + return err + } + + return nil +} + +func (e *IAMRolePolicyAttachment) Properties() types.Properties { + properties := types.NewProperties(). + Set("RoleName", e.role.RoleName). + Set("RolePath", e.role.Path). + Set("RoleLastUsed", getLastUsedDate(e.role, time.RFC3339)). + Set("RoleCreateDate", e.role.CreateDate.Format(time.RFC3339)). + Set("PolicyName", e.policyName). + Set("PolicyArn", e.policyArn) + + for _, tag := range e.role.Tags { + properties.SetTagWithPrefix("role", tag.Key, tag.Value) + } + return properties +} + +func (e *IAMRolePolicyAttachment) String() string { + return fmt.Sprintf("%s -> %s", *e.role.RoleName, e.policyName) } -func ListIAMRolePolicyAttachments(sess *session.Session) ([]Resource, error) { - svc := iam.New(sess) +// ----------------------- + +type IAMRolePolicyAttachmentLister struct{} + +func (l *IAMRolePolicyAttachmentLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := iam.New(opts.Session) roleParams := &iam.ListRolesInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { roleResp, err := svc.ListRoles(roleParams) @@ -78,45 +138,3 @@ func ListIAMRolePolicyAttachments(sess *session.Session) ([]Resource, error) { return resources, nil } - -func (e *IAMRolePolicyAttachment) Filter() error { - if strings.Contains(e.policyArn, ":iam::aws:policy/aws-service-role/") { - return fmt.Errorf("cannot detach from service roles") - } - if strings.HasPrefix(*e.role.Path, "/aws-reserved/sso.amazonaws.com/") { - return fmt.Errorf("cannot detach from SSO roles") - } - return nil -} - -func (e *IAMRolePolicyAttachment) Remove() error { - _, err := e.svc.DetachRolePolicy( - &iam.DetachRolePolicyInput{ - PolicyArn: &e.policyArn, - RoleName: e.role.RoleName, - }) - if err != nil { - return err - } - - return nil -} - -func (e *IAMRolePolicyAttachment) Properties() types.Properties { - properties := types.NewProperties(). - Set("RoleName", e.role.RoleName). - Set("RolePath", e.role.Path). - Set("RoleLastUsed", getLastUsedDate(e.role, time.RFC3339)). - Set("RoleCreateDate", e.role.CreateDate.Format(time.RFC3339)). - Set("PolicyName", e.policyName). - Set("PolicyArn", e.policyArn) - - for _, tag := range e.role.Tags { - properties.SetTagWithPrefix("role", tag.Key, tag.Value) - } - return properties -} - -func (e *IAMRolePolicyAttachment) String() string { - return fmt.Sprintf("%s -> %s", *e.role.RoleName, e.policyName) -} diff --git a/resources/iam-role-policy-attachments_mock_test.go b/resources/iam-role-policy-attachments_mock_test.go index 181d0488..ecba6f42 100644 --- a/resources/iam-role-policy-attachments_mock_test.go +++ b/resources/iam-role-policy-attachments_mock_test.go @@ -1,13 +1,16 @@ package resources import ( + "context" "testing" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/iam" "github.com/golang/mock/gomock" - "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + + "github.com/ekristen/aws-nuke/mocks/mock_iamiface" ) func Test_Mock_IAMRolePolicyAttachment_Remove(t *testing.T) { @@ -31,6 +34,6 @@ func Test_Mock_IAMRolePolicyAttachment_Remove(t *testing.T) { PolicyArn: aws.String(iamRolePolicyAttachment.policyArn), })).Return(&iam.DetachRolePolicyOutput{}, nil) - err := iamRolePolicyAttachment.Remove() + err := iamRolePolicyAttachment.Remove(context.TODO()) a.Nil(err) } diff --git a/resources/iam-role-policy.go b/resources/iam-role-policy.go index 047f4794..8dab78ad 100644 --- a/resources/iam-role-policy.go +++ b/resources/iam-role-policy.go @@ -1,17 +1,32 @@ package resources import ( + "context" + "fmt" "strings" "github.com/sirupsen/logrus" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const IAMRolePolicyResource = "IAMRolePolicy" + +func init() { + resource.Register(resource.Registration{ + Name: IAMRolePolicyResource, + Scope: nuke.Account, + Lister: &IAMRolePolicyLister{}, + }) +} + type IAMRolePolicy struct { svc iamiface.IAMAPI roleId string @@ -21,14 +36,53 @@ type IAMRolePolicy struct { roleTags []*iam.Tag } -func init() { - register("IAMRolePolicy", ListIAMRolePolicies) +func (e *IAMRolePolicy) Filter() error { + if strings.HasPrefix(e.rolePath, "/aws-service-role/") { + return fmt.Errorf("cannot alter service roles") + } + return nil } -func ListIAMRolePolicies(sess *session.Session) ([]Resource, error) { - svc := iam.New(sess) +func (e *IAMRolePolicy) Remove(_ context.Context) error { + _, err := e.svc.DeleteRolePolicy( + &iam.DeleteRolePolicyInput{ + RoleName: &e.roleName, + PolicyName: &e.policyName, + }) + if err != nil { + return err + } + + return nil +} + +func (e *IAMRolePolicy) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("PolicyName", e.policyName) + properties.Set("role:RoleName", e.roleName) + properties.Set("role:RoleID", e.roleId) + properties.Set("role:Path", e.rolePath) + + for _, tagValue := range e.roleTags { + properties.SetTagWithPrefix("role", tagValue.Key, tagValue.Value) + } + return properties +} + +func (e *IAMRolePolicy) String() string { + return fmt.Sprintf("%s -> %s", e.roleName, e.policyName) +} + +// ---------------------- + +type IAMRolePolicyLister struct{} + +func (l *IAMRolePolicyLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := iam.New(opts.Session) roleParams := &iam.ListRolesInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { roles, err := svc.ListRoles(roleParams) @@ -85,40 +139,3 @@ func ListIAMRolePolicies(sess *session.Session) ([]Resource, error) { return resources, nil } - -func (e *IAMRolePolicy) Filter() error { - if strings.HasPrefix(e.rolePath, "/aws-service-role/") { - return fmt.Errorf("cannot alter service roles") - } - return nil -} - -func (e *IAMRolePolicy) Remove() error { - _, err := e.svc.DeleteRolePolicy( - &iam.DeleteRolePolicyInput{ - RoleName: &e.roleName, - PolicyName: &e.policyName, - }) - if err != nil { - return err - } - - return nil -} - -func (e *IAMRolePolicy) Properties() types.Properties { - properties := types.NewProperties() - properties.Set("PolicyName", e.policyName) - properties.Set("role:RoleName", e.roleName) - properties.Set("role:RoleID", e.roleId) - properties.Set("role:Path", e.rolePath) - - for _, tagValue := range e.roleTags { - properties.SetTagWithPrefix("role", tagValue.Key, tagValue.Value) - } - return properties -} - -func (e *IAMRolePolicy) String() string { - return fmt.Sprintf("%s -> %s", e.roleName, e.policyName) -} diff --git a/resources/iam-role-policy_mock_test.go b/resources/iam-role-policy_mock_test.go index 8f604cb3..d0c55d89 100644 --- a/resources/iam-role-policy_mock_test.go +++ b/resources/iam-role-policy_mock_test.go @@ -1,13 +1,16 @@ package resources import ( + "context" "testing" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/iam" "github.com/golang/mock/gomock" - "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + + "github.com/ekristen/aws-nuke/mocks/mock_iamiface" ) func Test_Mock_IAMRolePolicy_Remove(t *testing.T) { @@ -30,6 +33,6 @@ func Test_Mock_IAMRolePolicy_Remove(t *testing.T) { PolicyName: aws.String(iamRolePolicy.policyName), })).Return(&iam.DeleteRolePolicyOutput{}, nil) - err := iamRolePolicy.Remove() + err := iamRolePolicy.Remove(context.TODO()) a.Nil(err) } diff --git a/resources/iam-roles.go b/resources/iam-roles.go index c2c4dceb..92d9e94a 100644 --- a/resources/iam-roles.go +++ b/resources/iam-roles.go @@ -1,18 +1,37 @@ package resources import ( + "context" + "fmt" "strings" "time" + "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" - "github.com/sirupsen/logrus" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const IAMRoleResource = "IAMRole" + +func init() { + resource.Register(resource.Registration{ + Name: IAMRoleResource, + Scope: nuke.Account, + Lister: &IAMRoleLister{}, + DependsOn: []string{ + IAMRolePolicyAttachmentResource, + }, + }) +} + type IAMRole struct { svc iamiface.IAMAPI name string @@ -20,10 +39,42 @@ type IAMRole struct { tags []*iam.Tag } -func init() { - register("IAMRole", ListIAMRoles) +func (e *IAMRole) Filter() error { + if strings.HasPrefix(e.path, "/aws-service-role/") { + return fmt.Errorf("cannot delete service roles") + } + if strings.HasPrefix(e.path, "/aws-reserved/sso.amazonaws.com/") { + return fmt.Errorf("cannot delete SSO roles") + } + return nil } +func (e *IAMRole) Remove(_ context.Context) error { + _, err := e.svc.DeleteRole(&iam.DeleteRoleInput{ + RoleName: aws.String(e.name), + }) + if err != nil { + return err + } + + return nil +} + +func (e *IAMRole) Properties() types.Properties { + properties := types.NewProperties() + for _, tagValue := range e.tags { + properties.SetTag(tagValue.Key, tagValue.Value) + } + + return properties +} + +func (e *IAMRole) String() string { + return e.name +} + +// --------- + func GetIAMRole(svc *iam.IAM, roleName *string) (*iam.Role, error) { params := &iam.GetRoleInput{ RoleName: roleName, @@ -32,10 +83,27 @@ func GetIAMRole(svc *iam.IAM, roleName *string) (*iam.Role, error) { return resp.Role, err } -func ListIAMRoles(sess *session.Session) ([]Resource, error) { - svc := iam.New(sess) +func getLastUsedDate(role *iam.Role, format string) string { + var lastUsedDate *time.Time + if role.RoleLastUsed == nil || role.RoleLastUsed.LastUsedDate == nil { + lastUsedDate = role.CreateDate + } else { + lastUsedDate = role.RoleLastUsed.LastUsedDate + } + + return lastUsedDate.Format(format) +} + +// -------------- + +type IAMRoleLister struct{} + +func (l *IAMRoleLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := iam.New(opts.Session) params := &iam.ListRolesInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { resp, err := svc.ListRoles(params) @@ -70,48 +138,3 @@ func ListIAMRoles(sess *session.Session) ([]Resource, error) { return resources, nil } - -func (e *IAMRole) Filter() error { - if strings.HasPrefix(e.path, "/aws-service-role/") { - return fmt.Errorf("cannot delete service roles") - } - if strings.HasPrefix(e.path, "/aws-reserved/sso.amazonaws.com/") { - return fmt.Errorf("cannot delete SSO roles") - } - return nil -} - -func (e *IAMRole) Remove() error { - _, err := e.svc.DeleteRole(&iam.DeleteRoleInput{ - RoleName: aws.String(e.name), - }) - if err != nil { - return err - } - - return nil -} - -func (e *IAMRole) Properties() types.Properties { - properties := types.NewProperties() - for _, tagValue := range e.tags { - properties.SetTag(tagValue.Key, tagValue.Value) - } - - return properties -} - -func (e *IAMRole) String() string { - return e.name -} - -func getLastUsedDate(role *iam.Role, format string) string { - var lastUsedDate *time.Time - if role.RoleLastUsed == nil || role.RoleLastUsed.LastUsedDate == nil { - lastUsedDate = role.CreateDate - } else { - lastUsedDate = role.RoleLastUsed.LastUsedDate - } - - return lastUsedDate.Format(format) -} diff --git a/resources/iam-roles_mock_test.go b/resources/iam-roles_mock_test.go index 610f6df8..9a69e647 100644 --- a/resources/iam-roles_mock_test.go +++ b/resources/iam-roles_mock_test.go @@ -1,13 +1,16 @@ package resources import ( + "context" "testing" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/iam" "github.com/golang/mock/gomock" - "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + + "github.com/ekristen/aws-nuke/mocks/mock_iamiface" ) func Test_Mock_IAMRole_Remove(t *testing.T) { @@ -28,6 +31,6 @@ func Test_Mock_IAMRole_Remove(t *testing.T) { RoleName: aws.String(iamRole.name), })).Return(&iam.DeleteRoleOutput{}, nil) - err := iamRole.Remove() + err := iamRole.Remove(context.TODO()) a.Nil(err) } diff --git a/resources/iam-saml-provider.go b/resources/iam-saml-provider.go index 14944e3a..e3d3ae62 100644 --- a/resources/iam-saml-provider.go +++ b/resources/iam-saml-provider.go @@ -1,24 +1,32 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/libnuke/pkg/resource" ) -type IAMSAMLProvider struct { - svc iamiface.IAMAPI - arn string -} +const IAMSAMLProviderResource = "IAMSAMLProvider" func init() { - register("IAMSAMLProvider", ListIAMSAMLProvider) + resource.Register(resource.Registration{ + Name: IAMSAMLProviderResource, + Scope: nuke.Account, + Lister: &IAMSAMLProviderLister{}, + }) } -func ListIAMSAMLProvider(sess *session.Session) ([]Resource, error) { - svc := iam.New(sess) +type IAMSAMLProviderLister struct{} + +func (l *IAMSAMLProviderLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := iam.New(opts.Session) params := &iam.ListSAMLProvidersInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) resp, err := svc.ListSAMLProviders(params) if err != nil { @@ -35,7 +43,12 @@ func ListIAMSAMLProvider(sess *session.Session) ([]Resource, error) { return resources, nil } -func (e *IAMSAMLProvider) Remove() error { +type IAMSAMLProvider struct { + svc iamiface.IAMAPI + arn string +} + +func (e *IAMSAMLProvider) Remove(_ context.Context) error { _, err := e.svc.DeleteSAMLProvider(&iam.DeleteSAMLProviderInput{ SAMLProviderArn: &e.arn, }) diff --git a/resources/iam-saml-provider_mock_test.go b/resources/iam-saml-provider_mock_test.go index 21cccdd5..f4853c3e 100644 --- a/resources/iam-saml-provider_mock_test.go +++ b/resources/iam-saml-provider_mock_test.go @@ -1,12 +1,15 @@ package resources import ( + "context" "testing" - "github.com/aws/aws-sdk-go/service/iam" "github.com/golang/mock/gomock" - "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/service/iam" + + "github.com/ekristen/aws-nuke/mocks/mock_iamiface" ) func Test_Mock_IAMSAMLProvider_Remove(t *testing.T) { @@ -25,6 +28,6 @@ func Test_Mock_IAMSAMLProvider_Remove(t *testing.T) { SAMLProviderArn: &iamSAMLProvider.arn, })).Return(&iam.DeleteSAMLProviderOutput{}, nil) - err := iamSAMLProvider.Remove() + err := iamSAMLProvider.Remove(context.TODO()) a.Nil(err) } diff --git a/resources/iam-server-certificate.go b/resources/iam-server-certificate.go index 9206f2a2..4889197c 100644 --- a/resources/iam-server-certificate.go +++ b/resources/iam-server-certificate.go @@ -1,29 +1,39 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type IAMServerCertificate struct { - svc iamiface.IAMAPI - name string -} +const IAMServerCertificateResource = "IAMServerCertificate" func init() { - register("IAMServerCertificate", ListIAMServerCertificates) + resource.Register(resource.Registration{ + Name: IAMServerCertificateResource, + Scope: nuke.Account, + Lister: &IAMServerCertificateLister{}, + }) } -func ListIAMServerCertificates(sess *session.Session) ([]Resource, error) { - svc := iam.New(sess) +type IAMServerCertificateLister struct{} + +func (l *IAMServerCertificateLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := iam.New(opts.Session) resp, err := svc.ListServerCertificates(nil) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, meta := range resp.ServerCertificateMetadataList { resources = append(resources, &IAMServerCertificate{ svc: svc, @@ -34,7 +44,12 @@ func ListIAMServerCertificates(sess *session.Session) ([]Resource, error) { return resources, nil } -func (e *IAMServerCertificate) Remove() error { +type IAMServerCertificate struct { + svc iamiface.IAMAPI + name string +} + +func (e *IAMServerCertificate) Remove(_ context.Context) error { _, err := e.svc.DeleteServerCertificate(&iam.DeleteServerCertificateInput{ ServerCertificateName: &e.name, }) diff --git a/resources/iam-server-certificate_mock_test.go b/resources/iam-server-certificate_mock_test.go index 452a6989..ae35a6cb 100644 --- a/resources/iam-server-certificate_mock_test.go +++ b/resources/iam-server-certificate_mock_test.go @@ -1,12 +1,15 @@ package resources import ( + "context" "testing" - "github.com/aws/aws-sdk-go/service/iam" "github.com/golang/mock/gomock" - "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/service/iam" + + "github.com/ekristen/aws-nuke/mocks/mock_iamiface" ) func Test_Mock_IAMServerCertificate_Remove(t *testing.T) { @@ -25,6 +28,6 @@ func Test_Mock_IAMServerCertificate_Remove(t *testing.T) { ServerCertificateName: &iamServerCertificate.name, })).Return(&iam.DeleteServerCertificateOutput{}, nil) - err := iamServerCertificate.Remove() + err := iamServerCertificate.Remove(context.TODO()) a.Nil(err) } diff --git a/resources/iam-service-specific-credentials.go b/resources/iam-service-specific-credentials.go index 14b52f29..28eeddb6 100644 --- a/resources/iam-service-specific-credentials.go +++ b/resources/iam-service-specific-credentials.go @@ -1,34 +1,43 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + + "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" - "github.com/sirupsen/logrus" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type IAMServiceSpecificCredential struct { - svc iamiface.IAMAPI - name string - serviceName string - id string - userName string -} +const IAMServiceSpecificCredentialResource = "IAMServiceSpecificCredential" func init() { - register("IAMServiceSpecificCredential", ListServiceSpecificCredentials) + resource.Register(resource.Registration{ + Name: IAMServiceSpecificCredentialResource, + Scope: nuke.Account, + Lister: &IAMServiceSpecificCredentialLister{}, + }) } -func ListServiceSpecificCredentials(sess *session.Session) ([]Resource, error) { - svc := iam.New(sess) +type IAMServiceSpecificCredentialLister struct{} + +func (l *IAMServiceSpecificCredentialLister) List(ctx context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := iam.New(opts.Session) - users, usersErr := ListIAMUsers(sess) + userLister := &IAMUsersLister{} + users, usersErr := userLister.List(ctx, o) if usersErr != nil { return nil, usersErr } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, userResource := range users { user, ok := userResource.(*IAMUser) if !ok { @@ -57,7 +66,15 @@ func ListServiceSpecificCredentials(sess *session.Session) ([]Resource, error) { return resources, nil } -func (e *IAMServiceSpecificCredential) Remove() error { +type IAMServiceSpecificCredential struct { + svc iamiface.IAMAPI + name string + serviceName string + id string + userName string +} + +func (e *IAMServiceSpecificCredential) Remove(_ context.Context) error { params := &iam.DeleteServiceSpecificCredentialInput{ ServiceSpecificCredentialId: &e.id, UserName: &e.userName, diff --git a/resources/iam-service-specific-credentials_mock_test.go b/resources/iam-service-specific-credentials_mock_test.go index 3b6415cc..83276c84 100644 --- a/resources/iam-service-specific-credentials_mock_test.go +++ b/resources/iam-service-specific-credentials_mock_test.go @@ -1,13 +1,16 @@ package resources import ( + "context" "testing" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/iam" "github.com/golang/mock/gomock" - "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + + "github.com/ekristen/aws-nuke/mocks/mock_iamiface" ) func Test_Mock_IAMServiceSpecificCredential_Remove(t *testing.T) { @@ -30,6 +33,6 @@ func Test_Mock_IAMServiceSpecificCredential_Remove(t *testing.T) { ServiceSpecificCredentialId: aws.String(iamServiceSpecificCredential.id), })).Return(&iam.DeleteServiceSpecificCredentialOutput{}, nil) - err := iamServiceSpecificCredential.Remove() + err := iamServiceSpecificCredential.Remove(context.TODO()) a.Nil(err) } diff --git a/resources/iam-signing-certificates.go b/resources/iam-signing-certificate.go similarity index 64% rename from resources/iam-signing-certificates.go rename to resources/iam-signing-certificate.go index 72b957b7..750fe58a 100644 --- a/resources/iam-signing-certificates.go +++ b/resources/iam-signing-certificate.go @@ -1,29 +1,39 @@ package resources import ( + "context" + "fmt" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type IAMSigningCertificate struct { - svc iamiface.IAMAPI - certificateId *string - userName *string - status *string -} +const IAMSigningCertificateResource = "IAMSigningCertificate" func init() { - register("IAMSigningCertificate", ListIAMSigningCertificates) + resource.Register(resource.Registration{ + Name: IAMSigningCertificateResource, + Scope: nuke.Account, + Lister: &IAMSigningCertificateLister{}, + }) } -func ListIAMSigningCertificates(sess *session.Session) ([]Resource, error) { - svc := iam.New(sess) - resources := []Resource{} +type IAMSigningCertificateLister struct{} + +func (l *IAMSigningCertificateLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := iam.New(opts.Session) + var resources []resource.Resource params := &iam.ListUsersInput{ MaxItems: aws.Int64(100), @@ -63,7 +73,14 @@ func ListIAMSigningCertificates(sess *session.Session) ([]Resource, error) { return resources, nil } -func (i *IAMSigningCertificate) Remove() error { +type IAMSigningCertificate struct { + svc iamiface.IAMAPI + certificateId *string + userName *string + status *string +} + +func (i *IAMSigningCertificate) Remove(_ context.Context) error { _, err := i.svc.DeleteSigningCertificate(&iam.DeleteSigningCertificateInput{ CertificateId: i.certificateId, UserName: i.userName, @@ -79,5 +96,5 @@ func (i *IAMSigningCertificate) Properties() types.Properties { } func (i *IAMSigningCertificate) String() string { - return fmt.Sprintf("%s -> %s", *i.userName, *i.certificateId) + return fmt.Sprintf("%s -> %s", ptr.ToString(i.userName), ptr.ToString(i.certificateId)) } diff --git a/resources/iam-signing-certificate_mock_test.go b/resources/iam-signing-certificate_mock_test.go index 0d0672be..d5c7595a 100644 --- a/resources/iam-signing-certificate_mock_test.go +++ b/resources/iam-signing-certificate_mock_test.go @@ -1,13 +1,16 @@ package resources import ( + "context" "testing" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/iam" "github.com/golang/mock/gomock" - "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + + "github.com/ekristen/aws-nuke/mocks/mock_iamiface" ) func Test_Mock_IAMSigningCertificate_Remove(t *testing.T) { @@ -29,6 +32,6 @@ func Test_Mock_IAMSigningCertificate_Remove(t *testing.T) { CertificateId: iamSigningCertificate.certificateId, })).Return(&iam.DeleteSigningCertificateOutput{}, nil) - err := iamSigningCertificate.Remove() + err := iamSigningCertificate.Remove(context.TODO()) a.Nil(err) } diff --git a/resources/iam-user-access-keys.go b/resources/iam-user-access-key.go similarity index 69% rename from resources/iam-user-access-keys.go rename to resources/iam-user-access-key.go index daf30290..95fe2cca 100644 --- a/resources/iam-user-access-keys.go +++ b/resources/iam-user-access-key.go @@ -1,14 +1,29 @@ package resources import ( + "context" + "fmt" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const IAMUserAccessKeyResource = "IAMUserAccessKey" + +func init() { + resource.Register(resource.Registration{ + Name: IAMUserAccessKeyResource, + Scope: nuke.Account, + Lister: &IAMUserAccessKeyLister{}, + }) +} + type IAMUserAccessKey struct { svc iamiface.IAMAPI accessKeyId string @@ -17,19 +32,49 @@ type IAMUserAccessKey struct { userTags []*iam.Tag } -func init() { - register("IAMUserAccessKey", ListIAMUserAccessKeys) +func (e *IAMUserAccessKey) Remove(_ context.Context) error { + _, err := e.svc.DeleteAccessKey( + &iam.DeleteAccessKeyInput{ + AccessKeyId: &e.accessKeyId, + UserName: &e.userName, + }) + if err != nil { + return err + } + + return nil +} + +func (e *IAMUserAccessKey) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("UserName", e.userName) + properties.Set("AccessKeyID", e.accessKeyId) + + for _, tag := range e.userTags { + properties.SetTag(tag.Key, tag.Value) + } + + return properties +} + +func (e *IAMUserAccessKey) String() string { + return fmt.Sprintf("%s -> %s", e.userName, e.accessKeyId) } -func ListIAMUserAccessKeys(sess *session.Session) ([]Resource, error) { - svc := iam.New(sess) +// -------------- + +type IAMUserAccessKeyLister struct{} + +func (l *IAMUserAccessKeyLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := iam.New(opts.Session) resp, err := svc.ListUsers(nil) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, role := range resp.Users { resp, err := svc.ListAccessKeys( &iam.ListAccessKeysInput{ @@ -57,32 +102,3 @@ func ListIAMUserAccessKeys(sess *session.Session) ([]Resource, error) { return resources, nil } - -func (e *IAMUserAccessKey) Remove() error { - _, err := e.svc.DeleteAccessKey( - &iam.DeleteAccessKeyInput{ - AccessKeyId: &e.accessKeyId, - UserName: &e.userName, - }) - if err != nil { - return err - } - - return nil -} - -func (e *IAMUserAccessKey) Properties() types.Properties { - properties := types.NewProperties() - properties.Set("UserName", e.userName) - properties.Set("AccessKeyID", e.accessKeyId) - - for _, tag := range e.userTags { - properties.SetTag(tag.Key, tag.Value) - } - - return properties -} - -func (e *IAMUserAccessKey) String() string { - return fmt.Sprintf("%s -> %s", e.userName, e.accessKeyId) -} diff --git a/resources/iam-user-access-key_mock_test.go b/resources/iam-user-access-key_mock_test.go index f6938bc1..659e01d5 100644 --- a/resources/iam-user-access-key_mock_test.go +++ b/resources/iam-user-access-key_mock_test.go @@ -1,13 +1,16 @@ package resources import ( + "context" "testing" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/iam" "github.com/golang/mock/gomock" - "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + + "github.com/ekristen/aws-nuke/mocks/mock_iamiface" ) func Test_Mock_IAMUserAccessKey_Remove(t *testing.T) { @@ -29,6 +32,6 @@ func Test_Mock_IAMUserAccessKey_Remove(t *testing.T) { UserName: aws.String(iamUserAccessKey.userName), })).Return(&iam.DeleteAccessKeyOutput{}, nil) - err := iamUserAccessKey.Remove() + err := iamUserAccessKey.Remove(context.TODO()) a.Nil(err) } diff --git a/resources/iam-user-group-attachments.go b/resources/iam-user-group-attachments.go index 10cabc63..5dca70e8 100644 --- a/resources/iam-user-group-attachments.go +++ b/resources/iam-user-group-attachments.go @@ -1,33 +1,72 @@ package resources import ( + "context" + "fmt" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const IAMUserGroupAttachmentResource = "IAMUserGroupAttachment" + +func init() { + resource.Register(resource.Registration{ + Name: IAMUserGroupAttachmentResource, + Scope: nuke.Account, + Lister: &IAMUserGroupAttachmentLister{}, + }) +} + type IAMUserGroupAttachment struct { svc iamiface.IAMAPI groupName string userName string } -func init() { - register("IAMUserGroupAttachment", ListIAMUserGroupAttachments) +func (e *IAMUserGroupAttachment) Remove(_ context.Context) error { + _, err := e.svc.RemoveUserFromGroup( + &iam.RemoveUserFromGroupInput{ + GroupName: &e.groupName, + UserName: &e.userName, + }) + if err != nil { + return err + } + + return nil +} + +func (e *IAMUserGroupAttachment) String() string { + return fmt.Sprintf("%s -> %s", e.userName, e.groupName) +} + +func (e *IAMUserGroupAttachment) Properties() types.Properties { + return types.NewProperties(). + Set("GroupName", e.groupName). + Set("UserName", e.userName) } -func ListIAMUserGroupAttachments(sess *session.Session) ([]Resource, error) { - svc := iam.New(sess) +// ------------------------------ + +type IAMUserGroupAttachmentLister struct{} + +func (l *IAMUserGroupAttachmentLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := iam.New(opts.Session) resp, err := svc.ListUsers(nil) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, role := range resp.Users { resp, err := svc.ListGroupsForUser( &iam.ListGroupsForUserInput{ @@ -48,26 +87,3 @@ func ListIAMUserGroupAttachments(sess *session.Session) ([]Resource, error) { return resources, nil } - -func (e *IAMUserGroupAttachment) Remove() error { - _, err := e.svc.RemoveUserFromGroup( - &iam.RemoveUserFromGroupInput{ - GroupName: &e.groupName, - UserName: &e.userName, - }) - if err != nil { - return err - } - - return nil -} - -func (e *IAMUserGroupAttachment) String() string { - return fmt.Sprintf("%s -> %s", e.userName, e.groupName) -} - -func (e *IAMUserGroupAttachment) Properties() types.Properties { - return types.NewProperties(). - Set("GroupName", e.groupName). - Set("UserName", e.userName) -} diff --git a/resources/iam-user-group-attachments_mock_test.go b/resources/iam-user-group-attachments_mock_test.go index 24d71d0d..06e7d592 100644 --- a/resources/iam-user-group-attachments_mock_test.go +++ b/resources/iam-user-group-attachments_mock_test.go @@ -1,13 +1,16 @@ package resources import ( + "context" "testing" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/iam" "github.com/golang/mock/gomock" - "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + + "github.com/ekristen/aws-nuke/mocks/mock_iamiface" ) func Test_Mock_IAMUserGroup_Remove(t *testing.T) { @@ -28,6 +31,6 @@ func Test_Mock_IAMUserGroup_Remove(t *testing.T) { GroupName: aws.String(iamUserGroup.groupName), })).Return(&iam.RemoveUserFromGroupOutput{}, nil) - err := iamUserGroup.Remove() + err := iamUserGroup.Remove(context.TODO()) a.Nil(err) } diff --git a/resources/iam-user-https-git-credential.go b/resources/iam-user-https-git-credential.go new file mode 100644 index 00000000..86299dd5 --- /dev/null +++ b/resources/iam-user-https-git-credential.go @@ -0,0 +1,106 @@ +package resources + +import ( + "context" + + "fmt" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + "github.com/aws/aws-sdk-go/service/iam/iamiface" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" +) + +const IAMUserHTTPSGitCredentialResource = "IAMUserHTTPSGitCredential" + +func init() { + resource.Register(resource.Registration{ + Name: IAMUserHTTPSGitCredentialResource, + Scope: nuke.Account, + Lister: &IAMUserHTTPSGitCredentialLister{}, + }) +} + +type IAMUserHTTPSGitCredential struct { + svc iamiface.IAMAPI + id string + userName string + status string + userTags []*iam.Tag +} + +func (e *IAMUserHTTPSGitCredential) Remove(_ context.Context) error { + _, err := e.svc.DeleteServiceSpecificCredential( + &iam.DeleteServiceSpecificCredentialInput{ + UserName: &e.userName, + ServiceSpecificCredentialId: &e.id, + }) + if err != nil { + return err + } + + return nil +} + +func (e *IAMUserHTTPSGitCredential) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("UserName", e.userName) + properties.Set("ServiceSpecificCredentialId", e.id) + + for _, tag := range e.userTags { + properties.SetTag(tag.Key, tag.Value) + } + + return properties +} + +func (e *IAMUserHTTPSGitCredential) String() string { + return fmt.Sprintf("%s -> %s", e.userName, e.id) +} + +// -------------- + +type IAMUserHTTPSGitCredentialLister struct{} + +func (l *IAMUserHTTPSGitCredentialLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := iam.New(opts.Session) + resp, err := svc.ListUsers(nil) + if err != nil { + return nil, err + } + + resources := make([]resource.Resource, 0) + for _, role := range resp.Users { + resp, err := svc.ListServiceSpecificCredentials( + &iam.ListServiceSpecificCredentialsInput{ + UserName: role.UserName, + ServiceName: aws.String("codecommit.amazonaws.com"), + }) + if err != nil { + return nil, err + } + + userTags, err := svc.ListUserTags(&iam.ListUserTagsInput{UserName: role.UserName}) + if err != nil { + return nil, err + } + + for _, meta := range resp.ServiceSpecificCredentials { + resources = append(resources, &IAMUserHTTPSGitCredential{ + svc: svc, + id: *meta.ServiceSpecificCredentialId, + userName: *meta.UserName, + status: *meta.Status, + userTags: userTags.Tags, + }) + } + } + + return resources, nil +} diff --git a/resources/iam-user-policy-attachments.go b/resources/iam-user-policy-attachment.go similarity index 69% rename from resources/iam-user-policy-attachments.go rename to resources/iam-user-policy-attachment.go index ad0528d0..e3ed0d0e 100644 --- a/resources/iam-user-policy-attachments.go +++ b/resources/iam-user-policy-attachment.go @@ -1,15 +1,31 @@ package resources import ( + "context" + "fmt" + "github.com/sirupsen/logrus" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const IAMUserPolicyAttachmentResource = "IAMUserPolicyAttachment" + +func init() { + resource.Register(resource.Registration{ + Name: IAMUserPolicyAttachmentResource, + Scope: nuke.Account, + Lister: &IAMUserPolicyAttachmentLister{}, + }) +} + type IAMUserPolicyAttachment struct { svc iamiface.IAMAPI policyArn string @@ -18,19 +34,49 @@ type IAMUserPolicyAttachment struct { userTags []*iam.Tag } -func init() { - register("IAMUserPolicyAttachment", ListIAMUserPolicyAttachments) +func (e *IAMUserPolicyAttachment) Remove(_ context.Context) error { + _, err := e.svc.DetachUserPolicy( + &iam.DetachUserPolicyInput{ + PolicyArn: &e.policyArn, + UserName: &e.userName, + }) + if err != nil { + return err + } + + return nil +} + +func (e *IAMUserPolicyAttachment) Properties() types.Properties { + properties := types.NewProperties(). + Set("PolicyArn", e.policyArn). + Set("PolicyName", e.policyName). + Set("UserName", e.userName) + for _, tag := range e.userTags { + properties.SetTagWithPrefix("user", tag.Key, tag.Value) + } + return properties +} + +func (e *IAMUserPolicyAttachment) String() string { + return fmt.Sprintf("%s -> %s", e.userName, e.policyName) } -func ListIAMUserPolicyAttachments(sess *session.Session) ([]Resource, error) { - svc := iam.New(sess) +// ------------------------------- + +type IAMUserPolicyAttachmentLister struct{} + +func (l *IAMUserPolicyAttachmentLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := iam.New(opts.Session) resp, err := svc.ListUsers(nil) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, user := range resp.Users { iamUser, err := GetIAMUser(svc, user.UserName) if err != nil { @@ -59,31 +105,3 @@ func ListIAMUserPolicyAttachments(sess *session.Session) ([]Resource, error) { return resources, nil } - -func (e *IAMUserPolicyAttachment) Remove() error { - _, err := e.svc.DetachUserPolicy( - &iam.DetachUserPolicyInput{ - PolicyArn: &e.policyArn, - UserName: &e.userName, - }) - if err != nil { - return err - } - - return nil -} - -func (e *IAMUserPolicyAttachment) Properties() types.Properties { - properties := types.NewProperties(). - Set("PolicyArn", e.policyArn). - Set("PolicyName", e.policyName). - Set("UserName", e.userName) - for _, tag := range e.userTags { - properties.SetTagWithPrefix("user", tag.Key, tag.Value) - } - return properties -} - -func (e *IAMUserPolicyAttachment) String() string { - return fmt.Sprintf("%s -> %s", e.userName, e.policyName) -} diff --git a/resources/iam-user-policy-attachment_mock_test.go b/resources/iam-user-policy-attachment_mock_test.go index 946cda33..c4014005 100644 --- a/resources/iam-user-policy-attachment_mock_test.go +++ b/resources/iam-user-policy-attachment_mock_test.go @@ -1,13 +1,17 @@ package resources import ( + "context" + "testing" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/iam" "github.com/golang/mock/gomock" - "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + + "github.com/ekristen/aws-nuke/mocks/mock_iamiface" ) func Test_Mock_IAMUserPolicyAttachment_Remove(t *testing.T) { @@ -29,6 +33,6 @@ func Test_Mock_IAMUserPolicyAttachment_Remove(t *testing.T) { PolicyArn: aws.String(iamUserPolicyAttachment.policyArn), })).Return(&iam.DetachUserPolicyOutput{}, nil) - err := iamUserPolicyAttachment.Remove() + err := iamUserPolicyAttachment.Remove(context.TODO()) a.Nil(err) } diff --git a/resources/iam-user-policy.go b/resources/iam-user-policy.go index a2b2f43c..c1748b27 100644 --- a/resources/iam-user-policy.go +++ b/resources/iam-user-policy.go @@ -1,32 +1,66 @@ package resources import ( + "context" + "fmt" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const IAMUserPolicyResource = "IAMUserPolicy" + +func init() { + resource.Register(resource.Registration{ + Name: IAMUserPolicyResource, + Scope: nuke.Account, + Lister: &IAMUserPolicyLister{}, + }) +} + type IAMUserPolicy struct { svc iamiface.IAMAPI userName string policyName string } -func init() { - register("IAMUserPolicy", ListIAMUserPolicies) +func (e *IAMUserPolicy) Remove(_ context.Context) error { + _, err := e.svc.DeleteUserPolicy( + &iam.DeleteUserPolicyInput{ + UserName: &e.userName, + PolicyName: &e.policyName, + }) + if err != nil { + return err + } + + return nil } -func ListIAMUserPolicies(sess *session.Session) ([]Resource, error) { - svc := iam.New(sess) +func (e *IAMUserPolicy) String() string { + return fmt.Sprintf("%s -> %s", e.userName, e.policyName) +} + +// ---------------- + +type IAMUserPolicyLister struct{} + +func (l *IAMUserPolicyLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := iam.New(opts.Session) users, err := svc.ListUsers(nil) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, user := range users.Users { policies, err := svc.ListUserPolicies(&iam.ListUserPoliciesInput{ UserName: user.UserName, @@ -46,20 +80,3 @@ func ListIAMUserPolicies(sess *session.Session) ([]Resource, error) { return resources, nil } - -func (e *IAMUserPolicy) Remove() error { - _, err := e.svc.DeleteUserPolicy( - &iam.DeleteUserPolicyInput{ - UserName: &e.userName, - PolicyName: &e.policyName, - }) - if err != nil { - return err - } - - return nil -} - -func (e *IAMUserPolicy) String() string { - return fmt.Sprintf("%s -> %s", e.userName, e.policyName) -} diff --git a/resources/iam-user-policy_mock_test.go b/resources/iam-user-policy_mock_test.go index 6a77afa6..302ebbe3 100644 --- a/resources/iam-user-policy_mock_test.go +++ b/resources/iam-user-policy_mock_test.go @@ -1,13 +1,16 @@ package resources import ( + "context" "testing" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/iam" "github.com/golang/mock/gomock" - "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + + "github.com/ekristen/aws-nuke/mocks/mock_iamiface" ) func Test_Mock_IAMUserPolicy_Remove(t *testing.T) { @@ -28,6 +31,6 @@ func Test_Mock_IAMUserPolicy_Remove(t *testing.T) { PolicyName: aws.String(iamUserPolicy.policyName), })).Return(&iam.DeleteUserPolicyOutput{}, nil) - err := iamUserPolicy.Remove() + err := iamUserPolicy.Remove(context.TODO()) a.Nil(err) } diff --git a/resources/iam-user-ssh-keys.go b/resources/iam-user-ssh-keys.go index 2327d507..b78242e7 100644 --- a/resources/iam-user-ssh-keys.go +++ b/resources/iam-user-ssh-keys.go @@ -1,33 +1,41 @@ package resources import ( + "context" + "fmt" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type IAMUserSSHKey struct { - svc iamiface.IAMAPI - userName string - sshKeyID string -} +const IAMUserSSHPublicKeyResource = "IAMUserSSHPublicKey" func init() { - register("IAMUserSSHPublicKey", ListIAMUserSSHPublicKeys) + resource.Register(resource.Registration{ + Name: IAMUserSSHPublicKeyResource, + Scope: nuke.Account, + Lister: &IAMUserSSHPublicKeyLister{}, + }) } -func ListIAMUserSSHPublicKeys(sess *session.Session) ([]Resource, error) { - svc := iam.New(sess) +type IAMUserSSHPublicKeyLister struct{} + +func (l *IAMUserSSHPublicKeyLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := iam.New(opts.Session) usersOutput, err := svc.ListUsers(nil) if err != nil { return nil, err } - var resources []Resource + var resources []resource.Resource for _, user := range usersOutput.Users { listOutput, err := svc.ListSSHPublicKeys(&iam.ListSSHPublicKeysInput{ UserName: user.UserName, @@ -49,6 +57,12 @@ func ListIAMUserSSHPublicKeys(sess *session.Session) ([]Resource, error) { return resources, nil } +type IAMUserSSHKey struct { + svc iamiface.IAMAPI + userName string + sshKeyID string +} + func (u *IAMUserSSHKey) Properties() types.Properties { return types.NewProperties(). Set("UserName", u.userName). @@ -59,7 +73,7 @@ func (u *IAMUserSSHKey) String() string { return fmt.Sprintf("%s -> %s", u.userName, u.sshKeyID) } -func (u *IAMUserSSHKey) Remove() error { +func (u *IAMUserSSHKey) Remove(_ context.Context) error { _, err := u.svc.DeleteSSHPublicKey(&iam.DeleteSSHPublicKeyInput{ UserName: &u.userName, SSHPublicKeyId: &u.sshKeyID, diff --git a/resources/iam-user-ssh-keys_mock_test.go b/resources/iam-user-ssh-keys_mock_test.go index 4bcb7e18..4af5b6ea 100644 --- a/resources/iam-user-ssh-keys_mock_test.go +++ b/resources/iam-user-ssh-keys_mock_test.go @@ -1,13 +1,16 @@ package resources import ( + "context" "testing" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/iam" "github.com/golang/mock/gomock" - "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + + "github.com/ekristen/aws-nuke/mocks/mock_iamiface" ) func Test_Mock_IAMUserSSHKeys_Remove(t *testing.T) { @@ -28,6 +31,6 @@ func Test_Mock_IAMUserSSHKeys_Remove(t *testing.T) { SSHPublicKeyId: aws.String(iamUserSSHKey.sshKeyID), })).Return(&iam.DeleteSSHPublicKeyOutput{}, nil) - err := iamUserSSHKey.Remove() + err := iamUserSSHKey.Remove(context.TODO()) a.Nil(err) } diff --git a/resources/iam-users.go b/resources/iam-users.go index 959b1443..94015bde 100644 --- a/resources/iam-users.go +++ b/resources/iam-users.go @@ -1,23 +1,70 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + + "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" - "github.com/sirupsen/logrus" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const IAMUserResource = "IAMUser" + +func init() { + resource.Register(resource.Registration{ + Name: IAMUserResource, + Scope: nuke.Account, + Lister: &IAMUsersLister{}, + DependsOn: []string{ + IAMUserAccessKeyResource, + IAMUserHTTPSGitCredentialResource, + IAMUserGroupAttachmentResource, + IAMUserPolicyAttachmentResource, + IAMVirtualMFADeviceResource, + }, + }) +} + type IAMUser struct { svc iamiface.IAMAPI name string tags []*iam.Tag } -func init() { - register("IAMUser", ListIAMUsers) +func (e *IAMUser) Remove(_ context.Context) error { + _, err := e.svc.DeleteUser(&iam.DeleteUserInput{ + UserName: &e.name, + }) + if err != nil { + return err + } + + return nil +} + +func (e *IAMUser) String() string { + return e.name +} + +func (e *IAMUser) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("Name", e.name) + + for _, tag := range e.tags { + properties.SetTag(tag.Key, tag.Value) + } + + return properties } +// -------------- + func GetIAMUser(svc *iam.IAM, userName *string) (*iam.User, error) { params := &iam.GetUserInput{ UserName: userName, @@ -26,11 +73,17 @@ func GetIAMUser(svc *iam.IAM, userName *string) (*iam.User, error) { return resp.User, err } -func ListIAMUsers(sess *session.Session) ([]Resource, error) { - svc := iam.New(sess) - var resources []Resource +// -------------- + +type IAMUsersLister struct{} + +func (l *IAMUsersLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := iam.New(opts.Session) - err := svc.ListUsersPages(nil, func(page *iam.ListUsersOutput, lastPage bool) bool { + var resources []resource.Resource + + if err := svc.ListUsersPages(nil, func(page *iam.ListUsersOutput, lastPage bool) bool { for _, out := range page.Users { user, err := GetIAMUser(svc, out.UserName) if err != nil { @@ -44,36 +97,9 @@ func ListIAMUsers(sess *session.Session) ([]Resource, error) { }) } return true - }) - if err != nil { + }); err != nil { return nil, err } return resources, nil } - -func (e *IAMUser) Remove() error { - _, err := e.svc.DeleteUser(&iam.DeleteUserInput{ - UserName: &e.name, - }) - if err != nil { - return err - } - - return nil -} - -func (e *IAMUser) String() string { - return e.name -} - -func (e *IAMUser) Properties() types.Properties { - properties := types.NewProperties() - properties.Set("Name", e.name) - - for _, tag := range e.tags { - properties.SetTag(tag.Key, tag.Value) - } - - return properties -} diff --git a/resources/iam-users_mock_test.go b/resources/iam-users_mock_test.go index 1f60a47b..6652c9bf 100644 --- a/resources/iam-users_mock_test.go +++ b/resources/iam-users_mock_test.go @@ -1,13 +1,17 @@ package resources import ( + "context" + "testing" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/iam" "github.com/golang/mock/gomock" - "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + + "github.com/ekristen/aws-nuke/mocks/mock_iamiface" ) func Test_Mock_IAMUser_Remove(t *testing.T) { @@ -26,6 +30,6 @@ func Test_Mock_IAMUser_Remove(t *testing.T) { UserName: aws.String(iamUser.name), })).Return(&iam.DeleteUserOutput{}, nil) - err := iamUser.Remove() + err := iamUser.Remove(context.TODO()) a.Nil(err) } diff --git a/resources/iam-users_test.go b/resources/iam-users_test.go new file mode 100644 index 00000000..d159851c --- /dev/null +++ b/resources/iam-users_test.go @@ -0,0 +1,52 @@ +//go:build integration + +package resources + +import ( + "context" + "errors" + "testing" + + "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/iam" +) + +func Test_IAMUser_Remove(t *testing.T) { + sess := session.Must(session.NewSession()) + svc := iam.New(sess) + + createInput := &iam.CreateUserInput{ + UserName: aws.String("test-user"), + Tags: []*iam.Tag{ + { + Key: aws.String("test-key"), + Value: aws.String("test-value"), + }, + }, + } + out, err := svc.CreateUser(createInput) + + assert.NoError(t, err) + assert.Equal(t, "test-user", *out.User.UserName) + + iamUser := IAMUser{ + svc: svc, + name: "test-user", + tags: createInput.Tags, + } + + removeError := iamUser.Remove(context.TODO()) + assert.NoError(t, removeError) + + _, err = svc.GetUser(&iam.GetUserInput{ + UserName: aws.String("test-user"), + }) + var awsError awserr.Error + if errors.As(err, &awsError) { + assert.Equal(t, "NoSuchEntity", awsError.Code()) + } +} diff --git a/resources/iam-virtual-mfa-devices.go b/resources/iam-virtual-mfa-devices.go index e5546064..0c4b11e4 100644 --- a/resources/iam-virtual-mfa-devices.go +++ b/resources/iam-virtual-mfa-devices.go @@ -1,38 +1,45 @@ package resources import ( + "context" + "errors" "fmt" - "github.com/aws/smithy-go/ptr" "strings" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" + + "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/libnuke/pkg/resource" ) -type IAMVirtualMFADevice struct { - svc iamiface.IAMAPI - userId *string - userArn *string - userName string - serialNumber string -} +const IAMVirtualMFADeviceResource = "IAMVirtualMFADevice" func init() { - register("IAMVirtualMFADevice", ListIAMVirtualMFADevices) + resource.Register(resource.Registration{ + Name: IAMVirtualMFADeviceResource, + Scope: nuke.Account, + Lister: &IAMVirtualMFADeviceLister{}, + }) } -func ListIAMVirtualMFADevices(sess *session.Session) ([]Resource, error) { - svc := iam.New(sess) +type IAMVirtualMFADeviceLister struct{} + +func (l *IAMVirtualMFADeviceLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := iam.New(opts.Session) resp, err := svc.ListVirtualMFADevices(&iam.ListVirtualMFADevicesInput{}) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, out := range resp.VirtualMFADevices { resources = append(resources, &IAMVirtualMFADevice{ svc: svc, @@ -46,6 +53,14 @@ func ListIAMVirtualMFADevices(sess *session.Session) ([]Resource, error) { return resources, nil } +type IAMVirtualMFADevice struct { + svc iamiface.IAMAPI + userId *string + userArn *string + userName string + serialNumber string +} + func (v *IAMVirtualMFADevice) Filter() error { isRoot := false if ptr.ToString(v.userArn) == fmt.Sprintf("arn:aws:iam::%s:root", ptr.ToString(v.userId)) { @@ -62,7 +77,7 @@ func (v *IAMVirtualMFADevice) Filter() error { return nil } -func (v *IAMVirtualMFADevice) Remove() error { +func (v *IAMVirtualMFADevice) Remove(_ context.Context) error { if _, err := v.svc.DeactivateMFADevice(&iam.DeactivateMFADeviceInput{ UserName: aws.String(v.userName), SerialNumber: aws.String(v.serialNumber), diff --git a/resources/iam-virtual-mfa-devices_mock_test.go b/resources/iam-virtual-mfa-devices_mock_test.go index 4641bf82..a7797f23 100644 --- a/resources/iam-virtual-mfa-devices_mock_test.go +++ b/resources/iam-virtual-mfa-devices_mock_test.go @@ -1,13 +1,16 @@ package resources import ( + "context" "testing" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/iam" "github.com/golang/mock/gomock" - "github.com/rebuy-de/aws-nuke/v2/mocks/mock_iamiface" "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/iam" + + "github.com/ekristen/aws-nuke/mocks/mock_iamiface" ) func Test_Mock_IAMVirtualMFADevice_Remove(t *testing.T) { @@ -32,6 +35,6 @@ func Test_Mock_IAMVirtualMFADevice_Remove(t *testing.T) { SerialNumber: aws.String(iamVirtualMFADevice.serialNumber), })).Return(&iam.DeleteVirtualMFADeviceOutput{}, nil) - err := iamVirtualMFADevice.Remove() + err := iamVirtualMFADevice.Remove(context.TODO()) a.Nil(err) } diff --git a/resources/imagebuilder-components.go b/resources/imagebuilder-components.go index 36a21491..7c357c91 100644 --- a/resources/imagebuilder-components.go +++ b/resources/imagebuilder-components.go @@ -1,24 +1,34 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/imagebuilder" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ImageBuilderComponent struct { - svc *imagebuilder.Imagebuilder - arn string -} +const ImageBuilderComponentResource = "ImageBuilderComponent" func init() { - register("ImageBuilderComponent", ListImageBuilderComponents) + resource.Register(resource.Registration{ + Name: ImageBuilderComponentResource, + Scope: nuke.Account, + Lister: &ImageBuilderComponentLister{}, + }) } -func ListImageBuilderComponents(sess *session.Session) ([]Resource, error) { - svc := imagebuilder.New(sess) +type ImageBuilderComponentLister struct{} + +func (l *ImageBuilderComponentLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := imagebuilder.New(opts.Session) params := &imagebuilder.ListComponentsInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { resp, err := svc.ListComponents(params) @@ -45,7 +55,7 @@ func ListImageBuilderComponents(sess *session.Session) ([]Resource, error) { return resources, nil } -func ListImageBuilderComponentVersions(svc *imagebuilder.Imagebuilder, componentVersionArn *string, resources []Resource) ([]Resource, error) { +func ListImageBuilderComponentVersions(svc *imagebuilder.Imagebuilder, componentVersionArn *string, resources []resource.Resource) ([]resource.Resource, error) { params := &imagebuilder.ListComponentBuildVersionsInput{ ComponentVersionArn: componentVersionArn, } @@ -75,7 +85,12 @@ func ListImageBuilderComponentVersions(svc *imagebuilder.Imagebuilder, component return resources, nil } -func (e *ImageBuilderComponent) Remove() error { +type ImageBuilderComponent struct { + svc *imagebuilder.Imagebuilder + arn string +} + +func (e *ImageBuilderComponent) Remove(_ context.Context) error { _, err := e.svc.DeleteComponent(&imagebuilder.DeleteComponentInput{ ComponentBuildVersionArn: &e.arn, }) diff --git a/resources/imagebuilder-distribution-configurations.go b/resources/imagebuilder-distribution-configurations.go index 154001ba..d7c537dc 100644 --- a/resources/imagebuilder-distribution-configurations.go +++ b/resources/imagebuilder-distribution-configurations.go @@ -1,24 +1,34 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/imagebuilder" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ImageBuilderDistributionConfiguration struct { - svc *imagebuilder.Imagebuilder - arn string -} +const ImageBuilderDistributionConfigurationResource = "ImageBuilderDistributionConfiguration" func init() { - register("ImageBuilderDistributionConfiguration", ListImageBuilderDistributionConfigurations) + resource.Register(resource.Registration{ + Name: ImageBuilderDistributionConfigurationResource, + Scope: nuke.Account, + Lister: &ImageBuilderDistributionConfigurationLister{}, + }) } -func ListImageBuilderDistributionConfigurations(sess *session.Session) ([]Resource, error) { - svc := imagebuilder.New(sess) +type ImageBuilderDistributionConfigurationLister struct{} + +func (l *ImageBuilderDistributionConfigurationLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := imagebuilder.New(opts.Session) params := &imagebuilder.ListDistributionConfigurationsInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { resp, err := svc.ListDistributionConfigurations(params) @@ -45,7 +55,12 @@ func ListImageBuilderDistributionConfigurations(sess *session.Session) ([]Resour return resources, nil } -func (e *ImageBuilderDistributionConfiguration) Remove() error { +type ImageBuilderDistributionConfiguration struct { + svc *imagebuilder.Imagebuilder + arn string +} + +func (e *ImageBuilderDistributionConfiguration) Remove(_ context.Context) error { _, err := e.svc.DeleteDistributionConfiguration(&imagebuilder.DeleteDistributionConfigurationInput{ DistributionConfigurationArn: &e.arn, }) diff --git a/resources/imagebuilder-images.go b/resources/imagebuilder-images.go index 7c1c1015..afddc5e0 100644 --- a/resources/imagebuilder-images.go +++ b/resources/imagebuilder-images.go @@ -1,24 +1,34 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/imagebuilder" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ImageBuilderImage struct { - svc *imagebuilder.Imagebuilder - arn string -} +const ImageBuilderImageResource = "ImageBuilderImage" func init() { - register("ImageBuilderImage", ListImageBuilderImages) + resource.Register(resource.Registration{ + Name: ImageBuilderImageResource, + Scope: nuke.Account, + Lister: &ImageBuilderImageLister{}, + }) } -func ListImageBuilderImages(sess *session.Session) ([]Resource, error) { - svc := imagebuilder.New(sess) +type ImageBuilderImageLister struct{} + +func (l *ImageBuilderImageLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := imagebuilder.New(opts.Session) params := &imagebuilder.ListImagesInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { resp, err := svc.ListImages(params) @@ -45,7 +55,7 @@ func ListImageBuilderImages(sess *session.Session) ([]Resource, error) { return resources, nil } -func ImageBuildVersions(svc *imagebuilder.Imagebuilder, imageVersionArn *string, resources []Resource) ([]Resource, error) { +func ImageBuildVersions(svc *imagebuilder.Imagebuilder, imageVersionArn *string, resources []resource.Resource) ([]resource.Resource, error) { params := &imagebuilder.ListImageBuildVersionsInput{ ImageVersionArn: imageVersionArn, } @@ -75,7 +85,12 @@ func ImageBuildVersions(svc *imagebuilder.Imagebuilder, imageVersionArn *string, return resources, nil } -func (e *ImageBuilderImage) Remove() error { +type ImageBuilderImage struct { + svc *imagebuilder.Imagebuilder + arn string +} + +func (e *ImageBuilderImage) Remove(_ context.Context) error { _, err := e.svc.DeleteImage(&imagebuilder.DeleteImageInput{ ImageBuildVersionArn: &e.arn, }) diff --git a/resources/imagebuilder-infrastructure-configurations.go b/resources/imagebuilder-infrastructure-configurations.go index aed1defa..27bce7a7 100644 --- a/resources/imagebuilder-infrastructure-configurations.go +++ b/resources/imagebuilder-infrastructure-configurations.go @@ -1,24 +1,34 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/imagebuilder" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ImageBuilderInfrastructureConfiguration struct { - svc *imagebuilder.Imagebuilder - arn string -} +const ImageBuilderInfrastructureConfigurationResource = "ImageBuilderInfrastructureConfiguration" func init() { - register("ImageBuilderInfrastructureConfiguration", ListImageBuilderInfrastructureConfigurations) + resource.Register(resource.Registration{ + Name: ImageBuilderInfrastructureConfigurationResource, + Scope: nuke.Account, + Lister: &ImageBuilderInfrastructureConfigurationLister{}, + }) } -func ListImageBuilderInfrastructureConfigurations(sess *session.Session) ([]Resource, error) { - svc := imagebuilder.New(sess) +type ImageBuilderInfrastructureConfigurationLister struct{} + +func (l *ImageBuilderInfrastructureConfigurationLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := imagebuilder.New(opts.Session) params := &imagebuilder.ListInfrastructureConfigurationsInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { resp, err := svc.ListInfrastructureConfigurations(params) @@ -45,7 +55,12 @@ func ListImageBuilderInfrastructureConfigurations(sess *session.Session) ([]Reso return resources, nil } -func (e *ImageBuilderInfrastructureConfiguration) Remove() error { +type ImageBuilderInfrastructureConfiguration struct { + svc *imagebuilder.Imagebuilder + arn string +} + +func (e *ImageBuilderInfrastructureConfiguration) Remove(_ context.Context) error { _, err := e.svc.DeleteInfrastructureConfiguration(&imagebuilder.DeleteInfrastructureConfigurationInput{ InfrastructureConfigurationArn: &e.arn, }) diff --git a/resources/imagebuilder-pipelines.go b/resources/imagebuilder-pipelines.go index 0492242d..ac895617 100644 --- a/resources/imagebuilder-pipelines.go +++ b/resources/imagebuilder-pipelines.go @@ -1,24 +1,34 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/imagebuilder" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ImageBuilderPipeline struct { - svc *imagebuilder.Imagebuilder - arn string -} +const ImageBuilderPipelineResource = "ImageBuilderPipeline" func init() { - register("ImageBuilderPipeline", ListImageBuilderPipelines) + resource.Register(resource.Registration{ + Name: ImageBuilderPipelineResource, + Scope: nuke.Account, + Lister: &ImageBuilderPipelineLister{}, + }) } -func ListImageBuilderPipelines(sess *session.Session) ([]Resource, error) { - svc := imagebuilder.New(sess) +type ImageBuilderPipelineLister struct{} + +func (l *ImageBuilderPipelineLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := imagebuilder.New(opts.Session) params := &imagebuilder.ListImagePipelinesInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { resp, err := svc.ListImagePipelines(params) @@ -45,7 +55,12 @@ func ListImageBuilderPipelines(sess *session.Session) ([]Resource, error) { return resources, nil } -func (e *ImageBuilderPipeline) Remove() error { +type ImageBuilderPipeline struct { + svc *imagebuilder.Imagebuilder + arn string +} + +func (e *ImageBuilderPipeline) Remove(_ context.Context) error { _, err := e.svc.DeleteImagePipeline(&imagebuilder.DeleteImagePipelineInput{ ImagePipelineArn: &e.arn, }) diff --git a/resources/imagebuilder-recipes.go b/resources/imagebuilder-recipes.go index 536470c2..5a191ed8 100644 --- a/resources/imagebuilder-recipes.go +++ b/resources/imagebuilder-recipes.go @@ -1,24 +1,34 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/imagebuilder" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ImageBuilderRecipe struct { - svc *imagebuilder.Imagebuilder - arn string -} +const ImageBuilderRecipeResource = "ImageBuilderRecipe" func init() { - register("ImageBuilderRecipe", ListImageBuilderRecipes) + resource.Register(resource.Registration{ + Name: ImageBuilderRecipeResource, + Scope: nuke.Account, + Lister: &ImageBuilderRecipeLister{}, + }) } -func ListImageBuilderRecipes(sess *session.Session) ([]Resource, error) { - svc := imagebuilder.New(sess) +type ImageBuilderRecipeLister struct{} + +func (l *ImageBuilderRecipeLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := imagebuilder.New(opts.Session) params := &imagebuilder.ListImageRecipesInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { resp, err := svc.ListImageRecipes(params) @@ -45,7 +55,12 @@ func ListImageBuilderRecipes(sess *session.Session) ([]Resource, error) { return resources, nil } -func (e *ImageBuilderRecipe) Remove() error { +type ImageBuilderRecipe struct { + svc *imagebuilder.Imagebuilder + arn string +} + +func (e *ImageBuilderRecipe) Remove(_ context.Context) error { _, err := e.svc.DeleteImageRecipe(&imagebuilder.DeleteImageRecipeInput{ ImageRecipeArn: &e.arn, }) diff --git a/resources/inspector-assessment-runs.go b/resources/inspector-assessment-runs.go index c788a825..6df304da 100644 --- a/resources/inspector-assessment-runs.go +++ b/resources/inspector-assessment-runs.go @@ -1,28 +1,38 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/inspector" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type InspectorAssessmentRun struct { - svc *inspector.Inspector - arn string -} +const InspectorAssessmentRunResource = "InspectorAssessmentRun" func init() { - register("InspectorAssessmentRun", ListInspectorAssessmentRuns) + resource.Register(resource.Registration{ + Name: InspectorAssessmentRunResource, + Scope: nuke.Account, + Lister: &InspectorAssessmentRunLister{}, + }) } -func ListInspectorAssessmentRuns(sess *session.Session) ([]Resource, error) { - svc := inspector.New(sess) +type InspectorAssessmentRunLister struct{} + +func (l *InspectorAssessmentRunLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := inspector.New(opts.Session) resp, err := svc.ListAssessmentRuns(nil) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, out := range resp.AssessmentRunArns { resources = append(resources, &InspectorAssessmentRun{ svc: svc, @@ -33,7 +43,12 @@ func ListInspectorAssessmentRuns(sess *session.Session) ([]Resource, error) { return resources, nil } -func (e *InspectorAssessmentRun) Remove() error { +type InspectorAssessmentRun struct { + svc *inspector.Inspector + arn string +} + +func (e *InspectorAssessmentRun) Remove(_ context.Context) error { _, err := e.svc.DeleteAssessmentRun(&inspector.DeleteAssessmentRunInput{ AssessmentRunArn: &e.arn, }) diff --git a/resources/inspector-assessment-targets.go b/resources/inspector-assessment-targets.go index 0c2485ee..28f7a3f0 100644 --- a/resources/inspector-assessment-targets.go +++ b/resources/inspector-assessment-targets.go @@ -1,28 +1,38 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/inspector" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type InspectorAssessmentTarget struct { - svc *inspector.Inspector - arn string -} +const InspectorAssessmentTargetResource = "InspectorAssessmentTarget" func init() { - register("InspectorAssessmentTarget", ListInspectorAssessmentTargets) + resource.Register(resource.Registration{ + Name: InspectorAssessmentTargetResource, + Scope: nuke.Account, + Lister: &InspectorAssessmentTargetLister{}, + }) } -func ListInspectorAssessmentTargets(sess *session.Session) ([]Resource, error) { - svc := inspector.New(sess) +type InspectorAssessmentTargetLister struct{} + +func (l *InspectorAssessmentTargetLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := inspector.New(opts.Session) resp, err := svc.ListAssessmentTargets(nil) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, out := range resp.AssessmentTargetArns { resources = append(resources, &InspectorAssessmentTarget{ svc: svc, @@ -33,7 +43,12 @@ func ListInspectorAssessmentTargets(sess *session.Session) ([]Resource, error) { return resources, nil } -func (e *InspectorAssessmentTarget) Remove() error { +type InspectorAssessmentTarget struct { + svc *inspector.Inspector + arn string +} + +func (e *InspectorAssessmentTarget) Remove(_ context.Context) error { _, err := e.svc.DeleteAssessmentTarget(&inspector.DeleteAssessmentTargetInput{ AssessmentTargetArn: &e.arn, }) diff --git a/resources/inspector-assessment-templates.go b/resources/inspector-assessment-templates.go index 67784e0a..b3faa559 100644 --- a/resources/inspector-assessment-templates.go +++ b/resources/inspector-assessment-templates.go @@ -1,28 +1,38 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/inspector" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type InspectorAssessmentTemplate struct { - svc *inspector.Inspector - arn string -} +const InspectorAssessmentTemplateResource = "InspectorAssessmentTemplate" func init() { - register("InspectorAssessmentTemplate", ListInspectorAssessmentTemplates) + resource.Register(resource.Registration{ + Name: InspectorAssessmentTemplateResource, + Scope: nuke.Account, + Lister: &InspectorAssessmentTemplateLister{}, + }) } -func ListInspectorAssessmentTemplates(sess *session.Session) ([]Resource, error) { - svc := inspector.New(sess) +type InspectorAssessmentTemplateLister struct{} + +func (l *InspectorAssessmentTemplateLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := inspector.New(opts.Session) resp, err := svc.ListAssessmentTemplates(nil) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, out := range resp.AssessmentTemplateArns { resources = append(resources, &InspectorAssessmentTemplate{ svc: svc, @@ -33,7 +43,12 @@ func ListInspectorAssessmentTemplates(sess *session.Session) ([]Resource, error) return resources, nil } -func (e *InspectorAssessmentTemplate) Remove() error { +type InspectorAssessmentTemplate struct { + svc *inspector.Inspector + arn string +} + +func (e *InspectorAssessmentTemplate) Remove(_ context.Context) error { _, err := e.svc.DeleteAssessmentTemplate(&inspector.DeleteAssessmentTemplateInput{ AssessmentTemplateArn: &e.arn, }) diff --git a/resources/inspector2.go b/resources/inspector2.go index 9f0c3e34..f4cab2e6 100644 --- a/resources/inspector2.go +++ b/resources/inspector2.go @@ -1,24 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/inspector2" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type Inspector2 struct { - svc *inspector2.Inspector2 - accountId *string -} +const Inspector2Resource = "Inspector2" func init() { - register("Inspector2", ListInspector2) + resource.Register(resource.Registration{ + Name: Inspector2Resource, + Scope: nuke.Account, + Lister: &Inspector2Lister{}, + }) } -func ListInspector2(sess *session.Session) ([]Resource, error) { - svc := inspector2.New(sess) +type Inspector2Lister struct{} - resources := make([]Resource, 0) +func (l *Inspector2Lister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := inspector2.New(opts.Session) + + resources := make([]resource.Resource, 0) resp, err := svc.BatchGetAccountStatus(nil) if err != nil { @@ -36,7 +46,12 @@ func ListInspector2(sess *session.Session) ([]Resource, error) { return resources, nil } -func (e *Inspector2) Remove() error { +type Inspector2 struct { + svc *inspector2.Inspector2 + accountId *string +} + +func (e *Inspector2) Remove(_ context.Context) error { _, err := e.svc.Disable(&inspector2.DisableInput{ AccountIds: []*string{e.accountId}, ResourceTypes: aws.StringSlice(inspector2.ResourceScanType_Values()), diff --git a/resources/interface.go b/resources/interface.go deleted file mode 100644 index 9edbcab0..00000000 --- a/resources/interface.go +++ /dev/null @@ -1,96 +0,0 @@ -package resources - -import ( - "fmt" - "strings" - - "github.com/aws/aws-sdk-go/aws/session" - "github.com/rebuy-de/aws-nuke/v2/pkg/config" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" -) - -type ResourceListers map[string]ResourceLister - -type ResourceLister func(s *session.Session) ([]Resource, error) - -type Resource interface { - Remove() error -} - -type Filter interface { - Resource - Filter() error -} - -type LegacyStringer interface { - Resource - String() string -} - -type ResourcePropertyGetter interface { - Resource - Properties() types.Properties -} - -type FeatureFlagGetter interface { - Resource - FeatureFlags(config.FeatureFlags) -} - -var resourceListers = make(ResourceListers) - -func register(name string, lister ResourceLister, opts ...registerOption) { - _, exists := resourceListers[name] - if exists { - panic(fmt.Sprintf("a resource with the name %s already exists", name)) - } - - resourceListers[name] = lister - - for _, opt := range opts { - opt(name, lister) - } -} - -var cloudControlMapping = map[string]string{} - -func GetCloudControlMapping() map[string]string { - return cloudControlMapping -} - -type registerOption func(name string, lister ResourceLister) - -func mapCloudControl(typeName string) registerOption { - return func(name string, lister ResourceLister) { - _, exists := cloudControlMapping[typeName] - if exists { - panic(fmt.Sprintf("a cloud control mapping for %s already exists", typeName)) - } - - cloudControlMapping[typeName] = name - } -} - -func GetLister(name string) ResourceLister { - if strings.HasPrefix(name, "AWS::") { - return NewListCloudControlResource(name) - } - return resourceListers[name] -} - -func GetListerNames() []string { - names := []string{} - for resourceType := range GetListers() { - names = append(names, resourceType) - } - - return names -} - -func registerCloudControl(typeName string) { - register(typeName, NewListCloudControlResource(typeName), mapCloudControl(typeName)) -} - -func GetListers() ResourceListers { - return resourceListers -} diff --git a/resources/iot-authorizers.go b/resources/iot-authorizers.go index d6710bfa..958f370d 100644 --- a/resources/iot-authorizers.go +++ b/resources/iot-authorizers.go @@ -1,22 +1,32 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/iot" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type IoTAuthorizer struct { - svc *iot.IoT - name *string -} +const IoTAuthorizerResource = "IoTAuthorizer" func init() { - register("IoTAuthorizer", ListIoTAuthorizers) + resource.Register(resource.Registration{ + Name: IoTAuthorizerResource, + Scope: nuke.Account, + Lister: &IoTAuthorizerLister{}, + }) } -func ListIoTAuthorizers(sess *session.Session) ([]Resource, error) { - svc := iot.New(sess) - resources := []Resource{} +type IoTAuthorizerLister struct{} + +func (l *IoTAuthorizerLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := iot.New(opts.Session) + resources := make([]resource.Resource, 0) params := &iot.ListAuthorizersInput{} @@ -35,8 +45,12 @@ func ListIoTAuthorizers(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *IoTAuthorizer) Remove() error { +type IoTAuthorizer struct { + svc *iot.IoT + name *string +} +func (f *IoTAuthorizer) Remove(_ context.Context) error { _, err := f.svc.DeleteAuthorizer(&iot.DeleteAuthorizerInput{ AuthorizerName: f.name, }) diff --git a/resources/iot-cacertificates.go b/resources/iot-cacertificates.go index 500ab3b2..5ba95378 100644 --- a/resources/iot-cacertificates.go +++ b/resources/iot-cacertificates.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iot" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type IoTCACertificate struct { - svc *iot.IoT - ID *string -} +const IoTCACertificateResource = "IoTCACertificate" func init() { - register("IoTCACertificate", ListIoTCACertificates) + resource.Register(resource.Registration{ + Name: IoTCACertificateResource, + Scope: nuke.Account, + Lister: &IoTCACertificateLister{}, + }) } -func ListIoTCACertificates(sess *session.Session) ([]Resource, error) { - svc := iot.New(sess) - resources := []Resource{} +type IoTCACertificateLister struct{} + +func (l *IoTCACertificateLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := iot.New(opts.Session) + resources := make([]resource.Resource, 0) params := &iot.ListCACertificatesInput{} @@ -36,8 +46,12 @@ func ListIoTCACertificates(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *IoTCACertificate) Remove() error { +type IoTCACertificate struct { + svc *iot.IoT + ID *string +} +func (f *IoTCACertificate) Remove(_ context.Context) error { _, err := f.svc.UpdateCACertificate(&iot.UpdateCACertificateInput{ CertificateId: f.ID, NewStatus: aws.String("INACTIVE"), diff --git a/resources/iot-certificates.go b/resources/iot-certificates.go index 76a5d4cf..d1799039 100644 --- a/resources/iot-certificates.go +++ b/resources/iot-certificates.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iot" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type IoTCertificate struct { - svc *iot.IoT - ID *string -} +const IoTCertificateResource = "IoTCertificate" func init() { - register("IoTCertificate", ListIoTCertificates) + resource.Register(resource.Registration{ + Name: IoTCertificateResource, + Scope: nuke.Account, + Lister: &IoTCertificateLister{}, + }) } -func ListIoTCertificates(sess *session.Session) ([]Resource, error) { - svc := iot.New(sess) - resources := []Resource{} +type IoTCertificateLister struct{} + +func (l *IoTCertificateLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := iot.New(opts.Session) + resources := make([]resource.Resource, 0) params := &iot.ListCertificatesInput{} @@ -43,8 +53,12 @@ func ListIoTCertificates(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *IoTCertificate) Remove() error { +type IoTCertificate struct { + svc *iot.IoT + ID *string +} +func (f *IoTCertificate) Remove(_ context.Context) error { _, err := f.svc.UpdateCertificate(&iot.UpdateCertificateInput{ CertificateId: f.ID, NewStatus: aws.String("INACTIVE"), diff --git a/resources/iot-jobs.go b/resources/iot-jobs.go index 294d7de2..774bcda7 100644 --- a/resources/iot-jobs.go +++ b/resources/iot-jobs.go @@ -1,24 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iot" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type IoTJob struct { - svc *iot.IoT - ID *string - status *string -} +const IoTJobResource = "IoTJob" func init() { - register("IoTJob", ListIoTJobs) + resource.Register(resource.Registration{ + Name: IoTJobResource, + Scope: nuke.Account, + Lister: &IoTJobLister{}, + }) } -func ListIoTJobs(sess *session.Session) ([]Resource, error) { - svc := iot.New(sess) - resources := []Resource{} +type IoTJobLister struct{} + +func (l *IoTJobLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := iot.New(opts.Session) + resources := make([]resource.Resource, 0) params := &iot.ListJobsInput{ MaxResults: aws.Int64(100), @@ -47,7 +56,13 @@ func ListIoTJobs(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *IoTJob) Remove() error { +type IoTJob struct { + svc *iot.IoT + ID *string + status *string +} + +func (f *IoTJob) Remove(_ context.Context) error { _, err := f.svc.CancelJob(&iot.CancelJobInput{ JobId: f.ID, diff --git a/resources/iot-otaupdates.go b/resources/iot-otaupdates.go index 1eabad25..198e0279 100644 --- a/resources/iot-otaupdates.go +++ b/resources/iot-otaupdates.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iot" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type IoTOTAUpdate struct { - svc *iot.IoT - ID *string -} +const IoTOTAUpdateResource = "IoTOTAUpdate" func init() { - register("IoTOTAUpdate", ListIoTOTAUpdates) + resource.Register(resource.Registration{ + Name: IoTOTAUpdateResource, + Scope: nuke.Account, + Lister: &IoTOTAUpdateLister{}, + }) } -func ListIoTOTAUpdates(sess *session.Session) ([]Resource, error) { - svc := iot.New(sess) - resources := []Resource{} +type IoTOTAUpdateLister struct{} + +func (l *IoTOTAUpdateLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := iot.New(opts.Session) + resources := make([]resource.Resource, 0) params := &iot.ListOTAUpdatesInput{ MaxResults: aws.Int64(100), @@ -44,8 +54,12 @@ func ListIoTOTAUpdates(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *IoTOTAUpdate) Remove() error { +type IoTOTAUpdate struct { + svc *iot.IoT + ID *string +} +func (f *IoTOTAUpdate) Remove(_ context.Context) error { _, err := f.svc.DeleteOTAUpdate(&iot.DeleteOTAUpdateInput{ OtaUpdateId: f.ID, }) diff --git a/resources/iot-policies.go b/resources/iot-policies.go index c6b9730c..effa733a 100644 --- a/resources/iot-policies.go +++ b/resources/iot-policies.go @@ -1,24 +1,73 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iot" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type IoTPolicy struct { - svc *iot.IoT - name *string - targets []*string - deprecatedVersions []*string -} +const IoTPolicyResource = "IoTPolicy" func init() { - register("IoTPolicy", ListIoTPolicies) + resource.Register(resource.Registration{ + Name: IoTPolicyResource, + Scope: nuke.Account, + Lister: &IoTPolicyLister{}, + }) +} + +type IoTPolicyLister struct{} + +func (l *IoTPolicyLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := iot.New(opts.Session) + resources := make([]resource.Resource, 0) + + params := &iot.ListPoliciesInput{ + PageSize: aws.Int64(25), + } + for { + output, err := svc.ListPolicies(params) + if err != nil { + return nil, err + } + + for _, policy := range output.Policies { + p := &IoTPolicy{ + svc: svc, + name: policy.PolicyName, + } + + p, err = listIoTPolicyTargets(p) + if err != nil { + return nil, err + } + + p, err = listIoTPolicyDeprecatedVersions(p) + if err != nil { + return nil, err + } + + resources = append(resources, p) + } + if output.NextMarker == nil { + break + } + + params.Marker = output.NextMarker + } + + return resources, nil } func listIoTPolicyTargets(f *IoTPolicy) (*IoTPolicy, error) { - targets := []*string{} + var targets []*string params := &iot.ListTargetsForPolicyInput{ PolicyName: f.name, @@ -46,7 +95,7 @@ func listIoTPolicyTargets(f *IoTPolicy) (*IoTPolicy, error) { } func listIoTPolicyDeprecatedVersions(f *IoTPolicy) (*IoTPolicy, error) { - deprecatedVersions := []*string{} + var deprecatedVersions []*string params := &iot.ListPolicyVersionsInput{ PolicyName: f.name, @@ -68,62 +117,34 @@ func listIoTPolicyDeprecatedVersions(f *IoTPolicy) (*IoTPolicy, error) { return f, nil } -func ListIoTPolicies(sess *session.Session) ([]Resource, error) { - svc := iot.New(sess) - resources := []Resource{} - - params := &iot.ListPoliciesInput{ - PageSize: aws.Int64(25), - } - for { - output, err := svc.ListPolicies(params) - if err != nil { - return nil, err - } - - for _, policy := range output.Policies { - p := &IoTPolicy{ - svc: svc, - name: policy.PolicyName, - } - - p, err = listIoTPolicyTargets(p) - if err != nil { - return nil, err - } - - p, err = listIoTPolicyDeprecatedVersions(p) - if err != nil { - return nil, err - } - - resources = append(resources, p) - } - if output.NextMarker == nil { - break - } - - params.Marker = output.NextMarker - } - - return resources, nil +type IoTPolicy struct { + svc *iot.IoT + name *string + targets []*string + deprecatedVersions []*string } -func (f *IoTPolicy) Remove() error { +func (f *IoTPolicy) Remove(_ context.Context) error { // detach attached targets first for _, target := range f.targets { - f.svc.DetachPolicy(&iot.DetachPolicyInput{ + _, err := f.svc.DetachPolicy(&iot.DetachPolicyInput{ PolicyName: f.name, Target: target, }) + if err != nil { + return err + } } // delete deprecated versions for _, version := range f.deprecatedVersions { - f.svc.DeletePolicyVersion(&iot.DeletePolicyVersionInput{ + _, err := f.svc.DeletePolicyVersion(&iot.DeletePolicyVersionInput{ PolicyName: f.name, PolicyVersionId: version, }) + if err != nil { + return err + } } _, err := f.svc.DeletePolicy(&iot.DeletePolicyInput{ diff --git a/resources/iot-rolealiases.go b/resources/iot-rolealiases.go index 016b4499..34fcdf81 100644 --- a/resources/iot-rolealiases.go +++ b/resources/iot-rolealiases.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iot" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type IoTRoleAlias struct { - svc *iot.IoT - roleAlias *string -} +const IoTRoleAliasResource = "IoTRoleAlias" func init() { - register("IoTRoleAlias", ListIoTRoleAliases) + resource.Register(resource.Registration{ + Name: IoTRoleAliasResource, + Scope: nuke.Account, + Lister: &IoTRoleAliasLister{}, + }) } -func ListIoTRoleAliases(sess *session.Session) ([]Resource, error) { - svc := iot.New(sess) - resources := []Resource{} +type IoTRoleAliasLister struct{} + +func (l *IoTRoleAliasLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := iot.New(opts.Session) + resources := make([]resource.Resource, 0) params := &iot.ListRoleAliasesInput{ PageSize: aws.Int64(25), @@ -44,8 +54,12 @@ func ListIoTRoleAliases(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *IoTRoleAlias) Remove() error { +type IoTRoleAlias struct { + svc *iot.IoT + roleAlias *string +} +func (f *IoTRoleAlias) Remove(_ context.Context) error { _, err := f.svc.DeleteRoleAlias(&iot.DeleteRoleAliasInput{ RoleAlias: f.roleAlias, }) diff --git a/resources/iot-streams.go b/resources/iot-streams.go index f3b77cb0..6cb7641d 100644 --- a/resources/iot-streams.go +++ b/resources/iot-streams.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iot" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type IoTStream struct { - svc *iot.IoT - ID *string -} +const IoTStreamResource = "IoTStream" func init() { - register("IoTStream", ListIoTStreams) + resource.Register(resource.Registration{ + Name: IoTStreamResource, + Scope: nuke.Account, + Lister: &IoTStreamLister{}, + }) } -func ListIoTStreams(sess *session.Session) ([]Resource, error) { - svc := iot.New(sess) - resources := []Resource{} +type IoTStreamLister struct{} + +func (l *IoTStreamLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := iot.New(opts.Session) + resources := make([]resource.Resource, 0) params := &iot.ListStreamsInput{ MaxResults: aws.Int64(100), @@ -44,8 +54,12 @@ func ListIoTStreams(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *IoTStream) Remove() error { +type IoTStream struct { + svc *iot.IoT + ID *string +} +func (f *IoTStream) Remove(_ context.Context) error { _, err := f.svc.DeleteStream(&iot.DeleteStreamInput{ StreamId: f.ID, }) diff --git a/resources/iot-thinggroups.go b/resources/iot-thinggroups.go index 69c93179..97463da8 100644 --- a/resources/iot-thinggroups.go +++ b/resources/iot-thinggroups.go @@ -1,25 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iot" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type IoTThingGroup struct { - svc *iot.IoT - name *string - version *int64 -} +const IoTThingGroupResource = "IoTThingGroup" func init() { - register("IoTThingGroup", ListIoTThingGroups) + resource.Register(resource.Registration{ + Name: IoTThingGroupResource, + Scope: nuke.Account, + Lister: &IoTThingGroupLister{}, + }) } -func ListIoTThingGroups(sess *session.Session) ([]Resource, error) { - svc := iot.New(sess) - resources := []Resource{} - thingGroups := []*iot.GroupNameAndArn{} +type IoTThingGroupLister struct{} + +func (l *IoTThingGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := iot.New(opts.Session) + resources := make([]resource.Resource, 0) + var thingGroups []*iot.GroupNameAndArn params := &iot.ListThingGroupsInput{ MaxResults: aws.Int64(100), @@ -58,8 +67,13 @@ func ListIoTThingGroups(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *IoTThingGroup) Remove() error { +type IoTThingGroup struct { + svc *iot.IoT + name *string + version *int64 +} +func (f *IoTThingGroup) Remove(_ context.Context) error { _, err := f.svc.DeleteThingGroup(&iot.DeleteThingGroupInput{ ThingGroupName: f.name, ExpectedVersion: f.version, diff --git a/resources/iot-things.go b/resources/iot-things.go index 660b5597..c001c980 100644 --- a/resources/iot-things.go +++ b/resources/iot-things.go @@ -1,39 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iot" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type IoTThing struct { - svc *iot.IoT - name *string - version *int64 - principals []*string -} +const IoTThingResource = "IoTThing" func init() { - register("IoTThing", ListIoTThings) + resource.Register(resource.Registration{ + Name: IoTThingResource, + Scope: nuke.Account, + Lister: &IoTThingLister{}, + }) } -func listIoTThingPrincipals(f *IoTThing) (*IoTThing, error) { - params := &iot.ListThingPrincipalsInput{ - ThingName: f.name, - } +type IoTThingLister struct{} - output, err := f.svc.ListThingPrincipals(params) - if err != nil { - return nil, err - } +func (l *IoTThingLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) - f.principals = output.Principals - return f, nil -} - -func ListIoTThings(sess *session.Session) ([]Resource, error) { - svc := iot.New(sess) - resources := []Resource{} + svc := iot.New(opts.Session) + resources := make([]resource.Resource, 0) params := &iot.ListThingsInput{ MaxResults: aws.Int64(100), @@ -67,13 +61,38 @@ func ListIoTThings(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *IoTThing) Remove() error { +// listIoTThingPrincipals lists the principals attached to a thing (helper function) +func listIoTThingPrincipals(f *IoTThing) (*IoTThing, error) { + params := &iot.ListThingPrincipalsInput{ + ThingName: f.name, + } + + output, err := f.svc.ListThingPrincipals(params) + if err != nil { + return nil, err + } + + f.principals = output.Principals + return f, nil +} + +type IoTThing struct { + svc *iot.IoT + name *string + version *int64 + principals []*string +} + +func (f *IoTThing) Remove(_ context.Context) error { // detach attached principals first for _, principal := range f.principals { - f.svc.DetachThingPrincipal(&iot.DetachThingPrincipalInput{ + _, err := f.svc.DetachThingPrincipal(&iot.DetachThingPrincipalInput{ Principal: principal, ThingName: f.name, }) + if err != nil { + return err + } } _, err := f.svc.DeleteThing(&iot.DeleteThingInput{ diff --git a/resources/iot-thingtypes.go b/resources/iot-thingtypes.go index 988453ef..0cab1c8d 100644 --- a/resources/iot-thingtypes.go +++ b/resources/iot-thingtypes.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iot" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type IoTThingType struct { - svc *iot.IoT - name *string -} +const IoTThingTypeResource = "IoTThingType" func init() { - register("IoTThingType", ListIoTThingTypes) + resource.Register(resource.Registration{ + Name: IoTThingTypeResource, + Scope: nuke.Account, + Lister: &IoTThingTypeLister{}, + }) } -func ListIoTThingTypes(sess *session.Session) ([]Resource, error) { - svc := iot.New(sess) - resources := []Resource{} +type IoTThingTypeLister struct{} + +func (l *IoTThingTypeLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := iot.New(opts.Session) + resources := make([]resource.Resource, 0) params := &iot.ListThingTypesInput{ MaxResults: aws.Int64(100), @@ -44,8 +54,12 @@ func ListIoTThingTypes(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *IoTThingType) Remove() error { +type IoTThingType struct { + svc *iot.IoT + name *string +} +func (f *IoTThingType) Remove(_ context.Context) error { _, err := f.svc.DeleteThingType(&iot.DeleteThingTypeInput{ ThingTypeName: f.name, }) diff --git a/resources/iot-thingtypestates.go b/resources/iot-thingtypestates.go index e598ca3d..6f1adb55 100644 --- a/resources/iot-thingtypestates.go +++ b/resources/iot-thingtypestates.go @@ -1,28 +1,36 @@ package resources import ( + "context" + "fmt" "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iot" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type IoTThingTypeState struct { - svc *iot.IoT - name *string - deprecated *bool - deprecatedEpoch *time.Time -} +const IoTThingTypeStateResource = "IoTThingTypeState" func init() { - register("IoTThingTypeState", ListIoTThingTypeStates) + resource.Register(resource.Registration{ + Name: IoTThingTypeStateResource, + Scope: nuke.Account, + Lister: &IoTThingTypeStateLister{}, + }) } -func ListIoTThingTypeStates(sess *session.Session) ([]Resource, error) { - svc := iot.New(sess) - resources := []Resource{} +type IoTThingTypeStateLister struct{} + +func (l *IoTThingTypeStateLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := iot.New(opts.Session) + resources := make([]resource.Resource, 0) params := &iot.ListThingTypesInput{ MaxResults: aws.Int64(100), @@ -51,17 +59,11 @@ func ListIoTThingTypeStates(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *IoTThingTypeState) Remove() error { - - _, err := f.svc.DeprecateThingType(&iot.DeprecateThingTypeInput{ - ThingTypeName: f.name, - }) - - return err -} - -func (f *IoTThingTypeState) String() string { - return *f.name +type IoTThingTypeState struct { + svc *iot.IoT + name *string + deprecated *bool + deprecatedEpoch *time.Time } func (f *IoTThingTypeState) Filter() error { @@ -77,3 +79,15 @@ func (f *IoTThingTypeState) Filter() error { } return nil } + +func (f *IoTThingTypeState) Remove(_ context.Context) error { + _, err := f.svc.DeprecateThingType(&iot.DeprecateThingTypeInput{ + ThingTypeName: f.name, + }) + + return err +} + +func (f *IoTThingTypeState) String() string { + return *f.name +} diff --git a/resources/iot-topicrules.go b/resources/iot-topicrules.go index 075eff51..102f6d8e 100644 --- a/resources/iot-topicrules.go +++ b/resources/iot-topicrules.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iot" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type IoTTopicRule struct { - svc *iot.IoT - name *string -} +const IoTTopicRuleResource = "IoTTopicRule" func init() { - register("IoTTopicRule", ListIoTTopicRules) + resource.Register(resource.Registration{ + Name: IoTTopicRuleResource, + Scope: nuke.Account, + Lister: &IoTTopicRuleLister{}, + }) } -func ListIoTTopicRules(sess *session.Session) ([]Resource, error) { - svc := iot.New(sess) - resources := []Resource{} +type IoTTopicRuleLister struct{} + +func (l *IoTTopicRuleLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := iot.New(opts.Session) + resources := make([]resource.Resource, 0) params := &iot.ListTopicRulesInput{ MaxResults: aws.Int64(100), @@ -44,8 +54,12 @@ func ListIoTTopicRules(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *IoTTopicRule) Remove() error { +type IoTTopicRule struct { + svc *iot.IoT + name *string +} +func (f *IoTTopicRule) Remove(_ context.Context) error { _, err := f.svc.DeleteTopicRule(&iot.DeleteTopicRuleInput{ RuleName: f.name, }) diff --git a/resources/kendra-indexes.go b/resources/kendra-indexes.go index 39e09fb8..64a7a6e8 100644 --- a/resources/kendra-indexes.go +++ b/resources/kendra-indexes.go @@ -1,25 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/kendra" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type KendraIndex struct { - svc *kendra.Kendra - name string - id string -} +const KendraIndexResource = "KendraIndex" func init() { - register("KendraIndex", ListKendraIndexes) + resource.Register(resource.Registration{ + Name: KendraIndexResource, + Scope: nuke.Account, + Lister: &KendraIndexLister{}, + }) } -func ListKendraIndexes(sess *session.Session) ([]Resource, error) { - svc := kendra.New(sess) - resources := []Resource{} +type KendraIndexLister struct{} + +func (l *KendraIndexLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := kendra.New(opts.Session) + resources := make([]resource.Resource, 0) params := &kendra.ListIndicesInput{ MaxResults: aws.Int64(100), @@ -46,7 +55,13 @@ func ListKendraIndexes(sess *session.Session) ([]Resource, error) { return resources, nil } -func (i *KendraIndex) Remove() error { +type KendraIndex struct { + svc *kendra.Kendra + name string + id string +} + +func (i *KendraIndex) Remove(_ context.Context) error { _, err := i.svc.DeleteIndex(&kendra.DeleteIndexInput{ Id: &i.id, }) diff --git a/resources/kinesis-streams.go b/resources/kinesis-streams.go index 0f9f9664..88cb1ecb 100644 --- a/resources/kinesis-streams.go +++ b/resources/kinesis-streams.go @@ -1,24 +1,36 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/kinesis" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type KinesisStream struct { - svc *kinesis.Kinesis - streamName *string -} +const KinesisStreamResource = "KinesisStream" func init() { - register("KinesisStream", ListKinesisStreams) + resource.Register(resource.Registration{ + Name: KinesisStreamResource, + Scope: nuke.Account, + Lister: &KinesisStreamLister{}, + }) } -func ListKinesisStreams(sess *session.Session) ([]Resource, error) { - svc := kinesis.New(sess) - resources := []Resource{} +type KinesisStreamLister struct{} + +func (l *KinesisStreamLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := kinesis.New(opts.Session) + + resources := make([]resource.Resource, 0) var lastStreamName *string + params := &kinesis.ListStreamsInput{ Limit: aws.Int64(25), } @@ -47,8 +59,12 @@ func ListKinesisStreams(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *KinesisStream) Remove() error { +type KinesisStream struct { + svc *kinesis.Kinesis + streamName *string +} +func (f *KinesisStream) Remove(_ context.Context) error { _, err := f.svc.DeleteStream(&kinesis.DeleteStreamInput{ StreamName: f.streamName, }) diff --git a/resources/kinesisanalytics-streams.go b/resources/kinesisanalytics-streams.go index 37227057..bc35aceb 100644 --- a/resources/kinesisanalytics-streams.go +++ b/resources/kinesisanalytics-streams.go @@ -1,23 +1,35 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/kinesisanalyticsv2" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type KinesisAnalyticsApplication struct { - svc *kinesisanalyticsv2.KinesisAnalyticsV2 - applicationName *string -} +const KinesisAnalyticsApplicationResource = "KinesisAnalyticsApplication" func init() { - register("KinesisAnalyticsApplication", ListKinesisAnalyticsApplications) + resource.Register(resource.Registration{ + Name: KinesisAnalyticsApplicationResource, + Scope: nuke.Account, + Lister: &KinesisAnalyticsApplicationLister{}, + }) } -func ListKinesisAnalyticsApplications(sess *session.Session) ([]Resource, error) { - svc := kinesisanalyticsv2.New(sess) - resources := []Resource{} +type KinesisAnalyticsApplicationLister struct{} + +func (l *KinesisAnalyticsApplicationLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := kinesisanalyticsv2.New(opts.Session) + + resources := make([]resource.Resource, 0) + params := &kinesisanalyticsv2.ListApplicationsInput{ Limit: aws.Int64(25), } @@ -45,8 +57,12 @@ func ListKinesisAnalyticsApplications(sess *session.Session) ([]Resource, error) return resources, nil } -func (f *KinesisAnalyticsApplication) Remove() error { +type KinesisAnalyticsApplication struct { + svc *kinesisanalyticsv2.KinesisAnalyticsV2 + applicationName *string +} +func (f *KinesisAnalyticsApplication) Remove(_ context.Context) error { output, err := f.svc.DescribeApplication(&kinesisanalyticsv2.DescribeApplicationInput{ ApplicationName: f.applicationName, }) diff --git a/resources/kinesisvideo-streams.go b/resources/kinesisvideo-streams.go index 3852888a..dd699177 100644 --- a/resources/kinesisvideo-streams.go +++ b/resources/kinesisvideo-streams.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/kinesisvideo" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type KinesisVideoProject struct { - svc *kinesisvideo.KinesisVideo - streamARN *string -} +const KinesisVideoProjectResource = "KinesisVideoProject" func init() { - register("KinesisVideoProject", ListKinesisVideoProjects) + resource.Register(resource.Registration{ + Name: KinesisVideoProjectResource, + Scope: nuke.Account, + Lister: &KinesisVideoProjectLister{}, + }) } -func ListKinesisVideoProjects(sess *session.Session) ([]Resource, error) { - svc := kinesisvideo.New(sess) - resources := []Resource{} +type KinesisVideoProjectLister struct{} + +func (l *KinesisVideoProjectLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := kinesisvideo.New(opts.Session) + resources := make([]resource.Resource, 0) params := &kinesisvideo.ListStreamsInput{ MaxResults: aws.Int64(100), @@ -46,8 +56,12 @@ func ListKinesisVideoProjects(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *KinesisVideoProject) Remove() error { +type KinesisVideoProject struct { + svc *kinesisvideo.KinesisVideo + streamARN *string +} +func (f *KinesisVideoProject) Remove(_ context.Context) error { _, err := f.svc.DeleteStream(&kinesisvideo.DeleteStreamInput{ StreamARN: f.streamARN, }) diff --git a/resources/kms-aliases.go b/resources/kms-aliases.go index e7d6a855..a1602393 100644 --- a/resources/kms-aliases.go +++ b/resources/kms-aliases.go @@ -1,42 +1,59 @@ package resources import ( + "context" + "fmt" "strings" - "github.com/aws/aws-sdk-go/aws/session" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/service/kms" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type KMSAlias struct { - svc *kms.KMS - name string -} +const KMSAliasResource = "KMSAlias" func init() { - register("KMSAlias", ListKMSAliases) + resource.Register(resource.Registration{ + Name: KMSAliasResource, + Scope: nuke.Account, + Lister: &KMSAliasLister{}, + }) } -func ListKMSAliases(sess *session.Session) ([]Resource, error) { - svc := kms.New(sess) +type KMSAliasLister struct{} + +func (l *KMSAliasLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := kms.New(opts.Session) resp, err := svc.ListAliases(nil) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, alias := range resp.Aliases { resources = append(resources, &KMSAlias{ svc: svc, - name: *alias.AliasName, + name: ptr.ToString(alias.AliasName), }) } return resources, nil } +type KMSAlias struct { + svc *kms.KMS + name string +} + func (e *KMSAlias) Filter() error { if strings.HasPrefix(e.name, "alias/aws/") { return fmt.Errorf("cannot delete AWS alias") @@ -44,7 +61,7 @@ func (e *KMSAlias) Filter() error { return nil } -func (e *KMSAlias) Remove() error { +func (e *KMSAlias) Remove(_ context.Context) error { _, err := e.svc.DeleteAlias(&kms.DeleteAliasInput{ AliasName: &e.name, }) diff --git a/resources/kms-keys.go b/resources/kms-keys.go index cfb1193e..083ac5c6 100644 --- a/resources/kms-keys.go +++ b/resources/kms-keys.go @@ -1,32 +1,42 @@ package resources import ( + "context" + "fmt" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/kms" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type KMSKey struct { - svc *kms.KMS - id string - state string - manager *string - tags []*kms.Tag -} +const KMSKeyResource = "KMSKey" func init() { - register("KMSKey", ListKMSKeys) + resource.Register(resource.Registration{ + Name: KMSKeyResource, + Scope: nuke.Account, + Lister: &KMSKeyLister{}, + DependsOn: []string{ + KMSAliasResource, + }, + }) } -func ListKMSKeys(sess *session.Session) ([]Resource, error) { - svc := kms.New(sess) - resources := make([]Resource, 0) +type KMSKeyLister struct{} + +func (l *KMSKeyLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := kms.New(opts.Session) + resources := make([]resource.Resource, 0) var innerErr error - err := svc.ListKeysPages(nil, func(resp *kms.ListKeysOutput, lastPage bool) bool { + if err := svc.ListKeysPages(nil, func(resp *kms.ListKeysOutput, lastPage bool) bool { for _, key := range resp.Keys { resp, err := svc.DescribeKey(&kms.DescribeKeyInput{ KeyId: key.KeyId, @@ -68,19 +78,25 @@ func ListKMSKeys(sess *session.Session) ([]Resource, error) { } return true - }) - - if err != nil { + }); err != nil { return nil, err } if innerErr != nil { - return nil, err + return nil, innerErr } return resources, nil } +type KMSKey struct { + svc *kms.KMS + id string + state string + manager *string + tags []*kms.Tag +} + func (e *KMSKey) Filter() error { if e.state == "PendingDeletion" { return fmt.Errorf("is already in PendingDeletion state") @@ -93,7 +109,7 @@ func (e *KMSKey) Filter() error { return nil } -func (e *KMSKey) Remove() error { +func (e *KMSKey) Remove(_ context.Context) error { _, err := e.svc.ScheduleKeyDeletion(&kms.ScheduleKeyDeletionInput{ KeyId: &e.id, PendingWindowInDays: aws.Int64(7), @@ -105,12 +121,12 @@ func (e *KMSKey) String() string { return e.id } -func (i *KMSKey) Properties() types.Properties { +func (e *KMSKey) Properties() types.Properties { properties := types.NewProperties() properties. - Set("ID", i.id) + Set("ID", e.id) - for _, tag := range i.tags { + for _, tag := range e.tags { properties.SetTag(tag.TagKey, tag.TagValue) } diff --git a/resources/kms-keys_test.go b/resources/kms-keys_test.go new file mode 100644 index 00000000..b26f83c0 --- /dev/null +++ b/resources/kms-keys_test.go @@ -0,0 +1,67 @@ +//go:build integration + +package resources + +import ( + "context" + "fmt" + "testing" + + "github.com/gotidy/ptr" + "github.com/pkg/errors" + "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/kms" + "github.com/aws/aws-sdk-go/service/sts" +) + +func Test_KMSKey_Remove(t *testing.T) { + cfg := aws.NewConfig() + cfg.Region = ptr.String("us-east-1") + + sess := session.Must(session.NewSession(cfg)) + svc := kms.New(sess) + + stsSvc := sts.New(sess) + ident, err := stsSvc.GetCallerIdentity(&sts.GetCallerIdentityInput{}) + assert.NoError(t, err) + + createInput := &kms.CreateKeyInput{ + Policy: aws.String(fmt.Sprintf(`{ + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "AWS": "arn:aws:iam::%s:root" + }, + "Action": "kms:*", + "Resource": "*" + } + ] + }`, *ident.Account)), + } + + out, err := svc.CreateKey(createInput) + assert.NoError(t, err) + assert.NotNil(t, out) + + kmsKey := KMSKey{ + svc: svc, + id: *out.KeyMetadata.KeyId, + } + + removeError := kmsKey.Remove(context.TODO()) + assert.NoError(t, removeError) + + _, err = svc.DescribeKey(&kms.DescribeKeyInput{ + KeyId: aws.String(kmsKey.id), + }) + var awsError awserr.Error + if errors.As(err, &awsError) { + assert.Equal(t, "NoSuchEntity", awsError.Code()) + } +} diff --git a/resources/lambda-event-source-mapping.go b/resources/lambda-event-source-mapping.go index e1053890..34b7421a 100644 --- a/resources/lambda-event-source-mapping.go +++ b/resources/lambda-event-source-mapping.go @@ -1,23 +1,33 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/lambda" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type LambdaEventSourceMapping struct { - svc *lambda.Lambda - mapping *lambda.EventSourceMappingConfiguration -} +const LambdaEventSourceMappingResource = "LambdaEventSourceMapping" func init() { - register("LambdaEventSourceMapping", ListLambdaEventSourceMapping) + resource.Register(resource.Registration{ + Name: LambdaEventSourceMappingResource, + Scope: nuke.Account, + Lister: &LambdaEventSourceMappingLister{}, + }) } -func ListLambdaEventSourceMapping(sess *session.Session) ([]Resource, error) { - svc := lambda.New(sess) - resources := []Resource{} +type LambdaEventSourceMappingLister struct{} + +func (l *LambdaEventSourceMappingLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := lambda.New(opts.Session) + resources := make([]resource.Resource, 0) params := &lambda.ListEventSourceMappingsInput{} for { @@ -43,7 +53,12 @@ func ListLambdaEventSourceMapping(sess *session.Session) ([]Resource, error) { return resources, nil } -func (m *LambdaEventSourceMapping) Remove() error { +type LambdaEventSourceMapping struct { + svc *lambda.Lambda + mapping *lambda.EventSourceMappingConfiguration +} + +func (m *LambdaEventSourceMapping) Remove(_ context.Context) error { _, err := m.svc.DeleteEventSourceMapping(&lambda.DeleteEventSourceMappingInput{ UUID: m.mapping.UUID, }) @@ -57,5 +72,6 @@ func (m *LambdaEventSourceMapping) Properties() types.Properties { properties.Set("EventSourceArn", m.mapping.EventSourceArn) properties.Set("FunctionArn", m.mapping.FunctionArn) properties.Set("State", m.mapping.State) + return properties } diff --git a/resources/lambda-functions.go b/resources/lambda-functions.go index 8b6e7245..1fc86dab 100644 --- a/resources/lambda-functions.go +++ b/resources/lambda-functions.go @@ -1,23 +1,32 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/lambda" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type LambdaFunction struct { - svc *lambda.Lambda - functionName *string - tags map[string]*string -} +const LambdaFunctionResource = "LambdaFunction" func init() { - register("LambdaFunction", ListLambdaFunctions) + resource.Register(resource.Registration{ + Name: LambdaFunctionResource, + Scope: nuke.Account, + Lister: &LambdaFunctionLister{}, + }) } -func ListLambdaFunctions(sess *session.Session) ([]Resource, error) { - svc := lambda.New(sess) +type LambdaFunctionLister struct{} + +func (l *LambdaFunctionLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := lambda.New(opts.Session) functions := make([]*lambda.FunctionConfiguration, 0) @@ -34,7 +43,7 @@ func ListLambdaFunctions(sess *session.Session) ([]Resource, error) { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, function := range functions { tags, err := svc.ListTags(&lambda.ListTagsInput{ Resource: function.FunctionArn, @@ -54,6 +63,12 @@ func ListLambdaFunctions(sess *session.Session) ([]Resource, error) { return resources, nil } +type LambdaFunction struct { + svc *lambda.Lambda + functionName *string + tags map[string]*string +} + func (f *LambdaFunction) Properties() types.Properties { properties := types.NewProperties() properties.Set("Name", f.functionName) @@ -65,8 +80,7 @@ func (f *LambdaFunction) Properties() types.Properties { return properties } -func (f *LambdaFunction) Remove() error { - +func (f *LambdaFunction) Remove(_ context.Context) error { _, err := f.svc.DeleteFunction(&lambda.DeleteFunctionInput{ FunctionName: f.functionName, }) diff --git a/resources/lambda-layers.go b/resources/lambda-layers.go index e7183c1a..4848108c 100644 --- a/resources/lambda-layers.go +++ b/resources/lambda-layers.go @@ -1,23 +1,32 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/lambda" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type lambdaLayer struct { - svc *lambda.Lambda - layerName *string - version int64 -} +const LambdaLayerResource = "LambdaLayer" func init() { - register("LambdaLayer", ListLambdaLayers) + resource.Register(resource.Registration{ + Name: LambdaLayerResource, + Scope: nuke.Account, + Lister: &LambdaLayerLister{}, + }) } -func ListLambdaLayers(sess *session.Session) ([]Resource, error) { - svc := lambda.New(sess) +type LambdaLayerLister struct{} + +func (l *LambdaLayerLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := lambda.New(opts.Session) layers := make([]*lambda.LayersListItem, 0) @@ -33,7 +42,7 @@ func ListLambdaLayers(sess *session.Session) ([]Resource, error) { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, layer := range layers { versionsParams := &lambda.ListLayerVersionsInput{ @@ -41,7 +50,7 @@ func ListLambdaLayers(sess *session.Session) ([]Resource, error) { } err := svc.ListLayerVersionsPages(versionsParams, func(page *lambda.ListLayerVersionsOutput, lastPage bool) bool { for _, out := range page.LayerVersions { - resources = append(resources, &lambdaLayer{ + resources = append(resources, &LambdaLayer{ svc: svc, layerName: layer.LayerName, version: *out.Version, @@ -52,13 +61,18 @@ func ListLambdaLayers(sess *session.Session) ([]Resource, error) { if err != nil { return nil, err } - } return resources, nil } -func (l *lambdaLayer) Remove() error { +type LambdaLayer struct { + svc *lambda.Lambda + layerName *string + version int64 +} + +func (l *LambdaLayer) Remove(_ context.Context) error { _, err := l.svc.DeleteLayerVersion(&lambda.DeleteLayerVersionInput{ LayerName: l.layerName, @@ -68,7 +82,7 @@ func (l *lambdaLayer) Remove() error { return err } -func (l *lambdaLayer) Properties() types.Properties { +func (l *LambdaLayer) Properties() types.Properties { properties := types.NewProperties() properties.Set("Name", l.layerName) properties.Set("Version", l.version) @@ -76,6 +90,6 @@ func (l *lambdaLayer) Properties() types.Properties { return properties } -func (l *lambdaLayer) String() string { +func (l *LambdaLayer) String() string { return *l.layerName } diff --git a/resources/lex-bot.go b/resources/lex-bot.go index a626b5db..a1d35b85 100644 --- a/resources/lex-bot.go +++ b/resources/lex-bot.go @@ -1,25 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lexmodelbuildingservice" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type LexBot struct { - svc *lexmodelbuildingservice.LexModelBuildingService - name *string - status *string -} +const LexBotResource = "LexBot" func init() { - register("LexBot", ListLexBots) + resource.Register(resource.Registration{ + Name: LexBotResource, + Scope: nuke.Account, + Lister: &LexBotLister{}, + }) } -func ListLexBots(sess *session.Session) ([]Resource, error) { - svc := lexmodelbuildingservice.New(sess) - resources := []Resource{} +type LexBotLister struct{} + +func (l *LexBotLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := lexmodelbuildingservice.New(opts.Session) + resources := make([]resource.Resource, 0) params := &lexmodelbuildingservice.GetBotsInput{ MaxResults: aws.Int64(10), @@ -49,8 +58,13 @@ func ListLexBots(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *LexBot) Remove() error { +type LexBot struct { + svc *lexmodelbuildingservice.LexModelBuildingService + name *string + status *string +} +func (f *LexBot) Remove(_ context.Context) error { _, err := f.svc.DeleteBot(&lexmodelbuildingservice.DeleteBotInput{ Name: f.name, }) diff --git a/resources/lex-intent.go b/resources/lex-intent.go index b587f315..230e792a 100644 --- a/resources/lex-intent.go +++ b/resources/lex-intent.go @@ -1,24 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lexmodelbuildingservice" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type LexIntent struct { - svc *lexmodelbuildingservice.LexModelBuildingService - name *string -} +const LexIntentResource = "LexIntent" func init() { - register("LexIntent", ListLexIntents) + resource.Register(resource.Registration{ + Name: LexIntentResource, + Scope: nuke.Account, + Lister: &LexIntentLister{}, + }) } -func ListLexIntents(sess *session.Session) ([]Resource, error) { - svc := lexmodelbuildingservice.New(sess) - resources := []Resource{} +type LexIntentLister struct{} + +func (l *LexIntentLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := lexmodelbuildingservice.New(opts.Session) + resources := make([]resource.Resource, 0) params := &lexmodelbuildingservice.GetIntentsInput{ MaxResults: aws.Int64(20), @@ -47,8 +57,12 @@ func ListLexIntents(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *LexIntent) Remove() error { +type LexIntent struct { + svc *lexmodelbuildingservice.LexModelBuildingService + name *string +} +func (f *LexIntent) Remove(_ context.Context) error { _, err := f.svc.DeleteIntent(&lexmodelbuildingservice.DeleteIntentInput{ Name: f.name, }) diff --git a/resources/lex-model-building-service-bot-alias.go b/resources/lex-model-building-service-bot-alias.go index bca7285d..ca8b3322 100644 --- a/resources/lex-model-building-service-bot-alias.go +++ b/resources/lex-model-building-service-bot-alias.go @@ -1,26 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lexmodelbuildingservice" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type LexModelBuildingServiceBotAlias struct { - svc *lexmodelbuildingservice.LexModelBuildingService - name *string - checksum *string - botName *string -} +const LexModelBuildingServiceBotAliasResource = "LexModelBuildingServiceBotAlias" func init() { - register("LexModelBuildingServiceBotAlias", ListLexModelBuildingServiceBotAliases) + resource.Register(resource.Registration{ + Name: LexModelBuildingServiceBotAliasResource, + Scope: nuke.Account, + Lister: &LexModelBuildingServiceBotAliasLister{}, + }) } -func ListLexModelBuildingServiceBotAliases(sess *session.Session) ([]Resource, error) { - svc := lexmodelbuildingservice.New(sess) - resources := []Resource{} +type LexModelBuildingServiceBotAliasLister struct{} + +func (l *LexModelBuildingServiceBotAliasLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := lexmodelbuildingservice.New(opts.Session) + resources := make([]resource.Resource, 0) botParams := &lexmodelbuildingservice.GetBotsInput{ MaxResults: aws.Int64(10), @@ -69,7 +77,14 @@ func ListLexModelBuildingServiceBotAliases(sess *session.Session) ([]Resource, e return resources, nil } -func (f *LexModelBuildingServiceBotAlias) Remove() error { +type LexModelBuildingServiceBotAlias struct { + svc *lexmodelbuildingservice.LexModelBuildingService + name *string + checksum *string + botName *string +} + +func (f *LexModelBuildingServiceBotAlias) Remove(_ context.Context) error { params := &lexmodelbuildingservice.DeleteBotAliasInput{ BotName: f.botName, Name: f.name, diff --git a/resources/lex-slot-types.go b/resources/lex-slot-types.go index 18e672a0..cc583dc3 100644 --- a/resources/lex-slot-types.go +++ b/resources/lex-slot-types.go @@ -1,24 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lexmodelbuildingservice" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type LexSlotType struct { - svc *lexmodelbuildingservice.LexModelBuildingService - name *string -} +const LexSlotTypeResource = "LexSlotType" func init() { - register("LexSlotType", ListLexSlotTypes) + resource.Register(resource.Registration{ + Name: LexSlotTypeResource, + Scope: nuke.Account, + Lister: &LexSlotTypeLister{}, + }) } -func ListLexSlotTypes(sess *session.Session) ([]Resource, error) { - svc := lexmodelbuildingservice.New(sess) - resources := []Resource{} +type LexSlotTypeLister struct{} + +func (l *LexSlotTypeLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := lexmodelbuildingservice.New(opts.Session) + resources := make([]resource.Resource, 0) params := &lexmodelbuildingservice.GetSlotTypesInput{ MaxResults: aws.Int64(20), @@ -47,8 +57,12 @@ func ListLexSlotTypes(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *LexSlotType) Remove() error { +type LexSlotType struct { + svc *lexmodelbuildingservice.LexModelBuildingService + name *string +} +func (f *LexSlotType) Remove(_ context.Context) error { _, err := f.svc.DeleteSlotType(&lexmodelbuildingservice.DeleteSlotTypeInput{ Name: f.name, }) diff --git a/resources/lightsail-disks.go b/resources/lightsail-disks.go index 51a4409a..129d6edd 100644 --- a/resources/lightsail-disks.go +++ b/resources/lightsail-disks.go @@ -1,22 +1,32 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/lightsail" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type LightsailDisk struct { - svc *lightsail.Lightsail - diskName *string -} +const LightsailDiskResource = "LightsailDisk" func init() { - register("LightsailDisk", ListLightsailDisks) + resource.Register(resource.Registration{ + Name: LightsailDiskResource, + Scope: nuke.Account, + Lister: &LightsailDiskLister{}, + }) } -func ListLightsailDisks(sess *session.Session) ([]Resource, error) { - svc := lightsail.New(sess) - resources := []Resource{} +type LightsailDiskLister struct{} + +func (l *LightsailDiskLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := lightsail.New(opts.Session) + resources := make([]resource.Resource, 0) params := &lightsail.GetDisksInput{} @@ -43,8 +53,12 @@ func ListLightsailDisks(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *LightsailDisk) Remove() error { +type LightsailDisk struct { + svc *lightsail.Lightsail + diskName *string +} +func (f *LightsailDisk) Remove(_ context.Context) error { _, err := f.svc.DeleteDisk(&lightsail.DeleteDiskInput{ DiskName: f.diskName, }) diff --git a/resources/lightsail-domains.go b/resources/lightsail-domains.go index 186ade2a..4736c4fe 100644 --- a/resources/lightsail-domains.go +++ b/resources/lightsail-domains.go @@ -1,25 +1,37 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws/endpoints" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type LightsailDomain struct { - svc *lightsail.Lightsail - domainName *string -} +// TODO: implement region hints when we know certain things will never be in other regions + +const LightsailDomainResource = "LightsailDomain" func init() { - register("LightsailDomain", ListLightsailDomains) + resource.Register(resource.Registration{ + Name: LightsailDomainResource, + Scope: nuke.Account, + Lister: &LightsailDomainLister{}, + }) } -func ListLightsailDomains(sess *session.Session) ([]Resource, error) { - svc := lightsail.New(sess) - resources := []Resource{} +type LightsailDomainLister struct{} + +func (l *LightsailDomainLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) - if sess.Config.Region == nil || *sess.Config.Region != endpoints.UsEast1RegionID { + svc := lightsail.New(opts.Session) + resources := make([]resource.Resource, 0) + + if opts.Session.Config.Region == nil || *opts.Session.Config.Region != endpoints.UsEast1RegionID { // LightsailDomain only supports us-east-1 return resources, nil } @@ -49,8 +61,12 @@ func ListLightsailDomains(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *LightsailDomain) Remove() error { +type LightsailDomain struct { + svc *lightsail.Lightsail + domainName *string +} +func (f *LightsailDomain) Remove(_ context.Context) error { _, err := f.svc.DeleteDomain(&lightsail.DeleteDomainInput{ DomainName: f.domainName, }) diff --git a/resources/lightsail-instances.go b/resources/lightsail-instances.go index dd9c7ce6..c96bfa6a 100644 --- a/resources/lightsail-instances.go +++ b/resources/lightsail-instances.go @@ -1,28 +1,35 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lightsail" - "github.com/rebuy-de/aws-nuke/v2/pkg/config" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" -) -type LightsailInstance struct { - svc *lightsail.Lightsail - instanceName *string - tags []*lightsail.Tag + "github.com/ekristen/libnuke/pkg/featureflag" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" - featureFlags config.FeatureFlags -} + "github.com/ekristen/aws-nuke/pkg/nuke" +) + +const LightsailInstanceResource = "LightsailInstance" func init() { - register("LightsailInstance", ListLightsailInstances) + resource.Register(resource.Registration{ + Name: LightsailInstanceResource, + Scope: nuke.Account, + Lister: &LightsailInstanceLister{}, + }) } -func ListLightsailInstances(sess *session.Session) ([]Resource, error) { - svc := lightsail.New(sess) - resources := []Resource{} +type LightsailInstanceLister struct{} + +func (l *LightsailInstanceLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := lightsail.New(opts.Session) + resources := make([]resource.Resource, 0) params := &lightsail.GetInstancesInput{} @@ -50,15 +57,27 @@ func ListLightsailInstances(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *LightsailInstance) FeatureFlags(ff config.FeatureFlags) { +type LightsailInstance struct { + svc *lightsail.Lightsail + instanceName *string + tags []*lightsail.Tag + + featureFlags *featureflag.FeatureFlags +} + +func (f *LightsailInstance) FeatureFlags(ff *featureflag.FeatureFlags) { f.featureFlags = ff } -func (f *LightsailInstance) Remove() error { +func (f *LightsailInstance) Remove(_ context.Context) error { + ffDLA, ffErr := f.featureFlags.Get("ForceDeleteLightsailAddOns") + if ffErr != nil { + return ffErr + } _, err := f.svc.DeleteInstance(&lightsail.DeleteInstanceInput{ InstanceName: f.instanceName, - ForceDeleteAddOns: aws.Bool(f.featureFlags.ForceDeleteLightsailAddOns), + ForceDeleteAddOns: aws.Bool(ffDLA.Enabled()), }) return err diff --git a/resources/lightsail-keypairs.go b/resources/lightsail-keypairs.go index 56a163f0..a10106e7 100644 --- a/resources/lightsail-keypairs.go +++ b/resources/lightsail-keypairs.go @@ -1,22 +1,32 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/lightsail" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type LightsailKeyPair struct { - svc *lightsail.Lightsail - keyPairName *string -} +const LightsailKeyPairResource = "LightsailKeyPair" func init() { - register("LightsailKeyPair", ListLightsailKeyPairs) + resource.Register(resource.Registration{ + Name: LightsailKeyPairResource, + Scope: nuke.Account, + Lister: &LightsailKeyPairLister{}, + }) } -func ListLightsailKeyPairs(sess *session.Session) ([]Resource, error) { - svc := lightsail.New(sess) - resources := []Resource{} +type LightsailKeyPairLister struct{} + +func (l *LightsailKeyPairLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := lightsail.New(opts.Session) + resources := make([]resource.Resource, 0) params := &lightsail.GetKeyPairsInput{} @@ -43,8 +53,12 @@ func ListLightsailKeyPairs(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *LightsailKeyPair) Remove() error { +type LightsailKeyPair struct { + svc *lightsail.Lightsail + keyPairName *string +} +func (f *LightsailKeyPair) Remove(_ context.Context) error { _, err := f.svc.DeleteKeyPair(&lightsail.DeleteKeyPairInput{ KeyPairName: f.keyPairName, }) diff --git a/resources/lightsail-loadbalancers.go b/resources/lightsail-loadbalancers.go index 1e52f4c6..23bfdab1 100644 --- a/resources/lightsail-loadbalancers.go +++ b/resources/lightsail-loadbalancers.go @@ -1,22 +1,32 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/lightsail" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type LightsailLoadBalancer struct { - svc *lightsail.Lightsail - loadBalancerName *string -} +const LightsailLoadBalancerResource = "LightsailLoadBalancer" func init() { - register("LightsailLoadBalancer", ListLightsailLoadBalancers) + resource.Register(resource.Registration{ + Name: LightsailLoadBalancerResource, + Scope: nuke.Account, + Lister: &LightsailLoadBalancerLister{}, + }) } -func ListLightsailLoadBalancers(sess *session.Session) ([]Resource, error) { - svc := lightsail.New(sess) - resources := []Resource{} +type LightsailLoadBalancerLister struct{} + +func (l *LightsailLoadBalancerLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := lightsail.New(opts.Session) + resources := make([]resource.Resource, 0) params := &lightsail.GetLoadBalancersInput{} @@ -26,10 +36,10 @@ func ListLightsailLoadBalancers(sess *session.Session) ([]Resource, error) { return nil, err } - for _, loadbalancer := range output.LoadBalancers { + for _, lb := range output.LoadBalancers { resources = append(resources, &LightsailLoadBalancer{ svc: svc, - loadBalancerName: loadbalancer.Name, + loadBalancerName: lb.Name, }) } @@ -43,8 +53,12 @@ func ListLightsailLoadBalancers(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *LightsailLoadBalancer) Remove() error { +type LightsailLoadBalancer struct { + svc *lightsail.Lightsail + loadBalancerName *string +} +func (f *LightsailLoadBalancer) Remove(_ context.Context) error { _, err := f.svc.DeleteLoadBalancer(&lightsail.DeleteLoadBalancerInput{ LoadBalancerName: f.loadBalancerName, }) diff --git a/resources/lightsail-staticips.go b/resources/lightsail-staticips.go index c7b1ac85..09147fc0 100644 --- a/resources/lightsail-staticips.go +++ b/resources/lightsail-staticips.go @@ -1,22 +1,32 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/lightsail" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type LightsailStaticIP struct { - svc *lightsail.Lightsail - staticIPName *string -} +const LightsailStaticIPResource = "LightsailStaticIP" func init() { - register("LightsailStaticIP", ListLightsailStaticIPs) + resource.Register(resource.Registration{ + Name: LightsailStaticIPResource, + Scope: nuke.Account, + Lister: &LightsailStaticIPLister{}, + }) } -func ListLightsailStaticIPs(sess *session.Session) ([]Resource, error) { - svc := lightsail.New(sess) - resources := []Resource{} +type LightsailStaticIPLister struct{} + +func (l *LightsailStaticIPLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := lightsail.New(opts.Session) + resources := make([]resource.Resource, 0) params := &lightsail.GetStaticIpsInput{} @@ -43,8 +53,12 @@ func ListLightsailStaticIPs(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *LightsailStaticIP) Remove() error { +type LightsailStaticIP struct { + svc *lightsail.Lightsail + staticIPName *string +} +func (f *LightsailStaticIP) Remove(_ context.Context) error { _, err := f.svc.ReleaseStaticIp(&lightsail.ReleaseStaticIpInput{ StaticIpName: f.staticIPName, }) diff --git a/resources/machinelearning-batchpredictions.go b/resources/machinelearning-batchpredictions.go index 46c9977b..07d231b6 100644 --- a/resources/machinelearning-batchpredictions.go +++ b/resources/machinelearning-batchpredictions.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/machinelearning" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type MachineLearningBranchPrediction struct { - svc *machinelearning.MachineLearning - ID *string -} +const MachineLearningBranchPredictionResource = "MachineLearningBranchPrediction" func init() { - register("MachineLearningBranchPrediction", ListMachineLearningBranchPredictions) + resource.Register(resource.Registration{ + Name: MachineLearningBranchPredictionResource, + Scope: nuke.Account, + Lister: &MachineLearningBranchPredictionLister{}, + }) } -func ListMachineLearningBranchPredictions(sess *session.Session) ([]Resource, error) { - svc := machinelearning.New(sess) - resources := []Resource{} +type MachineLearningBranchPredictionLister struct{} + +func (l *MachineLearningBranchPredictionLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := machinelearning.New(opts.Session) + resources := make([]resource.Resource, 0) params := &machinelearning.DescribeBatchPredictionsInput{ Limit: aws.Int64(100), @@ -46,8 +56,12 @@ func ListMachineLearningBranchPredictions(sess *session.Session) ([]Resource, er return resources, nil } -func (f *MachineLearningBranchPrediction) Remove() error { +type MachineLearningBranchPrediction struct { + svc *machinelearning.MachineLearning + ID *string +} +func (f *MachineLearningBranchPrediction) Remove(_ context.Context) error { _, err := f.svc.DeleteBatchPrediction(&machinelearning.DeleteBatchPredictionInput{ BatchPredictionId: f.ID, }) diff --git a/resources/machinelearning-datasources.go b/resources/machinelearning-datasources.go index 3dfb84a4..300fc948 100644 --- a/resources/machinelearning-datasources.go +++ b/resources/machinelearning-datasources.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/machinelearning" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type MachineLearningDataSource struct { - svc *machinelearning.MachineLearning - ID *string -} +const MachineLearningDataSourceResource = "MachineLearningDataSource" func init() { - register("MachineLearningDataSource", ListMachineLearningDataSources) + resource.Register(resource.Registration{ + Name: MachineLearningDataSourceResource, + Scope: nuke.Account, + Lister: &MachineLearningDataSourceLister{}, + }) } -func ListMachineLearningDataSources(sess *session.Session) ([]Resource, error) { - svc := machinelearning.New(sess) - resources := []Resource{} +type MachineLearningDataSourceLister struct{} + +func (l *MachineLearningDataSourceLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := machinelearning.New(opts.Session) + resources := make([]resource.Resource, 0) params := &machinelearning.DescribeDataSourcesInput{ Limit: aws.Int64(100), @@ -46,8 +56,12 @@ func ListMachineLearningDataSources(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *MachineLearningDataSource) Remove() error { +type MachineLearningDataSource struct { + svc *machinelearning.MachineLearning + ID *string +} +func (f *MachineLearningDataSource) Remove(_ context.Context) error { _, err := f.svc.DeleteDataSource(&machinelearning.DeleteDataSourceInput{ DataSourceId: f.ID, }) diff --git a/resources/machinelearning-evaluations.go b/resources/machinelearning-evaluations.go index 6ef83408..ad1c754c 100644 --- a/resources/machinelearning-evaluations.go +++ b/resources/machinelearning-evaluations.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/machinelearning" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type MachineLearningEvaluation struct { - svc *machinelearning.MachineLearning - ID *string -} +const MachineLearningEvaluationResource = "MachineLearningEvaluation" func init() { - register("MachineLearningEvaluation", ListMachineLearningEvaluations) + resource.Register(resource.Registration{ + Name: MachineLearningEvaluationResource, + Scope: nuke.Account, + Lister: &MachineLearningEvaluationLister{}, + }) } -func ListMachineLearningEvaluations(sess *session.Session) ([]Resource, error) { - svc := machinelearning.New(sess) - resources := []Resource{} +type MachineLearningEvaluationLister struct{} + +func (l *MachineLearningEvaluationLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := machinelearning.New(opts.Session) + resources := make([]resource.Resource, 0) params := &machinelearning.DescribeEvaluationsInput{ Limit: aws.Int64(100), @@ -46,8 +56,12 @@ func ListMachineLearningEvaluations(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *MachineLearningEvaluation) Remove() error { +type MachineLearningEvaluation struct { + svc *machinelearning.MachineLearning + ID *string +} +func (f *MachineLearningEvaluation) Remove(_ context.Context) error { _, err := f.svc.DeleteEvaluation(&machinelearning.DeleteEvaluationInput{ EvaluationId: f.ID, }) diff --git a/resources/machinelearning-mlmodels.go b/resources/machinelearning-mlmodels.go index b223efd0..e1811e86 100644 --- a/resources/machinelearning-mlmodels.go +++ b/resources/machinelearning-mlmodels.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/machinelearning" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type MachineLearningMLModel struct { - svc *machinelearning.MachineLearning - ID *string -} +const MachineLearningMLModelResource = "MachineLearningMLModel" func init() { - register("MachineLearningMLModel", ListMachineLearningMLModels) + resource.Register(resource.Registration{ + Name: MachineLearningMLModelResource, + Scope: nuke.Account, + Lister: &MachineLearningMLModelLister{}, + }) } -func ListMachineLearningMLModels(sess *session.Session) ([]Resource, error) { - svc := machinelearning.New(sess) - resources := []Resource{} +type MachineLearningMLModelLister struct{} + +func (l *MachineLearningMLModelLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := machinelearning.New(opts.Session) + resources := make([]resource.Resource, 0) params := &machinelearning.DescribeMLModelsInput{ Limit: aws.Int64(100), @@ -46,8 +56,12 @@ func ListMachineLearningMLModels(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *MachineLearningMLModel) Remove() error { +type MachineLearningMLModel struct { + svc *machinelearning.MachineLearning + ID *string +} +func (f *MachineLearningMLModel) Remove(_ context.Context) error { _, err := f.svc.DeleteMLModel(&machinelearning.DeleteMLModelInput{ MLModelId: f.ID, }) diff --git a/resources/macie2.go b/resources/macie2.go index 57307ba4..f64f4c22 100644 --- a/resources/macie2.go +++ b/resources/macie2.go @@ -1,20 +1,31 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/macie2" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type Macie struct { - svc *macie2.Macie2 -} +const MacieResource = "Macie" func init() { - register("Macie", CheckMacieStatus) + resource.Register(resource.Registration{ + Name: MacieResource, + Scope: nuke.Account, + Lister: &MacieLister{}, + }) } -func CheckMacieStatus(sess *session.Session) ([]Resource, error) { - svc := macie2.New(sess) +type MacieLister struct{} + +func (l *MacieLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := macie2.New(opts.Session) status, err := svc.GetMacieSession(&macie2.GetMacieSessionInput{}) if err != nil { @@ -25,7 +36,7 @@ func CheckMacieStatus(sess *session.Session) ([]Resource, error) { } } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) if *status.Status == macie2.AdminStatusEnabled { resources = append(resources, &Macie{ svc: svc, @@ -35,7 +46,11 @@ func CheckMacieStatus(sess *session.Session) ([]Resource, error) { return resources, nil } -func (b *Macie) Remove() error { +type Macie struct { + svc *macie2.Macie2 +} + +func (b *Macie) Remove(_ context.Context) error { _, err := b.svc.DisableMacie(&macie2.DisableMacieInput{}) if err != nil { return err diff --git a/resources/managedgrafana-workspaces.go b/resources/managedgrafana-workspaces.go index f44e58c4..8a6872e2 100644 --- a/resources/managedgrafana-workspaces.go +++ b/resources/managedgrafana-workspaces.go @@ -1,24 +1,33 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/managedgrafana" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type AMGWorkspace struct { - svc *managedgrafana.ManagedGrafana - id *string - name *string -} +const AMGWorkspaceResource = "AMGWorkspace" func init() { - register("AMGWorkspace", ListAMGWorkspaces) + resource.Register(resource.Registration{ + Name: AMGWorkspaceResource, + Scope: nuke.Account, + Lister: &AMGWorkspaceLister{}, + }) } -func ListAMGWorkspaces(sess *session.Session) ([]Resource, error) { - svc := managedgrafana.New(sess) - resources := []Resource{} +type AMGWorkspaceLister struct{} + +func (l *AMGWorkspaceLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := managedgrafana.New(opts.Session) + resources := make([]resource.Resource, 0) var amgWorkspaces []*managedgrafana.WorkspaceSummary err := svc.ListWorkspacesPages( @@ -43,7 +52,13 @@ func ListAMGWorkspaces(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *AMGWorkspace) Remove() error { +type AMGWorkspace struct { + svc *managedgrafana.ManagedGrafana + id *string + name *string +} + +func (f *AMGWorkspace) Remove(_ context.Context) error { _, err := f.svc.DeleteWorkspace(&managedgrafana.DeleteWorkspaceInput{ WorkspaceId: f.id, }) diff --git a/resources/mediaconvert-jobtemplates.go b/resources/mediaconvert-jobtemplates.go index 6c2ad41b..fa3583c6 100644 --- a/resources/mediaconvert-jobtemplates.go +++ b/resources/mediaconvert-jobtemplates.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/mediaconvert" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type MediaConvertJobTemplate struct { - svc *mediaconvert.MediaConvert - name *string -} +const MediaConvertJobTemplateResource = "MediaConvertJobTemplate" func init() { - register("MediaConvertJobTemplate", ListMediaConvertJobTemplates) + resource.Register(resource.Registration{ + Name: MediaConvertJobTemplateResource, + Scope: nuke.Account, + Lister: &MediaConvertJobTemplateLister{}, + }) } -func ListMediaConvertJobTemplates(sess *session.Session) ([]Resource, error) { - svc := mediaconvert.New(sess) - resources := []Resource{} +type MediaConvertJobTemplateLister struct{} + +func (l *MediaConvertJobTemplateLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := mediaconvert.New(opts.Session) + resources := make([]resource.Resource, 0) var mediaEndpoint *string output, err := svc.DescribeEndpoints(&mediaconvert.DescribeEndpointsInput{}) @@ -25,8 +35,8 @@ func ListMediaConvertJobTemplates(sess *session.Session) ([]Resource, error) { return nil, err } - for _, mediaconvert := range output.Endpoints { - mediaEndpoint = mediaconvert.Url + for _, endpoint := range output.Endpoints { + mediaEndpoint = endpoint.Url } // Update svc to use custom media endpoint @@ -59,8 +69,12 @@ func ListMediaConvertJobTemplates(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *MediaConvertJobTemplate) Remove() error { +type MediaConvertJobTemplate struct { + svc *mediaconvert.MediaConvert + name *string +} +func (f *MediaConvertJobTemplate) Remove(_ context.Context) error { _, err := f.svc.DeleteJobTemplate(&mediaconvert.DeleteJobTemplateInput{ Name: f.name, }) diff --git a/resources/mediaconvert-presets.go b/resources/mediaconvert-presets.go index 1df4d84d..4dc8bfa7 100644 --- a/resources/mediaconvert-presets.go +++ b/resources/mediaconvert-presets.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/mediaconvert" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type MediaConvertPreset struct { - svc *mediaconvert.MediaConvert - name *string -} +const MediaConvertPresetResource = "MediaConvertPreset" func init() { - register("MediaConvertPreset", ListMediaConvertPresets) + resource.Register(resource.Registration{ + Name: MediaConvertPresetResource, + Scope: nuke.Account, + Lister: &MediaConvertPresetLister{}, + }) } -func ListMediaConvertPresets(sess *session.Session) ([]Resource, error) { - svc := mediaconvert.New(sess) - resources := []Resource{} +type MediaConvertPresetLister struct{} + +func (l *MediaConvertPresetLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := mediaconvert.New(opts.Session) + resources := make([]resource.Resource, 0) var mediaEndpoint *string output, err := svc.DescribeEndpoints(&mediaconvert.DescribeEndpointsInput{}) @@ -25,8 +35,8 @@ func ListMediaConvertPresets(sess *session.Session) ([]Resource, error) { return nil, err } - for _, mediaconvert := range output.Endpoints { - mediaEndpoint = mediaconvert.Url + for _, endpoint := range output.Endpoints { + mediaEndpoint = endpoint.Url } // Update svc to use custom media endpoint @@ -59,8 +69,12 @@ func ListMediaConvertPresets(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *MediaConvertPreset) Remove() error { +type MediaConvertPreset struct { + svc *mediaconvert.MediaConvert + name *string +} +func (f *MediaConvertPreset) Remove(_ context.Context) error { _, err := f.svc.DeletePreset(&mediaconvert.DeletePresetInput{ Name: f.name, }) diff --git a/resources/mediaconvert-queues.go b/resources/mediaconvert-queues.go index ed9e2053..06ff15f8 100644 --- a/resources/mediaconvert-queues.go +++ b/resources/mediaconvert-queues.go @@ -1,26 +1,36 @@ package resources import ( + "context" + "fmt" "strings" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/mediaconvert" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type MediaConvertQueue struct { - svc *mediaconvert.MediaConvert - name *string -} +const MediaConvertQueueResource = "MediaConvertQueue" func init() { - register("MediaConvertQueue", ListMediaConvertQueues) + resource.Register(resource.Registration{ + Name: MediaConvertQueueResource, + Scope: nuke.Account, + Lister: &MediaConvertQueueLister{}, + }) } -func ListMediaConvertQueues(sess *session.Session) ([]Resource, error) { - svc := mediaconvert.New(sess) - resources := []Resource{} +type MediaConvertQueueLister struct{} + +func (l *MediaConvertQueueLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := mediaconvert.New(opts.Session) + resources := make([]resource.Resource, 0) var mediaEndpoint *string output, err := svc.DescribeEndpoints(&mediaconvert.DescribeEndpointsInput{}) @@ -28,8 +38,8 @@ func ListMediaConvertQueues(sess *session.Session) ([]Resource, error) { return nil, err } - for _, mediaconvert := range output.Endpoints { - mediaEndpoint = mediaconvert.Url + for _, endpoint := range output.Endpoints { + mediaEndpoint = endpoint.Url } // Update svc to use custom media endpoint @@ -62,8 +72,12 @@ func ListMediaConvertQueues(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *MediaConvertQueue) Remove() error { +type MediaConvertQueue struct { + svc *mediaconvert.MediaConvert + name *string +} +func (f *MediaConvertQueue) Remove(_ context.Context) error { _, err := f.svc.DeleteQueue(&mediaconvert.DeleteQueueInput{ Name: f.name, }) diff --git a/resources/medialive-channels.go b/resources/medialive-channels.go index b9ba3172..f50f8ed4 100644 --- a/resources/medialive-channels.go +++ b/resources/medialive-channels.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/medialive" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type MediaLiveChannel struct { - svc *medialive.MediaLive - ID *string -} +const MediaLiveChannelResource = "MediaLiveChannel" func init() { - register("MediaLiveChannel", ListMediaLiveChannels) + resource.Register(resource.Registration{ + Name: MediaLiveChannelResource, + Scope: nuke.Account, + Lister: &MediaLiveChannelLister{}, + }) } -func ListMediaLiveChannels(sess *session.Session) ([]Resource, error) { - svc := medialive.New(sess) - resources := []Resource{} +type MediaLiveChannelLister struct{} + +func (l *MediaLiveChannelLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := medialive.New(opts.Session) + resources := make([]resource.Resource, 0) params := &medialive.ListChannelsInput{ MaxResults: aws.Int64(20), @@ -46,8 +56,12 @@ func ListMediaLiveChannels(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *MediaLiveChannel) Remove() error { +type MediaLiveChannel struct { + svc *medialive.MediaLive + ID *string +} +func (f *MediaLiveChannel) Remove(_ context.Context) error { _, err := f.svc.DeleteChannel(&medialive.DeleteChannelInput{ ChannelId: f.ID, }) diff --git a/resources/medialive-inputs.go b/resources/medialive-inputs.go index d96664b9..7e46c316 100644 --- a/resources/medialive-inputs.go +++ b/resources/medialive-inputs.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/medialive" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type MediaLiveInput struct { - svc *medialive.MediaLive - ID *string -} +const MediaLiveInputResource = "MediaLiveInput" func init() { - register("MediaLiveInput", ListMediaLiveInputs) + resource.Register(resource.Registration{ + Name: MediaLiveInputResource, + Scope: nuke.Account, + Lister: &MediaLiveInputLister{}, + }) } -func ListMediaLiveInputs(sess *session.Session) ([]Resource, error) { - svc := medialive.New(sess) - resources := []Resource{} +type MediaLiveInputLister struct{} + +func (l *MediaLiveInputLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := medialive.New(opts.Session) + resources := make([]resource.Resource, 0) params := &medialive.ListInputsInput{ MaxResults: aws.Int64(20), @@ -46,8 +56,12 @@ func ListMediaLiveInputs(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *MediaLiveInput) Remove() error { +type MediaLiveInput struct { + svc *medialive.MediaLive + ID *string +} +func (f *MediaLiveInput) Remove(_ context.Context) error { _, err := f.svc.DeleteInput(&medialive.DeleteInputInput{ InputId: f.ID, }) diff --git a/resources/medialive-inputsecuritygroups.go b/resources/medialive-inputsecuritygroups.go index 0e62a66a..4293609b 100644 --- a/resources/medialive-inputsecuritygroups.go +++ b/resources/medialive-inputsecuritygroups.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/medialive" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type MediaLiveInputSecurityGroup struct { - svc *medialive.MediaLive - ID *string -} +const MediaLiveInputSecurityGroupResource = "MediaLiveInputSecurityGroup" func init() { - register("MediaLiveInputSecurityGroup", ListMediaLiveInputSecurityGroups) + resource.Register(resource.Registration{ + Name: MediaLiveInputSecurityGroupResource, + Scope: nuke.Account, + Lister: &MediaLiveInputSecurityGroupLister{}, + }) } -func ListMediaLiveInputSecurityGroups(sess *session.Session) ([]Resource, error) { - svc := medialive.New(sess) - resources := []Resource{} +type MediaLiveInputSecurityGroupLister struct{} + +func (l *MediaLiveInputSecurityGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := medialive.New(opts.Session) + resources := make([]resource.Resource, 0) params := &medialive.ListInputSecurityGroupsInput{ MaxResults: aws.Int64(20), @@ -46,8 +56,12 @@ func ListMediaLiveInputSecurityGroups(sess *session.Session) ([]Resource, error) return resources, nil } -func (f *MediaLiveInputSecurityGroup) Remove() error { +type MediaLiveInputSecurityGroup struct { + svc *medialive.MediaLive + ID *string +} +func (f *MediaLiveInputSecurityGroup) Remove(_ context.Context) error { _, err := f.svc.DeleteInputSecurityGroup(&medialive.DeleteInputSecurityGroupInput{ InputSecurityGroupId: f.ID, }) diff --git a/resources/mediapackage-channels.go b/resources/mediapackage-channels.go index c27b2314..1a9f7524 100644 --- a/resources/mediapackage-channels.go +++ b/resources/mediapackage-channels.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/mediapackage" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type MediaPackageChannel struct { - svc *mediapackage.MediaPackage - ID *string -} +const MediaPackageChannelResource = "MediaPackageChannel" func init() { - register("MediaPackageChannel", ListMediaPackageChannels) + resource.Register(resource.Registration{ + Name: MediaPackageChannelResource, + Scope: nuke.Account, + Lister: &MediaPackageChannelLister{}, + }) } -func ListMediaPackageChannels(sess *session.Session) ([]Resource, error) { - svc := mediapackage.New(sess) - resources := []Resource{} +type MediaPackageChannelLister struct{} + +func (l *MediaPackageChannelLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := mediapackage.New(opts.Session) + resources := make([]resource.Resource, 0) params := &mediapackage.ListChannelsInput{ MaxResults: aws.Int64(50), @@ -46,8 +56,12 @@ func ListMediaPackageChannels(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *MediaPackageChannel) Remove() error { +type MediaPackageChannel struct { + svc *mediapackage.MediaPackage + ID *string +} +func (f *MediaPackageChannel) Remove(_ context.Context) error { _, err := f.svc.DeleteChannel(&mediapackage.DeleteChannelInput{ Id: f.ID, }) diff --git a/resources/mediapackage-originendpoints.go b/resources/mediapackage-originendpoints.go index fcf58fbc..2be2cc5b 100644 --- a/resources/mediapackage-originendpoints.go +++ b/resources/mediapackage-originendpoints.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/mediapackage" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type MediaPackageOriginEndpoint struct { - svc *mediapackage.MediaPackage - ID *string -} +const MediaPackageOriginEndpointResource = "MediaPackageOriginEndpoint" func init() { - register("MediaPackageOriginEndpoint", ListMediaPackageOriginEndpoints) + resource.Register(resource.Registration{ + Name: MediaPackageOriginEndpointResource, + Scope: nuke.Account, + Lister: &MediaPackageOriginEndpointLister{}, + }) } -func ListMediaPackageOriginEndpoints(sess *session.Session) ([]Resource, error) { - svc := mediapackage.New(sess) - resources := []Resource{} +type MediaPackageOriginEndpointLister struct{} + +func (l *MediaPackageOriginEndpointLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := mediapackage.New(opts.Session) + resources := make([]resource.Resource, 0) params := &mediapackage.ListOriginEndpointsInput{ MaxResults: aws.Int64(50), @@ -46,8 +56,12 @@ func ListMediaPackageOriginEndpoints(sess *session.Session) ([]Resource, error) return resources, nil } -func (f *MediaPackageOriginEndpoint) Remove() error { +type MediaPackageOriginEndpoint struct { + svc *mediapackage.MediaPackage + ID *string +} +func (f *MediaPackageOriginEndpoint) Remove(_ context.Context) error { _, err := f.svc.DeleteOriginEndpoint(&mediapackage.DeleteOriginEndpointInput{ Id: f.ID, }) diff --git a/resources/mediastore-containers.go b/resources/mediastore-containers.go index 8ccd4f9c..ad955bf7 100644 --- a/resources/mediastore-containers.go +++ b/resources/mediastore-containers.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/mediastore" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type MediaStoreContainer struct { - svc *mediastore.MediaStore - name *string -} +const MediaStoreContainerResource = "MediaStoreContainer" func init() { - register("MediaStoreContainer", ListMediaStoreContainers) + resource.Register(resource.Registration{ + Name: MediaStoreContainerResource, + Scope: nuke.Account, + Lister: &MediaStoreContainerLister{}, + }) } -func ListMediaStoreContainers(sess *session.Session) ([]Resource, error) { - svc := mediastore.New(sess) - resources := []Resource{} +type MediaStoreContainerLister struct{} + +func (l *MediaStoreContainerLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := mediastore.New(opts.Session) + resources := make([]resource.Resource, 0) params := &mediastore.ListContainersInput{ MaxResults: aws.Int64(100), @@ -46,8 +56,12 @@ func ListMediaStoreContainers(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *MediaStoreContainer) Remove() error { +type MediaStoreContainer struct { + svc *mediastore.MediaStore + name *string +} +func (f *MediaStoreContainer) Remove(_ context.Context) error { _, err := f.svc.DeleteContainer(&mediastore.DeleteContainerInput{ ContainerName: f.name, }) diff --git a/resources/mediastoredata-items.go b/resources/mediastoredata-items.go index 0a7bc9aa..6ffaffd9 100644 --- a/resources/mediastoredata-items.go +++ b/resources/mediastoredata-items.go @@ -1,27 +1,38 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/mediastore" "github.com/aws/aws-sdk-go/service/mediastoredata" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type MediaStoreDataItems struct { - svc *mediastoredata.MediaStoreData - path *string -} +const MediaStoreDataItemsResource = "MediaStoreDataItems" func init() { - register("MediaStoreDataItems", ListMediaStoreDataItems) + resource.Register(resource.Registration{ + Name: MediaStoreDataItemsResource, + Scope: nuke.Account, + Lister: &MediaStoreDataItemsLister{}, + }) } -func ListMediaStoreDataItems(sess *session.Session) ([]Resource, error) { - containerSvc := mediastore.New(sess) - svc := mediastoredata.New(sess) +type MediaStoreDataItemsLister struct{} + +func (l *MediaStoreDataItemsLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + containerSvc := mediastore.New(opts.Session) + svc := mediastoredata.New(opts.Session) svc.ClientInfo.SigningName = "mediastore" - resources := []Resource{} - containers := []*mediastore.Container{} + + resources := make([]resource.Resource, 0) + var containers []*mediastore.Container //List all containers containerParams := &mediastore.ListContainersInput{ @@ -77,8 +88,12 @@ func ListMediaStoreDataItems(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *MediaStoreDataItems) Remove() error { +type MediaStoreDataItems struct { + svc *mediastoredata.MediaStoreData + path *string +} +func (f *MediaStoreDataItems) Remove(_ context.Context) error { _, err := f.svc.DeleteObject(&mediastoredata.DeleteObjectInput{ Path: f.path, }) diff --git a/resources/mediatailor-configurations.go b/resources/mediatailor-configurations.go index 6415cd35..84ed414e 100644 --- a/resources/mediatailor-configurations.go +++ b/resources/mediatailor-configurations.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/mediatailor" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type MediaTailorConfiguration struct { - svc *mediatailor.MediaTailor - name *string -} +const MediaTailorConfigurationResource = "MediaTailorConfiguration" func init() { - register("MediaTailorConfiguration", ListMediaTailorConfigurations) + resource.Register(resource.Registration{ + Name: MediaTailorConfigurationResource, + Scope: nuke.Account, + Lister: &MediaTailorConfigurationLister{}, + }) } -func ListMediaTailorConfigurations(sess *session.Session) ([]Resource, error) { - svc := mediatailor.New(sess) - resources := []Resource{} +type MediaTailorConfigurationLister struct{} + +func (l *MediaTailorConfigurationLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := mediatailor.New(opts.Session) + resources := make([]resource.Resource, 0) params := &mediatailor.ListPlaybackConfigurationsInput{ MaxResults: aws.Int64(100), @@ -44,8 +54,12 @@ func ListMediaTailorConfigurations(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *MediaTailorConfiguration) Remove() error { +type MediaTailorConfiguration struct { + svc *mediatailor.MediaTailor + name *string +} +func (f *MediaTailorConfiguration) Remove(_ context.Context) error { _, err := f.svc.DeletePlaybackConfiguration(&mediatailor.DeletePlaybackConfigurationInput{ Name: f.name, }) diff --git a/resources/mgn-jobs.go b/resources/mgn-jobs.go index 2159b3c5..87581c8f 100644 --- a/resources/mgn-jobs.go +++ b/resources/mgn-jobs.go @@ -1,26 +1,36 @@ package resources import ( + "context" + + "errors" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/service/mgn" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type MGNJob struct { - svc *mgn.Mgn - jobID *string - arn *string - tags map[string]*string -} +const MGNJobResource = "MGNJob" func init() { - register("MGNJob", ListMGNJobs) + resource.Register(resource.Registration{ + Name: MGNJobResource, + Scope: nuke.Account, + Lister: &MGNJobLister{}, + }) } -func ListMGNJobs(sess *session.Session) ([]Resource, error) { - svc := mgn.New(sess) - resources := []Resource{} +type MGNJobLister struct{} + +func (l *MGNJobLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := mgn.New(opts.Session) + resources := make([]resource.Resource, 0) params := &mgn.DescribeJobsInput{ MaxResults: aws.Int64(50), @@ -29,6 +39,12 @@ func ListMGNJobs(sess *session.Session) ([]Resource, error) { for { output, err := svc.DescribeJobs(params) if err != nil { + var awsErr awserr.Error + ok := errors.As(err, &awsErr) + if ok && awsErr.Code() == "UninitializedAccountException" { + return nil, nil + } + return nil, err } @@ -51,8 +67,14 @@ func ListMGNJobs(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *MGNJob) Remove() error { +type MGNJob struct { + svc *mgn.Mgn + jobID *string + arn *string + tags map[string]*string +} +func (f *MGNJob) Remove(_ context.Context) error { _, err := f.svc.DeleteJob(&mgn.DeleteJobInput{ JobID: f.jobID, }) @@ -68,6 +90,7 @@ func (f *MGNJob) Properties() types.Properties { for key, val := range f.tags { properties.SetTag(&key, val) } + return properties } diff --git a/resources/mgn-source_servers.go b/resources/mgn-source-servers.go similarity index 60% rename from resources/mgn-source_servers.go rename to resources/mgn-source-servers.go index 706138a7..e26072a8 100644 --- a/resources/mgn-source_servers.go +++ b/resources/mgn-source-servers.go @@ -1,26 +1,36 @@ package resources import ( + "context" + + "errors" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/service/mgn" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type MGNSourceServer struct { - svc *mgn.Mgn - sourceServerID *string - arn *string - tags map[string]*string -} +const MGNSourceServerResource = "MGNSourceServer" func init() { - register("MGNSourceServer", ListMGNSourceServers) + resource.Register(resource.Registration{ + Name: MGNSourceServerResource, + Scope: nuke.Account, + Lister: &MGNSourceServerLister{}, + }) } -func ListMGNSourceServers(sess *session.Session) ([]Resource, error) { - svc := mgn.New(sess) - resources := []Resource{} +type MGNSourceServerLister struct{} + +func (l *MGNSourceServerLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := mgn.New(opts.Session) + resources := make([]resource.Resource, 0) params := &mgn.DescribeSourceServersInput{ MaxResults: aws.Int64(50), @@ -29,6 +39,12 @@ func ListMGNSourceServers(sess *session.Session) ([]Resource, error) { for { output, err := svc.DescribeSourceServers(params) if err != nil { + var awsErr awserr.Error + ok := errors.As(err, &awsErr) + if ok && awsErr.Code() == "UninitializedAccountException" { + return nil, nil + } + return nil, err } @@ -51,8 +67,14 @@ func ListMGNSourceServers(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *MGNSourceServer) Remove() error { +type MGNSourceServer struct { + svc *mgn.Mgn + sourceServerID *string + arn *string + tags map[string]*string +} +func (f *MGNSourceServer) Remove(_ context.Context) error { _, err := f.svc.DeleteSourceServer(&mgn.DeleteSourceServerInput{ SourceServerID: f.sourceServerID, }) @@ -68,6 +90,7 @@ func (f *MGNSourceServer) Properties() types.Properties { for key, val := range f.tags { properties.SetTag(&key, val) } + return properties } diff --git a/resources/mobile-projects.go b/resources/mobile-projects.go index 21ca3ae3..f9411681 100644 --- a/resources/mobile-projects.go +++ b/resources/mobile-projects.go @@ -1,24 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/mobile" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type MobileProject struct { - svc *mobile.Mobile - projectID *string -} +const MobileProjectResource = "MobileProject" func init() { - register("MobileProject", ListMobileProjects) + resource.Register(resource.Registration{ + Name: MobileProjectResource, + Scope: nuke.Account, + Lister: &MobileProjectLister{}, + }) } -func ListMobileProjects(sess *session.Session) ([]Resource, error) { - svc := mobile.New(sess) +type MobileProjectLister struct{} + +func (l *MobileProjectLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := mobile.New(opts.Session) svc.ClientInfo.SigningName = "AWSMobileHubService" - resources := []Resource{} + resources := make([]resource.Resource, 0) params := &mobile.ListProjectsInput{ MaxResults: aws.Int64(100), @@ -47,8 +57,12 @@ func ListMobileProjects(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *MobileProject) Remove() error { +type MobileProject struct { + svc *mobile.Mobile + projectID *string +} +func (f *MobileProject) Remove(_ context.Context) error { _, err := f.svc.DeleteProject(&mobile.DeleteProjectInput{ ProjectId: f.projectID, }) diff --git a/resources/mq-broker.go b/resources/mq-broker.go index ac972a28..4e81da0a 100644 --- a/resources/mq-broker.go +++ b/resources/mq-broker.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/mq" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type MQBroker struct { - svc *mq.MQ - brokerID *string -} +const MQBrokerResource = "MQBroker" func init() { - register("MQBroker", ListMQBrokers) + resource.Register(resource.Registration{ + Name: MQBrokerResource, + Scope: nuke.Account, + Lister: &MQBrokerLister{}, + }) } -func ListMQBrokers(sess *session.Session) ([]Resource, error) { - svc := mq.New(sess) - resources := []Resource{} +type MQBrokerLister struct{} + +func (l *MQBrokerLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := mq.New(opts.Session) + resources := make([]resource.Resource, 0) params := &mq.ListBrokersInput{ MaxResults: aws.Int64(100), @@ -44,8 +54,12 @@ func ListMQBrokers(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *MQBroker) Remove() error { +type MQBroker struct { + svc *mq.MQ + brokerID *string +} +func (f *MQBroker) Remove(_ context.Context) error { _, err := f.svc.DeleteBroker(&mq.DeleteBrokerInput{ BrokerId: f.brokerID, }) diff --git a/resources/msk-cluster.go b/resources/msk-cluster.go index 4c3be6c3..44827f05 100644 --- a/resources/msk-cluster.go +++ b/resources/msk-cluster.go @@ -1,32 +1,40 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/kafka" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type MSKCluster struct { - svc *kafka.Kafka - arn string - name string - tags map[string]*string -} +const MSKClusterResource = "MSKCluster" func init() { - register("MSKCluster", ListMSKCluster) + resource.Register(resource.Registration{ + Name: MSKClusterResource, + Scope: nuke.Account, + Lister: &MSKClusterLister{}, + }) } -func ListMSKCluster(sess *session.Session) ([]Resource, error) { - svc := kafka.New(sess) +type MSKClusterLister struct{} + +func (l *MSKClusterLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := kafka.New(opts.Session) params := &kafka.ListClustersInput{} resp, err := svc.ListClusters(params) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, cluster := range resp.ClusterInfoList { resources = append(resources, &MSKCluster{ svc: svc, @@ -39,7 +47,14 @@ func ListMSKCluster(sess *session.Session) ([]Resource, error) { return resources, nil } -func (m *MSKCluster) Remove() error { +type MSKCluster struct { + svc *kafka.Kafka + arn string + name string + tags map[string]*string +} + +func (m *MSKCluster) Remove(_ context.Context) error { params := &kafka.DeleteClusterInput{ ClusterArn: &m.arn, } diff --git a/resources/msk-configuration.go b/resources/msk-configuration.go index 97095b85..0944d586 100644 --- a/resources/msk-configuration.go +++ b/resources/msk-configuration.go @@ -1,30 +1,39 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/kafka" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type MSKConfiguration struct { - svc *kafka.Kafka - arn string - name string -} +const MSKConfigurationResource = "MSKConfiguration" func init() { - register("MSKConfiguration", ListMSKConfigurations) + resource.Register(resource.Registration{ + Name: MSKConfigurationResource, + Scope: nuke.Account, + Lister: &MSKConfigurationLister{}, + }) } -func ListMSKConfigurations(sess *session.Session) ([]Resource, error) { - svc := kafka.New(sess) +type MSKConfigurationLister struct{} + +func (l *MSKConfigurationLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := kafka.New(opts.Session) params := &kafka.ListConfigurationsInput{} resp, err := svc.ListConfigurations(params) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, configuration := range resp.Configurations { resources = append(resources, &MSKConfiguration{ svc: svc, @@ -36,7 +45,13 @@ func ListMSKConfigurations(sess *session.Session) ([]Resource, error) { return resources, nil } -func (m *MSKConfiguration) Remove() error { +type MSKConfiguration struct { + svc *kafka.Kafka + arn string + name string +} + +func (m *MSKConfiguration) Remove(_ context.Context) error { params := &kafka.DeleteConfigurationInput{ Arn: &m.arn, } diff --git a/resources/neptune-clusters.go b/resources/neptune-clusters.go index bda38efa..b0fbd298 100644 --- a/resources/neptune-clusters.go +++ b/resources/neptune-clusters.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/neptune" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type NeptuneCluster struct { - svc *neptune.Neptune - ID *string -} +const NeptuneClusterResource = "NeptuneCluster" func init() { - register("NeptuneCluster", ListNeptuneClusters) + resource.Register(resource.Registration{ + Name: NeptuneClusterResource, + Scope: nuke.Account, + Lister: &NeptuneClusterLister{}, + }) } -func ListNeptuneClusters(sess *session.Session) ([]Resource, error) { - svc := neptune.New(sess) - resources := []Resource{} +type NeptuneClusterLister struct{} + +func (l *NeptuneClusterLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := neptune.New(opts.Session) + resources := make([]resource.Resource, 0) params := &neptune.DescribeDBClustersInput{ MaxRecords: aws.Int64(100), @@ -46,8 +56,12 @@ func ListNeptuneClusters(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *NeptuneCluster) Remove() error { +type NeptuneCluster struct { + svc *neptune.Neptune + ID *string +} +func (f *NeptuneCluster) Remove(_ context.Context) error { _, err := f.svc.DeleteDBCluster(&neptune.DeleteDBClusterInput{ DBClusterIdentifier: f.ID, SkipFinalSnapshot: aws.Bool(true), diff --git a/resources/neptune-instances.go b/resources/neptune-instances.go index d4797990..20daeb4f 100644 --- a/resources/neptune-instances.go +++ b/resources/neptune-instances.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/neptune" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type NeptuneInstance struct { - svc *neptune.Neptune - ID *string -} +const NeptuneInstanceResource = "NeptuneInstance" func init() { - register("NeptuneInstance", ListNeptuneInstances) + resource.Register(resource.Registration{ + Name: NeptuneInstanceResource, + Scope: nuke.Account, + Lister: &NeptuneInstanceLister{}, + }) } -func ListNeptuneInstances(sess *session.Session) ([]Resource, error) { - svc := neptune.New(sess) - resources := []Resource{} +type NeptuneInstanceLister struct{} + +func (l *NeptuneInstanceLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := neptune.New(opts.Session) + resources := make([]resource.Resource, 0) params := &neptune.DescribeDBInstancesInput{ MaxRecords: aws.Int64(100), @@ -46,8 +56,12 @@ func ListNeptuneInstances(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *NeptuneInstance) Remove() error { +type NeptuneInstance struct { + svc *neptune.Neptune + ID *string +} +func (f *NeptuneInstance) Remove(_ context.Context) error { _, err := f.svc.DeleteDBInstance(&neptune.DeleteDBInstanceInput{ DBInstanceIdentifier: f.ID, SkipFinalSnapshot: aws.Bool(true), diff --git a/resources/neptune-snapshots.go b/resources/neptune-snapshots.go index 5ec8b1e0..348683a5 100644 --- a/resources/neptune-snapshots.go +++ b/resources/neptune-snapshots.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/neptune" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type NetpuneSnapshot struct { - svc *neptune.Neptune - ID *string -} +const NeptuneSnapshotResource = "NeptuneSnapshot" func init() { - register("NetpuneSnapshot", ListNetpuneSnapshots) + resource.Register(resource.Registration{ + Name: NeptuneSnapshotResource, + Scope: nuke.Account, + Lister: &NeptuneSnapshotLister{}, + }) } -func ListNetpuneSnapshots(sess *session.Session) ([]Resource, error) { - svc := neptune.New(sess) - resources := []Resource{} +type NeptuneSnapshotLister struct{} + +func (l *NeptuneSnapshotLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := neptune.New(opts.Session) + resources := make([]resource.Resource, 0) params := &neptune.DescribeDBClusterSnapshotsInput{ MaxRecords: aws.Int64(100), @@ -30,7 +40,7 @@ func ListNetpuneSnapshots(sess *session.Session) ([]Resource, error) { } for _, dbClusterSnapshot := range output.DBClusterSnapshots { - resources = append(resources, &NetpuneSnapshot{ + resources = append(resources, &NeptuneSnapshot{ svc: svc, ID: dbClusterSnapshot.DBClusterSnapshotIdentifier, }) @@ -46,8 +56,12 @@ func ListNetpuneSnapshots(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *NetpuneSnapshot) Remove() error { +type NeptuneSnapshot struct { + svc *neptune.Neptune + ID *string +} +func (f *NeptuneSnapshot) Remove(_ context.Context) error { _, err := f.svc.DeleteDBClusterSnapshot(&neptune.DeleteDBClusterSnapshotInput{ DBClusterSnapshotIdentifier: f.ID, }) @@ -55,6 +69,6 @@ func (f *NetpuneSnapshot) Remove() error { return err } -func (f *NetpuneSnapshot) String() string { +func (f *NeptuneSnapshot) String() string { return *f.ID } diff --git a/resources/opensearchservice-domain.go b/resources/opensearchservice-domain.go index 4781d7ac..7d77fd62 100644 --- a/resources/opensearchservice-domain.go +++ b/resources/opensearchservice-domain.go @@ -1,26 +1,34 @@ package resources import ( + "context" + "time" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/opensearchservice" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type OSDomain struct { - svc *opensearchservice.OpenSearchService - domainName *string - lastUpdatedTime *time.Time - tagList []*opensearchservice.Tag -} +const OSDomainResource = "OSDomain" func init() { - register("OSDomain", ListOSDomains) + resource.Register(resource.Registration{ + Name: OSDomainResource, + Scope: nuke.Account, + Lister: &OSDomainLister{}, + }) } -func ListOSDomains(sess *session.Session) ([]Resource, error) { - svc := opensearchservice.New(sess) +type OSDomainLister struct{} + +func (l *OSDomainLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := opensearchservice.New(opts.Session) listResp, err := svc.ListDomainNames(&opensearchservice.ListDomainNamesInput{}) if err != nil { @@ -31,7 +39,7 @@ func ListOSDomains(sess *session.Session) ([]Resource, error) { domainNames = append(domainNames, domain.DomainName) } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) // early return to prevent the `missing required field, DescribeDomainsInput.DomainNames.` error if len(domainNames) == 0 { @@ -68,7 +76,14 @@ func ListOSDomains(sess *session.Session) ([]Resource, error) { return resources, nil } -func (o *OSDomain) Remove() error { +type OSDomain struct { + svc *opensearchservice.OpenSearchService + domainName *string + lastUpdatedTime *time.Time + tagList []*opensearchservice.Tag +} + +func (o *OSDomain) Remove(_ context.Context) error { _, err := o.svc.DeleteDomain(&opensearchservice.DeleteDomainInput{ DomainName: o.domainName, }) diff --git a/resources/opsworks-apps.go b/resources/opsworks-apps.go index 4f784fad..4502c033 100644 --- a/resources/opsworks-apps.go +++ b/resources/opsworks-apps.go @@ -1,22 +1,32 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/opsworks" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type OpsWorksApp struct { - svc *opsworks.OpsWorks - ID *string -} +const OpsWorksAppResource = "OpsWorksApp" func init() { - register("OpsWorksApp", ListOpsWorksApps) + resource.Register(resource.Registration{ + Name: OpsWorksAppResource, + Scope: nuke.Account, + Lister: &OpsWorksAppLister{}, + }) } -func ListOpsWorksApps(sess *session.Session) ([]Resource, error) { - svc := opsworks.New(sess) - resources := []Resource{} +type OpsWorksAppLister struct{} + +func (l *OpsWorksAppLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := opsworks.New(opts.Session) + resources := make([]resource.Resource, 0) stackParams := &opsworks.DescribeStacksInput{} @@ -45,8 +55,12 @@ func ListOpsWorksApps(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *OpsWorksApp) Remove() error { +type OpsWorksApp struct { + svc *opsworks.OpsWorks + ID *string +} +func (f *OpsWorksApp) Remove(_ context.Context) error { _, err := f.svc.DeleteApp(&opsworks.DeleteAppInput{ AppId: f.ID, }) diff --git a/resources/opsworks-instances.go b/resources/opsworks-instances.go index c60e8df4..97ea4f7b 100644 --- a/resources/opsworks-instances.go +++ b/resources/opsworks-instances.go @@ -1,22 +1,32 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/opsworks" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type OpsWorksInstance struct { - svc *opsworks.OpsWorks - ID *string -} +const OpsWorksInstanceResource = "OpsWorksInstance" func init() { - register("OpsWorksInstance", ListOpsWorksInstances) + resource.Register(resource.Registration{ + Name: OpsWorksInstanceResource, + Scope: nuke.Account, + Lister: &OpsWorksInstanceLister{}, + }) } -func ListOpsWorksInstances(sess *session.Session) ([]Resource, error) { - svc := opsworks.New(sess) - resources := []Resource{} +type OpsWorksInstanceLister struct{} + +func (l *OpsWorksInstanceLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := opsworks.New(opts.Session) + resources := make([]resource.Resource, 0) stackParams := &opsworks.DescribeStacksInput{} @@ -44,8 +54,12 @@ func ListOpsWorksInstances(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *OpsWorksInstance) Remove() error { +type OpsWorksInstance struct { + svc *opsworks.OpsWorks + ID *string +} +func (f *OpsWorksInstance) Remove(_ context.Context) error { _, err := f.svc.DeleteInstance(&opsworks.DeleteInstanceInput{ InstanceId: f.ID, }) diff --git a/resources/opsworks-layers.go b/resources/opsworks-layers.go index 078ce252..9deeaa50 100644 --- a/resources/opsworks-layers.go +++ b/resources/opsworks-layers.go @@ -1,22 +1,32 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/opsworks" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type OpsWorksLayer struct { - svc *opsworks.OpsWorks - ID *string -} +const OpsWorksLayerResource = "OpsWorksLayer" func init() { - register("OpsWorksLayer", ListOpsWorksLayers) + resource.Register(resource.Registration{ + Name: OpsWorksLayerResource, + Scope: nuke.Account, + Lister: &OpsWorksLayerLister{}, + }) } -func ListOpsWorksLayers(sess *session.Session) ([]Resource, error) { - svc := opsworks.New(sess) - resources := []Resource{} +type OpsWorksLayerLister struct{} + +func (l *OpsWorksLayerLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := opsworks.New(opts.Session) + resources := make([]resource.Resource, 0) stackParams := &opsworks.DescribeStacksInput{} @@ -45,8 +55,12 @@ func ListOpsWorksLayers(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *OpsWorksLayer) Remove() error { +type OpsWorksLayer struct { + svc *opsworks.OpsWorks + ID *string +} +func (f *OpsWorksLayer) Remove(_ context.Context) error { _, err := f.svc.DeleteLayer(&opsworks.DeleteLayerInput{ LayerId: f.ID, }) diff --git a/resources/opsworks-userprofiles.go b/resources/opsworks-userprofiles.go index 54000a5e..a5b4b18b 100644 --- a/resources/opsworks-userprofiles.go +++ b/resources/opsworks-userprofiles.go @@ -1,28 +1,39 @@ package resources import ( + "context" + "fmt" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/opsworks" "github.com/aws/aws-sdk-go/service/sts" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type OpsWorksUserProfile struct { - svc *opsworks.OpsWorks - ARN *string - callingArn *string -} +const OpsWorksUserProfileResource = "OpsWorksUserProfile" func init() { - register("OpsWorksUserProfile", ListOpsWorksUserProfiles) + resource.Register(resource.Registration{ + Name: OpsWorksUserProfileResource, + Scope: nuke.Account, + Lister: &OpsWorksUserProfileLister{}, + }) } -func ListOpsWorksUserProfiles(sess *session.Session) ([]Resource, error) { - svc := opsworks.New(sess) - resources := []Resource{} +type OpsWorksUserProfileLister struct{} - identityOutput, err := sts.New(sess).GetCallerIdentity(nil) +func (l *OpsWorksUserProfileLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := opsworks.New(opts.Session) + resources := make([]resource.Resource, 0) + + // TODO: pass in account information via ListerOpts to avoid additional calls. + + identityOutput, err := sts.New(opts.Session).GetCallerIdentity(nil) if err != nil { return nil, err } @@ -45,14 +56,20 @@ func ListOpsWorksUserProfiles(sess *session.Session) ([]Resource, error) { return resources, nil } +type OpsWorksUserProfile struct { + svc *opsworks.OpsWorks + ARN *string + callingArn *string +} + func (f *OpsWorksUserProfile) Filter() error { if *f.callingArn == *f.ARN { - return fmt.Errorf("Cannot delete OpsWorksUserProfile of calling User") + return fmt.Errorf("cannot delete OpsWorksUserProfile of calling User") } return nil } -func (f *OpsWorksUserProfile) Remove() error { +func (f *OpsWorksUserProfile) Remove(_ context.Context) error { _, err := f.svc.DeleteUserProfile(&opsworks.DeleteUserProfileInput{ IamUserArn: f.ARN, }) diff --git a/resources/opsworkscm-backups.go b/resources/opsworkscm-backups.go index c1ef69fd..cdfeca6d 100644 --- a/resources/opsworkscm-backups.go +++ b/resources/opsworkscm-backups.go @@ -1,22 +1,32 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/opsworkscm" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type OpsWorksCMBackup struct { - svc *opsworkscm.OpsWorksCM - ID *string -} +const OpsWorksCMBackupResource = "OpsWorksCMBackup" func init() { - register("OpsWorksCMBackup", ListOpsWorksCMBackups) + resource.Register(resource.Registration{ + Name: OpsWorksCMBackupResource, + Scope: nuke.Account, + Lister: &OpsWorksCMBackupLister{}, + }) } -func ListOpsWorksCMBackups(sess *session.Session) ([]Resource, error) { - svc := opsworkscm.New(sess) - resources := []Resource{} +type OpsWorksCMBackupLister struct{} + +func (l *OpsWorksCMBackupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := opsworkscm.New(opts.Session) + resources := make([]resource.Resource, 0) params := &opsworkscm.DescribeBackupsInput{} @@ -35,8 +45,12 @@ func ListOpsWorksCMBackups(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *OpsWorksCMBackup) Remove() error { +type OpsWorksCMBackup struct { + svc *opsworkscm.OpsWorksCM + ID *string +} +func (f *OpsWorksCMBackup) Remove(_ context.Context) error { _, err := f.svc.DeleteBackup(&opsworkscm.DeleteBackupInput{ BackupId: f.ID, }) diff --git a/resources/opsworkscm-servers.go b/resources/opsworkscm-servers.go index 3f586b25..c5091ff7 100644 --- a/resources/opsworkscm-servers.go +++ b/resources/opsworkscm-servers.go @@ -1,23 +1,32 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/opsworkscm" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type OpsWorksCMServer struct { - svc *opsworkscm.OpsWorksCM - name *string - status *string -} +const OpsWorksCMServerResource = "OpsWorksCMServer" func init() { - register("OpsWorksCMServer", ListOpsWorksCMServers) + resource.Register(resource.Registration{ + Name: OpsWorksCMServerResource, + Scope: nuke.Account, + Lister: &OpsWorksCMServerLister{}, + }) } -func ListOpsWorksCMServers(sess *session.Session) ([]Resource, error) { - svc := opsworkscm.New(sess) - resources := []Resource{} +type OpsWorksCMServerLister struct{} + +func (l *OpsWorksCMServerLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := opsworkscm.New(opts.Session) + resources := make([]resource.Resource, 0) params := &opsworkscm.DescribeServersInput{} @@ -36,8 +45,13 @@ func ListOpsWorksCMServers(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *OpsWorksCMServer) Remove() error { +type OpsWorksCMServer struct { + svc *opsworkscm.OpsWorksCM + name *string + status *string +} +func (f *OpsWorksCMServer) Remove(_ context.Context) error { _, err := f.svc.DeleteServer(&opsworkscm.DeleteServerInput{ ServerName: f.name, }) diff --git a/resources/opsworkscm-serverstates.go b/resources/opsworkscm-serverstates.go index 5b3f14d0..a8193a6b 100644 --- a/resources/opsworkscm-serverstates.go +++ b/resources/opsworkscm-serverstates.go @@ -1,25 +1,34 @@ package resources import ( + "context" + "fmt" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/opsworkscm" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type OpsWorksCMServerState struct { - svc *opsworkscm.OpsWorksCM - name *string - status *string -} +const OpsWorksCMServerStateResource = "OpsWorksCMServerState" func init() { - register("OpsWorksCMServerState", ListOpsWorksCMServerStates) + resource.Register(resource.Registration{ + Name: OpsWorksCMServerStateResource, + Scope: nuke.Account, + Lister: &OpsWorksCMServerStateLister{}, + }) } -func ListOpsWorksCMServerStates(sess *session.Session) ([]Resource, error) { - svc := opsworkscm.New(sess) - resources := []Resource{} +type OpsWorksCMServerStateLister struct{} + +func (l *OpsWorksCMServerStateLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := opsworkscm.New(opts.Session) + resources := make([]resource.Resource, 0) params := &opsworkscm.DescribeServersInput{} @@ -39,7 +48,13 @@ func ListOpsWorksCMServerStates(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *OpsWorksCMServerState) Remove() error { +type OpsWorksCMServerState struct { + svc *opsworkscm.OpsWorksCM + name *string + status *string +} + +func (f *OpsWorksCMServerState) Remove(_ context.Context) error { return nil } diff --git a/resources/prometheusservice-workspace.go b/resources/prometheusservice-workspace.go index f648300c..353f1cbc 100644 --- a/resources/prometheusservice-workspace.go +++ b/resources/prometheusservice-workspace.go @@ -1,26 +1,33 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/prometheusservice" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type AMPWorkspace struct { - svc *prometheusservice.PrometheusService - workspaceAlias *string - workspaceARN *string - workspaceId *string -} +const AMPWorkspaceResource = "AMPWorkspace" func init() { - register("AMPWorkspace", ListAMPWorkspaces, - mapCloudControl("AWS::APS::Workspace")) + resource.Register(resource.Registration{ + Name: AMPWorkspaceResource, + Scope: nuke.Account, + Lister: &WorkspaceLister{}, + }) } -func ListAMPWorkspaces(sess *session.Session) ([]Resource, error) { - svc := prometheusservice.New(sess) - resources := []Resource{} +type AMPWorkspaceLister struct{} + +func (l *AMPWorkspaceLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := prometheusservice.New(opts.Session) + resources := make([]resource.Resource, 0) var ampWorkspaces []*prometheusservice.WorkspaceSummary err := svc.ListWorkspacesPages( @@ -46,7 +53,14 @@ func ListAMPWorkspaces(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *AMPWorkspace) Remove() error { +type AMPWorkspace struct { + svc *prometheusservice.PrometheusService + workspaceAlias *string + workspaceARN *string + workspaceId *string +} + +func (f *AMPWorkspace) Remove(_ context.Context) error { _, err := f.svc.DeleteWorkspace(&prometheusservice.DeleteWorkspaceInput{ WorkspaceId: f.workspaceId, }) diff --git a/resources/qldb_ledger.go b/resources/qldb-ledger.go similarity index 61% rename from resources/qldb_ledger.go rename to resources/qldb-ledger.go index c00b7b05..73053e6d 100644 --- a/resources/qldb_ledger.go +++ b/resources/qldb-ledger.go @@ -1,31 +1,39 @@ package resources import ( + "context" + "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/qldb" - "github.com/rebuy-de/aws-nuke/v2/pkg/config" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" -) -type QLDBLedger struct { - svc *qldb.QLDB - ledger *qldb.DescribeLedgerOutput + "github.com/ekristen/libnuke/pkg/featureflag" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" - featureFlags config.FeatureFlags -} + "github.com/ekristen/aws-nuke/pkg/nuke" +) + +const QLDBLedgerResource = "QLDBLedger" func init() { - register("QLDBLedger", ListQLDBLedgers) + resource.Register(resource.Registration{ + Name: QLDBLedgerResource, + Scope: nuke.Account, + Lister: &QLDBLedgerLister{}, + }) } -func ListQLDBLedgers(sess *session.Session) ([]Resource, error) { - svc := qldb.New(sess) +type QLDBLedgerLister struct{} + +func (l *QLDBLedgerLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := qldb.New(opts.Session) params := &qldb.ListLedgersInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { resp, err := svc.ListLedgers(params) @@ -54,17 +62,29 @@ func ListQLDBLedgers(sess *session.Session) ([]Resource, error) { return resources, nil } -func (l *QLDBLedger) FeatureFlags(ff config.FeatureFlags) { +type QLDBLedger struct { + svc *qldb.QLDB + ledger *qldb.DescribeLedgerOutput + + featureFlags *featureflag.FeatureFlags +} + +func (l *QLDBLedger) FeatureFlags(ff *featureflag.FeatureFlags) { l.featureFlags = ff } -func (l *QLDBLedger) Remove() error { - if aws.BoolValue(l.ledger.DeletionProtection) && l.featureFlags.DisableDeletionProtection.QLDBLedger { +func (l *QLDBLedger) Remove(_ context.Context) error { + ffDDP, err := l.featureFlags.Get("DisableDeletionProtection_QLDBLedger") + if err != nil { + return err + } + + if aws.BoolValue(l.ledger.DeletionProtection) && ffDDP.Enabled() { modifyParams := &qldb.UpdateLedgerInput{ DeletionProtection: aws.Bool(false), Name: l.ledger.Name, } - _, err := l.svc.UpdateLedger((modifyParams)) + _, err := l.svc.UpdateLedger(modifyParams) if err != nil { return err } @@ -74,8 +94,7 @@ func (l *QLDBLedger) Remove() error { Name: l.ledger.Name, } - _, err := l.svc.DeleteLedger(params) - if err != nil { + if _, err := l.svc.DeleteLedger(params); err != nil { return err } diff --git a/resources/rds-cluster-snapshots.go b/resources/rds-cluster-snapshots.go index c8616987..18cbc38a 100644 --- a/resources/rds-cluster-snapshots.go +++ b/resources/rds-cluster-snapshots.go @@ -1,26 +1,34 @@ package resources import ( + "context" + "fmt" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/rds" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type RDSClusterSnapshot struct { - svc *rds.RDS - snapshot *rds.DBClusterSnapshot - tags []*rds.Tag -} +const RDSClusterSnapshotResource = "RDSClusterSnapshot" func init() { - register("RDSClusterSnapshot", ListRDSClusterSnapshots) + resource.Register(resource.Registration{ + Name: RDSClusterSnapshotResource, + Scope: nuke.Account, + Lister: &RDSClusterSnapshotLister{}, + }) } -func ListRDSClusterSnapshots(sess *session.Session) ([]Resource, error) { - svc := rds.New(sess) +type RDSClusterSnapshotLister struct{} + +func (l *RDSClusterSnapshotLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := rds.New(opts.Session) params := &rds.DescribeDBClusterSnapshotsInput{MaxRecords: aws.Int64(100)} @@ -28,7 +36,7 @@ func ListRDSClusterSnapshots(sess *session.Session) ([]Resource, error) { if err != nil { return nil, err } - var resources []Resource + var resources []resource.Resource for _, snapshot := range resp.DBClusterSnapshots { tags, err := svc.ListTagsForResource(&rds.ListTagsForResourceInput{ ResourceName: snapshot.DBClusterSnapshotArn, @@ -48,6 +56,12 @@ func ListRDSClusterSnapshots(sess *session.Session) ([]Resource, error) { return resources, nil } +type RDSClusterSnapshot struct { + svc *rds.RDS + snapshot *rds.DBClusterSnapshot + tags []*rds.Tag +} + func (i *RDSClusterSnapshot) Filter() error { if *i.snapshot.SnapshotType == "automated" { return fmt.Errorf("cannot delete automated snapshots") @@ -55,7 +69,7 @@ func (i *RDSClusterSnapshot) Filter() error { return nil } -func (i *RDSClusterSnapshot) Remove() error { +func (i *RDSClusterSnapshot) Remove(_ context.Context) error { if i.snapshot.DBClusterSnapshotIdentifier == nil { // Sanity check to make sure the delete request does not skip the // identifier. diff --git a/resources/rds-clusters.go b/resources/rds-clusters.go index 88271251..4e5345bd 100644 --- a/resources/rds-clusters.go +++ b/resources/rds-clusters.go @@ -1,25 +1,32 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/rds" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type RDSDBCluster struct { - svc *rds.RDS - id string - deletionProtection bool - tags []*rds.Tag -} +const RDSDBClusterResource = "RDSDBCluster" func init() { - register("RDSDBCluster", ListRDSClusters) + resource.Register(resource.Registration{ + Name: RDSDBClusterResource, + Scope: nuke.Account, + Lister: &RDSDBClusterLister{}, + }) } -func ListRDSClusters(sess *session.Session) ([]Resource, error) { - svc := rds.New(sess) +type RDSDBClusterLister struct{} + +func (l *RDSDBClusterLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := rds.New(opts.Session) params := &rds.DescribeDBClustersInput{} resp, err := svc.DescribeDBClusters(params) @@ -27,15 +34,15 @@ func ListRDSClusters(sess *session.Session) ([]Resource, error) { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, instance := range resp.DBClusters { tags, err := svc.ListTagsForResource(&rds.ListTagsForResourceInput{ - ResourceName: instance.DBClusterArn, - }) + ResourceName: instance.DBClusterArn, + }) - if err != nil { - continue - } + if err != nil { + continue + } resources = append(resources, &RDSDBCluster{ svc: svc, @@ -48,8 +55,15 @@ func ListRDSClusters(sess *session.Session) ([]Resource, error) { return resources, nil } -func (i *RDSDBCluster) Remove() error { - if (i.deletionProtection) { +type RDSDBCluster struct { + svc *rds.RDS + id string + deletionProtection bool + tags []*rds.Tag +} + +func (i *RDSDBCluster) Remove(_ context.Context) error { + if i.deletionProtection { modifyParams := &rds.ModifyDBClusterInput{ DBClusterIdentifier: &i.id, DeletionProtection: aws.Bool(false), @@ -78,13 +92,13 @@ func (i *RDSDBCluster) String() string { } func (i *RDSDBCluster) Properties() types.Properties { - properties := types.NewProperties() - properties.Set("Identifier", i.id) + properties := types.NewProperties() + properties.Set("Identifier", i.id) properties.Set("Deletion Protection", i.deletionProtection) - for _, tag := range i.tags { - properties.SetTag(tag.Key, tag.Value) - } + for _, tag := range i.tags { + properties.SetTag(tag.Key, tag.Value) + } - return properties + return properties } diff --git a/resources/rds-dbclusterparametergroups.go b/resources/rds-dbclusterparametergroups.go index 9466d8c5..8e74cbc2 100644 --- a/resources/rds-dbclusterparametergroups.go +++ b/resources/rds-dbclusterparametergroups.go @@ -1,46 +1,54 @@ package resources import ( + "context" + "fmt" "strings" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/rds" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type RDSDBClusterParameterGroup struct { - svc *rds.RDS - name *string - tags []*rds.Tag -} +const RDSDBClusterParameterGroupResource = "RDSDBClusterParameterGroup" func init() { - register("RDSDBClusterParameterGroup", ListRDSClusterParameterGroups) + resource.Register(resource.Registration{ + Name: RDSDBClusterParameterGroupResource, + Scope: nuke.Account, + Lister: &RDSDBClusterParameterGroupLister{}, + }) } -func ListRDSClusterParameterGroups(sess *session.Session) ([]Resource, error) { - svc := rds.New(sess) +type RDSDBClusterParameterGroupLister struct{} + +func (l *RDSDBClusterParameterGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := rds.New(opts.Session) params := &rds.DescribeDBClusterParameterGroupsInput{MaxRecords: aws.Int64(100)} resp, err := svc.DescribeDBClusterParameterGroups(params) if err != nil { return nil, err } - var resources []Resource - for _, parametergroup := range resp.DBClusterParameterGroups { + var resources []resource.Resource + for _, group := range resp.DBClusterParameterGroups { tags, err := svc.ListTagsForResource(&rds.ListTagsForResourceInput{ - ResourceName: parametergroup.DBClusterParameterGroupArn, - }) + ResourceName: group.DBClusterParameterGroupArn, + }) - if err != nil { - continue - } + if err != nil { + continue + } resources = append(resources, &RDSDBClusterParameterGroup{ svc: svc, - name: parametergroup.DBClusterParameterGroupName, + name: group.DBClusterParameterGroupName, tags: tags.TagList, }) @@ -49,14 +57,20 @@ func ListRDSClusterParameterGroups(sess *session.Session) ([]Resource, error) { return resources, nil } +type RDSDBClusterParameterGroup struct { + svc *rds.RDS + name *string + tags []*rds.Tag +} + func (i *RDSDBClusterParameterGroup) Filter() error { if strings.HasPrefix(*i.name, "default.") { - return fmt.Errorf("Cannot delete default parameter group") + return fmt.Errorf("cannot delete default parameter group") } return nil } -func (i *RDSDBClusterParameterGroup) Remove() error { +func (i *RDSDBClusterParameterGroup) Remove(_ context.Context) error { params := &rds.DeleteDBClusterParameterGroupInput{ DBClusterParameterGroupName: i.name, } diff --git a/resources/rds-dbparametergroups.go b/resources/rds-dbparametergroups.go index f4db4a7e..e49fd47d 100644 --- a/resources/rds-dbparametergroups.go +++ b/resources/rds-dbparametergroups.go @@ -1,37 +1,51 @@ package resources import ( + "context" + "fmt" "strings" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/rds" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const RDSDBParameterGroupResource = "RDSDBParameterGroup" + +func init() { + resource.Register(resource.Registration{ + Name: RDSDBParameterGroupResource, + Scope: nuke.Account, + Lister: &RDSDBParameterGroupLister{}, + }) +} + +type RDSDBParameterGroupLister struct{} + type RDSDBParameterGroup struct { svc *rds.RDS name *string tags []*rds.Tag } -func init() { - register("RDSDBParameterGroup", ListRDSParameterGroups) -} - -func ListRDSParameterGroups(sess *session.Session) ([]Resource, error) { - svc := rds.New(sess) +func (l *RDSDBParameterGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := rds.New(opts.Session) params := &rds.DescribeDBParameterGroupsInput{MaxRecords: aws.Int64(100)} resp, err := svc.DescribeDBParameterGroups(params) if err != nil { return nil, err } - var resources []Resource - for _, parametergroup := range resp.DBParameterGroups { + var resources []resource.Resource + for _, group := range resp.DBParameterGroups { tags, err := svc.ListTagsForResource(&rds.ListTagsForResourceInput{ - ResourceName: parametergroup.DBParameterGroupArn, + ResourceName: group.DBParameterGroupArn, }) if err != nil { @@ -40,7 +54,7 @@ func ListRDSParameterGroups(sess *session.Session) ([]Resource, error) { resources = append(resources, &RDSDBParameterGroup{ svc: svc, - name: parametergroup.DBParameterGroupName, + name: group.DBParameterGroupName, tags: tags.TagList, }) @@ -51,12 +65,12 @@ func ListRDSParameterGroups(sess *session.Session) ([]Resource, error) { func (i *RDSDBParameterGroup) Filter() error { if strings.HasPrefix(*i.name, "default.") { - return fmt.Errorf("Cannot delete default parameter group") + return fmt.Errorf("cannot delete default parameter group") } return nil } -func (i *RDSDBParameterGroup) Remove() error { +func (i *RDSDBParameterGroup) Remove(_ context.Context) error { params := &rds.DeleteDBParameterGroupInput{ DBParameterGroupName: i.name, } diff --git a/resources/rds-event-subscriptions.go b/resources/rds-event-subscriptions.go index d434945a..3127c9e8 100644 --- a/resources/rds-event-subscriptions.go +++ b/resources/rds-event-subscriptions.go @@ -1,12 +1,29 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/rds" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const RDSEventSubscriptionResource = "RDSEventSubscription" + +func init() { + resource.Register(resource.Registration{ + Name: RDSEventSubscriptionResource, + Scope: nuke.Account, + Lister: &RDSEventSubscriptionLister{}, + }) +} + +type RDSEventSubscriptionLister struct{} + type RDSEventSubscription struct { svc *rds.RDS id *string @@ -14,12 +31,9 @@ type RDSEventSubscription struct { tags []*rds.Tag } -func init() { - register("RDSEventSubscription", ListRDSEventSubscriptions) -} - -func ListRDSEventSubscriptions(sess *session.Session) ([]Resource, error) { - svc := rds.New(sess) +func (l *RDSEventSubscriptionLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := rds.New(opts.Session) params := &rds.DescribeEventSubscriptionsInput{ MaxRecords: aws.Int64(100), @@ -28,7 +42,7 @@ func ListRDSEventSubscriptions(sess *session.Session) ([]Resource, error) { if err != nil { return nil, err } - var resources []Resource + var resources []resource.Resource for _, eventSubscription := range resp.EventSubscriptionsList { tags, err := svc.ListTagsForResource(&rds.ListTagsForResourceInput{ ResourceName: eventSubscription.EventSubscriptionArn, @@ -50,7 +64,7 @@ func ListRDSEventSubscriptions(sess *session.Session) ([]Resource, error) { return resources, nil } -func (i *RDSEventSubscription) Remove() error { +func (i *RDSEventSubscription) Remove(_ context.Context) error { params := &rds.DeleteEventSubscriptionInput{ SubscriptionName: i.id, } diff --git a/resources/rds-instances.go b/resources/rds-instances.go index 0c712efd..fd0e5e50 100644 --- a/resources/rds-instances.go +++ b/resources/rds-instances.go @@ -1,29 +1,44 @@ package resources import ( + "context" + + "github.com/ekristen/libnuke/pkg/featureflag" "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/rds" - "github.com/rebuy-de/aws-nuke/v2/pkg/config" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const RDSInstanceResource = "RDSInstance" + +func init() { + resource.Register(resource.Registration{ + Name: RDSInstanceResource, + Scope: nuke.Account, + Lister: &RDSInstanceLister{}, + }) +} + type RDSInstance struct { svc *rds.RDS instance *rds.DBInstance tags []*rds.Tag - featureFlags config.FeatureFlags + featureFlags *featureflag.FeatureFlags } -func init() { - register("RDSInstance", ListRDSInstances) -} +type RDSInstanceLister struct{} + +func (l *RDSInstanceLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) -func ListRDSInstances(sess *session.Session) ([]Resource, error) { - svc := rds.New(sess) + svc := rds.New(opts.Session) params := &rds.DescribeDBInstancesInput{} resp, err := svc.DescribeDBInstances(params) @@ -31,7 +46,7 @@ func ListRDSInstances(sess *session.Session) ([]Resource, error) { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, instance := range resp.DBInstances { tags, err := svc.ListTagsForResource(&rds.ListTagsForResourceInput{ ResourceName: instance.DBInstanceArn, @@ -51,18 +66,22 @@ func ListRDSInstances(sess *session.Session) ([]Resource, error) { return resources, nil } -func (i *RDSInstance) FeatureFlags(ff config.FeatureFlags) { +func (i *RDSInstance) FeatureFlags(ff *featureflag.FeatureFlags) { i.featureFlags = ff } -func (i *RDSInstance) Remove() error { - if aws.BoolValue(i.instance.DeletionProtection) && i.featureFlags.DisableDeletionProtection.RDSInstance { +func (i *RDSInstance) Remove(_ context.Context) error { + ffddpRDSInstance, err := i.featureFlags.Get("DisableDeletionProtection_RDSInstance") + if err != nil { + return err + } + + if aws.BoolValue(i.instance.DeletionProtection) && ffddpRDSInstance.Enabled() { modifyParams := &rds.ModifyDBInstanceInput{ DBInstanceIdentifier: i.instance.DBInstanceIdentifier, DeletionProtection: aws.Bool(false), } - _, err := i.svc.ModifyDBInstance(modifyParams) - if err != nil { + if _, err := i.svc.ModifyDBInstance(modifyParams); err != nil { return err } } @@ -72,8 +91,7 @@ func (i *RDSInstance) Remove() error { SkipFinalSnapshot: aws.Bool(true), } - _, err := i.svc.DeleteDBInstance(params) - if err != nil { + if _, err := i.svc.DeleteDBInstance(params); err != nil { return err } diff --git a/resources/rds-optiongroups.go b/resources/rds-optiongroups.go index 1f33b6ab..d33f5b31 100644 --- a/resources/rds-optiongroups.go +++ b/resources/rds-optiongroups.go @@ -1,34 +1,42 @@ package resources import ( + "context" + "fmt" "strings" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/rds" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type RDSOptionGroup struct { - svc *rds.RDS - name *string - tags []*rds.Tag -} +const RDSOptionGroupResource = "RDSOptionGroup" func init() { - register("RDSOptionGroup", ListRDSOptionGroups) + resource.Register(resource.Registration{ + Name: RDSOptionGroupResource, + Scope: nuke.Account, + Lister: &RDSOptionGroupLister{}, + }) } -func ListRDSOptionGroups(sess *session.Session) ([]Resource, error) { - svc := rds.New(sess) +type RDSOptionGroupLister struct{} + +func (l *RDSOptionGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := rds.New(opts.Session) params := &rds.DescribeOptionGroupsInput{MaxRecords: aws.Int64(100)} resp, err := svc.DescribeOptionGroups(params) if err != nil { return nil, err } - var resources []Resource + var resources []resource.Resource for _, optionGroup := range resp.OptionGroupsList { tags, err := svc.ListTagsForResource(&rds.ListTagsForResourceInput{ ResourceName: optionGroup.OptionGroupArn, @@ -49,6 +57,12 @@ func ListRDSOptionGroups(sess *session.Session) ([]Resource, error) { return resources, nil } +type RDSOptionGroup struct { + svc *rds.RDS + name *string + tags []*rds.Tag +} + func (i *RDSOptionGroup) Filter() error { if strings.HasPrefix(*i.name, "default:") { return fmt.Errorf("cannot delete default Option group") @@ -56,7 +70,7 @@ func (i *RDSOptionGroup) Filter() error { return nil } -func (i *RDSOptionGroup) Remove() error { +func (i *RDSOptionGroup) Remove(_ context.Context) error { params := &rds.DeleteOptionGroupInput{ OptionGroupName: i.name, } diff --git a/resources/rds-proxies.go b/resources/rds-proxies.go index c9631ffc..a4c925a3 100644 --- a/resources/rds-proxies.go +++ b/resources/rds-proxies.go @@ -1,23 +1,29 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/rds" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" ) -type RDSProxy struct { - svc *rds.RDS - id string - tags []*rds.Tag -} +const RDSProxyResource = "RDSProxy" func init() { - register("RDSProxy", ListRDSProxies) + resource.Register(resource.Registration{ + Name: RDSProxyResource, + Scope: nuke.Account, + Lister: &RDSProxyLister{}, + }) } -func ListRDSProxies(sess *session.Session) ([]Resource, error) { - svc := rds.New(sess) +type RDSProxyLister struct{} + +func (l *RDSProxyLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := rds.New(opts.Session) params := &rds.DescribeDBProxiesInput{} resp, err := svc.DescribeDBProxies(params) @@ -25,7 +31,7 @@ func ListRDSProxies(sess *session.Session) ([]Resource, error) { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, instance := range resp.DBProxies { tags, err := svc.ListTagsForResource(&rds.ListTagsForResourceInput{ ResourceName: instance.DBProxyArn, @@ -45,7 +51,13 @@ func ListRDSProxies(sess *session.Session) ([]Resource, error) { return resources, nil } -func (i *RDSProxy) Remove() error { +type RDSProxy struct { + svc *rds.RDS + id string + tags []*rds.Tag +} + +func (i *RDSProxy) Remove(_ context.Context) error { params := &rds.DeleteDBProxyInput{ DBProxyName: &i.id, } diff --git a/resources/rds-snapshots.go b/resources/rds-snapshots.go index 8070e8a9..3bef18cc 100644 --- a/resources/rds-snapshots.go +++ b/resources/rds-snapshots.go @@ -1,34 +1,42 @@ package resources import ( + "context" + "fmt" "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/rds" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type RDSSnapshot struct { - svc *rds.RDS - snapshot *rds.DBSnapshot - tags []*rds.Tag -} +const RDSSnapshotResource = "RDSSnapshot" func init() { - register("RDSSnapshot", ListRDSSnapshots) + resource.Register(resource.Registration{ + Name: RDSSnapshotResource, + Scope: nuke.Account, + Lister: &RDSSnapshotLister{}, + }) } -func ListRDSSnapshots(sess *session.Session) ([]Resource, error) { - svc := rds.New(sess) +type RDSSnapshotLister struct{} + +func (l *RDSSnapshotLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := rds.New(opts.Session) params := &rds.DescribeDBSnapshotsInput{MaxRecords: aws.Int64(100)} resp, err := svc.DescribeDBSnapshots(params) if err != nil { return nil, err } - var resources []Resource + var resources []resource.Resource for _, snapshot := range resp.DBSnapshots { tags, err := svc.ListTagsForResource(&rds.ListTagsForResourceInput{ ResourceName: snapshot.DBSnapshotArn, @@ -48,6 +56,12 @@ func ListRDSSnapshots(sess *session.Session) ([]Resource, error) { return resources, nil } +type RDSSnapshot struct { + svc *rds.RDS + snapshot *rds.DBSnapshot + tags []*rds.Tag +} + func (i *RDSSnapshot) Filter() error { if *i.snapshot.SnapshotType == "automated" { return fmt.Errorf("cannot delete automated snapshots") @@ -55,7 +69,7 @@ func (i *RDSSnapshot) Filter() error { return nil } -func (i *RDSSnapshot) Remove() error { +func (i *RDSSnapshot) Remove(_ context.Context) error { if i.snapshot.DBSnapshotIdentifier == nil { // Sanity check to make sure the delete request does not skip the // identifier. diff --git a/resources/rds-subnets.go b/resources/rds-subnets.go index 17978a19..e253b82a 100644 --- a/resources/rds-subnets.go +++ b/resources/rds-subnets.go @@ -1,39 +1,53 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/rds" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const RDSDBSubnetGroupResource = "RDSDBSubnetGroup" + +func init() { + resource.Register(resource.Registration{ + Name: RDSDBSubnetGroupResource, + Scope: nuke.Account, + Lister: &RDSDBSubnetGroupLister{}, + }) +} + +type RDSDBSubnetGroupLister struct{} + type RDSDBSubnetGroup struct { svc *rds.RDS name *string tags []*rds.Tag } -func init() { - register("RDSDBSubnetGroup", ListRDSSubnetGroups) -} - -func ListRDSSubnetGroups(sess *session.Session) ([]Resource, error) { - svc := rds.New(sess) +func (l *RDSDBSubnetGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := rds.New(opts.Session) params := &rds.DescribeDBSubnetGroupsInput{MaxRecords: aws.Int64(100)} resp, err := svc.DescribeDBSubnetGroups(params) if err != nil { return nil, err } - var resources []Resource + var resources []resource.Resource for _, subnetGroup := range resp.DBSubnetGroups { tags, err := svc.ListTagsForResource(&rds.ListTagsForResourceInput{ - ResourceName: subnetGroup.DBSubnetGroupArn, - }) + ResourceName: subnetGroup.DBSubnetGroupArn, + }) - if err != nil { - continue - } + if err != nil { + continue + } resources = append(resources, &RDSDBSubnetGroup{ svc: svc, @@ -46,7 +60,7 @@ func ListRDSSubnetGroups(sess *session.Session) ([]Resource, error) { return resources, nil } -func (i *RDSDBSubnetGroup) Remove() error { +func (i *RDSDBSubnetGroup) Remove(_ context.Context) error { params := &rds.DeleteDBSubnetGroupInput{ DBSubnetGroupName: i.name, } @@ -64,12 +78,12 @@ func (i *RDSDBSubnetGroup) String() string { } func (i *RDSDBSubnetGroup) Properties() types.Properties { - properties := types.NewProperties() - properties.Set("Name", i.name) + properties := types.NewProperties() + properties.Set("Name", i.name) - for _, tag := range i.tags { - properties.SetTag(tag.Key, tag.Value) - } + for _, tag := range i.tags { + properties.SetTag(tag.Key, tag.Value) + } - return properties + return properties } diff --git a/resources/redshift-clusters.go b/resources/redshift-clusters.go index b6fc92bc..abe80f56 100644 --- a/resources/redshift-clusters.go +++ b/resources/redshift-clusters.go @@ -1,24 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/redshift" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type RedshiftCluster struct { - svc *redshift.Redshift - cluster *redshift.Cluster -} +const RedshiftClusterResource = "RedshiftCluster" func init() { - register("RedshiftCluster", ListRedshiftClusters) + resource.Register(resource.Registration{ + Name: RedshiftClusterResource, + Scope: nuke.Account, + Lister: &RedshiftClusterLister{}, + }) } -func ListRedshiftClusters(sess *session.Session) ([]Resource, error) { - svc := redshift.New(sess) - resources := []Resource{} +type RedshiftClusterLister struct{} + +func (l *RedshiftClusterLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := redshift.New(opts.Session) + resources := make([]resource.Resource, 0) params := &redshift.DescribeClustersInput{ MaxRecords: aws.Int64(100), @@ -47,6 +57,11 @@ func ListRedshiftClusters(sess *session.Session) ([]Resource, error) { return resources, nil } +type RedshiftCluster struct { + svc *redshift.Redshift + cluster *redshift.Cluster +} + func (f *RedshiftCluster) Properties() types.Properties { properties := types.NewProperties(). Set("CreatedTime", f.cluster.ClusterCreateTime) @@ -58,7 +73,7 @@ func (f *RedshiftCluster) Properties() types.Properties { return properties } -func (f *RedshiftCluster) Remove() error { +func (f *RedshiftCluster) Remove(_ context.Context) error { _, err := f.svc.DeleteCluster(&redshift.DeleteClusterInput{ ClusterIdentifier: f.cluster.ClusterIdentifier, diff --git a/resources/redshift-parametergroups.go b/resources/redshift-parametergroups.go index 5adda793..9f2c492d 100644 --- a/resources/redshift-parametergroups.go +++ b/resources/redshift-parametergroups.go @@ -1,25 +1,35 @@ package resources import ( + "context" + "strings" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/redshift" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type RedshiftParameterGroup struct { - svc *redshift.Redshift - parameterGroupName *string -} +const RedshiftParameterGroupResource = "RedshiftParameterGroup" func init() { - register("RedshiftParameterGroup", ListRedshiftParameterGroup) + resource.Register(resource.Registration{ + Name: RedshiftParameterGroupResource, + Scope: nuke.Account, + Lister: &RedshiftParameterGroupLister{}, + }) } -func ListRedshiftParameterGroup(sess *session.Session) ([]Resource, error) { - svc := redshift.New(sess) - resources := []Resource{} +type RedshiftParameterGroupLister struct{} + +func (l *RedshiftParameterGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := redshift.New(opts.Session) + resources := make([]resource.Resource, 0) params := &redshift.DescribeClusterParameterGroupsInput{ MaxRecords: aws.Int64(100), @@ -50,8 +60,12 @@ func ListRedshiftParameterGroup(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *RedshiftParameterGroup) Remove() error { +type RedshiftParameterGroup struct { + svc *redshift.Redshift + parameterGroupName *string +} +func (f *RedshiftParameterGroup) Remove(_ context.Context) error { _, err := f.svc.DeleteClusterParameterGroup(&redshift.DeleteClusterParameterGroupInput{ ParameterGroupName: f.parameterGroupName, }) diff --git a/resources/redshift-snapshots.go b/resources/redshift-snapshots.go index 8768e33b..42fcc40b 100644 --- a/resources/redshift-snapshots.go +++ b/resources/redshift-snapshots.go @@ -1,24 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/redshift" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type RedshiftSnapshot struct { - svc *redshift.Redshift - snapshot *redshift.Snapshot -} +const RedshiftSnapshotResource = "RedshiftSnapshot" func init() { - register("RedshiftSnapshot", ListRedshiftSnapshots) + resource.Register(resource.Registration{ + Name: RedshiftSnapshotResource, + Scope: nuke.Account, + Lister: &RedshiftSnapshotLister{}, + }) } -func ListRedshiftSnapshots(sess *session.Session) ([]Resource, error) { - svc := redshift.New(sess) - resources := []Resource{} +type RedshiftSnapshotLister struct{} + +func (l *RedshiftSnapshotLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := redshift.New(opts.Session) + resources := make([]resource.Resource, 0) params := &redshift.DescribeClusterSnapshotsInput{ MaxRecords: aws.Int64(100), @@ -47,6 +57,11 @@ func ListRedshiftSnapshots(sess *session.Session) ([]Resource, error) { return resources, nil } +type RedshiftSnapshot struct { + svc *redshift.Redshift + snapshot *redshift.Snapshot +} + func (f *RedshiftSnapshot) Properties() types.Properties { properties := types.NewProperties(). Set("CreatedTime", f.snapshot.SnapshotCreateTime) @@ -58,8 +73,7 @@ func (f *RedshiftSnapshot) Properties() types.Properties { return properties } -func (f *RedshiftSnapshot) Remove() error { - +func (f *RedshiftSnapshot) Remove(_ context.Context) error { _, err := f.svc.DeleteClusterSnapshot(&redshift.DeleteClusterSnapshotInput{ SnapshotIdentifier: f.snapshot.SnapshotIdentifier, }) diff --git a/resources/redshift-subnetgroups.go b/resources/redshift-subnetgroups.go index a94600c1..3cfbafe3 100644 --- a/resources/redshift-subnetgroups.go +++ b/resources/redshift-subnetgroups.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/redshift" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type RedshiftSubnetGroup struct { - svc *redshift.Redshift - clusterSubnetGroupName *string -} +const RedshiftSubnetGroupResource = "RedshiftSubnetGroup" func init() { - register("RedshiftSubnetGroup", ListRedshiftSubnetGroups) + resource.Register(resource.Registration{ + Name: RedshiftSubnetGroupResource, + Scope: nuke.Account, + Lister: &RedshiftSubnetGroupLister{}, + }) } -func ListRedshiftSubnetGroups(sess *session.Session) ([]Resource, error) { - svc := redshift.New(sess) - resources := []Resource{} +type RedshiftSubnetGroupLister struct{} + +func (l *RedshiftSubnetGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := redshift.New(opts.Session) + resources := make([]resource.Resource, 0) params := &redshift.DescribeClusterSubnetGroupsInput{ MaxRecords: aws.Int64(100), @@ -31,7 +41,7 @@ func ListRedshiftSubnetGroups(sess *session.Session) ([]Resource, error) { for _, subnetGroup := range output.ClusterSubnetGroups { resources = append(resources, &RedshiftSubnetGroup{ - svc: svc, + svc: svc, clusterSubnetGroupName: subnetGroup.ClusterSubnetGroupName, }) } @@ -46,8 +56,12 @@ func ListRedshiftSubnetGroups(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *RedshiftSubnetGroup) Remove() error { +type RedshiftSubnetGroup struct { + svc *redshift.Redshift + clusterSubnetGroupName *string +} +func (f *RedshiftSubnetGroup) Remove(_ context.Context) error { _, err := f.svc.DeleteClusterSubnetGroup(&redshift.DeleteClusterSubnetGroupInput{ ClusterSubnetGroupName: f.clusterSubnetGroupName, }) diff --git a/resources/rekognition-collection.go b/resources/rekognition-collection.go index cf2347ee..20ff430b 100644 --- a/resources/rekognition-collection.go +++ b/resources/rekognition-collection.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/rekognition" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type RekognitionCollection struct { - svc *rekognition.Rekognition - id *string -} +const RekognitionCollectionResource = "RekognitionCollection" func init() { - register("RekognitionCollection", ListRekognitionCollections) + resource.Register(resource.Registration{ + Name: RekognitionCollectionResource, + Scope: nuke.Account, + Lister: &RekognitionCollectionLister{}, + }) } -func ListRekognitionCollections(sess *session.Session) ([]Resource, error) { - svc := rekognition.New(sess) - resources := []Resource{} +type RekognitionCollectionLister struct{} + +func (l *RekognitionCollectionLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := rekognition.New(opts.Session) + resources := make([]resource.Resource, 0) params := &rekognition.ListCollectionsInput{ MaxResults: aws.Int64(100), @@ -46,8 +56,12 @@ func ListRekognitionCollections(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *RekognitionCollection) Remove() error { +type RekognitionCollection struct { + svc *rekognition.Rekognition + id *string +} +func (f *RekognitionCollection) Remove(_ context.Context) error { _, err := f.svc.DeleteCollection(&rekognition.DeleteCollectionInput{ CollectionId: f.id, }) diff --git a/resources/resource-explorer2-indexes.go b/resources/resource-explorer2-indexes.go index 4a84a337..151e8d35 100644 --- a/resources/resource-explorer2-indexes.go +++ b/resources/resource-explorer2-indexes.go @@ -1,23 +1,35 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/resourceexplorer2" + "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/libnuke/pkg/resource" ) +const ResourceExplorer2IndexResource = "ResourceExplorer2Index" + +func init() { + resource.Register(resource.Registration{ + Name: ResourceExplorer2IndexResource, + Scope: nuke.Account, + Lister: &ResourceExplorer2IndexLister{}, + }) +} + +type ResourceExplorer2IndexLister struct{} + type ResourceExplorer2Index struct { svc *resourceexplorer2.ResourceExplorer2 indexArn *string } -func init() { - register("ResourceExplorer2Index", ResourceExplorer2Indexes) -} - -func ResourceExplorer2Indexes(sess *session.Session) ([]Resource, error) { - svc := resourceexplorer2.New(sess) - var resources []Resource +func (l *ResourceExplorer2IndexLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := resourceexplorer2.New(opts.Session) + var resources []resource.Resource params := &resourceexplorer2.ListIndexesInput{} @@ -44,7 +56,7 @@ func ResourceExplorer2Indexes(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *ResourceExplorer2Index) Remove() error { +func (f *ResourceExplorer2Index) Remove(_ context.Context) error { _, err := f.svc.DeleteIndex(&resourceexplorer2.DeleteIndexInput{ Arn: f.indexArn, }) diff --git a/resources/resource-explorer2-views.go b/resources/resource-explorer2-views.go index 25a0c9b2..12e64661 100644 --- a/resources/resource-explorer2-views.go +++ b/resources/resource-explorer2-views.go @@ -1,23 +1,35 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/resourceexplorer2" + "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/libnuke/pkg/resource" ) +const ResourceExplorer2ViewResource = "ResourceExplorer2View" + +func init() { + resource.Register(resource.Registration{ + Name: ResourceExplorer2ViewResource, + Scope: nuke.Account, + Lister: &ResourceExplorer2ViewLister{}, + }) +} + +type ResourceExplorer2ViewLister struct{} + type ResourceExplorer2View struct { svc *resourceexplorer2.ResourceExplorer2 viewArn *string } -func init() { - register("ResourceExplorer2View", ResourceExplorer2Views) -} - -func ResourceExplorer2Views(sess *session.Session) ([]Resource, error) { - svc := resourceexplorer2.New(sess) - var resources []Resource +func (l *ResourceExplorer2ViewLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := resourceexplorer2.New(opts.Session) + var resources []resource.Resource params := &resourceexplorer2.ListViewsInput{} @@ -44,7 +56,7 @@ func ResourceExplorer2Views(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *ResourceExplorer2View) Remove() error { +func (f *ResourceExplorer2View) Remove(_ context.Context) error { _, err := f.svc.DeleteView(&resourceexplorer2.DeleteViewInput{ ViewArn: f.viewArn, }) diff --git a/resources/resourcegroups-groups.go b/resources/resourcegroups-groups.go index e815130e..d042f1df 100644 --- a/resources/resourcegroups-groups.go +++ b/resources/resourcegroups-groups.go @@ -1,23 +1,30 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/resourcegroups" + "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/libnuke/pkg/resource" ) -type ResourceGroupGroup struct { - svc *resourcegroups.ResourceGroups - groupName *string -} +const ResourceGroupGroupResource = "ResourceGroupGroup" func init() { - register("ResourceGroupGroup", ListResourceGroupGroups) + resource.Register(resource.Registration{ + Name: ResourceGroupGroupResource, + Scope: nuke.Account, + Lister: &ResourceGroupGroupLister{}, + }) } -func ListResourceGroupGroups(sess *session.Session) ([]Resource, error) { - svc := resourcegroups.New(sess) - resources := []Resource{} +type ResourceGroupGroupLister struct{} + +func (l *ResourceGroupGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := resourcegroups.New(opts.Session) + var resources []resource.Resource params := &resourcegroups.ListGroupsInput{ MaxResults: aws.Int64(50), @@ -46,10 +53,15 @@ func ListResourceGroupGroups(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *ResourceGroupGroup) Remove() error { +type ResourceGroupGroup struct { + svc *resourcegroups.ResourceGroups + groupName *string +} + +func (f *ResourceGroupGroup) Remove(_ context.Context) error { _, err := f.svc.DeleteGroup(&resourcegroups.DeleteGroupInput{ - GroupName: f.groupName, + Group: f.groupName, }) return err diff --git a/resources/robomaker-robot-applications.go b/resources/robomaker-robot-applications.go index 42bb7519..1f0bde40 100644 --- a/resources/robomaker-robot-applications.go +++ b/resources/robomaker-robot-applications.go @@ -1,25 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/robomaker" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type RoboMakerRobotApplication struct { - svc *robomaker.RoboMaker - name *string - arn *string - version *string -} +const RoboMakerRobotApplicationResource = "RoboMakerRobotApplication" func init() { - register("RoboMakerRobotApplication", ListRoboMakerRobotApplications) + resource.Register(resource.Registration{ + Name: RoboMakerRobotApplicationResource, + Scope: nuke.Account, + Lister: &RoboMakerRobotApplicationLister{}, + }) } -func ListRoboMakerRobotApplications(sess *session.Session) ([]Resource, error) { - svc := robomaker.New(sess) - resources := []Resource{} +type RoboMakerRobotApplicationLister struct{} + +func (l *RoboMakerRobotApplicationLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := robomaker.New(opts.Session) + resources := make([]resource.Resource, 0) params := &robomaker.ListRobotApplicationsInput{ MaxResults: aws.Int64(30), @@ -50,8 +58,14 @@ func ListRoboMakerRobotApplications(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *RoboMakerRobotApplication) Remove() error { +type RoboMakerRobotApplication struct { + svc *robomaker.RoboMaker + name *string + arn *string + version *string +} +func (f *RoboMakerRobotApplication) Remove(_ context.Context) error { request := robomaker.DeleteRobotApplicationInput{ Application: f.arn, } diff --git a/resources/robomaker-simulation-applications.go b/resources/robomaker-simulation-applications.go index d7d79a0b..7ed38fea 100644 --- a/resources/robomaker-simulation-applications.go +++ b/resources/robomaker-simulation-applications.go @@ -1,25 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/robomaker" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type RoboMakerSimulationApplication struct { - svc *robomaker.RoboMaker - name *string - arn *string - version *string -} +const RoboMakerSimulationApplicationResource = "RoboMakerSimulationApplication" func init() { - register("RoboMakerSimulationApplication", ListRoboMakerSimulationApplications) + resource.Register(resource.Registration{ + Name: RoboMakerSimulationApplicationResource, + Scope: nuke.Account, + Lister: &RoboMakerSimulationApplicationLister{}, + }) } -func ListRoboMakerSimulationApplications(sess *session.Session) ([]Resource, error) { - svc := robomaker.New(sess) - resources := []Resource{} +type RoboMakerSimulationApplicationLister struct{} + +func (l *RoboMakerSimulationApplicationLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := robomaker.New(opts.Session) + resources := make([]resource.Resource, 0) params := &robomaker.ListSimulationApplicationsInput{ MaxResults: aws.Int64(30), @@ -50,7 +58,14 @@ func ListRoboMakerSimulationApplications(sess *session.Session) ([]Resource, err return resources, nil } -func (f *RoboMakerSimulationApplication) Remove() error { +type RoboMakerSimulationApplication struct { + svc *robomaker.RoboMaker + name *string + arn *string + version *string +} + +func (f *RoboMakerSimulationApplication) Remove(_ context.Context) error { request := robomaker.DeleteSimulationApplicationInput{ Application: f.arn, diff --git a/resources/robomaker-simulation-jobs.go b/resources/robomaker-simulation-jobs.go index 88cb8da6..bb988d68 100644 --- a/resources/robomaker-simulation-jobs.go +++ b/resources/robomaker-simulation-jobs.go @@ -1,32 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/robomaker" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type RoboMakerSimulationJob struct { - svc *robomaker.RoboMaker - name *string - arn *string -} +const RoboMakerSimulationJobResource = "RoboMakerSimulationJob" func init() { - register("RoboMakerSimulationJob", ListRoboMakerSimulationJobs) + resource.Register(resource.Registration{ + Name: RoboMakerSimulationJobResource, + Scope: nuke.Account, + Lister: &RoboMakerSimulationJobLister{}, + }) } -func simulationJobNeedsToBeCanceled(job *robomaker.SimulationJobSummary) bool { - for _, n := range []string{"Completed", "Failed", "RunningFailed", "Terminating", "Terminated", "Canceled"} { - if job.Status != nil && *job.Status == n { - return false - } - } - return true -} -func ListRoboMakerSimulationJobs(sess *session.Session) ([]Resource, error) { - svc := robomaker.New(sess) - resources := []Resource{} +type RoboMakerSimulationJobLister struct{} + +func (l *RoboMakerSimulationJobLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := robomaker.New(opts.Session) + resources := make([]resource.Resource, 0) params := &robomaker.ListSimulationJobsInput{ MaxResults: aws.Int64(30), @@ -57,8 +58,23 @@ func ListRoboMakerSimulationJobs(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *RoboMakerSimulationJob) Remove() error { +// simulationJobNeedsToBeCanceled returns true if the simulation job needs to be canceled (helper function) +func simulationJobNeedsToBeCanceled(job *robomaker.SimulationJobSummary) bool { + for _, n := range []string{"Completed", "Failed", "RunningFailed", "Terminating", "Terminated", "Canceled"} { + if job.Status != nil && *job.Status == n { + return false + } + } + return true +} + +type RoboMakerSimulationJob struct { + svc *robomaker.RoboMaker + name *string + arn *string +} +func (f *RoboMakerSimulationJob) Remove(_ context.Context) error { _, err := f.svc.CancelSimulationJob(&robomaker.CancelSimulationJobInput{ Job: f.arn, }) diff --git a/resources/route53-health-checks.go b/resources/route53-health-checks.go index bf4d2cb1..c726c852 100644 --- a/resources/route53-health-checks.go +++ b/resources/route53-health-checks.go @@ -1,22 +1,37 @@ package resources import ( + "context" + "fmt" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/route53" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const Route53HealthCheckResource = "Route53HealthCheck" + func init() { - register("Route53HealthCheck", ListRoute53HealthChecks) + resource.Register(resource.Registration{ + Name: Route53HealthCheckResource, + Scope: nuke.Account, + Lister: &Route53HealthCheckLister{}, + }) } -func ListRoute53HealthChecks(sess *session.Session) ([]Resource, error) { - svc := route53.New(sess) +type Route53HealthCheckLister struct{} + +func (l *Route53HealthCheckLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := route53.New(opts.Session) params := &route53.ListHealthChecksInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { resp, err := svc.ListHealthChecks(params) @@ -44,7 +59,7 @@ type Route53HealthCheck struct { id *string } -func (hz *Route53HealthCheck) Remove() error { +func (hz *Route53HealthCheck) Remove(_ context.Context) error { params := &route53.DeleteHealthCheckInput{ HealthCheckId: hz.id, } diff --git a/resources/route53-hosted-zones.go b/resources/route53-hosted-zones.go index 00f86e30..f5098fba 100644 --- a/resources/route53-hosted-zones.go +++ b/resources/route53-hosted-zones.go @@ -1,20 +1,35 @@ package resources import ( + "context" + "fmt" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/route53" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const Route53HostedZoneResource = "Route53HostedZone" + func init() { - register("Route53HostedZone", ListRoute53HostedZones) + resource.Register(resource.Registration{ + Name: Route53HostedZoneResource, + Scope: nuke.Account, + Lister: &Route53HostedZoneLister{}, + }) } -func ListRoute53HostedZones(sess *session.Session) ([]Resource, error) { - svc := route53.New(sess) +type Route53HostedZoneLister struct{} + +func (l *Route53HostedZoneLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := route53.New(opts.Session) var hostedZones []*route53.HostedZone params := &route53.ListHostedZonesInput{} @@ -33,7 +48,7 @@ func ListRoute53HostedZones(sess *session.Session) ([]Resource, error) { } } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, hz := range hostedZones { tags, err := svc.ListTagsForResource(&route53.ListTagsForResourceInput{ ResourceId: hz.Id, @@ -61,7 +76,7 @@ type Route53HostedZone struct { tags []*route53.Tag } -func (hz *Route53HostedZone) Remove() error { +func (hz *Route53HostedZone) Remove(_ context.Context) error { params := &route53.DeleteHostedZoneInput{ Id: hz.id, } diff --git a/resources/route53-resolver-endpoints.go b/resources/route53-resolver-endpoints.go index 608077ee..eae4d2e8 100644 --- a/resources/route53-resolver-endpoints.go +++ b/resources/route53-resolver-endpoints.go @@ -1,31 +1,39 @@ package resources import ( + "context" + "fmt" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/route53resolver" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -// Route53ResolverEndpoint is the resource type for nuking -type Route53ResolverEndpoint struct { - svc *route53resolver.Route53Resolver - id *string - name *string -} +const Route53ResolverEndpointResource = "Route53ResolverEndpoint" func init() { - register("Route53ResolverEndpoint", ListRoute53ResolverEndpoints) + resource.Register(resource.Registration{ + Name: Route53ResolverEndpointResource, + Scope: nuke.Account, + Lister: &Route53ResolverEndpointLister{}, + }) } -// ListRoute53ResolverEndpoints produces the resources to be nuked -func ListRoute53ResolverEndpoints(sess *session.Session) ([]Resource, error) { - svc := route53resolver.New(sess) +type Route53ResolverEndpointLister struct{} + +// List produces the raw list of Route53 Resolver Endpoints to be nuked before filtering +func (l *Route53ResolverEndpointLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := route53resolver.New(opts.Session) params := &route53resolver.ListResolverEndpointsInput{} - var resources []Resource + var resources []resource.Resource for { resp, err := svc.ListResolverEndpoints(params) @@ -54,8 +62,15 @@ func ListRoute53ResolverEndpoints(sess *session.Session) ([]Resource, error) { return resources, nil } +// Route53ResolverEndpoint is the resource type for nuking +type Route53ResolverEndpoint struct { + svc *route53resolver.Route53Resolver + id *string + name *string +} + // Remove implements Resource -func (r *Route53ResolverEndpoint) Remove() error { +func (r *Route53ResolverEndpoint) Remove(_ context.Context) error { _, err := r.svc.DeleteResolverEndpoint( &route53resolver.DeleteResolverEndpointInput{ ResolverEndpointId: r.id, diff --git a/resources/route53-resolver-rules.go b/resources/route53-resolver-rules.go index 5c3114d1..757f597c 100644 --- a/resources/route53-resolver-rules.go +++ b/resources/route53-resolver-rules.go @@ -1,40 +1,44 @@ package resources import ( + "context" + "fmt" - "github.com/aws/smithy-go/ptr" + "github.com/gotidy/ptr" "strings" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/route53resolver" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" -) -type ( - // Route53ResolverRule is the resource type - Route53ResolverRule struct { - svc *route53resolver.Route53Resolver - id *string - name *string - domainName *string - vpcIds []*string - } + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const Route53ResolverRuleResource = "Route53ResolverRule" + func init() { - register("Route53ResolverRule", ListRoute53ResolverRules) + resource.Register(resource.Registration{ + Name: Route53ResolverRuleResource, + Scope: nuke.Account, + Lister: &Route53ResolverRuleLister{}, + }) } -// ListRoute53ResolverRules produces the resources to be nuked. -func ListRoute53ResolverRules(sess *session.Session) ([]Resource, error) { - svc := route53resolver.New(sess) +type Route53ResolverRuleLister struct{} + +// List returns a list of all Route53 ResolverRules before filtering to be nuked +func (l *Route53ResolverRuleLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := route53resolver.New(opts.Session) vpcAssociations, err := resolverRulesToVpcIDs(svc) if err != nil { return nil, err } - var resources []Resource + var resources []resource.Resource params := &route53resolver.ListResolverRulesInput{} for { @@ -64,7 +68,7 @@ func ListRoute53ResolverRules(sess *session.Session) ([]Resource, error) { return resources, nil } -// Associate all the vpcIDs to their resolver rule ID to be disassociated before deleting the rule. +// resolverRulesToVpcIDs - Associate all the vpcIDs to their resolver rule ID to be disassociated before deleting the rule. func resolverRulesToVpcIDs(svc *route53resolver.Route53Resolver) (map[string][]*string, error) { vpcAssociations := map[string][]*string{} @@ -100,10 +104,19 @@ func resolverRulesToVpcIDs(svc *route53resolver.Route53Resolver) (map[string][]* return vpcAssociations, nil } +// Route53ResolverRule is the resource type +type Route53ResolverRule struct { + svc *route53resolver.Route53Resolver + id *string + name *string + domainName *string + vpcIds []*string +} + // Filter removes resources automatically from being nuked func (r *Route53ResolverRule) Filter() error { if r.domainName != nil && ptr.ToString(r.domainName) == "." { - return fmt.Errorf(`Filtering DomainName "."`) + return fmt.Errorf(`filtering DomainName "."`) } if r.id != nil && strings.HasPrefix(ptr.ToString(r.id), "rslvr-autodefined-rr") { @@ -114,7 +127,7 @@ func (r *Route53ResolverRule) Filter() error { } // Remove implements Resource -func (r *Route53ResolverRule) Remove() error { +func (r *Route53ResolverRule) Remove(_ context.Context) error { for _, vpcID := range r.vpcIds { _, err := r.svc.DisassociateResolverRule(&route53resolver.DisassociateResolverRuleInput{ ResolverRuleId: r.id, diff --git a/resources/route53-resource-records.go b/resources/route53-resource-records.go index 35f3bc79..c4d917ec 100644 --- a/resources/route53-resource-records.go +++ b/resources/route53-resource-records.go @@ -1,38 +1,46 @@ package resources import ( + "context" + "fmt" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/route53" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type Route53ResourceRecordSet struct { - svc *route53.Route53 - hostedZoneId *string - hostedZoneName *string - data *route53.ResourceRecordSet - changeId *string -} +const Route53ResourceRecordSetResource = "Route53ResourceRecordSet" func init() { - register("Route53ResourceRecordSet", ListRoute53ResourceRecordSets) + resource.Register(resource.Registration{ + Name: Route53ResourceRecordSetResource, + Scope: nuke.Account, + Lister: &Route53ResourceRecordSetLister{}, + }) } -func ListRoute53ResourceRecordSets(sess *session.Session) ([]Resource, error) { - svc := route53.New(sess) +type Route53ResourceRecordSetLister struct{} - resources := make([]Resource, 0) +func (l *Route53ResourceRecordSetLister) List(ctx context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) - sub, err := ListRoute53HostedZones(sess) + svc := route53.New(opts.Session) + + resources := make([]resource.Resource, 0) + + zoneLister := &Route53HostedZoneLister{} + sub, err := zoneLister.List(ctx, o) if err != nil { return nil, err } - for _, resource := range sub { - zone := resource.(*Route53HostedZone) + for _, r := range sub { + zone := r.(*Route53HostedZone) rrs, err := ListResourceRecordsForZone(svc, zone.id, zone.name) if err != nil { return nil, err @@ -44,12 +52,12 @@ func ListRoute53ResourceRecordSets(sess *session.Session) ([]Resource, error) { return resources, nil } -func ListResourceRecordsForZone(svc *route53.Route53, zoneId *string, zoneName *string) ([]Resource, error) { +func ListResourceRecordsForZone(svc *route53.Route53, zoneId *string, zoneName *string) ([]resource.Resource, error) { params := &route53.ListResourceRecordSetsInput{ HostedZoneId: zoneId, } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { resp, err := svc.ListResourceRecordSets(params) @@ -78,6 +86,14 @@ func ListResourceRecordsForZone(svc *route53.Route53, zoneId *string, zoneName * return resources, nil } +type Route53ResourceRecordSet struct { + svc *route53.Route53 + hostedZoneId *string + hostedZoneName *string + data *route53.ResourceRecordSet + changeId *string +} + func (r *Route53ResourceRecordSet) Filter() error { if *r.data.Type == "NS" && *r.hostedZoneName == *r.data.Name { return fmt.Errorf("cannot delete NS record") @@ -90,7 +106,7 @@ func (r *Route53ResourceRecordSet) Filter() error { return nil } -func (r *Route53ResourceRecordSet) Remove() error { +func (r *Route53ResourceRecordSet) Remove(_ context.Context) error { params := &route53.ChangeResourceRecordSetsInput{ HostedZoneId: r.hostedZoneId, ChangeBatch: &route53.ChangeBatch{ diff --git a/resources/route53-traffic-policies.go b/resources/route53-traffic-policies.go index 01df7167..bf1b8c1d 100644 --- a/resources/route53-traffic-policies.go +++ b/resources/route53-traffic-policies.go @@ -1,30 +1,37 @@ package resources import ( + "context" + "fmt" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/route53" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type Route53TrafficPolicy struct { - svc *route53.Route53 - id *string - name *string - version *int64 - instances []*route53.TrafficPolicyInstance -} +const Route53TrafficPolicyResource = "Route53TrafficPolicy" func init() { - register("Route53TrafficPolicy", ListRoute53TrafficPolicies) + resource.Register(resource.Registration{ + Name: Route53TrafficPolicyResource, + Scope: nuke.Account, + Lister: &Route53TrafficPolicyLister{}, + }) } -func ListRoute53TrafficPolicies(sess *session.Session) ([]Resource, error) { - svc := route53.New(sess) +type Route53TrafficPolicyLister struct{} + +func (l *Route53TrafficPolicyLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := route53.New(opts.Session) params := &route53.ListTrafficPoliciesInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { resp, err := svc.ListTrafficPolicies(params) @@ -85,7 +92,15 @@ func instancesForPolicy(svc *route53.Route53, policyID *string, version *int64) return instances, nil } -func (tp *Route53TrafficPolicy) Remove() error { +type Route53TrafficPolicy struct { + svc *route53.Route53 + id *string + name *string + version *int64 + instances []*route53.TrafficPolicyInstance +} + +func (tp *Route53TrafficPolicy) Remove(_ context.Context) error { for _, instance := range tp.instances { _, err := tp.svc.DeleteTrafficPolicyInstance(&route53.DeleteTrafficPolicyInstanceInput{ Id: instance.Id, diff --git a/resources/s3-access-points.go b/resources/s3-access-points.go index 301ec51b..e88e7b9c 100644 --- a/resources/s3-access-points.go +++ b/resources/s3-access-points.go @@ -1,34 +1,43 @@ package resources import ( + "context" + + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/s3control" "github.com/aws/aws-sdk-go/service/sts" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const S3AccessPointResource = "S3AccessPoint" + func init() { - register("S3AccessPoint", ListS3AccessPoints) + resource.Register(resource.Registration{ + Name: S3AccessPointResource, + Scope: nuke.Account, + Lister: &S3AccessPointLister{}, + }) } -type S3AccessPoint struct { - svc *s3control.S3Control - accountId *string - accessPoint *s3control.AccessPoint -} +type S3AccessPointLister struct{} -func ListS3AccessPoints(s *session.Session) ([]Resource, error) { - // Lookup current account ID - stsSvc := sts.New(s) +func (l *S3AccessPointLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + stsSvc := sts.New(opts.Session) callerID, err := stsSvc.GetCallerIdentity(&sts.GetCallerIdentityInput{}) if err != nil { return nil, err } accountId := callerID.Account - resources := []Resource{} - svc := s3control.New(s) + var resources []resource.Resource + svc := s3control.New(opts.Session) for { params := &s3control.ListAccessPointsInput{ AccountId: accountId, @@ -56,7 +65,13 @@ func ListS3AccessPoints(s *session.Session) ([]Resource, error) { return resources, nil } -func (e *S3AccessPoint) Remove() error { +type S3AccessPoint struct { + svc *s3control.S3Control + accountId *string + accessPoint *s3control.AccessPoint +} + +func (e *S3AccessPoint) Remove(_ context.Context) error { _, err := e.svc.DeleteAccessPoint(&s3control.DeleteAccessPointInput{ AccountId: e.accountId, Name: aws.String(*e.accessPoint.Name), @@ -76,5 +91,5 @@ func (e *S3AccessPoint) Properties() types.Properties { } func (e *S3AccessPoint) String() string { - return *e.accessPoint.AccessPointArn + return ptr.ToString(e.accessPoint.AccessPointArn) } diff --git a/resources/s3-buckets.go b/resources/s3-buckets.go index 55181ade..69eb179a 100644 --- a/resources/s3-buckets.go +++ b/resources/s3-buckets.go @@ -1,41 +1,52 @@ package resources import ( + "context" + "fmt" "time" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/endpoints" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/s3" "github.com/aws/aws-sdk-go/service/s3/s3iface" "github.com/aws/aws-sdk-go/service/s3/s3manager" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const S3BucketResource = "S3Bucket" + func init() { - register("S3Bucket", ListS3Buckets, - mapCloudControl("AWS::S3::Bucket")) + resource.Register(resource.Registration{ + Name: S3BucketResource, + Scope: nuke.Account, + Lister: &S3BucketLister{}, + DependsOn: []string{ + S3ObjectResource, + }, + }, nuke.MapCloudControl("AWS::S3::Bucket")) } -type S3Bucket struct { - svc *s3.S3 - name string - creationDate time.Time - tags []*s3.Tag -} +type S3BucketLister struct{} -func ListS3Buckets(s *session.Session) ([]Resource, error) { - svc := s3.New(s) +func (l *S3BucketLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := s3.New(opts.Session) buckets, err := DescribeS3Buckets(svc) if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, bucket := range buckets { tags, err := svc.GetBucketTagging(&s3.GetBucketTaggingInput{ Bucket: bucket.Name, @@ -80,8 +91,16 @@ func DescribeS3Buckets(svc *s3.S3) ([]s3.Bucket, error) { continue } - location := UnPtrString(bucketLocationResponse.LocationConstraint, endpoints.UsEast1RegionID) - region := UnPtrString(svc.Config.Region, endpoints.UsEast1RegionID) + location := ptr.ToString(bucketLocationResponse.LocationConstraint) + if location == "" { + location = endpoints.UsEast1RegionID + } + + region := ptr.ToString(svc.Config.Region) + if region == "" { + region = endpoints.UsEast1RegionID + } + if location == region && out != nil { buckets = append(buckets, *out) } @@ -90,7 +109,14 @@ func DescribeS3Buckets(svc *s3.S3) ([]s3.Bucket, error) { return buckets, nil } -func (e *S3Bucket) Remove() error { +type S3Bucket struct { + svc *s3.S3 + name string + creationDate time.Time + tags []*s3.Tag +} + +func (e *S3Bucket) Remove(_ context.Context) error { _, err := e.svc.DeleteBucketPolicy(&s3.DeleteBucketPolicyInput{ Bucket: &e.name, }) diff --git a/resources/s3-multipart-uploads.go b/resources/s3-multipart-uploads.go index 254b8343..7cc3c76e 100644 --- a/resources/s3-multipart-uploads.go +++ b/resources/s3-multipart-uploads.go @@ -1,29 +1,36 @@ package resources import ( + "context" + "fmt" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/s3" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type S3MultipartUpload struct { - svc *s3.S3 - bucket string - key string - uploadID string -} +const S3MultipartUploadResource = "S3MultipartUpload" func init() { - register("S3MultipartUpload", ListS3MultipartUpload) + resource.Register(resource.Registration{ + Name: S3MultipartUploadResource, + Scope: nuke.Account, + Lister: &S3MultipartUploadLister{}, + }) } -func ListS3MultipartUpload(sess *session.Session) ([]Resource, error) { - svc := s3.New(sess) +type S3MultipartUploadLister struct{} - resources := make([]Resource, 0) +func (l *S3MultipartUploadLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := s3.New(opts.Session) + + resources := make([]resource.Resource, 0) buckets, err := DescribeS3Buckets(svc) if err != nil { @@ -66,7 +73,14 @@ func ListS3MultipartUpload(sess *session.Session) ([]Resource, error) { return resources, nil } -func (e *S3MultipartUpload) Remove() error { +type S3MultipartUpload struct { + svc *s3.S3 + bucket string + key string + uploadID string +} + +func (e *S3MultipartUpload) Remove(_ context.Context) error { params := &s3.AbortMultipartUploadInput{ Bucket: &e.bucket, Key: &e.key, diff --git a/resources/s3-objects.go b/resources/s3-objects.go index 675868db..cf498181 100644 --- a/resources/s3-objects.go +++ b/resources/s3-objects.go @@ -1,32 +1,39 @@ package resources import ( + "context" + "fmt" "time" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/s3" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type S3Object struct { - svc *s3.S3 - bucket string - creationDate time.Time - key string - versionID *string - latest bool -} +const S3ObjectResource = "S3Object" func init() { - register("S3Object", ListS3Objects) + resource.Register(resource.Registration{ + Name: S3ObjectResource, + Scope: nuke.Account, + Lister: &S3ObjectLister{}, + }) } -func ListS3Objects(sess *session.Session) ([]Resource, error) { - svc := s3.New(sess) +type S3ObjectLister struct{} + +func (l *S3ObjectLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := s3.New(opts.Session) - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) buckets, err := DescribeS3Buckets(svc) if err != nil { @@ -55,7 +62,7 @@ func ListS3Objects(sess *session.Session) ([]Resource, error) { creationDate: aws.TimeValue(bucket.CreationDate), key: *out.Key, versionID: out.VersionId, - latest: UnPtrBool(out.IsLatest, false), + latest: ptr.ToBool(out.IsLatest), }) } @@ -70,7 +77,7 @@ func ListS3Objects(sess *session.Session) ([]Resource, error) { creationDate: aws.TimeValue(bucket.CreationDate), key: *out.Key, versionID: out.VersionId, - latest: UnPtrBool(out.IsLatest, false), + latest: ptr.ToBool(out.IsLatest), }) } @@ -87,7 +94,16 @@ func ListS3Objects(sess *session.Session) ([]Resource, error) { return resources, nil } -func (e *S3Object) Remove() error { +type S3Object struct { + svc *s3.S3 + bucket string + creationDate time.Time + key string + versionID *string + latest bool +} + +func (e *S3Object) Remove(_ context.Context) error { params := &s3.DeleteObjectInput{ Bucket: &e.bucket, Key: &e.key, diff --git a/resources/sagemaker-apps.go b/resources/sagemaker-apps.go index ddb8bf06..e2a6afc0 100644 --- a/resources/sagemaker-apps.go +++ b/resources/sagemaker-apps.go @@ -1,30 +1,36 @@ package resources import ( + "context" + "fmt" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/sagemaker" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type SageMakerApp struct { - svc *sagemaker.SageMaker - domainID *string - appName *string - appType *string - userProfileName *string - status *string -} +const SageMakerAppResource = "SageMakerApp" func init() { - register("SageMakerApp", ListSageMakerApps) + resource.Register(resource.Registration{ + Name: SageMakerAppResource, + Scope: nuke.Account, + Lister: &SageMakerAppLister{}, + }) } -func ListSageMakerApps(sess *session.Session) ([]Resource, error) { - svc := sagemaker.New(sess) - resources := []Resource{} +type SageMakerAppLister struct{} + +func (l *SageMakerAppLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := sagemaker.New(opts.Session) + resources := make([]resource.Resource, 0) params := &sagemaker.ListAppsInput{ MaxResults: aws.Int64(30), @@ -57,7 +63,16 @@ func ListSageMakerApps(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *SageMakerApp) Remove() error { +type SageMakerApp struct { + svc *sagemaker.SageMaker + domainID *string + appName *string + appType *string + userProfileName *string + status *string +} + +func (f *SageMakerApp) Remove(_ context.Context) error { _, err := f.svc.DeleteApp(&sagemaker.DeleteAppInput{ DomainId: f.domainID, AppName: f.appName, @@ -72,13 +87,13 @@ func (f *SageMakerApp) String() string { return *f.appName } -func (i *SageMakerApp) Properties() types.Properties { +func (f *SageMakerApp) Properties() types.Properties { properties := types.NewProperties() properties. - Set("DomainID", i.domainID). - Set("AppName", i.appName). - Set("AppType", i.appType). - Set("UserProfileName", i.userProfileName) + Set("DomainID", f.domainID). + Set("AppName", f.appName). + Set("AppType", f.appType). + Set("UserProfileName", f.userProfileName) return properties } diff --git a/resources/sagemaker-domain.go b/resources/sagemaker-domain.go index 58a2344b..ff80de3f 100644 --- a/resources/sagemaker-domain.go +++ b/resources/sagemaker-domain.go @@ -1,24 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/sagemaker" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type SageMakerDomain struct { - svc *sagemaker.SageMaker - domainID *string -} +const SageMakerDomainResource = "SageMakerDomain" func init() { - register("SageMakerDomain", ListSageMakerDomains) + resource.Register(resource.Registration{ + Name: SageMakerDomainResource, + Scope: nuke.Account, + Lister: &SageMakerDomainLister{}, + }) } -func ListSageMakerDomains(sess *session.Session) ([]Resource, error) { - svc := sagemaker.New(sess) - resources := []Resource{} +type SageMakerDomainLister struct{} + +func (l *SageMakerDomainLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := sagemaker.New(opts.Session) + resources := make([]resource.Resource, 0) params := &sagemaker.ListDomainsInput{ MaxResults: aws.Int64(30), @@ -47,7 +57,12 @@ func ListSageMakerDomains(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *SageMakerDomain) Remove() error { +type SageMakerDomain struct { + svc *sagemaker.SageMaker + domainID *string +} + +func (f *SageMakerDomain) Remove(_ context.Context) error { _, err := f.svc.DeleteDomain(&sagemaker.DeleteDomainInput{ DomainId: f.domainID, RetentionPolicy: &sagemaker.RetentionPolicy{HomeEfsFileSystem: aws.String(sagemaker.RetentionTypeDelete)}, @@ -60,9 +75,9 @@ func (f *SageMakerDomain) String() string { return *f.domainID } -func (i *SageMakerDomain) Properties() types.Properties { +func (f *SageMakerDomain) Properties() types.Properties { properties := types.NewProperties() properties. - Set("DomainID", i.domainID) + Set("DomainID", f.domainID) return properties } diff --git a/resources/sagemaker-endpointconfigs.go b/resources/sagemaker-endpointconfigs.go index 8db69e4c..00c24a44 100644 --- a/resources/sagemaker-endpointconfigs.go +++ b/resources/sagemaker-endpointconfigs.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/sagemaker" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type SageMakerEndpointConfig struct { - svc *sagemaker.SageMaker - endpointConfigName *string -} +const SageMakerEndpointConfigResource = "SageMakerEndpointConfig" func init() { - register("SageMakerEndpointConfig", ListSageMakerEndpointConfigs) + resource.Register(resource.Registration{ + Name: SageMakerEndpointConfigResource, + Scope: nuke.Account, + Lister: &SageMakerEndpointConfigLister{}, + }) } -func ListSageMakerEndpointConfigs(sess *session.Session) ([]Resource, error) { - svc := sagemaker.New(sess) - resources := []Resource{} +type SageMakerEndpointConfigLister struct{} + +func (l *SageMakerEndpointConfigLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := sagemaker.New(opts.Session) + resources := make([]resource.Resource, 0) params := &sagemaker.ListEndpointConfigsInput{ MaxResults: aws.Int64(30), @@ -46,8 +56,12 @@ func ListSageMakerEndpointConfigs(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *SageMakerEndpointConfig) Remove() error { +type SageMakerEndpointConfig struct { + svc *sagemaker.SageMaker + endpointConfigName *string +} +func (f *SageMakerEndpointConfig) Remove(_ context.Context) error { _, err := f.svc.DeleteEndpointConfig(&sagemaker.DeleteEndpointConfigInput{ EndpointConfigName: f.endpointConfigName, }) diff --git a/resources/sagemaker-endpoints.go b/resources/sagemaker-endpoints.go index 649e65af..892c3013 100644 --- a/resources/sagemaker-endpoints.go +++ b/resources/sagemaker-endpoints.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/sagemaker" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type SageMakerEndpoint struct { - svc *sagemaker.SageMaker - endpointName *string -} +const SageMakerEndpointResource = "SageMakerEndpoint" func init() { - register("SageMakerEndpoint", ListSageMakerEndpoints) + resource.Register(resource.Registration{ + Name: SageMakerEndpointResource, + Scope: nuke.Account, + Lister: &SageMakerEndpointLister{}, + }) } -func ListSageMakerEndpoints(sess *session.Session) ([]Resource, error) { - svc := sagemaker.New(sess) - resources := []Resource{} +type SageMakerEndpointLister struct{} + +func (l *SageMakerEndpointLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := sagemaker.New(opts.Session) + resources := make([]resource.Resource, 0) params := &sagemaker.ListEndpointsInput{ MaxResults: aws.Int64(30), @@ -46,8 +56,12 @@ func ListSageMakerEndpoints(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *SageMakerEndpoint) Remove() error { +type SageMakerEndpoint struct { + svc *sagemaker.SageMaker + endpointName *string +} +func (f *SageMakerEndpoint) Remove(_ context.Context) error { _, err := f.svc.DeleteEndpoint(&sagemaker.DeleteEndpointInput{ EndpointName: f.endpointName, }) diff --git a/resources/sagemaker-models.go b/resources/sagemaker-models.go index 7d08987a..3a93f28c 100644 --- a/resources/sagemaker-models.go +++ b/resources/sagemaker-models.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/sagemaker" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type SageMakerModel struct { - svc *sagemaker.SageMaker - modelName *string -} +const SageMakerModelResource = "SageMakerModel" func init() { - register("SageMakerModel", ListSageMakerModels) + resource.Register(resource.Registration{ + Name: SageMakerModelResource, + Scope: nuke.Account, + Lister: &SageMakerModelLister{}, + }) } -func ListSageMakerModels(sess *session.Session) ([]Resource, error) { - svc := sagemaker.New(sess) - resources := []Resource{} +type SageMakerModelLister struct{} + +func (l *SageMakerModelLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := sagemaker.New(opts.Session) + resources := make([]resource.Resource, 0) params := &sagemaker.ListModelsInput{ MaxResults: aws.Int64(30), @@ -46,8 +56,12 @@ func ListSageMakerModels(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *SageMakerModel) Remove() error { +type SageMakerModel struct { + svc *sagemaker.SageMaker + modelName *string +} +func (f *SageMakerModel) Remove(_ context.Context) error { _, err := f.svc.DeleteModel(&sagemaker.DeleteModelInput{ ModelName: f.modelName, }) diff --git a/resources/sagemaker-notebookinstancelifecycleconfigs.go b/resources/sagemaker-notebook-instancelifecycleconfigs.go similarity index 60% rename from resources/sagemaker-notebookinstancelifecycleconfigs.go rename to resources/sagemaker-notebook-instancelifecycleconfigs.go index 07312b63..3a524991 100644 --- a/resources/sagemaker-notebookinstancelifecycleconfigs.go +++ b/resources/sagemaker-notebook-instancelifecycleconfigs.go @@ -1,24 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/sagemaker" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type SageMakerNotebookInstanceLifecycleConfig struct { - svc *sagemaker.SageMaker - Name *string -} +const SageMakerNotebookInstanceLifecycleConfigResource = "SageMakerNotebookInstanceLifecycleConfig" func init() { - register("SageMakerNotebookInstanceLifecycleConfig", ListSageMakerNotebookInstanceLifecycleConfigs) + resource.Register(resource.Registration{ + Name: SageMakerNotebookInstanceLifecycleConfigResource, + Scope: nuke.Account, + Lister: &SageMakerNotebookInstanceLifecycleConfigLister{}, + }) } -func ListSageMakerNotebookInstanceLifecycleConfigs(sess *session.Session) ([]Resource, error) { - svc := sagemaker.New(sess) - resources := []Resource{} +type SageMakerNotebookInstanceLifecycleConfigLister struct{} + +func (l *SageMakerNotebookInstanceLifecycleConfigLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := sagemaker.New(opts.Session) + resources := make([]resource.Resource, 0) params := &sagemaker.ListNotebookInstanceLifecycleConfigsInput{ MaxResults: aws.Int64(30), @@ -47,7 +57,12 @@ func ListSageMakerNotebookInstanceLifecycleConfigs(sess *session.Session) ([]Res return resources, nil } -func (f *SageMakerNotebookInstanceLifecycleConfig) Remove() error { +type SageMakerNotebookInstanceLifecycleConfig struct { + svc *sagemaker.SageMaker + Name *string +} + +func (f *SageMakerNotebookInstanceLifecycleConfig) Remove(_ context.Context) error { _, err := f.svc.DeleteNotebookInstanceLifecycleConfig(&sagemaker.DeleteNotebookInstanceLifecycleConfigInput{ NotebookInstanceLifecycleConfigName: f.Name, diff --git a/resources/sagemaker-notebookinstances.go b/resources/sagemaker-notebook-instances.go similarity index 59% rename from resources/sagemaker-notebookinstances.go rename to resources/sagemaker-notebook-instances.go index 7680be2d..c972212d 100644 --- a/resources/sagemaker-notebookinstances.go +++ b/resources/sagemaker-notebook-instances.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/sagemaker" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type SageMakerNotebookInstance struct { - svc *sagemaker.SageMaker - notebookInstanceName *string -} +const SageMakerNotebookInstanceResource = "SageMakerNotebookInstance" func init() { - register("SageMakerNotebookInstance", ListSageMakerNotebookInstances) + resource.Register(resource.Registration{ + Name: SageMakerNotebookInstanceResource, + Scope: nuke.Account, + Lister: &SageMakerNotebookInstanceLister{}, + }) } -func ListSageMakerNotebookInstances(sess *session.Session) ([]Resource, error) { - svc := sagemaker.New(sess) - resources := []Resource{} +type SageMakerNotebookInstanceLister struct{} + +func (l *SageMakerNotebookInstanceLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := sagemaker.New(opts.Session) + resources := make([]resource.Resource, 0) params := &sagemaker.ListNotebookInstancesInput{ MaxResults: aws.Int64(30), @@ -46,7 +56,12 @@ func ListSageMakerNotebookInstances(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *SageMakerNotebookInstance) Remove() error { +type SageMakerNotebookInstance struct { + svc *sagemaker.SageMaker + notebookInstanceName *string +} + +func (f *SageMakerNotebookInstance) Remove(_ context.Context) error { _, err := f.svc.DeleteNotebookInstance(&sagemaker.DeleteNotebookInstanceInput{ NotebookInstanceName: f.notebookInstanceName, }) diff --git a/resources/sagemaker-notebookeinstancestates.go b/resources/sagemaker-notebook-instancestates.go similarity index 64% rename from resources/sagemaker-notebookeinstancestates.go rename to resources/sagemaker-notebook-instancestates.go index 0eaf0351..4547ce3f 100644 --- a/resources/sagemaker-notebookeinstancestates.go +++ b/resources/sagemaker-notebook-instancestates.go @@ -1,27 +1,36 @@ package resources import ( + "context" + "fmt" "strings" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/sagemaker" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type SageMakerNotebookInstanceState struct { - svc *sagemaker.SageMaker - notebookInstanceName *string - instanceStatus *string -} +const SageMakerNotebookInstanceStateResource = "SageMakerNotebookInstanceState" func init() { - register("SageMakerNotebookInstanceState", ListSageMakerNotebookInstanceStates) + resource.Register(resource.Registration{ + Name: SageMakerNotebookInstanceStateResource, + Scope: nuke.Account, + Lister: &SageMakerNotebookInstanceStateLister{}, + }) } -func ListSageMakerNotebookInstanceStates(sess *session.Session) ([]Resource, error) { - svc := sagemaker.New(sess) - resources := []Resource{} +type SageMakerNotebookInstanceStateLister struct{} + +func (l *SageMakerNotebookInstanceStateLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := sagemaker.New(opts.Session) + resources := make([]resource.Resource, 0) params := &sagemaker.ListNotebookInstancesInput{ MaxResults: aws.Int64(30), @@ -51,7 +60,13 @@ func ListSageMakerNotebookInstanceStates(sess *session.Session) ([]Resource, err return resources, nil } -func (f *SageMakerNotebookInstanceState) Remove() error { +type SageMakerNotebookInstanceState struct { + svc *sagemaker.SageMaker + notebookInstanceName *string + instanceStatus *string +} + +func (f *SageMakerNotebookInstanceState) Remove(_ context.Context) error { _, err := f.svc.StopNotebookInstance(&sagemaker.StopNotebookInstanceInput{ NotebookInstanceName: f.notebookInstanceName, diff --git a/resources/sagemaker-userprofiles.go b/resources/sagemaker-userprofiles.go index 18a9fa79..94fb2fcb 100644 --- a/resources/sagemaker-userprofiles.go +++ b/resources/sagemaker-userprofiles.go @@ -1,25 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/sagemaker" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type SageMakerUserProfile struct { - svc *sagemaker.SageMaker - domainID *string - userProfileName *string -} +const SageMakerUserProfilesResource = "SageMakerUserProfiles" func init() { - register("SageMakerUserProfiles", ListSageMakerUserProfiles) + resource.Register(resource.Registration{ + Name: SageMakerUserProfilesResource, + Scope: nuke.Account, + Lister: &SageMakerUserProfilesLister{}, + }) } -func ListSageMakerUserProfiles(sess *session.Session) ([]Resource, error) { - svc := sagemaker.New(sess) - resources := []Resource{} +type SageMakerUserProfilesLister struct{} + +func (l *SageMakerUserProfilesLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := sagemaker.New(opts.Session) + resources := make([]resource.Resource, 0) params := &sagemaker.ListUserProfilesInput{ MaxResults: aws.Int64(30), @@ -49,7 +58,13 @@ func ListSageMakerUserProfiles(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *SageMakerUserProfile) Remove() error { +type SageMakerUserProfile struct { + svc *sagemaker.SageMaker + domainID *string + userProfileName *string +} + +func (f *SageMakerUserProfile) Remove(_ context.Context) error { _, err := f.svc.DeleteUserProfile(&sagemaker.DeleteUserProfileInput{ DomainId: f.domainID, UserProfileName: f.userProfileName, @@ -62,10 +77,10 @@ func (f *SageMakerUserProfile) String() string { return *f.userProfileName } -func (i *SageMakerUserProfile) Properties() types.Properties { +func (f *SageMakerUserProfile) Properties() types.Properties { properties := types.NewProperties() properties. - Set("DomainID", i.domainID). - Set("UserProfileName", i.userProfileName) + Set("DomainID", f.domainID). + Set("UserProfileName", f.userProfileName) return properties } diff --git a/resources/secretsmanager-secrets.go b/resources/secretsmanager-secrets.go index a0f61525..88d11667 100644 --- a/resources/secretsmanager-secrets.go +++ b/resources/secretsmanager-secrets.go @@ -1,25 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/secretsmanager" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type SecretsManagerSecret struct { - svc *secretsmanager.SecretsManager - ARN *string - tags []*secretsmanager.Tag -} +const SecretsManagerSecretResource = "SecretsManagerSecret" func init() { - register("SecretsManagerSecret", ListSecretsManagerSecrets) + resource.Register(resource.Registration{ + Name: SecretsManagerSecretResource, + Scope: nuke.Account, + Lister: &SecretsManagerSecretLister{}, + }) } -func ListSecretsManagerSecrets(sess *session.Session) ([]Resource, error) { - svc := secretsmanager.New(sess) - resources := []Resource{} +type SecretsManagerSecretLister struct{} + +func (l *SecretsManagerSecretLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := secretsmanager.New(opts.Session) + resources := make([]resource.Resource, 0) params := &secretsmanager.ListSecretsInput{ MaxResults: aws.Int64(100), @@ -49,8 +58,13 @@ func ListSecretsManagerSecrets(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *SecretsManagerSecret) Remove() error { +type SecretsManagerSecret struct { + svc *secretsmanager.SecretsManager + ARN *string + tags []*secretsmanager.Tag +} +func (f *SecretsManagerSecret) Remove(_ context.Context) error { _, err := f.svc.DeleteSecret(&secretsmanager.DeleteSecretInput{ SecretId: f.ARN, ForceDeleteWithoutRecovery: aws.Bool(true), diff --git a/resources/securityhub-hub.go b/resources/securityhub-hub.go index cb821046..e2c88cad 100644 --- a/resources/securityhub-hub.go +++ b/resources/securityhub-hub.go @@ -1,49 +1,65 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/securityhub" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/awsutil" + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const SecurityHubResource = "SecurityHub" + func init() { - register("SecurityHub", ListHubs) + resource.Register(resource.Registration{ + Name: SecurityHubResource, + Scope: nuke.Account, + Lister: &SecurityHubLister{}, + }) } -func ListHubs(sess *session.Session) ([]Resource, error) { - svc := securityhub.New(sess) +type SecurityHubLister struct{} + +func (l *SecurityHubLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := securityhub.New(opts.Session) - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) resp, err := svc.DescribeHub(nil) if err != nil { - if IsAWSError(err, securityhub.ErrCodeInvalidAccessException) { - // Security Hub is not enabled for this region + if awsutil.IsAWSError(err, securityhub.ErrCodeInvalidAccessException) { + // Security SecurityHub is not enabled for this region return resources, nil } return nil, err } - resources = append(resources, &Hub{ + resources = append(resources, &SecurityHub{ svc: svc, id: resp.HubArn, }) return resources, nil } -type Hub struct { +type SecurityHub struct { svc *securityhub.SecurityHub id *string } -func (hub *Hub) Properties() types.Properties { +func (hub *SecurityHub) Properties() types.Properties { properties := types.NewProperties() properties.Set("Arn", hub.id) return properties } -func (hub *Hub) Remove() error { +func (hub *SecurityHub) Remove(_ context.Context) error { _, err := hub.svc.DisableSecurityHub(&securityhub.DisableSecurityHubInput{}) return err } diff --git a/resources/servicecatalog-portfolio-constraints-attachements.go b/resources/servicecatalog-portfolio-constraints-attachments.go similarity index 65% rename from resources/servicecatalog-portfolio-constraints-attachements.go rename to resources/servicecatalog-portfolio-constraints-attachments.go index d6398497..07333ca7 100644 --- a/resources/servicecatalog-portfolio-constraints-attachements.go +++ b/resources/servicecatalog-portfolio-constraints-attachments.go @@ -1,30 +1,40 @@ package resources import ( + "context" + "fmt" + "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/servicecatalog" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" - log "github.com/sirupsen/logrus" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/awsutil" + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ServiceCatalogConstraintPortfolioAttachment struct { - svc *servicecatalog.ServiceCatalog - constraintID *string - portfolioID *string - portfolioName *string -} +const ServiceCatalogConstraintPortfolioAttachmentResource = "ServiceCatalogConstraintPortfolioAttachment" func init() { - register("ServiceCatalogConstraintPortfolioAttachment", ListServiceCatalogPrincipalProductAttachments) + resource.Register(resource.Registration{ + Name: ServiceCatalogConstraintPortfolioAttachmentResource, + Scope: nuke.Account, + Lister: &ServiceCatalogConstraintPortfolioAttachmentLister{}, + }) } -func ListServiceCatalogPrincipalProductAttachments(sess *session.Session) ([]Resource, error) { - svc := servicecatalog.New(sess) - resources := []Resource{} - portfolios := []*servicecatalog.PortfolioDetail{} +type ServiceCatalogConstraintPortfolioAttachmentLister struct{} + +func (l *ServiceCatalogConstraintPortfolioAttachmentLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := servicecatalog.New(opts.Session) + resources := make([]resource.Resource, 0) + var portfolios []*servicecatalog.PortfolioDetail params := &servicecatalog.ListPortfoliosInput{ PageSize: aws.Int64(20), @@ -34,8 +44,8 @@ func ListServiceCatalogPrincipalProductAttachments(sess *session.Session) ([]Res for { resp, err := svc.ListPortfolios(params) if err != nil { - if IsAWSError(err, servicecatalog.ErrCodeTagOptionNotMigratedException) { - log.Info(err) + if awsutil.IsAWSError(err, servicecatalog.ErrCodeTagOptionNotMigratedException) { + logrus.Info(err) break } return nil, err @@ -83,8 +93,14 @@ func ListServiceCatalogPrincipalProductAttachments(sess *session.Session) ([]Res return resources, nil } -func (f *ServiceCatalogConstraintPortfolioAttachment) Remove() error { +type ServiceCatalogConstraintPortfolioAttachment struct { + svc *servicecatalog.ServiceCatalog + constraintID *string + portfolioID *string + portfolioName *string +} +func (f *ServiceCatalogConstraintPortfolioAttachment) Remove(_ context.Context) error { _, err := f.svc.DeleteConstraint(&servicecatalog.DeleteConstraintInput{ Id: f.constraintID, }) diff --git a/resources/servicecatalog-portfolio-principal-attachements.go b/resources/servicecatalog-portfolio-principal-attachments.go similarity index 68% rename from resources/servicecatalog-portfolio-principal-attachements.go rename to resources/servicecatalog-portfolio-principal-attachments.go index 87e915d4..70a969b4 100644 --- a/resources/servicecatalog-portfolio-principal-attachements.go +++ b/resources/servicecatalog-portfolio-principal-attachments.go @@ -1,35 +1,43 @@ package resources import ( + "context" + "fmt" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/servicecatalog" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ServiceCatalogPrincipalPortfolioAttachment struct { - svc *servicecatalog.ServiceCatalog - portfolioID *string - principalARN *string - portfolioName *string -} +const ServiceCatalogPrincipalPortfolioAttachmentResource = "ServiceCatalogPrincipalPortfolioAttachment" func init() { - register("ServiceCatalogPrincipalPortfolioAttachment", ListServiceCatalogPrincipalPortfolioAttachments) + resource.Register(resource.Registration{ + Name: ServiceCatalogPrincipalPortfolioAttachmentResource, + Scope: nuke.Account, + Lister: &ServiceCatalogPrincipalPortfolioAttachmentLister{}, + }) } -func ListServiceCatalogPrincipalPortfolioAttachments(sess *session.Session) ([]Resource, error) { - svc := servicecatalog.New(sess) - resources := []Resource{} - portfolios := []*servicecatalog.PortfolioDetail{} +type ServiceCatalogPrincipalPortfolioAttachmentLister struct{} + +func (l *ServiceCatalogPrincipalPortfolioAttachmentLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := servicecatalog.New(opts.Session) + resources := make([]resource.Resource, 0) + var portfolios []*servicecatalog.PortfolioDetail params := &servicecatalog.ListPortfoliosInput{ PageSize: aws.Int64(20), } - //List all Portfolios + // List all Portfolios for { resp, err := svc.ListPortfolios(params) if err != nil { @@ -52,7 +60,6 @@ func ListServiceCatalogPrincipalPortfolioAttachments(sess *session.Session) ([]R } for _, portfolio := range portfolios { - principalParams.PortfolioId = portfolio.Id resp, err := svc.ListPrincipalsForPortfolio(principalParams) @@ -79,8 +86,14 @@ func ListServiceCatalogPrincipalPortfolioAttachments(sess *session.Session) ([]R return resources, nil } -func (f *ServiceCatalogPrincipalPortfolioAttachment) Remove() error { +type ServiceCatalogPrincipalPortfolioAttachment struct { + svc *servicecatalog.ServiceCatalog + portfolioID *string + principalARN *string + portfolioName *string +} +func (f *ServiceCatalogPrincipalPortfolioAttachment) Remove(_ context.Context) error { _, err := f.svc.DisassociatePrincipalFromPortfolio(&servicecatalog.DisassociatePrincipalFromPortfolioInput{ PrincipalARN: f.principalARN, PortfolioId: f.portfolioID, diff --git a/resources/servicecatalog-portfolio-product-attachements.go b/resources/servicecatalog-portfolio-product-attachments.go similarity index 71% rename from resources/servicecatalog-portfolio-product-attachements.go rename to resources/servicecatalog-portfolio-product-attachments.go index 94f2b5bd..3c8ad650 100644 --- a/resources/servicecatalog-portfolio-product-attachements.go +++ b/resources/servicecatalog-portfolio-product-attachments.go @@ -1,36 +1,43 @@ package resources import ( + "context" + "fmt" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/servicecatalog" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ServiceCatalogPortfolioProductAttachment struct { - svc *servicecatalog.ServiceCatalog - productID *string - portfolioID *string - portfolioName *string - productName *string -} +const ServiceCatalogPortfolioProductAttachmentResource = "ServiceCatalogPortfolioProductAttachment" func init() { - register("ServiceCatalogPortfolioProductAttachment", ListServiceCatalogPortfolioProductAttachments) + resource.Register(resource.Registration{ + Name: ServiceCatalogPortfolioProductAttachmentResource, + Scope: nuke.Account, + Lister: &ServiceCatalogPortfolioProductAttachmentLister{}, + }) } -func ListServiceCatalogPortfolioProductAttachments(sess *session.Session) ([]Resource, error) { - svc := servicecatalog.New(sess) - resources := []Resource{} +type ServiceCatalogPortfolioProductAttachmentLister struct{} + +func (l *ServiceCatalogPortfolioProductAttachmentLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := servicecatalog.New(opts.Session) + resources := make([]resource.Resource, 0) products := make(map[*string]*string) params := &servicecatalog.SearchProductsAsAdminInput{ PageSize: aws.Int64(20), } - //List all Products and then search assigned portfolios + // List all Products and then search assigned portfolios for { resp, err := svc.SearchProductsAsAdmin(params) if err != nil { @@ -81,8 +88,15 @@ func ListServiceCatalogPortfolioProductAttachments(sess *session.Session) ([]Res return resources, nil } -func (f *ServiceCatalogPortfolioProductAttachment) Remove() error { +type ServiceCatalogPortfolioProductAttachment struct { + svc *servicecatalog.ServiceCatalog + productID *string + portfolioID *string + portfolioName *string + productName *string +} +func (f *ServiceCatalogPortfolioProductAttachment) Remove(_ context.Context) error { _, err := f.svc.DisassociateProductFromPortfolio(&servicecatalog.DisassociateProductFromPortfolioInput{ ProductId: f.productID, PortfolioId: f.portfolioID, diff --git a/resources/servicecatalog-portfolio-share-attachements.go b/resources/servicecatalog-portfolio-share-attachments.go similarity index 68% rename from resources/servicecatalog-portfolio-share-attachements.go rename to resources/servicecatalog-portfolio-share-attachments.go index bef7620c..cfdcaa9d 100644 --- a/resources/servicecatalog-portfolio-share-attachements.go +++ b/resources/servicecatalog-portfolio-share-attachments.go @@ -1,29 +1,37 @@ package resources import ( + "context" + "fmt" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/servicecatalog" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ServiceCatalogPortfolioShareAttachment struct { - svc *servicecatalog.ServiceCatalog - portfolioID *string - accountID *string - portfolioName *string -} +const ServiceCatalogPortfolioShareAttachmentResource = "ServiceCatalogPortfolioShareAttachment" func init() { - register("ServiceCatalogPortfolioShareAttachment", ListServiceCatalogPortfolioShareAttachments) + resource.Register(resource.Registration{ + Name: ServiceCatalogPortfolioShareAttachmentResource, + Scope: nuke.Account, + Lister: &ServiceCatalogPortfolioShareAttachmentLister{}, + }) } -func ListServiceCatalogPortfolioShareAttachments(sess *session.Session) ([]Resource, error) { - svc := servicecatalog.New(sess) - resources := []Resource{} - portfolios := []*servicecatalog.PortfolioDetail{} +type ServiceCatalogPortfolioShareAttachmentLister struct{} + +func (l *ServiceCatalogPortfolioShareAttachmentLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := servicecatalog.New(opts.Session) + resources := make([]resource.Resource, 0) + var portfolios []*servicecatalog.PortfolioDetail params := &servicecatalog.ListPortfoliosInput{ PageSize: aws.Int64(20), @@ -73,8 +81,14 @@ func ListServiceCatalogPortfolioShareAttachments(sess *session.Session) ([]Resou return resources, nil } -func (f *ServiceCatalogPortfolioShareAttachment) Remove() error { +type ServiceCatalogPortfolioShareAttachment struct { + svc *servicecatalog.ServiceCatalog + portfolioID *string + accountID *string + portfolioName *string +} +func (f *ServiceCatalogPortfolioShareAttachment) Remove(_ context.Context) error { _, err := f.svc.DeletePortfolioShare(&servicecatalog.DeletePortfolioShareInput{ AccountId: f.accountID, PortfolioId: f.portfolioID, diff --git a/resources/servicecatalog-portfolio-tagoptions-attachements.go b/resources/servicecatalog-portfolio-tagoptions-attachements.go index 3192982a..f233e6ed 100644 --- a/resources/servicecatalog-portfolio-tagoptions-attachements.go +++ b/resources/servicecatalog-portfolio-tagoptions-attachements.go @@ -1,32 +1,40 @@ package resources import ( + "context" + "fmt" + "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/servicecatalog" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" - log "github.com/sirupsen/logrus" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/awsutil" + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ServiceCatalogTagOptionPortfolioAttachment struct { - svc *servicecatalog.ServiceCatalog - tagOptionID *string - resourceID *string - tagOptionKey *string - tagOptionValue *string - resourceName *string -} +const ServiceCatalogTagOptionPortfolioAttachmentResource = "ServiceCatalogTagOptionPortfolioAttachment" func init() { - register("ServiceCatalogTagOptionPortfolioAttachment", ListServiceCatalogTagOptionPortfolioAttachments) + resource.Register(resource.Registration{ + Name: ServiceCatalogTagOptionPortfolioAttachmentResource, + Scope: nuke.Account, + Lister: &ServiceCatalogTagOptionPortfolioAttachmentLister{}, + }) } -func ListServiceCatalogTagOptionPortfolioAttachments(sess *session.Session) ([]Resource, error) { - svc := servicecatalog.New(sess) - resources := []Resource{} - tagOptions := []*servicecatalog.TagOptionDetail{} +type ServiceCatalogTagOptionPortfolioAttachmentLister struct{} + +func (l *ServiceCatalogTagOptionPortfolioAttachmentLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := servicecatalog.New(opts.Session) + resources := make([]resource.Resource, 0) + var tagOptions []*servicecatalog.TagOptionDetail params := &servicecatalog.ListTagOptionsInput{ PageSize: aws.Int64(20), @@ -36,8 +44,8 @@ func ListServiceCatalogTagOptionPortfolioAttachments(sess *session.Session) ([]R for { resp, err := svc.ListTagOptions(params) if err != nil { - if IsAWSError(err, servicecatalog.ErrCodeTagOptionNotMigratedException) { - log.Info(err) + if awsutil.IsAWSError(err, servicecatalog.ErrCodeTagOptionNotMigratedException) { + logrus.Info(err) break } return nil, err @@ -87,8 +95,16 @@ func ListServiceCatalogTagOptionPortfolioAttachments(sess *session.Session) ([]R return resources, nil } -func (f *ServiceCatalogTagOptionPortfolioAttachment) Remove() error { +type ServiceCatalogTagOptionPortfolioAttachment struct { + svc *servicecatalog.ServiceCatalog + tagOptionID *string + resourceID *string + tagOptionKey *string + tagOptionValue *string + resourceName *string +} +func (f *ServiceCatalogTagOptionPortfolioAttachment) Remove(_ context.Context) error { _, err := f.svc.DisassociateTagOptionFromResource(&servicecatalog.DisassociateTagOptionFromResourceInput{ TagOptionId: f.tagOptionID, ResourceId: f.resourceID, diff --git a/resources/servicecatalog-portfolios.go b/resources/servicecatalog-portfolios.go index b208fe43..4e388713 100644 --- a/resources/servicecatalog-portfolios.go +++ b/resources/servicecatalog-portfolios.go @@ -1,26 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/servicecatalog" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ServiceCatalogPortfolio struct { - svc *servicecatalog.ServiceCatalog - ID *string - displayName *string - providerName *string -} +const ServiceCatalogPortfolioResource = "ServiceCatalogPortfolio" func init() { - register("ServiceCatalogPortfolio", ListServiceCatalogPortfolios) + resource.Register(resource.Registration{ + Name: ServiceCatalogPortfolioResource, + Scope: nuke.Account, + Lister: &ServiceCatalogPortfolioLister{}, + }) } -func ListServiceCatalogPortfolios(sess *session.Session) ([]Resource, error) { - svc := servicecatalog.New(sess) - resources := []Resource{} +type ServiceCatalogPortfolioLister struct{} + +func (l *ServiceCatalogPortfolioLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := servicecatalog.New(opts.Session) + resources := make([]resource.Resource, 0) params := &servicecatalog.ListPortfoliosInput{ PageSize: aws.Int64(20), @@ -51,8 +59,14 @@ func ListServiceCatalogPortfolios(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *ServiceCatalogPortfolio) Remove() error { +type ServiceCatalogPortfolio struct { + svc *servicecatalog.ServiceCatalog + ID *string + displayName *string + providerName *string +} +func (f *ServiceCatalogPortfolio) Remove(_ context.Context) error { _, err := f.svc.DeletePortfolio(&servicecatalog.DeletePortfolioInput{ Id: f.ID, }) diff --git a/resources/servicecatalog-products.go b/resources/servicecatalog-products.go index c48cdf51..b0356a16 100644 --- a/resources/servicecatalog-products.go +++ b/resources/servicecatalog-products.go @@ -1,25 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/servicecatalog" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ServiceCatalogProduct struct { - svc *servicecatalog.ServiceCatalog - ID *string - name *string -} +const ServiceCatalogProductResource = "ServiceCatalogProduct" func init() { - register("ServiceCatalogProduct", ListServiceCatalogProducts) + resource.Register(resource.Registration{ + Name: ServiceCatalogProductResource, + Scope: nuke.Account, + Lister: &ServiceCatalogProductLister{}, + }) } -func ListServiceCatalogProducts(sess *session.Session) ([]Resource, error) { - svc := servicecatalog.New(sess) - resources := []Resource{} +type ServiceCatalogProductLister struct{} + +func (l *ServiceCatalogProductLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := servicecatalog.New(opts.Session) + resources := make([]resource.Resource, 0) params := &servicecatalog.SearchProductsAsAdminInput{ PageSize: aws.Int64(20), @@ -49,8 +58,13 @@ func ListServiceCatalogProducts(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *ServiceCatalogProduct) Remove() error { +type ServiceCatalogProduct struct { + svc *servicecatalog.ServiceCatalog + ID *string + name *string +} +func (f *ServiceCatalogProduct) Remove(_ context.Context) error { _, err := f.svc.DeleteProduct(&servicecatalog.DeleteProductInput{ Id: f.ID, }) diff --git a/resources/servicecatalog-provisionedproducts.go b/resources/servicecatalog-provisionedproducts.go index 69a5dca2..0424a4ec 100644 --- a/resources/servicecatalog-provisionedproducts.go +++ b/resources/servicecatalog-provisionedproducts.go @@ -1,27 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/servicecatalog" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ServiceCatalogProvisionedProduct struct { - svc *servicecatalog.ServiceCatalog - ID *string - terminateToken *string - name *string - productID *string -} +const ServiceCatalogProvisionedProductResource = "ServiceCatalogProvisionedProduct" func init() { - register("ServiceCatalogProvisionedProduct", ListServiceCatalogProvisionedProducts) + resource.Register(resource.Registration{ + Name: ServiceCatalogProvisionedProductResource, + Scope: nuke.Account, + Lister: &ServiceCatalogProvisionedProductLister{}, + }) } -func ListServiceCatalogProvisionedProducts(sess *session.Session) ([]Resource, error) { - svc := servicecatalog.New(sess) - resources := []Resource{} +type ServiceCatalogProvisionedProductLister struct{} + +func (l *ServiceCatalogProvisionedProductLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := servicecatalog.New(opts.Session) + resources := make([]resource.Resource, 0) params := &servicecatalog.ScanProvisionedProductsInput{ PageSize: aws.Int64(20), @@ -57,8 +64,15 @@ func ListServiceCatalogProvisionedProducts(sess *session.Session) ([]Resource, e return resources, nil } -func (f *ServiceCatalogProvisionedProduct) Remove() error { +type ServiceCatalogProvisionedProduct struct { + svc *servicecatalog.ServiceCatalog + ID *string + terminateToken *string + name *string + productID *string +} +func (f *ServiceCatalogProvisionedProduct) Remove(_ context.Context) error { _, err := f.svc.TerminateProvisionedProduct(&servicecatalog.TerminateProvisionedProductInput{ ProvisionedProductId: f.ID, IgnoreErrors: aws.Bool(true), diff --git a/resources/servicecatalog-tagoptions.go b/resources/servicecatalog-tagoptions.go index 1b509efd..398603b3 100644 --- a/resources/servicecatalog-tagoptions.go +++ b/resources/servicecatalog-tagoptions.go @@ -1,27 +1,37 @@ package resources import ( + "context" + + "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/servicecatalog" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" - log "github.com/sirupsen/logrus" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/awsutil" + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ServiceCatalogTagOption struct { - svc *servicecatalog.ServiceCatalog - ID *string - key *string - value *string -} +const ServiceCatalogTagOptionResource = "ServiceCatalogTagOption" func init() { - register("ServiceCatalogTagOption", ListServiceCatalogTagOptions) + resource.Register(resource.Registration{ + Name: ServiceCatalogTagOptionResource, + Scope: nuke.Account, + Lister: &ServiceCatalogTagOptionLister{}, + }) } -func ListServiceCatalogTagOptions(sess *session.Session) ([]Resource, error) { - svc := servicecatalog.New(sess) - resources := []Resource{} +type ServiceCatalogTagOptionLister struct{} + +func (l *ServiceCatalogTagOptionLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := servicecatalog.New(opts.Session) + resources := make([]resource.Resource, 0) params := &servicecatalog.ListTagOptionsInput{ PageSize: aws.Int64(20), @@ -30,8 +40,8 @@ func ListServiceCatalogTagOptions(sess *session.Session) ([]Resource, error) { for { resp, err := svc.ListTagOptions(params) if err != nil { - if IsAWSError(err, servicecatalog.ErrCodeTagOptionNotMigratedException) { - log.Info(err) + if awsutil.IsAWSError(err, servicecatalog.ErrCodeTagOptionNotMigratedException) { + logrus.Info(err) break } return nil, err @@ -56,8 +66,14 @@ func ListServiceCatalogTagOptions(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *ServiceCatalogTagOption) Remove() error { +type ServiceCatalogTagOption struct { + svc *servicecatalog.ServiceCatalog + ID *string + key *string + value *string +} +func (f *ServiceCatalogTagOption) Remove(_ context.Context) error { _, err := f.svc.DeleteTagOption(&servicecatalog.DeleteTagOptionInput{ Id: f.ID, }) diff --git a/resources/servicediscovery-instances.go b/resources/servicediscovery-instances.go index 09db483a..90e74a8d 100644 --- a/resources/servicediscovery-instances.go +++ b/resources/servicediscovery-instances.go @@ -1,27 +1,36 @@ package resources import ( + "context" + "fmt" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/servicediscovery" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ServiceDiscoveryInstance struct { - svc *servicediscovery.ServiceDiscovery - serviceID *string - instanceID *string -} +const ServiceDiscoveryInstanceResource = "ServiceDiscoveryInstance" func init() { - register("ServiceDiscoveryInstance", ListServiceDiscoveryInstances) + resource.Register(resource.Registration{ + Name: ServiceDiscoveryInstanceResource, + Scope: nuke.Account, + Lister: &ServiceDiscoveryInstanceLister{}, + }) } -func ListServiceDiscoveryInstances(sess *session.Session) ([]Resource, error) { - svc := servicediscovery.New(sess) - resources := []Resource{} - services := []*servicediscovery.ServiceSummary{} +type ServiceDiscoveryInstanceLister struct{} + +func (l *ServiceDiscoveryInstanceLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := servicediscovery.New(opts.Session) + resources := make([]resource.Resource, 0) + var services []*servicediscovery.ServiceSummary params := &servicediscovery.ListServicesInput{ MaxResults: aws.Int64(100), @@ -75,8 +84,13 @@ func ListServiceDiscoveryInstances(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *ServiceDiscoveryInstance) Remove() error { +type ServiceDiscoveryInstance struct { + svc *servicediscovery.ServiceDiscovery + serviceID *string + instanceID *string +} +func (f *ServiceDiscoveryInstance) Remove(_ context.Context) error { _, err := f.svc.DeregisterInstance(&servicediscovery.DeregisterInstanceInput{ InstanceId: f.instanceID, ServiceId: f.serviceID, diff --git a/resources/servicediscovery-namespaces.go b/resources/servicediscovery-namespaces.go index 42fe7714..d4d84e40 100644 --- a/resources/servicediscovery-namespaces.go +++ b/resources/servicediscovery-namespaces.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/servicediscovery" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ServiceDiscoveryNamespace struct { - svc *servicediscovery.ServiceDiscovery - ID *string -} +const ServiceDiscoveryNamespaceResource = "ServiceDiscoveryNamespace" func init() { - register("ServiceDiscoveryNamespace", ListServiceDiscoveryNamespaces) + resource.Register(resource.Registration{ + Name: ServiceDiscoveryNamespaceResource, + Scope: nuke.Account, + Lister: &ServiceDiscoveryNamespaceLister{}, + }) } -func ListServiceDiscoveryNamespaces(sess *session.Session) ([]Resource, error) { - svc := servicediscovery.New(sess) - resources := []Resource{} +type ServiceDiscoveryNamespaceLister struct{} + +func (l *ServiceDiscoveryNamespaceLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := servicediscovery.New(opts.Session) + resources := make([]resource.Resource, 0) params := &servicediscovery.ListNamespacesInput{ MaxResults: aws.Int64(100), @@ -48,8 +58,12 @@ func ListServiceDiscoveryNamespaces(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *ServiceDiscoveryNamespace) Remove() error { +type ServiceDiscoveryNamespace struct { + svc *servicediscovery.ServiceDiscovery + ID *string +} +func (f *ServiceDiscoveryNamespace) Remove(_ context.Context) error { _, err := f.svc.DeleteNamespace(&servicediscovery.DeleteNamespaceInput{ Id: f.ID, }) diff --git a/resources/servicediscovery-services.go b/resources/servicediscovery-services.go index a53566c0..a0b0dd47 100644 --- a/resources/servicediscovery-services.go +++ b/resources/servicediscovery-services.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/servicediscovery" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type ServiceDiscoveryService struct { - svc *servicediscovery.ServiceDiscovery - ID *string -} +const ServiceDiscoveryServiceResource = "ServiceDiscoveryService" func init() { - register("ServiceDiscoveryService", ListServiceDiscoveryServices) + resource.Register(resource.Registration{ + Name: ServiceDiscoveryServiceResource, + Scope: nuke.Account, + Lister: &ServiceDiscoveryServiceLister{}, + }) } -func ListServiceDiscoveryServices(sess *session.Session) ([]Resource, error) { - svc := servicediscovery.New(sess) - resources := []Resource{} +type ServiceDiscoveryServiceLister struct{} + +func (l *ServiceDiscoveryServiceLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := servicediscovery.New(opts.Session) + resources := make([]resource.Resource, 0) params := &servicediscovery.ListServicesInput{ MaxResults: aws.Int64(100), @@ -48,8 +58,12 @@ func ListServiceDiscoveryServices(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *ServiceDiscoveryService) Remove() error { +type ServiceDiscoveryService struct { + svc *servicediscovery.ServiceDiscovery + ID *string +} +func (f *ServiceDiscoveryService) Remove(_ context.Context) error { _, err := f.svc.DeleteService(&servicediscovery.DeleteServiceInput{ Id: f.ID, }) diff --git a/resources/ses-configurationsets.go b/resources/ses-configurationsets.go index e4b963d7..fb2551fa 100644 --- a/resources/ses-configurationsets.go +++ b/resources/ses-configurationsets.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ses" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type SESConfigurationSet struct { - svc *ses.SES - name *string -} +const SESConfigurationSetResource = "SESConfigurationSet" func init() { - register("SESConfigurationSet", ListSESConfigurationSets) + resource.Register(resource.Registration{ + Name: SESConfigurationSetResource, + Scope: nuke.Account, + Lister: &SESConfigurationSetLister{}, + }) } -func ListSESConfigurationSets(sess *session.Session) ([]Resource, error) { - svc := ses.New(sess) - resources := []Resource{} +type SESConfigurationSetLister struct{} + +func (l *SESConfigurationSetLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ses.New(opts.Session) + resources := make([]resource.Resource, 0) params := &ses.ListConfigurationSetsInput{ MaxItems: aws.Int64(100), @@ -46,8 +56,12 @@ func ListSESConfigurationSets(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *SESConfigurationSet) Remove() error { +type SESConfigurationSet struct { + svc *ses.SES + name *string +} +func (f *SESConfigurationSet) Remove(_ context.Context) error { _, err := f.svc.DeleteConfigurationSet(&ses.DeleteConfigurationSetInput{ ConfigurationSetName: f.name, }) diff --git a/resources/ses-identities.go b/resources/ses-identities.go index c8d01064..d5bb4958 100644 --- a/resources/ses-identities.go +++ b/resources/ses-identities.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ses" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type SESIdentity struct { - svc *ses.SES - identity *string -} +const SESIdentityResource = "SESIdentity" func init() { - register("SESIdentity", ListSESIdentities) + resource.Register(resource.Registration{ + Name: SESIdentityResource, + Scope: nuke.Account, + Lister: &SESIdentityLister{}, + }) } -func ListSESIdentities(sess *session.Session) ([]Resource, error) { - svc := ses.New(sess) - resources := []Resource{} +type SESIdentityLister struct{} + +func (l *SESIdentityLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ses.New(opts.Session) + resources := make([]resource.Resource, 0) params := &ses.ListIdentitiesInput{ MaxItems: aws.Int64(100), @@ -46,8 +56,12 @@ func ListSESIdentities(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *SESIdentity) Remove() error { +type SESIdentity struct { + svc *ses.SES + identity *string +} +func (f *SESIdentity) Remove(_ context.Context) error { _, err := f.svc.DeleteIdentity(&ses.DeleteIdentityInput{ Identity: f.identity, }) diff --git a/resources/ses-receiptfilters.go b/resources/ses-receiptfilters.go index d841eb09..880f0a7c 100644 --- a/resources/ses-receiptfilters.go +++ b/resources/ses-receiptfilters.go @@ -1,27 +1,52 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + + "errors" + + "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/service/ses" + + sdkerrors "github.com/ekristen/libnuke/pkg/errors" + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type SESReceiptFilter struct { - svc *ses.SES - name *string -} +const SESReceiptFilterResource = "SESReceiptFilter" func init() { - register("SESReceiptFilter", ListSESReceiptFilters) + resource.Register(resource.Registration{ + Name: SESReceiptFilterResource, + Scope: nuke.Account, + Lister: &SESReceiptFilterLister{}, + }) } -func ListSESReceiptFilters(sess *session.Session) ([]Resource, error) { - svc := ses.New(sess) - resources := []Resource{} +type SESReceiptFilterLister struct{} + +func (l *SESReceiptFilterLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ses.New(opts.Session) + resources := make([]resource.Resource, 0) params := &ses.ListReceiptFiltersInput{} output, err := svc.ListReceiptFilters(params) if err != nil { + // SES capabilities aren't the same in all regions, for example us-west-1 will throw InvalidAction + // errors, but other regions work, this allows us to safely ignore these and yet log them in debug logs + // should we need to troubleshoot. + var awsError awserr.Error + if errors.As(err, &awsError) { + if awsError.Code() == "InvalidAction" { + return nil, sdkerrors.ErrSkipRequest( + "Listing of SESReceiptFilter not supported in this region: " + *opts.Session.Config.Region) + } + } + return nil, err } @@ -35,8 +60,12 @@ func ListSESReceiptFilters(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *SESReceiptFilter) Remove() error { +type SESReceiptFilter struct { + svc *ses.SES + name *string +} +func (f *SESReceiptFilter) Remove(_ context.Context) error { _, err := f.svc.DeleteReceiptFilter(&ses.DeleteReceiptFilterInput{ FilterName: f.name, }) diff --git a/resources/ses-receiptrulesets.go b/resources/ses-receiptrulesets.go index 562dda42..a4f62742 100644 --- a/resources/ses-receiptrulesets.go +++ b/resources/ses-receiptrulesets.go @@ -1,36 +1,58 @@ package resources import ( + "context" + + "errors" "fmt" - "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/service/ses" + + sdkerrors "github.com/ekristen/libnuke/pkg/errors" + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type SESReceiptRuleSet struct { - svc *ses.SES - name *string - activeRuleSet bool -} +const SESReceiptRuleSetResource = "SESReceiptRuleSet" func init() { - register("SESReceiptRuleSet", ListSESReceiptRuleSets) + resource.Register(resource.Registration{ + Name: SESReceiptRuleSetResource, + Scope: nuke.Account, + Lister: &SESReceiptRuleSetLister{}, + }) } -func ListSESReceiptRuleSets(sess *session.Session) ([]Resource, error) { - svc := ses.New(sess) - resources := []Resource{} +type SESReceiptRuleSetLister struct{} + +func (l *SESReceiptRuleSetLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ses.New(opts.Session) + resources := make([]resource.Resource, 0) params := &ses.ListReceiptRuleSetsInput{} output, err := svc.ListReceiptRuleSets(params) if err != nil { + // SES capabilities aren't the same in all regions, for example us-west-1 will throw InvalidAction + // errors, but other regions work, this allows us to safely ignore these and yet log them in debug logs + // should we need to troubleshoot. + var awsError awserr.Error + if errors.As(err, &awsError) { + if awsError.Code() == "InvalidAction" { + return nil, sdkerrors.ErrSkipRequest( + "Listing of SESReceiptFilter not supported in this region: " + *opts.Session.Config.Region) + } + } + return nil, err } for _, ruleSet := range output.RuleSets { - - //Check active state + // Check active state ruleSetState := false ruleName := ruleSet.Name @@ -54,8 +76,20 @@ func ListSESReceiptRuleSets(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *SESReceiptRuleSet) Remove() error { +type SESReceiptRuleSet struct { + svc *ses.SES + name *string + activeRuleSet bool +} + +func (f *SESReceiptRuleSet) Filter() error { + if f.activeRuleSet == true { + return fmt.Errorf("cannot delete active ruleset") + } + return nil +} +func (f *SESReceiptRuleSet) Remove(_ context.Context) error { _, err := f.svc.DeleteReceiptRuleSet(&ses.DeleteReceiptRuleSetInput{ RuleSetName: f.name, }) @@ -66,10 +100,3 @@ func (f *SESReceiptRuleSet) Remove() error { func (f *SESReceiptRuleSet) String() string { return *f.name } - -func (f *SESReceiptRuleSet) Filter() error { - if f.activeRuleSet == true { - return fmt.Errorf("cannot delete active ruleset") - } - return nil -} diff --git a/resources/ses-templates.go b/resources/ses-templates.go index 43ac4c57..b12c028f 100644 --- a/resources/ses-templates.go +++ b/resources/ses-templates.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ses" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type SESTemplate struct { - svc *ses.SES - name *string -} +const SESTemplateResource = "SESTemplate" func init() { - register("SESTemplate", ListSESTemplates) + resource.Register(resource.Registration{ + Name: SESTemplateResource, + Scope: nuke.Account, + Lister: &SESTemplateLister{}, + }) } -func ListSESTemplates(sess *session.Session) ([]Resource, error) { - svc := ses.New(sess) - resources := []Resource{} +type SESTemplateLister struct{} + +func (l *SESTemplateLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ses.New(opts.Session) + resources := make([]resource.Resource, 0) params := &ses.ListTemplatesInput{ MaxItems: aws.Int64(100), @@ -46,8 +56,12 @@ func ListSESTemplates(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *SESTemplate) Remove() error { +type SESTemplate struct { + svc *ses.SES + name *string +} +func (f *SESTemplate) Remove(_ context.Context) error { _, err := f.svc.DeleteTemplate(&ses.DeleteTemplateInput{ TemplateName: f.name, }) diff --git a/resources/sfn-statemachines.go b/resources/sfn-statemachines.go index e0748f7a..b80c85b3 100644 --- a/resources/sfn-statemachines.go +++ b/resources/sfn-statemachines.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/sfn" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type SFNStateMachine struct { - svc *sfn.SFN - ARN *string -} +const SFNStateMachineResource = "SFNStateMachine" func init() { - register("SFNStateMachine", ListSFNStateMachines) + resource.Register(resource.Registration{ + Name: SFNStateMachineResource, + Scope: nuke.Account, + Lister: &SFNStateMachineLister{}, + }) } -func ListSFNStateMachines(sess *session.Session) ([]Resource, error) { - svc := sfn.New(sess) - resources := []Resource{} +type SFNStateMachineLister struct{} + +func (l *SFNStateMachineLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := sfn.New(opts.Session) + resources := make([]resource.Resource, 0) params := &sfn.ListStateMachinesInput{ MaxResults: aws.Int64(100), @@ -46,8 +56,12 @@ func ListSFNStateMachines(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *SFNStateMachine) Remove() error { +type SFNStateMachine struct { + svc *sfn.SFN + ARN *string +} +func (f *SFNStateMachine) Remove(_ context.Context) error { _, err := f.svc.DeleteStateMachine(&sfn.DeleteStateMachineInput{ StateMachineArn: f.ARN, }) diff --git a/resources/signer.signingjobs.go b/resources/signer-signingjobs.go similarity index 79% rename from resources/signer.signingjobs.go rename to resources/signer-signingjobs.go index bc9f88c5..686af9f4 100644 --- a/resources/signer.signingjobs.go +++ b/resources/signer-signingjobs.go @@ -1,36 +1,37 @@ package resources import ( + "context" + "fmt" "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/signer" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type SignerSigningJob struct { - svc *signer.Signer - jobId *string - reason string - isRevoked *bool - createdAt time.Time - profileName *string - profileVersion *string - platformId *string - platformDisplayName *string - jobOwner *string - jobInvoker *string -} +const SignerSigningJobResource = "SignerSigningJob" func init() { - register("SignerSigningJob", ListSignerSigningJobs) + resource.Register(resource.Registration{ + Name: SignerSigningJobResource, + Scope: nuke.Account, + Lister: &SignerSigningJobLister{}, + }) } -func ListSignerSigningJobs(sess *session.Session) ([]Resource, error) { - svc := signer.New(sess) - resources := []Resource{} +type SignerSigningJobLister struct{} + +func (l *SignerSigningJobLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := signer.New(opts.Session) + resources := make([]resource.Resource, 0) const reason string = "Revoked by AWS Nuke" listJobsInput := &signer.ListSigningJobsInput{} @@ -59,6 +60,20 @@ func ListSignerSigningJobs(sess *session.Session) ([]Resource, error) { return resources, nil } +type SignerSigningJob struct { + svc *signer.Signer + jobId *string + reason string + isRevoked *bool + createdAt time.Time + profileName *string + profileVersion *string + platformId *string + platformDisplayName *string + jobOwner *string + jobInvoker *string +} + func (j *SignerSigningJob) Filter() error { // Consider all non-revoked jobs if *j.isRevoked { @@ -67,7 +82,7 @@ func (j *SignerSigningJob) Filter() error { return nil } -func (j *SignerSigningJob) Remove() error { +func (j *SignerSigningJob) Remove(_ context.Context) error { // Signing jobs are viewable by the ListSigningJobs operation for two years after they are performed [1] // As a precaution we are updating Signing jobs statuses to revoked. This indicates that the signature is no longer valid. // [1] https://awscli.amazonaws.com/v2/documentation/api/latest/reference/signer/start-signing-job.html diff --git a/resources/simpledb-domains.go b/resources/simpledb-domains.go index 2c0520b0..46ec07b6 100644 --- a/resources/simpledb-domains.go +++ b/resources/simpledb-domains.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/simpledb" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type SimpleDBDomain struct { - svc *simpledb.SimpleDB - domainName *string -} +const SimpleDBDomainResource = "SimpleDBDomain" func init() { - register("SimpleDBDomain", ListSimpleDBDomains) + resource.Register(resource.Registration{ + Name: SimpleDBDomainResource, + Scope: nuke.Account, + Lister: &SimpleDBDomainLister{}, + }) } -func ListSimpleDBDomains(sess *session.Session) ([]Resource, error) { - svc := simpledb.New(sess) - resources := []Resource{} +type SimpleDBDomainLister struct{} + +func (l *SimpleDBDomainLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := simpledb.New(opts.Session) + resources := make([]resource.Resource, 0) params := &simpledb.ListDomainsInput{ MaxNumberOfDomains: aws.Int64(100), @@ -46,8 +56,12 @@ func ListSimpleDBDomains(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *SimpleDBDomain) Remove() error { +type SimpleDBDomain struct { + svc *simpledb.SimpleDB + domainName *string +} +func (f *SimpleDBDomain) Remove(_ context.Context) error { _, err := f.svc.DeleteDomain(&simpledb.DeleteDomainInput{ DomainName: f.domainName, }) diff --git a/resources/sns-endpoints.go b/resources/sns-endpoints.go index 297f0573..56d3dba4 100644 --- a/resources/sns-endpoints.go +++ b/resources/sns-endpoints.go @@ -1,31 +1,43 @@ package resources import ( + "context" + + "errors" "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/sns" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type SNSEndpoint struct { - svc *sns.SNS - ARN *string -} +const SNSEndpointResource = "SNSEndpoint" func init() { - register("SNSEndpoint", ListSNSEndpoints) + resource.Register(resource.Registration{ + Name: SNSEndpointResource, + Scope: nuke.Account, + Lister: &SNSEndpointLister{}, + }) } -func ListSNSEndpoints(sess *session.Session) ([]Resource, error) { - svc := sns.New(sess) - resources := []Resource{} - platformApplications := []*sns.PlatformApplication{} +type SNSEndpointLister struct{} + +func (l *SNSEndpointLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := sns.New(opts.Session) + resources := make([]resource.Resource, 0) + var platformApplications []*sns.PlatformApplication platformParams := &sns.ListPlatformApplicationsInput{} for { resp, err := svc.ListPlatformApplications(platformParams) if err != nil { - awsErr, ok := err.(awserr.Error) + var awsErr awserr.Error + ok := errors.As(err, &awsErr) if ok && awsErr.Code() == "InvalidAction" && awsErr.Message() == "Operation (ListPlatformApplications) is not supported in this region" { // AWS answers with InvalidAction on regions that do not // support ListPlatformApplications. @@ -72,8 +84,12 @@ func ListSNSEndpoints(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *SNSEndpoint) Remove() error { +type SNSEndpoint struct { + svc *sns.SNS + ARN *string +} +func (f *SNSEndpoint) Remove(_ context.Context) error { _, err := f.svc.DeleteEndpoint(&sns.DeleteEndpointInput{ EndpointArn: f.ARN, }) diff --git a/resources/sns-platformapplications.go b/resources/sns-platformapplications.go index b4806987..49553f75 100644 --- a/resources/sns-platformapplications.go +++ b/resources/sns-platformapplications.go @@ -1,30 +1,42 @@ package resources import ( + "context" + + "errors" "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/sns" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type SNSPlatformApplication struct { - svc *sns.SNS - ARN *string -} +const SNSPlatformApplicationResource = "SNSPlatformApplication" func init() { - register("SNSPlatformApplication", ListSNSPlatformApplications) + resource.Register(resource.Registration{ + Name: SNSPlatformApplicationResource, + Scope: nuke.Account, + Lister: &SNSPlatformApplicationLister{}, + }) } -func ListSNSPlatformApplications(sess *session.Session) ([]Resource, error) { - svc := sns.New(sess) - resources := []Resource{} +type SNSPlatformApplicationLister struct{} + +func (l *SNSPlatformApplicationLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := sns.New(opts.Session) + resources := make([]resource.Resource, 0) params := &sns.ListPlatformApplicationsInput{} for { resp, err := svc.ListPlatformApplications(params) if err != nil { - awsErr, ok := err.(awserr.Error) + var awsErr awserr.Error + ok := errors.As(err, &awsErr) if ok && awsErr.Code() == "InvalidAction" && awsErr.Message() == "Operation (ListPlatformApplications) is not supported in this region" { // AWS answers with InvalidAction on regions that do not // support ListPlatformApplications. @@ -49,8 +61,12 @@ func ListSNSPlatformApplications(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *SNSPlatformApplication) Remove() error { +type SNSPlatformApplication struct { + svc *sns.SNS + ARN *string +} +func (f *SNSPlatformApplication) Remove(_ context.Context) error { _, err := f.svc.DeletePlatformApplication(&sns.DeletePlatformApplicationInput{ PlatformApplicationArn: f.ARN, }) diff --git a/resources/sns-subscriptions.go b/resources/sns-subscriptions.go index 30f07a01..b227c85a 100644 --- a/resources/sns-subscriptions.go +++ b/resources/sns-subscriptions.go @@ -1,21 +1,36 @@ package resources import ( + "context" + "fmt" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/sns" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const SNSSubscriptionResource = "SNSSubscription" + func init() { - register("SNSSubscription", ListSNSSubscriptions) + resource.Register(resource.Registration{ + Name: SNSSubscriptionResource, + Scope: nuke.Account, + Lister: &SNSSubscriptionLister{}, + }) } -func ListSNSSubscriptions(sess *session.Session) ([]Resource, error) { - svc := sns.New(sess) +type SNSSubscriptionLister struct{} + +func (l *SNSSubscriptionLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := sns.New(opts.Session) params := &sns.ListSubscriptionsInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { resp, err := svc.ListSubscriptions(params) @@ -49,7 +64,7 @@ type SNSSubscription struct { name *string } -func (subs *SNSSubscription) Remove() error { +func (subs *SNSSubscription) Remove(_ context.Context) error { _, err := subs.svc.Unsubscribe(&sns.UnsubscribeInput{ SubscriptionArn: subs.id, }) diff --git a/resources/sns-topics.go b/resources/sns-topics.go index 22010bd2..289d6fa4 100644 --- a/resources/sns-topics.go +++ b/resources/sns-topics.go @@ -1,25 +1,34 @@ package resources import ( + "context" + "fmt" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/sns" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type SNSTopic struct { - svc *sns.SNS - id *string - tags []*sns.Tag -} +const SNSTopicResource = "SNSTopic" func init() { - register("SNSTopic", ListSNSTopics) + resource.Register(resource.Registration{ + Name: SNSTopicResource, + Scope: nuke.Account, + Lister: &SNSTopicLister{}, + }) } -func ListSNSTopics(sess *session.Session) ([]Resource, error) { - svc := sns.New(sess) +type SNSTopicLister struct{} + +func (l *SNSTopicLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := sns.New(opts.Session) topics := make([]*sns.Topic, 0) @@ -34,7 +43,7 @@ func ListSNSTopics(sess *session.Session) ([]Resource, error) { if err != nil { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, topic := range topics { tags, err := svc.ListTagsForResource(&sns.ListTagsForResourceInput{ ResourceArn: topic.TopicArn, @@ -53,7 +62,13 @@ func ListSNSTopics(sess *session.Session) ([]Resource, error) { return resources, nil } -func (topic *SNSTopic) Remove() error { +type SNSTopic struct { + svc *sns.SNS + id *string + tags []*sns.Tag +} + +func (topic *SNSTopic) Remove(_ context.Context) error { _, err := topic.svc.DeleteTopic(&sns.DeleteTopicInput{ TopicArn: topic.id, }) diff --git a/resources/sqs-queues.go b/resources/sqs-queues.go index 1821834f..1be01fcb 100644 --- a/resources/sqs-queues.go +++ b/resources/sqs-queues.go @@ -1,21 +1,33 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/service/sqs" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type SQSQueue struct { - svc *sqs.SQS - queueURL *string -} +const SQSQueueResource = "SQSQueue" func init() { - register("SQSQueue", ListSQSQueues) + resource.Register(resource.Registration{ + Name: SQSQueueResource, + Scope: nuke.Account, + Lister: &SQSQueueLister{}, + }) } -func ListSQSQueues(sess *session.Session) ([]Resource, error) { - svc := sqs.New(sess) +type SQSQueueLister struct{} + +func (l *SQSQueueLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := sqs.New(opts.Session) params := &sqs.ListQueuesInput{} resp, err := svc.ListQueues(params) @@ -23,7 +35,7 @@ func ListSQSQueues(sess *session.Session) ([]Resource, error) { return nil, err } - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, queue := range resp.QueueUrls { resources = append(resources, &SQSQueue{ svc: svc, @@ -34,8 +46,12 @@ func ListSQSQueues(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *SQSQueue) Remove() error { +type SQSQueue struct { + svc *sqs.SQS + queueURL *string +} +func (f *SQSQueue) Remove(_ context.Context) error { _, err := f.svc.DeleteQueue(&sqs.DeleteQueueInput{ QueueUrl: f.queueURL, }) @@ -44,5 +60,5 @@ func (f *SQSQueue) Remove() error { } func (f *SQSQueue) String() string { - return *f.queueURL + return ptr.ToString(f.queueURL) } diff --git a/resources/ssm-activations.go b/resources/ssm-activations.go index 9486b75f..eef7f5d0 100644 --- a/resources/ssm-activations.go +++ b/resources/ssm-activations.go @@ -1,23 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/ssm" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type SSMActivation struct { - svc *ssm.SSM - ID *string -} +const SSMActivationResource = "SSMActivation" func init() { - register("SSMActivation", ListSSMActivations) + resource.Register(resource.Registration{ + Name: SSMActivationResource, + Scope: nuke.Account, + Lister: &SSMActivationLister{}, + }) } -func ListSSMActivations(sess *session.Session) ([]Resource, error) { - svc := ssm.New(sess) - resources := []Resource{} +type SSMActivationLister struct{} + +func (l *SSMActivationLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ssm.New(opts.Session) + resources := make([]resource.Resource, 0) params := &ssm.DescribeActivationsInput{ MaxResults: aws.Int64(50), @@ -46,8 +57,12 @@ func ListSSMActivations(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *SSMActivation) Remove() error { +type SSMActivation struct { + svc *ssm.SSM + ID *string +} +func (f *SSMActivation) Remove(_ context.Context) error { _, err := f.svc.DeleteActivation(&ssm.DeleteActivationInput{ ActivationId: f.ID, }) diff --git a/resources/ssm-associations.go b/resources/ssm-associations.go index fb0e1383..82088748 100644 --- a/resources/ssm-associations.go +++ b/resources/ssm-associations.go @@ -1,24 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ssm" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type SSMAssociation struct { - svc *ssm.SSM - associationID *string - instanceID *string -} +const SSMAssociationResource = "SSMAssociation" func init() { - register("SSMAssociation", ListSSMAssociations) + resource.Register(resource.Registration{ + Name: SSMAssociationResource, + Scope: nuke.Account, + Lister: &SSMAssociationLister{}, + }) } -func ListSSMAssociations(sess *session.Session) ([]Resource, error) { - svc := ssm.New(sess) - resources := []Resource{} +type SSMAssociationLister struct{} + +func (l *SSMAssociationLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ssm.New(opts.Session) + resources := make([]resource.Resource, 0) params := &ssm.ListAssociationsInput{ MaxResults: aws.Int64(50), @@ -48,8 +57,13 @@ func ListSSMAssociations(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *SSMAssociation) Remove() error { +type SSMAssociation struct { + svc *ssm.SSM + associationID *string + instanceID *string +} +func (f *SSMAssociation) Remove(_ context.Context) error { _, err := f.svc.DeleteAssociation(&ssm.DeleteAssociationInput{ AssociationId: f.associationID, }) diff --git a/resources/ssm-documents.go b/resources/ssm-documents.go index d7e5f01a..459d859f 100644 --- a/resources/ssm-documents.go +++ b/resources/ssm-documents.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ssm" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type SSMDocument struct { - svc *ssm.SSM - name *string -} +const SSMDocumentResource = "SSMDocument" func init() { - register("SSMDocument", ListSSMDocuments) + resource.Register(resource.Registration{ + Name: SSMDocumentResource, + Scope: nuke.Account, + Lister: &SSMDocumentLister{}, + }) } -func ListSSMDocuments(sess *session.Session) ([]Resource, error) { - svc := ssm.New(sess) - resources := []Resource{} +type SSMDocumentLister struct{} + +func (l *SSMDocumentLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ssm.New(opts.Session) + resources := make([]resource.Resource, 0) documentKeyFilter := []*ssm.DocumentKeyValuesFilter{ { @@ -54,8 +64,12 @@ func ListSSMDocuments(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *SSMDocument) Remove() error { +type SSMDocument struct { + svc *ssm.SSM + name *string +} +func (f *SSMDocument) Remove(_ context.Context) error { _, err := f.svc.DeleteDocument(&ssm.DeleteDocumentInput{ Name: f.name, }) diff --git a/resources/ssm-maintenancewindows.go b/resources/ssm-maintenancewindows.go index 98c92d82..7afaab0e 100644 --- a/resources/ssm-maintenancewindows.go +++ b/resources/ssm-maintenancewindows.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ssm" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type SSMMaintenanceWindow struct { - svc *ssm.SSM - ID *string -} +const SSMMaintenanceWindowResource = "SSMMaintenanceWindow" func init() { - register("SSMMaintenanceWindow", ListSSMMaintenanceWindows) + resource.Register(resource.Registration{ + Name: SSMMaintenanceWindowResource, + Scope: nuke.Account, + Lister: &SSMMaintenanceWindowLister{}, + }) } -func ListSSMMaintenanceWindows(sess *session.Session) ([]Resource, error) { - svc := ssm.New(sess) - resources := []Resource{} +type SSMMaintenanceWindowLister struct{} + +func (l *SSMMaintenanceWindowLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ssm.New(opts.Session) + resources := make([]resource.Resource, 0) params := &ssm.DescribeMaintenanceWindowsInput{ MaxResults: aws.Int64(50), @@ -46,8 +56,12 @@ func ListSSMMaintenanceWindows(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *SSMMaintenanceWindow) Remove() error { +type SSMMaintenanceWindow struct { + svc *ssm.SSM + ID *string +} +func (f *SSMMaintenanceWindow) Remove(_ context.Context) error { _, err := f.svc.DeleteMaintenanceWindow(&ssm.DeleteMaintenanceWindowInput{ WindowId: f.ID, }) diff --git a/resources/ssm-parameters.go b/resources/ssm-parameters.go index 15bf60f7..50ff455e 100644 --- a/resources/ssm-parameters.go +++ b/resources/ssm-parameters.go @@ -1,25 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ssm" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type SSMParameter struct { - svc *ssm.SSM - name *string - tags []*ssm.Tag -} +const SSMParameterResource = "SSMParameter" func init() { - register("SSMParameter", ListSSMParameters) + resource.Register(resource.Registration{ + Name: SSMParameterResource, + Scope: nuke.Account, + Lister: &SSMParameterLister{}, + }) } -func ListSSMParameters(sess *session.Session) ([]Resource, error) { - svc := ssm.New(sess) - resources := []Resource{} +type SSMParameterLister struct{} + +func (l *SSMParameterLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ssm.New(opts.Session) + resources := make([]resource.Resource, 0) params := &ssm.DescribeParametersInput{ MaxResults: aws.Int64(50), @@ -59,8 +68,13 @@ func ListSSMParameters(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *SSMParameter) Remove() error { +type SSMParameter struct { + svc *ssm.SSM + name *string + tags []*ssm.Tag +} +func (f *SSMParameter) Remove(_ context.Context) error { _, err := f.svc.DeleteParameter(&ssm.DeleteParameterInput{ Name: f.name, }) diff --git a/resources/ssm-patchbaselines.go b/resources/ssm-patchbaselines.go index fbb3ee44..92dfa6bf 100644 --- a/resources/ssm-patchbaselines.go +++ b/resources/ssm-patchbaselines.go @@ -1,26 +1,35 @@ package resources import ( + "context" + "fmt" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ssm" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type SSMPatchBaseline struct { - svc *ssm.SSM - ID *string - defaultBaseline *bool -} +const SSMPatchBaselineResource = "SSMPatchBaseline" func init() { - register("SSMPatchBaseline", ListSSMPatchBaselines) + resource.Register(resource.Registration{ + Name: SSMPatchBaselineResource, + Scope: nuke.Account, + Lister: &SSMPatchBaselineLister{}, + }) } -func ListSSMPatchBaselines(sess *session.Session) ([]Resource, error) { - svc := ssm.New(sess) - resources := []Resource{} +type SSMPatchBaselineLister struct{} + +func (l *SSMPatchBaselineLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ssm.New(opts.Session) + resources := make([]resource.Resource, 0) patchBaselineFilter := []*ssm.PatchOrchestratorFilter{ { @@ -58,7 +67,13 @@ func ListSSMPatchBaselines(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *SSMPatchBaseline) Remove() error { +type SSMPatchBaseline struct { + svc *ssm.SSM + ID *string + defaultBaseline *bool +} + +func (f *SSMPatchBaseline) Remove(_ context.Context) error { err := f.DeregisterFromPatchGroups() if err != nil { return err diff --git a/resources/ssm-resourcedatasyncs.go b/resources/ssm-resourcedatasyncs.go index e2f6c0b5..99fe5e13 100644 --- a/resources/ssm-resourcedatasyncs.go +++ b/resources/ssm-resourcedatasyncs.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ssm" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type SSMResourceDataSync struct { - svc *ssm.SSM - name *string -} +const SSMResourceDataSyncResource = "SSMResourceDataSync" func init() { - register("SSMResourceDataSync", ListSSMResourceDataSyncs) + resource.Register(resource.Registration{ + Name: SSMResourceDataSyncResource, + Scope: nuke.Account, + Lister: &SSMResourceDataSyncLister{}, + }) } -func ListSSMResourceDataSyncs(sess *session.Session) ([]Resource, error) { - svc := ssm.New(sess) - resources := []Resource{} +type SSMResourceDataSyncLister struct{} + +func (l *SSMResourceDataSyncLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ssm.New(opts.Session) + resources := make([]resource.Resource, 0) params := &ssm.ListResourceDataSyncInput{ MaxResults: aws.Int64(50), @@ -46,8 +56,12 @@ func ListSSMResourceDataSyncs(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *SSMResourceDataSync) Remove() error { +type SSMResourceDataSync struct { + svc *ssm.SSM + name *string +} +func (f *SSMResourceDataSync) Remove(_ context.Context) error { _, err := f.svc.DeleteResourceDataSync(&ssm.DeleteResourceDataSyncInput{ SyncName: f.name, }) diff --git a/resources/storagegateway-fileshares.go b/resources/storagegateway-fileshares.go index 2c550c94..192c57aa 100644 --- a/resources/storagegateway-fileshares.go +++ b/resources/storagegateway-fileshares.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/storagegateway" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type StorageGatewayFileShare struct { - svc *storagegateway.StorageGateway - ARN *string -} +const StorageGatewayFileShareResource = "StorageGatewayFileShare" func init() { - register("StorageGatewayFileShare", ListStorageGatewayFileShares) + resource.Register(resource.Registration{ + Name: StorageGatewayFileShareResource, + Scope: nuke.Account, + Lister: &StorageGatewayFileShareLister{}, + }) } -func ListStorageGatewayFileShares(sess *session.Session) ([]Resource, error) { - svc := storagegateway.New(sess) - resources := []Resource{} +type StorageGatewayFileShareLister struct{} + +func (l *StorageGatewayFileShareLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := storagegateway.New(opts.Session) + resources := make([]resource.Resource, 0) params := &storagegateway.ListFileSharesInput{ Limit: aws.Int64(25), @@ -46,8 +56,12 @@ func ListStorageGatewayFileShares(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *StorageGatewayFileShare) Remove() error { +type StorageGatewayFileShare struct { + svc *storagegateway.StorageGateway + ARN *string +} +func (f *StorageGatewayFileShare) Remove(_ context.Context) error { _, err := f.svc.DeleteFileShare(&storagegateway.DeleteFileShareInput{ FileShareARN: f.ARN, ForceDelete: aws.Bool(true), diff --git a/resources/storagegateway-gateways.go b/resources/storagegateway-gateways.go index d033e0b3..ce1fa83e 100644 --- a/resources/storagegateway-gateways.go +++ b/resources/storagegateway-gateways.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/storagegateway" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type StorageGatewayGateway struct { - svc *storagegateway.StorageGateway - ARN *string -} +const StorageGatewayGatewayResource = "StorageGatewayGateway" func init() { - register("StorageGatewayGateway", ListStorageGatewayGateways) + resource.Register(resource.Registration{ + Name: StorageGatewayGatewayResource, + Scope: nuke.Account, + Lister: &StorageGatewayGatewayLister{}, + }) } -func ListStorageGatewayGateways(sess *session.Session) ([]Resource, error) { - svc := storagegateway.New(sess) - resources := []Resource{} +type StorageGatewayGatewayLister struct{} + +func (l *StorageGatewayGatewayLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := storagegateway.New(opts.Session) + resources := make([]resource.Resource, 0) params := &storagegateway.ListGatewaysInput{ Limit: aws.Int64(25), @@ -46,8 +56,12 @@ func ListStorageGatewayGateways(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *StorageGatewayGateway) Remove() error { +type StorageGatewayGateway struct { + svc *storagegateway.StorageGateway + ARN *string +} +func (f *StorageGatewayGateway) Remove(_ context.Context) error { _, err := f.svc.DeleteGateway(&storagegateway.DeleteGatewayInput{ GatewayARN: f.ARN, }) diff --git a/resources/storagegateway-tapes.go b/resources/storagegateway-tapes.go index 115f82ab..bb83c48a 100644 --- a/resources/storagegateway-tapes.go +++ b/resources/storagegateway-tapes.go @@ -1,24 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/storagegateway" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type StorageGatewayTape struct { - svc *storagegateway.StorageGateway - tapeARN *string - gatewayARN *string -} +const StorageGatewayTapeResource = "StorageGatewayTape" func init() { - register("StorageGatewayTape", ListStorageGatewayTapes) + resource.Register(resource.Registration{ + Name: StorageGatewayTapeResource, + Scope: nuke.Account, + Lister: &StorageGatewayTapeLister{}, + }) } -func ListStorageGatewayTapes(sess *session.Session) ([]Resource, error) { - svc := storagegateway.New(sess) - resources := []Resource{} +type StorageGatewayTapeLister struct{} + +func (l *StorageGatewayTapeLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := storagegateway.New(opts.Session) + resources := make([]resource.Resource, 0) params := &storagegateway.ListTapesInput{ Limit: aws.Int64(25), @@ -48,8 +57,13 @@ func ListStorageGatewayTapes(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *StorageGatewayTape) Remove() error { +type StorageGatewayTape struct { + svc *storagegateway.StorageGateway + tapeARN *string + gatewayARN *string +} +func (f *StorageGatewayTape) Remove(_ context.Context) error { _, err := f.svc.DeleteTape(&storagegateway.DeleteTapeInput{ TapeARN: f.tapeARN, GatewayARN: f.gatewayARN, diff --git a/resources/storagegateway-volumes.go b/resources/storagegateway-volumes.go index eea7d972..4942851f 100644 --- a/resources/storagegateway-volumes.go +++ b/resources/storagegateway-volumes.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/storagegateway" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type StorageGatewayVolume struct { - svc *storagegateway.StorageGateway - ARN *string -} +const StorageGatewayVolumeResource = "StorageGatewayVolume" func init() { - register("StorageGatewayVolume", ListStorageGatewayVolumes) + resource.Register(resource.Registration{ + Name: StorageGatewayVolumeResource, + Scope: nuke.Account, + Lister: &StorageGatewayVolumeLister{}, + }) } -func ListStorageGatewayVolumes(sess *session.Session) ([]Resource, error) { - svc := storagegateway.New(sess) - resources := []Resource{} +type StorageGatewayVolumeLister struct{} + +func (l *StorageGatewayVolumeLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := storagegateway.New(opts.Session) + resources := make([]resource.Resource, 0) params := &storagegateway.ListVolumesInput{ Limit: aws.Int64(25), @@ -46,7 +56,12 @@ func ListStorageGatewayVolumes(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *StorageGatewayVolume) Remove() error { +type StorageGatewayVolume struct { + svc *storagegateway.StorageGateway + ARN *string +} + +func (f *StorageGatewayVolume) Remove(_ context.Context) error { _, err := f.svc.DeleteVolume(&storagegateway.DeleteVolumeInput{ VolumeARN: f.ARN, diff --git a/resources/transfer-server-user.go b/resources/transfer-server-user.go index 438ce441..4c9640e8 100644 --- a/resources/transfer-server-user.go +++ b/resources/transfer-server-user.go @@ -1,28 +1,36 @@ package resources import ( + "context" + "fmt" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/transfer" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type TransferServerUser struct { - svc *transfer.Transfer - username *string - serverID *string - tags []*transfer.Tag -} +const TransferServerUserResource = "TransferServerUser" func init() { - register("TransferServerUser", ListTransferServerUsers) + resource.Register(resource.Registration{ + Name: TransferServerUserResource, + Scope: nuke.Account, + Lister: &TransferServerUserLister{}, + }) } -func ListTransferServerUsers(sess *session.Session) ([]Resource, error) { - svc := transfer.New(sess) - resources := []Resource{} +type TransferServerUserLister struct{} + +func (l *TransferServerUserLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := transfer.New(opts.Session) + resources := make([]resource.Resource, 0) params := &transfer.ListServersInput{ MaxResults: aws.Int64(50), @@ -82,8 +90,14 @@ func ListTransferServerUsers(sess *session.Session) ([]Resource, error) { return resources, nil } -func (ts *TransferServerUser) Remove() error { +type TransferServerUser struct { + svc *transfer.Transfer + username *string + serverID *string + tags []*transfer.Tag +} +func (ts *TransferServerUser) Remove(_ context.Context) error { _, err := ts.svc.DeleteUser(&transfer.DeleteUserInput{ ServerId: ts.serverID, UserName: ts.username, diff --git a/resources/transfer-server.go b/resources/transfer-server.go index afa26e83..c8a258bc 100644 --- a/resources/transfer-server.go +++ b/resources/transfer-server.go @@ -1,29 +1,36 @@ package resources import ( + "context" + "strings" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/transfer" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type TransferServer struct { - svc *transfer.Transfer - serverID *string - endpointType *string - protocols []string - tags []*transfer.Tag -} +const TransferServerResource = "TransferServer" func init() { - register("TransferServer", ListTransferServers) + resource.Register(resource.Registration{ + Name: TransferServerResource, + Scope: nuke.Account, + Lister: &TransferServerLister{}, + }) } -func ListTransferServers(sess *session.Session) ([]Resource, error) { - svc := transfer.New(sess) - resources := []Resource{} +type TransferServerLister struct{} + +func (l *TransferServerLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := transfer.New(opts.Session) + resources := make([]resource.Resource, 0) params := &transfer.ListServersInput{ MaxResults: aws.Int64(50), @@ -43,7 +50,7 @@ func ListTransferServers(sess *session.Session) ([]Resource, error) { return nil, err } - protocols := []string{} + var protocols []string for _, protocol := range descOutput.Server.Protocols { protocols = append(protocols, *protocol) } @@ -67,8 +74,15 @@ func ListTransferServers(sess *session.Session) ([]Resource, error) { return resources, nil } -func (ts *TransferServer) Remove() error { +type TransferServer struct { + svc *transfer.Transfer + serverID *string + endpointType *string + protocols []string + tags []*transfer.Tag +} +func (ts *TransferServer) Remove(_ context.Context) error { _, err := ts.svc.DeleteServer(&transfer.DeleteServerInput{ ServerId: ts.serverID, }) diff --git a/resources/util.go b/resources/util.go deleted file mode 100644 index 22a3e1b2..00000000 --- a/resources/util.go +++ /dev/null @@ -1,38 +0,0 @@ -package resources - -import "github.com/aws/aws-sdk-go/aws/awserr" - -func UnPtrBool(ptr *bool, def bool) bool { - if ptr == nil { - return def - } - return *ptr -} - -func UnPtrString(ptr *string, def string) string { - if ptr == nil { - return def - } - return *ptr -} - -func EqualStringPtr(v1, v2 *string) bool { - if v1 == nil && v2 == nil { - return true - } - - if v1 == nil || v2 == nil { - return false - } - - return *v1 == *v2 -} - -func IsAWSError(err error, code string) bool { - aerr, ok := err.(awserr.Error) - if !ok { - return false - } - - return aerr.Code() == code -} diff --git a/resources/waf-rules.go b/resources/waf-rules.go index a4b2b429..cc46e52e 100644 --- a/resources/waf-rules.go +++ b/resources/waf-rules.go @@ -1,25 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/waf" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type WAFRule struct { - svc *waf.WAF - ID *string - rule *waf.Rule -} +const WAFRuleResource = "WAFRule" func init() { - register("WAFRule", ListWAFRules) + resource.Register(resource.Registration{ + Name: WAFRuleResource, + Scope: nuke.Account, + Lister: &WAFRuleLister{}, + }) } -func ListWAFRules(sess *session.Session) ([]Resource, error) { - svc := waf.New(sess) - resources := []Resource{} +type WAFRuleLister struct{} + +func (l *WAFRuleLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := waf.New(opts.Session) + resources := make([]resource.Resource, 0) params := &waf.ListRulesInput{ Limit: aws.Int64(50), @@ -52,14 +61,19 @@ func ListWAFRules(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *WAFRule) Remove() error { +type WAFRule struct { + svc *waf.WAF + ID *string + rule *waf.Rule +} +func (f *WAFRule) Remove(_ context.Context) error { tokenOutput, err := f.svc.GetChangeToken(&waf.GetChangeTokenInput{}) if err != nil { return err } - ruleUpdates := []*waf.RuleUpdate{} + var ruleUpdates []*waf.RuleUpdate for _, predicate := range f.rule.Predicates { ruleUpdates = append(ruleUpdates, &waf.RuleUpdate{ Action: aws.String(waf.ChangeActionDelete), diff --git a/resources/waf-webacl-rule-attachements.go b/resources/waf-webacl-rule-attachments.go similarity index 62% rename from resources/waf-webacl-rule-attachements.go rename to resources/waf-webacl-rule-attachments.go index 6d08e0d7..dd52e55f 100644 --- a/resources/waf-webacl-rule-attachements.go +++ b/resources/waf-webacl-rule-attachments.go @@ -1,33 +1,42 @@ package resources import ( + "context" + "fmt" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/waf" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type WAFWebACLRuleAttachment struct { - svc *waf.WAF - webACLID *string - activatedRule *waf.ActivatedRule -} +const WAFWebACLRuleAttachmentResource = "WAFWebACLRuleAttachment" func init() { - register("WAFWebACLRuleAttachment", ListWAFWebACLRuleAttachments) + resource.Register(resource.Registration{ + Name: WAFWebACLRuleAttachmentResource, + Scope: nuke.Account, + Lister: &WAFWebACLRuleAttachmentLister{}, + }) } -func ListWAFWebACLRuleAttachments(sess *session.Session) ([]Resource, error) { - svc := waf.New(sess) - resources := []Resource{} - webACLs := []*waf.WebACLSummary{} +type WAFWebACLRuleAttachmentLister struct{} + +func (l *WAFWebACLRuleAttachmentLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := waf.New(opts.Session) + resources := make([]resource.Resource, 0) + var webACLs []*waf.WebACLSummary params := &waf.ListWebACLsInput{ Limit: aws.Int64(50), } - //List All Web ACL's + //List All Web ACLs for { resp, err := svc.ListWebACLs(params) if err != nil { @@ -58,7 +67,7 @@ func ListWAFWebACLRuleAttachments(sess *session.Session) ([]Resource, error) { for _, webACLRule := range resp.WebACL.Rules { resources = append(resources, &WAFWebACLRuleAttachment{ svc: svc, - webACLID: webACL.WebACLId, + webAclID: webACL.WebACLId, activatedRule: webACLRule, }) } @@ -68,7 +77,13 @@ func ListWAFWebACLRuleAttachments(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *WAFWebACLRuleAttachment) Remove() error { +type WAFWebACLRuleAttachment struct { + svc *waf.WAF + webAclID *string + activatedRule *waf.ActivatedRule +} + +func (f *WAFWebACLRuleAttachment) Remove(_ context.Context) error { tokenOutput, err := f.svc.GetChangeToken(&waf.GetChangeTokenInput{}) if err != nil { @@ -81,7 +96,7 @@ func (f *WAFWebACLRuleAttachment) Remove() error { } _, err = f.svc.UpdateWebACL(&waf.UpdateWebACLInput{ - WebACLId: f.webACLID, + WebACLId: f.webAclID, ChangeToken: tokenOutput.ChangeToken, Updates: []*waf.WebACLUpdate{webACLUpdate}, }) @@ -90,5 +105,5 @@ func (f *WAFWebACLRuleAttachment) Remove() error { } func (f *WAFWebACLRuleAttachment) String() string { - return fmt.Sprintf("%s -> %s", *f.webACLID, *f.activatedRule.RuleId) + return fmt.Sprintf("%s -> %s", *f.webAclID, *f.activatedRule.RuleId) } diff --git a/resources/waf-webacls.go b/resources/waf-webacls.go index 29fb817a..c40cf189 100644 --- a/resources/waf-webacls.go +++ b/resources/waf-webacls.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/waf" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type WAFWebACL struct { - svc *waf.WAF - ID *string -} +const WAFWebACLResource = "WAFWebACL" func init() { - register("WAFWebACL", ListWAFWebACLs) + resource.Register(resource.Registration{ + Name: WAFWebACLResource, + Scope: nuke.Account, + Lister: &WAFWebACLLister{}, + }) } -func ListWAFWebACLs(sess *session.Session) ([]Resource, error) { - svc := waf.New(sess) - resources := []Resource{} +type WAFWebACLLister struct{} + +func (l *WAFWebACLLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := waf.New(opts.Session) + resources := make([]resource.Resource, 0) params := &waf.ListWebACLsInput{ Limit: aws.Int64(50), @@ -46,8 +56,12 @@ func ListWAFWebACLs(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *WAFWebACL) Remove() error { +type WAFWebACL struct { + svc *waf.WAF + ID *string +} +func (f *WAFWebACL) Remove(_ context.Context) error { tokenOutput, err := f.svc.GetChangeToken(&waf.GetChangeTokenInput{}) if err != nil { return err diff --git a/resources/wafregional-byte-match-set-tuples.go b/resources/wafregional-byte-match-set-tuples.go index ddf7966f..7cf6b0a5 100644 --- a/resources/wafregional-byte-match-set-tuples.go +++ b/resources/wafregional-byte-match-set-tuples.go @@ -1,26 +1,35 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/waf" "github.com/aws/aws-sdk-go/service/wafregional" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type WAFRegionalByteMatchSetIP struct { - svc *wafregional.WAFRegional - matchSetid *string - tuple *waf.ByteMatchTuple -} +const WAFRegionalByteMatchSetIPResource = "WAFRegionalByteMatchSetIP" func init() { - register("WAFRegionalByteMatchSetIP", ListWAFRegionalByteMatchSetIPs) + resource.Register(resource.Registration{ + Name: WAFRegionalByteMatchSetIPResource, + Scope: nuke.Account, + Lister: &WAFRegionalByteMatchSetIPLister{}, + }) } -func ListWAFRegionalByteMatchSetIPs(sess *session.Session) ([]Resource, error) { - svc := wafregional.New(sess) - resources := []Resource{} +type WAFRegionalByteMatchSetIPLister struct{} + +func (l *WAFRegionalByteMatchSetIPLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := wafregional.New(opts.Session) + resources := make([]resource.Resource, 0) params := &waf.ListByteMatchSetsInput{ Limit: aws.Int64(50), @@ -44,7 +53,7 @@ func ListWAFRegionalByteMatchSetIPs(sess *session.Session) ([]Resource, error) { for _, tuple := range details.ByteMatchSet.ByteMatchTuples { resources = append(resources, &WAFRegionalByteMatchSetIP{ svc: svc, - matchSetid: set.ByteMatchSetId, + matchSetID: set.ByteMatchSetId, tuple: tuple, }) } @@ -60,7 +69,13 @@ func ListWAFRegionalByteMatchSetIPs(sess *session.Session) ([]Resource, error) { return resources, nil } -func (r *WAFRegionalByteMatchSetIP) Remove() error { +type WAFRegionalByteMatchSetIP struct { + svc *wafregional.WAFRegional + matchSetID *string + tuple *waf.ByteMatchTuple +} + +func (r *WAFRegionalByteMatchSetIP) Remove(_ context.Context) error { tokenOutput, err := r.svc.GetChangeToken(&waf.GetChangeTokenInput{}) if err != nil { return err @@ -68,7 +83,7 @@ func (r *WAFRegionalByteMatchSetIP) Remove() error { _, err = r.svc.UpdateByteMatchSet(&waf.UpdateByteMatchSetInput{ ChangeToken: tokenOutput.ChangeToken, - ByteMatchSetId: r.matchSetid, + ByteMatchSetId: r.matchSetID, Updates: []*waf.ByteMatchSetUpdate{ &waf.ByteMatchSetUpdate{ Action: aws.String("DELETE"), @@ -82,7 +97,7 @@ func (r *WAFRegionalByteMatchSetIP) Remove() error { func (r *WAFRegionalByteMatchSetIP) Properties() types.Properties { return types.NewProperties(). - Set("ByteMatchSetID", r.matchSetid). + Set("ByteMatchSetID", r.matchSetID). Set("FieldToMatchType", r.tuple.FieldToMatch.Type). Set("FieldToMatchData", r.tuple.FieldToMatch.Data). Set("TargetString", r.tuple.TargetString) diff --git a/resources/wafregional-byte-match-sets.go b/resources/wafregional-byte-match-sets.go index d9d1e167..922dfe6c 100644 --- a/resources/wafregional-byte-match-sets.go +++ b/resources/wafregional-byte-match-sets.go @@ -1,26 +1,35 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/waf" "github.com/aws/aws-sdk-go/service/wafregional" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type WAFRegionalByteMatchSet struct { - svc *wafregional.WAFRegional - id *string - name *string -} +const WAFRegionalByteMatchSetResource = "WAFRegionalByteMatchSet" func init() { - register("WAFRegionalByteMatchSet", ListWAFRegionalByteMatchSets) + resource.Register(resource.Registration{ + Name: WAFRegionalByteMatchSetResource, + Scope: nuke.Account, + Lister: &WAFRegionalByteMatchSetLister{}, + }) } -func ListWAFRegionalByteMatchSets(sess *session.Session) ([]Resource, error) { - svc := wafregional.New(sess) - resources := []Resource{} +type WAFRegionalByteMatchSetLister struct{} + +func (l *WAFRegionalByteMatchSetLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := wafregional.New(opts.Session) + resources := make([]resource.Resource, 0) params := &waf.ListByteMatchSetsInput{ Limit: aws.Int64(50), @@ -50,7 +59,13 @@ func ListWAFRegionalByteMatchSets(sess *session.Session) ([]Resource, error) { return resources, nil } -func (r *WAFRegionalByteMatchSet) Remove() error { +type WAFRegionalByteMatchSet struct { + svc *wafregional.WAFRegional + id *string + name *string +} + +func (r *WAFRegionalByteMatchSet) Remove(_ context.Context) error { tokenOutput, err := r.svc.GetChangeToken(&waf.GetChangeTokenInput{}) if err != nil { return err diff --git a/resources/wafregional-ip-set-ips.go b/resources/wafregional-ip-set-ips.go index 6ad754cc..89e7b89f 100644 --- a/resources/wafregional-ip-set-ips.go +++ b/resources/wafregional-ip-set-ips.go @@ -1,26 +1,35 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/waf" "github.com/aws/aws-sdk-go/service/wafregional" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type WAFRegionalIPSetIP struct { - svc *wafregional.WAFRegional - ipSetid *string - descriptor *waf.IPSetDescriptor -} +const WAFRegionalIPSetIPResource = "WAFRegionalIPSetIP" func init() { - register("WAFRegionalIPSetIP", ListWAFRegionalIPSetIPs) + resource.Register(resource.Registration{ + Name: WAFRegionalIPSetIPResource, + Scope: nuke.Account, + Lister: &WAFRegionalIPSetIPLister{}, + }) } -func ListWAFRegionalIPSetIPs(sess *session.Session) ([]Resource, error) { - svc := wafregional.New(sess) - resources := []Resource{} +type WAFRegionalIPSetIPLister struct{} + +func (l *WAFRegionalIPSetIPLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := wafregional.New(opts.Session) + resources := make([]resource.Resource, 0) params := &waf.ListIPSetsInput{ Limit: aws.Int64(50), @@ -44,7 +53,7 @@ func ListWAFRegionalIPSetIPs(sess *session.Session) ([]Resource, error) { for _, descriptor := range details.IPSet.IPSetDescriptors { resources = append(resources, &WAFRegionalIPSetIP{ svc: svc, - ipSetid: set.IPSetId, + ipSetID: set.IPSetId, descriptor: descriptor, }) } @@ -60,7 +69,13 @@ func ListWAFRegionalIPSetIPs(sess *session.Session) ([]Resource, error) { return resources, nil } -func (r *WAFRegionalIPSetIP) Remove() error { +type WAFRegionalIPSetIP struct { + svc *wafregional.WAFRegional + ipSetID *string + descriptor *waf.IPSetDescriptor +} + +func (r *WAFRegionalIPSetIP) Remove(_ context.Context) error { tokenOutput, err := r.svc.GetChangeToken(&waf.GetChangeTokenInput{}) if err != nil { return err @@ -68,7 +83,7 @@ func (r *WAFRegionalIPSetIP) Remove() error { _, err = r.svc.UpdateIPSet(&waf.UpdateIPSetInput{ ChangeToken: tokenOutput.ChangeToken, - IPSetId: r.ipSetid, + IPSetId: r.ipSetID, Updates: []*waf.IPSetUpdate{ &waf.IPSetUpdate{ Action: aws.String("DELETE"), @@ -82,7 +97,7 @@ func (r *WAFRegionalIPSetIP) Remove() error { func (r *WAFRegionalIPSetIP) Properties() types.Properties { return types.NewProperties(). - Set("IPSetID", r.ipSetid). + Set("IPSetID", r.ipSetID). Set("Type", r.descriptor.Type). Set("Value", r.descriptor.Value) } diff --git a/resources/wafregional-ip-sets.go b/resources/wafregional-ip-sets.go index e9e3c31a..876a267d 100644 --- a/resources/wafregional-ip-sets.go +++ b/resources/wafregional-ip-sets.go @@ -1,26 +1,35 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/waf" "github.com/aws/aws-sdk-go/service/wafregional" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type WAFRegionalIPSet struct { - svc *wafregional.WAFRegional - id *string - name *string -} +const WAFRegionalIPSetResource = "WAFRegionalIPSet" func init() { - register("WAFRegionalIPSet", ListWAFRegionalIPSets) + resource.Register(resource.Registration{ + Name: WAFRegionalIPSetResource, + Scope: nuke.Account, + Lister: &WAFRegionalIPSetLister{}, + }) } -func ListWAFRegionalIPSets(sess *session.Session) ([]Resource, error) { - svc := wafregional.New(sess) - resources := []Resource{} +type WAFRegionalIPSetLister struct{} + +func (l *WAFRegionalIPSetLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := wafregional.New(opts.Session) + resources := make([]resource.Resource, 0) params := &waf.ListIPSetsInput{ Limit: aws.Int64(50), @@ -50,7 +59,13 @@ func ListWAFRegionalIPSets(sess *session.Session) ([]Resource, error) { return resources, nil } -func (r *WAFRegionalIPSet) Remove() error { +type WAFRegionalIPSet struct { + svc *wafregional.WAFRegional + id *string + name *string +} + +func (r *WAFRegionalIPSet) Remove(_ context.Context) error { tokenOutput, err := r.svc.GetChangeToken(&waf.GetChangeTokenInput{}) if err != nil { return err diff --git a/resources/wafregional-rate-based-rule-predicates.go b/resources/wafregional-rate-based-rule-predicates.go index 67319a56..7e35f3d0 100644 --- a/resources/wafregional-rate-based-rule-predicates.go +++ b/resources/wafregional-rate-based-rule-predicates.go @@ -1,27 +1,35 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/waf" "github.com/aws/aws-sdk-go/service/wafregional" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type WAFRegionalRateBasedRulePredicate struct { - svc *wafregional.WAFRegional - ruleID *string - predicate *waf.Predicate - rateLimit *int64 -} +const WAFRegionalRateBasedRulePredicateResource = "WAFRegionalRateBasedRulePredicate" func init() { - register("WAFRegionalRateBasedRulePredicate", ListWAFRegionalRateBasedRulePredicates) + resource.Register(resource.Registration{ + Name: WAFRegionalRateBasedRulePredicateResource, + Scope: nuke.Account, + Lister: &WAFRegionalRateBasedRulePredicateLister{}, + }) } -func ListWAFRegionalRateBasedRulePredicates(sess *session.Session) ([]Resource, error) { - svc := wafregional.New(sess) - resources := []Resource{} +type WAFRegionalRateBasedRulePredicateLister struct{} + +func (l *WAFRegionalRateBasedRulePredicateLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := wafregional.New(opts.Session) + resources := make([]resource.Resource, 0) params := &waf.ListRateBasedRulesInput{ Limit: aws.Int64(50), @@ -61,7 +69,14 @@ func ListWAFRegionalRateBasedRulePredicates(sess *session.Session) ([]Resource, return resources, nil } -func (r *WAFRegionalRateBasedRulePredicate) Remove() error { +type WAFRegionalRateBasedRulePredicate struct { + svc *wafregional.WAFRegional + ruleID *string + predicate *waf.Predicate + rateLimit *int64 +} + +func (r *WAFRegionalRateBasedRulePredicate) Remove(_ context.Context) error { tokenOutput, err := r.svc.GetChangeToken(&waf.GetChangeTokenInput{}) if err != nil { return err diff --git a/resources/wafregional-rate-based-rules.go b/resources/wafregional-rate-based-rules.go index 367bba99..013cddb4 100644 --- a/resources/wafregional-rate-based-rules.go +++ b/resources/wafregional-rate-based-rules.go @@ -1,24 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/waf" "github.com/aws/aws-sdk-go/service/wafregional" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type WAFRegionalRateBasedRule struct { - svc *wafregional.WAFRegional - ID *string -} +const WAFRegionalRateBasedRuleResource = "WAFRegionalRateBasedRule" func init() { - register("WAFRegionalRateBasedRule", ListWAFRegionalRateBasedRules) + resource.Register(resource.Registration{ + Name: WAFRegionalRateBasedRuleResource, + Scope: nuke.Account, + Lister: &WAFRegionalRateBasedRuleLister{}, + }) } -func ListWAFRegionalRateBasedRules(sess *session.Session) ([]Resource, error) { - svc := wafregional.New(sess) - resources := []Resource{} +type WAFRegionalRateBasedRuleLister struct{} + +func (l *WAFRegionalRateBasedRuleLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := wafregional.New(opts.Session) + resources := make([]resource.Resource, 0) params := &waf.ListRateBasedRulesInput{ Limit: aws.Int64(50), @@ -47,8 +57,12 @@ func ListWAFRegionalRateBasedRules(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *WAFRegionalRateBasedRule) Remove() error { +type WAFRegionalRateBasedRule struct { + svc *wafregional.WAFRegional + ID *string +} +func (f *WAFRegionalRateBasedRule) Remove(_ context.Context) error { tokenOutput, err := f.svc.GetChangeToken(&waf.GetChangeTokenInput{}) if err != nil { return err diff --git a/resources/wafregional-regex-match-sets.go b/resources/wafregional-regex-match-sets.go index 6e577323..2bb82325 100644 --- a/resources/wafregional-regex-match-sets.go +++ b/resources/wafregional-regex-match-sets.go @@ -1,26 +1,35 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/waf" "github.com/aws/aws-sdk-go/service/wafregional" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type WAFRegionalRegexMatchSet struct { - svc *wafregional.WAFRegional - id *string - name *string -} +const WAFRegionalRegexMatchSetResource = "WAFRegionalRegexMatchSet" func init() { - register("WAFRegionalRegexMatchSet", ListWAFRegionalRegexMatchSet) + resource.Register(resource.Registration{ + Name: WAFRegionalRegexMatchSetResource, + Scope: nuke.Account, + Lister: &WAFRegionalRegexMatchSetLister{}, + }) } -func ListWAFRegionalRegexMatchSet(sess *session.Session) ([]Resource, error) { - svc := wafregional.New(sess) - resources := []Resource{} +type WAFRegionalRegexMatchSetLister struct{} + +func (l *WAFRegionalRegexMatchSetLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := wafregional.New(opts.Session) + resources := make([]resource.Resource, 0) params := &waf.ListRegexMatchSetsInput{ Limit: aws.Int64(50), @@ -50,7 +59,13 @@ func ListWAFRegionalRegexMatchSet(sess *session.Session) ([]Resource, error) { return resources, nil } -func (r *WAFRegionalRegexMatchSet) Remove() error { +type WAFRegionalRegexMatchSet struct { + svc *wafregional.WAFRegional + id *string + name *string +} + +func (r *WAFRegionalRegexMatchSet) Remove(_ context.Context) error { tokenOutput, err := r.svc.GetChangeToken(&waf.GetChangeTokenInput{}) if err != nil { return err diff --git a/resources/wafregional-regex-match-tuples.go b/resources/wafregional-regex-match-tuples.go index f2a9ebaf..88e6cd56 100644 --- a/resources/wafregional-regex-match-tuples.go +++ b/resources/wafregional-regex-match-tuples.go @@ -1,26 +1,35 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/waf" "github.com/aws/aws-sdk-go/service/wafregional" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type WAFRegionalRegexMatchTuple struct { - svc *wafregional.WAFRegional - matchSetid *string - tuple *waf.RegexMatchTuple -} +const WAFRegionalRegexMatchTupleResource = "WAFRegionalRegexMatchTuple" func init() { - register("WAFRegionalRegexMatchTuple", ListWAFRegionalRegexMatchTuple) + resource.Register(resource.Registration{ + Name: WAFRegionalRegexMatchTupleResource, + Scope: nuke.Account, + Lister: &WAFRegionalRegexMatchTupleLister{}, + }) } -func ListWAFRegionalRegexMatchTuple(sess *session.Session) ([]Resource, error) { - svc := wafregional.New(sess) - resources := []Resource{} +type WAFRegionalRegexMatchTupleLister struct{} + +func (l *WAFRegionalRegexMatchTupleLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := wafregional.New(opts.Session) + resources := make([]resource.Resource, 0) params := &waf.ListRegexMatchSetsInput{ Limit: aws.Int64(50), @@ -43,7 +52,7 @@ func ListWAFRegionalRegexMatchTuple(sess *session.Session) ([]Resource, error) { for _, tuple := range regexMatchSet.RegexMatchSet.RegexMatchTuples { resources = append(resources, &WAFRegionalRegexMatchTuple{ svc: svc, - matchSetid: set.RegexMatchSetId, + matchSetID: set.RegexMatchSetId, tuple: tuple, }) } @@ -59,7 +68,13 @@ func ListWAFRegionalRegexMatchTuple(sess *session.Session) ([]Resource, error) { return resources, nil } -func (r *WAFRegionalRegexMatchTuple) Remove() error { +type WAFRegionalRegexMatchTuple struct { + svc *wafregional.WAFRegional + matchSetID *string + tuple *waf.RegexMatchTuple +} + +func (r *WAFRegionalRegexMatchTuple) Remove(_ context.Context) error { tokenOutput, err := r.svc.GetChangeToken(&waf.GetChangeTokenInput{}) if err != nil { return err @@ -67,7 +82,7 @@ func (r *WAFRegionalRegexMatchTuple) Remove() error { _, err = r.svc.UpdateRegexMatchSet(&waf.UpdateRegexMatchSetInput{ ChangeToken: tokenOutput.ChangeToken, - RegexMatchSetId: r.matchSetid, + RegexMatchSetId: r.matchSetID, Updates: []*waf.RegexMatchSetUpdate{ &waf.RegexMatchSetUpdate{ Action: aws.String("DELETE"), @@ -81,7 +96,7 @@ func (r *WAFRegionalRegexMatchTuple) Remove() error { func (r *WAFRegionalRegexMatchTuple) Properties() types.Properties { return types.NewProperties(). - Set("RegexMatchSetID", r.matchSetid). + Set("RegexMatchSetID", r.matchSetID). Set("FieldToMatchType", r.tuple.FieldToMatch.Type). Set("FieldToMatchData", r.tuple.FieldToMatch.Data). Set("TextTransformation", r.tuple.TextTransformation) diff --git a/resources/wafregional-regex-pattern-sets.go b/resources/wafregional-regex-pattern-sets.go index f954eb13..ec0a63e3 100644 --- a/resources/wafregional-regex-pattern-sets.go +++ b/resources/wafregional-regex-pattern-sets.go @@ -1,26 +1,35 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/waf" "github.com/aws/aws-sdk-go/service/wafregional" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type WAFRegionalRegexPatternSet struct { - svc *wafregional.WAFRegional - id *string - name *string -} +const WAFRegionalRegexPatternSetResource = "WAFRegionalRegexPatternSet" func init() { - register("WAFRegionalRegexPatternSet", ListWAFRegionalRegexPatternSet) + resource.Register(resource.Registration{ + Name: WAFRegionalRegexPatternSetResource, + Scope: nuke.Account, + Lister: &WAFRegionalRegexPatternSetLister{}, + }) } -func ListWAFRegionalRegexPatternSet(sess *session.Session) ([]Resource, error) { - svc := wafregional.New(sess) - resources := []Resource{} +type WAFRegionalRegexPatternSetLister struct{} + +func (l *WAFRegionalRegexPatternSetLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := wafregional.New(opts.Session) + resources := make([]resource.Resource, 0) params := &waf.ListRegexPatternSetsInput{ Limit: aws.Int64(50), @@ -50,7 +59,13 @@ func ListWAFRegionalRegexPatternSet(sess *session.Session) ([]Resource, error) { return resources, nil } -func (r *WAFRegionalRegexPatternSet) Remove() error { +type WAFRegionalRegexPatternSet struct { + svc *wafregional.WAFRegional + id *string + name *string +} + +func (r *WAFRegionalRegexPatternSet) Remove(_ context.Context) error { tokenOutput, err := r.svc.GetChangeToken(&waf.GetChangeTokenInput{}) if err != nil { return err diff --git a/resources/wafregional-regex-pattern-tuples.go b/resources/wafregional-regex-pattern-tuples.go index 9c7d8dea..69229a51 100644 --- a/resources/wafregional-regex-pattern-tuples.go +++ b/resources/wafregional-regex-pattern-tuples.go @@ -1,26 +1,35 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/waf" "github.com/aws/aws-sdk-go/service/wafregional" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type WAFRegionalRegexPatternString struct { - svc *wafregional.WAFRegional - patternSetid *string - patternString *string -} +const WAFRegionalRegexPatternStringResource = "WAFRegionalRegexPatternString" func init() { - register("WAFRegionalRegexPatternString", ListWAFRegionalRegexPatternString) + resource.Register(resource.Registration{ + Name: WAFRegionalRegexPatternStringResource, + Scope: nuke.Account, + Lister: &WAFRegionalRegexPatternStringLister{}, + }) } -func ListWAFRegionalRegexPatternString(sess *session.Session) ([]Resource, error) { - svc := wafregional.New(sess) - resources := []Resource{} +type WAFRegionalRegexPatternStringLister struct{} + +func (l *WAFRegionalRegexPatternStringLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := wafregional.New(opts.Session) + resources := make([]resource.Resource, 0) params := &waf.ListRegexPatternSetsInput{ Limit: aws.Int64(50), @@ -43,7 +52,7 @@ func ListWAFRegionalRegexPatternString(sess *session.Session) ([]Resource, error for _, patternString := range regexPatternSet.RegexPatternSet.RegexPatternStrings { resources = append(resources, &WAFRegionalRegexPatternString{ svc: svc, - patternSetid: set.RegexPatternSetId, + patternSetID: set.RegexPatternSetId, patternString: patternString, }) } @@ -59,7 +68,13 @@ func ListWAFRegionalRegexPatternString(sess *session.Session) ([]Resource, error return resources, nil } -func (r *WAFRegionalRegexPatternString) Remove() error { +type WAFRegionalRegexPatternString struct { + svc *wafregional.WAFRegional + patternSetID *string + patternString *string +} + +func (r *WAFRegionalRegexPatternString) Remove(_ context.Context) error { tokenOutput, err := r.svc.GetChangeToken(&waf.GetChangeTokenInput{}) if err != nil { return err @@ -67,7 +82,7 @@ func (r *WAFRegionalRegexPatternString) Remove() error { _, err = r.svc.UpdateRegexPatternSet(&waf.UpdateRegexPatternSetInput{ ChangeToken: tokenOutput.ChangeToken, - RegexPatternSetId: r.patternSetid, + RegexPatternSetId: r.patternSetID, Updates: []*waf.RegexPatternSetUpdate{ &waf.RegexPatternSetUpdate{ Action: aws.String("DELETE"), @@ -81,6 +96,6 @@ func (r *WAFRegionalRegexPatternString) Remove() error { func (r *WAFRegionalRegexPatternString) Properties() types.Properties { return types.NewProperties(). - Set("RegexPatternSetID", r.patternSetid). + Set("RegexPatternSetID", r.patternSetID). Set("patternString", r.patternString) } diff --git a/resources/wafregional-rule-predicates.go b/resources/wafregional-rule-predicates.go index d7713c20..18568ea4 100644 --- a/resources/wafregional-rule-predicates.go +++ b/resources/wafregional-rule-predicates.go @@ -1,26 +1,35 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/waf" "github.com/aws/aws-sdk-go/service/wafregional" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type WAFRegionalRulePredicate struct { - svc *wafregional.WAFRegional - ruleID *string - predicate *waf.Predicate -} +const WAFRegionalRulePredicateResource = "WAFRegionalRulePredicate" func init() { - register("WAFRegionalRulePredicate", ListWAFRegionalRulePredicates) + resource.Register(resource.Registration{ + Name: WAFRegionalRulePredicateResource, + Scope: nuke.Account, + Lister: &WAFRegionalRulePredicateLister{}, + }) } -func ListWAFRegionalRulePredicates(sess *session.Session) ([]Resource, error) { - svc := wafregional.New(sess) - resources := []Resource{} +type WAFRegionalRulePredicateLister struct{} + +func (l *WAFRegionalRulePredicateLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := wafregional.New(opts.Session) + resources := make([]resource.Resource, 0) params := &waf.ListRulesInput{ Limit: aws.Int64(50), @@ -59,7 +68,13 @@ func ListWAFRegionalRulePredicates(sess *session.Session) ([]Resource, error) { return resources, nil } -func (r *WAFRegionalRulePredicate) Remove() error { +type WAFRegionalRulePredicate struct { + svc *wafregional.WAFRegional + ruleID *string + predicate *waf.Predicate +} + +func (r *WAFRegionalRulePredicate) Remove(_ context.Context) error { tokenOutput, err := r.svc.GetChangeToken(&waf.GetChangeTokenInput{}) if err != nil { return err diff --git a/resources/wafregional-rulegroup.go b/resources/wafregional-rulegroup.go index 10a3d46b..403080d8 100644 --- a/resources/wafregional-rulegroup.go +++ b/resources/wafregional-rulegroup.go @@ -1,26 +1,35 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/waf" "github.com/aws/aws-sdk-go/service/wafregional" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type WAFRegionalRuleGroup struct { - svc *wafregional.WAFRegional - ID *string - name *string -} +const WAFRegionalRuleGroupResource = "WAFRegionalRuleGroup" func init() { - register("WAFRegionalRuleGroup", ListWAFRegionalRuleGroups) + resource.Register(resource.Registration{ + Name: WAFRegionalRuleGroupResource, + Scope: nuke.Account, + Lister: &WAFRegionalRuleGroupLister{}, + }) } -func ListWAFRegionalRuleGroups(sess *session.Session) ([]Resource, error) { - svc := wafregional.New(sess) - resources := []Resource{} +type WAFRegionalRuleGroupLister struct{} + +func (l *WAFRegionalRuleGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := wafregional.New(opts.Session) + resources := make([]resource.Resource, 0) params := &waf.ListRuleGroupsInput{ Limit: aws.Int64(50), @@ -50,8 +59,13 @@ func ListWAFRegionalRuleGroups(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *WAFRegionalRuleGroup) Remove() error { +type WAFRegionalRuleGroup struct { + svc *wafregional.WAFRegional + ID *string + name *string +} +func (f *WAFRegionalRuleGroup) Remove(_ context.Context) error { tokenOutput, err := f.svc.GetChangeToken(&waf.GetChangeTokenInput{}) if err != nil { return err diff --git a/resources/wafregional-rules.go b/resources/wafregional-rules.go index 30c771ab..50fabd77 100644 --- a/resources/wafregional-rules.go +++ b/resources/wafregional-rules.go @@ -1,27 +1,35 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/waf" "github.com/aws/aws-sdk-go/service/wafregional" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type WAFRegionalRule struct { - svc *wafregional.WAFRegional - ID *string - name *string - rule *waf.Rule -} +const WAFRegionalRuleResource = "WAFRegionalRule" func init() { - register("WAFRegionalRule", ListWAFRegionalRules) + resource.Register(resource.Registration{ + Name: WAFRegionalRuleResource, + Scope: nuke.Account, + Lister: &WAFRegionalRuleLister{}, + }) } -func ListWAFRegionalRules(sess *session.Session) ([]Resource, error) { - svc := wafregional.New(sess) - resources := []Resource{} +type WAFRegionalRuleLister struct{} + +func (l *WAFRegionalRuleLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := wafregional.New(opts.Session) + resources := make([]resource.Resource, 0) params := &waf.ListRulesInput{ Limit: aws.Int64(50), @@ -55,14 +63,21 @@ func ListWAFRegionalRules(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *WAFRegionalRule) Remove() error { +type WAFRegionalRule struct { + svc *wafregional.WAFRegional + ID *string + name *string + rule *waf.Rule +} + +func (f *WAFRegionalRule) Remove(_ context.Context) error { tokenOutput, err := f.svc.GetChangeToken(&waf.GetChangeTokenInput{}) if err != nil { return err } - ruleUpdates := []*waf.RuleUpdate{} + var ruleUpdates []*waf.RuleUpdate for _, predicate := range f.rule.Predicates { ruleUpdates = append(ruleUpdates, &waf.RuleUpdate{ Action: aws.String(waf.ChangeActionDelete), diff --git a/resources/wafregional-webacl-rule-attachments.go b/resources/wafregional-webacl-rule-attachments.go index 73ed5ca4..2a6439a7 100644 --- a/resources/wafregional-webacl-rule-attachments.go +++ b/resources/wafregional-webacl-rule-attachments.go @@ -1,28 +1,37 @@ package resources import ( + "context" + "fmt" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/waf" "github.com/aws/aws-sdk-go/service/wafregional" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type WAFRegionalWebACLRuleAttachment struct { - svc *wafregional.WAFRegional - webACLID *string - activatedRule *waf.ActivatedRule -} +const WAFRegionalWebACLRuleAttachmentResource = "WAFRegionalWebACLRuleAttachment" func init() { - register("WAFRegionalWebACLRuleAttachment", ListWAFRegionalWebACLRuleAttachments) + resource.Register(resource.Registration{ + Name: WAFRegionalWebACLRuleAttachmentResource, + Scope: nuke.Account, + Lister: &WAFRegionalWebACLRuleAttachmentLister{}, + }) } -func ListWAFRegionalWebACLRuleAttachments(sess *session.Session) ([]Resource, error) { - svc := wafregional.New(sess) - resources := []Resource{} - webACLs := []*waf.WebACLSummary{} +type WAFRegionalWebACLRuleAttachmentLister struct{} + +func (l *WAFRegionalWebACLRuleAttachmentLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := wafregional.New(opts.Session) + resources := make([]resource.Resource, 0) + var webACLs []*waf.WebACLSummary params := &waf.ListWebACLsInput{ Limit: aws.Int64(50), @@ -59,7 +68,7 @@ func ListWAFRegionalWebACLRuleAttachments(sess *session.Session) ([]Resource, er for _, webACLRule := range resp.WebACL.Rules { resources = append(resources, &WAFRegionalWebACLRuleAttachment{ svc: svc, - webACLID: webACL.WebACLId, + webAclID: webACL.WebACLId, activatedRule: webACLRule, }) } @@ -69,7 +78,13 @@ func ListWAFRegionalWebACLRuleAttachments(sess *session.Session) ([]Resource, er return resources, nil } -func (f *WAFRegionalWebACLRuleAttachment) Remove() error { +type WAFRegionalWebACLRuleAttachment struct { + svc *wafregional.WAFRegional + webAclID *string + activatedRule *waf.ActivatedRule +} + +func (f *WAFRegionalWebACLRuleAttachment) Remove(_ context.Context) error { tokenOutput, err := f.svc.GetChangeToken(&waf.GetChangeTokenInput{}) if err != nil { @@ -82,7 +97,7 @@ func (f *WAFRegionalWebACLRuleAttachment) Remove() error { } _, err = f.svc.UpdateWebACL(&waf.UpdateWebACLInput{ - WebACLId: f.webACLID, + WebACLId: f.webAclID, ChangeToken: tokenOutput.ChangeToken, Updates: []*waf.WebACLUpdate{webACLUpdate}, }) @@ -91,5 +106,5 @@ func (f *WAFRegionalWebACLRuleAttachment) Remove() error { } func (f *WAFRegionalWebACLRuleAttachment) String() string { - return fmt.Sprintf("%s -> %s", *f.webACLID, *f.activatedRule.RuleId) + return fmt.Sprintf("%s -> %s", *f.webAclID, *f.activatedRule.RuleId) } diff --git a/resources/wafregional-webacls.go b/resources/wafregional-webacls.go index 873ee89d..49f9dce0 100644 --- a/resources/wafregional-webacls.go +++ b/resources/wafregional-webacls.go @@ -1,11 +1,16 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/waf" "github.com/aws/aws-sdk-go/service/wafregional" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type WAFRegionalWebACL struct { @@ -14,13 +19,23 @@ type WAFRegionalWebACL struct { name *string } +const WAFRegionalWebACLResource = "WAFRegionalWebACL" + func init() { - register("WAFRegionalWebACL", ListWAFRegionalWebACLs) + resource.Register(resource.Registration{ + Name: WAFRegionalWebACLResource, + Scope: nuke.Account, + Lister: &WAFRegionalWebACLLister{}, + }) } -func ListWAFRegionalWebACLs(sess *session.Session) ([]Resource, error) { - svc := wafregional.New(sess) - resources := []Resource{} +type WAFRegionalWebACLLister struct{} + +func (l *WAFRegionalWebACLLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := wafregional.New(opts.Session) + resources := make([]resource.Resource, 0) params := &waf.ListWebACLsInput{ Limit: aws.Int64(50), @@ -50,7 +65,7 @@ func ListWAFRegionalWebACLs(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *WAFRegionalWebACL) Remove() error { +func (f *WAFRegionalWebACL) Remove(_ context.Context) error { tokenOutput, err := f.svc.GetChangeToken(&waf.GetChangeTokenInput{}) if err != nil { diff --git a/resources/wafv2-ipsets.go b/resources/wafv2-ipsets.go index 02472a20..94760bd0 100644 --- a/resources/wafv2-ipsets.go +++ b/resources/wafv2-ipsets.go @@ -1,28 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/wafv2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type WAFv2IPSet struct { - svc *wafv2.WAFV2 - id *string - name *string - lockToken *string - scope *string -} +const WAFv2IPSetResource = "WAFv2IPSet" func init() { - register("WAFv2IPSet", ListWAFv2IPSets, - mapCloudControl("AWS::WAFv2::IPSet")) + resource.Register(resource.Registration{ + Name: WAFv2IPSetResource, + Scope: nuke.Account, + Lister: &WAFv2IPSetLister{}, + }) } -func ListWAFv2IPSets(sess *session.Session) ([]Resource, error) { - svc := wafv2.New(sess) - resources := []Resource{} +type WAFv2IPSetLister struct{} + +func (l *WAFv2IPSetLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := wafv2.New(opts.Session) + resources := make([]resource.Resource, 0) params := &wafv2.ListIPSetsInput{ Limit: aws.Int64(50), @@ -31,17 +37,17 @@ func ListWAFv2IPSets(sess *session.Session) ([]Resource, error) { output, err := getIPSets(svc, params) if err != nil { - return []Resource{}, err + return []resource.Resource{}, err } resources = append(resources, output...) - if *sess.Config.Region == "us-east-1" { + if *opts.Session.Config.Region == "us-east-1" { params.Scope = aws.String("CLOUDFRONT") output, err := getIPSets(svc, params) if err != nil { - return []Resource{}, err + return []resource.Resource{}, err } resources = append(resources, output...) @@ -50,8 +56,8 @@ func ListWAFv2IPSets(sess *session.Session) ([]Resource, error) { return resources, nil } -func getIPSets(svc *wafv2.WAFV2, params *wafv2.ListIPSetsInput) ([]Resource, error) { - resources := []Resource{} +func getIPSets(svc *wafv2.WAFV2, params *wafv2.ListIPSetsInput) ([]resource.Resource, error) { + resources := make([]resource.Resource, 0) for { resp, err := svc.ListIPSets(params) if err != nil { @@ -78,7 +84,15 @@ func getIPSets(svc *wafv2.WAFV2, params *wafv2.ListIPSetsInput) ([]Resource, err return resources, nil } -func (r *WAFv2IPSet) Remove() error { +type WAFv2IPSet struct { + svc *wafv2.WAFV2 + id *string + name *string + lockToken *string + scope *string +} + +func (r *WAFv2IPSet) Remove(_ context.Context) error { _, err := r.svc.DeleteIPSet(&wafv2.DeleteIPSetInput{ Id: r.id, Name: r.name, diff --git a/resources/wafv2-regex-pattern-sets.go b/resources/wafv2-regex-pattern-sets.go index d0e33bdf..c11b2853 100644 --- a/resources/wafv2-regex-pattern-sets.go +++ b/resources/wafv2-regex-pattern-sets.go @@ -1,28 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/wafv2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type WAFv2RegexPatternSet struct { - svc *wafv2.WAFV2 - id *string - name *string - lockToken *string - scope *string -} +const WAFv2RegexPatternSetResource = "WAFv2RegexPatternSet" func init() { - register("WAFv2RegexPatternSet", ListWAFv2RegexPatternSets, - mapCloudControl("AWS::WAFv2::RegexPatternSet")) + resource.Register(resource.Registration{ + Name: WAFv2RegexPatternSetResource, + Scope: nuke.Account, + Lister: &WAFv2RegexPatternSetLister{}, + }) } -func ListWAFv2RegexPatternSets(sess *session.Session) ([]Resource, error) { - svc := wafv2.New(sess) - resources := []Resource{} +type WAFv2RegexPatternSetLister struct{} + +func (l *WAFv2RegexPatternSetLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := wafv2.New(opts.Session) + resources := make([]resource.Resource, 0) params := &wafv2.ListRegexPatternSetsInput{ Limit: aws.Int64(50), @@ -31,17 +37,17 @@ func ListWAFv2RegexPatternSets(sess *session.Session) ([]Resource, error) { output, err := getRegexPatternSets(svc, params) if err != nil { - return []Resource{}, err + return []resource.Resource{}, err } resources = append(resources, output...) - if *sess.Config.Region == "us-east-1" { + if *opts.Session.Config.Region == "us-east-1" { params.Scope = aws.String("CLOUDFRONT") output, err := getRegexPatternSets(svc, params) if err != nil { - return []Resource{}, err + return []resource.Resource{}, err } resources = append(resources, output...) @@ -50,8 +56,8 @@ func ListWAFv2RegexPatternSets(sess *session.Session) ([]Resource, error) { return resources, nil } -func getRegexPatternSets(svc *wafv2.WAFV2, params *wafv2.ListRegexPatternSetsInput) ([]Resource, error) { - resources := []Resource{} +func getRegexPatternSets(svc *wafv2.WAFV2, params *wafv2.ListRegexPatternSetsInput) ([]resource.Resource, error) { + resources := make([]resource.Resource, 0) for { resp, err := svc.ListRegexPatternSets(params) if err != nil { @@ -78,7 +84,15 @@ func getRegexPatternSets(svc *wafv2.WAFV2, params *wafv2.ListRegexPatternSetsInp return resources, nil } -func (r *WAFv2RegexPatternSet) Remove() error { +type WAFv2RegexPatternSet struct { + svc *wafv2.WAFV2 + id *string + name *string + lockToken *string + scope *string +} + +func (r *WAFv2RegexPatternSet) Remove(_ context.Context) error { _, err := r.svc.DeleteRegexPatternSet(&wafv2.DeleteRegexPatternSetInput{ Id: r.id, Name: r.name, diff --git a/resources/wafv2-rulegroup.go b/resources/wafv2-rulegroup.go index fd570aae..c7107360 100644 --- a/resources/wafv2-rulegroup.go +++ b/resources/wafv2-rulegroup.go @@ -1,28 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/wafv2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type WAFv2RuleGroup struct { - svc *wafv2.WAFV2 - ID *string - name *string - lockToken *string - scope *string -} +const WAFv2RuleGroupResource = "WAFv2RuleGroup" func init() { - register("WAFv2RuleGroup", ListWAFv2RuleGroups, - mapCloudControl("AWS::WAFv2::RuleGroup")) + resource.Register(resource.Registration{ + Name: WAFv2RuleGroupResource, + Scope: nuke.Account, + Lister: &WAFv2RuleGroupLister{}, + }) } -func ListWAFv2RuleGroups(sess *session.Session) ([]Resource, error) { - svc := wafv2.New(sess) - resources := []Resource{} +type WAFv2RuleGroupLister struct{} + +func (l *WAFv2RuleGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := wafv2.New(opts.Session) + resources := make([]resource.Resource, 0) params := &wafv2.ListRuleGroupsInput{ Limit: aws.Int64(50), @@ -31,17 +37,17 @@ func ListWAFv2RuleGroups(sess *session.Session) ([]Resource, error) { output, err := getRuleGroups(svc, params) if err != nil { - return []Resource{}, err + return []resource.Resource{}, err } resources = append(resources, output...) - if *sess.Config.Region == "us-east-1" { + if *opts.Session.Config.Region == "us-east-1" { params.Scope = aws.String("CLOUDFRONT") output, err := getRuleGroups(svc, params) if err != nil { - return []Resource{}, err + return []resource.Resource{}, err } resources = append(resources, output...) @@ -50,8 +56,8 @@ func ListWAFv2RuleGroups(sess *session.Session) ([]Resource, error) { return resources, nil } -func getRuleGroups(svc *wafv2.WAFV2, params *wafv2.ListRuleGroupsInput) ([]Resource, error) { - resources := []Resource{} +func getRuleGroups(svc *wafv2.WAFV2, params *wafv2.ListRuleGroupsInput) ([]resource.Resource, error) { + resources := make([]resource.Resource, 0) for { resp, err := svc.ListRuleGroups(params) if err != nil { @@ -77,7 +83,15 @@ func getRuleGroups(svc *wafv2.WAFV2, params *wafv2.ListRuleGroupsInput) ([]Resou return resources, nil } -func (f *WAFv2RuleGroup) Remove() error { +type WAFv2RuleGroup struct { + svc *wafv2.WAFV2 + ID *string + name *string + lockToken *string + scope *string +} + +func (f *WAFv2RuleGroup) Remove(_ context.Context) error { _, err := f.svc.DeleteRuleGroup(&wafv2.DeleteRuleGroupInput{ Id: f.ID, Name: f.name, diff --git a/resources/wafv2-webacls.go b/resources/wafv2-webacls.go index f449dadc..f98bae79 100644 --- a/resources/wafv2-webacls.go +++ b/resources/wafv2-webacls.go @@ -1,28 +1,34 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/wafv2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type WAFv2WebACL struct { - svc *wafv2.WAFV2 - ID *string - name *string - lockToken *string - scope *string -} +const WAFv2WebACLResource = "WAFv2WebACL" func init() { - register("WAFv2WebACL", ListWAFv2WebACLs, - mapCloudControl("AWS::WAFv2::WebACL")) + resource.Register(resource.Registration{ + Name: WAFv2WebACLResource, + Scope: nuke.Account, + Lister: &WAFv2WebACLLister{}, + }) } -func ListWAFv2WebACLs(sess *session.Session) ([]Resource, error) { - svc := wafv2.New(sess) - resources := []Resource{} +type WAFv2WebACLLister struct{} + +func (l *WAFv2WebACLLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := wafv2.New(opts.Session) + resources := make([]resource.Resource, 0) params := &wafv2.ListWebACLsInput{ Limit: aws.Int64(50), @@ -31,17 +37,17 @@ func ListWAFv2WebACLs(sess *session.Session) ([]Resource, error) { output, err := getWebACLs(svc, params) if err != nil { - return []Resource{}, err + return []resource.Resource{}, err } resources = append(resources, output...) - if *sess.Config.Region == "us-east-1" { + if *opts.Session.Config.Region == "us-east-1" { params.Scope = aws.String("CLOUDFRONT") output, err := getWebACLs(svc, params) if err != nil { - return []Resource{}, err + return []resource.Resource{}, err } resources = append(resources, output...) @@ -50,8 +56,8 @@ func ListWAFv2WebACLs(sess *session.Session) ([]Resource, error) { return resources, nil } -func getWebACLs(svc *wafv2.WAFV2, params *wafv2.ListWebACLsInput) ([]Resource, error) { - resources := []Resource{} +func getWebACLs(svc *wafv2.WAFV2, params *wafv2.ListWebACLsInput) ([]resource.Resource, error) { + resources := make([]resource.Resource, 0) for { resp, err := svc.ListWebACLs(params) if err != nil { @@ -77,7 +83,15 @@ func getWebACLs(svc *wafv2.WAFV2, params *wafv2.ListWebACLsInput) ([]Resource, e return resources, nil } -func (f *WAFv2WebACL) Remove() error { +type WAFv2WebACL struct { + svc *wafv2.WAFV2 + ID *string + name *string + lockToken *string + scope *string +} + +func (f *WAFv2WebACL) Remove(_ context.Context) error { _, err := f.svc.DeleteWebACL(&wafv2.DeleteWebACLInput{ Id: f.ID, Name: f.name, diff --git a/resources/workspaces-workspaces.go b/resources/workspaces-workspaces.go index dbb8a34f..d6ff8a7d 100644 --- a/resources/workspaces-workspaces.go +++ b/resources/workspaces-workspaces.go @@ -1,23 +1,33 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/workspaces" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type WorkSpacesWorkspace struct { - svc *workspaces.WorkSpaces - workspaceID *string -} +const WorkSpacesWorkspaceResource = "WorkSpacesWorkspace" func init() { - register("WorkSpacesWorkspace", ListWorkSpacesWorkspaces) + resource.Register(resource.Registration{ + Name: WorkSpacesWorkspaceResource, + Scope: nuke.Account, + Lister: &WorkSpacesWorkspaceLister{}, + }) } -func ListWorkSpacesWorkspaces(sess *session.Session) ([]Resource, error) { - svc := workspaces.New(sess) - resources := []Resource{} +type WorkSpacesWorkspaceLister struct{} + +func (l *WorkSpacesWorkspaceLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := workspaces.New(opts.Session) + resources := make([]resource.Resource, 0) params := &workspaces.DescribeWorkspacesInput{ Limit: aws.Int64(25), @@ -46,20 +56,26 @@ func ListWorkSpacesWorkspaces(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *WorkSpacesWorkspace) Remove() error { +type WorkSpacesWorkspace struct { + svc *workspaces.WorkSpaces + workspaceID *string +} +func (f *WorkSpacesWorkspace) Remove(_ context.Context) error { stopRequest := &workspaces.StopRequest{ WorkspaceId: f.workspaceID, } terminateRequest := &workspaces.TerminateRequest{ WorkspaceId: f.workspaceID, } + _, err := f.svc.StopWorkspaces(&workspaces.StopWorkspacesInput{ StopWorkspaceRequests: []*workspaces.StopRequest{stopRequest}, }) if err != nil { return err } + _, err = f.svc.TerminateWorkspaces(&workspaces.TerminateWorkspacesInput{ TerminateWorkspaceRequests: []*workspaces.TerminateRequest{terminateRequest}, }) diff --git a/resources/xray-group.go b/resources/xray-group.go index d48a02a2..1cecea15 100644 --- a/resources/xray-group.go +++ b/resources/xray-group.go @@ -1,24 +1,33 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/xray" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type XRayGroup struct { - svc *xray.XRay - groupName *string - groupARN *string -} +const XRayGroupResource = "XRayGroup" func init() { - register("XRayGroup", ListXRayGroups) + resource.Register(resource.Registration{ + Name: XRayGroupResource, + Scope: nuke.Account, + Lister: &XRayGroupLister{}, + }) } -func ListXRayGroups(sess *session.Session) ([]Resource, error) { - svc := xray.New(sess) - resources := []Resource{} +type XRayGroupLister struct{} + +func (l *XRayGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := xray.New(opts.Session) + resources := make([]resource.Resource, 0) // Get X-Ray Groups var xrayGroups []*xray.GroupSummary @@ -48,7 +57,13 @@ func ListXRayGroups(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *XRayGroup) Remove() error { +type XRayGroup struct { + svc *xray.XRay + groupName *string + groupARN *string +} + +func (f *XRayGroup) Remove(_ context.Context) error { _, err := f.svc.DeleteGroup(&xray.DeleteGroupInput{ GroupARN: f.groupARN, // Only allowed to pass GroupARN _or_ GroupName to delete request }) diff --git a/resources/xray-samplingrule.go b/resources/xray-sampling-rule.go similarity index 63% rename from resources/xray-samplingrule.go rename to resources/xray-sampling-rule.go index f3370904..2232ac16 100644 --- a/resources/xray-samplingrule.go +++ b/resources/xray-sampling-rule.go @@ -1,24 +1,33 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/xray" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type XRaySamplingRule struct { - svc *xray.XRay - ruleName *string - ruleARN *string -} +const XRaySamplingRuleResource = "XRaySamplingRule" func init() { - register("XRaySamplingRule", ListXRaySamplingRules) + resource.Register(resource.Registration{ + Name: XRaySamplingRuleResource, + Scope: nuke.Account, + Lister: &XRaySamplingRuleLister{}, + }) } -func ListXRaySamplingRules(sess *session.Session) ([]Resource, error) { - svc := xray.New(sess) - resources := []Resource{} +type XRaySamplingRuleLister struct{} + +func (l *XRaySamplingRuleLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := xray.New(opts.Session) + resources := make([]resource.Resource, 0) var xraySamplingRules []*xray.SamplingRule err := svc.GetSamplingRulesPages( @@ -47,7 +56,13 @@ func ListXRaySamplingRules(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *XRaySamplingRule) Remove() error { +type XRaySamplingRule struct { + svc *xray.XRay + ruleName *string + ruleARN *string +} + +func (f *XRaySamplingRule) Remove(_ context.Context) error { _, err := f.svc.DeleteSamplingRule(&xray.DeleteSamplingRuleInput{ RuleARN: f.ruleARN, // Specify ruleARN or ruleName, not both }) diff --git a/tools/compare-resources/main.go b/tools/compare-resources/main.go new file mode 100644 index 00000000..5df39c5a --- /dev/null +++ b/tools/compare-resources/main.go @@ -0,0 +1,113 @@ +package main + +import ( + "fmt" + "io/fs" + "os" + "path/filepath" + "regexp" + "slices" + "strings" +) + +var OriginalRegisterRegex = regexp.MustCompile("register\\(\"(?P.*)\",\\s?(?P\\w+)(,)?(\\s+mapCloudControl\\(\"(?P.*)\"\\))?") +var NewRegisterRegex = regexp.MustCompile(`resource.Registration{\s+Name:\s+(?P.*),`) + +func main() { + args := os.Args[1:] + + if len(args) == 0 { + panic("no arguments given") + } + + awsNukeDirectory := filepath.Join(args[0], "resources") + + var awsNukeResourceFiles []string + var awsNukeResourceTypes []string + + filepath.WalkDir(awsNukeDirectory, func(path string, di fs.DirEntry, err error) error { + if !strings.HasSuffix(path, ".go") { + return nil + } + + if strings.HasSuffix(path, "_test.go") { + return nil + } + + awsNukeResourceFiles = append(awsNukeResourceFiles, filepath.Base(path)) + return nil + }) + + for _, file := range awsNukeResourceFiles { + originalFileContents, err := os.ReadFile(filepath.Join(awsNukeDirectory, file)) + if err != nil { + panic(err) + } + + matches := OriginalRegisterRegex.FindStringSubmatch(string(originalFileContents)) + + if len(matches) < 3 { + fmt.Printf("WARNING: ERROR no matches in %s\n", file) + continue + } + resourceType := matches[1] + funcName := matches[2] + _ = funcName + + awsNukeResourceTypes = append(awsNukeResourceTypes, resourceType) + } + + var localResourcesPath = filepath.Join("resources") + var localResourceFiles []string + var localResourceTypes []string + + filepath.WalkDir(localResourcesPath, func(path string, di fs.DirEntry, err error) error { + if !strings.HasSuffix(path, ".go") { + return nil + } + + if strings.HasSuffix(path, "_test.go") { + return nil + } + + localResourceFiles = append(localResourceFiles, filepath.Base(path)) + return nil + }) + + for _, file := range localResourceFiles { + originalFileContents, err := os.ReadFile(filepath.Join(localResourcesPath, file)) + if err != nil { + panic(err) + } + + matches := NewRegisterRegex.FindStringSubmatch(string(originalFileContents)) + + var NameRegex = regexp.MustCompile(fmt.Sprintf(`const %s = "(?P.*)"`, matches[1])) + + nameMatches := NameRegex.FindStringSubmatch(string(originalFileContents)) + if len(nameMatches) == 0 { + continue + } + + resourceType := nameMatches[1] + + localResourceTypes = append(localResourceTypes, resourceType) + } + + fmt.Println("\naws-nuke resource count:", len(awsNukeResourceTypes)) + fmt.Println("local resource count:", len(localResourceTypes)) + + fmt.Println("\nResources not in local aws-nuke:") + for _, resource := range awsNukeResourceTypes { + if !slices.Contains(localResourceTypes, resource) { + fmt.Println("->", resource) + } + } + + fmt.Println("\nResources not in aws-nuke:") + for _, resource := range localResourceTypes { + if !slices.Contains(awsNukeResourceTypes, resource) { + fmt.Println("+>", resource) + } + } +} diff --git a/tools/create-resource/main.go b/tools/create-resource/main.go new file mode 100644 index 00000000..f34c3b9b --- /dev/null +++ b/tools/create-resource/main.go @@ -0,0 +1,100 @@ +package main + +import ( + "bytes" + "fmt" + "os" + "strings" + "text/template" +) + +const resourceTemplate = `package resources + +import ( + "context" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/{{.Service}}" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" +) + +const {{.ResourceType}}Resource = "{{.ResourceType}}" + +func init() { + resource.Register(resource.Registration{ + Name: {{.ResourceType}}Resource, + Scope: nuke.Account, + Lister: &{{.ResourceType}}Lister{}, + }) +} + +type {{.ResourceType}}Lister struct{} + +func (l *{{.ResourceType}}Lister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := {{.Service}}.New(opts.Session) + var resources []resource.Resource + + // INSERT CODE HERE TO ITERATE AND ADD RESOURCES + + return resources, nil +} + +type {{.ResourceType}} struct { + svc *{{.Service}}.{{.ResourceType}} + id *string + tags []*{{.Service}}.Tag +} + +func (r *{{.ResourceType}}) Remove(_ context.Context) error { + return nil +} + +func (r *{{.ResourceType}}) Properties() types.Properties { + properties := types.NewProperties() + for _, tag := range f.tags { + properties.SetTag(tag.Key, tag.Value) + } + return properties +} + +func (r *{{.ResourceType}}) String() string { + return *r.id +} +` + +func main() { + args := os.Args[1:] + + if len(args) != 2 { + fmt.Println("usage: create-resource ") + os.Exit(1) + } + + service := args[0] + resourceType := args[1] + + data := struct { + Service string + ResourceType string + }{ + Service: strings.ToLower(service), + ResourceType: resourceType, + } + + tmpl, err := template.New("resource").Parse(resourceTemplate) + if err != nil { + panic(err) + } + + var tpl bytes.Buffer + if err := tmpl.Execute(&tpl, data); err != nil { + panic(err) + } + + fmt.Println(tpl.String()) +} diff --git a/tools/gen-mock-test/main.go b/tools/gen-mock-test/main.go deleted file mode 100644 index 922c5e51..00000000 --- a/tools/gen-mock-test/main.go +++ /dev/null @@ -1,105 +0,0 @@ -package main - -import ( - "errors" - "flag" - "fmt" - "os" - "strings" - "text/template" - - "github.com/Masterminds/sprig" - "github.com/iancoleman/strcase" - - _ "github.com/rebuy-de/aws-nuke/v2/resources" -) - -const rawTmpl = `package resources - -import ( - "testing" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/{{ lower .Service }}" - "github.com/golang/mock/gomock" - "github.com/rebuy-de/aws-nuke/v2/mocks/mock_{{ lower .Service }}iface" - "github.com/stretchr/testify/assert" -) - -func Test_Mock_{{ .Service }}{{ .Resource }}_Remove(t *testing.T) { - a := assert.New(t) - ctrl := gomock.NewController(t) - defer ctrl.Finish() - - mock{{ .Service }} := mock_{{ lower .Service }}iface.NewMock{{ .Service }}API(ctrl) - - {{ lower .Service }}{{ .Resource }} := {{ .Service }}{{ .Resource }}{ - svc: mock{{ .Service }}, - // populate fields - } - - mockIAM.EXPECT().{{ .Action }}{{ .ModdedResource }}(gomock.Eq(&{{ lower .Service }}.{{ .Action }}{{ .ModdedResource }}Input{ - // need properties - })).Return(&iam.{{ .Action }}{{ .ModdedResource }}Output{}, nil) - - err := {{ lower .Service }}{{ .Resource }}.Remove() - a.Nil(err) -} -` - -var service string -var resource string -var output string - -func main() { - flag.StringVar(&service, "service", "", "AWS Service Name (eg, IAM, EC2)") - flag.StringVar(&resource, "resource", "", "AWS Resource Name for the Service (eg, Instance, Role, Policy") - flag.StringVar(&output, "output", "stdout", "Where to write the generated code to (default: stdout)") - - flag.Parse() - - if service == "" { - panic(errors.New("please provide a service")) - } - if resource == "" { - panic(errors.New("please provide a resource")) - } - - action := "Delete" - moddedResource := resource - if strings.HasSuffix(resource, "Attachment") { - action = "Detach" - moddedResource = strings.TrimSuffix(resource, "Attachment") - } - - tmpl, err := template.New("test").Funcs(sprig.TxtFuncMap()).Parse(rawTmpl) - if err != nil { - panic(err) - } - - data := struct { - Service string - Resource string - ModdedResource string - Action string - }{ - Service: service, - Resource: resource, - ModdedResource: moddedResource, - Action: action, - } - - var err1 error - out := os.Stdout - if output == "file" { - out, err1 = os.Create(fmt.Sprintf("resources/%s-%s_mock_test.go", strings.ToLower(service), strcase.ToKebab(resource))) - if err != nil { - panic(err1) - } - defer out.Close() - } - - if err := tmpl.Execute(out, data); err != nil { - panic(err) - } -} diff --git a/dev/list-cloudcontrol/main.go b/tools/list-cloudcontrol/main.go similarity index 92% rename from dev/list-cloudcontrol/main.go rename to tools/list-cloudcontrol/main.go index d61c3b07..a00cf2f1 100644 --- a/dev/list-cloudcontrol/main.go +++ b/tools/list-cloudcontrol/main.go @@ -1,18 +1,20 @@ package main import ( + "context" "encoding/json" "fmt" "strings" + "github.com/fatih/color" + "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/endpoints" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/cloudformation" - "github.com/fatih/color" - "github.com/rebuy-de/aws-nuke/v2/resources" - "github.com/rebuy-de/rebuy-go-sdk/v4/pkg/cmdutil" - "github.com/sirupsen/logrus" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type CFTypeSchema struct { @@ -20,7 +22,7 @@ type CFTypeSchema struct { } func main() { - ctx := cmdutil.SignalRootContext() + ctx := context.Background() sess, err := session.NewSession(&aws.Config{ Region: aws.String(endpoints.UsEast1RegionID), @@ -31,7 +33,7 @@ func main() { cf := cloudformation.New(sess) - mapping := resources.GetCloudControlMapping() + mapping := nuke.GetCloudControlMapping() in := &cloudformation.ListTypesInput{ Type: aws.String(cloudformation.RegistryTypeResource), diff --git a/tools/migrate-resource/main.go b/tools/migrate-resource/main.go new file mode 100644 index 00000000..2a9137a6 --- /dev/null +++ b/tools/migrate-resource/main.go @@ -0,0 +1,111 @@ +package main + +import ( + "bytes" + "fmt" + "os" + "path/filepath" + "regexp" + "strings" + "text/template" +) + +var resourceTemplate = `const {{.ResourceType}}Resource = "{{.ResourceType}}" + +func init() { + resource.Register(resource.Registration{ + Name: {{.ResourceType}}Resource, + Scope: nuke.Account, + Lister: &{{.ResourceType}}Lister{}, + }) +} + +type {{.ResourceType}}Lister struct{}` + +var funcTemplate = `func (l *{{.ResourceType}}Lister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) +` + +var imports = `import ( + "context" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" +` + +func main() { + args := os.Args[1:] + + if len(args) == 0 { + panic("no arguments given") + } + + originalSourceDir := filepath.Join(args[0], "resources") + + repl := regexp.MustCompile("func init\\(\\) {\\s+.*[\\s+].*\\s}") + match := regexp.MustCompile("register\\(\"(?P.*)\",\\s?(?P\\w+)(,)?(\\s+mapCloudControl\\(\"(?P.*)\"\\))?") + funcMatch := regexp.MustCompile("func List.*{") + + filename := filepath.Join(originalSourceDir, "resources", args[0]+".go") + + originalFileContents, err := os.ReadFile(filename) + if err != nil { + panic(err) + } + + matches := match.FindStringSubmatch(string(originalFileContents)) + + if len(matches) < 3 { + panic("no matches") + } + resourceType := matches[1] + funcName := matches[2] + cc := "" + if len(matches) == 4 { + cc = matches[3] + } + + fmt.Println(cc) + fmt.Println(funcName) + + data := struct { + ResourceType string + }{ + ResourceType: resourceType, + } + + tmpl, err := template.New("resource").Parse(resourceTemplate) + if err != nil { + panic(err) + } + + var tpl bytes.Buffer + if err := tmpl.Execute(&tpl, data); err != nil { + panic(err) + } + + funcTmpl, err := template.New("function").Parse(funcTemplate) + if err != nil { + panic(err) + } + + var funcTpl bytes.Buffer + if err := funcTmpl.Execute(&funcTpl, data); err != nil { + panic(err) + } + + newContents := repl.ReplaceAllString(string(originalFileContents), tpl.String()) + newContents = strings.ReplaceAll(newContents, "github.com/rebuy-de/aws-nuke/v2/pkg/types", "github.com/ekristen/libnuke/pkg/types") + newContents = funcMatch.ReplaceAllString(newContents, funcTpl.String()) + newContents = strings.ReplaceAll(newContents, "[]Resource", "[]resource.Resource") + newContents = strings.ReplaceAll(newContents, "(sess)", "(opts.Session)") + newContents = strings.ReplaceAll(newContents, "resources := []resource.Resource{}", "resources := make([]resource.Resource, 0)") + newContents = strings.ReplaceAll(newContents, "import (", imports) + newContents = strings.ReplaceAll(newContents, "\"github.com/aws/aws-sdk-go/aws/session\"", "") + newContents = strings.ReplaceAll(newContents, "\"github.com/rebuy-de/aws-nuke/v2/pkg/config\"", "\"github.com/ekristen/libnuke/pkg/featureflag\"") + newContents = strings.ReplaceAll(newContents, "config.FeatureFlags", "*featureflag.FeatureFlags") + newContents = strings.ReplaceAll(newContents, ") Remove() error {", ") Remove(_ context.Context) error {") + + os.WriteFile(filepath.Join(".", "resources", args[0]+".go"), []byte(newContents), 0644) +} diff --git a/tools/tools.go b/tools/tools.go deleted file mode 100644 index 6f89b957..00000000 --- a/tools/tools.go +++ /dev/null @@ -1,8 +0,0 @@ -// +build tools - -package main - -// https://github.com/golang/go/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module -import ( - _ "github.com/golang/mock/mockgen" -) From 138dcc9f06a3b16d309353abce0c8304a6e92d1d Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 15 Jan 2024 20:26:44 -0700 Subject: [PATCH 035/617] update github workflow action versions (#20) * chore: update to actions/checkout@v4 * chore: update to actions/configure-pages@v4 * chore: update to actions/deploy-pages@v4 * chore: actions/setup-go@v5 * chore: update to actions/upload-artifact@v4 * chore: actions/setup-python@v5 * chore: actions/upload-pages-artifact@v3 * chore: update to docker/login-action@v3 * chore: update docker actions * update goreleaser-action to v5 --- .github/workflows/docs.yaml | 10 +++++----- .github/workflows/release.yml | 16 ++++++++-------- .github/workflows/tests.yml | 4 ++-- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 9a16bd25..cb36d46c 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -27,11 +27,11 @@ jobs: name: github-pages url: ${{ steps.deployment.outputs.page_url }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: setup pages - uses: actions/configure-pages@v3 + uses: actions/configure-pages@v4 - name: setup python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.x - name: setup cache @@ -51,10 +51,10 @@ jobs: run: | mkdocs build - name: upload artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v3 with: # Upload entire repository path: public/ - name: deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b4974126..8c705ba0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,27 +20,27 @@ jobs: goreleaser: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: github.event_name == 'pull_request' with: fetch-depth: 0 ref: ${{ github.event.pull_request.head.ref }} - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: github.event_name == 'push' with: fetch-depth: 0 - name: setup-go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: 1.21.x - name: setup qemu id: qemu - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: setup docker buildx id: buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} @@ -67,7 +67,7 @@ jobs: run: | echo "GORELEASER_ARGS=--snapshot --skip-publish" >> $GITHUB_ENV - name: run goreleaser - uses: goreleaser/goreleaser-action@v4 + uses: goreleaser/goreleaser-action@v5 with: distribution: goreleaser version: latest @@ -81,7 +81,7 @@ jobs: docker images --format "{{.Repository}}:{{.Tag}}" | grep "ekristen/aws-nuke" | xargs -L1 docker push - name: upload artifacts if: github.event.pull_request.base.ref == 'main' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: binaries path: releases/*.tar.gz diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index fd5f5477..ba4caeb7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,8 +8,8 @@ jobs: name: test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version: 1.21.x - name: download go mods From d662601a25b84fdfe0530eb5df1ba4077aaa0f44 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 15 Jan 2024 20:28:14 -0700 Subject: [PATCH 036/617] fix(deps): update module github.com/aws/aws-sdk-go to v1.49.21 (#18) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index bf5a1ccc..7e38dce3 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/ekristen/aws-nuke go 1.21.6 require ( - github.com/aws/aws-sdk-go v1.49.13 + github.com/aws/aws-sdk-go v1.49.21 github.com/ekristen/libnuke v0.0.0-20240115160410-493db5654770 github.com/fatih/color v1.16.0 github.com/golang/mock v1.6.0 diff --git a/go.sum b/go.sum index 48a298ed..46793ef6 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,7 @@ github.com/aws/aws-sdk-go v1.49.13 h1:f4mGztsgnx2dR9r8FQYa9YW/RsKb+N7bgef4UGrOW1Y= github.com/aws/aws-sdk-go v1.49.13/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go v1.49.21 h1:Rl8KW6HqkwzhATwvXhyr7vD4JFUMi7oXGAw9SrxxIFY= +github.com/aws/aws-sdk-go v1.49.21/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= From 722c540ca7cbb032719bc56fe09c69445e8073de Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 16 Jan 2024 16:53:57 -0700 Subject: [PATCH 037/617] chore/docs: testing and mocks (#23) * chore: cleanup and standardize mock generation * chore: improving docs and makefile --- Makefile | 11 +- docs/testing.md | 82 +++++- generate_mocks | 5 - generate_test.go | 3 - go.mod | 3 + go.sum | 5 +- mocks/generate_mocks.sh | 6 + mocks/mock_cloudformationiface/mock.go | 260 +++++++++++++---- mocks/mock_iamiface/mock.go | 368 +++++++++++++++++++------ resources/cloudformation_mock_test.go | 4 + resources/iam_mock_test.go | 4 + 11 files changed, 584 insertions(+), 167 deletions(-) delete mode 100755 generate_mocks delete mode 100644 generate_test.go create mode 100755 mocks/generate_mocks.sh create mode 100644 resources/cloudformation_mock_test.go create mode 100644 resources/iam_mock_test.go diff --git a/Makefile b/Makefile index 2d28495a..81e33d52 100644 --- a/Makefile +++ b/Makefile @@ -5,4 +5,13 @@ docs-serve: docker run --rm -it -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material docs-seed: - cp README.md docs/index.md \ No newline at end of file + cp README.md docs/index.md + +generate: + go generate ./... + +test: + go test ./... + +test-integration: + go test ./... -tags=integration \ No newline at end of file diff --git a/docs/testing.md b/docs/testing.md index 31d148ba..26a31752 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -1,20 +1,82 @@ # Testing -This is not a lot of test coverage around the resources themselves. This is due to the cost +This is not a lot of test coverage around the resources themselves. This is due to the cost of running the tests. However, +[libnuke](https://github.com/ekristen/libnuke) is extensively tested for functionality to ensure a smooth experience. -## Unit Tests +Generally speaking, the tests are split into two categories: -To unit test *aws-nuke*, some tests require [gomock](https://github.com/golang/mock) to run. However these mocks are -included in the source code already, but they can be generated by running: +1. Tool Testing +2. Resource Testing + +Furthermore, for resource testing, these are broken down into two additional categories: + +1. Mock Tests +2. Integration Tests + +## Tool Testing + +These are unit tests written against non resource focused code inside the `pkg/` directory. + +## Resource Testing + +These are unit tests written against the resources in the `resources/` directory. + +### Mock Tests + +These are tests where the AWS API calls are mocked out. This is done to ensure that the code is working as expected. +Currently, there are only two services mocked out for testing, IAM and CloudFormation. + +#### Adding Additional Mocks + +To add another service to be mocked out, you will need to do the following: + +1. Identify the service in the AWS SDK for Go +2. Create a new file in the `resources/` directory called `service_mock_test.go` +3. Add the following code to the file: (replace `` with actual service name) + ```go + //go:generate ../mocks/generate_mocks.sh iface + package resources + + // Note: empty on purpose, this file exist purely to generate mocks for the service + ``` +4. Run `make generate` to generate the mocks +5. Add tests to the `resources/_mock_test.go` file. +6. Run `make test` to ensure the tests pass +7. Submit a PR with the changes + +### Integration Tests + +These are tests where the AWS API calls are called directly and tested against a live AWS account. These tests are +behind a build flag (`-tags=integration`), so they are not run by default. To run these tests, you will need to run the following: ```bash -make generate +make test-integration ``` -Which is just a wrapper around `go generate ./...`. +#### Adding Additional Integration Tests -To run the unit tests, simply run: +To add another integration test, you will need to do the following: -```bash -make test -``` \ No newline at end of file +1. Create a new file in the `resources/` directory called `_test.go` +2. Add the following code to the file: (replace `` with actual resource name) + ```go + //go:build integration + + package resources + + import ( + "testing" + + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/" + ) + + func Test_ExampleResource_Remove(t *testing.T) { + // 1. write code to create resource in AWS using golang sdk + // 2. stub the resource struct out that is defined in .go file + // 3. call the Remove() function + // 4. assert that the resource was removed + } + ``` +3. Run `make test-integration` to ensure the tests pass +4. Submit a PR with the changes diff --git a/generate_mocks b/generate_mocks deleted file mode 100755 index cdae3dc2..00000000 --- a/generate_mocks +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -go run github.com/golang/mock/mockgen -source $(go list -m -mod=mod -f "{{.Dir}}" "github.com/aws/aws-sdk-go")/service/cloudformation/cloudformationiface/interface.go -destination mocks/mock_cloudformationiface/mock.go - -go run github.com/golang/mock/mockgen -source $(go list -m -mod=mod -f "{{.Dir}}" "github.com/aws/aws-sdk-go")/service/iam/iamiface/interface.go -destination mocks/mock_iamiface/mock.go diff --git a/generate_test.go b/generate_test.go deleted file mode 100644 index 90a5b1da..00000000 --- a/generate_test.go +++ /dev/null @@ -1,3 +0,0 @@ -package main - -//go:generate ./generate_mocks diff --git a/go.mod b/go.mod index 7e38dce3..ded36d0a 100644 --- a/go.mod +++ b/go.mod @@ -29,7 +29,10 @@ require ( github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/stevenle/topsort v0.2.0 // indirect github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect + golang.org/x/mod v0.4.2 // indirect golang.org/x/sync v0.6.0 // indirect golang.org/x/sys v0.14.0 // indirect + golang.org/x/tools v0.1.1 // indirect + golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect ) diff --git a/go.sum b/go.sum index 46793ef6..5b19cde8 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,3 @@ -github.com/aws/aws-sdk-go v1.49.13 h1:f4mGztsgnx2dR9r8FQYa9YW/RsKb+N7bgef4UGrOW1Y= -github.com/aws/aws-sdk-go v1.49.13/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/aws/aws-sdk-go v1.49.21 h1:Rl8KW6HqkwzhATwvXhyr7vD4JFUMi7oXGAw9SrxxIFY= github.com/aws/aws-sdk-go v1.49.21/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w= @@ -62,6 +60,7 @@ github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsr github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/mod v0.4.2 h1:Gz96sIWK3OalVv/I/qNygP42zyoKp3xptRVCWRFEBvo= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -89,9 +88,11 @@ golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.1.1 h1:wGiQel/hW0NnEkJUk8lbzkX2gFJU6PFxf1v5OlCfuOs= golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= diff --git a/mocks/generate_mocks.sh b/mocks/generate_mocks.sh new file mode 100755 index 00000000..b90fe4a6 --- /dev/null +++ b/mocks/generate_mocks.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +SERVICE=$1 +INTERFACE=$2 + +go run github.com/golang/mock/mockgen -source $(go list -m -mod=mod -f "{{.Dir}}" "github.com/aws/aws-sdk-go")/service/$SERVICE/$INTERFACE/interface.go -destination ../mocks/mock_$INTERFACE/mock.go diff --git a/mocks/mock_cloudformationiface/mock.go b/mocks/mock_cloudformationiface/mock.go index 24e253fd..49a91061 100644 --- a/mocks/mock_cloudformationiface/mock.go +++ b/mocks/mock_cloudformationiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /Users/ekristen/go/pkg/mod/github.com/aws/aws-sdk-go@v1.44.225/service/cloudformation/cloudformationiface/interface.go +// Source: /Users/ekristen/go/pkg/mod/github.com/aws/aws-sdk-go@v1.49.21/service/cloudformation/cloudformationiface/interface.go // Package mock_cloudformationiface is a generated GoMock package. package mock_cloudformationiface @@ -19,81 +19,71 @@ type MockCloudFormationAPI struct { recorder *MockCloudFormationAPIMockRecorder } -func (m *MockCloudFormationAPI) ActivateOrganizationsAccess(input *cloudformation.ActivateOrganizationsAccessInput) (*cloudformation.ActivateOrganizationsAccessOutput, error) { - //TODO implement me - panic("implement me") -} - -func (m *MockCloudFormationAPI) ActivateOrganizationsAccessWithContext(context aws.Context, input *cloudformation.ActivateOrganizationsAccessInput, option ...request.Option) (*cloudformation.ActivateOrganizationsAccessOutput, error) { - //TODO implement me - panic("implement me") -} - -func (m *MockCloudFormationAPI) ActivateOrganizationsAccessRequest(input *cloudformation.ActivateOrganizationsAccessInput) (*request.Request, *cloudformation.ActivateOrganizationsAccessOutput) { - //TODO implement me - panic("implement me") -} - -func (m *MockCloudFormationAPI) DeactivateOrganizationsAccess(input *cloudformation.DeactivateOrganizationsAccessInput) (*cloudformation.DeactivateOrganizationsAccessOutput, error) { - //TODO implement me - panic("implement me") -} - -func (m *MockCloudFormationAPI) DeactivateOrganizationsAccessWithContext(context aws.Context, input *cloudformation.DeactivateOrganizationsAccessInput, option ...request.Option) (*cloudformation.DeactivateOrganizationsAccessOutput, error) { - //TODO implement me - panic("implement me") -} - -func (m *MockCloudFormationAPI) DeactivateOrganizationsAccessRequest(input *cloudformation.DeactivateOrganizationsAccessInput) (*request.Request, *cloudformation.DeactivateOrganizationsAccessOutput) { - //TODO implement me - panic("implement me") -} - -func (m *MockCloudFormationAPI) DescribeOrganizationsAccess(input *cloudformation.DescribeOrganizationsAccessInput) (*cloudformation.DescribeOrganizationsAccessOutput, error) { - //TODO implement me - panic("implement me") +// MockCloudFormationAPIMockRecorder is the mock recorder for MockCloudFormationAPI. +type MockCloudFormationAPIMockRecorder struct { + mock *MockCloudFormationAPI } -func (m *MockCloudFormationAPI) DescribeOrganizationsAccessWithContext(context aws.Context, input *cloudformation.DescribeOrganizationsAccessInput, option ...request.Option) (*cloudformation.DescribeOrganizationsAccessOutput, error) { - //TODO implement me - panic("implement me") +// NewMockCloudFormationAPI creates a new mock instance. +func NewMockCloudFormationAPI(ctrl *gomock.Controller) *MockCloudFormationAPI { + mock := &MockCloudFormationAPI{ctrl: ctrl} + mock.recorder = &MockCloudFormationAPIMockRecorder{mock} + return mock } -func (m *MockCloudFormationAPI) DescribeOrganizationsAccessRequest(input *cloudformation.DescribeOrganizationsAccessInput) (*request.Request, *cloudformation.DescribeOrganizationsAccessOutput) { - //TODO implement me - panic("implement me") +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockCloudFormationAPI) EXPECT() *MockCloudFormationAPIMockRecorder { + return m.recorder } -func (m *MockCloudFormationAPI) ListStackInstanceResourceDrifts(input *cloudformation.ListStackInstanceResourceDriftsInput) (*cloudformation.ListStackInstanceResourceDriftsOutput, error) { - //TODO implement me - panic("implement me") +// ActivateOrganizationsAccess mocks base method. +func (m *MockCloudFormationAPI) ActivateOrganizationsAccess(arg0 *cloudformation.ActivateOrganizationsAccessInput) (*cloudformation.ActivateOrganizationsAccessOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ActivateOrganizationsAccess", arg0) + ret0, _ := ret[0].(*cloudformation.ActivateOrganizationsAccessOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 } -func (m *MockCloudFormationAPI) ListStackInstanceResourceDriftsWithContext(context aws.Context, input *cloudformation.ListStackInstanceResourceDriftsInput, option ...request.Option) (*cloudformation.ListStackInstanceResourceDriftsOutput, error) { - //TODO implement me - panic("implement me") +// ActivateOrganizationsAccess indicates an expected call of ActivateOrganizationsAccess. +func (mr *MockCloudFormationAPIMockRecorder) ActivateOrganizationsAccess(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActivateOrganizationsAccess", reflect.TypeOf((*MockCloudFormationAPI)(nil).ActivateOrganizationsAccess), arg0) } -func (m *MockCloudFormationAPI) ListStackInstanceResourceDriftsRequest(input *cloudformation.ListStackInstanceResourceDriftsInput) (*request.Request, *cloudformation.ListStackInstanceResourceDriftsOutput) { - //TODO implement me - panic("implement me") +// ActivateOrganizationsAccessRequest mocks base method. +func (m *MockCloudFormationAPI) ActivateOrganizationsAccessRequest(arg0 *cloudformation.ActivateOrganizationsAccessInput) (*request.Request, *cloudformation.ActivateOrganizationsAccessOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ActivateOrganizationsAccessRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.ActivateOrganizationsAccessOutput) + return ret0, ret1 } -// MockCloudFormationAPIMockRecorder is the mock recorder for MockCloudFormationAPI. -type MockCloudFormationAPIMockRecorder struct { - mock *MockCloudFormationAPI +// ActivateOrganizationsAccessRequest indicates an expected call of ActivateOrganizationsAccessRequest. +func (mr *MockCloudFormationAPIMockRecorder) ActivateOrganizationsAccessRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActivateOrganizationsAccessRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).ActivateOrganizationsAccessRequest), arg0) } -// NewMockCloudFormationAPI creates a new mock instance. -func NewMockCloudFormationAPI(ctrl *gomock.Controller) *MockCloudFormationAPI { - mock := &MockCloudFormationAPI{ctrl: ctrl} - mock.recorder = &MockCloudFormationAPIMockRecorder{mock} - return mock +// ActivateOrganizationsAccessWithContext mocks base method. +func (m *MockCloudFormationAPI) ActivateOrganizationsAccessWithContext(arg0 aws.Context, arg1 *cloudformation.ActivateOrganizationsAccessInput, arg2 ...request.Option) (*cloudformation.ActivateOrganizationsAccessOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ActivateOrganizationsAccessWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.ActivateOrganizationsAccessOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 } -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockCloudFormationAPI) EXPECT() *MockCloudFormationAPIMockRecorder { - return m.recorder +// ActivateOrganizationsAccessWithContext indicates an expected call of ActivateOrganizationsAccessWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ActivateOrganizationsAccessWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActivateOrganizationsAccessWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ActivateOrganizationsAccessWithContext), varargs...) } // ActivateType mocks base method. @@ -496,6 +486,56 @@ func (mr *MockCloudFormationAPIMockRecorder) CreateStackWithContext(arg0, arg1 i return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateStackWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).CreateStackWithContext), varargs...) } +// DeactivateOrganizationsAccess mocks base method. +func (m *MockCloudFormationAPI) DeactivateOrganizationsAccess(arg0 *cloudformation.DeactivateOrganizationsAccessInput) (*cloudformation.DeactivateOrganizationsAccessOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeactivateOrganizationsAccess", arg0) + ret0, _ := ret[0].(*cloudformation.DeactivateOrganizationsAccessOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeactivateOrganizationsAccess indicates an expected call of DeactivateOrganizationsAccess. +func (mr *MockCloudFormationAPIMockRecorder) DeactivateOrganizationsAccess(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeactivateOrganizationsAccess", reflect.TypeOf((*MockCloudFormationAPI)(nil).DeactivateOrganizationsAccess), arg0) +} + +// DeactivateOrganizationsAccessRequest mocks base method. +func (m *MockCloudFormationAPI) DeactivateOrganizationsAccessRequest(arg0 *cloudformation.DeactivateOrganizationsAccessInput) (*request.Request, *cloudformation.DeactivateOrganizationsAccessOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeactivateOrganizationsAccessRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.DeactivateOrganizationsAccessOutput) + return ret0, ret1 +} + +// DeactivateOrganizationsAccessRequest indicates an expected call of DeactivateOrganizationsAccessRequest. +func (mr *MockCloudFormationAPIMockRecorder) DeactivateOrganizationsAccessRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeactivateOrganizationsAccessRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).DeactivateOrganizationsAccessRequest), arg0) +} + +// DeactivateOrganizationsAccessWithContext mocks base method. +func (m *MockCloudFormationAPI) DeactivateOrganizationsAccessWithContext(arg0 aws.Context, arg1 *cloudformation.DeactivateOrganizationsAccessInput, arg2 ...request.Option) (*cloudformation.DeactivateOrganizationsAccessOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeactivateOrganizationsAccessWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.DeactivateOrganizationsAccessOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeactivateOrganizationsAccessWithContext indicates an expected call of DeactivateOrganizationsAccessWithContext. +func (mr *MockCloudFormationAPIMockRecorder) DeactivateOrganizationsAccessWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeactivateOrganizationsAccessWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DeactivateOrganizationsAccessWithContext), varargs...) +} + // DeactivateType mocks base method. func (m *MockCloudFormationAPI) DeactivateType(arg0 *cloudformation.DeactivateTypeInput) (*cloudformation.DeactivateTypeOutput, error) { m.ctrl.T.Helper() @@ -979,6 +1019,56 @@ func (mr *MockCloudFormationAPIMockRecorder) DescribeChangeSetWithContext(arg0, return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeChangeSetWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeChangeSetWithContext), varargs...) } +// DescribeOrganizationsAccess mocks base method. +func (m *MockCloudFormationAPI) DescribeOrganizationsAccess(arg0 *cloudformation.DescribeOrganizationsAccessInput) (*cloudformation.DescribeOrganizationsAccessOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeOrganizationsAccess", arg0) + ret0, _ := ret[0].(*cloudformation.DescribeOrganizationsAccessOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeOrganizationsAccess indicates an expected call of DescribeOrganizationsAccess. +func (mr *MockCloudFormationAPIMockRecorder) DescribeOrganizationsAccess(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeOrganizationsAccess", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeOrganizationsAccess), arg0) +} + +// DescribeOrganizationsAccessRequest mocks base method. +func (m *MockCloudFormationAPI) DescribeOrganizationsAccessRequest(arg0 *cloudformation.DescribeOrganizationsAccessInput) (*request.Request, *cloudformation.DescribeOrganizationsAccessOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeOrganizationsAccessRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.DescribeOrganizationsAccessOutput) + return ret0, ret1 +} + +// DescribeOrganizationsAccessRequest indicates an expected call of DescribeOrganizationsAccessRequest. +func (mr *MockCloudFormationAPIMockRecorder) DescribeOrganizationsAccessRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeOrganizationsAccessRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeOrganizationsAccessRequest), arg0) +} + +// DescribeOrganizationsAccessWithContext mocks base method. +func (m *MockCloudFormationAPI) DescribeOrganizationsAccessWithContext(arg0 aws.Context, arg1 *cloudformation.DescribeOrganizationsAccessInput, arg2 ...request.Option) (*cloudformation.DescribeOrganizationsAccessOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeOrganizationsAccessWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.DescribeOrganizationsAccessOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeOrganizationsAccessWithContext indicates an expected call of DescribeOrganizationsAccessWithContext. +func (mr *MockCloudFormationAPIMockRecorder) DescribeOrganizationsAccessWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeOrganizationsAccessWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeOrganizationsAccessWithContext), varargs...) +} + // DescribePublisher mocks base method. func (m *MockCloudFormationAPI) DescribePublisher(arg0 *cloudformation.DescribePublisherInput) (*cloudformation.DescribePublisherOutput, error) { m.ctrl.T.Helper() @@ -2377,6 +2467,56 @@ func (mr *MockCloudFormationAPIMockRecorder) ListImportsWithContext(arg0, arg1 i return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListImportsWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListImportsWithContext), varargs...) } +// ListStackInstanceResourceDrifts mocks base method. +func (m *MockCloudFormationAPI) ListStackInstanceResourceDrifts(arg0 *cloudformation.ListStackInstanceResourceDriftsInput) (*cloudformation.ListStackInstanceResourceDriftsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListStackInstanceResourceDrifts", arg0) + ret0, _ := ret[0].(*cloudformation.ListStackInstanceResourceDriftsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListStackInstanceResourceDrifts indicates an expected call of ListStackInstanceResourceDrifts. +func (mr *MockCloudFormationAPIMockRecorder) ListStackInstanceResourceDrifts(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStackInstanceResourceDrifts", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStackInstanceResourceDrifts), arg0) +} + +// ListStackInstanceResourceDriftsRequest mocks base method. +func (m *MockCloudFormationAPI) ListStackInstanceResourceDriftsRequest(arg0 *cloudformation.ListStackInstanceResourceDriftsInput) (*request.Request, *cloudformation.ListStackInstanceResourceDriftsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListStackInstanceResourceDriftsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.ListStackInstanceResourceDriftsOutput) + return ret0, ret1 +} + +// ListStackInstanceResourceDriftsRequest indicates an expected call of ListStackInstanceResourceDriftsRequest. +func (mr *MockCloudFormationAPIMockRecorder) ListStackInstanceResourceDriftsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStackInstanceResourceDriftsRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStackInstanceResourceDriftsRequest), arg0) +} + +// ListStackInstanceResourceDriftsWithContext mocks base method. +func (m *MockCloudFormationAPI) ListStackInstanceResourceDriftsWithContext(arg0 aws.Context, arg1 *cloudformation.ListStackInstanceResourceDriftsInput, arg2 ...request.Option) (*cloudformation.ListStackInstanceResourceDriftsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListStackInstanceResourceDriftsWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.ListStackInstanceResourceDriftsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListStackInstanceResourceDriftsWithContext indicates an expected call of ListStackInstanceResourceDriftsWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ListStackInstanceResourceDriftsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStackInstanceResourceDriftsWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStackInstanceResourceDriftsWithContext), varargs...) +} + // ListStackInstances mocks base method. func (m *MockCloudFormationAPI) ListStackInstances(arg0 *cloudformation.ListStackInstancesInput) (*cloudformation.ListStackInstancesOutput, error) { m.ctrl.T.Helper() diff --git a/mocks/mock_iamiface/mock.go b/mocks/mock_iamiface/mock.go index 566f8934..b475cb13 100644 --- a/mocks/mock_iamiface/mock.go +++ b/mocks/mock_iamiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /Users/ekristen/go/pkg/mod/github.com/aws/aws-sdk-go@v1.44.225/service/iam/iamiface/interface.go +// Source: /Users/ekristen/go/pkg/mod/github.com/aws/aws-sdk-go@v1.49.21/service/iam/iamiface/interface.go // Package mock_iamiface is a generated GoMock package. package mock_iamiface @@ -19,91 +19,6 @@ type MockIAMAPI struct { recorder *MockIAMAPIMockRecorder } -func (m *MockIAMAPI) GetMFADevice(input *iam.GetMFADeviceInput) (*iam.GetMFADeviceOutput, error) { - //TODO implement me - panic("implement me") -} - -func (m *MockIAMAPI) GetMFADeviceWithContext(context aws.Context, input *iam.GetMFADeviceInput, option ...request.Option) (*iam.GetMFADeviceOutput, error) { - //TODO implement me - panic("implement me") -} - -func (m *MockIAMAPI) GetMFADeviceRequest(input *iam.GetMFADeviceInput) (*request.Request, *iam.GetMFADeviceOutput) { - //TODO implement me - panic("implement me") -} - -func (m *MockIAMAPI) ListInstanceProfileTagsPages(input *iam.ListInstanceProfileTagsInput, f func(*iam.ListInstanceProfileTagsOutput, bool) bool) error { - //TODO implement me - panic("implement me") -} - -func (m *MockIAMAPI) ListInstanceProfileTagsPagesWithContext(context aws.Context, input *iam.ListInstanceProfileTagsInput, f func(*iam.ListInstanceProfileTagsOutput, bool) bool, option ...request.Option) error { - //TODO implement me - panic("implement me") -} - -func (m *MockIAMAPI) ListMFADeviceTagsPages(input *iam.ListMFADeviceTagsInput, f func(*iam.ListMFADeviceTagsOutput, bool) bool) error { - //TODO implement me - panic("implement me") -} - -func (m *MockIAMAPI) ListMFADeviceTagsPagesWithContext(context aws.Context, input *iam.ListMFADeviceTagsInput, f func(*iam.ListMFADeviceTagsOutput, bool) bool, option ...request.Option) error { - //TODO implement me - panic("implement me") -} - -func (m *MockIAMAPI) ListOpenIDConnectProviderTagsPages(input *iam.ListOpenIDConnectProviderTagsInput, f func(*iam.ListOpenIDConnectProviderTagsOutput, bool) bool) error { - //TODO implement me - panic("implement me") -} - -func (m *MockIAMAPI) ListOpenIDConnectProviderTagsPagesWithContext(context aws.Context, input *iam.ListOpenIDConnectProviderTagsInput, f func(*iam.ListOpenIDConnectProviderTagsOutput, bool) bool, option ...request.Option) error { - //TODO implement me - panic("implement me") -} - -func (m *MockIAMAPI) ListPolicyTagsPages(input *iam.ListPolicyTagsInput, f func(*iam.ListPolicyTagsOutput, bool) bool) error { - //TODO implement me - panic("implement me") -} - -func (m *MockIAMAPI) ListPolicyTagsPagesWithContext(context aws.Context, input *iam.ListPolicyTagsInput, f func(*iam.ListPolicyTagsOutput, bool) bool, option ...request.Option) error { - //TODO implement me - panic("implement me") -} - -func (m *MockIAMAPI) ListRoleTagsPages(input *iam.ListRoleTagsInput, f func(*iam.ListRoleTagsOutput, bool) bool) error { - //TODO implement me - panic("implement me") -} - -func (m *MockIAMAPI) ListRoleTagsPagesWithContext(context aws.Context, input *iam.ListRoleTagsInput, f func(*iam.ListRoleTagsOutput, bool) bool, option ...request.Option) error { - //TODO implement me - panic("implement me") -} - -func (m *MockIAMAPI) ListSAMLProviderTagsPages(input *iam.ListSAMLProviderTagsInput, f func(*iam.ListSAMLProviderTagsOutput, bool) bool) error { - //TODO implement me - panic("implement me") -} - -func (m *MockIAMAPI) ListSAMLProviderTagsPagesWithContext(context aws.Context, input *iam.ListSAMLProviderTagsInput, f func(*iam.ListSAMLProviderTagsOutput, bool) bool, option ...request.Option) error { - //TODO implement me - panic("implement me") -} - -func (m *MockIAMAPI) ListServerCertificateTagsPages(input *iam.ListServerCertificateTagsInput, f func(*iam.ListServerCertificateTagsOutput, bool) bool) error { - //TODO implement me - panic("implement me") -} - -func (m *MockIAMAPI) ListServerCertificateTagsPagesWithContext(context aws.Context, input *iam.ListServerCertificateTagsInput, f func(*iam.ListServerCertificateTagsOutput, bool) bool, option ...request.Option) error { - //TODO implement me - panic("implement me") -} - // MockIAMAPIMockRecorder is the mock recorder for MockIAMAPI. type MockIAMAPIMockRecorder struct { mock *MockIAMAPI @@ -3337,6 +3252,56 @@ func (mr *MockIAMAPIMockRecorder) GetLoginProfileWithContext(arg0, arg1 interfac return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLoginProfileWithContext", reflect.TypeOf((*MockIAMAPI)(nil).GetLoginProfileWithContext), varargs...) } +// GetMFADevice mocks base method. +func (m *MockIAMAPI) GetMFADevice(arg0 *iam.GetMFADeviceInput) (*iam.GetMFADeviceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetMFADevice", arg0) + ret0, _ := ret[0].(*iam.GetMFADeviceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetMFADevice indicates an expected call of GetMFADevice. +func (mr *MockIAMAPIMockRecorder) GetMFADevice(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMFADevice", reflect.TypeOf((*MockIAMAPI)(nil).GetMFADevice), arg0) +} + +// GetMFADeviceRequest mocks base method. +func (m *MockIAMAPI) GetMFADeviceRequest(arg0 *iam.GetMFADeviceInput) (*request.Request, *iam.GetMFADeviceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetMFADeviceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*iam.GetMFADeviceOutput) + return ret0, ret1 +} + +// GetMFADeviceRequest indicates an expected call of GetMFADeviceRequest. +func (mr *MockIAMAPIMockRecorder) GetMFADeviceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMFADeviceRequest", reflect.TypeOf((*MockIAMAPI)(nil).GetMFADeviceRequest), arg0) +} + +// GetMFADeviceWithContext mocks base method. +func (m *MockIAMAPI) GetMFADeviceWithContext(arg0 aws.Context, arg1 *iam.GetMFADeviceInput, arg2 ...request.Option) (*iam.GetMFADeviceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetMFADeviceWithContext", varargs...) + ret0, _ := ret[0].(*iam.GetMFADeviceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetMFADeviceWithContext indicates an expected call of GetMFADeviceWithContext. +func (mr *MockIAMAPIMockRecorder) GetMFADeviceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMFADeviceWithContext", reflect.TypeOf((*MockIAMAPI)(nil).GetMFADeviceWithContext), varargs...) +} + // GetOpenIDConnectProvider mocks base method. func (m *MockIAMAPI) GetOpenIDConnectProvider(arg0 *iam.GetOpenIDConnectProviderInput) (*iam.GetOpenIDConnectProviderOutput, error) { m.ctrl.T.Helper() @@ -4799,6 +4764,39 @@ func (mr *MockIAMAPIMockRecorder) ListInstanceProfileTags(arg0 interface{}) *gom return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInstanceProfileTags", reflect.TypeOf((*MockIAMAPI)(nil).ListInstanceProfileTags), arg0) } +// ListInstanceProfileTagsPages mocks base method. +func (m *MockIAMAPI) ListInstanceProfileTagsPages(arg0 *iam.ListInstanceProfileTagsInput, arg1 func(*iam.ListInstanceProfileTagsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListInstanceProfileTagsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListInstanceProfileTagsPages indicates an expected call of ListInstanceProfileTagsPages. +func (mr *MockIAMAPIMockRecorder) ListInstanceProfileTagsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInstanceProfileTagsPages", reflect.TypeOf((*MockIAMAPI)(nil).ListInstanceProfileTagsPages), arg0, arg1) +} + +// ListInstanceProfileTagsPagesWithContext mocks base method. +func (m *MockIAMAPI) ListInstanceProfileTagsPagesWithContext(arg0 aws.Context, arg1 *iam.ListInstanceProfileTagsInput, arg2 func(*iam.ListInstanceProfileTagsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListInstanceProfileTagsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListInstanceProfileTagsPagesWithContext indicates an expected call of ListInstanceProfileTagsPagesWithContext. +func (mr *MockIAMAPIMockRecorder) ListInstanceProfileTagsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInstanceProfileTagsPagesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListInstanceProfileTagsPagesWithContext), varargs...) +} + // ListInstanceProfileTagsRequest mocks base method. func (m *MockIAMAPI) ListInstanceProfileTagsRequest(arg0 *iam.ListInstanceProfileTagsInput) (*request.Request, *iam.ListInstanceProfileTagsOutput) { m.ctrl.T.Helper() @@ -5015,6 +5013,39 @@ func (mr *MockIAMAPIMockRecorder) ListMFADeviceTags(arg0 interface{}) *gomock.Ca return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMFADeviceTags", reflect.TypeOf((*MockIAMAPI)(nil).ListMFADeviceTags), arg0) } +// ListMFADeviceTagsPages mocks base method. +func (m *MockIAMAPI) ListMFADeviceTagsPages(arg0 *iam.ListMFADeviceTagsInput, arg1 func(*iam.ListMFADeviceTagsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListMFADeviceTagsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListMFADeviceTagsPages indicates an expected call of ListMFADeviceTagsPages. +func (mr *MockIAMAPIMockRecorder) ListMFADeviceTagsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMFADeviceTagsPages", reflect.TypeOf((*MockIAMAPI)(nil).ListMFADeviceTagsPages), arg0, arg1) +} + +// ListMFADeviceTagsPagesWithContext mocks base method. +func (m *MockIAMAPI) ListMFADeviceTagsPagesWithContext(arg0 aws.Context, arg1 *iam.ListMFADeviceTagsInput, arg2 func(*iam.ListMFADeviceTagsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListMFADeviceTagsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListMFADeviceTagsPagesWithContext indicates an expected call of ListMFADeviceTagsPagesWithContext. +func (mr *MockIAMAPIMockRecorder) ListMFADeviceTagsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMFADeviceTagsPagesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListMFADeviceTagsPagesWithContext), varargs...) +} + // ListMFADeviceTagsRequest mocks base method. func (m *MockIAMAPI) ListMFADeviceTagsRequest(arg0 *iam.ListMFADeviceTagsInput) (*request.Request, *iam.ListMFADeviceTagsOutput) { m.ctrl.T.Helper() @@ -5148,6 +5179,39 @@ func (mr *MockIAMAPIMockRecorder) ListOpenIDConnectProviderTags(arg0 interface{} return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOpenIDConnectProviderTags", reflect.TypeOf((*MockIAMAPI)(nil).ListOpenIDConnectProviderTags), arg0) } +// ListOpenIDConnectProviderTagsPages mocks base method. +func (m *MockIAMAPI) ListOpenIDConnectProviderTagsPages(arg0 *iam.ListOpenIDConnectProviderTagsInput, arg1 func(*iam.ListOpenIDConnectProviderTagsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListOpenIDConnectProviderTagsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListOpenIDConnectProviderTagsPages indicates an expected call of ListOpenIDConnectProviderTagsPages. +func (mr *MockIAMAPIMockRecorder) ListOpenIDConnectProviderTagsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOpenIDConnectProviderTagsPages", reflect.TypeOf((*MockIAMAPI)(nil).ListOpenIDConnectProviderTagsPages), arg0, arg1) +} + +// ListOpenIDConnectProviderTagsPagesWithContext mocks base method. +func (m *MockIAMAPI) ListOpenIDConnectProviderTagsPagesWithContext(arg0 aws.Context, arg1 *iam.ListOpenIDConnectProviderTagsInput, arg2 func(*iam.ListOpenIDConnectProviderTagsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListOpenIDConnectProviderTagsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListOpenIDConnectProviderTagsPagesWithContext indicates an expected call of ListOpenIDConnectProviderTagsPagesWithContext. +func (mr *MockIAMAPIMockRecorder) ListOpenIDConnectProviderTagsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOpenIDConnectProviderTagsPagesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListOpenIDConnectProviderTagsPagesWithContext), varargs...) +} + // ListOpenIDConnectProviderTagsRequest mocks base method. func (m *MockIAMAPI) ListOpenIDConnectProviderTagsRequest(arg0 *iam.ListOpenIDConnectProviderTagsInput) (*request.Request, *iam.ListOpenIDConnectProviderTagsOutput) { m.ctrl.T.Helper() @@ -5381,6 +5445,39 @@ func (mr *MockIAMAPIMockRecorder) ListPolicyTags(arg0 interface{}) *gomock.Call return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPolicyTags", reflect.TypeOf((*MockIAMAPI)(nil).ListPolicyTags), arg0) } +// ListPolicyTagsPages mocks base method. +func (m *MockIAMAPI) ListPolicyTagsPages(arg0 *iam.ListPolicyTagsInput, arg1 func(*iam.ListPolicyTagsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListPolicyTagsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListPolicyTagsPages indicates an expected call of ListPolicyTagsPages. +func (mr *MockIAMAPIMockRecorder) ListPolicyTagsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPolicyTagsPages", reflect.TypeOf((*MockIAMAPI)(nil).ListPolicyTagsPages), arg0, arg1) +} + +// ListPolicyTagsPagesWithContext mocks base method. +func (m *MockIAMAPI) ListPolicyTagsPagesWithContext(arg0 aws.Context, arg1 *iam.ListPolicyTagsInput, arg2 func(*iam.ListPolicyTagsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListPolicyTagsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListPolicyTagsPagesWithContext indicates an expected call of ListPolicyTagsPagesWithContext. +func (mr *MockIAMAPIMockRecorder) ListPolicyTagsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPolicyTagsPagesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListPolicyTagsPagesWithContext), varargs...) +} + // ListPolicyTagsRequest mocks base method. func (m *MockIAMAPI) ListPolicyTagsRequest(arg0 *iam.ListPolicyTagsInput) (*request.Request, *iam.ListPolicyTagsOutput) { m.ctrl.T.Helper() @@ -5597,6 +5694,39 @@ func (mr *MockIAMAPIMockRecorder) ListRoleTags(arg0 interface{}) *gomock.Call { return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRoleTags", reflect.TypeOf((*MockIAMAPI)(nil).ListRoleTags), arg0) } +// ListRoleTagsPages mocks base method. +func (m *MockIAMAPI) ListRoleTagsPages(arg0 *iam.ListRoleTagsInput, arg1 func(*iam.ListRoleTagsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListRoleTagsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListRoleTagsPages indicates an expected call of ListRoleTagsPages. +func (mr *MockIAMAPIMockRecorder) ListRoleTagsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRoleTagsPages", reflect.TypeOf((*MockIAMAPI)(nil).ListRoleTagsPages), arg0, arg1) +} + +// ListRoleTagsPagesWithContext mocks base method. +func (m *MockIAMAPI) ListRoleTagsPagesWithContext(arg0 aws.Context, arg1 *iam.ListRoleTagsInput, arg2 func(*iam.ListRoleTagsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListRoleTagsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListRoleTagsPagesWithContext indicates an expected call of ListRoleTagsPagesWithContext. +func (mr *MockIAMAPIMockRecorder) ListRoleTagsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRoleTagsPagesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListRoleTagsPagesWithContext), varargs...) +} + // ListRoleTagsRequest mocks base method. func (m *MockIAMAPI) ListRoleTagsRequest(arg0 *iam.ListRoleTagsInput) (*request.Request, *iam.ListRoleTagsOutput) { m.ctrl.T.Helper() @@ -5730,6 +5860,39 @@ func (mr *MockIAMAPIMockRecorder) ListSAMLProviderTags(arg0 interface{}) *gomock return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSAMLProviderTags", reflect.TypeOf((*MockIAMAPI)(nil).ListSAMLProviderTags), arg0) } +// ListSAMLProviderTagsPages mocks base method. +func (m *MockIAMAPI) ListSAMLProviderTagsPages(arg0 *iam.ListSAMLProviderTagsInput, arg1 func(*iam.ListSAMLProviderTagsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListSAMLProviderTagsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListSAMLProviderTagsPages indicates an expected call of ListSAMLProviderTagsPages. +func (mr *MockIAMAPIMockRecorder) ListSAMLProviderTagsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSAMLProviderTagsPages", reflect.TypeOf((*MockIAMAPI)(nil).ListSAMLProviderTagsPages), arg0, arg1) +} + +// ListSAMLProviderTagsPagesWithContext mocks base method. +func (m *MockIAMAPI) ListSAMLProviderTagsPagesWithContext(arg0 aws.Context, arg1 *iam.ListSAMLProviderTagsInput, arg2 func(*iam.ListSAMLProviderTagsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListSAMLProviderTagsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListSAMLProviderTagsPagesWithContext indicates an expected call of ListSAMLProviderTagsPagesWithContext. +func (mr *MockIAMAPIMockRecorder) ListSAMLProviderTagsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSAMLProviderTagsPagesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListSAMLProviderTagsPagesWithContext), varargs...) +} + // ListSAMLProviderTagsRequest mocks base method. func (m *MockIAMAPI) ListSAMLProviderTagsRequest(arg0 *iam.ListSAMLProviderTagsInput) (*request.Request, *iam.ListSAMLProviderTagsOutput) { m.ctrl.T.Helper() @@ -5913,6 +6076,39 @@ func (mr *MockIAMAPIMockRecorder) ListServerCertificateTags(arg0 interface{}) *g return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServerCertificateTags", reflect.TypeOf((*MockIAMAPI)(nil).ListServerCertificateTags), arg0) } +// ListServerCertificateTagsPages mocks base method. +func (m *MockIAMAPI) ListServerCertificateTagsPages(arg0 *iam.ListServerCertificateTagsInput, arg1 func(*iam.ListServerCertificateTagsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListServerCertificateTagsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListServerCertificateTagsPages indicates an expected call of ListServerCertificateTagsPages. +func (mr *MockIAMAPIMockRecorder) ListServerCertificateTagsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServerCertificateTagsPages", reflect.TypeOf((*MockIAMAPI)(nil).ListServerCertificateTagsPages), arg0, arg1) +} + +// ListServerCertificateTagsPagesWithContext mocks base method. +func (m *MockIAMAPI) ListServerCertificateTagsPagesWithContext(arg0 aws.Context, arg1 *iam.ListServerCertificateTagsInput, arg2 func(*iam.ListServerCertificateTagsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListServerCertificateTagsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListServerCertificateTagsPagesWithContext indicates an expected call of ListServerCertificateTagsPagesWithContext. +func (mr *MockIAMAPIMockRecorder) ListServerCertificateTagsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServerCertificateTagsPagesWithContext", reflect.TypeOf((*MockIAMAPI)(nil).ListServerCertificateTagsPagesWithContext), varargs...) +} + // ListServerCertificateTagsRequest mocks base method. func (m *MockIAMAPI) ListServerCertificateTagsRequest(arg0 *iam.ListServerCertificateTagsInput) (*request.Request, *iam.ListServerCertificateTagsOutput) { m.ctrl.T.Helper() diff --git a/resources/cloudformation_mock_test.go b/resources/cloudformation_mock_test.go new file mode 100644 index 00000000..882a94ce --- /dev/null +++ b/resources/cloudformation_mock_test.go @@ -0,0 +1,4 @@ +//go:generate ../mocks/generate_mocks.sh cloudformation cloudformationiface +package resources + +// Note: empty on purpose, this file exist purely to generate mocks for the CloudFormation service diff --git a/resources/iam_mock_test.go b/resources/iam_mock_test.go new file mode 100644 index 00000000..9b563cd4 --- /dev/null +++ b/resources/iam_mock_test.go @@ -0,0 +1,4 @@ +//go:generate ../mocks/generate_mocks.sh iam iamiface +package resources + +// Note: empty on purpose, this file exist purely to generate mocks for the IAM service From abdc3d888eb766bcaf4baf64a935cbfa998e9b39 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 16 Jan 2024 17:04:23 -0700 Subject: [PATCH 038/617] docs: improving docs (#24) --- docs/testing.md | 2 +- mkdocs.yml | 19 ++++++++++++++++--- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/docs/testing.md b/docs/testing.md index 26a31752..6a30e5f0 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -59,7 +59,7 @@ To add another integration test, you will need to do the following: 1. Create a new file in the `resources/` directory called `_test.go` 2. Add the following code to the file: (replace `` with actual resource name) - ```go + ```go //go:build integration package resources diff --git a/mkdocs.yml b/mkdocs.yml index 50ab06db..0b0849e6 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,8 +1,13 @@ site_name: AWS Nuke site_url: https://ekristen.github.io/aws-nuke +site_author: Erik Kristensen +site_description: >- + AWS Nuke is a tool to clean up your AWS account by nuking (deleting) all resources within it. + repo_name: ekristen/aws-nuke repo_url: https://github.com/ekristen/aws-nuke -edit_uri: "" + +copyright: Copyright © 2024 - Erik Kristensen site_dir: public @@ -30,10 +35,18 @@ theme: icon: material/toggle-switch-off name: Switch to system preference features: + - navigation.footer + - navigation.indexes + - navigation.path - navigation.sections - #- navigation.tabs + - toc.follow - toc.integrate - - navigation.path + - content.code.annotate + - content.code.copy + - content.tooltips + - search.highlight + - search.share + - search.suggest # Plugins plugins: From fa973bab1cac8abbf2990b58d2ed97e2c7e8bfa7 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 16 Jan 2024 17:17:27 -0700 Subject: [PATCH 039/617] chore: configure codeclimate (#25) --- .codeclimate.yml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .codeclimate.yml diff --git a/.codeclimate.yml b/.codeclimate.yml new file mode 100644 index 00000000..e2502ca2 --- /dev/null +++ b/.codeclimate.yml @@ -0,0 +1,9 @@ +plugins: + duplication: + enabled: true + checks: + Similar code: + enabled: false +exclude_patterns: + - "mocks/" + - "**/*_test.go" \ No newline at end of file From e6a22098d199497e53e95d2e5bb51981feb16d81 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 16 Jan 2024 21:42:40 -0700 Subject: [PATCH 040/617] docs: adding badges to README.md (#26) Signed-off-by: Erik Kristensen --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 70ed8efa..c4d30e01 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ [![license](https://img.shields.io/github/license/ekristen/aws-nuke.svg)](https://github.com/ekristen/aws-nuke/blob/main/LICENSE) [![release](https://img.shields.io/github/release/ekristen/aws-nuke.svg)](https://github.com/ekristen/aws-nuke/releases) +[![Go Report Card](https://goreportcard.com/badge/github.com/ekristen/aws-nuke)](https://goreportcard.com/report/github.com/ekristen/aws-nuke) +[![Maintainability](https://api.codeclimate.com/v1/badges/bf05fb12c69f1ea7f257/maintainability)](https://codeclimate.com/github/ekristen/aws-nuke/maintainability) **Forked from [rebuy-de/aws-nuke](https://github.com/rebuy-de/aws-nuke)** From 3c0538ec8ab4be33c206c12f0238c67b47576602 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 17 Jan 2024 12:09:18 -0700 Subject: [PATCH 041/617] chore(deps): update actions/cache action to v4 (#27) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/docs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index cb36d46c..f1675862 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -38,7 +38,7 @@ jobs: run: | echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV - name: handle cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: mkdocs-material-${{ env.cache_id }} path: .cache From 2846b46953f74a7bde5c7f77eda3717b75f9bbb9 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 17 Jan 2024 12:10:22 -0700 Subject: [PATCH 042/617] fix(deps): update github.com/ekristen/libnuke digest to 96b3997 (#17) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index ded36d0a..8bbbc731 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.21.6 require ( github.com/aws/aws-sdk-go v1.49.21 - github.com/ekristen/libnuke v0.0.0-20240115160410-493db5654770 + github.com/ekristen/libnuke v0.0.0-20240116165357-96b399754078 github.com/fatih/color v1.16.0 github.com/golang/mock v1.6.0 github.com/google/uuid v1.5.0 diff --git a/go.sum b/go.sum index 5b19cde8..566d5f7b 100644 --- a/go.sum +++ b/go.sum @@ -8,6 +8,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/ekristen/libnuke v0.0.0-20240115160410-493db5654770 h1:RE8cbaqUhdxOAguCqz0poOOL48vTUWLTBmSDUy5STGc= github.com/ekristen/libnuke v0.0.0-20240115160410-493db5654770/go.mod h1:1ySAhDQd6laQdG7VbG/+i+DAFIVMHlrk2ZXgwHuvOk4= +github.com/ekristen/libnuke v0.0.0-20240116165357-96b399754078 h1:UrP1aer0t+FgMDqHVQGNv+vyLZaAP5LPHEkVCu/eGIA= +github.com/ekristen/libnuke v0.0.0-20240116165357-96b399754078/go.mod h1:1ySAhDQd6laQdG7VbG/+i+DAFIVMHlrk2ZXgwHuvOk4= github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= From 91a9a9e54daa4c2e8e570ab6dfb032f2ef7c29d3 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 22 Jan 2024 17:59:25 -0700 Subject: [PATCH 043/617] switch for settings and config package from libnuke, improve docs (#28) * switch for settings and config package from libnuke, improve docs * fix: tests * fix: do not upload to codeconv yet --- .github/workflows/tests.yml | 9 +- .golangci.yaml | 74 +++++ ...ndpoints.md => config-custom-endpoints.md} | 0 docs/{filtering.md => config-filtering.md} | 0 docs/config-migration.md | 53 ++++ docs/config-presets.md | 53 ++++ docs/config.md | 143 +++++++++ docs/index.md | 16 + go.mod | 7 +- go.sum | 13 +- mkdocs.yml | 7 +- pkg/awsutil/account.go | 4 +- pkg/awsutil/session.go | 18 +- pkg/awsutil/util.go | 12 +- pkg/commands/list/list.go | 4 +- pkg/commands/nuke/command.go | 107 ++++--- pkg/config/config.go | 288 ++++++++---------- pkg/config/config_test.go | 264 +++++++++------- .../testdata/deprecated-feature-flags.yaml | 6 + pkg/config/testsuite_test.go | 24 ++ pkg/nuke/cloudcontrol.go | 23 -- pkg/nuke/nuke.go | 69 ----- pkg/nuke/prompt.go | 37 +++ pkg/nuke/region.go | 8 +- pkg/nuke/resource.go | 28 +- pkg/nuke/utils.go | 35 --- resources/accessanalyzer-analyzers.go | 11 +- resources/accessanalyzer-archiverules.go | 2 +- resources/acm-certificates.go | 2 +- resources/acmpca-certificateauthorities.go | 11 +- .../acmpca-certificateauthoritystates.go | 2 +- resources/apigateway-apikeys.go | 11 +- resources/apigateway-clientcertificates.go | 11 +- resources/apigateway-domainnames.go | 2 +- resources/apigateway-restapis.go | 2 +- resources/apigateway-usageplans.go | 11 +- resources/apigateway-vpclinks.go | 2 +- resources/apigatewayv2-apis.go | 2 +- resources/apigatewayv2-vpc-links.go | 2 +- ...applicationautoscaling-scalable-targets.go | 2 +- resources/appmesh-gatewayroute.go | 2 +- resources/appmesh-mesh.go | 2 +- resources/appmesh-route.go | 2 +- resources/appmesh-virtualgateway.go | 2 +- resources/appmesh-virtualnode.go | 2 +- resources/appmesh-virtualrouter.go | 2 +- resources/appmesh-virtualservice.go | 2 +- resources/appstream-directoryconfigs.go | 2 +- resources/appstream-fleets.go | 2 +- resources/appstream-fleetstates.go | 2 +- resources/appstream-imagebuilders.go | 2 +- resources/appstream-imagebuilderwaiters.go | 2 +- resources/appstream-images.go | 2 +- .../appstream-stack-fleet-attachments.go | 2 +- resources/appstream-stacks.go | 2 +- resources/appsync-graphqlapis.go | 2 +- resources/athena-named-queries.go | 2 +- resources/athena-work-groups.go | 2 +- resources/autoscaling-groups.go | 2 +- .../autoscaling-launch-configurations.go | 2 +- resources/autoscaling-lifecycle-hooks.go | 2 +- resources/autoscalingplans-scalingplans.go | 2 +- resources/backup-plans.go | 2 +- resources/backup-recovery-points.go | 2 +- resources/backup-selections.go | 2 +- resources/backup-vaults-access-policies.go | 2 +- resources/backup-vaults.go | 2 +- resources/batch-compute-environment-states.go | 2 +- resources/batch-compute-environments.go | 2 +- resources/batch-job-queue-states.go | 2 +- resources/batch-job-queues.go | 2 +- resources/billing-costandusagereports.go | 2 +- resources/budgets.go | 2 +- resources/cloud9-environments.go | 2 +- resources/cloudcontrol.go | 5 +- resources/clouddirectory-directories.go | 2 +- resources/clouddirectory-schemas.go | 2 +- resources/cloudformation-stack.go | 17 +- resources/cloudformation-stack_test.go | 47 ++- resources/cloudformation-stackset.go | 2 +- resources/cloudformation-type.go | 2 +- .../cloudfront-distribution-deployments.go | 2 +- resources/cloudfront-distributions.go | 2 +- resources/cloudfront-function.go | 2 +- resources/cloudfront-origin-access-control.go | 2 +- .../cloudfront-origin-access-identities.go | 2 +- resources/cloudhsmv2-cluster.go | 2 +- resources/cloudhsmv2-clusterhsms.go | 2 +- resources/cloudsearch-domains.go | 2 +- resources/cloudtrail-trails.go | 2 +- resources/cloudwatch-alarms.go | 2 +- resources/cloudwatch-dashboards.go | 2 +- resources/cloudwatchevents-buses.go | 2 +- resources/cloudwatchevents-rules.go | 2 +- resources/cloudwatchevents-targets.go | 2 +- resources/cloudwatchlogs-destinations.go | 2 +- resources/cloudwatchlogs-loggroups.go | 2 +- resources/cloudwatchlogs-resourcepolicy.go | 2 +- resources/codeartifact-domains.go | 2 +- resources/codeartifact-repositories.go | 2 +- resources/codebuild-projects.go | 2 +- resources/codecommit-repositories.go | 2 +- resources/codedeploy-applications.go | 2 +- resources/codepipeline-pipelines.go | 2 +- resources/codestar-connections.go | 2 +- resources/codestar-notifications.go | 2 +- resources/codestar-projects.go | 2 +- resources/cognito-identity-providers.go | 2 +- resources/cognito-identitypools.go | 2 +- resources/cognito-userpool-clients.go | 2 +- resources/cognito-userpool-domains.go | 2 +- resources/cognito-userpools.go | 2 +- resources/comprehend-document-classifier.go | 2 +- ...prehend-dominant-language-detection-job.go | 2 +- resources/comprehend-endpoint.go | 2 +- .../comprehend-entities-detection-job.go | 2 +- resources/comprehend-entity-recognizer.go | 2 +- .../comprehend-key-phrases-detection-job.go | 2 +- .../comprehend-sentiment-detection-job.go | 2 +- resources/configservice-configrules.go | 2 +- .../configservice-configurationrecorders.go | 2 +- resources/configservice-deliverychannels.go | 2 +- .../databasemigrationservice-certificates.go | 2 +- .../databasemigrationservice-endpoints.go | 2 +- ...basemigrationservice-eventsubscriptions.go | 2 +- ...semigrationservice-replicationinstances.go | 2 +- ...tabasemigrationservice-replicationtasks.go | 2 +- .../databasemigrationservice-subnetgroups.go | 2 +- resources/datapipeline-pipelines.go | 2 +- resources/dax-clusters.go | 2 +- resources/dax-parametergroups.go | 2 +- resources/dax-subnetgroups.go | 2 +- resources/devicefarm-projects.go | 2 +- resources/directoryservice-directories.go | 2 +- resources/dynamodb-items.go | 2 +- resources/dynamodb-tables.go | 2 +- .../ec2-client-vpn-endpoint-attachment.go | 2 +- resources/ec2-client-vpn-endpoint.go | 6 +- resources/ec2-customer-gateway.go | 2 +- resources/ec2-default-security-group-rules.go | 2 +- resources/ec2-dhcp-options.go | 6 +- .../ec2-egress-only-internet-gateways.go | 2 +- resources/ec2-eip.go | 2 +- resources/ec2-host.go | 2 +- resources/ec2-image.go | 2 +- resources/ec2-instance.go | 24 +- resources/ec2-internet-gateway-attachments.go | 5 +- resources/ec2-internet-gateways.go | 2 +- resources/ec2-key-pairs.go | 2 +- resources/ec2-launch-templates.go | 2 +- resources/ec2-nat-gateways.go | 5 +- resources/ec2-network-acls.go | 2 +- resources/ec2-network-interfaces.go | 2 +- resources/ec2-placement-groups.go | 2 +- resources/ec2-route-tables.go | 2 +- resources/ec2-security-groups.go | 2 +- resources/ec2-snapshots.go | 2 +- resources/ec2-spot-fleet-requests.go | 2 +- resources/ec2-subnets.go | 2 +- resources/ec2-tgw-attachments.go | 2 +- resources/ec2-tgw.go | 2 +- resources/ec2-volume.go | 2 +- resources/ec2-vpc-endpoint-connections.go | 2 +- ...ec2-vpc-endpoint-service-configurations.go | 2 +- resources/ec2-vpc-endpoint.go | 5 +- resources/ec2-vpc-peering-connections.go | 2 +- resources/ec2-vpc.go | 8 +- resources/ec2-vpn-connections.go | 5 +- resources/ec2-vpn-gateway-attachments.go | 5 +- resources/ec2-vpn-gateways.go | 5 +- resources/ecr-public-repository.go | 5 +- resources/ecr-repository.go | 14 +- resources/ecs-clusterinstances.go | 2 +- resources/ecs-clusters.go | 2 +- resources/ecs-services.go | 2 +- resources/ecs-taskdefinitions.go | 2 +- resources/ecs-tasks.go | 2 +- resources/efs-filesystem.go | 2 +- resources/efs-mount-targets.go | 2 +- resources/eks-clusters.go | 2 +- resources/eks-fargate.go | 5 +- resources/eks-nodegroups.go | 5 +- resources/elasticache-cacheparametergroups.go | 2 +- resources/elasticache-memcacheclusters.go | 2 +- resources/elasticache-replicationgroups.go | 2 +- resources/elasticache-subnetgroups.go | 2 +- resources/elasticbeanstalk-applications.go | 2 +- resources/elasticbeanstalk-environments.go | 6 +- resources/elasticsearchservice-domain.go | 2 +- resources/elastictranscoder-pipelines.go | 2 +- resources/elb-elb.go | 2 +- resources/elbv2-alb.go | 23 +- resources/elbv2-targetgroup.go | 2 +- resources/emr-clusters.go | 2 +- resources/emr-securityconfigurations.go | 2 +- resources/firehose-deliverystreams.go | 2 +- resources/fms-notification-channels.go | 2 +- resources/fms-policies.go | 2 +- resources/fsx-backups.go | 2 +- resources/fsx-filesystems.go | 2 +- resources/ga-accelerators.go | 2 +- resources/ga-endpoints.go | 2 +- resources/ga-listeners.go | 2 +- resources/glue-classifiers.go | 2 +- resources/glue-connections.go | 2 +- resources/glue-crawlers.go | 2 +- resources/glue-databases.go | 2 +- resources/glue-devendpoints.go | 2 +- resources/glue-jobs.go | 2 +- resources/glue-triggers.go | 2 +- resources/gluedatabrew-datasets.go | 2 +- resources/gluedatabrew-jobs.go | 2 +- resources/gluedatabrew-projects.go | 2 +- resources/gluedatabrew-recipe.go | 2 +- resources/gluedatabrew-rulesets.go | 2 +- resources/gluedatabrew-schedules.go | 2 +- resources/guardduty.go | 2 +- .../iam-account-setting-password-policy.go | 2 +- resources/iam-group-policies.go | 2 +- resources/iam-group-policy-attachments.go | 5 +- resources/iam-groups.go | 5 +- resources/iam-instance-profile-roles.go | 5 +- resources/iam-instance-profiles.go | 5 +- resources/iam-login-profiles.go | 2 +- resources/iam-open-id-connect-provider.go | 2 +- resources/iam-policies.go | 5 +- resources/iam-role-policy-attachments.go | 5 +- resources/iam-role-policy.go | 2 +- resources/iam-roles.go | 5 +- resources/iam-saml-provider.go | 2 +- resources/iam-server-certificate.go | 5 +- resources/iam-service-specific-credentials.go | 2 +- resources/iam-signing-certificate.go | 2 +- resources/iam-user-access-key.go | 5 +- resources/iam-user-group-attachments.go | 5 +- resources/iam-user-https-git-credential.go | 2 +- resources/iam-user-policy-attachment.go | 5 +- resources/iam-user-policy.go | 2 +- resources/iam-user-ssh-keys.go | 2 +- resources/iam-users.go | 5 +- resources/iam-virtual-mfa-devices.go | 2 +- resources/imagebuilder-components.go | 2 +- ...magebuilder-distribution-configurations.go | 2 +- resources/imagebuilder-images.go | 2 +- ...gebuilder-infrastructure-configurations.go | 2 +- resources/imagebuilder-pipelines.go | 2 +- resources/imagebuilder-recipes.go | 2 +- resources/inspector-assessment-runs.go | 2 +- resources/inspector-assessment-targets.go | 2 +- resources/inspector-assessment-templates.go | 2 +- resources/inspector2.go | 2 +- resources/iot-authorizers.go | 2 +- resources/iot-cacertificates.go | 2 +- resources/iot-certificates.go | 2 +- resources/iot-jobs.go | 2 +- resources/iot-otaupdates.go | 2 +- resources/iot-policies.go | 2 +- resources/iot-rolealiases.go | 2 +- resources/iot-streams.go | 2 +- resources/iot-thinggroups.go | 2 +- resources/iot-things.go | 2 +- resources/iot-thingtypes.go | 2 +- resources/iot-thingtypestates.go | 2 +- resources/iot-topicrules.go | 2 +- resources/kendra-indexes.go | 2 +- resources/kinesis-streams.go | 2 +- resources/kinesisanalytics-streams.go | 2 +- resources/kinesisvideo-streams.go | 2 +- resources/kms-aliases.go | 2 +- resources/kms-keys.go | 2 +- resources/lambda-event-source-mapping.go | 2 +- resources/lambda-functions.go | 2 +- resources/lambda-layers.go | 2 +- resources/lex-bot.go | 2 +- resources/lex-intent.go | 2 +- .../lex-model-building-service-bot-alias.go | 2 +- resources/lex-slot-types.go | 2 +- resources/lightsail-disks.go | 2 +- resources/lightsail-domains.go | 2 +- resources/lightsail-instances.go | 17 +- resources/lightsail-keypairs.go | 2 +- resources/lightsail-loadbalancers.go | 2 +- resources/lightsail-staticips.go | 2 +- resources/machinelearning-batchpredictions.go | 2 +- resources/machinelearning-datasources.go | 2 +- resources/machinelearning-evaluations.go | 2 +- resources/machinelearning-mlmodels.go | 2 +- resources/macie2.go | 2 +- resources/managedgrafana-workspaces.go | 2 +- resources/mediaconvert-jobtemplates.go | 2 +- resources/mediaconvert-presets.go | 2 +- resources/mediaconvert-queues.go | 2 +- resources/medialive-channels.go | 2 +- resources/medialive-inputs.go | 2 +- resources/medialive-inputsecuritygroups.go | 2 +- resources/mediapackage-channels.go | 2 +- resources/mediapackage-originendpoints.go | 2 +- resources/mediastore-containers.go | 2 +- resources/mediastoredata-items.go | 2 +- resources/mediatailor-configurations.go | 2 +- resources/mgn-jobs.go | 2 +- resources/mgn-source-servers.go | 2 +- resources/mobile-projects.go | 2 +- resources/mq-broker.go | 2 +- resources/msk-cluster.go | 2 +- resources/msk-configuration.go | 2 +- resources/neptune-clusters.go | 2 +- resources/neptune-instances.go | 2 +- resources/neptune-snapshots.go | 5 +- resources/opensearchservice-domain.go | 2 +- resources/opsworks-apps.go | 2 +- resources/opsworks-instances.go | 2 +- resources/opsworks-layers.go | 2 +- resources/opsworks-userprofiles.go | 2 +- resources/opsworkscm-backups.go | 2 +- resources/opsworkscm-servers.go | 2 +- resources/opsworkscm-serverstates.go | 2 +- resources/prometheusservice-workspace.go | 2 +- resources/qldb-ledger.go | 17 +- resources/rds-cluster-snapshots.go | 2 +- resources/rds-clusters.go | 5 +- resources/rds-dbclusterparametergroups.go | 2 +- resources/rds-dbparametergroups.go | 2 +- resources/rds-event-subscriptions.go | 2 +- resources/rds-instances.go | 17 +- resources/rds-optiongroups.go | 2 +- resources/rds-proxies.go | 2 +- resources/rds-snapshots.go | 2 +- resources/rds-subnets.go | 2 +- resources/redshift-clusters.go | 2 +- resources/redshift-parametergroups.go | 2 +- resources/redshift-snapshots.go | 2 +- resources/redshift-subnetgroups.go | 2 +- resources/rekognition-collection.go | 2 +- resources/resource-explorer2-indexes.go | 2 +- resources/resource-explorer2-views.go | 2 +- resources/resourcegroups-groups.go | 2 +- resources/robomaker-robot-applications.go | 2 +- .../robomaker-simulation-applications.go | 2 +- resources/robomaker-simulation-jobs.go | 2 +- resources/route53-health-checks.go | 2 +- resources/route53-hosted-zones.go | 2 +- resources/route53-resolver-endpoints.go | 2 +- resources/route53-resolver-rules.go | 2 +- resources/route53-resource-records.go | 2 +- resources/route53-traffic-policies.go | 2 +- resources/s3-access-points.go | 2 +- resources/s3-buckets.go | 5 +- resources/s3-multipart-uploads.go | 2 +- resources/s3-objects.go | 2 +- resources/sagemaker-apps.go | 2 +- resources/sagemaker-domain.go | 2 +- resources/sagemaker-endpointconfigs.go | 2 +- resources/sagemaker-endpoints.go | 2 +- resources/sagemaker-models.go | 2 +- ...maker-notebook-instancelifecycleconfigs.go | 2 +- resources/sagemaker-notebook-instances.go | 2 +- .../sagemaker-notebook-instancestates.go | 2 +- resources/sagemaker-userprofiles.go | 2 +- resources/secretsmanager-secrets.go | 2 +- resources/securityhub-hub.go | 2 +- ...talog-portfolio-constraints-attachments.go | 2 +- ...catalog-portfolio-principal-attachments.go | 2 +- ...cecatalog-portfolio-product-attachments.go | 2 +- ...vicecatalog-portfolio-share-attachments.go | 2 +- ...talog-portfolio-tagoptions-attachements.go | 2 +- resources/servicecatalog-portfolios.go | 2 +- resources/servicecatalog-products.go | 2 +- .../servicecatalog-provisionedproducts.go | 2 +- resources/servicecatalog-tagoptions.go | 2 +- resources/servicediscovery-instances.go | 2 +- resources/servicediscovery-namespaces.go | 2 +- resources/servicediscovery-services.go | 2 +- resources/ses-configurationsets.go | 2 +- resources/ses-identities.go | 2 +- resources/ses-receiptfilters.go | 2 +- resources/ses-receiptrulesets.go | 2 +- resources/ses-templates.go | 2 +- resources/sfn-statemachines.go | 2 +- resources/signer-signingjobs.go | 2 +- resources/simpledb-domains.go | 2 +- resources/sns-endpoints.go | 2 +- resources/sns-platformapplications.go | 2 +- resources/sns-subscriptions.go | 2 +- resources/sns-topics.go | 2 +- resources/sqs-queues.go | 2 +- resources/ssm-activations.go | 2 +- resources/ssm-associations.go | 2 +- resources/ssm-documents.go | 2 +- resources/ssm-maintenancewindows.go | 2 +- resources/ssm-parameters.go | 2 +- resources/ssm-patchbaselines.go | 2 +- resources/ssm-resourcedatasyncs.go | 2 +- resources/storagegateway-fileshares.go | 2 +- resources/storagegateway-gateways.go | 2 +- resources/storagegateway-tapes.go | 2 +- resources/storagegateway-volumes.go | 2 +- resources/transfer-server-user.go | 2 +- resources/transfer-server.go | 2 +- resources/waf-rules.go | 2 +- resources/waf-webacl-rule-attachments.go | 2 +- resources/waf-webacls.go | 2 +- .../wafregional-byte-match-set-tuples.go | 2 +- resources/wafregional-byte-match-sets.go | 2 +- resources/wafregional-ip-set-ips.go | 2 +- resources/wafregional-ip-sets.go | 2 +- .../wafregional-rate-based-rule-predicates.go | 2 +- resources/wafregional-rate-based-rules.go | 2 +- resources/wafregional-regex-match-sets.go | 2 +- resources/wafregional-regex-match-tuples.go | 2 +- resources/wafregional-regex-pattern-sets.go | 2 +- resources/wafregional-regex-pattern-tuples.go | 2 +- resources/wafregional-rule-predicates.go | 2 +- resources/wafregional-rulegroup.go | 2 +- resources/wafregional-rules.go | 2 +- .../wafregional-webacl-rule-attachments.go | 2 +- resources/wafregional-webacls.go | 2 +- resources/wafv2-ipsets.go | 2 +- resources/wafv2-regex-pattern-sets.go | 2 +- resources/wafv2-rulegroup.go | 2 +- resources/wafv2-webacls.go | 2 +- resources/workspaces-workspaces.go | 2 +- resources/xray-group.go | 2 +- resources/xray-sampling-rule.go | 2 +- tools/compare-resources/main.go | 11 +- tools/create-resource/main.go | 2 +- tools/list-cloudcontrol/main.go | 5 +- tools/migrate-resource/main.go | 7 +- 428 files changed, 1387 insertions(+), 1034 deletions(-) create mode 100644 .golangci.yaml rename docs/{custom-endpoints.md => config-custom-endpoints.md} (100%) rename docs/{filtering.md => config-filtering.md} (100%) create mode 100644 docs/config-migration.md create mode 100644 docs/config-presets.md create mode 100644 docs/config.md create mode 100644 pkg/config/testdata/deprecated-feature-flags.yaml create mode 100644 pkg/config/testsuite_test.go delete mode 100644 pkg/nuke/cloudcontrol.go delete mode 100644 pkg/nuke/nuke.go create mode 100644 pkg/nuke/prompt.go delete mode 100644 pkg/nuke/utils.go diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ba4caeb7..336eeccf 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,8 +1,13 @@ name: tests + on: + push: + branches: + - main pull_request: branches: - main + jobs: test: name: test @@ -11,10 +16,10 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: 1.21.x + go-version: '1.21.x' - name: download go mods run: | go mod download - name: run go tests run: | - go test -timeout 60s -run ./... + go test -timeout 60s -race -coverprofile=coverage.txt -covermode=atomic ./... \ No newline at end of file diff --git a/.golangci.yaml b/.golangci.yaml new file mode 100644 index 00000000..d0b177ad --- /dev/null +++ b/.golangci.yaml @@ -0,0 +1,74 @@ +linters-settings: + dupl: + threshold: 100 + funlen: + lines: 100 + statements: 50 + goconst: + min-len: 2 + min-occurrences: 3 + gocritic: + enabled-tags: + - diagnostic + - experimental + - opinionated + - performance + - style + disabled-checks: + - dupImport # https://github.com/go-critic/go-critic/issues/845 + - ifElseChain + - octalLiteral + - whyNoLint + gocyclo: + min-complexity: 15 + golint: + min-confidence: 0 + lll: + line-length: 140 + maligned: + suggest-new: true + misspell: + locale: US + +linters: + # please, do not use `enable-all`: it's deprecated and will be removed soon. + # inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint + disable-all: true + enable: + - bodyclose + - dogsled + - errcheck + - exportloopref + - funlen + - goconst + - gocritic + - gocyclo + - gofmt + - goimports + - goprintffuncname + - gosec + - gosimple + - govet + - ineffassign + - lll + - misspell + - nakedret + - nilnil + - noctx + - nolintlint + - staticcheck + - stylecheck + - typecheck + - unconvert + - unparam + - unused + - whitespace + +issues: + exclude-rules: + - path: _test\.go + linters: + - funlen + +run: + timeout: 2m \ No newline at end of file diff --git a/docs/custom-endpoints.md b/docs/config-custom-endpoints.md similarity index 100% rename from docs/custom-endpoints.md rename to docs/config-custom-endpoints.md diff --git a/docs/filtering.md b/docs/config-filtering.md similarity index 100% rename from docs/filtering.md rename to docs/config-filtering.md diff --git a/docs/config-migration.md b/docs/config-migration.md new file mode 100644 index 00000000..af303af5 --- /dev/null +++ b/docs/config-migration.md @@ -0,0 +1,53 @@ +# Configuration Migration + +## Version 2.x to 3.x + +The configuration file format has changed from version 2.x to 3.x. However, it is still 100% backward compatible with +the old format. The new format is more flexible and allows for more complex configurations. + +### Changes + +- The `targets` key has been deprecated in favor of `includes`. +- The `feature-flags` key has been deprecated in favor of `settings`. + +### Migration + +The migration for `targets` is very simply, simply rename the key to `includes` + +```yaml +resource-types: + targets: + - S3Object + - S3Bucket + - IAMRole +``` + +Becomes + +```yaml +resource-types: + includes: + - S3Object + - S3Bucket + - IAMRole +``` + +The migration for `feature-flags` takes a little more than renaming the key. The `settings` key is now used to map +settings to a specific resource and that resource's definition within the tool announces the need for a setting. + +```yaml +feature-flags: + disable-deletion-protection: + RDSInstance: true + EC2Instance: true +``` + +Becomes + +```yaml +settings: + EC2Instance: + DisableDeletionProtection: true + RDSInstance: + DisableDeletionProtection: true +``` \ No newline at end of file diff --git a/docs/config-presets.md b/docs/config-presets.md new file mode 100644 index 00000000..0c92ba3c --- /dev/null +++ b/docs/config-presets.md @@ -0,0 +1,53 @@ +# Presets + +It might be the case that some filters are the same across multiple accounts. This especially could happen, if +provisioning tools like Terraform are used or if IAM resources follow the same pattern. + +For this case *aws-nuke* supports presets of filters, that can applied on multiple accounts. + +`Presets` are defined globally. They can then be referenced in the `accounts` section of the configuration. + +A preset configuration could look like this: + +```yaml +presets: + common: + filters: + IAMAccountSettingPasswordPolicy: + - custom + IAMRole: + - "OrganizationAccountAccessRole" +``` + +An account referencing a preset would then look something like this: + +```yaml +accounts: + 1234567890: + presets: + - common +``` + +Putting it all together it would look something like this: + +```yaml +blocklist: + - 0012345678 + +regions: + - global + - us-east-1 + +accounts: + 1234567890: + presets: + - common + +presets: + common: + filters: + IAMAccountSettingPasswordPolicy: + - custom + IAMRole: + - OrganizationAccountAccessRole +``` \ No newline at end of file diff --git a/docs/config.md b/docs/config.md new file mode 100644 index 00000000..d52f3db0 --- /dev/null +++ b/docs/config.md @@ -0,0 +1,143 @@ +# Config + +The configuration is the user supplied configuration that is used to drive the nuke process. The configuration is a YAML file that is loaded from the path specified by the --config flag. + +## Sections + +The configuration is broken down into the following sections: + +- [blocklist](#blocklist) +- [regions](#regions) +- [accounts](#accounts) + - [presets](#presets) + - [filters](#filters) + - [resource-types](#resource-types) + - [includes](#includes) + - [excludes](#excludes) + - [cloud-control](#cloud-control) + - targets (deprecated, use includes) +- [resource-types](#resource-types) + - [includes](#includes) + - [excludes](#excludes) + - [cloud-control](#cloud-control) + - targets (deprecated, use includes) +- [feature-flags](#feature-flags) (deprecated, use settings instead) +- [settings](#settings) +- [presets](#global-presets) + +## Simple Example + +```yaml +blocklist: + - 1234567890 + +regions: + - global + - us-east-1 + +accounts: + 0987654321: + filters: + IAMUser: + - "admin" + IAMUserPolicyAttachment: + - "admin -> AdministratorAccess" + IAMUserAccessKey: + - "admin -> AKSDAFRETERSDF" + - "admin -> AFGDSGRTEWSFEY" + +resource-types: + includes: + - IAMUser + - IAMUserPolicyAttachment + - IAMUserAccessKey + +settings: + EC2Instance: + DisableDeletionProtection: true + RDSInstance: + DisableDeletionProtection: true +``` + +## Blocklist + +The blocklist is simply a list of Accounts that the tool cannot run against. This is to protect the user from accidentally +running the tool against the wrong account. The blocklist must always be populated with at least one entry. + +## Regions + +The regions is a list of AWS regions that the tool will run against. The tool will run against all regions specified in the +configuration. If no regions are listed, then the tool will **NOT** run against any region. Regions must be explicitly +provided. + +## Accounts + +The accounts section is a map of AWS Account IDs to their configuration. The account ID is the key and the value is the +configuration for that account. + +The configuration for each account is broken down into the following sections: + +- presets +- filters +- resource-types + - targets (deprecated, use includes) + - includes + - excludes + - cloud-control + +### Presets + +Presets under an account entry is a list of strings that must map to a globally defined preset in the configuration. + +### Filters + +Filters is a map of filters against resource types. To learn more about filters, see the [Filtering](./config-filtering.md) + +**Note:** filters can be defined at the account level and at the preset level. + +## Resource Types + +Resource types is a map of resource types to their configuration. The resource type is the key and the value is the +configuration for that resource type. + +The configuration for each resource type is broken down into the following sections: + +- includes +- excludes +- cloud-control +- targets (deprecated, use includes) + +### Includes + +Includes are a list of resource types the tool will run against. If no includes are specified, then the tool will run against +all resource types. + +### Excludes + +Excludes are a list of resource types the tool will not run against. If no excludes are specified, then the tool will run +against all resource types unless Includes is specified. + +### Cloud Control + +Cloud Control is a map of resource types to their cloud control configuration. This allows for alternative behavior when +removing resources. If a resource has a Cloud Control alternative, and you'd like to use its behavior, then you can specify +the resource type in the `cloud-control` section. + +## Feature Flags + +!!! warning + Deprecated. Please use settings instead. + +Feature flags are a map of resource types to their feature flag configuration. This allows for alternative behavior when +removing resources. If a resource has a feature flag alternative, and you'd like to use its behavior, then you can specify +the resource type in the `feature-flags` section. + +## Settings + +Settings are a map of resource types to their settings configuration. This allows for alternative behavior when removing +resources. If a resource has a setting alternative, and you'd like to use its behavior, then you can specify the resource +type in the `settings` section. + +## Global Presets + +To read more on global presets, see the [Presets](./config-presets.md) documentation. \ No newline at end of file diff --git a/docs/index.md b/docs/index.md index fa4fe693..94192c1e 100644 --- a/docs/index.md +++ b/docs/index.md @@ -25,3 +25,19 @@ aws-nuke, and [azure-nuke](https://github.com/ekristen/azure-nuke) and soon [gcp I also needed a version of this tool for Azure and GCP, and initially I just copied and altered the code I needed for Azure, but I didn't want to have to maintain multiple copies of the same code, so I decided to create [libnuke](https://github.com/ekristen/libnuke) to abstract all the code that was common between the two tools and write proper unit tests for it. + +## Why a rewrite? + +I decided to rewrite this tool for a few reasons: + +- [x] I wanted to improve the build process by using `goreleaser` +- [x] I wanted to improve the release process by using `goreleaser` and publishing multi-architecture images +- [x] I also wanted to start signing all the releases +- [x] I wanted to add additional tests and improve the test coverage, more tests on the way for individual resources. + - [libnuke](https://github.com/ekristen/libnuke) is at 94%+ overall test coverage. +- [x] I wanted to reduce the maintenance burden by abstracting the core code into a library +- [x] I wanted to make adding additional resources more easy and lowering the barrier to entry +- [x] I wanted to add a lot more documentation and examples +- [x] I wanted to take steps to make way for AWS SDK Version 2 +- [ ] I wanted to add a DAG for dependencies between resource types and individual resources (this is still a work in progress) + - This will improve the process of deleting resources that have dependencies on other resources and reduce errors and unnecessary API calls. diff --git a/go.mod b/go.mod index 8bbbc731..3371d9ff 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.21.6 require ( github.com/aws/aws-sdk-go v1.49.21 - github.com/ekristen/libnuke v0.0.0-20240116165357-96b399754078 + github.com/ekristen/libnuke v0.0.0-20240122232527-922a9af6ba13 github.com/fatih/color v1.16.0 github.com/golang/mock v1.6.0 github.com/google/uuid v1.5.0 @@ -29,10 +29,7 @@ require ( github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/stevenle/topsort v0.2.0 // indirect github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect - golang.org/x/mod v0.4.2 // indirect golang.org/x/sync v0.6.0 // indirect - golang.org/x/sys v0.14.0 // indirect - golang.org/x/tools v0.1.1 // indirect - golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect + golang.org/x/sys v0.16.0 // indirect gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect ) diff --git a/go.sum b/go.sum index 566d5f7b..ef5ef6e8 100644 --- a/go.sum +++ b/go.sum @@ -6,10 +6,8 @@ github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ3 github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/ekristen/libnuke v0.0.0-20240115160410-493db5654770 h1:RE8cbaqUhdxOAguCqz0poOOL48vTUWLTBmSDUy5STGc= -github.com/ekristen/libnuke v0.0.0-20240115160410-493db5654770/go.mod h1:1ySAhDQd6laQdG7VbG/+i+DAFIVMHlrk2ZXgwHuvOk4= -github.com/ekristen/libnuke v0.0.0-20240116165357-96b399754078 h1:UrP1aer0t+FgMDqHVQGNv+vyLZaAP5LPHEkVCu/eGIA= -github.com/ekristen/libnuke v0.0.0-20240116165357-96b399754078/go.mod h1:1ySAhDQd6laQdG7VbG/+i+DAFIVMHlrk2ZXgwHuvOk4= +github.com/ekristen/libnuke v0.0.0-20240122232527-922a9af6ba13 h1:d8d42BTmJkuO+cS8c+xitkNFC0ik9xAbqbZ+pJ76j3M= +github.com/ekristen/libnuke v0.0.0-20240122232527-922a9af6ba13/go.mod h1:GgNcRFHihQza4zWLoun9hEXzVfGTk+nKTwCwo6xAyDg= github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= @@ -62,7 +60,6 @@ github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsr github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/mod v0.4.2 h1:Gz96sIWK3OalVv/I/qNygP42zyoKp3xptRVCWRFEBvo= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -81,8 +78,8 @@ golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.14.0 h1:Vz7Qs629MkJkGyHxUlRHizWJRG2j8fbQKjELVSNhy7Q= -golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.16.0 h1:xWw16ngr6ZMtmxDyKyIgsE93KNKz5HKmMa3b8ALHidU= +golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= @@ -90,11 +87,9 @@ golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.1.1 h1:wGiQel/hW0NnEkJUk8lbzkX2gFJU6PFxf1v5OlCfuOs= golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= diff --git a/mkdocs.yml b/mkdocs.yml index 0b0849e6..fb97a09e 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -71,8 +71,11 @@ nav: - Authentication: auth.md - Quick Start: quick-start.md - Config: - - Filtering: filtering.md - - Custom Endpoints: custom-endpoints.md + - Overview: config.md + - Filtering: config-filtering.md + - Presets: config-presets.md + - Custom Endpoints: config-custom-endpoints.md + - Migration Guide: config-migration.md - Development: - Overview: development.md - Resources: resources.md diff --git a/pkg/awsutil/account.go b/pkg/awsutil/account.go index 19a8ae30..adf37f10 100644 --- a/pkg/awsutil/account.go +++ b/pkg/awsutil/account.go @@ -3,10 +3,12 @@ package awsutil import ( "strings" + "github.com/pkg/errors" + "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/sts" + "github.com/ekristen/aws-nuke/pkg/config" - "github.com/pkg/errors" ) type Account struct { diff --git a/pkg/awsutil/session.go b/pkg/awsutil/session.go index 64d66365..b7c87a95 100644 --- a/pkg/awsutil/session.go +++ b/pkg/awsutil/session.go @@ -7,6 +7,8 @@ import ( "net/http" "strings" + log "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/credentials" "github.com/aws/aws-sdk-go/aws/credentials/stscreds" @@ -14,9 +16,9 @@ import ( "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/s3control" + "github.com/ekristen/aws-nuke/pkg/config" - sdkerrors "github.com/ekristen/libnuke/pkg/errors" - log "github.com/sirupsen/logrus" + liberrors "github.com/ekristen/libnuke/pkg/errors" ) const ( @@ -149,7 +151,7 @@ func (c *Credentials) NewSession(region, serviceType string) (*session.Session, if customRegion := c.CustomEndpoints.GetRegion(region); customRegion != nil { customService := customRegion.Services.GetService(serviceType) if customService == nil { - return nil, sdkerrors.ErrSkipRequest(fmt.Sprintf( + return nil, liberrors.ErrSkipRequest(fmt.Sprintf( ".service '%s' is not available in region '%s'", serviceType, region)) } @@ -216,7 +218,7 @@ func skipMissingServiceInRegionHandler(r *request.Request) { _, ok = rs[region] if !ok { - r.Error = sdkerrors.ErrSkipRequest(fmt.Sprintf( + r.Error = liberrors.ErrSkipRequest(fmt.Sprintf( "service '%s' is not available in region '%s'", service, region)) } @@ -234,25 +236,25 @@ func skipGlobalHandler(global bool) func(r *request.Request) { if !ok { // This means that the service does not exist in the endpoints list. if global { - r.Error = sdkerrors.ErrSkipRequest(fmt.Sprintf("service '%s' is was not found in the endpoint list; assuming it is not global", service)) + r.Error = liberrors.ErrSkipRequest(fmt.Sprintf("service '%s' is was not found in the endpoint list; assuming it is not global", service)) } else { host := r.HTTPRequest.URL.Hostname() _, err := net.LookupHost(host) if err != nil { log.Debug(err) - r.Error = sdkerrors.ErrUnknownEndpoint(fmt.Sprintf("DNS lookup failed for %s; assuming it does not exist in this region", host)) + r.Error = liberrors.ErrUnknownEndpoint(fmt.Sprintf("DNS lookup failed for %s; assuming it does not exist in this region", host)) } } return } if len(rs) == 0 && !global { - r.Error = sdkerrors.ErrSkipRequest(fmt.Sprintf("service '%s' is global, but the session is not", service)) + r.Error = liberrors.ErrSkipRequest(fmt.Sprintf("service '%s' is global, but the session is not", service)) return } if (len(rs) > 0 && global) && service != "sts" { - r.Error = sdkerrors.ErrSkipRequest(fmt.Sprintf("service '%s' is not global, but the session is", service)) + r.Error = liberrors.ErrSkipRequest(fmt.Sprintf("service '%s' is not global, but the session is", service)) return } } diff --git a/pkg/awsutil/util.go b/pkg/awsutil/util.go index 460c1e0b..f21c4c5c 100644 --- a/pkg/awsutil/util.go +++ b/pkg/awsutil/util.go @@ -3,13 +3,15 @@ package awsutil import ( "bytes" "errors" - "github.com/aws/aws-sdk-go/aws/awserr" "net/http" "net/http/httputil" "regexp" + "github.com/sirupsen/logrus" + + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/ekristen/libnuke/pkg/utils" - log "github.com/sirupsen/logrus" ) var ( @@ -23,8 +25,7 @@ func HideSecureHeaders(dump []byte) []byte { func DumpRequest(r *http.Request) string { dump, err := httputil.DumpRequest(r, true) if err != nil { - log.WithField("Error", err). - Warnf("failed to dump HTTP request") + logrus.WithField("Error", err).Warnf("failed to dump HTTP request") return "" } @@ -37,8 +38,7 @@ func DumpRequest(r *http.Request) string { func DumpResponse(r *http.Response) string { dump, err := httputil.DumpResponse(r, true) if err != nil { - log.WithField("Error", err). - Warnf("failed to dump HTTP response") + logrus.WithField("Error", err).Warnf("failed to dump HTTP response") return "" } diff --git a/pkg/commands/list/list.go b/pkg/commands/list/list.go index ebd19af6..36d22a01 100644 --- a/pkg/commands/list/list.go +++ b/pkg/commands/list/list.go @@ -1,9 +1,9 @@ package list import ( - "fmt" "github.com/ekristen/aws-nuke/pkg/nuke" "github.com/ekristen/libnuke/pkg/resource" + "github.com/fatih/color" "github.com/urfave/cli/v2" "github.com/ekristen/aws-nuke/pkg/commands/global" @@ -16,7 +16,7 @@ func execute(c *cli.Context) error { ls := resource.GetListersForScope(nuke.Account) for name, _ := range ls { - fmt.Println(name) + color.New(color.Bold).Printf("%-55s\n", name) } return nil diff --git a/pkg/commands/nuke/command.go b/pkg/commands/nuke/command.go index 555e0761..0ec12e64 100644 --- a/pkg/commands/nuke/command.go +++ b/pkg/commands/nuke/command.go @@ -5,12 +5,13 @@ import ( "fmt" "os" - "github.com/aws/aws-sdk-go/aws/endpoints" - "github.com/sirupsen/logrus" "github.com/urfave/cli/v2" - sdknuke "github.com/ekristen/libnuke/pkg/nuke" + "github.com/aws/aws-sdk-go/aws/endpoints" + + libconfig "github.com/ekristen/libnuke/pkg/config" + libnuke "github.com/ekristen/libnuke/pkg/nuke" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -25,8 +26,6 @@ func execute(c *cli.Context) error { ctx, cancel := context.WithCancel(c.Context) defer cancel() - _ = ctx - var ( err error creds awsutil.Credentials @@ -42,24 +41,28 @@ func execute(c *cli.Context) error { return err } - params := nuke.Parameters{ - Parameters: sdknuke.Parameters{ - Force: c.Bool("force"), - ForceSleep: c.Int("force-sleep"), - Quiet: c.Bool("quiet"), - NoDryRun: c.Bool("no-dry-run"), - }, - Targets: c.StringSlice("only-resource"), + // Create the parameters object that will be used to configure the nuke process. + params := &libnuke.Parameters{ + Force: c.Bool("force"), + ForceSleep: c.Int("force-sleep"), + Quiet: c.Bool("quiet"), + NoDryRun: c.Bool("no-dry-run"), + Includes: c.StringSlice("only-resource"), Excludes: c.StringSlice("exclude-resource"), - CloudControl: c.StringSlice("cloud-control"), + Alternatives: c.StringSlice("cloud-control"), } - parsedConfig, err := config.Load(c.Path("config")) + // Parse the user supplied configuration file to pass in part to configure the nuke process. + parsedConfig, err := config.New(libconfig.Options{ + Path: c.Path("config"), + Deprecations: resource.GetDeprecatedResourceTypeMapping(), + }) if err != nil { logrus.Errorf("Failed to parse config file %s", c.Path("config")) return err } + // Set the default region for the AWS SDK to use. if defaultRegion != "" { awsutil.DefaultRegionID = defaultRegion switch defaultRegion { @@ -76,71 +79,74 @@ func execute(c *cli.Context) error { } } + // Create the AWS Account object. This will be used to get the account ID and aliases for the account. account, err := awsutil.NewAccount(creds, parsedConfig.CustomEndpoints) if err != nil { return err } + // Get the filters for the account that is being connected to via the AWS SDK. filters, err := parsedConfig.Filters(account.ID()) if err != nil { return err } - n := nuke.New(params, parsedConfig, filters, *account) + // Instantiate libnuke + n := libnuke.New(params, filters, parsedConfig.Settings) + // Register our custom validate handler that validates the account and AWS nuke unique alias checks n.RegisterValidateHandler(func() error { - return parsedConfig.ValidateAccount(n.Account.ID(), n.Account.Aliases()) + return parsedConfig.ValidateAccount(account.ID(), account.Aliases()) }) - n.RegisterPrompt(n.Prompt) + // Register our custom prompt handler that shows the account information + p := &nuke.Prompt{Parameters: params, Account: account} + n.RegisterPrompt(p.Prompt) - accountConfig := parsedConfig.Accounts[n.Account.ID()] - resourceTypes := nuke.ResolveResourceTypes( + // Get any specific account level configuration + accountConfig := parsedConfig.Accounts[account.ID()] + + // Resolve the resource types to be used for the nuke process based on the parameters, global configuration, and + // account level configuration. + resourceTypes := types.ResolveResourceTypes( resource.GetNames(), - nuke.GetCloudControlMapping(), []types.Collection{ - n.Parameters.Targets, - n.Config.GetResourceTypes().Targets, + n.Parameters.Includes, + parsedConfig.ResourceTypes.Targets, accountConfig.ResourceTypes.Targets, }, []types.Collection{ n.Parameters.Excludes, - n.Config.GetResourceTypes().Excludes, + parsedConfig.ResourceTypes.Excludes, accountConfig.ResourceTypes.Excludes, }, []types.Collection{ - n.Parameters.CloudControl, - n.Config.GetResourceTypes().CloudControl, + n.Parameters.Alternatives, + parsedConfig.ResourceTypes.CloudControl, accountConfig.ResourceTypes.CloudControl, }, + resource.GetAlternativeResourceTypeMapping(), ) - // mutateOps is a function that will be called for each resource type to mutate the options - // for the scanner based on whatever criteria you want. However, in this case for the aws-nuke - // tool, it's mutating the opts to create the proper session for the proper region. - var mutateOps = func(opts interface{}, resourceType string) interface{} { - o := opts.(*nuke.ListerOpts) - - session, err := o.Region.Session(resourceType) - if err != nil { - panic(err) - } - - o.Session = session - return o - } - + // Register the scanners for each region that is defined in the configuration. for _, regionName := range parsedConfig.Regions { - region := nuke.NewRegion(regionName, n.Account.ResourceTypeToServiceType, n.Account.NewSession) - scanner := sdknuke.NewScanner(regionName, resourceTypes, &nuke.ListerOpts{ + // Step 1 - Create the region object + region := nuke.NewRegion(regionName, account.ResourceTypeToServiceType, account.NewSession) + + // Step 2 - Create the scanner object + scanner := libnuke.NewScanner(regionName, resourceTypes, &nuke.ListerOpts{ Region: region, }) - regMutateErr := scanner.RegisterMutateOptsFunc(mutateOps) + // Step 3 - Register a mutate function that will be called to modify the lister options for each resource type + // see pkg/nuke/resource.go for the MutateOpts function. Its purpose is to create the proper session for the + // proper region. + regMutateErr := scanner.RegisterMutateOptsFunc(nuke.MutateOpts) if regMutateErr != nil { return regMutateErr } + // Step 4 - Register the scanner with the nuke object regScanErr := n.RegisterScanner(nuke.Account, scanner) if regScanErr != nil { return regScanErr @@ -177,11 +183,16 @@ func init() { &cli.StringSliceFlag{ Name: "only-resource", Usage: "only run against these resource types", - Aliases: []string{"target"}, + Aliases: []string{"target", "include", "include-resource"}, }, - &cli.BoolFlag{ - Name: "experimental-deps", - Usage: "turn on dependency removal ordering", + &cli.StringSliceFlag{ + Name: "exclude-resource", + Usage: "exclude these resource types", + Aliases: []string{"exclude"}, + }, + &cli.StringSliceFlag{ + Name: "cloud-control", + Usage: "use these resource types with the Cloud Control API instead of the default", }, } diff --git a/pkg/config/config.go b/pkg/config/config.go index bd531bd7..dd93c2d3 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -1,129 +1,84 @@ package config import ( - "bytes" "fmt" "os" "strings" - yaml "gopkg.in/yaml.v3" + "gopkg.in/yaml.v3" - "github.com/sirupsen/logrus" - - "github.com/ekristen/libnuke/pkg/filter" - "github.com/ekristen/libnuke/pkg/types" + "github.com/ekristen/libnuke/pkg/config" + "github.com/ekristen/libnuke/pkg/settings" ) -type Account struct { - Filters filter.Filters `yaml:"filters"` - ResourceTypes ResourceTypes `yaml:"resource-types"` - Presets []string `yaml:"presets"` -} +// New creates a new extended configuration from a file. This is necessary because we are extended the default +// libnuke configuration to contain additional attributes that are specific to the AWS Nuke tool. +func New(opts config.Options) (*Config, error) { + // Step 1 - Create the libnuke config + cfg, err := config.New(opts) + if err != nil { + return nil, err + } -type ResourceTypes struct { - Targets types.Collection `yaml:"targets"` - Excludes types.Collection `yaml:"excludes"` - CloudControl types.Collection `yaml:"cloud-control"` -} + // Step 2 - Instantiate the extended config + c := &Config{ + CustomEndpoints: make(CustomEndpoints, 0), + } -type Nuke struct { - // Deprecated: Use AccountBlocklist instead. - AccountBlacklist []string `yaml:"account-blacklist"` - AccountBlocklist []string `yaml:"account-blocklist"` - Regions []string `yaml:"regions"` - Accounts map[string]Account `yaml:"accounts"` - ResourceTypes ResourceTypes `yaml:"resource-types"` - Presets map[string]PresetDefinitions `yaml:"presets"` - FeatureFlags FeatureFlags `yaml:"feature-flags"` - CustomEndpoints CustomEndpoints `yaml:"endpoints"` -} + // Step 3 - Load the same config file against the extended config + if err := c.Load(opts.Path); err != nil { + return nil, err + } -type FeatureFlags struct { - DisableDeletionProtection DisableDeletionProtection `yaml:"disable-deletion-protection"` - DisableEC2InstanceStopProtection bool `yaml:"disable-ec2-instance-stop-protection"` - ForceDeleteLightsailAddOns bool `yaml:"force-delete-lightsail-addons"` -} + // Step 4 - Set the libnuke config on the extended config + c.Config = cfg -type DisableDeletionProtection struct { - RDSInstance bool `yaml:"RDSInstance"` - EC2Instance bool `yaml:"EC2Instance"` - CloudformationStack bool `yaml:"CloudformationStack"` - ELBv2 bool `yaml:"ELBv2"` - QLDBLedger bool `yaml:"QLDBLedger"` -} + // Step 5 - Resolve any deprecated feature flags + c.ResolveDeprecatedFeatureFlags() -type PresetDefinitions struct { - Filters filter.Filters `yaml:"filters"` + return c, nil } -type CustomService struct { - Service string `yaml:"service"` - URL string `yaml:"url"` - TLSInsecureSkipVerify bool `yaml:"tls_insecure_skip_verify"` -} +// Config is an extended configuration implementation that adds some additional features on top of the libnuke config. +type Config struct { + // Config is the underlying libnuke configuration. + *config.Config `yaml:",inline"` -type CustomServices []*CustomService + // FeatureFlags is a collection of feature flags that can be used to enable or disable certain behaviors on + // resources. This is left over from the AWS Nuke tool and is deprecated. It was left to make the transition to the + // library and ekristen/aws-nuke@v3 easier for existing users. + // Deprecated: Use Settings instead. Will be removed in 4.x + FeatureFlags *FeatureFlags `yaml:"feature-flags"` -type CustomRegion struct { - Region string `yaml:"region"` - Services CustomServices `yaml:"services"` - TLSInsecureSkipVerify bool `yaml:"tls_insecure_skip_verify"` + // CustomEndpoints is a collection of custom endpoints that can be used to override the default AWS endpoints. + CustomEndpoints CustomEndpoints `yaml:"endpoints"` } -type CustomEndpoints []*CustomRegion - -func Load(path string) (*Nuke, error) { +// Load loads a configuration from a file and parses it into a Config struct. +func (c *Config) Load(path string) error { var err error raw, err := os.ReadFile(path) if err != nil { - return nil, err + return err } - cfg := new(Nuke) - dec := yaml.NewDecoder(bytes.NewReader(raw)) - dec.KnownFields(true) - err = dec.Decode(&cfg) - if err != nil { - return nil, err - } - - if err := cfg.ResolveDeprecations(); err != nil { - return nil, err + if err := yaml.Unmarshal(raw, c); err != nil { + return err } - return cfg, nil -} - -func (c *Nuke) ResolveBlocklist() []string { - if c.AccountBlocklist != nil { - return c.AccountBlocklist - } - - logrus.Warn("deprecated configuration key 'account-blacklist' - please use 'account-blocklist' instead") - return c.AccountBlacklist -} - -func (c *Nuke) HasBlocklist() bool { - var blocklist = c.ResolveBlocklist() - return blocklist != nil && len(blocklist) > 0 + return nil } -func (c *Nuke) InBlocklist(searchID string) bool { - for _, blocklistID := range c.ResolveBlocklist() { - if blocklistID == searchID { - return true - } +// ValidateAccount validates the account ID and aliases for the specified account. This will return an error if the +// account ID is invalid, the account ID is blocklisted, the account doesn't have an alias, the account alias contains +// the substring 'prod', or the account ID isn't listed in the config. +func (c *Config) ValidateAccount(accountID string, aliases []string) error { + // Call the libnuke config validation first + if err := c.Config.ValidateAccount(accountID); err != nil { + return err } - return false -} - -func (c *Nuke) Validate(accountID string) error { - return nil -} - -func (c *Nuke) ValidateAccount(accountID string, aliases []string) error { if !c.HasBlocklist() { return fmt.Errorf("The config file contains an empty blocklist. " + "For safety reasons you need to specify at least one account ID. " + @@ -156,95 +111,93 @@ func (c *Nuke) ValidateAccount(accountID string, aliases []string) error { return nil } -func (c *Nuke) Filters(accountID string) (filter.Filters, error) { - account := c.Accounts[accountID] - filters := account.Filters +// ResolveDeprecatedFeatureFlags resolves any deprecated feature flags in the configuration. This converts the legacy +// feature flags into the new settings format. The feature flags will be deprecated with version 4.x. This was left in +// place to make the transition to the libnuke library and ekristen/aws-nuke@v3 easier for existing users. +func (c *Config) ResolveDeprecatedFeatureFlags() { + if c.FeatureFlags != nil { + c.Log.Warn("deprecated configuration key 'feature-flags' - please use 'settings' instead") - if filters == nil { - filters = filter.Filters{} - } - - if account.Presets == nil { - return filters, nil - } - - for _, presetName := range account.Presets { - notFound := fmt.Errorf("could not find filter preset '%s'", presetName) - if c.Presets == nil { - return nil, notFound + if c.FeatureFlags.ForceDeleteLightsailAddOns { + c.Settings.Set("LightsailInstance", &settings.Setting{ + "ForceDeleteAddOns": true, + }) } - - preset, ok := c.Presets[presetName] - if !ok { - return nil, notFound + if c.FeatureFlags.DisableEC2InstanceStopProtection { + c.Settings.Set("EC2Instance", &settings.Setting{ + "DisableStopProtection": true, + }) + } + if c.FeatureFlags.DisableDeletionProtection.EC2Instance { + c.Settings.Set("EC2Instance", &settings.Setting{ + "DisableDeletionProtection": true, + }) + } + if c.FeatureFlags.DisableDeletionProtection.RDSInstance { + c.Settings.Set("RDSInstance", &settings.Setting{ + "DisableDeletionProtection": true, + }) + } + if c.FeatureFlags.DisableDeletionProtection.ELBv2 { + c.Settings.Set("ELBv2", &settings.Setting{ + "DisableDeletionProtection": true, + }) + } + if c.FeatureFlags.DisableDeletionProtection.CloudformationStack { + c.Settings.Set("CloudformationStack", &settings.Setting{ + "DisableDeletionProtection": true, + }) + } + if c.FeatureFlags.DisableDeletionProtection.QLDBLedger { + c.Settings.Set("QLDBLedger", &settings.Setting{ + "DisableDeletionProtection": true, + }) } - - filters.Merge(preset.Filters) } - - return filters, nil } -func (c *Nuke) GetFeatureFlags() FeatureFlags { - return c.FeatureFlags +// FeatureFlags is a collection of feature flags that can be used to enable or disable certain features of the nuke +// This is left over from the AWS Nuke tool and is deprecated. It was left to make the transition to the library and +// ekristen/aws-nuke@v3 easier for existing users. +// Deprecated: Use Settings instead. Will be removed in 4.x +type FeatureFlags struct { + DisableDeletionProtection DisableDeletionProtection `yaml:"disable-deletion-protection"` + DisableEC2InstanceStopProtection bool `yaml:"disable-ec2-instance-stop-protection"` + ForceDeleteLightsailAddOns bool `yaml:"force-delete-lightsail-addons"` } -func (c *Nuke) GetPresets() map[string]PresetDefinitions { - return c.Presets +// DisableDeletionProtection is a collection of feature flags that can be used to disable deletion protection for +// certain resource types. This is left over from the AWS Nuke tool and is deprecated. It was left to make transition +// to the library and ekristen/aws-nuke@v3 easier for existing users. +// Deprecated: Use Settings instead. Will be removed in 4.x +type DisableDeletionProtection struct { + RDSInstance bool `yaml:"RDSInstance"` + EC2Instance bool `yaml:"EC2Instance"` + CloudformationStack bool `yaml:"CloudformationStack"` + ELBv2 bool `yaml:"ELBv2"` + QLDBLedger bool `yaml:"QLDBLedger"` } -func (c *Nuke) GetResourceTypes() ResourceTypes { - return c.ResourceTypes +// CustomService is a custom service endpoint that can be used to override the default AWS endpoints. +type CustomService struct { + Service string `yaml:"service"` + URL string `yaml:"url"` + TLSInsecureSkipVerify bool `yaml:"tls_insecure_skip_verify"` } -func (c *Nuke) ResolveDeprecations() error { - deprecations := map[string]string{ - "EC2DhcpOptions": "EC2DHCPOptions", - "EC2InternetGatewayAttachement": "EC2InternetGatewayAttachment", - "EC2NatGateway": "EC2NATGateway", - "EC2Vpc": "EC2VPC", - "EC2VpcEndpoint": "EC2VPCEndpoint", - "EC2VpnConnection": "EC2VPNConnection", - "EC2VpnGateway": "EC2VPNGateway", - "EC2VpnGatewayAttachement": "EC2VPNGatewayAttachment", - "ECRrepository": "ECRRepository", - "IamGroup": "IAMGroup", - "IamGroupPolicyAttachement": "IAMGroupPolicyAttachment", - "IamInstanceProfile": "IAMInstanceProfile", - "IamInstanceProfileRole": "IAMInstanceProfileRole", - "IamPolicy": "IAMPolicy", - "IamRole": "IAMRole", - "IamRolePolicyAttachement": "IAMRolePolicyAttachment", - "IamServerCertificate": "IAMServerCertificate", - "IamUser": "IAMUser", - "IamUserAccessKeys": "IAMUserAccessKey", - "IamUserGroupAttachement": "IAMUserGroupAttachment", - "IamUserPolicyAttachement": "IAMUserPolicyAttachment", - "RDSCluster": "RDSDBCluster", - "EKSFargateProfiles": "EKSFargateProfile", - "EKSNodegroups": "EKSNodegroup", - "NetpuneSnapshot": "NeptuneSnapshot", - } - - for _, a := range c.Accounts { - for resourceType, resources := range a.Filters { - replacement, ok := deprecations[resourceType] - if !ok { - continue - } - logrus.Warnf("deprecated resource type '%s' - converting to '%s'\n", resourceType, replacement) - - if _, ok := a.Filters[replacement]; ok { - return fmt.Errorf("using deprecated resource type and replacement: '%s','%s'", resourceType, replacement) - } +// CustomServices is a collection of custom service endpoints that can be used to override the default AWS endpoints. +type CustomServices []*CustomService - a.Filters[replacement] = resources - delete(a.Filters, resourceType) - } - } - return nil +// CustomRegion is a custom region endpoint that can be used to override the default AWS regions +type CustomRegion struct { + Region string `yaml:"region"` + Services CustomServices `yaml:"services"` + TLSInsecureSkipVerify bool `yaml:"tls_insecure_skip_verify"` } +// CustomEndpoints is a collection of custom region endpoints that can be used to override the default AWS regions +type CustomEndpoints []*CustomRegion + // GetRegion returns the custom region or nil when no such custom endpoints are defined for this region func (endpoints CustomEndpoints) GetRegion(region string) *CustomRegion { for _, r := range endpoints { @@ -270,6 +223,7 @@ func (services CustomServices) GetService(serviceType string) *CustomService { return nil } +// GetURL returns the custom region or nil when no such custom endpoints are defined for this region func (endpoints CustomEndpoints) GetURL(region, serviceType string) string { r := endpoints.GetRegion(region) if r == nil { diff --git a/pkg/config/config_test.go b/pkg/config/config_test.go index ce535848..e288e86b 100644 --- a/pkg/config/config_test.go +++ b/pkg/config/config_test.go @@ -2,89 +2,72 @@ package config import ( "fmt" - "github.com/ekristen/libnuke/pkg/filter" - "github.com/ekristen/libnuke/pkg/types" + "io" "reflect" "strings" "testing" -) - -func TestConfigBlocklist(t *testing.T) { - config := new(Nuke) - - if config.HasBlocklist() { - t.Errorf("HasBlocklist() returned true on a nil backlist.") - } - - if config.InBlocklist("blubber") { - t.Errorf("InBlocklist() returned true on a nil backlist.") - } - - config.AccountBlocklist = []string{} - if config.HasBlocklist() { - t.Errorf("HasBlocklist() returned true on a empty backlist.") - } - - if config.InBlocklist("foobar") { - t.Errorf("InBlocklist() returned true on a empty backlist.") - } + "github.com/sirupsen/logrus" + "github.com/stretchr/testify/assert" - config.AccountBlocklist = append(config.AccountBlocklist, "bim") - - if !config.HasBlocklist() { - t.Errorf("HasBlocklist() returned false on a backlist with one element.") - } - - if !config.InBlocklist("bim") { - t.Errorf("InBlocklist() returned false on looking up an existing value.") - } - - if config.InBlocklist("baz") { - t.Errorf("InBlocklist() returned true on looking up an non existing value.") - } -} + libconfig "github.com/ekristen/libnuke/pkg/config" + "github.com/ekristen/libnuke/pkg/filter" + "github.com/ekristen/libnuke/pkg/settings" + "github.com/ekristen/libnuke/pkg/types" +) func TestLoadExampleConfig(t *testing.T) { - config, err := Load("testdata/example.yaml") + logger := logrus.New() + logger.SetOutput(io.Discard) + entry := logrus.WithField("test", true) + + config, err := New(libconfig.Options{ + Path: "testdata/example.yaml", + Log: entry, + }) if err != nil { t.Fatal(err) } - expect := Nuke{ - AccountBlocklist: []string{"1234567890"}, - Regions: []string{"eu-west-1", "stratoscale"}, - Accounts: map[string]Account{ - "555133742": { - Presets: []string{"terraform"}, - Filters: filter.Filters{ - "IAMRole": { - filter.NewExactFilter("uber.admin"), + expect := Config{ + Config: &libconfig.Config{ + Blocklist: []string{"1234567890"}, + Regions: []string{"eu-west-1", "stratoscale"}, + Accounts: map[string]*libconfig.Account{ + "555133742": { + Presets: []string{"terraform"}, + Filters: filter.Filters{ + "IAMRole": { + filter.NewExactFilter("uber.admin"), + }, + "IAMRolePolicyAttachment": { + filter.NewExactFilter("uber.admin -> AdministratorAccess"), + }, }, - "IAMRolePolicyAttachment": { - filter.NewExactFilter("uber.admin -> AdministratorAccess"), + ResourceTypes: libconfig.ResourceTypes{ + Targets: types.Collection{"S3Bucket"}, }, }, - ResourceTypes: ResourceTypes{ - Targets: types.Collection{"S3Bucket"}, - }, }, - }, - ResourceTypes: ResourceTypes{ - Targets: types.Collection{"DynamoDBTable", "S3Bucket", "S3Object"}, - Excludes: types.Collection{"IAMRole"}, - }, - Presets: map[string]PresetDefinitions{ - "terraform": { - Filters: filter.Filters{ - "S3Bucket": { - filter.Filter{ - Type: filter.Glob, - Value: "my-statebucket-*", + ResourceTypes: libconfig.ResourceTypes{ + Targets: types.Collection{"DynamoDBTable", "S3Bucket", "S3Object"}, + Excludes: types.Collection{"IAMRole"}, + }, + Presets: map[string]libconfig.Preset{ + "terraform": { + Filters: filter.Filters{ + "S3Bucket": { + filter.Filter{ + Type: filter.Glob, + Value: "my-statebucket-*", + }, }, }, }, }, + Settings: &settings.Settings{}, + Deprecations: make(map[string]string), + Log: entry, }, CustomEndpoints: []*CustomRegion{ { @@ -105,44 +88,52 @@ func TestLoadExampleConfig(t *testing.T) { }, } - if !reflect.DeepEqual(*config, expect) { - t.Errorf("Read struct mismatches:") - t.Errorf(" Got: %#v", *config) - t.Errorf(" Expected: %#v", expect) - } + assert.Equal(t, expect, *config) } func TestResolveDeprecations(t *testing.T) { - config := Nuke{ - AccountBlocklist: []string{"1234567890"}, - Regions: []string{"eu-west-1"}, - Accounts: map[string]Account{ - "555133742": { - Filters: filter.Filters{ - "IamRole": { - filter.NewExactFilter("uber.admin"), - filter.NewExactFilter("foo.bar"), - }, - "IAMRolePolicyAttachment": { - filter.NewExactFilter("uber.admin -> AdministratorAccess"), + logger := logrus.New() + logger.SetOutput(io.Discard) + entry := logrus.WithField("test", true) + + config := Config{ + Config: &libconfig.Config{ + Blocklist: []string{"1234567890"}, + Regions: []string{"eu-west-1"}, + Accounts: map[string]*libconfig.Account{ + "555133742": { + Filters: filter.Filters{ + "IamRole": { + filter.NewExactFilter("uber.admin"), + filter.NewExactFilter("foo.bar"), + }, + "IAMRolePolicyAttachment": { + filter.NewExactFilter("uber.admin -> AdministratorAccess"), + }, }, }, - }, - "2345678901": { - Filters: filter.Filters{ - "ECRrepository": { - filter.NewExactFilter("foo:bar"), - filter.NewExactFilter("bar:foo"), - }, - "IAMRolePolicyAttachment": { - filter.NewExactFilter("uber.admin -> AdministratorAccess"), + "2345678901": { + Filters: filter.Filters{ + "ECRrepository": { + filter.NewExactFilter("foo:bar"), + filter.NewExactFilter("bar:foo"), + }, + "IAMRolePolicyAttachment": { + filter.NewExactFilter("uber.admin -> AdministratorAccess"), + }, }, }, }, + Settings: &settings.Settings{}, + Deprecations: map[string]string{ + "ECRrepository": "ECRRepository", + "IamRole": "IAMRole", + }, + Log: entry, }, } - expect := map[string]Account{ + expect := map[string]*libconfig.Account{ "555133742": { Filters: filter.Filters{ "IAMRole": { @@ -168,27 +159,28 @@ func TestResolveDeprecations(t *testing.T) { } err := config.ResolveDeprecations() - if err != nil { - t.Fatal(err) - } - if !reflect.DeepEqual(config.Accounts, expect) { - t.Errorf("Read struct mismatches:") - t.Errorf(" Got: %#v", config.Accounts) - t.Errorf(" Expected: %#v", expect) - } + assert.NoError(t, err) - invalidConfig := Nuke{ - AccountBlocklist: []string{"1234567890"}, - Regions: []string{"eu-west-1"}, - Accounts: map[string]Account{ - "555133742": { - Filters: filter.Filters{ - "IamUserAccessKeys": { - filter.NewExactFilter("X")}, - "IAMUserAccessKey": { - filter.NewExactFilter("Y")}, + assert.Equal(t, expect, config.Accounts) + + invalidConfig := Config{ + Config: &libconfig.Config{ + Blocklist: []string{"1234567890"}, + Regions: []string{"eu-west-1"}, + Accounts: map[string]*libconfig.Account{ + "555133742": { + Filters: filter.Filters{ + "IamUserAccessKeys": { + filter.NewExactFilter("X")}, + "IAMUserAccessKey": { + filter.NewExactFilter("Y")}, + }, }, }, + Deprecations: map[string]string{ + "IamUserAccessKeys": "IAMUserAccessKey", + }, + Log: entry, }, } @@ -199,7 +191,9 @@ func TestResolveDeprecations(t *testing.T) { } func TestConfigValidation(t *testing.T) { - config, err := Load("testdata/example.yaml") + config, err := New(libconfig.Options{ + Path: "testdata/example.yaml", + }) if err != nil { t.Fatal(err) } @@ -232,7 +226,9 @@ func TestConfigValidation(t *testing.T) { } func TestDeprecatedConfigKeys(t *testing.T) { - config, err := Load("testdata/deprecated-keys-config.yaml") + config, err := New(libconfig.Options{ + Path: "testdata/deprecated-keys-config.yaml", + }) if err != nil { t.Fatal(err) } @@ -243,7 +239,9 @@ func TestDeprecatedConfigKeys(t *testing.T) { } func TestFilterMerge(t *testing.T) { - config, err := Load("testdata/example.yaml") + config, err := New(libconfig.Options{ + Path: "testdata/example.yaml", + }) if err != nil { t.Fatal(err) } @@ -281,7 +279,9 @@ func TestFilterMerge(t *testing.T) { } func TestGetCustomRegion(t *testing.T) { - config, err := Load("testdata/example.yaml") + config, err := New(libconfig.Options{ + Path: "testdata/example.yaml", + }) if err != nil { t.Fatal(err) } @@ -305,3 +305,41 @@ func TestGetCustomRegion(t *testing.T) { } }) } + +func TestConfig_DeprecatedFeatureFlags(t *testing.T) { + logrus.AddHook(&TestGlobalHook{ + t: t, + tf: func(t *testing.T, e *logrus.Entry) { + if strings.HasSuffix(e.Caller.File, "pkg/config/config.go") { + return + } + + if e.Caller.Line == 235 { + assert.Equal(t, "deprecated configuration key 'feature-flags' - please use 'settings' instead", e.Message) + } + }, + }) + defer logrus.StandardLogger().ReplaceHooks(make(logrus.LevelHooks)) + + opts := libconfig.Options{ + Path: "testdata/deprecated-feature-flags.yaml", + } + + c, err := New(opts) + + assert.NoError(t, err) + assert.NotNil(t, c) + + ec2InstanceSettings := c.Settings.Get("EC2Instance") + assert.NotNil(t, ec2InstanceSettings) + assert.Equal(t, true, ec2InstanceSettings.Get("DisableDeletionProtection")) + assert.Equal(t, true, ec2InstanceSettings.Get("DisableStopProtection")) + + rdsInstanceSettings := c.Settings.Get("RDSInstance") + assert.NotNil(t, rdsInstanceSettings) + assert.Equal(t, true, rdsInstanceSettings.Get("DisableDeletionProtection")) + + cloudformationStackSettings := c.Settings.Get("CloudformationStack") + assert.NotNil(t, cloudformationStackSettings) + assert.Equal(t, true, cloudformationStackSettings.Get("DisableDeletionProtection")) +} diff --git a/pkg/config/testdata/deprecated-feature-flags.yaml b/pkg/config/testdata/deprecated-feature-flags.yaml new file mode 100644 index 00000000..a8cf29ec --- /dev/null +++ b/pkg/config/testdata/deprecated-feature-flags.yaml @@ -0,0 +1,6 @@ +feature-flags: + disable-ec2-instance-stop-protection: true + disable-deletion-protection: + RDSInstance: true + EC2Instance: true + CloudformationStack: true \ No newline at end of file diff --git a/pkg/config/testsuite_test.go b/pkg/config/testsuite_test.go new file mode 100644 index 00000000..83979ca3 --- /dev/null +++ b/pkg/config/testsuite_test.go @@ -0,0 +1,24 @@ +package config + +import ( + "testing" + + "github.com/sirupsen/logrus" +) + +type TestGlobalHook struct { + t *testing.T + tf func(t *testing.T, e *logrus.Entry) +} + +func (h *TestGlobalHook) Levels() []logrus.Level { + return logrus.AllLevels +} + +func (h *TestGlobalHook) Fire(e *logrus.Entry) error { + if h.tf != nil { + h.tf(h.t, e) + } + + return nil +} diff --git a/pkg/nuke/cloudcontrol.go b/pkg/nuke/cloudcontrol.go deleted file mode 100644 index 6d953339..00000000 --- a/pkg/nuke/cloudcontrol.go +++ /dev/null @@ -1,23 +0,0 @@ -package nuke - -import ( - "fmt" - "github.com/ekristen/libnuke/pkg/resource" -) - -var cloudControlMapping = map[string]string{} - -func GetCloudControlMapping() map[string]string { - return cloudControlMapping -} - -func MapCloudControl(typeName string) resource.RegisterOption { - return func(name string, lister resource.Lister) { - _, exists := cloudControlMapping[typeName] - if exists { - panic(fmt.Sprintf("a cloud control mapping for %s already exists", typeName)) - } - - cloudControlMapping[typeName] = name - } -} diff --git a/pkg/nuke/nuke.go b/pkg/nuke/nuke.go deleted file mode 100644 index ad3498f4..00000000 --- a/pkg/nuke/nuke.go +++ /dev/null @@ -1,69 +0,0 @@ -package nuke - -import ( - "fmt" - "github.com/ekristen/aws-nuke/pkg/awsutil" - "github.com/ekristen/aws-nuke/pkg/config" - "github.com/ekristen/libnuke/pkg/featureflag" - "github.com/ekristen/libnuke/pkg/filter" - sdknuke "github.com/ekristen/libnuke/pkg/nuke" - "github.com/ekristen/libnuke/pkg/utils" - "github.com/sirupsen/logrus" - "time" -) - -type Parameters struct { - sdknuke.Parameters - - Targets []string - Excludes []string - CloudControl []string -} - -type Nuke struct { - *sdknuke.Nuke - Parameters Parameters - Config *config.Nuke - Account awsutil.Account -} - -func (n *Nuke) Prompt() error { - forceSleep := time.Duration(n.Parameters.ForceSleep) * time.Second - - fmt.Printf("Do you really want to nuke the account with "+ - "the ID %s and the alias '%s'?\n", n.Account.ID(), n.Account.Alias()) - if n.Parameters.Force { - fmt.Printf("Waiting %v before continuing.\n", forceSleep) - time.Sleep(forceSleep) - } else { - fmt.Printf("Do you want to continue? Enter account alias to continue.\n") - if err := utils.Prompt(n.Account.Alias()); err != nil { - return err - } - } - - return nil -} - -func New(params Parameters, config *config.Nuke, filters filter.Filters, account awsutil.Account) *Nuke { - n := Nuke{ - Nuke: sdknuke.New(params.Parameters, filters), - Parameters: params, - Config: config, - Account: account, - } - - n.SetLogger(logrus.WithField("component", "nuke")) - - defaultValue := featureflag.Bool(false) - - n.RegisterFeatureFlags("DisableEC2InstanceStopProtection", defaultValue, featureflag.Bool(config.FeatureFlags.DisableEC2InstanceStopProtection)) - n.RegisterFeatureFlags("ForceDeleteLightsailAddOns", defaultValue, featureflag.Bool(config.FeatureFlags.ForceDeleteLightsailAddOns)) - n.RegisterFeatureFlags("DisableDeletionProtection_RDSInstance", defaultValue, featureflag.Bool(config.FeatureFlags.DisableDeletionProtection.RDSInstance)) - n.RegisterFeatureFlags("DisableDeletionProtection_EC2Instance", defaultValue, featureflag.Bool(config.FeatureFlags.DisableDeletionProtection.EC2Instance)) - n.RegisterFeatureFlags("DisableDeletionProtection_ELBv2", defaultValue, featureflag.Bool(config.FeatureFlags.DisableDeletionProtection.ELBv2)) - n.RegisterFeatureFlags("DisableDeletionProtection_CloudformationStack", defaultValue, featureflag.Bool(config.FeatureFlags.DisableDeletionProtection.CloudformationStack)) - n.RegisterFeatureFlags("DisableDeletionProtection_QLDBLedger", defaultValue, featureflag.Bool(config.FeatureFlags.DisableDeletionProtection.QLDBLedger)) - - return &n -} diff --git a/pkg/nuke/prompt.go b/pkg/nuke/prompt.go new file mode 100644 index 00000000..e64abed2 --- /dev/null +++ b/pkg/nuke/prompt.go @@ -0,0 +1,37 @@ +package nuke + +import ( + "fmt" + "time" + + libnuke "github.com/ekristen/libnuke/pkg/nuke" + "github.com/ekristen/libnuke/pkg/utils" + + "github.com/ekristen/aws-nuke/pkg/awsutil" +) + +// Prompt struct provides a way to provide a custom prompt to the libnuke library this allows +// custom data to be available to the Prompt func when it's executed by the libnuke library +type Prompt struct { + Parameters *libnuke.Parameters + Account *awsutil.Account +} + +// Prompt is the actual function called by the libnuke process during it's run +func (p *Prompt) Prompt() error { + forceSleep := time.Duration(p.Parameters.ForceSleep) * time.Second + + fmt.Printf("Do you really want to nuke the account with "+ + "the ID %s and the alias '%s'?\n", p.Account.ID(), p.Account.Alias()) + if p.Parameters.Force { + fmt.Printf("Waiting %v before continuing.\n", forceSleep) + time.Sleep(forceSleep) + } else { + fmt.Printf("Do you want to continue? Enter account alias to continue.\n") + if err := utils.Prompt(p.Account.Alias()); err != nil { + return err + } + } + + return nil +} diff --git a/pkg/nuke/region.go b/pkg/nuke/region.go index cd4fc20d..730ad6aa 100644 --- a/pkg/nuke/region.go +++ b/pkg/nuke/region.go @@ -2,10 +2,11 @@ package nuke import ( "fmt" - sdkerrors "github.com/ekristen/libnuke/pkg/errors" "sync" "github.com/aws/aws-sdk-go/aws/session" + + liberrors "github.com/ekristen/libnuke/pkg/errors" ) // SessionFactory support for custom endpoints @@ -14,6 +15,7 @@ type SessionFactory func(regionName, svcType string) (*session.Session, error) // ResourceTypeResolver returns the service type from the resourceType type ResourceTypeResolver func(regionName, resourceType string) string +// Region is an AWS Region with an attached SessionFactory type Region struct { Name string NewSession SessionFactory @@ -23,6 +25,7 @@ type Region struct { lock *sync.RWMutex } +// NewRegion creates a new Region and returns it. func NewRegion(name string, typeResolver ResourceTypeResolver, sessionFactory SessionFactory) *Region { return &Region{ Name: name, @@ -33,10 +36,11 @@ func NewRegion(name string, typeResolver ResourceTypeResolver, sessionFactory Se } } +// Session returns a session for a given resource type for the region it's associated to. func (region *Region) Session(resourceType string) (*session.Session, error) { svcType := region.ResTypeResolver(region.Name, resourceType) if svcType == "" { - return nil, sdkerrors.ErrSkipRequest(fmt.Sprintf( + return nil, liberrors.ErrSkipRequest(fmt.Sprintf( "No service available in region '%s' to handle '%s'", region.Name, resourceType)) } diff --git a/pkg/nuke/resource.go b/pkg/nuke/resource.go index e55bbfbf..4a417b7e 100644 --- a/pkg/nuke/resource.go +++ b/pkg/nuke/resource.go @@ -2,26 +2,32 @@ package nuke import ( "github.com/aws/aws-sdk-go/aws/session" + "github.com/ekristen/libnuke/pkg/resource" ) -const ( - Account resource.Scope = "account" -) +// Account is the resource scope that all resources in AWS Nuke are registered against. +const Account resource.Scope = "account" +// ListerOpts are the options for the Lister functions of each individual resource. It is passed in as an interface{} +// so that each implementing tool can define their own options for the lister. Each resource then asserts the type on +// the interface{} to get the options it needs. type ListerOpts struct { Region *Region Session *session.Session } -func (o ListerOpts) ID() string { - return "" -} +// MutateOpts is a function that will be called for each resource type to mutate the options for the scanner based on +// whatever criteria you want. However, in this case for the aws-nuke tool, it's mutating the opts to create the proper +// session for the proper region for the resourceType. For example IAM only happens in the global region, not us-east-2. +var MutateOpts = func(opts interface{}, resourceType string) interface{} { + o := opts.(*ListerOpts) -type Lister struct { - opts ListerOpts -} + session, err := o.Region.Session(resourceType) + if err != nil { + panic(err) + } -func (l *Lister) SetOptions(opts interface{}) { - l.opts = opts.(ListerOpts) + o.Session = session + return o } diff --git a/pkg/nuke/utils.go b/pkg/nuke/utils.go deleted file mode 100644 index a27253b8..00000000 --- a/pkg/nuke/utils.go +++ /dev/null @@ -1,35 +0,0 @@ -package nuke - -import ( - "github.com/ekristen/libnuke/pkg/types" -) - -func ResolveResourceTypes( - base types.Collection, - mapping map[string]string, - include, exclude, cloudControl []types.Collection) types.Collection { - for _, cl := range cloudControl { - oldStyle := types.Collection{} - for _, c := range cl { - os, found := mapping[c] - if found { - oldStyle = append(oldStyle, os) - } - } - - base = base.Union(cl) - base = base.Remove(oldStyle) - } - - for _, i := range include { - if len(i) > 0 { - base = base.Intersect(i) - } - } - - for _, e := range exclude { - base = base.Remove(e) - } - - return base -} diff --git a/resources/accessanalyzer-analyzers.go b/resources/accessanalyzer-analyzers.go index 9162cb24..3af0d669 100644 --- a/resources/accessanalyzer-analyzers.go +++ b/resources/accessanalyzer-analyzers.go @@ -23,11 +23,12 @@ type AccessAnalyzer struct { } func init() { - resource.Register(resource.Registration{ - Name: AccessAnalyzerResource, - Scope: nuke.Account, - Lister: &AccessAnalyzerLister{}, - }, nuke.MapCloudControl("AWS::AccessAnalyzer::Analyzer")) + resource.Register(&resource.Registration{ + Name: AccessAnalyzerResource, + Scope: nuke.Account, + Lister: &AccessAnalyzerLister{}, + AlternativeResource: "AWS::AccessAnalyzer::Analyzer", + }) } type AccessAnalyzerLister struct{} diff --git a/resources/accessanalyzer-archiverules.go b/resources/accessanalyzer-archiverules.go index 4a86f253..260a9e05 100644 --- a/resources/accessanalyzer-archiverules.go +++ b/resources/accessanalyzer-archiverules.go @@ -14,7 +14,7 @@ import ( const AccessAnalyzerArchiveRuleResource = "ArchiveRule" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: AccessAnalyzerArchiveRuleResource, Scope: nuke.Account, Lister: &AccessAnalyzerArchiveRuleLister{}, diff --git a/resources/acm-certificates.go b/resources/acm-certificates.go index 0ee0da17..0c966192 100644 --- a/resources/acm-certificates.go +++ b/resources/acm-certificates.go @@ -15,7 +15,7 @@ import ( const ACMCertificateResource = "ACMCertificate" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ACMCertificateResource, Scope: nuke.Account, Lister: &ACMCertificateLister{}, diff --git a/resources/acmpca-certificateauthorities.go b/resources/acmpca-certificateauthorities.go index 1a2ab25f..f1b0144b 100644 --- a/resources/acmpca-certificateauthorities.go +++ b/resources/acmpca-certificateauthorities.go @@ -17,11 +17,12 @@ import ( const ACMPCACertificateAuthorityResource = "ACMPCACertificateAuthority" func init() { - resource.Register(resource.Registration{ - Name: ACMPCACertificateAuthorityResource, - Scope: nuke.Account, - Lister: &ACMPCACertificateAuthorityLister{}, - }, nuke.MapCloudControl("AWS::ACMPCA::CertificateAuthority")) + resource.Register(&resource.Registration{ + Name: ACMPCACertificateAuthorityResource, + Scope: nuke.Account, + Lister: &ACMPCACertificateAuthorityLister{}, + AlternativeResource: "AWS::ACMPCA::CertificateAuthority", + }) } type ACMPCACertificateAuthorityLister struct{} diff --git a/resources/acmpca-certificateauthoritystates.go b/resources/acmpca-certificateauthoritystates.go index 850494b2..209dcc4c 100644 --- a/resources/acmpca-certificateauthoritystates.go +++ b/resources/acmpca-certificateauthoritystates.go @@ -17,7 +17,7 @@ import ( const ACMPCACertificateAuthorityStateResource = "ACMPCACertificateAuthorityState" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ACMPCACertificateAuthorityStateResource, Scope: nuke.Account, Lister: &ACMPCACertificateAuthorityStateLister{}, diff --git a/resources/apigateway-apikeys.go b/resources/apigateway-apikeys.go index e3a0dadd..517c0f3b 100644 --- a/resources/apigateway-apikeys.go +++ b/resources/apigateway-apikeys.go @@ -14,11 +14,12 @@ import ( const APIGatewayAPIKeyResource = "APIGatewayAPIKey" func init() { - resource.Register(resource.Registration{ - Name: APIGatewayAPIKeyResource, - Scope: nuke.Account, - Lister: &APIGatewayAPIKeyLister{}, - }, nuke.MapCloudControl("AWS::ApiGateway::ApiKey")) + resource.Register(&resource.Registration{ + Name: APIGatewayAPIKeyResource, + Scope: nuke.Account, + Lister: &APIGatewayAPIKeyLister{}, + AlternativeResource: "AWS::ApiGateway::ApiKey", + }) } type APIGatewayAPIKeyLister struct{} diff --git a/resources/apigateway-clientcertificates.go b/resources/apigateway-clientcertificates.go index 0c1147cc..aae8dabb 100644 --- a/resources/apigateway-clientcertificates.go +++ b/resources/apigateway-clientcertificates.go @@ -14,11 +14,12 @@ import ( const APIGatewayClientCertificateResource = "APIGatewayClientCertificate" func init() { - resource.Register(resource.Registration{ - Name: APIGatewayClientCertificateResource, - Scope: nuke.Account, - Lister: &APIGatewayClientCertificateLister{}, - }, nuke.MapCloudControl("AWS::ApiGateway::ClientCertificate")) + resource.Register(&resource.Registration{ + Name: APIGatewayClientCertificateResource, + Scope: nuke.Account, + Lister: &APIGatewayClientCertificateLister{}, + AlternativeResource: "AWS::ApiGateway::ClientCertificate", + }) } type APIGatewayClientCertificateLister struct{} diff --git a/resources/apigateway-domainnames.go b/resources/apigateway-domainnames.go index a4c87941..25bbd5f3 100644 --- a/resources/apigateway-domainnames.go +++ b/resources/apigateway-domainnames.go @@ -14,7 +14,7 @@ import ( const APIGatewayDomainNameResource = "APIGatewayDomainName" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: APIGatewayDomainNameResource, Scope: nuke.Account, Lister: &APIGatewayDomainNameLister{}, diff --git a/resources/apigateway-restapis.go b/resources/apigateway-restapis.go index 7bff13c3..b630335f 100644 --- a/resources/apigateway-restapis.go +++ b/resources/apigateway-restapis.go @@ -15,7 +15,7 @@ import ( const APIGatewayRestAPIResource = "APIGatewayRestAPI" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: APIGatewayRestAPIResource, Scope: nuke.Account, Lister: &APIGatewayRestAPILister{}, diff --git a/resources/apigateway-usageplans.go b/resources/apigateway-usageplans.go index 18ae5c7d..c55ab839 100644 --- a/resources/apigateway-usageplans.go +++ b/resources/apigateway-usageplans.go @@ -15,11 +15,12 @@ import ( const APIGatewayUsagePlanResource = "APIGatewayUsagePlan" func init() { - resource.Register(resource.Registration{ - Name: APIGatewayUsagePlanResource, - Scope: nuke.Account, - Lister: &APIGatewayUsagePlanLister{}, - }, nuke.MapCloudControl("AWS::ApiGateway::UsagePlan")) + resource.Register(&resource.Registration{ + Name: APIGatewayUsagePlanResource, + Scope: nuke.Account, + Lister: &APIGatewayUsagePlanLister{}, + AlternativeResource: "AWS::ApiGateway::UsagePlan", + }) } type APIGatewayUsagePlanLister struct{} diff --git a/resources/apigateway-vpclinks.go b/resources/apigateway-vpclinks.go index edee61b9..0c1248df 100644 --- a/resources/apigateway-vpclinks.go +++ b/resources/apigateway-vpclinks.go @@ -13,7 +13,7 @@ import ( const APIGatewayVpcLinkResource = "APIGatewayVpcLink" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: APIGatewayVpcLinkResource, Scope: nuke.Account, Lister: &APIGatewayVpcLinkLister{}, diff --git a/resources/apigatewayv2-apis.go b/resources/apigatewayv2-apis.go index 09fd450d..b76e8c82 100644 --- a/resources/apigatewayv2-apis.go +++ b/resources/apigatewayv2-apis.go @@ -15,7 +15,7 @@ import ( const APIGatewayV2APIResource = "APIGatewayV2API" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: APIGatewayV2APIResource, Scope: nuke.Account, Lister: &APIGatewayV2APILister{}, diff --git a/resources/apigatewayv2-vpc-links.go b/resources/apigatewayv2-vpc-links.go index 18b4da3a..3d71fb04 100644 --- a/resources/apigatewayv2-vpc-links.go +++ b/resources/apigatewayv2-vpc-links.go @@ -15,7 +15,7 @@ import ( const APIGatewayV2VpcLinkResource = "APIGatewayV2VpcLink" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: APIGatewayV2VpcLinkResource, Scope: nuke.Account, Lister: &APIGatewayV2VpcLinkLister{}, diff --git a/resources/applicationautoscaling-scalable-targets.go b/resources/applicationautoscaling-scalable-targets.go index 39d33a3a..016e498b 100644 --- a/resources/applicationautoscaling-scalable-targets.go +++ b/resources/applicationautoscaling-scalable-targets.go @@ -14,7 +14,7 @@ import ( const ApplicationAutoScalingScalableTargetResource = "ApplicationAutoScalingScalableTarget" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ApplicationAutoScalingScalableTargetResource, Scope: nuke.Account, Lister: &ApplicationAutoScalingScalableTargetLister{}, diff --git a/resources/appmesh-gatewayroute.go b/resources/appmesh-gatewayroute.go index ba7df7df..d42fa1f0 100644 --- a/resources/appmesh-gatewayroute.go +++ b/resources/appmesh-gatewayroute.go @@ -14,7 +14,7 @@ import ( const AppMeshGatewayRouteResource = "AppMeshGatewayRoute" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: AppMeshGatewayRouteResource, Scope: nuke.Account, Lister: &AppMeshGatewayRouteLister{}, diff --git a/resources/appmesh-mesh.go b/resources/appmesh-mesh.go index d7130e5d..31dca2e2 100644 --- a/resources/appmesh-mesh.go +++ b/resources/appmesh-mesh.go @@ -15,7 +15,7 @@ import ( const AppMeshMeshResource = "AppMeshMesh" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: AppMeshMeshResource, Scope: nuke.Account, Lister: &AppMeshMeshLister{}, diff --git a/resources/appmesh-route.go b/resources/appmesh-route.go index 467e22f5..73b15394 100644 --- a/resources/appmesh-route.go +++ b/resources/appmesh-route.go @@ -14,7 +14,7 @@ import ( const AppMeshRouteResource = "AppMeshRoute" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: AppMeshRouteResource, Scope: nuke.Account, Lister: &AppMeshRouteLister{}, diff --git a/resources/appmesh-virtualgateway.go b/resources/appmesh-virtualgateway.go index acbca280..9f70e142 100644 --- a/resources/appmesh-virtualgateway.go +++ b/resources/appmesh-virtualgateway.go @@ -14,7 +14,7 @@ import ( const AppMeshVirtualGatewayResource = "AppMeshVirtualGateway" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: AppMeshVirtualGatewayResource, Scope: nuke.Account, Lister: &AppMeshVirtualGatewayLister{}, diff --git a/resources/appmesh-virtualnode.go b/resources/appmesh-virtualnode.go index a33af143..295e83c7 100644 --- a/resources/appmesh-virtualnode.go +++ b/resources/appmesh-virtualnode.go @@ -14,7 +14,7 @@ import ( const AppMeshVirtualNodeResource = "AppMeshVirtualNode" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: AppMeshVirtualNodeResource, Scope: nuke.Account, Lister: &AppMeshVirtualNodeLister{}, diff --git a/resources/appmesh-virtualrouter.go b/resources/appmesh-virtualrouter.go index e2e5d0a4..02efd9c3 100644 --- a/resources/appmesh-virtualrouter.go +++ b/resources/appmesh-virtualrouter.go @@ -20,7 +20,7 @@ type AppMeshVirtualRouter struct { const AppMeshVirtualRouterResource = "AppMeshVirtualRouter" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: AppMeshVirtualRouterResource, Scope: nuke.Account, Lister: &AppMeshVirtualRouterLister{}, diff --git a/resources/appmesh-virtualservice.go b/resources/appmesh-virtualservice.go index 5bebe847..f201de9f 100644 --- a/resources/appmesh-virtualservice.go +++ b/resources/appmesh-virtualservice.go @@ -20,7 +20,7 @@ type AppMeshVirtualService struct { const AppMeshVirtualServiceResource = "AppMeshVirtualService" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: AppMeshVirtualServiceResource, Scope: nuke.Account, Lister: &AppMeshVirtualServiceLister{}, diff --git a/resources/appstream-directoryconfigs.go b/resources/appstream-directoryconfigs.go index a860cbb0..5fd8d5f2 100644 --- a/resources/appstream-directoryconfigs.go +++ b/resources/appstream-directoryconfigs.go @@ -19,7 +19,7 @@ type AppStreamDirectoryConfig struct { const AppStreamDirectoryConfigResource = "AppStreamDirectoryConfig" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: AppStreamDirectoryConfigResource, Scope: nuke.Account, Lister: &AppStreamDirectoryConfigLister{}, diff --git a/resources/appstream-fleets.go b/resources/appstream-fleets.go index 0b65de93..5c12c216 100644 --- a/resources/appstream-fleets.go +++ b/resources/appstream-fleets.go @@ -17,7 +17,7 @@ type AppStreamFleet struct { const AppStreamFleetResource = "AppStreamFleet" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: AppStreamFleetResource, Scope: nuke.Account, Lister: &AppStreamFleetLister{}, diff --git a/resources/appstream-fleetstates.go b/resources/appstream-fleetstates.go index 48324fba..8568515c 100644 --- a/resources/appstream-fleetstates.go +++ b/resources/appstream-fleetstates.go @@ -21,7 +21,7 @@ type AppStreamFleetState struct { const AppStreamFleetStateResource = "AppStreamFleetState" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: AppStreamFleetStateResource, Scope: nuke.Account, Lister: &AppStreamFleetStateLister{}, diff --git a/resources/appstream-imagebuilders.go b/resources/appstream-imagebuilders.go index 1c3e7b64..6654850a 100644 --- a/resources/appstream-imagebuilders.go +++ b/resources/appstream-imagebuilders.go @@ -19,7 +19,7 @@ type AppStreamImageBuilder struct { const AppStreamImageBuilderResource = "AppStreamImageBuilder" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: AppStreamImageBuilderResource, Scope: nuke.Account, Lister: &AppStreamImageBuilderLister{}, diff --git a/resources/appstream-imagebuilderwaiters.go b/resources/appstream-imagebuilderwaiters.go index bd97f670..6d8832d9 100644 --- a/resources/appstream-imagebuilderwaiters.go +++ b/resources/appstream-imagebuilderwaiters.go @@ -22,7 +22,7 @@ type AppStreamImageBuilderWaiter struct { const AppStreamImageBuilderWaiterResource = "AppStreamImageBuilderWaiter" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: AppStreamImageBuilderWaiterResource, Scope: nuke.Account, Lister: &AppStreamImageBuilderWaiterLister{}, diff --git a/resources/appstream-images.go b/resources/appstream-images.go index 914ad192..c4274d3c 100644 --- a/resources/appstream-images.go +++ b/resources/appstream-images.go @@ -22,7 +22,7 @@ type AppStreamImage struct { const AppStreamImageResource = "AppStreamImage" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: AppStreamImageResource, Scope: nuke.Account, Lister: &AppStreamImageLister{}, diff --git a/resources/appstream-stack-fleet-attachments.go b/resources/appstream-stack-fleet-attachments.go index a5d1eadb..040bca5a 100644 --- a/resources/appstream-stack-fleet-attachments.go +++ b/resources/appstream-stack-fleet-attachments.go @@ -21,7 +21,7 @@ type AppStreamStackFleetAttachment struct { const AppStreamStackFleetAttachmentResource = "AppStreamStackFleetAttachment" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: AppStreamStackFleetAttachmentResource, Scope: nuke.Account, Lister: &AppStreamStackFleetAttachmentLister{}, diff --git a/resources/appstream-stacks.go b/resources/appstream-stacks.go index 39cd0098..f5a34398 100644 --- a/resources/appstream-stacks.go +++ b/resources/appstream-stacks.go @@ -17,7 +17,7 @@ type AppStreamStack struct { const AppStreamStackResource = "AppStreamStack" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: AppStreamStackResource, Scope: nuke.Account, Lister: &AppStreamStackLister{}, diff --git a/resources/appsync-graphqlapis.go b/resources/appsync-graphqlapis.go index 967d1236..d381db82 100644 --- a/resources/appsync-graphqlapis.go +++ b/resources/appsync-graphqlapis.go @@ -15,7 +15,7 @@ import ( const AppSyncGraphqlAPIResource = "AppSyncGraphqlAPI" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: AppSyncGraphqlAPIResource, Scope: nuke.Account, Lister: &AppSyncGraphqlAPILister{}, diff --git a/resources/athena-named-queries.go b/resources/athena-named-queries.go index 55f44a62..55ff3185 100644 --- a/resources/athena-named-queries.go +++ b/resources/athena-named-queries.go @@ -14,7 +14,7 @@ import ( const AthenaNamedQueryResource = "AthenaNamedQuery" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: AthenaNamedQueryResource, Scope: nuke.Account, Lister: &AthenaNamedQueryLister{}, diff --git a/resources/athena-work-groups.go b/resources/athena-work-groups.go index 6bb43bfe..62fcc58e 100644 --- a/resources/athena-work-groups.go +++ b/resources/athena-work-groups.go @@ -21,7 +21,7 @@ import ( const AthenaWorkGroupResource = "AthenaWorkGroup" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: AthenaWorkGroupResource, Scope: nuke.Account, Lister: &AthenaWorkGroupLister{}, diff --git a/resources/autoscaling-groups.go b/resources/autoscaling-groups.go index 264c767b..e0083ac1 100644 --- a/resources/autoscaling-groups.go +++ b/resources/autoscaling-groups.go @@ -15,7 +15,7 @@ import ( const AutoScalingGroupResource = "AutoScalingGroup" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: AutoScalingGroupResource, Scope: nuke.Account, Lister: &AutoScalingGroupLister{}, diff --git a/resources/autoscaling-launch-configurations.go b/resources/autoscaling-launch-configurations.go index 2790857a..10b265f0 100644 --- a/resources/autoscaling-launch-configurations.go +++ b/resources/autoscaling-launch-configurations.go @@ -15,7 +15,7 @@ import ( const LaunchConfigurationResource = "LaunchConfiguration" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: LaunchConfigurationResource, Scope: nuke.Account, Lister: &LaunchConfigurationLister{}, diff --git a/resources/autoscaling-lifecycle-hooks.go b/resources/autoscaling-lifecycle-hooks.go index c056d4a9..e421bb33 100644 --- a/resources/autoscaling-lifecycle-hooks.go +++ b/resources/autoscaling-lifecycle-hooks.go @@ -15,7 +15,7 @@ import ( const LifecycleHookResource = "LifecycleHook" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: LifecycleHookResource, Scope: nuke.Account, Lister: &LifecycleHookLister{}, diff --git a/resources/autoscalingplans-scalingplans.go b/resources/autoscalingplans-scalingplans.go index f354ba01..19413c89 100644 --- a/resources/autoscalingplans-scalingplans.go +++ b/resources/autoscalingplans-scalingplans.go @@ -14,7 +14,7 @@ import ( const AutoScalingPlansScalingPlanResource = "AutoScalingPlansScalingPlan" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: AutoScalingPlansScalingPlanResource, Scope: nuke.Account, Lister: &AutoScalingPlansScalingPlanLister{}, diff --git a/resources/backup-plans.go b/resources/backup-plans.go index 8985a97c..3ea5a31c 100644 --- a/resources/backup-plans.go +++ b/resources/backup-plans.go @@ -25,7 +25,7 @@ type BackupPlan struct { const AWSBackupPlanResource = "AWSBackupPlan" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: AWSBackupPlanResource, Scope: nuke.Account, Lister: &AWSBackupPlanLister{}, diff --git a/resources/backup-recovery-points.go b/resources/backup-recovery-points.go index c3f0f266..86e5d9e2 100644 --- a/resources/backup-recovery-points.go +++ b/resources/backup-recovery-points.go @@ -22,7 +22,7 @@ type BackupRecoveryPoint struct { const AWSBackupRecoveryPointResource = "AWSBackupRecoveryPoint" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: AWSBackupRecoveryPointResource, Scope: nuke.Account, Lister: &AWSBackupRecoveryPointLister{}, diff --git a/resources/backup-selections.go b/resources/backup-selections.go index eb8ddb83..122749af 100644 --- a/resources/backup-selections.go +++ b/resources/backup-selections.go @@ -24,7 +24,7 @@ type BackupSelection struct { const AWSBackupSelectionResource = "AWSBackupSelection" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: AWSBackupSelectionResource, Scope: nuke.Account, Lister: &AWSBackupSelectionLister{}, diff --git a/resources/backup-vaults-access-policies.go b/resources/backup-vaults-access-policies.go index 51d499b3..f9925283 100644 --- a/resources/backup-vaults-access-policies.go +++ b/resources/backup-vaults-access-policies.go @@ -17,7 +17,7 @@ type BackupVaultAccessPolicy struct { const AWSBackupVaultAccessPolicyResource = "AWSBackupVaultAccessPolicy" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: AWSBackupVaultAccessPolicyResource, Scope: nuke.Account, Lister: &AWSBackupVaultAccessPolicyLister{}, diff --git a/resources/backup-vaults.go b/resources/backup-vaults.go index 21a006b9..65d7e03b 100644 --- a/resources/backup-vaults.go +++ b/resources/backup-vaults.go @@ -23,7 +23,7 @@ type BackupVault struct { const AWSBackupVaultResource = "AWSBackupVault" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: AWSBackupVaultResource, Scope: nuke.Account, Lister: &AWSBackupVaultLister{}, diff --git a/resources/batch-compute-environment-states.go b/resources/batch-compute-environment-states.go index d1c0f0f4..8c7e7927 100644 --- a/resources/batch-compute-environment-states.go +++ b/resources/batch-compute-environment-states.go @@ -17,7 +17,7 @@ import ( const BatchComputeEnvironmentStateResource = "BatchComputeEnvironmentState" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: BatchComputeEnvironmentStateResource, Scope: nuke.Account, Lister: &BatchComputeEnvironmentStateLister{}, diff --git a/resources/batch-compute-environments.go b/resources/batch-compute-environments.go index 1ca3c99d..1f0f1227 100644 --- a/resources/batch-compute-environments.go +++ b/resources/batch-compute-environments.go @@ -14,7 +14,7 @@ import ( const BatchComputeEnvironmentResource = "BatchComputeEnvironment" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: BatchComputeEnvironmentResource, Scope: nuke.Account, Lister: &BatchComputeEnvironmentLister{}, diff --git a/resources/batch-job-queue-states.go b/resources/batch-job-queue-states.go index 890e607d..947e8baf 100644 --- a/resources/batch-job-queue-states.go +++ b/resources/batch-job-queue-states.go @@ -23,7 +23,7 @@ type BatchJobQueueState struct { const BatchJobQueueStateResource = "BatchJobQueueState" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: BatchJobQueueStateResource, Scope: nuke.Account, Lister: &BatchJobQueueStateLister{}, diff --git a/resources/batch-job-queues.go b/resources/batch-job-queues.go index 3339dea7..e17f58fc 100644 --- a/resources/batch-job-queues.go +++ b/resources/batch-job-queues.go @@ -14,7 +14,7 @@ import ( const BatchJobQueueResource = "BatchJobQueue" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: BatchJobQueueResource, Scope: nuke.Account, Lister: &BatchJobQueueLister{}, diff --git a/resources/billing-costandusagereports.go b/resources/billing-costandusagereports.go index e0843123..2eee591e 100644 --- a/resources/billing-costandusagereports.go +++ b/resources/billing-costandusagereports.go @@ -15,7 +15,7 @@ import ( const BillingCostandUsageReportResource = "BillingCostandUsageReport" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: BillingCostandUsageReportResource, Scope: nuke.Account, Lister: &BillingCostandUsageReportLister{}, diff --git a/resources/budgets.go b/resources/budgets.go index 045a29f1..57799327 100644 --- a/resources/budgets.go +++ b/resources/budgets.go @@ -17,7 +17,7 @@ import ( const BudgetResource = "Budget" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: BudgetResource, Scope: nuke.Account, Lister: &BudgetLister{}, diff --git a/resources/cloud9-environments.go b/resources/cloud9-environments.go index a556a806..9a152dce 100644 --- a/resources/cloud9-environments.go +++ b/resources/cloud9-environments.go @@ -19,7 +19,7 @@ type Cloud9Environment struct { const Cloud9EnvironmentResource = "Cloud9Environment" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: Cloud9EnvironmentResource, Scope: nuke.Account, Lister: &Cloud9EnvironmentLister{}, diff --git a/resources/cloudcontrol.go b/resources/cloudcontrol.go index c9737a76..f4ec6f2e 100644 --- a/resources/cloudcontrol.go +++ b/resources/cloudcontrol.go @@ -53,13 +53,14 @@ func init() { } func registerCloudControl(typeName string) { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: typeName, Scope: nuke.Account, Lister: &CloudControlResourceLister{ TypeName: typeName, }, - }, nuke.MapCloudControl(typeName)) + AlternativeResource: typeName, + }) } type CloudControlResourceLister struct { diff --git a/resources/clouddirectory-directories.go b/resources/clouddirectory-directories.go index 770597eb..4c4b3572 100644 --- a/resources/clouddirectory-directories.go +++ b/resources/clouddirectory-directories.go @@ -14,7 +14,7 @@ import ( const CloudDirectoryDirectoryResource = "CloudDirectoryDirectory" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: CloudDirectoryDirectoryResource, Scope: nuke.Account, Lister: &CloudDirectoryDirectoryLister{}, diff --git a/resources/clouddirectory-schemas.go b/resources/clouddirectory-schemas.go index 72e41ade..a6aa4f49 100644 --- a/resources/clouddirectory-schemas.go +++ b/resources/clouddirectory-schemas.go @@ -14,7 +14,7 @@ import ( const CloudDirectorySchemaResource = "CloudDirectorySchema" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: CloudDirectorySchemaResource, Scope: nuke.Account, Lister: &CloudDirectorySchemaLister{}, diff --git a/resources/cloudformation-stack.go b/resources/cloudformation-stack.go index f2cee74f..7d8c7555 100644 --- a/resources/cloudformation-stack.go +++ b/resources/cloudformation-stack.go @@ -2,6 +2,7 @@ package resources import ( "context" + "github.com/ekristen/libnuke/pkg/settings" "errors" "strings" @@ -15,7 +16,6 @@ import ( "github.com/aws/aws-sdk-go/service/cloudformation/cloudformationiface" liberrors "github.com/ekristen/libnuke/pkg/errors" - "github.com/ekristen/libnuke/pkg/featureflag" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -27,7 +27,7 @@ const CloudformationMaxDeleteAttempt = 3 const CloudFormationStackResource = "CloudFormationStack" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: CloudFormationStackResource, Scope: nuke.Account, Lister: &CloudFormationStackLister{}, @@ -71,11 +71,11 @@ type CloudFormationStack struct { svc cloudformationiface.CloudFormationAPI stack *cloudformation.Stack maxDeleteAttempts int - featureFlags *featureflag.FeatureFlags + settings *settings.Setting } -func (cfs *CloudFormationStack) FeatureFlags(ff *featureflag.FeatureFlags) { - cfs.featureFlags = ff +func (cfs *CloudFormationStack) Settings(setting *settings.Setting) { + cfs.settings = setting } func (cfs *CloudFormationStack) Remove(_ context.Context) error { @@ -83,11 +83,6 @@ func (cfs *CloudFormationStack) Remove(_ context.Context) error { } func (cfs *CloudFormationStack) removeWithAttempts(attempt int) error { - ffddpCFS, err := cfs.featureFlags.Get("DisableDeletionProtection_CloudformationStack") - if err != nil { - return err - } - if err := cfs.doRemove(); err != nil { // TODO: pass logrus in via ListerOpts so that it can be used here instead of global @@ -98,7 +93,7 @@ func (cfs *CloudFormationStack) removeWithAttempts(attempt int) error { if ok && awsErr.Code() == "ValidationError" && awsErr.Message() == "Stack ["+*cfs.stack.StackName+"] cannot be deleted while TerminationProtection is enabled" { - if ffddpCFS.Enabled() { + if cfs.settings.Get("DisableDeletionProtection").(bool) { logrus.Infof("CloudFormationStack stackName=%s attempt=%d maxAttempts=%d updating termination protection", *cfs.stack.StackName, attempt, cfs.maxDeleteAttempts) _, err = cfs.svc.UpdateTerminationProtection(&cloudformation.UpdateTerminationProtectionInput{ EnableTerminationProtection: aws.Bool(false), diff --git a/resources/cloudformation-stack_test.go b/resources/cloudformation-stack_test.go index 8825c682..54281783 100644 --- a/resources/cloudformation-stack_test.go +++ b/resources/cloudformation-stack_test.go @@ -2,18 +2,16 @@ package resources import ( "context" + "github.com/ekristen/libnuke/pkg/settings" "testing" "github.com/golang/mock/gomock" - "github.com/gotidy/ptr" "github.com/stretchr/testify/assert" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/service/cloudformation" - "github.com/ekristen/libnuke/pkg/featureflag" - "github.com/ekristen/aws-nuke/mocks/mock_cloudformationiface" ) @@ -29,11 +27,11 @@ func TestCloudformationStack_Remove_StackAlreadyDeleted(t *testing.T) { stack: &cloudformation.Stack{ StackName: aws.String("foobar"), }, - featureFlags: &featureflag.FeatureFlags{}, + settings: &settings.Setting{ + "DisableDeletionProtection": true, + }, } - stack.featureFlags.New("DisableDeletionProtection_CloudformationStack", ptr.Bool(true), ptr.Bool(true)) - mockCloudformation.EXPECT().DescribeStacks(gomock.Eq(&cloudformation.DescribeStacksInput{ StackName: aws.String("foobar"), })).Return(&cloudformation.DescribeStacksOutput{ @@ -59,11 +57,12 @@ func TestCloudformationStack_Remove_StackDoesNotExist(t *testing.T) { svc: mockCloudformation, stack: &cloudformation.Stack{ StackName: aws.String("foobar"), - }, featureFlags: &featureflag.FeatureFlags{}, + }, + settings: &settings.Setting{ + "DisableDeletionProtection": true, + }, } - stack.featureFlags.New("DisableDeletionProtection_CloudformationStack", ptr.Bool(true), ptr.Bool(true)) - mockCloudformation.EXPECT().DescribeStacks(gomock.Eq(&cloudformation.DescribeStacksInput{ StackName: aws.String("foobar"), })).Return(nil, awserr.New("ValidationFailed", "Stack with id foobar does not exist", nil)) @@ -84,11 +83,11 @@ func TestCloudformationStack_Remove_DeleteFailed(t *testing.T) { stack: &cloudformation.Stack{ StackName: aws.String("foobar"), }, - featureFlags: &featureflag.FeatureFlags{}, + settings: &settings.Setting{ + "DisableDeletionProtection": true, + }, } - stack.featureFlags.New("DisableDeletionProtection_CloudformationStack", ptr.Bool(true), ptr.Bool(true)) - gomock.InOrder( mockCloudformation.EXPECT().DescribeStacks(gomock.Eq(&cloudformation.DescribeStacksInput{ StackName: aws.String("foobar"), @@ -141,11 +140,11 @@ func TestCloudformationStack_Remove_DeleteInProgress(t *testing.T) { stack: &cloudformation.Stack{ StackName: aws.String("foobar"), }, - featureFlags: &featureflag.FeatureFlags{}, + settings: &settings.Setting{ + "DisableDeletionProtection": true, + }, } - stack.featureFlags.New("DisableDeletionProtection_CloudformationStack", ptr.Bool(true), ptr.Bool(true)) - gomock.InOrder( mockCloudformation.EXPECT().DescribeStacks(gomock.Eq(&cloudformation.DescribeStacksInput{ StackName: aws.String("foobar"), @@ -191,11 +190,11 @@ func TestCloudformationStack_Remove_Stack_InCompletedStatus(t *testing.T) { stack: &cloudformation.Stack{ StackName: aws.String("foobar"), }, - featureFlags: &featureflag.FeatureFlags{}, + settings: &settings.Setting{ + "DisableDeletionProtection": true, + }, } - stack.featureFlags.New("DisableDeletionProtection_CloudformationStack", ptr.Bool(true), ptr.Bool(true)) - gomock.InOrder( mockCloudformation.EXPECT().DescribeStacks(gomock.Eq(&cloudformation.DescribeStacksInput{ StackName: aws.String("foobar"), @@ -241,11 +240,11 @@ func TestCloudformationStack_Remove_Stack_CreateInProgress(t *testing.T) { stack: &cloudformation.Stack{ StackName: aws.String("foobar"), }, - featureFlags: &featureflag.FeatureFlags{}, + settings: &settings.Setting{ + "DisableDeletionProtection": true, + }, } - stack.featureFlags.New("DisableDeletionProtection_CloudformationStack", ptr.Bool(true), ptr.Bool(true)) - gomock.InOrder( mockCloudformation.EXPECT().DescribeStacks(gomock.Eq(&cloudformation.DescribeStacksInput{ StackName: aws.String("foobar"), @@ -296,11 +295,11 @@ func TestCloudformationStack_Remove_Stack_UpdateInProgress(t *testing.T) { stack: &cloudformation.Stack{ StackName: aws.String("foobar"), }, - featureFlags: &featureflag.FeatureFlags{}, + settings: &settings.Setting{ + "DisableDeletionProtection": true, + }, } - stack.featureFlags.New("DisableDeletionProtection_CloudformationStack", ptr.Bool(true), ptr.Bool(true)) - gomock.InOrder( mockCloudformation.EXPECT().DescribeStacks(gomock.Eq(&cloudformation.DescribeStacksInput{ StackName: aws.String("foobar"), diff --git a/resources/cloudformation-stackset.go b/resources/cloudformation-stackset.go index 04f72e30..e6c0fc50 100644 --- a/resources/cloudformation-stackset.go +++ b/resources/cloudformation-stackset.go @@ -21,7 +21,7 @@ import ( const CloudFormationStackSetResource = "CloudFormationStackSet" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: CloudFormationStackSetResource, Scope: nuke.Account, Lister: &CloudFormationStackSetLister{}, diff --git a/resources/cloudformation-type.go b/resources/cloudformation-type.go index 3c349c0f..d701d53d 100644 --- a/resources/cloudformation-type.go +++ b/resources/cloudformation-type.go @@ -19,7 +19,7 @@ import ( const CloudFormationTypeResource = "CloudFormationType" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: CloudFormationTypeResource, Scope: nuke.Account, Lister: &CloudFormationTypeLister{}, diff --git a/resources/cloudfront-distribution-deployments.go b/resources/cloudfront-distribution-deployments.go index 9507ed6f..d31cd71e 100644 --- a/resources/cloudfront-distribution-deployments.go +++ b/resources/cloudfront-distribution-deployments.go @@ -24,7 +24,7 @@ type CloudFrontDistributionDeployment struct { const CloudFrontDistributionDeploymentResource = "CloudFrontDistributionDeployment" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: CloudFrontDistributionDeploymentResource, Scope: nuke.Account, Lister: &CloudFrontDistributionDeploymentLister{}, diff --git a/resources/cloudfront-distributions.go b/resources/cloudfront-distributions.go index 69e58450..21dc9412 100644 --- a/resources/cloudfront-distributions.go +++ b/resources/cloudfront-distributions.go @@ -17,7 +17,7 @@ import ( const CloudFrontDistributionResource = "CloudFrontDistribution" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: CloudFrontDistributionResource, Scope: nuke.Account, Lister: &CloudFrontDistributionLister{}, diff --git a/resources/cloudfront-function.go b/resources/cloudfront-function.go index 0037f7dc..c0dcb1af 100644 --- a/resources/cloudfront-function.go +++ b/resources/cloudfront-function.go @@ -14,7 +14,7 @@ import ( const CloudFrontFunctionResource = "CloudFrontFunction" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: CloudFrontFunctionResource, Scope: nuke.Account, Lister: &CloudFrontFunctionLister{}, diff --git a/resources/cloudfront-origin-access-control.go b/resources/cloudfront-origin-access-control.go index 4fb4bb82..dc5c2af1 100644 --- a/resources/cloudfront-origin-access-control.go +++ b/resources/cloudfront-origin-access-control.go @@ -14,7 +14,7 @@ import ( const CloudFrontOriginAccessControlResource = "CloudFrontOriginAccessControl" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: CloudFrontOriginAccessControlResource, Scope: nuke.Account, Lister: &CloudFrontOriginAccessControlLister{}, diff --git a/resources/cloudfront-origin-access-identities.go b/resources/cloudfront-origin-access-identities.go index 2c071a5d..ce1f503a 100644 --- a/resources/cloudfront-origin-access-identities.go +++ b/resources/cloudfront-origin-access-identities.go @@ -14,7 +14,7 @@ import ( const CloudFrontOriginAccessIdentityResource = "CloudFrontOriginAccessIdentity" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: CloudFrontOriginAccessIdentityResource, Scope: nuke.Account, Lister: &CloudFrontOriginAccessIdentityLister{}, diff --git a/resources/cloudhsmv2-cluster.go b/resources/cloudhsmv2-cluster.go index 557f8b47..a622b9ac 100644 --- a/resources/cloudhsmv2-cluster.go +++ b/resources/cloudhsmv2-cluster.go @@ -14,7 +14,7 @@ import ( const CloudHSMV2ClusterResource = "CloudHSMV2Cluster" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: CloudHSMV2ClusterResource, Scope: nuke.Account, Lister: &CloudHSMV2ClusterLister{}, diff --git a/resources/cloudhsmv2-clusterhsms.go b/resources/cloudhsmv2-clusterhsms.go index 1f6b7cdf..882211b9 100644 --- a/resources/cloudhsmv2-clusterhsms.go +++ b/resources/cloudhsmv2-clusterhsms.go @@ -14,7 +14,7 @@ import ( const CloudHSMV2ClusterHSMResource = "CloudHSMV2ClusterHSM" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: CloudHSMV2ClusterHSMResource, Scope: nuke.Account, Lister: &CloudHSMV2ClusterHSMLister{}, diff --git a/resources/cloudsearch-domains.go b/resources/cloudsearch-domains.go index c7b676ed..dc1c88f1 100644 --- a/resources/cloudsearch-domains.go +++ b/resources/cloudsearch-domains.go @@ -13,7 +13,7 @@ import ( const CloudSearchDomainResource = "CloudSearchDomain" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: CloudSearchDomainResource, Scope: nuke.Account, Lister: &CloudSearchDomainLister{}, diff --git a/resources/cloudtrail-trails.go b/resources/cloudtrail-trails.go index 5164f2e7..8265478d 100644 --- a/resources/cloudtrail-trails.go +++ b/resources/cloudtrail-trails.go @@ -14,7 +14,7 @@ import ( const CloudTrailTrailResource = "CloudTrailTrail" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: CloudTrailTrailResource, Scope: nuke.Account, Lister: &CloudTrailTrailLister{}, diff --git a/resources/cloudwatch-alarms.go b/resources/cloudwatch-alarms.go index fe695c50..06328687 100644 --- a/resources/cloudwatch-alarms.go +++ b/resources/cloudwatch-alarms.go @@ -15,7 +15,7 @@ import ( const CloudWatchAlarmResource = "CloudWatchAlarm" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: CloudWatchAlarmResource, Scope: nuke.Account, Lister: &CloudWatchAlarmLister{}, diff --git a/resources/cloudwatch-dashboards.go b/resources/cloudwatch-dashboards.go index f63ff4c4..08ea77fc 100644 --- a/resources/cloudwatch-dashboards.go +++ b/resources/cloudwatch-dashboards.go @@ -13,7 +13,7 @@ import ( const CloudWatchDashboardResource = "CloudWatchDashboard" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: CloudWatchDashboardResource, Scope: nuke.Account, Lister: &CloudWatchDashboardLister{}, diff --git a/resources/cloudwatchevents-buses.go b/resources/cloudwatchevents-buses.go index e4a6ace5..71da5e9f 100644 --- a/resources/cloudwatchevents-buses.go +++ b/resources/cloudwatchevents-buses.go @@ -13,7 +13,7 @@ import ( const CloudWatchEventsBusesResource = "CloudWatchEventsBuses" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: CloudWatchEventsBusesResource, Scope: nuke.Account, Lister: &CloudWatchEventsBusesLister{}, diff --git a/resources/cloudwatchevents-rules.go b/resources/cloudwatchevents-rules.go index f14e6c1a..cb58ad6f 100644 --- a/resources/cloudwatchevents-rules.go +++ b/resources/cloudwatchevents-rules.go @@ -16,7 +16,7 @@ import ( const CloudWatchEventsRuleResource = "CloudWatchEventsRule" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: CloudWatchEventsRuleResource, Scope: nuke.Account, Lister: &CloudWatchEventsRuleLister{}, diff --git a/resources/cloudwatchevents-targets.go b/resources/cloudwatchevents-targets.go index e622fc69..65c3b318 100644 --- a/resources/cloudwatchevents-targets.go +++ b/resources/cloudwatchevents-targets.go @@ -16,7 +16,7 @@ import ( const CloudWatchEventsTargetResource = "CloudWatchEventsTarget" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: CloudWatchEventsTargetResource, Scope: nuke.Account, Lister: &CloudWatchEventsTargetLister{}, diff --git a/resources/cloudwatchlogs-destinations.go b/resources/cloudwatchlogs-destinations.go index 97d7050e..bd50102f 100644 --- a/resources/cloudwatchlogs-destinations.go +++ b/resources/cloudwatchlogs-destinations.go @@ -14,7 +14,7 @@ import ( const CloudWatchLogsDestinationResource = "CloudWatchLogsDestination" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: CloudWatchLogsDestinationResource, Scope: nuke.Account, Lister: &CloudWatchLogsDestinationLister{}, diff --git a/resources/cloudwatchlogs-loggroups.go b/resources/cloudwatchlogs-loggroups.go index 4c885040..dd6caf8c 100644 --- a/resources/cloudwatchlogs-loggroups.go +++ b/resources/cloudwatchlogs-loggroups.go @@ -18,7 +18,7 @@ import ( const CloudWatchLogsLogGroupResource = "CloudWatchLogsLogGroup" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: CloudWatchLogsLogGroupResource, Scope: nuke.Account, Lister: &CloudWatchLogsLogGroupLister{}, diff --git a/resources/cloudwatchlogs-resourcepolicy.go b/resources/cloudwatchlogs-resourcepolicy.go index 8eb5566c..e31eb8cd 100644 --- a/resources/cloudwatchlogs-resourcepolicy.go +++ b/resources/cloudwatchlogs-resourcepolicy.go @@ -15,7 +15,7 @@ import ( const CloudWatchLogsResourcePolicyResource = "CloudWatchLogsResourcePolicy" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: CloudWatchLogsResourcePolicyResource, Scope: nuke.Account, Lister: &CloudWatchLogsResourcePolicyLister{}, diff --git a/resources/codeartifact-domains.go b/resources/codeartifact-domains.go index a64054d4..d2bd6aa6 100644 --- a/resources/codeartifact-domains.go +++ b/resources/codeartifact-domains.go @@ -14,7 +14,7 @@ import ( const CodeArtifactDomainResource = "CodeArtifactDomain" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: CodeArtifactDomainResource, Scope: nuke.Account, Lister: &CodeArtifactDomainLister{}, diff --git a/resources/codeartifact-repositories.go b/resources/codeartifact-repositories.go index ddea3331..3153e428 100644 --- a/resources/codeartifact-repositories.go +++ b/resources/codeartifact-repositories.go @@ -14,7 +14,7 @@ import ( const CodeArtifactRepositoryResource = "CodeArtifactRepository" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: CodeArtifactRepositoryResource, Scope: nuke.Account, Lister: &CodeArtifactRepositoryLister{}, diff --git a/resources/codebuild-projects.go b/resources/codebuild-projects.go index 19ecd0f7..c12b7495 100644 --- a/resources/codebuild-projects.go +++ b/resources/codebuild-projects.go @@ -14,7 +14,7 @@ import ( const CodeBuildProjectResource = "CodeBuildProject" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: CodeBuildProjectResource, Scope: nuke.Account, Lister: &CodeBuildProjectLister{}, diff --git a/resources/codecommit-repositories.go b/resources/codecommit-repositories.go index 2a2c4ec8..6283768e 100644 --- a/resources/codecommit-repositories.go +++ b/resources/codecommit-repositories.go @@ -13,7 +13,7 @@ import ( const CodeCommitRepositoryResource = "CodeCommitRepository" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: CodeCommitRepositoryResource, Scope: nuke.Account, Lister: &CodeCommitRepositoryLister{}, diff --git a/resources/codedeploy-applications.go b/resources/codedeploy-applications.go index e2145862..82559726 100644 --- a/resources/codedeploy-applications.go +++ b/resources/codedeploy-applications.go @@ -13,7 +13,7 @@ import ( const CodeDeployApplicationResource = "CodeDeployApplication" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: CodeDeployApplicationResource, Scope: nuke.Account, Lister: &CodeDeployApplicationLister{}, diff --git a/resources/codepipeline-pipelines.go b/resources/codepipeline-pipelines.go index 3b43972e..d12803b4 100644 --- a/resources/codepipeline-pipelines.go +++ b/resources/codepipeline-pipelines.go @@ -13,7 +13,7 @@ import ( const CodePipelinePipelineResource = "CodePipelinePipeline" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: CodePipelinePipelineResource, Scope: nuke.Account, Lister: &CodePipelinePipelineLister{}, diff --git a/resources/codestar-connections.go b/resources/codestar-connections.go index 21d84251..eb7a6899 100644 --- a/resources/codestar-connections.go +++ b/resources/codestar-connections.go @@ -15,7 +15,7 @@ import ( const CodeStarConnectionResource = "CodeStarConnection" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: CodeStarConnectionResource, Scope: nuke.Account, Lister: &CodeStarConnectionLister{}, diff --git a/resources/codestar-notifications.go b/resources/codestar-notifications.go index a15be1d1..7241d358 100644 --- a/resources/codestar-notifications.go +++ b/resources/codestar-notifications.go @@ -17,7 +17,7 @@ import ( const CodeStarNotificationRuleResource = "CodeStarNotificationRule" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: CodeStarNotificationRuleResource, Scope: nuke.Account, Lister: &CodeStarNotificationRuleLister{}, diff --git a/resources/codestar-projects.go b/resources/codestar-projects.go index e8d54c25..101aff14 100644 --- a/resources/codestar-projects.go +++ b/resources/codestar-projects.go @@ -14,7 +14,7 @@ import ( const CodeStarProjectResource = "CodeStarProject" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: CodeStarProjectResource, Scope: nuke.Account, Lister: &CodeStarProjectLister{}, diff --git a/resources/cognito-identity-providers.go b/resources/cognito-identity-providers.go index 6ad4be5a..29a8a646 100644 --- a/resources/cognito-identity-providers.go +++ b/resources/cognito-identity-providers.go @@ -17,7 +17,7 @@ import ( const CognitoIdentityProviderResource = "CognitoIdentityProvider" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: CognitoIdentityProviderResource, Scope: nuke.Account, Lister: &CognitoIdentityProviderLister{}, diff --git a/resources/cognito-identitypools.go b/resources/cognito-identitypools.go index f591ef73..26ca20f5 100644 --- a/resources/cognito-identitypools.go +++ b/resources/cognito-identitypools.go @@ -20,7 +20,7 @@ type CognitoIdentityPool struct { const CognitoIdentityPoolResource = "CognitoIdentityPool" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: CognitoIdentityPoolResource, Scope: nuke.Account, Lister: &CognitoIdentityPoolLister{}, diff --git a/resources/cognito-userpool-clients.go b/resources/cognito-userpool-clients.go index d8f59510..6f426315 100644 --- a/resources/cognito-userpool-clients.go +++ b/resources/cognito-userpool-clients.go @@ -17,7 +17,7 @@ import ( const CognitoUserPoolClientResource = "CognitoUserPoolClient" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: CognitoUserPoolClientResource, Scope: nuke.Account, Lister: &CognitoUserPoolClientLister{}, diff --git a/resources/cognito-userpool-domains.go b/resources/cognito-userpool-domains.go index 30df2ca9..15cb23e2 100644 --- a/resources/cognito-userpool-domains.go +++ b/resources/cognito-userpool-domains.go @@ -15,7 +15,7 @@ import ( const CognitoUserPoolDomainResource = "CognitoUserPoolDomain" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: CognitoUserPoolDomainResource, Scope: nuke.Account, Lister: &CognitoUserPoolDomainLister{}, diff --git a/resources/cognito-userpools.go b/resources/cognito-userpools.go index b46c57bb..01169786 100644 --- a/resources/cognito-userpools.go +++ b/resources/cognito-userpools.go @@ -14,7 +14,7 @@ import ( const CognitoUserPoolResource = "CognitoUserPool" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: CognitoUserPoolResource, Scope: nuke.Account, Lister: &CognitoUserPoolLister{}, diff --git a/resources/comprehend-document-classifier.go b/resources/comprehend-document-classifier.go index 27478b77..2eb6440d 100644 --- a/resources/comprehend-document-classifier.go +++ b/resources/comprehend-document-classifier.go @@ -16,7 +16,7 @@ import ( const ComprehendDocumentClassifierResource = "ComprehendDocumentClassifier" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ComprehendDocumentClassifierResource, Scope: nuke.Account, Lister: &ComprehendDocumentClassifierLister{}, diff --git a/resources/comprehend-dominant-language-detection-job.go b/resources/comprehend-dominant-language-detection-job.go index 4905da3b..b7a3daf9 100644 --- a/resources/comprehend-dominant-language-detection-job.go +++ b/resources/comprehend-dominant-language-detection-job.go @@ -14,7 +14,7 @@ import ( const ComprehendDominantLanguageDetectionJobResource = "ComprehendDominantLanguageDetectionJob" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ComprehendDominantLanguageDetectionJobResource, Scope: nuke.Account, Lister: &ComprehendDominantLanguageDetectionJobLister{}, diff --git a/resources/comprehend-endpoint.go b/resources/comprehend-endpoint.go index 384c81bc..737bec14 100644 --- a/resources/comprehend-endpoint.go +++ b/resources/comprehend-endpoint.go @@ -14,7 +14,7 @@ import ( const ComprehendEndpointResource = "ComprehendEndpoint" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ComprehendEndpointResource, Scope: nuke.Account, Lister: &ComprehendEndpointLister{}, diff --git a/resources/comprehend-entities-detection-job.go b/resources/comprehend-entities-detection-job.go index 10c663e4..cb4bc5f5 100644 --- a/resources/comprehend-entities-detection-job.go +++ b/resources/comprehend-entities-detection-job.go @@ -14,7 +14,7 @@ import ( const ComprehendEntitiesDetectionJobResource = "ComprehendEntitiesDetectionJob" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ComprehendEntitiesDetectionJobResource, Scope: nuke.Account, Lister: &ComprehendEntitiesDetectionJobLister{}, diff --git a/resources/comprehend-entity-recognizer.go b/resources/comprehend-entity-recognizer.go index 982701d5..c2f9e2a5 100644 --- a/resources/comprehend-entity-recognizer.go +++ b/resources/comprehend-entity-recognizer.go @@ -16,7 +16,7 @@ import ( const ComprehendEntityRecognizerResource = "ComprehendEntityRecognizer" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ComprehendEntityRecognizerResource, Scope: nuke.Account, Lister: &ComprehendEntityRecognizerLister{}, diff --git a/resources/comprehend-key-phrases-detection-job.go b/resources/comprehend-key-phrases-detection-job.go index a729b668..8886225b 100644 --- a/resources/comprehend-key-phrases-detection-job.go +++ b/resources/comprehend-key-phrases-detection-job.go @@ -14,7 +14,7 @@ import ( const ComprehendKeyPhrasesDetectionJobResource = "ComprehendKeyPhrasesDetectionJob" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ComprehendKeyPhrasesDetectionJobResource, Scope: nuke.Account, Lister: &ComprehendKeyPhrasesDetectionJobLister{}, diff --git a/resources/comprehend-sentiment-detection-job.go b/resources/comprehend-sentiment-detection-job.go index 84244d6c..c6841200 100644 --- a/resources/comprehend-sentiment-detection-job.go +++ b/resources/comprehend-sentiment-detection-job.go @@ -14,7 +14,7 @@ import ( const ComprehendSentimentDetectionJobResource = "ComprehendSentimentDetectionJob" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ComprehendSentimentDetectionJobResource, Scope: nuke.Account, Lister: &ComprehendSentimentDetectionJobLister{}, diff --git a/resources/configservice-configrules.go b/resources/configservice-configrules.go index 03fcbd71..d53d1b30 100644 --- a/resources/configservice-configrules.go +++ b/resources/configservice-configrules.go @@ -16,7 +16,7 @@ import ( const ConfigServiceConfigRuleResource = "ConfigServiceConfigRule" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ConfigServiceConfigRuleResource, Scope: nuke.Account, Lister: &ConfigServiceConfigRuleLister{}, diff --git a/resources/configservice-configurationrecorders.go b/resources/configservice-configurationrecorders.go index 21ad7296..bd111275 100644 --- a/resources/configservice-configurationrecorders.go +++ b/resources/configservice-configurationrecorders.go @@ -13,7 +13,7 @@ import ( const ConfigServiceConfigurationRecorderResource = "ConfigServiceConfigurationRecorder" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ConfigServiceConfigurationRecorderResource, Scope: nuke.Account, Lister: &ConfigServiceConfigurationRecorderLister{}, diff --git a/resources/configservice-deliverychannels.go b/resources/configservice-deliverychannels.go index 6784cd06..50c0d186 100644 --- a/resources/configservice-deliverychannels.go +++ b/resources/configservice-deliverychannels.go @@ -13,7 +13,7 @@ import ( const ConfigServiceDeliveryChannelResource = "ConfigServiceDeliveryChannel" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ConfigServiceDeliveryChannelResource, Scope: nuke.Account, Lister: &ConfigServiceDeliveryChannelLister{}, diff --git a/resources/databasemigrationservice-certificates.go b/resources/databasemigrationservice-certificates.go index 2fc8a326..9d405833 100644 --- a/resources/databasemigrationservice-certificates.go +++ b/resources/databasemigrationservice-certificates.go @@ -14,7 +14,7 @@ import ( const DatabaseMigrationServiceCertificateResource = "DatabaseMigrationServiceCertificate" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: DatabaseMigrationServiceCertificateResource, Scope: nuke.Account, Lister: &DatabaseMigrationServiceCertificateLister{}, diff --git a/resources/databasemigrationservice-endpoints.go b/resources/databasemigrationservice-endpoints.go index 1cffce3e..3ad2d33a 100644 --- a/resources/databasemigrationservice-endpoints.go +++ b/resources/databasemigrationservice-endpoints.go @@ -14,7 +14,7 @@ import ( const DatabaseMigrationServiceEndpointResource = "DatabaseMigrationServiceEndpoint" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: DatabaseMigrationServiceEndpointResource, Scope: nuke.Account, Lister: &DatabaseMigrationServiceEndpointLister{}, diff --git a/resources/databasemigrationservice-eventsubscriptions.go b/resources/databasemigrationservice-eventsubscriptions.go index 7373b33a..c19d02ab 100644 --- a/resources/databasemigrationservice-eventsubscriptions.go +++ b/resources/databasemigrationservice-eventsubscriptions.go @@ -14,7 +14,7 @@ import ( const DatabaseMigrationServiceEventSubscriptionResource = "DatabaseMigrationServiceEventSubscription" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: DatabaseMigrationServiceEventSubscriptionResource, Scope: nuke.Account, Lister: &DatabaseMigrationServiceEventSubscriptionLister{}, diff --git a/resources/databasemigrationservice-replicationinstances.go b/resources/databasemigrationservice-replicationinstances.go index bcb10882..7ec39b88 100644 --- a/resources/databasemigrationservice-replicationinstances.go +++ b/resources/databasemigrationservice-replicationinstances.go @@ -14,7 +14,7 @@ import ( const DatabaseMigrationServiceReplicationInstanceResource = "DatabaseMigrationServiceReplicationInstance" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: DatabaseMigrationServiceReplicationInstanceResource, Scope: nuke.Account, Lister: &DatabaseMigrationServiceReplicationInstanceLister{}, diff --git a/resources/databasemigrationservice-replicationtasks.go b/resources/databasemigrationservice-replicationtasks.go index 1f7ec36b..d120628c 100644 --- a/resources/databasemigrationservice-replicationtasks.go +++ b/resources/databasemigrationservice-replicationtasks.go @@ -14,7 +14,7 @@ import ( const DatabaseMigrationServiceReplicationTaskResource = "DatabaseMigrationServiceReplicationTask" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: DatabaseMigrationServiceReplicationTaskResource, Scope: nuke.Account, Lister: &DatabaseMigrationServiceReplicationTaskLister{}, diff --git a/resources/databasemigrationservice-subnetgroups.go b/resources/databasemigrationservice-subnetgroups.go index c8be9d48..46df5c4a 100644 --- a/resources/databasemigrationservice-subnetgroups.go +++ b/resources/databasemigrationservice-subnetgroups.go @@ -14,7 +14,7 @@ import ( const DatabaseMigrationServiceSubnetGroupResource = "DatabaseMigrationServiceSubnetGroup" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: DatabaseMigrationServiceSubnetGroupResource, Scope: nuke.Account, Lister: &DatabaseMigrationServiceSubnetGroupLister{}, diff --git a/resources/datapipeline-pipelines.go b/resources/datapipeline-pipelines.go index ad56b0b1..ad691435 100644 --- a/resources/datapipeline-pipelines.go +++ b/resources/datapipeline-pipelines.go @@ -13,7 +13,7 @@ import ( const DataPipelinePipelineResource = "DataPipelinePipeline" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: DataPipelinePipelineResource, Scope: nuke.Account, Lister: &DataPipelinePipelineLister{}, diff --git a/resources/dax-clusters.go b/resources/dax-clusters.go index 2b937b9b..56b42b38 100644 --- a/resources/dax-clusters.go +++ b/resources/dax-clusters.go @@ -14,7 +14,7 @@ import ( const DAXClusterResource = "DAXCluster" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: DAXClusterResource, Scope: nuke.Account, Lister: &DAXClusterLister{}, diff --git a/resources/dax-parametergroups.go b/resources/dax-parametergroups.go index f022040d..b42daed0 100644 --- a/resources/dax-parametergroups.go +++ b/resources/dax-parametergroups.go @@ -21,7 +21,7 @@ type DAXParameterGroup struct { const DAXParameterGroupResource = "DAXParameterGroup" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: DAXParameterGroupResource, Scope: nuke.Account, Lister: &DAXParameterGroupLister{}, diff --git a/resources/dax-subnetgroups.go b/resources/dax-subnetgroups.go index 0655aba0..2a775028 100644 --- a/resources/dax-subnetgroups.go +++ b/resources/dax-subnetgroups.go @@ -16,7 +16,7 @@ import ( const DAXSubnetGroupResource = "DAXSubnetGroup" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: DAXSubnetGroupResource, Scope: nuke.Account, Lister: &DAXSubnetGroupLister{}, diff --git a/resources/devicefarm-projects.go b/resources/devicefarm-projects.go index 05b3222c..7c9b9f7d 100644 --- a/resources/devicefarm-projects.go +++ b/resources/devicefarm-projects.go @@ -13,7 +13,7 @@ import ( const DeviceFarmProjectResource = "DeviceFarmProject" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: DeviceFarmProjectResource, Scope: nuke.Account, Lister: &DeviceFarmProjectLister{}, diff --git a/resources/directoryservice-directories.go b/resources/directoryservice-directories.go index 0a7f1528..1d2b76ee 100644 --- a/resources/directoryservice-directories.go +++ b/resources/directoryservice-directories.go @@ -14,7 +14,7 @@ import ( const DirectoryServiceDirectoryResource = "DirectoryServiceDirectory" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: DirectoryServiceDirectoryResource, Scope: nuke.Account, Lister: &DirectoryServiceDirectoryLister{}, diff --git a/resources/dynamodb-items.go b/resources/dynamodb-items.go index ec32caa6..2e440226 100644 --- a/resources/dynamodb-items.go +++ b/resources/dynamodb-items.go @@ -19,7 +19,7 @@ import ( const DynamoDBTableItemResource = "DynamoDBTableItem" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: DynamoDBTableItemResource, Scope: nuke.Account, Lister: &DynamoDBTableItemLister{}, diff --git a/resources/dynamodb-tables.go b/resources/dynamodb-tables.go index 3df944ca..232ecc9a 100644 --- a/resources/dynamodb-tables.go +++ b/resources/dynamodb-tables.go @@ -15,7 +15,7 @@ import ( const DynamoDBTableResource = "DynamoDBTable" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: DynamoDBTableResource, Scope: nuke.Account, Lister: &DynamoDBTableLister{}, diff --git a/resources/ec2-client-vpn-endpoint-attachment.go b/resources/ec2-client-vpn-endpoint-attachment.go index 7c0c22e7..9b615eb7 100644 --- a/resources/ec2-client-vpn-endpoint-attachment.go +++ b/resources/ec2-client-vpn-endpoint-attachment.go @@ -17,7 +17,7 @@ import ( const EC2ClientVpnEndpointAttachmentResource = "EC2ClientVpnEndpointAttachment" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EC2ClientVpnEndpointAttachmentResource, Scope: nuke.Account, Lister: &EC2ClientVpnEndpointAttachmentLister{}, diff --git a/resources/ec2-client-vpn-endpoint.go b/resources/ec2-client-vpn-endpoint.go index f0225b84..0df4803e 100644 --- a/resources/ec2-client-vpn-endpoint.go +++ b/resources/ec2-client-vpn-endpoint.go @@ -14,7 +14,7 @@ import ( const EC2ClientVpnEndpointResource = "EC2ClientVpnEndpoint" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EC2ClientVpnEndpointResource, Scope: nuke.Account, Lister: &EC2ClientVpnEndpointLister{}, @@ -70,9 +70,9 @@ func (c *EC2ClientVpnEndpoint) Remove(_ context.Context) error { return nil } -func (e *EC2ClientVpnEndpoint) Properties() types.Properties { +func (c *EC2ClientVpnEndpoint) Properties() types.Properties { properties := types.NewProperties() - for _, tagValue := range e.cveTags { + for _, tagValue := range c.cveTags { properties.SetTagWithPrefix("cve", tagValue.Key, tagValue.Value) } return properties diff --git a/resources/ec2-customer-gateway.go b/resources/ec2-customer-gateway.go index 0f9ecd13..b4164363 100644 --- a/resources/ec2-customer-gateway.go +++ b/resources/ec2-customer-gateway.go @@ -15,7 +15,7 @@ import ( const EC2CustomerGatewayResource = "EC2CustomerGateway" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EC2CustomerGatewayResource, Scope: nuke.Account, Lister: &EC2CustomerGatewayLister{}, diff --git a/resources/ec2-default-security-group-rules.go b/resources/ec2-default-security-group-rules.go index eb52c2b2..3078b1a7 100644 --- a/resources/ec2-default-security-group-rules.go +++ b/resources/ec2-default-security-group-rules.go @@ -15,7 +15,7 @@ import ( const EC2DefaultSecurityGroupRuleResource = "EC2DefaultSecurityGroupRule" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EC2DefaultSecurityGroupRuleResource, Scope: nuke.Account, Lister: &EC2DefaultSecurityGroupRuleLister{}, diff --git a/resources/ec2-dhcp-options.go b/resources/ec2-dhcp-options.go index 5c840ed0..26d3dba8 100644 --- a/resources/ec2-dhcp-options.go +++ b/resources/ec2-dhcp-options.go @@ -16,10 +16,14 @@ import ( const EC2DHCPOptionResource = "EC2DHCPOption" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EC2DHCPOptionResource, Scope: nuke.Account, Lister: &EC2DHCPOptionLister{}, + DeprecatedAliases: []string{ + "EC2DhcpOptions", + "EC2DHCPOptions", + }, }) } diff --git a/resources/ec2-egress-only-internet-gateways.go b/resources/ec2-egress-only-internet-gateways.go index 398a7f63..77be43f9 100644 --- a/resources/ec2-egress-only-internet-gateways.go +++ b/resources/ec2-egress-only-internet-gateways.go @@ -17,7 +17,7 @@ import ( const EC2EgressOnlyInternetGatewayResource = "EC2EgressOnlyInternetGateway" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EC2EgressOnlyInternetGatewayResource, Scope: nuke.Account, Lister: &EC2EgressOnlyInternetGatewayLister{}, diff --git a/resources/ec2-eip.go b/resources/ec2-eip.go index 8cf1eba8..d929d94b 100644 --- a/resources/ec2-eip.go +++ b/resources/ec2-eip.go @@ -16,7 +16,7 @@ import ( const EC2AddressResource = "EC2Address" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EC2AddressResource, Scope: nuke.Account, Lister: &EC2AddressLister{}, diff --git a/resources/ec2-host.go b/resources/ec2-host.go index 1a3b4e67..a660219c 100644 --- a/resources/ec2-host.go +++ b/resources/ec2-host.go @@ -17,7 +17,7 @@ import ( const EC2HostResource = "EC2Host" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EC2HostResource, Scope: nuke.Account, Lister: &EC2HostLister{}, diff --git a/resources/ec2-image.go b/resources/ec2-image.go index e042d47e..fead58f5 100644 --- a/resources/ec2-image.go +++ b/resources/ec2-image.go @@ -15,7 +15,7 @@ import ( const EC2ImageResource = "EC2Image" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EC2ImageResource, Scope: nuke.Account, Lister: &EC2ImageLister{}, diff --git a/resources/ec2-instance.go b/resources/ec2-instance.go index 0bd8ccc4..0ef641d8 100644 --- a/resources/ec2-instance.go +++ b/resources/ec2-instance.go @@ -2,11 +2,11 @@ package resources import ( "context" + "github.com/ekristen/libnuke/pkg/settings" "errors" "fmt" "github.com/ekristen/aws-nuke/pkg/nuke" - "github.com/ekristen/libnuke/pkg/featureflag" "github.com/ekristen/libnuke/pkg/resource" "time" @@ -19,7 +19,7 @@ import ( const EC2InstanceResource = "EC2Instance" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EC2InstanceResource, Scope: nuke.Account, Lister: &EC2InstanceLister{}, @@ -65,11 +65,11 @@ type EC2Instance struct { svc *ec2.EC2 instance *ec2.Instance - featureFlags *featureflag.FeatureFlags + settings *settings.Setting } -func (i *EC2Instance) FeatureFlags(ff *featureflag.FeatureFlags) { - i.featureFlags = ff +func (i *EC2Instance) Settings(setting *settings.Setting) { + i.settings = setting } func (i *EC2Instance) Filter() error { @@ -80,16 +80,6 @@ func (i *EC2Instance) Filter() error { } func (i *EC2Instance) Remove(_ context.Context) error { - ffddpEC2Instance, err := i.featureFlags.Get("DisableDeletionProtection_EC2Instance") - if err != nil { - return err - } - - ffDisableEC2InstanceStopProtection, err := i.featureFlags.Get("DisableEC2InstanceStopProtection") - if err != nil { - return err - } - params := &ec2.TerminateInstancesInput{ InstanceIds: []*string{i.instance.InstanceId}, } @@ -102,7 +92,7 @@ func (i *EC2Instance) Remove(_ context.Context) error { if ok && awsErr.Code() == "OperationNotPermitted" && awsErr.Message() == "The instance '"+*i.instance.InstanceId+"' may not be "+ "terminated. Modify its 'disableApiTermination' instance attribute and "+ - "try again." && ffddpEC2Instance.Enabled() { + "try again." && i.settings.Get("DisableDeletionProtection").(bool) { termErr := i.DisableTerminationProtection() if termErr != nil { return termErr @@ -119,7 +109,7 @@ func (i *EC2Instance) Remove(_ context.Context) error { if ok && awsErr.Code() == "OperationNotPermitted" && awsErr.Message() == "The instance '"+*i.instance.InstanceId+"' may not be "+ "terminated. Modify its 'disableApiStop' instance attribute and try "+ - "again." && ffDisableEC2InstanceStopProtection.Enabled() { + "again." && i.settings.Get("DisableStopProtection").(bool) { stopErr := i.DisableStopProtection() if stopErr != nil { return stopErr diff --git a/resources/ec2-internet-gateway-attachments.go b/resources/ec2-internet-gateway-attachments.go index 464c4397..b394c913 100644 --- a/resources/ec2-internet-gateway-attachments.go +++ b/resources/ec2-internet-gateway-attachments.go @@ -18,10 +18,13 @@ import ( const EC2InternetGatewayAttachmentResource = "EC2InternetGatewayAttachment" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EC2InternetGatewayAttachmentResource, Scope: nuke.Account, Lister: &EC2InternetGatewayAttachmentLister{}, + DeprecatedAliases: []string{ + "EC2InternetGatewayAttachement", + }, }) } diff --git a/resources/ec2-internet-gateways.go b/resources/ec2-internet-gateways.go index 7c946a97..5f207d16 100644 --- a/resources/ec2-internet-gateways.go +++ b/resources/ec2-internet-gateways.go @@ -15,7 +15,7 @@ import ( const EC2InternetGatewayResource = "EC2InternetGateway" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EC2InternetGatewayResource, Scope: nuke.Account, Lister: &EC2InternetGatewayLister{}, diff --git a/resources/ec2-key-pairs.go b/resources/ec2-key-pairs.go index 25830813..fa1173cd 100644 --- a/resources/ec2-key-pairs.go +++ b/resources/ec2-key-pairs.go @@ -14,7 +14,7 @@ import ( const EC2KeyPairResource = "EC2KeyPair" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EC2KeyPairResource, Scope: nuke.Account, Lister: &EC2KeyPairLister{}, diff --git a/resources/ec2-launch-templates.go b/resources/ec2-launch-templates.go index 063e069e..cce4488c 100644 --- a/resources/ec2-launch-templates.go +++ b/resources/ec2-launch-templates.go @@ -16,7 +16,7 @@ import ( const EC2LaunchTemplateResource = "EC2LaunchTemplate" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EC2LaunchTemplateResource, Scope: nuke.Account, Lister: &EC2LaunchTemplateLister{}, diff --git a/resources/ec2-nat-gateways.go b/resources/ec2-nat-gateways.go index f70c7835..ff59528f 100644 --- a/resources/ec2-nat-gateways.go +++ b/resources/ec2-nat-gateways.go @@ -18,10 +18,13 @@ import ( const EC2NATGatewayResource = "EC2NATGateway" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EC2NATGatewayResource, Scope: nuke.Account, Lister: &EC2NATGatewayLister{}, + DeprecatedAliases: []string{ + "EC2NatGateway", + }, }) } diff --git a/resources/ec2-network-acls.go b/resources/ec2-network-acls.go index 9ccc246a..649b7941 100644 --- a/resources/ec2-network-acls.go +++ b/resources/ec2-network-acls.go @@ -18,7 +18,7 @@ import ( const EC2NetworkACLResource = "EC2NetworkACL" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EC2NetworkACLResource, Scope: nuke.Account, Lister: &EC2NetworkACLLister{}, diff --git a/resources/ec2-network-interfaces.go b/resources/ec2-network-interfaces.go index 458689e5..b7bb6d01 100644 --- a/resources/ec2-network-interfaces.go +++ b/resources/ec2-network-interfaces.go @@ -18,7 +18,7 @@ import ( const EC2NetworkInterfaceResource = "EC2NetworkInterface" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EC2NetworkInterfaceResource, Scope: nuke.Account, Lister: &EC2NetworkInterfaceLister{}, diff --git a/resources/ec2-placement-groups.go b/resources/ec2-placement-groups.go index e7019307..dcc995cb 100644 --- a/resources/ec2-placement-groups.go +++ b/resources/ec2-placement-groups.go @@ -15,7 +15,7 @@ import ( const EC2PlacementGroupResource = "EC2PlacementGroup" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EC2PlacementGroupResource, Scope: nuke.Account, Lister: &EC2PlacementGroupLister{}, diff --git a/resources/ec2-route-tables.go b/resources/ec2-route-tables.go index da4618a4..74dc02db 100644 --- a/resources/ec2-route-tables.go +++ b/resources/ec2-route-tables.go @@ -17,7 +17,7 @@ import ( const EC2RouteTableResource = "EC2RouteTable" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EC2RouteTableResource, Scope: nuke.Account, Lister: &EC2RouteTableLister{}, diff --git a/resources/ec2-security-groups.go b/resources/ec2-security-groups.go index f0a28d8d..e74c7012 100644 --- a/resources/ec2-security-groups.go +++ b/resources/ec2-security-groups.go @@ -18,7 +18,7 @@ import ( const EC2SecurityGroupResource = "EC2SecurityGroup" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EC2SecurityGroupResource, Scope: nuke.Account, Lister: &EC2SecurityGroupLister{}, diff --git a/resources/ec2-snapshots.go b/resources/ec2-snapshots.go index 911ba1dc..f7300b59 100644 --- a/resources/ec2-snapshots.go +++ b/resources/ec2-snapshots.go @@ -18,7 +18,7 @@ import ( const EC2SnapshotResource = "EC2Snapshot" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EC2SnapshotResource, Scope: nuke.Account, Lister: &EC2SnapshotLister{}, diff --git a/resources/ec2-spot-fleet-requests.go b/resources/ec2-spot-fleet-requests.go index 57f75d7c..55338344 100644 --- a/resources/ec2-spot-fleet-requests.go +++ b/resources/ec2-spot-fleet-requests.go @@ -16,7 +16,7 @@ import ( const EC2SpotFleetRequestResource = "EC2SpotFleetRequest" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EC2SpotFleetRequestResource, Scope: nuke.Account, Lister: &EC2SpotFleetRequestLister{}, diff --git a/resources/ec2-subnets.go b/resources/ec2-subnets.go index 7d3764ee..0838fa17 100644 --- a/resources/ec2-subnets.go +++ b/resources/ec2-subnets.go @@ -14,7 +14,7 @@ import ( const EC2SubnetResource = "EC2Subnet" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EC2SubnetResource, Scope: nuke.Account, Lister: &EC2SubnetLister{}, diff --git a/resources/ec2-tgw-attachments.go b/resources/ec2-tgw-attachments.go index 01944696..4655e336 100644 --- a/resources/ec2-tgw-attachments.go +++ b/resources/ec2-tgw-attachments.go @@ -16,7 +16,7 @@ import ( const EC2TGWAttachmentResource = "EC2TGWAttachment" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EC2TGWAttachmentResource, Scope: nuke.Account, Lister: &EC2TGWAttachmentLister{}, diff --git a/resources/ec2-tgw.go b/resources/ec2-tgw.go index 7028467c..04ff92b3 100644 --- a/resources/ec2-tgw.go +++ b/resources/ec2-tgw.go @@ -16,7 +16,7 @@ import ( const EC2TGWResource = "EC2TGW" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EC2TGWResource, Scope: nuke.Account, Lister: &EC2TGWLister{}, diff --git a/resources/ec2-volume.go b/resources/ec2-volume.go index da217d09..fb1bb60c 100644 --- a/resources/ec2-volume.go +++ b/resources/ec2-volume.go @@ -14,7 +14,7 @@ import ( const EC2VolumeResource = "EC2Volume" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EC2VolumeResource, Scope: nuke.Account, Lister: &EC2VolumeLister{}, diff --git a/resources/ec2-vpc-endpoint-connections.go b/resources/ec2-vpc-endpoint-connections.go index dc4b313c..1d586681 100644 --- a/resources/ec2-vpc-endpoint-connections.go +++ b/resources/ec2-vpc-endpoint-connections.go @@ -17,7 +17,7 @@ import ( const EC2VPCEndpointConnectionResource = "EC2VPCEndpointConnection" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EC2VPCEndpointConnectionResource, Scope: nuke.Account, Lister: &EC2VPCEndpointConnectionLister{}, diff --git a/resources/ec2-vpc-endpoint-service-configurations.go b/resources/ec2-vpc-endpoint-service-configurations.go index 89379f42..f9c6b7ad 100644 --- a/resources/ec2-vpc-endpoint-service-configurations.go +++ b/resources/ec2-vpc-endpoint-service-configurations.go @@ -15,7 +15,7 @@ import ( const EC2VPCEndpointServiceConfigurationResource = "EC2VPCEndpointServiceConfiguration" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EC2VPCEndpointServiceConfigurationResource, Scope: nuke.Account, Lister: &EC2VPCEndpointServiceConfigurationLister{}, diff --git a/resources/ec2-vpc-endpoint.go b/resources/ec2-vpc-endpoint.go index 3db5dc57..4815b522 100644 --- a/resources/ec2-vpc-endpoint.go +++ b/resources/ec2-vpc-endpoint.go @@ -15,7 +15,7 @@ import ( const EC2VPCEndpointResource = "EC2VPCEndpoint" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EC2VPCEndpointResource, Scope: nuke.Account, Lister: &EC2VPCEndpointLister{}, @@ -23,6 +23,9 @@ func init() { EC2VPCEndpointConnectionResource, EC2VPCEndpointServiceConfigurationResource, }, + DeprecatedAliases: []string{ + "EC2VpcEndpoint", + }, }) } diff --git a/resources/ec2-vpc-peering-connections.go b/resources/ec2-vpc-peering-connections.go index 47d9e042..c3aa88b3 100644 --- a/resources/ec2-vpc-peering-connections.go +++ b/resources/ec2-vpc-peering-connections.go @@ -15,7 +15,7 @@ import ( const EC2VPCPeeringConnectionResource = "EC2VPCPeeringConnection" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EC2VPCPeeringConnectionResource, Scope: nuke.Account, Lister: &EC2VPCPeeringConnectionLister{}, diff --git a/resources/ec2-vpc.go b/resources/ec2-vpc.go index 9e7c19c5..3e382ff8 100644 --- a/resources/ec2-vpc.go +++ b/resources/ec2-vpc.go @@ -15,7 +15,7 @@ import ( const EC2VPCResource = "EC2VPC" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EC2VPCResource, Scope: nuke.Account, Lister: &EC2VPCLister{}, @@ -31,7 +31,11 @@ func init() { EC2VPNGatewayResource, EC2EgressOnlyInternetGatewayResource, }, - }, nuke.MapCloudControl("AWS::EC2::VPC")) + AlternativeResource: "AWS::EC2::VPC", + DeprecatedAliases: []string{ + "EC2Vpc", + }, + }) } type EC2VPC struct { diff --git a/resources/ec2-vpn-connections.go b/resources/ec2-vpn-connections.go index dd701a5f..e935ebf6 100644 --- a/resources/ec2-vpn-connections.go +++ b/resources/ec2-vpn-connections.go @@ -16,10 +16,13 @@ import ( const EC2VPNConnectionResource = "EC2VPNConnection" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EC2VPNConnectionResource, Scope: nuke.Account, Lister: &EC2VPNConnectionLister{}, + DeprecatedAliases: []string{ + "EC2VpnConnection", + }, }) } diff --git a/resources/ec2-vpn-gateway-attachments.go b/resources/ec2-vpn-gateway-attachments.go index 5d0d93ca..3f44a992 100644 --- a/resources/ec2-vpn-gateway-attachments.go +++ b/resources/ec2-vpn-gateway-attachments.go @@ -17,10 +17,13 @@ import ( const EC2VPNGatewayAttachmentResource = "EC2VPNGatewayAttachment" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EC2VPNGatewayAttachmentResource, Scope: nuke.Account, Lister: &EC2VPNGatewayAttachmentLister{}, + DeprecatedAliases: []string{ + "EC2VpnGatewayAttachement", + }, }) } diff --git a/resources/ec2-vpn-gateways.go b/resources/ec2-vpn-gateways.go index dd76afdf..8a667b38 100644 --- a/resources/ec2-vpn-gateways.go +++ b/resources/ec2-vpn-gateways.go @@ -15,13 +15,16 @@ import ( const EC2VPNGatewayResource = "EC2VPNGateway" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EC2VPNGatewayResource, Scope: nuke.Account, Lister: &EC2VPNGatewayLister{}, DependsOn: []string{ EC2VPNGatewayAttachmentResource, }, + DeprecatedAliases: []string{ + "EC2VpnGateway", + }, }) } diff --git a/resources/ecr-public-repository.go b/resources/ecr-public-repository.go index 084f406d..bb56776a 100644 --- a/resources/ecr-public-repository.go +++ b/resources/ecr-public-repository.go @@ -17,14 +17,15 @@ import ( const ECRPublicRepositoryResource = "ECRPublicRepository" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ECRPublicRepositoryResource, Scope: nuke.Account, Lister: &ECRPublicRepositoryLister{}, DependsOn: []string{ EC2VPNGatewayAttachmentResource, }, - }, nuke.MapCloudControl("AWS::ECR::PublicRepository")) + AlternativeResource: "AWS::ECR::PublicRepository", + }) } type ECRPublicRepositoryLister struct{} diff --git a/resources/ecr-repository.go b/resources/ecr-repository.go index 5e0a32b1..2031cafd 100644 --- a/resources/ecr-repository.go +++ b/resources/ecr-repository.go @@ -19,11 +19,15 @@ const ECRRepositoryResource = "ECRRepository" const ECRRepositoryCloudControlResource = "AWS::ECR::Repository" func init() { - resource.Register(resource.Registration{ - Name: ECRRepositoryResource, - Scope: nuke.Account, - Lister: &ECRRepositoryLister{}, - }, nuke.MapCloudControl(ECRRepositoryCloudControlResource)) + resource.Register(&resource.Registration{ + Name: ECRRepositoryResource, + Scope: nuke.Account, + Lister: &ECRRepositoryLister{}, + AlternativeResource: ECRRepositoryCloudControlResource, + DeprecatedAliases: []string{ + "ECRrepository", + }, + }) } type ECRRepositoryLister struct{} diff --git a/resources/ecs-clusterinstances.go b/resources/ecs-clusterinstances.go index 3702abf3..7b435499 100644 --- a/resources/ecs-clusterinstances.go +++ b/resources/ecs-clusterinstances.go @@ -16,7 +16,7 @@ import ( const ECSClusterInstanceResource = "ECSClusterInstance" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ECSClusterInstanceResource, Scope: nuke.Account, Lister: &ECSClusterInstanceLister{}, diff --git a/resources/ecs-clusters.go b/resources/ecs-clusters.go index e56f5400..41439be8 100644 --- a/resources/ecs-clusters.go +++ b/resources/ecs-clusters.go @@ -14,7 +14,7 @@ import ( const ECSClusterResource = "ECSCluster" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ECSClusterResource, Scope: nuke.Account, Lister: &ECSClusterLister{}, diff --git a/resources/ecs-services.go b/resources/ecs-services.go index c157e66a..4c2a5c95 100644 --- a/resources/ecs-services.go +++ b/resources/ecs-services.go @@ -16,7 +16,7 @@ import ( const ECSServiceResource = "ECSService" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ECSServiceResource, Scope: nuke.Account, Lister: &ECSServiceLister{}, diff --git a/resources/ecs-taskdefinitions.go b/resources/ecs-taskdefinitions.go index af7ede37..2607cd97 100644 --- a/resources/ecs-taskdefinitions.go +++ b/resources/ecs-taskdefinitions.go @@ -14,7 +14,7 @@ import ( const ECSTaskDefinitionResource = "ECSTaskDefinition" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ECSTaskDefinitionResource, Scope: nuke.Account, Lister: &ECSTaskDefinitionLister{}, diff --git a/resources/ecs-tasks.go b/resources/ecs-tasks.go index 8b14c8c3..7713d740 100644 --- a/resources/ecs-tasks.go +++ b/resources/ecs-tasks.go @@ -15,7 +15,7 @@ import ( const ECSTaskResource = "ECSTask" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ECSTaskResource, Scope: nuke.Account, Lister: &ECSTaskLister{}, diff --git a/resources/efs-filesystem.go b/resources/efs-filesystem.go index e50d27dd..590c443e 100644 --- a/resources/efs-filesystem.go +++ b/resources/efs-filesystem.go @@ -14,7 +14,7 @@ import ( const EFSFileSystemResource = "EFSFileSystem" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EFSFileSystemResource, Scope: nuke.Account, Lister: &EFSFileSystemLister{}, diff --git a/resources/efs-mount-targets.go b/resources/efs-mount-targets.go index 67c76bab..9dab0ac4 100644 --- a/resources/efs-mount-targets.go +++ b/resources/efs-mount-targets.go @@ -16,7 +16,7 @@ import ( const EFSMountTargetResource = "EFSMountTarget" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EFSMountTargetResource, Scope: nuke.Account, Lister: &EFSMountTargetLister{}, diff --git a/resources/eks-clusters.go b/resources/eks-clusters.go index a1c25fb9..48329dff 100644 --- a/resources/eks-clusters.go +++ b/resources/eks-clusters.go @@ -17,7 +17,7 @@ import ( const EKSClusterResource = "EKSCluster" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EKSClusterResource, Scope: nuke.Account, Lister: &EKSClusterLister{}, diff --git a/resources/eks-fargate.go b/resources/eks-fargate.go index e8eb6106..e80ed082 100644 --- a/resources/eks-fargate.go +++ b/resources/eks-fargate.go @@ -17,10 +17,13 @@ import ( const EKSFargateProfileResource = "EKSFargateProfile" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EKSFargateProfileResource, Scope: nuke.Account, Lister: &EKSFargateProfileLister{}, + DeprecatedAliases: []string{ + "EKSFargateProfiles", + }, }) } diff --git a/resources/eks-nodegroups.go b/resources/eks-nodegroups.go index 6ad79f5b..0776bcd4 100644 --- a/resources/eks-nodegroups.go +++ b/resources/eks-nodegroups.go @@ -18,10 +18,13 @@ import ( const EKSNodegroupResource = "EKSNodegroup" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EKSNodegroupResource, Scope: nuke.Account, Lister: &EKSNodegroupLister{}, + DeprecatedAliases: []string{ + "EKSNodegroups", + }, }) } diff --git a/resources/elasticache-cacheparametergroups.go b/resources/elasticache-cacheparametergroups.go index aa9981a9..5b34e2b5 100644 --- a/resources/elasticache-cacheparametergroups.go +++ b/resources/elasticache-cacheparametergroups.go @@ -18,7 +18,7 @@ import ( const ElasticacheCacheParameterGroupResource = "ElasticacheCacheParameterGroup" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ElasticacheCacheParameterGroupResource, Scope: nuke.Account, Lister: &ElasticacheCacheParameterGroupLister{}, diff --git a/resources/elasticache-memcacheclusters.go b/resources/elasticache-memcacheclusters.go index 676a1cd0..19ad3039 100644 --- a/resources/elasticache-memcacheclusters.go +++ b/resources/elasticache-memcacheclusters.go @@ -14,7 +14,7 @@ import ( const ElasticacheCacheClusterResource = "ElasticacheCacheCluster" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ElasticacheCacheClusterResource, Scope: nuke.Account, Lister: &ElasticacheCacheClusterLister{}, diff --git a/resources/elasticache-replicationgroups.go b/resources/elasticache-replicationgroups.go index 9f3b07cf..0942169a 100644 --- a/resources/elasticache-replicationgroups.go +++ b/resources/elasticache-replicationgroups.go @@ -14,7 +14,7 @@ import ( const ElasticacheReplicationGroupResource = "ElasticacheReplicationGroup" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ElasticacheReplicationGroupResource, Scope: nuke.Account, Lister: &ElasticacheReplicationGroupLister{}, diff --git a/resources/elasticache-subnetgroups.go b/resources/elasticache-subnetgroups.go index d8be4a09..3f28fb99 100644 --- a/resources/elasticache-subnetgroups.go +++ b/resources/elasticache-subnetgroups.go @@ -14,7 +14,7 @@ import ( const ElasticacheSubnetGroupResource = "ElasticacheSubnetGroup" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ElasticacheSubnetGroupResource, Scope: nuke.Account, Lister: &ElasticacheSubnetGroupLister{}, diff --git a/resources/elasticbeanstalk-applications.go b/resources/elasticbeanstalk-applications.go index eafb53fd..89a078d0 100644 --- a/resources/elasticbeanstalk-applications.go +++ b/resources/elasticbeanstalk-applications.go @@ -13,7 +13,7 @@ import ( const ElasticBeanstalkApplicationResource = "ElasticBeanstalkApplication" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ElasticBeanstalkApplicationResource, Scope: nuke.Account, Lister: &ElasticBeanstalkApplicationLister{}, diff --git a/resources/elasticbeanstalk-environments.go b/resources/elasticbeanstalk-environments.go index 247657db..d466f610 100644 --- a/resources/elasticbeanstalk-environments.go +++ b/resources/elasticbeanstalk-environments.go @@ -15,7 +15,7 @@ import ( const ElasticBeanstalkEnvironmentResource = "ElasticBeanstalkEnvironment" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ElasticBeanstalkEnvironmentResource, Scope: nuke.Account, Lister: &ElasticBeanstalkEnvironmentLister{}, @@ -75,9 +75,9 @@ func (f *ElasticBeanstalkEnvironment) Remove(_ context.Context) error { return err } -func (e *ElasticBeanstalkEnvironment) Properties() types.Properties { +func (f *ElasticBeanstalkEnvironment) Properties() types.Properties { return types.NewProperties(). - Set("Name", e.name) + Set("Name", f.name) } func (f *ElasticBeanstalkEnvironment) String() string { diff --git a/resources/elasticsearchservice-domain.go b/resources/elasticsearchservice-domain.go index 88a35ca8..9af1a9a6 100644 --- a/resources/elasticsearchservice-domain.go +++ b/resources/elasticsearchservice-domain.go @@ -14,7 +14,7 @@ import ( const ESDomainResource = "ESDomain" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ESDomainResource, Scope: nuke.Account, Lister: &ESDomainLister{}, diff --git a/resources/elastictranscoder-pipelines.go b/resources/elastictranscoder-pipelines.go index bdcb7b2e..d89e1965 100644 --- a/resources/elastictranscoder-pipelines.go +++ b/resources/elastictranscoder-pipelines.go @@ -13,7 +13,7 @@ import ( const ElasticTranscoderPipelineResource = "ElasticTranscoderPipeline" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ElasticTranscoderPipelineResource, Scope: nuke.Account, Lister: &ElasticTranscoderPipelineLister{}, diff --git a/resources/elb-elb.go b/resources/elb-elb.go index d8dd12df..53cc5319 100644 --- a/resources/elb-elb.go +++ b/resources/elb-elb.go @@ -16,7 +16,7 @@ import ( const ELBResource = "ELB" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ELBResource, Scope: nuke.Account, Lister: &ELBLister{}, diff --git a/resources/elbv2-alb.go b/resources/elbv2-alb.go index 344c54cd..a2d3b73f 100644 --- a/resources/elbv2-alb.go +++ b/resources/elbv2-alb.go @@ -2,6 +2,7 @@ package resources import ( "context" + "github.com/ekristen/libnuke/pkg/settings" "errors" "time" @@ -10,7 +11,6 @@ import ( "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/service/elbv2" - "github.com/ekristen/libnuke/pkg/featureflag" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -18,16 +18,16 @@ import ( ) type ELBv2LoadBalancer struct { - svc *elbv2.ELBV2 - tags []*elbv2.Tag - elb *elbv2.LoadBalancer - featureFlags *featureflag.FeatureFlags + svc *elbv2.ELBV2 + tags []*elbv2.Tag + elb *elbv2.LoadBalancer + settings *settings.Setting } const ELBv2Resource = "ELBv2" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ELBv2Resource, Scope: nuke.Account, Lister: &ELBv2Lister{}, @@ -87,22 +87,17 @@ func (l *ELBv2Lister) List(_ context.Context, o interface{}) ([]resource.Resourc return resources, nil } -func (e *ELBv2LoadBalancer) FeatureFlags(ff *featureflag.FeatureFlags) { - e.featureFlags = ff +func (e *ELBv2LoadBalancer) Settings(setting *settings.Setting) { + e.settings = setting } func (e *ELBv2LoadBalancer) Remove(_ context.Context) error { - ffdddElbV2, err := e.featureFlags.Get("DisableDeletionProtection_ELBv2") - if err != nil { - return err - } - params := &elbv2.DeleteLoadBalancerInput{ LoadBalancerArn: e.elb.LoadBalancerArn, } if _, err := e.svc.DeleteLoadBalancer(params); err != nil { - if ffdddElbV2.Enabled() { + if e.settings.Get("DisableDeletionProtection").(bool) { var awsErr awserr.Error ok := errors.As(err, &awsErr) if ok && awsErr.Code() == "OperationNotPermitted" && diff --git a/resources/elbv2-targetgroup.go b/resources/elbv2-targetgroup.go index ee7a4c63..91affcb2 100644 --- a/resources/elbv2-targetgroup.go +++ b/resources/elbv2-targetgroup.go @@ -14,7 +14,7 @@ import ( const ELBv2TargetGroupResource = "ELBv2TargetGroup" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ELBv2TargetGroupResource, Scope: nuke.Account, Lister: &ELBv2TargetGroupLister{}, diff --git a/resources/emr-clusters.go b/resources/emr-clusters.go index 187373f4..ff477578 100644 --- a/resources/emr-clusters.go +++ b/resources/emr-clusters.go @@ -18,7 +18,7 @@ import ( const EMRClusterResource = "EMRCluster" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EMRClusterResource, Scope: nuke.Account, Lister: &EMRClusterLister{}, diff --git a/resources/emr-securityconfigurations.go b/resources/emr-securityconfigurations.go index 711e495b..1a1b38a0 100644 --- a/resources/emr-securityconfigurations.go +++ b/resources/emr-securityconfigurations.go @@ -13,7 +13,7 @@ import ( const EMRSecurityConfigurationResource = "EMRSecurityConfiguration" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: EMRSecurityConfigurationResource, Scope: nuke.Account, Lister: &EMRSecurityConfigurationLister{}, diff --git a/resources/firehose-deliverystreams.go b/resources/firehose-deliverystreams.go index c6fdd4cd..d4e5b47f 100644 --- a/resources/firehose-deliverystreams.go +++ b/resources/firehose-deliverystreams.go @@ -14,7 +14,7 @@ import ( const FirehoseDeliveryStreamResource = "FirehoseDeliveryStream" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: FirehoseDeliveryStreamResource, Scope: nuke.Account, Lister: &FirehoseDeliveryStreamLister{}, diff --git a/resources/fms-notification-channels.go b/resources/fms-notification-channels.go index 98402cb0..ea47c432 100644 --- a/resources/fms-notification-channels.go +++ b/resources/fms-notification-channels.go @@ -16,7 +16,7 @@ import ( const FMSNotificationChannelResource = "FMSNotificationChannel" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: FMSNotificationChannelResource, Scope: nuke.Account, Lister: &FMSNotificationChannelLister{}, diff --git a/resources/fms-policies.go b/resources/fms-policies.go index c9d7587a..fa91eae0 100644 --- a/resources/fms-policies.go +++ b/resources/fms-policies.go @@ -15,7 +15,7 @@ import ( const FMSPolicyResource = "FMSPolicy" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: FMSPolicyResource, Scope: nuke.Account, Lister: &FMSPolicyLister{}, diff --git a/resources/fsx-backups.go b/resources/fsx-backups.go index 53bf07d6..4cf0657e 100644 --- a/resources/fsx-backups.go +++ b/resources/fsx-backups.go @@ -15,7 +15,7 @@ import ( const FSxBackupResource = "FSxBackup" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: FSxBackupResource, Scope: nuke.Account, Lister: &FSxBackupLister{}, diff --git a/resources/fsx-filesystems.go b/resources/fsx-filesystems.go index ea06b90b..3312b157 100644 --- a/resources/fsx-filesystems.go +++ b/resources/fsx-filesystems.go @@ -15,7 +15,7 @@ import ( const FSxFileSystemResource = "FSxFileSystem" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: FSxFileSystemResource, Scope: nuke.Account, Lister: &FSxFileSystemLister{}, diff --git a/resources/ga-accelerators.go b/resources/ga-accelerators.go index 75717225..a7c47b24 100644 --- a/resources/ga-accelerators.go +++ b/resources/ga-accelerators.go @@ -20,7 +20,7 @@ type GlobalAccelerator struct { const GlobalAcceleratorResource = "GlobalAccelerator" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: GlobalAcceleratorResource, Scope: nuke.Account, Lister: &GlobalAcceleratorLister{}, diff --git a/resources/ga-endpoints.go b/resources/ga-endpoints.go index 36622ea6..2f3da81d 100644 --- a/resources/ga-endpoints.go +++ b/resources/ga-endpoints.go @@ -15,7 +15,7 @@ import ( const GlobalAcceleratorEndpointGroupResource = "GlobalAcceleratorEndpointGroup" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: GlobalAcceleratorEndpointGroupResource, Scope: nuke.Account, Lister: &GlobalAcceleratorEndpointGroupLister{}, diff --git a/resources/ga-listeners.go b/resources/ga-listeners.go index 8bae2a98..1f80af3d 100644 --- a/resources/ga-listeners.go +++ b/resources/ga-listeners.go @@ -15,7 +15,7 @@ import ( const GlobalAcceleratorListenerResource = "GlobalAcceleratorListener" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: GlobalAcceleratorListenerResource, Scope: nuke.Account, Lister: &GlobalAcceleratorListenerLister{}, diff --git a/resources/glue-classifiers.go b/resources/glue-classifiers.go index d3276755..393f9baa 100644 --- a/resources/glue-classifiers.go +++ b/resources/glue-classifiers.go @@ -14,7 +14,7 @@ import ( const GlueClassifierResource = "GlueClassifier" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: GlueClassifierResource, Scope: nuke.Account, Lister: &GlueClassifierLister{}, diff --git a/resources/glue-connections.go b/resources/glue-connections.go index d0f505d0..00da814c 100644 --- a/resources/glue-connections.go +++ b/resources/glue-connections.go @@ -14,7 +14,7 @@ import ( const GlueConnectionResource = "GlueConnection" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: GlueConnectionResource, Scope: nuke.Account, Lister: &GlueConnectionLister{}, diff --git a/resources/glue-crawlers.go b/resources/glue-crawlers.go index 916603e6..81ba0694 100644 --- a/resources/glue-crawlers.go +++ b/resources/glue-crawlers.go @@ -14,7 +14,7 @@ import ( const GlueCrawlerResource = "GlueCrawler" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: GlueCrawlerResource, Scope: nuke.Account, Lister: &GlueCrawlerLister{}, diff --git a/resources/glue-databases.go b/resources/glue-databases.go index 12673a73..025b7c8d 100644 --- a/resources/glue-databases.go +++ b/resources/glue-databases.go @@ -14,7 +14,7 @@ import ( const GlueDatabaseResource = "GlueDatabase" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: GlueDatabaseResource, Scope: nuke.Account, Lister: &GlueDatabaseLister{}, diff --git a/resources/glue-devendpoints.go b/resources/glue-devendpoints.go index 04c4b4ae..85c6422d 100644 --- a/resources/glue-devendpoints.go +++ b/resources/glue-devendpoints.go @@ -14,7 +14,7 @@ import ( const GlueDevEndpointResource = "GlueDevEndpoint" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: GlueDevEndpointResource, Scope: nuke.Account, Lister: &GlueDevEndpointLister{}, diff --git a/resources/glue-jobs.go b/resources/glue-jobs.go index af6a7e37..3bfa1c53 100644 --- a/resources/glue-jobs.go +++ b/resources/glue-jobs.go @@ -14,7 +14,7 @@ import ( const GlueJobResource = "GlueJob" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: GlueJobResource, Scope: nuke.Account, Lister: &GlueJobLister{}, diff --git a/resources/glue-triggers.go b/resources/glue-triggers.go index 3556ba62..086feeb2 100644 --- a/resources/glue-triggers.go +++ b/resources/glue-triggers.go @@ -14,7 +14,7 @@ import ( const GlueTriggerResource = "GlueTrigger" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: GlueTriggerResource, Scope: nuke.Account, Lister: &GlueTriggerLister{}, diff --git a/resources/gluedatabrew-datasets.go b/resources/gluedatabrew-datasets.go index 53ede302..b1573104 100644 --- a/resources/gluedatabrew-datasets.go +++ b/resources/gluedatabrew-datasets.go @@ -14,7 +14,7 @@ import ( const GlueDataBrewDatasetsResource = "GlueDataBrewDatasets" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: GlueDataBrewDatasetsResource, Scope: nuke.Account, Lister: &GlueDataBrewDatasetsLister{}, diff --git a/resources/gluedatabrew-jobs.go b/resources/gluedatabrew-jobs.go index f700b85c..08c90523 100644 --- a/resources/gluedatabrew-jobs.go +++ b/resources/gluedatabrew-jobs.go @@ -14,7 +14,7 @@ import ( const GlueDataBrewJobsResource = "GlueDataBrewJobs" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: GlueDataBrewJobsResource, Scope: nuke.Account, Lister: &GlueDataBrewJobsLister{}, diff --git a/resources/gluedatabrew-projects.go b/resources/gluedatabrew-projects.go index 6c6e4588..3dc14117 100644 --- a/resources/gluedatabrew-projects.go +++ b/resources/gluedatabrew-projects.go @@ -14,7 +14,7 @@ import ( const GlueDataBrewProjectsResource = "GlueDataBrewProjects" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: GlueDataBrewProjectsResource, Scope: nuke.Account, Lister: &GlueDataBrewProjectsLister{}, diff --git a/resources/gluedatabrew-recipe.go b/resources/gluedatabrew-recipe.go index 967448dc..a010cfed 100644 --- a/resources/gluedatabrew-recipe.go +++ b/resources/gluedatabrew-recipe.go @@ -14,7 +14,7 @@ import ( const GlueDataBrewRecipeResource = "GlueDataBrewRecipe" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: GlueDataBrewRecipeResource, Scope: nuke.Account, Lister: &GlueDataBrewRecipeLister{}, diff --git a/resources/gluedatabrew-rulesets.go b/resources/gluedatabrew-rulesets.go index a00d1a11..4e3273da 100644 --- a/resources/gluedatabrew-rulesets.go +++ b/resources/gluedatabrew-rulesets.go @@ -14,7 +14,7 @@ import ( const GlueDataBrewRulesetsResource = "GlueDataBrewRulesets" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: GlueDataBrewRulesetsResource, Scope: nuke.Account, Lister: &GlueDataBrewRulesetsLister{}, diff --git a/resources/gluedatabrew-schedules.go b/resources/gluedatabrew-schedules.go index 9b24eb87..d3b75040 100644 --- a/resources/gluedatabrew-schedules.go +++ b/resources/gluedatabrew-schedules.go @@ -14,7 +14,7 @@ import ( const GlueDataBrewSchedulesResource = "GlueDataBrewSchedules" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: GlueDataBrewSchedulesResource, Scope: nuke.Account, Lister: &GlueDataBrewSchedulesLister{}, diff --git a/resources/guardduty.go b/resources/guardduty.go index ae0594a6..8fc49e48 100644 --- a/resources/guardduty.go +++ b/resources/guardduty.go @@ -14,7 +14,7 @@ import ( const GuardDutyDetectorResource = "GuardDutyDetector" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: GuardDutyDetectorResource, Scope: nuke.Account, Lister: &GuardDutyDetectorLister{}, diff --git a/resources/iam-account-setting-password-policy.go b/resources/iam-account-setting-password-policy.go index d0a1176d..dc5a9021 100644 --- a/resources/iam-account-setting-password-policy.go +++ b/resources/iam-account-setting-password-policy.go @@ -17,7 +17,7 @@ import ( const IAMAccountSettingPasswordPolicyResource = "IAMAccountSettingPasswordPolicy" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IAMAccountSettingPasswordPolicyResource, Scope: nuke.Account, Lister: &IAMAccountSettingPasswordPolicyLister{}, diff --git a/resources/iam-group-policies.go b/resources/iam-group-policies.go index fd8b02d2..7c8a27c4 100644 --- a/resources/iam-group-policies.go +++ b/resources/iam-group-policies.go @@ -16,7 +16,7 @@ import ( const IAMGroupPolicyResource = "IAMGroupPolicy" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IAMGroupPolicyResource, Scope: nuke.Account, Lister: &IAMGroupPolicyLister{}, diff --git a/resources/iam-group-policy-attachments.go b/resources/iam-group-policy-attachments.go index 038516a1..d093a949 100644 --- a/resources/iam-group-policy-attachments.go +++ b/resources/iam-group-policy-attachments.go @@ -17,10 +17,13 @@ import ( const IAMGroupPolicyAttachmentResource = "IAMGroupPolicyAttachment" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IAMGroupPolicyAttachmentResource, Scope: nuke.Account, Lister: &IAMGroupPolicyAttachmentLister{}, + DeprecatedAliases: []string{ + "IamGroupPolicyAttachement", + }, }) } diff --git a/resources/iam-groups.go b/resources/iam-groups.go index b8223648..e4660d7a 100644 --- a/resources/iam-groups.go +++ b/resources/iam-groups.go @@ -15,7 +15,7 @@ import ( const IAMGroupResource = "IAMGroup" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IAMGroupResource, Scope: nuke.Account, Lister: &IAMGroupLister{}, @@ -23,6 +23,9 @@ func init() { IAMUserGroupAttachmentResource, IAMGroupPolicyResource, }, + DeprecatedAliases: []string{ + "IamGroup", + }, }) } diff --git a/resources/iam-instance-profile-roles.go b/resources/iam-instance-profile-roles.go index 1b775d7f..b7c86c8e 100644 --- a/resources/iam-instance-profile-roles.go +++ b/resources/iam-instance-profile-roles.go @@ -21,10 +21,13 @@ import ( const IAMInstanceProfileRoleResource = "IAMInstanceProfileRole" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IAMInstanceProfileRoleResource, Scope: nuke.Account, Lister: &IAMInstanceProfileRoleLister{}, + DeprecatedAliases: []string{ + "IamInstanceProfileRole", + }, }) } diff --git a/resources/iam-instance-profiles.go b/resources/iam-instance-profiles.go index ae46174f..9b381ec6 100644 --- a/resources/iam-instance-profiles.go +++ b/resources/iam-instance-profiles.go @@ -17,10 +17,13 @@ import ( const IAMInstanceProfileResource = "IAMInstanceProfile" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IAMInstanceProfileResource, Scope: nuke.Account, Lister: &IAMInstanceProfileLister{}, + DeprecatedAliases: []string{ + "IamInstanceProfile", + }, }) } diff --git a/resources/iam-login-profiles.go b/resources/iam-login-profiles.go index faa53dd2..e45d2815 100644 --- a/resources/iam-login-profiles.go +++ b/resources/iam-login-profiles.go @@ -21,7 +21,7 @@ import ( const IAMLoginProfileResource = "IAMLoginProfile" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IAMLoginProfileResource, Scope: nuke.Account, Lister: &IAMLoginProfileLister{}, diff --git a/resources/iam-open-id-connect-provider.go b/resources/iam-open-id-connect-provider.go index e6455fb9..f7848149 100644 --- a/resources/iam-open-id-connect-provider.go +++ b/resources/iam-open-id-connect-provider.go @@ -15,7 +15,7 @@ import ( const IAMOpenIDConnectProviderResource = "IAMOpenIDConnectProvider" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IAMOpenIDConnectProviderResource, Scope: nuke.Account, Lister: &IAMOpenIDConnectProviderLister{}, diff --git a/resources/iam-policies.go b/resources/iam-policies.go index aa09af80..ae51c301 100644 --- a/resources/iam-policies.go +++ b/resources/iam-policies.go @@ -18,7 +18,7 @@ import ( const IAMPolicyResource = "IAMPolicy" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IAMPolicyResource, Scope: nuke.Account, Lister: &IAMPolicyLister{}, @@ -27,6 +27,9 @@ func init() { IAMGroupPolicyAttachmentResource, IAMRolePolicyAttachmentResource, }, + DeprecatedAliases: []string{ + "IamPolicy", + }, }) } diff --git a/resources/iam-role-policy-attachments.go b/resources/iam-role-policy-attachments.go index bce2010f..d62e327d 100644 --- a/resources/iam-role-policy-attachments.go +++ b/resources/iam-role-policy-attachments.go @@ -21,10 +21,13 @@ import ( const IAMRolePolicyAttachmentResource = "IAMRolePolicyAttachment" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IAMRolePolicyAttachmentResource, Scope: nuke.Account, Lister: &IAMRolePolicyAttachmentLister{}, + DeprecatedAliases: []string{ + "IamRolePolicyAttachement", + }, }) } diff --git a/resources/iam-role-policy.go b/resources/iam-role-policy.go index 8dab78ad..e5711ed3 100644 --- a/resources/iam-role-policy.go +++ b/resources/iam-role-policy.go @@ -20,7 +20,7 @@ import ( const IAMRolePolicyResource = "IAMRolePolicy" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IAMRolePolicyResource, Scope: nuke.Account, Lister: &IAMRolePolicyLister{}, diff --git a/resources/iam-roles.go b/resources/iam-roles.go index 92d9e94a..6e0bd410 100644 --- a/resources/iam-roles.go +++ b/resources/iam-roles.go @@ -22,13 +22,16 @@ import ( const IAMRoleResource = "IAMRole" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IAMRoleResource, Scope: nuke.Account, Lister: &IAMRoleLister{}, DependsOn: []string{ IAMRolePolicyAttachmentResource, }, + DeprecatedAliases: []string{ + "IamRole", + }, }) } diff --git a/resources/iam-saml-provider.go b/resources/iam-saml-provider.go index e3d3ae62..9388bbd4 100644 --- a/resources/iam-saml-provider.go +++ b/resources/iam-saml-provider.go @@ -12,7 +12,7 @@ import ( const IAMSAMLProviderResource = "IAMSAMLProvider" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IAMSAMLProviderResource, Scope: nuke.Account, Lister: &IAMSAMLProviderLister{}, diff --git a/resources/iam-server-certificate.go b/resources/iam-server-certificate.go index 4889197c..7d8fc852 100644 --- a/resources/iam-server-certificate.go +++ b/resources/iam-server-certificate.go @@ -14,10 +14,13 @@ import ( const IAMServerCertificateResource = "IAMServerCertificate" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IAMServerCertificateResource, Scope: nuke.Account, Lister: &IAMServerCertificateLister{}, + DeprecatedAliases: []string{ + "IamServerCertificate", + }, }) } diff --git a/resources/iam-service-specific-credentials.go b/resources/iam-service-specific-credentials.go index 28eeddb6..ea0fc365 100644 --- a/resources/iam-service-specific-credentials.go +++ b/resources/iam-service-specific-credentials.go @@ -17,7 +17,7 @@ import ( const IAMServiceSpecificCredentialResource = "IAMServiceSpecificCredential" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IAMServiceSpecificCredentialResource, Scope: nuke.Account, Lister: &IAMServiceSpecificCredentialLister{}, diff --git a/resources/iam-signing-certificate.go b/resources/iam-signing-certificate.go index 750fe58a..5d7161d1 100644 --- a/resources/iam-signing-certificate.go +++ b/resources/iam-signing-certificate.go @@ -20,7 +20,7 @@ import ( const IAMSigningCertificateResource = "IAMSigningCertificate" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IAMSigningCertificateResource, Scope: nuke.Account, Lister: &IAMSigningCertificateLister{}, diff --git a/resources/iam-user-access-key.go b/resources/iam-user-access-key.go index 95fe2cca..7415e6c3 100644 --- a/resources/iam-user-access-key.go +++ b/resources/iam-user-access-key.go @@ -17,10 +17,13 @@ import ( const IAMUserAccessKeyResource = "IAMUserAccessKey" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IAMUserAccessKeyResource, Scope: nuke.Account, Lister: &IAMUserAccessKeyLister{}, + DeprecatedAliases: []string{ + "IamUserAccessKeys", + }, }) } diff --git a/resources/iam-user-group-attachments.go b/resources/iam-user-group-attachments.go index 5dca70e8..bf216292 100644 --- a/resources/iam-user-group-attachments.go +++ b/resources/iam-user-group-attachments.go @@ -17,10 +17,13 @@ import ( const IAMUserGroupAttachmentResource = "IAMUserGroupAttachment" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IAMUserGroupAttachmentResource, Scope: nuke.Account, Lister: &IAMUserGroupAttachmentLister{}, + DeprecatedAliases: []string{ + "IamUserGroupAttachement", + }, }) } diff --git a/resources/iam-user-https-git-credential.go b/resources/iam-user-https-git-credential.go index 86299dd5..2f2a8386 100644 --- a/resources/iam-user-https-git-credential.go +++ b/resources/iam-user-https-git-credential.go @@ -18,7 +18,7 @@ import ( const IAMUserHTTPSGitCredentialResource = "IAMUserHTTPSGitCredential" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IAMUserHTTPSGitCredentialResource, Scope: nuke.Account, Lister: &IAMUserHTTPSGitCredentialLister{}, diff --git a/resources/iam-user-policy-attachment.go b/resources/iam-user-policy-attachment.go index e3ed0d0e..8c3608da 100644 --- a/resources/iam-user-policy-attachment.go +++ b/resources/iam-user-policy-attachment.go @@ -19,10 +19,13 @@ import ( const IAMUserPolicyAttachmentResource = "IAMUserPolicyAttachment" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IAMUserPolicyAttachmentResource, Scope: nuke.Account, Lister: &IAMUserPolicyAttachmentLister{}, + DeprecatedAliases: []string{ + "IamUserPolicyAttachement", + }, }) } diff --git a/resources/iam-user-policy.go b/resources/iam-user-policy.go index c1748b27..c8b16270 100644 --- a/resources/iam-user-policy.go +++ b/resources/iam-user-policy.go @@ -16,7 +16,7 @@ import ( const IAMUserPolicyResource = "IAMUserPolicy" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IAMUserPolicyResource, Scope: nuke.Account, Lister: &IAMUserPolicyLister{}, diff --git a/resources/iam-user-ssh-keys.go b/resources/iam-user-ssh-keys.go index b78242e7..d7db68e2 100644 --- a/resources/iam-user-ssh-keys.go +++ b/resources/iam-user-ssh-keys.go @@ -17,7 +17,7 @@ import ( const IAMUserSSHPublicKeyResource = "IAMUserSSHPublicKey" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IAMUserSSHPublicKeyResource, Scope: nuke.Account, Lister: &IAMUserSSHPublicKeyLister{}, diff --git a/resources/iam-users.go b/resources/iam-users.go index 94015bde..2fc924f3 100644 --- a/resources/iam-users.go +++ b/resources/iam-users.go @@ -17,7 +17,7 @@ import ( const IAMUserResource = "IAMUser" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IAMUserResource, Scope: nuke.Account, Lister: &IAMUsersLister{}, @@ -28,6 +28,9 @@ func init() { IAMUserPolicyAttachmentResource, IAMVirtualMFADeviceResource, }, + DeprecatedAliases: []string{ + "IamUser", + }, }) } diff --git a/resources/iam-virtual-mfa-devices.go b/resources/iam-virtual-mfa-devices.go index 0c4b11e4..d972ede4 100644 --- a/resources/iam-virtual-mfa-devices.go +++ b/resources/iam-virtual-mfa-devices.go @@ -20,7 +20,7 @@ import ( const IAMVirtualMFADeviceResource = "IAMVirtualMFADevice" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IAMVirtualMFADeviceResource, Scope: nuke.Account, Lister: &IAMVirtualMFADeviceLister{}, diff --git a/resources/imagebuilder-components.go b/resources/imagebuilder-components.go index 7c357c91..2cf8ab69 100644 --- a/resources/imagebuilder-components.go +++ b/resources/imagebuilder-components.go @@ -14,7 +14,7 @@ import ( const ImageBuilderComponentResource = "ImageBuilderComponent" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ImageBuilderComponentResource, Scope: nuke.Account, Lister: &ImageBuilderComponentLister{}, diff --git a/resources/imagebuilder-distribution-configurations.go b/resources/imagebuilder-distribution-configurations.go index d7c537dc..dd15b718 100644 --- a/resources/imagebuilder-distribution-configurations.go +++ b/resources/imagebuilder-distribution-configurations.go @@ -14,7 +14,7 @@ import ( const ImageBuilderDistributionConfigurationResource = "ImageBuilderDistributionConfiguration" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ImageBuilderDistributionConfigurationResource, Scope: nuke.Account, Lister: &ImageBuilderDistributionConfigurationLister{}, diff --git a/resources/imagebuilder-images.go b/resources/imagebuilder-images.go index afddc5e0..dbe1d1d7 100644 --- a/resources/imagebuilder-images.go +++ b/resources/imagebuilder-images.go @@ -14,7 +14,7 @@ import ( const ImageBuilderImageResource = "ImageBuilderImage" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ImageBuilderImageResource, Scope: nuke.Account, Lister: &ImageBuilderImageLister{}, diff --git a/resources/imagebuilder-infrastructure-configurations.go b/resources/imagebuilder-infrastructure-configurations.go index 27bce7a7..a12557b1 100644 --- a/resources/imagebuilder-infrastructure-configurations.go +++ b/resources/imagebuilder-infrastructure-configurations.go @@ -14,7 +14,7 @@ import ( const ImageBuilderInfrastructureConfigurationResource = "ImageBuilderInfrastructureConfiguration" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ImageBuilderInfrastructureConfigurationResource, Scope: nuke.Account, Lister: &ImageBuilderInfrastructureConfigurationLister{}, diff --git a/resources/imagebuilder-pipelines.go b/resources/imagebuilder-pipelines.go index ac895617..5ce2994c 100644 --- a/resources/imagebuilder-pipelines.go +++ b/resources/imagebuilder-pipelines.go @@ -14,7 +14,7 @@ import ( const ImageBuilderPipelineResource = "ImageBuilderPipeline" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ImageBuilderPipelineResource, Scope: nuke.Account, Lister: &ImageBuilderPipelineLister{}, diff --git a/resources/imagebuilder-recipes.go b/resources/imagebuilder-recipes.go index 5a191ed8..26c1e40b 100644 --- a/resources/imagebuilder-recipes.go +++ b/resources/imagebuilder-recipes.go @@ -14,7 +14,7 @@ import ( const ImageBuilderRecipeResource = "ImageBuilderRecipe" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ImageBuilderRecipeResource, Scope: nuke.Account, Lister: &ImageBuilderRecipeLister{}, diff --git a/resources/inspector-assessment-runs.go b/resources/inspector-assessment-runs.go index 6df304da..6f95a479 100644 --- a/resources/inspector-assessment-runs.go +++ b/resources/inspector-assessment-runs.go @@ -13,7 +13,7 @@ import ( const InspectorAssessmentRunResource = "InspectorAssessmentRun" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: InspectorAssessmentRunResource, Scope: nuke.Account, Lister: &InspectorAssessmentRunLister{}, diff --git a/resources/inspector-assessment-targets.go b/resources/inspector-assessment-targets.go index 28f7a3f0..b8ecb63f 100644 --- a/resources/inspector-assessment-targets.go +++ b/resources/inspector-assessment-targets.go @@ -13,7 +13,7 @@ import ( const InspectorAssessmentTargetResource = "InspectorAssessmentTarget" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: InspectorAssessmentTargetResource, Scope: nuke.Account, Lister: &InspectorAssessmentTargetLister{}, diff --git a/resources/inspector-assessment-templates.go b/resources/inspector-assessment-templates.go index b3faa559..56e57526 100644 --- a/resources/inspector-assessment-templates.go +++ b/resources/inspector-assessment-templates.go @@ -13,7 +13,7 @@ import ( const InspectorAssessmentTemplateResource = "InspectorAssessmentTemplate" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: InspectorAssessmentTemplateResource, Scope: nuke.Account, Lister: &InspectorAssessmentTemplateLister{}, diff --git a/resources/inspector2.go b/resources/inspector2.go index f4cab2e6..060a5153 100644 --- a/resources/inspector2.go +++ b/resources/inspector2.go @@ -14,7 +14,7 @@ import ( const Inspector2Resource = "Inspector2" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: Inspector2Resource, Scope: nuke.Account, Lister: &Inspector2Lister{}, diff --git a/resources/iot-authorizers.go b/resources/iot-authorizers.go index 958f370d..02079a3f 100644 --- a/resources/iot-authorizers.go +++ b/resources/iot-authorizers.go @@ -13,7 +13,7 @@ import ( const IoTAuthorizerResource = "IoTAuthorizer" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IoTAuthorizerResource, Scope: nuke.Account, Lister: &IoTAuthorizerLister{}, diff --git a/resources/iot-cacertificates.go b/resources/iot-cacertificates.go index 5ba95378..2b425181 100644 --- a/resources/iot-cacertificates.go +++ b/resources/iot-cacertificates.go @@ -14,7 +14,7 @@ import ( const IoTCACertificateResource = "IoTCACertificate" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IoTCACertificateResource, Scope: nuke.Account, Lister: &IoTCACertificateLister{}, diff --git a/resources/iot-certificates.go b/resources/iot-certificates.go index d1799039..b8c56bcc 100644 --- a/resources/iot-certificates.go +++ b/resources/iot-certificates.go @@ -14,7 +14,7 @@ import ( const IoTCertificateResource = "IoTCertificate" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IoTCertificateResource, Scope: nuke.Account, Lister: &IoTCertificateLister{}, diff --git a/resources/iot-jobs.go b/resources/iot-jobs.go index 774bcda7..ec699094 100644 --- a/resources/iot-jobs.go +++ b/resources/iot-jobs.go @@ -14,7 +14,7 @@ import ( const IoTJobResource = "IoTJob" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IoTJobResource, Scope: nuke.Account, Lister: &IoTJobLister{}, diff --git a/resources/iot-otaupdates.go b/resources/iot-otaupdates.go index 198e0279..2c520aac 100644 --- a/resources/iot-otaupdates.go +++ b/resources/iot-otaupdates.go @@ -14,7 +14,7 @@ import ( const IoTOTAUpdateResource = "IoTOTAUpdate" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IoTOTAUpdateResource, Scope: nuke.Account, Lister: &IoTOTAUpdateLister{}, diff --git a/resources/iot-policies.go b/resources/iot-policies.go index effa733a..0d0bfcdb 100644 --- a/resources/iot-policies.go +++ b/resources/iot-policies.go @@ -14,7 +14,7 @@ import ( const IoTPolicyResource = "IoTPolicy" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IoTPolicyResource, Scope: nuke.Account, Lister: &IoTPolicyLister{}, diff --git a/resources/iot-rolealiases.go b/resources/iot-rolealiases.go index 34fcdf81..8e843413 100644 --- a/resources/iot-rolealiases.go +++ b/resources/iot-rolealiases.go @@ -14,7 +14,7 @@ import ( const IoTRoleAliasResource = "IoTRoleAlias" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IoTRoleAliasResource, Scope: nuke.Account, Lister: &IoTRoleAliasLister{}, diff --git a/resources/iot-streams.go b/resources/iot-streams.go index 6cb7641d..0001b69b 100644 --- a/resources/iot-streams.go +++ b/resources/iot-streams.go @@ -14,7 +14,7 @@ import ( const IoTStreamResource = "IoTStream" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IoTStreamResource, Scope: nuke.Account, Lister: &IoTStreamLister{}, diff --git a/resources/iot-thinggroups.go b/resources/iot-thinggroups.go index 97463da8..5b61163c 100644 --- a/resources/iot-thinggroups.go +++ b/resources/iot-thinggroups.go @@ -14,7 +14,7 @@ import ( const IoTThingGroupResource = "IoTThingGroup" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IoTThingGroupResource, Scope: nuke.Account, Lister: &IoTThingGroupLister{}, diff --git a/resources/iot-things.go b/resources/iot-things.go index c001c980..4ab58946 100644 --- a/resources/iot-things.go +++ b/resources/iot-things.go @@ -14,7 +14,7 @@ import ( const IoTThingResource = "IoTThing" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IoTThingResource, Scope: nuke.Account, Lister: &IoTThingLister{}, diff --git a/resources/iot-thingtypes.go b/resources/iot-thingtypes.go index 0cab1c8d..1f659b71 100644 --- a/resources/iot-thingtypes.go +++ b/resources/iot-thingtypes.go @@ -14,7 +14,7 @@ import ( const IoTThingTypeResource = "IoTThingType" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IoTThingTypeResource, Scope: nuke.Account, Lister: &IoTThingTypeLister{}, diff --git a/resources/iot-thingtypestates.go b/resources/iot-thingtypestates.go index 6f1adb55..ab07ee4e 100644 --- a/resources/iot-thingtypestates.go +++ b/resources/iot-thingtypestates.go @@ -17,7 +17,7 @@ import ( const IoTThingTypeStateResource = "IoTThingTypeState" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IoTThingTypeStateResource, Scope: nuke.Account, Lister: &IoTThingTypeStateLister{}, diff --git a/resources/iot-topicrules.go b/resources/iot-topicrules.go index 102f6d8e..5b3993f5 100644 --- a/resources/iot-topicrules.go +++ b/resources/iot-topicrules.go @@ -14,7 +14,7 @@ import ( const IoTTopicRuleResource = "IoTTopicRule" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: IoTTopicRuleResource, Scope: nuke.Account, Lister: &IoTTopicRuleLister{}, diff --git a/resources/kendra-indexes.go b/resources/kendra-indexes.go index 64a7a6e8..b41a3860 100644 --- a/resources/kendra-indexes.go +++ b/resources/kendra-indexes.go @@ -15,7 +15,7 @@ import ( const KendraIndexResource = "KendraIndex" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: KendraIndexResource, Scope: nuke.Account, Lister: &KendraIndexLister{}, diff --git a/resources/kinesis-streams.go b/resources/kinesis-streams.go index 88cb1ecb..2529f4d2 100644 --- a/resources/kinesis-streams.go +++ b/resources/kinesis-streams.go @@ -14,7 +14,7 @@ import ( const KinesisStreamResource = "KinesisStream" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: KinesisStreamResource, Scope: nuke.Account, Lister: &KinesisStreamLister{}, diff --git a/resources/kinesisanalytics-streams.go b/resources/kinesisanalytics-streams.go index bc35aceb..a57a29ab 100644 --- a/resources/kinesisanalytics-streams.go +++ b/resources/kinesisanalytics-streams.go @@ -14,7 +14,7 @@ import ( const KinesisAnalyticsApplicationResource = "KinesisAnalyticsApplication" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: KinesisAnalyticsApplicationResource, Scope: nuke.Account, Lister: &KinesisAnalyticsApplicationLister{}, diff --git a/resources/kinesisvideo-streams.go b/resources/kinesisvideo-streams.go index dd699177..e32d670c 100644 --- a/resources/kinesisvideo-streams.go +++ b/resources/kinesisvideo-streams.go @@ -14,7 +14,7 @@ import ( const KinesisVideoProjectResource = "KinesisVideoProject" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: KinesisVideoProjectResource, Scope: nuke.Account, Lister: &KinesisVideoProjectLister{}, diff --git a/resources/kms-aliases.go b/resources/kms-aliases.go index a1602393..45724828 100644 --- a/resources/kms-aliases.go +++ b/resources/kms-aliases.go @@ -19,7 +19,7 @@ import ( const KMSAliasResource = "KMSAlias" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: KMSAliasResource, Scope: nuke.Account, Lister: &KMSAliasLister{}, diff --git a/resources/kms-keys.go b/resources/kms-keys.go index 083ac5c6..bfa4b9cb 100644 --- a/resources/kms-keys.go +++ b/resources/kms-keys.go @@ -17,7 +17,7 @@ import ( const KMSKeyResource = "KMSKey" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: KMSKeyResource, Scope: nuke.Account, Lister: &KMSKeyLister{}, diff --git a/resources/lambda-event-source-mapping.go b/resources/lambda-event-source-mapping.go index 34b7421a..e51fe670 100644 --- a/resources/lambda-event-source-mapping.go +++ b/resources/lambda-event-source-mapping.go @@ -14,7 +14,7 @@ import ( const LambdaEventSourceMappingResource = "LambdaEventSourceMapping" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: LambdaEventSourceMappingResource, Scope: nuke.Account, Lister: &LambdaEventSourceMappingLister{}, diff --git a/resources/lambda-functions.go b/resources/lambda-functions.go index 1fc86dab..0a93b931 100644 --- a/resources/lambda-functions.go +++ b/resources/lambda-functions.go @@ -14,7 +14,7 @@ import ( const LambdaFunctionResource = "LambdaFunction" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: LambdaFunctionResource, Scope: nuke.Account, Lister: &LambdaFunctionLister{}, diff --git a/resources/lambda-layers.go b/resources/lambda-layers.go index 4848108c..29f9b6e1 100644 --- a/resources/lambda-layers.go +++ b/resources/lambda-layers.go @@ -14,7 +14,7 @@ import ( const LambdaLayerResource = "LambdaLayer" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: LambdaLayerResource, Scope: nuke.Account, Lister: &LambdaLayerLister{}, diff --git a/resources/lex-bot.go b/resources/lex-bot.go index a1d35b85..8e10acd6 100644 --- a/resources/lex-bot.go +++ b/resources/lex-bot.go @@ -15,7 +15,7 @@ import ( const LexBotResource = "LexBot" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: LexBotResource, Scope: nuke.Account, Lister: &LexBotLister{}, diff --git a/resources/lex-intent.go b/resources/lex-intent.go index 230e792a..467de544 100644 --- a/resources/lex-intent.go +++ b/resources/lex-intent.go @@ -15,7 +15,7 @@ import ( const LexIntentResource = "LexIntent" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: LexIntentResource, Scope: nuke.Account, Lister: &LexIntentLister{}, diff --git a/resources/lex-model-building-service-bot-alias.go b/resources/lex-model-building-service-bot-alias.go index ca8b3322..a2b105d9 100644 --- a/resources/lex-model-building-service-bot-alias.go +++ b/resources/lex-model-building-service-bot-alias.go @@ -15,7 +15,7 @@ import ( const LexModelBuildingServiceBotAliasResource = "LexModelBuildingServiceBotAlias" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: LexModelBuildingServiceBotAliasResource, Scope: nuke.Account, Lister: &LexModelBuildingServiceBotAliasLister{}, diff --git a/resources/lex-slot-types.go b/resources/lex-slot-types.go index cc583dc3..18f70f37 100644 --- a/resources/lex-slot-types.go +++ b/resources/lex-slot-types.go @@ -15,7 +15,7 @@ import ( const LexSlotTypeResource = "LexSlotType" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: LexSlotTypeResource, Scope: nuke.Account, Lister: &LexSlotTypeLister{}, diff --git a/resources/lightsail-disks.go b/resources/lightsail-disks.go index 129d6edd..5cb159eb 100644 --- a/resources/lightsail-disks.go +++ b/resources/lightsail-disks.go @@ -13,7 +13,7 @@ import ( const LightsailDiskResource = "LightsailDisk" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: LightsailDiskResource, Scope: nuke.Account, Lister: &LightsailDiskLister{}, diff --git a/resources/lightsail-domains.go b/resources/lightsail-domains.go index 4736c4fe..6ea63b70 100644 --- a/resources/lightsail-domains.go +++ b/resources/lightsail-domains.go @@ -16,7 +16,7 @@ import ( const LightsailDomainResource = "LightsailDomain" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: LightsailDomainResource, Scope: nuke.Account, Lister: &LightsailDomainLister{}, diff --git a/resources/lightsail-instances.go b/resources/lightsail-instances.go index c96bfa6a..4e236a16 100644 --- a/resources/lightsail-instances.go +++ b/resources/lightsail-instances.go @@ -2,11 +2,11 @@ package resources import ( "context" + "github.com/ekristen/libnuke/pkg/settings" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/lightsail" - "github.com/ekristen/libnuke/pkg/featureflag" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -16,7 +16,7 @@ import ( const LightsailInstanceResource = "LightsailInstance" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: LightsailInstanceResource, Scope: nuke.Account, Lister: &LightsailInstanceLister{}, @@ -62,22 +62,17 @@ type LightsailInstance struct { instanceName *string tags []*lightsail.Tag - featureFlags *featureflag.FeatureFlags + settings *settings.Setting } -func (f *LightsailInstance) FeatureFlags(ff *featureflag.FeatureFlags) { - f.featureFlags = ff +func (f *LightsailInstance) Settings(setting *settings.Setting) { + f.settings = setting } func (f *LightsailInstance) Remove(_ context.Context) error { - ffDLA, ffErr := f.featureFlags.Get("ForceDeleteLightsailAddOns") - if ffErr != nil { - return ffErr - } - _, err := f.svc.DeleteInstance(&lightsail.DeleteInstanceInput{ InstanceName: f.instanceName, - ForceDeleteAddOns: aws.Bool(ffDLA.Enabled()), + ForceDeleteAddOns: aws.Bool(f.settings.Get("ForceDeleteAddOns").(bool)), }) return err diff --git a/resources/lightsail-keypairs.go b/resources/lightsail-keypairs.go index a10106e7..f5d4ecb3 100644 --- a/resources/lightsail-keypairs.go +++ b/resources/lightsail-keypairs.go @@ -13,7 +13,7 @@ import ( const LightsailKeyPairResource = "LightsailKeyPair" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: LightsailKeyPairResource, Scope: nuke.Account, Lister: &LightsailKeyPairLister{}, diff --git a/resources/lightsail-loadbalancers.go b/resources/lightsail-loadbalancers.go index 23bfdab1..63e2f00c 100644 --- a/resources/lightsail-loadbalancers.go +++ b/resources/lightsail-loadbalancers.go @@ -13,7 +13,7 @@ import ( const LightsailLoadBalancerResource = "LightsailLoadBalancer" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: LightsailLoadBalancerResource, Scope: nuke.Account, Lister: &LightsailLoadBalancerLister{}, diff --git a/resources/lightsail-staticips.go b/resources/lightsail-staticips.go index 09147fc0..185ec491 100644 --- a/resources/lightsail-staticips.go +++ b/resources/lightsail-staticips.go @@ -13,7 +13,7 @@ import ( const LightsailStaticIPResource = "LightsailStaticIP" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: LightsailStaticIPResource, Scope: nuke.Account, Lister: &LightsailStaticIPLister{}, diff --git a/resources/machinelearning-batchpredictions.go b/resources/machinelearning-batchpredictions.go index 07d231b6..6148ca77 100644 --- a/resources/machinelearning-batchpredictions.go +++ b/resources/machinelearning-batchpredictions.go @@ -14,7 +14,7 @@ import ( const MachineLearningBranchPredictionResource = "MachineLearningBranchPrediction" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: MachineLearningBranchPredictionResource, Scope: nuke.Account, Lister: &MachineLearningBranchPredictionLister{}, diff --git a/resources/machinelearning-datasources.go b/resources/machinelearning-datasources.go index 300fc948..d8bf0f6a 100644 --- a/resources/machinelearning-datasources.go +++ b/resources/machinelearning-datasources.go @@ -14,7 +14,7 @@ import ( const MachineLearningDataSourceResource = "MachineLearningDataSource" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: MachineLearningDataSourceResource, Scope: nuke.Account, Lister: &MachineLearningDataSourceLister{}, diff --git a/resources/machinelearning-evaluations.go b/resources/machinelearning-evaluations.go index ad1c754c..2d355a7a 100644 --- a/resources/machinelearning-evaluations.go +++ b/resources/machinelearning-evaluations.go @@ -14,7 +14,7 @@ import ( const MachineLearningEvaluationResource = "MachineLearningEvaluation" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: MachineLearningEvaluationResource, Scope: nuke.Account, Lister: &MachineLearningEvaluationLister{}, diff --git a/resources/machinelearning-mlmodels.go b/resources/machinelearning-mlmodels.go index e1811e86..5dc1f2ba 100644 --- a/resources/machinelearning-mlmodels.go +++ b/resources/machinelearning-mlmodels.go @@ -14,7 +14,7 @@ import ( const MachineLearningMLModelResource = "MachineLearningMLModel" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: MachineLearningMLModelResource, Scope: nuke.Account, Lister: &MachineLearningMLModelLister{}, diff --git a/resources/macie2.go b/resources/macie2.go index f64f4c22..4925b27b 100644 --- a/resources/macie2.go +++ b/resources/macie2.go @@ -13,7 +13,7 @@ import ( const MacieResource = "Macie" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: MacieResource, Scope: nuke.Account, Lister: &MacieLister{}, diff --git a/resources/managedgrafana-workspaces.go b/resources/managedgrafana-workspaces.go index 8a6872e2..abfab2ea 100644 --- a/resources/managedgrafana-workspaces.go +++ b/resources/managedgrafana-workspaces.go @@ -14,7 +14,7 @@ import ( const AMGWorkspaceResource = "AMGWorkspace" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: AMGWorkspaceResource, Scope: nuke.Account, Lister: &AMGWorkspaceLister{}, diff --git a/resources/mediaconvert-jobtemplates.go b/resources/mediaconvert-jobtemplates.go index fa3583c6..9aa28e37 100644 --- a/resources/mediaconvert-jobtemplates.go +++ b/resources/mediaconvert-jobtemplates.go @@ -14,7 +14,7 @@ import ( const MediaConvertJobTemplateResource = "MediaConvertJobTemplate" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: MediaConvertJobTemplateResource, Scope: nuke.Account, Lister: &MediaConvertJobTemplateLister{}, diff --git a/resources/mediaconvert-presets.go b/resources/mediaconvert-presets.go index 4dc8bfa7..b0ec3bc4 100644 --- a/resources/mediaconvert-presets.go +++ b/resources/mediaconvert-presets.go @@ -14,7 +14,7 @@ import ( const MediaConvertPresetResource = "MediaConvertPreset" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: MediaConvertPresetResource, Scope: nuke.Account, Lister: &MediaConvertPresetLister{}, diff --git a/resources/mediaconvert-queues.go b/resources/mediaconvert-queues.go index 06ff15f8..16119b53 100644 --- a/resources/mediaconvert-queues.go +++ b/resources/mediaconvert-queues.go @@ -17,7 +17,7 @@ import ( const MediaConvertQueueResource = "MediaConvertQueue" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: MediaConvertQueueResource, Scope: nuke.Account, Lister: &MediaConvertQueueLister{}, diff --git a/resources/medialive-channels.go b/resources/medialive-channels.go index f50f8ed4..17e23c35 100644 --- a/resources/medialive-channels.go +++ b/resources/medialive-channels.go @@ -14,7 +14,7 @@ import ( const MediaLiveChannelResource = "MediaLiveChannel" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: MediaLiveChannelResource, Scope: nuke.Account, Lister: &MediaLiveChannelLister{}, diff --git a/resources/medialive-inputs.go b/resources/medialive-inputs.go index 7e46c316..9b303cef 100644 --- a/resources/medialive-inputs.go +++ b/resources/medialive-inputs.go @@ -14,7 +14,7 @@ import ( const MediaLiveInputResource = "MediaLiveInput" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: MediaLiveInputResource, Scope: nuke.Account, Lister: &MediaLiveInputLister{}, diff --git a/resources/medialive-inputsecuritygroups.go b/resources/medialive-inputsecuritygroups.go index 4293609b..9a899bae 100644 --- a/resources/medialive-inputsecuritygroups.go +++ b/resources/medialive-inputsecuritygroups.go @@ -14,7 +14,7 @@ import ( const MediaLiveInputSecurityGroupResource = "MediaLiveInputSecurityGroup" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: MediaLiveInputSecurityGroupResource, Scope: nuke.Account, Lister: &MediaLiveInputSecurityGroupLister{}, diff --git a/resources/mediapackage-channels.go b/resources/mediapackage-channels.go index 1a9f7524..d7273cdc 100644 --- a/resources/mediapackage-channels.go +++ b/resources/mediapackage-channels.go @@ -14,7 +14,7 @@ import ( const MediaPackageChannelResource = "MediaPackageChannel" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: MediaPackageChannelResource, Scope: nuke.Account, Lister: &MediaPackageChannelLister{}, diff --git a/resources/mediapackage-originendpoints.go b/resources/mediapackage-originendpoints.go index 2be2cc5b..672446c7 100644 --- a/resources/mediapackage-originendpoints.go +++ b/resources/mediapackage-originendpoints.go @@ -14,7 +14,7 @@ import ( const MediaPackageOriginEndpointResource = "MediaPackageOriginEndpoint" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: MediaPackageOriginEndpointResource, Scope: nuke.Account, Lister: &MediaPackageOriginEndpointLister{}, diff --git a/resources/mediastore-containers.go b/resources/mediastore-containers.go index ad955bf7..4e27b255 100644 --- a/resources/mediastore-containers.go +++ b/resources/mediastore-containers.go @@ -14,7 +14,7 @@ import ( const MediaStoreContainerResource = "MediaStoreContainer" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: MediaStoreContainerResource, Scope: nuke.Account, Lister: &MediaStoreContainerLister{}, diff --git a/resources/mediastoredata-items.go b/resources/mediastoredata-items.go index 6ffaffd9..58f6f999 100644 --- a/resources/mediastoredata-items.go +++ b/resources/mediastoredata-items.go @@ -15,7 +15,7 @@ import ( const MediaStoreDataItemsResource = "MediaStoreDataItems" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: MediaStoreDataItemsResource, Scope: nuke.Account, Lister: &MediaStoreDataItemsLister{}, diff --git a/resources/mediatailor-configurations.go b/resources/mediatailor-configurations.go index 84ed414e..e0665eea 100644 --- a/resources/mediatailor-configurations.go +++ b/resources/mediatailor-configurations.go @@ -14,7 +14,7 @@ import ( const MediaTailorConfigurationResource = "MediaTailorConfiguration" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: MediaTailorConfigurationResource, Scope: nuke.Account, Lister: &MediaTailorConfigurationLister{}, diff --git a/resources/mgn-jobs.go b/resources/mgn-jobs.go index 87581c8f..cc7fd772 100644 --- a/resources/mgn-jobs.go +++ b/resources/mgn-jobs.go @@ -17,7 +17,7 @@ import ( const MGNJobResource = "MGNJob" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: MGNJobResource, Scope: nuke.Account, Lister: &MGNJobLister{}, diff --git a/resources/mgn-source-servers.go b/resources/mgn-source-servers.go index e26072a8..897975ce 100644 --- a/resources/mgn-source-servers.go +++ b/resources/mgn-source-servers.go @@ -17,7 +17,7 @@ import ( const MGNSourceServerResource = "MGNSourceServer" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: MGNSourceServerResource, Scope: nuke.Account, Lister: &MGNSourceServerLister{}, diff --git a/resources/mobile-projects.go b/resources/mobile-projects.go index f9411681..7142546d 100644 --- a/resources/mobile-projects.go +++ b/resources/mobile-projects.go @@ -14,7 +14,7 @@ import ( const MobileProjectResource = "MobileProject" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: MobileProjectResource, Scope: nuke.Account, Lister: &MobileProjectLister{}, diff --git a/resources/mq-broker.go b/resources/mq-broker.go index 4e81da0a..366b5daa 100644 --- a/resources/mq-broker.go +++ b/resources/mq-broker.go @@ -14,7 +14,7 @@ import ( const MQBrokerResource = "MQBroker" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: MQBrokerResource, Scope: nuke.Account, Lister: &MQBrokerLister{}, diff --git a/resources/msk-cluster.go b/resources/msk-cluster.go index 44827f05..959d40a4 100644 --- a/resources/msk-cluster.go +++ b/resources/msk-cluster.go @@ -15,7 +15,7 @@ import ( const MSKClusterResource = "MSKCluster" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: MSKClusterResource, Scope: nuke.Account, Lister: &MSKClusterLister{}, diff --git a/resources/msk-configuration.go b/resources/msk-configuration.go index 0944d586..b208cee5 100644 --- a/resources/msk-configuration.go +++ b/resources/msk-configuration.go @@ -14,7 +14,7 @@ import ( const MSKConfigurationResource = "MSKConfiguration" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: MSKConfigurationResource, Scope: nuke.Account, Lister: &MSKConfigurationLister{}, diff --git a/resources/neptune-clusters.go b/resources/neptune-clusters.go index b0fbd298..d892e3c2 100644 --- a/resources/neptune-clusters.go +++ b/resources/neptune-clusters.go @@ -14,7 +14,7 @@ import ( const NeptuneClusterResource = "NeptuneCluster" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: NeptuneClusterResource, Scope: nuke.Account, Lister: &NeptuneClusterLister{}, diff --git a/resources/neptune-instances.go b/resources/neptune-instances.go index 20daeb4f..2a2534b8 100644 --- a/resources/neptune-instances.go +++ b/resources/neptune-instances.go @@ -14,7 +14,7 @@ import ( const NeptuneInstanceResource = "NeptuneInstance" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: NeptuneInstanceResource, Scope: nuke.Account, Lister: &NeptuneInstanceLister{}, diff --git a/resources/neptune-snapshots.go b/resources/neptune-snapshots.go index 348683a5..9d57bb8c 100644 --- a/resources/neptune-snapshots.go +++ b/resources/neptune-snapshots.go @@ -14,10 +14,13 @@ import ( const NeptuneSnapshotResource = "NeptuneSnapshot" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: NeptuneSnapshotResource, Scope: nuke.Account, Lister: &NeptuneSnapshotLister{}, + DeprecatedAliases: []string{ + "NetpuneSnapshot", + }, }) } diff --git a/resources/opensearchservice-domain.go b/resources/opensearchservice-domain.go index 7d77fd62..78f0a3d6 100644 --- a/resources/opensearchservice-domain.go +++ b/resources/opensearchservice-domain.go @@ -16,7 +16,7 @@ import ( const OSDomainResource = "OSDomain" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: OSDomainResource, Scope: nuke.Account, Lister: &OSDomainLister{}, diff --git a/resources/opsworks-apps.go b/resources/opsworks-apps.go index 4502c033..ed609bb6 100644 --- a/resources/opsworks-apps.go +++ b/resources/opsworks-apps.go @@ -13,7 +13,7 @@ import ( const OpsWorksAppResource = "OpsWorksApp" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: OpsWorksAppResource, Scope: nuke.Account, Lister: &OpsWorksAppLister{}, diff --git a/resources/opsworks-instances.go b/resources/opsworks-instances.go index 97ea4f7b..84ec5b7b 100644 --- a/resources/opsworks-instances.go +++ b/resources/opsworks-instances.go @@ -13,7 +13,7 @@ import ( const OpsWorksInstanceResource = "OpsWorksInstance" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: OpsWorksInstanceResource, Scope: nuke.Account, Lister: &OpsWorksInstanceLister{}, diff --git a/resources/opsworks-layers.go b/resources/opsworks-layers.go index 9deeaa50..630887be 100644 --- a/resources/opsworks-layers.go +++ b/resources/opsworks-layers.go @@ -13,7 +13,7 @@ import ( const OpsWorksLayerResource = "OpsWorksLayer" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: OpsWorksLayerResource, Scope: nuke.Account, Lister: &OpsWorksLayerLister{}, diff --git a/resources/opsworks-userprofiles.go b/resources/opsworks-userprofiles.go index a5b4b18b..18c3f536 100644 --- a/resources/opsworks-userprofiles.go +++ b/resources/opsworks-userprofiles.go @@ -16,7 +16,7 @@ import ( const OpsWorksUserProfileResource = "OpsWorksUserProfile" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: OpsWorksUserProfileResource, Scope: nuke.Account, Lister: &OpsWorksUserProfileLister{}, diff --git a/resources/opsworkscm-backups.go b/resources/opsworkscm-backups.go index cdfeca6d..a93fbc7e 100644 --- a/resources/opsworkscm-backups.go +++ b/resources/opsworkscm-backups.go @@ -13,7 +13,7 @@ import ( const OpsWorksCMBackupResource = "OpsWorksCMBackup" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: OpsWorksCMBackupResource, Scope: nuke.Account, Lister: &OpsWorksCMBackupLister{}, diff --git a/resources/opsworkscm-servers.go b/resources/opsworkscm-servers.go index c5091ff7..45fa91c8 100644 --- a/resources/opsworkscm-servers.go +++ b/resources/opsworkscm-servers.go @@ -13,7 +13,7 @@ import ( const OpsWorksCMServerResource = "OpsWorksCMServer" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: OpsWorksCMServerResource, Scope: nuke.Account, Lister: &OpsWorksCMServerLister{}, diff --git a/resources/opsworkscm-serverstates.go b/resources/opsworkscm-serverstates.go index a8193a6b..bb02ada1 100644 --- a/resources/opsworkscm-serverstates.go +++ b/resources/opsworkscm-serverstates.go @@ -15,7 +15,7 @@ import ( const OpsWorksCMServerStateResource = "OpsWorksCMServerState" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: OpsWorksCMServerStateResource, Scope: nuke.Account, Lister: &OpsWorksCMServerStateLister{}, diff --git a/resources/prometheusservice-workspace.go b/resources/prometheusservice-workspace.go index 353f1cbc..8a68ebdc 100644 --- a/resources/prometheusservice-workspace.go +++ b/resources/prometheusservice-workspace.go @@ -14,7 +14,7 @@ import ( const AMPWorkspaceResource = "AMPWorkspace" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: AMPWorkspaceResource, Scope: nuke.Account, Lister: &WorkspaceLister{}, diff --git a/resources/qldb-ledger.go b/resources/qldb-ledger.go index 73053e6d..2504258c 100644 --- a/resources/qldb-ledger.go +++ b/resources/qldb-ledger.go @@ -2,13 +2,13 @@ package resources import ( "context" + "github.com/ekristen/libnuke/pkg/settings" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/qldb" - "github.com/ekristen/libnuke/pkg/featureflag" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -18,7 +18,7 @@ import ( const QLDBLedgerResource = "QLDBLedger" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: QLDBLedgerResource, Scope: nuke.Account, Lister: &QLDBLedgerLister{}, @@ -66,20 +66,15 @@ type QLDBLedger struct { svc *qldb.QLDB ledger *qldb.DescribeLedgerOutput - featureFlags *featureflag.FeatureFlags + settings *settings.Setting } -func (l *QLDBLedger) FeatureFlags(ff *featureflag.FeatureFlags) { - l.featureFlags = ff +func (l *QLDBLedger) Settings(setting *settings.Setting) { + l.settings = setting } func (l *QLDBLedger) Remove(_ context.Context) error { - ffDDP, err := l.featureFlags.Get("DisableDeletionProtection_QLDBLedger") - if err != nil { - return err - } - - if aws.BoolValue(l.ledger.DeletionProtection) && ffDDP.Enabled() { + if aws.BoolValue(l.ledger.DeletionProtection) && l.settings.Get("DisableDeletionProtection").(bool) { modifyParams := &qldb.UpdateLedgerInput{ DeletionProtection: aws.Bool(false), Name: l.ledger.Name, diff --git a/resources/rds-cluster-snapshots.go b/resources/rds-cluster-snapshots.go index 18cbc38a..f95ac98e 100644 --- a/resources/rds-cluster-snapshots.go +++ b/resources/rds-cluster-snapshots.go @@ -17,7 +17,7 @@ import ( const RDSClusterSnapshotResource = "RDSClusterSnapshot" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: RDSClusterSnapshotResource, Scope: nuke.Account, Lister: &RDSClusterSnapshotLister{}, diff --git a/resources/rds-clusters.go b/resources/rds-clusters.go index 4e5345bd..f34d7b1c 100644 --- a/resources/rds-clusters.go +++ b/resources/rds-clusters.go @@ -15,10 +15,13 @@ import ( const RDSDBClusterResource = "RDSDBCluster" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: RDSDBClusterResource, Scope: nuke.Account, Lister: &RDSDBClusterLister{}, + DeprecatedAliases: []string{ + "RDSCluster", + }, }) } diff --git a/resources/rds-dbclusterparametergroups.go b/resources/rds-dbclusterparametergroups.go index 8e74cbc2..5fb8d784 100644 --- a/resources/rds-dbclusterparametergroups.go +++ b/resources/rds-dbclusterparametergroups.go @@ -18,7 +18,7 @@ import ( const RDSDBClusterParameterGroupResource = "RDSDBClusterParameterGroup" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: RDSDBClusterParameterGroupResource, Scope: nuke.Account, Lister: &RDSDBClusterParameterGroupLister{}, diff --git a/resources/rds-dbparametergroups.go b/resources/rds-dbparametergroups.go index e49fd47d..df6738f1 100644 --- a/resources/rds-dbparametergroups.go +++ b/resources/rds-dbparametergroups.go @@ -18,7 +18,7 @@ import ( const RDSDBParameterGroupResource = "RDSDBParameterGroup" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: RDSDBParameterGroupResource, Scope: nuke.Account, Lister: &RDSDBParameterGroupLister{}, diff --git a/resources/rds-event-subscriptions.go b/resources/rds-event-subscriptions.go index 3127c9e8..770b9a54 100644 --- a/resources/rds-event-subscriptions.go +++ b/resources/rds-event-subscriptions.go @@ -15,7 +15,7 @@ import ( const RDSEventSubscriptionResource = "RDSEventSubscription" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: RDSEventSubscriptionResource, Scope: nuke.Account, Lister: &RDSEventSubscriptionLister{}, diff --git a/resources/rds-instances.go b/resources/rds-instances.go index fd0e5e50..5154f528 100644 --- a/resources/rds-instances.go +++ b/resources/rds-instances.go @@ -2,8 +2,8 @@ package resources import ( "context" + "github.com/ekristen/libnuke/pkg/settings" - "github.com/ekristen/libnuke/pkg/featureflag" "time" "github.com/aws/aws-sdk-go/aws" @@ -18,7 +18,7 @@ import ( const RDSInstanceResource = "RDSInstance" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: RDSInstanceResource, Scope: nuke.Account, Lister: &RDSInstanceLister{}, @@ -30,7 +30,7 @@ type RDSInstance struct { instance *rds.DBInstance tags []*rds.Tag - featureFlags *featureflag.FeatureFlags + settings *settings.Setting } type RDSInstanceLister struct{} @@ -66,17 +66,12 @@ func (l *RDSInstanceLister) List(_ context.Context, o interface{}) ([]resource.R return resources, nil } -func (i *RDSInstance) FeatureFlags(ff *featureflag.FeatureFlags) { - i.featureFlags = ff +func (i *RDSInstance) Settings(settings *settings.Setting) { + i.settings = settings } func (i *RDSInstance) Remove(_ context.Context) error { - ffddpRDSInstance, err := i.featureFlags.Get("DisableDeletionProtection_RDSInstance") - if err != nil { - return err - } - - if aws.BoolValue(i.instance.DeletionProtection) && ffddpRDSInstance.Enabled() { + if aws.BoolValue(i.instance.DeletionProtection) && i.settings.Get("DisableDeletionProtection").(bool) { modifyParams := &rds.ModifyDBInstanceInput{ DBInstanceIdentifier: i.instance.DBInstanceIdentifier, DeletionProtection: aws.Bool(false), diff --git a/resources/rds-optiongroups.go b/resources/rds-optiongroups.go index d33f5b31..c37eafc7 100644 --- a/resources/rds-optiongroups.go +++ b/resources/rds-optiongroups.go @@ -18,7 +18,7 @@ import ( const RDSOptionGroupResource = "RDSOptionGroup" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: RDSOptionGroupResource, Scope: nuke.Account, Lister: &RDSOptionGroupLister{}, diff --git a/resources/rds-proxies.go b/resources/rds-proxies.go index a4c925a3..4987b3e4 100644 --- a/resources/rds-proxies.go +++ b/resources/rds-proxies.go @@ -12,7 +12,7 @@ import ( const RDSProxyResource = "RDSProxy" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: RDSProxyResource, Scope: nuke.Account, Lister: &RDSProxyLister{}, diff --git a/resources/rds-snapshots.go b/resources/rds-snapshots.go index 3bef18cc..a9d7ab98 100644 --- a/resources/rds-snapshots.go +++ b/resources/rds-snapshots.go @@ -18,7 +18,7 @@ import ( const RDSSnapshotResource = "RDSSnapshot" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: RDSSnapshotResource, Scope: nuke.Account, Lister: &RDSSnapshotLister{}, diff --git a/resources/rds-subnets.go b/resources/rds-subnets.go index e253b82a..99d565d3 100644 --- a/resources/rds-subnets.go +++ b/resources/rds-subnets.go @@ -15,7 +15,7 @@ import ( const RDSDBSubnetGroupResource = "RDSDBSubnetGroup" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: RDSDBSubnetGroupResource, Scope: nuke.Account, Lister: &RDSDBSubnetGroupLister{}, diff --git a/resources/redshift-clusters.go b/resources/redshift-clusters.go index abe80f56..3d16c6d6 100644 --- a/resources/redshift-clusters.go +++ b/resources/redshift-clusters.go @@ -15,7 +15,7 @@ import ( const RedshiftClusterResource = "RedshiftCluster" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: RedshiftClusterResource, Scope: nuke.Account, Lister: &RedshiftClusterLister{}, diff --git a/resources/redshift-parametergroups.go b/resources/redshift-parametergroups.go index 9f2c492d..0a20bb41 100644 --- a/resources/redshift-parametergroups.go +++ b/resources/redshift-parametergroups.go @@ -16,7 +16,7 @@ import ( const RedshiftParameterGroupResource = "RedshiftParameterGroup" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: RedshiftParameterGroupResource, Scope: nuke.Account, Lister: &RedshiftParameterGroupLister{}, diff --git a/resources/redshift-snapshots.go b/resources/redshift-snapshots.go index 42fcc40b..b6672707 100644 --- a/resources/redshift-snapshots.go +++ b/resources/redshift-snapshots.go @@ -15,7 +15,7 @@ import ( const RedshiftSnapshotResource = "RedshiftSnapshot" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: RedshiftSnapshotResource, Scope: nuke.Account, Lister: &RedshiftSnapshotLister{}, diff --git a/resources/redshift-subnetgroups.go b/resources/redshift-subnetgroups.go index 3cfbafe3..66f22ce5 100644 --- a/resources/redshift-subnetgroups.go +++ b/resources/redshift-subnetgroups.go @@ -14,7 +14,7 @@ import ( const RedshiftSubnetGroupResource = "RedshiftSubnetGroup" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: RedshiftSubnetGroupResource, Scope: nuke.Account, Lister: &RedshiftSubnetGroupLister{}, diff --git a/resources/rekognition-collection.go b/resources/rekognition-collection.go index 20ff430b..92a45eb7 100644 --- a/resources/rekognition-collection.go +++ b/resources/rekognition-collection.go @@ -14,7 +14,7 @@ import ( const RekognitionCollectionResource = "RekognitionCollection" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: RekognitionCollectionResource, Scope: nuke.Account, Lister: &RekognitionCollectionLister{}, diff --git a/resources/resource-explorer2-indexes.go b/resources/resource-explorer2-indexes.go index 151e8d35..1f029c90 100644 --- a/resources/resource-explorer2-indexes.go +++ b/resources/resource-explorer2-indexes.go @@ -12,7 +12,7 @@ import ( const ResourceExplorer2IndexResource = "ResourceExplorer2Index" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ResourceExplorer2IndexResource, Scope: nuke.Account, Lister: &ResourceExplorer2IndexLister{}, diff --git a/resources/resource-explorer2-views.go b/resources/resource-explorer2-views.go index 12e64661..5f5afbcd 100644 --- a/resources/resource-explorer2-views.go +++ b/resources/resource-explorer2-views.go @@ -12,7 +12,7 @@ import ( const ResourceExplorer2ViewResource = "ResourceExplorer2View" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ResourceExplorer2ViewResource, Scope: nuke.Account, Lister: &ResourceExplorer2ViewLister{}, diff --git a/resources/resourcegroups-groups.go b/resources/resourcegroups-groups.go index d042f1df..200748f0 100644 --- a/resources/resourcegroups-groups.go +++ b/resources/resourcegroups-groups.go @@ -12,7 +12,7 @@ import ( const ResourceGroupGroupResource = "ResourceGroupGroup" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ResourceGroupGroupResource, Scope: nuke.Account, Lister: &ResourceGroupGroupLister{}, diff --git a/resources/robomaker-robot-applications.go b/resources/robomaker-robot-applications.go index 1f0bde40..f2400d38 100644 --- a/resources/robomaker-robot-applications.go +++ b/resources/robomaker-robot-applications.go @@ -14,7 +14,7 @@ import ( const RoboMakerRobotApplicationResource = "RoboMakerRobotApplication" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: RoboMakerRobotApplicationResource, Scope: nuke.Account, Lister: &RoboMakerRobotApplicationLister{}, diff --git a/resources/robomaker-simulation-applications.go b/resources/robomaker-simulation-applications.go index 7ed38fea..7027ca1a 100644 --- a/resources/robomaker-simulation-applications.go +++ b/resources/robomaker-simulation-applications.go @@ -14,7 +14,7 @@ import ( const RoboMakerSimulationApplicationResource = "RoboMakerSimulationApplication" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: RoboMakerSimulationApplicationResource, Scope: nuke.Account, Lister: &RoboMakerSimulationApplicationLister{}, diff --git a/resources/robomaker-simulation-jobs.go b/resources/robomaker-simulation-jobs.go index bb988d68..0aa83280 100644 --- a/resources/robomaker-simulation-jobs.go +++ b/resources/robomaker-simulation-jobs.go @@ -14,7 +14,7 @@ import ( const RoboMakerSimulationJobResource = "RoboMakerSimulationJob" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: RoboMakerSimulationJobResource, Scope: nuke.Account, Lister: &RoboMakerSimulationJobLister{}, diff --git a/resources/route53-health-checks.go b/resources/route53-health-checks.go index c726c852..8e32b4d7 100644 --- a/resources/route53-health-checks.go +++ b/resources/route53-health-checks.go @@ -17,7 +17,7 @@ import ( const Route53HealthCheckResource = "Route53HealthCheck" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: Route53HealthCheckResource, Scope: nuke.Account, Lister: &Route53HealthCheckLister{}, diff --git a/resources/route53-hosted-zones.go b/resources/route53-hosted-zones.go index f5098fba..6e820a84 100644 --- a/resources/route53-hosted-zones.go +++ b/resources/route53-hosted-zones.go @@ -17,7 +17,7 @@ import ( const Route53HostedZoneResource = "Route53HostedZone" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: Route53HostedZoneResource, Scope: nuke.Account, Lister: &Route53HostedZoneLister{}, diff --git a/resources/route53-resolver-endpoints.go b/resources/route53-resolver-endpoints.go index eae4d2e8..bc8126bb 100644 --- a/resources/route53-resolver-endpoints.go +++ b/resources/route53-resolver-endpoints.go @@ -16,7 +16,7 @@ import ( const Route53ResolverEndpointResource = "Route53ResolverEndpoint" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: Route53ResolverEndpointResource, Scope: nuke.Account, Lister: &Route53ResolverEndpointLister{}, diff --git a/resources/route53-resolver-rules.go b/resources/route53-resolver-rules.go index 757f597c..f5936055 100644 --- a/resources/route53-resolver-rules.go +++ b/resources/route53-resolver-rules.go @@ -18,7 +18,7 @@ import ( const Route53ResolverRuleResource = "Route53ResolverRule" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: Route53ResolverRuleResource, Scope: nuke.Account, Lister: &Route53ResolverRuleLister{}, diff --git a/resources/route53-resource-records.go b/resources/route53-resource-records.go index c4d917ec..4ee9baf0 100644 --- a/resources/route53-resource-records.go +++ b/resources/route53-resource-records.go @@ -17,7 +17,7 @@ import ( const Route53ResourceRecordSetResource = "Route53ResourceRecordSet" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: Route53ResourceRecordSetResource, Scope: nuke.Account, Lister: &Route53ResourceRecordSetLister{}, diff --git a/resources/route53-traffic-policies.go b/resources/route53-traffic-policies.go index bf1b8c1d..a0299ec5 100644 --- a/resources/route53-traffic-policies.go +++ b/resources/route53-traffic-policies.go @@ -17,7 +17,7 @@ import ( const Route53TrafficPolicyResource = "Route53TrafficPolicy" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: Route53TrafficPolicyResource, Scope: nuke.Account, Lister: &Route53TrafficPolicyLister{}, diff --git a/resources/s3-access-points.go b/resources/s3-access-points.go index e88e7b9c..0793c96e 100644 --- a/resources/s3-access-points.go +++ b/resources/s3-access-points.go @@ -18,7 +18,7 @@ import ( const S3AccessPointResource = "S3AccessPoint" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: S3AccessPointResource, Scope: nuke.Account, Lister: &S3AccessPointLister{}, diff --git a/resources/s3-buckets.go b/resources/s3-buckets.go index 69eb179a..41a91ab9 100644 --- a/resources/s3-buckets.go +++ b/resources/s3-buckets.go @@ -25,14 +25,15 @@ import ( const S3BucketResource = "S3Bucket" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: S3BucketResource, Scope: nuke.Account, Lister: &S3BucketLister{}, DependsOn: []string{ S3ObjectResource, }, - }, nuke.MapCloudControl("AWS::S3::Bucket")) + AlternativeResource: "AWS::S3::Bucket", + }) } type S3BucketLister struct{} diff --git a/resources/s3-multipart-uploads.go b/resources/s3-multipart-uploads.go index 7cc3c76e..e4f18978 100644 --- a/resources/s3-multipart-uploads.go +++ b/resources/s3-multipart-uploads.go @@ -17,7 +17,7 @@ import ( const S3MultipartUploadResource = "S3MultipartUpload" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: S3MultipartUploadResource, Scope: nuke.Account, Lister: &S3MultipartUploadLister{}, diff --git a/resources/s3-objects.go b/resources/s3-objects.go index cf498181..56a98e81 100644 --- a/resources/s3-objects.go +++ b/resources/s3-objects.go @@ -20,7 +20,7 @@ import ( const S3ObjectResource = "S3Object" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: S3ObjectResource, Scope: nuke.Account, Lister: &S3ObjectLister{}, diff --git a/resources/sagemaker-apps.go b/resources/sagemaker-apps.go index e2a6afc0..68bb68b2 100644 --- a/resources/sagemaker-apps.go +++ b/resources/sagemaker-apps.go @@ -17,7 +17,7 @@ import ( const SageMakerAppResource = "SageMakerApp" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: SageMakerAppResource, Scope: nuke.Account, Lister: &SageMakerAppLister{}, diff --git a/resources/sagemaker-domain.go b/resources/sagemaker-domain.go index ff80de3f..7dd2590e 100644 --- a/resources/sagemaker-domain.go +++ b/resources/sagemaker-domain.go @@ -15,7 +15,7 @@ import ( const SageMakerDomainResource = "SageMakerDomain" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: SageMakerDomainResource, Scope: nuke.Account, Lister: &SageMakerDomainLister{}, diff --git a/resources/sagemaker-endpointconfigs.go b/resources/sagemaker-endpointconfigs.go index 00c24a44..1b3ffa8a 100644 --- a/resources/sagemaker-endpointconfigs.go +++ b/resources/sagemaker-endpointconfigs.go @@ -14,7 +14,7 @@ import ( const SageMakerEndpointConfigResource = "SageMakerEndpointConfig" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: SageMakerEndpointConfigResource, Scope: nuke.Account, Lister: &SageMakerEndpointConfigLister{}, diff --git a/resources/sagemaker-endpoints.go b/resources/sagemaker-endpoints.go index 892c3013..48ccb578 100644 --- a/resources/sagemaker-endpoints.go +++ b/resources/sagemaker-endpoints.go @@ -14,7 +14,7 @@ import ( const SageMakerEndpointResource = "SageMakerEndpoint" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: SageMakerEndpointResource, Scope: nuke.Account, Lister: &SageMakerEndpointLister{}, diff --git a/resources/sagemaker-models.go b/resources/sagemaker-models.go index 3a93f28c..00f3c72f 100644 --- a/resources/sagemaker-models.go +++ b/resources/sagemaker-models.go @@ -14,7 +14,7 @@ import ( const SageMakerModelResource = "SageMakerModel" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: SageMakerModelResource, Scope: nuke.Account, Lister: &SageMakerModelLister{}, diff --git a/resources/sagemaker-notebook-instancelifecycleconfigs.go b/resources/sagemaker-notebook-instancelifecycleconfigs.go index 3a524991..ea676ac7 100644 --- a/resources/sagemaker-notebook-instancelifecycleconfigs.go +++ b/resources/sagemaker-notebook-instancelifecycleconfigs.go @@ -15,7 +15,7 @@ import ( const SageMakerNotebookInstanceLifecycleConfigResource = "SageMakerNotebookInstanceLifecycleConfig" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: SageMakerNotebookInstanceLifecycleConfigResource, Scope: nuke.Account, Lister: &SageMakerNotebookInstanceLifecycleConfigLister{}, diff --git a/resources/sagemaker-notebook-instances.go b/resources/sagemaker-notebook-instances.go index c972212d..778be7fa 100644 --- a/resources/sagemaker-notebook-instances.go +++ b/resources/sagemaker-notebook-instances.go @@ -14,7 +14,7 @@ import ( const SageMakerNotebookInstanceResource = "SageMakerNotebookInstance" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: SageMakerNotebookInstanceResource, Scope: nuke.Account, Lister: &SageMakerNotebookInstanceLister{}, diff --git a/resources/sagemaker-notebook-instancestates.go b/resources/sagemaker-notebook-instancestates.go index 4547ce3f..74d73426 100644 --- a/resources/sagemaker-notebook-instancestates.go +++ b/resources/sagemaker-notebook-instancestates.go @@ -17,7 +17,7 @@ import ( const SageMakerNotebookInstanceStateResource = "SageMakerNotebookInstanceState" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: SageMakerNotebookInstanceStateResource, Scope: nuke.Account, Lister: &SageMakerNotebookInstanceStateLister{}, diff --git a/resources/sagemaker-userprofiles.go b/resources/sagemaker-userprofiles.go index 94fb2fcb..53971909 100644 --- a/resources/sagemaker-userprofiles.go +++ b/resources/sagemaker-userprofiles.go @@ -15,7 +15,7 @@ import ( const SageMakerUserProfilesResource = "SageMakerUserProfiles" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: SageMakerUserProfilesResource, Scope: nuke.Account, Lister: &SageMakerUserProfilesLister{}, diff --git a/resources/secretsmanager-secrets.go b/resources/secretsmanager-secrets.go index 88d11667..ad4957bb 100644 --- a/resources/secretsmanager-secrets.go +++ b/resources/secretsmanager-secrets.go @@ -15,7 +15,7 @@ import ( const SecretsManagerSecretResource = "SecretsManagerSecret" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: SecretsManagerSecretResource, Scope: nuke.Account, Lister: &SecretsManagerSecretLister{}, diff --git a/resources/securityhub-hub.go b/resources/securityhub-hub.go index e2c88cad..6cbb295c 100644 --- a/resources/securityhub-hub.go +++ b/resources/securityhub-hub.go @@ -15,7 +15,7 @@ import ( const SecurityHubResource = "SecurityHub" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: SecurityHubResource, Scope: nuke.Account, Lister: &SecurityHubLister{}, diff --git a/resources/servicecatalog-portfolio-constraints-attachments.go b/resources/servicecatalog-portfolio-constraints-attachments.go index 07333ca7..1239dc17 100644 --- a/resources/servicecatalog-portfolio-constraints-attachments.go +++ b/resources/servicecatalog-portfolio-constraints-attachments.go @@ -20,7 +20,7 @@ import ( const ServiceCatalogConstraintPortfolioAttachmentResource = "ServiceCatalogConstraintPortfolioAttachment" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ServiceCatalogConstraintPortfolioAttachmentResource, Scope: nuke.Account, Lister: &ServiceCatalogConstraintPortfolioAttachmentLister{}, diff --git a/resources/servicecatalog-portfolio-principal-attachments.go b/resources/servicecatalog-portfolio-principal-attachments.go index 70a969b4..9b9be5e2 100644 --- a/resources/servicecatalog-portfolio-principal-attachments.go +++ b/resources/servicecatalog-portfolio-principal-attachments.go @@ -17,7 +17,7 @@ import ( const ServiceCatalogPrincipalPortfolioAttachmentResource = "ServiceCatalogPrincipalPortfolioAttachment" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ServiceCatalogPrincipalPortfolioAttachmentResource, Scope: nuke.Account, Lister: &ServiceCatalogPrincipalPortfolioAttachmentLister{}, diff --git a/resources/servicecatalog-portfolio-product-attachments.go b/resources/servicecatalog-portfolio-product-attachments.go index 3c8ad650..15faabaf 100644 --- a/resources/servicecatalog-portfolio-product-attachments.go +++ b/resources/servicecatalog-portfolio-product-attachments.go @@ -17,7 +17,7 @@ import ( const ServiceCatalogPortfolioProductAttachmentResource = "ServiceCatalogPortfolioProductAttachment" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ServiceCatalogPortfolioProductAttachmentResource, Scope: nuke.Account, Lister: &ServiceCatalogPortfolioProductAttachmentLister{}, diff --git a/resources/servicecatalog-portfolio-share-attachments.go b/resources/servicecatalog-portfolio-share-attachments.go index cfdcaa9d..2764540b 100644 --- a/resources/servicecatalog-portfolio-share-attachments.go +++ b/resources/servicecatalog-portfolio-share-attachments.go @@ -17,7 +17,7 @@ import ( const ServiceCatalogPortfolioShareAttachmentResource = "ServiceCatalogPortfolioShareAttachment" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ServiceCatalogPortfolioShareAttachmentResource, Scope: nuke.Account, Lister: &ServiceCatalogPortfolioShareAttachmentLister{}, diff --git a/resources/servicecatalog-portfolio-tagoptions-attachements.go b/resources/servicecatalog-portfolio-tagoptions-attachements.go index f233e6ed..2c0fb2f8 100644 --- a/resources/servicecatalog-portfolio-tagoptions-attachements.go +++ b/resources/servicecatalog-portfolio-tagoptions-attachements.go @@ -20,7 +20,7 @@ import ( const ServiceCatalogTagOptionPortfolioAttachmentResource = "ServiceCatalogTagOptionPortfolioAttachment" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ServiceCatalogTagOptionPortfolioAttachmentResource, Scope: nuke.Account, Lister: &ServiceCatalogTagOptionPortfolioAttachmentLister{}, diff --git a/resources/servicecatalog-portfolios.go b/resources/servicecatalog-portfolios.go index 4e388713..af5a8c83 100644 --- a/resources/servicecatalog-portfolios.go +++ b/resources/servicecatalog-portfolios.go @@ -15,7 +15,7 @@ import ( const ServiceCatalogPortfolioResource = "ServiceCatalogPortfolio" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ServiceCatalogPortfolioResource, Scope: nuke.Account, Lister: &ServiceCatalogPortfolioLister{}, diff --git a/resources/servicecatalog-products.go b/resources/servicecatalog-products.go index b0356a16..b457d1ec 100644 --- a/resources/servicecatalog-products.go +++ b/resources/servicecatalog-products.go @@ -15,7 +15,7 @@ import ( const ServiceCatalogProductResource = "ServiceCatalogProduct" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ServiceCatalogProductResource, Scope: nuke.Account, Lister: &ServiceCatalogProductLister{}, diff --git a/resources/servicecatalog-provisionedproducts.go b/resources/servicecatalog-provisionedproducts.go index 0424a4ec..5a151128 100644 --- a/resources/servicecatalog-provisionedproducts.go +++ b/resources/servicecatalog-provisionedproducts.go @@ -15,7 +15,7 @@ import ( const ServiceCatalogProvisionedProductResource = "ServiceCatalogProvisionedProduct" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ServiceCatalogProvisionedProductResource, Scope: nuke.Account, Lister: &ServiceCatalogProvisionedProductLister{}, diff --git a/resources/servicecatalog-tagoptions.go b/resources/servicecatalog-tagoptions.go index 398603b3..9b512934 100644 --- a/resources/servicecatalog-tagoptions.go +++ b/resources/servicecatalog-tagoptions.go @@ -18,7 +18,7 @@ import ( const ServiceCatalogTagOptionResource = "ServiceCatalogTagOption" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ServiceCatalogTagOptionResource, Scope: nuke.Account, Lister: &ServiceCatalogTagOptionLister{}, diff --git a/resources/servicediscovery-instances.go b/resources/servicediscovery-instances.go index 90e74a8d..a28334e0 100644 --- a/resources/servicediscovery-instances.go +++ b/resources/servicediscovery-instances.go @@ -16,7 +16,7 @@ import ( const ServiceDiscoveryInstanceResource = "ServiceDiscoveryInstance" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ServiceDiscoveryInstanceResource, Scope: nuke.Account, Lister: &ServiceDiscoveryInstanceLister{}, diff --git a/resources/servicediscovery-namespaces.go b/resources/servicediscovery-namespaces.go index d4d84e40..fd9a597f 100644 --- a/resources/servicediscovery-namespaces.go +++ b/resources/servicediscovery-namespaces.go @@ -14,7 +14,7 @@ import ( const ServiceDiscoveryNamespaceResource = "ServiceDiscoveryNamespace" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ServiceDiscoveryNamespaceResource, Scope: nuke.Account, Lister: &ServiceDiscoveryNamespaceLister{}, diff --git a/resources/servicediscovery-services.go b/resources/servicediscovery-services.go index a0b0dd47..634b5088 100644 --- a/resources/servicediscovery-services.go +++ b/resources/servicediscovery-services.go @@ -14,7 +14,7 @@ import ( const ServiceDiscoveryServiceResource = "ServiceDiscoveryService" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: ServiceDiscoveryServiceResource, Scope: nuke.Account, Lister: &ServiceDiscoveryServiceLister{}, diff --git a/resources/ses-configurationsets.go b/resources/ses-configurationsets.go index fb2551fa..692c3f5b 100644 --- a/resources/ses-configurationsets.go +++ b/resources/ses-configurationsets.go @@ -14,7 +14,7 @@ import ( const SESConfigurationSetResource = "SESConfigurationSet" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: SESConfigurationSetResource, Scope: nuke.Account, Lister: &SESConfigurationSetLister{}, diff --git a/resources/ses-identities.go b/resources/ses-identities.go index d5bb4958..4babd2e3 100644 --- a/resources/ses-identities.go +++ b/resources/ses-identities.go @@ -14,7 +14,7 @@ import ( const SESIdentityResource = "SESIdentity" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: SESIdentityResource, Scope: nuke.Account, Lister: &SESIdentityLister{}, diff --git a/resources/ses-receiptfilters.go b/resources/ses-receiptfilters.go index 880f0a7c..daaf38b5 100644 --- a/resources/ses-receiptfilters.go +++ b/resources/ses-receiptfilters.go @@ -17,7 +17,7 @@ import ( const SESReceiptFilterResource = "SESReceiptFilter" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: SESReceiptFilterResource, Scope: nuke.Account, Lister: &SESReceiptFilterLister{}, diff --git a/resources/ses-receiptrulesets.go b/resources/ses-receiptrulesets.go index a4f62742..c41919ee 100644 --- a/resources/ses-receiptrulesets.go +++ b/resources/ses-receiptrulesets.go @@ -18,7 +18,7 @@ import ( const SESReceiptRuleSetResource = "SESReceiptRuleSet" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: SESReceiptRuleSetResource, Scope: nuke.Account, Lister: &SESReceiptRuleSetLister{}, diff --git a/resources/ses-templates.go b/resources/ses-templates.go index b12c028f..f953efae 100644 --- a/resources/ses-templates.go +++ b/resources/ses-templates.go @@ -14,7 +14,7 @@ import ( const SESTemplateResource = "SESTemplate" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: SESTemplateResource, Scope: nuke.Account, Lister: &SESTemplateLister{}, diff --git a/resources/sfn-statemachines.go b/resources/sfn-statemachines.go index b80c85b3..74be8579 100644 --- a/resources/sfn-statemachines.go +++ b/resources/sfn-statemachines.go @@ -14,7 +14,7 @@ import ( const SFNStateMachineResource = "SFNStateMachine" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: SFNStateMachineResource, Scope: nuke.Account, Lister: &SFNStateMachineLister{}, diff --git a/resources/signer-signingjobs.go b/resources/signer-signingjobs.go index 686af9f4..88ded25a 100644 --- a/resources/signer-signingjobs.go +++ b/resources/signer-signingjobs.go @@ -18,7 +18,7 @@ import ( const SignerSigningJobResource = "SignerSigningJob" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: SignerSigningJobResource, Scope: nuke.Account, Lister: &SignerSigningJobLister{}, diff --git a/resources/simpledb-domains.go b/resources/simpledb-domains.go index 46ec07b6..26a493cc 100644 --- a/resources/simpledb-domains.go +++ b/resources/simpledb-domains.go @@ -14,7 +14,7 @@ import ( const SimpleDBDomainResource = "SimpleDBDomain" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: SimpleDBDomainResource, Scope: nuke.Account, Lister: &SimpleDBDomainLister{}, diff --git a/resources/sns-endpoints.go b/resources/sns-endpoints.go index 56d3dba4..4e98eb5b 100644 --- a/resources/sns-endpoints.go +++ b/resources/sns-endpoints.go @@ -15,7 +15,7 @@ import ( const SNSEndpointResource = "SNSEndpoint" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: SNSEndpointResource, Scope: nuke.Account, Lister: &SNSEndpointLister{}, diff --git a/resources/sns-platformapplications.go b/resources/sns-platformapplications.go index 49553f75..da4b0ba0 100644 --- a/resources/sns-platformapplications.go +++ b/resources/sns-platformapplications.go @@ -15,7 +15,7 @@ import ( const SNSPlatformApplicationResource = "SNSPlatformApplication" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: SNSPlatformApplicationResource, Scope: nuke.Account, Lister: &SNSPlatformApplicationLister{}, diff --git a/resources/sns-subscriptions.go b/resources/sns-subscriptions.go index b227c85a..57b0368e 100644 --- a/resources/sns-subscriptions.go +++ b/resources/sns-subscriptions.go @@ -15,7 +15,7 @@ import ( const SNSSubscriptionResource = "SNSSubscription" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: SNSSubscriptionResource, Scope: nuke.Account, Lister: &SNSSubscriptionLister{}, diff --git a/resources/sns-topics.go b/resources/sns-topics.go index 289d6fa4..42b96ad9 100644 --- a/resources/sns-topics.go +++ b/resources/sns-topics.go @@ -16,7 +16,7 @@ import ( const SNSTopicResource = "SNSTopic" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: SNSTopicResource, Scope: nuke.Account, Lister: &SNSTopicLister{}, diff --git a/resources/sqs-queues.go b/resources/sqs-queues.go index 1be01fcb..60ca59ab 100644 --- a/resources/sqs-queues.go +++ b/resources/sqs-queues.go @@ -15,7 +15,7 @@ import ( const SQSQueueResource = "SQSQueue" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: SQSQueueResource, Scope: nuke.Account, Lister: &SQSQueueLister{}, diff --git a/resources/ssm-activations.go b/resources/ssm-activations.go index eef7f5d0..ec5931e9 100644 --- a/resources/ssm-activations.go +++ b/resources/ssm-activations.go @@ -15,7 +15,7 @@ import ( const SSMActivationResource = "SSMActivation" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: SSMActivationResource, Scope: nuke.Account, Lister: &SSMActivationLister{}, diff --git a/resources/ssm-associations.go b/resources/ssm-associations.go index 82088748..07783226 100644 --- a/resources/ssm-associations.go +++ b/resources/ssm-associations.go @@ -14,7 +14,7 @@ import ( const SSMAssociationResource = "SSMAssociation" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: SSMAssociationResource, Scope: nuke.Account, Lister: &SSMAssociationLister{}, diff --git a/resources/ssm-documents.go b/resources/ssm-documents.go index 459d859f..2a589a33 100644 --- a/resources/ssm-documents.go +++ b/resources/ssm-documents.go @@ -14,7 +14,7 @@ import ( const SSMDocumentResource = "SSMDocument" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: SSMDocumentResource, Scope: nuke.Account, Lister: &SSMDocumentLister{}, diff --git a/resources/ssm-maintenancewindows.go b/resources/ssm-maintenancewindows.go index 7afaab0e..5a1c8b88 100644 --- a/resources/ssm-maintenancewindows.go +++ b/resources/ssm-maintenancewindows.go @@ -14,7 +14,7 @@ import ( const SSMMaintenanceWindowResource = "SSMMaintenanceWindow" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: SSMMaintenanceWindowResource, Scope: nuke.Account, Lister: &SSMMaintenanceWindowLister{}, diff --git a/resources/ssm-parameters.go b/resources/ssm-parameters.go index 50ff455e..2675b8d3 100644 --- a/resources/ssm-parameters.go +++ b/resources/ssm-parameters.go @@ -15,7 +15,7 @@ import ( const SSMParameterResource = "SSMParameter" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: SSMParameterResource, Scope: nuke.Account, Lister: &SSMParameterLister{}, diff --git a/resources/ssm-patchbaselines.go b/resources/ssm-patchbaselines.go index 92dfa6bf..e24f6575 100644 --- a/resources/ssm-patchbaselines.go +++ b/resources/ssm-patchbaselines.go @@ -16,7 +16,7 @@ import ( const SSMPatchBaselineResource = "SSMPatchBaseline" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: SSMPatchBaselineResource, Scope: nuke.Account, Lister: &SSMPatchBaselineLister{}, diff --git a/resources/ssm-resourcedatasyncs.go b/resources/ssm-resourcedatasyncs.go index 99fe5e13..a09d7ab9 100644 --- a/resources/ssm-resourcedatasyncs.go +++ b/resources/ssm-resourcedatasyncs.go @@ -14,7 +14,7 @@ import ( const SSMResourceDataSyncResource = "SSMResourceDataSync" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: SSMResourceDataSyncResource, Scope: nuke.Account, Lister: &SSMResourceDataSyncLister{}, diff --git a/resources/storagegateway-fileshares.go b/resources/storagegateway-fileshares.go index 192c57aa..5e48a02b 100644 --- a/resources/storagegateway-fileshares.go +++ b/resources/storagegateway-fileshares.go @@ -14,7 +14,7 @@ import ( const StorageGatewayFileShareResource = "StorageGatewayFileShare" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: StorageGatewayFileShareResource, Scope: nuke.Account, Lister: &StorageGatewayFileShareLister{}, diff --git a/resources/storagegateway-gateways.go b/resources/storagegateway-gateways.go index ce1fa83e..eb398e63 100644 --- a/resources/storagegateway-gateways.go +++ b/resources/storagegateway-gateways.go @@ -14,7 +14,7 @@ import ( const StorageGatewayGatewayResource = "StorageGatewayGateway" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: StorageGatewayGatewayResource, Scope: nuke.Account, Lister: &StorageGatewayGatewayLister{}, diff --git a/resources/storagegateway-tapes.go b/resources/storagegateway-tapes.go index bb83c48a..2d201061 100644 --- a/resources/storagegateway-tapes.go +++ b/resources/storagegateway-tapes.go @@ -14,7 +14,7 @@ import ( const StorageGatewayTapeResource = "StorageGatewayTape" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: StorageGatewayTapeResource, Scope: nuke.Account, Lister: &StorageGatewayTapeLister{}, diff --git a/resources/storagegateway-volumes.go b/resources/storagegateway-volumes.go index 4942851f..c2c22fa6 100644 --- a/resources/storagegateway-volumes.go +++ b/resources/storagegateway-volumes.go @@ -14,7 +14,7 @@ import ( const StorageGatewayVolumeResource = "StorageGatewayVolume" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: StorageGatewayVolumeResource, Scope: nuke.Account, Lister: &StorageGatewayVolumeLister{}, diff --git a/resources/transfer-server-user.go b/resources/transfer-server-user.go index 4c9640e8..466685f9 100644 --- a/resources/transfer-server-user.go +++ b/resources/transfer-server-user.go @@ -17,7 +17,7 @@ import ( const TransferServerUserResource = "TransferServerUser" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: TransferServerUserResource, Scope: nuke.Account, Lister: &TransferServerUserLister{}, diff --git a/resources/transfer-server.go b/resources/transfer-server.go index c8a258bc..2d4f32ab 100644 --- a/resources/transfer-server.go +++ b/resources/transfer-server.go @@ -17,7 +17,7 @@ import ( const TransferServerResource = "TransferServer" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: TransferServerResource, Scope: nuke.Account, Lister: &TransferServerLister{}, diff --git a/resources/waf-rules.go b/resources/waf-rules.go index cc46e52e..fd011d08 100644 --- a/resources/waf-rules.go +++ b/resources/waf-rules.go @@ -15,7 +15,7 @@ import ( const WAFRuleResource = "WAFRule" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: WAFRuleResource, Scope: nuke.Account, Lister: &WAFRuleLister{}, diff --git a/resources/waf-webacl-rule-attachments.go b/resources/waf-webacl-rule-attachments.go index dd52e55f..c081f401 100644 --- a/resources/waf-webacl-rule-attachments.go +++ b/resources/waf-webacl-rule-attachments.go @@ -16,7 +16,7 @@ import ( const WAFWebACLRuleAttachmentResource = "WAFWebACLRuleAttachment" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: WAFWebACLRuleAttachmentResource, Scope: nuke.Account, Lister: &WAFWebACLRuleAttachmentLister{}, diff --git a/resources/waf-webacls.go b/resources/waf-webacls.go index c40cf189..b72e42d0 100644 --- a/resources/waf-webacls.go +++ b/resources/waf-webacls.go @@ -14,7 +14,7 @@ import ( const WAFWebACLResource = "WAFWebACL" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: WAFWebACLResource, Scope: nuke.Account, Lister: &WAFWebACLLister{}, diff --git a/resources/wafregional-byte-match-set-tuples.go b/resources/wafregional-byte-match-set-tuples.go index 7cf6b0a5..29061efd 100644 --- a/resources/wafregional-byte-match-set-tuples.go +++ b/resources/wafregional-byte-match-set-tuples.go @@ -16,7 +16,7 @@ import ( const WAFRegionalByteMatchSetIPResource = "WAFRegionalByteMatchSetIP" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: WAFRegionalByteMatchSetIPResource, Scope: nuke.Account, Lister: &WAFRegionalByteMatchSetIPLister{}, diff --git a/resources/wafregional-byte-match-sets.go b/resources/wafregional-byte-match-sets.go index 922dfe6c..abfd2cf2 100644 --- a/resources/wafregional-byte-match-sets.go +++ b/resources/wafregional-byte-match-sets.go @@ -16,7 +16,7 @@ import ( const WAFRegionalByteMatchSetResource = "WAFRegionalByteMatchSet" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: WAFRegionalByteMatchSetResource, Scope: nuke.Account, Lister: &WAFRegionalByteMatchSetLister{}, diff --git a/resources/wafregional-ip-set-ips.go b/resources/wafregional-ip-set-ips.go index 89e7b89f..5bc7fe10 100644 --- a/resources/wafregional-ip-set-ips.go +++ b/resources/wafregional-ip-set-ips.go @@ -16,7 +16,7 @@ import ( const WAFRegionalIPSetIPResource = "WAFRegionalIPSetIP" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: WAFRegionalIPSetIPResource, Scope: nuke.Account, Lister: &WAFRegionalIPSetIPLister{}, diff --git a/resources/wafregional-ip-sets.go b/resources/wafregional-ip-sets.go index 876a267d..0bececdd 100644 --- a/resources/wafregional-ip-sets.go +++ b/resources/wafregional-ip-sets.go @@ -16,7 +16,7 @@ import ( const WAFRegionalIPSetResource = "WAFRegionalIPSet" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: WAFRegionalIPSetResource, Scope: nuke.Account, Lister: &WAFRegionalIPSetLister{}, diff --git a/resources/wafregional-rate-based-rule-predicates.go b/resources/wafregional-rate-based-rule-predicates.go index 7e35f3d0..c79cfb97 100644 --- a/resources/wafregional-rate-based-rule-predicates.go +++ b/resources/wafregional-rate-based-rule-predicates.go @@ -16,7 +16,7 @@ import ( const WAFRegionalRateBasedRulePredicateResource = "WAFRegionalRateBasedRulePredicate" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: WAFRegionalRateBasedRulePredicateResource, Scope: nuke.Account, Lister: &WAFRegionalRateBasedRulePredicateLister{}, diff --git a/resources/wafregional-rate-based-rules.go b/resources/wafregional-rate-based-rules.go index 013cddb4..b0325924 100644 --- a/resources/wafregional-rate-based-rules.go +++ b/resources/wafregional-rate-based-rules.go @@ -15,7 +15,7 @@ import ( const WAFRegionalRateBasedRuleResource = "WAFRegionalRateBasedRule" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: WAFRegionalRateBasedRuleResource, Scope: nuke.Account, Lister: &WAFRegionalRateBasedRuleLister{}, diff --git a/resources/wafregional-regex-match-sets.go b/resources/wafregional-regex-match-sets.go index 2bb82325..57fd9185 100644 --- a/resources/wafregional-regex-match-sets.go +++ b/resources/wafregional-regex-match-sets.go @@ -16,7 +16,7 @@ import ( const WAFRegionalRegexMatchSetResource = "WAFRegionalRegexMatchSet" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: WAFRegionalRegexMatchSetResource, Scope: nuke.Account, Lister: &WAFRegionalRegexMatchSetLister{}, diff --git a/resources/wafregional-regex-match-tuples.go b/resources/wafregional-regex-match-tuples.go index 88e6cd56..f6da657e 100644 --- a/resources/wafregional-regex-match-tuples.go +++ b/resources/wafregional-regex-match-tuples.go @@ -16,7 +16,7 @@ import ( const WAFRegionalRegexMatchTupleResource = "WAFRegionalRegexMatchTuple" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: WAFRegionalRegexMatchTupleResource, Scope: nuke.Account, Lister: &WAFRegionalRegexMatchTupleLister{}, diff --git a/resources/wafregional-regex-pattern-sets.go b/resources/wafregional-regex-pattern-sets.go index ec0a63e3..18a65b3a 100644 --- a/resources/wafregional-regex-pattern-sets.go +++ b/resources/wafregional-regex-pattern-sets.go @@ -16,7 +16,7 @@ import ( const WAFRegionalRegexPatternSetResource = "WAFRegionalRegexPatternSet" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: WAFRegionalRegexPatternSetResource, Scope: nuke.Account, Lister: &WAFRegionalRegexPatternSetLister{}, diff --git a/resources/wafregional-regex-pattern-tuples.go b/resources/wafregional-regex-pattern-tuples.go index 69229a51..7b45b779 100644 --- a/resources/wafregional-regex-pattern-tuples.go +++ b/resources/wafregional-regex-pattern-tuples.go @@ -16,7 +16,7 @@ import ( const WAFRegionalRegexPatternStringResource = "WAFRegionalRegexPatternString" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: WAFRegionalRegexPatternStringResource, Scope: nuke.Account, Lister: &WAFRegionalRegexPatternStringLister{}, diff --git a/resources/wafregional-rule-predicates.go b/resources/wafregional-rule-predicates.go index 18568ea4..467f9657 100644 --- a/resources/wafregional-rule-predicates.go +++ b/resources/wafregional-rule-predicates.go @@ -16,7 +16,7 @@ import ( const WAFRegionalRulePredicateResource = "WAFRegionalRulePredicate" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: WAFRegionalRulePredicateResource, Scope: nuke.Account, Lister: &WAFRegionalRulePredicateLister{}, diff --git a/resources/wafregional-rulegroup.go b/resources/wafregional-rulegroup.go index 403080d8..9e69b3bd 100644 --- a/resources/wafregional-rulegroup.go +++ b/resources/wafregional-rulegroup.go @@ -16,7 +16,7 @@ import ( const WAFRegionalRuleGroupResource = "WAFRegionalRuleGroup" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: WAFRegionalRuleGroupResource, Scope: nuke.Account, Lister: &WAFRegionalRuleGroupLister{}, diff --git a/resources/wafregional-rules.go b/resources/wafregional-rules.go index 50fabd77..2e8c6fe9 100644 --- a/resources/wafregional-rules.go +++ b/resources/wafregional-rules.go @@ -16,7 +16,7 @@ import ( const WAFRegionalRuleResource = "WAFRegionalRule" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: WAFRegionalRuleResource, Scope: nuke.Account, Lister: &WAFRegionalRuleLister{}, diff --git a/resources/wafregional-webacl-rule-attachments.go b/resources/wafregional-webacl-rule-attachments.go index 2a6439a7..09da956c 100644 --- a/resources/wafregional-webacl-rule-attachments.go +++ b/resources/wafregional-webacl-rule-attachments.go @@ -17,7 +17,7 @@ import ( const WAFRegionalWebACLRuleAttachmentResource = "WAFRegionalWebACLRuleAttachment" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: WAFRegionalWebACLRuleAttachmentResource, Scope: nuke.Account, Lister: &WAFRegionalWebACLRuleAttachmentLister{}, diff --git a/resources/wafregional-webacls.go b/resources/wafregional-webacls.go index 49f9dce0..208f416f 100644 --- a/resources/wafregional-webacls.go +++ b/resources/wafregional-webacls.go @@ -22,7 +22,7 @@ type WAFRegionalWebACL struct { const WAFRegionalWebACLResource = "WAFRegionalWebACL" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: WAFRegionalWebACLResource, Scope: nuke.Account, Lister: &WAFRegionalWebACLLister{}, diff --git a/resources/wafv2-ipsets.go b/resources/wafv2-ipsets.go index 94760bd0..0e40dd36 100644 --- a/resources/wafv2-ipsets.go +++ b/resources/wafv2-ipsets.go @@ -15,7 +15,7 @@ import ( const WAFv2IPSetResource = "WAFv2IPSet" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: WAFv2IPSetResource, Scope: nuke.Account, Lister: &WAFv2IPSetLister{}, diff --git a/resources/wafv2-regex-pattern-sets.go b/resources/wafv2-regex-pattern-sets.go index c11b2853..6a40696f 100644 --- a/resources/wafv2-regex-pattern-sets.go +++ b/resources/wafv2-regex-pattern-sets.go @@ -15,7 +15,7 @@ import ( const WAFv2RegexPatternSetResource = "WAFv2RegexPatternSet" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: WAFv2RegexPatternSetResource, Scope: nuke.Account, Lister: &WAFv2RegexPatternSetLister{}, diff --git a/resources/wafv2-rulegroup.go b/resources/wafv2-rulegroup.go index c7107360..ae064ad6 100644 --- a/resources/wafv2-rulegroup.go +++ b/resources/wafv2-rulegroup.go @@ -15,7 +15,7 @@ import ( const WAFv2RuleGroupResource = "WAFv2RuleGroup" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: WAFv2RuleGroupResource, Scope: nuke.Account, Lister: &WAFv2RuleGroupLister{}, diff --git a/resources/wafv2-webacls.go b/resources/wafv2-webacls.go index f98bae79..51018943 100644 --- a/resources/wafv2-webacls.go +++ b/resources/wafv2-webacls.go @@ -15,7 +15,7 @@ import ( const WAFv2WebACLResource = "WAFv2WebACL" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: WAFv2WebACLResource, Scope: nuke.Account, Lister: &WAFv2WebACLLister{}, diff --git a/resources/workspaces-workspaces.go b/resources/workspaces-workspaces.go index d6ff8a7d..74f1bf91 100644 --- a/resources/workspaces-workspaces.go +++ b/resources/workspaces-workspaces.go @@ -14,7 +14,7 @@ import ( const WorkSpacesWorkspaceResource = "WorkSpacesWorkspace" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: WorkSpacesWorkspaceResource, Scope: nuke.Account, Lister: &WorkSpacesWorkspaceLister{}, diff --git a/resources/xray-group.go b/resources/xray-group.go index 1cecea15..8519781b 100644 --- a/resources/xray-group.go +++ b/resources/xray-group.go @@ -14,7 +14,7 @@ import ( const XRayGroupResource = "XRayGroup" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: XRayGroupResource, Scope: nuke.Account, Lister: &XRayGroupLister{}, diff --git a/resources/xray-sampling-rule.go b/resources/xray-sampling-rule.go index 2232ac16..5ae8e940 100644 --- a/resources/xray-sampling-rule.go +++ b/resources/xray-sampling-rule.go @@ -14,7 +14,7 @@ import ( const XRaySamplingRuleResource = "XRaySamplingRule" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: XRaySamplingRuleResource, Scope: nuke.Account, Lister: &XRaySamplingRuleLister{}, diff --git a/tools/compare-resources/main.go b/tools/compare-resources/main.go index 5df39c5a..cfac79f0 100644 --- a/tools/compare-resources/main.go +++ b/tools/compare-resources/main.go @@ -25,7 +25,7 @@ func main() { var awsNukeResourceFiles []string var awsNukeResourceTypes []string - filepath.WalkDir(awsNukeDirectory, func(path string, di fs.DirEntry, err error) error { + err := filepath.WalkDir(awsNukeDirectory, func(path string, di fs.DirEntry, err error) error { if !strings.HasSuffix(path, ".go") { return nil } @@ -37,6 +37,9 @@ func main() { awsNukeResourceFiles = append(awsNukeResourceFiles, filepath.Base(path)) return nil }) + if err != nil { + panic(err) + } for _, file := range awsNukeResourceFiles { originalFileContents, err := os.ReadFile(filepath.Join(awsNukeDirectory, file)) @@ -61,7 +64,7 @@ func main() { var localResourceFiles []string var localResourceTypes []string - filepath.WalkDir(localResourcesPath, func(path string, di fs.DirEntry, err error) error { + if err := filepath.WalkDir(localResourcesPath, func(path string, di fs.DirEntry, err error) error { if !strings.HasSuffix(path, ".go") { return nil } @@ -72,7 +75,9 @@ func main() { localResourceFiles = append(localResourceFiles, filepath.Base(path)) return nil - }) + }); err != nil { + panic(err) + } for _, file := range localResourceFiles { originalFileContents, err := os.ReadFile(filepath.Join(localResourcesPath, file)) diff --git a/tools/create-resource/main.go b/tools/create-resource/main.go index f34c3b9b..fbd11392 100644 --- a/tools/create-resource/main.go +++ b/tools/create-resource/main.go @@ -25,7 +25,7 @@ import ( const {{.ResourceType}}Resource = "{{.ResourceType}}" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: {{.ResourceType}}Resource, Scope: nuke.Account, Lister: &{{.ResourceType}}Lister{}, diff --git a/tools/list-cloudcontrol/main.go b/tools/list-cloudcontrol/main.go index a00cf2f1..7ec6a3d4 100644 --- a/tools/list-cloudcontrol/main.go +++ b/tools/list-cloudcontrol/main.go @@ -4,6 +4,7 @@ import ( "context" "encoding/json" "fmt" + "github.com/ekristen/libnuke/pkg/resource" "strings" "github.com/fatih/color" @@ -13,8 +14,6 @@ import ( "github.com/aws/aws-sdk-go/aws/endpoints" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/cloudformation" - - "github.com/ekristen/aws-nuke/pkg/nuke" ) type CFTypeSchema struct { @@ -33,7 +32,7 @@ func main() { cf := cloudformation.New(sess) - mapping := nuke.GetCloudControlMapping() + mapping := resource.GetAlternativeResourceTypeMapping() in := &cloudformation.ListTypesInput{ Type: aws.String(cloudformation.RegistryTypeResource), diff --git a/tools/migrate-resource/main.go b/tools/migrate-resource/main.go index 2a9137a6..92b67c79 100644 --- a/tools/migrate-resource/main.go +++ b/tools/migrate-resource/main.go @@ -13,7 +13,7 @@ import ( var resourceTemplate = `const {{.ResourceType}}Resource = "{{.ResourceType}}" func init() { - resource.Register(resource.Registration{ + resource.Register(&resource.Registration{ Name: {{.ResourceType}}Resource, Scope: nuke.Account, Lister: &{{.ResourceType}}Lister{}, @@ -107,5 +107,8 @@ func main() { newContents = strings.ReplaceAll(newContents, "config.FeatureFlags", "*featureflag.FeatureFlags") newContents = strings.ReplaceAll(newContents, ") Remove() error {", ") Remove(_ context.Context) error {") - os.WriteFile(filepath.Join(".", "resources", args[0]+".go"), []byte(newContents), 0644) + if err := os.WriteFile( + filepath.Join(".", "resources", args[0]+".go"), []byte(newContents), 0644); err != nil { + panic(err) + } } From 2455a7b3f7a6aac13d112241b7fc75f568767ba2 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 22 Jan 2024 18:09:40 -0700 Subject: [PATCH 044/617] version: 3.0.0-beta.2 --- pkg/common/version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/common/version.go b/pkg/common/version.go index 7323449a..e997cc04 100644 --- a/pkg/common/version.go +++ b/pkg/common/version.go @@ -4,7 +4,7 @@ package common var NAME = "aws-nuke" // SUMMARY of the Version -var SUMMARY = "3.0.0-beta.1" +var SUMMARY = "3.0.0-beta.2" // BRANCH of the Version var BRANCH = "dev" From bd40150d5c0eb5bcc5b457e173e7ca6fc9290a76 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 22 Jan 2024 19:29:52 -0700 Subject: [PATCH 045/617] update dockerfile entrypoint and readme (#30) * fix(docker): entrypoint on Dockerfile * docs: improve readme default docs * docs(readme): improvements --- Dockerfile | 2 ++ README.md | 84 ++++++++++++++++++------------------------------------ 2 files changed, 29 insertions(+), 57 deletions(-) diff --git a/Dockerfile b/Dockerfile index 21a32fc2..04b248e1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,9 +12,11 @@ RUN \ go build -o bin/aws-nuke main.go FROM base AS goreleaser +ENTRYPOINT ["/usr/local/bin/aws-nuke"] COPY aws-nuke /usr/local/bin/aws-nuke USER aws-nuke FROM base +ENTRYPOINT ["/usr/local/bin/aws-nuke"] COPY --from=build /src/bin/aws-nuke /usr/local/bin/aws-nuke USER aws-nuke \ No newline at end of file diff --git a/README.md b/README.md index c4d30e01..f48f1eaf 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,6 @@ [![Go Report Card](https://goreportcard.com/badge/github.com/ekristen/aws-nuke)](https://goreportcard.com/report/github.com/ekristen/aws-nuke) [![Maintainability](https://api.codeclimate.com/v1/badges/bf05fb12c69f1ea7f257/maintainability)](https://codeclimate.com/github/ekristen/aws-nuke/maintainability) -**Forked from [rebuy-de/aws-nuke](https://github.com/rebuy-de/aws-nuke)** - ## Overview Remove all resources from an AWS account. @@ -16,8 +14,9 @@ resources and create a Pull Request or to create an [Issue](https://github.com/e ## Documentation -All documentation is in the [docs/](docs/) directory and is built using [MkDocs](https://www.mkdocs.org/). However, -all the documentation is hosted at [https://ekristen.github.io/aws-nuke/](https://ekristen.github.io/aws-nuke/). +All documentation is in the [docs/](docs) directory and is built using [Material for Mkdocs](https://squidfunk.github.io/mkdocs-material/). + +It is hosted at [https://ekristen.github.io/aws-nuke/](https://ekristen.github.io/aws-nuke/). ## History of this Fork @@ -34,72 +33,43 @@ Azure, but I didn't want to have to maintain multiple copies of the same code, s [libnuke](https://github.com/ekristen/libnuke) to abstract all the code that was common between the two tools and write proper unit tests for it. +## Attribution, License, and Copyright + +The rewrite of this tool to use [libnuke](https://github.com/ekristen/libnuke) would not have been posssible without the +hard work that came before me on the original tool by the team and contributors over at [rebuy-de](https://github.com/rebuy-de) +and their original work on [rebuy-de/aws-nuke](https://github.com/rebuy-de/aws-nuke). + +This tool is licensed under the MIT license. See the [LICENSE](LICENSE) file for more information. The bulk of this +tool was rewritten to use [libnuke](https://github.com/ekristen/libnuke) which was in part originally sourced from +[rebuy-de/aws-nuke](https://github.com/rebuy-de/aws-nuke). + +## Contribute + +You can contribute to *aws-nuke* by forking this repository, making your changes and creating a Pull Request against +this repository. If you are unsure how to solve a problem or have other questions about a contributions, please create +a GitHub issue. + ## Version 3 -Version 3 is a rewrite of this tool using [libnuke](https://github.com/ekristen/libnuke) with a focus on improving a -number of the outstanding things that I couldn't get done with the original project without separating out the core -code into a library. +Version 3 is a rewrite of this tool using [libnuke](https://github.com/ekristen/libnuke) with a focus on improving a number of the outstanding things +that I couldn't get done with the original project without separating out the core code into a library. See Goals +below for more. ### Changes -- The root command will result in help now on v3, the primary nuke command moved to `nuke`. -- CloudFormation Stacks now support a hold and wait for parent deletion process. -- Nested CloudFormation Stacks are now eligible for deletion and no longer omitted. +- The root command will result in help now on v3, the primary nuke command moved to `nuke`. **Breaking** +- CloudFormation Stacks now support a hold and wait for parent deletion process. **Quasi-Breaking** +- Nested CloudFormation Stacks are now eligible for deletion and no longer omitted. **Quasi-Breaking** - The entire resource lister format has changed and requires a struct. - Context is passed throughout the entire library now, including the listing function and the removal function. + - This is in preparation for supporting AWS SDK Go v2 ### Goals - Adding additional tests - Adding additional resources -- Adding Documentation for adding resources and using the tool +- Adding documentation for adding resources and using the tool - Consider adding DAG for dependencies between resource types and individual resources - This will improve the process of deleting resources that have dependencies on other resources and reduce errors and unnecessary API calls. -## Documentation - -The project is built to have the documentation right alongside the code in the `docs/` directory leveraging -[Material for Mkdocs](https://squidfunk.github.io/mkdocs-material/) - -In the root of the project exists mkdocs.yml which drives the configuration for the documentation. - -This README.md is currently copied to `docs/index.md` and the documentation is automatically published to the GitHub -pages location for this repository using a GitHub Action workflow. It does not use the `gh-pages` branch. - - -## Use Cases - -- We are testing our [Terraform](https://www.terraform.io/) code with Jenkins. Sometimes a Terraform run fails during development and - messes up the account. With *aws-nuke* we can simply clean up the failed account, so it can be reused for the next - build. -- Our platform developers have their own AWS Accounts where they can create their own Kubernetes clusters for testing - purposes. With *aws-nuke* it is very easy to clean up these account at the end of the day and keep the costs low. - - -### Feature Flags - -There are some features, which are quite opinionated. To make those work for -everyone, *aws-nuke* has flags to manually enable those features. These can be -configured on the root-level of the config, like this: - -```yaml ---- -feature-flags: - disable-deletion-protection: - RDSInstance: true - EC2Instance: true - CloudformationStack: true - force-delete-lightsail-addons: true -``` - -## Contact Channels - -For now GitHub issues, may open a Slack or Discord if warranted. - -## Contribute - -You can contribute to *aws-nuke* by forking this repository, making your -changes and creating a Pull Request against our repository. If you are unsure -how to solve a problem or have other questions about a contributions, please -create a GitHub issue. From b54dea678183b2c3e67d0104b781300707723da3 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 23 Jan 2024 15:28:18 -0700 Subject: [PATCH 046/617] bug fixes, codeclimate, and featureflags (#32) * chore(codeclimate): disable return-statements * libnuke@0.4.0 to fix scanner registration, add dependency for snapshot, add feature-flag support * docs: add cli documentation, improve filtering docs around dateOlderThan --- .codeclimate.yml | 3 ++ .github/workflows/tests.yml | 2 +- docs/cli-feature-flags.md | 35 +++++++++++++++++++ docs/cli-usage.md | 52 ++++++++++++++++++++++++++++ docs/config-filtering.md | 22 ++++++++++-- docs/resources.md | 66 ++++++++++++++++++++++++++++++++++++ go.mod | 3 +- go.sum | 6 ++-- mkdocs.yml | 3 ++ pkg/commands/nuke/command.go | 21 +++++++++--- resources/ec2-snapshots.go | 3 ++ 11 files changed, 202 insertions(+), 14 deletions(-) create mode 100644 docs/cli-feature-flags.md create mode 100644 docs/cli-usage.md diff --git a/.codeclimate.yml b/.codeclimate.yml index e2502ca2..deda4ba5 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -1,3 +1,6 @@ +checks: + return-statements: + enabled: false plugins: duplication: enabled: true diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 336eeccf..6c56f8bf 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -22,4 +22,4 @@ jobs: go mod download - name: run go tests run: | - go test -timeout 60s -race -coverprofile=coverage.txt -covermode=atomic ./... \ No newline at end of file + go test -timeout 60s -race -coverprofile=coverage.txt -covermode=atomic ./... diff --git a/docs/cli-feature-flags.md b/docs/cli-feature-flags.md new file mode 100644 index 00000000..7165771a --- /dev/null +++ b/docs/cli-feature-flags.md @@ -0,0 +1,35 @@ +# Feature Flags + +## Overview + +These are the feature flags that are currently available in aws-nuke. They are all disabled by default. These are +switches that changes the actual behavior of the tool itself. Changing the behavior of a resource is done via resource +settings. + +!!! note + The original tool had configuration options called `feature-flags` which were used to enable/disable certain + behaviors with resources, those are now called settings and `feature-flags` have been deprecated in the config. + +## Usage + +```console +aws-nuke run --feature-flag "wait-on-dependencies" +``` + +**Note:** other CLI arguments are omitted for brevity. + +## Available Feature Flags + +- `wait-on-dependencies` - This feature flag will cause aws-nuke to wait for all resource type dependencies to be + deleted before deleting the next resource type. + +### wait-on-dependencies + +This feature flag will cause aws-nuke to wait for all resource type dependencies to be deleted before deleting the next +resource type. This is useful for resources that have dependencies on other resources. For example, an IAM Role that has +an attached policy. + +The problem is that if you delete the IAM Role first, it will fail because it has a dependency on the policy. + +This feature flag will cause aws-nuke to wait for all resources of a given type to be deleted before deleting the next +resource type. This will reduce the number of errors and unnecessary API calls. \ No newline at end of file diff --git a/docs/cli-usage.md b/docs/cli-usage.md new file mode 100644 index 00000000..e2e87bfa --- /dev/null +++ b/docs/cli-usage.md @@ -0,0 +1,52 @@ +# Usage + +## aws-nuke + +```console +NAME: + aws-nuke - remove everything from an aws account + +USAGE: + aws-nuke [global options] command [command options] + +VERSION: + 3.0.0-beta.2 + +AUTHOR: + Erik Kristensen + +COMMANDS: + run, nuke run nuke against an aws account and remove everything from it + resource-types, list-resources list available resources to nuke + help, h Shows a list of commands or help for one command + +GLOBAL OPTIONS: + --help, -h show help + --version, -v print the version +``` + +## aws-nuke run + +```console +NAME: + aws-nuke run - run nuke against an aws account and remove everything from it + +USAGE: + aws-nuke run [command options] [arguments...] + +OPTIONS: + --config value path to config file (default: "config.yaml") + --force disable prompting for verification to run (default: false) + --force-sleep value seconds to sleep (default: 10) + --quiet hide filtered messages (default: false) + --no-dry-run actually run the removal of the resources after discovery (default: false) + --only-resource value, --target value, --include value, --include-resource value [ --only-resource value, --target value, --include value, --include-resource value ] only run against these resource types + --exclude-resource value, --exclude value [ --exclude-resource value, --exclude value ] exclude these resource types + --cloud-control value [ --cloud-control value ] use these resource types with the Cloud Control API instead of the default + --feature-flag value [ --feature-flag value ] enable experimental behaviors that may not be fully tested or supported + --log-level value, -l value Log Level (default: "info") [$LOGLEVEL] + --log-caller log the caller (aka line number and file) (default: false) + --log-disable-color disable log coloring (default: false) + --log-full-timestamp force log output to always show full timestamp (default: false) + --help, -h show help +``` \ No newline at end of file diff --git a/docs/config-filtering.md b/docs/config-filtering.md index 29f39de9..0b8b45d2 100644 --- a/docs/config-filtering.md +++ b/docs/config-filtering.md @@ -73,9 +73,16 @@ IAMUser: ### DateOlderThan -The identifier is parsed as a timestamp. After the offset is added to it (specified in the `value` field), the resulting -timestamp must be AFTER the current time. Details on offset syntax can be found in the [library documentation](https://golang.org/pkg/time/#ParseDuration). -Supported date formats are epoch time: +This works by parsing the specified property into a timestamp and comparing it to the current time minus the specified +duration. The duration is specified in the `value` field. The duration syntax is based on golang's duration syntax. + +> ParseDuration parses a duration string. A duration string is a possibly signed sequence of decimal numbers, each with +> optional fraction and a unit suffix, such as "300ms", "-1.5h" or "2h45m". Valid time units are "ns", "us" (or "µs"), +> "ms", "s", "m", "h". + +Full details on duration syntax can be found in the [time library documentation](https://golang.org/pkg/time/#ParseDuration). + +The value from the property is parsed as a timestamp and the following are the supported formats: - `2006-01-02` - `2006/01/02` @@ -83,6 +90,15 @@ Supported date formats are epoch time: - `2006-01-02T15:04:05.999999999Z07:00` - `2006-01-02T15:04:05Z07:00` +In the follow example we are filtering EC2 Images that have a `CreationDate` older than 1 hour. + +```yaml +EC2Image: + - type: dateOlderThan + property: CreationDate + value: 1h +``` + ## Properties By default, when writing a filter if you do not specify a property, it will use the `Name` property. However, resources diff --git a/docs/resources.md b/docs/resources.md index 18049314..86b063b9 100644 --- a/docs/resources.md +++ b/docs/resources.md @@ -13,6 +13,8 @@ The anatomy of a resource is fairly simple, it's broken down into a few parts: - `Resource` - This is the base resource type that is used to define the resource. - `Lister` - This is the type that is used to list the resources. +### Resource + The resource must have the `func Remove() error` method defined on it, this is what is used to remove the resource. It can optionally have the following methods defined: @@ -21,6 +23,70 @@ It can optionally have the following methods defined: - `func String() string` - This is used to print the resource in a human-readable format. - `func Properties() types.Properties` - This is used to print the resource in a human-readable format. +```go +package resources + +import ( + "context" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" +) + +type ExampleResource struct { + ID *string +} + +func (r *ExampleResource) Remove(_ context.Context) error { + // remove the resource, an error will put the resource in failed state + // resources in failed state are retried a number of times + return nil +} + +func (r *ExampleResource) Filter() error { + // filter the resource, this is useful for built-in resources that cannot + // be removed, like an AWS managed resource, return an error here to filter + // it before it even gets to the user supplied filters. + return nil +} + +func (r *ExampleResource) String() string { + // return a string representation of the resource, this is legacy, but still + // used for a number of reasons. + return *r.ID +} +``` + +## Lister + +The lister must have the `func List(ctx context.Context, o interface{}) ([]resource.Resource, error)` method defined on it. + +```go +package resources + +import ( + "context" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/pkg/nuke" +) + +type ExampleResourceLister struct{} + +func (l *ExampleResourceLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + var resources []resource.Resource + + // list the resources and add to resources slice + + return resources, nil +} +``` + ### Example ```go diff --git a/go.mod b/go.mod index 3371d9ff..282ac855 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.21.6 require ( github.com/aws/aws-sdk-go v1.49.21 - github.com/ekristen/libnuke v0.0.0-20240122232527-922a9af6ba13 + github.com/ekristen/libnuke v0.0.0-20240123221700-d8899f33f580 github.com/fatih/color v1.16.0 github.com/golang/mock v1.6.0 github.com/google/uuid v1.5.0 @@ -24,7 +24,6 @@ require ( github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/mb0/glob v0.0.0-20160210091149-1eb79d2de6c4 // indirect - github.com/mitchellh/hashstructure/v2 v2.0.2 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/stevenle/topsort v0.2.0 // indirect diff --git a/go.sum b/go.sum index ef5ef6e8..30db4bce 100644 --- a/go.sum +++ b/go.sum @@ -6,8 +6,8 @@ github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ3 github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/ekristen/libnuke v0.0.0-20240122232527-922a9af6ba13 h1:d8d42BTmJkuO+cS8c+xitkNFC0ik9xAbqbZ+pJ76j3M= -github.com/ekristen/libnuke v0.0.0-20240122232527-922a9af6ba13/go.mod h1:GgNcRFHihQza4zWLoun9hEXzVfGTk+nKTwCwo6xAyDg= +github.com/ekristen/libnuke v0.0.0-20240123221700-d8899f33f580 h1:7F4+KkJLtwDC5STusCTGIcnIjBmOOP7mUOpCzS2KoCU= +github.com/ekristen/libnuke v0.0.0-20240123221700-d8899f33f580/go.mod h1:BqHpyOLHEgCwAi82WbM+1fjGRgdDDG4a8W4ivjfHMP8= github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= @@ -34,8 +34,6 @@ github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWE github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mb0/glob v0.0.0-20160210091149-1eb79d2de6c4 h1:NK3O7S5FRD/wj7ORQ5C3Mx1STpyEMuFe+/F0Lakd1Nk= github.com/mb0/glob v0.0.0-20160210091149-1eb79d2de6c4/go.mod h1:FqD3ES5hx6zpzDainDaHgkTIqrPaI9uX4CVWqYZoQjY= -github.com/mitchellh/hashstructure/v2 v2.0.2 h1:vGKWl0YJqUNxE8d+h8f6NJLcCJrgbhC4NcD46KavDd4= -github.com/mitchellh/hashstructure/v2 v2.0.2/go.mod h1:MG3aRVU/N29oo/V/IhBX8GR/zz4kQkprJgF2EVszyDE= github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= diff --git a/mkdocs.yml b/mkdocs.yml index fb97a09e..faec5582 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -70,6 +70,9 @@ nav: - Install: installation.md - Authentication: auth.md - Quick Start: quick-start.md + - CLI: + - Usage: cli-usage.md + - Feature Flags: cli-feature-flags.md - Config: - Overview: config.md - Filtering: config-filtering.md diff --git a/pkg/commands/nuke/command.go b/pkg/commands/nuke/command.go index 0ec12e64..a6bc4492 100644 --- a/pkg/commands/nuke/command.go +++ b/pkg/commands/nuke/command.go @@ -4,6 +4,7 @@ import ( "context" "fmt" "os" + "slices" "github.com/sirupsen/logrus" "github.com/urfave/cli/v2" @@ -52,6 +53,12 @@ func execute(c *cli.Context) error { Alternatives: c.StringSlice("cloud-control"), } + if len(c.StringSlice("feature-flag")) > 0 { + if slices.Contains(c.StringSlice("feature-flag"), "wait-on-dependencies") { + params.WaitOnDependencies = true + } + } + // Parse the user supplied configuration file to pass in part to configure the nuke process. parsedConfig, err := config.New(libconfig.Options{ Path: c.Path("config"), @@ -94,6 +101,8 @@ func execute(c *cli.Context) error { // Instantiate libnuke n := libnuke.New(params, filters, parsedConfig.Settings) + n.RegisterVersion(common.AppVersion.Summary) + // Register our custom validate handler that validates the account and AWS nuke unique alias checks n.RegisterValidateHandler(func() error { return parsedConfig.ValidateAccount(account.ID(), account.Aliases()) @@ -112,8 +121,8 @@ func execute(c *cli.Context) error { resource.GetNames(), []types.Collection{ n.Parameters.Includes, - parsedConfig.ResourceTypes.Targets, - accountConfig.ResourceTypes.Targets, + parsedConfig.ResourceTypes.GetIncludes(), + accountConfig.ResourceTypes.GetIncludes(), }, []types.Collection{ n.Parameters.Excludes, @@ -122,8 +131,8 @@ func execute(c *cli.Context) error { }, []types.Collection{ n.Parameters.Alternatives, - parsedConfig.ResourceTypes.CloudControl, - accountConfig.ResourceTypes.CloudControl, + parsedConfig.ResourceTypes.GetAlternatives(), + accountConfig.ResourceTypes.GetAlternatives(), }, resource.GetAlternativeResourceTypeMapping(), ) @@ -194,6 +203,10 @@ func init() { Name: "cloud-control", Usage: "use these resource types with the Cloud Control API instead of the default", }, + &cli.StringSliceFlag{ + Name: "feature-flag", + Usage: "enable experimental behaviors that may not be fully tested or supported", + }, } cmd := &cli.Command{ diff --git a/resources/ec2-snapshots.go b/resources/ec2-snapshots.go index f7300b59..e76a9256 100644 --- a/resources/ec2-snapshots.go +++ b/resources/ec2-snapshots.go @@ -22,6 +22,9 @@ func init() { Name: EC2SnapshotResource, Scope: nuke.Account, Lister: &EC2SnapshotLister{}, + DependsOn: []string{ + EC2ImageResource, + }, }) } From b869a09875f9fcd7335c2a3996273de48489a615 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 23 Jan 2024 15:31:11 -0700 Subject: [PATCH 047/617] version: 3.0.0-beta.3 --- pkg/common/version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/common/version.go b/pkg/common/version.go index e997cc04..55939a29 100644 --- a/pkg/common/version.go +++ b/pkg/common/version.go @@ -4,7 +4,7 @@ package common var NAME = "aws-nuke" // SUMMARY of the Version -var SUMMARY = "3.0.0-beta.2" +var SUMMARY = "3.0.0-beta.3" // BRANCH of the Version var BRANCH = "dev" From 4e0c69b9d5159063dfe7120309f56cfe21a25813 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 25 Jan 2024 16:12:03 -0700 Subject: [PATCH 048/617] chore(cloudwatchlogs-loggroup): add depends on for EC2VPC (#34) --- resources/cloudwatchlogs-loggroups.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/cloudwatchlogs-loggroups.go b/resources/cloudwatchlogs-loggroups.go index dd6caf8c..30e5cedb 100644 --- a/resources/cloudwatchlogs-loggroups.go +++ b/resources/cloudwatchlogs-loggroups.go @@ -22,6 +22,9 @@ func init() { Name: CloudWatchLogsLogGroupResource, Scope: nuke.Account, Lister: &CloudWatchLogsLogGroupLister{}, + DependsOn: []string{ + EC2VPCResource, // Reason: flow logs, if log group is cleaned before vpc, vpc can write more flow logs + }, }) } From 17e590edd4c203d62b2ea2da747acc59d6d606e9 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 25 Jan 2024 16:12:50 -0700 Subject: [PATCH 049/617] Improving Internal Tools and Documentation (#33) * docs: add note about continued attribution * chore: improve internal tooling --- docs/index.md | 12 ++++++++++-- go.mod | 2 ++ go.sum | 11 ++++++----- tools/compare-resources/main.go | 18 ++++++++++++++++-- tools/migrate-resource/main.go | 22 ++++++++++++---------- 5 files changed, 46 insertions(+), 19 deletions(-) diff --git a/docs/index.md b/docs/index.md index 94192c1e..7799c8a3 100644 --- a/docs/index.md +++ b/docs/index.md @@ -5,7 +5,7 @@ Remove all resources from an AWS account. *aws-nuke* is stable, but it is likely that not all AWS resources are covered by it. Be encouraged to add missing resources and create a Pull Request or to create an [Issue](https://github.com/ekristen/aws-nuke/issues/new). -## History +## History of this Fork This is a full fork of the original tool written by the folks over at [rebuy-de](https://github.com/rebuy-de). This fork became necessary after attempting to make contributions and respond to issues to learn that the current maintainers only have time to @@ -16,7 +16,15 @@ decision to fork and maintain it. Since then the rebuy-de team has taken up interest in responding to their issues and pull requests, but I have decided to continue maintaining this fork as I have a few things I want to do with it that I don't think they will be interested. -## libnuke +### Continued Attribution + +I want to make it clear that I am not trying to take credit for the work of the original authors, and I will continue +to give them credit for their work. I also want to make sure any contributors are also recognized and attributed for +their work. Since this has diverged from the upstream, I've written tooling and scripts to cherry-pick commits from +upstream and apply them to this fork, then modify the resources to work with the new library and submit as a PR to this +fork. + +## Introducing libnuke Officially over the Christmas break of 2023, I decided to create [libnuke](https://github.com/ekristen/libnuke) which is a library that can be used to create similar tools for other cloud providers. This library is used by both this tool, diff --git a/go.mod b/go.mod index 282ac855..01db66fe 100644 --- a/go.mod +++ b/go.mod @@ -25,9 +25,11 @@ require ( github.com/mattn/go-isatty v0.0.20 // indirect github.com/mb0/glob v0.0.0-20160210091149-1eb79d2de6c4 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/stevenle/topsort v0.2.0 // indirect github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect + golang.org/x/net v0.19.0 // indirect golang.org/x/sync v0.6.0 // indirect golang.org/x/sys v0.16.0 // indirect gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect diff --git a/go.sum b/go.sum index 30db4bce..1629f290 100644 --- a/go.sum +++ b/go.sum @@ -39,8 +39,9 @@ github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= +github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= +github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= @@ -62,8 +63,8 @@ golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= -golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= +golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c= +golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ= @@ -81,8 +82,8 @@ golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= -golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= +golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= +golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= diff --git a/tools/compare-resources/main.go b/tools/compare-resources/main.go index cfac79f0..14fa9873 100644 --- a/tools/compare-resources/main.go +++ b/tools/compare-resources/main.go @@ -13,6 +13,12 @@ import ( var OriginalRegisterRegex = regexp.MustCompile("register\\(\"(?P.*)\",\\s?(?P\\w+)(,)?(\\s+mapCloudControl\\(\"(?P.*)\"\\))?") var NewRegisterRegex = regexp.MustCompile(`resource.Registration{\s+Name:\s+(?P.*),`) +var aliases = map[string]string{ + "NetpuneSnapshot": "NeptuneSnapshot", + "EKSFargateProfiles": "EKSFargateProfile", + "EKSNodegroups": "EKSNodegroup", +} + func main() { args := os.Args[1:] @@ -104,14 +110,22 @@ func main() { fmt.Println("\nResources not in local aws-nuke:") for _, resource := range awsNukeResourceTypes { - if !slices.Contains(localResourceTypes, resource) { + _, ok := aliases[resource] + if !slices.Contains(localResourceTypes, resource) && !ok { fmt.Println("->", resource) } } fmt.Println("\nResources not in aws-nuke:") for _, resource := range localResourceTypes { - if !slices.Contains(awsNukeResourceTypes, resource) { + found := false + for _, v := range aliases { + if v == resource { + found = true + } + } + + if !slices.Contains(awsNukeResourceTypes, resource) && !found { fmt.Println("+>", resource) } } diff --git a/tools/migrate-resource/main.go b/tools/migrate-resource/main.go index 92b67c79..f3fc4048 100644 --- a/tools/migrate-resource/main.go +++ b/tools/migrate-resource/main.go @@ -41,13 +41,18 @@ func main() { panic("no arguments given") } + if len(args) != 2 { + fmt.Println("usage: migrate-resource ") + os.Exit(1) + } + originalSourceDir := filepath.Join(args[0], "resources") repl := regexp.MustCompile("func init\\(\\) {\\s+.*[\\s+].*\\s}") match := regexp.MustCompile("register\\(\"(?P.*)\",\\s?(?P\\w+)(,)?(\\s+mapCloudControl\\(\"(?P.*)\"\\))?") funcMatch := regexp.MustCompile("func List.*{") - filename := filepath.Join(originalSourceDir, "resources", args[0]+".go") + filename := filepath.Join(originalSourceDir, "resources", args[1]+".go") originalFileContents, err := os.ReadFile(filename) if err != nil { @@ -60,14 +65,6 @@ func main() { panic("no matches") } resourceType := matches[1] - funcName := matches[2] - cc := "" - if len(matches) == 4 { - cc = matches[3] - } - - fmt.Println(cc) - fmt.Println(funcName) data := struct { ResourceType string @@ -107,8 +104,13 @@ func main() { newContents = strings.ReplaceAll(newContents, "config.FeatureFlags", "*featureflag.FeatureFlags") newContents = strings.ReplaceAll(newContents, ") Remove() error {", ") Remove(_ context.Context) error {") + cwd, err := os.Getwd() + if err != nil { + panic(err) + } + if err := os.WriteFile( - filepath.Join(".", "resources", args[0]+".go"), []byte(newContents), 0644); err != nil { + filepath.Join(cwd, "resources", args[1]+".go"), []byte(newContents), 0644); err != nil { panic(err) } } From 66ffdb900b83e4daf4c6bc50dc5955ff72073a15 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 25 Jan 2024 16:29:22 -0700 Subject: [PATCH 050/617] fix: migrate-resource tool (#36) * fix: migrate-resource tool * improve format of output --- tools/compare-resources/main.go | 41 ++++++++++++++++++--------------- tools/migrate-resource/main.go | 2 +- 2 files changed, 24 insertions(+), 19 deletions(-) diff --git a/tools/compare-resources/main.go b/tools/compare-resources/main.go index 14fa9873..1a9b6db8 100644 --- a/tools/compare-resources/main.go +++ b/tools/compare-resources/main.go @@ -2,6 +2,7 @@ package main import ( "fmt" + "github.com/fatih/color" "io/fs" "os" "path/filepath" @@ -26,12 +27,13 @@ func main() { panic("no arguments given") } - awsNukeDirectory := filepath.Join(args[0], "resources") + upstreamDirectory := filepath.Join(args[0], "resources") - var awsNukeResourceFiles []string - var awsNukeResourceTypes []string + var upstreamResourceFiles []string + var upstreamResourceTypes []string + var upstreamTypeToFile = map[string]string{} - err := filepath.WalkDir(awsNukeDirectory, func(path string, di fs.DirEntry, err error) error { + err := filepath.WalkDir(upstreamDirectory, func(path string, di fs.DirEntry, err error) error { if !strings.HasSuffix(path, ".go") { return nil } @@ -40,15 +42,15 @@ func main() { return nil } - awsNukeResourceFiles = append(awsNukeResourceFiles, filepath.Base(path)) + upstreamResourceFiles = append(upstreamResourceFiles, filepath.Base(path)) return nil }) if err != nil { panic(err) } - for _, file := range awsNukeResourceFiles { - originalFileContents, err := os.ReadFile(filepath.Join(awsNukeDirectory, file)) + for _, file := range upstreamResourceFiles { + originalFileContents, err := os.ReadFile(filepath.Join(upstreamDirectory, file)) if err != nil { panic(err) } @@ -63,7 +65,8 @@ func main() { funcName := matches[2] _ = funcName - awsNukeResourceTypes = append(awsNukeResourceTypes, resourceType) + upstreamResourceTypes = append(upstreamResourceTypes, resourceType) + upstreamTypeToFile[resourceType] = file } var localResourcesPath = filepath.Join("resources") @@ -105,17 +108,9 @@ func main() { localResourceTypes = append(localResourceTypes, resourceType) } - fmt.Println("\naws-nuke resource count:", len(awsNukeResourceTypes)) + fmt.Println("\naws-nuke resource count:", len(upstreamResourceTypes)) fmt.Println("local resource count:", len(localResourceTypes)) - fmt.Println("\nResources not in local aws-nuke:") - for _, resource := range awsNukeResourceTypes { - _, ok := aliases[resource] - if !slices.Contains(localResourceTypes, resource) && !ok { - fmt.Println("->", resource) - } - } - fmt.Println("\nResources not in aws-nuke:") for _, resource := range localResourceTypes { found := false @@ -125,8 +120,18 @@ func main() { } } - if !slices.Contains(awsNukeResourceTypes, resource) && !found { + if !slices.Contains(upstreamResourceTypes, resource) && !found { fmt.Println("+>", resource) } } + + fmt.Println("\nResources not in local aws-nuke:") + for _, resource := range upstreamResourceTypes { + _, ok := aliases[resource] + if !slices.Contains(localResourceTypes, resource) && !ok { + color.New(color.Bold).Printf("%-55s", resource) + color.New(color.FgYellow).Println(upstreamTypeToFile[resource]) + } + } + } diff --git a/tools/migrate-resource/main.go b/tools/migrate-resource/main.go index f3fc4048..a0026088 100644 --- a/tools/migrate-resource/main.go +++ b/tools/migrate-resource/main.go @@ -52,7 +52,7 @@ func main() { match := regexp.MustCompile("register\\(\"(?P.*)\",\\s?(?P\\w+)(,)?(\\s+mapCloudControl\\(\"(?P.*)\"\\))?") funcMatch := regexp.MustCompile("func List.*{") - filename := filepath.Join(originalSourceDir, "resources", args[1]+".go") + filename := filepath.Join(originalSourceDir, args[1]+".go") originalFileContents, err := os.ReadFile(filename) if err != nil { From 599d38a11ec9f2d251abf482e33876c8ba895e73 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 25 Jan 2024 16:29:30 -0700 Subject: [PATCH 051/617] add(resources): MemoryDB from upstream (#35) * feat: MemoryDBACL resource support (#1079) feat: MemoryDBCluster resource support feat: MemoryDBParameterGroup resource support feat: MemoryDBSubnetGroup resource support feat: MemoryDBUser resource support * Filter open-access MemoryDB ACL (#1089) * migrate: memorydb resources to libnuke format --------- Co-authored-by: James Taylor <127947293+JTaylor-myenergi@users.noreply.github.com> Co-authored-by: Philipp Trulson --- resources/memorydb-acl.go | 108 +++++++++++++++++++++++++ resources/memorydb-cluster.go | 99 +++++++++++++++++++++++ resources/memorydb-parametergroups.go | 112 ++++++++++++++++++++++++++ resources/memorydb-subnetgroups.go | 100 +++++++++++++++++++++++ resources/memorydb-user.go | 109 +++++++++++++++++++++++++ 5 files changed, 528 insertions(+) create mode 100644 resources/memorydb-acl.go create mode 100644 resources/memorydb-cluster.go create mode 100644 resources/memorydb-parametergroups.go create mode 100644 resources/memorydb-subnetgroups.go create mode 100644 resources/memorydb-user.go diff --git a/resources/memorydb-acl.go b/resources/memorydb-acl.go new file mode 100644 index 00000000..1541c754 --- /dev/null +++ b/resources/memorydb-acl.go @@ -0,0 +1,108 @@ +package resources + +import ( + "context" + "fmt" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/memorydb" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" +) + +type MemoryDBACL struct { + svc *memorydb.MemoryDB + name *string + tags []*memorydb.Tag +} + +const MemoryDBACLResource = "MemoryDBACL" + +func init() { + resource.Register(&resource.Registration{ + Name: MemoryDBACLResource, + Scope: nuke.Account, + Lister: &MemoryDBACLLister{}, + }) +} + +type MemoryDBACLLister struct{} + +func (l *MemoryDBACLLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := memorydb.New(opts.Session) + var resources []resource.Resource + + params := &memorydb.DescribeACLsInput{MaxResults: aws.Int64(50)} + for { + resp, err := svc.DescribeACLs(params) + if err != nil { + return nil, err + } + + for _, acl := range resp.ACLs { + tags, err := svc.ListTags(&memorydb.ListTagsInput{ + ResourceArn: acl.ARN, + }) + + if err != nil { + continue + } + + resources = append(resources, &MemoryDBACL{ + svc: svc, + name: acl.Name, + tags: tags.TagList, + }) + + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken + } + + return resources, nil +} + +func (i *MemoryDBACL) Filter() error { + if *i.name == "open-access" { + return fmt.Errorf("open-access ACL can't be deleted") + } else { + return nil + } +} + +func (i *MemoryDBACL) Remove(_ context.Context) error { + params := &memorydb.DeleteACLInput{ + ACLName: i.name, + } + + _, err := i.svc.DeleteACL(params) + if err != nil { + return err + } + + return nil +} + +func (i *MemoryDBACL) String() string { + return *i.name +} + +func (i *MemoryDBACL) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("Name", i.name) + + for _, tag := range i.tags { + properties.SetTag(tag.Key, tag.Value) + } + + return properties +} diff --git a/resources/memorydb-cluster.go b/resources/memorydb-cluster.go new file mode 100644 index 00000000..4e0ab9b6 --- /dev/null +++ b/resources/memorydb-cluster.go @@ -0,0 +1,99 @@ +package resources + +import ( + "context" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/memorydb" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" +) + +type MemoryDBCluster struct { + svc *memorydb.MemoryDB + name *string + tags []*memorydb.Tag +} + +const MemoryDBClusterResource = "MemoryDBCluster" + +func init() { + resource.Register(&resource.Registration{ + Name: MemoryDBClusterResource, + Scope: nuke.Account, + Lister: &MemoryDBClusterLister{}, + }) +} + +type MemoryDBClusterLister struct{} + +func (l *MemoryDBClusterLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := memorydb.New(opts.Session) + var resources []resource.Resource + + params := &memorydb.DescribeClustersInput{MaxResults: aws.Int64(100)} + + for { + resp, err := svc.DescribeClusters(params) + if err != nil { + return nil, err + } + + for _, cluster := range resp.Clusters { + tags, err := svc.ListTags(&memorydb.ListTagsInput{ + ResourceArn: cluster.ARN, + }) + + if err != nil { + continue + } + + resources = append(resources, &MemoryDBCluster{ + svc: svc, + name: cluster.Name, + tags: tags.TagList, + }) + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken + } + + return resources, nil +} + +func (c *MemoryDBCluster) Remove(_ context.Context) error { + params := &memorydb.DeleteClusterInput{ + ClusterName: c.name, + } + + _, err := c.svc.DeleteCluster(params) + if err != nil { + return err + } + + return nil +} + +func (i *MemoryDBCluster) String() string { + return *i.name +} + +func (i *MemoryDBCluster) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("Name", i.name) + + for _, tag := range i.tags { + properties.SetTag(tag.Key, tag.Value) + } + + return properties +} diff --git a/resources/memorydb-parametergroups.go b/resources/memorydb-parametergroups.go new file mode 100644 index 00000000..30e7c0a9 --- /dev/null +++ b/resources/memorydb-parametergroups.go @@ -0,0 +1,112 @@ +package resources + +import ( + "context" + "fmt" + "strings" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/memorydb" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" +) + +type MemoryDBParameterGroup struct { + svc *memorydb.MemoryDB + name *string + family *string + tags []*memorydb.Tag +} + +const MemoryDBParameterGroupResource = "MemoryDBParameterGroup" + +func init() { + resource.Register(&resource.Registration{ + Name: MemoryDBParameterGroupResource, + Scope: nuke.Account, + Lister: &MemoryDBParameterGroupLister{}, + }) +} + +type MemoryDBParameterGroupLister struct{} + +func (l *MemoryDBParameterGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := memorydb.New(opts.Session) + var resources []resource.Resource + + params := &memorydb.DescribeParameterGroupsInput{MaxResults: aws.Int64(100)} + + for { + resp, err := svc.DescribeParameterGroups(params) + if err != nil { + return nil, err + } + + for _, parameterGroup := range resp.ParameterGroups { + tags, err := svc.ListTags(&memorydb.ListTagsInput{ + ResourceArn: parameterGroup.ARN, + }) + + if err != nil { + continue + } + + resources = append(resources, &MemoryDBParameterGroup{ + svc: svc, + name: parameterGroup.Name, + family: parameterGroup.Family, + tags: tags.TagList, + }) + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken + } + + return resources, nil +} + +func (i *MemoryDBParameterGroup) Filter() error { + if strings.HasPrefix(*i.name, "default.") { + return fmt.Errorf("Cannot delete default parameter group") + } + return nil +} + +func (i *MemoryDBParameterGroup) Remove(_ context.Context) error { + params := &memorydb.DeleteParameterGroupInput{ + ParameterGroupName: i.name, + } + + _, err := i.svc.DeleteParameterGroup(params) + if err != nil { + return err + } + + return nil +} + +func (i *MemoryDBParameterGroup) String() string { + return *i.name +} + +func (i *MemoryDBParameterGroup) Properties() types.Properties { + properties := types.NewProperties() + properties. + Set("Name", i.name). + Set("Family", i.family) + + for _, tag := range i.tags { + properties.SetTag(tag.Key, tag.Value) + } + + return properties +} diff --git a/resources/memorydb-subnetgroups.go b/resources/memorydb-subnetgroups.go new file mode 100644 index 00000000..231efc6a --- /dev/null +++ b/resources/memorydb-subnetgroups.go @@ -0,0 +1,100 @@ +package resources + +import ( + "context" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/memorydb" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" +) + +type MemoryDBSubnetGroup struct { + svc *memorydb.MemoryDB + name *string + tags []*memorydb.Tag +} + +const MemoryDBSubnetGroupResource = "MemoryDBSubnetGroup" + +func init() { + resource.Register(&resource.Registration{ + Name: MemoryDBSubnetGroupResource, + Scope: nuke.Account, + Lister: &MemoryDBSubnetGroupLister{}, + }) +} + +type MemoryDBSubnetGroupLister struct{} + +func (l *MemoryDBSubnetGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := memorydb.New(opts.Session) + var resources []resource.Resource + + params := &memorydb.DescribeSubnetGroupsInput{MaxResults: aws.Int64(100)} + + for { + resp, err := svc.DescribeSubnetGroups(params) + if err != nil { + return nil, err + } + for _, subnetGroup := range resp.SubnetGroups { + tags, err := svc.ListTags(&memorydb.ListTagsInput{ + ResourceArn: subnetGroup.ARN, + }) + + if err != nil { + continue + } + + resources = append(resources, &MemoryDBSubnetGroup{ + svc: svc, + name: subnetGroup.Name, + tags: tags.TagList, + }) + + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken + } + + return resources, nil +} + +func (i *MemoryDBSubnetGroup) Remove(_ context.Context) error { + params := &memorydb.DeleteSubnetGroupInput{ + SubnetGroupName: i.name, + } + + _, err := i.svc.DeleteSubnetGroup(params) + if err != nil { + return err + } + + return nil +} + +func (i *MemoryDBSubnetGroup) String() string { + return *i.name +} + +func (i *MemoryDBSubnetGroup) Properties() types.Properties { + properties := types.NewProperties() + properties. + Set("Name", i.name) + + for _, tag := range i.tags { + properties.SetTag(tag.Key, tag.Value) + } + + return properties +} diff --git a/resources/memorydb-user.go b/resources/memorydb-user.go new file mode 100644 index 00000000..858c9d2e --- /dev/null +++ b/resources/memorydb-user.go @@ -0,0 +1,109 @@ +package resources + +import ( + "context" + "fmt" + "strings" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/memorydb" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" +) + +type MemoryDBUser struct { + svc *memorydb.MemoryDB + name *string + tags []*memorydb.Tag +} + +const MemoryDBUserResource = "MemoryDBUser" + +func init() { + resource.Register(&resource.Registration{ + Name: MemoryDBUserResource, + Scope: nuke.Account, + Lister: &MemoryDBUserLister{}, + }) +} + +type MemoryDBUserLister struct{} + +func (l *MemoryDBUserLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := memorydb.New(opts.Session) + var resources []resource.Resource + + params := &memorydb.DescribeUsersInput{MaxResults: aws.Int64(50)} + for { + resp, err := svc.DescribeUsers(params) + if err != nil { + return nil, err + } + + for _, user := range resp.Users { + tags, err := svc.ListTags(&memorydb.ListTagsInput{ + ResourceArn: user.ARN, + }) + + if err != nil { + continue + } + + resources = append(resources, &MemoryDBUser{ + svc: svc, + name: user.Name, + tags: tags.TagList, + }) + + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken + } + + return resources, nil +} + +func (i *MemoryDBUser) Filter() error { + if strings.EqualFold(*i.name, "default") { + return fmt.Errorf("Cannot delete default user") + } + return nil +} + +func (i *MemoryDBUser) Remove(_ context.Context) error { + params := &memorydb.DeleteUserInput{ + UserName: i.name, + } + + _, err := i.svc.DeleteUser(params) + if err != nil { + return err + } + + return nil +} + +func (i *MemoryDBUser) String() string { + return *i.name +} + +func (i *MemoryDBUser) Properties() types.Properties { + properties := types.NewProperties() + properties. + Set("Name", i.name) + + for _, tag := range i.tags { + properties.SetTag(tag.Key, tag.Value) + } + + return properties +} From a7998f448df2b8373757326906cfe1821e1f0f95 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 25 Jan 2024 16:41:23 -0700 Subject: [PATCH 052/617] add appconfig resources from upstream (#37) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * appconfig: add support for five resources (#1055) Signed-off-by: Taylor Barrella Co-authored-by: Björn Häuser * app config: fix max results 100 -> 50 (#1075) * Fix: Don't delete predefined deployment strategies (#1081) * migrate: appconfig resources to libnuke format * chore: add dependson relations for appconfig resources --------- Signed-off-by: Taylor Barrella Co-authored-by: Taylor Barrella Co-authored-by: Björn Häuser Co-authored-by: Philipp Trulson --- resources/appconfig-applications.go | 72 +++++++++++++++ resources/appconfig-configurationprofiles.go | 92 +++++++++++++++++++ resources/appconfig-deploymentstrategies.go | 77 ++++++++++++++++ resources/appconfig-environments.go | 88 ++++++++++++++++++ .../appconfig-hostedconfigurationversions.go | 90 ++++++++++++++++++ 5 files changed, 419 insertions(+) create mode 100644 resources/appconfig-applications.go create mode 100644 resources/appconfig-configurationprofiles.go create mode 100644 resources/appconfig-deploymentstrategies.go create mode 100644 resources/appconfig-environments.go create mode 100644 resources/appconfig-hostedconfigurationversions.go diff --git a/resources/appconfig-applications.go b/resources/appconfig-applications.go new file mode 100644 index 00000000..81afeb9a --- /dev/null +++ b/resources/appconfig-applications.go @@ -0,0 +1,72 @@ +package resources + +import ( + "context" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/appconfig" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" +) + +type AppConfigApplication struct { + svc *appconfig.AppConfig + id *string + name *string +} + +const AppConfigApplicationResource = "AppConfigApplication" + +func init() { + resource.Register(&resource.Registration{ + Name: AppConfigApplicationResource, + Scope: nuke.Account, + Lister: &AppConfigApplicationLister{}, + DependsOn: []string{ + AppConfigConfigurationProfileResource, + AppConfigEnvironmentResource, + }, + }) +} + +type AppConfigApplicationLister struct{} + +func (l *AppConfigApplicationLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := appconfig.New(opts.Session) + resources := make([]resource.Resource, 0) + params := &appconfig.ListApplicationsInput{ + MaxResults: aws.Int64(50), + } + err := svc.ListApplicationsPages(params, func(page *appconfig.ListApplicationsOutput, lastPage bool) bool { + for _, item := range page.Items { + resources = append(resources, &AppConfigApplication{ + svc: svc, + id: item.Id, + name: item.Name, + }) + } + return true + }) + if err != nil { + return nil, err + } + return resources, nil +} + +func (f *AppConfigApplication) Remove(_ context.Context) error { + _, err := f.svc.DeleteApplication(&appconfig.DeleteApplicationInput{ + ApplicationId: f.id, + }) + return err +} + +func (f *AppConfigApplication) Properties() types.Properties { + return types.NewProperties(). + Set("ID", f.id). + Set("Name", f.name) +} diff --git a/resources/appconfig-configurationprofiles.go b/resources/appconfig-configurationprofiles.go new file mode 100644 index 00000000..ea320164 --- /dev/null +++ b/resources/appconfig-configurationprofiles.go @@ -0,0 +1,92 @@ +package resources + +import ( + "context" + + "github.com/sirupsen/logrus" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/appconfig" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" +) + +type AppConfigConfigurationProfile struct { + svc *appconfig.AppConfig + applicationId *string + id *string + name *string +} + +const AppConfigConfigurationProfileResource = "AppConfigConfigurationProfile" + +func init() { + resource.Register(&resource.Registration{ + Name: AppConfigConfigurationProfileResource, + Scope: nuke.Account, + Lister: &AppConfigConfigurationProfileLister{}, + DependsOn: []string{ + AppConfigHostedConfigurationVersionResource, + }, + }) +} + +type AppConfigConfigurationProfileLister struct{} + +func (l *AppConfigConfigurationProfileLister) List(ctx context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := appconfig.New(opts.Session) + resources := make([]resource.Resource, 0) + + applicationLister := &AppConfigApplicationLister{} + + applications, err := applicationLister.List(ctx, o) + if err != nil { + return nil, err + } + for _, applicationResource := range applications { + application, ok := applicationResource.(*AppConfigApplication) + if !ok { + logrus.Errorf("Unable to cast AppConfigApplication.") + continue + } + params := &appconfig.ListConfigurationProfilesInput{ + ApplicationId: application.id, + MaxResults: aws.Int64(50), + } + err := svc.ListConfigurationProfilesPages(params, func(page *appconfig.ListConfigurationProfilesOutput, lastPage bool) bool { + for _, item := range page.Items { + resources = append(resources, &AppConfigConfigurationProfile{ + svc: svc, + applicationId: application.id, + id: item.Id, + name: item.Name, + }) + } + return true + }) + if err != nil { + return nil, err + } + } + return resources, nil +} + +func (f *AppConfigConfigurationProfile) Remove(_ context.Context) error { + _, err := f.svc.DeleteConfigurationProfile(&appconfig.DeleteConfigurationProfileInput{ + ApplicationId: f.applicationId, + ConfigurationProfileId: f.id, + }) + return err +} + +func (f *AppConfigConfigurationProfile) Properties() types.Properties { + return types.NewProperties(). + Set("ApplicationID", f.applicationId). + Set("ID", f.id). + Set("Name", f.name) +} diff --git a/resources/appconfig-deploymentstrategies.go b/resources/appconfig-deploymentstrategies.go new file mode 100644 index 00000000..30e5c074 --- /dev/null +++ b/resources/appconfig-deploymentstrategies.go @@ -0,0 +1,77 @@ +package resources + +import ( + "context" + "fmt" + "strings" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/appconfig" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" +) + +type AppConfigDeploymentStrategy struct { + svc *appconfig.AppConfig + id *string + name *string +} + +const AppConfigDeploymentStrategyResource = "AppConfigDeploymentStrategy" + +func init() { + resource.Register(&resource.Registration{ + Name: AppConfigDeploymentStrategyResource, + Scope: nuke.Account, + Lister: &AppConfigDeploymentStrategyLister{}, + }) +} + +type AppConfigDeploymentStrategyLister struct{} + +func (l *AppConfigDeploymentStrategyLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := appconfig.New(opts.Session) + resources := make([]resource.Resource, 0) + params := &appconfig.ListDeploymentStrategiesInput{ + MaxResults: aws.Int64(50), + } + err := svc.ListDeploymentStrategiesPages(params, func(page *appconfig.ListDeploymentStrategiesOutput, lastPage bool) bool { + for _, item := range page.Items { + resources = append(resources, &AppConfigDeploymentStrategy{ + svc: svc, + id: item.Id, + name: item.Name, + }) + } + return true + }) + if err != nil { + return nil, err + } + return resources, nil +} + +func (f *AppConfigDeploymentStrategy) Filter() error { + if strings.HasPrefix(*f.name, "AppConfig.") { + return fmt.Errorf("cannot delete predefined Deployment Strategy") + } + return nil +} + +func (f *AppConfigDeploymentStrategy) Remove(_ context.Context) error { + _, err := f.svc.DeleteDeploymentStrategy(&appconfig.DeleteDeploymentStrategyInput{ + DeploymentStrategyId: f.id, + }) + return err +} + +func (f *AppConfigDeploymentStrategy) Properties() types.Properties { + return types.NewProperties(). + Set("ID", f.id). + Set("Name", f.name) +} diff --git a/resources/appconfig-environments.go b/resources/appconfig-environments.go new file mode 100644 index 00000000..960a5dca --- /dev/null +++ b/resources/appconfig-environments.go @@ -0,0 +1,88 @@ +package resources + +import ( + "context" + + "github.com/sirupsen/logrus" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/appconfig" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" +) + +type AppConfigEnvironment struct { + svc *appconfig.AppConfig + applicationId *string + id *string + name *string +} + +const AppConfigEnvironmentResource = "AppConfigEnvironment" + +func init() { + resource.Register(&resource.Registration{ + Name: AppConfigEnvironmentResource, + Scope: nuke.Account, + Lister: &AppConfigEnvironmentLister{}, + }) +} + +type AppConfigEnvironmentLister struct{} + +func (l *AppConfigEnvironmentLister) List(ctx context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := appconfig.New(opts.Session) + resources := make([]resource.Resource, 0) + + applicationLister := &AppConfigApplicationLister{} + applications, err := applicationLister.List(ctx, o) + if err != nil { + return nil, err + } + for _, applicationResource := range applications { + application, ok := applicationResource.(*AppConfigApplication) + if !ok { + logrus.Errorf("Unable to cast AppConfigApplication.") + continue + } + params := &appconfig.ListEnvironmentsInput{ + ApplicationId: application.id, + MaxResults: aws.Int64(50), + } + err := svc.ListEnvironmentsPages(params, func(page *appconfig.ListEnvironmentsOutput, lastPage bool) bool { + for _, item := range page.Items { + resources = append(resources, &AppConfigEnvironment{ + svc: svc, + applicationId: application.id, + id: item.Id, + name: item.Name, + }) + } + return true + }) + if err != nil { + return nil, err + } + } + return resources, nil +} + +func (f *AppConfigEnvironment) Remove(_ context.Context) error { + _, err := f.svc.DeleteEnvironment(&appconfig.DeleteEnvironmentInput{ + ApplicationId: f.applicationId, + EnvironmentId: f.id, + }) + return err +} + +func (f *AppConfigEnvironment) Properties() types.Properties { + return types.NewProperties(). + Set("ApplicationID", f.applicationId). + Set("ID", f.id). + Set("Name", f.name) +} diff --git a/resources/appconfig-hostedconfigurationversions.go b/resources/appconfig-hostedconfigurationversions.go new file mode 100644 index 00000000..cb38a7e4 --- /dev/null +++ b/resources/appconfig-hostedconfigurationversions.go @@ -0,0 +1,90 @@ +package resources + +import ( + "context" + + "github.com/sirupsen/logrus" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/appconfig" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" +) + +type AppConfigHostedConfigurationVersion struct { + svc *appconfig.AppConfig + applicationId *string + configurationProfileId *string + versionNumber *int64 +} + +const AppConfigHostedConfigurationVersionResource = "AppConfigHostedConfigurationVersion" + +func init() { + resource.Register(&resource.Registration{ + Name: AppConfigHostedConfigurationVersionResource, + Scope: nuke.Account, + Lister: &AppConfigHostedConfigurationVersionLister{}, + }) +} + +type AppConfigHostedConfigurationVersionLister struct{} + +func (l *AppConfigHostedConfigurationVersionLister) List(ctx context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := appconfig.New(opts.Session) + resources := make([]resource.Resource, 0) + + profilerLister := &AppConfigConfigurationProfileLister{} + configurationProfiles, err := profilerLister.List(ctx, o) + if err != nil { + return nil, err + } + for _, configurationProfileResource := range configurationProfiles { + configurationProfile, ok := configurationProfileResource.(*AppConfigConfigurationProfile) + if !ok { + logrus.Errorf("Unable to cast AppConfigConfigurationProfile.") + continue + } + params := &appconfig.ListHostedConfigurationVersionsInput{ + ApplicationId: configurationProfile.applicationId, + ConfigurationProfileId: configurationProfile.id, + MaxResults: aws.Int64(50), + } + err := svc.ListHostedConfigurationVersionsPages(params, func(page *appconfig.ListHostedConfigurationVersionsOutput, lastPage bool) bool { + for _, item := range page.Items { + resources = append(resources, &AppConfigHostedConfigurationVersion{ + svc: svc, + applicationId: configurationProfile.applicationId, + configurationProfileId: configurationProfile.id, + versionNumber: item.VersionNumber, + }) + } + return true + }) + if err != nil { + return nil, err + } + } + return resources, nil +} + +func (f *AppConfigHostedConfigurationVersion) Remove(_ context.Context) error { + _, err := f.svc.DeleteHostedConfigurationVersion(&appconfig.DeleteHostedConfigurationVersionInput{ + ApplicationId: f.applicationId, + ConfigurationProfileId: f.configurationProfileId, + VersionNumber: f.versionNumber, + }) + return err +} + +func (f *AppConfigHostedConfigurationVersion) Properties() types.Properties { + return types.NewProperties(). + Set("ApplicationID", f.applicationId). + Set("ConfigurationProfileID", f.configurationProfileId). + Set("VersionNumber", f.versionNumber) +} From 0b654cf24a90c00002f7e1bc25f507bed94e64f6 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 25 Jan 2024 16:46:09 -0700 Subject: [PATCH 053/617] migrate apprunner resources from upstream to libnuke format (#38) * Adding support for AppRunner services (#1060) * adding code for removing custom origin request policies * rename resource * test for replication * revert secretsmanager change * undo this * revert mod and sum changes * add resources for redshift scheduled actions * remove cloudfront resource * clean up * cloudwatch rum app * first attempt at apprunner-service * first attempt at apprunner-service * add apprunner connection as well * clean up * chore: migrate resources to libnuke format --------- Co-authored-by: Mike Schouw <49021968+MikeSchouw@users.noreply.github.com> --- resources/apprunner-connection.go | 77 +++++++++++++++++++++++++++++ resources/apprunner-service.go | 80 +++++++++++++++++++++++++++++++ 2 files changed, 157 insertions(+) create mode 100644 resources/apprunner-connection.go create mode 100644 resources/apprunner-service.go diff --git a/resources/apprunner-connection.go b/resources/apprunner-connection.go new file mode 100644 index 00000000..616a5206 --- /dev/null +++ b/resources/apprunner-connection.go @@ -0,0 +1,77 @@ +package resources + +import ( + "context" + + "github.com/aws/aws-sdk-go/service/apprunner" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" +) + +type AppRunnerConnection struct { + svc *apprunner.AppRunner + ConnectionArn *string + ConnectionName *string +} + +const AppRunnerConnectionResource = "AppRunnerConnection" + +func init() { + resource.Register(&resource.Registration{ + Name: AppRunnerConnectionResource, + Scope: nuke.Account, + Lister: &AppRunnerConnectionLister{}, + }) +} + +type AppRunnerConnectionLister struct{} + +func (l *AppRunnerConnectionLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := apprunner.New(opts.Session) + resources := make([]resource.Resource, 0) + + params := &apprunner.ListConnectionsInput{} + + for { + resp, err := svc.ListConnections(params) + if err != nil { + return nil, err + } + + for _, item := range resp.ConnectionSummaryList { + resources = append(resources, &AppRunnerConnection{ + svc: svc, + ConnectionArn: item.ConnectionArn, + ConnectionName: item.ConnectionName, + }) + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken + } + + return resources, nil +} + +func (f *AppRunnerConnection) Remove(_ context.Context) error { + _, err := f.svc.DeleteConnection(&apprunner.DeleteConnectionInput{ + ConnectionArn: f.ConnectionArn, + }) + + return err +} + +func (f *AppRunnerConnection) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("ConnectionArn", f.ConnectionArn) + properties.Set("ConnectionName", f.ConnectionName) + return properties +} diff --git a/resources/apprunner-service.go b/resources/apprunner-service.go new file mode 100644 index 00000000..8bf633eb --- /dev/null +++ b/resources/apprunner-service.go @@ -0,0 +1,80 @@ +package resources + +import ( + "context" + + "github.com/aws/aws-sdk-go/service/apprunner" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" +) + +type AppRunnerService struct { + svc *apprunner.AppRunner + ServiceArn *string + ServiceId *string + ServiceName *string +} + +const AppRunnerServiceResource = "AppRunnerService" + +func init() { + resource.Register(&resource.Registration{ + Name: AppRunnerServiceResource, + Scope: nuke.Account, + Lister: &AppRunnerServiceLister{}, + }) +} + +type AppRunnerServiceLister struct{} + +func (l *AppRunnerServiceLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := apprunner.New(opts.Session) + resources := make([]resource.Resource, 0) + + params := &apprunner.ListServicesInput{} + + for { + resp, err := svc.ListServices(params) + if err != nil { + return nil, err + } + + for _, item := range resp.ServiceSummaryList { + resources = append(resources, &AppRunnerService{ + svc: svc, + ServiceArn: item.ServiceArn, + ServiceId: item.ServiceId, + ServiceName: item.ServiceName, + }) + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken + } + + return resources, nil +} + +func (f *AppRunnerService) Remove(_ context.Context) error { + _, err := f.svc.DeleteService(&apprunner.DeleteServiceInput{ + ServiceArn: f.ServiceArn, + }) + + return err +} + +func (f *AppRunnerService) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("ServiceArn", f.ServiceArn) + properties.Set("ServiceId", f.ServiceId) + properties.Set("ServiceName", f.ServiceName) + return properties +} From 3b1bb34a4c5b16198678163189728d789a2898e6 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 25 Jan 2024 16:49:21 -0700 Subject: [PATCH 054/617] Revert "add(resources): MemoryDB from upstream" (#39) --- resources/memorydb-acl.go | 108 ------------------------- resources/memorydb-cluster.go | 99 ----------------------- resources/memorydb-parametergroups.go | 112 -------------------------- resources/memorydb-subnetgroups.go | 100 ----------------------- resources/memorydb-user.go | 109 ------------------------- 5 files changed, 528 deletions(-) delete mode 100644 resources/memorydb-acl.go delete mode 100644 resources/memorydb-cluster.go delete mode 100644 resources/memorydb-parametergroups.go delete mode 100644 resources/memorydb-subnetgroups.go delete mode 100644 resources/memorydb-user.go diff --git a/resources/memorydb-acl.go b/resources/memorydb-acl.go deleted file mode 100644 index 1541c754..00000000 --- a/resources/memorydb-acl.go +++ /dev/null @@ -1,108 +0,0 @@ -package resources - -import ( - "context" - "fmt" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/memorydb" - - "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/libnuke/pkg/types" - - "github.com/ekristen/aws-nuke/pkg/nuke" -) - -type MemoryDBACL struct { - svc *memorydb.MemoryDB - name *string - tags []*memorydb.Tag -} - -const MemoryDBACLResource = "MemoryDBACL" - -func init() { - resource.Register(&resource.Registration{ - Name: MemoryDBACLResource, - Scope: nuke.Account, - Lister: &MemoryDBACLLister{}, - }) -} - -type MemoryDBACLLister struct{} - -func (l *MemoryDBACLLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { - opts := o.(*nuke.ListerOpts) - - svc := memorydb.New(opts.Session) - var resources []resource.Resource - - params := &memorydb.DescribeACLsInput{MaxResults: aws.Int64(50)} - for { - resp, err := svc.DescribeACLs(params) - if err != nil { - return nil, err - } - - for _, acl := range resp.ACLs { - tags, err := svc.ListTags(&memorydb.ListTagsInput{ - ResourceArn: acl.ARN, - }) - - if err != nil { - continue - } - - resources = append(resources, &MemoryDBACL{ - svc: svc, - name: acl.Name, - tags: tags.TagList, - }) - - } - - if resp.NextToken == nil { - break - } - - params.NextToken = resp.NextToken - } - - return resources, nil -} - -func (i *MemoryDBACL) Filter() error { - if *i.name == "open-access" { - return fmt.Errorf("open-access ACL can't be deleted") - } else { - return nil - } -} - -func (i *MemoryDBACL) Remove(_ context.Context) error { - params := &memorydb.DeleteACLInput{ - ACLName: i.name, - } - - _, err := i.svc.DeleteACL(params) - if err != nil { - return err - } - - return nil -} - -func (i *MemoryDBACL) String() string { - return *i.name -} - -func (i *MemoryDBACL) Properties() types.Properties { - properties := types.NewProperties() - properties.Set("Name", i.name) - - for _, tag := range i.tags { - properties.SetTag(tag.Key, tag.Value) - } - - return properties -} diff --git a/resources/memorydb-cluster.go b/resources/memorydb-cluster.go deleted file mode 100644 index 4e0ab9b6..00000000 --- a/resources/memorydb-cluster.go +++ /dev/null @@ -1,99 +0,0 @@ -package resources - -import ( - "context" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/memorydb" - - "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/libnuke/pkg/types" - - "github.com/ekristen/aws-nuke/pkg/nuke" -) - -type MemoryDBCluster struct { - svc *memorydb.MemoryDB - name *string - tags []*memorydb.Tag -} - -const MemoryDBClusterResource = "MemoryDBCluster" - -func init() { - resource.Register(&resource.Registration{ - Name: MemoryDBClusterResource, - Scope: nuke.Account, - Lister: &MemoryDBClusterLister{}, - }) -} - -type MemoryDBClusterLister struct{} - -func (l *MemoryDBClusterLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { - opts := o.(*nuke.ListerOpts) - - svc := memorydb.New(opts.Session) - var resources []resource.Resource - - params := &memorydb.DescribeClustersInput{MaxResults: aws.Int64(100)} - - for { - resp, err := svc.DescribeClusters(params) - if err != nil { - return nil, err - } - - for _, cluster := range resp.Clusters { - tags, err := svc.ListTags(&memorydb.ListTagsInput{ - ResourceArn: cluster.ARN, - }) - - if err != nil { - continue - } - - resources = append(resources, &MemoryDBCluster{ - svc: svc, - name: cluster.Name, - tags: tags.TagList, - }) - } - - if resp.NextToken == nil { - break - } - - params.NextToken = resp.NextToken - } - - return resources, nil -} - -func (c *MemoryDBCluster) Remove(_ context.Context) error { - params := &memorydb.DeleteClusterInput{ - ClusterName: c.name, - } - - _, err := c.svc.DeleteCluster(params) - if err != nil { - return err - } - - return nil -} - -func (i *MemoryDBCluster) String() string { - return *i.name -} - -func (i *MemoryDBCluster) Properties() types.Properties { - properties := types.NewProperties() - properties.Set("Name", i.name) - - for _, tag := range i.tags { - properties.SetTag(tag.Key, tag.Value) - } - - return properties -} diff --git a/resources/memorydb-parametergroups.go b/resources/memorydb-parametergroups.go deleted file mode 100644 index 30e7c0a9..00000000 --- a/resources/memorydb-parametergroups.go +++ /dev/null @@ -1,112 +0,0 @@ -package resources - -import ( - "context" - "fmt" - "strings" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/memorydb" - - "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/libnuke/pkg/types" - - "github.com/ekristen/aws-nuke/pkg/nuke" -) - -type MemoryDBParameterGroup struct { - svc *memorydb.MemoryDB - name *string - family *string - tags []*memorydb.Tag -} - -const MemoryDBParameterGroupResource = "MemoryDBParameterGroup" - -func init() { - resource.Register(&resource.Registration{ - Name: MemoryDBParameterGroupResource, - Scope: nuke.Account, - Lister: &MemoryDBParameterGroupLister{}, - }) -} - -type MemoryDBParameterGroupLister struct{} - -func (l *MemoryDBParameterGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { - opts := o.(*nuke.ListerOpts) - - svc := memorydb.New(opts.Session) - var resources []resource.Resource - - params := &memorydb.DescribeParameterGroupsInput{MaxResults: aws.Int64(100)} - - for { - resp, err := svc.DescribeParameterGroups(params) - if err != nil { - return nil, err - } - - for _, parameterGroup := range resp.ParameterGroups { - tags, err := svc.ListTags(&memorydb.ListTagsInput{ - ResourceArn: parameterGroup.ARN, - }) - - if err != nil { - continue - } - - resources = append(resources, &MemoryDBParameterGroup{ - svc: svc, - name: parameterGroup.Name, - family: parameterGroup.Family, - tags: tags.TagList, - }) - } - - if resp.NextToken == nil { - break - } - - params.NextToken = resp.NextToken - } - - return resources, nil -} - -func (i *MemoryDBParameterGroup) Filter() error { - if strings.HasPrefix(*i.name, "default.") { - return fmt.Errorf("Cannot delete default parameter group") - } - return nil -} - -func (i *MemoryDBParameterGroup) Remove(_ context.Context) error { - params := &memorydb.DeleteParameterGroupInput{ - ParameterGroupName: i.name, - } - - _, err := i.svc.DeleteParameterGroup(params) - if err != nil { - return err - } - - return nil -} - -func (i *MemoryDBParameterGroup) String() string { - return *i.name -} - -func (i *MemoryDBParameterGroup) Properties() types.Properties { - properties := types.NewProperties() - properties. - Set("Name", i.name). - Set("Family", i.family) - - for _, tag := range i.tags { - properties.SetTag(tag.Key, tag.Value) - } - - return properties -} diff --git a/resources/memorydb-subnetgroups.go b/resources/memorydb-subnetgroups.go deleted file mode 100644 index 231efc6a..00000000 --- a/resources/memorydb-subnetgroups.go +++ /dev/null @@ -1,100 +0,0 @@ -package resources - -import ( - "context" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/memorydb" - - "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/libnuke/pkg/types" - - "github.com/ekristen/aws-nuke/pkg/nuke" -) - -type MemoryDBSubnetGroup struct { - svc *memorydb.MemoryDB - name *string - tags []*memorydb.Tag -} - -const MemoryDBSubnetGroupResource = "MemoryDBSubnetGroup" - -func init() { - resource.Register(&resource.Registration{ - Name: MemoryDBSubnetGroupResource, - Scope: nuke.Account, - Lister: &MemoryDBSubnetGroupLister{}, - }) -} - -type MemoryDBSubnetGroupLister struct{} - -func (l *MemoryDBSubnetGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { - opts := o.(*nuke.ListerOpts) - - svc := memorydb.New(opts.Session) - var resources []resource.Resource - - params := &memorydb.DescribeSubnetGroupsInput{MaxResults: aws.Int64(100)} - - for { - resp, err := svc.DescribeSubnetGroups(params) - if err != nil { - return nil, err - } - for _, subnetGroup := range resp.SubnetGroups { - tags, err := svc.ListTags(&memorydb.ListTagsInput{ - ResourceArn: subnetGroup.ARN, - }) - - if err != nil { - continue - } - - resources = append(resources, &MemoryDBSubnetGroup{ - svc: svc, - name: subnetGroup.Name, - tags: tags.TagList, - }) - - } - - if resp.NextToken == nil { - break - } - - params.NextToken = resp.NextToken - } - - return resources, nil -} - -func (i *MemoryDBSubnetGroup) Remove(_ context.Context) error { - params := &memorydb.DeleteSubnetGroupInput{ - SubnetGroupName: i.name, - } - - _, err := i.svc.DeleteSubnetGroup(params) - if err != nil { - return err - } - - return nil -} - -func (i *MemoryDBSubnetGroup) String() string { - return *i.name -} - -func (i *MemoryDBSubnetGroup) Properties() types.Properties { - properties := types.NewProperties() - properties. - Set("Name", i.name) - - for _, tag := range i.tags { - properties.SetTag(tag.Key, tag.Value) - } - - return properties -} diff --git a/resources/memorydb-user.go b/resources/memorydb-user.go deleted file mode 100644 index 858c9d2e..00000000 --- a/resources/memorydb-user.go +++ /dev/null @@ -1,109 +0,0 @@ -package resources - -import ( - "context" - "fmt" - "strings" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/memorydb" - - "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/libnuke/pkg/types" - - "github.com/ekristen/aws-nuke/pkg/nuke" -) - -type MemoryDBUser struct { - svc *memorydb.MemoryDB - name *string - tags []*memorydb.Tag -} - -const MemoryDBUserResource = "MemoryDBUser" - -func init() { - resource.Register(&resource.Registration{ - Name: MemoryDBUserResource, - Scope: nuke.Account, - Lister: &MemoryDBUserLister{}, - }) -} - -type MemoryDBUserLister struct{} - -func (l *MemoryDBUserLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { - opts := o.(*nuke.ListerOpts) - - svc := memorydb.New(opts.Session) - var resources []resource.Resource - - params := &memorydb.DescribeUsersInput{MaxResults: aws.Int64(50)} - for { - resp, err := svc.DescribeUsers(params) - if err != nil { - return nil, err - } - - for _, user := range resp.Users { - tags, err := svc.ListTags(&memorydb.ListTagsInput{ - ResourceArn: user.ARN, - }) - - if err != nil { - continue - } - - resources = append(resources, &MemoryDBUser{ - svc: svc, - name: user.Name, - tags: tags.TagList, - }) - - } - - if resp.NextToken == nil { - break - } - - params.NextToken = resp.NextToken - } - - return resources, nil -} - -func (i *MemoryDBUser) Filter() error { - if strings.EqualFold(*i.name, "default") { - return fmt.Errorf("Cannot delete default user") - } - return nil -} - -func (i *MemoryDBUser) Remove(_ context.Context) error { - params := &memorydb.DeleteUserInput{ - UserName: i.name, - } - - _, err := i.svc.DeleteUser(params) - if err != nil { - return err - } - - return nil -} - -func (i *MemoryDBUser) String() string { - return *i.name -} - -func (i *MemoryDBUser) Properties() types.Properties { - properties := types.NewProperties() - properties. - Set("Name", i.name) - - for _, tag := range i.tags { - properties.SetTag(tag.Key, tag.Value) - } - - return properties -} From abbbbba74d32e460a4acd258a56c9f09e31869b7 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 25 Jan 2024 16:49:28 -0700 Subject: [PATCH 055/617] Revert "add appconfig resources from upstream" (#40) --- resources/appconfig-applications.go | 72 --------------- resources/appconfig-configurationprofiles.go | 92 ------------------- resources/appconfig-deploymentstrategies.go | 77 ---------------- resources/appconfig-environments.go | 88 ------------------ .../appconfig-hostedconfigurationversions.go | 90 ------------------ 5 files changed, 419 deletions(-) delete mode 100644 resources/appconfig-applications.go delete mode 100644 resources/appconfig-configurationprofiles.go delete mode 100644 resources/appconfig-deploymentstrategies.go delete mode 100644 resources/appconfig-environments.go delete mode 100644 resources/appconfig-hostedconfigurationversions.go diff --git a/resources/appconfig-applications.go b/resources/appconfig-applications.go deleted file mode 100644 index 81afeb9a..00000000 --- a/resources/appconfig-applications.go +++ /dev/null @@ -1,72 +0,0 @@ -package resources - -import ( - "context" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/appconfig" - - "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/libnuke/pkg/types" - - "github.com/ekristen/aws-nuke/pkg/nuke" -) - -type AppConfigApplication struct { - svc *appconfig.AppConfig - id *string - name *string -} - -const AppConfigApplicationResource = "AppConfigApplication" - -func init() { - resource.Register(&resource.Registration{ - Name: AppConfigApplicationResource, - Scope: nuke.Account, - Lister: &AppConfigApplicationLister{}, - DependsOn: []string{ - AppConfigConfigurationProfileResource, - AppConfigEnvironmentResource, - }, - }) -} - -type AppConfigApplicationLister struct{} - -func (l *AppConfigApplicationLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { - opts := o.(*nuke.ListerOpts) - - svc := appconfig.New(opts.Session) - resources := make([]resource.Resource, 0) - params := &appconfig.ListApplicationsInput{ - MaxResults: aws.Int64(50), - } - err := svc.ListApplicationsPages(params, func(page *appconfig.ListApplicationsOutput, lastPage bool) bool { - for _, item := range page.Items { - resources = append(resources, &AppConfigApplication{ - svc: svc, - id: item.Id, - name: item.Name, - }) - } - return true - }) - if err != nil { - return nil, err - } - return resources, nil -} - -func (f *AppConfigApplication) Remove(_ context.Context) error { - _, err := f.svc.DeleteApplication(&appconfig.DeleteApplicationInput{ - ApplicationId: f.id, - }) - return err -} - -func (f *AppConfigApplication) Properties() types.Properties { - return types.NewProperties(). - Set("ID", f.id). - Set("Name", f.name) -} diff --git a/resources/appconfig-configurationprofiles.go b/resources/appconfig-configurationprofiles.go deleted file mode 100644 index ea320164..00000000 --- a/resources/appconfig-configurationprofiles.go +++ /dev/null @@ -1,92 +0,0 @@ -package resources - -import ( - "context" - - "github.com/sirupsen/logrus" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/appconfig" - - "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/libnuke/pkg/types" - - "github.com/ekristen/aws-nuke/pkg/nuke" -) - -type AppConfigConfigurationProfile struct { - svc *appconfig.AppConfig - applicationId *string - id *string - name *string -} - -const AppConfigConfigurationProfileResource = "AppConfigConfigurationProfile" - -func init() { - resource.Register(&resource.Registration{ - Name: AppConfigConfigurationProfileResource, - Scope: nuke.Account, - Lister: &AppConfigConfigurationProfileLister{}, - DependsOn: []string{ - AppConfigHostedConfigurationVersionResource, - }, - }) -} - -type AppConfigConfigurationProfileLister struct{} - -func (l *AppConfigConfigurationProfileLister) List(ctx context.Context, o interface{}) ([]resource.Resource, error) { - opts := o.(*nuke.ListerOpts) - - svc := appconfig.New(opts.Session) - resources := make([]resource.Resource, 0) - - applicationLister := &AppConfigApplicationLister{} - - applications, err := applicationLister.List(ctx, o) - if err != nil { - return nil, err - } - for _, applicationResource := range applications { - application, ok := applicationResource.(*AppConfigApplication) - if !ok { - logrus.Errorf("Unable to cast AppConfigApplication.") - continue - } - params := &appconfig.ListConfigurationProfilesInput{ - ApplicationId: application.id, - MaxResults: aws.Int64(50), - } - err := svc.ListConfigurationProfilesPages(params, func(page *appconfig.ListConfigurationProfilesOutput, lastPage bool) bool { - for _, item := range page.Items { - resources = append(resources, &AppConfigConfigurationProfile{ - svc: svc, - applicationId: application.id, - id: item.Id, - name: item.Name, - }) - } - return true - }) - if err != nil { - return nil, err - } - } - return resources, nil -} - -func (f *AppConfigConfigurationProfile) Remove(_ context.Context) error { - _, err := f.svc.DeleteConfigurationProfile(&appconfig.DeleteConfigurationProfileInput{ - ApplicationId: f.applicationId, - ConfigurationProfileId: f.id, - }) - return err -} - -func (f *AppConfigConfigurationProfile) Properties() types.Properties { - return types.NewProperties(). - Set("ApplicationID", f.applicationId). - Set("ID", f.id). - Set("Name", f.name) -} diff --git a/resources/appconfig-deploymentstrategies.go b/resources/appconfig-deploymentstrategies.go deleted file mode 100644 index 30e5c074..00000000 --- a/resources/appconfig-deploymentstrategies.go +++ /dev/null @@ -1,77 +0,0 @@ -package resources - -import ( - "context" - "fmt" - "strings" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/appconfig" - - "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/libnuke/pkg/types" - - "github.com/ekristen/aws-nuke/pkg/nuke" -) - -type AppConfigDeploymentStrategy struct { - svc *appconfig.AppConfig - id *string - name *string -} - -const AppConfigDeploymentStrategyResource = "AppConfigDeploymentStrategy" - -func init() { - resource.Register(&resource.Registration{ - Name: AppConfigDeploymentStrategyResource, - Scope: nuke.Account, - Lister: &AppConfigDeploymentStrategyLister{}, - }) -} - -type AppConfigDeploymentStrategyLister struct{} - -func (l *AppConfigDeploymentStrategyLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { - opts := o.(*nuke.ListerOpts) - - svc := appconfig.New(opts.Session) - resources := make([]resource.Resource, 0) - params := &appconfig.ListDeploymentStrategiesInput{ - MaxResults: aws.Int64(50), - } - err := svc.ListDeploymentStrategiesPages(params, func(page *appconfig.ListDeploymentStrategiesOutput, lastPage bool) bool { - for _, item := range page.Items { - resources = append(resources, &AppConfigDeploymentStrategy{ - svc: svc, - id: item.Id, - name: item.Name, - }) - } - return true - }) - if err != nil { - return nil, err - } - return resources, nil -} - -func (f *AppConfigDeploymentStrategy) Filter() error { - if strings.HasPrefix(*f.name, "AppConfig.") { - return fmt.Errorf("cannot delete predefined Deployment Strategy") - } - return nil -} - -func (f *AppConfigDeploymentStrategy) Remove(_ context.Context) error { - _, err := f.svc.DeleteDeploymentStrategy(&appconfig.DeleteDeploymentStrategyInput{ - DeploymentStrategyId: f.id, - }) - return err -} - -func (f *AppConfigDeploymentStrategy) Properties() types.Properties { - return types.NewProperties(). - Set("ID", f.id). - Set("Name", f.name) -} diff --git a/resources/appconfig-environments.go b/resources/appconfig-environments.go deleted file mode 100644 index 960a5dca..00000000 --- a/resources/appconfig-environments.go +++ /dev/null @@ -1,88 +0,0 @@ -package resources - -import ( - "context" - - "github.com/sirupsen/logrus" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/appconfig" - - "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/libnuke/pkg/types" - - "github.com/ekristen/aws-nuke/pkg/nuke" -) - -type AppConfigEnvironment struct { - svc *appconfig.AppConfig - applicationId *string - id *string - name *string -} - -const AppConfigEnvironmentResource = "AppConfigEnvironment" - -func init() { - resource.Register(&resource.Registration{ - Name: AppConfigEnvironmentResource, - Scope: nuke.Account, - Lister: &AppConfigEnvironmentLister{}, - }) -} - -type AppConfigEnvironmentLister struct{} - -func (l *AppConfigEnvironmentLister) List(ctx context.Context, o interface{}) ([]resource.Resource, error) { - opts := o.(*nuke.ListerOpts) - - svc := appconfig.New(opts.Session) - resources := make([]resource.Resource, 0) - - applicationLister := &AppConfigApplicationLister{} - applications, err := applicationLister.List(ctx, o) - if err != nil { - return nil, err - } - for _, applicationResource := range applications { - application, ok := applicationResource.(*AppConfigApplication) - if !ok { - logrus.Errorf("Unable to cast AppConfigApplication.") - continue - } - params := &appconfig.ListEnvironmentsInput{ - ApplicationId: application.id, - MaxResults: aws.Int64(50), - } - err := svc.ListEnvironmentsPages(params, func(page *appconfig.ListEnvironmentsOutput, lastPage bool) bool { - for _, item := range page.Items { - resources = append(resources, &AppConfigEnvironment{ - svc: svc, - applicationId: application.id, - id: item.Id, - name: item.Name, - }) - } - return true - }) - if err != nil { - return nil, err - } - } - return resources, nil -} - -func (f *AppConfigEnvironment) Remove(_ context.Context) error { - _, err := f.svc.DeleteEnvironment(&appconfig.DeleteEnvironmentInput{ - ApplicationId: f.applicationId, - EnvironmentId: f.id, - }) - return err -} - -func (f *AppConfigEnvironment) Properties() types.Properties { - return types.NewProperties(). - Set("ApplicationID", f.applicationId). - Set("ID", f.id). - Set("Name", f.name) -} diff --git a/resources/appconfig-hostedconfigurationversions.go b/resources/appconfig-hostedconfigurationversions.go deleted file mode 100644 index cb38a7e4..00000000 --- a/resources/appconfig-hostedconfigurationversions.go +++ /dev/null @@ -1,90 +0,0 @@ -package resources - -import ( - "context" - - "github.com/sirupsen/logrus" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/appconfig" - - "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/libnuke/pkg/types" - - "github.com/ekristen/aws-nuke/pkg/nuke" -) - -type AppConfigHostedConfigurationVersion struct { - svc *appconfig.AppConfig - applicationId *string - configurationProfileId *string - versionNumber *int64 -} - -const AppConfigHostedConfigurationVersionResource = "AppConfigHostedConfigurationVersion" - -func init() { - resource.Register(&resource.Registration{ - Name: AppConfigHostedConfigurationVersionResource, - Scope: nuke.Account, - Lister: &AppConfigHostedConfigurationVersionLister{}, - }) -} - -type AppConfigHostedConfigurationVersionLister struct{} - -func (l *AppConfigHostedConfigurationVersionLister) List(ctx context.Context, o interface{}) ([]resource.Resource, error) { - opts := o.(*nuke.ListerOpts) - - svc := appconfig.New(opts.Session) - resources := make([]resource.Resource, 0) - - profilerLister := &AppConfigConfigurationProfileLister{} - configurationProfiles, err := profilerLister.List(ctx, o) - if err != nil { - return nil, err - } - for _, configurationProfileResource := range configurationProfiles { - configurationProfile, ok := configurationProfileResource.(*AppConfigConfigurationProfile) - if !ok { - logrus.Errorf("Unable to cast AppConfigConfigurationProfile.") - continue - } - params := &appconfig.ListHostedConfigurationVersionsInput{ - ApplicationId: configurationProfile.applicationId, - ConfigurationProfileId: configurationProfile.id, - MaxResults: aws.Int64(50), - } - err := svc.ListHostedConfigurationVersionsPages(params, func(page *appconfig.ListHostedConfigurationVersionsOutput, lastPage bool) bool { - for _, item := range page.Items { - resources = append(resources, &AppConfigHostedConfigurationVersion{ - svc: svc, - applicationId: configurationProfile.applicationId, - configurationProfileId: configurationProfile.id, - versionNumber: item.VersionNumber, - }) - } - return true - }) - if err != nil { - return nil, err - } - } - return resources, nil -} - -func (f *AppConfigHostedConfigurationVersion) Remove(_ context.Context) error { - _, err := f.svc.DeleteHostedConfigurationVersion(&appconfig.DeleteHostedConfigurationVersionInput{ - ApplicationId: f.applicationId, - ConfigurationProfileId: f.configurationProfileId, - VersionNumber: f.versionNumber, - }) - return err -} - -func (f *AppConfigHostedConfigurationVersion) Properties() types.Properties { - return types.NewProperties(). - Set("ApplicationID", f.applicationId). - Set("ConfigurationProfileID", f.configurationProfileId). - Set("VersionNumber", f.versionNumber) -} From 09c0332cad0d6b347782c1a31d0fb76fff438ab0 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 25 Jan 2024 16:49:36 -0700 Subject: [PATCH 056/617] Revert "migrate apprunner resources from upstream to libnuke format" (#41) --- resources/apprunner-connection.go | 77 ----------------------------- resources/apprunner-service.go | 80 ------------------------------- 2 files changed, 157 deletions(-) delete mode 100644 resources/apprunner-connection.go delete mode 100644 resources/apprunner-service.go diff --git a/resources/apprunner-connection.go b/resources/apprunner-connection.go deleted file mode 100644 index 616a5206..00000000 --- a/resources/apprunner-connection.go +++ /dev/null @@ -1,77 +0,0 @@ -package resources - -import ( - "context" - - "github.com/aws/aws-sdk-go/service/apprunner" - - "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/libnuke/pkg/types" - - "github.com/ekristen/aws-nuke/pkg/nuke" -) - -type AppRunnerConnection struct { - svc *apprunner.AppRunner - ConnectionArn *string - ConnectionName *string -} - -const AppRunnerConnectionResource = "AppRunnerConnection" - -func init() { - resource.Register(&resource.Registration{ - Name: AppRunnerConnectionResource, - Scope: nuke.Account, - Lister: &AppRunnerConnectionLister{}, - }) -} - -type AppRunnerConnectionLister struct{} - -func (l *AppRunnerConnectionLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { - opts := o.(*nuke.ListerOpts) - - svc := apprunner.New(opts.Session) - resources := make([]resource.Resource, 0) - - params := &apprunner.ListConnectionsInput{} - - for { - resp, err := svc.ListConnections(params) - if err != nil { - return nil, err - } - - for _, item := range resp.ConnectionSummaryList { - resources = append(resources, &AppRunnerConnection{ - svc: svc, - ConnectionArn: item.ConnectionArn, - ConnectionName: item.ConnectionName, - }) - } - - if resp.NextToken == nil { - break - } - - params.NextToken = resp.NextToken - } - - return resources, nil -} - -func (f *AppRunnerConnection) Remove(_ context.Context) error { - _, err := f.svc.DeleteConnection(&apprunner.DeleteConnectionInput{ - ConnectionArn: f.ConnectionArn, - }) - - return err -} - -func (f *AppRunnerConnection) Properties() types.Properties { - properties := types.NewProperties() - properties.Set("ConnectionArn", f.ConnectionArn) - properties.Set("ConnectionName", f.ConnectionName) - return properties -} diff --git a/resources/apprunner-service.go b/resources/apprunner-service.go deleted file mode 100644 index 8bf633eb..00000000 --- a/resources/apprunner-service.go +++ /dev/null @@ -1,80 +0,0 @@ -package resources - -import ( - "context" - - "github.com/aws/aws-sdk-go/service/apprunner" - - "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/libnuke/pkg/types" - - "github.com/ekristen/aws-nuke/pkg/nuke" -) - -type AppRunnerService struct { - svc *apprunner.AppRunner - ServiceArn *string - ServiceId *string - ServiceName *string -} - -const AppRunnerServiceResource = "AppRunnerService" - -func init() { - resource.Register(&resource.Registration{ - Name: AppRunnerServiceResource, - Scope: nuke.Account, - Lister: &AppRunnerServiceLister{}, - }) -} - -type AppRunnerServiceLister struct{} - -func (l *AppRunnerServiceLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { - opts := o.(*nuke.ListerOpts) - - svc := apprunner.New(opts.Session) - resources := make([]resource.Resource, 0) - - params := &apprunner.ListServicesInput{} - - for { - resp, err := svc.ListServices(params) - if err != nil { - return nil, err - } - - for _, item := range resp.ServiceSummaryList { - resources = append(resources, &AppRunnerService{ - svc: svc, - ServiceArn: item.ServiceArn, - ServiceId: item.ServiceId, - ServiceName: item.ServiceName, - }) - } - - if resp.NextToken == nil { - break - } - - params.NextToken = resp.NextToken - } - - return resources, nil -} - -func (f *AppRunnerService) Remove(_ context.Context) error { - _, err := f.svc.DeleteService(&apprunner.DeleteServiceInput{ - ServiceArn: f.ServiceArn, - }) - - return err -} - -func (f *AppRunnerService) Properties() types.Properties { - properties := types.NewProperties() - properties.Set("ServiceArn", f.ServiceArn) - properties.Set("ServiceId", f.ServiceId) - properties.Set("ServiceName", f.ServiceName) - return properties -} From b3a8e42a3bcab2c0c8d237d0ebf8221deeb1a5f5 Mon Sep 17 00:00:00 2001 From: James Taylor <127947293+JTaylor-myenergi@users.noreply.github.com> Date: Thu, 24 Aug 2023 16:04:11 +0100 Subject: [PATCH 057/617] feat: MemoryDBACL resource support (#1079) feat: MemoryDBCluster resource support feat: MemoryDBParameterGroup resource support feat: MemoryDBSubnetGroup resource support feat: MemoryDBUser resource support --- resources/memorydb-acl.go | 84 +++++++++++++++++++++++ resources/memorydb-cluster.go | 84 +++++++++++++++++++++++ resources/memorydb-parametergroups.go | 98 +++++++++++++++++++++++++++ resources/memorydb-subnetgroups.go | 85 +++++++++++++++++++++++ resources/memorydb-user.go | 95 ++++++++++++++++++++++++++ 5 files changed, 446 insertions(+) create mode 100644 resources/memorydb-acl.go create mode 100644 resources/memorydb-cluster.go create mode 100644 resources/memorydb-parametergroups.go create mode 100644 resources/memorydb-subnetgroups.go create mode 100644 resources/memorydb-user.go diff --git a/resources/memorydb-acl.go b/resources/memorydb-acl.go new file mode 100644 index 00000000..fa43e46d --- /dev/null +++ b/resources/memorydb-acl.go @@ -0,0 +1,84 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/memorydb" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type MemoryDBACL struct { + svc *memorydb.MemoryDB + name *string + tags []*memorydb.Tag +} + +func init() { + register("MemoryDBACL", ListMemoryDBACLs) +} + +func ListMemoryDBACLs(sess *session.Session) ([]Resource, error) { + svc := memorydb.New(sess) + var resources []Resource + + params := &memorydb.DescribeACLsInput{MaxResults: aws.Int64(50)} + for { + resp, err := svc.DescribeACLs(params) + if err != nil { + return nil, err + } + + for _, acl := range resp.ACLs { + tags, err := svc.ListTags(&memorydb.ListTagsInput{ + ResourceArn: acl.ARN, + }) + + if err != nil { + continue + } + + resources = append(resources, &MemoryDBACL{ + svc: svc, + name: acl.Name, + tags: tags.TagList, + }) + + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken + } + + return resources, nil +} + +func (i *MemoryDBACL) Remove() error { + params := &memorydb.DeleteACLInput{ + ACLName: i.name, + } + + _, err := i.svc.DeleteACL(params) + if err != nil { + return err + } + + return nil +} + +func (i *MemoryDBACL) String() string { + return *i.name +} + +func (i *MemoryDBACL) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("Name", i.name) + + for _, tag := range i.tags { + properties.SetTag(tag.Key, tag.Value) + } + + return properties +} diff --git a/resources/memorydb-cluster.go b/resources/memorydb-cluster.go new file mode 100644 index 00000000..a2ca799e --- /dev/null +++ b/resources/memorydb-cluster.go @@ -0,0 +1,84 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/memorydb" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type MemoryDBCluster struct { + svc *memorydb.MemoryDB + name *string + tags []*memorydb.Tag +} + +func init() { + register("MemoryDBCluster", ListMemoryDbClusters) +} + +func ListMemoryDbClusters(sess *session.Session) ([]Resource, error) { + svc := memorydb.New(sess) + var resources []Resource + + params := &memorydb.DescribeClustersInput{MaxResults: aws.Int64(100)} + + for { + resp, err := svc.DescribeClusters(params) + if err != nil { + return nil, err + } + + for _, cluster := range resp.Clusters { + tags, err := svc.ListTags(&memorydb.ListTagsInput{ + ResourceArn: cluster.ARN, + }) + + if err != nil { + continue + } + + resources = append(resources, &MemoryDBCluster{ + svc: svc, + name: cluster.Name, + tags: tags.TagList, + }) + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken + } + + return resources, nil +} + +func (c *MemoryDBCluster) Remove() error { + params := &memorydb.DeleteClusterInput{ + ClusterName: c.name, + } + + _, err := c.svc.DeleteCluster(params) + if err != nil { + return err + } + + return nil +} + +func (i *MemoryDBCluster) String() string { + return *i.name +} + +func (i *MemoryDBCluster) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("Name", i.name) + + for _, tag := range i.tags { + properties.SetTag(tag.Key, tag.Value) + } + + return properties +} diff --git a/resources/memorydb-parametergroups.go b/resources/memorydb-parametergroups.go new file mode 100644 index 00000000..0583d6df --- /dev/null +++ b/resources/memorydb-parametergroups.go @@ -0,0 +1,98 @@ +package resources + +import ( + "fmt" + "strings" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/memorydb" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type MemoryDBParameterGroup struct { + svc *memorydb.MemoryDB + name *string + family *string + tags []*memorydb.Tag +} + +func init() { + register("MemoryDBParameterGroup", ListMemoryDBParameterGroups) +} + +func ListMemoryDBParameterGroups(sess *session.Session) ([]Resource, error) { + svc := memorydb.New(sess) + var resources []Resource + + params := &memorydb.DescribeParameterGroupsInput{MaxResults: aws.Int64(100)} + + for { + resp, err := svc.DescribeParameterGroups(params) + if err != nil { + return nil, err + } + + for _, parameterGroup := range resp.ParameterGroups { + tags, err := svc.ListTags(&memorydb.ListTagsInput{ + ResourceArn: parameterGroup.ARN, + }) + + if err != nil { + continue + } + + resources = append(resources, &MemoryDBParameterGroup{ + svc: svc, + name: parameterGroup.Name, + family: parameterGroup.Family, + tags: tags.TagList, + }) + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken + } + + return resources, nil +} + +func (i *MemoryDBParameterGroup) Filter() error { + if strings.HasPrefix(*i.name, "default.") { + return fmt.Errorf("Cannot delete default parameter group") + } + return nil +} + +func (i *MemoryDBParameterGroup) Remove() error { + params := &memorydb.DeleteParameterGroupInput{ + ParameterGroupName: i.name, + } + + _, err := i.svc.DeleteParameterGroup(params) + if err != nil { + return err + } + + return nil +} + +func (i *MemoryDBParameterGroup) String() string { + return *i.name +} + +func (i *MemoryDBParameterGroup) Properties() types.Properties { + properties := types.NewProperties() + properties. + Set("Name", i.name). + Set("Family", i.family) + + for _, tag := range i.tags { + properties.SetTag(tag.Key, tag.Value) + } + + return properties +} diff --git a/resources/memorydb-subnetgroups.go b/resources/memorydb-subnetgroups.go new file mode 100644 index 00000000..b2ac7cd6 --- /dev/null +++ b/resources/memorydb-subnetgroups.go @@ -0,0 +1,85 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/memorydb" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type MemoryDBSubnetGroup struct { + svc *memorydb.MemoryDB + name *string + tags []*memorydb.Tag +} + +func init() { + register("MemoryDBSubnetGroup", ListMemoryDBSubnetGroups) +} + +func ListMemoryDBSubnetGroups(sess *session.Session) ([]Resource, error) { + svc := memorydb.New(sess) + var resources []Resource + + params := &memorydb.DescribeSubnetGroupsInput{MaxResults: aws.Int64(100)} + + for { + resp, err := svc.DescribeSubnetGroups(params) + if err != nil { + return nil, err + } + for _, subnetGroup := range resp.SubnetGroups { + tags, err := svc.ListTags(&memorydb.ListTagsInput{ + ResourceArn: subnetGroup.ARN, + }) + + if err != nil { + continue + } + + resources = append(resources, &MemoryDBSubnetGroup{ + svc: svc, + name: subnetGroup.Name, + tags: tags.TagList, + }) + + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken + } + + return resources, nil +} + +func (i *MemoryDBSubnetGroup) Remove() error { + params := &memorydb.DeleteSubnetGroupInput{ + SubnetGroupName: i.name, + } + + _, err := i.svc.DeleteSubnetGroup(params) + if err != nil { + return err + } + + return nil +} + +func (i *MemoryDBSubnetGroup) String() string { + return *i.name +} + +func (i *MemoryDBSubnetGroup) Properties() types.Properties { + properties := types.NewProperties() + properties. + Set("Name", i.name) + + for _, tag := range i.tags { + properties.SetTag(tag.Key, tag.Value) + } + + return properties +} diff --git a/resources/memorydb-user.go b/resources/memorydb-user.go new file mode 100644 index 00000000..cfeb140d --- /dev/null +++ b/resources/memorydb-user.go @@ -0,0 +1,95 @@ +package resources + +import ( + "fmt" + "strings" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/memorydb" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type MemoryDBUser struct { + svc *memorydb.MemoryDB + name *string + tags []*memorydb.Tag +} + +func init() { + register("MemoryDBUser", ListMemoryDBUsers) +} + +func ListMemoryDBUsers(sess *session.Session) ([]Resource, error) { + svc := memorydb.New(sess) + var resources []Resource + + params := &memorydb.DescribeUsersInput{MaxResults: aws.Int64(50)} + for { + resp, err := svc.DescribeUsers(params) + if err != nil { + return nil, err + } + + for _, user := range resp.Users { + tags, err := svc.ListTags(&memorydb.ListTagsInput{ + ResourceArn: user.ARN, + }) + + if err != nil { + continue + } + + resources = append(resources, &MemoryDBUser{ + svc: svc, + name: user.Name, + tags: tags.TagList, + }) + + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken + } + + return resources, nil +} + +func (i *MemoryDBUser) Filter() error { + if strings.EqualFold(*i.name, "default") { + return fmt.Errorf("Cannot delete default user") + } + return nil +} + +func (i *MemoryDBUser) Remove() error { + params := &memorydb.DeleteUserInput{ + UserName: i.name, + } + + _, err := i.svc.DeleteUser(params) + if err != nil { + return err + } + + return nil +} + +func (i *MemoryDBUser) String() string { + return *i.name +} + +func (i *MemoryDBUser) Properties() types.Properties { + properties := types.NewProperties() + properties. + Set("Name", i.name) + + for _, tag := range i.tags { + properties.SetTag(tag.Key, tag.Value) + } + + return properties +} From 892a8f4f8431d6242b074138d91993430da01f20 Mon Sep 17 00:00:00 2001 From: Philipp Trulson Date: Fri, 25 Aug 2023 18:14:11 +0200 Subject: [PATCH 058/617] Filter open-access MemoryDB ACL (#1089) --- resources/memorydb-acl.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/resources/memorydb-acl.go b/resources/memorydb-acl.go index fa43e46d..4587c4ed 100644 --- a/resources/memorydb-acl.go +++ b/resources/memorydb-acl.go @@ -1,6 +1,8 @@ package resources import ( + "fmt" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/memorydb" @@ -55,6 +57,14 @@ func ListMemoryDBACLs(sess *session.Session) ([]Resource, error) { return resources, nil } +func (i *MemoryDBACL) Filter() error { + if *i.name == "open-access" { + return fmt.Errorf("open-access ACL can't be deleted") + } else { + return nil + } +} + func (i *MemoryDBACL) Remove() error { params := &memorydb.DeleteACLInput{ ACLName: i.name, From 6ba8e421cc3585c0e78a84f029c3374d5d898b85 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 25 Jan 2024 16:24:49 -0700 Subject: [PATCH 059/617] migrate: memorydb resources to libnuke format --- resources/memorydb-acl.go | 28 +++++++++++++++++++------- resources/memorydb-cluster.go | 29 ++++++++++++++++++++------- resources/memorydb-parametergroups.go | 28 +++++++++++++++++++------- resources/memorydb-subnetgroups.go | 29 ++++++++++++++++++++------- resources/memorydb-user.go | 28 +++++++++++++++++++------- 5 files changed, 107 insertions(+), 35 deletions(-) diff --git a/resources/memorydb-acl.go b/resources/memorydb-acl.go index 4587c4ed..1541c754 100644 --- a/resources/memorydb-acl.go +++ b/resources/memorydb-acl.go @@ -1,12 +1,16 @@ package resources import ( + "context" "fmt" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/memorydb" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type MemoryDBACL struct { @@ -15,13 +19,23 @@ type MemoryDBACL struct { tags []*memorydb.Tag } +const MemoryDBACLResource = "MemoryDBACL" + func init() { - register("MemoryDBACL", ListMemoryDBACLs) + resource.Register(&resource.Registration{ + Name: MemoryDBACLResource, + Scope: nuke.Account, + Lister: &MemoryDBACLLister{}, + }) } -func ListMemoryDBACLs(sess *session.Session) ([]Resource, error) { - svc := memorydb.New(sess) - var resources []Resource +type MemoryDBACLLister struct{} + +func (l *MemoryDBACLLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := memorydb.New(opts.Session) + var resources []resource.Resource params := &memorydb.DescribeACLsInput{MaxResults: aws.Int64(50)} for { @@ -65,7 +79,7 @@ func (i *MemoryDBACL) Filter() error { } } -func (i *MemoryDBACL) Remove() error { +func (i *MemoryDBACL) Remove(_ context.Context) error { params := &memorydb.DeleteACLInput{ ACLName: i.name, } diff --git a/resources/memorydb-cluster.go b/resources/memorydb-cluster.go index a2ca799e..4e0ab9b6 100644 --- a/resources/memorydb-cluster.go +++ b/resources/memorydb-cluster.go @@ -1,10 +1,15 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/memorydb" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type MemoryDBCluster struct { @@ -13,13 +18,23 @@ type MemoryDBCluster struct { tags []*memorydb.Tag } +const MemoryDBClusterResource = "MemoryDBCluster" + func init() { - register("MemoryDBCluster", ListMemoryDbClusters) + resource.Register(&resource.Registration{ + Name: MemoryDBClusterResource, + Scope: nuke.Account, + Lister: &MemoryDBClusterLister{}, + }) } -func ListMemoryDbClusters(sess *session.Session) ([]Resource, error) { - svc := memorydb.New(sess) - var resources []Resource +type MemoryDBClusterLister struct{} + +func (l *MemoryDBClusterLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := memorydb.New(opts.Session) + var resources []resource.Resource params := &memorydb.DescribeClustersInput{MaxResults: aws.Int64(100)} @@ -55,7 +70,7 @@ func ListMemoryDbClusters(sess *session.Session) ([]Resource, error) { return resources, nil } -func (c *MemoryDBCluster) Remove() error { +func (c *MemoryDBCluster) Remove(_ context.Context) error { params := &memorydb.DeleteClusterInput{ ClusterName: c.name, } diff --git a/resources/memorydb-parametergroups.go b/resources/memorydb-parametergroups.go index 0583d6df..30e7c0a9 100644 --- a/resources/memorydb-parametergroups.go +++ b/resources/memorydb-parametergroups.go @@ -1,13 +1,17 @@ package resources import ( + "context" "fmt" "strings" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/memorydb" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type MemoryDBParameterGroup struct { @@ -17,13 +21,23 @@ type MemoryDBParameterGroup struct { tags []*memorydb.Tag } +const MemoryDBParameterGroupResource = "MemoryDBParameterGroup" + func init() { - register("MemoryDBParameterGroup", ListMemoryDBParameterGroups) + resource.Register(&resource.Registration{ + Name: MemoryDBParameterGroupResource, + Scope: nuke.Account, + Lister: &MemoryDBParameterGroupLister{}, + }) } -func ListMemoryDBParameterGroups(sess *session.Session) ([]Resource, error) { - svc := memorydb.New(sess) - var resources []Resource +type MemoryDBParameterGroupLister struct{} + +func (l *MemoryDBParameterGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := memorydb.New(opts.Session) + var resources []resource.Resource params := &memorydb.DescribeParameterGroupsInput{MaxResults: aws.Int64(100)} @@ -67,7 +81,7 @@ func (i *MemoryDBParameterGroup) Filter() error { return nil } -func (i *MemoryDBParameterGroup) Remove() error { +func (i *MemoryDBParameterGroup) Remove(_ context.Context) error { params := &memorydb.DeleteParameterGroupInput{ ParameterGroupName: i.name, } diff --git a/resources/memorydb-subnetgroups.go b/resources/memorydb-subnetgroups.go index b2ac7cd6..231efc6a 100644 --- a/resources/memorydb-subnetgroups.go +++ b/resources/memorydb-subnetgroups.go @@ -1,10 +1,15 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/memorydb" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type MemoryDBSubnetGroup struct { @@ -13,13 +18,23 @@ type MemoryDBSubnetGroup struct { tags []*memorydb.Tag } +const MemoryDBSubnetGroupResource = "MemoryDBSubnetGroup" + func init() { - register("MemoryDBSubnetGroup", ListMemoryDBSubnetGroups) + resource.Register(&resource.Registration{ + Name: MemoryDBSubnetGroupResource, + Scope: nuke.Account, + Lister: &MemoryDBSubnetGroupLister{}, + }) } -func ListMemoryDBSubnetGroups(sess *session.Session) ([]Resource, error) { - svc := memorydb.New(sess) - var resources []Resource +type MemoryDBSubnetGroupLister struct{} + +func (l *MemoryDBSubnetGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := memorydb.New(opts.Session) + var resources []resource.Resource params := &memorydb.DescribeSubnetGroupsInput{MaxResults: aws.Int64(100)} @@ -55,7 +70,7 @@ func ListMemoryDBSubnetGroups(sess *session.Session) ([]Resource, error) { return resources, nil } -func (i *MemoryDBSubnetGroup) Remove() error { +func (i *MemoryDBSubnetGroup) Remove(_ context.Context) error { params := &memorydb.DeleteSubnetGroupInput{ SubnetGroupName: i.name, } diff --git a/resources/memorydb-user.go b/resources/memorydb-user.go index cfeb140d..858c9d2e 100644 --- a/resources/memorydb-user.go +++ b/resources/memorydb-user.go @@ -1,13 +1,17 @@ package resources import ( + "context" "fmt" "strings" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/memorydb" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type MemoryDBUser struct { @@ -16,13 +20,23 @@ type MemoryDBUser struct { tags []*memorydb.Tag } +const MemoryDBUserResource = "MemoryDBUser" + func init() { - register("MemoryDBUser", ListMemoryDBUsers) + resource.Register(&resource.Registration{ + Name: MemoryDBUserResource, + Scope: nuke.Account, + Lister: &MemoryDBUserLister{}, + }) } -func ListMemoryDBUsers(sess *session.Session) ([]Resource, error) { - svc := memorydb.New(sess) - var resources []Resource +type MemoryDBUserLister struct{} + +func (l *MemoryDBUserLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := memorydb.New(opts.Session) + var resources []resource.Resource params := &memorydb.DescribeUsersInput{MaxResults: aws.Int64(50)} for { @@ -65,7 +79,7 @@ func (i *MemoryDBUser) Filter() error { return nil } -func (i *MemoryDBUser) Remove() error { +func (i *MemoryDBUser) Remove(_ context.Context) error { params := &memorydb.DeleteUserInput{ UserName: i.name, } From 655379bfbfd8d460346a0b4cc12c55c1082ad618 Mon Sep 17 00:00:00 2001 From: Taylor Barrella Date: Wed, 2 Aug 2023 06:39:21 -0700 Subject: [PATCH 060/617] appconfig: add support for five resources (#1055) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Taylor Barrella Co-authored-by: Björn Häuser --- resources/appconfig-applications.go | 53 ++++++++++++++ resources/appconfig-configurationprofiles.go | 70 ++++++++++++++++++ resources/appconfig-deploymentstrategies.go | 53 ++++++++++++++ resources/appconfig-environments.go | 70 ++++++++++++++++++ .../appconfig-hostedconfigurationversions.go | 72 +++++++++++++++++++ 5 files changed, 318 insertions(+) create mode 100644 resources/appconfig-applications.go create mode 100644 resources/appconfig-configurationprofiles.go create mode 100644 resources/appconfig-deploymentstrategies.go create mode 100644 resources/appconfig-environments.go create mode 100644 resources/appconfig-hostedconfigurationversions.go diff --git a/resources/appconfig-applications.go b/resources/appconfig-applications.go new file mode 100644 index 00000000..cb419dec --- /dev/null +++ b/resources/appconfig-applications.go @@ -0,0 +1,53 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/appconfig" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type AppConfigApplication struct { + svc *appconfig.AppConfig + id *string + name *string +} + +func init() { + register("AppConfigApplication", ListAppConfigApplications) +} + +func ListAppConfigApplications(sess *session.Session) ([]Resource, error) { + svc := appconfig.New(sess) + resources := []Resource{} + params := &appconfig.ListApplicationsInput{ + MaxResults: aws.Int64(100), + } + err := svc.ListApplicationsPages(params, func(page *appconfig.ListApplicationsOutput, lastPage bool) bool { + for _, item := range page.Items { + resources = append(resources, &AppConfigApplication{ + svc: svc, + id: item.Id, + name: item.Name, + }) + } + return true + }) + if err != nil { + return nil, err + } + return resources, nil +} + +func (f *AppConfigApplication) Remove() error { + _, err := f.svc.DeleteApplication(&appconfig.DeleteApplicationInput{ + ApplicationId: f.id, + }) + return err +} + +func (f *AppConfigApplication) Properties() types.Properties { + return types.NewProperties(). + Set("ID", f.id). + Set("Name", f.name) +} diff --git a/resources/appconfig-configurationprofiles.go b/resources/appconfig-configurationprofiles.go new file mode 100644 index 00000000..79efd01c --- /dev/null +++ b/resources/appconfig-configurationprofiles.go @@ -0,0 +1,70 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/appconfig" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" + "github.com/sirupsen/logrus" +) + +type AppConfigConfigurationProfile struct { + svc *appconfig.AppConfig + applicationId *string + id *string + name *string +} + +func init() { + register("AppConfigConfigurationProfile", ListAppConfigConfigurationProfiles) +} + +func ListAppConfigConfigurationProfiles(sess *session.Session) ([]Resource, error) { + svc := appconfig.New(sess) + resources := []Resource{} + applications, err := ListAppConfigApplications(sess) + if err != nil { + return nil, err + } + for _, applicationResource := range applications { + application, ok := applicationResource.(*AppConfigApplication) + if !ok { + logrus.Errorf("Unable to cast AppConfigApplication.") + continue + } + params := &appconfig.ListConfigurationProfilesInput{ + ApplicationId: application.id, + MaxResults: aws.Int64(100), + } + err := svc.ListConfigurationProfilesPages(params, func(page *appconfig.ListConfigurationProfilesOutput, lastPage bool) bool { + for _, item := range page.Items { + resources = append(resources, &AppConfigConfigurationProfile{ + svc: svc, + applicationId: application.id, + id: item.Id, + name: item.Name, + }) + } + return true + }) + if err != nil { + return nil, err + } + } + return resources, nil +} + +func (f *AppConfigConfigurationProfile) Remove() error { + _, err := f.svc.DeleteConfigurationProfile(&appconfig.DeleteConfigurationProfileInput{ + ApplicationId: f.applicationId, + ConfigurationProfileId: f.id, + }) + return err +} + +func (f *AppConfigConfigurationProfile) Properties() types.Properties { + return types.NewProperties(). + Set("ApplicationID", f.applicationId). + Set("ID", f.id). + Set("Name", f.name) +} diff --git a/resources/appconfig-deploymentstrategies.go b/resources/appconfig-deploymentstrategies.go new file mode 100644 index 00000000..670cb09d --- /dev/null +++ b/resources/appconfig-deploymentstrategies.go @@ -0,0 +1,53 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/appconfig" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type AppConfigDeploymentStrategy struct { + svc *appconfig.AppConfig + id *string + name *string +} + +func init() { + register("AppConfigDeploymentStrategy", ListAppConfigDeploymentStrategies) +} + +func ListAppConfigDeploymentStrategies(sess *session.Session) ([]Resource, error) { + svc := appconfig.New(sess) + resources := []Resource{} + params := &appconfig.ListDeploymentStrategiesInput{ + MaxResults: aws.Int64(100), + } + err := svc.ListDeploymentStrategiesPages(params, func(page *appconfig.ListDeploymentStrategiesOutput, lastPage bool) bool { + for _, item := range page.Items { + resources = append(resources, &AppConfigDeploymentStrategy{ + svc: svc, + id: item.Id, + name: item.Name, + }) + } + return true + }) + if err != nil { + return nil, err + } + return resources, nil +} + +func (f *AppConfigDeploymentStrategy) Remove() error { + _, err := f.svc.DeleteDeploymentStrategy(&appconfig.DeleteDeploymentStrategyInput{ + DeploymentStrategyId: f.id, + }) + return err +} + +func (f *AppConfigDeploymentStrategy) Properties() types.Properties { + return types.NewProperties(). + Set("ID", f.id). + Set("Name", f.name) +} diff --git a/resources/appconfig-environments.go b/resources/appconfig-environments.go new file mode 100644 index 00000000..d12015a7 --- /dev/null +++ b/resources/appconfig-environments.go @@ -0,0 +1,70 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/appconfig" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" + "github.com/sirupsen/logrus" +) + +type AppConfigEnvironment struct { + svc *appconfig.AppConfig + applicationId *string + id *string + name *string +} + +func init() { + register("AppConfigEnvironment", ListAppConfigEnvironments) +} + +func ListAppConfigEnvironments(sess *session.Session) ([]Resource, error) { + svc := appconfig.New(sess) + resources := []Resource{} + applications, err := ListAppConfigApplications(sess) + if err != nil { + return nil, err + } + for _, applicationResource := range applications { + application, ok := applicationResource.(*AppConfigApplication) + if !ok { + logrus.Errorf("Unable to cast AppConfigApplication.") + continue + } + params := &appconfig.ListEnvironmentsInput{ + ApplicationId: application.id, + MaxResults: aws.Int64(100), + } + err := svc.ListEnvironmentsPages(params, func(page *appconfig.ListEnvironmentsOutput, lastPage bool) bool { + for _, item := range page.Items { + resources = append(resources, &AppConfigEnvironment{ + svc: svc, + applicationId: application.id, + id: item.Id, + name: item.Name, + }) + } + return true + }) + if err != nil { + return nil, err + } + } + return resources, nil +} + +func (f *AppConfigEnvironment) Remove() error { + _, err := f.svc.DeleteEnvironment(&appconfig.DeleteEnvironmentInput{ + ApplicationId: f.applicationId, + EnvironmentId: f.id, + }) + return err +} + +func (f *AppConfigEnvironment) Properties() types.Properties { + return types.NewProperties(). + Set("ApplicationID", f.applicationId). + Set("ID", f.id). + Set("Name", f.name) +} diff --git a/resources/appconfig-hostedconfigurationversions.go b/resources/appconfig-hostedconfigurationversions.go new file mode 100644 index 00000000..6fff16c1 --- /dev/null +++ b/resources/appconfig-hostedconfigurationversions.go @@ -0,0 +1,72 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/appconfig" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" + "github.com/sirupsen/logrus" +) + +type AppConfigHostedConfigurationVersion struct { + svc *appconfig.AppConfig + applicationId *string + configurationProfileId *string + versionNumber *int64 +} + +func init() { + register("AppConfigHostedConfigurationVersion", ListAppConfigHostedConfigurationVersions) +} + +func ListAppConfigHostedConfigurationVersions(sess *session.Session) ([]Resource, error) { + svc := appconfig.New(sess) + resources := []Resource{} + configurationProfiles, err := ListAppConfigConfigurationProfiles(sess) + if err != nil { + return nil, err + } + for _, configurationProfileResource := range configurationProfiles { + configurationProfile, ok := configurationProfileResource.(*AppConfigConfigurationProfile) + if !ok { + logrus.Errorf("Unable to cast AppConfigConfigurationProfile.") + continue + } + params := &appconfig.ListHostedConfigurationVersionsInput{ + ApplicationId: configurationProfile.applicationId, + ConfigurationProfileId: configurationProfile.id, + MaxResults: aws.Int64(100), + } + err := svc.ListHostedConfigurationVersionsPages(params, func(page *appconfig.ListHostedConfigurationVersionsOutput, lastPage bool) bool { + for _, item := range page.Items { + resources = append(resources, &AppConfigHostedConfigurationVersion{ + svc: svc, + applicationId: configurationProfile.applicationId, + configurationProfileId: configurationProfile.id, + versionNumber: item.VersionNumber, + }) + } + return true + }) + if err != nil { + return nil, err + } + } + return resources, nil +} + +func (f *AppConfigHostedConfigurationVersion) Remove() error { + _, err := f.svc.DeleteHostedConfigurationVersion(&appconfig.DeleteHostedConfigurationVersionInput{ + ApplicationId: f.applicationId, + ConfigurationProfileId: f.configurationProfileId, + VersionNumber: f.versionNumber, + }) + return err +} + +func (f *AppConfigHostedConfigurationVersion) Properties() types.Properties { + return types.NewProperties(). + Set("ApplicationID", f.applicationId). + Set("ConfigurationProfileID", f.configurationProfileId). + Set("VersionNumber", f.versionNumber) +} From 2cc63efd8efa7991667f5699afc5cebb930e33c1 Mon Sep 17 00:00:00 2001 From: Taylor Barrella Date: Wed, 16 Aug 2023 00:48:10 -0700 Subject: [PATCH 061/617] app config: fix max results 100 -> 50 (#1075) --- resources/appconfig-applications.go | 2 +- resources/appconfig-configurationprofiles.go | 2 +- resources/appconfig-deploymentstrategies.go | 2 +- resources/appconfig-environments.go | 2 +- resources/appconfig-hostedconfigurationversions.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/appconfig-applications.go b/resources/appconfig-applications.go index cb419dec..832e49b5 100644 --- a/resources/appconfig-applications.go +++ b/resources/appconfig-applications.go @@ -21,7 +21,7 @@ func ListAppConfigApplications(sess *session.Session) ([]Resource, error) { svc := appconfig.New(sess) resources := []Resource{} params := &appconfig.ListApplicationsInput{ - MaxResults: aws.Int64(100), + MaxResults: aws.Int64(50), } err := svc.ListApplicationsPages(params, func(page *appconfig.ListApplicationsOutput, lastPage bool) bool { for _, item := range page.Items { diff --git a/resources/appconfig-configurationprofiles.go b/resources/appconfig-configurationprofiles.go index 79efd01c..ef7b9b0d 100644 --- a/resources/appconfig-configurationprofiles.go +++ b/resources/appconfig-configurationprofiles.go @@ -34,7 +34,7 @@ func ListAppConfigConfigurationProfiles(sess *session.Session) ([]Resource, erro } params := &appconfig.ListConfigurationProfilesInput{ ApplicationId: application.id, - MaxResults: aws.Int64(100), + MaxResults: aws.Int64(50), } err := svc.ListConfigurationProfilesPages(params, func(page *appconfig.ListConfigurationProfilesOutput, lastPage bool) bool { for _, item := range page.Items { diff --git a/resources/appconfig-deploymentstrategies.go b/resources/appconfig-deploymentstrategies.go index 670cb09d..c88d103e 100644 --- a/resources/appconfig-deploymentstrategies.go +++ b/resources/appconfig-deploymentstrategies.go @@ -21,7 +21,7 @@ func ListAppConfigDeploymentStrategies(sess *session.Session) ([]Resource, error svc := appconfig.New(sess) resources := []Resource{} params := &appconfig.ListDeploymentStrategiesInput{ - MaxResults: aws.Int64(100), + MaxResults: aws.Int64(50), } err := svc.ListDeploymentStrategiesPages(params, func(page *appconfig.ListDeploymentStrategiesOutput, lastPage bool) bool { for _, item := range page.Items { diff --git a/resources/appconfig-environments.go b/resources/appconfig-environments.go index d12015a7..093f6704 100644 --- a/resources/appconfig-environments.go +++ b/resources/appconfig-environments.go @@ -34,7 +34,7 @@ func ListAppConfigEnvironments(sess *session.Session) ([]Resource, error) { } params := &appconfig.ListEnvironmentsInput{ ApplicationId: application.id, - MaxResults: aws.Int64(100), + MaxResults: aws.Int64(50), } err := svc.ListEnvironmentsPages(params, func(page *appconfig.ListEnvironmentsOutput, lastPage bool) bool { for _, item := range page.Items { diff --git a/resources/appconfig-hostedconfigurationversions.go b/resources/appconfig-hostedconfigurationversions.go index 6fff16c1..e3fe4d4b 100644 --- a/resources/appconfig-hostedconfigurationversions.go +++ b/resources/appconfig-hostedconfigurationversions.go @@ -35,7 +35,7 @@ func ListAppConfigHostedConfigurationVersions(sess *session.Session) ([]Resource params := &appconfig.ListHostedConfigurationVersionsInput{ ApplicationId: configurationProfile.applicationId, ConfigurationProfileId: configurationProfile.id, - MaxResults: aws.Int64(100), + MaxResults: aws.Int64(50), } err := svc.ListHostedConfigurationVersionsPages(params, func(page *appconfig.ListHostedConfigurationVersionsOutput, lastPage bool) bool { for _, item := range page.Items { From 2c6af89fe643a52dbec8a1a0b800da26594bb36a Mon Sep 17 00:00:00 2001 From: Philipp Trulson Date: Wed, 23 Aug 2023 16:55:55 +0200 Subject: [PATCH 062/617] Fix: Don't delete predefined deployment strategies (#1081) --- resources/appconfig-deploymentstrategies.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/resources/appconfig-deploymentstrategies.go b/resources/appconfig-deploymentstrategies.go index c88d103e..aedf0b34 100644 --- a/resources/appconfig-deploymentstrategies.go +++ b/resources/appconfig-deploymentstrategies.go @@ -1,6 +1,9 @@ package resources import ( + "fmt" + "strings" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/appconfig" @@ -39,6 +42,13 @@ func ListAppConfigDeploymentStrategies(sess *session.Session) ([]Resource, error return resources, nil } +func (f *AppConfigDeploymentStrategy) Filter() error { + if strings.HasPrefix(*f.name, "AppConfig.") { + return fmt.Errorf("cannot delete predefined Deployment Strategy") + } + return nil +} + func (f *AppConfigDeploymentStrategy) Remove() error { _, err := f.svc.DeleteDeploymentStrategy(&appconfig.DeleteDeploymentStrategyInput{ DeploymentStrategyId: f.id, From 0db09e63b2ca489306698ff3558f90f5f9605599 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 25 Jan 2024 16:37:00 -0700 Subject: [PATCH 063/617] migrate: appconfig resources to libnuke format --- resources/appconfig-applications.go | 29 +++++++++++---- resources/appconfig-configurationprofiles.go | 37 ++++++++++++++----- resources/appconfig-deploymentstrategies.go | 28 ++++++++++---- resources/appconfig-environments.go | 36 +++++++++++++----- .../appconfig-hostedconfigurationversions.go | 36 +++++++++++++----- 5 files changed, 125 insertions(+), 41 deletions(-) diff --git a/resources/appconfig-applications.go b/resources/appconfig-applications.go index 832e49b5..c96692bd 100644 --- a/resources/appconfig-applications.go +++ b/resources/appconfig-applications.go @@ -1,10 +1,15 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/appconfig" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type AppConfigApplication struct { @@ -13,13 +18,23 @@ type AppConfigApplication struct { name *string } +const AppConfigApplicationResource = "AppConfigApplication" + func init() { - register("AppConfigApplication", ListAppConfigApplications) + resource.Register(&resource.Registration{ + Name: AppConfigApplicationResource, + Scope: nuke.Account, + Lister: &AppConfigApplicationLister{}, + }) } -func ListAppConfigApplications(sess *session.Session) ([]Resource, error) { - svc := appconfig.New(sess) - resources := []Resource{} +type AppConfigApplicationLister struct{} + +func (l *AppConfigApplicationLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := appconfig.New(opts.Session) + resources := make([]resource.Resource, 0) params := &appconfig.ListApplicationsInput{ MaxResults: aws.Int64(50), } @@ -39,7 +54,7 @@ func ListAppConfigApplications(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *AppConfigApplication) Remove() error { +func (f *AppConfigApplication) Remove(_ context.Context) error { _, err := f.svc.DeleteApplication(&appconfig.DeleteApplicationInput{ ApplicationId: f.id, }) diff --git a/resources/appconfig-configurationprofiles.go b/resources/appconfig-configurationprofiles.go index ef7b9b0d..03fb7b23 100644 --- a/resources/appconfig-configurationprofiles.go +++ b/resources/appconfig-configurationprofiles.go @@ -1,11 +1,17 @@ package resources import ( + "context" + + "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/appconfig" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" - "github.com/sirupsen/logrus" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type AppConfigConfigurationProfile struct { @@ -15,14 +21,27 @@ type AppConfigConfigurationProfile struct { name *string } +const AppConfigConfigurationProfileResource = "AppConfigConfigurationProfile" + func init() { - register("AppConfigConfigurationProfile", ListAppConfigConfigurationProfiles) + resource.Register(&resource.Registration{ + Name: AppConfigConfigurationProfileResource, + Scope: nuke.Account, + Lister: &AppConfigConfigurationProfileLister{}, + }) } -func ListAppConfigConfigurationProfiles(sess *session.Session) ([]Resource, error) { - svc := appconfig.New(sess) - resources := []Resource{} - applications, err := ListAppConfigApplications(sess) +type AppConfigConfigurationProfileLister struct{} + +func (l *AppConfigConfigurationProfileLister) List(ctx context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := appconfig.New(opts.Session) + resources := make([]resource.Resource, 0) + + applicationLister := &AppConfigApplicationLister{} + + applications, err := applicationLister.List(ctx, o) if err != nil { return nil, err } @@ -54,7 +73,7 @@ func ListAppConfigConfigurationProfiles(sess *session.Session) ([]Resource, erro return resources, nil } -func (f *AppConfigConfigurationProfile) Remove() error { +func (f *AppConfigConfigurationProfile) Remove(_ context.Context) error { _, err := f.svc.DeleteConfigurationProfile(&appconfig.DeleteConfigurationProfileInput{ ApplicationId: f.applicationId, ConfigurationProfileId: f.id, diff --git a/resources/appconfig-deploymentstrategies.go b/resources/appconfig-deploymentstrategies.go index aedf0b34..30e5c074 100644 --- a/resources/appconfig-deploymentstrategies.go +++ b/resources/appconfig-deploymentstrategies.go @@ -1,13 +1,17 @@ package resources import ( + "context" "fmt" "strings" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/appconfig" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type AppConfigDeploymentStrategy struct { @@ -16,13 +20,23 @@ type AppConfigDeploymentStrategy struct { name *string } +const AppConfigDeploymentStrategyResource = "AppConfigDeploymentStrategy" + func init() { - register("AppConfigDeploymentStrategy", ListAppConfigDeploymentStrategies) + resource.Register(&resource.Registration{ + Name: AppConfigDeploymentStrategyResource, + Scope: nuke.Account, + Lister: &AppConfigDeploymentStrategyLister{}, + }) } -func ListAppConfigDeploymentStrategies(sess *session.Session) ([]Resource, error) { - svc := appconfig.New(sess) - resources := []Resource{} +type AppConfigDeploymentStrategyLister struct{} + +func (l *AppConfigDeploymentStrategyLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := appconfig.New(opts.Session) + resources := make([]resource.Resource, 0) params := &appconfig.ListDeploymentStrategiesInput{ MaxResults: aws.Int64(50), } @@ -49,7 +63,7 @@ func (f *AppConfigDeploymentStrategy) Filter() error { return nil } -func (f *AppConfigDeploymentStrategy) Remove() error { +func (f *AppConfigDeploymentStrategy) Remove(_ context.Context) error { _, err := f.svc.DeleteDeploymentStrategy(&appconfig.DeleteDeploymentStrategyInput{ DeploymentStrategyId: f.id, }) diff --git a/resources/appconfig-environments.go b/resources/appconfig-environments.go index 093f6704..960a5dca 100644 --- a/resources/appconfig-environments.go +++ b/resources/appconfig-environments.go @@ -1,11 +1,17 @@ package resources import ( + "context" + + "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/appconfig" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" - "github.com/sirupsen/logrus" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type AppConfigEnvironment struct { @@ -15,14 +21,26 @@ type AppConfigEnvironment struct { name *string } +const AppConfigEnvironmentResource = "AppConfigEnvironment" + func init() { - register("AppConfigEnvironment", ListAppConfigEnvironments) + resource.Register(&resource.Registration{ + Name: AppConfigEnvironmentResource, + Scope: nuke.Account, + Lister: &AppConfigEnvironmentLister{}, + }) } -func ListAppConfigEnvironments(sess *session.Session) ([]Resource, error) { - svc := appconfig.New(sess) - resources := []Resource{} - applications, err := ListAppConfigApplications(sess) +type AppConfigEnvironmentLister struct{} + +func (l *AppConfigEnvironmentLister) List(ctx context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := appconfig.New(opts.Session) + resources := make([]resource.Resource, 0) + + applicationLister := &AppConfigApplicationLister{} + applications, err := applicationLister.List(ctx, o) if err != nil { return nil, err } @@ -54,7 +72,7 @@ func ListAppConfigEnvironments(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *AppConfigEnvironment) Remove() error { +func (f *AppConfigEnvironment) Remove(_ context.Context) error { _, err := f.svc.DeleteEnvironment(&appconfig.DeleteEnvironmentInput{ ApplicationId: f.applicationId, EnvironmentId: f.id, diff --git a/resources/appconfig-hostedconfigurationversions.go b/resources/appconfig-hostedconfigurationversions.go index e3fe4d4b..cb38a7e4 100644 --- a/resources/appconfig-hostedconfigurationversions.go +++ b/resources/appconfig-hostedconfigurationversions.go @@ -1,11 +1,17 @@ package resources import ( + "context" + + "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/appconfig" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" - "github.com/sirupsen/logrus" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type AppConfigHostedConfigurationVersion struct { @@ -15,14 +21,26 @@ type AppConfigHostedConfigurationVersion struct { versionNumber *int64 } +const AppConfigHostedConfigurationVersionResource = "AppConfigHostedConfigurationVersion" + func init() { - register("AppConfigHostedConfigurationVersion", ListAppConfigHostedConfigurationVersions) + resource.Register(&resource.Registration{ + Name: AppConfigHostedConfigurationVersionResource, + Scope: nuke.Account, + Lister: &AppConfigHostedConfigurationVersionLister{}, + }) } -func ListAppConfigHostedConfigurationVersions(sess *session.Session) ([]Resource, error) { - svc := appconfig.New(sess) - resources := []Resource{} - configurationProfiles, err := ListAppConfigConfigurationProfiles(sess) +type AppConfigHostedConfigurationVersionLister struct{} + +func (l *AppConfigHostedConfigurationVersionLister) List(ctx context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := appconfig.New(opts.Session) + resources := make([]resource.Resource, 0) + + profilerLister := &AppConfigConfigurationProfileLister{} + configurationProfiles, err := profilerLister.List(ctx, o) if err != nil { return nil, err } @@ -55,7 +73,7 @@ func ListAppConfigHostedConfigurationVersions(sess *session.Session) ([]Resource return resources, nil } -func (f *AppConfigHostedConfigurationVersion) Remove() error { +func (f *AppConfigHostedConfigurationVersion) Remove(_ context.Context) error { _, err := f.svc.DeleteHostedConfigurationVersion(&appconfig.DeleteHostedConfigurationVersionInput{ ApplicationId: f.applicationId, ConfigurationProfileId: f.configurationProfileId, From eb376d5e8e456850ba1a320aaaea23f79efe018e Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 25 Jan 2024 16:40:29 -0700 Subject: [PATCH 064/617] chore: add dependson relations for appconfig resources --- resources/appconfig-applications.go | 4 ++++ resources/appconfig-configurationprofiles.go | 3 +++ 2 files changed, 7 insertions(+) diff --git a/resources/appconfig-applications.go b/resources/appconfig-applications.go index c96692bd..81afeb9a 100644 --- a/resources/appconfig-applications.go +++ b/resources/appconfig-applications.go @@ -25,6 +25,10 @@ func init() { Name: AppConfigApplicationResource, Scope: nuke.Account, Lister: &AppConfigApplicationLister{}, + DependsOn: []string{ + AppConfigConfigurationProfileResource, + AppConfigEnvironmentResource, + }, }) } diff --git a/resources/appconfig-configurationprofiles.go b/resources/appconfig-configurationprofiles.go index 03fb7b23..ea320164 100644 --- a/resources/appconfig-configurationprofiles.go +++ b/resources/appconfig-configurationprofiles.go @@ -28,6 +28,9 @@ func init() { Name: AppConfigConfigurationProfileResource, Scope: nuke.Account, Lister: &AppConfigConfigurationProfileLister{}, + DependsOn: []string{ + AppConfigHostedConfigurationVersionResource, + }, }) } From ccfe58800c65b63112ced0d641439ac264883113 Mon Sep 17 00:00:00 2001 From: Mike Schouw <49021968+MikeSchouw@users.noreply.github.com> Date: Fri, 25 Aug 2023 16:36:33 +0200 Subject: [PATCH 065/617] Adding support for AppRunner services (#1060) * adding code for removing custom origin request policies * rename resource * test for replication * revert secretsmanager change * undo this * revert mod and sum changes * add resources for redshift scheduled actions * remove cloudfront resource * clean up * cloudwatch rum app * first attempt at apprunner-service * first attempt at apprunner-service * add apprunner connection as well * clean up --- resources/apprunner-connection.go | 62 +++++++++++++++++++++++++++++ resources/apprunner-service.go | 65 +++++++++++++++++++++++++++++++ 2 files changed, 127 insertions(+) create mode 100644 resources/apprunner-connection.go create mode 100644 resources/apprunner-service.go diff --git a/resources/apprunner-connection.go b/resources/apprunner-connection.go new file mode 100644 index 00000000..27197437 --- /dev/null +++ b/resources/apprunner-connection.go @@ -0,0 +1,62 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/apprunner" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type AppRunnerConnection struct { + svc *apprunner.AppRunner + ConnectionArn *string + ConnectionName *string +} + +func init() { + register("AppRunnerConnection", ListAppRunnerConnections) +} + +func ListAppRunnerConnections(sess *session.Session) ([]Resource, error) { + svc := apprunner.New(sess) + resources := []Resource{} + + params := &apprunner.ListConnectionsInput{} + + for { + resp, err := svc.ListConnections(params) + if err != nil { + return nil, err + } + + for _, item := range resp.ConnectionSummaryList { + resources = append(resources, &AppRunnerConnection{ + svc: svc, + ConnectionArn: item.ConnectionArn, + ConnectionName: item.ConnectionName, + }) + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken + } + + return resources, nil +} + +func (f *AppRunnerConnection) Remove() error { + _, err := f.svc.DeleteConnection(&apprunner.DeleteConnectionInput{ + ConnectionArn: f.ConnectionArn, + }) + + return err +} + +func (f *AppRunnerConnection) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("ConnectionArn", f.ConnectionArn) + properties.Set("ConnectionName", f.ConnectionName) + return properties +} diff --git a/resources/apprunner-service.go b/resources/apprunner-service.go new file mode 100644 index 00000000..9a2abdc4 --- /dev/null +++ b/resources/apprunner-service.go @@ -0,0 +1,65 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/apprunner" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type AppRunnerService struct { + svc *apprunner.AppRunner + ServiceArn *string + ServiceId *string + ServiceName *string +} + +func init() { + register("AppRunnerService", ListAppRunnerServices) +} + +func ListAppRunnerServices(sess *session.Session) ([]Resource, error) { + svc := apprunner.New(sess) + resources := []Resource{} + + params := &apprunner.ListServicesInput{} + + for { + resp, err := svc.ListServices(params) + if err != nil { + return nil, err + } + + for _, item := range resp.ServiceSummaryList { + resources = append(resources, &AppRunnerService{ + svc: svc, + ServiceArn: item.ServiceArn, + ServiceId: item.ServiceId, + ServiceName: item.ServiceName, + }) + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken + } + + return resources, nil +} + +func (f *AppRunnerService) Remove() error { + _, err := f.svc.DeleteService(&apprunner.DeleteServiceInput{ + ServiceArn: f.ServiceArn, + }) + + return err +} + +func (f *AppRunnerService) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("ServiceArn", f.ServiceArn) + properties.Set("ServiceId", f.ServiceId) + properties.Set("ServiceName", f.ServiceName) + return properties +} From 32bb057b19ddf6702ddd9915d6e9a0be5011d909 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 25 Jan 2024 16:44:02 -0700 Subject: [PATCH 066/617] chore: migrate resources to libnuke format --- resources/apprunner-connection.go | 29 ++++++++++++++++++++++------- resources/apprunner-service.go | 29 ++++++++++++++++++++++------- 2 files changed, 44 insertions(+), 14 deletions(-) diff --git a/resources/apprunner-connection.go b/resources/apprunner-connection.go index 27197437..616a5206 100644 --- a/resources/apprunner-connection.go +++ b/resources/apprunner-connection.go @@ -1,9 +1,14 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/apprunner" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type AppRunnerConnection struct { @@ -12,13 +17,23 @@ type AppRunnerConnection struct { ConnectionName *string } +const AppRunnerConnectionResource = "AppRunnerConnection" + func init() { - register("AppRunnerConnection", ListAppRunnerConnections) + resource.Register(&resource.Registration{ + Name: AppRunnerConnectionResource, + Scope: nuke.Account, + Lister: &AppRunnerConnectionLister{}, + }) } -func ListAppRunnerConnections(sess *session.Session) ([]Resource, error) { - svc := apprunner.New(sess) - resources := []Resource{} +type AppRunnerConnectionLister struct{} + +func (l *AppRunnerConnectionLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := apprunner.New(opts.Session) + resources := make([]resource.Resource, 0) params := &apprunner.ListConnectionsInput{} @@ -46,7 +61,7 @@ func ListAppRunnerConnections(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *AppRunnerConnection) Remove() error { +func (f *AppRunnerConnection) Remove(_ context.Context) error { _, err := f.svc.DeleteConnection(&apprunner.DeleteConnectionInput{ ConnectionArn: f.ConnectionArn, }) diff --git a/resources/apprunner-service.go b/resources/apprunner-service.go index 9a2abdc4..8bf633eb 100644 --- a/resources/apprunner-service.go +++ b/resources/apprunner-service.go @@ -1,9 +1,14 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/apprunner" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type AppRunnerService struct { @@ -13,13 +18,23 @@ type AppRunnerService struct { ServiceName *string } +const AppRunnerServiceResource = "AppRunnerService" + func init() { - register("AppRunnerService", ListAppRunnerServices) + resource.Register(&resource.Registration{ + Name: AppRunnerServiceResource, + Scope: nuke.Account, + Lister: &AppRunnerServiceLister{}, + }) } -func ListAppRunnerServices(sess *session.Session) ([]Resource, error) { - svc := apprunner.New(sess) - resources := []Resource{} +type AppRunnerServiceLister struct{} + +func (l *AppRunnerServiceLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := apprunner.New(opts.Session) + resources := make([]resource.Resource, 0) params := &apprunner.ListServicesInput{} @@ -48,7 +63,7 @@ func ListAppRunnerServices(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *AppRunnerService) Remove() error { +func (f *AppRunnerService) Remove(_ context.Context) error { _, err := f.svc.DeleteService(&apprunner.DeleteServiceInput{ ServiceArn: f.ServiceArn, }) From 2ae89a5a537987f875fb1b3f0f0e38fd68544342 Mon Sep 17 00:00:00 2001 From: Nicolas Pellegrin Date: Thu, 24 Aug 2023 17:04:00 +0200 Subject: [PATCH 067/617] Add support for CloudFront public keys and CloudFront key groups (#873) (#1065) --- resources/cloudfront-key-groups.go | 74 +++++++++++++++++++++++++++++ resources/cloudfront-public-keys.go | 74 +++++++++++++++++++++++++++++ 2 files changed, 148 insertions(+) create mode 100644 resources/cloudfront-key-groups.go create mode 100644 resources/cloudfront-public-keys.go diff --git a/resources/cloudfront-key-groups.go b/resources/cloudfront-key-groups.go new file mode 100644 index 00000000..8a790ed3 --- /dev/null +++ b/resources/cloudfront-key-groups.go @@ -0,0 +1,74 @@ +package resources + +import ( + "time" + + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/cloudfront" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type CloudFrontKeyGroup struct { + svc *cloudfront.CloudFront + ID *string + name *string + lastModifiedTime *time.Time +} + +func init() { + register("CloudFrontKeyGroup", ListCloudFrontKeyGroups) +} + +func ListCloudFrontKeyGroups(sess *session.Session) ([]Resource, error) { + svc := cloudfront.New(sess) + resources := []Resource{} + params := &cloudfront.ListKeyGroupsInput{} + + for { + resp, err := svc.ListKeyGroups(params) + if err != nil { + return nil, err + } + + for _, item := range resp.KeyGroupList.Items { + resources = append(resources, &CloudFrontKeyGroup{ + svc: svc, + ID: item.KeyGroup.Id, + name: item.KeyGroup.KeyGroupConfig.Name, + lastModifiedTime: item.KeyGroup.LastModifiedTime, + }) + } + + if resp.KeyGroupList.NextMarker == nil { + break + } + + params.Marker = resp.KeyGroupList.NextMarker + } + + return resources, nil +} + +func (f *CloudFrontKeyGroup) Remove() error { + resp, err := f.svc.GetKeyGroup(&cloudfront.GetKeyGroupInput{ + Id: f.ID, + }) + if err != nil { + return err + } + + _, err = f.svc.DeleteKeyGroup(&cloudfront.DeleteKeyGroupInput{ + Id: f.ID, + IfMatch: resp.ETag, + }) + + return err +} + +func (f *CloudFrontKeyGroup) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("ID", f.ID) + properties.Set("Name", f.name) + properties.Set("LastModifiedTime", f.lastModifiedTime.Format(time.RFC3339)) + return properties +} diff --git a/resources/cloudfront-public-keys.go b/resources/cloudfront-public-keys.go new file mode 100644 index 00000000..3c5cd6e7 --- /dev/null +++ b/resources/cloudfront-public-keys.go @@ -0,0 +1,74 @@ +package resources + +import ( + "time" + + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/cloudfront" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type CloudFrontPublicKey struct { + svc *cloudfront.CloudFront + ID *string + name *string + createdTime *time.Time +} + +func init() { + register("CloudFrontPublicKey", ListCloudFrontPublicKeys) +} + +func ListCloudFrontPublicKeys(sess *session.Session) ([]Resource, error) { + svc := cloudfront.New(sess) + resources := []Resource{} + params := &cloudfront.ListPublicKeysInput{} + + for { + resp, err := svc.ListPublicKeys(params) + if err != nil { + return nil, err + } + + for _, item := range resp.PublicKeyList.Items { + resources = append(resources, &CloudFrontPublicKey{ + svc: svc, + ID: item.Id, + name: item.Name, + createdTime: item.CreatedTime, + }) + } + + if resp.PublicKeyList.NextMarker == nil { + break + } + + params.Marker = resp.PublicKeyList.NextMarker + } + + return resources, nil +} + +func (f *CloudFrontPublicKey) Remove() error { + resp, err := f.svc.GetPublicKey(&cloudfront.GetPublicKeyInput{ + Id: f.ID, + }) + if err != nil { + return err + } + + _, err = f.svc.DeletePublicKey(&cloudfront.DeletePublicKeyInput{ + Id: f.ID, + IfMatch: resp.ETag, + }) + + return err +} + +func (f *CloudFrontPublicKey) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("ID", f.ID) + properties.Set("Name", f.name) + properties.Set("CreatedTime", f.createdTime.Format(time.RFC3339)) + return properties +} From 281ac2a1865a591f5acf8ed04ea1f47520b1779c Mon Sep 17 00:00:00 2001 From: Mike Schouw <49021968+MikeSchouw@users.noreply.github.com> Date: Thu, 3 Aug 2023 11:33:54 +0200 Subject: [PATCH 068/617] Adding CloudFrontOriginRequestPolicy resources. (#1051) * Adding CloudFrontOriginRequestPolicy resources. --------- Co-authored-by: Philipp Trulson --- resources/cloudfront-origin-request-policy.go | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 resources/cloudfront-origin-request-policy.go diff --git a/resources/cloudfront-origin-request-policy.go b/resources/cloudfront-origin-request-policy.go new file mode 100644 index 00000000..13e24718 --- /dev/null +++ b/resources/cloudfront-origin-request-policy.go @@ -0,0 +1,68 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/cloudfront" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type CloudFrontOriginRequestPolicy struct { + svc *cloudfront.CloudFront + ID *string +} + +func init() { + register("CloudFrontOriginRequestPolicy", ListCloudFrontOriginRequestPolicies) +} + +func ListCloudFrontOriginRequestPolicies(sess *session.Session) ([]Resource, error) { + svc := cloudfront.New(sess) + resources := []Resource{} + params := &cloudfront.ListOriginRequestPoliciesInput{} + + for { + resp, err := svc.ListOriginRequestPolicies(params) + if err != nil { + return nil, err + } + + for _, item := range resp.OriginRequestPolicyList.Items { + if *item.Type == "custom" { + resources = append(resources, &CloudFrontOriginRequestPolicy{ + svc: svc, + ID: item.OriginRequestPolicy.Id, + }) + } + } + + if resp.OriginRequestPolicyList.NextMarker == nil { + break + } + + params.Marker = resp.OriginRequestPolicyList.NextMarker + } + + return resources, nil +} + +func (f *CloudFrontOriginRequestPolicy) Remove() error { + resp, err := f.svc.GetOriginRequestPolicy(&cloudfront.GetOriginRequestPolicyInput{ + Id: f.ID, + }) + if err != nil { + return err + } + + _, err = f.svc.DeleteOriginRequestPolicy(&cloudfront.DeleteOriginRequestPolicyInput{ + Id: f.ID, + IfMatch: resp.ETag, + }) + + return err +} + +func (f *CloudFrontOriginRequestPolicy) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("ID", f.ID) + return properties +} From 280733a09307bd162dc0d2618ac9accb5490fed1 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 25 Jan 2024 16:54:18 -0700 Subject: [PATCH 069/617] chore: migrate resources to libnuke format --- resources/cloudfront-key-groups.go | 28 +++++++++++++----- resources/cloudfront-origin-request-policy.go | 29 ++++++++++++++----- resources/cloudfront-public-keys.go | 28 +++++++++++++----- 3 files changed, 64 insertions(+), 21 deletions(-) diff --git a/resources/cloudfront-key-groups.go b/resources/cloudfront-key-groups.go index 8a790ed3..a760bec3 100644 --- a/resources/cloudfront-key-groups.go +++ b/resources/cloudfront-key-groups.go @@ -1,11 +1,15 @@ package resources import ( + "context" "time" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/cloudfront" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type CloudFrontKeyGroup struct { @@ -15,13 +19,23 @@ type CloudFrontKeyGroup struct { lastModifiedTime *time.Time } +const CloudFrontKeyGroupResource = "CloudFrontKeyGroup" + func init() { - register("CloudFrontKeyGroup", ListCloudFrontKeyGroups) + resource.Register(&resource.Registration{ + Name: CloudFrontKeyGroupResource, + Scope: nuke.Account, + Lister: &CloudFrontKeyGroupLister{}, + }) } -func ListCloudFrontKeyGroups(sess *session.Session) ([]Resource, error) { - svc := cloudfront.New(sess) - resources := []Resource{} +type CloudFrontKeyGroupLister struct{} + +func (l *CloudFrontKeyGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := cloudfront.New(opts.Session) + resources := make([]resource.Resource, 0) params := &cloudfront.ListKeyGroupsInput{} for { @@ -49,7 +63,7 @@ func ListCloudFrontKeyGroups(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *CloudFrontKeyGroup) Remove() error { +func (f *CloudFrontKeyGroup) Remove(_ context.Context) error { resp, err := f.svc.GetKeyGroup(&cloudfront.GetKeyGroupInput{ Id: f.ID, }) diff --git a/resources/cloudfront-origin-request-policy.go b/resources/cloudfront-origin-request-policy.go index 13e24718..db009806 100644 --- a/resources/cloudfront-origin-request-policy.go +++ b/resources/cloudfront-origin-request-policy.go @@ -1,9 +1,14 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/cloudfront" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type CloudFrontOriginRequestPolicy struct { @@ -11,13 +16,23 @@ type CloudFrontOriginRequestPolicy struct { ID *string } +const CloudFrontOriginRequestPolicyResource = "CloudFrontOriginRequestPolicy" + func init() { - register("CloudFrontOriginRequestPolicy", ListCloudFrontOriginRequestPolicies) + resource.Register(&resource.Registration{ + Name: CloudFrontOriginRequestPolicyResource, + Scope: nuke.Account, + Lister: &CloudFrontOriginRequestPolicyLister{}, + }) } -func ListCloudFrontOriginRequestPolicies(sess *session.Session) ([]Resource, error) { - svc := cloudfront.New(sess) - resources := []Resource{} +type CloudFrontOriginRequestPolicyLister struct{} + +func (l *CloudFrontOriginRequestPolicyLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := cloudfront.New(opts.Session) + resources := make([]resource.Resource, 0) params := &cloudfront.ListOriginRequestPoliciesInput{} for { @@ -45,7 +60,7 @@ func ListCloudFrontOriginRequestPolicies(sess *session.Session) ([]Resource, err return resources, nil } -func (f *CloudFrontOriginRequestPolicy) Remove() error { +func (f *CloudFrontOriginRequestPolicy) Remove(_ context.Context) error { resp, err := f.svc.GetOriginRequestPolicy(&cloudfront.GetOriginRequestPolicyInput{ Id: f.ID, }) diff --git a/resources/cloudfront-public-keys.go b/resources/cloudfront-public-keys.go index 3c5cd6e7..4a117a2b 100644 --- a/resources/cloudfront-public-keys.go +++ b/resources/cloudfront-public-keys.go @@ -1,11 +1,15 @@ package resources import ( + "context" "time" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/cloudfront" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type CloudFrontPublicKey struct { @@ -15,13 +19,23 @@ type CloudFrontPublicKey struct { createdTime *time.Time } +const CloudFrontPublicKeyResource = "CloudFrontPublicKey" + func init() { - register("CloudFrontPublicKey", ListCloudFrontPublicKeys) + resource.Register(&resource.Registration{ + Name: CloudFrontPublicKeyResource, + Scope: nuke.Account, + Lister: &CloudFrontPublicKeyLister{}, + }) } -func ListCloudFrontPublicKeys(sess *session.Session) ([]Resource, error) { - svc := cloudfront.New(sess) - resources := []Resource{} +type CloudFrontPublicKeyLister struct{} + +func (l *CloudFrontPublicKeyLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := cloudfront.New(opts.Session) + resources := make([]resource.Resource, 0) params := &cloudfront.ListPublicKeysInput{} for { @@ -49,7 +63,7 @@ func ListCloudFrontPublicKeys(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *CloudFrontPublicKey) Remove() error { +func (f *CloudFrontPublicKey) Remove(_ context.Context) error { resp, err := f.svc.GetPublicKey(&cloudfront.GetPublicKeyInput{ Id: f.ID, }) From 349b36876cd2108ec1e928af0c0ebac65fbc2574 Mon Sep 17 00:00:00 2001 From: Sherd White <106187526+swhite-oreilly@users.noreply.github.com> Date: Fri, 25 Aug 2023 03:36:33 -0500 Subject: [PATCH 070/617] Add opensearch packages vpc endpoint support (#1078) * Create opensearchservice-packages.go Adding support for opensearch packages. * Update opensearchservice-packages.go Confirmed working cleanup of os packages. * Adding opensearch vpcendpoints functionality. Removing unused var from packages. * Update opensearchservice-vpcendpoints.go Correctly retrieving VPC endpoint ids. * Update opensearchservice-packages.go Setting property values. * Update opensearchservice-vpcendpoints.go Adding id to properties. * Update opensearchservice-vpcendpoints.go Removing unneeded describe call. * Update opensearchservice-vpcendpoints.go Removed extra function for getting id's, incorporated into list function. * Adding pagination to list functions. --- resources/opensearchservice-packages.go | 75 +++++++++++++++++++++ resources/opensearchservice-vpcendpoints.go | 67 ++++++++++++++++++ 2 files changed, 142 insertions(+) create mode 100644 resources/opensearchservice-packages.go create mode 100644 resources/opensearchservice-vpcendpoints.go diff --git a/resources/opensearchservice-packages.go b/resources/opensearchservice-packages.go new file mode 100644 index 00000000..8dde96cf --- /dev/null +++ b/resources/opensearchservice-packages.go @@ -0,0 +1,75 @@ +package resources + +import ( + "time" + + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/opensearchservice" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type OSPackage struct { + svc *opensearchservice.OpenSearchService + packageID *string + packageName *string + createdTime *time.Time +} + +func init() { + register("OSPackage", ListOSPackages) +} + +func ListOSPackages(sess *session.Session) ([]Resource, error) { + svc := opensearchservice.New(sess) + resources := []Resource{} + var nextToken *string + + for { + params := &opensearchservice.DescribePackagesInput{ + NextToken: nextToken, + } + listResp, err := svc.DescribePackages(params) + if err != nil { + return nil, err + } + + for _, pkg := range listResp.PackageDetailsList { + resources = append(resources, &OSPackage{ + svc: svc, + packageID: pkg.PackageID, + packageName: pkg.PackageName, + createdTime: pkg.CreatedAt, + }) + } + + // Check if there are more results + if listResp.NextToken == nil { + break // No more results, exit the loop + } + + // Set the nextToken for the next iteration + nextToken = listResp.NextToken + } + + return resources, nil +} + +func (o *OSPackage) Remove() error { + _, err := o.svc.DeletePackage(&opensearchservice.DeletePackageInput{ + PackageID: o.packageID, + }) + + return err +} + +func (o *OSPackage) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("PackageID", o.packageID) + properties.Set("PackageName", o.packageName) + properties.Set("CreatedTime", o.createdTime.Format(time.RFC3339)) + return properties +} + +func (o *OSPackage) String() string { + return *o.packageID +} diff --git a/resources/opensearchservice-vpcendpoints.go b/resources/opensearchservice-vpcendpoints.go new file mode 100644 index 00000000..ad2253ba --- /dev/null +++ b/resources/opensearchservice-vpcendpoints.go @@ -0,0 +1,67 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/opensearchservice" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type OSVPCEndpoint struct { + svc *opensearchservice.OpenSearchService + vpcEndpointId *string +} + +func init() { + register("OSVPCEndpoint", ListOSVPCEndpoints) +} + +func ListOSVPCEndpoints(sess *session.Session) ([]Resource, error) { + svc := opensearchservice.New(sess) + resources := []Resource{} + var nextToken *string + + for { + params := &opensearchservice.ListVpcEndpointsInput{ + NextToken: nextToken, + } + listResp, err := svc.ListVpcEndpoints(params) + if err != nil { + return nil, err + } + + for _, vpcEndpoint := range listResp.VpcEndpointSummaryList { + resources = append(resources, &OSVPCEndpoint{ + svc: svc, + vpcEndpointId: vpcEndpoint.VpcEndpointId, + }) + } + + // Check if there are more results + if listResp.NextToken == nil { + break // No more results, exit the loop + } + + // Set the nextToken for the next iteration + nextToken = listResp.NextToken + } + + return resources, nil +} + +func (o *OSVPCEndpoint) Remove() error { + _, err := o.svc.DeleteVpcEndpoint(&opensearchservice.DeleteVpcEndpointInput{ + VpcEndpointId: o.vpcEndpointId, + }) + + return err +} + +func (o *OSVPCEndpoint) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("VpcEndpointId", o.vpcEndpointId) + return properties +} + +func (o *OSVPCEndpoint) String() string { + return *o.vpcEndpointId +} From ad88a8a9333c4b89c4f371b1c63acc5d31f7ae45 Mon Sep 17 00:00:00 2001 From: Sherd White <106187526+swhite-oreilly@users.noreply.github.com> Date: Mon, 23 Oct 2023 13:25:12 -0500 Subject: [PATCH 071/617] Add filter for opensearch default packages (#1130) * Adding filter to skip default opensearch packages --- resources/opensearchservice-packages.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/resources/opensearchservice-packages.go b/resources/opensearchservice-packages.go index 8dde96cf..99f336d3 100644 --- a/resources/opensearchservice-packages.go +++ b/resources/opensearchservice-packages.go @@ -1,6 +1,8 @@ package resources import ( + "fmt" + "strings" "time" "github.com/aws/aws-sdk-go/aws/session" @@ -54,6 +56,13 @@ func ListOSPackages(sess *session.Session) ([]Resource, error) { return resources, nil } +func (o *OSPackage) Filter() error { + if strings.HasPrefix(*o.packageID, "G") { + return fmt.Errorf("cannot delete default opensearch packages") + } + return nil +} + func (o *OSPackage) Remove() error { _, err := o.svc.DeletePackage(&opensearchservice.DeletePackageInput{ PackageID: o.packageID, From ec297627d2c26398c466f61ac7312d46044fedee Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 25 Jan 2024 16:58:28 -0700 Subject: [PATCH 072/617] chore: migrate resources to libnuke format --- resources/opensearchservice-packages.go | 40 ++++++++++++++------- resources/opensearchservice-vpcendpoints.go | 37 +++++++++++++------ 2 files changed, 53 insertions(+), 24 deletions(-) diff --git a/resources/opensearchservice-packages.go b/resources/opensearchservice-packages.go index 99f336d3..299c1ad1 100644 --- a/resources/opensearchservice-packages.go +++ b/resources/opensearchservice-packages.go @@ -1,29 +1,36 @@ package resources import ( + "context" "fmt" "strings" "time" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/opensearchservice" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type OSPackage struct { - svc *opensearchservice.OpenSearchService - packageID *string - packageName *string - createdTime *time.Time -} +const OSPackageResource = "OSPackage" func init() { - register("OSPackage", ListOSPackages) + resource.Register(&resource.Registration{ + Name: OSPackageResource, + Scope: nuke.Account, + Lister: &OSPackageLister{}, + }) } -func ListOSPackages(sess *session.Session) ([]Resource, error) { - svc := opensearchservice.New(sess) - resources := []Resource{} +type OSPackageLister struct{} + +func (l *OSPackageLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := opensearchservice.New(opts.Session) + resources := make([]resource.Resource, 0) var nextToken *string for { @@ -56,6 +63,13 @@ func ListOSPackages(sess *session.Session) ([]Resource, error) { return resources, nil } +type OSPackage struct { + svc *opensearchservice.OpenSearchService + packageID *string + packageName *string + createdTime *time.Time +} + func (o *OSPackage) Filter() error { if strings.HasPrefix(*o.packageID, "G") { return fmt.Errorf("cannot delete default opensearch packages") @@ -63,7 +77,7 @@ func (o *OSPackage) Filter() error { return nil } -func (o *OSPackage) Remove() error { +func (o *OSPackage) Remove(_ context.Context) error { _, err := o.svc.DeletePackage(&opensearchservice.DeletePackageInput{ PackageID: o.packageID, }) diff --git a/resources/opensearchservice-vpcendpoints.go b/resources/opensearchservice-vpcendpoints.go index ad2253ba..b9baa0bd 100644 --- a/resources/opensearchservice-vpcendpoints.go +++ b/resources/opensearchservice-vpcendpoints.go @@ -1,23 +1,33 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/opensearchservice" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type OSVPCEndpoint struct { - svc *opensearchservice.OpenSearchService - vpcEndpointId *string -} +const OSVPCEndpointResource = "OSVPCEndpoint" func init() { - register("OSVPCEndpoint", ListOSVPCEndpoints) + resource.Register(&resource.Registration{ + Name: OSVPCEndpointResource, + Scope: nuke.Account, + Lister: &OSVPCEndpointLister{}, + }) } -func ListOSVPCEndpoints(sess *session.Session) ([]Resource, error) { - svc := opensearchservice.New(sess) - resources := []Resource{} +type OSVPCEndpointLister struct{} + +func (l *OSVPCEndpointLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := opensearchservice.New(opts.Session) + resources := make([]resource.Resource, 0) var nextToken *string for { @@ -48,7 +58,12 @@ func ListOSVPCEndpoints(sess *session.Session) ([]Resource, error) { return resources, nil } -func (o *OSVPCEndpoint) Remove() error { +type OSVPCEndpoint struct { + svc *opensearchservice.OpenSearchService + vpcEndpointId *string +} + +func (o *OSVPCEndpoint) Remove(_ context.Context) error { _, err := o.svc.DeleteVpcEndpoint(&opensearchservice.DeleteVpcEndpointInput{ VpcEndpointId: o.vpcEndpointId, }) From 5870c3ea4b47bc2d3febd4affb866a66281757ac Mon Sep 17 00:00:00 2001 From: Sherd White <106187526+swhite-oreilly@users.noreply.github.com> Date: Tue, 29 Aug 2023 06:04:26 -0500 Subject: [PATCH 073/617] Update comprehend detection filters (#1090) * Updating detection filters. Adding `Completed` to the job status types that are ignored upon cleanup. * Adding filters for key-phrases and dominant-language Adding filters for key-phrases and dominant-language * Adding pii entitites and sentiment detection job support. * Adding events detection job support. --- ...prehend-dominant-language-detection-job.go | 5 ++ .../comprehend-entities-detection-job.go | 6 +- .../comprehend-key-phrases-detection-job.go | 5 ++ .../comprehend-sentiment-detection-job.go | 6 +- resources/comprehend_events_detection_job.go | 72 +++++++++++++++++++ .../comprehend_pii_entities_detection_job.go | 72 +++++++++++++++++++ ...rehend_targeted_sentiment_detection_job.go | 72 +++++++++++++++++++ 7 files changed, 232 insertions(+), 6 deletions(-) create mode 100644 resources/comprehend_events_detection_job.go create mode 100644 resources/comprehend_pii_entities_detection_job.go create mode 100644 resources/comprehend_targeted_sentiment_detection_job.go diff --git a/resources/comprehend-dominant-language-detection-job.go b/resources/comprehend-dominant-language-detection-job.go index b7a3daf9..d5710105 100644 --- a/resources/comprehend-dominant-language-detection-job.go +++ b/resources/comprehend-dominant-language-detection-job.go @@ -37,6 +37,11 @@ func (l *ComprehendDominantLanguageDetectionJobLister) List(_ context.Context, o return nil, err } for _, dominantLanguageDetectionJob := range resp.DominantLanguageDetectionJobPropertiesList { + switch *dominantLanguageDetectionJob.JobStatus { + case "STOPPED", "FAILED", "COMPLETED": + // if the job has already been stopped, failed, or completed; do not try to stop it again + continue + } resources = append(resources, &ComprehendDominantLanguageDetectionJob{ svc: svc, dominantLanguageDetectionJob: dominantLanguageDetectionJob, diff --git a/resources/comprehend-entities-detection-job.go b/resources/comprehend-entities-detection-job.go index cb4bc5f5..52749232 100644 --- a/resources/comprehend-entities-detection-job.go +++ b/resources/comprehend-entities-detection-job.go @@ -37,9 +37,9 @@ func (l *ComprehendEntitiesDetectionJobLister) List(_ context.Context, o interfa return nil, err } for _, entitiesDetectionJob := range resp.EntitiesDetectionJobPropertiesList { - if *entitiesDetectionJob.JobStatus == "STOPPED" || - *entitiesDetectionJob.JobStatus == "FAILED" { - // if the job has already been stopped, do not try to delete it again + switch *entitiesDetectionJob.JobStatus { + case "STOPPED", "FAILED", "COMPLETED": + // if the job has already been stopped, failed, or completed; do not try to stop it again continue } resources = append(resources, &ComprehendEntitiesDetectionJob{ diff --git a/resources/comprehend-key-phrases-detection-job.go b/resources/comprehend-key-phrases-detection-job.go index 8886225b..71c02c2b 100644 --- a/resources/comprehend-key-phrases-detection-job.go +++ b/resources/comprehend-key-phrases-detection-job.go @@ -37,6 +37,11 @@ func (l *ComprehendKeyPhrasesDetectionJobLister) List(_ context.Context, o inter return nil, err } for _, keyPhrasesDetectionJob := range resp.KeyPhrasesDetectionJobPropertiesList { + switch *keyPhrasesDetectionJob.JobStatus { + case "STOPPED", "FAILED", "COMPLETED": + // if the job has already been stopped, failed, or completed; do not try to stop it again + continue + } resources = append(resources, &ComprehendKeyPhrasesDetectionJob{ svc: svc, keyPhrasesDetectionJob: keyPhrasesDetectionJob, diff --git a/resources/comprehend-sentiment-detection-job.go b/resources/comprehend-sentiment-detection-job.go index c6841200..d516741e 100644 --- a/resources/comprehend-sentiment-detection-job.go +++ b/resources/comprehend-sentiment-detection-job.go @@ -37,9 +37,9 @@ func (l *ComprehendSentimentDetectionJobLister) List(_ context.Context, o interf return nil, err } for _, sentimentDetectionJob := range resp.SentimentDetectionJobPropertiesList { - if *sentimentDetectionJob.JobStatus == "STOPPED" || - *sentimentDetectionJob.JobStatus == "FAILED" { - // if the job has already been stopped, do not try to delete it again + switch *sentimentDetectionJob.JobStatus { + case "STOPPED", "FAILED", "COMPLETED": + // if the job has already been stopped, failed, or completed; do not try to stop it again continue } resources = append(resources, &ComprehendSentimentDetectionJob{ diff --git a/resources/comprehend_events_detection_job.go b/resources/comprehend_events_detection_job.go new file mode 100644 index 00000000..e8b303eb --- /dev/null +++ b/resources/comprehend_events_detection_job.go @@ -0,0 +1,72 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/comprehend" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +func init() { + register("ComprehendEventsDetectionJob", ListComprehendEventsDetectionJobs) +} + +func ListComprehendEventsDetectionJobs(sess *session.Session) ([]Resource, error) { + svc := comprehend.New(sess) + + params := &comprehend.ListEventsDetectionJobsInput{} + resources := make([]Resource, 0) + + for { + resp, err := svc.ListEventsDetectionJobs(params) + if err != nil { + return nil, err + } + for _, eventsDetectionJob := range resp.EventsDetectionJobPropertiesList { + switch *eventsDetectionJob.JobStatus { + case "STOPPED", "FAILED", "COMPLETED": + // if the job has already been stopped, failed, or completed; do not try to stop it again + continue + } + resources = append(resources, &ComprehendEventsDetectionJob{ + svc: svc, + eventsDetectionJob: eventsDetectionJob, + }) + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken + } + + return resources, nil +} + +type ComprehendEventsDetectionJob struct { + svc *comprehend.Comprehend + eventsDetectionJob *comprehend.EventsDetectionJobProperties +} + +func (ce *ComprehendEventsDetectionJob) Remove() error { + _, err := ce.svc.StopEventsDetectionJob(&comprehend.StopEventsDetectionJobInput{ + JobId: ce.eventsDetectionJob.JobId, + }) + return err +} + +func (ce *ComprehendEventsDetectionJob) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("JobName", ce.eventsDetectionJob.JobName) + properties.Set("JobId", ce.eventsDetectionJob.JobId) + + return properties +} + +func (ce *ComprehendEventsDetectionJob) String() string { + if ce.eventsDetectionJob.JobName == nil { + return "Unnamed job" + } else { + return *ce.eventsDetectionJob.JobName + } +} diff --git a/resources/comprehend_pii_entities_detection_job.go b/resources/comprehend_pii_entities_detection_job.go new file mode 100644 index 00000000..6d923461 --- /dev/null +++ b/resources/comprehend_pii_entities_detection_job.go @@ -0,0 +1,72 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/comprehend" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +func init() { + register("ComprehendPiiEntititesDetectionJob", ListComprehendPiiEntitiesDetectionJobs) +} + +func ListComprehendPiiEntitiesDetectionJobs(sess *session.Session) ([]Resource, error) { + svc := comprehend.New(sess) + + params := &comprehend.ListPiiEntitiesDetectionJobsInput{} + resources := make([]Resource, 0) + + for { + resp, err := svc.ListPiiEntitiesDetectionJobs(params) + if err != nil { + return nil, err + } + for _, piiEntititesDetectionJob := range resp.PiiEntitiesDetectionJobPropertiesList { + switch *piiEntititesDetectionJob.JobStatus { + case "STOPPED", "FAILED", "COMPLETED": + // if the job has already been stopped, failed, or completed; do not try to stop it again + continue + } + resources = append(resources, &ComprehendPiiEntitiesDetectionJob{ + svc: svc, + piiEntititesDetectionJob: piiEntititesDetectionJob, + }) + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken + } + + return resources, nil +} + +type ComprehendPiiEntitiesDetectionJob struct { + svc *comprehend.Comprehend + piiEntititesDetectionJob *comprehend.PiiEntitiesDetectionJobProperties +} + +func (ce *ComprehendPiiEntitiesDetectionJob) Remove() error { + _, err := ce.svc.StopPiiEntitiesDetectionJob(&comprehend.StopPiiEntitiesDetectionJobInput{ + JobId: ce.piiEntititesDetectionJob.JobId, + }) + return err +} + +func (ce *ComprehendPiiEntitiesDetectionJob) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("JobName", ce.piiEntititesDetectionJob.JobName) + properties.Set("JobId", ce.piiEntititesDetectionJob.JobId) + + return properties +} + +func (ce *ComprehendPiiEntitiesDetectionJob) String() string { + if ce.piiEntititesDetectionJob.JobName == nil { + return "Unnamed job" + } else { + return *ce.piiEntititesDetectionJob.JobName + } +} diff --git a/resources/comprehend_targeted_sentiment_detection_job.go b/resources/comprehend_targeted_sentiment_detection_job.go new file mode 100644 index 00000000..b60b39b6 --- /dev/null +++ b/resources/comprehend_targeted_sentiment_detection_job.go @@ -0,0 +1,72 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/comprehend" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +func init() { + register("ComprehendTargetedSentimentDetectionJob", ListComprehendTargetedSentimentDetectionJobs) +} + +func ListComprehendTargetedSentimentDetectionJobs(sess *session.Session) ([]Resource, error) { + svc := comprehend.New(sess) + + params := &comprehend.ListTargetedSentimentDetectionJobsInput{} + resources := make([]Resource, 0) + + for { + resp, err := svc.ListTargetedSentimentDetectionJobs(params) + if err != nil { + return nil, err + } + for _, targetedSentimentDetectionJob := range resp.TargetedSentimentDetectionJobPropertiesList { + switch *targetedSentimentDetectionJob.JobStatus { + case "STOPPED", "FAILED", "COMPLETED": + // if the job has already been stopped, failed, or completed; do not try to stop it again + continue + } + resources = append(resources, &ComprehendTargetedSentimentDetectionJob{ + svc: svc, + targetedSentimentDetectionJob: targetedSentimentDetectionJob, + }) + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken + } + + return resources, nil +} + +type ComprehendTargetedSentimentDetectionJob struct { + svc *comprehend.Comprehend + targetedSentimentDetectionJob *comprehend.TargetedSentimentDetectionJobProperties +} + +func (ce *ComprehendTargetedSentimentDetectionJob) Remove() error { + _, err := ce.svc.StopTargetedSentimentDetectionJob(&comprehend.StopTargetedSentimentDetectionJobInput{ + JobId: ce.targetedSentimentDetectionJob.JobId, + }) + return err +} + +func (ce *ComprehendTargetedSentimentDetectionJob) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("JobName", ce.targetedSentimentDetectionJob.JobName) + properties.Set("JobId", ce.targetedSentimentDetectionJob.JobId) + + return properties +} + +func (ce *ComprehendTargetedSentimentDetectionJob) String() string { + if ce.targetedSentimentDetectionJob.JobName == nil { + return "Unnamed job" + } else { + return *ce.targetedSentimentDetectionJob.JobName + } +} From 7e8618e668b9634614a3062b8d8d0ca39b6e1f42 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 25 Jan 2024 17:02:33 -0700 Subject: [PATCH 074/617] chore: migrate resources to libnuke format --- resources/comprehend_events_detection_job.go | 29 ++++++++++++++----- .../comprehend_pii_entities_detection_job.go | 29 ++++++++++++++----- ...rehend_targeted_sentiment_detection_job.go | 29 ++++++++++++++----- 3 files changed, 66 insertions(+), 21 deletions(-) diff --git a/resources/comprehend_events_detection_job.go b/resources/comprehend_events_detection_job.go index e8b303eb..cc5d7ef1 100644 --- a/resources/comprehend_events_detection_job.go +++ b/resources/comprehend_events_detection_job.go @@ -1,20 +1,35 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/comprehend" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const ComprehendEventsDetectionJobResource = "ComprehendEventsDetectionJob" + func init() { - register("ComprehendEventsDetectionJob", ListComprehendEventsDetectionJobs) + resource.Register(&resource.Registration{ + Name: ComprehendEventsDetectionJobResource, + Scope: nuke.Account, + Lister: &ComprehendEventsDetectionJobLister{}, + }) } -func ListComprehendEventsDetectionJobs(sess *session.Session) ([]Resource, error) { - svc := comprehend.New(sess) +type ComprehendEventsDetectionJobLister struct{} + +func (l *ComprehendEventsDetectionJobLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := comprehend.New(opts.Session) params := &comprehend.ListEventsDetectionJobsInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { resp, err := svc.ListEventsDetectionJobs(params) @@ -48,7 +63,7 @@ type ComprehendEventsDetectionJob struct { eventsDetectionJob *comprehend.EventsDetectionJobProperties } -func (ce *ComprehendEventsDetectionJob) Remove() error { +func (ce *ComprehendEventsDetectionJob) Remove(_ context.Context) error { _, err := ce.svc.StopEventsDetectionJob(&comprehend.StopEventsDetectionJobInput{ JobId: ce.eventsDetectionJob.JobId, }) diff --git a/resources/comprehend_pii_entities_detection_job.go b/resources/comprehend_pii_entities_detection_job.go index 6d923461..bb1250bb 100644 --- a/resources/comprehend_pii_entities_detection_job.go +++ b/resources/comprehend_pii_entities_detection_job.go @@ -1,20 +1,35 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/comprehend" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const ComprehendPiiEntititesDetectionJobResource = "ComprehendPiiEntititesDetectionJob" + func init() { - register("ComprehendPiiEntititesDetectionJob", ListComprehendPiiEntitiesDetectionJobs) + resource.Register(&resource.Registration{ + Name: ComprehendPiiEntititesDetectionJobResource, + Scope: nuke.Account, + Lister: &ComprehendPiiEntititesDetectionJobLister{}, + }) } -func ListComprehendPiiEntitiesDetectionJobs(sess *session.Session) ([]Resource, error) { - svc := comprehend.New(sess) +type ComprehendPiiEntititesDetectionJobLister struct{} + +func (l *ComprehendPiiEntititesDetectionJobLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := comprehend.New(opts.Session) params := &comprehend.ListPiiEntitiesDetectionJobsInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { resp, err := svc.ListPiiEntitiesDetectionJobs(params) @@ -48,7 +63,7 @@ type ComprehendPiiEntitiesDetectionJob struct { piiEntititesDetectionJob *comprehend.PiiEntitiesDetectionJobProperties } -func (ce *ComprehendPiiEntitiesDetectionJob) Remove() error { +func (ce *ComprehendPiiEntitiesDetectionJob) Remove(_ context.Context) error { _, err := ce.svc.StopPiiEntitiesDetectionJob(&comprehend.StopPiiEntitiesDetectionJobInput{ JobId: ce.piiEntititesDetectionJob.JobId, }) diff --git a/resources/comprehend_targeted_sentiment_detection_job.go b/resources/comprehend_targeted_sentiment_detection_job.go index b60b39b6..f8839653 100644 --- a/resources/comprehend_targeted_sentiment_detection_job.go +++ b/resources/comprehend_targeted_sentiment_detection_job.go @@ -1,20 +1,35 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/comprehend" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) +const ComprehendTargetedSentimentDetectionJobResource = "ComprehendTargetedSentimentDetectionJob" + func init() { - register("ComprehendTargetedSentimentDetectionJob", ListComprehendTargetedSentimentDetectionJobs) + resource.Register(&resource.Registration{ + Name: ComprehendTargetedSentimentDetectionJobResource, + Scope: nuke.Account, + Lister: &ComprehendTargetedSentimentDetectionJobLister{}, + }) } -func ListComprehendTargetedSentimentDetectionJobs(sess *session.Session) ([]Resource, error) { - svc := comprehend.New(sess) +type ComprehendTargetedSentimentDetectionJobLister struct{} + +func (l *ComprehendTargetedSentimentDetectionJobLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := comprehend.New(opts.Session) params := &comprehend.ListTargetedSentimentDetectionJobsInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { resp, err := svc.ListTargetedSentimentDetectionJobs(params) @@ -48,7 +63,7 @@ type ComprehendTargetedSentimentDetectionJob struct { targetedSentimentDetectionJob *comprehend.TargetedSentimentDetectionJobProperties } -func (ce *ComprehendTargetedSentimentDetectionJob) Remove() error { +func (ce *ComprehendTargetedSentimentDetectionJob) Remove(_ context.Context) error { _, err := ce.svc.StopTargetedSentimentDetectionJob(&comprehend.StopTargetedSentimentDetectionJobInput{ JobId: ce.targetedSentimentDetectionJob.JobId, }) From 152ae8f540b4315d286098974819db3cb8073a9f Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 25 Jan 2024 17:03:21 -0700 Subject: [PATCH 075/617] chore: rename to standard naming format --- ...events_detection_job.go => comprehend-events-detection-job.go} | 0 ..._detection_job.go => comprehend-pii-entities-detection-job.go} | 0 ...tion_job.go => comprehend-targeted-sentiment-detection-job.go} | 0 3 files changed, 0 insertions(+), 0 deletions(-) rename resources/{comprehend_events_detection_job.go => comprehend-events-detection-job.go} (100%) rename resources/{comprehend_pii_entities_detection_job.go => comprehend-pii-entities-detection-job.go} (100%) rename resources/{comprehend_targeted_sentiment_detection_job.go => comprehend-targeted-sentiment-detection-job.go} (100%) diff --git a/resources/comprehend_events_detection_job.go b/resources/comprehend-events-detection-job.go similarity index 100% rename from resources/comprehend_events_detection_job.go rename to resources/comprehend-events-detection-job.go diff --git a/resources/comprehend_pii_entities_detection_job.go b/resources/comprehend-pii-entities-detection-job.go similarity index 100% rename from resources/comprehend_pii_entities_detection_job.go rename to resources/comprehend-pii-entities-detection-job.go diff --git a/resources/comprehend_targeted_sentiment_detection_job.go b/resources/comprehend-targeted-sentiment-detection-job.go similarity index 100% rename from resources/comprehend_targeted_sentiment_detection_job.go rename to resources/comprehend-targeted-sentiment-detection-job.go From c24016a66ee10c1024ab313f592a5de56e82472b Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 25 Jan 2024 17:06:36 -0700 Subject: [PATCH 076/617] chore: fix spelling, add deprecated alias --- .../comprehend-pii-entities-detection-job.go | 35 ++++++++++--------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/resources/comprehend-pii-entities-detection-job.go b/resources/comprehend-pii-entities-detection-job.go index bb1250bb..1ee7250a 100644 --- a/resources/comprehend-pii-entities-detection-job.go +++ b/resources/comprehend-pii-entities-detection-job.go @@ -11,19 +11,22 @@ import ( "github.com/ekristen/aws-nuke/pkg/nuke" ) -const ComprehendPiiEntititesDetectionJobResource = "ComprehendPiiEntititesDetectionJob" +const ComprehendPiiEntitiesDetectionJobResource = "ComprehendPiiEntitiesDetectionJob" func init() { resource.Register(&resource.Registration{ - Name: ComprehendPiiEntititesDetectionJobResource, + Name: ComprehendPiiEntitiesDetectionJobResource, Scope: nuke.Account, - Lister: &ComprehendPiiEntititesDetectionJobLister{}, + Lister: &ComprehendPiiEntitiesDetectionJobLister{}, + DeprecatedAliases: []string{ + "ComprehendPiiEntititesDetectionJob", //nolint:misspell + }, }) } -type ComprehendPiiEntititesDetectionJobLister struct{} +type ComprehendPiiEntitiesDetectionJobLister struct{} -func (l *ComprehendPiiEntititesDetectionJobLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { +func (l *ComprehendPiiEntitiesDetectionJobLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) svc := comprehend.New(opts.Session) @@ -36,15 +39,15 @@ func (l *ComprehendPiiEntititesDetectionJobLister) List(_ context.Context, o int if err != nil { return nil, err } - for _, piiEntititesDetectionJob := range resp.PiiEntitiesDetectionJobPropertiesList { - switch *piiEntititesDetectionJob.JobStatus { + for _, piiEntitiesDetectionJob := range resp.PiiEntitiesDetectionJobPropertiesList { + switch *piiEntitiesDetectionJob.JobStatus { case "STOPPED", "FAILED", "COMPLETED": // if the job has already been stopped, failed, or completed; do not try to stop it again continue } resources = append(resources, &ComprehendPiiEntitiesDetectionJob{ - svc: svc, - piiEntititesDetectionJob: piiEntititesDetectionJob, + svc: svc, + piiEntitiesDetectionJob: piiEntitiesDetectionJob, }) } @@ -59,29 +62,29 @@ func (l *ComprehendPiiEntititesDetectionJobLister) List(_ context.Context, o int } type ComprehendPiiEntitiesDetectionJob struct { - svc *comprehend.Comprehend - piiEntititesDetectionJob *comprehend.PiiEntitiesDetectionJobProperties + svc *comprehend.Comprehend + piiEntitiesDetectionJob *comprehend.PiiEntitiesDetectionJobProperties } func (ce *ComprehendPiiEntitiesDetectionJob) Remove(_ context.Context) error { _, err := ce.svc.StopPiiEntitiesDetectionJob(&comprehend.StopPiiEntitiesDetectionJobInput{ - JobId: ce.piiEntititesDetectionJob.JobId, + JobId: ce.piiEntitiesDetectionJob.JobId, }) return err } func (ce *ComprehendPiiEntitiesDetectionJob) Properties() types.Properties { properties := types.NewProperties() - properties.Set("JobName", ce.piiEntititesDetectionJob.JobName) - properties.Set("JobId", ce.piiEntititesDetectionJob.JobId) + properties.Set("JobName", ce.piiEntitiesDetectionJob.JobName) + properties.Set("JobId", ce.piiEntitiesDetectionJob.JobId) return properties } func (ce *ComprehendPiiEntitiesDetectionJob) String() string { - if ce.piiEntititesDetectionJob.JobName == nil { + if ce.piiEntitiesDetectionJob.JobName == nil { return "Unnamed job" } else { - return *ce.piiEntititesDetectionJob.JobName + return *ce.piiEntitiesDetectionJob.JobName } } From c0af2d7707f1d56f85702b77f43f6202a40c880f Mon Sep 17 00:00:00 2001 From: Sherd White <106187526+swhite-oreilly@users.noreply.github.com> Date: Thu, 24 Aug 2023 02:57:15 -0500 Subject: [PATCH 077/617] Add elasticache user and group support (#1044) * Adding Elasticache User and UserGroup Support Adding go modules for elasticache users and groups. Adding filtering for subnet groups to ignore the default elasticache subnet group. * Create opensearchservice-packages.go Adding working code for packages cleanup. * Delete opensearchservice-packages.go Moving opensearch changes to separate branch. * Updating elasticache user/group list calls with pagination. * Reverting versions to match oreilly-main Reverting versions to match oreilly-main * Updating go version to match upstream. * Updating to more closely match style of other resource types. * Adding properties to EC user/usergroups. --- resources/elasticache-subnetgroups.go | 9 +++ resources/elasticache-usergroups.go | 74 +++++++++++++++++++++++ resources/elasticache-users.go | 87 +++++++++++++++++++++++++++ 3 files changed, 170 insertions(+) create mode 100644 resources/elasticache-usergroups.go create mode 100644 resources/elasticache-users.go diff --git a/resources/elasticache-subnetgroups.go b/resources/elasticache-subnetgroups.go index 3f28fb99..951e2dcc 100644 --- a/resources/elasticache-subnetgroups.go +++ b/resources/elasticache-subnetgroups.go @@ -2,6 +2,8 @@ package resources import ( "context" + "fmt" + "strings" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/elasticache" @@ -50,6 +52,13 @@ type ElasticacheSubnetGroup struct { name *string } +func (i *ElasticacheSubnetGroup) Filter() error { + if strings.HasPrefix(*i.name, "default") { + return fmt.Errorf("cannot delete default subnet group") + } + return nil +} + func (i *ElasticacheSubnetGroup) Remove(_ context.Context) error { params := &elasticache.DeleteCacheSubnetGroupInput{ CacheSubnetGroupName: i.name, diff --git a/resources/elasticache-usergroups.go b/resources/elasticache-usergroups.go new file mode 100644 index 00000000..df001fd9 --- /dev/null +++ b/resources/elasticache-usergroups.go @@ -0,0 +1,74 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/elasticache" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type ElasticacheUserGroup struct { + svc *elasticache.ElastiCache + groupId *string +} + +func init() { + register("ElasticacheUserGroup", ListElasticacheUserGroups) +} + +func ListElasticacheUserGroups(sess *session.Session) ([]Resource, error) { + svc := elasticache.New(sess) + resources := []Resource{} + var nextToken *string + + for { + params := &elasticache.DescribeUserGroupsInput{ + MaxRecords: aws.Int64(100), + Marker: nextToken, + } + resp, err := svc.DescribeUserGroups(params) + if err != nil { + return nil, err + } + + for _, userGroup := range resp.UserGroups { + resources = append(resources, &ElasticacheUserGroup{ + svc: svc, + groupId: userGroup.UserGroupId, + }) + } + + // Check if there are more results + if resp.Marker == nil { + break // No more results, exit the loop + } + + // Set the nextToken for the next iteration + nextToken = resp.Marker + } + + return resources, nil +} + +func (i *ElasticacheUserGroup) Remove() error { + params := &elasticache.DeleteUserGroupInput{ + UserGroupId: i.groupId, + } + + _, err := i.svc.DeleteUserGroup(params) + if err != nil { + return err + } + + return nil +} + +func (i *ElasticacheUserGroup) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("ID", i.groupId) + return properties +} + +func (i *ElasticacheUserGroup) String() string { + return *i.groupId +} diff --git a/resources/elasticache-users.go b/resources/elasticache-users.go new file mode 100644 index 00000000..8bd37079 --- /dev/null +++ b/resources/elasticache-users.go @@ -0,0 +1,87 @@ +package resources + +import ( + "fmt" + "strings" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/elasticache" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type ElasticacheUser struct { + svc *elasticache.ElastiCache + userId *string + userName *string +} + +func init() { + register("ElasticacheUser", ListElasticacheUsers) +} + +func ListElasticacheUsers(sess *session.Session) ([]Resource, error) { + svc := elasticache.New(sess) + resources := []Resource{} + var nextToken *string + + for { + params := &elasticache.DescribeUsersInput{ + MaxRecords: aws.Int64(100), + Marker: nextToken, + } + resp, err := svc.DescribeUsers(params) + if err != nil { + return nil, err + } + + for _, user := range resp.Users { + resources = append(resources, &ElasticacheUser{ + svc: svc, + userId: user.UserId, + userName: user.UserName, + }) + } + + // Check if there are more results + if resp.Marker == nil { + break // No more results, exit the loop + } + + // Set the nextToken for the next iteration + nextToken = resp.Marker + } + + return resources, nil +} + +func (i *ElasticacheUser) Filter() error { + if strings.HasPrefix(*i.userName, "default") { + return fmt.Errorf("cannot delete default user") + } + return nil +} + +func (i *ElasticacheUser) Remove() error { + params := &elasticache.DeleteUserInput{ + UserId: i.userId, + } + + _, err := i.svc.DeleteUser(params) + if err != nil { + return err + } + + return nil +} + +func (i *ElasticacheUser) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("ID", i.userId) + properties.Set("UserName", i.userName) + return properties +} + +func (i *ElasticacheUser) String() string { + return *i.userId +} From 01baadadf6e1e46e387dfc9132521d197fe838df Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 25 Jan 2024 17:13:00 -0700 Subject: [PATCH 078/617] chore: migrate resources to libnuke format --- resources/elasticache-usergroups.go | 29 ++++++++++++++++++++++------- resources/elasticache-users.go | 28 +++++++++++++++++++++------- 2 files changed, 43 insertions(+), 14 deletions(-) diff --git a/resources/elasticache-usergroups.go b/resources/elasticache-usergroups.go index df001fd9..79491054 100644 --- a/resources/elasticache-usergroups.go +++ b/resources/elasticache-usergroups.go @@ -1,10 +1,15 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/elasticache" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type ElasticacheUserGroup struct { @@ -12,13 +17,23 @@ type ElasticacheUserGroup struct { groupId *string } +const ElasticacheUserGroupResource = "ElasticacheUserGroup" + func init() { - register("ElasticacheUserGroup", ListElasticacheUserGroups) + resource.Register(&resource.Registration{ + Name: ElasticacheUserGroupResource, + Scope: nuke.Account, + Lister: &ElasticacheUserGroupLister{}, + }) } -func ListElasticacheUserGroups(sess *session.Session) ([]Resource, error) { - svc := elasticache.New(sess) - resources := []Resource{} +type ElasticacheUserGroupLister struct{} + +func (l *ElasticacheUserGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := elasticache.New(opts.Session) + resources := make([]resource.Resource, 0) var nextToken *string for { @@ -50,7 +65,7 @@ func ListElasticacheUserGroups(sess *session.Session) ([]Resource, error) { return resources, nil } -func (i *ElasticacheUserGroup) Remove() error { +func (i *ElasticacheUserGroup) Remove(_ context.Context) error { params := &elasticache.DeleteUserGroupInput{ UserGroupId: i.groupId, } diff --git a/resources/elasticache-users.go b/resources/elasticache-users.go index 8bd37079..ecac0c2c 100644 --- a/resources/elasticache-users.go +++ b/resources/elasticache-users.go @@ -1,13 +1,17 @@ package resources import ( + "context" "fmt" "strings" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/elasticache" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type ElasticacheUser struct { @@ -16,13 +20,23 @@ type ElasticacheUser struct { userName *string } +const ElasticacheUserResource = "ElasticacheUser" + func init() { - register("ElasticacheUser", ListElasticacheUsers) + resource.Register(&resource.Registration{ + Name: ElasticacheUserResource, + Scope: nuke.Account, + Lister: &ElasticacheUserLister{}, + }) } -func ListElasticacheUsers(sess *session.Session) ([]Resource, error) { - svc := elasticache.New(sess) - resources := []Resource{} +type ElasticacheUserLister struct{} + +func (l *ElasticacheUserLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := elasticache.New(opts.Session) + resources := make([]resource.Resource, 0) var nextToken *string for { @@ -62,7 +76,7 @@ func (i *ElasticacheUser) Filter() error { return nil } -func (i *ElasticacheUser) Remove() error { +func (i *ElasticacheUser) Remove(_ context.Context) error { params := &elasticache.DeleteUserInput{ UserId: i.userId, } From 94e1281eb9f58f4f901d004429a51abb8bc471d1 Mon Sep 17 00:00:00 2001 From: Mike Schouw <49021968+MikeSchouw@users.noreply.github.com> Date: Thu, 24 Aug 2023 17:09:00 +0200 Subject: [PATCH 079/617] Add RedshiftScheduledAction resource (#1047) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add RedshiftScheduledAction resource --------- Co-authored-by: Björn Häuser --- resources/redshift-scheduled-action.go | 60 ++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 resources/redshift-scheduled-action.go diff --git a/resources/redshift-scheduled-action.go b/resources/redshift-scheduled-action.go new file mode 100644 index 00000000..e98b1569 --- /dev/null +++ b/resources/redshift-scheduled-action.go @@ -0,0 +1,60 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/redshift" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type RedshiftScheduledAction struct { + svc *redshift.Redshift + scheduledActionName *string +} + +func init() { + register("RedshiftScheduledAction", ListRedshiftScheduledActions) +} + +func ListRedshiftScheduledActions(sess *session.Session) ([]Resource, error) { + svc := redshift.New(sess) + resources := []Resource{} + + params := &redshift.DescribeScheduledActionsInput{} + + for { + resp, err := svc.DescribeScheduledActions(params) + if err != nil { + return nil, err + } + + for _, item := range resp.ScheduledActions { + resources = append(resources, &RedshiftScheduledAction{ + svc: svc, + scheduledActionName: item.ScheduledActionName, + }) + } + + if resp.Marker == nil { + break + } + + params.Marker = resp.Marker + } + + return resources, nil +} + +func (f *RedshiftScheduledAction) Remove() error { + + _, err := f.svc.DeleteScheduledAction(&redshift.DeleteScheduledActionInput{ + ScheduledActionName: f.scheduledActionName, + }) + + return err +} + +func (f *RedshiftScheduledAction) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("scheduledActionName", f.scheduledActionName) + return properties +} From 2cd66ccf6fe3602fc2b13c6d7792f108b27521fa Mon Sep 17 00:00:00 2001 From: Philipp Trulson Date: Wed, 23 Aug 2023 18:39:23 +0200 Subject: [PATCH 080/617] Add EC2InstanceConnectEndpoint resource (#1087) --- resources/ec2-instance-connect-endpoint.go | 98 ++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 resources/ec2-instance-connect-endpoint.go diff --git a/resources/ec2-instance-connect-endpoint.go b/resources/ec2-instance-connect-endpoint.go new file mode 100644 index 00000000..70e584d1 --- /dev/null +++ b/resources/ec2-instance-connect-endpoint.go @@ -0,0 +1,98 @@ +package resources + +import ( + "time" + + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/ec2" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type EC2InstanceConnectEndpoint struct { + svc *ec2.EC2 + az *string + createdAt *time.Time + dnsName *string + fipsDNSName *string + id *string + ownerID *string + state *string + subnetID *string + tags []*ec2.Tag + vpcID *string +} + +func init() { + register("EC2InstanceConnectEndpoint", ListEC2InstanceConnectEndpoints) +} + +func ListEC2InstanceConnectEndpoints(sess *session.Session) ([]Resource, error) { + svc := ec2.New(sess) + params := &ec2.DescribeInstanceConnectEndpointsInput{} + resources := make([]Resource, 0) + for { + resp, err := svc.DescribeInstanceConnectEndpoints(params) + if err != nil { + return nil, err + } + + for _, endpoint := range resp.InstanceConnectEndpoints { + resources = append(resources, &EC2InstanceConnectEndpoint{ + svc: svc, + az: endpoint.AvailabilityZone, + createdAt: endpoint.CreatedAt, + dnsName: endpoint.DnsName, + fipsDNSName: endpoint.FipsDnsName, + id: endpoint.InstanceConnectEndpointId, + ownerID: endpoint.OwnerId, + state: endpoint.State, + subnetID: endpoint.SubnetId, + tags: endpoint.Tags, + vpcID: endpoint.VpcId, + }) + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken + } + + return resources, nil +} + +func (i *EC2InstanceConnectEndpoint) Remove() error { + params := &ec2.DeleteInstanceConnectEndpointInput{ + InstanceConnectEndpointId: i.id, + } + + _, err := i.svc.DeleteInstanceConnectEndpoint(params) + if err != nil { + return err + } + return nil +} + +func (i *EC2InstanceConnectEndpoint) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("ID", i.id) + properties.Set("AZ", i.az) + properties.Set("CreatedAt", i.createdAt.Format(time.RFC3339)) + properties.Set("DNSName", i.dnsName) + properties.Set("FIPSDNSName", i.fipsDNSName) + properties.Set("OwnerID", i.ownerID) + properties.Set("State", i.state) + properties.Set("SubnetID", i.subnetID) + properties.Set("VPCID", i.vpcID) + + for _, tagValue := range i.tags { + properties.SetTag(tagValue.Key, tagValue.Value) + } + + return properties +} + +func (i *EC2InstanceConnectEndpoint) String() string { + return *i.id +} From a3bf835e76c74a878d20d618f9fb2e94077ffa70 Mon Sep 17 00:00:00 2001 From: wei-zhong90 <38466460+wei-zhong90@users.noreply.github.com> Date: Tue, 29 Aug 2023 10:55:51 +0200 Subject: [PATCH 081/617] (features)The delete function for cloudwatch rum is added (#952) * (features)The delete function for cloudwatch rum is added * Update resources/cloudwatch-rum.go Change the naming convention to conform to the general style as suggested Co-authored-by: Philipp Trulson * Add properties --------- Co-authored-by: Philipp Trulson Co-authored-by: Philipp Trulson --- resources/cloudwatch-rum.go | 71 +++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 resources/cloudwatch-rum.go diff --git a/resources/cloudwatch-rum.go b/resources/cloudwatch-rum.go new file mode 100644 index 00000000..15b28a74 --- /dev/null +++ b/resources/cloudwatch-rum.go @@ -0,0 +1,71 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/cloudwatchrum" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type CloudWatchRumApp struct { + svc *cloudwatchrum.CloudWatchRUM + appmonitorname *string + id *string + state *string +} + +func init() { + register("CloudWatchRUMApp", ListCloudWatchRumApp) +} + +func ListCloudWatchRumApp(sess *session.Session) ([]Resource, error) { + svc := cloudwatchrum.New(sess) + resources := []Resource{} + + params := &cloudwatchrum.ListAppMonitorsInput{} + + for { + output, err := svc.ListAppMonitors(params) + if err != nil { + return nil, err + } + + for _, appEntry := range output.AppMonitorSummaries { + resources = append(resources, &CloudWatchRumApp{ + svc: svc, + appmonitorname: appEntry.Name, + id: appEntry.Id, + state: appEntry.State, + }) + } + + if output.NextToken == nil { + break + } + + params.NextToken = output.NextToken + } + + return resources, nil +} + +func (f *CloudWatchRumApp) Remove() error { + + _, err := f.svc.DeleteAppMonitor(&cloudwatchrum.DeleteAppMonitorInput{ + Name: f.appmonitorname, + }) + + return err +} + +func (f *CloudWatchRumApp) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("Name", *f.appmonitorname) + properties.Set("ID", *f.id) + properties.Set("State", *f.state) + + return properties +} + +func (f *CloudWatchRumApp) String() string { + return *f.appmonitorname +} From 0699feccb64ccc71b0518f64b00f139eab9c1183 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 25 Jan 2024 17:20:25 -0700 Subject: [PATCH 082/617] chore: add alias to compare tool to do proper match --- tools/compare-resources/main.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/compare-resources/main.go b/tools/compare-resources/main.go index 1a9b6db8..7e605dcc 100644 --- a/tools/compare-resources/main.go +++ b/tools/compare-resources/main.go @@ -15,9 +15,10 @@ var OriginalRegisterRegex = regexp.MustCompile("register\\(\"(?P.*)\", var NewRegisterRegex = regexp.MustCompile(`resource.Registration{\s+Name:\s+(?P.*),`) var aliases = map[string]string{ - "NetpuneSnapshot": "NeptuneSnapshot", - "EKSFargateProfiles": "EKSFargateProfile", - "EKSNodegroups": "EKSNodegroup", + "NetpuneSnapshot": "NeptuneSnapshot", + "EKSFargateProfiles": "EKSFargateProfile", + "EKSNodegroups": "EKSNodegroup", + "ComprehendPiiEntititesDetectionJob": "ComprehendPIIEntitiesDetectionJob", } func main() { From d9e902b53bceb28dc7b54bc448b6d7f0ed83a488 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 25 Jan 2024 17:20:33 -0700 Subject: [PATCH 083/617] chore: migrate resources to libnuke format --- resources/cloudwatch-rum.go | 49 +++++++++++++------- resources/ec2-instance-connect-endpoint.go | 54 ++++++++++++++-------- resources/redshift-scheduled-action.go | 37 ++++++++++----- 3 files changed, 92 insertions(+), 48 deletions(-) diff --git a/resources/cloudwatch-rum.go b/resources/cloudwatch-rum.go index 15b28a74..b2953b56 100644 --- a/resources/cloudwatch-rum.go +++ b/resources/cloudwatch-rum.go @@ -1,25 +1,33 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/cloudwatchrum" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type CloudWatchRumApp struct { - svc *cloudwatchrum.CloudWatchRUM - appmonitorname *string - id *string - state *string -} +const CloudWatchRUMAppResource = "CloudWatchRUMApp" func init() { - register("CloudWatchRUMApp", ListCloudWatchRumApp) + resource.Register(&resource.Registration{ + Name: CloudWatchRUMAppResource, + Scope: nuke.Account, + Lister: &CloudWatchRUMAppLister{}, + }) } -func ListCloudWatchRumApp(sess *session.Session) ([]Resource, error) { - svc := cloudwatchrum.New(sess) - resources := []Resource{} +type CloudWatchRUMAppLister struct{} + +func (l *CloudWatchRUMAppLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := cloudwatchrum.New(opts.Session) + resources := make([]resource.Resource, 0) params := &cloudwatchrum.ListAppMonitorsInput{} @@ -32,7 +40,7 @@ func ListCloudWatchRumApp(sess *session.Session) ([]Resource, error) { for _, appEntry := range output.AppMonitorSummaries { resources = append(resources, &CloudWatchRumApp{ svc: svc, - appmonitorname: appEntry.Name, + appMonitorName: appEntry.Name, id: appEntry.Id, state: appEntry.State, }) @@ -48,10 +56,17 @@ func ListCloudWatchRumApp(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *CloudWatchRumApp) Remove() error { +type CloudWatchRumApp struct { + svc *cloudwatchrum.CloudWatchRUM + appMonitorName *string + id *string + state *string +} + +func (f *CloudWatchRumApp) Remove(_ context.Context) error { _, err := f.svc.DeleteAppMonitor(&cloudwatchrum.DeleteAppMonitorInput{ - Name: f.appmonitorname, + Name: f.appMonitorName, }) return err @@ -59,7 +74,7 @@ func (f *CloudWatchRumApp) Remove() error { func (f *CloudWatchRumApp) Properties() types.Properties { properties := types.NewProperties() - properties.Set("Name", *f.appmonitorname) + properties.Set("Name", *f.appMonitorName) properties.Set("ID", *f.id) properties.Set("State", *f.state) @@ -67,5 +82,5 @@ func (f *CloudWatchRumApp) Properties() types.Properties { } func (f *CloudWatchRumApp) String() string { - return *f.appmonitorname + return *f.appMonitorName } diff --git a/resources/ec2-instance-connect-endpoint.go b/resources/ec2-instance-connect-endpoint.go index 70e584d1..a49f408a 100644 --- a/resources/ec2-instance-connect-endpoint.go +++ b/resources/ec2-instance-connect-endpoint.go @@ -1,35 +1,35 @@ package resources import ( + "context" "time" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ec2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type EC2InstanceConnectEndpoint struct { - svc *ec2.EC2 - az *string - createdAt *time.Time - dnsName *string - fipsDNSName *string - id *string - ownerID *string - state *string - subnetID *string - tags []*ec2.Tag - vpcID *string -} +const EC2InstanceConnectEndpointResource = "EC2InstanceConnectEndpoint" func init() { - register("EC2InstanceConnectEndpoint", ListEC2InstanceConnectEndpoints) + resource.Register(&resource.Registration{ + Name: EC2InstanceConnectEndpointResource, + Scope: nuke.Account, + Lister: &EC2InstanceConnectEndpointLister{}, + }) } -func ListEC2InstanceConnectEndpoints(sess *session.Session) ([]Resource, error) { - svc := ec2.New(sess) +type EC2InstanceConnectEndpointLister struct{} + +func (l *EC2InstanceConnectEndpointLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ec2.New(opts.Session) params := &ec2.DescribeInstanceConnectEndpointsInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { resp, err := svc.DescribeInstanceConnectEndpoints(params) if err != nil { @@ -62,7 +62,21 @@ func ListEC2InstanceConnectEndpoints(sess *session.Session) ([]Resource, error) return resources, nil } -func (i *EC2InstanceConnectEndpoint) Remove() error { +type EC2InstanceConnectEndpoint struct { + svc *ec2.EC2 + az *string + createdAt *time.Time + dnsName *string + fipsDNSName *string + id *string + ownerID *string + state *string + subnetID *string + tags []*ec2.Tag + vpcID *string +} + +func (i *EC2InstanceConnectEndpoint) Remove(_ context.Context) error { params := &ec2.DeleteInstanceConnectEndpointInput{ InstanceConnectEndpointId: i.id, } diff --git a/resources/redshift-scheduled-action.go b/resources/redshift-scheduled-action.go index e98b1569..5f67a5ba 100644 --- a/resources/redshift-scheduled-action.go +++ b/resources/redshift-scheduled-action.go @@ -1,23 +1,33 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/redshift" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type RedshiftScheduledAction struct { - svc *redshift.Redshift - scheduledActionName *string -} +const RedshiftScheduledActionResource = "RedshiftScheduledAction" func init() { - register("RedshiftScheduledAction", ListRedshiftScheduledActions) + resource.Register(&resource.Registration{ + Name: RedshiftScheduledActionResource, + Scope: nuke.Account, + Lister: &RedshiftScheduledActionLister{}, + }) } -func ListRedshiftScheduledActions(sess *session.Session) ([]Resource, error) { - svc := redshift.New(sess) - resources := []Resource{} +type RedshiftScheduledActionLister struct{} + +func (l *RedshiftScheduledActionLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := redshift.New(opts.Session) + resources := make([]resource.Resource, 0) params := &redshift.DescribeScheduledActionsInput{} @@ -44,7 +54,12 @@ func ListRedshiftScheduledActions(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *RedshiftScheduledAction) Remove() error { +type RedshiftScheduledAction struct { + svc *redshift.Redshift + scheduledActionName *string +} + +func (f *RedshiftScheduledAction) Remove(_ context.Context) error { _, err := f.svc.DeleteScheduledAction(&redshift.DeleteScheduledActionInput{ ScheduledActionName: f.scheduledActionName, From 0cd8bdb266313137bc18fefb8ab07228302676d3 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 25 Jan 2024 17:35:31 -0700 Subject: [PATCH 084/617] version: 3.0.0-beta.4 --- pkg/common/version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/common/version.go b/pkg/common/version.go index 55939a29..1c120923 100644 --- a/pkg/common/version.go +++ b/pkg/common/version.go @@ -4,7 +4,7 @@ package common var NAME = "aws-nuke" // SUMMARY of the Version -var SUMMARY = "3.0.0-beta.3" +var SUMMARY = "3.0.0-beta.4" // BRANCH of the Version var BRANCH = "dev" From 61a8102bed775f5d9a5b510fbfefce8980f9f58b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 23 Jan 2024 20:00:54 +0000 Subject: [PATCH 085/617] fix(deps): update module github.com/google/uuid to v1.6.0 --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 01db66fe..b7667621 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ require ( github.com/ekristen/libnuke v0.0.0-20240123221700-d8899f33f580 github.com/fatih/color v1.16.0 github.com/golang/mock v1.6.0 - github.com/google/uuid v1.5.0 + github.com/google/uuid v1.6.0 github.com/gotidy/ptr v1.4.0 github.com/pkg/errors v0.9.1 github.com/sirupsen/logrus v1.9.3 diff --git a/go.sum b/go.sum index 1629f290..20da0ef1 100644 --- a/go.sum +++ b/go.sum @@ -14,6 +14,8 @@ github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gotidy/ptr v1.4.0 h1:7++suUs+HNHMnyz6/AW3SE+4EnBhupPSQTSI7QNijVc= github.com/gotidy/ptr v1.4.0/go.mod h1:MjRBG6/IETiiZGWI8LrRtISXEji+8b/jigmj2q0mEyM= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= From 34e8cdb4befea56c06d76713d78d5b563da2d246 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 25 Jan 2024 21:25:56 +0000 Subject: [PATCH 086/617] fix(deps): update module github.com/aws/aws-sdk-go to v1.50.4 --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index b7667621..5356efc4 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/ekristen/aws-nuke go 1.21.6 require ( - github.com/aws/aws-sdk-go v1.49.21 + github.com/aws/aws-sdk-go v1.50.4 github.com/ekristen/libnuke v0.0.0-20240123221700-d8899f33f580 github.com/fatih/color v1.16.0 github.com/golang/mock v1.6.0 diff --git a/go.sum b/go.sum index 20da0ef1..28deaf86 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,7 @@ github.com/aws/aws-sdk-go v1.49.21 h1:Rl8KW6HqkwzhATwvXhyr7vD4JFUMi7oXGAw9SrxxIFY= github.com/aws/aws-sdk-go v1.49.21/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go v1.50.4 h1:jJNhxunBgfjmCSjMZ3INwQ19ZN3RoGEZfgSCUYF/NZw= +github.com/aws/aws-sdk-go v1.50.4/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= From 8dcd0fc1bb75f5ff39a7cf5118ad906d07c100ac Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 16 Jan 2024 03:27:32 +0000 Subject: [PATCH 087/617] chore(deps): update docker/dockerfile docker tag to v1.6 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 04b248e1..9aa39f9a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -# syntax=docker/dockerfile:1.3-labs +# syntax=docker/dockerfile:1.6-labs FROM alpine:3.19.0 as base RUN apk add --no-cache ca-certificates RUN adduser -D aws-nuke From 1a7aa93456cf3998823a99365d6be955cce6e44f Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 29 Jan 2024 19:38:54 -0700 Subject: [PATCH 088/617] chore: prepare for semantic releases --- .releaserc.yml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .releaserc.yml diff --git a/.releaserc.yml b/.releaserc.yml new file mode 100644 index 00000000..0f6d116d --- /dev/null +++ b/.releaserc.yml @@ -0,0 +1,8 @@ +plugins: + - "@semantic-release/commit-analyzer" + - "@semantic-release/release-notes-generator" + - "@semantic-release/changelog" + +branches: + - name: main + prerelease: 'beta' From 02d442c978ca72f5999a58669f196c6b80f63f98 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 29 Jan 2024 19:40:29 -0700 Subject: [PATCH 089/617] chore: adding branch config for 2.x --- .releaserc.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.releaserc.yml b/.releaserc.yml index 0f6d116d..136e0a20 100644 --- a/.releaserc.yml +++ b/.releaserc.yml @@ -6,3 +6,6 @@ plugins: branches: - name: main prerelease: 'beta' + - name: v2 + range: 2.x + From 1c043c8fdb978385814813fd041ccd3eb144abe7 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 29 Jan 2024 19:56:18 -0700 Subject: [PATCH 090/617] fix: semantic release branch structure --- .releaserc.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.releaserc.yml b/.releaserc.yml index 136e0a20..0b2d09ec 100644 --- a/.releaserc.yml +++ b/.releaserc.yml @@ -6,6 +6,6 @@ plugins: branches: - name: main prerelease: 'beta' - - name: v2 - range: 2.x - + - name: next + - name: rc + prerelease: true From ed716399e8c76f1397408d8f1ffe7e9ed5888d15 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 30 Jan 2024 07:46:46 -0700 Subject: [PATCH 091/617] fix: semantic release config to detect channel properly Signed-off-by: Erik Kristensen --- .releaserc.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.releaserc.yml b/.releaserc.yml index 0b2d09ec..f7730f2d 100644 --- a/.releaserc.yml +++ b/.releaserc.yml @@ -6,6 +6,5 @@ plugins: branches: - name: main prerelease: 'beta' - - name: next - - name: rc - prerelease: true + channel: beta + - name: v2 \ No newline at end of file From 132c27f6e19cbf3d7db2c7580ef6093eaae13ceb Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 30 Jan 2024 07:49:04 -0700 Subject: [PATCH 092/617] chore: semantic-release Signed-off-by: Erik Kristensen --- .github/release-drafter.yml | 53 -------------------------- .github/workflows/release-drafter.yaml | 24 ------------ .github/workflows/release.yml | 19 ++++----- .github/workflows/semantic-lint.yml | 23 +++++++++++ .github/workflows/semantic.yml | 37 ++++++++++++++++++ .gitignore | 1 - .goreleaser.yml | 6 +-- 7 files changed, 69 insertions(+), 94 deletions(-) delete mode 100644 .github/release-drafter.yml delete mode 100644 .github/workflows/release-drafter.yaml create mode 100644 .github/workflows/semantic-lint.yml create mode 100644 .github/workflows/semantic.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml deleted file mode 100644 index 9db74203..00000000 --- a/.github/release-drafter.yml +++ /dev/null @@ -1,53 +0,0 @@ -name-template: "v$RESOLVED_VERSION" -tag-template: "$RESOLVED_VERSION" -version-template: "$MAJOR.$MINOR.$PATCH" -version-resolver: - major: - labels: - - "major" - minor: - labels: - - "minor" - - "enhancement" - patch: - labels: - - "auto-update" - - "patch" - - "fix" - - "bugfix" - - "bug" - - "hotfix" - default: "minor" - -categories: - - title: "🚀 Enhancements" - labels: - - "enhancement" - - "patch" - - title: "🐛 Bug Fixes" - labels: - - "fix" - - "bugfix" - - "bug" - - "hotfix" - - title: "🤖 Automatic Updates" - labels: - - "auto-update" - -exclude-labels: - - "skip-changelog" - -change-template: | -
- $TITLE @$AUTHOR (#$NUMBER) - $BODY -
-template: | - $CHANGES -replacers: - # Remove irrelevant information from Renovate bot - - search: '/---\s+^#.*Renovate configuration(?:.|\n)*?This PR has been generated .*/gm' - replace: "" - # Remove Renovate bot banner image - - search: '/\[!\[[^\]]*Renovate\][^\]]*\](\([^)]*\))?\s*\n+/gm' - replace: "" \ No newline at end of file diff --git a/.github/workflows/release-drafter.yaml b/.github/workflows/release-drafter.yaml deleted file mode 100644 index 98232a84..00000000 --- a/.github/workflows/release-drafter.yaml +++ /dev/null @@ -1,24 +0,0 @@ -name: release-drafter - -on: - push: - branches: - - main - paths-ignore: - - .github/** - - docs/** - -permissions: - contents: write - pull-requests: read - -jobs: - publish: - runs-on: ubuntu-latest - steps: - - uses: release-drafter/release-drafter@v5 - with: - publish: false - prerelease: true - env: - GITHUB_TOKEN: ${{ secrets.RELEASES_GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8c705ba0..48442311 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,23 +1,20 @@ name: goreleaser on: - #pull_request: - # branches: - # - main + workflow_dispatch: push: - branches: - - main tags: - - "*.*.*" - - "v*.*.*" - - "v*.*.*-*" + - "*" + release: + types: + - published permissions: contents: write packages: write jobs: - goreleaser: + release: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -26,7 +23,7 @@ jobs: fetch-depth: 0 ref: ${{ github.event.pull_request.head.ref }} - uses: actions/checkout@v4 - if: github.event_name == 'push' + if: github.event_name != 'pull_request' with: fetch-depth: 0 - name: setup-go @@ -71,7 +68,7 @@ jobs: with: distribution: goreleaser version: latest - args: release --rm-dist ${{ env.GORELEASER_ARGS }} + args: release --clean ${{ env.GORELEASER_ARGS }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }} diff --git a/.github/workflows/semantic-lint.yml b/.github/workflows/semantic-lint.yml new file mode 100644 index 00000000..55df5d9d --- /dev/null +++ b/.github/workflows/semantic-lint.yml @@ -0,0 +1,23 @@ +name: semantic-lint + +on: + pull_request: + branches: + - main + pull_request_target: + types: + - opened + - edited + - synchronize + +permissions: + contents: read + pull-requests: read + +jobs: + semantic-lint: + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/semantic.yml b/.github/workflows/semantic.yml new file mode 100644 index 00000000..e5f04122 --- /dev/null +++ b/.github/workflows/semantic.yml @@ -0,0 +1,37 @@ +name: semantic +on: + push: + branches: + - main + - next + +permissions: + contents: read # for checkout + +jobs: + release: + name: release + runs-on: ubuntu-latest + permissions: + contents: write # to be able to publish a GitHub release + issues: write # to be able to comment on released issues + pull-requests: write # to be able to comment on released pull requests + id-token: write # to enable use of OIDC for npm provenance + steps: + - name: checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: setup node.js + uses: actions/setup-node@v4 + with: + node-version: "lts/*" + - name: release + env: + GITHUB_TOKEN: ${{ secrets.SEMANTIC_GITHUB_TOKEN }} + run: | + npx \ + -p @semantic-release/commit-analyzer \ + -p @semantic-release/release-notes-generator \ + -p @semantic-release/github \ + semantic-release diff --git a/.gitignore b/.gitignore index d9f9df1e..18fe6322 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,3 @@ cosign.key /config*.yaml /*-config.yaml /config.*.yaml - diff --git a/.goreleaser.yml b/.goreleaser.yml index 78480ee7..7e641134 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -108,8 +108,4 @@ checksum: snapshot: name_template: '{{ trimprefix .Summary "v" }}' changelog: - sort: asc - filters: - exclude: - - "^docs:" - - "^test:" + skip: true From 3bd574813824c37b70f354fbf40e05484c6fc898 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 30 Jan 2024 07:58:03 -0700 Subject: [PATCH 093/617] fix: semantic release config plugins --- .releaserc.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.releaserc.yml b/.releaserc.yml index f7730f2d..353bae08 100644 --- a/.releaserc.yml +++ b/.releaserc.yml @@ -1,7 +1,7 @@ plugins: - - "@semantic-release/commit-analyzer" - - "@semantic-release/release-notes-generator" - - "@semantic-release/changelog" + - @semantic-release/commit-analyzer + - @semantic-release/release-notes-generator + - @semantic-release/github branches: - name: main From 3ceebb464166b7e7bb2e7a720a7d975ff9b5b920 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 30 Jan 2024 07:59:35 -0700 Subject: [PATCH 094/617] fix: semantic release config plugins --- .releaserc.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.releaserc.yml b/.releaserc.yml index 353bae08..430c8b9d 100644 --- a/.releaserc.yml +++ b/.releaserc.yml @@ -1,7 +1,7 @@ plugins: - - @semantic-release/commit-analyzer - - @semantic-release/release-notes-generator - - @semantic-release/github + - "@semantic-release/commit-analyzer" + - "@semantic-release/release-notes-generator" + - "@semantic-release/github" branches: - name: main From 755bd62be79822c79e29c1d13ca97b558e692388 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 26 Jan 2024 16:10:34 -0700 Subject: [PATCH 095/617] feat: allow bypass of aws alias checks --- ...i-feature-flags.md => cli-experimental.md} | 8 +- docs/cli-options.md | 11 +++ docs/cli-usage.md | 29 ++++--- docs/features/bypass-alias-check.md | 28 ++++++ docs/standards.md | 7 ++ mkdocs.yml | 6 +- pkg/commands/nuke/command.go | 43 +++++---- pkg/config/config.go | 41 +++++---- pkg/config/config_test.go | 87 +++++++++++++------ pkg/config/testdata/bypass-alias.yaml | 20 +++++ .../testdata/deprecated-feature-flags.yaml | 5 +- pkg/config/testdata/incomplete.yaml | 24 +++++ pkg/config/testdata/invalid.yaml | 4 + 13 files changed, 229 insertions(+), 84 deletions(-) rename docs/{cli-feature-flags.md => cli-experimental.md} (79%) create mode 100644 docs/cli-options.md create mode 100644 docs/features/bypass-alias-check.md create mode 100644 docs/standards.md create mode 100644 pkg/config/testdata/bypass-alias.yaml create mode 100644 pkg/config/testdata/incomplete.yaml create mode 100644 pkg/config/testdata/invalid.yaml diff --git a/docs/cli-feature-flags.md b/docs/cli-experimental.md similarity index 79% rename from docs/cli-feature-flags.md rename to docs/cli-experimental.md index 7165771a..bc89bb78 100644 --- a/docs/cli-feature-flags.md +++ b/docs/cli-experimental.md @@ -1,10 +1,10 @@ -# Feature Flags +# Experimental Features ## Overview -These are the feature flags that are currently available in aws-nuke. They are all disabled by default. These are -switches that changes the actual behavior of the tool itself. Changing the behavior of a resource is done via resource -settings. +These are the experimental features hidden behind feature flags that are currently available in aws-nuke. They are all +disabled by default. These are switches that changes the actual behavior of the tool itself. Changing the behavior of +a resource is done via resource settings. !!! note The original tool had configuration options called `feature-flags` which were used to enable/disable certain diff --git a/docs/cli-options.md b/docs/cli-options.md new file mode 100644 index 00000000..673ce3cf --- /dev/null +++ b/docs/cli-options.md @@ -0,0 +1,11 @@ +# Options + +This is not a comprehensive list of options, but rather a list of features that I think are worth highlighting. + +## Skip Alias Checks + +`--no-alias-check` will skip the check for the AWS account alias. This is useful if you are running in an account that does not have an alias. + +## Skip Prompts + +`--no-prompt` will skip the prompt to verify you want to run the command. This is useful if you are running in a CI/CD environment. \ No newline at end of file diff --git a/docs/cli-usage.md b/docs/cli-usage.md index e2e87bfa..68fbdfda 100644 --- a/docs/cli-usage.md +++ b/docs/cli-usage.md @@ -35,18 +35,19 @@ USAGE: aws-nuke run [command options] [arguments...] OPTIONS: - --config value path to config file (default: "config.yaml") - --force disable prompting for verification to run (default: false) - --force-sleep value seconds to sleep (default: 10) - --quiet hide filtered messages (default: false) - --no-dry-run actually run the removal of the resources after discovery (default: false) - --only-resource value, --target value, --include value, --include-resource value [ --only-resource value, --target value, --include value, --include-resource value ] only run against these resource types - --exclude-resource value, --exclude value [ --exclude-resource value, --exclude value ] exclude these resource types - --cloud-control value [ --cloud-control value ] use these resource types with the Cloud Control API instead of the default - --feature-flag value [ --feature-flag value ] enable experimental behaviors that may not be fully tested or supported - --log-level value, -l value Log Level (default: "info") [$LOGLEVEL] - --log-caller log the caller (aka line number and file) (default: false) - --log-disable-color disable log coloring (default: false) - --log-full-timestamp force log output to always show full timestamp (default: false) - --help, -h show help + --config value path to config file (default: "config.yaml") + --include value, --target value [ --include value, --target value ] only run against these resource types + --exclude value [ --exclude value ] exclude these resource types + --cloud-control value [ --cloud-control value ] use these resource types with the Cloud Control API instead of the default + --quiet hide filtered messages (default: false) + --no-dry-run actually run the removal of the resources after discovery (default: false) + --no-alias-check disable aws account alias check - requires entry in config as well (default: false) + --no-prompt, --force disable prompting for verification to run (default: false) + --prompt-delay value, --force-sleep value seconds to delay after prompt before running (minimum: 3 seconds) (default: 10) + --feature-flag value [ --feature-flag value ] enable experimental behaviors that may not be fully tested or supported + --log-level value, -l value Log Level (default: "info") [$LOGLEVEL] + --log-caller log the caller (aka line number and file) (default: false) + --log-disable-color disable log coloring (default: false) + --log-full-timestamp force log output to always show full timestamp (default: false) + --help, -h show help ``` \ No newline at end of file diff --git a/docs/features/bypass-alias-check.md b/docs/features/bypass-alias-check.md new file mode 100644 index 00000000..a0bfe0fe --- /dev/null +++ b/docs/features/bypass-alias-check.md @@ -0,0 +1,28 @@ +# Bypass AWS Alias Check + +While we take security and precautions serious with a tool that can have devastating effects, we understand that some +users may want to skip the alias check. This is not recommended, but we understand that some users may want to do this. + +This feature allows you to skip the alias check but requires additional configuration to enable. + +## How it Works + +There are two components to this feature: + +1. The `--no-alias-check` flag (also available as `NO_ALIAS_CHECK` environment variable) +2. The `bypass-alias-check-accounts` configuration in the `config.yml` file + +The account ID must be in the `bypass-alias-check-accounts` configuration for the `--no-alias-check` flag to work. + +## Example Configuration + +```yaml +bypass-alias-check-accounts: + - 123456789012 +``` + +## Example Usage + +```console +aws-nuke run --config=example-config.yaml --no-alias-check +``` \ No newline at end of file diff --git a/docs/standards.md b/docs/standards.md new file mode 100644 index 00000000..cb985eba --- /dev/null +++ b/docs/standards.md @@ -0,0 +1,7 @@ +# Standards + +## CLI Standards + +- Use `--no-` prefix for boolean flags + + diff --git a/mkdocs.yml b/mkdocs.yml index faec5582..b0b81889 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -70,9 +70,12 @@ nav: - Install: installation.md - Authentication: auth.md - Quick Start: quick-start.md + - Features: + - Bypass Alias Check: features/bypass-alias-check.md - CLI: - Usage: cli-usage.md - - Feature Flags: cli-feature-flags.md + - Options: cli-options.md + - Experimental: cli-experimental.md - Config: - Overview: config.md - Filtering: config-filtering.md @@ -81,6 +84,7 @@ nav: - Migration Guide: config-migration.md - Development: - Overview: development.md + - Stanards: standards.md - Resources: resources.md - Releases: releases.md - Testing: testing.md diff --git a/pkg/commands/nuke/command.go b/pkg/commands/nuke/command.go index a6bc4492..e1dc3f3e 100644 --- a/pkg/commands/nuke/command.go +++ b/pkg/commands/nuke/command.go @@ -105,7 +105,7 @@ func execute(c *cli.Context) error { // Register our custom validate handler that validates the account and AWS nuke unique alias checks n.RegisterValidateHandler(func() error { - return parsedConfig.ValidateAccount(account.ID(), account.Aliases()) + return parsedConfig.ValidateAccount(account.ID(), account.Aliases(), c.Bool("no-alias-check")) }) // Register our custom prompt handler that shows the account information @@ -172,14 +172,18 @@ func init() { Usage: "path to config file", Value: "config.yaml", }, - &cli.BoolFlag{ - Name: "force", - Usage: "disable prompting for verification to run", + &cli.StringSliceFlag{ + Name: "include", + Usage: "only run against these resource types", + Aliases: []string{"target"}, }, - &cli.IntFlag{ - Name: "force-sleep", - Usage: "seconds to sleep", - Value: 10, + &cli.StringSliceFlag{ + Name: "exclude", + Usage: "exclude these resource types", + }, + &cli.StringSliceFlag{ + Name: "cloud-control", + Usage: "use these resource types with the Cloud Control API instead of the default", }, &cli.BoolFlag{ Name: "quiet", @@ -189,19 +193,20 @@ func init() { Name: "no-dry-run", Usage: "actually run the removal of the resources after discovery", }, - &cli.StringSliceFlag{ - Name: "only-resource", - Usage: "only run against these resource types", - Aliases: []string{"target", "include", "include-resource"}, + &cli.BoolFlag{ + Name: "no-alias-check", + Usage: "disable aws account alias check - requires entry in config as well", }, - &cli.StringSliceFlag{ - Name: "exclude-resource", - Usage: "exclude these resource types", - Aliases: []string{"exclude"}, + &cli.BoolFlag{ + Name: "no-prompt", + Usage: "disable prompting for verification to run", + Aliases: []string{"force"}, }, - &cli.StringSliceFlag{ - Name: "cloud-control", - Usage: "use these resource types with the Cloud Control API instead of the default", + &cli.IntFlag{ + Name: "prompt-delay", + Usage: "seconds to delay after prompt before running (minimum: 3 seconds)", + Value: 10, + Aliases: []string{"force-sleep"}, }, &cli.StringSliceFlag{ Name: "feature-flag", diff --git a/pkg/config/config.go b/pkg/config/config.go index dd93c2d3..e66beba2 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -26,9 +26,8 @@ func New(opts config.Options) (*Config, error) { } // Step 3 - Load the same config file against the extended config - if err := c.Load(opts.Path); err != nil { - return nil, err - } + // Intentionally ignored, this will never error because we already validated the file exists + _ = c.Load(opts.Path) // Step 4 - Set the libnuke config on the extended config c.Config = cfg @@ -44,6 +43,11 @@ type Config struct { // Config is the underlying libnuke configuration. *config.Config `yaml:",inline"` + // BypassAliasCheckAccounts is a list of account IDs that will be allowed to bypass the alias check. + // This is useful for accounts that don't have an alias for a number of reasons, it must be used with a cli + // flag --no-alias-check to be effective. + BypassAliasCheckAccounts []string `yaml:"bypass-alias-check-accounts"` + // FeatureFlags is a collection of feature flags that can be used to enable or disable certain behaviors on // resources. This is left over from the AWS Nuke tool and is deprecated. It was left to make the transition to the // library and ekristen/aws-nuke@v3 easier for existing users. @@ -70,24 +74,32 @@ func (c *Config) Load(path string) error { return nil } +// InBypassAliasCheckAccounts returns true if the specified account ID is in the bypass alias check accounts list. +func (c *Config) InBypassAliasCheckAccounts(accountID string) bool { + for _, id := range c.BypassAliasCheckAccounts { + if id == accountID { + return true + } + } + + return false +} + // ValidateAccount validates the account ID and aliases for the specified account. This will return an error if the // account ID is invalid, the account ID is blocklisted, the account doesn't have an alias, the account alias contains // the substring 'prod', or the account ID isn't listed in the config. -func (c *Config) ValidateAccount(accountID string, aliases []string) error { +func (c *Config) ValidateAccount(accountID string, aliases []string, skipAliasChecks bool) error { // Call the libnuke config validation first if err := c.Config.ValidateAccount(accountID); err != nil { return err } - if !c.HasBlocklist() { - return fmt.Errorf("The config file contains an empty blocklist. " + - "For safety reasons you need to specify at least one account ID. " + - "This should be your production account.") - } + if skipAliasChecks { + if c.InBypassAliasCheckAccounts(accountID) { + return nil + } - if c.InBlocklist(accountID) { - return fmt.Errorf("You are trying to nuke the account with the ID %s, "+ - "but it is blocklisted. Aborting.", accountID) + c.Log.Warnf("--no-alias-check is set, but the account ID '%s' isn't in the bypass list.", accountID) } if len(aliases) == 0 { @@ -103,11 +115,6 @@ func (c *Config) ValidateAccount(accountID string, aliases []string) error { } } - if _, ok := c.Accounts[accountID]; !ok { - return fmt.Errorf("Your account ID '%s' isn't listed in the config. "+ - "Aborting.", accountID) - } - return nil } diff --git a/pkg/config/config_test.go b/pkg/config/config_test.go index e288e86b..d74bf968 100644 --- a/pkg/config/config_test.go +++ b/pkg/config/config_test.go @@ -16,7 +16,31 @@ import ( "github.com/ekristen/libnuke/pkg/types" ) -func TestLoadExampleConfig(t *testing.T) { +// TestConfig_NewMissingFile tests the extended config loads functionality when the file is missing. +func TestConfig_NewMissingFile(t *testing.T) { + _, err := New(libconfig.Options{ + Path: "testdata/missing.yaml", + }) + assert.Error(t, err) +} + +// TestConfig_MissingFile tests the extended config loads functionality when the file is missing. +// We do not use the New here because that would test the libnuke config loading functionality. +func TestConfig_MissingFile(t *testing.T) { + cfg := Config{} + err := cfg.Load("testdata/missing.yaml") + assert.Error(t, err) +} + +// TestConfig_InvalidFile tests the extended config loads functionality when the file is invalid. +// We do not use the New here because that would test the libnuke config loading functionality. +func TestConfig_InvalidFile(t *testing.T) { + cfg := Config{} + err := cfg.Load("testdata/invalid.yaml") + assert.Error(t, err) +} + +func TestConfig_LoadExample(t *testing.T) { logger := logrus.New() logger.SetOutput(io.Discard) entry := logrus.WithField("test", true) @@ -91,7 +115,7 @@ func TestLoadExampleConfig(t *testing.T) { assert.Equal(t, expect, *config) } -func TestResolveDeprecations(t *testing.T) { +func TestConfig_ResolveDeprecations(t *testing.T) { logger := logrus.New() logger.SetOutput(io.Discard) entry := logrus.WithField("test", true) @@ -190,42 +214,43 @@ func TestResolveDeprecations(t *testing.T) { } } -func TestConfigValidation(t *testing.T) { - config, err := New(libconfig.Options{ - Path: "testdata/example.yaml", - }) - if err != nil { - t.Fatal(err) - } - +func TestConfig_Validation(t *testing.T) { cases := []struct { - ID string - Aliases []string - ShouldFail bool + ID string + Aliases []string + ShouldFail bool + SkipAliasCheck bool + Config string }{ - {ID: "555133742", Aliases: []string{"staging"}, ShouldFail: false}, - {ID: "1234567890", Aliases: []string{"staging"}, ShouldFail: true}, - {ID: "1111111111", Aliases: []string{"staging"}, ShouldFail: true}, - {ID: "555133742", Aliases: []string{"production"}, ShouldFail: true}, - {ID: "555133742", Aliases: []string{}, ShouldFail: true}, - {ID: "555133742", Aliases: []string{"staging", "prod"}, ShouldFail: true}, + {ID: "555133742", Aliases: []string{"staging"}, ShouldFail: false, Config: "testdata/example.yaml"}, + {ID: "1234567890", Aliases: []string{"staging"}, ShouldFail: true, Config: "testdata/example.yaml"}, + {ID: "1111111111", Aliases: []string{"staging"}, ShouldFail: true, Config: "testdata/example.yaml"}, + {ID: "555133742", Aliases: []string{"production"}, ShouldFail: true, Config: "testdata/example.yaml"}, + {ID: "555133742", Aliases: []string{}, ShouldFail: true, Config: "testdata/example.yaml"}, + {ID: "555133742", Aliases: []string{"staging", "prod"}, ShouldFail: true, Config: "testdata/example.yaml"}, + {ID: "555133742", Aliases: []string{}, ShouldFail: true, SkipAliasCheck: true, Config: "testdata/example.yaml"}, + {ID: "123654654", Aliases: []string{}, ShouldFail: false, SkipAliasCheck: true, Config: "testdata/bypass-alias.yaml"}, } for i, tc := range cases { name := fmt.Sprintf("%d_%s/%v/%t", i, tc.ID, tc.Aliases, tc.ShouldFail) t.Run(name, func(t *testing.T) { - err := config.ValidateAccount(tc.ID, tc.Aliases) - if tc.ShouldFail && err == nil { - t.Fatal("Expected an error but didn't get one.") - } - if !tc.ShouldFail && err != nil { - t.Fatalf("Didn't excpect an error, but got one: %v", err) + config, err := New(libconfig.Options{ + Path: tc.Config, + }) + assert.NoError(t, err) + + vErr := config.ValidateAccount(tc.ID, tc.Aliases, tc.SkipAliasCheck) + if tc.ShouldFail { + assert.Error(t, vErr) + } else { + assert.NoError(t, vErr) } }) } } -func TestDeprecatedConfigKeys(t *testing.T) { +func TestConfig_DeprecatedKeys(t *testing.T) { config, err := New(libconfig.Options{ Path: "testdata/deprecated-keys-config.yaml", }) @@ -238,7 +263,7 @@ func TestDeprecatedConfigKeys(t *testing.T) { } } -func TestFilterMerge(t *testing.T) { +func TestConfig_FilterMerge(t *testing.T) { config, err := New(libconfig.Options{ Path: "testdata/example.yaml", }) @@ -278,7 +303,7 @@ func TestFilterMerge(t *testing.T) { } } -func TestGetCustomRegion(t *testing.T) { +func TestConfig_GetCustomRegion(t *testing.T) { config, err := New(libconfig.Options{ Path: "testdata/example.yaml", }) @@ -294,6 +319,12 @@ func TestGetCustomRegion(t *testing.T) { t.Fatal("Expected to euWest1 without a set of custom endpoints") } + assert.Equal(t, "https://stratoscale.cloud.internal/api/v2/aws/ec2", + config.CustomEndpoints.GetURL("stratoscale", "ec2")) + + assert.Equal(t, "", config.CustomEndpoints.GetURL("invalid", "rds")) + assert.Equal(t, "", config.CustomEndpoints.GetURL("stratoscale", "rds")) + t.Run("TestGetService", func(t *testing.T) { ec2Service := stratoscale.Services.GetService("ec2") if ec2Service == nil { diff --git a/pkg/config/testdata/bypass-alias.yaml b/pkg/config/testdata/bypass-alias.yaml new file mode 100644 index 00000000..24cf73a8 --- /dev/null +++ b/pkg/config/testdata/bypass-alias.yaml @@ -0,0 +1,20 @@ +--- +regions: + - "us-east-1" + +blocklist: + - 1234567890 + +bypass-alias-check-accounts: + - 123654654 + +accounts: + 123654654: + resource-types: + targets: + - S3Bucket + filters: + IAMRole: + - "uber.admin" + IAMRolePolicyAttachment: + - "uber.admin -> AdministratorAccess" diff --git a/pkg/config/testdata/deprecated-feature-flags.yaml b/pkg/config/testdata/deprecated-feature-flags.yaml index a8cf29ec..9977416c 100644 --- a/pkg/config/testdata/deprecated-feature-flags.yaml +++ b/pkg/config/testdata/deprecated-feature-flags.yaml @@ -1,6 +1,9 @@ feature-flags: disable-ec2-instance-stop-protection: true + force-delete-lightsail-addons: true disable-deletion-protection: RDSInstance: true EC2Instance: true - CloudformationStack: true \ No newline at end of file + CloudformationStack: true + ELBv2: true + QLDBLedger: true \ No newline at end of file diff --git a/pkg/config/testdata/incomplete.yaml b/pkg/config/testdata/incomplete.yaml new file mode 100644 index 00000000..a0175d7a --- /dev/null +++ b/pkg/config/testdata/incomplete.yaml @@ -0,0 +1,24 @@ +--- +regions: + - "eu-west-1" + - stratoscale + +accounts: + 555133742: + presets: + - "terraform" + resource-types: + targets: + - S3Bucket + filters: + IAMRole: + - "uber.admin" + IAMRolePolicyAttachment: + - "uber.admin -> AdministratorAccess" + +presets: + terraform: + filters: + S3Bucket: + - type: glob + value: "my-statebucket-*" \ No newline at end of file diff --git a/pkg/config/testdata/invalid.yaml b/pkg/config/testdata/invalid.yaml new file mode 100644 index 00000000..ee086ced --- /dev/null +++ b/pkg/config/testdata/invalid.yaml @@ -0,0 +1,4 @@ +this is +not a +valid +yaml file \ No newline at end of file From 245ade304d6d1cb3c91e470432a546153a104b01 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 26 Jan 2024 16:28:49 -0700 Subject: [PATCH 096/617] feat(aws-auth): finish parity with upstream --- pkg/awsutil/session.go | 7 ++++- pkg/commands/nuke/command.go | 59 ++++++++++++++++++++++++++++-------- 2 files changed, 53 insertions(+), 13 deletions(-) diff --git a/pkg/awsutil/session.go b/pkg/awsutil/session.go index b7c87a95..9505c1da 100644 --- a/pkg/awsutil/session.go +++ b/pkg/awsutil/session.go @@ -40,6 +40,8 @@ type Credentials struct { SecretAccessKey string SessionToken string AssumeRoleArn string + ExternalId string + RoleSessionName string Credentials *credentials.Credentials @@ -116,7 +118,10 @@ func (c *Credentials) rootSession() (*session.Session, error) { // if given a role to assume, overwrite the session credentials with assume role credentials if c.AssumeRoleArn != "" { - sess.Config.Credentials = stscreds.NewCredentials(sess, c.AssumeRoleArn) + sess.Config.Credentials = stscreds.NewCredentials(sess, c.AssumeRoleArn, func(p *stscreds.AssumeRoleProvider) { + p.RoleSessionName = c.RoleSessionName + p.ExternalID = aws.String(c.ExternalId) + }) } c.session = sess diff --git a/pkg/commands/nuke/command.go b/pkg/commands/nuke/command.go index a6bc4492..dfb2b108 100644 --- a/pkg/commands/nuke/command.go +++ b/pkg/commands/nuke/command.go @@ -3,7 +3,6 @@ package nuke import ( "context" "fmt" - "os" "slices" "github.com/sirupsen/logrus" @@ -23,22 +22,26 @@ import ( "github.com/ekristen/aws-nuke/pkg/nuke" ) +func configureCreds(c *cli.Context) (creds awsutil.Credentials) { + creds.Profile = c.String("profile") + creds.AccessKeyID = c.String("access-key-id") + creds.SecretAccessKey = c.String("secret-access-key") + creds.SessionToken = c.String("session-token") + creds.AssumeRoleArn = c.String("assume-role-arn") + creds.RoleSessionName = c.String("assume-role-session-name") + creds.ExternalId = c.String("assume-role-external-id") + + return creds +} + func execute(c *cli.Context) error { ctx, cancel := context.WithCancel(c.Context) defer cancel() - var ( - err error - creds awsutil.Credentials - defaultRegion string - ) + defaultRegion := c.String("default-region") + creds := configureCreds(c) - if !creds.HasKeys() && !creds.HasProfile() && defaultRegion != "" { - creds.AccessKeyID = os.Getenv("AWS_ACCESS_KEY_ID") - creds.SecretAccessKey = os.Getenv("AWS_SECRET_ACCESS_KEY") - } - err = creds.Validate() - if err != nil { + if err := creds.Validate(); err != nil { return err } @@ -207,6 +210,38 @@ func init() { Name: "feature-flag", Usage: "enable experimental behaviors that may not be fully tested or supported", }, + &cli.StringFlag{ + Name: "default-region", + EnvVars: []string{"AWS_DEFAULT_REGION"}, + }, + &cli.StringFlag{ + Name: "access-key-id", + EnvVars: []string{"AWS_ACCESS_KEY_ID"}, + }, + &cli.StringFlag{ + Name: "secret-access-key", + EnvVars: []string{"AWS_SECRET_ACCESS_KEY"}, + }, + &cli.StringFlag{ + Name: "session-token", + EnvVars: []string{"AWS_SESSION_TOKEN"}, + }, + &cli.StringFlag{ + Name: "profile", + EnvVars: []string{"AWS_PROFILE"}, + }, + &cli.StringFlag{ + Name: "assume-role-arn", + EnvVars: []string{"AWS_ASSUME_ROLE_ARN"}, + }, + &cli.StringFlag{ + Name: "assume-role-session-name", + EnvVars: []string{"AWS_ASSUME_ROLE_SESSION_NAME"}, + }, + &cli.StringFlag{ + Name: "assume-role-external-id", + EnvVars: []string{"AWS_ASSUME_ROLE_EXTERNAL_ID"}, + }, } cmd := &cli.Command{ From c220e686c739e41fae3836499e046c973e3e417c Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 30 Jan 2024 16:39:16 -0700 Subject: [PATCH 097/617] chore(renovate): change how github workflow deps are handled [release skip] --- .github/renovate.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/renovate.json b/.github/renovate.json index 110f887d..08dbcf84 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -19,6 +19,18 @@ ], "groupName": "golang", "groupSlug": "golang" + }, + { + "matchFileNames": [ + ".github/workflows/*.yml" + ], + "matchDepTypes": [ + "action" + ], + "matchCurrentVersion": "!/^0/", + "automerge": true, + "labels": ["bot"], + "commitMessageSuffix": " [release skip]" } ], "regexManagers": [ From f7249cd831c3fb82ed391d29cff558db47731066 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 30 Jan 2024 16:43:26 -0700 Subject: [PATCH 098/617] chore(renovate): use squash with renovate automerge [release skip] --- .github/renovate.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/renovate.json b/.github/renovate.json index 08dbcf84..63a72137 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -11,7 +11,8 @@ "pin", "digest" ], - "automerge": true + "automerge": true, + "automergeStrategy": "squash" }, { "matchPackagePatterns": [ @@ -29,6 +30,7 @@ ], "matchCurrentVersion": "!/^0/", "automerge": true, + "automergeStrategy": "squash", "labels": ["bot"], "commitMessageSuffix": " [release skip]" } From 2f5b5804267621768d0fc34ed8a757a577298c9d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 30 Jan 2024 23:43:43 +0000 Subject: [PATCH 099/617] chore(deps): update actions/checkout action to v4 [release skip] (#58) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/semantic.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/semantic.yml b/.github/workflows/semantic.yml index e5f04122..7949f3f1 100644 --- a/.github/workflows/semantic.yml +++ b/.github/workflows/semantic.yml @@ -19,7 +19,7 @@ jobs: id-token: write # to enable use of OIDC for npm provenance steps: - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: setup node.js From 55688395f0d81af771dec27ddd36972a39fbbcf6 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 30 Jan 2024 17:08:55 -0700 Subject: [PATCH 100/617] docs: add cli examples, including for --force usage --- docs/cli-examples.md | 28 ++++++++++++++++++++++++++++ mkdocs.yml | 4 +++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 docs/cli-examples.md diff --git a/docs/cli-examples.md b/docs/cli-examples.md new file mode 100644 index 00000000..88584c57 --- /dev/null +++ b/docs/cli-examples.md @@ -0,0 +1,28 @@ +# Examples + +## Basic usage + +```bash +aws-nuke --config config.yml +``` + +## Using a profile + +!!! note + This assumes you have configured your AWS credentials file with a profile named `my-profile`. + +```bash +aws-nuke --config config.yml --profile my-profile +``` + +## Using the force flags + +!!! danger + Running without prompts can be dangerous. Make sure you understand what you are doing before using these flags. + +The following is an example of how you automate the command to run without any prompts of the user. This is useful +for running in a CI/CD pipeline. + +```bash +aws-nuke --config config.yml --force --force-delay 5 +``` \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index b0b81889..3fbcef31 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -76,6 +76,8 @@ nav: - Usage: cli-usage.md - Options: cli-options.md - Experimental: cli-experimental.md + - Feature Flags: cli-feature-flags.md + - Examples: cli-examples.md - Config: - Overview: config.md - Filtering: config-filtering.md @@ -84,7 +86,7 @@ nav: - Migration Guide: config-migration.md - Development: - Overview: development.md - - Stanards: standards.md + - Standards: standards.md - Resources: resources.md - Releases: releases.md - Testing: testing.md From c6f370b82798fd6e665f9943f0e42fb7a1b24e70 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sat, 3 Feb 2024 19:23:48 -0700 Subject: [PATCH 101/617] feat: apple signing and notary using quill (#64) * chore: quill, sign darwin binaries * feat: support apple binary signing, a few minor chores --- .../workflows/{release.yml => goreleaser.yml} | 34 ++++++++++++----- .github/workflows/semantic-lint.yml | 3 -- .gitignore | 2 + .goreleaser.yml | 37 +++++++++++-------- 4 files changed, 48 insertions(+), 28 deletions(-) rename .github/workflows/{release.yml => goreleaser.yml} (66%) diff --git a/.github/workflows/release.yml b/.github/workflows/goreleaser.yml similarity index 66% rename from .github/workflows/release.yml rename to .github/workflows/goreleaser.yml index 48442311..a26886c6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/goreleaser.yml @@ -3,6 +3,9 @@ name: goreleaser on: workflow_dispatch: push: + branches: + - main + - next tags: - "*" release: @@ -12,6 +15,7 @@ on: permissions: contents: write packages: write + id-token: write jobs: release: @@ -43,14 +47,15 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: install cosign - uses: sigstore/cosign-installer@main - with: - cosign-release: "v2.0.1" - - name: setup cosign - run: | - echo "${COSIGN_KEY}" > "$GITHUB_WORKSPACE/cosign.key" + uses: sigstore/cosign-installer@v3 + - name: install quill env: - COSIGN_KEY: ${{ secrets.COSIGN_KEY }} + QUILL_VERSION: 0.4.1 + run: | + curl -Lo /tmp/quill_${QUILL_VERSION}_linux_amd64.tar.gz https://github.com/anchore/quill/releases/download/v${QUILL_VERSION}/quill_${QUILL_VERSION}_linux_amd64.tar.gz + tar -xvf /tmp/quill_${QUILL_VERSION}_linux_amd64.tar.gz -C /tmp + mv /tmp/quill /usr/local/bin/quill + chmod +x /usr/local/bin/quill - name: set goreleaser default args if: startsWith(github.ref, 'refs/tags/') == true run: | @@ -63,6 +68,18 @@ jobs: if: startsWith(github.ref, 'refs/heads/renovate') == true run: | echo "GORELEASER_ARGS=--snapshot --skip-publish" >> $GITHUB_ENV + - name: setup quill + uses: 1password/load-secrets-action@v1 + if: startsWith(github.ref, 'refs/tags/') == true && github.actor == github.repository_owner + with: + export-env: true + env: + OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} + QUILL_NOTARY_KEY: ${{ secrets.OP_QUILL_NOTARY_KEY }} + QUILL_NOTARY_KEY_ID: ${{ secrets.OP_QUILL_NOTARY_KEY_ID }} + QUILL_NOTARY_ISSUER: ${{ secrets.OP_QUILL_NOTARY_ISSUER }} + QUILL_SIGN_PASSWORD: ${{ secrets.OP_QUILL_SIGN_PASSWORD }} + QUILL_SIGN_P12: ${{ secrets.OP_QUILL_SIGN_P12 }} - name: run goreleaser uses: goreleaser/goreleaser-action@v5 with: @@ -71,11 +88,10 @@ jobs: args: release --clean ${{ env.GORELEASER_ARGS }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }} - name: push docker images (for branches) if: github.ref == 'refs/heads/main' || github.event.pull_request.base.ref == 'main' run: | - docker images --format "{{.Repository}}:{{.Tag}}" | grep "ekristen/aws-nuke" | xargs -L1 docker push + docker images --format "{{.Repository}}:{{.Tag}}" | grep "${{ github.repository }}" | xargs -L1 docker push - name: upload artifacts if: github.event.pull_request.base.ref == 'main' uses: actions/upload-artifact@v4 diff --git a/.github/workflows/semantic-lint.yml b/.github/workflows/semantic-lint.yml index 55df5d9d..e3d85576 100644 --- a/.github/workflows/semantic-lint.yml +++ b/.github/workflows/semantic-lint.yml @@ -1,9 +1,6 @@ name: semantic-lint on: - pull_request: - branches: - - main pull_request_target: types: - opened diff --git a/.gitignore b/.gitignore index 18fe6322..441e714e 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,5 @@ cosign.key /config*.yaml /*-config.yaml /config.*.yaml +*.p12 +*.p8 \ No newline at end of file diff --git a/.goreleaser.yml b/.goreleaser.yml index 7e641134..536a99b4 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -3,16 +3,14 @@ release: github: owner: ekristen name: aws-nuke - extra_files: - - glob: ./cosign.pub builds: - id: default env: - CGO_ENABLED=0 goos: - - darwin - linux - windows + - darwin goarch: - amd64 - arm64 @@ -29,9 +27,11 @@ builds: ldflags: - -s - -w - - -X '{{ .ModulePath }}/cmd.BuildVersion={{ .Version }}' - - -X '{{ .ModulePath }}/cmd.BuildDate={{ .Date }}' - - -X '{{ .ModulePath }}/cmd.BuildHash={{ .Commit }}' + - -extldflags="-static" + - -X '{{ .ModulePath }}/pkg/common.SUMMARY=v{{ .Version }}' + - -X '{{ .ModulePath }}/pkg/common.BRANCH={{ .Branch }}' + - -X '{{ .ModulePath }}/pkg/common.VERSION={{ .Tag }}' + - -X '{{ .ModulePath }}/pkg/common.COMMIT={{ .Commit }}' archives: - id: default builds: @@ -63,14 +63,14 @@ dockers: image_templates: - ghcr.io/ekristen/aws-nuke:v{{ .Version }}-arm64 build_flag_templates: + - "--platform=linux/arm64" - "--target=goreleaser" - "--pull" - "--label=org.opencontainers.image.created={{.Date}}" - "--label=org.opencontainers.image.title={{.ProjectName}}" - "--label=org.opencontainers.image.revision={{.FullCommit}}" - "--label=org.opencontainers.image.version={{.Version}}" - - "--label=org.opencontainers.image.source=https://github.com/ekristen/aws-nuke" - - "--platform=linux/arm64" + - '--label=org.opencontainers.image.source={{replace (replace (replace .GitURL "git@" "https://") ".git" "") "github.com:" "github.com/"}}' - use: buildx goos: linux goarch: arm @@ -79,14 +79,14 @@ dockers: image_templates: - ghcr.io/ekristen/aws-nuke:v{{ .Version }}-arm32v7 build_flag_templates: + - "--platform=linux/arm/v7" - "--target=goreleaser" - "--pull" - "--label=org.opencontainers.image.created={{.Date}}" - "--label=org.opencontainers.image.title={{.ProjectName}}" - "--label=org.opencontainers.image.revision={{.FullCommit}}" - "--label=org.opencontainers.image.version={{.Version}}" - - "--label=org.opencontainers.image.source=https://github.com/ekristen/aws-nuke" - - "--platform=linux/arm/v7" + - '--label=org.opencontainers.image.source={{replace (replace (replace .GitURL "git@" "https://") ".git" "") "github.com:" "github.com/"}}' docker_manifests: - use: docker name_template: ghcr.io/ekristen/aws-nuke:v{{ .Version }} @@ -95,14 +95,19 @@ docker_manifests: - ghcr.io/ekristen/aws-nuke:v{{ .Version }}-arm64 - ghcr.io/ekristen/aws-nuke:v{{ .Version }}-arm32v7 signs: - - cmd: cosign - stdin: "{{ .Env.COSIGN_PASSWORD }}" - args: - ["sign-blob", "--yes", "--key=cosign.key", "--output=${signature}", "${artifact}"] + - ids: + - default + cmd: cosign + signature: "${artifact}.sig" + certificate: "${artifact}.pem" + args: ["sign-blob", "--yes", "--oidc-provider=github", "--oidc-issuer=https://token.actions.githubusercontent.com", "--output-certificate=${certificate}", "--output-signature=${signature}", "${artifact}"] artifacts: all docker_signs: - - artifacts: all - stdin: "{{ .Env.COSIGN_PASSWORD }}" + - ids: + - default + artifacts: all + cmd: cosign + args: ["sign", "--yes", "--oidc-provider=github", "--oidc-issuer=https://token.actions.githubusercontent.com", "--output-certificate=${certificate}", "--output-signature=${signature}", "${artifact}"] checksum: name_template: "checksums.txt" snapshot: From 930b03a19159fd5bcbd0e208252c81bb717f9a05 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sat, 3 Feb 2024 20:13:32 -0700 Subject: [PATCH 102/617] feat: list alphabetically, show cloud-control resources separate (#65) * feat: list alphabetically, show cloud-control resources separate * fix: go import order --- pkg/commands/list/list.go | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/pkg/commands/list/list.go b/pkg/commands/list/list.go index 36d22a01..dca20b1a 100644 --- a/pkg/commands/list/list.go +++ b/pkg/commands/list/list.go @@ -1,22 +1,39 @@ package list import ( - "github.com/ekristen/aws-nuke/pkg/nuke" - "github.com/ekristen/libnuke/pkg/resource" + "sort" + "strings" + "github.com/fatih/color" "github.com/urfave/cli/v2" "github.com/ekristen/aws-nuke/pkg/commands/global" "github.com/ekristen/aws-nuke/pkg/common" + "github.com/ekristen/libnuke/pkg/resource" + _ "github.com/ekristen/aws-nuke/resources" ) func execute(c *cli.Context) error { - ls := resource.GetListersForScope(nuke.Account) + ls := resource.GetNames() + + sort.Strings(ls) + + for _, name := range ls { + if strings.HasPrefix(name, "AWS::") { + continue + } + + reg := resource.GetRegistration(name) - for name, _ := range ls { - color.New(color.Bold).Printf("%-55s\n", name) + if reg.AlternativeResource != "" { + color.New(color.Bold).Printf("%-55s\n", name) + color.New(color.Bold, color.FgYellow).Printf(" > %-55s", reg.AlternativeResource) + color.New(color.FgCyan).Printf("alternative cloud-control resource\n") + } else { + color.New(color.Bold).Printf("%-55s\n", name) + } } return nil From 413e8506123da6a803c4ce3dc99acc21933708d8 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 5 Feb 2024 15:03:28 -0700 Subject: [PATCH 103/617] feat: add new resource ManagedBlockchainMember (#66) * feat: add new resource ManagedBlockchainMember * fix: go imports --- resources/managedblockchain-member.go | 101 ++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 resources/managedblockchain-member.go diff --git a/resources/managedblockchain-member.go b/resources/managedblockchain-member.go new file mode 100644 index 00000000..855b852f --- /dev/null +++ b/resources/managedblockchain-member.go @@ -0,0 +1,101 @@ +package resources + +import ( + "context" + "errors" + + "github.com/gotidy/ptr" + + "github.com/aws/aws-sdk-go/aws/awserr" + + "github.com/aws/aws-sdk-go/service/managedblockchain" + + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" +) + +const ManagedBlockchainMemberResource = "ManagedBlockchainMember" + +func init() { + resource.Register(&resource.Registration{ + Name: ManagedBlockchainMemberResource, + Scope: nuke.Account, + Lister: &ManagedBlockchainMemberLister{}, + }) +} + +type ManagedBlockchainMemberLister struct{} + +func (l *ManagedBlockchainMemberLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := managedblockchain.New(opts.Session) + var resources []resource.Resource + + networks, err := svc.ListNetworks(&managedblockchain.ListNetworksInput{}) + if err != nil { + return nil, err + } + + for _, n := range networks.Networks { + res, err := svc.ListMembers(&managedblockchain.ListMembersInput{ + NetworkId: n.Id, + }) + if err != nil { + return nil, err + } + + for _, r := range res.Members { + resources = append(resources, &ManagedBlockchainMember{ + svc: svc, + id: r.Id, + networkId: n.Id, + name: r.Name, + member: r, + }) + } + } + + return resources, nil +} + +type ManagedBlockchainMember struct { + svc *managedblockchain.ManagedBlockchain + id *string + networkId *string + name *string + member *managedblockchain.MemberSummary +} + +func (r *ManagedBlockchainMember) Remove(_ context.Context) error { + _, err := r.svc.DeleteMember(&managedblockchain.DeleteMemberInput{ + NetworkId: r.networkId, + MemberId: r.id, + }) + if err != nil { + var awsError awserr.Error + if errors.As(err, &awsError) { + if awsError.Code() == "ResourceNotFoundException" { + return nil + } + } + return err + } + + return nil +} + +func (r *ManagedBlockchainMember) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("ID", r.id) + properties.Set("Name", r.name) + properties.Set("CreationDate", r.member.CreationDate) + properties.Set("IsOwned", r.member.IsOwned) + properties.Set("Status", r.member.Status) + return properties +} + +func (r *ManagedBlockchainMember) String() string { + return ptr.ToString(r.name) +} From 542f18b915e89798e5acb652c27102655c4ee88e Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 5 Feb 2024 15:39:10 -0700 Subject: [PATCH 104/617] fix: quick fix for default run sleep (#68) --- pkg/commands/nuke/command.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/commands/nuke/command.go b/pkg/commands/nuke/command.go index a8b064e8..0aee521a 100644 --- a/pkg/commands/nuke/command.go +++ b/pkg/commands/nuke/command.go @@ -4,6 +4,7 @@ import ( "context" "fmt" "slices" + "time" "github.com/sirupsen/logrus" "github.com/urfave/cli/v2" @@ -104,6 +105,7 @@ func execute(c *cli.Context) error { // Instantiate libnuke n := libnuke.New(params, filters, parsedConfig.Settings) + n.SetRunSleep(5 * time.Second) n.RegisterVersion(common.AppVersion.Summary) // Register our custom validate handler that validates the account and AWS nuke unique alias checks From fad173772c8a7ce36fb23b354d1b3ada5b094b96 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 5 Feb 2024 16:39:23 -0700 Subject: [PATCH 105/617] feat: improve the default resource template for the creation tool (#67) --- tools/create-resource/main.go | 54 ++++++++++++++++++++++++----------- 1 file changed, 38 insertions(+), 16 deletions(-) diff --git a/tools/create-resource/main.go b/tools/create-resource/main.go index fbd11392..ce704844 100644 --- a/tools/create-resource/main.go +++ b/tools/create-resource/main.go @@ -22,39 +22,55 @@ import ( "github.com/ekristen/aws-nuke/pkg/nuke" ) -const {{.ResourceType}}Resource = "{{.ResourceType}}" +const {{.Combined}}Resource = "{{.Combined}}" func init() { resource.Register(&resource.Registration{ - Name: {{.ResourceType}}Resource, + Name: {{.Combined}}Resource, Scope: nuke.Account, - Lister: &{{.ResourceType}}Lister{}, + Lister: &{{.Combined}}Lister{}, }) } -type {{.ResourceType}}Lister struct{} +type {{.Combined}}Lister struct{} -func (l *{{.ResourceType}}Lister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { +func (l *{{.Combined}}Lister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) svc := {{.Service}}.New(opts.Session) var resources []resource.Resource - // INSERT CODE HERE TO ITERATE AND ADD RESOURCES + // NOTE: you might have to modify the code below to actually work, this currently does not + // inspect the aws sdk instead is a jumping off point + res, err := svc.List{{.ResourceTypeTitle}}s(&{{.Service}}.List{{.ResourceTypeTitle}}sInput{}) + if err != nil { + return nil, err + } + + for _, p := range res.{{.ResourceTypeTitle}}s { + resources = append(resources, &{{.Combined}}{ + svc: svc, + id: p.Id, + tags: p.Tags, + }) + } return resources, nil } -type {{.ResourceType}} struct { - svc *{{.Service}}.{{.ResourceType}} +type {{.Combined}} struct { + svc *{{.Service}}.{{.ServiceTitle}} id *string tags []*{{.Service}}.Tag } -func (r *{{.ResourceType}}) Remove(_ context.Context) error { - return nil +func (r *{{.Combined}}) Remove(_ context.Context) error { + _, err := r.svc.Delete{{.ResourceTypeTitle}}(&{{.Service}}.Delete{{.ResourceTypeTitle}}Input{ + {{.ResourceTypeTitle}}Id: r.id, + }) + return err } -func (r *{{.ResourceType}}) Properties() types.Properties { +func (r *{{.Combined}}) Properties() types.Properties { properties := types.NewProperties() for _, tag := range f.tags { properties.SetTag(tag.Key, tag.Value) @@ -62,7 +78,7 @@ func (r *{{.ResourceType}}) Properties() types.Properties { return properties } -func (r *{{.ResourceType}}) String() string { +func (r *{{.Combined}}) String() string { return *r.id } ` @@ -79,11 +95,17 @@ func main() { resourceType := args[1] data := struct { - Service string - ResourceType string + Service string + ServiceTitle string + ResourceType string + ResourceTypeTitle string + Combined string }{ - Service: strings.ToLower(service), - ResourceType: resourceType, + Service: strings.ToLower(service), + ServiceTitle: strings.Title(service), + ResourceType: resourceType, + ResourceTypeTitle: strings.Title(resourceType), + Combined: fmt.Sprintf("%s%s", strings.Title(service), strings.Title(resourceType)), } tmpl, err := template.New("resource").Parse(resourceTemplate) From dd99cafc00aacc13d56d15d43c9956099096243c Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 5 Feb 2024 18:40:12 -0700 Subject: [PATCH 106/617] fix: issue where cli include was being honored (#69) --- pkg/commands/nuke/command.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkg/commands/nuke/command.go b/pkg/commands/nuke/command.go index 0aee521a..8d833729 100644 --- a/pkg/commands/nuke/command.go +++ b/pkg/commands/nuke/command.go @@ -52,8 +52,8 @@ func execute(c *cli.Context) error { ForceSleep: c.Int("force-sleep"), Quiet: c.Bool("quiet"), NoDryRun: c.Bool("no-dry-run"), - Includes: c.StringSlice("only-resource"), - Excludes: c.StringSlice("exclude-resource"), + Includes: c.StringSlice("include"), + Excludes: c.StringSlice("exclude"), Alternatives: c.StringSlice("cloud-control"), } @@ -183,8 +183,9 @@ func init() { Aliases: []string{"target"}, }, &cli.StringSliceFlag{ - Name: "exclude", - Usage: "exclude these resource types", + Name: "exclude", + Aliases: []string{"exclude-resource"}, + Usage: "exclude these resource types", }, &cli.StringSliceFlag{ Name: "cloud-control", From 33baddf9262b351f95ed878193c0035f7eb7c68e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 5 Feb 2024 18:46:52 -0700 Subject: [PATCH 107/617] chore(deps): update alpine docker tag to v3.19.1 (#53) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9aa39f9a..53a88d2d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # syntax=docker/dockerfile:1.6-labs -FROM alpine:3.19.0 as base +FROM alpine:3.19.1 as base RUN apk add --no-cache ca-certificates RUN adduser -D aws-nuke From c45641b281f1798d4ff907735fbd402a591d4ddf Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 6 Feb 2024 07:01:35 -0700 Subject: [PATCH 108/617] chore: update to libnuke@0.8.0 where scanner is its own package (#70) --- go.mod | 3 ++- go.sum | 8 ++------ pkg/commands/nuke/command.go | 11 ++++++----- 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/go.mod b/go.mod index 5356efc4..d5f88042 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.21.6 require ( github.com/aws/aws-sdk-go v1.50.4 - github.com/ekristen/libnuke v0.0.0-20240123221700-d8899f33f580 + github.com/ekristen/libnuke v0.8.0 github.com/fatih/color v1.16.0 github.com/golang/mock v1.6.0 github.com/google/uuid v1.6.0 @@ -33,4 +33,5 @@ require ( golang.org/x/sync v0.6.0 // indirect golang.org/x/sys v0.16.0 // indirect gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect ) diff --git a/go.sum b/go.sum index 28deaf86..b9205ba1 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,3 @@ -github.com/aws/aws-sdk-go v1.49.21 h1:Rl8KW6HqkwzhATwvXhyr7vD4JFUMi7oXGAw9SrxxIFY= -github.com/aws/aws-sdk-go v1.49.21/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/aws/aws-sdk-go v1.50.4 h1:jJNhxunBgfjmCSjMZ3INwQ19ZN3RoGEZfgSCUYF/NZw= github.com/aws/aws-sdk-go v1.50.4/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w= @@ -8,14 +6,12 @@ github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ3 github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/ekristen/libnuke v0.0.0-20240123221700-d8899f33f580 h1:7F4+KkJLtwDC5STusCTGIcnIjBmOOP7mUOpCzS2KoCU= -github.com/ekristen/libnuke v0.0.0-20240123221700-d8899f33f580/go.mod h1:BqHpyOLHEgCwAi82WbM+1fjGRgdDDG4a8W4ivjfHMP8= +github.com/ekristen/libnuke v0.8.0 h1:dxs+RosOcstbzvxnLyWN4mq1mAuOqMRUi7LEBC8rk44= +github.com/ekristen/libnuke v0.8.0/go.mod h1:WhYx7LDAkvkXwwfhWCASRn7fbifF8kfyhNsUj5zCCVs= github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= -github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= -github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gotidy/ptr v1.4.0 h1:7++suUs+HNHMnyz6/AW3SE+4EnBhupPSQTSI7QNijVc= diff --git a/pkg/commands/nuke/command.go b/pkg/commands/nuke/command.go index 8d833729..de2b279a 100644 --- a/pkg/commands/nuke/command.go +++ b/pkg/commands/nuke/command.go @@ -14,6 +14,7 @@ import ( libconfig "github.com/ekristen/libnuke/pkg/config" libnuke "github.com/ekristen/libnuke/pkg/nuke" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/scanner" "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/pkg/awsutil" @@ -147,21 +148,21 @@ func execute(c *cli.Context) error { // Step 1 - Create the region object region := nuke.NewRegion(regionName, account.ResourceTypeToServiceType, account.NewSession) - // Step 2 - Create the scanner object - scanner := libnuke.NewScanner(regionName, resourceTypes, &nuke.ListerOpts{ + // Step 2 - Create the scannerActual object + scannerActual := scanner.New(regionName, resourceTypes, &nuke.ListerOpts{ Region: region, }) // Step 3 - Register a mutate function that will be called to modify the lister options for each resource type // see pkg/nuke/resource.go for the MutateOpts function. Its purpose is to create the proper session for the // proper region. - regMutateErr := scanner.RegisterMutateOptsFunc(nuke.MutateOpts) + regMutateErr := scannerActual.RegisterMutateOptsFunc(nuke.MutateOpts) if regMutateErr != nil { return regMutateErr } - // Step 4 - Register the scanner with the nuke object - regScanErr := n.RegisterScanner(nuke.Account, scanner) + // Step 4 - Register the scannerActual with the nuke object + regScanErr := n.RegisterScanner(nuke.Account, scannerActual) if regScanErr != nil { return regScanErr } From ba3a2706e151aad6dc8d9de812181f61bfef5aa7 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 6 Feb 2024 07:35:28 -0700 Subject: [PATCH 109/617] docs: update README (#71) --- README.md | 49 +++++++++++++++++++++++++------------------------ 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index f48f1eaf..383864fd 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,31 @@ Remove all resources from an AWS account. *aws-nuke* is stable, but it is likely that not all AWS resources are covered by it. Be encouraged to add missing resources and create a Pull Request or to create an [Issue](https://github.com/ekristen/aws-nuke/issues/new). +## What's New in Version 3! + +Version 3 is a rewrite of this tool using [libnuke](https://github.com/ekristen/libnuke) with a focus on improving a number of the outstanding things +that I couldn't get done with the original project without separating out the core code into a library. See Goals +below for more. + +### Notable Changes + +- The root command will result in help now, the primary nuke command moved to `run` (alias: `nuke`). **Breaking Change** +- CloudFormation Stacks now support a hold and wait for parent deletion process. **New Behavior, Breaking Change** +- Nested CloudFormation Stacks are now eligible for deletion and no longer omitted. **New Behavior, Breaking Change** +- The entire resource lister format has changed and requires a struct to allow for more options going forward. +- Context is passed throughout the entire library now, including the listing function and the removal function. + - This is in preparation for supporting AWS SDK Go v2 + +### Goals + +- [x] Easier maintainability and bug fixing, see go report and code climate badges above +- [x] Adding additional tests around the core library +- [ ] Adding more tests around specific resource types +- [x] Adding additional resources and tooling to make adding resources easier +- [x] Adding documentation for adding resources and using the tool +- [ ] Consider adding DAG for dependencies between resource types and individual resources +- [ ] Support for AWS SDK Go v2 + ## Documentation All documentation is in the [docs/](docs) directory and is built using [Material for Mkdocs](https://squidfunk.github.io/mkdocs-material/). @@ -49,27 +74,3 @@ You can contribute to *aws-nuke* by forking this repository, making your changes this repository. If you are unsure how to solve a problem or have other questions about a contributions, please create a GitHub issue. -## Version 3 - -Version 3 is a rewrite of this tool using [libnuke](https://github.com/ekristen/libnuke) with a focus on improving a number of the outstanding things -that I couldn't get done with the original project without separating out the core code into a library. See Goals -below for more. - -### Changes - -- The root command will result in help now on v3, the primary nuke command moved to `nuke`. **Breaking** -- CloudFormation Stacks now support a hold and wait for parent deletion process. **Quasi-Breaking** -- Nested CloudFormation Stacks are now eligible for deletion and no longer omitted. **Quasi-Breaking** -- The entire resource lister format has changed and requires a struct. -- Context is passed throughout the entire library now, including the listing function and the removal function. - - This is in preparation for supporting AWS SDK Go v2 - -### Goals - -- Adding additional tests -- Adding additional resources -- Adding documentation for adding resources and using the tool -- Consider adding DAG for dependencies between resource types and individual resources - - This will improve the process of deleting resources that have dependencies on other resources and reduce - errors and unnecessary API calls. - From ea35f26f35247c63bf901edfe99a5afcf71ba41d Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 6 Feb 2024 14:25:30 -0700 Subject: [PATCH 110/617] fix: missing hook to sign darwin binaries (#73) --- .goreleaser.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index 536a99b4..ed023659 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -32,6 +32,16 @@ builds: - -X '{{ .ModulePath }}/pkg/common.BRANCH={{ .Branch }}' - -X '{{ .ModulePath }}/pkg/common.VERSION={{ .Tag }}' - -X '{{ .ModulePath }}/pkg/common.COMMIT={{ .Commit }}' + hooks: + post: + - cmd: | + {{- if eq .Os "darwin" -}} + quill sign-and-notarize "{{ .Path }}" --dry-run={{ .IsSnapshot }} --ad-hoc={{ .IsSnapshot }} -vv + {{- else -}} + true + {{- end -}} + env: + - QUILL_LOG_FILE=/tmp/quill-{{ .Target }}.log archives: - id: default builds: From d2e561ebba49db4681a7dc5adb2dcfbc56d37257 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 7 Feb 2024 15:38:55 -0700 Subject: [PATCH 111/617] fix: bug with no alias check (#74) --- pkg/awsutil/account.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/awsutil/account.go b/pkg/awsutil/account.go index adf37f10..321ba562 100644 --- a/pkg/awsutil/account.go +++ b/pkg/awsutil/account.go @@ -1,6 +1,7 @@ package awsutil import ( + "fmt" "strings" "github.com/pkg/errors" @@ -76,6 +77,10 @@ func (a *Account) ID() string { } func (a *Account) Alias() string { + if len(a.aliases) == 0 { + return fmt.Sprintf("no-alias-%s", a.ID()) + } + return a.aliases[0] } From 7c061306eabda85516b8cc0b150e8da228f64626 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 13 Feb 2024 16:36:35 -0700 Subject: [PATCH 112/617] chore: use separate registry package from libnuke with libnuke@0.9.1 (#75) * chore: use separate registry package from libnuke with libnuke@0.9.1 * docs: fix example code * fix: tests --- go.mod | 2 +- go.sum | 2 ++ pkg/commands/list/list.go | 7 +++--- pkg/commands/nuke/command.go | 8 +++---- pkg/nuke/resource.go | 4 ++-- resources/accessanalyzer-analyzers.go | 3 ++- resources/accessanalyzer-archiverules.go | 3 ++- resources/acm-certificates.go | 3 ++- resources/acmpca-certificateauthorities.go | 3 ++- .../acmpca-certificateauthoritystates.go | 3 ++- resources/apigateway-apikeys.go | 3 ++- resources/apigateway-clientcertificates.go | 3 ++- resources/apigateway-domainnames.go | 3 ++- resources/apigateway-restapis.go | 3 ++- resources/apigateway-usageplans.go | 3 ++- resources/apigateway-vpclinks.go | 7 ++++-- resources/apigatewayv2-apis.go | 3 ++- resources/apigatewayv2-vpc-links.go | 3 ++- resources/appconfig-applications.go | 3 ++- resources/appconfig-configurationprofiles.go | 3 ++- resources/appconfig-deploymentstrategies.go | 3 ++- resources/appconfig-environments.go | 3 ++- .../appconfig-hostedconfigurationversions.go | 3 ++- ...applicationautoscaling-scalable-targets.go | 3 ++- resources/appmesh-gatewayroute.go | 3 ++- resources/appmesh-mesh.go | 3 ++- resources/appmesh-route.go | 3 ++- resources/appmesh-virtualgateway.go | 3 ++- resources/appmesh-virtualnode.go | 3 ++- resources/appmesh-virtualrouter.go | 3 ++- resources/appmesh-virtualservice.go | 3 ++- resources/apprunner-connection.go | 3 ++- resources/apprunner-service.go | 3 ++- resources/appstream-directoryconfigs.go | 3 ++- resources/appstream-fleets.go | 3 ++- resources/appstream-fleetstates.go | 3 ++- resources/appstream-imagebuilders.go | 3 ++- resources/appstream-imagebuilderwaiters.go | 3 ++- resources/appstream-images.go | 3 ++- .../appstream-stack-fleet-attachments.go | 3 ++- resources/appstream-stacks.go | 3 ++- resources/appsync-graphqlapis.go | 3 ++- resources/athena-named-queries.go | 3 ++- resources/athena-work-groups.go | 3 ++- resources/autoscaling-groups.go | 3 ++- .../autoscaling-launch-configurations.go | 3 ++- resources/autoscaling-lifecycle-hooks.go | 3 ++- resources/autoscalingplans-scalingplans.go | 3 ++- resources/backup-plans.go | 3 ++- resources/backup-recovery-points.go | 3 ++- resources/backup-selections.go | 3 ++- resources/backup-vaults-access-policies.go | 3 ++- resources/backup-vaults.go | 3 ++- resources/batch-compute-environment-states.go | 3 ++- resources/batch-compute-environments.go | 3 ++- resources/batch-job-queue-states.go | 3 ++- resources/batch-job-queues.go | 3 ++- resources/billing-costandusagereports.go | 3 ++- resources/budgets.go | 3 ++- resources/cloud9-environments.go | 3 ++- resources/cloudcontrol.go | 3 ++- resources/clouddirectory-directories.go | 3 ++- resources/clouddirectory-schemas.go | 3 ++- resources/cloudformation-stack.go | 3 ++- resources/cloudformation-stackset.go | 3 ++- resources/cloudformation-type.go | 3 ++- .../cloudfront-distribution-deployments.go | 3 ++- resources/cloudfront-distributions.go | 3 ++- resources/cloudfront-function.go | 3 ++- resources/cloudfront-key-groups.go | 3 ++- resources/cloudfront-origin-access-control.go | 3 ++- .../cloudfront-origin-access-identities.go | 3 ++- resources/cloudfront-origin-request-policy.go | 3 ++- resources/cloudfront-public-keys.go | 3 ++- resources/cloudhsmv2-cluster.go | 3 ++- resources/cloudhsmv2-clusterhsms.go | 3 ++- resources/cloudsearch-domains.go | 3 ++- resources/cloudtrail-trails.go | 3 ++- resources/cloudwatch-alarms.go | 3 ++- resources/cloudwatch-dashboards.go | 3 ++- resources/cloudwatch-rum.go | 3 ++- resources/cloudwatchevents-buses.go | 3 ++- resources/cloudwatchevents-rules.go | 3 ++- resources/cloudwatchevents-targets.go | 3 ++- resources/cloudwatchlogs-destinations.go | 3 ++- resources/cloudwatchlogs-loggroups.go | 3 ++- resources/cloudwatchlogs-resourcepolicy.go | 3 ++- resources/codeartifact-domains.go | 3 ++- resources/codeartifact-repositories.go | 3 ++- resources/codebuild-projects.go | 3 ++- resources/codecommit-repositories.go | 3 ++- resources/codedeploy-applications.go | 3 ++- resources/codepipeline-pipelines.go | 3 ++- resources/codestar-connections.go | 3 ++- resources/codestar-notifications.go | 3 ++- resources/codestar-projects.go | 3 ++- resources/cognito-identity-providers.go | 3 ++- resources/cognito-identitypools.go | 3 ++- resources/cognito-userpool-clients.go | 3 ++- resources/cognito-userpool-domains.go | 3 ++- resources/cognito-userpools.go | 3 ++- resources/comprehend-document-classifier.go | 3 ++- ...prehend-dominant-language-detection-job.go | 3 ++- resources/comprehend-endpoint.go | 3 ++- .../comprehend-entities-detection-job.go | 3 ++- resources/comprehend-entity-recognizer.go | 3 ++- resources/comprehend-events-detection-job.go | 3 ++- .../comprehend-key-phrases-detection-job.go | 3 ++- .../comprehend-pii-entities-detection-job.go | 3 ++- .../comprehend-sentiment-detection-job.go | 3 ++- ...rehend-targeted-sentiment-detection-job.go | 3 ++- resources/configservice-configrules.go | 3 ++- .../configservice-configurationrecorders.go | 3 ++- resources/configservice-deliverychannels.go | 3 ++- .../databasemigrationservice-certificates.go | 3 ++- .../databasemigrationservice-endpoints.go | 3 ++- ...basemigrationservice-eventsubscriptions.go | 3 ++- ...semigrationservice-replicationinstances.go | 3 ++- ...tabasemigrationservice-replicationtasks.go | 3 ++- .../databasemigrationservice-subnetgroups.go | 3 ++- resources/datapipeline-pipelines.go | 3 ++- resources/dax-clusters.go | 3 ++- resources/dax-parametergroups.go | 3 ++- resources/dax-subnetgroups.go | 3 ++- resources/devicefarm-projects.go | 3 ++- resources/directoryservice-directories.go | 3 ++- resources/dynamodb-items.go | 3 ++- resources/dynamodb-tables.go | 3 ++- .../ec2-client-vpn-endpoint-attachment.go | 3 ++- resources/ec2-client-vpn-endpoint.go | 3 ++- resources/ec2-customer-gateway.go | 3 ++- resources/ec2-default-security-group-rules.go | 3 ++- resources/ec2-dhcp-options.go | 3 ++- .../ec2-egress-only-internet-gateways.go | 3 ++- resources/ec2-eip.go | 3 ++- resources/ec2-host.go | 3 ++- resources/ec2-image.go | 3 ++- resources/ec2-instance-connect-endpoint.go | 3 ++- resources/ec2-instance.go | 3 ++- resources/ec2-internet-gateway-attachments.go | 3 ++- resources/ec2-internet-gateways.go | 3 ++- resources/ec2-key-pairs.go | 3 ++- resources/ec2-launch-templates.go | 3 ++- resources/ec2-nat-gateways.go | 3 ++- resources/ec2-network-acls.go | 3 ++- resources/ec2-network-interfaces.go | 3 ++- resources/ec2-placement-groups.go | 3 ++- resources/ec2-route-tables.go | 3 ++- resources/ec2-security-groups.go | 3 ++- resources/ec2-snapshots.go | 3 ++- resources/ec2-spot-fleet-requests.go | 3 ++- resources/ec2-subnets.go | 3 ++- resources/ec2-tgw-attachments.go | 3 ++- resources/ec2-tgw.go | 3 ++- resources/ec2-volume.go | 3 ++- resources/ec2-vpc-endpoint-connections.go | 3 ++- ...ec2-vpc-endpoint-service-configurations.go | 3 ++- resources/ec2-vpc-endpoint.go | 3 ++- resources/ec2-vpc-peering-connections.go | 3 ++- resources/ec2-vpc.go | 3 ++- resources/ec2-vpn-connections.go | 3 ++- resources/ec2-vpn-gateway-attachments.go | 3 ++- resources/ec2-vpn-gateways.go | 3 ++- resources/ecr-public-repository.go | 3 ++- resources/ecr-repository.go | 3 ++- resources/ecs-clusterinstances.go | 3 ++- resources/ecs-clusters.go | 3 ++- resources/ecs-services.go | 3 ++- resources/ecs-taskdefinitions.go | 3 ++- resources/ecs-tasks.go | 3 ++- resources/efs-filesystem.go | 3 ++- resources/efs-mount-targets.go | 3 ++- resources/eks-clusters.go | 3 ++- resources/eks-fargate.go | 3 ++- resources/eks-nodegroups.go | 3 ++- resources/elasticache-cacheparametergroups.go | 3 ++- resources/elasticache-memcacheclusters.go | 3 ++- resources/elasticache-replicationgroups.go | 3 ++- resources/elasticache-subnetgroups.go | 3 ++- resources/elasticache-usergroups.go | 3 ++- resources/elasticache-users.go | 3 ++- resources/elasticbeanstalk-applications.go | 3 ++- resources/elasticbeanstalk-environments.go | 3 ++- resources/elasticsearchservice-domain.go | 3 ++- resources/elastictranscoder-pipelines.go | 3 ++- resources/elb-elb.go | 3 ++- resources/elbv2-alb.go | 3 ++- resources/elbv2-targetgroup.go | 3 ++- resources/emr-clusters.go | 3 ++- resources/emr-securityconfigurations.go | 3 ++- resources/firehose-deliverystreams.go | 3 ++- resources/fms-notification-channels.go | 3 ++- resources/fms-policies.go | 3 ++- resources/fsx-backups.go | 3 ++- resources/fsx-filesystems.go | 3 ++- resources/ga-accelerators.go | 3 ++- resources/ga-endpoints.go | 3 ++- resources/ga-listeners.go | 3 ++- resources/glue-classifiers.go | 3 ++- resources/glue-connections.go | 3 ++- resources/glue-crawlers.go | 3 ++- resources/glue-databases.go | 3 ++- resources/glue-devendpoints.go | 3 ++- resources/glue-jobs.go | 3 ++- resources/glue-triggers.go | 3 ++- resources/gluedatabrew-datasets.go | 3 ++- resources/gluedatabrew-jobs.go | 3 ++- resources/gluedatabrew-projects.go | 3 ++- resources/gluedatabrew-recipe.go | 3 ++- resources/gluedatabrew-rulesets.go | 3 ++- resources/gluedatabrew-schedules.go | 3 ++- resources/guardduty.go | 3 ++- .../iam-account-setting-password-policy.go | 3 ++- resources/iam-group-policies.go | 3 ++- resources/iam-group-policy-attachments.go | 3 ++- resources/iam-groups.go | 3 ++- resources/iam-instance-profile-roles.go | 3 ++- resources/iam-instance-profiles.go | 3 ++- resources/iam-login-profiles.go | 3 ++- resources/iam-open-id-connect-provider.go | 3 ++- resources/iam-policies.go | 3 ++- resources/iam-role-policy-attachments.go | 3 ++- resources/iam-role-policy.go | 3 ++- resources/iam-roles.go | 3 ++- resources/iam-saml-provider.go | 3 ++- resources/iam-server-certificate.go | 3 ++- resources/iam-service-specific-credentials.go | 3 ++- resources/iam-signing-certificate.go | 3 ++- resources/iam-user-access-key.go | 3 ++- resources/iam-user-group-attachments.go | 3 ++- resources/iam-user-https-git-credential.go | 3 ++- resources/iam-user-policy-attachment.go | 3 ++- resources/iam-user-policy.go | 3 ++- resources/iam-user-ssh-keys.go | 3 ++- resources/iam-users.go | 3 ++- resources/iam-virtual-mfa-devices.go | 22 +++++++++---------- .../iam-virtual-mfa-devices_mock_test.go | 12 +++++----- resources/imagebuilder-components.go | 3 ++- ...magebuilder-distribution-configurations.go | 3 ++- resources/imagebuilder-images.go | 3 ++- ...gebuilder-infrastructure-configurations.go | 3 ++- resources/imagebuilder-pipelines.go | 3 ++- resources/imagebuilder-recipes.go | 3 ++- resources/inspector-assessment-runs.go | 3 ++- resources/inspector-assessment-targets.go | 3 ++- resources/inspector-assessment-templates.go | 3 ++- resources/inspector2.go | 3 ++- resources/iot-authorizers.go | 3 ++- resources/iot-cacertificates.go | 3 ++- resources/iot-certificates.go | 3 ++- resources/iot-jobs.go | 3 ++- resources/iot-otaupdates.go | 3 ++- resources/iot-policies.go | 3 ++- resources/iot-rolealiases.go | 3 ++- resources/iot-streams.go | 3 ++- resources/iot-thinggroups.go | 3 ++- resources/iot-things.go | 3 ++- resources/iot-thingtypes.go | 3 ++- resources/iot-thingtypestates.go | 3 ++- resources/iot-topicrules.go | 3 ++- resources/kendra-indexes.go | 3 ++- resources/kinesis-streams.go | 3 ++- resources/kinesisanalytics-streams.go | 3 ++- resources/kinesisvideo-streams.go | 3 ++- resources/kms-aliases.go | 3 ++- resources/kms-keys.go | 3 ++- resources/lambda-event-source-mapping.go | 3 ++- resources/lambda-functions.go | 3 ++- resources/lambda-layers.go | 3 ++- resources/lex-bot.go | 3 ++- resources/lex-intent.go | 3 ++- .../lex-model-building-service-bot-alias.go | 3 ++- resources/lex-slot-types.go | 3 ++- resources/lightsail-disks.go | 3 ++- resources/lightsail-domains.go | 3 ++- resources/lightsail-instances.go | 3 ++- resources/lightsail-keypairs.go | 3 ++- resources/lightsail-loadbalancers.go | 3 ++- resources/lightsail-staticips.go | 3 ++- resources/machinelearning-batchpredictions.go | 3 ++- resources/machinelearning-datasources.go | 3 ++- resources/machinelearning-evaluations.go | 3 ++- resources/machinelearning-mlmodels.go | 3 ++- resources/macie2.go | 3 ++- resources/managedblockchain-member.go | 3 ++- resources/managedgrafana-workspaces.go | 3 ++- resources/mediaconvert-jobtemplates.go | 3 ++- resources/mediaconvert-presets.go | 3 ++- resources/mediaconvert-queues.go | 3 ++- resources/medialive-channels.go | 3 ++- resources/medialive-inputs.go | 3 ++- resources/medialive-inputsecuritygroups.go | 3 ++- resources/mediapackage-channels.go | 3 ++- resources/mediapackage-originendpoints.go | 3 ++- resources/mediastore-containers.go | 3 ++- resources/mediastoredata-items.go | 3 ++- resources/mediatailor-configurations.go | 3 ++- resources/memorydb-acl.go | 3 ++- resources/memorydb-cluster.go | 3 ++- resources/memorydb-parametergroups.go | 3 ++- resources/memorydb-subnetgroups.go | 3 ++- resources/memorydb-user.go | 3 ++- resources/mgn-jobs.go | 3 ++- resources/mgn-source-servers.go | 3 ++- resources/mobile-projects.go | 3 ++- resources/mq-broker.go | 3 ++- resources/msk-cluster.go | 3 ++- resources/msk-configuration.go | 3 ++- resources/neptune-clusters.go | 3 ++- resources/neptune-instances.go | 3 ++- resources/neptune-snapshots.go | 3 ++- resources/opensearchservice-domain.go | 3 ++- resources/opensearchservice-packages.go | 3 ++- resources/opensearchservice-vpcendpoints.go | 3 ++- resources/opsworks-apps.go | 3 ++- resources/opsworks-instances.go | 3 ++- resources/opsworks-layers.go | 3 ++- resources/opsworks-userprofiles.go | 3 ++- resources/opsworkscm-backups.go | 3 ++- resources/opsworkscm-servers.go | 3 ++- resources/opsworkscm-serverstates.go | 3 ++- resources/prometheusservice-workspace.go | 3 ++- resources/qldb-ledger.go | 3 ++- resources/rds-cluster-snapshots.go | 3 ++- resources/rds-clusters.go | 3 ++- resources/rds-dbclusterparametergroups.go | 3 ++- resources/rds-dbparametergroups.go | 3 ++- resources/rds-event-subscriptions.go | 3 ++- resources/rds-instances.go | 3 ++- resources/rds-optiongroups.go | 3 ++- resources/rds-proxies.go | 3 ++- resources/rds-snapshots.go | 3 ++- resources/rds-subnets.go | 3 ++- resources/redshift-clusters.go | 3 ++- resources/redshift-parametergroups.go | 3 ++- resources/redshift-scheduled-action.go | 3 ++- resources/redshift-snapshots.go | 3 ++- resources/redshift-subnetgroups.go | 3 ++- resources/rekognition-collection.go | 3 ++- resources/resource-explorer2-indexes.go | 3 ++- resources/resource-explorer2-views.go | 3 ++- resources/resourcegroups-groups.go | 3 ++- resources/robomaker-robot-applications.go | 3 ++- .../robomaker-simulation-applications.go | 3 ++- resources/robomaker-simulation-jobs.go | 3 ++- resources/route53-health-checks.go | 3 ++- resources/route53-hosted-zones.go | 3 ++- resources/route53-resolver-endpoints.go | 3 ++- resources/route53-resolver-rules.go | 3 ++- resources/route53-resource-records.go | 3 ++- resources/route53-traffic-policies.go | 3 ++- resources/s3-access-points.go | 3 ++- resources/s3-buckets.go | 3 ++- resources/s3-multipart-uploads.go | 3 ++- resources/s3-objects.go | 3 ++- resources/sagemaker-apps.go | 3 ++- resources/sagemaker-domain.go | 3 ++- resources/sagemaker-endpointconfigs.go | 3 ++- resources/sagemaker-endpoints.go | 3 ++- resources/sagemaker-models.go | 3 ++- ...maker-notebook-instancelifecycleconfigs.go | 3 ++- resources/sagemaker-notebook-instances.go | 3 ++- .../sagemaker-notebook-instancestates.go | 3 ++- resources/sagemaker-userprofiles.go | 3 ++- resources/secretsmanager-secrets.go | 3 ++- resources/securityhub-hub.go | 3 ++- ...talog-portfolio-constraints-attachments.go | 3 ++- ...catalog-portfolio-principal-attachments.go | 3 ++- ...cecatalog-portfolio-product-attachments.go | 3 ++- ...vicecatalog-portfolio-share-attachments.go | 3 ++- ...talog-portfolio-tagoptions-attachements.go | 3 ++- resources/servicecatalog-portfolios.go | 3 ++- resources/servicecatalog-products.go | 3 ++- .../servicecatalog-provisionedproducts.go | 3 ++- resources/servicecatalog-tagoptions.go | 3 ++- resources/servicediscovery-instances.go | 3 ++- resources/servicediscovery-namespaces.go | 3 ++- resources/servicediscovery-services.go | 3 ++- resources/ses-configurationsets.go | 3 ++- resources/ses-identities.go | 3 ++- resources/ses-receiptfilters.go | 3 ++- resources/ses-receiptrulesets.go | 3 ++- resources/ses-templates.go | 3 ++- resources/sfn-statemachines.go | 3 ++- resources/signer-signingjobs.go | 3 ++- resources/simpledb-domains.go | 3 ++- resources/sns-endpoints.go | 3 ++- resources/sns-platformapplications.go | 3 ++- resources/sns-subscriptions.go | 3 ++- resources/sns-topics.go | 3 ++- resources/sqs-queues.go | 3 ++- resources/ssm-activations.go | 3 ++- resources/ssm-associations.go | 3 ++- resources/ssm-documents.go | 3 ++- resources/ssm-maintenancewindows.go | 3 ++- resources/ssm-parameters.go | 3 ++- resources/ssm-patchbaselines.go | 3 ++- resources/ssm-resourcedatasyncs.go | 3 ++- resources/storagegateway-fileshares.go | 3 ++- resources/storagegateway-gateways.go | 3 ++- resources/storagegateway-tapes.go | 3 ++- resources/storagegateway-volumes.go | 3 ++- resources/transfer-server-user.go | 3 ++- resources/transfer-server.go | 3 ++- resources/waf-rules.go | 3 ++- resources/waf-webacl-rule-attachments.go | 3 ++- resources/waf-webacls.go | 3 ++- .../wafregional-byte-match-set-tuples.go | 3 ++- resources/wafregional-byte-match-sets.go | 3 ++- resources/wafregional-ip-set-ips.go | 3 ++- resources/wafregional-ip-sets.go | 3 ++- .../wafregional-rate-based-rule-predicates.go | 3 ++- resources/wafregional-rate-based-rules.go | 3 ++- resources/wafregional-regex-match-sets.go | 3 ++- resources/wafregional-regex-match-tuples.go | 3 ++- resources/wafregional-regex-pattern-sets.go | 3 ++- resources/wafregional-regex-pattern-tuples.go | 3 ++- resources/wafregional-rule-predicates.go | 3 ++- resources/wafregional-rulegroup.go | 3 ++- resources/wafregional-rules.go | 3 ++- .../wafregional-webacl-rule-attachments.go | 3 ++- resources/wafregional-webacls.go | 3 ++- resources/wafv2-ipsets.go | 3 ++- resources/wafv2-regex-pattern-sets.go | 3 ++- resources/wafv2-rulegroup.go | 3 ++- resources/wafv2-webacls.go | 3 ++- resources/workspaces-workspaces.go | 3 ++- resources/xray-group.go | 3 ++- resources/xray-sampling-rule.go | 3 ++- tools/create-resource/main.go | 3 ++- tools/list-cloudcontrol/main.go | 6 +++-- tools/migrate-resource/main.go | 3 ++- 432 files changed, 884 insertions(+), 455 deletions(-) diff --git a/go.mod b/go.mod index d5f88042..73c3a70c 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.21.6 require ( github.com/aws/aws-sdk-go v1.50.4 - github.com/ekristen/libnuke v0.8.0 + github.com/ekristen/libnuke v0.9.1 github.com/fatih/color v1.16.0 github.com/golang/mock v1.6.0 github.com/google/uuid v1.6.0 diff --git a/go.sum b/go.sum index b9205ba1..7f1e15b5 100644 --- a/go.sum +++ b/go.sum @@ -8,6 +8,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/ekristen/libnuke v0.8.0 h1:dxs+RosOcstbzvxnLyWN4mq1mAuOqMRUi7LEBC8rk44= github.com/ekristen/libnuke v0.8.0/go.mod h1:WhYx7LDAkvkXwwfhWCASRn7fbifF8kfyhNsUj5zCCVs= +github.com/ekristen/libnuke v0.9.1 h1:AoX1cggVTanP671Xuh6kJRv0HEp26NLqqPTzwYbz9I0= +github.com/ekristen/libnuke v0.9.1/go.mod h1:WhYx7LDAkvkXwwfhWCASRn7fbifF8kfyhNsUj5zCCVs= github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= diff --git a/pkg/commands/list/list.go b/pkg/commands/list/list.go index dca20b1a..cb802644 100644 --- a/pkg/commands/list/list.go +++ b/pkg/commands/list/list.go @@ -10,13 +10,12 @@ import ( "github.com/ekristen/aws-nuke/pkg/commands/global" "github.com/ekristen/aws-nuke/pkg/common" - "github.com/ekristen/libnuke/pkg/resource" - _ "github.com/ekristen/aws-nuke/resources" + "github.com/ekristen/libnuke/pkg/registry" ) func execute(c *cli.Context) error { - ls := resource.GetNames() + ls := registry.GetNames() sort.Strings(ls) @@ -25,7 +24,7 @@ func execute(c *cli.Context) error { continue } - reg := resource.GetRegistration(name) + reg := registry.GetRegistration(name) if reg.AlternativeResource != "" { color.New(color.Bold).Printf("%-55s\n", name) diff --git a/pkg/commands/nuke/command.go b/pkg/commands/nuke/command.go index de2b279a..49f38d18 100644 --- a/pkg/commands/nuke/command.go +++ b/pkg/commands/nuke/command.go @@ -3,6 +3,7 @@ package nuke import ( "context" "fmt" + "github.com/ekristen/libnuke/pkg/registry" "slices" "time" @@ -13,7 +14,6 @@ import ( libconfig "github.com/ekristen/libnuke/pkg/config" libnuke "github.com/ekristen/libnuke/pkg/nuke" - "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/scanner" "github.com/ekristen/libnuke/pkg/types" @@ -67,7 +67,7 @@ func execute(c *cli.Context) error { // Parse the user supplied configuration file to pass in part to configure the nuke process. parsedConfig, err := config.New(libconfig.Options{ Path: c.Path("config"), - Deprecations: resource.GetDeprecatedResourceTypeMapping(), + Deprecations: registry.GetDeprecatedResourceTypeMapping(), }) if err != nil { logrus.Errorf("Failed to parse config file %s", c.Path("config")) @@ -124,7 +124,7 @@ func execute(c *cli.Context) error { // Resolve the resource types to be used for the nuke process based on the parameters, global configuration, and // account level configuration. resourceTypes := types.ResolveResourceTypes( - resource.GetNames(), + registry.GetNames(), []types.Collection{ n.Parameters.Includes, parsedConfig.ResourceTypes.GetIncludes(), @@ -140,7 +140,7 @@ func execute(c *cli.Context) error { parsedConfig.ResourceTypes.GetAlternatives(), accountConfig.ResourceTypes.GetAlternatives(), }, - resource.GetAlternativeResourceTypeMapping(), + registry.GetAlternativeResourceTypeMapping(), ) // Register the scanners for each region that is defined in the configuration. diff --git a/pkg/nuke/resource.go b/pkg/nuke/resource.go index 4a417b7e..2dcdcfa9 100644 --- a/pkg/nuke/resource.go +++ b/pkg/nuke/resource.go @@ -3,11 +3,11 @@ package nuke import ( "github.com/aws/aws-sdk-go/aws/session" - "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/registry" ) // Account is the resource scope that all resources in AWS Nuke are registered against. -const Account resource.Scope = "account" +const Account registry.Scope = "account" // ListerOpts are the options for the Lister functions of each individual resource. It is passed in as an interface{} // so that each implementing tool can define their own options for the lister. Each resource then asserts the type on diff --git a/resources/accessanalyzer-analyzers.go b/resources/accessanalyzer-analyzers.go index 3af0d669..4dd59b4b 100644 --- a/resources/accessanalyzer-analyzers.go +++ b/resources/accessanalyzer-analyzers.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/accessanalyzer" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -23,7 +24,7 @@ type AccessAnalyzer struct { } func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: AccessAnalyzerResource, Scope: nuke.Account, Lister: &AccessAnalyzerLister{}, diff --git a/resources/accessanalyzer-archiverules.go b/resources/accessanalyzer-archiverules.go index 260a9e05..90b9b051 100644 --- a/resources/accessanalyzer-archiverules.go +++ b/resources/accessanalyzer-archiverules.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/accessanalyzer" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const AccessAnalyzerArchiveRuleResource = "ArchiveRule" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: AccessAnalyzerArchiveRuleResource, Scope: nuke.Account, Lister: &AccessAnalyzerArchiveRuleLister{}, diff --git a/resources/acm-certificates.go b/resources/acm-certificates.go index 0c966192..8d74f310 100644 --- a/resources/acm-certificates.go +++ b/resources/acm-certificates.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/acm" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const ACMCertificateResource = "ACMCertificate" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ACMCertificateResource, Scope: nuke.Account, Lister: &ACMCertificateLister{}, diff --git a/resources/acmpca-certificateauthorities.go b/resources/acmpca-certificateauthorities.go index f1b0144b..b4783ec0 100644 --- a/resources/acmpca-certificateauthorities.go +++ b/resources/acmpca-certificateauthorities.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/acmpca" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const ACMPCACertificateAuthorityResource = "ACMPCACertificateAuthority" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ACMPCACertificateAuthorityResource, Scope: nuke.Account, Lister: &ACMPCACertificateAuthorityLister{}, diff --git a/resources/acmpca-certificateauthoritystates.go b/resources/acmpca-certificateauthoritystates.go index 209dcc4c..bb3d8aa2 100644 --- a/resources/acmpca-certificateauthoritystates.go +++ b/resources/acmpca-certificateauthoritystates.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/acmpca" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const ACMPCACertificateAuthorityStateResource = "ACMPCACertificateAuthorityState" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ACMPCACertificateAuthorityStateResource, Scope: nuke.Account, Lister: &ACMPCACertificateAuthorityStateLister{}, diff --git a/resources/apigateway-apikeys.go b/resources/apigateway-apikeys.go index 517c0f3b..2769458a 100644 --- a/resources/apigateway-apikeys.go +++ b/resources/apigateway-apikeys.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/apigateway" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const APIGatewayAPIKeyResource = "APIGatewayAPIKey" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: APIGatewayAPIKeyResource, Scope: nuke.Account, Lister: &APIGatewayAPIKeyLister{}, diff --git a/resources/apigateway-clientcertificates.go b/resources/apigateway-clientcertificates.go index aae8dabb..c8bd1430 100644 --- a/resources/apigateway-clientcertificates.go +++ b/resources/apigateway-clientcertificates.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/apigateway" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const APIGatewayClientCertificateResource = "APIGatewayClientCertificate" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: APIGatewayClientCertificateResource, Scope: nuke.Account, Lister: &APIGatewayClientCertificateLister{}, diff --git a/resources/apigateway-domainnames.go b/resources/apigateway-domainnames.go index 25bbd5f3..7e8e96db 100644 --- a/resources/apigateway-domainnames.go +++ b/resources/apigateway-domainnames.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/apigateway" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const APIGatewayDomainNameResource = "APIGatewayDomainName" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: APIGatewayDomainNameResource, Scope: nuke.Account, Lister: &APIGatewayDomainNameLister{}, diff --git a/resources/apigateway-restapis.go b/resources/apigateway-restapis.go index b630335f..02c74269 100644 --- a/resources/apigateway-restapis.go +++ b/resources/apigateway-restapis.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/apigateway" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const APIGatewayRestAPIResource = "APIGatewayRestAPI" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: APIGatewayRestAPIResource, Scope: nuke.Account, Lister: &APIGatewayRestAPILister{}, diff --git a/resources/apigateway-usageplans.go b/resources/apigateway-usageplans.go index c55ab839..71d8b45e 100644 --- a/resources/apigateway-usageplans.go +++ b/resources/apigateway-usageplans.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/apigateway" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const APIGatewayUsagePlanResource = "APIGatewayUsagePlan" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: APIGatewayUsagePlanResource, Scope: nuke.Account, Lister: &APIGatewayUsagePlanLister{}, diff --git a/resources/apigateway-vpclinks.go b/resources/apigateway-vpclinks.go index 0c1248df..af01c50d 100644 --- a/resources/apigateway-vpclinks.go +++ b/resources/apigateway-vpclinks.go @@ -5,15 +5,18 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/apigateway" - "github.com/ekristen/aws-nuke/pkg/nuke" + + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) const APIGatewayVpcLinkResource = "APIGatewayVpcLink" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: APIGatewayVpcLinkResource, Scope: nuke.Account, Lister: &APIGatewayVpcLinkLister{}, diff --git a/resources/apigatewayv2-apis.go b/resources/apigatewayv2-apis.go index b76e8c82..8210a5cc 100644 --- a/resources/apigatewayv2-apis.go +++ b/resources/apigatewayv2-apis.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/apigatewayv2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const APIGatewayV2APIResource = "APIGatewayV2API" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: APIGatewayV2APIResource, Scope: nuke.Account, Lister: &APIGatewayV2APILister{}, diff --git a/resources/apigatewayv2-vpc-links.go b/resources/apigatewayv2-vpc-links.go index 3d71fb04..ad1f1a94 100644 --- a/resources/apigatewayv2-vpc-links.go +++ b/resources/apigatewayv2-vpc-links.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/apigatewayv2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const APIGatewayV2VpcLinkResource = "APIGatewayV2VpcLink" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: APIGatewayV2VpcLinkResource, Scope: nuke.Account, Lister: &APIGatewayV2VpcLinkLister{}, diff --git a/resources/appconfig-applications.go b/resources/appconfig-applications.go index 81afeb9a..b58167bd 100644 --- a/resources/appconfig-applications.go +++ b/resources/appconfig-applications.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/appconfig" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -21,7 +22,7 @@ type AppConfigApplication struct { const AppConfigApplicationResource = "AppConfigApplication" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: AppConfigApplicationResource, Scope: nuke.Account, Lister: &AppConfigApplicationLister{}, diff --git a/resources/appconfig-configurationprofiles.go b/resources/appconfig-configurationprofiles.go index ea320164..cd57ac64 100644 --- a/resources/appconfig-configurationprofiles.go +++ b/resources/appconfig-configurationprofiles.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/appconfig" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -24,7 +25,7 @@ type AppConfigConfigurationProfile struct { const AppConfigConfigurationProfileResource = "AppConfigConfigurationProfile" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: AppConfigConfigurationProfileResource, Scope: nuke.Account, Lister: &AppConfigConfigurationProfileLister{}, diff --git a/resources/appconfig-deploymentstrategies.go b/resources/appconfig-deploymentstrategies.go index 30e5c074..94330148 100644 --- a/resources/appconfig-deploymentstrategies.go +++ b/resources/appconfig-deploymentstrategies.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/appconfig" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -23,7 +24,7 @@ type AppConfigDeploymentStrategy struct { const AppConfigDeploymentStrategyResource = "AppConfigDeploymentStrategy" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: AppConfigDeploymentStrategyResource, Scope: nuke.Account, Lister: &AppConfigDeploymentStrategyLister{}, diff --git a/resources/appconfig-environments.go b/resources/appconfig-environments.go index 960a5dca..7195b210 100644 --- a/resources/appconfig-environments.go +++ b/resources/appconfig-environments.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/appconfig" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -24,7 +25,7 @@ type AppConfigEnvironment struct { const AppConfigEnvironmentResource = "AppConfigEnvironment" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: AppConfigEnvironmentResource, Scope: nuke.Account, Lister: &AppConfigEnvironmentLister{}, diff --git a/resources/appconfig-hostedconfigurationversions.go b/resources/appconfig-hostedconfigurationversions.go index cb38a7e4..4a7bcfe9 100644 --- a/resources/appconfig-hostedconfigurationversions.go +++ b/resources/appconfig-hostedconfigurationversions.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/appconfig" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -24,7 +25,7 @@ type AppConfigHostedConfigurationVersion struct { const AppConfigHostedConfigurationVersionResource = "AppConfigHostedConfigurationVersion" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: AppConfigHostedConfigurationVersionResource, Scope: nuke.Account, Lister: &AppConfigHostedConfigurationVersionLister{}, diff --git a/resources/applicationautoscaling-scalable-targets.go b/resources/applicationautoscaling-scalable-targets.go index 016e498b..714a1105 100644 --- a/resources/applicationautoscaling-scalable-targets.go +++ b/resources/applicationautoscaling-scalable-targets.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/applicationautoscaling" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const ApplicationAutoScalingScalableTargetResource = "ApplicationAutoScalingScalableTarget" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ApplicationAutoScalingScalableTargetResource, Scope: nuke.Account, Lister: &ApplicationAutoScalingScalableTargetLister{}, diff --git a/resources/appmesh-gatewayroute.go b/resources/appmesh-gatewayroute.go index d42fa1f0..7b3db473 100644 --- a/resources/appmesh-gatewayroute.go +++ b/resources/appmesh-gatewayroute.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/appmesh" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const AppMeshGatewayRouteResource = "AppMeshGatewayRoute" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: AppMeshGatewayRouteResource, Scope: nuke.Account, Lister: &AppMeshGatewayRouteLister{}, diff --git a/resources/appmesh-mesh.go b/resources/appmesh-mesh.go index 31dca2e2..42488a94 100644 --- a/resources/appmesh-mesh.go +++ b/resources/appmesh-mesh.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/appmesh" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const AppMeshMeshResource = "AppMeshMesh" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: AppMeshMeshResource, Scope: nuke.Account, Lister: &AppMeshMeshLister{}, diff --git a/resources/appmesh-route.go b/resources/appmesh-route.go index 73b15394..a72fb1f5 100644 --- a/resources/appmesh-route.go +++ b/resources/appmesh-route.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/appmesh" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const AppMeshRouteResource = "AppMeshRoute" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: AppMeshRouteResource, Scope: nuke.Account, Lister: &AppMeshRouteLister{}, diff --git a/resources/appmesh-virtualgateway.go b/resources/appmesh-virtualgateway.go index 9f70e142..efa3020a 100644 --- a/resources/appmesh-virtualgateway.go +++ b/resources/appmesh-virtualgateway.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/appmesh" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const AppMeshVirtualGatewayResource = "AppMeshVirtualGateway" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: AppMeshVirtualGatewayResource, Scope: nuke.Account, Lister: &AppMeshVirtualGatewayLister{}, diff --git a/resources/appmesh-virtualnode.go b/resources/appmesh-virtualnode.go index 295e83c7..fe755e02 100644 --- a/resources/appmesh-virtualnode.go +++ b/resources/appmesh-virtualnode.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/appmesh" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const AppMeshVirtualNodeResource = "AppMeshVirtualNode" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: AppMeshVirtualNodeResource, Scope: nuke.Account, Lister: &AppMeshVirtualNodeLister{}, diff --git a/resources/appmesh-virtualrouter.go b/resources/appmesh-virtualrouter.go index 02efd9c3..556bfa07 100644 --- a/resources/appmesh-virtualrouter.go +++ b/resources/appmesh-virtualrouter.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/appmesh" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -20,7 +21,7 @@ type AppMeshVirtualRouter struct { const AppMeshVirtualRouterResource = "AppMeshVirtualRouter" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: AppMeshVirtualRouterResource, Scope: nuke.Account, Lister: &AppMeshVirtualRouterLister{}, diff --git a/resources/appmesh-virtualservice.go b/resources/appmesh-virtualservice.go index f201de9f..f794f2a0 100644 --- a/resources/appmesh-virtualservice.go +++ b/resources/appmesh-virtualservice.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/appmesh" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -20,7 +21,7 @@ type AppMeshVirtualService struct { const AppMeshVirtualServiceResource = "AppMeshVirtualService" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: AppMeshVirtualServiceResource, Scope: nuke.Account, Lister: &AppMeshVirtualServiceLister{}, diff --git a/resources/apprunner-connection.go b/resources/apprunner-connection.go index 616a5206..9bb3b640 100644 --- a/resources/apprunner-connection.go +++ b/resources/apprunner-connection.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/apprunner" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -20,7 +21,7 @@ type AppRunnerConnection struct { const AppRunnerConnectionResource = "AppRunnerConnection" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: AppRunnerConnectionResource, Scope: nuke.Account, Lister: &AppRunnerConnectionLister{}, diff --git a/resources/apprunner-service.go b/resources/apprunner-service.go index 8bf633eb..ce45203a 100644 --- a/resources/apprunner-service.go +++ b/resources/apprunner-service.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/apprunner" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -21,7 +22,7 @@ type AppRunnerService struct { const AppRunnerServiceResource = "AppRunnerService" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: AppRunnerServiceResource, Scope: nuke.Account, Lister: &AppRunnerServiceLister{}, diff --git a/resources/appstream-directoryconfigs.go b/resources/appstream-directoryconfigs.go index 5fd8d5f2..1b98f103 100644 --- a/resources/appstream-directoryconfigs.go +++ b/resources/appstream-directoryconfigs.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/appstream" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -19,7 +20,7 @@ type AppStreamDirectoryConfig struct { const AppStreamDirectoryConfigResource = "AppStreamDirectoryConfig" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: AppStreamDirectoryConfigResource, Scope: nuke.Account, Lister: &AppStreamDirectoryConfigLister{}, diff --git a/resources/appstream-fleets.go b/resources/appstream-fleets.go index 5c12c216..4e8fef39 100644 --- a/resources/appstream-fleets.go +++ b/resources/appstream-fleets.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/service/appstream" "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" ) @@ -17,7 +18,7 @@ type AppStreamFleet struct { const AppStreamFleetResource = "AppStreamFleet" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: AppStreamFleetResource, Scope: nuke.Account, Lister: &AppStreamFleetLister{}, diff --git a/resources/appstream-fleetstates.go b/resources/appstream-fleetstates.go index 8568515c..0bf72fa1 100644 --- a/resources/appstream-fleetstates.go +++ b/resources/appstream-fleetstates.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/appstream" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -21,7 +22,7 @@ type AppStreamFleetState struct { const AppStreamFleetStateResource = "AppStreamFleetState" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: AppStreamFleetStateResource, Scope: nuke.Account, Lister: &AppStreamFleetStateLister{}, diff --git a/resources/appstream-imagebuilders.go b/resources/appstream-imagebuilders.go index 6654850a..4c2f9239 100644 --- a/resources/appstream-imagebuilders.go +++ b/resources/appstream-imagebuilders.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/appstream" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -19,7 +20,7 @@ type AppStreamImageBuilder struct { const AppStreamImageBuilderResource = "AppStreamImageBuilder" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: AppStreamImageBuilderResource, Scope: nuke.Account, Lister: &AppStreamImageBuilderLister{}, diff --git a/resources/appstream-imagebuilderwaiters.go b/resources/appstream-imagebuilderwaiters.go index 6d8832d9..fb2beaf6 100644 --- a/resources/appstream-imagebuilderwaiters.go +++ b/resources/appstream-imagebuilderwaiters.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/appstream" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -22,7 +23,7 @@ type AppStreamImageBuilderWaiter struct { const AppStreamImageBuilderWaiterResource = "AppStreamImageBuilderWaiter" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: AppStreamImageBuilderWaiterResource, Scope: nuke.Account, Lister: &AppStreamImageBuilderWaiterLister{}, diff --git a/resources/appstream-images.go b/resources/appstream-images.go index c4274d3c..ab1e64ea 100644 --- a/resources/appstream-images.go +++ b/resources/appstream-images.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/service/appstream" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -22,7 +23,7 @@ type AppStreamImage struct { const AppStreamImageResource = "AppStreamImage" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: AppStreamImageResource, Scope: nuke.Account, Lister: &AppStreamImageLister{}, diff --git a/resources/appstream-stack-fleet-attachments.go b/resources/appstream-stack-fleet-attachments.go index 040bca5a..0ddae89d 100644 --- a/resources/appstream-stack-fleet-attachments.go +++ b/resources/appstream-stack-fleet-attachments.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/appstream" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -21,7 +22,7 @@ type AppStreamStackFleetAttachment struct { const AppStreamStackFleetAttachmentResource = "AppStreamStackFleetAttachment" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: AppStreamStackFleetAttachmentResource, Scope: nuke.Account, Lister: &AppStreamStackFleetAttachmentLister{}, diff --git a/resources/appstream-stacks.go b/resources/appstream-stacks.go index f5a34398..2298b467 100644 --- a/resources/appstream-stacks.go +++ b/resources/appstream-stacks.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/service/appstream" "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" ) @@ -17,7 +18,7 @@ type AppStreamStack struct { const AppStreamStackResource = "AppStreamStack" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: AppStreamStackResource, Scope: nuke.Account, Lister: &AppStreamStackLister{}, diff --git a/resources/appsync-graphqlapis.go b/resources/appsync-graphqlapis.go index d381db82..1aee67ba 100644 --- a/resources/appsync-graphqlapis.go +++ b/resources/appsync-graphqlapis.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/appsync" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const AppSyncGraphqlAPIResource = "AppSyncGraphqlAPI" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: AppSyncGraphqlAPIResource, Scope: nuke.Account, Lister: &AppSyncGraphqlAPILister{}, diff --git a/resources/athena-named-queries.go b/resources/athena-named-queries.go index 55ff3185..8198563e 100644 --- a/resources/athena-named-queries.go +++ b/resources/athena-named-queries.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/athena" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const AthenaNamedQueryResource = "AthenaNamedQuery" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: AthenaNamedQueryResource, Scope: nuke.Account, Lister: &AthenaNamedQueryLister{}, diff --git a/resources/athena-work-groups.go b/resources/athena-work-groups.go index 62fcc58e..2b1839ea 100644 --- a/resources/athena-work-groups.go +++ b/resources/athena-work-groups.go @@ -12,6 +12,7 @@ import ( "github.com/aws/aws-sdk-go/service/athena" "github.com/aws/aws-sdk-go/service/sts" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -21,7 +22,7 @@ import ( const AthenaWorkGroupResource = "AthenaWorkGroup" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: AthenaWorkGroupResource, Scope: nuke.Account, Lister: &AthenaWorkGroupLister{}, diff --git a/resources/autoscaling-groups.go b/resources/autoscaling-groups.go index e0083ac1..41b7a468 100644 --- a/resources/autoscaling-groups.go +++ b/resources/autoscaling-groups.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/autoscaling" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const AutoScalingGroupResource = "AutoScalingGroup" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: AutoScalingGroupResource, Scope: nuke.Account, Lister: &AutoScalingGroupLister{}, diff --git a/resources/autoscaling-launch-configurations.go b/resources/autoscaling-launch-configurations.go index 10b265f0..2ba7b736 100644 --- a/resources/autoscaling-launch-configurations.go +++ b/resources/autoscaling-launch-configurations.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/autoscaling" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -15,7 +16,7 @@ import ( const LaunchConfigurationResource = "LaunchConfiguration" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: LaunchConfigurationResource, Scope: nuke.Account, Lister: &LaunchConfigurationLister{}, diff --git a/resources/autoscaling-lifecycle-hooks.go b/resources/autoscaling-lifecycle-hooks.go index e421bb33..fd6153d0 100644 --- a/resources/autoscaling-lifecycle-hooks.go +++ b/resources/autoscaling-lifecycle-hooks.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/autoscaling" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -15,7 +16,7 @@ import ( const LifecycleHookResource = "LifecycleHook" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: LifecycleHookResource, Scope: nuke.Account, Lister: &LifecycleHookLister{}, diff --git a/resources/autoscalingplans-scalingplans.go b/resources/autoscalingplans-scalingplans.go index 19413c89..aa86ccc9 100644 --- a/resources/autoscalingplans-scalingplans.go +++ b/resources/autoscalingplans-scalingplans.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/autoscalingplans" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const AutoScalingPlansScalingPlanResource = "AutoScalingPlansScalingPlan" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: AutoScalingPlansScalingPlanResource, Scope: nuke.Account, Lister: &AutoScalingPlansScalingPlanLister{}, diff --git a/resources/backup-plans.go b/resources/backup-plans.go index 3ea5a31c..06a40dfa 100644 --- a/resources/backup-plans.go +++ b/resources/backup-plans.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/service/backup" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -25,7 +26,7 @@ type BackupPlan struct { const AWSBackupPlanResource = "AWSBackupPlan" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: AWSBackupPlanResource, Scope: nuke.Account, Lister: &AWSBackupPlanLister{}, diff --git a/resources/backup-recovery-points.go b/resources/backup-recovery-points.go index 86e5d9e2..163943c5 100644 --- a/resources/backup-recovery-points.go +++ b/resources/backup-recovery-points.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/backup" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -22,7 +23,7 @@ type BackupRecoveryPoint struct { const AWSBackupRecoveryPointResource = "AWSBackupRecoveryPoint" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: AWSBackupRecoveryPointResource, Scope: nuke.Account, Lister: &AWSBackupRecoveryPointLister{}, diff --git a/resources/backup-selections.go b/resources/backup-selections.go index 122749af..f632df48 100644 --- a/resources/backup-selections.go +++ b/resources/backup-selections.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/service/backup" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -24,7 +25,7 @@ type BackupSelection struct { const AWSBackupSelectionResource = "AWSBackupSelection" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: AWSBackupSelectionResource, Scope: nuke.Account, Lister: &AWSBackupSelectionLister{}, diff --git a/resources/backup-vaults-access-policies.go b/resources/backup-vaults-access-policies.go index f9925283..19e6bbb8 100644 --- a/resources/backup-vaults-access-policies.go +++ b/resources/backup-vaults-access-policies.go @@ -4,6 +4,7 @@ import ( "context" "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/aws/aws-sdk-go/service/backup" @@ -17,7 +18,7 @@ type BackupVaultAccessPolicy struct { const AWSBackupVaultAccessPolicyResource = "AWSBackupVaultAccessPolicy" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: AWSBackupVaultAccessPolicyResource, Scope: nuke.Account, Lister: &AWSBackupVaultAccessPolicyLister{}, diff --git a/resources/backup-vaults.go b/resources/backup-vaults.go index 65d7e03b..89e3d295 100644 --- a/resources/backup-vaults.go +++ b/resources/backup-vaults.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/backup" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -23,7 +24,7 @@ type BackupVault struct { const AWSBackupVaultResource = "AWSBackupVault" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: AWSBackupVaultResource, Scope: nuke.Account, Lister: &AWSBackupVaultLister{}, diff --git a/resources/batch-compute-environment-states.go b/resources/batch-compute-environment-states.go index 8c7e7927..fbf0828b 100644 --- a/resources/batch-compute-environment-states.go +++ b/resources/batch-compute-environment-states.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/batch" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -17,7 +18,7 @@ import ( const BatchComputeEnvironmentStateResource = "BatchComputeEnvironmentState" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: BatchComputeEnvironmentStateResource, Scope: nuke.Account, Lister: &BatchComputeEnvironmentStateLister{}, diff --git a/resources/batch-compute-environments.go b/resources/batch-compute-environments.go index 1f0f1227..a4bcfdb2 100644 --- a/resources/batch-compute-environments.go +++ b/resources/batch-compute-environments.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/batch" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const BatchComputeEnvironmentResource = "BatchComputeEnvironment" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: BatchComputeEnvironmentResource, Scope: nuke.Account, Lister: &BatchComputeEnvironmentLister{}, diff --git a/resources/batch-job-queue-states.go b/resources/batch-job-queue-states.go index 947e8baf..d0b18192 100644 --- a/resources/batch-job-queue-states.go +++ b/resources/batch-job-queue-states.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/batch" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -23,7 +24,7 @@ type BatchJobQueueState struct { const BatchJobQueueStateResource = "BatchJobQueueState" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: BatchJobQueueStateResource, Scope: nuke.Account, Lister: &BatchJobQueueStateLister{}, diff --git a/resources/batch-job-queues.go b/resources/batch-job-queues.go index e17f58fc..bd3f7870 100644 --- a/resources/batch-job-queues.go +++ b/resources/batch-job-queues.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/batch" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const BatchJobQueueResource = "BatchJobQueue" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: BatchJobQueueResource, Scope: nuke.Account, Lister: &BatchJobQueueLister{}, diff --git a/resources/billing-costandusagereports.go b/resources/billing-costandusagereports.go index 2eee591e..7d40588d 100644 --- a/resources/billing-costandusagereports.go +++ b/resources/billing-costandusagereports.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/costandusagereportservice" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const BillingCostandUsageReportResource = "BillingCostandUsageReport" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: BillingCostandUsageReportResource, Scope: nuke.Account, Lister: &BillingCostandUsageReportLister{}, diff --git a/resources/budgets.go b/resources/budgets.go index 57799327..54704be3 100644 --- a/resources/budgets.go +++ b/resources/budgets.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/service/budgets" "github.com/aws/aws-sdk-go/service/sts" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const BudgetResource = "Budget" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: BudgetResource, Scope: nuke.Account, Lister: &BudgetLister{}, diff --git a/resources/cloud9-environments.go b/resources/cloud9-environments.go index 9a152dce..fc33e4e9 100644 --- a/resources/cloud9-environments.go +++ b/resources/cloud9-environments.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/cloud9" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -19,7 +20,7 @@ type Cloud9Environment struct { const Cloud9EnvironmentResource = "Cloud9Environment" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: Cloud9EnvironmentResource, Scope: nuke.Account, Lister: &Cloud9EnvironmentLister{}, diff --git a/resources/cloudcontrol.go b/resources/cloudcontrol.go index f4ec6f2e..a225ee4b 100644 --- a/resources/cloudcontrol.go +++ b/resources/cloudcontrol.go @@ -15,6 +15,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/cloudcontrolapi" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -53,7 +54,7 @@ func init() { } func registerCloudControl(typeName string) { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: typeName, Scope: nuke.Account, Lister: &CloudControlResourceLister{ diff --git a/resources/clouddirectory-directories.go b/resources/clouddirectory-directories.go index 4c4b3572..8e12261a 100644 --- a/resources/clouddirectory-directories.go +++ b/resources/clouddirectory-directories.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/clouddirectory" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const CloudDirectoryDirectoryResource = "CloudDirectoryDirectory" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CloudDirectoryDirectoryResource, Scope: nuke.Account, Lister: &CloudDirectoryDirectoryLister{}, diff --git a/resources/clouddirectory-schemas.go b/resources/clouddirectory-schemas.go index a6aa4f49..9b8314bc 100644 --- a/resources/clouddirectory-schemas.go +++ b/resources/clouddirectory-schemas.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/clouddirectory" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const CloudDirectorySchemaResource = "CloudDirectorySchema" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CloudDirectorySchemaResource, Scope: nuke.Account, Lister: &CloudDirectorySchemaLister{}, diff --git a/resources/cloudformation-stack.go b/resources/cloudformation-stack.go index 7d8c7555..97c7b1f2 100644 --- a/resources/cloudformation-stack.go +++ b/resources/cloudformation-stack.go @@ -16,6 +16,7 @@ import ( "github.com/aws/aws-sdk-go/service/cloudformation/cloudformationiface" liberrors "github.com/ekristen/libnuke/pkg/errors" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -27,7 +28,7 @@ const CloudformationMaxDeleteAttempt = 3 const CloudFormationStackResource = "CloudFormationStack" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CloudFormationStackResource, Scope: nuke.Account, Lister: &CloudFormationStackLister{}, diff --git a/resources/cloudformation-stackset.go b/resources/cloudformation-stackset.go index e6c0fc50..56b859b1 100644 --- a/resources/cloudformation-stackset.go +++ b/resources/cloudformation-stackset.go @@ -4,6 +4,7 @@ import ( "context" "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "fmt" @@ -21,7 +22,7 @@ import ( const CloudFormationStackSetResource = "CloudFormationStackSet" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CloudFormationStackSetResource, Scope: nuke.Account, Lister: &CloudFormationStackSetLister{}, diff --git a/resources/cloudformation-type.go b/resources/cloudformation-type.go index d701d53d..8f944ff2 100644 --- a/resources/cloudformation-type.go +++ b/resources/cloudformation-type.go @@ -10,6 +10,7 @@ import ( "github.com/aws/aws-sdk-go/service/cloudformation" "github.com/aws/aws-sdk-go/service/cloudformation/cloudformationiface" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -19,7 +20,7 @@ import ( const CloudFormationTypeResource = "CloudFormationType" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CloudFormationTypeResource, Scope: nuke.Account, Lister: &CloudFormationTypeLister{}, diff --git a/resources/cloudfront-distribution-deployments.go b/resources/cloudfront-distribution-deployments.go index d31cd71e..1f379216 100644 --- a/resources/cloudfront-distribution-deployments.go +++ b/resources/cloudfront-distribution-deployments.go @@ -10,6 +10,7 @@ import ( "github.com/aws/aws-sdk-go/service/cloudfront" "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" ) @@ -24,7 +25,7 @@ type CloudFrontDistributionDeployment struct { const CloudFrontDistributionDeploymentResource = "CloudFrontDistributionDeployment" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CloudFrontDistributionDeploymentResource, Scope: nuke.Account, Lister: &CloudFrontDistributionDeploymentLister{}, diff --git a/resources/cloudfront-distributions.go b/resources/cloudfront-distributions.go index 21dc9412..1bc3ff93 100644 --- a/resources/cloudfront-distributions.go +++ b/resources/cloudfront-distributions.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/cloudfront" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const CloudFrontDistributionResource = "CloudFrontDistribution" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CloudFrontDistributionResource, Scope: nuke.Account, Lister: &CloudFrontDistributionLister{}, diff --git a/resources/cloudfront-function.go b/resources/cloudfront-function.go index c0dcb1af..2207ef73 100644 --- a/resources/cloudfront-function.go +++ b/resources/cloudfront-function.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/cloudfront" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const CloudFrontFunctionResource = "CloudFrontFunction" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CloudFrontFunctionResource, Scope: nuke.Account, Lister: &CloudFrontFunctionLister{}, diff --git a/resources/cloudfront-key-groups.go b/resources/cloudfront-key-groups.go index a760bec3..f7cd402d 100644 --- a/resources/cloudfront-key-groups.go +++ b/resources/cloudfront-key-groups.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/service/cloudfront" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -22,7 +23,7 @@ type CloudFrontKeyGroup struct { const CloudFrontKeyGroupResource = "CloudFrontKeyGroup" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CloudFrontKeyGroupResource, Scope: nuke.Account, Lister: &CloudFrontKeyGroupLister{}, diff --git a/resources/cloudfront-origin-access-control.go b/resources/cloudfront-origin-access-control.go index dc5c2af1..3f8567fc 100644 --- a/resources/cloudfront-origin-access-control.go +++ b/resources/cloudfront-origin-access-control.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/cloudfront" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const CloudFrontOriginAccessControlResource = "CloudFrontOriginAccessControl" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CloudFrontOriginAccessControlResource, Scope: nuke.Account, Lister: &CloudFrontOriginAccessControlLister{}, diff --git a/resources/cloudfront-origin-access-identities.go b/resources/cloudfront-origin-access-identities.go index ce1f503a..c95f5e59 100644 --- a/resources/cloudfront-origin-access-identities.go +++ b/resources/cloudfront-origin-access-identities.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/cloudfront" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const CloudFrontOriginAccessIdentityResource = "CloudFrontOriginAccessIdentity" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CloudFrontOriginAccessIdentityResource, Scope: nuke.Account, Lister: &CloudFrontOriginAccessIdentityLister{}, diff --git a/resources/cloudfront-origin-request-policy.go b/resources/cloudfront-origin-request-policy.go index db009806..591ff7f5 100644 --- a/resources/cloudfront-origin-request-policy.go +++ b/resources/cloudfront-origin-request-policy.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/cloudfront" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -19,7 +20,7 @@ type CloudFrontOriginRequestPolicy struct { const CloudFrontOriginRequestPolicyResource = "CloudFrontOriginRequestPolicy" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CloudFrontOriginRequestPolicyResource, Scope: nuke.Account, Lister: &CloudFrontOriginRequestPolicyLister{}, diff --git a/resources/cloudfront-public-keys.go b/resources/cloudfront-public-keys.go index 4a117a2b..19ea3ff7 100644 --- a/resources/cloudfront-public-keys.go +++ b/resources/cloudfront-public-keys.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/service/cloudfront" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -22,7 +23,7 @@ type CloudFrontPublicKey struct { const CloudFrontPublicKeyResource = "CloudFrontPublicKey" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CloudFrontPublicKeyResource, Scope: nuke.Account, Lister: &CloudFrontPublicKeyLister{}, diff --git a/resources/cloudhsmv2-cluster.go b/resources/cloudhsmv2-cluster.go index a622b9ac..6d8a5c41 100644 --- a/resources/cloudhsmv2-cluster.go +++ b/resources/cloudhsmv2-cluster.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/cloudhsmv2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const CloudHSMV2ClusterResource = "CloudHSMV2Cluster" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CloudHSMV2ClusterResource, Scope: nuke.Account, Lister: &CloudHSMV2ClusterLister{}, diff --git a/resources/cloudhsmv2-clusterhsms.go b/resources/cloudhsmv2-clusterhsms.go index 882211b9..809f02e7 100644 --- a/resources/cloudhsmv2-clusterhsms.go +++ b/resources/cloudhsmv2-clusterhsms.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/cloudhsmv2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const CloudHSMV2ClusterHSMResource = "CloudHSMV2ClusterHSM" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CloudHSMV2ClusterHSMResource, Scope: nuke.Account, Lister: &CloudHSMV2ClusterHSMLister{}, diff --git a/resources/cloudsearch-domains.go b/resources/cloudsearch-domains.go index dc1c88f1..9d38781e 100644 --- a/resources/cloudsearch-domains.go +++ b/resources/cloudsearch-domains.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/cloudsearch" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -13,7 +14,7 @@ import ( const CloudSearchDomainResource = "CloudSearchDomain" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CloudSearchDomainResource, Scope: nuke.Account, Lister: &CloudSearchDomainLister{}, diff --git a/resources/cloudtrail-trails.go b/resources/cloudtrail-trails.go index 8265478d..1d957a1f 100644 --- a/resources/cloudtrail-trails.go +++ b/resources/cloudtrail-trails.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/cloudtrail" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const CloudTrailTrailResource = "CloudTrailTrail" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CloudTrailTrailResource, Scope: nuke.Account, Lister: &CloudTrailTrailLister{}, diff --git a/resources/cloudwatch-alarms.go b/resources/cloudwatch-alarms.go index 06328687..cb39a41f 100644 --- a/resources/cloudwatch-alarms.go +++ b/resources/cloudwatch-alarms.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/cloudwatch" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const CloudWatchAlarmResource = "CloudWatchAlarm" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CloudWatchAlarmResource, Scope: nuke.Account, Lister: &CloudWatchAlarmLister{}, diff --git a/resources/cloudwatch-dashboards.go b/resources/cloudwatch-dashboards.go index 08ea77fc..7fd731a6 100644 --- a/resources/cloudwatch-dashboards.go +++ b/resources/cloudwatch-dashboards.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/cloudwatch" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -13,7 +14,7 @@ import ( const CloudWatchDashboardResource = "CloudWatchDashboard" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CloudWatchDashboardResource, Scope: nuke.Account, Lister: &CloudWatchDashboardLister{}, diff --git a/resources/cloudwatch-rum.go b/resources/cloudwatch-rum.go index b2953b56..cb32f057 100644 --- a/resources/cloudwatch-rum.go +++ b/resources/cloudwatch-rum.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/cloudwatchrum" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const CloudWatchRUMAppResource = "CloudWatchRUMApp" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CloudWatchRUMAppResource, Scope: nuke.Account, Lister: &CloudWatchRUMAppLister{}, diff --git a/resources/cloudwatchevents-buses.go b/resources/cloudwatchevents-buses.go index 71da5e9f..a17340f9 100644 --- a/resources/cloudwatchevents-buses.go +++ b/resources/cloudwatchevents-buses.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/cloudwatchevents" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -13,7 +14,7 @@ import ( const CloudWatchEventsBusesResource = "CloudWatchEventsBuses" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CloudWatchEventsBusesResource, Scope: nuke.Account, Lister: &CloudWatchEventsBusesLister{}, diff --git a/resources/cloudwatchevents-rules.go b/resources/cloudwatchevents-rules.go index cb58ad6f..97980715 100644 --- a/resources/cloudwatchevents-rules.go +++ b/resources/cloudwatchevents-rules.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/cloudwatchevents" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -16,7 +17,7 @@ import ( const CloudWatchEventsRuleResource = "CloudWatchEventsRule" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CloudWatchEventsRuleResource, Scope: nuke.Account, Lister: &CloudWatchEventsRuleLister{}, diff --git a/resources/cloudwatchevents-targets.go b/resources/cloudwatchevents-targets.go index 65c3b318..1fc7a52c 100644 --- a/resources/cloudwatchevents-targets.go +++ b/resources/cloudwatchevents-targets.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/cloudwatchevents" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -16,7 +17,7 @@ import ( const CloudWatchEventsTargetResource = "CloudWatchEventsTarget" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CloudWatchEventsTargetResource, Scope: nuke.Account, Lister: &CloudWatchEventsTargetLister{}, diff --git a/resources/cloudwatchlogs-destinations.go b/resources/cloudwatchlogs-destinations.go index bd50102f..e9383bc4 100644 --- a/resources/cloudwatchlogs-destinations.go +++ b/resources/cloudwatchlogs-destinations.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/cloudwatchlogs" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const CloudWatchLogsDestinationResource = "CloudWatchLogsDestination" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CloudWatchLogsDestinationResource, Scope: nuke.Account, Lister: &CloudWatchLogsDestinationLister{}, diff --git a/resources/cloudwatchlogs-loggroups.go b/resources/cloudwatchlogs-loggroups.go index 30e5cedb..3840218d 100644 --- a/resources/cloudwatchlogs-loggroups.go +++ b/resources/cloudwatchlogs-loggroups.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/cloudwatchlogs" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -18,7 +19,7 @@ import ( const CloudWatchLogsLogGroupResource = "CloudWatchLogsLogGroup" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CloudWatchLogsLogGroupResource, Scope: nuke.Account, Lister: &CloudWatchLogsLogGroupLister{}, diff --git a/resources/cloudwatchlogs-resourcepolicy.go b/resources/cloudwatchlogs-resourcepolicy.go index e31eb8cd..5547ccb1 100644 --- a/resources/cloudwatchlogs-resourcepolicy.go +++ b/resources/cloudwatchlogs-resourcepolicy.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/cloudwatchlogs" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const CloudWatchLogsResourcePolicyResource = "CloudWatchLogsResourcePolicy" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CloudWatchLogsResourcePolicyResource, Scope: nuke.Account, Lister: &CloudWatchLogsResourcePolicyLister{}, diff --git a/resources/codeartifact-domains.go b/resources/codeartifact-domains.go index d2bd6aa6..96643a2f 100644 --- a/resources/codeartifact-domains.go +++ b/resources/codeartifact-domains.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/codeartifact" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const CodeArtifactDomainResource = "CodeArtifactDomain" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CodeArtifactDomainResource, Scope: nuke.Account, Lister: &CodeArtifactDomainLister{}, diff --git a/resources/codeartifact-repositories.go b/resources/codeartifact-repositories.go index 3153e428..3ceb9e1c 100644 --- a/resources/codeartifact-repositories.go +++ b/resources/codeartifact-repositories.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/codeartifact" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const CodeArtifactRepositoryResource = "CodeArtifactRepository" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CodeArtifactRepositoryResource, Scope: nuke.Account, Lister: &CodeArtifactRepositoryLister{}, diff --git a/resources/codebuild-projects.go b/resources/codebuild-projects.go index c12b7495..6128a5de 100644 --- a/resources/codebuild-projects.go +++ b/resources/codebuild-projects.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/codebuild" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const CodeBuildProjectResource = "CodeBuildProject" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CodeBuildProjectResource, Scope: nuke.Account, Lister: &CodeBuildProjectLister{}, diff --git a/resources/codecommit-repositories.go b/resources/codecommit-repositories.go index 6283768e..bfdcc617 100644 --- a/resources/codecommit-repositories.go +++ b/resources/codecommit-repositories.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/codecommit" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -13,7 +14,7 @@ import ( const CodeCommitRepositoryResource = "CodeCommitRepository" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CodeCommitRepositoryResource, Scope: nuke.Account, Lister: &CodeCommitRepositoryLister{}, diff --git a/resources/codedeploy-applications.go b/resources/codedeploy-applications.go index 82559726..461789d7 100644 --- a/resources/codedeploy-applications.go +++ b/resources/codedeploy-applications.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/codedeploy" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -13,7 +14,7 @@ import ( const CodeDeployApplicationResource = "CodeDeployApplication" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CodeDeployApplicationResource, Scope: nuke.Account, Lister: &CodeDeployApplicationLister{}, diff --git a/resources/codepipeline-pipelines.go b/resources/codepipeline-pipelines.go index d12803b4..3b7f44ed 100644 --- a/resources/codepipeline-pipelines.go +++ b/resources/codepipeline-pipelines.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/codepipeline" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -13,7 +14,7 @@ import ( const CodePipelinePipelineResource = "CodePipelinePipeline" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CodePipelinePipelineResource, Scope: nuke.Account, Lister: &CodePipelinePipelineLister{}, diff --git a/resources/codestar-connections.go b/resources/codestar-connections.go index eb7a6899..5a063354 100644 --- a/resources/codestar-connections.go +++ b/resources/codestar-connections.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/codestarconnections" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const CodeStarConnectionResource = "CodeStarConnection" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CodeStarConnectionResource, Scope: nuke.Account, Lister: &CodeStarConnectionLister{}, diff --git a/resources/codestar-notifications.go b/resources/codestar-notifications.go index 7241d358..254354d3 100644 --- a/resources/codestar-notifications.go +++ b/resources/codestar-notifications.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/codestarnotifications" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const CodeStarNotificationRuleResource = "CodeStarNotificationRule" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CodeStarNotificationRuleResource, Scope: nuke.Account, Lister: &CodeStarNotificationRuleLister{}, diff --git a/resources/codestar-projects.go b/resources/codestar-projects.go index 101aff14..03765948 100644 --- a/resources/codestar-projects.go +++ b/resources/codestar-projects.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/codestar" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const CodeStarProjectResource = "CodeStarProject" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CodeStarProjectResource, Scope: nuke.Account, Lister: &CodeStarProjectLister{}, diff --git a/resources/cognito-identity-providers.go b/resources/cognito-identity-providers.go index 29a8a646..4ad9cfda 100644 --- a/resources/cognito-identity-providers.go +++ b/resources/cognito-identity-providers.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/cognitoidentityprovider" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const CognitoIdentityProviderResource = "CognitoIdentityProvider" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CognitoIdentityProviderResource, Scope: nuke.Account, Lister: &CognitoIdentityProviderLister{}, diff --git a/resources/cognito-identitypools.go b/resources/cognito-identitypools.go index 26ca20f5..a5735451 100644 --- a/resources/cognito-identitypools.go +++ b/resources/cognito-identitypools.go @@ -4,6 +4,7 @@ import ( "context" "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/aws/aws-sdk-go/aws" @@ -20,7 +21,7 @@ type CognitoIdentityPool struct { const CognitoIdentityPoolResource = "CognitoIdentityPool" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CognitoIdentityPoolResource, Scope: nuke.Account, Lister: &CognitoIdentityPoolLister{}, diff --git a/resources/cognito-userpool-clients.go b/resources/cognito-userpool-clients.go index 6f426315..0ec1ed68 100644 --- a/resources/cognito-userpool-clients.go +++ b/resources/cognito-userpool-clients.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/cognitoidentityprovider" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const CognitoUserPoolClientResource = "CognitoUserPoolClient" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CognitoUserPoolClientResource, Scope: nuke.Account, Lister: &CognitoUserPoolClientLister{}, diff --git a/resources/cognito-userpool-domains.go b/resources/cognito-userpool-domains.go index 15cb23e2..5a5669f4 100644 --- a/resources/cognito-userpool-domains.go +++ b/resources/cognito-userpool-domains.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/cognitoidentityprovider" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -15,7 +16,7 @@ import ( const CognitoUserPoolDomainResource = "CognitoUserPoolDomain" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CognitoUserPoolDomainResource, Scope: nuke.Account, Lister: &CognitoUserPoolDomainLister{}, diff --git a/resources/cognito-userpools.go b/resources/cognito-userpools.go index 01169786..0c1ebb2e 100644 --- a/resources/cognito-userpools.go +++ b/resources/cognito-userpools.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/cognitoidentityprovider" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const CognitoUserPoolResource = "CognitoUserPool" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: CognitoUserPoolResource, Scope: nuke.Account, Lister: &CognitoUserPoolLister{}, diff --git a/resources/comprehend-document-classifier.go b/resources/comprehend-document-classifier.go index 2eb6440d..8792161a 100644 --- a/resources/comprehend-document-classifier.go +++ b/resources/comprehend-document-classifier.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/comprehend" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -16,7 +17,7 @@ import ( const ComprehendDocumentClassifierResource = "ComprehendDocumentClassifier" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ComprehendDocumentClassifierResource, Scope: nuke.Account, Lister: &ComprehendDocumentClassifierLister{}, diff --git a/resources/comprehend-dominant-language-detection-job.go b/resources/comprehend-dominant-language-detection-job.go index d5710105..809b7dd6 100644 --- a/resources/comprehend-dominant-language-detection-job.go +++ b/resources/comprehend-dominant-language-detection-job.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/comprehend" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const ComprehendDominantLanguageDetectionJobResource = "ComprehendDominantLanguageDetectionJob" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ComprehendDominantLanguageDetectionJobResource, Scope: nuke.Account, Lister: &ComprehendDominantLanguageDetectionJobLister{}, diff --git a/resources/comprehend-endpoint.go b/resources/comprehend-endpoint.go index 737bec14..24e858ff 100644 --- a/resources/comprehend-endpoint.go +++ b/resources/comprehend-endpoint.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/comprehend" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const ComprehendEndpointResource = "ComprehendEndpoint" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ComprehendEndpointResource, Scope: nuke.Account, Lister: &ComprehendEndpointLister{}, diff --git a/resources/comprehend-entities-detection-job.go b/resources/comprehend-entities-detection-job.go index 52749232..db1ea58e 100644 --- a/resources/comprehend-entities-detection-job.go +++ b/resources/comprehend-entities-detection-job.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/comprehend" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const ComprehendEntitiesDetectionJobResource = "ComprehendEntitiesDetectionJob" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ComprehendEntitiesDetectionJobResource, Scope: nuke.Account, Lister: &ComprehendEntitiesDetectionJobLister{}, diff --git a/resources/comprehend-entity-recognizer.go b/resources/comprehend-entity-recognizer.go index c2f9e2a5..5b30a12c 100644 --- a/resources/comprehend-entity-recognizer.go +++ b/resources/comprehend-entity-recognizer.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/comprehend" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -16,7 +17,7 @@ import ( const ComprehendEntityRecognizerResource = "ComprehendEntityRecognizer" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ComprehendEntityRecognizerResource, Scope: nuke.Account, Lister: &ComprehendEntityRecognizerLister{}, diff --git a/resources/comprehend-events-detection-job.go b/resources/comprehend-events-detection-job.go index cc5d7ef1..4443902c 100644 --- a/resources/comprehend-events-detection-job.go +++ b/resources/comprehend-events-detection-job.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/comprehend" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const ComprehendEventsDetectionJobResource = "ComprehendEventsDetectionJob" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ComprehendEventsDetectionJobResource, Scope: nuke.Account, Lister: &ComprehendEventsDetectionJobLister{}, diff --git a/resources/comprehend-key-phrases-detection-job.go b/resources/comprehend-key-phrases-detection-job.go index 71c02c2b..2c95a40d 100644 --- a/resources/comprehend-key-phrases-detection-job.go +++ b/resources/comprehend-key-phrases-detection-job.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/comprehend" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const ComprehendKeyPhrasesDetectionJobResource = "ComprehendKeyPhrasesDetectionJob" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ComprehendKeyPhrasesDetectionJobResource, Scope: nuke.Account, Lister: &ComprehendKeyPhrasesDetectionJobLister{}, diff --git a/resources/comprehend-pii-entities-detection-job.go b/resources/comprehend-pii-entities-detection-job.go index 1ee7250a..51a2bdbf 100644 --- a/resources/comprehend-pii-entities-detection-job.go +++ b/resources/comprehend-pii-entities-detection-job.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/comprehend" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const ComprehendPiiEntitiesDetectionJobResource = "ComprehendPiiEntitiesDetectionJob" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ComprehendPiiEntitiesDetectionJobResource, Scope: nuke.Account, Lister: &ComprehendPiiEntitiesDetectionJobLister{}, diff --git a/resources/comprehend-sentiment-detection-job.go b/resources/comprehend-sentiment-detection-job.go index d516741e..523ccc38 100644 --- a/resources/comprehend-sentiment-detection-job.go +++ b/resources/comprehend-sentiment-detection-job.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/comprehend" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const ComprehendSentimentDetectionJobResource = "ComprehendSentimentDetectionJob" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ComprehendSentimentDetectionJobResource, Scope: nuke.Account, Lister: &ComprehendSentimentDetectionJobLister{}, diff --git a/resources/comprehend-targeted-sentiment-detection-job.go b/resources/comprehend-targeted-sentiment-detection-job.go index f8839653..c03b0d4f 100644 --- a/resources/comprehend-targeted-sentiment-detection-job.go +++ b/resources/comprehend-targeted-sentiment-detection-job.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/comprehend" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const ComprehendTargetedSentimentDetectionJobResource = "ComprehendTargetedSentimentDetectionJob" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ComprehendTargetedSentimentDetectionJobResource, Scope: nuke.Account, Lister: &ComprehendTargetedSentimentDetectionJobLister{}, diff --git a/resources/configservice-configrules.go b/resources/configservice-configrules.go index d53d1b30..0efe6692 100644 --- a/resources/configservice-configrules.go +++ b/resources/configservice-configrules.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/configservice" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -16,7 +17,7 @@ import ( const ConfigServiceConfigRuleResource = "ConfigServiceConfigRule" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ConfigServiceConfigRuleResource, Scope: nuke.Account, Lister: &ConfigServiceConfigRuleLister{}, diff --git a/resources/configservice-configurationrecorders.go b/resources/configservice-configurationrecorders.go index bd111275..80ce5cec 100644 --- a/resources/configservice-configurationrecorders.go +++ b/resources/configservice-configurationrecorders.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/configservice" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -13,7 +14,7 @@ import ( const ConfigServiceConfigurationRecorderResource = "ConfigServiceConfigurationRecorder" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ConfigServiceConfigurationRecorderResource, Scope: nuke.Account, Lister: &ConfigServiceConfigurationRecorderLister{}, diff --git a/resources/configservice-deliverychannels.go b/resources/configservice-deliverychannels.go index 50c0d186..db4663a3 100644 --- a/resources/configservice-deliverychannels.go +++ b/resources/configservice-deliverychannels.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/configservice" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -13,7 +14,7 @@ import ( const ConfigServiceDeliveryChannelResource = "ConfigServiceDeliveryChannel" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ConfigServiceDeliveryChannelResource, Scope: nuke.Account, Lister: &ConfigServiceDeliveryChannelLister{}, diff --git a/resources/databasemigrationservice-certificates.go b/resources/databasemigrationservice-certificates.go index 9d405833..5acc7b3e 100644 --- a/resources/databasemigrationservice-certificates.go +++ b/resources/databasemigrationservice-certificates.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/databasemigrationservice" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const DatabaseMigrationServiceCertificateResource = "DatabaseMigrationServiceCertificate" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: DatabaseMigrationServiceCertificateResource, Scope: nuke.Account, Lister: &DatabaseMigrationServiceCertificateLister{}, diff --git a/resources/databasemigrationservice-endpoints.go b/resources/databasemigrationservice-endpoints.go index 3ad2d33a..d0c2813e 100644 --- a/resources/databasemigrationservice-endpoints.go +++ b/resources/databasemigrationservice-endpoints.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/databasemigrationservice" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const DatabaseMigrationServiceEndpointResource = "DatabaseMigrationServiceEndpoint" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: DatabaseMigrationServiceEndpointResource, Scope: nuke.Account, Lister: &DatabaseMigrationServiceEndpointLister{}, diff --git a/resources/databasemigrationservice-eventsubscriptions.go b/resources/databasemigrationservice-eventsubscriptions.go index c19d02ab..576c4ef8 100644 --- a/resources/databasemigrationservice-eventsubscriptions.go +++ b/resources/databasemigrationservice-eventsubscriptions.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/databasemigrationservice" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const DatabaseMigrationServiceEventSubscriptionResource = "DatabaseMigrationServiceEventSubscription" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: DatabaseMigrationServiceEventSubscriptionResource, Scope: nuke.Account, Lister: &DatabaseMigrationServiceEventSubscriptionLister{}, diff --git a/resources/databasemigrationservice-replicationinstances.go b/resources/databasemigrationservice-replicationinstances.go index 7ec39b88..60dcfe75 100644 --- a/resources/databasemigrationservice-replicationinstances.go +++ b/resources/databasemigrationservice-replicationinstances.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/databasemigrationservice" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const DatabaseMigrationServiceReplicationInstanceResource = "DatabaseMigrationServiceReplicationInstance" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: DatabaseMigrationServiceReplicationInstanceResource, Scope: nuke.Account, Lister: &DatabaseMigrationServiceReplicationInstanceLister{}, diff --git a/resources/databasemigrationservice-replicationtasks.go b/resources/databasemigrationservice-replicationtasks.go index d120628c..5cdebe5a 100644 --- a/resources/databasemigrationservice-replicationtasks.go +++ b/resources/databasemigrationservice-replicationtasks.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/databasemigrationservice" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const DatabaseMigrationServiceReplicationTaskResource = "DatabaseMigrationServiceReplicationTask" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: DatabaseMigrationServiceReplicationTaskResource, Scope: nuke.Account, Lister: &DatabaseMigrationServiceReplicationTaskLister{}, diff --git a/resources/databasemigrationservice-subnetgroups.go b/resources/databasemigrationservice-subnetgroups.go index 46df5c4a..326f4659 100644 --- a/resources/databasemigrationservice-subnetgroups.go +++ b/resources/databasemigrationservice-subnetgroups.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/databasemigrationservice" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const DatabaseMigrationServiceSubnetGroupResource = "DatabaseMigrationServiceSubnetGroup" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: DatabaseMigrationServiceSubnetGroupResource, Scope: nuke.Account, Lister: &DatabaseMigrationServiceSubnetGroupLister{}, diff --git a/resources/datapipeline-pipelines.go b/resources/datapipeline-pipelines.go index ad691435..06b2fcc2 100644 --- a/resources/datapipeline-pipelines.go +++ b/resources/datapipeline-pipelines.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/datapipeline" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -13,7 +14,7 @@ import ( const DataPipelinePipelineResource = "DataPipelinePipeline" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: DataPipelinePipelineResource, Scope: nuke.Account, Lister: &DataPipelinePipelineLister{}, diff --git a/resources/dax-clusters.go b/resources/dax-clusters.go index 56b42b38..ed616a66 100644 --- a/resources/dax-clusters.go +++ b/resources/dax-clusters.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/dax" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const DAXClusterResource = "DAXCluster" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: DAXClusterResource, Scope: nuke.Account, Lister: &DAXClusterLister{}, diff --git a/resources/dax-parametergroups.go b/resources/dax-parametergroups.go index b42daed0..7364b28c 100644 --- a/resources/dax-parametergroups.go +++ b/resources/dax-parametergroups.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/dax" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -21,7 +22,7 @@ type DAXParameterGroup struct { const DAXParameterGroupResource = "DAXParameterGroup" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: DAXParameterGroupResource, Scope: nuke.Account, Lister: &DAXParameterGroupLister{}, diff --git a/resources/dax-subnetgroups.go b/resources/dax-subnetgroups.go index 2a775028..7dc1a2c7 100644 --- a/resources/dax-subnetgroups.go +++ b/resources/dax-subnetgroups.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/dax" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -16,7 +17,7 @@ import ( const DAXSubnetGroupResource = "DAXSubnetGroup" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: DAXSubnetGroupResource, Scope: nuke.Account, Lister: &DAXSubnetGroupLister{}, diff --git a/resources/devicefarm-projects.go b/resources/devicefarm-projects.go index 7c9b9f7d..6de198d5 100644 --- a/resources/devicefarm-projects.go +++ b/resources/devicefarm-projects.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/devicefarm" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -13,7 +14,7 @@ import ( const DeviceFarmProjectResource = "DeviceFarmProject" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: DeviceFarmProjectResource, Scope: nuke.Account, Lister: &DeviceFarmProjectLister{}, diff --git a/resources/directoryservice-directories.go b/resources/directoryservice-directories.go index 1d2b76ee..935b082e 100644 --- a/resources/directoryservice-directories.go +++ b/resources/directoryservice-directories.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/directoryservice" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const DirectoryServiceDirectoryResource = "DirectoryServiceDirectory" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: DirectoryServiceDirectoryResource, Scope: nuke.Account, Lister: &DirectoryServiceDirectoryLister{}, diff --git a/resources/dynamodb-items.go b/resources/dynamodb-items.go index 2e440226..9d0c54bf 100644 --- a/resources/dynamodb-items.go +++ b/resources/dynamodb-items.go @@ -10,6 +10,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/dynamodb" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -19,7 +20,7 @@ import ( const DynamoDBTableItemResource = "DynamoDBTableItem" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: DynamoDBTableItemResource, Scope: nuke.Account, Lister: &DynamoDBTableItemLister{}, diff --git a/resources/dynamodb-tables.go b/resources/dynamodb-tables.go index 232ecc9a..e89c6fb9 100644 --- a/resources/dynamodb-tables.go +++ b/resources/dynamodb-tables.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/dynamodb" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const DynamoDBTableResource = "DynamoDBTable" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: DynamoDBTableResource, Scope: nuke.Account, Lister: &DynamoDBTableLister{}, diff --git a/resources/ec2-client-vpn-endpoint-attachment.go b/resources/ec2-client-vpn-endpoint-attachment.go index 9b615eb7..a1d36c25 100644 --- a/resources/ec2-client-vpn-endpoint-attachment.go +++ b/resources/ec2-client-vpn-endpoint-attachment.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/service/ec2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -17,7 +18,7 @@ import ( const EC2ClientVpnEndpointAttachmentResource = "EC2ClientVpnEndpointAttachment" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EC2ClientVpnEndpointAttachmentResource, Scope: nuke.Account, Lister: &EC2ClientVpnEndpointAttachmentLister{}, diff --git a/resources/ec2-client-vpn-endpoint.go b/resources/ec2-client-vpn-endpoint.go index 0df4803e..e59a4b44 100644 --- a/resources/ec2-client-vpn-endpoint.go +++ b/resources/ec2-client-vpn-endpoint.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/ec2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const EC2ClientVpnEndpointResource = "EC2ClientVpnEndpoint" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EC2ClientVpnEndpointResource, Scope: nuke.Account, Lister: &EC2ClientVpnEndpointLister{}, diff --git a/resources/ec2-customer-gateway.go b/resources/ec2-customer-gateway.go index b4164363..b71dc96a 100644 --- a/resources/ec2-customer-gateway.go +++ b/resources/ec2-customer-gateway.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/ec2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -15,7 +16,7 @@ import ( const EC2CustomerGatewayResource = "EC2CustomerGateway" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EC2CustomerGatewayResource, Scope: nuke.Account, Lister: &EC2CustomerGatewayLister{}, diff --git a/resources/ec2-default-security-group-rules.go b/resources/ec2-default-security-group-rules.go index 3078b1a7..fd7465a3 100644 --- a/resources/ec2-default-security-group-rules.go +++ b/resources/ec2-default-security-group-rules.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ec2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const EC2DefaultSecurityGroupRuleResource = "EC2DefaultSecurityGroupRule" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EC2DefaultSecurityGroupRuleResource, Scope: nuke.Account, Lister: &EC2DefaultSecurityGroupRuleLister{}, diff --git a/resources/ec2-dhcp-options.go b/resources/ec2-dhcp-options.go index 26d3dba8..c7a73824 100644 --- a/resources/ec2-dhcp-options.go +++ b/resources/ec2-dhcp-options.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/ec2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -16,7 +17,7 @@ import ( const EC2DHCPOptionResource = "EC2DHCPOption" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EC2DHCPOptionResource, Scope: nuke.Account, Lister: &EC2DHCPOptionLister{}, diff --git a/resources/ec2-egress-only-internet-gateways.go b/resources/ec2-egress-only-internet-gateways.go index 77be43f9..98a82570 100644 --- a/resources/ec2-egress-only-internet-gateways.go +++ b/resources/ec2-egress-only-internet-gateways.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ec2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const EC2EgressOnlyInternetGatewayResource = "EC2EgressOnlyInternetGateway" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EC2EgressOnlyInternetGatewayResource, Scope: nuke.Account, Lister: &EC2EgressOnlyInternetGatewayLister{}, diff --git a/resources/ec2-eip.go b/resources/ec2-eip.go index d929d94b..f51af49d 100644 --- a/resources/ec2-eip.go +++ b/resources/ec2-eip.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/ec2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -16,7 +17,7 @@ import ( const EC2AddressResource = "EC2Address" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EC2AddressResource, Scope: nuke.Account, Lister: &EC2AddressLister{}, diff --git a/resources/ec2-host.go b/resources/ec2-host.go index a660219c..712a1e6b 100644 --- a/resources/ec2-host.go +++ b/resources/ec2-host.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/service/ec2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const EC2HostResource = "EC2Host" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EC2HostResource, Scope: nuke.Account, Lister: &EC2HostLister{}, diff --git a/resources/ec2-image.go b/resources/ec2-image.go index fead58f5..665ac1de 100644 --- a/resources/ec2-image.go +++ b/resources/ec2-image.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ec2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const EC2ImageResource = "EC2Image" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EC2ImageResource, Scope: nuke.Account, Lister: &EC2ImageLister{}, diff --git a/resources/ec2-instance-connect-endpoint.go b/resources/ec2-instance-connect-endpoint.go index a49f408a..5513f824 100644 --- a/resources/ec2-instance-connect-endpoint.go +++ b/resources/ec2-instance-connect-endpoint.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/service/ec2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const EC2InstanceConnectEndpointResource = "EC2InstanceConnectEndpoint" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EC2InstanceConnectEndpointResource, Scope: nuke.Account, Lister: &EC2InstanceConnectEndpointLister{}, diff --git a/resources/ec2-instance.go b/resources/ec2-instance.go index 0ef641d8..d9ab9b4c 100644 --- a/resources/ec2-instance.go +++ b/resources/ec2-instance.go @@ -7,6 +7,7 @@ import ( "errors" "fmt" "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "time" @@ -19,7 +20,7 @@ import ( const EC2InstanceResource = "EC2Instance" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EC2InstanceResource, Scope: nuke.Account, Lister: &EC2InstanceLister{}, diff --git a/resources/ec2-internet-gateway-attachments.go b/resources/ec2-internet-gateway-attachments.go index b394c913..467af8b4 100644 --- a/resources/ec2-internet-gateway-attachments.go +++ b/resources/ec2-internet-gateway-attachments.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ec2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -18,7 +19,7 @@ import ( const EC2InternetGatewayAttachmentResource = "EC2InternetGatewayAttachment" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EC2InternetGatewayAttachmentResource, Scope: nuke.Account, Lister: &EC2InternetGatewayAttachmentLister{}, diff --git a/resources/ec2-internet-gateways.go b/resources/ec2-internet-gateways.go index 5f207d16..4e7fcda4 100644 --- a/resources/ec2-internet-gateways.go +++ b/resources/ec2-internet-gateways.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/service/ec2" "github.com/gotidy/ptr" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const EC2InternetGatewayResource = "EC2InternetGateway" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EC2InternetGatewayResource, Scope: nuke.Account, Lister: &EC2InternetGatewayLister{}, diff --git a/resources/ec2-key-pairs.go b/resources/ec2-key-pairs.go index fa1173cd..88a19c00 100644 --- a/resources/ec2-key-pairs.go +++ b/resources/ec2-key-pairs.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/ec2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const EC2KeyPairResource = "EC2KeyPair" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EC2KeyPairResource, Scope: nuke.Account, Lister: &EC2KeyPairLister{}, diff --git a/resources/ec2-launch-templates.go b/resources/ec2-launch-templates.go index cce4488c..4c732f25 100644 --- a/resources/ec2-launch-templates.go +++ b/resources/ec2-launch-templates.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/ec2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -16,7 +17,7 @@ import ( const EC2LaunchTemplateResource = "EC2LaunchTemplate" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EC2LaunchTemplateResource, Scope: nuke.Account, Lister: &EC2LaunchTemplateLister{}, diff --git a/resources/ec2-nat-gateways.go b/resources/ec2-nat-gateways.go index ff59528f..fe9e164e 100644 --- a/resources/ec2-nat-gateways.go +++ b/resources/ec2-nat-gateways.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/service/ec2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -18,7 +19,7 @@ import ( const EC2NATGatewayResource = "EC2NATGateway" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EC2NATGatewayResource, Scope: nuke.Account, Lister: &EC2NATGatewayLister{}, diff --git a/resources/ec2-network-acls.go b/resources/ec2-network-acls.go index 649b7941..d353cdc2 100644 --- a/resources/ec2-network-acls.go +++ b/resources/ec2-network-acls.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/service/ec2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -18,7 +19,7 @@ import ( const EC2NetworkACLResource = "EC2NetworkACL" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EC2NetworkACLResource, Scope: nuke.Account, Lister: &EC2NetworkACLLister{}, diff --git a/resources/ec2-network-interfaces.go b/resources/ec2-network-interfaces.go index b7bb6d01..084c427b 100644 --- a/resources/ec2-network-interfaces.go +++ b/resources/ec2-network-interfaces.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ec2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -18,7 +19,7 @@ import ( const EC2NetworkInterfaceResource = "EC2NetworkInterface" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EC2NetworkInterfaceResource, Scope: nuke.Account, Lister: &EC2NetworkInterfaceLister{}, diff --git a/resources/ec2-placement-groups.go b/resources/ec2-placement-groups.go index dcc995cb..2cd3e160 100644 --- a/resources/ec2-placement-groups.go +++ b/resources/ec2-placement-groups.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/ec2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -15,7 +16,7 @@ import ( const EC2PlacementGroupResource = "EC2PlacementGroup" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EC2PlacementGroupResource, Scope: nuke.Account, Lister: &EC2PlacementGroupLister{}, diff --git a/resources/ec2-route-tables.go b/resources/ec2-route-tables.go index 74dc02db..c195af2a 100644 --- a/resources/ec2-route-tables.go +++ b/resources/ec2-route-tables.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/service/ec2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const EC2RouteTableResource = "EC2RouteTable" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EC2RouteTableResource, Scope: nuke.Account, Lister: &EC2RouteTableLister{}, diff --git a/resources/ec2-security-groups.go b/resources/ec2-security-groups.go index e74c7012..727886e8 100644 --- a/resources/ec2-security-groups.go +++ b/resources/ec2-security-groups.go @@ -11,6 +11,7 @@ import ( "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" ) @@ -18,7 +19,7 @@ import ( const EC2SecurityGroupResource = "EC2SecurityGroup" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EC2SecurityGroupResource, Scope: nuke.Account, Lister: &EC2SecurityGroupLister{}, diff --git a/resources/ec2-snapshots.go b/resources/ec2-snapshots.go index e76a9256..b1f5f10c 100644 --- a/resources/ec2-snapshots.go +++ b/resources/ec2-snapshots.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ec2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -18,7 +19,7 @@ import ( const EC2SnapshotResource = "EC2Snapshot" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EC2SnapshotResource, Scope: nuke.Account, Lister: &EC2SnapshotLister{}, diff --git a/resources/ec2-spot-fleet-requests.go b/resources/ec2-spot-fleet-requests.go index 55338344..7424741d 100644 --- a/resources/ec2-spot-fleet-requests.go +++ b/resources/ec2-spot-fleet-requests.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ec2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -16,7 +17,7 @@ import ( const EC2SpotFleetRequestResource = "EC2SpotFleetRequest" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EC2SpotFleetRequestResource, Scope: nuke.Account, Lister: &EC2SpotFleetRequestLister{}, diff --git a/resources/ec2-subnets.go b/resources/ec2-subnets.go index 0838fa17..922100e9 100644 --- a/resources/ec2-subnets.go +++ b/resources/ec2-subnets.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/ec2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const EC2SubnetResource = "EC2Subnet" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EC2SubnetResource, Scope: nuke.Account, Lister: &EC2SubnetLister{}, diff --git a/resources/ec2-tgw-attachments.go b/resources/ec2-tgw-attachments.go index 4655e336..bdc09d5a 100644 --- a/resources/ec2-tgw-attachments.go +++ b/resources/ec2-tgw-attachments.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/ec2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -16,7 +17,7 @@ import ( const EC2TGWAttachmentResource = "EC2TGWAttachment" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EC2TGWAttachmentResource, Scope: nuke.Account, Lister: &EC2TGWAttachmentLister{}, diff --git a/resources/ec2-tgw.go b/resources/ec2-tgw.go index 04ff92b3..f2b1d1d7 100644 --- a/resources/ec2-tgw.go +++ b/resources/ec2-tgw.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/ec2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -16,7 +17,7 @@ import ( const EC2TGWResource = "EC2TGW" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EC2TGWResource, Scope: nuke.Account, Lister: &EC2TGWLister{}, diff --git a/resources/ec2-volume.go b/resources/ec2-volume.go index fb1bb60c..038c4928 100644 --- a/resources/ec2-volume.go +++ b/resources/ec2-volume.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/ec2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const EC2VolumeResource = "EC2Volume" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EC2VolumeResource, Scope: nuke.Account, Lister: &EC2VolumeLister{}, diff --git a/resources/ec2-vpc-endpoint-connections.go b/resources/ec2-vpc-endpoint-connections.go index 1d586681..d726e726 100644 --- a/resources/ec2-vpc-endpoint-connections.go +++ b/resources/ec2-vpc-endpoint-connections.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ec2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const EC2VPCEndpointConnectionResource = "EC2VPCEndpointConnection" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EC2VPCEndpointConnectionResource, Scope: nuke.Account, Lister: &EC2VPCEndpointConnectionLister{}, diff --git a/resources/ec2-vpc-endpoint-service-configurations.go b/resources/ec2-vpc-endpoint-service-configurations.go index f9c6b7ad..99e34774 100644 --- a/resources/ec2-vpc-endpoint-service-configurations.go +++ b/resources/ec2-vpc-endpoint-service-configurations.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ec2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const EC2VPCEndpointServiceConfigurationResource = "EC2VPCEndpointServiceConfiguration" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EC2VPCEndpointServiceConfigurationResource, Scope: nuke.Account, Lister: &EC2VPCEndpointServiceConfigurationLister{}, diff --git a/resources/ec2-vpc-endpoint.go b/resources/ec2-vpc-endpoint.go index 4815b522..b8c6bbdb 100644 --- a/resources/ec2-vpc-endpoint.go +++ b/resources/ec2-vpc-endpoint.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ec2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const EC2VPCEndpointResource = "EC2VPCEndpoint" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EC2VPCEndpointResource, Scope: nuke.Account, Lister: &EC2VPCEndpointLister{}, diff --git a/resources/ec2-vpc-peering-connections.go b/resources/ec2-vpc-peering-connections.go index c3aa88b3..9fc82326 100644 --- a/resources/ec2-vpc-peering-connections.go +++ b/resources/ec2-vpc-peering-connections.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/ec2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -15,7 +16,7 @@ import ( const EC2VPCPeeringConnectionResource = "EC2VPCPeeringConnection" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EC2VPCPeeringConnectionResource, Scope: nuke.Account, Lister: &EC2VPCPeeringConnectionLister{}, diff --git a/resources/ec2-vpc.go b/resources/ec2-vpc.go index 3e382ff8..5ef99cc7 100644 --- a/resources/ec2-vpc.go +++ b/resources/ec2-vpc.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ec2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const EC2VPCResource = "EC2VPC" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EC2VPCResource, Scope: nuke.Account, Lister: &EC2VPCLister{}, diff --git a/resources/ec2-vpn-connections.go b/resources/ec2-vpn-connections.go index e935ebf6..e6e7f78c 100644 --- a/resources/ec2-vpn-connections.go +++ b/resources/ec2-vpn-connections.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/ec2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -16,7 +17,7 @@ import ( const EC2VPNConnectionResource = "EC2VPNConnection" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EC2VPNConnectionResource, Scope: nuke.Account, Lister: &EC2VPNConnectionLister{}, diff --git a/resources/ec2-vpn-gateway-attachments.go b/resources/ec2-vpn-gateway-attachments.go index 3f44a992..0d855593 100644 --- a/resources/ec2-vpn-gateway-attachments.go +++ b/resources/ec2-vpn-gateway-attachments.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ec2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const EC2VPNGatewayAttachmentResource = "EC2VPNGatewayAttachment" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EC2VPNGatewayAttachmentResource, Scope: nuke.Account, Lister: &EC2VPNGatewayAttachmentLister{}, diff --git a/resources/ec2-vpn-gateways.go b/resources/ec2-vpn-gateways.go index 8a667b38..0c040c4c 100644 --- a/resources/ec2-vpn-gateways.go +++ b/resources/ec2-vpn-gateways.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/ec2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -15,7 +16,7 @@ import ( const EC2VPNGatewayResource = "EC2VPNGateway" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EC2VPNGatewayResource, Scope: nuke.Account, Lister: &EC2VPNGatewayLister{}, diff --git a/resources/ecr-public-repository.go b/resources/ecr-public-repository.go index bb56776a..b26bb878 100644 --- a/resources/ecr-public-repository.go +++ b/resources/ecr-public-repository.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ecrpublic" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const ECRPublicRepositoryResource = "ECRPublicRepository" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ECRPublicRepositoryResource, Scope: nuke.Account, Lister: &ECRPublicRepositoryLister{}, diff --git a/resources/ecr-repository.go b/resources/ecr-repository.go index 2031cafd..042c4c66 100644 --- a/resources/ecr-repository.go +++ b/resources/ecr-repository.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ecr" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -19,7 +20,7 @@ const ECRRepositoryResource = "ECRRepository" const ECRRepositoryCloudControlResource = "AWS::ECR::Repository" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ECRRepositoryResource, Scope: nuke.Account, Lister: &ECRRepositoryLister{}, diff --git a/resources/ecs-clusterinstances.go b/resources/ecs-clusterinstances.go index 7b435499..25b7caf3 100644 --- a/resources/ecs-clusterinstances.go +++ b/resources/ecs-clusterinstances.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ecs" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -16,7 +17,7 @@ import ( const ECSClusterInstanceResource = "ECSClusterInstance" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ECSClusterInstanceResource, Scope: nuke.Account, Lister: &ECSClusterInstanceLister{}, diff --git a/resources/ecs-clusters.go b/resources/ecs-clusters.go index 41439be8..8e197dbe 100644 --- a/resources/ecs-clusters.go +++ b/resources/ecs-clusters.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ecs" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const ECSClusterResource = "ECSCluster" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ECSClusterResource, Scope: nuke.Account, Lister: &ECSClusterLister{}, diff --git a/resources/ecs-services.go b/resources/ecs-services.go index 4c2a5c95..b0f16621 100644 --- a/resources/ecs-services.go +++ b/resources/ecs-services.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ecs" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -16,7 +17,7 @@ import ( const ECSServiceResource = "ECSService" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ECSServiceResource, Scope: nuke.Account, Lister: &ECSServiceLister{}, diff --git a/resources/ecs-taskdefinitions.go b/resources/ecs-taskdefinitions.go index 2607cd97..305d03da 100644 --- a/resources/ecs-taskdefinitions.go +++ b/resources/ecs-taskdefinitions.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ecs" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const ECSTaskDefinitionResource = "ECSTaskDefinition" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ECSTaskDefinitionResource, Scope: nuke.Account, Lister: &ECSTaskDefinitionLister{}, diff --git a/resources/ecs-tasks.go b/resources/ecs-tasks.go index 7713d740..da2e0d62 100644 --- a/resources/ecs-tasks.go +++ b/resources/ecs-tasks.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ecs" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const ECSTaskResource = "ECSTask" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ECSTaskResource, Scope: nuke.Account, Lister: &ECSTaskLister{}, diff --git a/resources/efs-filesystem.go b/resources/efs-filesystem.go index 590c443e..61a385d3 100644 --- a/resources/efs-filesystem.go +++ b/resources/efs-filesystem.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/efs" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const EFSFileSystemResource = "EFSFileSystem" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EFSFileSystemResource, Scope: nuke.Account, Lister: &EFSFileSystemLister{}, diff --git a/resources/efs-mount-targets.go b/resources/efs-mount-targets.go index 9dab0ac4..250ce18c 100644 --- a/resources/efs-mount-targets.go +++ b/resources/efs-mount-targets.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/efs" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -16,7 +17,7 @@ import ( const EFSMountTargetResource = "EFSMountTarget" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EFSMountTargetResource, Scope: nuke.Account, Lister: &EFSMountTargetLister{}, diff --git a/resources/eks-clusters.go b/resources/eks-clusters.go index 48329dff..d65fda3f 100644 --- a/resources/eks-clusters.go +++ b/resources/eks-clusters.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/eks" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const EKSClusterResource = "EKSCluster" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EKSClusterResource, Scope: nuke.Account, Lister: &EKSClusterLister{}, diff --git a/resources/eks-fargate.go b/resources/eks-fargate.go index e80ed082..c6b0521d 100644 --- a/resources/eks-fargate.go +++ b/resources/eks-fargate.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/eks" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const EKSFargateProfileResource = "EKSFargateProfile" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EKSFargateProfileResource, Scope: nuke.Account, Lister: &EKSFargateProfileLister{}, diff --git a/resources/eks-nodegroups.go b/resources/eks-nodegroups.go index 0776bcd4..c433037f 100644 --- a/resources/eks-nodegroups.go +++ b/resources/eks-nodegroups.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/eks" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -18,7 +19,7 @@ import ( const EKSNodegroupResource = "EKSNodegroup" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EKSNodegroupResource, Scope: nuke.Account, Lister: &EKSNodegroupLister{}, diff --git a/resources/elasticache-cacheparametergroups.go b/resources/elasticache-cacheparametergroups.go index 5b34e2b5..4330f8e4 100644 --- a/resources/elasticache-cacheparametergroups.go +++ b/resources/elasticache-cacheparametergroups.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/elasticache" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -18,7 +19,7 @@ import ( const ElasticacheCacheParameterGroupResource = "ElasticacheCacheParameterGroup" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ElasticacheCacheParameterGroupResource, Scope: nuke.Account, Lister: &ElasticacheCacheParameterGroupLister{}, diff --git a/resources/elasticache-memcacheclusters.go b/resources/elasticache-memcacheclusters.go index 19ad3039..9eca8287 100644 --- a/resources/elasticache-memcacheclusters.go +++ b/resources/elasticache-memcacheclusters.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/elasticache" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const ElasticacheCacheClusterResource = "ElasticacheCacheCluster" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ElasticacheCacheClusterResource, Scope: nuke.Account, Lister: &ElasticacheCacheClusterLister{}, diff --git a/resources/elasticache-replicationgroups.go b/resources/elasticache-replicationgroups.go index 0942169a..479a1c34 100644 --- a/resources/elasticache-replicationgroups.go +++ b/resources/elasticache-replicationgroups.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/elasticache" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const ElasticacheReplicationGroupResource = "ElasticacheReplicationGroup" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ElasticacheReplicationGroupResource, Scope: nuke.Account, Lister: &ElasticacheReplicationGroupLister{}, diff --git a/resources/elasticache-subnetgroups.go b/resources/elasticache-subnetgroups.go index 951e2dcc..e803170e 100644 --- a/resources/elasticache-subnetgroups.go +++ b/resources/elasticache-subnetgroups.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/elasticache" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -16,7 +17,7 @@ import ( const ElasticacheSubnetGroupResource = "ElasticacheSubnetGroup" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ElasticacheSubnetGroupResource, Scope: nuke.Account, Lister: &ElasticacheSubnetGroupLister{}, diff --git a/resources/elasticache-usergroups.go b/resources/elasticache-usergroups.go index 79491054..c88b3b68 100644 --- a/resources/elasticache-usergroups.go +++ b/resources/elasticache-usergroups.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/elasticache" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -20,7 +21,7 @@ type ElasticacheUserGroup struct { const ElasticacheUserGroupResource = "ElasticacheUserGroup" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ElasticacheUserGroupResource, Scope: nuke.Account, Lister: &ElasticacheUserGroupLister{}, diff --git a/resources/elasticache-users.go b/resources/elasticache-users.go index ecac0c2c..ed15e79f 100644 --- a/resources/elasticache-users.go +++ b/resources/elasticache-users.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/elasticache" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -23,7 +24,7 @@ type ElasticacheUser struct { const ElasticacheUserResource = "ElasticacheUser" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ElasticacheUserResource, Scope: nuke.Account, Lister: &ElasticacheUserLister{}, diff --git a/resources/elasticbeanstalk-applications.go b/resources/elasticbeanstalk-applications.go index 89a078d0..af927213 100644 --- a/resources/elasticbeanstalk-applications.go +++ b/resources/elasticbeanstalk-applications.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/elasticbeanstalk" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -13,7 +14,7 @@ import ( const ElasticBeanstalkApplicationResource = "ElasticBeanstalkApplication" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ElasticBeanstalkApplicationResource, Scope: nuke.Account, Lister: &ElasticBeanstalkApplicationLister{}, diff --git a/resources/elasticbeanstalk-environments.go b/resources/elasticbeanstalk-environments.go index d466f610..e92dd941 100644 --- a/resources/elasticbeanstalk-environments.go +++ b/resources/elasticbeanstalk-environments.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/elasticbeanstalk" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const ElasticBeanstalkEnvironmentResource = "ElasticBeanstalkEnvironment" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ElasticBeanstalkEnvironmentResource, Scope: nuke.Account, Lister: &ElasticBeanstalkEnvironmentLister{}, diff --git a/resources/elasticsearchservice-domain.go b/resources/elasticsearchservice-domain.go index 9af1a9a6..21d4f93d 100644 --- a/resources/elasticsearchservice-domain.go +++ b/resources/elasticsearchservice-domain.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/elasticsearchservice" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const ESDomainResource = "ESDomain" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ESDomainResource, Scope: nuke.Account, Lister: &ESDomainLister{}, diff --git a/resources/elastictranscoder-pipelines.go b/resources/elastictranscoder-pipelines.go index d89e1965..553b35d7 100644 --- a/resources/elastictranscoder-pipelines.go +++ b/resources/elastictranscoder-pipelines.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/elastictranscoder" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -13,7 +14,7 @@ import ( const ElasticTranscoderPipelineResource = "ElasticTranscoderPipeline" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ElasticTranscoderPipelineResource, Scope: nuke.Account, Lister: &ElasticTranscoderPipelineLister{}, diff --git a/resources/elb-elb.go b/resources/elb-elb.go index 53cc5319..15390936 100644 --- a/resources/elb-elb.go +++ b/resources/elb-elb.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/elb" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -16,7 +17,7 @@ import ( const ELBResource = "ELB" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ELBResource, Scope: nuke.Account, Lister: &ELBLister{}, diff --git a/resources/elbv2-alb.go b/resources/elbv2-alb.go index a2d3b73f..345638c7 100644 --- a/resources/elbv2-alb.go +++ b/resources/elbv2-alb.go @@ -11,6 +11,7 @@ import ( "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/service/elbv2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -27,7 +28,7 @@ type ELBv2LoadBalancer struct { const ELBv2Resource = "ELBv2" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ELBv2Resource, Scope: nuke.Account, Lister: &ELBv2Lister{}, diff --git a/resources/elbv2-targetgroup.go b/resources/elbv2-targetgroup.go index 91affcb2..18127b3d 100644 --- a/resources/elbv2-targetgroup.go +++ b/resources/elbv2-targetgroup.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/elbv2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const ELBv2TargetGroupResource = "ELBv2TargetGroup" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ELBv2TargetGroupResource, Scope: nuke.Account, Lister: &ELBv2TargetGroupLister{}, diff --git a/resources/emr-clusters.go b/resources/emr-clusters.go index ff477578..04c42870 100644 --- a/resources/emr-clusters.go +++ b/resources/emr-clusters.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/service/emr" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -18,7 +19,7 @@ import ( const EMRClusterResource = "EMRCluster" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EMRClusterResource, Scope: nuke.Account, Lister: &EMRClusterLister{}, diff --git a/resources/emr-securityconfigurations.go b/resources/emr-securityconfigurations.go index 1a1b38a0..c344e0fc 100644 --- a/resources/emr-securityconfigurations.go +++ b/resources/emr-securityconfigurations.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/emr" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -13,7 +14,7 @@ import ( const EMRSecurityConfigurationResource = "EMRSecurityConfiguration" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: EMRSecurityConfigurationResource, Scope: nuke.Account, Lister: &EMRSecurityConfigurationLister{}, diff --git a/resources/firehose-deliverystreams.go b/resources/firehose-deliverystreams.go index d4e5b47f..0589999b 100644 --- a/resources/firehose-deliverystreams.go +++ b/resources/firehose-deliverystreams.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/firehose" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const FirehoseDeliveryStreamResource = "FirehoseDeliveryStream" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: FirehoseDeliveryStreamResource, Scope: nuke.Account, Lister: &FirehoseDeliveryStreamLister{}, diff --git a/resources/fms-notification-channels.go b/resources/fms-notification-channels.go index ea47c432..6eecd62d 100644 --- a/resources/fms-notification-channels.go +++ b/resources/fms-notification-channels.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/service/fms" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -16,7 +17,7 @@ import ( const FMSNotificationChannelResource = "FMSNotificationChannel" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: FMSNotificationChannelResource, Scope: nuke.Account, Lister: &FMSNotificationChannelLister{}, diff --git a/resources/fms-policies.go b/resources/fms-policies.go index fa91eae0..f178b8dd 100644 --- a/resources/fms-policies.go +++ b/resources/fms-policies.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/fms" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const FMSPolicyResource = "FMSPolicy" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: FMSPolicyResource, Scope: nuke.Account, Lister: &FMSPolicyLister{}, diff --git a/resources/fsx-backups.go b/resources/fsx-backups.go index 4cf0657e..87858c50 100644 --- a/resources/fsx-backups.go +++ b/resources/fsx-backups.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/fsx" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const FSxBackupResource = "FSxBackup" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: FSxBackupResource, Scope: nuke.Account, Lister: &FSxBackupLister{}, diff --git a/resources/fsx-filesystems.go b/resources/fsx-filesystems.go index 3312b157..81ac7a94 100644 --- a/resources/fsx-filesystems.go +++ b/resources/fsx-filesystems.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/fsx" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const FSxFileSystemResource = "FSxFileSystem" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: FSxFileSystemResource, Scope: nuke.Account, Lister: &FSxFileSystemLister{}, diff --git a/resources/ga-accelerators.go b/resources/ga-accelerators.go index a7c47b24..15dfcc7c 100644 --- a/resources/ga-accelerators.go +++ b/resources/ga-accelerators.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/globalaccelerator" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -20,7 +21,7 @@ type GlobalAccelerator struct { const GlobalAcceleratorResource = "GlobalAccelerator" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: GlobalAcceleratorResource, Scope: nuke.Account, Lister: &GlobalAcceleratorLister{}, diff --git a/resources/ga-endpoints.go b/resources/ga-endpoints.go index 2f3da81d..c74dd1c5 100644 --- a/resources/ga-endpoints.go +++ b/resources/ga-endpoints.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/globalaccelerator" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const GlobalAcceleratorEndpointGroupResource = "GlobalAcceleratorEndpointGroup" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: GlobalAcceleratorEndpointGroupResource, Scope: nuke.Account, Lister: &GlobalAcceleratorEndpointGroupLister{}, diff --git a/resources/ga-listeners.go b/resources/ga-listeners.go index 1f80af3d..e3f11d02 100644 --- a/resources/ga-listeners.go +++ b/resources/ga-listeners.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/globalaccelerator" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const GlobalAcceleratorListenerResource = "GlobalAcceleratorListener" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: GlobalAcceleratorListenerResource, Scope: nuke.Account, Lister: &GlobalAcceleratorListenerLister{}, diff --git a/resources/glue-classifiers.go b/resources/glue-classifiers.go index 393f9baa..26d75c20 100644 --- a/resources/glue-classifiers.go +++ b/resources/glue-classifiers.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/glue" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const GlueClassifierResource = "GlueClassifier" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: GlueClassifierResource, Scope: nuke.Account, Lister: &GlueClassifierLister{}, diff --git a/resources/glue-connections.go b/resources/glue-connections.go index 00da814c..af1695f5 100644 --- a/resources/glue-connections.go +++ b/resources/glue-connections.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/glue" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const GlueConnectionResource = "GlueConnection" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: GlueConnectionResource, Scope: nuke.Account, Lister: &GlueConnectionLister{}, diff --git a/resources/glue-crawlers.go b/resources/glue-crawlers.go index 81ba0694..25337a1a 100644 --- a/resources/glue-crawlers.go +++ b/resources/glue-crawlers.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/glue" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const GlueCrawlerResource = "GlueCrawler" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: GlueCrawlerResource, Scope: nuke.Account, Lister: &GlueCrawlerLister{}, diff --git a/resources/glue-databases.go b/resources/glue-databases.go index 025b7c8d..5e4cb2c7 100644 --- a/resources/glue-databases.go +++ b/resources/glue-databases.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/glue" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const GlueDatabaseResource = "GlueDatabase" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: GlueDatabaseResource, Scope: nuke.Account, Lister: &GlueDatabaseLister{}, diff --git a/resources/glue-devendpoints.go b/resources/glue-devendpoints.go index 85c6422d..9ae16177 100644 --- a/resources/glue-devendpoints.go +++ b/resources/glue-devendpoints.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/glue" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const GlueDevEndpointResource = "GlueDevEndpoint" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: GlueDevEndpointResource, Scope: nuke.Account, Lister: &GlueDevEndpointLister{}, diff --git a/resources/glue-jobs.go b/resources/glue-jobs.go index 3bfa1c53..15e42e2a 100644 --- a/resources/glue-jobs.go +++ b/resources/glue-jobs.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/glue" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const GlueJobResource = "GlueJob" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: GlueJobResource, Scope: nuke.Account, Lister: &GlueJobLister{}, diff --git a/resources/glue-triggers.go b/resources/glue-triggers.go index 086feeb2..3db4149b 100644 --- a/resources/glue-triggers.go +++ b/resources/glue-triggers.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/glue" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const GlueTriggerResource = "GlueTrigger" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: GlueTriggerResource, Scope: nuke.Account, Lister: &GlueTriggerLister{}, diff --git a/resources/gluedatabrew-datasets.go b/resources/gluedatabrew-datasets.go index b1573104..cc9c81e7 100644 --- a/resources/gluedatabrew-datasets.go +++ b/resources/gluedatabrew-datasets.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/gluedatabrew" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const GlueDataBrewDatasetsResource = "GlueDataBrewDatasets" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: GlueDataBrewDatasetsResource, Scope: nuke.Account, Lister: &GlueDataBrewDatasetsLister{}, diff --git a/resources/gluedatabrew-jobs.go b/resources/gluedatabrew-jobs.go index 08c90523..be956fd3 100644 --- a/resources/gluedatabrew-jobs.go +++ b/resources/gluedatabrew-jobs.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/gluedatabrew" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const GlueDataBrewJobsResource = "GlueDataBrewJobs" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: GlueDataBrewJobsResource, Scope: nuke.Account, Lister: &GlueDataBrewJobsLister{}, diff --git a/resources/gluedatabrew-projects.go b/resources/gluedatabrew-projects.go index 3dc14117..f9f915e7 100644 --- a/resources/gluedatabrew-projects.go +++ b/resources/gluedatabrew-projects.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/gluedatabrew" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const GlueDataBrewProjectsResource = "GlueDataBrewProjects" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: GlueDataBrewProjectsResource, Scope: nuke.Account, Lister: &GlueDataBrewProjectsLister{}, diff --git a/resources/gluedatabrew-recipe.go b/resources/gluedatabrew-recipe.go index a010cfed..0d95a9d3 100644 --- a/resources/gluedatabrew-recipe.go +++ b/resources/gluedatabrew-recipe.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/gluedatabrew" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const GlueDataBrewRecipeResource = "GlueDataBrewRecipe" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: GlueDataBrewRecipeResource, Scope: nuke.Account, Lister: &GlueDataBrewRecipeLister{}, diff --git a/resources/gluedatabrew-rulesets.go b/resources/gluedatabrew-rulesets.go index 4e3273da..88133d84 100644 --- a/resources/gluedatabrew-rulesets.go +++ b/resources/gluedatabrew-rulesets.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/gluedatabrew" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const GlueDataBrewRulesetsResource = "GlueDataBrewRulesets" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: GlueDataBrewRulesetsResource, Scope: nuke.Account, Lister: &GlueDataBrewRulesetsLister{}, diff --git a/resources/gluedatabrew-schedules.go b/resources/gluedatabrew-schedules.go index d3b75040..baff0806 100644 --- a/resources/gluedatabrew-schedules.go +++ b/resources/gluedatabrew-schedules.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/gluedatabrew" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const GlueDataBrewSchedulesResource = "GlueDataBrewSchedules" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: GlueDataBrewSchedulesResource, Scope: nuke.Account, Lister: &GlueDataBrewSchedulesLister{}, diff --git a/resources/guardduty.go b/resources/guardduty.go index 8fc49e48..48e99dbe 100644 --- a/resources/guardduty.go +++ b/resources/guardduty.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/guardduty" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const GuardDutyDetectorResource = "GuardDutyDetector" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: GuardDutyDetectorResource, Scope: nuke.Account, Lister: &GuardDutyDetectorLister{}, diff --git a/resources/iam-account-setting-password-policy.go b/resources/iam-account-setting-password-policy.go index dc5a9021..9866e86c 100644 --- a/resources/iam-account-setting-password-policy.go +++ b/resources/iam-account-setting-password-policy.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -17,7 +18,7 @@ import ( const IAMAccountSettingPasswordPolicyResource = "IAMAccountSettingPasswordPolicy" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IAMAccountSettingPasswordPolicyResource, Scope: nuke.Account, Lister: &IAMAccountSettingPasswordPolicyLister{}, diff --git a/resources/iam-group-policies.go b/resources/iam-group-policies.go index 7c8a27c4..1bbc43e1 100644 --- a/resources/iam-group-policies.go +++ b/resources/iam-group-policies.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -16,7 +17,7 @@ import ( const IAMGroupPolicyResource = "IAMGroupPolicy" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IAMGroupPolicyResource, Scope: nuke.Account, Lister: &IAMGroupPolicyLister{}, diff --git a/resources/iam-group-policy-attachments.go b/resources/iam-group-policy-attachments.go index d093a949..c2932d43 100644 --- a/resources/iam-group-policy-attachments.go +++ b/resources/iam-group-policy-attachments.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const IAMGroupPolicyAttachmentResource = "IAMGroupPolicyAttachment" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IAMGroupPolicyAttachmentResource, Scope: nuke.Account, Lister: &IAMGroupPolicyAttachmentLister{}, diff --git a/resources/iam-groups.go b/resources/iam-groups.go index e4660d7a..05e8ec0c 100644 --- a/resources/iam-groups.go +++ b/resources/iam-groups.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const IAMGroupResource = "IAMGroup" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IAMGroupResource, Scope: nuke.Account, Lister: &IAMGroupLister{}, diff --git a/resources/iam-instance-profile-roles.go b/resources/iam-instance-profile-roles.go index b7c86c8e..1a523b92 100644 --- a/resources/iam-instance-profile-roles.go +++ b/resources/iam-instance-profile-roles.go @@ -12,6 +12,7 @@ import ( "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -21,7 +22,7 @@ import ( const IAMInstanceProfileRoleResource = "IAMInstanceProfileRole" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IAMInstanceProfileRoleResource, Scope: nuke.Account, Lister: &IAMInstanceProfileRoleLister{}, diff --git a/resources/iam-instance-profiles.go b/resources/iam-instance-profiles.go index 9b381ec6..4000f974 100644 --- a/resources/iam-instance-profiles.go +++ b/resources/iam-instance-profiles.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const IAMInstanceProfileResource = "IAMInstanceProfile" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IAMInstanceProfileResource, Scope: nuke.Account, Lister: &IAMInstanceProfileLister{}, diff --git a/resources/iam-login-profiles.go b/resources/iam-login-profiles.go index e45d2815..6ccfb1c0 100644 --- a/resources/iam-login-profiles.go +++ b/resources/iam-login-profiles.go @@ -12,6 +12,7 @@ import ( "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -21,7 +22,7 @@ import ( const IAMLoginProfileResource = "IAMLoginProfile" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IAMLoginProfileResource, Scope: nuke.Account, Lister: &IAMLoginProfileLister{}, diff --git a/resources/iam-open-id-connect-provider.go b/resources/iam-open-id-connect-provider.go index f7848149..264aac20 100644 --- a/resources/iam-open-id-connect-provider.go +++ b/resources/iam-open-id-connect-provider.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const IAMOpenIDConnectProviderResource = "IAMOpenIDConnectProvider" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IAMOpenIDConnectProviderResource, Scope: nuke.Account, Lister: &IAMOpenIDConnectProviderLister{}, diff --git a/resources/iam-policies.go b/resources/iam-policies.go index ae51c301..aa89611d 100644 --- a/resources/iam-policies.go +++ b/resources/iam-policies.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -18,7 +19,7 @@ import ( const IAMPolicyResource = "IAMPolicy" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IAMPolicyResource, Scope: nuke.Account, Lister: &IAMPolicyLister{}, diff --git a/resources/iam-role-policy-attachments.go b/resources/iam-role-policy-attachments.go index d62e327d..937bbf9c 100644 --- a/resources/iam-role-policy-attachments.go +++ b/resources/iam-role-policy-attachments.go @@ -12,6 +12,7 @@ import ( "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -21,7 +22,7 @@ import ( const IAMRolePolicyAttachmentResource = "IAMRolePolicyAttachment" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IAMRolePolicyAttachmentResource, Scope: nuke.Account, Lister: &IAMRolePolicyAttachmentLister{}, diff --git a/resources/iam-role-policy.go b/resources/iam-role-policy.go index e5711ed3..3c6055fa 100644 --- a/resources/iam-role-policy.go +++ b/resources/iam-role-policy.go @@ -11,6 +11,7 @@ import ( "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -20,7 +21,7 @@ import ( const IAMRolePolicyResource = "IAMRolePolicy" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IAMRolePolicyResource, Scope: nuke.Account, Lister: &IAMRolePolicyLister{}, diff --git a/resources/iam-roles.go b/resources/iam-roles.go index 6e0bd410..618c50b7 100644 --- a/resources/iam-roles.go +++ b/resources/iam-roles.go @@ -13,6 +13,7 @@ import ( "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -22,7 +23,7 @@ import ( const IAMRoleResource = "IAMRole" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IAMRoleResource, Scope: nuke.Account, Lister: &IAMRoleLister{}, diff --git a/resources/iam-saml-provider.go b/resources/iam-saml-provider.go index 9388bbd4..ba50f9a4 100644 --- a/resources/iam-saml-provider.go +++ b/resources/iam-saml-provider.go @@ -6,13 +6,14 @@ import ( "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" ) const IAMSAMLProviderResource = "IAMSAMLProvider" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IAMSAMLProviderResource, Scope: nuke.Account, Lister: &IAMSAMLProviderLister{}, diff --git a/resources/iam-server-certificate.go b/resources/iam-server-certificate.go index 7d8fc852..9d102f22 100644 --- a/resources/iam-server-certificate.go +++ b/resources/iam-server-certificate.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const IAMServerCertificateResource = "IAMServerCertificate" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IAMServerCertificateResource, Scope: nuke.Account, Lister: &IAMServerCertificateLister{}, diff --git a/resources/iam-service-specific-credentials.go b/resources/iam-service-specific-credentials.go index ea0fc365..10dd0d9b 100644 --- a/resources/iam-service-specific-credentials.go +++ b/resources/iam-service-specific-credentials.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const IAMServiceSpecificCredentialResource = "IAMServiceSpecificCredential" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IAMServiceSpecificCredentialResource, Scope: nuke.Account, Lister: &IAMServiceSpecificCredentialLister{}, diff --git a/resources/iam-signing-certificate.go b/resources/iam-signing-certificate.go index 5d7161d1..13dd2400 100644 --- a/resources/iam-signing-certificate.go +++ b/resources/iam-signing-certificate.go @@ -11,6 +11,7 @@ import ( "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -20,7 +21,7 @@ import ( const IAMSigningCertificateResource = "IAMSigningCertificate" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IAMSigningCertificateResource, Scope: nuke.Account, Lister: &IAMSigningCertificateLister{}, diff --git a/resources/iam-user-access-key.go b/resources/iam-user-access-key.go index 7415e6c3..ef1f29ee 100644 --- a/resources/iam-user-access-key.go +++ b/resources/iam-user-access-key.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const IAMUserAccessKeyResource = "IAMUserAccessKey" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IAMUserAccessKeyResource, Scope: nuke.Account, Lister: &IAMUserAccessKeyLister{}, diff --git a/resources/iam-user-group-attachments.go b/resources/iam-user-group-attachments.go index bf216292..03ff5e0c 100644 --- a/resources/iam-user-group-attachments.go +++ b/resources/iam-user-group-attachments.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const IAMUserGroupAttachmentResource = "IAMUserGroupAttachment" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IAMUserGroupAttachmentResource, Scope: nuke.Account, Lister: &IAMUserGroupAttachmentLister{}, diff --git a/resources/iam-user-https-git-credential.go b/resources/iam-user-https-git-credential.go index 2f2a8386..211ecd55 100644 --- a/resources/iam-user-https-git-credential.go +++ b/resources/iam-user-https-git-credential.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -18,7 +19,7 @@ import ( const IAMUserHTTPSGitCredentialResource = "IAMUserHTTPSGitCredential" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IAMUserHTTPSGitCredentialResource, Scope: nuke.Account, Lister: &IAMUserHTTPSGitCredentialLister{}, diff --git a/resources/iam-user-policy-attachment.go b/resources/iam-user-policy-attachment.go index 8c3608da..c363a13f 100644 --- a/resources/iam-user-policy-attachment.go +++ b/resources/iam-user-policy-attachment.go @@ -10,6 +10,7 @@ import ( "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -19,7 +20,7 @@ import ( const IAMUserPolicyAttachmentResource = "IAMUserPolicyAttachment" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IAMUserPolicyAttachmentResource, Scope: nuke.Account, Lister: &IAMUserPolicyAttachmentLister{}, diff --git a/resources/iam-user-policy.go b/resources/iam-user-policy.go index c8b16270..f565d173 100644 --- a/resources/iam-user-policy.go +++ b/resources/iam-user-policy.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -16,7 +17,7 @@ import ( const IAMUserPolicyResource = "IAMUserPolicy" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IAMUserPolicyResource, Scope: nuke.Account, Lister: &IAMUserPolicyLister{}, diff --git a/resources/iam-user-ssh-keys.go b/resources/iam-user-ssh-keys.go index d7db68e2..28b441fd 100644 --- a/resources/iam-user-ssh-keys.go +++ b/resources/iam-user-ssh-keys.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const IAMUserSSHPublicKeyResource = "IAMUserSSHPublicKey" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IAMUserSSHPublicKeyResource, Scope: nuke.Account, Lister: &IAMUserSSHPublicKeyLister{}, diff --git a/resources/iam-users.go b/resources/iam-users.go index 2fc924f3..87a27152 100644 --- a/resources/iam-users.go +++ b/resources/iam-users.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const IAMUserResource = "IAMUser" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IAMUserResource, Scope: nuke.Account, Lister: &IAMUsersLister{}, diff --git a/resources/iam-virtual-mfa-devices.go b/resources/iam-virtual-mfa-devices.go index d972ede4..f97656d7 100644 --- a/resources/iam-virtual-mfa-devices.go +++ b/resources/iam-virtual-mfa-devices.go @@ -9,18 +9,18 @@ import ( "github.com/gotidy/ptr" - "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" ) const IAMVirtualMFADeviceResource = "IAMVirtualMFADevice" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IAMVirtualMFADeviceResource, Scope: nuke.Account, Lister: &IAMVirtualMFADeviceLister{}, @@ -45,8 +45,8 @@ func (l *IAMVirtualMFADeviceLister) List(_ context.Context, o interface{}) ([]re svc: svc, userId: out.User.UserId, userArn: out.User.Arn, - userName: *out.User.UserName, - serialNumber: *out.SerialNumber, + userName: out.User.UserName, + serialNumber: out.SerialNumber, }) } @@ -57,8 +57,8 @@ type IAMVirtualMFADevice struct { svc iamiface.IAMAPI userId *string userArn *string - userName string - serialNumber string + userName *string + serialNumber *string } func (v *IAMVirtualMFADevice) Filter() error { @@ -66,7 +66,7 @@ func (v *IAMVirtualMFADevice) Filter() error { if ptr.ToString(v.userArn) == fmt.Sprintf("arn:aws:iam::%s:root", ptr.ToString(v.userId)) { isRoot = true } - if strings.HasSuffix(v.serialNumber, "/root-account-mfa-device") { + if strings.HasSuffix(ptr.ToString(v.serialNumber), "/root-account-mfa-device") { isRoot = true } @@ -79,14 +79,14 @@ func (v *IAMVirtualMFADevice) Filter() error { func (v *IAMVirtualMFADevice) Remove(_ context.Context) error { if _, err := v.svc.DeactivateMFADevice(&iam.DeactivateMFADeviceInput{ - UserName: aws.String(v.userName), - SerialNumber: aws.String(v.serialNumber), + UserName: v.userName, + SerialNumber: v.serialNumber, }); err != nil { return err } if _, err := v.svc.DeleteVirtualMFADevice(&iam.DeleteVirtualMFADeviceInput{ - SerialNumber: &v.serialNumber, + SerialNumber: v.serialNumber, }); err != nil { return err } @@ -95,5 +95,5 @@ func (v *IAMVirtualMFADevice) Remove(_ context.Context) error { } func (v *IAMVirtualMFADevice) String() string { - return v.serialNumber + return ptr.ToString(v.serialNumber) } diff --git a/resources/iam-virtual-mfa-devices_mock_test.go b/resources/iam-virtual-mfa-devices_mock_test.go index a7797f23..6759415e 100644 --- a/resources/iam-virtual-mfa-devices_mock_test.go +++ b/resources/iam-virtual-mfa-devices_mock_test.go @@ -2,12 +2,12 @@ package resources import ( "context" + "github.com/gotidy/ptr" "testing" "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iam" "github.com/ekristen/aws-nuke/mocks/mock_iamiface" @@ -22,17 +22,17 @@ func Test_Mock_IAMVirtualMFADevice_Remove(t *testing.T) { iamVirtualMFADevice := IAMVirtualMFADevice{ svc: mockIAM, - userName: "user:foobar", - serialNumber: "serial:foobar", + userName: ptr.String("user:foobar"), + serialNumber: ptr.String("serial:foobar"), } mockIAM.EXPECT().DeactivateMFADevice(gomock.Eq(&iam.DeactivateMFADeviceInput{ - UserName: &iamVirtualMFADevice.userName, - SerialNumber: &iamVirtualMFADevice.serialNumber, + UserName: iamVirtualMFADevice.userName, + SerialNumber: iamVirtualMFADevice.serialNumber, })).Return(&iam.DeactivateMFADeviceOutput{}, nil) mockIAM.EXPECT().DeleteVirtualMFADevice(gomock.Eq(&iam.DeleteVirtualMFADeviceInput{ - SerialNumber: aws.String(iamVirtualMFADevice.serialNumber), + SerialNumber: iamVirtualMFADevice.serialNumber, })).Return(&iam.DeleteVirtualMFADeviceOutput{}, nil) err := iamVirtualMFADevice.Remove(context.TODO()) diff --git a/resources/imagebuilder-components.go b/resources/imagebuilder-components.go index 2cf8ab69..0a48c8dd 100644 --- a/resources/imagebuilder-components.go +++ b/resources/imagebuilder-components.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/imagebuilder" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const ImageBuilderComponentResource = "ImageBuilderComponent" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ImageBuilderComponentResource, Scope: nuke.Account, Lister: &ImageBuilderComponentLister{}, diff --git a/resources/imagebuilder-distribution-configurations.go b/resources/imagebuilder-distribution-configurations.go index dd15b718..b1b08ac9 100644 --- a/resources/imagebuilder-distribution-configurations.go +++ b/resources/imagebuilder-distribution-configurations.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/imagebuilder" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const ImageBuilderDistributionConfigurationResource = "ImageBuilderDistributionConfiguration" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ImageBuilderDistributionConfigurationResource, Scope: nuke.Account, Lister: &ImageBuilderDistributionConfigurationLister{}, diff --git a/resources/imagebuilder-images.go b/resources/imagebuilder-images.go index dbe1d1d7..00316fb6 100644 --- a/resources/imagebuilder-images.go +++ b/resources/imagebuilder-images.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/imagebuilder" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const ImageBuilderImageResource = "ImageBuilderImage" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ImageBuilderImageResource, Scope: nuke.Account, Lister: &ImageBuilderImageLister{}, diff --git a/resources/imagebuilder-infrastructure-configurations.go b/resources/imagebuilder-infrastructure-configurations.go index a12557b1..b0c3ef24 100644 --- a/resources/imagebuilder-infrastructure-configurations.go +++ b/resources/imagebuilder-infrastructure-configurations.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/imagebuilder" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const ImageBuilderInfrastructureConfigurationResource = "ImageBuilderInfrastructureConfiguration" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ImageBuilderInfrastructureConfigurationResource, Scope: nuke.Account, Lister: &ImageBuilderInfrastructureConfigurationLister{}, diff --git a/resources/imagebuilder-pipelines.go b/resources/imagebuilder-pipelines.go index 5ce2994c..3fe8b339 100644 --- a/resources/imagebuilder-pipelines.go +++ b/resources/imagebuilder-pipelines.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/imagebuilder" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const ImageBuilderPipelineResource = "ImageBuilderPipeline" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ImageBuilderPipelineResource, Scope: nuke.Account, Lister: &ImageBuilderPipelineLister{}, diff --git a/resources/imagebuilder-recipes.go b/resources/imagebuilder-recipes.go index 26c1e40b..79986594 100644 --- a/resources/imagebuilder-recipes.go +++ b/resources/imagebuilder-recipes.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/imagebuilder" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const ImageBuilderRecipeResource = "ImageBuilderRecipe" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ImageBuilderRecipeResource, Scope: nuke.Account, Lister: &ImageBuilderRecipeLister{}, diff --git a/resources/inspector-assessment-runs.go b/resources/inspector-assessment-runs.go index 6f95a479..7330d472 100644 --- a/resources/inspector-assessment-runs.go +++ b/resources/inspector-assessment-runs.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/inspector" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -13,7 +14,7 @@ import ( const InspectorAssessmentRunResource = "InspectorAssessmentRun" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: InspectorAssessmentRunResource, Scope: nuke.Account, Lister: &InspectorAssessmentRunLister{}, diff --git a/resources/inspector-assessment-targets.go b/resources/inspector-assessment-targets.go index b8ecb63f..d22fe817 100644 --- a/resources/inspector-assessment-targets.go +++ b/resources/inspector-assessment-targets.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/inspector" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -13,7 +14,7 @@ import ( const InspectorAssessmentTargetResource = "InspectorAssessmentTarget" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: InspectorAssessmentTargetResource, Scope: nuke.Account, Lister: &InspectorAssessmentTargetLister{}, diff --git a/resources/inspector-assessment-templates.go b/resources/inspector-assessment-templates.go index 56e57526..67c50837 100644 --- a/resources/inspector-assessment-templates.go +++ b/resources/inspector-assessment-templates.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/inspector" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -13,7 +14,7 @@ import ( const InspectorAssessmentTemplateResource = "InspectorAssessmentTemplate" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: InspectorAssessmentTemplateResource, Scope: nuke.Account, Lister: &InspectorAssessmentTemplateLister{}, diff --git a/resources/inspector2.go b/resources/inspector2.go index 060a5153..ebc32c80 100644 --- a/resources/inspector2.go +++ b/resources/inspector2.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/inspector2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const Inspector2Resource = "Inspector2" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: Inspector2Resource, Scope: nuke.Account, Lister: &Inspector2Lister{}, diff --git a/resources/iot-authorizers.go b/resources/iot-authorizers.go index 02079a3f..02cf03cd 100644 --- a/resources/iot-authorizers.go +++ b/resources/iot-authorizers.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/iot" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -13,7 +14,7 @@ import ( const IoTAuthorizerResource = "IoTAuthorizer" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IoTAuthorizerResource, Scope: nuke.Account, Lister: &IoTAuthorizerLister{}, diff --git a/resources/iot-cacertificates.go b/resources/iot-cacertificates.go index 2b425181..82058fb0 100644 --- a/resources/iot-cacertificates.go +++ b/resources/iot-cacertificates.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iot" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const IoTCACertificateResource = "IoTCACertificate" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IoTCACertificateResource, Scope: nuke.Account, Lister: &IoTCACertificateLister{}, diff --git a/resources/iot-certificates.go b/resources/iot-certificates.go index b8c56bcc..94ee7aaa 100644 --- a/resources/iot-certificates.go +++ b/resources/iot-certificates.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iot" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const IoTCertificateResource = "IoTCertificate" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IoTCertificateResource, Scope: nuke.Account, Lister: &IoTCertificateLister{}, diff --git a/resources/iot-jobs.go b/resources/iot-jobs.go index ec699094..de48f1ef 100644 --- a/resources/iot-jobs.go +++ b/resources/iot-jobs.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iot" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const IoTJobResource = "IoTJob" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IoTJobResource, Scope: nuke.Account, Lister: &IoTJobLister{}, diff --git a/resources/iot-otaupdates.go b/resources/iot-otaupdates.go index 2c520aac..ff364ba4 100644 --- a/resources/iot-otaupdates.go +++ b/resources/iot-otaupdates.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iot" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const IoTOTAUpdateResource = "IoTOTAUpdate" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IoTOTAUpdateResource, Scope: nuke.Account, Lister: &IoTOTAUpdateLister{}, diff --git a/resources/iot-policies.go b/resources/iot-policies.go index 0d0bfcdb..d173b808 100644 --- a/resources/iot-policies.go +++ b/resources/iot-policies.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iot" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const IoTPolicyResource = "IoTPolicy" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IoTPolicyResource, Scope: nuke.Account, Lister: &IoTPolicyLister{}, diff --git a/resources/iot-rolealiases.go b/resources/iot-rolealiases.go index 8e843413..0e283c7a 100644 --- a/resources/iot-rolealiases.go +++ b/resources/iot-rolealiases.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iot" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const IoTRoleAliasResource = "IoTRoleAlias" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IoTRoleAliasResource, Scope: nuke.Account, Lister: &IoTRoleAliasLister{}, diff --git a/resources/iot-streams.go b/resources/iot-streams.go index 0001b69b..3cc39abe 100644 --- a/resources/iot-streams.go +++ b/resources/iot-streams.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iot" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const IoTStreamResource = "IoTStream" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IoTStreamResource, Scope: nuke.Account, Lister: &IoTStreamLister{}, diff --git a/resources/iot-thinggroups.go b/resources/iot-thinggroups.go index 5b61163c..d824e400 100644 --- a/resources/iot-thinggroups.go +++ b/resources/iot-thinggroups.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iot" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const IoTThingGroupResource = "IoTThingGroup" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IoTThingGroupResource, Scope: nuke.Account, Lister: &IoTThingGroupLister{}, diff --git a/resources/iot-things.go b/resources/iot-things.go index 4ab58946..61430316 100644 --- a/resources/iot-things.go +++ b/resources/iot-things.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iot" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const IoTThingResource = "IoTThing" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IoTThingResource, Scope: nuke.Account, Lister: &IoTThingLister{}, diff --git a/resources/iot-thingtypes.go b/resources/iot-thingtypes.go index 1f659b71..46eda75d 100644 --- a/resources/iot-thingtypes.go +++ b/resources/iot-thingtypes.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iot" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const IoTThingTypeResource = "IoTThingType" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IoTThingTypeResource, Scope: nuke.Account, Lister: &IoTThingTypeLister{}, diff --git a/resources/iot-thingtypestates.go b/resources/iot-thingtypestates.go index ab07ee4e..a8bfc0fb 100644 --- a/resources/iot-thingtypestates.go +++ b/resources/iot-thingtypestates.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iot" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -17,7 +18,7 @@ import ( const IoTThingTypeStateResource = "IoTThingTypeState" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IoTThingTypeStateResource, Scope: nuke.Account, Lister: &IoTThingTypeStateLister{}, diff --git a/resources/iot-topicrules.go b/resources/iot-topicrules.go index 5b3993f5..3842fb20 100644 --- a/resources/iot-topicrules.go +++ b/resources/iot-topicrules.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iot" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const IoTTopicRuleResource = "IoTTopicRule" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: IoTTopicRuleResource, Scope: nuke.Account, Lister: &IoTTopicRuleLister{}, diff --git a/resources/kendra-indexes.go b/resources/kendra-indexes.go index b41a3860..cf86143a 100644 --- a/resources/kendra-indexes.go +++ b/resources/kendra-indexes.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/kendra" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const KendraIndexResource = "KendraIndex" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: KendraIndexResource, Scope: nuke.Account, Lister: &KendraIndexLister{}, diff --git a/resources/kinesis-streams.go b/resources/kinesis-streams.go index 2529f4d2..bcb15351 100644 --- a/resources/kinesis-streams.go +++ b/resources/kinesis-streams.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/kinesis" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const KinesisStreamResource = "KinesisStream" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: KinesisStreamResource, Scope: nuke.Account, Lister: &KinesisStreamLister{}, diff --git a/resources/kinesisanalytics-streams.go b/resources/kinesisanalytics-streams.go index a57a29ab..f6685ec4 100644 --- a/resources/kinesisanalytics-streams.go +++ b/resources/kinesisanalytics-streams.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/kinesisanalyticsv2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const KinesisAnalyticsApplicationResource = "KinesisAnalyticsApplication" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: KinesisAnalyticsApplicationResource, Scope: nuke.Account, Lister: &KinesisAnalyticsApplicationLister{}, diff --git a/resources/kinesisvideo-streams.go b/resources/kinesisvideo-streams.go index e32d670c..aec12fb4 100644 --- a/resources/kinesisvideo-streams.go +++ b/resources/kinesisvideo-streams.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/kinesisvideo" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const KinesisVideoProjectResource = "KinesisVideoProject" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: KinesisVideoProjectResource, Scope: nuke.Account, Lister: &KinesisVideoProjectLister{}, diff --git a/resources/kms-aliases.go b/resources/kms-aliases.go index 45724828..b8ac8078 100644 --- a/resources/kms-aliases.go +++ b/resources/kms-aliases.go @@ -10,6 +10,7 @@ import ( "github.com/aws/aws-sdk-go/service/kms" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -19,7 +20,7 @@ import ( const KMSAliasResource = "KMSAlias" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: KMSAliasResource, Scope: nuke.Account, Lister: &KMSAliasLister{}, diff --git a/resources/kms-keys.go b/resources/kms-keys.go index bfa4b9cb..3db980e3 100644 --- a/resources/kms-keys.go +++ b/resources/kms-keys.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/kms" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const KMSKeyResource = "KMSKey" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: KMSKeyResource, Scope: nuke.Account, Lister: &KMSKeyLister{}, diff --git a/resources/lambda-event-source-mapping.go b/resources/lambda-event-source-mapping.go index e51fe670..8b5bd162 100644 --- a/resources/lambda-event-source-mapping.go +++ b/resources/lambda-event-source-mapping.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/lambda" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const LambdaEventSourceMappingResource = "LambdaEventSourceMapping" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: LambdaEventSourceMappingResource, Scope: nuke.Account, Lister: &LambdaEventSourceMappingLister{}, diff --git a/resources/lambda-functions.go b/resources/lambda-functions.go index 0a93b931..4d2d56e6 100644 --- a/resources/lambda-functions.go +++ b/resources/lambda-functions.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/lambda" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const LambdaFunctionResource = "LambdaFunction" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: LambdaFunctionResource, Scope: nuke.Account, Lister: &LambdaFunctionLister{}, diff --git a/resources/lambda-layers.go b/resources/lambda-layers.go index 29f9b6e1..cee9ef89 100644 --- a/resources/lambda-layers.go +++ b/resources/lambda-layers.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/lambda" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const LambdaLayerResource = "LambdaLayer" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: LambdaLayerResource, Scope: nuke.Account, Lister: &LambdaLayerLister{}, diff --git a/resources/lex-bot.go b/resources/lex-bot.go index 8e10acd6..f7e36f54 100644 --- a/resources/lex-bot.go +++ b/resources/lex-bot.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/lexmodelbuildingservice" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const LexBotResource = "LexBot" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: LexBotResource, Scope: nuke.Account, Lister: &LexBotLister{}, diff --git a/resources/lex-intent.go b/resources/lex-intent.go index 467de544..783331f7 100644 --- a/resources/lex-intent.go +++ b/resources/lex-intent.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/lexmodelbuildingservice" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const LexIntentResource = "LexIntent" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: LexIntentResource, Scope: nuke.Account, Lister: &LexIntentLister{}, diff --git a/resources/lex-model-building-service-bot-alias.go b/resources/lex-model-building-service-bot-alias.go index a2b105d9..4253f501 100644 --- a/resources/lex-model-building-service-bot-alias.go +++ b/resources/lex-model-building-service-bot-alias.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/lexmodelbuildingservice" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const LexModelBuildingServiceBotAliasResource = "LexModelBuildingServiceBotAlias" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: LexModelBuildingServiceBotAliasResource, Scope: nuke.Account, Lister: &LexModelBuildingServiceBotAliasLister{}, diff --git a/resources/lex-slot-types.go b/resources/lex-slot-types.go index 18f70f37..ffd0c543 100644 --- a/resources/lex-slot-types.go +++ b/resources/lex-slot-types.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/lexmodelbuildingservice" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const LexSlotTypeResource = "LexSlotType" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: LexSlotTypeResource, Scope: nuke.Account, Lister: &LexSlotTypeLister{}, diff --git a/resources/lightsail-disks.go b/resources/lightsail-disks.go index 5cb159eb..c52b2cb8 100644 --- a/resources/lightsail-disks.go +++ b/resources/lightsail-disks.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/lightsail" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -13,7 +14,7 @@ import ( const LightsailDiskResource = "LightsailDisk" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: LightsailDiskResource, Scope: nuke.Account, Lister: &LightsailDiskLister{}, diff --git a/resources/lightsail-domains.go b/resources/lightsail-domains.go index 6ea63b70..0101d863 100644 --- a/resources/lightsail-domains.go +++ b/resources/lightsail-domains.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws/endpoints" "github.com/aws/aws-sdk-go/service/lightsail" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -16,7 +17,7 @@ import ( const LightsailDomainResource = "LightsailDomain" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: LightsailDomainResource, Scope: nuke.Account, Lister: &LightsailDomainLister{}, diff --git a/resources/lightsail-instances.go b/resources/lightsail-instances.go index 4e236a16..51a59ca3 100644 --- a/resources/lightsail-instances.go +++ b/resources/lightsail-instances.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/lightsail" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -16,7 +17,7 @@ import ( const LightsailInstanceResource = "LightsailInstance" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: LightsailInstanceResource, Scope: nuke.Account, Lister: &LightsailInstanceLister{}, diff --git a/resources/lightsail-keypairs.go b/resources/lightsail-keypairs.go index f5d4ecb3..5b363d0b 100644 --- a/resources/lightsail-keypairs.go +++ b/resources/lightsail-keypairs.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/lightsail" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -13,7 +14,7 @@ import ( const LightsailKeyPairResource = "LightsailKeyPair" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: LightsailKeyPairResource, Scope: nuke.Account, Lister: &LightsailKeyPairLister{}, diff --git a/resources/lightsail-loadbalancers.go b/resources/lightsail-loadbalancers.go index 63e2f00c..9aab4bfc 100644 --- a/resources/lightsail-loadbalancers.go +++ b/resources/lightsail-loadbalancers.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/lightsail" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -13,7 +14,7 @@ import ( const LightsailLoadBalancerResource = "LightsailLoadBalancer" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: LightsailLoadBalancerResource, Scope: nuke.Account, Lister: &LightsailLoadBalancerLister{}, diff --git a/resources/lightsail-staticips.go b/resources/lightsail-staticips.go index 185ec491..b4b79479 100644 --- a/resources/lightsail-staticips.go +++ b/resources/lightsail-staticips.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/lightsail" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -13,7 +14,7 @@ import ( const LightsailStaticIPResource = "LightsailStaticIP" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: LightsailStaticIPResource, Scope: nuke.Account, Lister: &LightsailStaticIPLister{}, diff --git a/resources/machinelearning-batchpredictions.go b/resources/machinelearning-batchpredictions.go index 6148ca77..c657c9d9 100644 --- a/resources/machinelearning-batchpredictions.go +++ b/resources/machinelearning-batchpredictions.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/machinelearning" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const MachineLearningBranchPredictionResource = "MachineLearningBranchPrediction" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: MachineLearningBranchPredictionResource, Scope: nuke.Account, Lister: &MachineLearningBranchPredictionLister{}, diff --git a/resources/machinelearning-datasources.go b/resources/machinelearning-datasources.go index d8bf0f6a..e097abfd 100644 --- a/resources/machinelearning-datasources.go +++ b/resources/machinelearning-datasources.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/machinelearning" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const MachineLearningDataSourceResource = "MachineLearningDataSource" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: MachineLearningDataSourceResource, Scope: nuke.Account, Lister: &MachineLearningDataSourceLister{}, diff --git a/resources/machinelearning-evaluations.go b/resources/machinelearning-evaluations.go index 2d355a7a..1a19fbd6 100644 --- a/resources/machinelearning-evaluations.go +++ b/resources/machinelearning-evaluations.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/machinelearning" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const MachineLearningEvaluationResource = "MachineLearningEvaluation" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: MachineLearningEvaluationResource, Scope: nuke.Account, Lister: &MachineLearningEvaluationLister{}, diff --git a/resources/machinelearning-mlmodels.go b/resources/machinelearning-mlmodels.go index 5dc1f2ba..225b7cdb 100644 --- a/resources/machinelearning-mlmodels.go +++ b/resources/machinelearning-mlmodels.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/machinelearning" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const MachineLearningMLModelResource = "MachineLearningMLModel" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: MachineLearningMLModelResource, Scope: nuke.Account, Lister: &MachineLearningMLModelLister{}, diff --git a/resources/macie2.go b/resources/macie2.go index 4925b27b..cc8d6899 100644 --- a/resources/macie2.go +++ b/resources/macie2.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/macie2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -13,7 +14,7 @@ import ( const MacieResource = "Macie" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: MacieResource, Scope: nuke.Account, Lister: &MacieLister{}, diff --git a/resources/managedblockchain-member.go b/resources/managedblockchain-member.go index 855b852f..e66cde1c 100644 --- a/resources/managedblockchain-member.go +++ b/resources/managedblockchain-member.go @@ -10,6 +10,7 @@ import ( "github.com/aws/aws-sdk-go/service/managedblockchain" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -19,7 +20,7 @@ import ( const ManagedBlockchainMemberResource = "ManagedBlockchainMember" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ManagedBlockchainMemberResource, Scope: nuke.Account, Lister: &ManagedBlockchainMemberLister{}, diff --git a/resources/managedgrafana-workspaces.go b/resources/managedgrafana-workspaces.go index abfab2ea..5ed47a87 100644 --- a/resources/managedgrafana-workspaces.go +++ b/resources/managedgrafana-workspaces.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/managedgrafana" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const AMGWorkspaceResource = "AMGWorkspace" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: AMGWorkspaceResource, Scope: nuke.Account, Lister: &AMGWorkspaceLister{}, diff --git a/resources/mediaconvert-jobtemplates.go b/resources/mediaconvert-jobtemplates.go index 9aa28e37..0bc2e8e8 100644 --- a/resources/mediaconvert-jobtemplates.go +++ b/resources/mediaconvert-jobtemplates.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/mediaconvert" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const MediaConvertJobTemplateResource = "MediaConvertJobTemplate" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: MediaConvertJobTemplateResource, Scope: nuke.Account, Lister: &MediaConvertJobTemplateLister{}, diff --git a/resources/mediaconvert-presets.go b/resources/mediaconvert-presets.go index b0ec3bc4..ef1397f3 100644 --- a/resources/mediaconvert-presets.go +++ b/resources/mediaconvert-presets.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/mediaconvert" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const MediaConvertPresetResource = "MediaConvertPreset" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: MediaConvertPresetResource, Scope: nuke.Account, Lister: &MediaConvertPresetLister{}, diff --git a/resources/mediaconvert-queues.go b/resources/mediaconvert-queues.go index 16119b53..52eec06e 100644 --- a/resources/mediaconvert-queues.go +++ b/resources/mediaconvert-queues.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/mediaconvert" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -17,7 +18,7 @@ import ( const MediaConvertQueueResource = "MediaConvertQueue" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: MediaConvertQueueResource, Scope: nuke.Account, Lister: &MediaConvertQueueLister{}, diff --git a/resources/medialive-channels.go b/resources/medialive-channels.go index 17e23c35..e042466d 100644 --- a/resources/medialive-channels.go +++ b/resources/medialive-channels.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/medialive" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const MediaLiveChannelResource = "MediaLiveChannel" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: MediaLiveChannelResource, Scope: nuke.Account, Lister: &MediaLiveChannelLister{}, diff --git a/resources/medialive-inputs.go b/resources/medialive-inputs.go index 9b303cef..3285532e 100644 --- a/resources/medialive-inputs.go +++ b/resources/medialive-inputs.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/medialive" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const MediaLiveInputResource = "MediaLiveInput" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: MediaLiveInputResource, Scope: nuke.Account, Lister: &MediaLiveInputLister{}, diff --git a/resources/medialive-inputsecuritygroups.go b/resources/medialive-inputsecuritygroups.go index 9a899bae..72aa6585 100644 --- a/resources/medialive-inputsecuritygroups.go +++ b/resources/medialive-inputsecuritygroups.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/medialive" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const MediaLiveInputSecurityGroupResource = "MediaLiveInputSecurityGroup" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: MediaLiveInputSecurityGroupResource, Scope: nuke.Account, Lister: &MediaLiveInputSecurityGroupLister{}, diff --git a/resources/mediapackage-channels.go b/resources/mediapackage-channels.go index d7273cdc..6015a125 100644 --- a/resources/mediapackage-channels.go +++ b/resources/mediapackage-channels.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/mediapackage" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const MediaPackageChannelResource = "MediaPackageChannel" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: MediaPackageChannelResource, Scope: nuke.Account, Lister: &MediaPackageChannelLister{}, diff --git a/resources/mediapackage-originendpoints.go b/resources/mediapackage-originendpoints.go index 672446c7..c51acde1 100644 --- a/resources/mediapackage-originendpoints.go +++ b/resources/mediapackage-originendpoints.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/mediapackage" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const MediaPackageOriginEndpointResource = "MediaPackageOriginEndpoint" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: MediaPackageOriginEndpointResource, Scope: nuke.Account, Lister: &MediaPackageOriginEndpointLister{}, diff --git a/resources/mediastore-containers.go b/resources/mediastore-containers.go index 4e27b255..3bb3bad6 100644 --- a/resources/mediastore-containers.go +++ b/resources/mediastore-containers.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/mediastore" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const MediaStoreContainerResource = "MediaStoreContainer" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: MediaStoreContainerResource, Scope: nuke.Account, Lister: &MediaStoreContainerLister{}, diff --git a/resources/mediastoredata-items.go b/resources/mediastoredata-items.go index 58f6f999..1e3b4f85 100644 --- a/resources/mediastoredata-items.go +++ b/resources/mediastoredata-items.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/mediastore" "github.com/aws/aws-sdk-go/service/mediastoredata" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -15,7 +16,7 @@ import ( const MediaStoreDataItemsResource = "MediaStoreDataItems" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: MediaStoreDataItemsResource, Scope: nuke.Account, Lister: &MediaStoreDataItemsLister{}, diff --git a/resources/mediatailor-configurations.go b/resources/mediatailor-configurations.go index e0665eea..debd202a 100644 --- a/resources/mediatailor-configurations.go +++ b/resources/mediatailor-configurations.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/mediatailor" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const MediaTailorConfigurationResource = "MediaTailorConfiguration" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: MediaTailorConfigurationResource, Scope: nuke.Account, Lister: &MediaTailorConfigurationLister{}, diff --git a/resources/memorydb-acl.go b/resources/memorydb-acl.go index 1541c754..9f8b66e5 100644 --- a/resources/memorydb-acl.go +++ b/resources/memorydb-acl.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/memorydb" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -22,7 +23,7 @@ type MemoryDBACL struct { const MemoryDBACLResource = "MemoryDBACL" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: MemoryDBACLResource, Scope: nuke.Account, Lister: &MemoryDBACLLister{}, diff --git a/resources/memorydb-cluster.go b/resources/memorydb-cluster.go index 4e0ab9b6..633ab071 100644 --- a/resources/memorydb-cluster.go +++ b/resources/memorydb-cluster.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/memorydb" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -21,7 +22,7 @@ type MemoryDBCluster struct { const MemoryDBClusterResource = "MemoryDBCluster" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: MemoryDBClusterResource, Scope: nuke.Account, Lister: &MemoryDBClusterLister{}, diff --git a/resources/memorydb-parametergroups.go b/resources/memorydb-parametergroups.go index 30e7c0a9..3e1cb8f5 100644 --- a/resources/memorydb-parametergroups.go +++ b/resources/memorydb-parametergroups.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/memorydb" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -24,7 +25,7 @@ type MemoryDBParameterGroup struct { const MemoryDBParameterGroupResource = "MemoryDBParameterGroup" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: MemoryDBParameterGroupResource, Scope: nuke.Account, Lister: &MemoryDBParameterGroupLister{}, diff --git a/resources/memorydb-subnetgroups.go b/resources/memorydb-subnetgroups.go index 231efc6a..d20bd964 100644 --- a/resources/memorydb-subnetgroups.go +++ b/resources/memorydb-subnetgroups.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/memorydb" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -21,7 +22,7 @@ type MemoryDBSubnetGroup struct { const MemoryDBSubnetGroupResource = "MemoryDBSubnetGroup" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: MemoryDBSubnetGroupResource, Scope: nuke.Account, Lister: &MemoryDBSubnetGroupLister{}, diff --git a/resources/memorydb-user.go b/resources/memorydb-user.go index 858c9d2e..630d8100 100644 --- a/resources/memorydb-user.go +++ b/resources/memorydb-user.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/memorydb" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -23,7 +24,7 @@ type MemoryDBUser struct { const MemoryDBUserResource = "MemoryDBUser" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: MemoryDBUserResource, Scope: nuke.Account, Lister: &MemoryDBUserLister{}, diff --git a/resources/mgn-jobs.go b/resources/mgn-jobs.go index cc7fd772..de1b0c55 100644 --- a/resources/mgn-jobs.go +++ b/resources/mgn-jobs.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/service/mgn" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const MGNJobResource = "MGNJob" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: MGNJobResource, Scope: nuke.Account, Lister: &MGNJobLister{}, diff --git a/resources/mgn-source-servers.go b/resources/mgn-source-servers.go index 897975ce..0efecc62 100644 --- a/resources/mgn-source-servers.go +++ b/resources/mgn-source-servers.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/service/mgn" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const MGNSourceServerResource = "MGNSourceServer" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: MGNSourceServerResource, Scope: nuke.Account, Lister: &MGNSourceServerLister{}, diff --git a/resources/mobile-projects.go b/resources/mobile-projects.go index 7142546d..2ab5ff67 100644 --- a/resources/mobile-projects.go +++ b/resources/mobile-projects.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/mobile" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const MobileProjectResource = "MobileProject" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: MobileProjectResource, Scope: nuke.Account, Lister: &MobileProjectLister{}, diff --git a/resources/mq-broker.go b/resources/mq-broker.go index 366b5daa..8881793f 100644 --- a/resources/mq-broker.go +++ b/resources/mq-broker.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/mq" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const MQBrokerResource = "MQBroker" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: MQBrokerResource, Scope: nuke.Account, Lister: &MQBrokerLister{}, diff --git a/resources/msk-cluster.go b/resources/msk-cluster.go index 959d40a4..7d672b08 100644 --- a/resources/msk-cluster.go +++ b/resources/msk-cluster.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/kafka" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const MSKClusterResource = "MSKCluster" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: MSKClusterResource, Scope: nuke.Account, Lister: &MSKClusterLister{}, diff --git a/resources/msk-configuration.go b/resources/msk-configuration.go index b208cee5..4b459e29 100644 --- a/resources/msk-configuration.go +++ b/resources/msk-configuration.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/kafka" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const MSKConfigurationResource = "MSKConfiguration" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: MSKConfigurationResource, Scope: nuke.Account, Lister: &MSKConfigurationLister{}, diff --git a/resources/neptune-clusters.go b/resources/neptune-clusters.go index d892e3c2..ef8b7da3 100644 --- a/resources/neptune-clusters.go +++ b/resources/neptune-clusters.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/neptune" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const NeptuneClusterResource = "NeptuneCluster" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: NeptuneClusterResource, Scope: nuke.Account, Lister: &NeptuneClusterLister{}, diff --git a/resources/neptune-instances.go b/resources/neptune-instances.go index 2a2534b8..d64276d4 100644 --- a/resources/neptune-instances.go +++ b/resources/neptune-instances.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/neptune" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const NeptuneInstanceResource = "NeptuneInstance" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: NeptuneInstanceResource, Scope: nuke.Account, Lister: &NeptuneInstanceLister{}, diff --git a/resources/neptune-snapshots.go b/resources/neptune-snapshots.go index 9d57bb8c..e367d916 100644 --- a/resources/neptune-snapshots.go +++ b/resources/neptune-snapshots.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/neptune" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const NeptuneSnapshotResource = "NeptuneSnapshot" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: NeptuneSnapshotResource, Scope: nuke.Account, Lister: &NeptuneSnapshotLister{}, diff --git a/resources/opensearchservice-domain.go b/resources/opensearchservice-domain.go index 78f0a3d6..7eeb2b3f 100644 --- a/resources/opensearchservice-domain.go +++ b/resources/opensearchservice-domain.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/opensearchservice" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -16,7 +17,7 @@ import ( const OSDomainResource = "OSDomain" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: OSDomainResource, Scope: nuke.Account, Lister: &OSDomainLister{}, diff --git a/resources/opensearchservice-packages.go b/resources/opensearchservice-packages.go index 299c1ad1..6a933e50 100644 --- a/resources/opensearchservice-packages.go +++ b/resources/opensearchservice-packages.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/service/opensearchservice" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const OSPackageResource = "OSPackage" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: OSPackageResource, Scope: nuke.Account, Lister: &OSPackageLister{}, diff --git a/resources/opensearchservice-vpcendpoints.go b/resources/opensearchservice-vpcendpoints.go index b9baa0bd..4d8ad8ca 100644 --- a/resources/opensearchservice-vpcendpoints.go +++ b/resources/opensearchservice-vpcendpoints.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/opensearchservice" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const OSVPCEndpointResource = "OSVPCEndpoint" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: OSVPCEndpointResource, Scope: nuke.Account, Lister: &OSVPCEndpointLister{}, diff --git a/resources/opsworks-apps.go b/resources/opsworks-apps.go index ed609bb6..89b84e4c 100644 --- a/resources/opsworks-apps.go +++ b/resources/opsworks-apps.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/opsworks" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -13,7 +14,7 @@ import ( const OpsWorksAppResource = "OpsWorksApp" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: OpsWorksAppResource, Scope: nuke.Account, Lister: &OpsWorksAppLister{}, diff --git a/resources/opsworks-instances.go b/resources/opsworks-instances.go index 84ec5b7b..55d78ce3 100644 --- a/resources/opsworks-instances.go +++ b/resources/opsworks-instances.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/opsworks" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -13,7 +14,7 @@ import ( const OpsWorksInstanceResource = "OpsWorksInstance" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: OpsWorksInstanceResource, Scope: nuke.Account, Lister: &OpsWorksInstanceLister{}, diff --git a/resources/opsworks-layers.go b/resources/opsworks-layers.go index 630887be..e0396c97 100644 --- a/resources/opsworks-layers.go +++ b/resources/opsworks-layers.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/opsworks" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -13,7 +14,7 @@ import ( const OpsWorksLayerResource = "OpsWorksLayer" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: OpsWorksLayerResource, Scope: nuke.Account, Lister: &OpsWorksLayerLister{}, diff --git a/resources/opsworks-userprofiles.go b/resources/opsworks-userprofiles.go index 18c3f536..dcbf52a6 100644 --- a/resources/opsworks-userprofiles.go +++ b/resources/opsworks-userprofiles.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/service/opsworks" "github.com/aws/aws-sdk-go/service/sts" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -16,7 +17,7 @@ import ( const OpsWorksUserProfileResource = "OpsWorksUserProfile" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: OpsWorksUserProfileResource, Scope: nuke.Account, Lister: &OpsWorksUserProfileLister{}, diff --git a/resources/opsworkscm-backups.go b/resources/opsworkscm-backups.go index a93fbc7e..b853d034 100644 --- a/resources/opsworkscm-backups.go +++ b/resources/opsworkscm-backups.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/opsworkscm" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -13,7 +14,7 @@ import ( const OpsWorksCMBackupResource = "OpsWorksCMBackup" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: OpsWorksCMBackupResource, Scope: nuke.Account, Lister: &OpsWorksCMBackupLister{}, diff --git a/resources/opsworkscm-servers.go b/resources/opsworkscm-servers.go index 45fa91c8..dec1f2b5 100644 --- a/resources/opsworkscm-servers.go +++ b/resources/opsworkscm-servers.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/opsworkscm" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -13,7 +14,7 @@ import ( const OpsWorksCMServerResource = "OpsWorksCMServer" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: OpsWorksCMServerResource, Scope: nuke.Account, Lister: &OpsWorksCMServerLister{}, diff --git a/resources/opsworkscm-serverstates.go b/resources/opsworkscm-serverstates.go index bb02ada1..cefca634 100644 --- a/resources/opsworkscm-serverstates.go +++ b/resources/opsworkscm-serverstates.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/opsworkscm" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -15,7 +16,7 @@ import ( const OpsWorksCMServerStateResource = "OpsWorksCMServerState" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: OpsWorksCMServerStateResource, Scope: nuke.Account, Lister: &OpsWorksCMServerStateLister{}, diff --git a/resources/prometheusservice-workspace.go b/resources/prometheusservice-workspace.go index 8a68ebdc..90c7bac4 100644 --- a/resources/prometheusservice-workspace.go +++ b/resources/prometheusservice-workspace.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/prometheusservice" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const AMPWorkspaceResource = "AMPWorkspace" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: AMPWorkspaceResource, Scope: nuke.Account, Lister: &WorkspaceLister{}, diff --git a/resources/qldb-ledger.go b/resources/qldb-ledger.go index 2504258c..3d7c17a0 100644 --- a/resources/qldb-ledger.go +++ b/resources/qldb-ledger.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/qldb" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -18,7 +19,7 @@ import ( const QLDBLedgerResource = "QLDBLedger" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: QLDBLedgerResource, Scope: nuke.Account, Lister: &QLDBLedgerLister{}, diff --git a/resources/rds-cluster-snapshots.go b/resources/rds-cluster-snapshots.go index f95ac98e..5bcc9097 100644 --- a/resources/rds-cluster-snapshots.go +++ b/resources/rds-cluster-snapshots.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/rds" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const RDSClusterSnapshotResource = "RDSClusterSnapshot" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: RDSClusterSnapshotResource, Scope: nuke.Account, Lister: &RDSClusterSnapshotLister{}, diff --git a/resources/rds-clusters.go b/resources/rds-clusters.go index f34d7b1c..04c844fb 100644 --- a/resources/rds-clusters.go +++ b/resources/rds-clusters.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/rds" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const RDSDBClusterResource = "RDSDBCluster" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: RDSDBClusterResource, Scope: nuke.Account, Lister: &RDSDBClusterLister{}, diff --git a/resources/rds-dbclusterparametergroups.go b/resources/rds-dbclusterparametergroups.go index 5fb8d784..18bf954a 100644 --- a/resources/rds-dbclusterparametergroups.go +++ b/resources/rds-dbclusterparametergroups.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/rds" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -18,7 +19,7 @@ import ( const RDSDBClusterParameterGroupResource = "RDSDBClusterParameterGroup" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: RDSDBClusterParameterGroupResource, Scope: nuke.Account, Lister: &RDSDBClusterParameterGroupLister{}, diff --git a/resources/rds-dbparametergroups.go b/resources/rds-dbparametergroups.go index df6738f1..e928788f 100644 --- a/resources/rds-dbparametergroups.go +++ b/resources/rds-dbparametergroups.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/rds" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -18,7 +19,7 @@ import ( const RDSDBParameterGroupResource = "RDSDBParameterGroup" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: RDSDBParameterGroupResource, Scope: nuke.Account, Lister: &RDSDBParameterGroupLister{}, diff --git a/resources/rds-event-subscriptions.go b/resources/rds-event-subscriptions.go index 770b9a54..f77866bb 100644 --- a/resources/rds-event-subscriptions.go +++ b/resources/rds-event-subscriptions.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/rds" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const RDSEventSubscriptionResource = "RDSEventSubscription" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: RDSEventSubscriptionResource, Scope: nuke.Account, Lister: &RDSEventSubscriptionLister{}, diff --git a/resources/rds-instances.go b/resources/rds-instances.go index 5154f528..efcfbaa0 100644 --- a/resources/rds-instances.go +++ b/resources/rds-instances.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/rds" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -18,7 +19,7 @@ import ( const RDSInstanceResource = "RDSInstance" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: RDSInstanceResource, Scope: nuke.Account, Lister: &RDSInstanceLister{}, diff --git a/resources/rds-optiongroups.go b/resources/rds-optiongroups.go index c37eafc7..1495db35 100644 --- a/resources/rds-optiongroups.go +++ b/resources/rds-optiongroups.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/rds" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -18,7 +19,7 @@ import ( const RDSOptionGroupResource = "RDSOptionGroup" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: RDSOptionGroupResource, Scope: nuke.Account, Lister: &RDSOptionGroupLister{}, diff --git a/resources/rds-proxies.go b/resources/rds-proxies.go index 4987b3e4..331db133 100644 --- a/resources/rds-proxies.go +++ b/resources/rds-proxies.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/rds" "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" ) @@ -12,7 +13,7 @@ import ( const RDSProxyResource = "RDSProxy" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: RDSProxyResource, Scope: nuke.Account, Lister: &RDSProxyLister{}, diff --git a/resources/rds-snapshots.go b/resources/rds-snapshots.go index a9d7ab98..6822efe0 100644 --- a/resources/rds-snapshots.go +++ b/resources/rds-snapshots.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/rds" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -18,7 +19,7 @@ import ( const RDSSnapshotResource = "RDSSnapshot" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: RDSSnapshotResource, Scope: nuke.Account, Lister: &RDSSnapshotLister{}, diff --git a/resources/rds-subnets.go b/resources/rds-subnets.go index 99d565d3..9a222ea0 100644 --- a/resources/rds-subnets.go +++ b/resources/rds-subnets.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/rds" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const RDSDBSubnetGroupResource = "RDSDBSubnetGroup" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: RDSDBSubnetGroupResource, Scope: nuke.Account, Lister: &RDSDBSubnetGroupLister{}, diff --git a/resources/redshift-clusters.go b/resources/redshift-clusters.go index 3d16c6d6..026f3202 100644 --- a/resources/redshift-clusters.go +++ b/resources/redshift-clusters.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/redshift" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const RedshiftClusterResource = "RedshiftCluster" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: RedshiftClusterResource, Scope: nuke.Account, Lister: &RedshiftClusterLister{}, diff --git a/resources/redshift-parametergroups.go b/resources/redshift-parametergroups.go index 0a20bb41..e043373e 100644 --- a/resources/redshift-parametergroups.go +++ b/resources/redshift-parametergroups.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/redshift" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -16,7 +17,7 @@ import ( const RedshiftParameterGroupResource = "RedshiftParameterGroup" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: RedshiftParameterGroupResource, Scope: nuke.Account, Lister: &RedshiftParameterGroupLister{}, diff --git a/resources/redshift-scheduled-action.go b/resources/redshift-scheduled-action.go index 5f67a5ba..cbb7bdc3 100644 --- a/resources/redshift-scheduled-action.go +++ b/resources/redshift-scheduled-action.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/redshift" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const RedshiftScheduledActionResource = "RedshiftScheduledAction" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: RedshiftScheduledActionResource, Scope: nuke.Account, Lister: &RedshiftScheduledActionLister{}, diff --git a/resources/redshift-snapshots.go b/resources/redshift-snapshots.go index b6672707..478f033a 100644 --- a/resources/redshift-snapshots.go +++ b/resources/redshift-snapshots.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/redshift" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const RedshiftSnapshotResource = "RedshiftSnapshot" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: RedshiftSnapshotResource, Scope: nuke.Account, Lister: &RedshiftSnapshotLister{}, diff --git a/resources/redshift-subnetgroups.go b/resources/redshift-subnetgroups.go index 66f22ce5..af9b8396 100644 --- a/resources/redshift-subnetgroups.go +++ b/resources/redshift-subnetgroups.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/redshift" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const RedshiftSubnetGroupResource = "RedshiftSubnetGroup" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: RedshiftSubnetGroupResource, Scope: nuke.Account, Lister: &RedshiftSubnetGroupLister{}, diff --git a/resources/rekognition-collection.go b/resources/rekognition-collection.go index 92a45eb7..875cd62f 100644 --- a/resources/rekognition-collection.go +++ b/resources/rekognition-collection.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/rekognition" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const RekognitionCollectionResource = "RekognitionCollection" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: RekognitionCollectionResource, Scope: nuke.Account, Lister: &RekognitionCollectionLister{}, diff --git a/resources/resource-explorer2-indexes.go b/resources/resource-explorer2-indexes.go index 1f029c90..14e4264b 100644 --- a/resources/resource-explorer2-indexes.go +++ b/resources/resource-explorer2-indexes.go @@ -6,13 +6,14 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/resourceexplorer2" "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" ) const ResourceExplorer2IndexResource = "ResourceExplorer2Index" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ResourceExplorer2IndexResource, Scope: nuke.Account, Lister: &ResourceExplorer2IndexLister{}, diff --git a/resources/resource-explorer2-views.go b/resources/resource-explorer2-views.go index 5f5afbcd..8a7c3173 100644 --- a/resources/resource-explorer2-views.go +++ b/resources/resource-explorer2-views.go @@ -6,13 +6,14 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/resourceexplorer2" "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" ) const ResourceExplorer2ViewResource = "ResourceExplorer2View" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ResourceExplorer2ViewResource, Scope: nuke.Account, Lister: &ResourceExplorer2ViewLister{}, diff --git a/resources/resourcegroups-groups.go b/resources/resourcegroups-groups.go index 200748f0..f365069b 100644 --- a/resources/resourcegroups-groups.go +++ b/resources/resourcegroups-groups.go @@ -6,13 +6,14 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/resourcegroups" "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" ) const ResourceGroupGroupResource = "ResourceGroupGroup" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ResourceGroupGroupResource, Scope: nuke.Account, Lister: &ResourceGroupGroupLister{}, diff --git a/resources/robomaker-robot-applications.go b/resources/robomaker-robot-applications.go index f2400d38..32e6cd4f 100644 --- a/resources/robomaker-robot-applications.go +++ b/resources/robomaker-robot-applications.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/robomaker" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const RoboMakerRobotApplicationResource = "RoboMakerRobotApplication" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: RoboMakerRobotApplicationResource, Scope: nuke.Account, Lister: &RoboMakerRobotApplicationLister{}, diff --git a/resources/robomaker-simulation-applications.go b/resources/robomaker-simulation-applications.go index 7027ca1a..900c75e4 100644 --- a/resources/robomaker-simulation-applications.go +++ b/resources/robomaker-simulation-applications.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/robomaker" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const RoboMakerSimulationApplicationResource = "RoboMakerSimulationApplication" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: RoboMakerSimulationApplicationResource, Scope: nuke.Account, Lister: &RoboMakerSimulationApplicationLister{}, diff --git a/resources/robomaker-simulation-jobs.go b/resources/robomaker-simulation-jobs.go index 0aa83280..63fc4548 100644 --- a/resources/robomaker-simulation-jobs.go +++ b/resources/robomaker-simulation-jobs.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/robomaker" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const RoboMakerSimulationJobResource = "RoboMakerSimulationJob" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: RoboMakerSimulationJobResource, Scope: nuke.Account, Lister: &RoboMakerSimulationJobLister{}, diff --git a/resources/route53-health-checks.go b/resources/route53-health-checks.go index 8e32b4d7..734077ae 100644 --- a/resources/route53-health-checks.go +++ b/resources/route53-health-checks.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/route53" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const Route53HealthCheckResource = "Route53HealthCheck" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: Route53HealthCheckResource, Scope: nuke.Account, Lister: &Route53HealthCheckLister{}, diff --git a/resources/route53-hosted-zones.go b/resources/route53-hosted-zones.go index 6e820a84..938352d9 100644 --- a/resources/route53-hosted-zones.go +++ b/resources/route53-hosted-zones.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/route53" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const Route53HostedZoneResource = "Route53HostedZone" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: Route53HostedZoneResource, Scope: nuke.Account, Lister: &Route53HostedZoneLister{}, diff --git a/resources/route53-resolver-endpoints.go b/resources/route53-resolver-endpoints.go index bc8126bb..43f62df0 100644 --- a/resources/route53-resolver-endpoints.go +++ b/resources/route53-resolver-endpoints.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/route53resolver" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -16,7 +17,7 @@ import ( const Route53ResolverEndpointResource = "Route53ResolverEndpoint" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: Route53ResolverEndpointResource, Scope: nuke.Account, Lister: &Route53ResolverEndpointLister{}, diff --git a/resources/route53-resolver-rules.go b/resources/route53-resolver-rules.go index f5936055..10782f8e 100644 --- a/resources/route53-resolver-rules.go +++ b/resources/route53-resolver-rules.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/service/route53resolver" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -18,7 +19,7 @@ import ( const Route53ResolverRuleResource = "Route53ResolverRule" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: Route53ResolverRuleResource, Scope: nuke.Account, Lister: &Route53ResolverRuleLister{}, diff --git a/resources/route53-resource-records.go b/resources/route53-resource-records.go index 4ee9baf0..85f7bf80 100644 --- a/resources/route53-resource-records.go +++ b/resources/route53-resource-records.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/route53" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const Route53ResourceRecordSetResource = "Route53ResourceRecordSet" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: Route53ResourceRecordSetResource, Scope: nuke.Account, Lister: &Route53ResourceRecordSetLister{}, diff --git a/resources/route53-traffic-policies.go b/resources/route53-traffic-policies.go index a0299ec5..17aca937 100644 --- a/resources/route53-traffic-policies.go +++ b/resources/route53-traffic-policies.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/route53" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const Route53TrafficPolicyResource = "Route53TrafficPolicy" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: Route53TrafficPolicyResource, Scope: nuke.Account, Lister: &Route53TrafficPolicyLister{}, diff --git a/resources/s3-access-points.go b/resources/s3-access-points.go index 0793c96e..aec6eb0f 100644 --- a/resources/s3-access-points.go +++ b/resources/s3-access-points.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/service/s3control" "github.com/aws/aws-sdk-go/service/sts" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -18,7 +19,7 @@ import ( const S3AccessPointResource = "S3AccessPoint" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: S3AccessPointResource, Scope: nuke.Account, Lister: &S3AccessPointLister{}, diff --git a/resources/s3-buckets.go b/resources/s3-buckets.go index 41a91ab9..1b588e0d 100644 --- a/resources/s3-buckets.go +++ b/resources/s3-buckets.go @@ -16,6 +16,7 @@ import ( "github.com/aws/aws-sdk-go/service/s3/s3iface" "github.com/aws/aws-sdk-go/service/s3/s3manager" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -25,7 +26,7 @@ import ( const S3BucketResource = "S3Bucket" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: S3BucketResource, Scope: nuke.Account, Lister: &S3BucketLister{}, diff --git a/resources/s3-multipart-uploads.go b/resources/s3-multipart-uploads.go index e4f18978..d5b9a437 100644 --- a/resources/s3-multipart-uploads.go +++ b/resources/s3-multipart-uploads.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/s3" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const S3MultipartUploadResource = "S3MultipartUpload" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: S3MultipartUploadResource, Scope: nuke.Account, Lister: &S3MultipartUploadLister{}, diff --git a/resources/s3-objects.go b/resources/s3-objects.go index 56a98e81..4c854f96 100644 --- a/resources/s3-objects.go +++ b/resources/s3-objects.go @@ -11,6 +11,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/s3" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -20,7 +21,7 @@ import ( const S3ObjectResource = "S3Object" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: S3ObjectResource, Scope: nuke.Account, Lister: &S3ObjectLister{}, diff --git a/resources/sagemaker-apps.go b/resources/sagemaker-apps.go index 68bb68b2..d510c3fc 100644 --- a/resources/sagemaker-apps.go +++ b/resources/sagemaker-apps.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/sagemaker" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const SageMakerAppResource = "SageMakerApp" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: SageMakerAppResource, Scope: nuke.Account, Lister: &SageMakerAppLister{}, diff --git a/resources/sagemaker-domain.go b/resources/sagemaker-domain.go index 7dd2590e..5c715ba8 100644 --- a/resources/sagemaker-domain.go +++ b/resources/sagemaker-domain.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/sagemaker" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const SageMakerDomainResource = "SageMakerDomain" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: SageMakerDomainResource, Scope: nuke.Account, Lister: &SageMakerDomainLister{}, diff --git a/resources/sagemaker-endpointconfigs.go b/resources/sagemaker-endpointconfigs.go index 1b3ffa8a..7ab25ffc 100644 --- a/resources/sagemaker-endpointconfigs.go +++ b/resources/sagemaker-endpointconfigs.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/sagemaker" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const SageMakerEndpointConfigResource = "SageMakerEndpointConfig" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: SageMakerEndpointConfigResource, Scope: nuke.Account, Lister: &SageMakerEndpointConfigLister{}, diff --git a/resources/sagemaker-endpoints.go b/resources/sagemaker-endpoints.go index 48ccb578..c31c0a9a 100644 --- a/resources/sagemaker-endpoints.go +++ b/resources/sagemaker-endpoints.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/sagemaker" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const SageMakerEndpointResource = "SageMakerEndpoint" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: SageMakerEndpointResource, Scope: nuke.Account, Lister: &SageMakerEndpointLister{}, diff --git a/resources/sagemaker-models.go b/resources/sagemaker-models.go index 00f3c72f..40cf80d3 100644 --- a/resources/sagemaker-models.go +++ b/resources/sagemaker-models.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/sagemaker" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const SageMakerModelResource = "SageMakerModel" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: SageMakerModelResource, Scope: nuke.Account, Lister: &SageMakerModelLister{}, diff --git a/resources/sagemaker-notebook-instancelifecycleconfigs.go b/resources/sagemaker-notebook-instancelifecycleconfigs.go index ea676ac7..9e1dfa1a 100644 --- a/resources/sagemaker-notebook-instancelifecycleconfigs.go +++ b/resources/sagemaker-notebook-instancelifecycleconfigs.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/sagemaker" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const SageMakerNotebookInstanceLifecycleConfigResource = "SageMakerNotebookInstanceLifecycleConfig" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: SageMakerNotebookInstanceLifecycleConfigResource, Scope: nuke.Account, Lister: &SageMakerNotebookInstanceLifecycleConfigLister{}, diff --git a/resources/sagemaker-notebook-instances.go b/resources/sagemaker-notebook-instances.go index 778be7fa..a5733936 100644 --- a/resources/sagemaker-notebook-instances.go +++ b/resources/sagemaker-notebook-instances.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/sagemaker" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const SageMakerNotebookInstanceResource = "SageMakerNotebookInstance" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: SageMakerNotebookInstanceResource, Scope: nuke.Account, Lister: &SageMakerNotebookInstanceLister{}, diff --git a/resources/sagemaker-notebook-instancestates.go b/resources/sagemaker-notebook-instancestates.go index 74d73426..95d79f74 100644 --- a/resources/sagemaker-notebook-instancestates.go +++ b/resources/sagemaker-notebook-instancestates.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/sagemaker" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -17,7 +18,7 @@ import ( const SageMakerNotebookInstanceStateResource = "SageMakerNotebookInstanceState" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: SageMakerNotebookInstanceStateResource, Scope: nuke.Account, Lister: &SageMakerNotebookInstanceStateLister{}, diff --git a/resources/sagemaker-userprofiles.go b/resources/sagemaker-userprofiles.go index 53971909..7261ec07 100644 --- a/resources/sagemaker-userprofiles.go +++ b/resources/sagemaker-userprofiles.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/sagemaker" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const SageMakerUserProfilesResource = "SageMakerUserProfiles" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: SageMakerUserProfilesResource, Scope: nuke.Account, Lister: &SageMakerUserProfilesLister{}, diff --git a/resources/secretsmanager-secrets.go b/resources/secretsmanager-secrets.go index ad4957bb..b3d8df3f 100644 --- a/resources/secretsmanager-secrets.go +++ b/resources/secretsmanager-secrets.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/secretsmanager" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const SecretsManagerSecretResource = "SecretsManagerSecret" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: SecretsManagerSecretResource, Scope: nuke.Account, Lister: &SecretsManagerSecretLister{}, diff --git a/resources/securityhub-hub.go b/resources/securityhub-hub.go index 6cbb295c..61cb40e5 100644 --- a/resources/securityhub-hub.go +++ b/resources/securityhub-hub.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/securityhub" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const SecurityHubResource = "SecurityHub" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: SecurityHubResource, Scope: nuke.Account, Lister: &SecurityHubLister{}, diff --git a/resources/servicecatalog-portfolio-constraints-attachments.go b/resources/servicecatalog-portfolio-constraints-attachments.go index 1239dc17..56d190fd 100644 --- a/resources/servicecatalog-portfolio-constraints-attachments.go +++ b/resources/servicecatalog-portfolio-constraints-attachments.go @@ -10,6 +10,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/servicecatalog" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -20,7 +21,7 @@ import ( const ServiceCatalogConstraintPortfolioAttachmentResource = "ServiceCatalogConstraintPortfolioAttachment" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ServiceCatalogConstraintPortfolioAttachmentResource, Scope: nuke.Account, Lister: &ServiceCatalogConstraintPortfolioAttachmentLister{}, diff --git a/resources/servicecatalog-portfolio-principal-attachments.go b/resources/servicecatalog-portfolio-principal-attachments.go index 9b9be5e2..29c61c3e 100644 --- a/resources/servicecatalog-portfolio-principal-attachments.go +++ b/resources/servicecatalog-portfolio-principal-attachments.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/servicecatalog" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const ServiceCatalogPrincipalPortfolioAttachmentResource = "ServiceCatalogPrincipalPortfolioAttachment" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ServiceCatalogPrincipalPortfolioAttachmentResource, Scope: nuke.Account, Lister: &ServiceCatalogPrincipalPortfolioAttachmentLister{}, diff --git a/resources/servicecatalog-portfolio-product-attachments.go b/resources/servicecatalog-portfolio-product-attachments.go index 15faabaf..fdcfa797 100644 --- a/resources/servicecatalog-portfolio-product-attachments.go +++ b/resources/servicecatalog-portfolio-product-attachments.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/servicecatalog" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const ServiceCatalogPortfolioProductAttachmentResource = "ServiceCatalogPortfolioProductAttachment" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ServiceCatalogPortfolioProductAttachmentResource, Scope: nuke.Account, Lister: &ServiceCatalogPortfolioProductAttachmentLister{}, diff --git a/resources/servicecatalog-portfolio-share-attachments.go b/resources/servicecatalog-portfolio-share-attachments.go index 2764540b..4ef50ec1 100644 --- a/resources/servicecatalog-portfolio-share-attachments.go +++ b/resources/servicecatalog-portfolio-share-attachments.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/servicecatalog" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const ServiceCatalogPortfolioShareAttachmentResource = "ServiceCatalogPortfolioShareAttachment" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ServiceCatalogPortfolioShareAttachmentResource, Scope: nuke.Account, Lister: &ServiceCatalogPortfolioShareAttachmentLister{}, diff --git a/resources/servicecatalog-portfolio-tagoptions-attachements.go b/resources/servicecatalog-portfolio-tagoptions-attachements.go index 2c0fb2f8..d851824e 100644 --- a/resources/servicecatalog-portfolio-tagoptions-attachements.go +++ b/resources/servicecatalog-portfolio-tagoptions-attachements.go @@ -10,6 +10,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/servicecatalog" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -20,7 +21,7 @@ import ( const ServiceCatalogTagOptionPortfolioAttachmentResource = "ServiceCatalogTagOptionPortfolioAttachment" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ServiceCatalogTagOptionPortfolioAttachmentResource, Scope: nuke.Account, Lister: &ServiceCatalogTagOptionPortfolioAttachmentLister{}, diff --git a/resources/servicecatalog-portfolios.go b/resources/servicecatalog-portfolios.go index af5a8c83..de7f6b16 100644 --- a/resources/servicecatalog-portfolios.go +++ b/resources/servicecatalog-portfolios.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/servicecatalog" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const ServiceCatalogPortfolioResource = "ServiceCatalogPortfolio" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ServiceCatalogPortfolioResource, Scope: nuke.Account, Lister: &ServiceCatalogPortfolioLister{}, diff --git a/resources/servicecatalog-products.go b/resources/servicecatalog-products.go index b457d1ec..47dcd6b3 100644 --- a/resources/servicecatalog-products.go +++ b/resources/servicecatalog-products.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/servicecatalog" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const ServiceCatalogProductResource = "ServiceCatalogProduct" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ServiceCatalogProductResource, Scope: nuke.Account, Lister: &ServiceCatalogProductLister{}, diff --git a/resources/servicecatalog-provisionedproducts.go b/resources/servicecatalog-provisionedproducts.go index 5a151128..5cac6920 100644 --- a/resources/servicecatalog-provisionedproducts.go +++ b/resources/servicecatalog-provisionedproducts.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/servicecatalog" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const ServiceCatalogProvisionedProductResource = "ServiceCatalogProvisionedProduct" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ServiceCatalogProvisionedProductResource, Scope: nuke.Account, Lister: &ServiceCatalogProvisionedProductLister{}, diff --git a/resources/servicecatalog-tagoptions.go b/resources/servicecatalog-tagoptions.go index 9b512934..1893fb13 100644 --- a/resources/servicecatalog-tagoptions.go +++ b/resources/servicecatalog-tagoptions.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/servicecatalog" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -18,7 +19,7 @@ import ( const ServiceCatalogTagOptionResource = "ServiceCatalogTagOption" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ServiceCatalogTagOptionResource, Scope: nuke.Account, Lister: &ServiceCatalogTagOptionLister{}, diff --git a/resources/servicediscovery-instances.go b/resources/servicediscovery-instances.go index a28334e0..e7029e31 100644 --- a/resources/servicediscovery-instances.go +++ b/resources/servicediscovery-instances.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/servicediscovery" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -16,7 +17,7 @@ import ( const ServiceDiscoveryInstanceResource = "ServiceDiscoveryInstance" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ServiceDiscoveryInstanceResource, Scope: nuke.Account, Lister: &ServiceDiscoveryInstanceLister{}, diff --git a/resources/servicediscovery-namespaces.go b/resources/servicediscovery-namespaces.go index fd9a597f..add9a0d8 100644 --- a/resources/servicediscovery-namespaces.go +++ b/resources/servicediscovery-namespaces.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/servicediscovery" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const ServiceDiscoveryNamespaceResource = "ServiceDiscoveryNamespace" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ServiceDiscoveryNamespaceResource, Scope: nuke.Account, Lister: &ServiceDiscoveryNamespaceLister{}, diff --git a/resources/servicediscovery-services.go b/resources/servicediscovery-services.go index 634b5088..b3d9ca19 100644 --- a/resources/servicediscovery-services.go +++ b/resources/servicediscovery-services.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/servicediscovery" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const ServiceDiscoveryServiceResource = "ServiceDiscoveryService" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: ServiceDiscoveryServiceResource, Scope: nuke.Account, Lister: &ServiceDiscoveryServiceLister{}, diff --git a/resources/ses-configurationsets.go b/resources/ses-configurationsets.go index 692c3f5b..e253d9a6 100644 --- a/resources/ses-configurationsets.go +++ b/resources/ses-configurationsets.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ses" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const SESConfigurationSetResource = "SESConfigurationSet" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: SESConfigurationSetResource, Scope: nuke.Account, Lister: &SESConfigurationSetLister{}, diff --git a/resources/ses-identities.go b/resources/ses-identities.go index 4babd2e3..589693ee 100644 --- a/resources/ses-identities.go +++ b/resources/ses-identities.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ses" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const SESIdentityResource = "SESIdentity" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: SESIdentityResource, Scope: nuke.Account, Lister: &SESIdentityLister{}, diff --git a/resources/ses-receiptfilters.go b/resources/ses-receiptfilters.go index daaf38b5..112817b8 100644 --- a/resources/ses-receiptfilters.go +++ b/resources/ses-receiptfilters.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/service/ses" sdkerrors "github.com/ekristen/libnuke/pkg/errors" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -17,7 +18,7 @@ import ( const SESReceiptFilterResource = "SESReceiptFilter" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: SESReceiptFilterResource, Scope: nuke.Account, Lister: &SESReceiptFilterLister{}, diff --git a/resources/ses-receiptrulesets.go b/resources/ses-receiptrulesets.go index c41919ee..7008c5e2 100644 --- a/resources/ses-receiptrulesets.go +++ b/resources/ses-receiptrulesets.go @@ -10,6 +10,7 @@ import ( "github.com/aws/aws-sdk-go/service/ses" sdkerrors "github.com/ekristen/libnuke/pkg/errors" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -18,7 +19,7 @@ import ( const SESReceiptRuleSetResource = "SESReceiptRuleSet" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: SESReceiptRuleSetResource, Scope: nuke.Account, Lister: &SESReceiptRuleSetLister{}, diff --git a/resources/ses-templates.go b/resources/ses-templates.go index f953efae..628f5ed4 100644 --- a/resources/ses-templates.go +++ b/resources/ses-templates.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ses" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const SESTemplateResource = "SESTemplate" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: SESTemplateResource, Scope: nuke.Account, Lister: &SESTemplateLister{}, diff --git a/resources/sfn-statemachines.go b/resources/sfn-statemachines.go index 74be8579..397c2c56 100644 --- a/resources/sfn-statemachines.go +++ b/resources/sfn-statemachines.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/sfn" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const SFNStateMachineResource = "SFNStateMachine" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: SFNStateMachineResource, Scope: nuke.Account, Lister: &SFNStateMachineLister{}, diff --git a/resources/signer-signingjobs.go b/resources/signer-signingjobs.go index 88ded25a..9387ed85 100644 --- a/resources/signer-signingjobs.go +++ b/resources/signer-signingjobs.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/signer" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -18,7 +19,7 @@ import ( const SignerSigningJobResource = "SignerSigningJob" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: SignerSigningJobResource, Scope: nuke.Account, Lister: &SignerSigningJobLister{}, diff --git a/resources/simpledb-domains.go b/resources/simpledb-domains.go index 26a493cc..68ee7626 100644 --- a/resources/simpledb-domains.go +++ b/resources/simpledb-domains.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/simpledb" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const SimpleDBDomainResource = "SimpleDBDomain" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: SimpleDBDomainResource, Scope: nuke.Account, Lister: &SimpleDBDomainLister{}, diff --git a/resources/sns-endpoints.go b/resources/sns-endpoints.go index 4e98eb5b..a18507dc 100644 --- a/resources/sns-endpoints.go +++ b/resources/sns-endpoints.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/service/sns" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -15,7 +16,7 @@ import ( const SNSEndpointResource = "SNSEndpoint" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: SNSEndpointResource, Scope: nuke.Account, Lister: &SNSEndpointLister{}, diff --git a/resources/sns-platformapplications.go b/resources/sns-platformapplications.go index da4b0ba0..6269f703 100644 --- a/resources/sns-platformapplications.go +++ b/resources/sns-platformapplications.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/service/sns" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -15,7 +16,7 @@ import ( const SNSPlatformApplicationResource = "SNSPlatformApplication" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: SNSPlatformApplicationResource, Scope: nuke.Account, Lister: &SNSPlatformApplicationLister{}, diff --git a/resources/sns-subscriptions.go b/resources/sns-subscriptions.go index 57b0368e..fa998b44 100644 --- a/resources/sns-subscriptions.go +++ b/resources/sns-subscriptions.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/sns" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -15,7 +16,7 @@ import ( const SNSSubscriptionResource = "SNSSubscription" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: SNSSubscriptionResource, Scope: nuke.Account, Lister: &SNSSubscriptionLister{}, diff --git a/resources/sns-topics.go b/resources/sns-topics.go index 42b96ad9..2c375de4 100644 --- a/resources/sns-topics.go +++ b/resources/sns-topics.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/sns" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -16,7 +17,7 @@ import ( const SNSTopicResource = "SNSTopic" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: SNSTopicResource, Scope: nuke.Account, Lister: &SNSTopicLister{}, diff --git a/resources/sqs-queues.go b/resources/sqs-queues.go index 60ca59ab..5cb78f42 100644 --- a/resources/sqs-queues.go +++ b/resources/sqs-queues.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/sqs" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -15,7 +16,7 @@ import ( const SQSQueueResource = "SQSQueue" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: SQSQueueResource, Scope: nuke.Account, Lister: &SQSQueueLister{}, diff --git a/resources/ssm-activations.go b/resources/ssm-activations.go index ec5931e9..ada54582 100644 --- a/resources/ssm-activations.go +++ b/resources/ssm-activations.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/ssm" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -15,7 +16,7 @@ import ( const SSMActivationResource = "SSMActivation" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: SSMActivationResource, Scope: nuke.Account, Lister: &SSMActivationLister{}, diff --git a/resources/ssm-associations.go b/resources/ssm-associations.go index 07783226..fb3aa81c 100644 --- a/resources/ssm-associations.go +++ b/resources/ssm-associations.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ssm" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const SSMAssociationResource = "SSMAssociation" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: SSMAssociationResource, Scope: nuke.Account, Lister: &SSMAssociationLister{}, diff --git a/resources/ssm-documents.go b/resources/ssm-documents.go index 2a589a33..5ebebbb9 100644 --- a/resources/ssm-documents.go +++ b/resources/ssm-documents.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ssm" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const SSMDocumentResource = "SSMDocument" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: SSMDocumentResource, Scope: nuke.Account, Lister: &SSMDocumentLister{}, diff --git a/resources/ssm-maintenancewindows.go b/resources/ssm-maintenancewindows.go index 5a1c8b88..bdba1f05 100644 --- a/resources/ssm-maintenancewindows.go +++ b/resources/ssm-maintenancewindows.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ssm" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const SSMMaintenanceWindowResource = "SSMMaintenanceWindow" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: SSMMaintenanceWindowResource, Scope: nuke.Account, Lister: &SSMMaintenanceWindowLister{}, diff --git a/resources/ssm-parameters.go b/resources/ssm-parameters.go index 2675b8d3..874cf7a5 100644 --- a/resources/ssm-parameters.go +++ b/resources/ssm-parameters.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ssm" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const SSMParameterResource = "SSMParameter" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: SSMParameterResource, Scope: nuke.Account, Lister: &SSMParameterLister{}, diff --git a/resources/ssm-patchbaselines.go b/resources/ssm-patchbaselines.go index e24f6575..5d1c81f6 100644 --- a/resources/ssm-patchbaselines.go +++ b/resources/ssm-patchbaselines.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ssm" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -16,7 +17,7 @@ import ( const SSMPatchBaselineResource = "SSMPatchBaseline" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: SSMPatchBaselineResource, Scope: nuke.Account, Lister: &SSMPatchBaselineLister{}, diff --git a/resources/ssm-resourcedatasyncs.go b/resources/ssm-resourcedatasyncs.go index a09d7ab9..671b70a4 100644 --- a/resources/ssm-resourcedatasyncs.go +++ b/resources/ssm-resourcedatasyncs.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ssm" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const SSMResourceDataSyncResource = "SSMResourceDataSync" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: SSMResourceDataSyncResource, Scope: nuke.Account, Lister: &SSMResourceDataSyncLister{}, diff --git a/resources/storagegateway-fileshares.go b/resources/storagegateway-fileshares.go index 5e48a02b..46b4bcd1 100644 --- a/resources/storagegateway-fileshares.go +++ b/resources/storagegateway-fileshares.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/storagegateway" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const StorageGatewayFileShareResource = "StorageGatewayFileShare" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: StorageGatewayFileShareResource, Scope: nuke.Account, Lister: &StorageGatewayFileShareLister{}, diff --git a/resources/storagegateway-gateways.go b/resources/storagegateway-gateways.go index eb398e63..8f66da68 100644 --- a/resources/storagegateway-gateways.go +++ b/resources/storagegateway-gateways.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/storagegateway" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const StorageGatewayGatewayResource = "StorageGatewayGateway" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: StorageGatewayGatewayResource, Scope: nuke.Account, Lister: &StorageGatewayGatewayLister{}, diff --git a/resources/storagegateway-tapes.go b/resources/storagegateway-tapes.go index 2d201061..5016e8c6 100644 --- a/resources/storagegateway-tapes.go +++ b/resources/storagegateway-tapes.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/storagegateway" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const StorageGatewayTapeResource = "StorageGatewayTape" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: StorageGatewayTapeResource, Scope: nuke.Account, Lister: &StorageGatewayTapeLister{}, diff --git a/resources/storagegateway-volumes.go b/resources/storagegateway-volumes.go index c2c22fa6..83364b00 100644 --- a/resources/storagegateway-volumes.go +++ b/resources/storagegateway-volumes.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/storagegateway" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const StorageGatewayVolumeResource = "StorageGatewayVolume" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: StorageGatewayVolumeResource, Scope: nuke.Account, Lister: &StorageGatewayVolumeLister{}, diff --git a/resources/transfer-server-user.go b/resources/transfer-server-user.go index 466685f9..d2fda6ea 100644 --- a/resources/transfer-server-user.go +++ b/resources/transfer-server-user.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/transfer" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const TransferServerUserResource = "TransferServerUser" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: TransferServerUserResource, Scope: nuke.Account, Lister: &TransferServerUserLister{}, diff --git a/resources/transfer-server.go b/resources/transfer-server.go index 2d4f32ab..8e5240e6 100644 --- a/resources/transfer-server.go +++ b/resources/transfer-server.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/transfer" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -17,7 +18,7 @@ import ( const TransferServerResource = "TransferServer" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: TransferServerResource, Scope: nuke.Account, Lister: &TransferServerLister{}, diff --git a/resources/waf-rules.go b/resources/waf-rules.go index fd011d08..cb38b908 100644 --- a/resources/waf-rules.go +++ b/resources/waf-rules.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/waf" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const WAFRuleResource = "WAFRule" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: WAFRuleResource, Scope: nuke.Account, Lister: &WAFRuleLister{}, diff --git a/resources/waf-webacl-rule-attachments.go b/resources/waf-webacl-rule-attachments.go index c081f401..758cab03 100644 --- a/resources/waf-webacl-rule-attachments.go +++ b/resources/waf-webacl-rule-attachments.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/waf" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -16,7 +17,7 @@ import ( const WAFWebACLRuleAttachmentResource = "WAFWebACLRuleAttachment" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: WAFWebACLRuleAttachmentResource, Scope: nuke.Account, Lister: &WAFWebACLRuleAttachmentLister{}, diff --git a/resources/waf-webacls.go b/resources/waf-webacls.go index b72e42d0..3f0c50b1 100644 --- a/resources/waf-webacls.go +++ b/resources/waf-webacls.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/waf" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const WAFWebACLResource = "WAFWebACL" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: WAFWebACLResource, Scope: nuke.Account, Lister: &WAFWebACLLister{}, diff --git a/resources/wafregional-byte-match-set-tuples.go b/resources/wafregional-byte-match-set-tuples.go index 29061efd..c1baea47 100644 --- a/resources/wafregional-byte-match-set-tuples.go +++ b/resources/wafregional-byte-match-set-tuples.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/waf" "github.com/aws/aws-sdk-go/service/wafregional" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -16,7 +17,7 @@ import ( const WAFRegionalByteMatchSetIPResource = "WAFRegionalByteMatchSetIP" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: WAFRegionalByteMatchSetIPResource, Scope: nuke.Account, Lister: &WAFRegionalByteMatchSetIPLister{}, diff --git a/resources/wafregional-byte-match-sets.go b/resources/wafregional-byte-match-sets.go index abfd2cf2..50308454 100644 --- a/resources/wafregional-byte-match-sets.go +++ b/resources/wafregional-byte-match-sets.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/waf" "github.com/aws/aws-sdk-go/service/wafregional" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -16,7 +17,7 @@ import ( const WAFRegionalByteMatchSetResource = "WAFRegionalByteMatchSet" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: WAFRegionalByteMatchSetResource, Scope: nuke.Account, Lister: &WAFRegionalByteMatchSetLister{}, diff --git a/resources/wafregional-ip-set-ips.go b/resources/wafregional-ip-set-ips.go index 5bc7fe10..afe75e87 100644 --- a/resources/wafregional-ip-set-ips.go +++ b/resources/wafregional-ip-set-ips.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/waf" "github.com/aws/aws-sdk-go/service/wafregional" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -16,7 +17,7 @@ import ( const WAFRegionalIPSetIPResource = "WAFRegionalIPSetIP" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: WAFRegionalIPSetIPResource, Scope: nuke.Account, Lister: &WAFRegionalIPSetIPLister{}, diff --git a/resources/wafregional-ip-sets.go b/resources/wafregional-ip-sets.go index 0bececdd..798bbf13 100644 --- a/resources/wafregional-ip-sets.go +++ b/resources/wafregional-ip-sets.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/waf" "github.com/aws/aws-sdk-go/service/wafregional" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -16,7 +17,7 @@ import ( const WAFRegionalIPSetResource = "WAFRegionalIPSet" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: WAFRegionalIPSetResource, Scope: nuke.Account, Lister: &WAFRegionalIPSetLister{}, diff --git a/resources/wafregional-rate-based-rule-predicates.go b/resources/wafregional-rate-based-rule-predicates.go index c79cfb97..b4a90218 100644 --- a/resources/wafregional-rate-based-rule-predicates.go +++ b/resources/wafregional-rate-based-rule-predicates.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/waf" "github.com/aws/aws-sdk-go/service/wafregional" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -16,7 +17,7 @@ import ( const WAFRegionalRateBasedRulePredicateResource = "WAFRegionalRateBasedRulePredicate" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: WAFRegionalRateBasedRulePredicateResource, Scope: nuke.Account, Lister: &WAFRegionalRateBasedRulePredicateLister{}, diff --git a/resources/wafregional-rate-based-rules.go b/resources/wafregional-rate-based-rules.go index b0325924..dcf5baf8 100644 --- a/resources/wafregional-rate-based-rules.go +++ b/resources/wafregional-rate-based-rules.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/waf" "github.com/aws/aws-sdk-go/service/wafregional" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -15,7 +16,7 @@ import ( const WAFRegionalRateBasedRuleResource = "WAFRegionalRateBasedRule" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: WAFRegionalRateBasedRuleResource, Scope: nuke.Account, Lister: &WAFRegionalRateBasedRuleLister{}, diff --git a/resources/wafregional-regex-match-sets.go b/resources/wafregional-regex-match-sets.go index 57fd9185..96348921 100644 --- a/resources/wafregional-regex-match-sets.go +++ b/resources/wafregional-regex-match-sets.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/waf" "github.com/aws/aws-sdk-go/service/wafregional" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -16,7 +17,7 @@ import ( const WAFRegionalRegexMatchSetResource = "WAFRegionalRegexMatchSet" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: WAFRegionalRegexMatchSetResource, Scope: nuke.Account, Lister: &WAFRegionalRegexMatchSetLister{}, diff --git a/resources/wafregional-regex-match-tuples.go b/resources/wafregional-regex-match-tuples.go index f6da657e..69ebf0c8 100644 --- a/resources/wafregional-regex-match-tuples.go +++ b/resources/wafregional-regex-match-tuples.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/waf" "github.com/aws/aws-sdk-go/service/wafregional" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -16,7 +17,7 @@ import ( const WAFRegionalRegexMatchTupleResource = "WAFRegionalRegexMatchTuple" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: WAFRegionalRegexMatchTupleResource, Scope: nuke.Account, Lister: &WAFRegionalRegexMatchTupleLister{}, diff --git a/resources/wafregional-regex-pattern-sets.go b/resources/wafregional-regex-pattern-sets.go index 18a65b3a..d94313de 100644 --- a/resources/wafregional-regex-pattern-sets.go +++ b/resources/wafregional-regex-pattern-sets.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/waf" "github.com/aws/aws-sdk-go/service/wafregional" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -16,7 +17,7 @@ import ( const WAFRegionalRegexPatternSetResource = "WAFRegionalRegexPatternSet" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: WAFRegionalRegexPatternSetResource, Scope: nuke.Account, Lister: &WAFRegionalRegexPatternSetLister{}, diff --git a/resources/wafregional-regex-pattern-tuples.go b/resources/wafregional-regex-pattern-tuples.go index 7b45b779..7587a86a 100644 --- a/resources/wafregional-regex-pattern-tuples.go +++ b/resources/wafregional-regex-pattern-tuples.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/waf" "github.com/aws/aws-sdk-go/service/wafregional" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -16,7 +17,7 @@ import ( const WAFRegionalRegexPatternStringResource = "WAFRegionalRegexPatternString" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: WAFRegionalRegexPatternStringResource, Scope: nuke.Account, Lister: &WAFRegionalRegexPatternStringLister{}, diff --git a/resources/wafregional-rule-predicates.go b/resources/wafregional-rule-predicates.go index 467f9657..6ba8c271 100644 --- a/resources/wafregional-rule-predicates.go +++ b/resources/wafregional-rule-predicates.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/waf" "github.com/aws/aws-sdk-go/service/wafregional" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -16,7 +17,7 @@ import ( const WAFRegionalRulePredicateResource = "WAFRegionalRulePredicate" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: WAFRegionalRulePredicateResource, Scope: nuke.Account, Lister: &WAFRegionalRulePredicateLister{}, diff --git a/resources/wafregional-rulegroup.go b/resources/wafregional-rulegroup.go index 9e69b3bd..21adf5bf 100644 --- a/resources/wafregional-rulegroup.go +++ b/resources/wafregional-rulegroup.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/waf" "github.com/aws/aws-sdk-go/service/wafregional" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -16,7 +17,7 @@ import ( const WAFRegionalRuleGroupResource = "WAFRegionalRuleGroup" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: WAFRegionalRuleGroupResource, Scope: nuke.Account, Lister: &WAFRegionalRuleGroupLister{}, diff --git a/resources/wafregional-rules.go b/resources/wafregional-rules.go index 2e8c6fe9..8a505127 100644 --- a/resources/wafregional-rules.go +++ b/resources/wafregional-rules.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/waf" "github.com/aws/aws-sdk-go/service/wafregional" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -16,7 +17,7 @@ import ( const WAFRegionalRuleResource = "WAFRegionalRule" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: WAFRegionalRuleResource, Scope: nuke.Account, Lister: &WAFRegionalRuleLister{}, diff --git a/resources/wafregional-webacl-rule-attachments.go b/resources/wafregional-webacl-rule-attachments.go index 09da956c..9220f314 100644 --- a/resources/wafregional-webacl-rule-attachments.go +++ b/resources/wafregional-webacl-rule-attachments.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/service/waf" "github.com/aws/aws-sdk-go/service/wafregional" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -17,7 +18,7 @@ import ( const WAFRegionalWebACLRuleAttachmentResource = "WAFRegionalWebACLRuleAttachment" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: WAFRegionalWebACLRuleAttachmentResource, Scope: nuke.Account, Lister: &WAFRegionalWebACLRuleAttachmentLister{}, diff --git a/resources/wafregional-webacls.go b/resources/wafregional-webacls.go index 208f416f..e47d6260 100644 --- a/resources/wafregional-webacls.go +++ b/resources/wafregional-webacls.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/service/waf" "github.com/aws/aws-sdk-go/service/wafregional" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -22,7 +23,7 @@ type WAFRegionalWebACL struct { const WAFRegionalWebACLResource = "WAFRegionalWebACL" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: WAFRegionalWebACLResource, Scope: nuke.Account, Lister: &WAFRegionalWebACLLister{}, diff --git a/resources/wafv2-ipsets.go b/resources/wafv2-ipsets.go index 0e40dd36..70731173 100644 --- a/resources/wafv2-ipsets.go +++ b/resources/wafv2-ipsets.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/wafv2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const WAFv2IPSetResource = "WAFv2IPSet" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: WAFv2IPSetResource, Scope: nuke.Account, Lister: &WAFv2IPSetLister{}, diff --git a/resources/wafv2-regex-pattern-sets.go b/resources/wafv2-regex-pattern-sets.go index 6a40696f..b9d94b9f 100644 --- a/resources/wafv2-regex-pattern-sets.go +++ b/resources/wafv2-regex-pattern-sets.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/wafv2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const WAFv2RegexPatternSetResource = "WAFv2RegexPatternSet" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: WAFv2RegexPatternSetResource, Scope: nuke.Account, Lister: &WAFv2RegexPatternSetLister{}, diff --git a/resources/wafv2-rulegroup.go b/resources/wafv2-rulegroup.go index ae064ad6..03e3d4a0 100644 --- a/resources/wafv2-rulegroup.go +++ b/resources/wafv2-rulegroup.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/wafv2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const WAFv2RuleGroupResource = "WAFv2RuleGroup" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: WAFv2RuleGroupResource, Scope: nuke.Account, Lister: &WAFv2RuleGroupLister{}, diff --git a/resources/wafv2-webacls.go b/resources/wafv2-webacls.go index 51018943..a47b1bf3 100644 --- a/resources/wafv2-webacls.go +++ b/resources/wafv2-webacls.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/wafv2" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -15,7 +16,7 @@ import ( const WAFv2WebACLResource = "WAFv2WebACL" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: WAFv2WebACLResource, Scope: nuke.Account, Lister: &WAFv2WebACLLister{}, diff --git a/resources/workspaces-workspaces.go b/resources/workspaces-workspaces.go index 74f1bf91..fb613e98 100644 --- a/resources/workspaces-workspaces.go +++ b/resources/workspaces-workspaces.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/workspaces" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -14,7 +15,7 @@ import ( const WorkSpacesWorkspaceResource = "WorkSpacesWorkspace" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: WorkSpacesWorkspaceResource, Scope: nuke.Account, Lister: &WorkSpacesWorkspaceLister{}, diff --git a/resources/xray-group.go b/resources/xray-group.go index 8519781b..4fd295bd 100644 --- a/resources/xray-group.go +++ b/resources/xray-group.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/xray" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const XRayGroupResource = "XRayGroup" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: XRayGroupResource, Scope: nuke.Account, Lister: &XRayGroupLister{}, diff --git a/resources/xray-sampling-rule.go b/resources/xray-sampling-rule.go index 5ae8e940..3d6870ac 100644 --- a/resources/xray-sampling-rule.go +++ b/resources/xray-sampling-rule.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/xray" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -14,7 +15,7 @@ import ( const XRaySamplingRuleResource = "XRaySamplingRule" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: XRaySamplingRuleResource, Scope: nuke.Account, Lister: &XRaySamplingRuleLister{}, diff --git a/tools/create-resource/main.go b/tools/create-resource/main.go index ce704844..0e85981b 100644 --- a/tools/create-resource/main.go +++ b/tools/create-resource/main.go @@ -17,6 +17,7 @@ import ( "github.com/aws/aws-sdk-go/service/{{.Service}}" "github.com/ekristen/libnuke/pkg/resource" +"github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -25,7 +26,7 @@ import ( const {{.Combined}}Resource = "{{.Combined}}" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: {{.Combined}}Resource, Scope: nuke.Account, Lister: &{{.Combined}}Lister{}, diff --git a/tools/list-cloudcontrol/main.go b/tools/list-cloudcontrol/main.go index 7ec6a3d4..f3de4e52 100644 --- a/tools/list-cloudcontrol/main.go +++ b/tools/list-cloudcontrol/main.go @@ -4,7 +4,7 @@ import ( "context" "encoding/json" "fmt" - "github.com/ekristen/libnuke/pkg/resource" + "strings" "github.com/fatih/color" @@ -14,6 +14,8 @@ import ( "github.com/aws/aws-sdk-go/aws/endpoints" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/cloudformation" + + "github.com/ekristen/libnuke/pkg/registry" ) type CFTypeSchema struct { @@ -32,7 +34,7 @@ func main() { cf := cloudformation.New(sess) - mapping := resource.GetAlternativeResourceTypeMapping() + mapping := registry.GetAlternativeResourceTypeMapping() in := &cloudformation.ListTypesInput{ Type: aws.String(cloudformation.RegistryTypeResource), diff --git a/tools/migrate-resource/main.go b/tools/migrate-resource/main.go index a0026088..2a5582df 100644 --- a/tools/migrate-resource/main.go +++ b/tools/migrate-resource/main.go @@ -13,7 +13,7 @@ import ( var resourceTemplate = `const {{.ResourceType}}Resource = "{{.ResourceType}}" func init() { - resource.Register(&resource.Registration{ + registry.Register(®istry.Registration{ Name: {{.ResourceType}}Resource, Scope: nuke.Account, Lister: &{{.ResourceType}}Lister{}, @@ -30,6 +30,7 @@ var imports = `import ( "context" "github.com/ekristen/libnuke/pkg/resource" +"github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/aws-nuke/pkg/nuke" ` From 764734889cd282539c5daa9bfc1f1c122ba9d6e1 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sat, 17 Feb 2024 16:49:20 -0700 Subject: [PATCH 113/617] feat: global filters, update libnuke@0.10.0 (#77) * feat: introducing global filters, update libnuke@0.10.0 * docs: adding global filter documentation --- docs/config-filtering.md | 41 ++++++++++++++++++++++++++++++++++++++++ go.mod | 2 +- go.sum | 2 ++ 3 files changed, 44 insertions(+), 1 deletion(-) diff --git a/docs/config-filtering.md b/docs/config-filtering.md index 0b8b45d2..1b17c94b 100644 --- a/docs/config-filtering.md +++ b/docs/config-filtering.md @@ -1,8 +1,49 @@ +!!! warning + Filtering is a powerful tool, but it is also a double-edged sword. It is easy to make mistakes in the filter + configuration. Also, since aws-nuke is in continuous development, there is always a possibility to introduce new + bugs, no matter how careful we review new code. + # Filtering Filtering is used to exclude or include resources from being deleted. This is important for a number of reasons to include but limited to removing the user that runs the tool. +!!! note + Filters are `OR'd` together. This means that if a resource matches any filter, it will be excluded from deletion. + Currently, there is no way to do `AND'ing` of filters. + +## Global + +Filters are traditionally done against a specific resource. However, `__global__` as been introduced as a unique +resource type that can be used to apply filters to all defined resources. It's all or nothing, global cannot be used to +against some resources and not others. + +Global works by taking all filters defined under `__global__` and prepends to any filters found for a resource type. If +a resource does NOT have any filters defined, the `__global__` ones will still be used. + +### Example + +In this example, we are ignoring all resources that have the tag `aws-nuke` set to `ignore`. Additionally filtering +a specific instance by its `id`. When the `EC2Instance` resource is processed, it will have both filters applied. These + +```yaml +__global__: + - property: tag:aws-nuke + value: "ignore" + +EC2Instance: + - "i-01b489457a60298dd" +``` + +This will ultimately render as the following filters for the `EC2Instance` resource: + +```yaml +EC2Instance: + - "i-01b489457a60298dd" + - property: tag:aws-nuke + value: "ignore" +``` + ## Types The following are comparisons that you can use to filter resources. These are used in the configuration file. diff --git a/go.mod b/go.mod index 73c3a70c..b4c6aba8 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.21.6 require ( github.com/aws/aws-sdk-go v1.50.4 - github.com/ekristen/libnuke v0.9.1 + github.com/ekristen/libnuke v0.10.0 github.com/fatih/color v1.16.0 github.com/golang/mock v1.6.0 github.com/google/uuid v1.6.0 diff --git a/go.sum b/go.sum index 7f1e15b5..784e623e 100644 --- a/go.sum +++ b/go.sum @@ -10,6 +10,8 @@ github.com/ekristen/libnuke v0.8.0 h1:dxs+RosOcstbzvxnLyWN4mq1mAuOqMRUi7LEBC8rk4 github.com/ekristen/libnuke v0.8.0/go.mod h1:WhYx7LDAkvkXwwfhWCASRn7fbifF8kfyhNsUj5zCCVs= github.com/ekristen/libnuke v0.9.1 h1:AoX1cggVTanP671Xuh6kJRv0HEp26NLqqPTzwYbz9I0= github.com/ekristen/libnuke v0.9.1/go.mod h1:WhYx7LDAkvkXwwfhWCASRn7fbifF8kfyhNsUj5zCCVs= +github.com/ekristen/libnuke v0.10.0 h1:MBtly8gdZ8EBU/RPE1gI1aDpJlqWKKGxURcW7f8HVxY= +github.com/ekristen/libnuke v0.10.0/go.mod h1:WhYx7LDAkvkXwwfhWCASRn7fbifF8kfyhNsUj5zCCVs= github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= From 84dcd1e12d3782cbe214c9ef28ea87a375d5f105 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 22 Feb 2024 08:55:53 -0700 Subject: [PATCH 114/617] docs: improve aws auth docs --- docs/auth.md | 39 +++++++++++++++++++++++++++++++++------ 1 file changed, 33 insertions(+), 6 deletions(-) diff --git a/docs/auth.md b/docs/auth.md index c030b9b6..56da12d8 100644 --- a/docs/auth.md +++ b/docs/auth.md @@ -1,15 +1,35 @@ # Authentication -There are multiple ways to authenticate to AWS for *aws-nuke*. +The authentication for aws-nuke is a bit custom but still done through the AWS SDK. In a future version, we will +likely switch to using the AWS SDK directly to handle authentication. -## Using CLI Flags +## CLI Flags + +The following flags are available for authentication: + +- `--access-key-id` - The AWS access key ID +- `--secret-access-key` - The AWS secret access key +- `--session-token` - The AWS session token +- `--profile` - The AWS profile to use +- `--region` - The AWS region to use +- `--assume-role` - The ARN of the role to assume +- `--assume-role-session-name` - The session name to use when assuming a role +- `--assume-role-external-id` - The external ID to use when assuming a role + +### Static Credentials (CLI) To use *static credentials* the command line flags `--access-key-id` and `--secret-access-key` -are required. The flag `--session-token` is only required for temporary sessions. +are required. The flag `--session-token` is only required for temporary sessions provided to you by the AWS STS service. + +**Note:** this is mutually exclusive with `--profile`. + +### Static Credentials (Profiles) `--profile` is also available if you are using the [AWS Config](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html) -### AWS Config +**Note:** this is mutually exclusive with `--access-key-id` and `--secret-access-key`. + +#### AWS Config You can also authenticate using the [AWS Config](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html) file. This can also have static credentials in them, but you can also use profiles. These files are generally located @@ -20,6 +40,13 @@ credentials in the [shared credential file](https://docs.aws.amazon.com/cli/late ## Environment Variables -To use *static credentials* via environment variables, export `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY` and -optionally if using a temporary session `AWS_SESSION_TOKEN`. +The following environment variables are available for authentication: +- `AWS_ACCESS_KEY_ID` - The AWS access key ID +- `AWS_SECRET_ACCESS_KEY` - The AWS secret access key +- `AWS_SESSION_TOKEN` - The AWS session token +- `AWS_PROFILE` - The AWS profile to use +- `AWS_REGION` - The AWS region to use +- `AWS_ASSUME_ROLE` - The ARN of the role to assume +- `AWS_ASSUME_ROLE_SESSION_NAME` - The session name to use when assuming a role +- `AWS_ASSUME_ROLE_EXTERNAL_ID` - The external ID to use when assuming a role From debc3712aefd3edf5b6538f7899c11ac2af3f9dd Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 22 Feb 2024 08:56:10 -0700 Subject: [PATCH 115/617] fix: add -c alias back for config --- pkg/commands/nuke/command.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg/commands/nuke/command.go b/pkg/commands/nuke/command.go index 49f38d18..cee96669 100644 --- a/pkg/commands/nuke/command.go +++ b/pkg/commands/nuke/command.go @@ -174,9 +174,10 @@ func execute(c *cli.Context) error { func init() { flags := []cli.Flag{ &cli.PathFlag{ - Name: "config", - Usage: "path to config file", - Value: "config.yaml", + Name: "config", + Aliases: []string{"c"}, + Usage: "path to config file", + Value: "config.yaml", }, &cli.StringSliceFlag{ Name: "include", From 7e7cca2241c1d8dee49b7222f9a400fdf61a3078 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 22 Feb 2024 08:59:41 -0700 Subject: [PATCH 116/617] fix: role session name and external id should be optional --- pkg/awsutil/session.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkg/awsutil/session.go b/pkg/awsutil/session.go index 9505c1da..7674f7b0 100644 --- a/pkg/awsutil/session.go +++ b/pkg/awsutil/session.go @@ -119,8 +119,13 @@ func (c *Credentials) rootSession() (*session.Session, error) { // if given a role to assume, overwrite the session credentials with assume role credentials if c.AssumeRoleArn != "" { sess.Config.Credentials = stscreds.NewCredentials(sess, c.AssumeRoleArn, func(p *stscreds.AssumeRoleProvider) { - p.RoleSessionName = c.RoleSessionName - p.ExternalID = aws.String(c.ExternalId) + if c.RoleSessionName == "" { + p.RoleSessionName = c.RoleSessionName + } + + if c.ExternalId == "" { + p.ExternalID = aws.String(c.ExternalId) + } }) } From 9afab1fa6c7ea2836ae8f92a81b1659d18462ebc Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 22 Feb 2024 09:13:17 -0700 Subject: [PATCH 117/617] docs: updating usages for aws auth related cli options --- pkg/commands/nuke/command.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkg/commands/nuke/command.go b/pkg/commands/nuke/command.go index cee96669..45dc48a1 100644 --- a/pkg/commands/nuke/command.go +++ b/pkg/commands/nuke/command.go @@ -223,34 +223,42 @@ func init() { &cli.StringFlag{ Name: "default-region", EnvVars: []string{"AWS_DEFAULT_REGION"}, + Usage: "the default aws region to use when setting up the aws auth session", }, &cli.StringFlag{ Name: "access-key-id", EnvVars: []string{"AWS_ACCESS_KEY_ID"}, + Usage: "the aws access key id to use when setting up the aws auth session", }, &cli.StringFlag{ Name: "secret-access-key", EnvVars: []string{"AWS_SECRET_ACCESS_KEY"}, + Usage: "the aws secret access key to use when setting up the aws auth session", }, &cli.StringFlag{ Name: "session-token", EnvVars: []string{"AWS_SESSION_TOKEN"}, + Usage: "the aws session token to use when setting up the aws auth session, typically used for temporary credentials", }, &cli.StringFlag{ Name: "profile", EnvVars: []string{"AWS_PROFILE"}, + Usage: "the aws profile to use when setting up the aws auth session, typically used for shared credentials files", }, &cli.StringFlag{ Name: "assume-role-arn", EnvVars: []string{"AWS_ASSUME_ROLE_ARN"}, + Usage: "the role arn to assume using the credentials provided in the profile or statically set", }, &cli.StringFlag{ Name: "assume-role-session-name", EnvVars: []string{"AWS_ASSUME_ROLE_SESSION_NAME"}, + Usage: "the session name to provide for the assumed role", }, &cli.StringFlag{ Name: "assume-role-external-id", EnvVars: []string{"AWS_ASSUME_ROLE_EXTERNAL_ID"}, + Usage: "the external id to provide for the assumed role", }, } From f11bde602bcea5a1047f6d356a8cc2e140c2ca12 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 22 Feb 2024 10:34:11 -0700 Subject: [PATCH 118/617] fix: log error as warning vs throwing error with property not supported (#82) --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index b4c6aba8..80434875 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.21.6 require ( github.com/aws/aws-sdk-go v1.50.4 - github.com/ekristen/libnuke v0.10.0 + github.com/ekristen/libnuke v0.10.1 github.com/fatih/color v1.16.0 github.com/golang/mock v1.6.0 github.com/google/uuid v1.6.0 diff --git a/go.sum b/go.sum index 784e623e..3e0db75e 100644 --- a/go.sum +++ b/go.sum @@ -12,6 +12,8 @@ github.com/ekristen/libnuke v0.9.1 h1:AoX1cggVTanP671Xuh6kJRv0HEp26NLqqPTzwYbz9I github.com/ekristen/libnuke v0.9.1/go.mod h1:WhYx7LDAkvkXwwfhWCASRn7fbifF8kfyhNsUj5zCCVs= github.com/ekristen/libnuke v0.10.0 h1:MBtly8gdZ8EBU/RPE1gI1aDpJlqWKKGxURcW7f8HVxY= github.com/ekristen/libnuke v0.10.0/go.mod h1:WhYx7LDAkvkXwwfhWCASRn7fbifF8kfyhNsUj5zCCVs= +github.com/ekristen/libnuke v0.10.1 h1:+BRdDPuFR/5a8eJu1gpShXYbYs9tJ2kemM83EsbPp2g= +github.com/ekristen/libnuke v0.10.1/go.mod h1:WhYx7LDAkvkXwwfhWCASRn7fbifF8kfyhNsUj5zCCVs= github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= From b615c9e48e63788672419088ae2a28d68d2b9116 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 22 Feb 2024 18:10:07 -0700 Subject: [PATCH 119/617] fix: bug with operator check on optional session and external id (#83) --- pkg/awsutil/session.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/awsutil/session.go b/pkg/awsutil/session.go index 7674f7b0..5c7a0754 100644 --- a/pkg/awsutil/session.go +++ b/pkg/awsutil/session.go @@ -119,11 +119,11 @@ func (c *Credentials) rootSession() (*session.Session, error) { // if given a role to assume, overwrite the session credentials with assume role credentials if c.AssumeRoleArn != "" { sess.Config.Credentials = stscreds.NewCredentials(sess, c.AssumeRoleArn, func(p *stscreds.AssumeRoleProvider) { - if c.RoleSessionName == "" { + if c.RoleSessionName != "" { p.RoleSessionName = c.RoleSessionName } - if c.ExternalId == "" { + if c.ExternalId != "" { p.ExternalID = aws.String(c.ExternalId) } }) From 76fa1749308601176018f4cbb5052050699a1aa0 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 22 Feb 2024 18:59:01 -0700 Subject: [PATCH 120/617] feat: run against all enabled regions --- docs/config.md | 10 ++++++++ go.mod | 2 +- go.sum | 2 ++ pkg/awsutil/account.go | 46 +++++++++++++++++++++++++++++++++--- pkg/commands/nuke/command.go | 24 ++++++++++++++++++- pkg/common/version.go | 8 ++++++- 6 files changed, 86 insertions(+), 6 deletions(-) diff --git a/docs/config.md b/docs/config.md index d52f3db0..e5449104 100644 --- a/docs/config.md +++ b/docs/config.md @@ -70,6 +70,16 @@ The regions is a list of AWS regions that the tool will run against. The tool wi configuration. If no regions are listed, then the tool will **NOT** run against any region. Regions must be explicitly provided. +### All Enabled Regions + +You may specify the special region `all` to run against all enabled regions. This will run against all regions that are +enabled in the account. It will not run against regions that are disabled. It will also automatically include the +special region `global` which is for specific global resources. + +!!! important + The use of `all` will ignore all other regions specified in the configuration. It will only run against regions + that are enabled in the account. + ## Accounts The accounts section is a map of AWS Account IDs to their configuration. The account ID is the key and the value is the diff --git a/go.mod b/go.mod index 80434875..80068400 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/ekristen/aws-nuke go 1.21.6 require ( - github.com/aws/aws-sdk-go v1.50.4 + github.com/aws/aws-sdk-go v1.50.24 github.com/ekristen/libnuke v0.10.1 github.com/fatih/color v1.16.0 github.com/golang/mock v1.6.0 diff --git a/go.sum b/go.sum index 3e0db75e..7f894f56 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,7 @@ github.com/aws/aws-sdk-go v1.50.4 h1:jJNhxunBgfjmCSjMZ3INwQ19ZN3RoGEZfgSCUYF/NZw= github.com/aws/aws-sdk-go v1.50.4/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go v1.50.24 h1:3o2Pg7mOoVL0jv54vWtuafoZqAeEXLhm1tltWA2GcEw= +github.com/aws/aws-sdk-go v1.50.24/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= diff --git a/pkg/awsutil/account.go b/pkg/awsutil/account.go index 321ba562..f1ee33c7 100644 --- a/pkg/awsutil/account.go +++ b/pkg/awsutil/account.go @@ -4,8 +4,11 @@ import ( "fmt" "strings" + "github.com/gotidy/ptr" "github.com/pkg/errors" + "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/service/ec2" "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/sts" @@ -15,8 +18,10 @@ import ( type Account struct { Credentials - id string - aliases []string + id string + aliases []string + regions []string + disabledRegions []string } func NewAccount(creds Credentials, endpoints config.CustomEndpoints) (*Account, error) { @@ -49,6 +54,13 @@ func NewAccount(creds Credentials, endpoints config.CustomEndpoints) (*Account, return nil, errors.Wrap(err, "failed get caller identity") } + regionsOutput, err := ec2.New(defaultSession).DescribeRegions(&ec2.DescribeRegionsInput{ + AllRegions: ptr.Bool(true), + }) + if err != nil { + return nil, errors.Wrap(err, "failed to get regions") + } + globalSession, err := account.NewSession(GlobalRegionID, "") if err != nil { return nil, errors.Wrapf(err, "failed to create global session in %s", GlobalRegionID) @@ -66,16 +78,33 @@ func NewAccount(creds Credentials, endpoints config.CustomEndpoints) (*Account, } } - account.id = *identityOutput.Account + regions := []string{"global"} + var disabledRegions []string + for _, region := range regionsOutput.Regions { + logrus.Debugf("region: %s, status: %s", + ptr.ToString(region.RegionName), ptr.ToString(region.OptInStatus)) + + if ptr.ToString(region.OptInStatus) == "not-opted-in" { + disabledRegions = append(disabledRegions, *region.RegionName) + } else { + regions = append(regions, *region.RegionName) + } + } + + account.id = ptr.ToString(identityOutput.Account) account.aliases = aliases + account.regions = regions + account.disabledRegions = disabledRegions return &account, nil } +// ID returns the account ID func (a *Account) ID() string { return a.id } +// Alias returns the first alias for the account func (a *Account) Alias() string { if len(a.aliases) == 0 { return fmt.Sprintf("no-alias-%s", a.ID()) @@ -84,6 +113,7 @@ func (a *Account) Alias() string { return a.aliases[0] } +// Aliases returns the list of aliases for the account func (a *Account) Aliases() []string { return a.aliases } @@ -100,3 +130,13 @@ func (a *Account) ResourceTypeToServiceType(regionName, resourceType string) str } return "" } + +// Regions returns the list of regions that are enabled for the account +func (a *Account) Regions() []string { + return a.regions +} + +// DisabledRegions returns the list of regions that are disabled for the account +func (a *Account) DisabledRegions() []string { + return a.disabledRegions +} diff --git a/pkg/commands/nuke/command.go b/pkg/commands/nuke/command.go index 45dc48a1..6c692df4 100644 --- a/pkg/commands/nuke/command.go +++ b/pkg/commands/nuke/command.go @@ -5,6 +5,7 @@ import ( "fmt" "github.com/ekristen/libnuke/pkg/registry" "slices" + "strings" "time" "github.com/sirupsen/logrus" @@ -107,7 +108,7 @@ func execute(c *cli.Context) error { n := libnuke.New(params, filters, parsedConfig.Settings) n.SetRunSleep(5 * time.Second) - n.RegisterVersion(common.AppVersion.Summary) + n.RegisterVersion(fmt.Sprintf("> %s", common.AppVersion.String())) // Register our custom validate handler that validates the account and AWS nuke unique alias checks n.RegisterValidateHandler(func() error { @@ -143,6 +144,27 @@ func execute(c *cli.Context) error { registry.GetAlternativeResourceTypeMapping(), ) + // If the user has specified the "all" region, then we need to get the enabled regions for the account + // and use those. Otherwise, we will use the regions that are specified in the configuration. + if slices.Contains(parsedConfig.Regions, "all") { + parsedConfig.Regions = account.Regions() + + logrus.Info( + `"all" detected in region list, only enabled regions and "global" will be used, all others ignored`) + logrus.Infof("The following regions are enabled for the account (%d total):", len(parsedConfig.Regions)) + + printableRegions := make([]string, 0) + for i, region := range parsedConfig.Regions { + printableRegions = append(printableRegions, region) + if i%6 == 0 { // print 5 regions per line + logrus.Infof("> %s", strings.Join(printableRegions, ", ")) + printableRegions = make([]string, 0) + } else if i == len(parsedConfig.Regions)-1 { + logrus.Infof("> %s", strings.Join(printableRegions, ", ")) + } + } + } + // Register the scanners for each region that is defined in the configuration. for _, regionName := range parsedConfig.Regions { // Step 1 - Create the region object diff --git a/pkg/common/version.go b/pkg/common/version.go index 1c120923..9946992f 100644 --- a/pkg/common/version.go +++ b/pkg/common/version.go @@ -1,10 +1,12 @@ package common +import "fmt" + // NAME of the App var NAME = "aws-nuke" // SUMMARY of the Version -var SUMMARY = "3.0.0-beta.4" +var SUMMARY = "3.0.0-dev" // BRANCH of the Version var BRANCH = "dev" @@ -22,6 +24,10 @@ type AppVersionInfo struct { Commit string } +func (a *AppVersionInfo) String() string { + return fmt.Sprintf("%s - %s - %s", a.Name, a.Summary, a.Commit) +} + func init() { AppVersion = AppVersionInfo{ Name: NAME, From 32ef3aa08bacb072485ed55420bc237fdf5b49d7 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 22 Feb 2024 19:04:29 -0700 Subject: [PATCH 121/617] fix: improved logging around all regions --- pkg/commands/nuke/command.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/commands/nuke/command.go b/pkg/commands/nuke/command.go index 6c692df4..fc38fae0 100644 --- a/pkg/commands/nuke/command.go +++ b/pkg/commands/nuke/command.go @@ -151,6 +151,11 @@ func execute(c *cli.Context) error { logrus.Info( `"all" detected in region list, only enabled regions and "global" will be used, all others ignored`) + + if len(parsedConfig.Regions) > 1 { + logrus.Warnf(`additional regions defined along with "all", these will be ignored!`) + } + logrus.Infof("The following regions are enabled for the account (%d total):", len(parsedConfig.Regions)) printableRegions := make([]string, 0) From 549eec4eabb024b45f7dc5d080886c0ce1143e8d Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 22 Feb 2024 19:10:09 -0700 Subject: [PATCH 122/617] tests: update mocks for new aws-sdk version --- go.mod | 2 + go.sum | 12 +- mocks/mock_cloudformationiface/mock.go | 684 ++++++++++++++++++++++++- mocks/mock_iamiface/mock.go | 2 +- resources/cloudformation_mock_test.go | 2 + resources/iam_mock_test.go | 2 + 6 files changed, 694 insertions(+), 10 deletions(-) diff --git a/go.mod b/go.mod index 80068400..c3f5fd90 100644 --- a/go.mod +++ b/go.mod @@ -29,9 +29,11 @@ require ( github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/stevenle/topsort v0.2.0 // indirect github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect + golang.org/x/mod v0.9.0 // indirect golang.org/x/net v0.19.0 // indirect golang.org/x/sync v0.6.0 // indirect golang.org/x/sys v0.16.0 // indirect + golang.org/x/tools v0.1.12 // indirect gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect gopkg.in/yaml.v2 v2.4.0 // indirect ) diff --git a/go.sum b/go.sum index 7f894f56..7d31a516 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,3 @@ -github.com/aws/aws-sdk-go v1.50.4 h1:jJNhxunBgfjmCSjMZ3INwQ19ZN3RoGEZfgSCUYF/NZw= -github.com/aws/aws-sdk-go v1.50.4/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/aws/aws-sdk-go v1.50.24 h1:3o2Pg7mOoVL0jv54vWtuafoZqAeEXLhm1tltWA2GcEw= github.com/aws/aws-sdk-go v1.50.24/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w= @@ -8,12 +6,6 @@ github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ3 github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/ekristen/libnuke v0.8.0 h1:dxs+RosOcstbzvxnLyWN4mq1mAuOqMRUi7LEBC8rk44= -github.com/ekristen/libnuke v0.8.0/go.mod h1:WhYx7LDAkvkXwwfhWCASRn7fbifF8kfyhNsUj5zCCVs= -github.com/ekristen/libnuke v0.9.1 h1:AoX1cggVTanP671Xuh6kJRv0HEp26NLqqPTzwYbz9I0= -github.com/ekristen/libnuke v0.9.1/go.mod h1:WhYx7LDAkvkXwwfhWCASRn7fbifF8kfyhNsUj5zCCVs= -github.com/ekristen/libnuke v0.10.0 h1:MBtly8gdZ8EBU/RPE1gI1aDpJlqWKKGxURcW7f8HVxY= -github.com/ekristen/libnuke v0.10.0/go.mod h1:WhYx7LDAkvkXwwfhWCASRn7fbifF8kfyhNsUj5zCCVs= github.com/ekristen/libnuke v0.10.1 h1:+BRdDPuFR/5a8eJu1gpShXYbYs9tJ2kemM83EsbPp2g= github.com/ekristen/libnuke v0.10.1/go.mod h1:WhYx7LDAkvkXwwfhWCASRn7fbifF8kfyhNsUj5zCCVs= github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= @@ -68,6 +60,8 @@ github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1 golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.9.0 h1:KENHtAZL2y3NLMYZeHY9DW8HW8V+kQyJsY/V9JlKvCs= +golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= @@ -95,6 +89,8 @@ golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.12 h1:VveCTK38A2rkS8ZqFY25HIDFscX5X9OoEhJd3quQmXU= +golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/mocks/mock_cloudformationiface/mock.go b/mocks/mock_cloudformationiface/mock.go index 49a91061..1ac65a20 100644 --- a/mocks/mock_cloudformationiface/mock.go +++ b/mocks/mock_cloudformationiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /Users/ekristen/go/pkg/mod/github.com/aws/aws-sdk-go@v1.49.21/service/cloudformation/cloudformationiface/interface.go +// Source: /Users/ekristen/go/pkg/mod/github.com/aws/aws-sdk-go@v1.50.24/service/cloudformation/cloudformationiface/interface.go // Package mock_cloudformationiface is a generated GoMock package. package mock_cloudformationiface @@ -336,6 +336,56 @@ func (mr *MockCloudFormationAPIMockRecorder) CreateChangeSetWithContext(arg0, ar return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateChangeSetWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).CreateChangeSetWithContext), varargs...) } +// CreateGeneratedTemplate mocks base method. +func (m *MockCloudFormationAPI) CreateGeneratedTemplate(arg0 *cloudformation.CreateGeneratedTemplateInput) (*cloudformation.CreateGeneratedTemplateOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateGeneratedTemplate", arg0) + ret0, _ := ret[0].(*cloudformation.CreateGeneratedTemplateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateGeneratedTemplate indicates an expected call of CreateGeneratedTemplate. +func (mr *MockCloudFormationAPIMockRecorder) CreateGeneratedTemplate(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGeneratedTemplate", reflect.TypeOf((*MockCloudFormationAPI)(nil).CreateGeneratedTemplate), arg0) +} + +// CreateGeneratedTemplateRequest mocks base method. +func (m *MockCloudFormationAPI) CreateGeneratedTemplateRequest(arg0 *cloudformation.CreateGeneratedTemplateInput) (*request.Request, *cloudformation.CreateGeneratedTemplateOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateGeneratedTemplateRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.CreateGeneratedTemplateOutput) + return ret0, ret1 +} + +// CreateGeneratedTemplateRequest indicates an expected call of CreateGeneratedTemplateRequest. +func (mr *MockCloudFormationAPIMockRecorder) CreateGeneratedTemplateRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGeneratedTemplateRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).CreateGeneratedTemplateRequest), arg0) +} + +// CreateGeneratedTemplateWithContext mocks base method. +func (m *MockCloudFormationAPI) CreateGeneratedTemplateWithContext(arg0 aws.Context, arg1 *cloudformation.CreateGeneratedTemplateInput, arg2 ...request.Option) (*cloudformation.CreateGeneratedTemplateOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateGeneratedTemplateWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.CreateGeneratedTemplateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateGeneratedTemplateWithContext indicates an expected call of CreateGeneratedTemplateWithContext. +func (mr *MockCloudFormationAPIMockRecorder) CreateGeneratedTemplateWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGeneratedTemplateWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).CreateGeneratedTemplateWithContext), varargs...) +} + // CreateStack mocks base method. func (m *MockCloudFormationAPI) CreateStack(arg0 *cloudformation.CreateStackInput) (*cloudformation.CreateStackOutput, error) { m.ctrl.T.Helper() @@ -636,6 +686,56 @@ func (mr *MockCloudFormationAPIMockRecorder) DeleteChangeSetWithContext(arg0, ar return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteChangeSetWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DeleteChangeSetWithContext), varargs...) } +// DeleteGeneratedTemplate mocks base method. +func (m *MockCloudFormationAPI) DeleteGeneratedTemplate(arg0 *cloudformation.DeleteGeneratedTemplateInput) (*cloudformation.DeleteGeneratedTemplateOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteGeneratedTemplate", arg0) + ret0, _ := ret[0].(*cloudformation.DeleteGeneratedTemplateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteGeneratedTemplate indicates an expected call of DeleteGeneratedTemplate. +func (mr *MockCloudFormationAPIMockRecorder) DeleteGeneratedTemplate(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGeneratedTemplate", reflect.TypeOf((*MockCloudFormationAPI)(nil).DeleteGeneratedTemplate), arg0) +} + +// DeleteGeneratedTemplateRequest mocks base method. +func (m *MockCloudFormationAPI) DeleteGeneratedTemplateRequest(arg0 *cloudformation.DeleteGeneratedTemplateInput) (*request.Request, *cloudformation.DeleteGeneratedTemplateOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteGeneratedTemplateRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.DeleteGeneratedTemplateOutput) + return ret0, ret1 +} + +// DeleteGeneratedTemplateRequest indicates an expected call of DeleteGeneratedTemplateRequest. +func (mr *MockCloudFormationAPIMockRecorder) DeleteGeneratedTemplateRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGeneratedTemplateRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).DeleteGeneratedTemplateRequest), arg0) +} + +// DeleteGeneratedTemplateWithContext mocks base method. +func (m *MockCloudFormationAPI) DeleteGeneratedTemplateWithContext(arg0 aws.Context, arg1 *cloudformation.DeleteGeneratedTemplateInput, arg2 ...request.Option) (*cloudformation.DeleteGeneratedTemplateOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteGeneratedTemplateWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.DeleteGeneratedTemplateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteGeneratedTemplateWithContext indicates an expected call of DeleteGeneratedTemplateWithContext. +func (mr *MockCloudFormationAPIMockRecorder) DeleteGeneratedTemplateWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGeneratedTemplateWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DeleteGeneratedTemplateWithContext), varargs...) +} + // DeleteStack mocks base method. func (m *MockCloudFormationAPI) DeleteStack(arg0 *cloudformation.DeleteStackInput) (*cloudformation.DeleteStackOutput, error) { m.ctrl.T.Helper() @@ -1019,6 +1119,56 @@ func (mr *MockCloudFormationAPIMockRecorder) DescribeChangeSetWithContext(arg0, return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeChangeSetWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeChangeSetWithContext), varargs...) } +// DescribeGeneratedTemplate mocks base method. +func (m *MockCloudFormationAPI) DescribeGeneratedTemplate(arg0 *cloudformation.DescribeGeneratedTemplateInput) (*cloudformation.DescribeGeneratedTemplateOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeGeneratedTemplate", arg0) + ret0, _ := ret[0].(*cloudformation.DescribeGeneratedTemplateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeGeneratedTemplate indicates an expected call of DescribeGeneratedTemplate. +func (mr *MockCloudFormationAPIMockRecorder) DescribeGeneratedTemplate(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGeneratedTemplate", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeGeneratedTemplate), arg0) +} + +// DescribeGeneratedTemplateRequest mocks base method. +func (m *MockCloudFormationAPI) DescribeGeneratedTemplateRequest(arg0 *cloudformation.DescribeGeneratedTemplateInput) (*request.Request, *cloudformation.DescribeGeneratedTemplateOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeGeneratedTemplateRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.DescribeGeneratedTemplateOutput) + return ret0, ret1 +} + +// DescribeGeneratedTemplateRequest indicates an expected call of DescribeGeneratedTemplateRequest. +func (mr *MockCloudFormationAPIMockRecorder) DescribeGeneratedTemplateRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGeneratedTemplateRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeGeneratedTemplateRequest), arg0) +} + +// DescribeGeneratedTemplateWithContext mocks base method. +func (m *MockCloudFormationAPI) DescribeGeneratedTemplateWithContext(arg0 aws.Context, arg1 *cloudformation.DescribeGeneratedTemplateInput, arg2 ...request.Option) (*cloudformation.DescribeGeneratedTemplateOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeGeneratedTemplateWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.DescribeGeneratedTemplateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeGeneratedTemplateWithContext indicates an expected call of DescribeGeneratedTemplateWithContext. +func (mr *MockCloudFormationAPIMockRecorder) DescribeGeneratedTemplateWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGeneratedTemplateWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeGeneratedTemplateWithContext), varargs...) +} + // DescribeOrganizationsAccess mocks base method. func (m *MockCloudFormationAPI) DescribeOrganizationsAccess(arg0 *cloudformation.DescribeOrganizationsAccessInput) (*cloudformation.DescribeOrganizationsAccessOutput, error) { m.ctrl.T.Helper() @@ -1119,6 +1269,56 @@ func (mr *MockCloudFormationAPIMockRecorder) DescribePublisherWithContext(arg0, return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribePublisherWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribePublisherWithContext), varargs...) } +// DescribeResourceScan mocks base method. +func (m *MockCloudFormationAPI) DescribeResourceScan(arg0 *cloudformation.DescribeResourceScanInput) (*cloudformation.DescribeResourceScanOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeResourceScan", arg0) + ret0, _ := ret[0].(*cloudformation.DescribeResourceScanOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeResourceScan indicates an expected call of DescribeResourceScan. +func (mr *MockCloudFormationAPIMockRecorder) DescribeResourceScan(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeResourceScan", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeResourceScan), arg0) +} + +// DescribeResourceScanRequest mocks base method. +func (m *MockCloudFormationAPI) DescribeResourceScanRequest(arg0 *cloudformation.DescribeResourceScanInput) (*request.Request, *cloudformation.DescribeResourceScanOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeResourceScanRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.DescribeResourceScanOutput) + return ret0, ret1 +} + +// DescribeResourceScanRequest indicates an expected call of DescribeResourceScanRequest. +func (mr *MockCloudFormationAPIMockRecorder) DescribeResourceScanRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeResourceScanRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeResourceScanRequest), arg0) +} + +// DescribeResourceScanWithContext mocks base method. +func (m *MockCloudFormationAPI) DescribeResourceScanWithContext(arg0 aws.Context, arg1 *cloudformation.DescribeResourceScanInput, arg2 ...request.Option) (*cloudformation.DescribeResourceScanOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeResourceScanWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.DescribeResourceScanOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeResourceScanWithContext indicates an expected call of DescribeResourceScanWithContext. +func (mr *MockCloudFormationAPIMockRecorder) DescribeResourceScanWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeResourceScanWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).DescribeResourceScanWithContext), varargs...) +} + // DescribeStackDriftDetectionStatus mocks base method. func (m *MockCloudFormationAPI) DescribeStackDriftDetectionStatus(arg0 *cloudformation.DescribeStackDriftDetectionStatusInput) (*cloudformation.DescribeStackDriftDetectionStatusOutput, error) { m.ctrl.T.Helper() @@ -2018,6 +2218,56 @@ func (mr *MockCloudFormationAPIMockRecorder) ExecuteChangeSetWithContext(arg0, a return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecuteChangeSetWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ExecuteChangeSetWithContext), varargs...) } +// GetGeneratedTemplate mocks base method. +func (m *MockCloudFormationAPI) GetGeneratedTemplate(arg0 *cloudformation.GetGeneratedTemplateInput) (*cloudformation.GetGeneratedTemplateOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetGeneratedTemplate", arg0) + ret0, _ := ret[0].(*cloudformation.GetGeneratedTemplateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetGeneratedTemplate indicates an expected call of GetGeneratedTemplate. +func (mr *MockCloudFormationAPIMockRecorder) GetGeneratedTemplate(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGeneratedTemplate", reflect.TypeOf((*MockCloudFormationAPI)(nil).GetGeneratedTemplate), arg0) +} + +// GetGeneratedTemplateRequest mocks base method. +func (m *MockCloudFormationAPI) GetGeneratedTemplateRequest(arg0 *cloudformation.GetGeneratedTemplateInput) (*request.Request, *cloudformation.GetGeneratedTemplateOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetGeneratedTemplateRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.GetGeneratedTemplateOutput) + return ret0, ret1 +} + +// GetGeneratedTemplateRequest indicates an expected call of GetGeneratedTemplateRequest. +func (mr *MockCloudFormationAPIMockRecorder) GetGeneratedTemplateRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGeneratedTemplateRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).GetGeneratedTemplateRequest), arg0) +} + +// GetGeneratedTemplateWithContext mocks base method. +func (m *MockCloudFormationAPI) GetGeneratedTemplateWithContext(arg0 aws.Context, arg1 *cloudformation.GetGeneratedTemplateInput, arg2 ...request.Option) (*cloudformation.GetGeneratedTemplateOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetGeneratedTemplateWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.GetGeneratedTemplateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetGeneratedTemplateWithContext indicates an expected call of GetGeneratedTemplateWithContext. +func (mr *MockCloudFormationAPIMockRecorder) GetGeneratedTemplateWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGeneratedTemplateWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).GetGeneratedTemplateWithContext), varargs...) +} + // GetStackPolicy mocks base method. func (m *MockCloudFormationAPI) GetStackPolicy(arg0 *cloudformation.GetStackPolicyInput) (*cloudformation.GetStackPolicyOutput, error) { m.ctrl.T.Helper() @@ -2384,6 +2634,89 @@ func (mr *MockCloudFormationAPIMockRecorder) ListExportsWithContext(arg0, arg1 i return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListExportsWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListExportsWithContext), varargs...) } +// ListGeneratedTemplates mocks base method. +func (m *MockCloudFormationAPI) ListGeneratedTemplates(arg0 *cloudformation.ListGeneratedTemplatesInput) (*cloudformation.ListGeneratedTemplatesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListGeneratedTemplates", arg0) + ret0, _ := ret[0].(*cloudformation.ListGeneratedTemplatesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListGeneratedTemplates indicates an expected call of ListGeneratedTemplates. +func (mr *MockCloudFormationAPIMockRecorder) ListGeneratedTemplates(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGeneratedTemplates", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListGeneratedTemplates), arg0) +} + +// ListGeneratedTemplatesPages mocks base method. +func (m *MockCloudFormationAPI) ListGeneratedTemplatesPages(arg0 *cloudformation.ListGeneratedTemplatesInput, arg1 func(*cloudformation.ListGeneratedTemplatesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListGeneratedTemplatesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListGeneratedTemplatesPages indicates an expected call of ListGeneratedTemplatesPages. +func (mr *MockCloudFormationAPIMockRecorder) ListGeneratedTemplatesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGeneratedTemplatesPages", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListGeneratedTemplatesPages), arg0, arg1) +} + +// ListGeneratedTemplatesPagesWithContext mocks base method. +func (m *MockCloudFormationAPI) ListGeneratedTemplatesPagesWithContext(arg0 aws.Context, arg1 *cloudformation.ListGeneratedTemplatesInput, arg2 func(*cloudformation.ListGeneratedTemplatesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListGeneratedTemplatesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListGeneratedTemplatesPagesWithContext indicates an expected call of ListGeneratedTemplatesPagesWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ListGeneratedTemplatesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGeneratedTemplatesPagesWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListGeneratedTemplatesPagesWithContext), varargs...) +} + +// ListGeneratedTemplatesRequest mocks base method. +func (m *MockCloudFormationAPI) ListGeneratedTemplatesRequest(arg0 *cloudformation.ListGeneratedTemplatesInput) (*request.Request, *cloudformation.ListGeneratedTemplatesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListGeneratedTemplatesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.ListGeneratedTemplatesOutput) + return ret0, ret1 +} + +// ListGeneratedTemplatesRequest indicates an expected call of ListGeneratedTemplatesRequest. +func (mr *MockCloudFormationAPIMockRecorder) ListGeneratedTemplatesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGeneratedTemplatesRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListGeneratedTemplatesRequest), arg0) +} + +// ListGeneratedTemplatesWithContext mocks base method. +func (m *MockCloudFormationAPI) ListGeneratedTemplatesWithContext(arg0 aws.Context, arg1 *cloudformation.ListGeneratedTemplatesInput, arg2 ...request.Option) (*cloudformation.ListGeneratedTemplatesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListGeneratedTemplatesWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.ListGeneratedTemplatesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListGeneratedTemplatesWithContext indicates an expected call of ListGeneratedTemplatesWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ListGeneratedTemplatesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGeneratedTemplatesWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListGeneratedTemplatesWithContext), varargs...) +} + // ListImports mocks base method. func (m *MockCloudFormationAPI) ListImports(arg0 *cloudformation.ListImportsInput) (*cloudformation.ListImportsOutput, error) { m.ctrl.T.Helper() @@ -2467,6 +2800,255 @@ func (mr *MockCloudFormationAPIMockRecorder) ListImportsWithContext(arg0, arg1 i return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListImportsWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListImportsWithContext), varargs...) } +// ListResourceScanRelatedResources mocks base method. +func (m *MockCloudFormationAPI) ListResourceScanRelatedResources(arg0 *cloudformation.ListResourceScanRelatedResourcesInput) (*cloudformation.ListResourceScanRelatedResourcesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResourceScanRelatedResources", arg0) + ret0, _ := ret[0].(*cloudformation.ListResourceScanRelatedResourcesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListResourceScanRelatedResources indicates an expected call of ListResourceScanRelatedResources. +func (mr *MockCloudFormationAPIMockRecorder) ListResourceScanRelatedResources(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceScanRelatedResources", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListResourceScanRelatedResources), arg0) +} + +// ListResourceScanRelatedResourcesPages mocks base method. +func (m *MockCloudFormationAPI) ListResourceScanRelatedResourcesPages(arg0 *cloudformation.ListResourceScanRelatedResourcesInput, arg1 func(*cloudformation.ListResourceScanRelatedResourcesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResourceScanRelatedResourcesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListResourceScanRelatedResourcesPages indicates an expected call of ListResourceScanRelatedResourcesPages. +func (mr *MockCloudFormationAPIMockRecorder) ListResourceScanRelatedResourcesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceScanRelatedResourcesPages", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListResourceScanRelatedResourcesPages), arg0, arg1) +} + +// ListResourceScanRelatedResourcesPagesWithContext mocks base method. +func (m *MockCloudFormationAPI) ListResourceScanRelatedResourcesPagesWithContext(arg0 aws.Context, arg1 *cloudformation.ListResourceScanRelatedResourcesInput, arg2 func(*cloudformation.ListResourceScanRelatedResourcesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListResourceScanRelatedResourcesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListResourceScanRelatedResourcesPagesWithContext indicates an expected call of ListResourceScanRelatedResourcesPagesWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ListResourceScanRelatedResourcesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceScanRelatedResourcesPagesWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListResourceScanRelatedResourcesPagesWithContext), varargs...) +} + +// ListResourceScanRelatedResourcesRequest mocks base method. +func (m *MockCloudFormationAPI) ListResourceScanRelatedResourcesRequest(arg0 *cloudformation.ListResourceScanRelatedResourcesInput) (*request.Request, *cloudformation.ListResourceScanRelatedResourcesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResourceScanRelatedResourcesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.ListResourceScanRelatedResourcesOutput) + return ret0, ret1 +} + +// ListResourceScanRelatedResourcesRequest indicates an expected call of ListResourceScanRelatedResourcesRequest. +func (mr *MockCloudFormationAPIMockRecorder) ListResourceScanRelatedResourcesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceScanRelatedResourcesRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListResourceScanRelatedResourcesRequest), arg0) +} + +// ListResourceScanRelatedResourcesWithContext mocks base method. +func (m *MockCloudFormationAPI) ListResourceScanRelatedResourcesWithContext(arg0 aws.Context, arg1 *cloudformation.ListResourceScanRelatedResourcesInput, arg2 ...request.Option) (*cloudformation.ListResourceScanRelatedResourcesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListResourceScanRelatedResourcesWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.ListResourceScanRelatedResourcesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListResourceScanRelatedResourcesWithContext indicates an expected call of ListResourceScanRelatedResourcesWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ListResourceScanRelatedResourcesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceScanRelatedResourcesWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListResourceScanRelatedResourcesWithContext), varargs...) +} + +// ListResourceScanResources mocks base method. +func (m *MockCloudFormationAPI) ListResourceScanResources(arg0 *cloudformation.ListResourceScanResourcesInput) (*cloudformation.ListResourceScanResourcesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResourceScanResources", arg0) + ret0, _ := ret[0].(*cloudformation.ListResourceScanResourcesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListResourceScanResources indicates an expected call of ListResourceScanResources. +func (mr *MockCloudFormationAPIMockRecorder) ListResourceScanResources(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceScanResources", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListResourceScanResources), arg0) +} + +// ListResourceScanResourcesPages mocks base method. +func (m *MockCloudFormationAPI) ListResourceScanResourcesPages(arg0 *cloudformation.ListResourceScanResourcesInput, arg1 func(*cloudformation.ListResourceScanResourcesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResourceScanResourcesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListResourceScanResourcesPages indicates an expected call of ListResourceScanResourcesPages. +func (mr *MockCloudFormationAPIMockRecorder) ListResourceScanResourcesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceScanResourcesPages", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListResourceScanResourcesPages), arg0, arg1) +} + +// ListResourceScanResourcesPagesWithContext mocks base method. +func (m *MockCloudFormationAPI) ListResourceScanResourcesPagesWithContext(arg0 aws.Context, arg1 *cloudformation.ListResourceScanResourcesInput, arg2 func(*cloudformation.ListResourceScanResourcesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListResourceScanResourcesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListResourceScanResourcesPagesWithContext indicates an expected call of ListResourceScanResourcesPagesWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ListResourceScanResourcesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceScanResourcesPagesWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListResourceScanResourcesPagesWithContext), varargs...) +} + +// ListResourceScanResourcesRequest mocks base method. +func (m *MockCloudFormationAPI) ListResourceScanResourcesRequest(arg0 *cloudformation.ListResourceScanResourcesInput) (*request.Request, *cloudformation.ListResourceScanResourcesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResourceScanResourcesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.ListResourceScanResourcesOutput) + return ret0, ret1 +} + +// ListResourceScanResourcesRequest indicates an expected call of ListResourceScanResourcesRequest. +func (mr *MockCloudFormationAPIMockRecorder) ListResourceScanResourcesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceScanResourcesRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListResourceScanResourcesRequest), arg0) +} + +// ListResourceScanResourcesWithContext mocks base method. +func (m *MockCloudFormationAPI) ListResourceScanResourcesWithContext(arg0 aws.Context, arg1 *cloudformation.ListResourceScanResourcesInput, arg2 ...request.Option) (*cloudformation.ListResourceScanResourcesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListResourceScanResourcesWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.ListResourceScanResourcesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListResourceScanResourcesWithContext indicates an expected call of ListResourceScanResourcesWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ListResourceScanResourcesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceScanResourcesWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListResourceScanResourcesWithContext), varargs...) +} + +// ListResourceScans mocks base method. +func (m *MockCloudFormationAPI) ListResourceScans(arg0 *cloudformation.ListResourceScansInput) (*cloudformation.ListResourceScansOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResourceScans", arg0) + ret0, _ := ret[0].(*cloudformation.ListResourceScansOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListResourceScans indicates an expected call of ListResourceScans. +func (mr *MockCloudFormationAPIMockRecorder) ListResourceScans(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceScans", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListResourceScans), arg0) +} + +// ListResourceScansPages mocks base method. +func (m *MockCloudFormationAPI) ListResourceScansPages(arg0 *cloudformation.ListResourceScansInput, arg1 func(*cloudformation.ListResourceScansOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResourceScansPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListResourceScansPages indicates an expected call of ListResourceScansPages. +func (mr *MockCloudFormationAPIMockRecorder) ListResourceScansPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceScansPages", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListResourceScansPages), arg0, arg1) +} + +// ListResourceScansPagesWithContext mocks base method. +func (m *MockCloudFormationAPI) ListResourceScansPagesWithContext(arg0 aws.Context, arg1 *cloudformation.ListResourceScansInput, arg2 func(*cloudformation.ListResourceScansOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListResourceScansPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListResourceScansPagesWithContext indicates an expected call of ListResourceScansPagesWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ListResourceScansPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceScansPagesWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListResourceScansPagesWithContext), varargs...) +} + +// ListResourceScansRequest mocks base method. +func (m *MockCloudFormationAPI) ListResourceScansRequest(arg0 *cloudformation.ListResourceScansInput) (*request.Request, *cloudformation.ListResourceScansOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResourceScansRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.ListResourceScansOutput) + return ret0, ret1 +} + +// ListResourceScansRequest indicates an expected call of ListResourceScansRequest. +func (mr *MockCloudFormationAPIMockRecorder) ListResourceScansRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceScansRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListResourceScansRequest), arg0) +} + +// ListResourceScansWithContext mocks base method. +func (m *MockCloudFormationAPI) ListResourceScansWithContext(arg0 aws.Context, arg1 *cloudformation.ListResourceScansInput, arg2 ...request.Option) (*cloudformation.ListResourceScansOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListResourceScansWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.ListResourceScansOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListResourceScansWithContext indicates an expected call of ListResourceScansWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ListResourceScansWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceScansWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListResourceScansWithContext), varargs...) +} + // ListStackInstanceResourceDrifts mocks base method. func (m *MockCloudFormationAPI) ListStackInstanceResourceDrifts(arg0 *cloudformation.ListStackInstanceResourceDriftsInput) (*cloudformation.ListStackInstanceResourceDriftsOutput, error) { m.ctrl.T.Helper() @@ -3714,6 +4296,56 @@ func (mr *MockCloudFormationAPIMockRecorder) SignalResourceWithContext(arg0, arg return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SignalResourceWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).SignalResourceWithContext), varargs...) } +// StartResourceScan mocks base method. +func (m *MockCloudFormationAPI) StartResourceScan(arg0 *cloudformation.StartResourceScanInput) (*cloudformation.StartResourceScanOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartResourceScan", arg0) + ret0, _ := ret[0].(*cloudformation.StartResourceScanOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartResourceScan indicates an expected call of StartResourceScan. +func (mr *MockCloudFormationAPIMockRecorder) StartResourceScan(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartResourceScan", reflect.TypeOf((*MockCloudFormationAPI)(nil).StartResourceScan), arg0) +} + +// StartResourceScanRequest mocks base method. +func (m *MockCloudFormationAPI) StartResourceScanRequest(arg0 *cloudformation.StartResourceScanInput) (*request.Request, *cloudformation.StartResourceScanOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartResourceScanRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.StartResourceScanOutput) + return ret0, ret1 +} + +// StartResourceScanRequest indicates an expected call of StartResourceScanRequest. +func (mr *MockCloudFormationAPIMockRecorder) StartResourceScanRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartResourceScanRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).StartResourceScanRequest), arg0) +} + +// StartResourceScanWithContext mocks base method. +func (m *MockCloudFormationAPI) StartResourceScanWithContext(arg0 aws.Context, arg1 *cloudformation.StartResourceScanInput, arg2 ...request.Option) (*cloudformation.StartResourceScanOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StartResourceScanWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.StartResourceScanOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartResourceScanWithContext indicates an expected call of StartResourceScanWithContext. +func (mr *MockCloudFormationAPIMockRecorder) StartResourceScanWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartResourceScanWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).StartResourceScanWithContext), varargs...) +} + // StopStackSetOperation mocks base method. func (m *MockCloudFormationAPI) StopStackSetOperation(arg0 *cloudformation.StopStackSetOperationInput) (*cloudformation.StopStackSetOperationOutput, error) { m.ctrl.T.Helper() @@ -3814,6 +4446,56 @@ func (mr *MockCloudFormationAPIMockRecorder) TestTypeWithContext(arg0, arg1 inte return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TestTypeWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).TestTypeWithContext), varargs...) } +// UpdateGeneratedTemplate mocks base method. +func (m *MockCloudFormationAPI) UpdateGeneratedTemplate(arg0 *cloudformation.UpdateGeneratedTemplateInput) (*cloudformation.UpdateGeneratedTemplateOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateGeneratedTemplate", arg0) + ret0, _ := ret[0].(*cloudformation.UpdateGeneratedTemplateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateGeneratedTemplate indicates an expected call of UpdateGeneratedTemplate. +func (mr *MockCloudFormationAPIMockRecorder) UpdateGeneratedTemplate(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGeneratedTemplate", reflect.TypeOf((*MockCloudFormationAPI)(nil).UpdateGeneratedTemplate), arg0) +} + +// UpdateGeneratedTemplateRequest mocks base method. +func (m *MockCloudFormationAPI) UpdateGeneratedTemplateRequest(arg0 *cloudformation.UpdateGeneratedTemplateInput) (*request.Request, *cloudformation.UpdateGeneratedTemplateOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateGeneratedTemplateRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.UpdateGeneratedTemplateOutput) + return ret0, ret1 +} + +// UpdateGeneratedTemplateRequest indicates an expected call of UpdateGeneratedTemplateRequest. +func (mr *MockCloudFormationAPIMockRecorder) UpdateGeneratedTemplateRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGeneratedTemplateRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).UpdateGeneratedTemplateRequest), arg0) +} + +// UpdateGeneratedTemplateWithContext mocks base method. +func (m *MockCloudFormationAPI) UpdateGeneratedTemplateWithContext(arg0 aws.Context, arg1 *cloudformation.UpdateGeneratedTemplateInput, arg2 ...request.Option) (*cloudformation.UpdateGeneratedTemplateOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateGeneratedTemplateWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.UpdateGeneratedTemplateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateGeneratedTemplateWithContext indicates an expected call of UpdateGeneratedTemplateWithContext. +func (mr *MockCloudFormationAPIMockRecorder) UpdateGeneratedTemplateWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGeneratedTemplateWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).UpdateGeneratedTemplateWithContext), varargs...) +} + // UpdateStack mocks base method. func (m *MockCloudFormationAPI) UpdateStack(arg0 *cloudformation.UpdateStackInput) (*cloudformation.UpdateStackOutput, error) { m.ctrl.T.Helper() diff --git a/mocks/mock_iamiface/mock.go b/mocks/mock_iamiface/mock.go index b475cb13..96b855e1 100644 --- a/mocks/mock_iamiface/mock.go +++ b/mocks/mock_iamiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /Users/ekristen/go/pkg/mod/github.com/aws/aws-sdk-go@v1.49.21/service/iam/iamiface/interface.go +// Source: /Users/ekristen/go/pkg/mod/github.com/aws/aws-sdk-go@v1.50.24/service/iam/iamiface/interface.go // Package mock_iamiface is a generated GoMock package. package mock_iamiface diff --git a/resources/cloudformation_mock_test.go b/resources/cloudformation_mock_test.go index 882a94ce..536ff80d 100644 --- a/resources/cloudformation_mock_test.go +++ b/resources/cloudformation_mock_test.go @@ -1,4 +1,6 @@ //go:generate ../mocks/generate_mocks.sh cloudformation cloudformationiface package resources +import _ "github.com/golang/mock/mockgen" + // Note: empty on purpose, this file exist purely to generate mocks for the CloudFormation service diff --git a/resources/iam_mock_test.go b/resources/iam_mock_test.go index 9b563cd4..2fbdeaf0 100644 --- a/resources/iam_mock_test.go +++ b/resources/iam_mock_test.go @@ -1,4 +1,6 @@ //go:generate ../mocks/generate_mocks.sh iam iamiface package resources +import _ "github.com/golang/mock/mockgen" + // Note: empty on purpose, this file exist purely to generate mocks for the IAM service From b67d8392b133139d22c28be7a5177285eced634c Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 22 Feb 2024 19:15:54 -0700 Subject: [PATCH 123/617] fix: imports and mock generation --- mocks/generate_mocks.sh | 2 ++ resources/cloudformation_mock_test.go | 2 -- resources/iam_mock_test.go | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/mocks/generate_mocks.sh b/mocks/generate_mocks.sh index b90fe4a6..b1c9895f 100755 --- a/mocks/generate_mocks.sh +++ b/mocks/generate_mocks.sh @@ -3,4 +3,6 @@ SERVICE=$1 INTERFACE=$2 +go get github.com/golang/mock/mockgen@v1.6.0 + go run github.com/golang/mock/mockgen -source $(go list -m -mod=mod -f "{{.Dir}}" "github.com/aws/aws-sdk-go")/service/$SERVICE/$INTERFACE/interface.go -destination ../mocks/mock_$INTERFACE/mock.go diff --git a/resources/cloudformation_mock_test.go b/resources/cloudformation_mock_test.go index 536ff80d..882a94ce 100644 --- a/resources/cloudformation_mock_test.go +++ b/resources/cloudformation_mock_test.go @@ -1,6 +1,4 @@ //go:generate ../mocks/generate_mocks.sh cloudformation cloudformationiface package resources -import _ "github.com/golang/mock/mockgen" - // Note: empty on purpose, this file exist purely to generate mocks for the CloudFormation service diff --git a/resources/iam_mock_test.go b/resources/iam_mock_test.go index 2fbdeaf0..9b563cd4 100644 --- a/resources/iam_mock_test.go +++ b/resources/iam_mock_test.go @@ -1,6 +1,4 @@ //go:generate ../mocks/generate_mocks.sh iam iamiface package resources -import _ "github.com/golang/mock/mockgen" - // Note: empty on purpose, this file exist purely to generate mocks for the IAM service From 6830d96c09aee9550c1f0643ac0a7acbb91c3372 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 22 Feb 2024 19:25:02 -0700 Subject: [PATCH 124/617] docs: adding whats new in version 3 --- docs/index.md | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/docs/index.md b/docs/index.md index 7799c8a3..ea7a983f 100644 --- a/docs/index.md +++ b/docs/index.md @@ -5,16 +5,31 @@ Remove all resources from an AWS account. *aws-nuke* is stable, but it is likely that not all AWS resources are covered by it. Be encouraged to add missing resources and create a Pull Request or to create an [Issue](https://github.com/ekristen/aws-nuke/issues/new). +## What's New in Version 3 + +This is not a comprehensive list, but here are some of the highlights: + +* Completely rewrote the core of the tool as a dedicated library [libnuke](https://github.com/ekristen/libnuke) with 95%+ test coverage +* New Feature: Global Filters +* New Feature: Run Against All Enabled Regions +* Upcoming Feature: Filter Groups (**in progress**) +* Breaking Change: `root` command no longer triggers the run, must use subcommand `run` (alias: `nuke`) +* Semantic Releases with notifications on issues / pull requests +* New Resources +* Broke away from rebuy-de/aws-nuke project as a fork for reasons outlined in the history section + ## History of this Fork This is a full fork of the original tool written by the folks over at [rebuy-de](https://github.com/rebuy-de). This fork became necessary after attempting to make contributions and respond to issues to learn that the current maintainers only have time to work on the project about once a month and while receptive to bringing in other people to help maintain, made it clear -it would take time. Considering the feedback cycle was already weeks on initial communications, I had to make the hard -decision to fork and maintain it. +it would take time, but overall got the feeling that they wanted to maintain full control, which is understandable. +Considering the feedback cycle was already weeks on initial communications, I had to make the hard decision to fork +and maintain it. -Since then the rebuy-de team has taken up interest in responding to their issues and pull requests, but I have decided -to continue maintaining this fork as I have a few things I want to do with it that I don't think they will be interested. +Since then the rebuy-de team has taken up interest in responding to their issues and pull requests, however there are a +lot of outstanding feature requests and other tasks not being tackled, therefore I have decided to continue +maintaining this fork as I have a few things I want to do with it that I don't think they will be interested. ### Continued Attribution From 84d107a96639a31edafb7eb16b23299ec76e40f5 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 22 Feb 2024 19:26:45 -0700 Subject: [PATCH 125/617] docs: tweak the new in version 3 text --- docs/index.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/index.md b/docs/index.md index ea7a983f..bb257df1 100644 --- a/docs/index.md +++ b/docs/index.md @@ -9,11 +9,12 @@ resources and create a Pull Request or to create an [Issue](https://github.com/e This is not a comprehensive list, but here are some of the highlights: -* Completely rewrote the core of the tool as a dedicated library [libnuke](https://github.com/ekristen/libnuke) with 95%+ test coverage * New Feature: Global Filters * New Feature: Run Against All Enabled Regions * Upcoming Feature: Filter Groups (**in progress**) * Breaking Change: `root` command no longer triggers the run, must use subcommand `run` (alias: `nuke`) +* Completely rewrote the core of the tool as a dedicated library [libnuke](https://github.com/ekristen/libnuke) + * This library has over 95% test coverage which makes iteration and new features easier to implement. * Semantic Releases with notifications on issues / pull requests * New Resources * Broke away from rebuy-de/aws-nuke project as a fork for reasons outlined in the history section From c7e32a2b12fbe9df550d9d1e7a62b1bd90cc233e Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 22 Feb 2024 19:36:48 -0700 Subject: [PATCH 126/617] docs: call out bypass alias check feature --- docs/index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/index.md b/docs/index.md index bb257df1..3a7e6a73 100644 --- a/docs/index.md +++ b/docs/index.md @@ -11,6 +11,7 @@ This is not a comprehensive list, but here are some of the highlights: * New Feature: Global Filters * New Feature: Run Against All Enabled Regions +* New Feature: Bypass Alias Check - Allow the skip of an alias on an account * Upcoming Feature: Filter Groups (**in progress**) * Breaking Change: `root` command no longer triggers the run, must use subcommand `run` (alias: `nuke`) * Completely rewrote the core of the tool as a dedicated library [libnuke](https://github.com/ekristen/libnuke) From dd910da98d20b6a84ce0f4479a09cd2fe06baf52 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 22 Feb 2024 21:25:41 -0700 Subject: [PATCH 127/617] feat: new explain commands for debugging and informational purposes (#86) * feat: account command to show what you are authenticated against and how * feat: new explain-config and renamed explain-account commands * docs: adding documentation for new commands and options --- docs/cli-options.md | 14 ++- docs/cli-usage.md | 105 ++++++++++++++++- main.go | 2 + mkdocs.yml | 1 - pkg/awsutil/account.go | 14 +++ pkg/commands/account/account.go | 152 +++++++++++++++++++++++++ pkg/commands/config/config.go | 195 ++++++++++++++++++++++++++++++++ pkg/commands/nuke/command.go | 4 +- 8 files changed, 481 insertions(+), 6 deletions(-) create mode 100644 pkg/commands/account/account.go create mode 100644 pkg/commands/config/config.go diff --git a/docs/cli-options.md b/docs/cli-options.md index 673ce3cf..5ed861c0 100644 --- a/docs/cli-options.md +++ b/docs/cli-options.md @@ -2,10 +2,22 @@ This is not a comprehensive list of options, but rather a list of features that I think are worth highlighting. +## Cloud Control API + +`--cloud-control` will allow you to use the Cloud Control API for specific resource types. This is useful if you want to use the Cloud Control API for specific resource types. + ## Skip Alias Checks `--no-alias-check` will skip the check for the AWS account alias. This is useful if you are running in an account that does not have an alias. ## Skip Prompts -`--no-prompt` will skip the prompt to verify you want to run the command. This is useful if you are running in a CI/CD environment. \ No newline at end of file +`--no-prompt` will skip the prompt to verify you want to run the command. This is useful if you are running in a CI/CD environment. +`--prompt-delay` will set the delay before the command runs. This is useful if you want to give yourself time to cancel the command. + +## Logging + +- `--log-level` will set the log level. This is useful if you want to see more or less information in the logs. +- `--log-caller` will log the caller (aka line number and file). This is useful if you are debugging. +- `--log-disable-color` will disable log coloring. This is useful if you are running in an environment that does not support color. +- `--log-full-timestamp` will force log output to always show full timestamp. This is useful if you want to see the full timestamp in the logs. \ No newline at end of file diff --git a/docs/cli-usage.md b/docs/cli-usage.md index 68fbdfda..f9be0215 100644 --- a/docs/cli-usage.md +++ b/docs/cli-usage.md @@ -10,13 +10,15 @@ USAGE: aws-nuke [global options] command [command options] VERSION: - 3.0.0-beta.2 + 3.0.0-dev AUTHOR: Erik Kristensen COMMANDS: run, nuke run nuke against an aws account and remove everything from it + account-details, account list details about the AWS account that the tool is authenticated to + config-details explain the configuration file and the resources that will be nuked resource-types, list-resources list available resources to nuke help, h Shows a list of commands or help for one command @@ -50,4 +52,103 @@ OPTIONS: --log-disable-color disable log coloring (default: false) --log-full-timestamp force log output to always show full timestamp (default: false) --help, -h show help -``` \ No newline at end of file +``` + +## aws-nuke explain-account + +This command shows you details of how you are authenticated to AWS. + +```console +NAME: + aws-nuke explain-account - explain the account and authentication method used to authenticate against AWS + +USAGE: + aws-nuke explain-account [command options] [arguments...] + +DESCRIPTION: + explain the account and authentication method used to authenticate against AWS + +OPTIONS: + --config value, -c value path to config file (default: "config.yaml") + --default-region value the default aws region to use when setting up the aws auth session [$AWS_DEFAULT_REGION] + --access-key-id value the aws access key id to use when setting up the aws auth session [$AWS_ACCESS_KEY_ID] + --secret-access-key value the aws secret access key to use when setting up the aws auth session [$AWS_SECRET_ACCESS_KEY] + --session-token value the aws session token to use when setting up the aws auth session, typically used for temporary credentials [$AWS_SESSION_TOKEN] + --profile value the aws profile to use when setting up the aws auth session, typically used for shared credentials files [$AWS_PROFILE] + --assume-role-arn value the role arn to assume using the credentials provided in the profile or statically set [$AWS_ASSUME_ROLE_ARN] + --assume-role-session-name value the session name to provide for the assumed role [$AWS_ASSUME_ROLE_SESSION_NAME] + --assume-role-external-id value the external id to provide for the assumed role [$AWS_ASSUME_ROLE_EXTERNAL_ID] + --log-level value, -l value Log Level (default: "info") [$LOGLEVEL] + --log-caller log the caller (aka line number and file) (default: false) + --log-disable-color disable log coloring (default: false) + --log-full-timestamp force log output to always show full timestamp (default: false) + --help, -h show help +``` + +### explain-account example output + +```console +Overview: +> Account ID: 123456789012 +> Account ARN: arn:aws:iam::123456789012:root +> Account UserID: AKIAIOSFODNN7EXAMPLE:root +> Account Alias: no-alias-123456789012 +> Default Region: us-east-2 +> Enabled Regions: [global ap-south-1 ca-central-1 eu-central-1 us-west-1 us-west-2 eu-north-1 eu-west-3 eu-west-2 eu-west-1 ap-northeast-3 ap-northeast-2 ap-northeast-1 sa-east-1 ap-southeast-1 ap-southeast-2 us-east-1 us-east-2] + +Authentication: +> Method: Static Keys +> Access Key ID: AKIAIOSFODNN7EXAMPLE +``` + +## aws-nuke explain-config + +This command will explain the configuration file and the resources that will be nuked for the targeted account. + +```console +NAME: + aws-nuke explain-config - explain the configuration file and the resources that will be nuked for an account + +USAGE: + aws-nuke explain-config [command options] [arguments...] + +DESCRIPTION: + explain the configuration file and the resources that will be nuked for an account that + is defined within the configuration. You may either specific an account using the --account-id flag or + leave it empty to use the default account that can be authenticated against. If you want to see the + resource types that will be nuked, use the --with-resource-types flag. If you want to see the resources + that have filters defined, use the --with-resource-filters flag. + +OPTIONS: + --config value, -c value path to config file (default: "config.yaml") + --account-id value the account id to check against the configuration file, if empty, it will use whatever account + can be authenticated against + --with-resource-filters include resource with filters defined in the output (default: false) + --with-resource-types include resource types defined in the output (default: false) + --default-region value the default aws region to use when setting up the aws auth session [$AWS_DEFAULT_REGION] + --access-key-id value the aws access key id to use when setting up the aws auth session [$AWS_ACCESS_KEY_ID] + --secret-access-key value the aws secret access key to use when setting up the aws auth session [$AWS_SECRET_ACCESS_KEY] + --session-token value the aws session token to use when setting up the aws auth session, typically used for temporary credentials [$AWS_SESSION_TOKEN] + --profile value the aws profile to use when setting up the aws auth session, typically used for shared credentials files [$AWS_PROFILE] + --assume-role-arn value the role arn to assume using the credentials provided in the profile or statically set [$AWS_ASSUME_ROLE_ARN] + --assume-role-session-name value the session name to provide for the assumed role [$AWS_ASSUME_ROLE_SESSION_NAME] + --assume-role-external-id value the external id to provide for the assumed role [$AWS_ASSUME_ROLE_EXTERNAL_ID] + --log-level value, -l value Log Level (default: "info") [$LOGLEVEL] + --log-caller log the caller (aka line number and file) (default: false) + --log-disable-color disable log coloring (default: false) + --log-full-timestamp force log output to always show full timestamp (default: false) + --help, -h show help +``` + +### explain-config example output + +```console +Configuration Details + +Resource Types: 426 +Filter Presets: 2 +Resource Filters: 24 + +Note: use --with-resource-filters to see resources with filters defined +Note: use --with-resource-types to see included resource types that will be nuked +``` diff --git a/main.go b/main.go index 0c964014..77aef390 100644 --- a/main.go +++ b/main.go @@ -7,6 +7,8 @@ import ( "github.com/ekristen/aws-nuke/pkg/common" + _ "github.com/ekristen/aws-nuke/pkg/commands/account" + _ "github.com/ekristen/aws-nuke/pkg/commands/config" _ "github.com/ekristen/aws-nuke/pkg/commands/list" _ "github.com/ekristen/aws-nuke/pkg/commands/nuke" diff --git a/mkdocs.yml b/mkdocs.yml index 3fbcef31..298ff333 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -76,7 +76,6 @@ nav: - Usage: cli-usage.md - Options: cli-options.md - Experimental: cli-experimental.md - - Feature Flags: cli-feature-flags.md - Examples: cli-examples.md - Config: - Overview: config.md diff --git a/pkg/awsutil/account.go b/pkg/awsutil/account.go index f1ee33c7..53e5da7c 100644 --- a/pkg/awsutil/account.go +++ b/pkg/awsutil/account.go @@ -19,6 +19,8 @@ type Account struct { Credentials id string + arn string + userID string aliases []string regions []string disabledRegions []string @@ -92,6 +94,8 @@ func NewAccount(creds Credentials, endpoints config.CustomEndpoints) (*Account, } account.id = ptr.ToString(identityOutput.Account) + account.arn = ptr.ToString(identityOutput.Arn) + account.userID = ptr.ToString(identityOutput.UserId) account.aliases = aliases account.regions = regions account.disabledRegions = disabledRegions @@ -104,6 +108,16 @@ func (a *Account) ID() string { return a.id } +// ARN returns the STS Authenticated ARN for the account +func (a *Account) ARN() string { + return a.arn +} + +// UserID returns the authenticated user ID +func (a *Account) UserID() string { + return a.userID +} + // Alias returns the first alias for the account func (a *Account) Alias() string { if len(a.aliases) == 0 { diff --git a/pkg/commands/account/account.go b/pkg/commands/account/account.go new file mode 100644 index 00000000..9757e4b0 --- /dev/null +++ b/pkg/commands/account/account.go @@ -0,0 +1,152 @@ +package account + +import ( + "fmt" + "github.com/aws/aws-sdk-go/aws/endpoints" + "github.com/ekristen/aws-nuke/pkg/awsutil" + "github.com/ekristen/aws-nuke/pkg/config" + libconfig "github.com/ekristen/libnuke/pkg/config" + "github.com/ekristen/libnuke/pkg/registry" + "github.com/sirupsen/logrus" + + "github.com/urfave/cli/v2" + + "github.com/ekristen/aws-nuke/pkg/commands/global" + "github.com/ekristen/aws-nuke/pkg/commands/nuke" + "github.com/ekristen/aws-nuke/pkg/common" +) + +func execute(c *cli.Context) error { + defaultRegion := c.String("default-region") + creds := nuke.ConfigureCreds(c) + + if err := creds.Validate(); err != nil { + return err + } + + // Parse the user supplied configuration file to pass in part to configure the nuke process. + parsedConfig, err := config.New(libconfig.Options{ + Path: c.Path("config"), + Deprecations: registry.GetDeprecatedResourceTypeMapping(), + }) + if err != nil { + logrus.Errorf("Failed to parse config file %s", c.Path("config")) + return err + } + + // Set the default region for the AWS SDK to use. + if defaultRegion != "" { + awsutil.DefaultRegionID = defaultRegion + switch defaultRegion { + case endpoints.UsEast1RegionID, endpoints.UsEast2RegionID, endpoints.UsWest1RegionID, endpoints.UsWest2RegionID: + awsutil.DefaultAWSPartitionID = endpoints.AwsPartitionID + case endpoints.UsGovEast1RegionID, endpoints.UsGovWest1RegionID: + awsutil.DefaultAWSPartitionID = endpoints.AwsUsGovPartitionID + default: + if parsedConfig.CustomEndpoints.GetRegion(defaultRegion) == nil { + err = fmt.Errorf("the custom region '%s' must be specified in the configuration 'endpoints'", defaultRegion) + logrus.Error(err.Error()) + return err + } + } + } + + // Create the AWS Account object. This will be used to get the account ID and aliases for the account. + account, err := awsutil.NewAccount(creds, parsedConfig.CustomEndpoints) + if err != nil { + return err + } + + fmt.Println("Overview:") + fmt.Println("> Account ID: ", account.ID()) + fmt.Println("> Account ARN: ", account.ARN()) + fmt.Println("> Account UserID: ", account.UserID()) + fmt.Println("> Account Alias: ", account.Alias()) + fmt.Println("> Default Region: ", defaultRegion) + fmt.Println("> Enabled Regions: ", account.Regions()) + + fmt.Println("") + fmt.Println("Authentication:") + if creds.HasKeys() { + fmt.Println("> Method: Static Keys") + fmt.Println("> Access Key ID: ", creds.AccessKeyID) + } + if creds.HasProfile() { + fmt.Println("> Method: Shared Credentials") + fmt.Println("> Profile: ", creds.Profile) + } + if creds.AssumeRoleArn != "" { + fmt.Println("> Method: Assume Role") + fmt.Println("> Role ARN: ", creds.AssumeRoleArn) + if creds.RoleSessionName != "" { + fmt.Println("> Session Name: ", creds.RoleSessionName) + } + if creds.ExternalId != "" { + fmt.Println("> External ID: ", creds.ExternalId) + } + } + + return nil +} + +func init() { + flags := []cli.Flag{ + &cli.PathFlag{ + Name: "config", + Aliases: []string{"c"}, + Usage: "path to config file", + Value: "config.yaml", + }, + &cli.StringFlag{ + Name: "default-region", + EnvVars: []string{"AWS_DEFAULT_REGION"}, + Usage: "the default aws region to use when setting up the aws auth session", + }, + &cli.StringFlag{ + Name: "access-key-id", + EnvVars: []string{"AWS_ACCESS_KEY_ID"}, + Usage: "the aws access key id to use when setting up the aws auth session", + }, + &cli.StringFlag{ + Name: "secret-access-key", + EnvVars: []string{"AWS_SECRET_ACCESS_KEY"}, + Usage: "the aws secret access key to use when setting up the aws auth session", + }, + &cli.StringFlag{ + Name: "session-token", + EnvVars: []string{"AWS_SESSION_TOKEN"}, + Usage: "the aws session token to use when setting up the aws auth session, typically used for temporary credentials", + }, + &cli.StringFlag{ + Name: "profile", + EnvVars: []string{"AWS_PROFILE"}, + Usage: "the aws profile to use when setting up the aws auth session, typically used for shared credentials files", + }, + &cli.StringFlag{ + Name: "assume-role-arn", + EnvVars: []string{"AWS_ASSUME_ROLE_ARN"}, + Usage: "the role arn to assume using the credentials provided in the profile or statically set", + }, + &cli.StringFlag{ + Name: "assume-role-session-name", + EnvVars: []string{"AWS_ASSUME_ROLE_SESSION_NAME"}, + Usage: "the session name to provide for the assumed role", + }, + &cli.StringFlag{ + Name: "assume-role-external-id", + EnvVars: []string{"AWS_ASSUME_ROLE_EXTERNAL_ID"}, + Usage: "the external id to provide for the assumed role", + }, + } + + cmd := &cli.Command{ + Name: "explain-account", + Usage: "explain the account and authentication method used to authenticate against AWS", + Description: `explain the account and authentication method used to authenticate against AWS`, + Flags: append(flags, global.Flags()...), + Before: global.Before, + Action: execute, + } + + common.RegisterCommand(cmd) +} diff --git a/pkg/commands/config/config.go b/pkg/commands/config/config.go new file mode 100644 index 00000000..80e22e0f --- /dev/null +++ b/pkg/commands/config/config.go @@ -0,0 +1,195 @@ +package config + +import ( + "fmt" + "github.com/ekristen/aws-nuke/pkg/awsutil" + "github.com/ekristen/aws-nuke/pkg/commands/global" + "github.com/ekristen/aws-nuke/pkg/commands/nuke" + "github.com/ekristen/aws-nuke/pkg/common" + "github.com/ekristen/aws-nuke/pkg/config" + libconfig "github.com/ekristen/libnuke/pkg/config" + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/types" + "github.com/sirupsen/logrus" + "github.com/urfave/cli/v2" + "slices" +) + +func execute(c *cli.Context) error { + accountID := c.String("account-id") + + parsedConfig, err := config.New(libconfig.Options{ + Path: c.Path("config"), + Deprecations: registry.GetDeprecatedResourceTypeMapping(), + }) + if err != nil { + logrus.Errorf("Failed to parse config file %s", c.Path("config")) + return err + } + + if accountID != "" { + creds := nuke.ConfigureCreds(c) + if err := creds.Validate(); err != nil { + return err + } + + // Create the AWS Account object. This will be used to get the account ID and aliases for the account. + account, err := awsutil.NewAccount(creds, parsedConfig.CustomEndpoints) + if err != nil { + return err + } + + accountID = account.ID() + } + + // Get any specific account level configuration + accountConfig := parsedConfig.Accounts[accountID] + + if accountConfig == nil { + return fmt.Errorf("account is not configured in the config file") + } + + // Resolve the resource types to be used for the nuke process based on the parameters, global configuration, and + // account level configuration. + resourceTypes := types.ResolveResourceTypes( + registry.GetNames(), + []types.Collection{ + types.Collection{}, // note: empty collection since we are not capturing parameters + parsedConfig.ResourceTypes.GetIncludes(), + accountConfig.ResourceTypes.GetIncludes(), + }, + []types.Collection{ + types.Collection{}, // note: empty collection since we are not capturing parameters + parsedConfig.ResourceTypes.Excludes, + accountConfig.ResourceTypes.Excludes, + }, + []types.Collection{ + types.Collection{}, // note: empty collection since we are not capturing parameters + parsedConfig.ResourceTypes.GetAlternatives(), + accountConfig.ResourceTypes.GetAlternatives(), + }, + registry.GetAlternativeResourceTypeMapping(), + ) + + filtersTotal := 0 + var resourcesWithFilters []string + for name, preset := range parsedConfig.Presets { + if !slices.Contains(accountConfig.Presets, name) { + continue + } + + filtersTotal += len(preset.Filters) + + for resource := range preset.Filters { + resourcesWithFilters = append(resourcesWithFilters, resource) + } + } + + fmt.Printf("Configuration Details\n\n") + + fmt.Printf("Resource Types: %d\n", len(resourceTypes)) + fmt.Printf("Filter Presets: %d\n", len(accountConfig.Presets)) + fmt.Printf("Resource Filters: %d\n", filtersTotal) + + fmt.Println("") + + if c.Bool("with-resource-filters") { + fmt.Println("Resources with Filters Defined:") + for _, resource := range resourcesWithFilters { + fmt.Printf(" %s\n", resource) + } + fmt.Println("") + } else { + fmt.Printf("Note: use --with-resource-filters to see resources with filters defined\n") + } + + if c.Bool("with-resource-types") { + fmt.Println("Resource Types:") + for _, resourceType := range resourceTypes { + fmt.Printf(" %s\n", resourceType) + } + fmt.Println("") + } else { + fmt.Printf("Note: use --with-resource-types to see included resource types that will be nuked\n") + } + + return nil +} + +func init() { + flags := []cli.Flag{ + &cli.PathFlag{ + Name: "config", + Aliases: []string{"c"}, + Usage: "path to config file", + Value: "config.yaml", + }, + &cli.StringFlag{ + Name: "account-id", + Usage: `the account id to check against the configuration file, if empty, it will use whatever account can be authenticated against`, + }, + &cli.BoolFlag{ + Name: "with-resource-filters", + Usage: "include resource with filters defined in the output", + }, + &cli.BoolFlag{ + Name: "with-resource-types", + Usage: "include resource types defined in the output", + }, + &cli.StringFlag{ + Name: "default-region", + EnvVars: []string{"AWS_DEFAULT_REGION"}, + Usage: "the default aws region to use when setting up the aws auth session", + }, + &cli.StringFlag{ + Name: "access-key-id", + EnvVars: []string{"AWS_ACCESS_KEY_ID"}, + Usage: "the aws access key id to use when setting up the aws auth session", + }, + &cli.StringFlag{ + Name: "secret-access-key", + EnvVars: []string{"AWS_SECRET_ACCESS_KEY"}, + Usage: "the aws secret access key to use when setting up the aws auth session", + }, + &cli.StringFlag{ + Name: "session-token", + EnvVars: []string{"AWS_SESSION_TOKEN"}, + Usage: "the aws session token to use when setting up the aws auth session, typically used for temporary credentials", + }, + &cli.StringFlag{ + Name: "profile", + EnvVars: []string{"AWS_PROFILE"}, + Usage: "the aws profile to use when setting up the aws auth session, typically used for shared credentials files", + }, + &cli.StringFlag{ + Name: "assume-role-arn", + EnvVars: []string{"AWS_ASSUME_ROLE_ARN"}, + Usage: "the role arn to assume using the credentials provided in the profile or statically set", + }, + &cli.StringFlag{ + Name: "assume-role-session-name", + EnvVars: []string{"AWS_ASSUME_ROLE_SESSION_NAME"}, + Usage: "the session name to provide for the assumed role", + }, + &cli.StringFlag{ + Name: "assume-role-external-id", + EnvVars: []string{"AWS_ASSUME_ROLE_EXTERNAL_ID"}, + Usage: "the external id to provide for the assumed role", + }, + } + + cmd := &cli.Command{ + Name: "explain-config", + Usage: "explain the configuration file and the resources that will be nuked for an account", + Description: `explain the configuration file and the resources that will be nuked for an account that +is defined within the configuration. You may either specific an account using the --account-id flag or +leave it empty to use the default account that can be authenticated against. If you want to see the +resource types that will be nuked, use the --with-resource-types flag. If you want to see the resources +that have filters defined, use the --with-resource-filters flag.`, + Flags: append(flags, global.Flags()...), + Before: global.Before, + Action: execute, + } + + common.RegisterCommand(cmd) +} diff --git a/pkg/commands/nuke/command.go b/pkg/commands/nuke/command.go index fc38fae0..41b68ffc 100644 --- a/pkg/commands/nuke/command.go +++ b/pkg/commands/nuke/command.go @@ -25,7 +25,7 @@ import ( "github.com/ekristen/aws-nuke/pkg/nuke" ) -func configureCreds(c *cli.Context) (creds awsutil.Credentials) { +func ConfigureCreds(c *cli.Context) (creds awsutil.Credentials) { creds.Profile = c.String("profile") creds.AccessKeyID = c.String("access-key-id") creds.SecretAccessKey = c.String("secret-access-key") @@ -42,7 +42,7 @@ func execute(c *cli.Context) error { defer cancel() defaultRegion := c.String("default-region") - creds := configureCreds(c) + creds := ConfigureCreds(c) if err := creds.Validate(); err != nil { return err From a6ed443deda8477d83cc41de6c5983d6876a59b1 Mon Sep 17 00:00:00 2001 From: Maarten Dirkse Date: Fri, 23 Feb 2024 15:34:59 +0100 Subject: [PATCH 128/617] feat: add support for Redshift Serverless namespaces, snapshots and workgroups. (#1194) --- resources/redshiftserverless-namespaces.go | 68 +++++++++++++++++++++ resources/redshiftserverless-snapshots.go | 69 ++++++++++++++++++++++ resources/redshiftserverless-workgroups.go | 69 ++++++++++++++++++++++ 3 files changed, 206 insertions(+) create mode 100644 resources/redshiftserverless-namespaces.go create mode 100644 resources/redshiftserverless-snapshots.go create mode 100644 resources/redshiftserverless-workgroups.go diff --git a/resources/redshiftserverless-namespaces.go b/resources/redshiftserverless-namespaces.go new file mode 100644 index 00000000..adfaae07 --- /dev/null +++ b/resources/redshiftserverless-namespaces.go @@ -0,0 +1,68 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/redshiftserverless" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type RedshiftServerlessNamespace struct { + svc *redshiftserverless.RedshiftServerless + namespace *redshiftserverless.Namespace +} + +func init() { + register("RedshiftServerlessNamespace", ListRedshiftServerlessNamespaces) +} + +func ListRedshiftServerlessNamespaces(sess *session.Session) ([]Resource, error) { + svc := redshiftserverless.New(sess) + resources := []Resource{} + + params := &redshiftserverless.ListNamespacesInput{ + MaxResults: aws.Int64(100), + } + + for { + output, err := svc.ListNamespaces(params) + if err != nil { + return nil, err + } + + for _, namespace := range output.Namespaces { + resources = append(resources, &RedshiftServerlessNamespace{ + svc: svc, + namespace: namespace, + }) + } + + if output.NextToken == nil { + break + } + + params.NextToken = output.NextToken + } + + return resources, nil +} + +func (n *RedshiftServerlessNamespace) Properties() types.Properties { + properties := types.NewProperties(). + Set("CreationDate", n.namespace.CreationDate). + Set("NamespaceName", n.namespace.NamespaceName) + + return properties +} + +func (n *RedshiftServerlessNamespace) Remove() error { + _, err := n.svc.DeleteNamespace(&redshiftserverless.DeleteNamespaceInput{ + NamespaceName: n.namespace.NamespaceName, + }) + + return err +} + +func (n *RedshiftServerlessNamespace) String() string { + return *n.namespace.NamespaceName +} diff --git a/resources/redshiftserverless-snapshots.go b/resources/redshiftserverless-snapshots.go new file mode 100644 index 00000000..9f56c8e6 --- /dev/null +++ b/resources/redshiftserverless-snapshots.go @@ -0,0 +1,69 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/redshiftserverless" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type RedshiftServerlessSnapshot struct { + svc *redshiftserverless.RedshiftServerless + snapshot *redshiftserverless.Snapshot +} + +func init() { + register("RedshiftServerlessSnapshot", ListRedshiftServerlessSnapshots) +} + +func ListRedshiftServerlessSnapshots(sess *session.Session) ([]Resource, error) { + svc := redshiftserverless.New(sess) + resources := []Resource{} + + params := &redshiftserverless.ListSnapshotsInput{ + MaxResults: aws.Int64(100), + } + + for { + output, err := svc.ListSnapshots(params) + if err != nil { + return nil, err + } + + for _, snapshot := range output.Snapshots { + resources = append(resources, &RedshiftServerlessSnapshot{ + svc: svc, + snapshot: snapshot, + }) + } + + if output.NextToken == nil { + break + } + + params.NextToken = output.NextToken + } + + return resources, nil +} + +func (s *RedshiftServerlessSnapshot) Properties() types.Properties { + properties := types.NewProperties(). + Set("CreateTime", s.snapshot.SnapshotCreateTime). + Set("Namespace", s.snapshot.NamespaceName). + Set("SnapshotName", s.snapshot.SnapshotName) + + return properties +} + +func (s *RedshiftServerlessSnapshot) Remove() error { + _, err := s.svc.DeleteSnapshot(&redshiftserverless.DeleteSnapshotInput{ + SnapshotName: s.snapshot.SnapshotName, + }) + + return err +} + +func (s *RedshiftServerlessSnapshot) String() string { + return *s.snapshot.SnapshotName +} diff --git a/resources/redshiftserverless-workgroups.go b/resources/redshiftserverless-workgroups.go new file mode 100644 index 00000000..a88c8d16 --- /dev/null +++ b/resources/redshiftserverless-workgroups.go @@ -0,0 +1,69 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/redshiftserverless" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type RedshiftServerlessWorkgroup struct { + svc *redshiftserverless.RedshiftServerless + workgroup *redshiftserverless.Workgroup +} + +func init() { + register("RedshiftServerlessWorkgroup", ListRedshiftServerlessWorkgroups) +} + +func ListRedshiftServerlessWorkgroups(sess *session.Session) ([]Resource, error) { + svc := redshiftserverless.New(sess) + resources := []Resource{} + + params := &redshiftserverless.ListWorkgroupsInput{ + MaxResults: aws.Int64(100), + } + + for { + output, err := svc.ListWorkgroups(params) + if err != nil { + return nil, err + } + + for _, workgroup := range output.Workgroups { + resources = append(resources, &RedshiftServerlessWorkgroup{ + svc: svc, + workgroup: workgroup, + }) + } + + if output.NextToken == nil { + break + } + + params.NextToken = output.NextToken + } + + return resources, nil +} + +func (w *RedshiftServerlessWorkgroup) Properties() types.Properties { + properties := types.NewProperties(). + Set("CreationDate", w.workgroup.CreationDate). + Set("Namespace", w.workgroup.NamespaceName). + Set("WorkgroupName", w.workgroup.WorkgroupName) + + return properties +} + +func (w *RedshiftServerlessWorkgroup) Remove() error { + _, err := w.svc.DeleteWorkgroup(&redshiftserverless.DeleteWorkgroupInput{ + WorkgroupName: w.workgroup.WorkgroupName, + }) + + return err +} + +func (w *RedshiftServerlessWorkgroup) String() string { + return *w.workgroup.WorkgroupName +} From beae28869c8d0d3b97ed7399f12c348bb6369e65 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 07:51:52 -0700 Subject: [PATCH 129/617] chore: migrate to aws-nuke-v3/libnuke resource format --- resources/redshiftserverless-namespaces.go | 34 +++++++++++++++++----- resources/redshiftserverless-snapshots.go | 34 +++++++++++++++++----- resources/redshiftserverless-workgroups.go | 34 +++++++++++++++++----- 3 files changed, 78 insertions(+), 24 deletions(-) diff --git a/resources/redshiftserverless-namespaces.go b/resources/redshiftserverless-namespaces.go index adfaae07..84304073 100644 --- a/resources/redshiftserverless-namespaces.go +++ b/resources/redshiftserverless-namespaces.go @@ -1,10 +1,18 @@ package resources import ( + "context" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/redshiftserverless" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type RedshiftServerlessNamespace struct { @@ -12,13 +20,23 @@ type RedshiftServerlessNamespace struct { namespace *redshiftserverless.Namespace } +const RedshiftServerlessNamespaceResource = "RedshiftServerlessNamespace" + func init() { - register("RedshiftServerlessNamespace", ListRedshiftServerlessNamespaces) + registry.Register(®istry.Registration{ + Name: RedshiftServerlessNamespaceResource, + Scope: nuke.Account, + Lister: &RedshiftServerlessNamespaceLister{}, + }) } -func ListRedshiftServerlessNamespaces(sess *session.Session) ([]Resource, error) { - svc := redshiftserverless.New(sess) - resources := []Resource{} +type RedshiftServerlessNamespaceLister struct{} + +func (l *RedshiftServerlessNamespaceLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := redshiftserverless.New(opts.Session) + resources := make([]resource.Resource, 0) params := &redshiftserverless.ListNamespacesInput{ MaxResults: aws.Int64(100), @@ -55,7 +73,7 @@ func (n *RedshiftServerlessNamespace) Properties() types.Properties { return properties } -func (n *RedshiftServerlessNamespace) Remove() error { +func (n *RedshiftServerlessNamespace) Remove(_ context.Context) error { _, err := n.svc.DeleteNamespace(&redshiftserverless.DeleteNamespaceInput{ NamespaceName: n.namespace.NamespaceName, }) @@ -64,5 +82,5 @@ func (n *RedshiftServerlessNamespace) Remove() error { } func (n *RedshiftServerlessNamespace) String() string { - return *n.namespace.NamespaceName + return ptr.ToString(n.namespace.NamespaceName) } diff --git a/resources/redshiftserverless-snapshots.go b/resources/redshiftserverless-snapshots.go index 9f56c8e6..d8209260 100644 --- a/resources/redshiftserverless-snapshots.go +++ b/resources/redshiftserverless-snapshots.go @@ -1,10 +1,18 @@ package resources import ( + "context" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/redshiftserverless" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type RedshiftServerlessSnapshot struct { @@ -12,13 +20,23 @@ type RedshiftServerlessSnapshot struct { snapshot *redshiftserverless.Snapshot } +const RedshiftServerlessSnapshotResource = "RedshiftServerlessSnapshot" + func init() { - register("RedshiftServerlessSnapshot", ListRedshiftServerlessSnapshots) + registry.Register(®istry.Registration{ + Name: RedshiftServerlessSnapshotResource, + Scope: nuke.Account, + Lister: &RedshiftServerlessSnapshotLister{}, + }) } -func ListRedshiftServerlessSnapshots(sess *session.Session) ([]Resource, error) { - svc := redshiftserverless.New(sess) - resources := []Resource{} +type RedshiftServerlessSnapshotLister struct{} + +func (l *RedshiftServerlessSnapshotLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := redshiftserverless.New(opts.Session) + resources := make([]resource.Resource, 0) params := &redshiftserverless.ListSnapshotsInput{ MaxResults: aws.Int64(100), @@ -56,7 +74,7 @@ func (s *RedshiftServerlessSnapshot) Properties() types.Properties { return properties } -func (s *RedshiftServerlessSnapshot) Remove() error { +func (s *RedshiftServerlessSnapshot) Remove(_ context.Context) error { _, err := s.svc.DeleteSnapshot(&redshiftserverless.DeleteSnapshotInput{ SnapshotName: s.snapshot.SnapshotName, }) @@ -65,5 +83,5 @@ func (s *RedshiftServerlessSnapshot) Remove() error { } func (s *RedshiftServerlessSnapshot) String() string { - return *s.snapshot.SnapshotName + return ptr.ToString(s.snapshot.SnapshotName) } diff --git a/resources/redshiftserverless-workgroups.go b/resources/redshiftserverless-workgroups.go index a88c8d16..29e8d217 100644 --- a/resources/redshiftserverless-workgroups.go +++ b/resources/redshiftserverless-workgroups.go @@ -1,10 +1,18 @@ package resources import ( + "context" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/redshiftserverless" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type RedshiftServerlessWorkgroup struct { @@ -12,13 +20,23 @@ type RedshiftServerlessWorkgroup struct { workgroup *redshiftserverless.Workgroup } +const RedshiftServerlessWorkgroupResource = "RedshiftServerlessWorkgroup" + func init() { - register("RedshiftServerlessWorkgroup", ListRedshiftServerlessWorkgroups) + registry.Register(®istry.Registration{ + Name: RedshiftServerlessWorkgroupResource, + Scope: nuke.Account, + Lister: &RedshiftServerlessWorkgroupLister{}, + }) } -func ListRedshiftServerlessWorkgroups(sess *session.Session) ([]Resource, error) { - svc := redshiftserverless.New(sess) - resources := []Resource{} +type RedshiftServerlessWorkgroupLister struct{} + +func (l *RedshiftServerlessWorkgroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := redshiftserverless.New(opts.Session) + resources := make([]resource.Resource, 0) params := &redshiftserverless.ListWorkgroupsInput{ MaxResults: aws.Int64(100), @@ -56,7 +74,7 @@ func (w *RedshiftServerlessWorkgroup) Properties() types.Properties { return properties } -func (w *RedshiftServerlessWorkgroup) Remove() error { +func (w *RedshiftServerlessWorkgroup) Remove(_ context.Context) error { _, err := w.svc.DeleteWorkgroup(&redshiftserverless.DeleteWorkgroupInput{ WorkgroupName: w.workgroup.WorkgroupName, }) @@ -65,5 +83,5 @@ func (w *RedshiftServerlessWorkgroup) Remove() error { } func (w *RedshiftServerlessWorkgroup) String() string { - return *w.workgroup.WorkgroupName + return ptr.ToString(w.workgroup.WorkgroupName) } From a56859929309a0f868004f0c5030ee0f9d51d4ae Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 08:13:34 -0700 Subject: [PATCH 130/617] chore: fix migrate tool default imports --- tools/migrate-resource/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/migrate-resource/main.go b/tools/migrate-resource/main.go index 2a5582df..3f0e6128 100644 --- a/tools/migrate-resource/main.go +++ b/tools/migrate-resource/main.go @@ -29,8 +29,9 @@ var funcTemplate = `func (l *{{.ResourceType}}Lister) List(_ context.Context, o var imports = `import ( "context" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" -"github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/pkg/nuke" ` From 70bf264160c5baf12936d0ba16ac068380c46817 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 08:56:42 -0700 Subject: [PATCH 131/617] ci: add commit lint workflow --- .github/workflows/commit-lint.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/commit-lint.yaml diff --git a/.github/workflows/commit-lint.yaml b/.github/workflows/commit-lint.yaml new file mode 100644 index 00000000..7680393d --- /dev/null +++ b/.github/workflows/commit-lint.yaml @@ -0,0 +1,20 @@ +name: commit-lint + +on: + pull_request_target: + types: + - opened + - edited + - synchronize + +permissions: + contents: read + pull-requests: read + +jobs: + commit-lint: + name: commit-lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: wagoid/commitlint-github-action@v5 \ No newline at end of file From b4875a03e01ae1b4b5efc8dcb6b54d3b64ded5ad Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:30:00 -0700 Subject: [PATCH 132/617] ci: add golangci-lint workflow --- .github/workflows/golangci-lint.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/golangci-lint.yml diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml new file mode 100644 index 00000000..80ce3ecc --- /dev/null +++ b/.github/workflows/golangci-lint.yml @@ -0,0 +1,21 @@ +name: golangci-lint +on: + pull_request: + branches: + - main + +permissions: + contents: read + +jobs: + golangci-lint: + name: golangci-lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: '1.21.x' + cache: false + - name: golangci-lint + uses: golangci/golangci-lint-action@v4 \ No newline at end of file From 3c0e86de2fed415a11efbe6c28971708a311bb50 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:33:25 -0700 Subject: [PATCH 133/617] chore: adding generic constants and errors --- pkg/awsutil/consts.go | 10 ++++++++++ pkg/awsutil/errors.go | 4 ++++ 2 files changed, 14 insertions(+) create mode 100644 pkg/awsutil/consts.go create mode 100644 pkg/awsutil/errors.go diff --git a/pkg/awsutil/consts.go b/pkg/awsutil/consts.go new file mode 100644 index 00000000..ed4de61a --- /dev/null +++ b/pkg/awsutil/consts.go @@ -0,0 +1,10 @@ +package awsutil + +// Default is a generic constant for the word default +const Default = "default" + +// StateDeleted is a generic constant for the word deleted for state +const StateDeleted = "deleted" + +// StateDeleting is a generic constant for the word deleting for state +const StateDeleting = "deleting" diff --git a/pkg/awsutil/errors.go b/pkg/awsutil/errors.go new file mode 100644 index 00000000..d6d91de6 --- /dev/null +++ b/pkg/awsutil/errors.go @@ -0,0 +1,4 @@ +package awsutil + +const ErrCodeInvalidAction = "InvalidAction" +const ErrCodeOperationNotPermitted = "OperationNotPermitted" From 5016912617cfda6a3efc3e9eb88dfcd4487ad0c1 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:35:17 -0700 Subject: [PATCH 134/617] chore: fix golangci-lint for tools --- go.mod | 3 ++- go.sum | 1 + tools/compare-resources/main.go | 11 ++++++----- tools/create-resource/main.go | 11 ++++++++--- tools/migrate-resource/main.go | 23 ++++++++++++++++------- 5 files changed, 33 insertions(+), 16 deletions(-) diff --git a/go.mod b/go.mod index c3f5fd90..2c603446 100644 --- a/go.mod +++ b/go.mod @@ -33,7 +33,8 @@ require ( golang.org/x/net v0.19.0 // indirect golang.org/x/sync v0.6.0 // indirect golang.org/x/sys v0.16.0 // indirect - golang.org/x/tools v0.1.12 // indirect + golang.org/x/text v0.14.0 // indirect + golang.org/x/tools v0.6.0 // indirect gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect gopkg.in/yaml.v2 v2.4.0 // indirect ) diff --git a/go.sum b/go.sum index 7d31a516..03f1ce1e 100644 --- a/go.sum +++ b/go.sum @@ -91,6 +91,7 @@ golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtn golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.12 h1:VveCTK38A2rkS8ZqFY25HIDFscX5X9OoEhJd3quQmXU= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= +golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/tools/compare-resources/main.go b/tools/compare-resources/main.go index 7e605dcc..dbd044c2 100644 --- a/tools/compare-resources/main.go +++ b/tools/compare-resources/main.go @@ -2,16 +2,18 @@ package main import ( "fmt" - "github.com/fatih/color" "io/fs" "os" "path/filepath" "regexp" "slices" "strings" + + "github.com/fatih/color" ) -var OriginalRegisterRegex = regexp.MustCompile("register\\(\"(?P.*)\",\\s?(?P\\w+)(,)?(\\s+mapCloudControl\\(\"(?P.*)\"\\))?") +var OriginalRegisterRegex = regexp.MustCompile( + `register\("(?P.*)",\s?(?P\w+)(,)?(\s+mapCloudControl\("(?P.*)"\))?`) var NewRegisterRegex = regexp.MustCompile(`resource.Registration{\s+Name:\s+(?P.*),`) var aliases = map[string]string{ @@ -21,7 +23,7 @@ var aliases = map[string]string{ "ComprehendPiiEntititesDetectionJob": "ComprehendPIIEntitiesDetectionJob", } -func main() { +func main() { //nolint:funlen,gocyclo args := os.Args[1:] if len(args) == 0 { @@ -70,7 +72,7 @@ func main() { upstreamTypeToFile[resourceType] = file } - var localResourcesPath = filepath.Join("resources") + var localResourcesPath = "resources" var localResourceFiles []string var localResourceTypes []string @@ -134,5 +136,4 @@ func main() { color.New(color.FgYellow).Println(upstreamTypeToFile[resource]) } } - } diff --git a/tools/create-resource/main.go b/tools/create-resource/main.go index 0e85981b..87cef9fa 100644 --- a/tools/create-resource/main.go +++ b/tools/create-resource/main.go @@ -6,6 +6,9 @@ import ( "os" "strings" "text/template" + + "golang.org/x/text/cases" + "golang.org/x/text/language" ) const resourceTemplate = `package resources @@ -95,6 +98,8 @@ func main() { service := args[0] resourceType := args[1] + caser := cases.Title(language.English) + data := struct { Service string ServiceTitle string @@ -103,10 +108,10 @@ func main() { Combined string }{ Service: strings.ToLower(service), - ServiceTitle: strings.Title(service), + ServiceTitle: caser.String(service), ResourceType: resourceType, - ResourceTypeTitle: strings.Title(resourceType), - Combined: fmt.Sprintf("%s%s", strings.Title(service), strings.Title(resourceType)), + ResourceTypeTitle: caser.String(resourceType), + Combined: fmt.Sprintf("%s%s", caser.String(service), caser.String(resourceType)), } tmpl, err := template.New("resource").Parse(resourceTemplate) diff --git a/tools/migrate-resource/main.go b/tools/migrate-resource/main.go index 3f0e6128..b6200330 100644 --- a/tools/migrate-resource/main.go +++ b/tools/migrate-resource/main.go @@ -50,9 +50,9 @@ func main() { originalSourceDir := filepath.Join(args[0], "resources") - repl := regexp.MustCompile("func init\\(\\) {\\s+.*[\\s+].*\\s}") - match := regexp.MustCompile("register\\(\"(?P.*)\",\\s?(?P\\w+)(,)?(\\s+mapCloudControl\\(\"(?P.*)\"\\))?") - funcMatch := regexp.MustCompile("func List.*{") + repl := regexp.MustCompile(`func init\(\) {\s+.*[\s+].*\s}`) + match := regexp.MustCompile(`register\("(?P.*)",\s?(?P\w+)(,)?(\s+mapCloudControl\("(?P.*)"\))?`) + funcMatch := regexp.MustCompile(`func List.*{`) filename := filepath.Join(originalSourceDir, args[1]+".go") @@ -95,14 +95,23 @@ func main() { } newContents := repl.ReplaceAllString(string(originalFileContents), tpl.String()) - newContents = strings.ReplaceAll(newContents, "github.com/rebuy-de/aws-nuke/v2/pkg/types", "github.com/ekristen/libnuke/pkg/types") + + newContents = strings.ReplaceAll(newContents, + "github.com/rebuy-de/aws-nuke/v2/pkg/types", "github.com/ekristen/libnuke/pkg/types") + newContents = funcMatch.ReplaceAllString(newContents, funcTpl.String()) newContents = strings.ReplaceAll(newContents, "[]Resource", "[]resource.Resource") newContents = strings.ReplaceAll(newContents, "(sess)", "(opts.Session)") - newContents = strings.ReplaceAll(newContents, "resources := []resource.Resource{}", "resources := make([]resource.Resource, 0)") + + newContents = strings.ReplaceAll(newContents, + "resources := []resource.Resource{}", "resources := make([]resource.Resource, 0)") + newContents = strings.ReplaceAll(newContents, "import (", imports) newContents = strings.ReplaceAll(newContents, "\"github.com/aws/aws-sdk-go/aws/session\"", "") - newContents = strings.ReplaceAll(newContents, "\"github.com/rebuy-de/aws-nuke/v2/pkg/config\"", "\"github.com/ekristen/libnuke/pkg/featureflag\"") + + newContents = strings.ReplaceAll(newContents, + "\"github.com/rebuy-de/aws-nuke/v2/pkg/config\"", "\"github.com/ekristen/libnuke/pkg/featureflag\"") + newContents = strings.ReplaceAll(newContents, "config.FeatureFlags", "*featureflag.FeatureFlags") newContents = strings.ReplaceAll(newContents, ") Remove() error {", ") Remove(_ context.Context) error {") @@ -111,7 +120,7 @@ func main() { panic(err) } - if err := os.WriteFile( + if err := os.WriteFile( //nolint:gosec filepath.Join(cwd, "resources", args[1]+".go"), []byte(newContents), 0644); err != nil { panic(err) } From 248202f1c41dc872799225dc7ba87b49d6e5ce5b Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:35:35 -0700 Subject: [PATCH 135/617] chore: fix imports --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 77aef390..bf012bb4 100644 --- a/main.go +++ b/main.go @@ -1,9 +1,10 @@ package main import ( + "os" + "github.com/sirupsen/logrus" "github.com/urfave/cli/v2" - "os" "github.com/ekristen/aws-nuke/pkg/common" From 51b0c8484ad3b49dc5c8aaff4ea8cc499a7264bc Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:36:09 -0700 Subject: [PATCH 136/617] chore(awsutil): fix golangci-lint errors --- pkg/awsutil/account.go | 4 ++-- pkg/awsutil/session.go | 31 ++++++++++++++++++------------- 2 files changed, 20 insertions(+), 15 deletions(-) diff --git a/pkg/awsutil/account.go b/pkg/awsutil/account.go index 53e5da7c..db2790f9 100644 --- a/pkg/awsutil/account.go +++ b/pkg/awsutil/account.go @@ -16,7 +16,7 @@ import ( ) type Account struct { - Credentials + *Credentials id string arn string @@ -26,7 +26,7 @@ type Account struct { disabledRegions []string } -func NewAccount(creds Credentials, endpoints config.CustomEndpoints) (*Account, error) { +func NewAccount(creds *Credentials, endpoints config.CustomEndpoints) (*Account, error) { creds.CustomEndpoints = endpoints account := Account{ Credentials: creds, diff --git a/pkg/awsutil/session.go b/pkg/awsutil/session.go index 5c7a0754..e7a530dd 100644 --- a/pkg/awsutil/session.go +++ b/pkg/awsutil/session.go @@ -40,7 +40,7 @@ type Credentials struct { SecretAccessKey string SessionToken string AssumeRoleArn string - ExternalId string + ExternalID string RoleSessionName string Credentials *credentials.Credentials @@ -65,9 +65,9 @@ func (c *Credentials) HasKeys() bool { func (c *Credentials) Validate() error { if c.HasProfile() && c.HasKeys() { - return fmt.Errorf("You have to specify either the --profile flag or " + + return fmt.Errorf("specify either the --profile flag or " + "--access-key-id with --secret-access-key and optionally " + - "--session-token.\n") + "--session-token, but not both") } return nil @@ -98,7 +98,7 @@ func (c *Credentials) rootSession() (*session.Session, error) { } case c.HasProfile(): - fallthrough + fallthrough //nolint:gocritic default: opts = session.Options{ @@ -123,8 +123,8 @@ func (c *Credentials) rootSession() (*session.Session, error) { p.RoleSessionName = c.RoleSessionName } - if c.ExternalId != "" { - p.ExternalID = aws.String(c.ExternalId) + if c.ExternalID != "" { + p.ExternalID = aws.String(c.ExternalID) } }) } @@ -172,16 +172,16 @@ func (c *Credentials) NewSession(region, serviceType string) (*session.Session, } if customService.TLSInsecureSkipVerify { conf.HTTPClient = &http.Client{Transport: &http.Transport{ - TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, + TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, //nolint:gosec }} } - // ll := aws.LogDebugWithEventStreamBody - // conf.LogLevel = &ll + var err error sess, err = session.NewSession(conf) if err != nil { return nil, err } + isCustom = true } @@ -246,25 +246,30 @@ func skipGlobalHandler(global bool) func(r *request.Request) { if !ok { // This means that the service does not exist in the endpoints list. if global { - r.Error = liberrors.ErrSkipRequest(fmt.Sprintf("service '%s' is was not found in the endpoint list; assuming it is not global", service)) + r.Error = liberrors.ErrSkipRequest( + fmt.Sprintf("service '%s' is was not found in the endpoint list; assuming it is not global", + service)) } else { host := r.HTTPRequest.URL.Hostname() _, err := net.LookupHost(host) if err != nil { log.Debug(err) - r.Error = liberrors.ErrUnknownEndpoint(fmt.Sprintf("DNS lookup failed for %s; assuming it does not exist in this region", host)) + r.Error = liberrors.ErrUnknownEndpoint( + fmt.Sprintf("DNS lookup failed for %s; assuming it does not exist in this region", host)) } } return } if len(rs) == 0 && !global { - r.Error = liberrors.ErrSkipRequest(fmt.Sprintf("service '%s' is global, but the session is not", service)) + r.Error = liberrors.ErrSkipRequest( + fmt.Sprintf("service '%s' is global, but the session is not", service)) return } if (len(rs) > 0 && global) && service != "sts" { - r.Error = liberrors.ErrSkipRequest(fmt.Sprintf("service '%s' is not global, but the session is", service)) + r.Error = liberrors.ErrSkipRequest( + fmt.Sprintf("service '%s' is not global, but the session is", service)) return } } From cd565604aad6acbbca10b3c9fa60de5742b982dd Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:36:33 -0700 Subject: [PATCH 137/617] chore(pkg): fix golangci-lint errors --- pkg/commands/account/account.go | 16 +++++++++------- pkg/commands/config/config.go | 21 ++++++++++++--------- pkg/commands/nuke/command.go | 13 ++++++++----- pkg/config/config.go | 8 ++++---- 4 files changed, 33 insertions(+), 25 deletions(-) diff --git a/pkg/commands/account/account.go b/pkg/commands/account/account.go index 9757e4b0..53173c43 100644 --- a/pkg/commands/account/account.go +++ b/pkg/commands/account/account.go @@ -2,18 +2,20 @@ package account import ( "fmt" + + "github.com/sirupsen/logrus" + "github.com/urfave/cli/v2" + "github.com/aws/aws-sdk-go/aws/endpoints" - "github.com/ekristen/aws-nuke/pkg/awsutil" - "github.com/ekristen/aws-nuke/pkg/config" + libconfig "github.com/ekristen/libnuke/pkg/config" "github.com/ekristen/libnuke/pkg/registry" - "github.com/sirupsen/logrus" - - "github.com/urfave/cli/v2" + "github.com/ekristen/aws-nuke/pkg/awsutil" "github.com/ekristen/aws-nuke/pkg/commands/global" "github.com/ekristen/aws-nuke/pkg/commands/nuke" "github.com/ekristen/aws-nuke/pkg/common" + "github.com/ekristen/aws-nuke/pkg/config" ) func execute(c *cli.Context) error { @@ -81,8 +83,8 @@ func execute(c *cli.Context) error { if creds.RoleSessionName != "" { fmt.Println("> Session Name: ", creds.RoleSessionName) } - if creds.ExternalId != "" { - fmt.Println("> External ID: ", creds.ExternalId) + if creds.ExternalID != "" { + fmt.Println("> External ID: ", creds.ExternalID) } } diff --git a/pkg/commands/config/config.go b/pkg/commands/config/config.go index 80e22e0f..a9dc683e 100644 --- a/pkg/commands/config/config.go +++ b/pkg/commands/config/config.go @@ -2,17 +2,20 @@ package config import ( "fmt" + "slices" + + "github.com/sirupsen/logrus" + "github.com/urfave/cli/v2" + + libconfig "github.com/ekristen/libnuke/pkg/config" + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/types" + "github.com/ekristen/aws-nuke/pkg/awsutil" "github.com/ekristen/aws-nuke/pkg/commands/global" "github.com/ekristen/aws-nuke/pkg/commands/nuke" "github.com/ekristen/aws-nuke/pkg/common" "github.com/ekristen/aws-nuke/pkg/config" - libconfig "github.com/ekristen/libnuke/pkg/config" - "github.com/ekristen/libnuke/pkg/registry" - "github.com/ekristen/libnuke/pkg/types" - "github.com/sirupsen/logrus" - "github.com/urfave/cli/v2" - "slices" ) func execute(c *cli.Context) error { @@ -54,17 +57,17 @@ func execute(c *cli.Context) error { resourceTypes := types.ResolveResourceTypes( registry.GetNames(), []types.Collection{ - types.Collection{}, // note: empty collection since we are not capturing parameters + {}, // note: empty collection since we are not capturing parameters parsedConfig.ResourceTypes.GetIncludes(), accountConfig.ResourceTypes.GetIncludes(), }, []types.Collection{ - types.Collection{}, // note: empty collection since we are not capturing parameters + {}, // note: empty collection since we are not capturing parameters parsedConfig.ResourceTypes.Excludes, accountConfig.ResourceTypes.Excludes, }, []types.Collection{ - types.Collection{}, // note: empty collection since we are not capturing parameters + {}, // note: empty collection since we are not capturing parameters parsedConfig.ResourceTypes.GetAlternatives(), accountConfig.ResourceTypes.GetAlternatives(), }, diff --git a/pkg/commands/nuke/command.go b/pkg/commands/nuke/command.go index 41b68ffc..bfb6b0cf 100644 --- a/pkg/commands/nuke/command.go +++ b/pkg/commands/nuke/command.go @@ -3,7 +3,6 @@ package nuke import ( "context" "fmt" - "github.com/ekristen/libnuke/pkg/registry" "slices" "strings" "time" @@ -15,6 +14,7 @@ import ( libconfig "github.com/ekristen/libnuke/pkg/config" libnuke "github.com/ekristen/libnuke/pkg/nuke" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/scanner" "github.com/ekristen/libnuke/pkg/types" @@ -25,19 +25,22 @@ import ( "github.com/ekristen/aws-nuke/pkg/nuke" ) -func ConfigureCreds(c *cli.Context) (creds awsutil.Credentials) { +// ConfigureCreds is a helper function to configure the awsutil.Credentials object from the cli.Context +func ConfigureCreds(c *cli.Context) (creds *awsutil.Credentials) { + creds = &awsutil.Credentials{} + creds.Profile = c.String("profile") creds.AccessKeyID = c.String("access-key-id") creds.SecretAccessKey = c.String("secret-access-key") creds.SessionToken = c.String("session-token") creds.AssumeRoleArn = c.String("assume-role-arn") creds.RoleSessionName = c.String("assume-role-session-name") - creds.ExternalId = c.String("assume-role-external-id") + creds.ExternalID = c.String("assume-role-external-id") return creds } -func execute(c *cli.Context) error { +func execute(c *cli.Context) error { //nolint:funlen,gocyclo ctx, cancel := context.WithCancel(c.Context) defer cancel() @@ -198,7 +201,7 @@ func execute(c *cli.Context) error { return n.Run(ctx) } -func init() { +func init() { //nolint:funlen flags := []cli.Flag{ &cli.PathFlag{ Name: "config", diff --git a/pkg/config/config.go b/pkg/config/config.go index e66beba2..ba291dc1 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -103,15 +103,15 @@ func (c *Config) ValidateAccount(accountID string, aliases []string, skipAliasCh } if len(aliases) == 0 { - return fmt.Errorf("The specified account doesn't have an alias. " + + return fmt.Errorf("specified account doesn't have an alias. " + "For safety reasons you need to specify an account alias. " + - "Your production account should contain the term 'prod'.") + "Your production account should contain the term 'prod'") } for _, alias := range aliases { if strings.Contains(strings.ToLower(alias), "prod") { - return fmt.Errorf("You are trying to nuke an account with the alias '%s', "+ - "but it has the substring 'prod' in it. Aborting.", alias) + return fmt.Errorf("you are trying to nuke an account with the alias '%s', "+ + "but it has the substring 'prod' in it. Aborting", alias) } } From 254a9f5297faed95bedca261793dd99c918006c4 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:37:36 -0700 Subject: [PATCH 138/617] chore(resource/comprehend): fix golangci-lint violations --- resources/comprehend-document-classifier.go | 46 +++++++++---------- ...prehend-dominant-language-detection-job.go | 9 ++-- .../comprehend-entities-detection-job.go | 11 +++-- resources/comprehend-entity-recognizer.go | 45 +++++++++--------- resources/comprehend-events-detection-job.go | 11 +++-- .../comprehend-key-phrases-detection-job.go | 8 ++-- .../comprehend-pii-entities-detection-job.go | 10 ++-- .../comprehend-sentiment-detection-job.go | 6 ++- ...rehend-targeted-sentiment-detection-job.go | 6 ++- resources/comprehend.go | 3 ++ 10 files changed, 84 insertions(+), 71 deletions(-) create mode 100644 resources/comprehend.go diff --git a/resources/comprehend-document-classifier.go b/resources/comprehend-document-classifier.go index 8792161a..a11be980 100644 --- a/resources/comprehend-document-classifier.go +++ b/resources/comprehend-document-classifier.go @@ -3,6 +3,7 @@ package resources import ( "context" + "github.com/gotidy/ptr" "github.com/sirupsen/logrus" "github.com/aws/aws-sdk-go/service/comprehend" @@ -62,32 +63,27 @@ type ComprehendDocumentClassifier struct { } func (ce *ComprehendDocumentClassifier) Remove(_ context.Context) error { - switch *ce.documentClassifier.Status { - case "IN_ERROR": - fallthrough - case "TRAINED": - { - logrus.Infof("ComprehendDocumentClassifier deleteDocumentClassifier arn=%s status=%s", *ce.documentClassifier.DocumentClassifierArn, *ce.documentClassifier.Status) - _, err := ce.svc.DeleteDocumentClassifier(&comprehend.DeleteDocumentClassifierInput{ - DocumentClassifierArn: ce.documentClassifier.DocumentClassifierArn, - }) - return err - } - case "SUBMITTED": - fallthrough - case "TRAINING": - { - logrus.Infof("ComprehendDocumentClassifier stopTrainingDocumentClassifier arn=%s status=%s", *ce.documentClassifier.DocumentClassifierArn, *ce.documentClassifier.Status) - _, err := ce.svc.StopTrainingDocumentClassifier(&comprehend.StopTrainingDocumentClassifierInput{ - DocumentClassifierArn: ce.documentClassifier.DocumentClassifierArn, - }) - return err - } + switch ptr.ToString(ce.documentClassifier.Status) { + case comprehend.ModelStatusInError, comprehend.ModelStatusTrained: + logrus.Infof("ComprehendDocumentClassifier deleteDocumentClassifier arn=%s status=%s", + *ce.documentClassifier.DocumentClassifierArn, *ce.documentClassifier.Status) + + _, err := ce.svc.DeleteDocumentClassifier(&comprehend.DeleteDocumentClassifierInput{ + DocumentClassifierArn: ce.documentClassifier.DocumentClassifierArn, + }) + return err + case comprehend.ModelStatusSubmitted, comprehend.ModelStatusTraining: + logrus.Infof("ComprehendDocumentClassifier stopTrainingDocumentClassifier arn=%s status=%s", + *ce.documentClassifier.DocumentClassifierArn, *ce.documentClassifier.Status) + + _, err := ce.svc.StopTrainingDocumentClassifier(&comprehend.StopTrainingDocumentClassifierInput{ + DocumentClassifierArn: ce.documentClassifier.DocumentClassifierArn, + }) + return err default: - { - logrus.Infof("ComprehendDocumentClassifier already deleting arn=%s status=%s", *ce.documentClassifier.DocumentClassifierArn, *ce.documentClassifier.Status) - return nil - } + logrus.Infof("ComprehendDocumentClassifier already deleting arn=%s status=%s", + *ce.documentClassifier.DocumentClassifierArn, *ce.documentClassifier.Status) + return nil } } diff --git a/resources/comprehend-dominant-language-detection-job.go b/resources/comprehend-dominant-language-detection-job.go index 809b7dd6..6a5f1d82 100644 --- a/resources/comprehend-dominant-language-detection-job.go +++ b/resources/comprehend-dominant-language-detection-job.go @@ -3,6 +3,8 @@ package resources import ( "context" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/service/comprehend" "github.com/ekristen/libnuke/pkg/registry" @@ -37,9 +39,10 @@ func (l *ComprehendDominantLanguageDetectionJobLister) List(_ context.Context, o if err != nil { return nil, err } + for _, dominantLanguageDetectionJob := range resp.DominantLanguageDetectionJobPropertiesList { switch *dominantLanguageDetectionJob.JobStatus { - case "STOPPED", "FAILED", "COMPLETED": + case comprehend.JobStatusStopped, comprehend.JobStatusFailed, comprehend.JobStatusCompleted: // if the job has already been stopped, failed, or completed; do not try to stop it again continue } @@ -81,8 +84,8 @@ func (ce *ComprehendDominantLanguageDetectionJob) Properties() types.Properties func (ce *ComprehendDominantLanguageDetectionJob) String() string { if ce.dominantLanguageDetectionJob.JobName == nil { - return "Unnamed job" + return ComprehendUnnamedJob } else { - return *ce.dominantLanguageDetectionJob.JobName + return ptr.ToString(ce.dominantLanguageDetectionJob.JobName) } } diff --git a/resources/comprehend-entities-detection-job.go b/resources/comprehend-entities-detection-job.go index db1ea58e..4609ca94 100644 --- a/resources/comprehend-entities-detection-job.go +++ b/resources/comprehend-entities-detection-job.go @@ -3,6 +3,8 @@ package resources import ( "context" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/service/comprehend" "github.com/ekristen/libnuke/pkg/registry" @@ -37,9 +39,10 @@ func (l *ComprehendEntitiesDetectionJobLister) List(_ context.Context, o interfa if err != nil { return nil, err } + for _, entitiesDetectionJob := range resp.EntitiesDetectionJobPropertiesList { - switch *entitiesDetectionJob.JobStatus { - case "STOPPED", "FAILED", "COMPLETED": + switch ptr.ToString(entitiesDetectionJob.JobStatus) { + case comprehend.JobStatusStopped, comprehend.JobStatusFailed, comprehend.JobStatusCompleted: // if the job has already been stopped, failed, or completed; do not try to stop it again continue } @@ -81,8 +84,8 @@ func (ce *ComprehendEntitiesDetectionJob) Properties() types.Properties { func (ce *ComprehendEntitiesDetectionJob) String() string { if ce.entitiesDetectionJob.JobName == nil { - return "Unnamed job" + return ComprehendUnnamedJob } else { - return *ce.entitiesDetectionJob.JobName + return ptr.ToString(ce.entitiesDetectionJob.JobName) } } diff --git a/resources/comprehend-entity-recognizer.go b/resources/comprehend-entity-recognizer.go index 5b30a12c..b6bb0cbd 100644 --- a/resources/comprehend-entity-recognizer.go +++ b/resources/comprehend-entity-recognizer.go @@ -63,31 +63,28 @@ type ComprehendEntityRecognizer struct { func (ce *ComprehendEntityRecognizer) Remove(_ context.Context) error { switch *ce.entityRecognizer.Status { - case "IN_ERROR": - fallthrough - case "TRAINED": - { - logrus.Infof("ComprehendEntityRecognizer deleteEntityRecognizer arn=%s status=%s", *ce.entityRecognizer.EntityRecognizerArn, *ce.entityRecognizer.Status) - _, err := ce.svc.DeleteEntityRecognizer(&comprehend.DeleteEntityRecognizerInput{ - EntityRecognizerArn: ce.entityRecognizer.EntityRecognizerArn, - }) - return err - } - case "SUBMITTED": - fallthrough - case "TRAINING": - { - logrus.Infof("ComprehendEntityRecognizer stopTrainingEntityRecognizer arn=%s status=%s", *ce.entityRecognizer.EntityRecognizerArn, *ce.entityRecognizer.Status) - _, err := ce.svc.StopTrainingEntityRecognizer(&comprehend.StopTrainingEntityRecognizerInput{ - EntityRecognizerArn: ce.entityRecognizer.EntityRecognizerArn, - }) - return err - } + case comprehend.ModelStatusInError, comprehend.ModelStatusTrained: + logrus.Infof("ComprehendEntityRecognizer deleteEntityRecognizer arn=%s status=%s", + *ce.entityRecognizer.EntityRecognizerArn, *ce.entityRecognizer.Status) + + _, err := ce.svc.DeleteEntityRecognizer(&comprehend.DeleteEntityRecognizerInput{ + EntityRecognizerArn: ce.entityRecognizer.EntityRecognizerArn, + }) + + return err + case comprehend.ModelStatusSubmitted, comprehend.ModelStatusTraining: + logrus.Infof("ComprehendEntityRecognizer stopTrainingEntityRecognizer arn=%s status=%s", + *ce.entityRecognizer.EntityRecognizerArn, *ce.entityRecognizer.Status) + + _, err := ce.svc.StopTrainingEntityRecognizer(&comprehend.StopTrainingEntityRecognizerInput{ + EntityRecognizerArn: ce.entityRecognizer.EntityRecognizerArn, + }) + + return err default: - { - logrus.Infof("ComprehendEntityRecognizer already deleting arn=%s status=%s", *ce.entityRecognizer.EntityRecognizerArn, *ce.entityRecognizer.Status) - return nil - } + logrus.Infof("ComprehendEntityRecognizer already deleting arn=%s status=%s", + *ce.entityRecognizer.EntityRecognizerArn, *ce.entityRecognizer.Status) + return nil } } diff --git a/resources/comprehend-events-detection-job.go b/resources/comprehend-events-detection-job.go index 4443902c..c48716be 100644 --- a/resources/comprehend-events-detection-job.go +++ b/resources/comprehend-events-detection-job.go @@ -3,6 +3,8 @@ package resources import ( "context" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/service/comprehend" "github.com/ekristen/libnuke/pkg/registry" @@ -37,9 +39,10 @@ func (l *ComprehendEventsDetectionJobLister) List(_ context.Context, o interface if err != nil { return nil, err } + for _, eventsDetectionJob := range resp.EventsDetectionJobPropertiesList { - switch *eventsDetectionJob.JobStatus { - case "STOPPED", "FAILED", "COMPLETED": + switch ptr.ToString(eventsDetectionJob.JobStatus) { + case comprehend.JobStatusStopped, comprehend.JobStatusFailed, comprehend.JobStatusCompleted: // if the job has already been stopped, failed, or completed; do not try to stop it again continue } @@ -81,8 +84,8 @@ func (ce *ComprehendEventsDetectionJob) Properties() types.Properties { func (ce *ComprehendEventsDetectionJob) String() string { if ce.eventsDetectionJob.JobName == nil { - return "Unnamed job" + return ComprehendUnnamedJob } else { - return *ce.eventsDetectionJob.JobName + return ptr.ToString(ce.eventsDetectionJob.JobName) } } diff --git a/resources/comprehend-key-phrases-detection-job.go b/resources/comprehend-key-phrases-detection-job.go index 2c95a40d..3cdac038 100644 --- a/resources/comprehend-key-phrases-detection-job.go +++ b/resources/comprehend-key-phrases-detection-job.go @@ -3,6 +3,8 @@ package resources import ( "context" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/service/comprehend" "github.com/ekristen/libnuke/pkg/registry" @@ -39,7 +41,7 @@ func (l *ComprehendKeyPhrasesDetectionJobLister) List(_ context.Context, o inter } for _, keyPhrasesDetectionJob := range resp.KeyPhrasesDetectionJobPropertiesList { switch *keyPhrasesDetectionJob.JobStatus { - case "STOPPED", "FAILED", "COMPLETED": + case comprehend.JobStatusStopped, comprehend.JobStatusFailed, comprehend.JobStatusCompleted: // if the job has already been stopped, failed, or completed; do not try to stop it again continue } @@ -81,8 +83,8 @@ func (ce *ComprehendKeyPhrasesDetectionJob) Properties() types.Properties { func (ce *ComprehendKeyPhrasesDetectionJob) String() string { if ce.keyPhrasesDetectionJob.JobName == nil { - return "Unnamed job" + return ComprehendUnnamedJob } else { - return *ce.keyPhrasesDetectionJob.JobName + return ptr.ToString(ce.keyPhrasesDetectionJob.JobName) } } diff --git a/resources/comprehend-pii-entities-detection-job.go b/resources/comprehend-pii-entities-detection-job.go index 51a2bdbf..7848e374 100644 --- a/resources/comprehend-pii-entities-detection-job.go +++ b/resources/comprehend-pii-entities-detection-job.go @@ -3,6 +3,8 @@ package resources import ( "context" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/service/comprehend" "github.com/ekristen/libnuke/pkg/registry" @@ -20,7 +22,7 @@ func init() { Scope: nuke.Account, Lister: &ComprehendPiiEntitiesDetectionJobLister{}, DeprecatedAliases: []string{ - "ComprehendPiiEntititesDetectionJob", //nolint:misspell + "ComprehendPiiEntititesDetectionJob", }, }) } @@ -42,7 +44,7 @@ func (l *ComprehendPiiEntitiesDetectionJobLister) List(_ context.Context, o inte } for _, piiEntitiesDetectionJob := range resp.PiiEntitiesDetectionJobPropertiesList { switch *piiEntitiesDetectionJob.JobStatus { - case "STOPPED", "FAILED", "COMPLETED": + case comprehend.JobStatusStopped, comprehend.JobStatusFailed, comprehend.JobStatusCompleted: // if the job has already been stopped, failed, or completed; do not try to stop it again continue } @@ -84,8 +86,8 @@ func (ce *ComprehendPiiEntitiesDetectionJob) Properties() types.Properties { func (ce *ComprehendPiiEntitiesDetectionJob) String() string { if ce.piiEntitiesDetectionJob.JobName == nil { - return "Unnamed job" + return ComprehendUnnamedJob } else { - return *ce.piiEntitiesDetectionJob.JobName + return ptr.ToString(ce.piiEntitiesDetectionJob.JobName) } } diff --git a/resources/comprehend-sentiment-detection-job.go b/resources/comprehend-sentiment-detection-job.go index 523ccc38..e4be9d48 100644 --- a/resources/comprehend-sentiment-detection-job.go +++ b/resources/comprehend-sentiment-detection-job.go @@ -3,6 +3,8 @@ package resources import ( "context" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/service/comprehend" "github.com/ekristen/libnuke/pkg/registry" @@ -81,8 +83,8 @@ func (ce *ComprehendSentimentDetectionJob) Properties() types.Properties { func (ce *ComprehendSentimentDetectionJob) String() string { if ce.sentimentDetectionJob.JobName == nil { - return "Unnamed job" + return ComprehendUnnamedJob } else { - return *ce.sentimentDetectionJob.JobName + return ptr.ToString(ce.sentimentDetectionJob.JobName) } } diff --git a/resources/comprehend-targeted-sentiment-detection-job.go b/resources/comprehend-targeted-sentiment-detection-job.go index c03b0d4f..c760e1ff 100644 --- a/resources/comprehend-targeted-sentiment-detection-job.go +++ b/resources/comprehend-targeted-sentiment-detection-job.go @@ -3,6 +3,8 @@ package resources import ( "context" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/service/comprehend" "github.com/ekristen/libnuke/pkg/registry" @@ -81,8 +83,8 @@ func (ce *ComprehendTargetedSentimentDetectionJob) Properties() types.Properties func (ce *ComprehendTargetedSentimentDetectionJob) String() string { if ce.targetedSentimentDetectionJob.JobName == nil { - return "Unnamed job" + return ComprehendUnnamedJob } else { - return *ce.targetedSentimentDetectionJob.JobName + return ptr.ToString(ce.targetedSentimentDetectionJob.JobName) } } diff --git a/resources/comprehend.go b/resources/comprehend.go new file mode 100644 index 00000000..e85292f0 --- /dev/null +++ b/resources/comprehend.go @@ -0,0 +1,3 @@ +package resources + +const ComprehendUnnamedJob = "Unnamed Job" From ff8854c3d054db53f296a2cb54074636eeaf029d Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:37:52 -0700 Subject: [PATCH 139/617] chore(resources/waf): fix golangci-lint violations --- resources/waf-webacl-rule-attachments.go | 16 ++++++---------- resources/wafregional-byte-match-set-tuples.go | 3 +-- resources/wafregional-ip-set-ips.go | 3 +-- .../wafregional-rate-based-rule-predicates.go | 2 +- resources/wafregional-regex-match-sets.go | 2 +- resources/wafregional-regex-match-tuples.go | 2 +- resources/wafregional-regex-pattern-tuples.go | 2 +- resources/wafregional-rule-predicates.go | 2 +- resources/wafregional-rules.go | 1 - resources/wafregional-webacl-rule-attachments.go | 16 ++++++---------- resources/wafregional-webacls.go | 1 - resources/wafv2-ipsets.go | 3 ++- resources/wafv2-regex-pattern-sets.go | 3 ++- 13 files changed, 23 insertions(+), 33 deletions(-) diff --git a/resources/waf-webacl-rule-attachments.go b/resources/waf-webacl-rule-attachments.go index 758cab03..b5bd57c9 100644 --- a/resources/waf-webacl-rule-attachments.go +++ b/resources/waf-webacl-rule-attachments.go @@ -37,16 +37,14 @@ func (l *WAFWebACLRuleAttachmentLister) List(_ context.Context, o interface{}) ( Limit: aws.Int64(50), } - //List All Web ACLs + // List All Web ACLs for { resp, err := svc.ListWebACLs(params) if err != nil { return nil, err } - for _, webACL := range resp.WebACLs { - webACLs = append(webACLs, webACL) - } + webACLs = append(webACLs, resp.WebACLs...) if resp.NextMarker == nil { break @@ -68,11 +66,10 @@ func (l *WAFWebACLRuleAttachmentLister) List(_ context.Context, o interface{}) ( for _, webACLRule := range resp.WebACL.Rules { resources = append(resources, &WAFWebACLRuleAttachment{ svc: svc, - webAclID: webACL.WebACLId, + webACLID: webACL.WebACLId, activatedRule: webACLRule, }) } - } return resources, nil @@ -80,12 +77,11 @@ func (l *WAFWebACLRuleAttachmentLister) List(_ context.Context, o interface{}) ( type WAFWebACLRuleAttachment struct { svc *waf.WAF - webAclID *string + webACLID *string activatedRule *waf.ActivatedRule } func (f *WAFWebACLRuleAttachment) Remove(_ context.Context) error { - tokenOutput, err := f.svc.GetChangeToken(&waf.GetChangeTokenInput{}) if err != nil { return err @@ -97,7 +93,7 @@ func (f *WAFWebACLRuleAttachment) Remove(_ context.Context) error { } _, err = f.svc.UpdateWebACL(&waf.UpdateWebACLInput{ - WebACLId: f.webAclID, + WebACLId: f.webACLID, ChangeToken: tokenOutput.ChangeToken, Updates: []*waf.WebACLUpdate{webACLUpdate}, }) @@ -106,5 +102,5 @@ func (f *WAFWebACLRuleAttachment) Remove(_ context.Context) error { } func (f *WAFWebACLRuleAttachment) String() string { - return fmt.Sprintf("%s -> %s", *f.webAclID, *f.activatedRule.RuleId) + return fmt.Sprintf("%s -> %s", *f.webACLID, *f.activatedRule.RuleId) } diff --git a/resources/wafregional-byte-match-set-tuples.go b/resources/wafregional-byte-match-set-tuples.go index c1baea47..c5220ed2 100644 --- a/resources/wafregional-byte-match-set-tuples.go +++ b/resources/wafregional-byte-match-set-tuples.go @@ -43,7 +43,6 @@ func (l *WAFRegionalByteMatchSetIPLister) List(_ context.Context, o interface{}) } for _, set := range resp.ByteMatchSets { - details, err := svc.GetByteMatchSet(&waf.GetByteMatchSetInput{ ByteMatchSetId: set.ByteMatchSetId, }) @@ -86,7 +85,7 @@ func (r *WAFRegionalByteMatchSetIP) Remove(_ context.Context) error { ChangeToken: tokenOutput.ChangeToken, ByteMatchSetId: r.matchSetID, Updates: []*waf.ByteMatchSetUpdate{ - &waf.ByteMatchSetUpdate{ + { Action: aws.String("DELETE"), ByteMatchTuple: r.tuple, }, diff --git a/resources/wafregional-ip-set-ips.go b/resources/wafregional-ip-set-ips.go index afe75e87..29905078 100644 --- a/resources/wafregional-ip-set-ips.go +++ b/resources/wafregional-ip-set-ips.go @@ -43,7 +43,6 @@ func (l *WAFRegionalIPSetIPLister) List(_ context.Context, o interface{}) ([]res } for _, set := range resp.IPSets { - details, err := svc.GetIPSet(&waf.GetIPSetInput{ IPSetId: set.IPSetId, }) @@ -86,7 +85,7 @@ func (r *WAFRegionalIPSetIP) Remove(_ context.Context) error { ChangeToken: tokenOutput.ChangeToken, IPSetId: r.ipSetID, Updates: []*waf.IPSetUpdate{ - &waf.IPSetUpdate{ + { Action: aws.String("DELETE"), IPSetDescriptor: r.descriptor, }, diff --git a/resources/wafregional-rate-based-rule-predicates.go b/resources/wafregional-rate-based-rule-predicates.go index b4a90218..649be642 100644 --- a/resources/wafregional-rate-based-rule-predicates.go +++ b/resources/wafregional-rate-based-rule-predicates.go @@ -88,7 +88,7 @@ func (r *WAFRegionalRateBasedRulePredicate) Remove(_ context.Context) error { RuleId: r.ruleID, RateLimit: r.rateLimit, Updates: []*waf.RuleUpdate{ - &waf.RuleUpdate{ + { Action: aws.String("DELETE"), Predicate: r.predicate, }, diff --git a/resources/wafregional-regex-match-sets.go b/resources/wafregional-regex-match-sets.go index 96348921..3ca43196 100644 --- a/resources/wafregional-regex-match-sets.go +++ b/resources/wafregional-regex-match-sets.go @@ -14,7 +14,7 @@ import ( "github.com/ekristen/aws-nuke/pkg/nuke" ) -const WAFRegionalRegexMatchSetResource = "WAFRegionalRegexMatchSet" +const WAFRegionalRegexMatchSetResource = "WAFRegionalRegexMatchSet" //nolint:gosec func init() { registry.Register(®istry.Registration{ diff --git a/resources/wafregional-regex-match-tuples.go b/resources/wafregional-regex-match-tuples.go index 69ebf0c8..b365cd0e 100644 --- a/resources/wafregional-regex-match-tuples.go +++ b/resources/wafregional-regex-match-tuples.go @@ -85,7 +85,7 @@ func (r *WAFRegionalRegexMatchTuple) Remove(_ context.Context) error { ChangeToken: tokenOutput.ChangeToken, RegexMatchSetId: r.matchSetID, Updates: []*waf.RegexMatchSetUpdate{ - &waf.RegexMatchSetUpdate{ + { Action: aws.String("DELETE"), RegexMatchTuple: r.tuple, }, diff --git a/resources/wafregional-regex-pattern-tuples.go b/resources/wafregional-regex-pattern-tuples.go index 7587a86a..b5870c79 100644 --- a/resources/wafregional-regex-pattern-tuples.go +++ b/resources/wafregional-regex-pattern-tuples.go @@ -85,7 +85,7 @@ func (r *WAFRegionalRegexPatternString) Remove(_ context.Context) error { ChangeToken: tokenOutput.ChangeToken, RegexPatternSetId: r.patternSetID, Updates: []*waf.RegexPatternSetUpdate{ - &waf.RegexPatternSetUpdate{ + { Action: aws.String("DELETE"), RegexPatternString: r.patternString, }, diff --git a/resources/wafregional-rule-predicates.go b/resources/wafregional-rule-predicates.go index 6ba8c271..ad8cc64f 100644 --- a/resources/wafregional-rule-predicates.go +++ b/resources/wafregional-rule-predicates.go @@ -85,7 +85,7 @@ func (r *WAFRegionalRulePredicate) Remove(_ context.Context) error { ChangeToken: tokenOutput.ChangeToken, RuleId: r.ruleID, Updates: []*waf.RuleUpdate{ - &waf.RuleUpdate{ + { Action: aws.String("DELETE"), Predicate: r.predicate, }, diff --git a/resources/wafregional-rules.go b/resources/wafregional-rules.go index 8a505127..b8137330 100644 --- a/resources/wafregional-rules.go +++ b/resources/wafregional-rules.go @@ -72,7 +72,6 @@ type WAFRegionalRule struct { } func (f *WAFRegionalRule) Remove(_ context.Context) error { - tokenOutput, err := f.svc.GetChangeToken(&waf.GetChangeTokenInput{}) if err != nil { return err diff --git a/resources/wafregional-webacl-rule-attachments.go b/resources/wafregional-webacl-rule-attachments.go index 9220f314..379ba6e0 100644 --- a/resources/wafregional-webacl-rule-attachments.go +++ b/resources/wafregional-webacl-rule-attachments.go @@ -38,16 +38,14 @@ func (l *WAFRegionalWebACLRuleAttachmentLister) List(_ context.Context, o interf Limit: aws.Int64(50), } - //List All Web ACL's + // List All Web ACL's for { resp, err := svc.ListWebACLs(params) if err != nil { return nil, err } - for _, webACL := range resp.WebACLs { - webACLs = append(webACLs, webACL) - } + webACLs = append(webACLs, resp.WebACLs...) if resp.NextMarker == nil { break @@ -69,11 +67,10 @@ func (l *WAFRegionalWebACLRuleAttachmentLister) List(_ context.Context, o interf for _, webACLRule := range resp.WebACL.Rules { resources = append(resources, &WAFRegionalWebACLRuleAttachment{ svc: svc, - webAclID: webACL.WebACLId, + webACLID: webACL.WebACLId, activatedRule: webACLRule, }) } - } return resources, nil @@ -81,12 +78,11 @@ func (l *WAFRegionalWebACLRuleAttachmentLister) List(_ context.Context, o interf type WAFRegionalWebACLRuleAttachment struct { svc *wafregional.WAFRegional - webAclID *string + webACLID *string activatedRule *waf.ActivatedRule } func (f *WAFRegionalWebACLRuleAttachment) Remove(_ context.Context) error { - tokenOutput, err := f.svc.GetChangeToken(&waf.GetChangeTokenInput{}) if err != nil { return err @@ -98,7 +94,7 @@ func (f *WAFRegionalWebACLRuleAttachment) Remove(_ context.Context) error { } _, err = f.svc.UpdateWebACL(&waf.UpdateWebACLInput{ - WebACLId: f.webAclID, + WebACLId: f.webACLID, ChangeToken: tokenOutput.ChangeToken, Updates: []*waf.WebACLUpdate{webACLUpdate}, }) @@ -107,5 +103,5 @@ func (f *WAFRegionalWebACLRuleAttachment) Remove(_ context.Context) error { } func (f *WAFRegionalWebACLRuleAttachment) String() string { - return fmt.Sprintf("%s -> %s", *f.webAclID, *f.activatedRule.RuleId) + return fmt.Sprintf("%s -> %s", *f.webACLID, *f.activatedRule.RuleId) } diff --git a/resources/wafregional-webacls.go b/resources/wafregional-webacls.go index e47d6260..16e2b865 100644 --- a/resources/wafregional-webacls.go +++ b/resources/wafregional-webacls.go @@ -67,7 +67,6 @@ func (l *WAFRegionalWebACLLister) List(_ context.Context, o interface{}) ([]reso } func (f *WAFRegionalWebACL) Remove(_ context.Context) error { - tokenOutput, err := f.svc.GetChangeToken(&waf.GetChangeTokenInput{}) if err != nil { return err diff --git a/resources/wafv2-ipsets.go b/resources/wafv2-ipsets.go index 70731173..03310e04 100644 --- a/resources/wafv2-ipsets.go +++ b/resources/wafv2-ipsets.go @@ -4,6 +4,7 @@ import ( "context" "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/endpoints" "github.com/aws/aws-sdk-go/service/wafv2" "github.com/ekristen/libnuke/pkg/registry" @@ -43,7 +44,7 @@ func (l *WAFv2IPSetLister) List(_ context.Context, o interface{}) ([]resource.Re resources = append(resources, output...) - if *opts.Session.Config.Region == "us-east-1" { + if *opts.Session.Config.Region == endpoints.UsEast1RegionID { params.Scope = aws.String("CLOUDFRONT") output, err := getIPSets(svc, params) diff --git a/resources/wafv2-regex-pattern-sets.go b/resources/wafv2-regex-pattern-sets.go index b9d94b9f..cf3b5543 100644 --- a/resources/wafv2-regex-pattern-sets.go +++ b/resources/wafv2-regex-pattern-sets.go @@ -4,6 +4,7 @@ import ( "context" "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/endpoints" "github.com/aws/aws-sdk-go/service/wafv2" "github.com/ekristen/libnuke/pkg/registry" @@ -43,7 +44,7 @@ func (l *WAFv2RegexPatternSetLister) List(_ context.Context, o interface{}) ([]r resources = append(resources, output...) - if *opts.Session.Config.Region == "us-east-1" { + if *opts.Session.Config.Region == endpoints.UsEast1RegionID { params.Scope = aws.String("CLOUDFRONT") output, err := getRegexPatternSets(svc, params) From 6a8af7c2d84adcf52cc6864b8878492cdd8b8153 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:38:08 -0700 Subject: [PATCH 140/617] chore(resources/iam): fix golangci-lint violations --- resources/iam-instance-profiles.go | 3 ++- resources/iam-login-profiles.go | 5 +---- resources/iam-policies.go | 9 +++++---- resources/iam-policies_mock_test.go | 4 ++-- resources/iam-role-policy.go | 6 +++--- resources/iam-role-policy_mock_test.go | 2 +- resources/iam-signing-certificate.go | 10 +++++----- resources/iam-signing-certificate_mock_test.go | 4 ++-- resources/iam-user-access-key.go | 10 +++++----- resources/iam-user-access-key_mock_test.go | 4 ++-- resources/iam-user-https-git-credential.go | 2 +- resources/iam-virtual-mfa-devices.go | 10 +++++----- resources/iam-virtual-mfa-devices_mock_test.go | 2 +- 13 files changed, 35 insertions(+), 36 deletions(-) diff --git a/resources/iam-instance-profiles.go b/resources/iam-instance-profiles.go index 4000f974..223cedc4 100644 --- a/resources/iam-instance-profiles.go +++ b/resources/iam-instance-profiles.go @@ -3,6 +3,7 @@ package resources import ( "context" + "github.com/gotidy/ptr" "github.com/sirupsen/logrus" "github.com/aws/aws-sdk-go/service/iam" @@ -61,7 +62,7 @@ func (l *IAMInstanceProfileLister) List(_ context.Context, o interface{}) ([]res }) } - if *resp.IsTruncated == false { + if !ptr.ToBool(resp.IsTruncated) { break } diff --git a/resources/iam-login-profiles.go b/resources/iam-login-profiles.go index 6ccfb1c0..51afa75c 100644 --- a/resources/iam-login-profiles.go +++ b/resources/iam-login-profiles.go @@ -46,10 +46,7 @@ func (l *IAMLoginProfileLister) List(_ context.Context, o interface{}) ([]resour if err != nil { var awsError awserr.Error if errors.As(err, &awsError) { - switch awsError.Code() { - case iam.ErrCodeNoSuchEntityException: - // The user does not have a login profile and we do not - // need to print an error for that. + if awsError.Code() == iam.ErrCodeNoSuchEntityException { continue } } diff --git a/resources/iam-policies.go b/resources/iam-policies.go index aa89611d..30222a3e 100644 --- a/resources/iam-policies.go +++ b/resources/iam-policies.go @@ -37,7 +37,7 @@ func init() { type IAMPolicy struct { svc iamiface.IAMAPI name string - policyId string + policyID string arn string path string tags []*iam.Tag @@ -50,6 +50,7 @@ func (e *IAMPolicy) Remove(_ context.Context) error { if err != nil { return err } + for _, version := range resp.Versions { if !*version.IsDefaultVersion { _, err = e.svc.DeletePolicyVersion(&iam.DeletePolicyVersionInput{ @@ -59,9 +60,9 @@ func (e *IAMPolicy) Remove(_ context.Context) error { if err != nil { return err } - } } + _, err = e.svc.DeletePolicy(&iam.DeletePolicyInput{ PolicyArn: &e.arn, }) @@ -78,7 +79,7 @@ func (e *IAMPolicy) Properties() types.Properties { properties.Set("Name", e.name) properties.Set("ARN", e.arn) properties.Set("Path", e.path) - properties.Set("PolicyID", e.policyId) + properties.Set("PolicyID", e.policyID) for _, tag := range e.tags { properties.SetTag(tag.Key, tag.Value) } @@ -135,7 +136,7 @@ func (l *IAMPolicyLister) List(_ context.Context, o interface{}) ([]resource.Res name: *out.PolicyName, path: *out.Path, arn: *out.Arn, - policyId: *out.PolicyId, + policyID: *out.PolicyId, tags: out.Tags, }) } diff --git a/resources/iam-policies_mock_test.go b/resources/iam-policies_mock_test.go index dee908b5..51a73cfc 100644 --- a/resources/iam-policies_mock_test.go +++ b/resources/iam-policies_mock_test.go @@ -23,7 +23,7 @@ func Test_Mock_IAMPolicy_Remove(t *testing.T) { iamPolicy := IAMPolicy{ svc: mockIAM, name: "foobar", - policyId: "foobar", + policyID: "foobar", arn: "foobar", } @@ -56,7 +56,7 @@ func Test_Mock_IAMPolicy_WithVersions_Remove(t *testing.T) { iamPolicy := IAMPolicy{ svc: mockIAM, name: "foobar", - policyId: "foobar", + policyID: "foobar", arn: "foobar", } diff --git a/resources/iam-role-policy.go b/resources/iam-role-policy.go index 3c6055fa..505e9145 100644 --- a/resources/iam-role-policy.go +++ b/resources/iam-role-policy.go @@ -30,7 +30,7 @@ func init() { type IAMRolePolicy struct { svc iamiface.IAMAPI - roleId string + roleID string rolePath string roleName string policyName string @@ -61,7 +61,7 @@ func (e *IAMRolePolicy) Properties() types.Properties { properties := types.NewProperties() properties.Set("PolicyName", e.policyName) properties.Set("role:RoleName", e.roleName) - properties.Set("role:RoleID", e.roleId) + properties.Set("role:RoleID", e.roleID) properties.Set("role:Path", e.rolePath) for _, tagValue := range e.roleTags { @@ -115,7 +115,7 @@ func (l *IAMRolePolicyLister) List(_ context.Context, o interface{}) ([]resource for _, policyName := range policies.PolicyNames { resources = append(resources, &IAMRolePolicy{ svc: svc, - roleId: *role.RoleId, + roleID: *role.RoleId, roleName: *role.RoleName, rolePath: *role.Path, policyName: *policyName, diff --git a/resources/iam-role-policy_mock_test.go b/resources/iam-role-policy_mock_test.go index d0c55d89..e7657629 100644 --- a/resources/iam-role-policy_mock_test.go +++ b/resources/iam-role-policy_mock_test.go @@ -22,7 +22,7 @@ func Test_Mock_IAMRolePolicy_Remove(t *testing.T) { iamRolePolicy := IAMRolePolicy{ svc: mockIAM, - roleId: "role:foobar-id", + roleID: "role:foobar-id", roleName: "role:foobar", policyName: "policy:foobar", roleTags: []*iam.Tag{}, diff --git a/resources/iam-signing-certificate.go b/resources/iam-signing-certificate.go index 13dd2400..4091923d 100644 --- a/resources/iam-signing-certificate.go +++ b/resources/iam-signing-certificate.go @@ -57,7 +57,7 @@ func (l *IAMSigningCertificateLister) List(_ context.Context, o interface{}) ([] for _, signingCert := range resp.Certificates { resources = append(resources, &IAMSigningCertificate{ svc: svc, - certificateId: signingCert.CertificateId, + certificateID: signingCert.CertificateId, userName: signingCert.UserName, status: signingCert.Status, }) @@ -76,14 +76,14 @@ func (l *IAMSigningCertificateLister) List(_ context.Context, o interface{}) ([] type IAMSigningCertificate struct { svc iamiface.IAMAPI - certificateId *string + certificateID *string userName *string status *string } func (i *IAMSigningCertificate) Remove(_ context.Context) error { _, err := i.svc.DeleteSigningCertificate(&iam.DeleteSigningCertificateInput{ - CertificateId: i.certificateId, + CertificateId: i.certificateID, UserName: i.userName, }) return err @@ -92,10 +92,10 @@ func (i *IAMSigningCertificate) Remove(_ context.Context) error { func (i *IAMSigningCertificate) Properties() types.Properties { return types.NewProperties(). Set("UserName", i.userName). - Set("CertificateId", i.certificateId). + Set("CertificateId", i.certificateID). Set("Status", i.status) } func (i *IAMSigningCertificate) String() string { - return fmt.Sprintf("%s -> %s", ptr.ToString(i.userName), ptr.ToString(i.certificateId)) + return fmt.Sprintf("%s -> %s", ptr.ToString(i.userName), ptr.ToString(i.certificateID)) } diff --git a/resources/iam-signing-certificate_mock_test.go b/resources/iam-signing-certificate_mock_test.go index d5c7595a..7d7cb49c 100644 --- a/resources/iam-signing-certificate_mock_test.go +++ b/resources/iam-signing-certificate_mock_test.go @@ -22,14 +22,14 @@ func Test_Mock_IAMSigningCertificate_Remove(t *testing.T) { iamSigningCertificate := IAMSigningCertificate{ svc: mockIAM, - certificateId: aws.String("certid:foobar"), + certificateID: aws.String("certid:foobar"), userName: aws.String("user:foobar"), status: aws.String("unknown"), } mockIAM.EXPECT().DeleteSigningCertificate(gomock.Eq(&iam.DeleteSigningCertificateInput{ UserName: iamSigningCertificate.userName, - CertificateId: iamSigningCertificate.certificateId, + CertificateId: iamSigningCertificate.certificateID, })).Return(&iam.DeleteSigningCertificateOutput{}, nil) err := iamSigningCertificate.Remove(context.TODO()) diff --git a/resources/iam-user-access-key.go b/resources/iam-user-access-key.go index ef1f29ee..bf30abd7 100644 --- a/resources/iam-user-access-key.go +++ b/resources/iam-user-access-key.go @@ -30,7 +30,7 @@ func init() { type IAMUserAccessKey struct { svc iamiface.IAMAPI - accessKeyId string + accessKeyID string userName string status string userTags []*iam.Tag @@ -39,7 +39,7 @@ type IAMUserAccessKey struct { func (e *IAMUserAccessKey) Remove(_ context.Context) error { _, err := e.svc.DeleteAccessKey( &iam.DeleteAccessKeyInput{ - AccessKeyId: &e.accessKeyId, + AccessKeyId: &e.accessKeyID, UserName: &e.userName, }) if err != nil { @@ -52,7 +52,7 @@ func (e *IAMUserAccessKey) Remove(_ context.Context) error { func (e *IAMUserAccessKey) Properties() types.Properties { properties := types.NewProperties() properties.Set("UserName", e.userName) - properties.Set("AccessKeyID", e.accessKeyId) + properties.Set("AccessKeyID", e.accessKeyID) for _, tag := range e.userTags { properties.SetTag(tag.Key, tag.Value) @@ -62,7 +62,7 @@ func (e *IAMUserAccessKey) Properties() types.Properties { } func (e *IAMUserAccessKey) String() string { - return fmt.Sprintf("%s -> %s", e.userName, e.accessKeyId) + return fmt.Sprintf("%s -> %s", e.userName, e.accessKeyID) } // -------------- @@ -96,7 +96,7 @@ func (l *IAMUserAccessKeyLister) List(_ context.Context, o interface{}) ([]resou for _, meta := range resp.AccessKeyMetadata { resources = append(resources, &IAMUserAccessKey{ svc: svc, - accessKeyId: *meta.AccessKeyId, + accessKeyID: *meta.AccessKeyId, userName: *meta.UserName, status: *meta.Status, userTags: userTags.Tags, diff --git a/resources/iam-user-access-key_mock_test.go b/resources/iam-user-access-key_mock_test.go index 659e01d5..7ab8e583 100644 --- a/resources/iam-user-access-key_mock_test.go +++ b/resources/iam-user-access-key_mock_test.go @@ -22,13 +22,13 @@ func Test_Mock_IAMUserAccessKey_Remove(t *testing.T) { iamUserAccessKey := IAMUserAccessKey{ svc: mockIAM, - accessKeyId: "EXAMPLEfoobar", + accessKeyID: "EXAMPLEfoobar", userName: "foobar", status: "unknown", } mockIAM.EXPECT().DeleteAccessKey(gomock.Eq(&iam.DeleteAccessKeyInput{ - AccessKeyId: aws.String(iamUserAccessKey.accessKeyId), + AccessKeyId: aws.String(iamUserAccessKey.accessKeyID), UserName: aws.String(iamUserAccessKey.userName), })).Return(&iam.DeleteAccessKeyOutput{}, nil) diff --git a/resources/iam-user-https-git-credential.go b/resources/iam-user-https-git-credential.go index 211ecd55..e2a2b52b 100644 --- a/resources/iam-user-https-git-credential.go +++ b/resources/iam-user-https-git-credential.go @@ -16,7 +16,7 @@ import ( "github.com/ekristen/aws-nuke/pkg/nuke" ) -const IAMUserHTTPSGitCredentialResource = "IAMUserHTTPSGitCredential" +const IAMUserHTTPSGitCredentialResource = "IAMUserHTTPSGitCredential" //nolint:gosec func init() { registry.Register(®istry.Registration{ diff --git a/resources/iam-virtual-mfa-devices.go b/resources/iam-virtual-mfa-devices.go index f97656d7..ad1efd25 100644 --- a/resources/iam-virtual-mfa-devices.go +++ b/resources/iam-virtual-mfa-devices.go @@ -43,8 +43,8 @@ func (l *IAMVirtualMFADeviceLister) List(_ context.Context, o interface{}) ([]re for _, out := range resp.VirtualMFADevices { resources = append(resources, &IAMVirtualMFADevice{ svc: svc, - userId: out.User.UserId, - userArn: out.User.Arn, + userID: out.User.UserId, + userARN: out.User.Arn, userName: out.User.UserName, serialNumber: out.SerialNumber, }) @@ -55,15 +55,15 @@ func (l *IAMVirtualMFADeviceLister) List(_ context.Context, o interface{}) ([]re type IAMVirtualMFADevice struct { svc iamiface.IAMAPI - userId *string - userArn *string + userID *string + userARN *string userName *string serialNumber *string } func (v *IAMVirtualMFADevice) Filter() error { isRoot := false - if ptr.ToString(v.userArn) == fmt.Sprintf("arn:aws:iam::%s:root", ptr.ToString(v.userId)) { + if ptr.ToString(v.userARN) == fmt.Sprintf("arn:aws:iam::%s:root", ptr.ToString(v.userID)) { isRoot = true } if strings.HasSuffix(ptr.ToString(v.serialNumber), "/root-account-mfa-device") { diff --git a/resources/iam-virtual-mfa-devices_mock_test.go b/resources/iam-virtual-mfa-devices_mock_test.go index 6759415e..706218bd 100644 --- a/resources/iam-virtual-mfa-devices_mock_test.go +++ b/resources/iam-virtual-mfa-devices_mock_test.go @@ -2,10 +2,10 @@ package resources import ( "context" - "github.com/gotidy/ptr" "testing" "github.com/golang/mock/gomock" + "github.com/gotidy/ptr" "github.com/stretchr/testify/assert" "github.com/aws/aws-sdk-go/service/iam" From 011525ad3bdf217d04cc52429c69df1b332b5d31 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:38:23 -0700 Subject: [PATCH 141/617] chore(resources/rds): fix golangci-lint violations --- resources/rds-cluster-snapshots.go | 2 +- resources/rds-dbclusterparametergroups.go | 3 +-- resources/rds-dbparametergroups.go | 3 +-- resources/rds-event-subscriptions.go | 3 +-- resources/rds-instances.go | 7 +++---- resources/rds-optiongroups.go | 3 +-- resources/rds-snapshots.go | 2 +- resources/rds-subnets.go | 3 +-- 8 files changed, 10 insertions(+), 16 deletions(-) diff --git a/resources/rds-cluster-snapshots.go b/resources/rds-cluster-snapshots.go index 5bcc9097..9a0a3e73 100644 --- a/resources/rds-cluster-snapshots.go +++ b/resources/rds-cluster-snapshots.go @@ -37,6 +37,7 @@ func (l *RDSClusterSnapshotLister) List(_ context.Context, o interface{}) ([]res if err != nil { return nil, err } + var resources []resource.Resource for _, snapshot := range resp.DBClusterSnapshots { tags, err := svc.ListTagsForResource(&rds.ListTagsForResourceInput{ @@ -51,7 +52,6 @@ func (l *RDSClusterSnapshotLister) List(_ context.Context, o interface{}) ([]res snapshot: snapshot, tags: tags.TagList, }) - } return resources, nil diff --git a/resources/rds-dbclusterparametergroups.go b/resources/rds-dbclusterparametergroups.go index 18bf954a..5e8ecb4d 100644 --- a/resources/rds-dbclusterparametergroups.go +++ b/resources/rds-dbclusterparametergroups.go @@ -37,12 +37,12 @@ func (l *RDSDBClusterParameterGroupLister) List(_ context.Context, o interface{} if err != nil { return nil, err } + var resources []resource.Resource for _, group := range resp.DBClusterParameterGroups { tags, err := svc.ListTagsForResource(&rds.ListTagsForResourceInput{ ResourceName: group.DBClusterParameterGroupArn, }) - if err != nil { continue } @@ -52,7 +52,6 @@ func (l *RDSDBClusterParameterGroupLister) List(_ context.Context, o interface{} name: group.DBClusterParameterGroupName, tags: tags.TagList, }) - } return resources, nil diff --git a/resources/rds-dbparametergroups.go b/resources/rds-dbparametergroups.go index e928788f..edba7f2f 100644 --- a/resources/rds-dbparametergroups.go +++ b/resources/rds-dbparametergroups.go @@ -43,12 +43,12 @@ func (l *RDSDBParameterGroupLister) List(_ context.Context, o interface{}) ([]re if err != nil { return nil, err } + var resources []resource.Resource for _, group := range resp.DBParameterGroups { tags, err := svc.ListTagsForResource(&rds.ListTagsForResourceInput{ ResourceName: group.DBParameterGroupArn, }) - if err != nil { continue } @@ -58,7 +58,6 @@ func (l *RDSDBParameterGroupLister) List(_ context.Context, o interface{}) ([]re name: group.DBParameterGroupName, tags: tags.TagList, }) - } return resources, nil diff --git a/resources/rds-event-subscriptions.go b/resources/rds-event-subscriptions.go index f77866bb..ed2336eb 100644 --- a/resources/rds-event-subscriptions.go +++ b/resources/rds-event-subscriptions.go @@ -43,12 +43,12 @@ func (l *RDSEventSubscriptionLister) List(_ context.Context, o interface{}) ([]r if err != nil { return nil, err } + var resources []resource.Resource for _, eventSubscription := range resp.EventSubscriptionsList { tags, err := svc.ListTagsForResource(&rds.ListTagsForResourceInput{ ResourceName: eventSubscription.EventSubscriptionArn, }) - if err != nil { continue } @@ -59,7 +59,6 @@ func (l *RDSEventSubscriptionLister) List(_ context.Context, o interface{}) ([]r enabled: eventSubscription.Enabled, tags: tags.TagList, }) - } return resources, nil diff --git a/resources/rds-instances.go b/resources/rds-instances.go index efcfbaa0..7f37d693 100644 --- a/resources/rds-instances.go +++ b/resources/rds-instances.go @@ -2,8 +2,6 @@ package resources import ( "context" - "github.com/ekristen/libnuke/pkg/settings" - "time" "github.com/aws/aws-sdk-go/aws" @@ -11,6 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + libsettings "github.com/ekristen/libnuke/pkg/settings" "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -31,7 +30,7 @@ type RDSInstance struct { instance *rds.DBInstance tags []*rds.Tag - settings *settings.Setting + settings *libsettings.Setting } type RDSInstanceLister struct{} @@ -67,7 +66,7 @@ func (l *RDSInstanceLister) List(_ context.Context, o interface{}) ([]resource.R return resources, nil } -func (i *RDSInstance) Settings(settings *settings.Setting) { +func (i *RDSInstance) Settings(settings *libsettings.Setting) { i.settings = settings } diff --git a/resources/rds-optiongroups.go b/resources/rds-optiongroups.go index 1495db35..709b7ff0 100644 --- a/resources/rds-optiongroups.go +++ b/resources/rds-optiongroups.go @@ -37,12 +37,12 @@ func (l *RDSOptionGroupLister) List(_ context.Context, o interface{}) ([]resourc if err != nil { return nil, err } + var resources []resource.Resource for _, optionGroup := range resp.OptionGroupsList { tags, err := svc.ListTagsForResource(&rds.ListTagsForResourceInput{ ResourceName: optionGroup.OptionGroupArn, }) - if err != nil { continue } @@ -52,7 +52,6 @@ func (l *RDSOptionGroupLister) List(_ context.Context, o interface{}) ([]resourc name: optionGroup.OptionGroupName, tags: tags.TagList, }) - } return resources, nil diff --git a/resources/rds-snapshots.go b/resources/rds-snapshots.go index 6822efe0..0cfdb48d 100644 --- a/resources/rds-snapshots.go +++ b/resources/rds-snapshots.go @@ -37,6 +37,7 @@ func (l *RDSSnapshotLister) List(_ context.Context, o interface{}) ([]resource.R if err != nil { return nil, err } + var resources []resource.Resource for _, snapshot := range resp.DBSnapshots { tags, err := svc.ListTagsForResource(&rds.ListTagsForResourceInput{ @@ -51,7 +52,6 @@ func (l *RDSSnapshotLister) List(_ context.Context, o interface{}) ([]resource.R snapshot: snapshot, tags: tags.TagList, }) - } return resources, nil diff --git a/resources/rds-subnets.go b/resources/rds-subnets.go index 9a222ea0..c54faa46 100644 --- a/resources/rds-subnets.go +++ b/resources/rds-subnets.go @@ -40,12 +40,12 @@ func (l *RDSDBSubnetGroupLister) List(_ context.Context, o interface{}) ([]resou if err != nil { return nil, err } + var resources []resource.Resource for _, subnetGroup := range resp.DBSubnetGroups { tags, err := svc.ListTagsForResource(&rds.ListTagsForResourceInput{ ResourceName: subnetGroup.DBSubnetGroupArn, }) - if err != nil { continue } @@ -55,7 +55,6 @@ func (l *RDSDBSubnetGroupLister) List(_ context.Context, o interface{}) ([]resou name: subnetGroup.DBSubnetGroupName, tags: tags.TagList, }) - } return resources, nil From c8a44806d1ebb9948f421abe27d184190dff11be Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:38:37 -0700 Subject: [PATCH 142/617] chore(resources/iot): fix golangci-lint violations --- resources/iot-jobs.go | 1 - resources/iot-policies.go | 4 +++- resources/iot-thinggroups.go | 5 ++--- resources/iot-thingtypestates.go | 7 ++++--- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/resources/iot-jobs.go b/resources/iot-jobs.go index de48f1ef..a9e0f79a 100644 --- a/resources/iot-jobs.go +++ b/resources/iot-jobs.go @@ -64,7 +64,6 @@ type IoTJob struct { } func (f *IoTJob) Remove(_ context.Context) error { - _, err := f.svc.CancelJob(&iot.CancelJobInput{ JobId: f.ID, }) diff --git a/resources/iot-policies.go b/resources/iot-policies.go index d173b808..fa2def41 100644 --- a/resources/iot-policies.go +++ b/resources/iot-policies.go @@ -3,6 +3,8 @@ package resources import ( "context" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iot" @@ -108,7 +110,7 @@ func listIoTPolicyDeprecatedVersions(f *IoTPolicy) (*IoTPolicy, error) { } for _, policyVersion := range output.PolicyVersions { - if *policyVersion.IsDefaultVersion != true { + if !ptr.ToBool(policyVersion.IsDefaultVersion) { deprecatedVersions = append(deprecatedVersions, policyVersion.VersionId) } } diff --git a/resources/iot-thinggroups.go b/resources/iot-thinggroups.go index d824e400..e4942393 100644 --- a/resources/iot-thinggroups.go +++ b/resources/iot-thinggroups.go @@ -40,9 +40,8 @@ func (l *IoTThingGroupLister) List(_ context.Context, o interface{}) ([]resource return nil, err } - for _, thingGroup := range output.ThingGroups { - thingGroups = append(thingGroups, thingGroup) - } + thingGroups = append(thingGroups, output.ThingGroups...) + if output.NextToken == nil { break } diff --git a/resources/iot-thingtypestates.go b/resources/iot-thingtypestates.go index a8bfc0fb..4012fb30 100644 --- a/resources/iot-thingtypestates.go +++ b/resources/iot-thingtypestates.go @@ -2,10 +2,11 @@ package resources import ( "context" - "fmt" "time" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iot" @@ -68,8 +69,8 @@ type IoTThingTypeState struct { } func (f *IoTThingTypeState) Filter() error { - //Ensure we don't inspect time unless its already deprecated - if *f.deprecated == true { + // ensure we don't inspect time unless its already deprecated + if ptr.ToBool(f.deprecated) { currentTime := time.Now() timeDiff := currentTime.Sub(*f.deprecatedEpoch) // Must wait for 300 seconds before deleting a ThingType after deprecation From f43bd9dc8f119443a94853414b7226471d8788fb Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:38:53 -0700 Subject: [PATCH 143/617] chore(resources/ec2): fix golangci-lint violations --- .../ec2-client-vpn-endpoint-attachment.go | 22 +++++++++---------- resources/ec2-client-vpn-endpoint.go | 2 +- resources/ec2-customer-gateway.go | 4 ++-- resources/ec2-default-security-group-rules.go | 10 ++++----- resources/ec2-dhcp-options.go | 6 ++--- resources/ec2-instance.go | 18 ++++++++------- resources/ec2-internet-gateway-attachments.go | 16 +++++++------- resources/ec2-internet-gateways.go | 12 +++++----- resources/ec2-nat-gateways.go | 4 ++-- resources/ec2-network-acls.go | 2 -- resources/ec2-network-interfaces.go | 2 -- resources/ec2-placement-groups.go | 4 ++-- resources/ec2-route-tables.go | 8 +++---- resources/ec2-spot-fleet-requests.go | 4 ++-- resources/ec2-subnets.go | 6 ++--- resources/ec2-tgw-attachments.go | 4 ++-- resources/ec2-tgw.go | 4 ++-- resources/ec2-vpc-endpoint-connections.go | 7 +++--- resources/ec2-vpc-peering-connections.go | 5 +++-- resources/ec2-vpc.go | 2 +- resources/ec2-vpn-gateway-attachments.go | 14 ++++++------ 21 files changed, 78 insertions(+), 78 deletions(-) diff --git a/resources/ec2-client-vpn-endpoint-attachment.go b/resources/ec2-client-vpn-endpoint-attachment.go index a1d36c25..f8f50f6c 100644 --- a/resources/ec2-client-vpn-endpoint-attachment.go +++ b/resources/ec2-client-vpn-endpoint-attachment.go @@ -47,18 +47,18 @@ func (l *EC2ClientVpnEndpointAttachmentLister) List(_ context.Context, o interfa } resources := make([]resource.Resource, 0) - for _, clientVpnEndpointId := range endpoints { + for _, clientVpnEndpointID := range endpoints { params := &ec2.DescribeClientVpnTargetNetworksInput{ - ClientVpnEndpointId: clientVpnEndpointId, + ClientVpnEndpointId: clientVpnEndpointID, } err := svc.DescribeClientVpnTargetNetworksPages(params, func(page *ec2.DescribeClientVpnTargetNetworksOutput, lastPage bool) bool { for _, out := range page.ClientVpnTargetNetworks { resources = append(resources, &EC2ClientVpnEndpointAttachments{ svc: svc, - associationId: out.AssociationId, - clientVpnEndpointId: out.ClientVpnEndpointId, - vpcId: out.VpcId, + associationID: out.AssociationId, + clientVpnEndpointID: out.ClientVpnEndpointId, + vpcID: out.VpcId, }) } return true @@ -73,15 +73,15 @@ func (l *EC2ClientVpnEndpointAttachmentLister) List(_ context.Context, o interfa type EC2ClientVpnEndpointAttachments struct { svc *ec2.EC2 - associationId *string - clientVpnEndpointId *string - vpcId *string + associationID *string + clientVpnEndpointID *string + vpcID *string } func (e *EC2ClientVpnEndpointAttachments) Remove(_ context.Context) error { params := &ec2.DisassociateClientVpnTargetNetworkInput{ - AssociationId: e.associationId, - ClientVpnEndpointId: e.clientVpnEndpointId, + AssociationId: e.associationID, + ClientVpnEndpointId: e.clientVpnEndpointID, } _, err := e.svc.DisassociateClientVpnTargetNetwork(params) @@ -93,5 +93,5 @@ func (e *EC2ClientVpnEndpointAttachments) Remove(_ context.Context) error { } func (e *EC2ClientVpnEndpointAttachments) String() string { - return fmt.Sprintf("%s -> %s", ptr.ToString(e.clientVpnEndpointId), ptr.ToString(e.vpcId)) + return fmt.Sprintf("%s -> %s", ptr.ToString(e.clientVpnEndpointID), ptr.ToString(e.vpcID)) } diff --git a/resources/ec2-client-vpn-endpoint.go b/resources/ec2-client-vpn-endpoint.go index e59a4b44..d0ad5d1a 100644 --- a/resources/ec2-client-vpn-endpoint.go +++ b/resources/ec2-client-vpn-endpoint.go @@ -36,13 +36,13 @@ func (l *EC2ClientVpnEndpointLister) List(_ context.Context, o interface{}) ([]r err := svc.DescribeClientVpnEndpointsPages(params, func(page *ec2.DescribeClientVpnEndpointsOutput, lastPage bool) bool { - for _, out := range page.ClientVpnEndpoints { resources = append(resources, &EC2ClientVpnEndpoint{ svc: svc, id: *out.ClientVpnEndpointId, }) } + return true }) if err != nil { diff --git a/resources/ec2-customer-gateway.go b/resources/ec2-customer-gateway.go index b71dc96a..ce7949b6 100644 --- a/resources/ec2-customer-gateway.go +++ b/resources/ec2-customer-gateway.go @@ -2,7 +2,6 @@ package resources import ( "context" - "fmt" "github.com/aws/aws-sdk-go/service/ec2" @@ -10,6 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/aws-nuke/pkg/awsutil" "github.com/ekristen/aws-nuke/pkg/nuke" ) @@ -54,7 +54,7 @@ type EC2CustomerGateway struct { } func (c *EC2CustomerGateway) Filter() error { - if c.state == "deleted" { + if c.state == awsutil.StateDeleted { return fmt.Errorf("already deleted") } return nil diff --git a/resources/ec2-default-security-group-rules.go b/resources/ec2-default-security-group-rules.go index fd7465a3..cdec1d35 100644 --- a/resources/ec2-default-security-group-rules.go +++ b/resources/ec2-default-security-group-rules.go @@ -69,7 +69,7 @@ func (l *EC2DefaultSecurityGroupRuleLister) List(_ context.Context, o interface{ resources = append(resources, &EC2DefaultSecurityGroupRule{ svc: svc, id: rule.SecurityGroupRuleId, - groupId: rule.GroupId, + groupID: rule.GroupId, isEgress: rule.IsEgress, }) } @@ -85,7 +85,7 @@ func (l *EC2DefaultSecurityGroupRuleLister) List(_ context.Context, o interface{ type EC2DefaultSecurityGroupRule struct { svc *ec2.EC2 id *string - groupId *string + groupID *string isEgress *bool } @@ -94,7 +94,7 @@ func (r *EC2DefaultSecurityGroupRule) Remove(_ context.Context) error { rules[0] = r.id if *r.isEgress { params := &ec2.RevokeSecurityGroupEgressInput{ - GroupId: r.groupId, + GroupId: r.groupID, SecurityGroupRuleIds: rules, } _, err := r.svc.RevokeSecurityGroupEgress(params) @@ -104,7 +104,7 @@ func (r *EC2DefaultSecurityGroupRule) Remove(_ context.Context) error { } } else { params := &ec2.RevokeSecurityGroupIngressInput{ - GroupId: r.groupId, + GroupId: r.groupID, SecurityGroupRuleIds: rules, } _, err := r.svc.RevokeSecurityGroupIngress(params) @@ -119,7 +119,7 @@ func (r *EC2DefaultSecurityGroupRule) Remove(_ context.Context) error { func (r *EC2DefaultSecurityGroupRule) Properties() types.Properties { properties := types.NewProperties() - properties.Set("SecurityGroupId", r.groupId) + properties.Set("SecurityGroupId", r.groupID) return properties } diff --git a/resources/ec2-dhcp-options.go b/resources/ec2-dhcp-options.go index c7a73824..bca399a6 100644 --- a/resources/ec2-dhcp-options.go +++ b/resources/ec2-dhcp-options.go @@ -40,9 +40,9 @@ func (l *EC2DHCPOptionLister) List(_ context.Context, o interface{}) ([]resource return nil, err } - defVpcDhcpOptsId := "" + defVpcDhcpOptsID := "" if defVpc := DefaultVpc(svc); defVpc != nil { - defVpcDhcpOptsId = ptr.ToString(defVpc.DhcpOptionsId) + defVpcDhcpOptsID = ptr.ToString(defVpc.DhcpOptionsId) } resources := make([]resource.Resource, 0) @@ -51,7 +51,7 @@ func (l *EC2DHCPOptionLister) List(_ context.Context, o interface{}) ([]resource svc: svc, id: out.DhcpOptionsId, tags: out.Tags, - defaultVPC: defVpcDhcpOptsId == ptr.ToString(out.DhcpOptionsId), + defaultVPC: defVpcDhcpOptsID == ptr.ToString(out.DhcpOptionsId), }) } diff --git a/resources/ec2-instance.go b/resources/ec2-instance.go index d9ab9b4c..4f78c7d3 100644 --- a/resources/ec2-instance.go +++ b/resources/ec2-instance.go @@ -2,19 +2,21 @@ package resources import ( "context" - "github.com/ekristen/libnuke/pkg/settings" - "errors" "fmt" - "github.com/ekristen/aws-nuke/pkg/nuke" - "github.com/ekristen/libnuke/pkg/registry" - "github.com/ekristen/libnuke/pkg/resource" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/service/ec2" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + libsettings "github.com/ekristen/libnuke/pkg/settings" "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/awsutil" + "github.com/ekristen/aws-nuke/pkg/nuke" ) const EC2InstanceResource = "EC2Instance" @@ -66,10 +68,10 @@ type EC2Instance struct { svc *ec2.EC2 instance *ec2.Instance - settings *settings.Setting + settings *libsettings.Setting } -func (i *EC2Instance) Settings(setting *settings.Setting) { +func (i *EC2Instance) Settings(setting *libsettings.Setting) { i.settings = setting } @@ -90,7 +92,7 @@ func (i *EC2Instance) Remove(_ context.Context) error { ok := errors.As(err, &awsErr) // Check for Termination Protection, disable it, and try termination again. - if ok && awsErr.Code() == "OperationNotPermitted" && + if ok && awsErr.Code() == awsutil.ErrCodeOperationNotPermitted && awsErr.Message() == "The instance '"+*i.instance.InstanceId+"' may not be "+ "terminated. Modify its 'disableApiTermination' instance attribute and "+ "try again." && i.settings.Get("DisableDeletionProtection").(bool) { diff --git a/resources/ec2-internet-gateway-attachments.go b/resources/ec2-internet-gateway-attachments.go index 467af8b4..13653ef8 100644 --- a/resources/ec2-internet-gateway-attachments.go +++ b/resources/ec2-internet-gateway-attachments.go @@ -2,8 +2,8 @@ package resources import ( "context" - "fmt" + "github.com/gotidy/ptr" "github.com/aws/aws-sdk-go/aws" @@ -60,9 +60,9 @@ func (l *EC2InternetGatewayAttachmentLister) List(_ context.Context, o interface for _, igw := range resp.InternetGateways { resources = append(resources, &EC2InternetGatewayAttachment{ svc: svc, - vpcId: vpc.VpcId, + vpcID: vpc.VpcId, vpcTags: vpc.Tags, - igwId: igw.InternetGatewayId, + igwID: igw.InternetGatewayId, igwTags: igw.Tags, defaultVPC: *vpc.IsDefault, }) @@ -74,17 +74,17 @@ func (l *EC2InternetGatewayAttachmentLister) List(_ context.Context, o interface type EC2InternetGatewayAttachment struct { svc *ec2.EC2 - vpcId *string + vpcID *string vpcTags []*ec2.Tag - igwId *string + igwID *string igwTags []*ec2.Tag defaultVPC bool } func (e *EC2InternetGatewayAttachment) Remove(_ context.Context) error { params := &ec2.DetachInternetGatewayInput{ - VpcId: e.vpcId, - InternetGatewayId: e.igwId, + VpcId: e.vpcID, + InternetGatewayId: e.igwID, } _, err := e.svc.DetachInternetGateway(params) @@ -108,5 +108,5 @@ func (e *EC2InternetGatewayAttachment) Properties() types.Properties { } func (e *EC2InternetGatewayAttachment) String() string { - return fmt.Sprintf("%s -> %s", ptr.ToString(e.igwId), ptr.ToString(e.vpcId)) + return fmt.Sprintf("%s -> %s", ptr.ToString(e.igwID), ptr.ToString(e.vpcID)) } diff --git a/resources/ec2-internet-gateways.go b/resources/ec2-internet-gateways.go index 4e7fcda4..ba92ad9f 100644 --- a/resources/ec2-internet-gateways.go +++ b/resources/ec2-internet-gateways.go @@ -35,9 +35,9 @@ func (l *EC2InternetGatewayLister) List(_ context.Context, o interface{}) ([]res return nil, err } - defVpcId := "" + defVpcID := "" if defVpc := DefaultVpc(svc); defVpc != nil { - defVpcId = *defVpc.VpcId + defVpcID = *defVpc.VpcId } resources := make([]resource.Resource, 0) @@ -45,20 +45,20 @@ func (l *EC2InternetGatewayLister) List(_ context.Context, o interface{}) ([]res resources = append(resources, &EC2InternetGateway{ svc: svc, igw: igw, - defaultVPC: HasVpcAttachment(&defVpcId, igw.Attachments), + defaultVPC: HasVpcAttachment(&defVpcID, igw.Attachments), }) } return resources, nil } -func HasVpcAttachment(vpcId *string, attachments []*ec2.InternetGatewayAttachment) bool { - if *vpcId == "" { +func HasVpcAttachment(vpcID *string, attachments []*ec2.InternetGatewayAttachment) bool { + if *vpcID == "" { return false } for _, attach := range attachments { - if *vpcId == *attach.VpcId { + if *vpcID == *attach.VpcId { return true } } diff --git a/resources/ec2-nat-gateways.go b/resources/ec2-nat-gateways.go index fe9e164e..31274802 100644 --- a/resources/ec2-nat-gateways.go +++ b/resources/ec2-nat-gateways.go @@ -2,7 +2,6 @@ package resources import ( "context" - "fmt" "github.com/gotidy/ptr" @@ -13,6 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" + "github.com/ekristen/aws-nuke/pkg/awsutil" "github.com/ekristen/aws-nuke/pkg/nuke" ) @@ -58,7 +58,7 @@ type EC2NATGateway struct { } func (n *EC2NATGateway) Filter() error { - if *n.natgw.State == "deleted" { + if *n.natgw.State == awsutil.StateDeleted { return fmt.Errorf("already deleted") } return nil diff --git a/resources/ec2-network-acls.go b/resources/ec2-network-acls.go index d353cdc2..627c3007 100644 --- a/resources/ec2-network-acls.go +++ b/resources/ec2-network-acls.go @@ -2,7 +2,6 @@ package resources import ( "context" - "fmt" "github.com/gotidy/ptr" @@ -40,7 +39,6 @@ func (l *EC2NetworkACLLister) List(_ context.Context, o interface{}) ([]resource resources := make([]resource.Resource, 0) for _, out := range resp.NetworkAcls { - resources = append(resources, &EC2NetworkACL{ svc: svc, id: out.NetworkAclId, diff --git a/resources/ec2-network-interfaces.go b/resources/ec2-network-interfaces.go index 084c427b..e4025003 100644 --- a/resources/ec2-network-interfaces.go +++ b/resources/ec2-network-interfaces.go @@ -40,7 +40,6 @@ func (l *EC2NetworkInterfaceLister) List(_ context.Context, o interface{}) ([]re resources := make([]resource.Resource, 0) for _, out := range resp.NetworkInterfaces { - resources = append(resources, &EC2NetworkInterface{ svc: svc, eni: out, @@ -68,7 +67,6 @@ func (e *EC2NetworkInterface) Remove(_ context.Context) error { return err } } - } } diff --git a/resources/ec2-placement-groups.go b/resources/ec2-placement-groups.go index 2cd3e160..19e24c81 100644 --- a/resources/ec2-placement-groups.go +++ b/resources/ec2-placement-groups.go @@ -2,7 +2,6 @@ package resources import ( "context" - "fmt" "github.com/aws/aws-sdk-go/service/ec2" @@ -10,6 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/aws-nuke/pkg/awsutil" "github.com/ekristen/aws-nuke/pkg/nuke" ) @@ -55,7 +55,7 @@ type EC2PlacementGroup struct { } func (p *EC2PlacementGroup) Filter() error { - if p.state == "deleted" { + if p.state == awsutil.StateDeleted { return fmt.Errorf("already deleted") } return nil diff --git a/resources/ec2-route-tables.go b/resources/ec2-route-tables.go index c195af2a..0bcf179e 100644 --- a/resources/ec2-route-tables.go +++ b/resources/ec2-route-tables.go @@ -2,8 +2,8 @@ package resources import ( "context" - "fmt" + "github.com/gotidy/ptr" "github.com/aws/aws-sdk-go/service/ec2" @@ -47,9 +47,9 @@ func (l *EC2RouteTableLister) List(_ context.Context, o interface{}) ([]resource return nil, err } - defVpcId := "" + defVpcID := "" if defVpc := DefaultVpc(svc); defVpc != nil { - defVpcId = ptr.ToString(defVpc.VpcId) + defVpcID = ptr.ToString(defVpc.VpcId) } resources := make([]resource.Resource, 0) @@ -62,7 +62,7 @@ func (l *EC2RouteTableLister) List(_ context.Context, o interface{}) ([]resource resources = append(resources, &EC2RouteTable{ svc: svc, routeTable: out, - defaultVPC: defVpcId == ptr.ToString(out.VpcId), + defaultVPC: defVpcID == ptr.ToString(out.VpcId), vpc: vpc, }) } diff --git a/resources/ec2-spot-fleet-requests.go b/resources/ec2-spot-fleet-requests.go index 7424741d..e68f6f74 100644 --- a/resources/ec2-spot-fleet-requests.go +++ b/resources/ec2-spot-fleet-requests.go @@ -55,8 +55,8 @@ type EC2SpotFleetRequest struct { } func (i *EC2SpotFleetRequest) Filter() error { - if i.state == "cancelled" { - return fmt.Errorf("already cancelled") + if i.state == ec2.CancelSpotInstanceRequestStateCancelled { + return fmt.Errorf("already canceled") } return nil } diff --git a/resources/ec2-subnets.go b/resources/ec2-subnets.go index 922100e9..0794f4fe 100644 --- a/resources/ec2-subnets.go +++ b/resources/ec2-subnets.go @@ -44,9 +44,9 @@ func (l *EC2SubnetLister) List(_ context.Context, o interface{}) ([]resource.Res return nil, err } - defVpcId := "" + defVpcID := "" if defVpc := DefaultVpc(svc); defVpc != nil { - defVpcId = *defVpc.VpcId + defVpcID = *defVpc.VpcId } resources := make([]resource.Resource, 0) @@ -54,7 +54,7 @@ func (l *EC2SubnetLister) List(_ context.Context, o interface{}) ([]resource.Res resources = append(resources, &EC2Subnet{ svc: svc, subnet: out, - defaultVPC: defVpcId == *out.VpcId, + defaultVPC: defVpcID == *out.VpcId, }) } diff --git a/resources/ec2-tgw-attachments.go b/resources/ec2-tgw-attachments.go index bdc09d5a..e47abf60 100644 --- a/resources/ec2-tgw-attachments.go +++ b/resources/ec2-tgw-attachments.go @@ -2,7 +2,6 @@ package resources import ( "context" - "fmt" "github.com/aws/aws-sdk-go/service/ec2" @@ -11,6 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" + "github.com/ekristen/aws-nuke/pkg/awsutil" "github.com/ekristen/aws-nuke/pkg/nuke" ) @@ -82,7 +82,7 @@ func (e *EC2TGWAttachment) Remove(_ context.Context) error { } func (e *EC2TGWAttachment) Filter() error { - if *e.tgwa.State == "deleted" { + if *e.tgwa.State == awsutil.StateDeleted { return fmt.Errorf("already deleted") } diff --git a/resources/ec2-tgw.go b/resources/ec2-tgw.go index f2b1d1d7..53183c12 100644 --- a/resources/ec2-tgw.go +++ b/resources/ec2-tgw.go @@ -2,7 +2,6 @@ package resources import ( "context" - "fmt" "github.com/aws/aws-sdk-go/service/ec2" @@ -11,6 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" + "github.com/ekristen/aws-nuke/pkg/awsutil" "github.com/ekristen/aws-nuke/pkg/nuke" ) @@ -80,7 +80,7 @@ func (e *EC2TGW) Remove(_ context.Context) error { } func (e *EC2TGW) Filter() error { - if *e.tgw.State == "deleted" { + if *e.tgw.State == awsutil.StateDeleted { return fmt.Errorf("already deleted") } diff --git a/resources/ec2-vpc-endpoint-connections.go b/resources/ec2-vpc-endpoint-connections.go index d726e726..a8db78da 100644 --- a/resources/ec2-vpc-endpoint-connections.go +++ b/resources/ec2-vpc-endpoint-connections.go @@ -2,7 +2,6 @@ package resources import ( "context" - "fmt" "github.com/aws/aws-sdk-go/aws" @@ -12,10 +11,11 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" + "github.com/ekristen/aws-nuke/pkg/awsutil" "github.com/ekristen/aws-nuke/pkg/nuke" ) -const EC2VPCEndpointConnectionResource = "EC2VPCEndpointConnection" +const EC2VPCEndpointConnectionResource = "EC2VPCEndpointConnection" //nolint:gosec func init() { registry.Register(®istry.Registration{ @@ -71,9 +71,10 @@ type EC2VPCEndpointConnection struct { } func (c *EC2VPCEndpointConnection) Filter() error { - if *c.state == "deleting" || *c.state == "deleted" { + if *c.state == awsutil.StateDeleting || *c.state == awsutil.StateDeleted { return fmt.Errorf("already deleted") } + return nil } diff --git a/resources/ec2-vpc-peering-connections.go b/resources/ec2-vpc-peering-connections.go index 9fc82326..33b70958 100644 --- a/resources/ec2-vpc-peering-connections.go +++ b/resources/ec2-vpc-peering-connections.go @@ -2,7 +2,6 @@ package resources import ( "context" - "fmt" "github.com/aws/aws-sdk-go/service/ec2" @@ -10,6 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/aws-nuke/pkg/awsutil" "github.com/ekristen/aws-nuke/pkg/nuke" ) @@ -57,9 +57,10 @@ type EC2VPCPeeringConnection struct { } func (p *EC2VPCPeeringConnection) Filter() error { - if *p.status == "deleting" || *p.status == "deleted" { + if *p.status == awsutil.StateDeleting || *p.status == awsutil.StateDeleted { return fmt.Errorf("already deleted") } + return nil } diff --git a/resources/ec2-vpc.go b/resources/ec2-vpc.go index 5ef99cc7..ecaf3857 100644 --- a/resources/ec2-vpc.go +++ b/resources/ec2-vpc.go @@ -123,7 +123,7 @@ func GetVPC(svc *ec2.EC2, vpcID *string) (*ec2.Vpc, error) { } if len(resp.Vpcs) == 0 { - return nil, nil + return nil, nil //nolint:nilnil } return resp.Vpcs[0], nil diff --git a/resources/ec2-vpn-gateway-attachments.go b/resources/ec2-vpn-gateway-attachments.go index 0d855593..c99f6b5f 100644 --- a/resources/ec2-vpn-gateway-attachments.go +++ b/resources/ec2-vpn-gateway-attachments.go @@ -58,8 +58,8 @@ func (l *EC2VPNGatewayAttachmentLister) List(_ context.Context, o interface{}) ( for _, vgw := range resp.VpnGateways { resources = append(resources, &EC2VPNGatewayAttachment{ svc: svc, - vpcId: *vpc.VpcId, - vpnId: *vgw.VpnGatewayId, + vpcID: *vpc.VpcId, + vpnID: *vgw.VpnGatewayId, vpcTags: vpc.Tags, vgwTags: vgw.Tags, }) @@ -71,8 +71,8 @@ func (l *EC2VPNGatewayAttachmentLister) List(_ context.Context, o interface{}) ( type EC2VPNGatewayAttachment struct { svc *ec2.EC2 - vpcId string - vpnId string + vpcID string + vpnID string state string vpcTags []*ec2.Tag vgwTags []*ec2.Tag @@ -87,8 +87,8 @@ func (v *EC2VPNGatewayAttachment) Filter() error { func (v *EC2VPNGatewayAttachment) Remove(_ context.Context) error { params := &ec2.DetachVpnGatewayInput{ - VpcId: &v.vpcId, - VpnGatewayId: &v.vpnId, + VpcId: &v.vpcID, + VpnGatewayId: &v.vpnID, } _, err := v.svc.DetachVpnGateway(params) @@ -111,5 +111,5 @@ func (v *EC2VPNGatewayAttachment) Properties() types.Properties { } func (v *EC2VPNGatewayAttachment) String() string { - return fmt.Sprintf("%s -> %s", v.vpnId, v.vpcId) + return fmt.Sprintf("%s -> %s", v.vpnID, v.vpcID) } From af0ecf4da0ccfafaa1b8dbd193068c353f731625 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:39:19 -0700 Subject: [PATCH 144/617] chore(resources/transfer-server): fix golangci-lint violations --- resources/transfer-server-user.go | 1 - 1 file changed, 1 deletion(-) diff --git a/resources/transfer-server-user.go b/resources/transfer-server-user.go index d2fda6ea..1664ee80 100644 --- a/resources/transfer-server-user.go +++ b/resources/transfer-server-user.go @@ -70,7 +70,6 @@ func (l *TransferServerUserLister) List(_ context.Context, o interface{}) ([]res serverID: item.ServerId, tags: descOutput.User.Tags, }) - } if userOutput.NextToken == nil { From 22660f50415e71f0895794f5cdd304ac0e24c328 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:39:37 -0700 Subject: [PATCH 145/617] chore(resources/storage-gateway): fix golangci-lint violations --- resources/storagegateway-volumes.go | 1 - 1 file changed, 1 deletion(-) diff --git a/resources/storagegateway-volumes.go b/resources/storagegateway-volumes.go index 83364b00..2e96b83b 100644 --- a/resources/storagegateway-volumes.go +++ b/resources/storagegateway-volumes.go @@ -63,7 +63,6 @@ type StorageGatewayVolume struct { } func (f *StorageGatewayVolume) Remove(_ context.Context) error { - _, err := f.svc.DeleteVolume(&storagegateway.DeleteVolumeInput{ VolumeARN: f.ARN, }) From 637c380a810c3524b9b18b67c285868513a75634 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:39:55 -0700 Subject: [PATCH 146/617] chore(resources/ssm): fix golangci-lint violations --- resources/ssm-patchbaselines.go | 1 - 1 file changed, 1 deletion(-) diff --git a/resources/ssm-patchbaselines.go b/resources/ssm-patchbaselines.go index 5d1c81f6..9741af4a 100644 --- a/resources/ssm-patchbaselines.go +++ b/resources/ssm-patchbaselines.go @@ -87,7 +87,6 @@ func (f *SSMPatchBaseline) Remove(_ context.Context) error { } func (f *SSMPatchBaseline) DeregisterFromPatchGroups() error { - patchBaseLine, err := f.svc.GetPatchBaseline(&ssm.GetPatchBaselineInput{ BaselineId: f.ID, }) From 752fa009bc88c4184cfb82546bb01035f03789fe Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:40:08 -0700 Subject: [PATCH 147/617] chore(resources/sns): fix golangci-lint violations --- resources/sns-endpoints.go | 15 ++++++--------- resources/sns-platformapplications.go | 2 +- resources/sns-subscriptions.go | 2 +- resources/sns-topics.go | 4 +--- 4 files changed, 9 insertions(+), 14 deletions(-) diff --git a/resources/sns-endpoints.go b/resources/sns-endpoints.go index a18507dc..8e9a7d9a 100644 --- a/resources/sns-endpoints.go +++ b/resources/sns-endpoints.go @@ -2,8 +2,8 @@ package resources import ( "context" - "errors" + "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/service/sns" @@ -39,30 +39,27 @@ func (l *SNSEndpointLister) List(_ context.Context, o interface{}) ([]resource.R if err != nil { var awsErr awserr.Error ok := errors.As(err, &awsErr) - if ok && awsErr.Code() == "InvalidAction" && awsErr.Message() == "Operation (ListPlatformApplications) is not supported in this region" { - // AWS answers with InvalidAction on regions that do not - // support ListPlatformApplications. + if ok && awsErr.Code() == "InvalidAction" && + awsErr.Message() == "Operation (ListPlatformApplications) is not supported in this region" { + // AWS answers with InvalidAction on regions that do not support ListPlatformApplications. break } return nil, err } - for _, platformApplication := range resp.PlatformApplications { - platformApplications = append(platformApplications, platformApplication) - } + platformApplications = append(platformApplications, resp.PlatformApplications...) + if resp.NextToken == nil { break } platformParams.NextToken = resp.NextToken - } params := &sns.ListEndpointsByPlatformApplicationInput{} for _, platformApplication := range platformApplications { - params.PlatformApplicationArn = platformApplication.PlatformApplicationArn resp, err := svc.ListEndpointsByPlatformApplication(params) diff --git a/resources/sns-platformapplications.go b/resources/sns-platformapplications.go index 6269f703..3c82eb7a 100644 --- a/resources/sns-platformapplications.go +++ b/resources/sns-platformapplications.go @@ -2,8 +2,8 @@ package resources import ( "context" - "errors" + "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/service/sns" diff --git a/resources/sns-subscriptions.go b/resources/sns-subscriptions.go index fa998b44..f1f5ac68 100644 --- a/resources/sns-subscriptions.go +++ b/resources/sns-subscriptions.go @@ -38,6 +38,7 @@ func (l *SNSSubscriptionLister) List(_ context.Context, o interface{}) ([]resour if err != nil { return nil, err } + for _, subscription := range resp.Subscriptions { if *subscription.SubscriptionArn != "PendingConfirmation" { resources = append(resources, &SNSSubscription{ @@ -46,7 +47,6 @@ func (l *SNSSubscriptionLister) List(_ context.Context, o interface{}) ([]resour name: subscription.Owner, }) } - } if resp.NextToken == nil { diff --git a/resources/sns-topics.go b/resources/sns-topics.go index 2c375de4..6169540e 100644 --- a/resources/sns-topics.go +++ b/resources/sns-topics.go @@ -36,9 +36,7 @@ func (l *SNSTopicLister) List(_ context.Context, o interface{}) ([]resource.Reso params := &sns.ListTopicsInput{} err := svc.ListTopicsPages(params, func(page *sns.ListTopicsOutput, lastPage bool) bool { - for _, out := range page.Topics { - topics = append(topics, out) - } + topics = append(topics, page.Topics...) return true }) if err != nil { From 6bb76a4cdd7fdbab9a3bd1b9172442c3d2c886f3 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:40:24 -0700 Subject: [PATCH 148/617] chore(resources/signer): fix golangci-lint violations --- resources/signer-signingjobs.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/resources/signer-signingjobs.go b/resources/signer-signingjobs.go index 9387ed85..be49b1ce 100644 --- a/resources/signer-signingjobs.go +++ b/resources/signer-signingjobs.go @@ -41,13 +41,13 @@ func (l *SignerSigningJobLister) List(_ context.Context, o interface{}) ([]resou for _, job := range page.Jobs { resources = append(resources, &SignerSigningJob{ svc: svc, - jobId: job.JobId, + jobID: job.JobId, reason: reason, isRevoked: job.IsRevoked, createdAt: *job.CreatedAt, profileName: job.ProfileName, profileVersion: job.ProfileVersion, - platformId: job.PlatformId, + platformID: job.PlatformId, platformDisplayName: job.PlatformDisplayName, jobOwner: job.JobOwner, jobInvoker: job.JobInvoker, @@ -63,13 +63,13 @@ func (l *SignerSigningJobLister) List(_ context.Context, o interface{}) ([]resou type SignerSigningJob struct { svc *signer.Signer - jobId *string + jobID *string reason string isRevoked *bool createdAt time.Time profileName *string profileVersion *string - platformId *string + platformID *string platformDisplayName *string jobOwner *string jobInvoker *string @@ -88,7 +88,7 @@ func (j *SignerSigningJob) Remove(_ context.Context) error { // As a precaution we are updating Signing jobs statuses to revoked. This indicates that the signature is no longer valid. // [1] https://awscli.amazonaws.com/v2/documentation/api/latest/reference/signer/start-signing-job.html revokeInput := &signer.RevokeSignatureInput{ - JobId: j.jobId, + JobId: j.jobID, Reason: aws.String(j.reason), } _, err := j.svc.RevokeSignature(revokeInput) @@ -97,11 +97,11 @@ func (j *SignerSigningJob) Remove(_ context.Context) error { func (j *SignerSigningJob) Properties() types.Properties { properties := types.NewProperties() - properties.Set("JobId", j.jobId) + properties.Set("JobId", j.jobID) properties.Set("CreatedAt", j.createdAt.Format(time.RFC3339)) properties.Set("ProfileName", j.profileName) properties.Set("ProfileVersion", j.profileVersion) - properties.Set("PlatformId", j.platformId) + properties.Set("PlatformId", j.platformID) properties.Set("PlatformDisplayName", j.platformDisplayName) properties.Set("JobOwner", j.jobOwner) properties.Set("JobInvoker", j.jobInvoker) From 326ad6c6fe57629354a851ed75e16f40f5a36d92 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:40:40 -0700 Subject: [PATCH 149/617] chore(resources/ses): fix golangci-lint violations --- resources/ses-receiptfilters.go | 4 ++-- resources/ses-receiptrulesets.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/ses-receiptfilters.go b/resources/ses-receiptfilters.go index 112817b8..983b653f 100644 --- a/resources/ses-receiptfilters.go +++ b/resources/ses-receiptfilters.go @@ -2,7 +2,6 @@ package resources import ( "context" - "errors" "github.com/aws/aws-sdk-go/aws/awserr" @@ -12,6 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/aws-nuke/pkg/awsutil" "github.com/ekristen/aws-nuke/pkg/nuke" ) @@ -42,7 +42,7 @@ func (l *SESReceiptFilterLister) List(_ context.Context, o interface{}) ([]resou // should we need to troubleshoot. var awsError awserr.Error if errors.As(err, &awsError) { - if awsError.Code() == "InvalidAction" { + if awsError.Code() == awsutil.ErrCodeInvalidAction { return nil, sdkerrors.ErrSkipRequest( "Listing of SESReceiptFilter not supported in this region: " + *opts.Session.Config.Region) } diff --git a/resources/ses-receiptrulesets.go b/resources/ses-receiptrulesets.go index 7008c5e2..52918d33 100644 --- a/resources/ses-receiptrulesets.go +++ b/resources/ses-receiptrulesets.go @@ -2,7 +2,6 @@ package resources import ( "context" - "errors" "fmt" @@ -13,6 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/aws-nuke/pkg/awsutil" "github.com/ekristen/aws-nuke/pkg/nuke" ) @@ -43,7 +43,7 @@ func (l *SESReceiptRuleSetLister) List(_ context.Context, o interface{}) ([]reso // should we need to troubleshoot. var awsError awserr.Error if errors.As(err, &awsError) { - if awsError.Code() == "InvalidAction" { + if awsError.Code() == awsutil.ErrCodeInvalidAction { return nil, sdkerrors.ErrSkipRequest( "Listing of SESReceiptFilter not supported in this region: " + *opts.Session.Config.Region) } @@ -84,7 +84,7 @@ type SESReceiptRuleSet struct { } func (f *SESReceiptRuleSet) Filter() error { - if f.activeRuleSet == true { + if f.activeRuleSet { return fmt.Errorf("cannot delete active ruleset") } return nil From 722102e030f225870cec4c59487a7f6195f622b2 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:40:56 -0700 Subject: [PATCH 150/617] chore(resources/servicediscovery): fix golangci-lint violations --- resources/servicediscovery-instances.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/resources/servicediscovery-instances.go b/resources/servicediscovery-instances.go index e7029e31..11383a67 100644 --- a/resources/servicediscovery-instances.go +++ b/resources/servicediscovery-instances.go @@ -45,9 +45,7 @@ func (l *ServiceDiscoveryInstanceLister) List(_ context.Context, o interface{}) return nil, err } - for _, service := range output.Services { - services = append(services, service) - } + services = append(services, output.Services...) if output.NextToken == nil { break @@ -56,7 +54,7 @@ func (l *ServiceDiscoveryInstanceLister) List(_ context.Context, o interface{}) params.NextToken = output.NextToken } - //Collect Instances for de-registration + // collect instances for de-registration for _, service := range services { instanceParams := &servicediscovery.ListInstancesInput{ ServiceId: service.Id, From fa29764a4d2fd744609f2ebc2e87138f4352e175 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:41:11 -0700 Subject: [PATCH 151/617] chore(resources/servicecatalog): fix golangci-lint violations --- .../servicecatalog-portfolio-constraints-attachments.go | 7 ++----- .../servicecatalog-portfolio-principal-attachments.go | 4 +--- resources/servicecatalog-portfolio-product-attachments.go | 1 - resources/servicecatalog-portfolio-share-attachments.go | 8 ++------ .../servicecatalog-portfolio-tagoptions-attachements.go | 7 ++----- 5 files changed, 7 insertions(+), 20 deletions(-) diff --git a/resources/servicecatalog-portfolio-constraints-attachments.go b/resources/servicecatalog-portfolio-constraints-attachments.go index 56d190fd..7dca458a 100644 --- a/resources/servicecatalog-portfolio-constraints-attachments.go +++ b/resources/servicecatalog-portfolio-constraints-attachments.go @@ -41,7 +41,7 @@ func (l *ServiceCatalogConstraintPortfolioAttachmentLister) List(_ context.Conte PageSize: aws.Int64(20), } - //List all Portfolios + // list all portfolios for { resp, err := svc.ListPortfolios(params) if err != nil { @@ -52,9 +52,7 @@ func (l *ServiceCatalogConstraintPortfolioAttachmentLister) List(_ context.Conte return nil, err } - for _, portfolioDetail := range resp.PortfolioDetails { - portfolios = append(portfolios, portfolioDetail) - } + portfolios = append(portfolios, resp.PortfolioDetails...) if resp.NextPageToken == nil { break @@ -68,7 +66,6 @@ func (l *ServiceCatalogConstraintPortfolioAttachmentLister) List(_ context.Conte } for _, portfolio := range portfolios { - constraintParams.PortfolioId = portfolio.Id resp, err := svc.ListConstraintsForPortfolio(constraintParams) if err != nil { diff --git a/resources/servicecatalog-portfolio-principal-attachments.go b/resources/servicecatalog-portfolio-principal-attachments.go index 29c61c3e..8d4989cf 100644 --- a/resources/servicecatalog-portfolio-principal-attachments.go +++ b/resources/servicecatalog-portfolio-principal-attachments.go @@ -45,9 +45,7 @@ func (l *ServiceCatalogPrincipalPortfolioAttachmentLister) List(_ context.Contex return nil, err } - for _, portfolioDetail := range resp.PortfolioDetails { - portfolios = append(portfolios, portfolioDetail) - } + portfolios = append(portfolios, resp.PortfolioDetails...) if resp.NextPageToken == nil { break diff --git a/resources/servicecatalog-portfolio-product-attachments.go b/resources/servicecatalog-portfolio-product-attachments.go index fdcfa797..d097a268 100644 --- a/resources/servicecatalog-portfolio-product-attachments.go +++ b/resources/servicecatalog-portfolio-product-attachments.go @@ -61,7 +61,6 @@ func (l *ServiceCatalogPortfolioProductAttachmentLister) List(_ context.Context, } for productID, productName := range products { - portfolioParams.ProductId = productID resp, err := svc.ListPortfoliosForProduct(portfolioParams) diff --git a/resources/servicecatalog-portfolio-share-attachments.go b/resources/servicecatalog-portfolio-share-attachments.go index 4ef50ec1..bb262d28 100644 --- a/resources/servicecatalog-portfolio-share-attachments.go +++ b/resources/servicecatalog-portfolio-share-attachments.go @@ -38,16 +38,14 @@ func (l *ServiceCatalogPortfolioShareAttachmentLister) List(_ context.Context, o PageSize: aws.Int64(20), } - //List all Portfolios + // list all portfolios for { resp, err := svc.ListPortfolios(params) if err != nil { return nil, err } - for _, portfolioDetail := range resp.PortfolioDetails { - portfolios = append(portfolios, portfolioDetail) - } + portfolios = append(portfolios, resp.PortfolioDetails...) if resp.NextPageToken == nil { break @@ -60,7 +58,6 @@ func (l *ServiceCatalogPortfolioShareAttachmentLister) List(_ context.Context, o // Get all accounts which have shared access to the portfolio for _, portfolio := range portfolios { - accessParams.PortfolioId = portfolio.Id resp, err := svc.ListPortfolioAccess(accessParams) @@ -76,7 +73,6 @@ func (l *ServiceCatalogPortfolioShareAttachmentLister) List(_ context.Context, o portfolioName: portfolio.DisplayName, }) } - } return resources, nil diff --git a/resources/servicecatalog-portfolio-tagoptions-attachements.go b/resources/servicecatalog-portfolio-tagoptions-attachements.go index d851824e..0fea75d1 100644 --- a/resources/servicecatalog-portfolio-tagoptions-attachements.go +++ b/resources/servicecatalog-portfolio-tagoptions-attachements.go @@ -41,7 +41,7 @@ func (l *ServiceCatalogTagOptionPortfolioAttachmentLister) List(_ context.Contex PageSize: aws.Int64(20), } - //List all Tag Options + // list all tag options for { resp, err := svc.ListTagOptions(params) if err != nil { @@ -52,9 +52,7 @@ func (l *ServiceCatalogTagOptionPortfolioAttachmentLister) List(_ context.Contex return nil, err } - for _, tagOptionDetail := range resp.TagOptionDetails { - tagOptions = append(tagOptions, tagOptionDetail) - } + tagOptions = append(tagOptions, resp.TagOptionDetails...) if resp.PageToken == nil { break @@ -68,7 +66,6 @@ func (l *ServiceCatalogTagOptionPortfolioAttachmentLister) List(_ context.Contex } for _, tagOption := range tagOptions { - resourceParams.TagOptionId = tagOption.Id resp, err := svc.ListResourcesForTagOption(resourceParams) if err != nil { From 31ecddeba83315662fd88e7431f2aa10dab6e179 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:41:27 -0700 Subject: [PATCH 152/617] chore(resources/sagemaker): fix golangci-lint violations --- resources/sagemaker-notebook-instancelifecycleconfigs.go | 1 - resources/sagemaker-notebook-instancestates.go | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/resources/sagemaker-notebook-instancelifecycleconfigs.go b/resources/sagemaker-notebook-instancelifecycleconfigs.go index 9e1dfa1a..a689a744 100644 --- a/resources/sagemaker-notebook-instancelifecycleconfigs.go +++ b/resources/sagemaker-notebook-instancelifecycleconfigs.go @@ -64,7 +64,6 @@ type SageMakerNotebookInstanceLifecycleConfig struct { } func (f *SageMakerNotebookInstanceLifecycleConfig) Remove(_ context.Context) error { - _, err := f.svc.DeleteNotebookInstanceLifecycleConfig(&sagemaker.DeleteNotebookInstanceLifecycleConfigInput{ NotebookInstanceLifecycleConfigName: f.Name, }) diff --git a/resources/sagemaker-notebook-instancestates.go b/resources/sagemaker-notebook-instancestates.go index 95d79f74..a9fd031b 100644 --- a/resources/sagemaker-notebook-instancestates.go +++ b/resources/sagemaker-notebook-instancestates.go @@ -2,10 +2,11 @@ package resources import ( "context" - "fmt" "strings" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/sagemaker" @@ -68,7 +69,6 @@ type SageMakerNotebookInstanceState struct { } func (f *SageMakerNotebookInstanceState) Remove(_ context.Context) error { - _, err := f.svc.StopNotebookInstance(&sagemaker.StopNotebookInstanceInput{ NotebookInstanceName: f.notebookInstanceName, }) @@ -81,7 +81,7 @@ func (f *SageMakerNotebookInstanceState) String() string { } func (f *SageMakerNotebookInstanceState) Filter() error { - if strings.ToLower(*f.instanceStatus) == "stopped" { + if strings.EqualFold(ptr.ToString(f.instanceStatus), "stopped") { return fmt.Errorf("already stopped") } return nil From fc06cf2a0977467e60c52daf1ac31cbc112eefe3 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:41:40 -0700 Subject: [PATCH 153/617] chore(resources/s3): fix golangci-lint violations --- resources/s3-access-points.go | 10 +++++----- resources/s3-buckets.go | 5 ++++- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/resources/s3-access-points.go b/resources/s3-access-points.go index aec6eb0f..df3aae5c 100644 --- a/resources/s3-access-points.go +++ b/resources/s3-access-points.go @@ -35,13 +35,13 @@ func (l *S3AccessPointLister) List(_ context.Context, o interface{}) ([]resource if err != nil { return nil, err } - accountId := callerID.Account + accountID := callerID.Account var resources []resource.Resource svc := s3control.New(opts.Session) for { params := &s3control.ListAccessPointsInput{ - AccountId: accountId, + AccountId: accountID, } resp, err := svc.ListAccessPoints(params) @@ -52,7 +52,7 @@ func (l *S3AccessPointLister) List(_ context.Context, o interface{}) ([]resource for _, accessPoint := range resp.AccessPointList { resources = append(resources, &S3AccessPoint{ svc: svc, - accountId: accountId, + accountID: accountID, accessPoint: accessPoint, }) } @@ -68,13 +68,13 @@ func (l *S3AccessPointLister) List(_ context.Context, o interface{}) ([]resource type S3AccessPoint struct { svc *s3control.S3Control - accountId *string + accountID *string accessPoint *s3control.AccessPoint } func (e *S3AccessPoint) Remove(_ context.Context) error { _, err := e.svc.DeleteAccessPoint(&s3control.DeleteAccessPointInput{ - AccountId: e.accountId, + AccountId: e.accountID, Name: aws.String(*e.accessPoint.Name), }) return err diff --git a/resources/s3-buckets.go b/resources/s3-buckets.go index 1b588e0d..d091db5d 100644 --- a/resources/s3-buckets.go +++ b/resources/s3-buckets.go @@ -191,7 +191,10 @@ type s3DeleteVersionListIterator struct { objects []*s3.ObjectVersion } -func newS3DeleteVersionListIterator(svc s3iface.S3API, input *s3.ListObjectVersionsInput, opts ...func(*s3DeleteVersionListIterator)) s3manager.BatchDeleteIterator { +func newS3DeleteVersionListIterator( + svc s3iface.S3API, + input *s3.ListObjectVersionsInput, + opts ...func(*s3DeleteVersionListIterator)) s3manager.BatchDeleteIterator { iter := &s3DeleteVersionListIterator{ Bucket: input.Bucket, Paginator: request.Pagination{ From 0769c5fbb0df1264d2d0e8e3416ce548da292ea9 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:42:00 -0700 Subject: [PATCH 154/617] chore(resources/route53): fix golangci-lint violations --- resources/route53-health-checks.go | 8 +++++--- resources/route53-resolver-rules.go | 4 ++-- resources/route53-resource-records.go | 23 ++++++++++++----------- resources/route53-traffic-policies.go | 9 +++------ 4 files changed, 22 insertions(+), 22 deletions(-) diff --git a/resources/route53-health-checks.go b/resources/route53-health-checks.go index 734077ae..0d7f338e 100644 --- a/resources/route53-health-checks.go +++ b/resources/route53-health-checks.go @@ -3,7 +3,7 @@ package resources import ( "context" - "fmt" + "github.com/gotidy/ptr" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/route53" @@ -46,9 +46,11 @@ func (l *Route53HealthCheckLister) List(_ context.Context, o interface{}) ([]res id: check.Id, }) } - if aws.BoolValue(resp.IsTruncated) == false { + + if !aws.BoolValue(resp.IsTruncated) { break } + params.Marker = resp.NextMarker } @@ -79,5 +81,5 @@ func (hz *Route53HealthCheck) Properties() types.Properties { } func (hz *Route53HealthCheck) String() string { - return fmt.Sprintf("%s", *hz.id) + return ptr.ToString(hz.id) } diff --git a/resources/route53-resolver-rules.go b/resources/route53-resolver-rules.go index 10782f8e..9b28914c 100644 --- a/resources/route53-resolver-rules.go +++ b/resources/route53-resolver-rules.go @@ -2,11 +2,11 @@ package resources import ( "context" - "fmt" - "github.com/gotidy/ptr" "strings" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/service/route53resolver" "github.com/ekristen/libnuke/pkg/registry" diff --git a/resources/route53-resource-records.go b/resources/route53-resource-records.go index 85f7bf80..49bd6f1b 100644 --- a/resources/route53-resource-records.go +++ b/resources/route53-resource-records.go @@ -2,9 +2,10 @@ package resources import ( "context" - "fmt" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/route53" @@ -53,9 +54,9 @@ func (l *Route53ResourceRecordSetLister) List(ctx context.Context, o interface{} return resources, nil } -func ListResourceRecordsForZone(svc *route53.Route53, zoneId *string, zoneName *string) ([]resource.Resource, error) { +func ListResourceRecordsForZone(svc *route53.Route53, zoneID, zoneName *string) ([]resource.Resource, error) { params := &route53.ListResourceRecordSetsInput{ - HostedZoneId: zoneId, + HostedZoneId: zoneID, } resources := make([]resource.Resource, 0) @@ -69,14 +70,14 @@ func ListResourceRecordsForZone(svc *route53.Route53, zoneId *string, zoneName * for _, rrs := range resp.ResourceRecordSets { resources = append(resources, &Route53ResourceRecordSet{ svc: svc, - hostedZoneId: zoneId, + hostedZoneID: zoneID, hostedZoneName: zoneName, data: rrs, }) } // make sure to list all with more than 100 records - if *resp.IsTruncated { + if ptr.ToBool(resp.IsTruncated) { params.StartRecordName = resp.NextRecordName continue } @@ -89,10 +90,10 @@ func ListResourceRecordsForZone(svc *route53.Route53, zoneId *string, zoneName * type Route53ResourceRecordSet struct { svc *route53.Route53 - hostedZoneId *string + hostedZoneID *string hostedZoneName *string data *route53.ResourceRecordSet - changeId *string + changeID *string } func (r *Route53ResourceRecordSet) Filter() error { @@ -109,10 +110,10 @@ func (r *Route53ResourceRecordSet) Filter() error { func (r *Route53ResourceRecordSet) Remove(_ context.Context) error { params := &route53.ChangeResourceRecordSetsInput{ - HostedZoneId: r.hostedZoneId, + HostedZoneId: r.hostedZoneID, ChangeBatch: &route53.ChangeBatch{ Changes: []*route53.Change{ - &route53.Change{ + { Action: aws.String("DELETE"), ResourceRecordSet: r.data, }, @@ -125,7 +126,7 @@ func (r *Route53ResourceRecordSet) Remove(_ context.Context) error { return err } - r.changeId = resp.ChangeInfo.Id + r.changeID = resp.ChangeInfo.Id return nil } @@ -137,5 +138,5 @@ func (r *Route53ResourceRecordSet) Properties() types.Properties { } func (r *Route53ResourceRecordSet) String() string { - return *r.data.Name + return ptr.ToString(r.data.Name) } diff --git a/resources/route53-traffic-policies.go b/resources/route53-traffic-policies.go index 17aca937..0e874234 100644 --- a/resources/route53-traffic-policies.go +++ b/resources/route53-traffic-policies.go @@ -2,7 +2,6 @@ package resources import ( "context" - "fmt" "github.com/aws/aws-sdk-go/aws" @@ -56,7 +55,7 @@ func (l *Route53TrafficPolicyLister) List(_ context.Context, o interface{}) ([]r }) } - if aws.BoolValue(resp.IsTruncated) == false { + if !aws.BoolValue(resp.IsTruncated) { break } params.TrafficPolicyIdMarker = resp.TrafficPolicyIdMarker @@ -79,11 +78,9 @@ func instancesForPolicy(svc *route53.Route53, policyID *string, version *int64) return nil, err } - for _, instance := range resp.TrafficPolicyInstances { - instances = append(instances, instance) - } + instances = append(instances, resp.TrafficPolicyInstances...) - if aws.BoolValue(resp.IsTruncated) == false { + if !aws.BoolValue(resp.IsTruncated) { break } From 90a9f3d856d07dcc5e5a5f944eae49fc3a7df767 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:42:20 -0700 Subject: [PATCH 155/617] chore(resources/robomaker): fix golangci-lint violations --- resources/robomaker-simulation-applications.go | 1 - resources/robomaker-simulation-jobs.go | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/resources/robomaker-simulation-applications.go b/resources/robomaker-simulation-applications.go index 900c75e4..bf6e23d7 100644 --- a/resources/robomaker-simulation-applications.go +++ b/resources/robomaker-simulation-applications.go @@ -67,7 +67,6 @@ type RoboMakerSimulationApplication struct { } func (f *RoboMakerSimulationApplication) Remove(_ context.Context) error { - request := robomaker.DeleteSimulationApplicationInput{ Application: f.arn, } diff --git a/resources/robomaker-simulation-jobs.go b/resources/robomaker-simulation-jobs.go index 63fc4548..e78ebd5a 100644 --- a/resources/robomaker-simulation-jobs.go +++ b/resources/robomaker-simulation-jobs.go @@ -8,6 +8,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/pkg/nuke" ) @@ -86,3 +87,10 @@ func (f *RoboMakerSimulationJob) Remove(_ context.Context) error { func (f *RoboMakerSimulationJob) String() string { return *f.arn } + +func (f *RoboMakerSimulationJob) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("Name", f.name) + properties.Set("ARN", f.arn) + return properties +} From 442c6a0a088b0dbe7504b74e4ba4f3e28ed068cd Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:42:37 -0700 Subject: [PATCH 156/617] chore(resources/resourcegroups): fix golangci-lint violations --- resources/resourcegroups-groups.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/resources/resourcegroups-groups.go b/resources/resourcegroups-groups.go index f365069b..2bacb96d 100644 --- a/resources/resourcegroups-groups.go +++ b/resources/resourcegroups-groups.go @@ -37,10 +37,10 @@ func (l *ResourceGroupGroupLister) List(_ context.Context, o interface{}) ([]res return nil, err } - for _, group := range output.Groups { + for _, group := range output.GroupIdentifiers { resources = append(resources, &ResourceGroupGroup{ svc: svc, - groupName: group.Name, + groupName: group.GroupName, }) } @@ -60,7 +60,6 @@ type ResourceGroupGroup struct { } func (f *ResourceGroupGroup) Remove(_ context.Context) error { - _, err := f.svc.DeleteGroup(&resourcegroups.DeleteGroupInput{ Group: f.groupName, }) From 9306c7e864af6b62924a73e10448fe10adb0db1e Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:42:57 -0700 Subject: [PATCH 157/617] chore(resources/redshift): fix golangci-lint violations --- resources/redshift-clusters.go | 1 - resources/redshift-scheduled-action.go | 1 - resources/redshiftserverless-namespaces.go | 2 +- resources/redshiftserverless-snapshots.go | 2 +- resources/redshiftserverless-workgroups.go | 2 +- 5 files changed, 3 insertions(+), 5 deletions(-) diff --git a/resources/redshift-clusters.go b/resources/redshift-clusters.go index 026f3202..7b3f4e45 100644 --- a/resources/redshift-clusters.go +++ b/resources/redshift-clusters.go @@ -75,7 +75,6 @@ func (f *RedshiftCluster) Properties() types.Properties { } func (f *RedshiftCluster) Remove(_ context.Context) error { - _, err := f.svc.DeleteCluster(&redshift.DeleteClusterInput{ ClusterIdentifier: f.cluster.ClusterIdentifier, SkipFinalClusterSnapshot: aws.Bool(true), diff --git a/resources/redshift-scheduled-action.go b/resources/redshift-scheduled-action.go index cbb7bdc3..19390087 100644 --- a/resources/redshift-scheduled-action.go +++ b/resources/redshift-scheduled-action.go @@ -61,7 +61,6 @@ type RedshiftScheduledAction struct { } func (f *RedshiftScheduledAction) Remove(_ context.Context) error { - _, err := f.svc.DeleteScheduledAction(&redshift.DeleteScheduledActionInput{ ScheduledActionName: f.scheduledActionName, }) diff --git a/resources/redshiftserverless-namespaces.go b/resources/redshiftserverless-namespaces.go index 84304073..f4b46035 100644 --- a/resources/redshiftserverless-namespaces.go +++ b/resources/redshiftserverless-namespaces.go @@ -2,10 +2,10 @@ package resources import ( "context" + "github.com/gotidy/ptr" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/redshiftserverless" "github.com/ekristen/libnuke/pkg/registry" diff --git a/resources/redshiftserverless-snapshots.go b/resources/redshiftserverless-snapshots.go index d8209260..d3976e2c 100644 --- a/resources/redshiftserverless-snapshots.go +++ b/resources/redshiftserverless-snapshots.go @@ -2,10 +2,10 @@ package resources import ( "context" + "github.com/gotidy/ptr" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/redshiftserverless" "github.com/ekristen/libnuke/pkg/registry" diff --git a/resources/redshiftserverless-workgroups.go b/resources/redshiftserverless-workgroups.go index 29e8d217..234d71c0 100644 --- a/resources/redshiftserverless-workgroups.go +++ b/resources/redshiftserverless-workgroups.go @@ -2,10 +2,10 @@ package resources import ( "context" + "github.com/gotidy/ptr" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/redshiftserverless" "github.com/ekristen/libnuke/pkg/registry" From 4945cd3f3e6e84e782dcd31779044c7b0e338dec Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:43:23 -0700 Subject: [PATCH 158/617] chore(resources/qldb): fix golangci-lint violations --- resources/qldb-ledger.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/resources/qldb-ledger.go b/resources/qldb-ledger.go index 3d7c17a0..0727ec88 100644 --- a/resources/qldb-ledger.go +++ b/resources/qldb-ledger.go @@ -2,8 +2,6 @@ package resources import ( "context" - "github.com/ekristen/libnuke/pkg/settings" - "time" "github.com/aws/aws-sdk-go/aws" @@ -11,6 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + libsettings "github.com/ekristen/libnuke/pkg/settings" "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -67,10 +66,10 @@ type QLDBLedger struct { svc *qldb.QLDB ledger *qldb.DescribeLedgerOutput - settings *settings.Setting + settings *libsettings.Setting } -func (l *QLDBLedger) Settings(setting *settings.Setting) { +func (l *QLDBLedger) Settings(setting *libsettings.Setting) { l.settings = setting } From 2c9026546cd8a0f1d3049950ad9fb5ff6a9c9d64 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:43:37 -0700 Subject: [PATCH 159/617] chore(resources/prometheusservice): fix golangci-lint violations --- resources/prometheusservice-workspace.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/prometheusservice-workspace.go b/resources/prometheusservice-workspace.go index 90c7bac4..83443ba7 100644 --- a/resources/prometheusservice-workspace.go +++ b/resources/prometheusservice-workspace.go @@ -47,7 +47,7 @@ func (l *AMPWorkspaceLister) List(_ context.Context, o interface{}) ([]resource. svc: svc, workspaceAlias: ws.Alias, workspaceARN: ws.Arn, - workspaceId: ws.WorkspaceId, + workspaceID: ws.WorkspaceId, }) } @@ -58,12 +58,12 @@ type AMPWorkspace struct { svc *prometheusservice.PrometheusService workspaceAlias *string workspaceARN *string - workspaceId *string + workspaceID *string } func (f *AMPWorkspace) Remove(_ context.Context) error { _, err := f.svc.DeleteWorkspace(&prometheusservice.DeleteWorkspaceInput{ - WorkspaceId: f.workspaceId, + WorkspaceId: f.workspaceID, }) return err @@ -74,7 +74,7 @@ func (f *AMPWorkspace) Properties() types.Properties { properties. Set("WorkspaceAlias", f.workspaceAlias). Set("WorkspaceARN", f.workspaceARN). - Set("WorkspaceId", f.workspaceId) + Set("WorkspaceId", f.workspaceID) return properties } From 4e880ed19090135c9919669b983f3a521f20a41e Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:43:54 -0700 Subject: [PATCH 160/617] chore(resources/opsworks): fix golangci-lint violations --- resources/opsworks-apps.go | 2 +- resources/opsworkscm-servers.go | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/resources/opsworks-apps.go b/resources/opsworks-apps.go index 89b84e4c..90bef41d 100644 --- a/resources/opsworks-apps.go +++ b/resources/opsworks-apps.go @@ -51,8 +51,8 @@ func (l *OpsWorksAppLister) List(_ context.Context, o interface{}) ([]resource.R ID: app.AppId, }) } - } + return resources, nil } diff --git a/resources/opsworkscm-servers.go b/resources/opsworkscm-servers.go index dec1f2b5..1aabd87c 100644 --- a/resources/opsworkscm-servers.go +++ b/resources/opsworkscm-servers.go @@ -3,10 +3,13 @@ package resources import ( "context" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/service/opsworkscm" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/pkg/nuke" ) @@ -61,5 +64,11 @@ func (f *OpsWorksCMServer) Remove(_ context.Context) error { } func (f *OpsWorksCMServer) String() string { - return *f.name + return ptr.ToString(f.name) +} + +func (f *OpsWorksCMServer) Properties() types.Properties { + return types.NewProperties(). + Set("Name", f.name). + Set("Status", f.status) } From 7379bb1e5f29faf37425d9aa01fe6284e58b4396 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:44:08 -0700 Subject: [PATCH 161/617] chore(resources/opensearchservice): fix golangci-lint violations --- resources/opensearchservice-vpcendpoints.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/opensearchservice-vpcendpoints.go b/resources/opensearchservice-vpcendpoints.go index 4d8ad8ca..18508287 100644 --- a/resources/opensearchservice-vpcendpoints.go +++ b/resources/opensearchservice-vpcendpoints.go @@ -43,7 +43,7 @@ func (l *OSVPCEndpointLister) List(_ context.Context, o interface{}) ([]resource for _, vpcEndpoint := range listResp.VpcEndpointSummaryList { resources = append(resources, &OSVPCEndpoint{ svc: svc, - vpcEndpointId: vpcEndpoint.VpcEndpointId, + vpcEndpointID: vpcEndpoint.VpcEndpointId, }) } @@ -61,12 +61,12 @@ func (l *OSVPCEndpointLister) List(_ context.Context, o interface{}) ([]resource type OSVPCEndpoint struct { svc *opensearchservice.OpenSearchService - vpcEndpointId *string + vpcEndpointID *string } func (o *OSVPCEndpoint) Remove(_ context.Context) error { _, err := o.svc.DeleteVpcEndpoint(&opensearchservice.DeleteVpcEndpointInput{ - VpcEndpointId: o.vpcEndpointId, + VpcEndpointId: o.vpcEndpointID, }) return err @@ -74,10 +74,10 @@ func (o *OSVPCEndpoint) Remove(_ context.Context) error { func (o *OSVPCEndpoint) Properties() types.Properties { properties := types.NewProperties() - properties.Set("VpcEndpointId", o.vpcEndpointId) + properties.Set("VpcEndpointId", o.vpcEndpointID) return properties } func (o *OSVPCEndpoint) String() string { - return *o.vpcEndpointId + return *o.vpcEndpointID } From a451961cc2d9d46339a059e5cc910a134e46b6f2 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:44:34 -0700 Subject: [PATCH 162/617] chore(resources/msk): fix golangci-lint violations --- resources/msk-cluster.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/msk-cluster.go b/resources/msk-cluster.go index 7d672b08..4b201511 100644 --- a/resources/msk-cluster.go +++ b/resources/msk-cluster.go @@ -29,12 +29,12 @@ func (l *MSKClusterLister) List(_ context.Context, o interface{}) ([]resource.Re opts := o.(*nuke.ListerOpts) svc := kafka.New(opts.Session) - params := &kafka.ListClustersInput{} - resp, err := svc.ListClusters(params) + resp, err := svc.ListClusters(&kafka.ListClustersInput{}) if err != nil { return nil, err } + resources := make([]resource.Resource, 0) for _, cluster := range resp.ClusterInfoList { resources = append(resources, &MSKCluster{ @@ -43,8 +43,8 @@ func (l *MSKClusterLister) List(_ context.Context, o interface{}) ([]resource.Re name: *cluster.ClusterName, tags: cluster.Tags, }) - } + return resources, nil } From 5d146b586f9eceb592d7d6a95bc94857d836e87a Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:44:46 -0700 Subject: [PATCH 163/617] chore(resources/mgn): fix golangci-lint violations --- resources/mgn-jobs.go | 2 +- resources/mgn-source-servers.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/mgn-jobs.go b/resources/mgn-jobs.go index de1b0c55..65b41ef8 100644 --- a/resources/mgn-jobs.go +++ b/resources/mgn-jobs.go @@ -2,8 +2,8 @@ package resources import ( "context" - "errors" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/service/mgn" diff --git a/resources/mgn-source-servers.go b/resources/mgn-source-servers.go index 0efecc62..39d1413f 100644 --- a/resources/mgn-source-servers.go +++ b/resources/mgn-source-servers.go @@ -2,8 +2,8 @@ package resources import ( "context" - "errors" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/service/mgn" From 19ef78d7d7c0017d2b1bcdbb246bdd12f0ebc1d8 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:45:08 -0700 Subject: [PATCH 164/617] chore(resources/memorydb): fix golangci-lint violations --- resources/memorydb-acl.go | 1 - resources/memorydb-cluster.go | 10 +++++----- resources/memorydb-parametergroups.go | 2 +- resources/memorydb-subnetgroups.go | 1 - resources/memorydb-user.go | 3 +-- 5 files changed, 7 insertions(+), 10 deletions(-) diff --git a/resources/memorydb-acl.go b/resources/memorydb-acl.go index 9f8b66e5..af3fe1f5 100644 --- a/resources/memorydb-acl.go +++ b/resources/memorydb-acl.go @@ -59,7 +59,6 @@ func (l *MemoryDBACLLister) List(_ context.Context, o interface{}) ([]resource.R name: acl.Name, tags: tags.TagList, }) - } if resp.NextToken == nil { diff --git a/resources/memorydb-cluster.go b/resources/memorydb-cluster.go index 633ab071..210728ba 100644 --- a/resources/memorydb-cluster.go +++ b/resources/memorydb-cluster.go @@ -84,15 +84,15 @@ func (c *MemoryDBCluster) Remove(_ context.Context) error { return nil } -func (i *MemoryDBCluster) String() string { - return *i.name +func (c *MemoryDBCluster) String() string { + return *c.name } -func (i *MemoryDBCluster) Properties() types.Properties { +func (c *MemoryDBCluster) Properties() types.Properties { properties := types.NewProperties() - properties.Set("Name", i.name) + properties.Set("Name", c.name) - for _, tag := range i.tags { + for _, tag := range c.tags { properties.SetTag(tag.Key, tag.Value) } diff --git a/resources/memorydb-parametergroups.go b/resources/memorydb-parametergroups.go index 3e1cb8f5..d3929f83 100644 --- a/resources/memorydb-parametergroups.go +++ b/resources/memorydb-parametergroups.go @@ -77,7 +77,7 @@ func (l *MemoryDBParameterGroupLister) List(_ context.Context, o interface{}) ([ func (i *MemoryDBParameterGroup) Filter() error { if strings.HasPrefix(*i.name, "default.") { - return fmt.Errorf("Cannot delete default parameter group") + return fmt.Errorf("cannot delete default parameter group") } return nil } diff --git a/resources/memorydb-subnetgroups.go b/resources/memorydb-subnetgroups.go index d20bd964..99fecb43 100644 --- a/resources/memorydb-subnetgroups.go +++ b/resources/memorydb-subnetgroups.go @@ -58,7 +58,6 @@ func (l *MemoryDBSubnetGroupLister) List(_ context.Context, o interface{}) ([]re name: subnetGroup.Name, tags: tags.TagList, }) - } if resp.NextToken == nil { diff --git a/resources/memorydb-user.go b/resources/memorydb-user.go index 630d8100..56231f66 100644 --- a/resources/memorydb-user.go +++ b/resources/memorydb-user.go @@ -60,7 +60,6 @@ func (l *MemoryDBUserLister) List(_ context.Context, o interface{}) ([]resource. name: user.Name, tags: tags.TagList, }) - } if resp.NextToken == nil { @@ -75,7 +74,7 @@ func (l *MemoryDBUserLister) List(_ context.Context, o interface{}) ([]resource. func (i *MemoryDBUser) Filter() error { if strings.EqualFold(*i.name, "default") { - return fmt.Errorf("Cannot delete default user") + return fmt.Errorf("cannot delete default user") } return nil } From 4186b2d9c0627882f3a8d23041f65e69ec5975c3 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:45:25 -0700 Subject: [PATCH 165/617] chore(resources/mediastoredata): fix golangci-lint violations --- resources/mediastoredata-items.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/resources/mediastoredata-items.go b/resources/mediastoredata-items.go index 1e3b4f85..c965c1fe 100644 --- a/resources/mediastoredata-items.go +++ b/resources/mediastoredata-items.go @@ -35,7 +35,7 @@ func (l *MediaStoreDataItemsLister) List(_ context.Context, o interface{}) ([]re resources := make([]resource.Resource, 0) var containers []*mediastore.Container - //List all containers + // list all containers containerParams := &mediastore.ListContainersInput{ MaxResults: aws.Int64(100), } @@ -46,9 +46,7 @@ func (l *MediaStoreDataItemsLister) List(_ context.Context, o interface{}) ([]re return nil, err } - for _, container := range output.Containers { - containers = append(containers, container) - } + containers = append(containers, output.Containers...) if output.NextToken == nil { break From 79d65892210a28c34fe256b5a7da9c6e03d38096 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:45:43 -0700 Subject: [PATCH 166/617] chore(resources/mediaconvert): fix golangci-lint violations --- resources/mediaconvert-jobtemplates.go | 13 ------------- resources/mediaconvert-presets.go | 13 ------------- resources/mediaconvert-queues.go | 13 ------------- 3 files changed, 39 deletions(-) diff --git a/resources/mediaconvert-jobtemplates.go b/resources/mediaconvert-jobtemplates.go index 0bc2e8e8..879930f3 100644 --- a/resources/mediaconvert-jobtemplates.go +++ b/resources/mediaconvert-jobtemplates.go @@ -29,19 +29,6 @@ func (l *MediaConvertJobTemplateLister) List(_ context.Context, o interface{}) ( svc := mediaconvert.New(opts.Session) resources := make([]resource.Resource, 0) - var mediaEndpoint *string - - output, err := svc.DescribeEndpoints(&mediaconvert.DescribeEndpointsInput{}) - if err != nil { - return nil, err - } - - for _, endpoint := range output.Endpoints { - mediaEndpoint = endpoint.Url - } - - // Update svc to use custom media endpoint - svc.Endpoint = *mediaEndpoint params := &mediaconvert.ListJobTemplatesInput{ MaxResults: aws.Int64(20), diff --git a/resources/mediaconvert-presets.go b/resources/mediaconvert-presets.go index ef1397f3..2ff3b8a2 100644 --- a/resources/mediaconvert-presets.go +++ b/resources/mediaconvert-presets.go @@ -29,19 +29,6 @@ func (l *MediaConvertPresetLister) List(_ context.Context, o interface{}) ([]res svc := mediaconvert.New(opts.Session) resources := make([]resource.Resource, 0) - var mediaEndpoint *string - - output, err := svc.DescribeEndpoints(&mediaconvert.DescribeEndpointsInput{}) - if err != nil { - return nil, err - } - - for _, endpoint := range output.Endpoints { - mediaEndpoint = endpoint.Url - } - - // Update svc to use custom media endpoint - svc.Endpoint = *mediaEndpoint params := &mediaconvert.ListPresetsInput{ MaxResults: aws.Int64(20), diff --git a/resources/mediaconvert-queues.go b/resources/mediaconvert-queues.go index 52eec06e..17c266dd 100644 --- a/resources/mediaconvert-queues.go +++ b/resources/mediaconvert-queues.go @@ -32,19 +32,6 @@ func (l *MediaConvertQueueLister) List(_ context.Context, o interface{}) ([]reso svc := mediaconvert.New(opts.Session) resources := make([]resource.Resource, 0) - var mediaEndpoint *string - - output, err := svc.DescribeEndpoints(&mediaconvert.DescribeEndpointsInput{}) - if err != nil { - return nil, err - } - - for _, endpoint := range output.Endpoints { - mediaEndpoint = endpoint.Url - } - - // Update svc to use custom media endpoint - svc.Endpoint = *mediaEndpoint params := &mediaconvert.ListQueuesInput{ MaxResults: aws.Int64(20), From f2faccdc8cb7568fe5ca090e34175606e122f421 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:46:03 -0700 Subject: [PATCH 167/617] chore(resources/managedblockchain): fix golangci-lint violations --- resources/managedblockchain-member.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/managedblockchain-member.go b/resources/managedblockchain-member.go index e66cde1c..ecb92d95 100644 --- a/resources/managedblockchain-member.go +++ b/resources/managedblockchain-member.go @@ -51,7 +51,7 @@ func (l *ManagedBlockchainMemberLister) List(_ context.Context, o interface{}) ( resources = append(resources, &ManagedBlockchainMember{ svc: svc, id: r.Id, - networkId: n.Id, + networkID: n.Id, name: r.Name, member: r, }) @@ -64,14 +64,14 @@ func (l *ManagedBlockchainMemberLister) List(_ context.Context, o interface{}) ( type ManagedBlockchainMember struct { svc *managedblockchain.ManagedBlockchain id *string - networkId *string + networkID *string name *string member *managedblockchain.MemberSummary } func (r *ManagedBlockchainMember) Remove(_ context.Context) error { _, err := r.svc.DeleteMember(&managedblockchain.DeleteMemberInput{ - NetworkId: r.networkId, + NetworkId: r.networkID, MemberId: r.id, }) if err != nil { From 8e235fa1d8e2e0b66520c6b518f1cf73b31c394f Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:46:16 -0700 Subject: [PATCH 168/617] chore(resources/lightsail): fix golangci-lint violations --- resources/lightsail-instances.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/lightsail-instances.go b/resources/lightsail-instances.go index 51a59ca3..03f4a669 100644 --- a/resources/lightsail-instances.go +++ b/resources/lightsail-instances.go @@ -2,13 +2,13 @@ package resources import ( "context" - "github.com/ekristen/libnuke/pkg/settings" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/lightsail" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + libsettings "github.com/ekristen/libnuke/pkg/settings" "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -63,10 +63,10 @@ type LightsailInstance struct { instanceName *string tags []*lightsail.Tag - settings *settings.Setting + settings *libsettings.Setting } -func (f *LightsailInstance) Settings(setting *settings.Setting) { +func (f *LightsailInstance) Settings(setting *libsettings.Setting) { f.settings = setting } From dbeea5a2096bad71b05f5ed7dd82927412e2a8dd Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:46:27 -0700 Subject: [PATCH 169/617] chore(resources/lambda): fix golangci-lint violations --- resources/lambda-functions.go | 4 +--- resources/lambda-layers.go | 5 +---- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/resources/lambda-functions.go b/resources/lambda-functions.go index 4d2d56e6..c35dfc80 100644 --- a/resources/lambda-functions.go +++ b/resources/lambda-functions.go @@ -34,9 +34,7 @@ func (l *LambdaFunctionLister) List(_ context.Context, o interface{}) ([]resourc params := &lambda.ListFunctionsInput{} err := svc.ListFunctionsPages(params, func(page *lambda.ListFunctionsOutput, lastPage bool) bool { - for _, out := range page.Functions { - functions = append(functions, out) - } + functions = append(functions, page.Functions...) return true }) diff --git a/resources/lambda-layers.go b/resources/lambda-layers.go index cee9ef89..85513ddb 100644 --- a/resources/lambda-layers.go +++ b/resources/lambda-layers.go @@ -34,9 +34,7 @@ func (l *LambdaLayerLister) List(_ context.Context, o interface{}) ([]resource.R params := &lambda.ListLayersInput{} err := svc.ListLayersPages(params, func(page *lambda.ListLayersOutput, lastPage bool) bool { - for _, out := range page.Layers { - layers = append(layers, out) - } + layers = append(layers, page.Layers...) return true }) if err != nil { @@ -74,7 +72,6 @@ type LambdaLayer struct { } func (l *LambdaLayer) Remove(_ context.Context) error { - _, err := l.svc.DeleteLayerVersion(&lambda.DeleteLayerVersionInput{ LayerName: l.layerName, VersionNumber: &l.version, From 561451197637ef1341858dd791ba6a7b4f6c6ec2 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:46:39 -0700 Subject: [PATCH 170/617] chore(resources/kms): fix golangci-lint violations --- resources/kms-keys.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/resources/kms-keys.go b/resources/kms-keys.go index 3db980e3..64647ca5 100644 --- a/resources/kms-keys.go +++ b/resources/kms-keys.go @@ -74,11 +74,7 @@ func (l *KMSKeyLister) List(_ context.Context, o interface{}) ([]resource.Resour resources = append(resources, kmsKey) } - if lastPage { - return false - } - - return true + return !lastPage }); err != nil { return nil, err } From 69d7452876d954de1f0f9b7decedd2564cc6e962 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:46:49 -0700 Subject: [PATCH 171/617] chore(resources/kinesis): fix golangci-lint violations --- resources/kinesis-streams.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/kinesis-streams.go b/resources/kinesis-streams.go index bcb15351..2f1c6bdf 100644 --- a/resources/kinesis-streams.go +++ b/resources/kinesis-streams.go @@ -50,7 +50,7 @@ func (l *KinesisStreamLister) List(_ context.Context, o interface{}) ([]resource lastStreamName = streamName } - if *output.HasMoreStreams == false { + if !aws.BoolValue(output.HasMoreStreams) { break } From 461dd84d84ee23c92468a9b21c7eb2706d8abe5f Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:47:00 -0700 Subject: [PATCH 172/617] chore(resources/inspector2): fix golangci-lint violations --- resources/inspector2.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/inspector2.go b/resources/inspector2.go index ebc32c80..d59ef0b7 100644 --- a/resources/inspector2.go +++ b/resources/inspector2.go @@ -39,7 +39,7 @@ func (l *Inspector2Lister) List(_ context.Context, o interface{}) ([]resource.Re if *a.State.Status != inspector2.StatusDisabled { resources = append(resources, &Inspector2{ svc: svc, - accountId: a.AccountId, + accountID: a.AccountId, }) } } @@ -49,12 +49,12 @@ func (l *Inspector2Lister) List(_ context.Context, o interface{}) ([]resource.Re type Inspector2 struct { svc *inspector2.Inspector2 - accountId *string + accountID *string } func (e *Inspector2) Remove(_ context.Context) error { _, err := e.svc.Disable(&inspector2.DisableInput{ - AccountIds: []*string{e.accountId}, + AccountIds: []*string{e.accountID}, ResourceTypes: aws.StringSlice(inspector2.ResourceScanType_Values()), }) if err != nil { @@ -65,5 +65,5 @@ func (e *Inspector2) Remove(_ context.Context) error { } func (e *Inspector2) String() string { - return *e.accountId + return *e.accountID } From f413b5ede11720b97e20b1a05afd341b04dda8a4 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:47:14 -0700 Subject: [PATCH 173/617] chore(resources/imagebuilder): fix golangci-lint violations --- resources/imagebuilder-components.go | 5 ++++- resources/imagebuilder-images.go | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/resources/imagebuilder-components.go b/resources/imagebuilder-components.go index 0a48c8dd..1f801691 100644 --- a/resources/imagebuilder-components.go +++ b/resources/imagebuilder-components.go @@ -56,7 +56,10 @@ func (l *ImageBuilderComponentLister) List(_ context.Context, o interface{}) ([] return resources, nil } -func ListImageBuilderComponentVersions(svc *imagebuilder.Imagebuilder, componentVersionArn *string, resources []resource.Resource) ([]resource.Resource, error) { +func ListImageBuilderComponentVersions( + svc *imagebuilder.Imagebuilder, + componentVersionArn *string, + resources []resource.Resource) ([]resource.Resource, error) { params := &imagebuilder.ListComponentBuildVersionsInput{ ComponentVersionArn: componentVersionArn, } diff --git a/resources/imagebuilder-images.go b/resources/imagebuilder-images.go index 00316fb6..586a9c9b 100644 --- a/resources/imagebuilder-images.go +++ b/resources/imagebuilder-images.go @@ -56,7 +56,10 @@ func (l *ImageBuilderImageLister) List(_ context.Context, o interface{}) ([]reso return resources, nil } -func ImageBuildVersions(svc *imagebuilder.Imagebuilder, imageVersionArn *string, resources []resource.Resource) ([]resource.Resource, error) { +func ImageBuildVersions( + svc *imagebuilder.Imagebuilder, + imageVersionArn *string, + resources []resource.Resource) ([]resource.Resource, error) { params := &imagebuilder.ListImageBuildVersionsInput{ ImageVersionArn: imageVersionArn, } @@ -83,6 +86,7 @@ func ImageBuildVersions(svc *imagebuilder.Imagebuilder, imageVersionArn *string, NextToken: resp.NextToken, } } + return resources, nil } From 8ef1208fe074ca3f3a6a0e0d207ec26efac436b0 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:47:27 -0700 Subject: [PATCH 174/617] chore(resources/glue): fix golangci-lint violations --- resources/glue-devendpoints.go | 4 +++- resources/glue-triggers.go | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/glue-devendpoints.go b/resources/glue-devendpoints.go index 9ae16177..cd2fbfb5 100644 --- a/resources/glue-devendpoints.go +++ b/resources/glue-devendpoints.go @@ -3,6 +3,8 @@ package resources import ( "context" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/glue" @@ -48,7 +50,7 @@ func (l *GlueDevEndpointLister) List(_ context.Context, o interface{}) ([]resour } // This one API can and does return an empty string - if output.NextToken == nil || len(*output.NextToken) == 0 { + if output.NextToken == nil || ptr.ToString(output.NextToken) == "" { break } diff --git a/resources/glue-triggers.go b/resources/glue-triggers.go index 3db4149b..72750623 100644 --- a/resources/glue-triggers.go +++ b/resources/glue-triggers.go @@ -63,7 +63,6 @@ type GlueTrigger struct { } func (f *GlueTrigger) Remove(_ context.Context) error { - _, err := f.svc.DeleteTrigger(&glue.DeleteTriggerInput{ Name: f.name, }) From 4223d7be4c0904b0b8c080264b0bc6b391977473 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:47:37 -0700 Subject: [PATCH 175/617] chore(resources/fms): fix golangci-lint violations --- resources/fms-notification-channels.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/fms-notification-channels.go b/resources/fms-notification-channels.go index 6eecd62d..c50bea06 100644 --- a/resources/fms-notification-channels.go +++ b/resources/fms-notification-channels.go @@ -2,8 +2,8 @@ package resources import ( "context" - "errors" + "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/service/fms" From a377a4c1ee95221ce635b65e7efe6df6f33e217e Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:47:48 -0700 Subject: [PATCH 176/617] chore(resources/firehose): fix golangci-lint violations --- resources/firehose-deliverystreams.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/firehose-deliverystreams.go b/resources/firehose-deliverystreams.go index 0589999b..e5467388 100644 --- a/resources/firehose-deliverystreams.go +++ b/resources/firehose-deliverystreams.go @@ -3,6 +3,8 @@ package resources import ( "context" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/firehose" @@ -49,7 +51,7 @@ func (l *FirehoseDeliveryStreamLister) List(_ context.Context, o interface{}) ([ lastDeliveryStreamName = deliveryStreamName } - if *output.HasMoreDeliveryStreams == false { + if !ptr.ToBool(output.HasMoreDeliveryStreams) { break } From e28b36f3053ab999343398cce4156bcd5057b1c8 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:48:04 -0700 Subject: [PATCH 177/617] chore(resources/elbv2): fix golangci-lint violations --- resources/elbv2-alb.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/resources/elbv2-alb.go b/resources/elbv2-alb.go index 345638c7..c666f138 100644 --- a/resources/elbv2-alb.go +++ b/resources/elbv2-alb.go @@ -2,8 +2,6 @@ package resources import ( "context" - "github.com/ekristen/libnuke/pkg/settings" - "errors" "time" @@ -13,6 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + libsettings "github.com/ekristen/libnuke/pkg/settings" "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -22,7 +21,7 @@ type ELBv2LoadBalancer struct { svc *elbv2.ELBV2 tags []*elbv2.Tag elb *elbv2.LoadBalancer - settings *settings.Setting + settings *libsettings.Setting } const ELBv2Resource = "ELBv2" @@ -88,7 +87,7 @@ func (l *ELBv2Lister) List(_ context.Context, o interface{}) ([]resource.Resourc return resources, nil } -func (e *ELBv2LoadBalancer) Settings(setting *settings.Setting) { +func (e *ELBv2LoadBalancer) Settings(setting *libsettings.Setting) { e.settings = setting } From 0e4a07ee174d6e3dc605064f715b7e83b503966e Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:48:17 -0700 Subject: [PATCH 178/617] chore(resources/elasticache): fix golangci-lint violations --- resources/elasticache-memcacheclusters.go | 2 +- resources/elasticache-subnetgroups.go | 2 +- resources/elasticache-usergroups.go | 10 +++++----- resources/elasticache-users.go | 10 +++++----- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/resources/elasticache-memcacheclusters.go b/resources/elasticache-memcacheclusters.go index 9eca8287..844dd9f8 100644 --- a/resources/elasticache-memcacheclusters.go +++ b/resources/elasticache-memcacheclusters.go @@ -47,8 +47,8 @@ func (l *ElasticacheCacheClusterLister) List(_ context.Context, o interface{}) ( clusterID: cacheCluster.CacheClusterId, status: cacheCluster.CacheClusterStatus, }) - } + return resources, nil } diff --git a/resources/elasticache-subnetgroups.go b/resources/elasticache-subnetgroups.go index e803170e..7cfd97d9 100644 --- a/resources/elasticache-subnetgroups.go +++ b/resources/elasticache-subnetgroups.go @@ -36,13 +36,13 @@ func (l *ElasticacheSubnetGroupLister) List(_ context.Context, o interface{}) ([ if err != nil { return nil, err } + var resources []resource.Resource for _, subnetGroup := range resp.CacheSubnetGroups { resources = append(resources, &ElasticacheSubnetGroup{ svc: svc, name: subnetGroup.CacheSubnetGroupName, }) - } return resources, nil diff --git a/resources/elasticache-usergroups.go b/resources/elasticache-usergroups.go index c88b3b68..a15bff5d 100644 --- a/resources/elasticache-usergroups.go +++ b/resources/elasticache-usergroups.go @@ -15,7 +15,7 @@ import ( type ElasticacheUserGroup struct { svc *elasticache.ElastiCache - groupId *string + groupID *string } const ElasticacheUserGroupResource = "ElasticacheUserGroup" @@ -50,7 +50,7 @@ func (l *ElasticacheUserGroupLister) List(_ context.Context, o interface{}) ([]r for _, userGroup := range resp.UserGroups { resources = append(resources, &ElasticacheUserGroup{ svc: svc, - groupId: userGroup.UserGroupId, + groupID: userGroup.UserGroupId, }) } @@ -68,7 +68,7 @@ func (l *ElasticacheUserGroupLister) List(_ context.Context, o interface{}) ([]r func (i *ElasticacheUserGroup) Remove(_ context.Context) error { params := &elasticache.DeleteUserGroupInput{ - UserGroupId: i.groupId, + UserGroupId: i.groupID, } _, err := i.svc.DeleteUserGroup(params) @@ -81,10 +81,10 @@ func (i *ElasticacheUserGroup) Remove(_ context.Context) error { func (i *ElasticacheUserGroup) Properties() types.Properties { properties := types.NewProperties() - properties.Set("ID", i.groupId) + properties.Set("ID", i.groupID) return properties } func (i *ElasticacheUserGroup) String() string { - return *i.groupId + return *i.groupID } diff --git a/resources/elasticache-users.go b/resources/elasticache-users.go index ed15e79f..883f3c85 100644 --- a/resources/elasticache-users.go +++ b/resources/elasticache-users.go @@ -17,7 +17,7 @@ import ( type ElasticacheUser struct { svc *elasticache.ElastiCache - userId *string + userID *string userName *string } @@ -53,7 +53,7 @@ func (l *ElasticacheUserLister) List(_ context.Context, o interface{}) ([]resour for _, user := range resp.Users { resources = append(resources, &ElasticacheUser{ svc: svc, - userId: user.UserId, + userID: user.UserId, userName: user.UserName, }) } @@ -79,7 +79,7 @@ func (i *ElasticacheUser) Filter() error { func (i *ElasticacheUser) Remove(_ context.Context) error { params := &elasticache.DeleteUserInput{ - UserId: i.userId, + UserId: i.userID, } _, err := i.svc.DeleteUser(params) @@ -92,11 +92,11 @@ func (i *ElasticacheUser) Remove(_ context.Context) error { func (i *ElasticacheUser) Properties() types.Properties { properties := types.NewProperties() - properties.Set("ID", i.userId) + properties.Set("ID", i.userID) properties.Set("UserName", i.userName) return properties } func (i *ElasticacheUser) String() string { - return *i.userId + return *i.userID } From 575a74cedcb61e9afcdc3ec4cba047165fed4347 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:48:29 -0700 Subject: [PATCH 179/617] chore(resources/eks): fix golangci-lint violations --- resources/eks-clusters.go | 1 - resources/eks-fargate.go | 5 +---- resources/eks-nodegroups.go | 4 +--- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/resources/eks-clusters.go b/resources/eks-clusters.go index d65fda3f..c2cabdb0 100644 --- a/resources/eks-clusters.go +++ b/resources/eks-clusters.go @@ -69,7 +69,6 @@ type EKSCluster struct { } func (f *EKSCluster) Remove(_ context.Context) error { - _, err := f.svc.DeleteCluster(&eks.DeleteClusterInput{ Name: f.name, }) diff --git a/resources/eks-fargate.go b/resources/eks-fargate.go index c6b0521d..3f899c71 100644 --- a/resources/eks-fargate.go +++ b/resources/eks-fargate.go @@ -47,9 +47,7 @@ func (l *EKSFargateProfileLister) List(_ context.Context, o interface{}) ([]reso return nil, err } - for _, cluster := range resp.Clusters { - clusterNames = append(clusterNames, cluster) - } + clusterNames = append(clusterNames, resp.Clusters...) if resp.NextToken == nil { break @@ -87,7 +85,6 @@ func (l *EKSFargateProfileLister) List(_ context.Context, o interface{}) ([]reso fargateInputParams.NextToken = resp.NextToken } - } return resources, nil diff --git a/resources/eks-nodegroups.go b/resources/eks-nodegroups.go index c433037f..c8f89c4c 100644 --- a/resources/eks-nodegroups.go +++ b/resources/eks-nodegroups.go @@ -49,9 +49,7 @@ func (l *EKSNodegroupLister) List(_ context.Context, o interface{}) ([]resource. return nil, err } - for _, cluster := range resp.Clusters { - clusterNames = append(clusterNames, cluster) - } + clusterNames = append(clusterNames, resp.Clusters...) if resp.NextToken == nil { break From 4941569496a12ce75ce0e25a0dcfdab62ddc39d8 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:48:39 -0700 Subject: [PATCH 180/617] chore(resources/efs): fix golangci-lint violations --- resources/efs-filesystem.go | 1 - resources/efs-mount-targets.go | 1 - 2 files changed, 2 deletions(-) diff --git a/resources/efs-filesystem.go b/resources/efs-filesystem.go index 61a385d3..1fe906f5 100644 --- a/resources/efs-filesystem.go +++ b/resources/efs-filesystem.go @@ -46,7 +46,6 @@ func (l *EFSFileSystemLister) List(_ context.Context, o interface{}) ([]resource name: *fs.CreationToken, tagList: lto.Tags, }) - } return resources, nil diff --git a/resources/efs-mount-targets.go b/resources/efs-mount-targets.go index 250ce18c..e8fdee36 100644 --- a/resources/efs-mount-targets.go +++ b/resources/efs-mount-targets.go @@ -57,7 +57,6 @@ func (l *EFSMountTargetLister) List(_ context.Context, o interface{}) ([]resourc fsID: *t.FileSystemId, fsTags: lto.Tags, }) - } } From 1d83b4e7c781d878ae965606cb3b2e08588af58d Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:48:49 -0700 Subject: [PATCH 181/617] chore(resources/ecs): fix golangci-lint violations --- resources/ecs-clusterinstances.go | 4 +--- resources/ecs-services.go | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/resources/ecs-clusterinstances.go b/resources/ecs-clusterinstances.go index 25b7caf3..2b47cd03 100644 --- a/resources/ecs-clusterinstances.go +++ b/resources/ecs-clusterinstances.go @@ -44,9 +44,7 @@ func (l *ECSClusterInstanceLister) List(_ context.Context, o interface{}) ([]res return nil, err } - for _, clusterArn := range output.ClusterArns { - clusters = append(clusters, clusterArn) - } + clusters = append(clusters, output.ClusterArns...) if output.NextToken == nil { break diff --git a/resources/ecs-services.go b/resources/ecs-services.go index b0f16621..c1dc3ad8 100644 --- a/resources/ecs-services.go +++ b/resources/ecs-services.go @@ -44,9 +44,7 @@ func (l *ECSServiceLister) List(_ context.Context, o interface{}) ([]resource.Re return nil, err } - for _, clusterArn := range output.ClusterArns { - clusters = append(clusters, clusterArn) - } + clusters = append(clusters, output.ClusterArns...) if output.NextToken == nil { break From 64abcf5c9651161ebb6679377908e7b28f74a4f3 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:49:00 -0700 Subject: [PATCH 182/617] chore(resources/dax): fix golangci-lint violations --- resources/dax-parametergroups.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/dax-parametergroups.go b/resources/dax-parametergroups.go index 7364b28c..5448f70b 100644 --- a/resources/dax-parametergroups.go +++ b/resources/dax-parametergroups.go @@ -48,7 +48,7 @@ func (l *DAXParameterGroupLister) List(_ context.Context, o interface{}) ([]reso } for _, parameterGroup := range output.ParameterGroups { - //Ensure default is not deleted + // ensure default is not deleted if !strings.Contains(*parameterGroup.ParameterGroupName, "default") { resources = append(resources, &DAXParameterGroup{ svc: svc, From 61325135a3795b7933737f738f38c4edcb7ec225 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:49:12 -0700 Subject: [PATCH 183/617] chore(resources/cognito): fix golangci-lint violations --- resources/cognito-identity-providers.go | 6 +++--- resources/cognito-identitypools.go | 9 ++++----- resources/cognito-userpool-clients.go | 6 +++--- resources/cognito-userpool-domains.go | 6 +++--- 4 files changed, 13 insertions(+), 14 deletions(-) diff --git a/resources/cognito-identity-providers.go b/resources/cognito-identity-providers.go index 4ad9cfda..aa620b87 100644 --- a/resources/cognito-identity-providers.go +++ b/resources/cognito-identity-providers.go @@ -64,7 +64,7 @@ func (l *CognitoIdentityProviderLister) List(ctx context.Context, o interface{}) name: provider.ProviderName, providerType: provider.ProviderType, userPoolName: userPool.name, - userPoolId: userPool.id, + userPoolID: userPool.id, }) } @@ -84,12 +84,12 @@ type CognitoIdentityProvider struct { name *string providerType *string userPoolName *string - userPoolId *string + userPoolID *string } func (p *CognitoIdentityProvider) Remove(_ context.Context) error { _, err := p.svc.DeleteIdentityProvider(&cognitoidentityprovider.DeleteIdentityProviderInput{ - UserPoolId: p.userPoolId, + UserPoolId: p.userPoolID, ProviderName: p.name, }) diff --git a/resources/cognito-identitypools.go b/resources/cognito-identitypools.go index a5735451..6772d5a5 100644 --- a/resources/cognito-identitypools.go +++ b/resources/cognito-identitypools.go @@ -3,13 +3,13 @@ package resources import ( "context" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/cognitoidentity" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/aws/aws-sdk-go/aws" - - "github.com/aws/aws-sdk-go/service/cognitoidentity" + "github.com/ekristen/aws-nuke/pkg/nuke" ) type CognitoIdentityPool struct { @@ -65,7 +65,6 @@ func (l *CognitoIdentityPoolLister) List(_ context.Context, o interface{}) ([]re } func (f *CognitoIdentityPool) Remove(_ context.Context) error { - _, err := f.svc.DeleteIdentityPool(&cognitoidentity.DeleteIdentityPoolInput{ IdentityPoolId: f.id, }) diff --git a/resources/cognito-userpool-clients.go b/resources/cognito-userpool-clients.go index 0ec1ed68..df473101 100644 --- a/resources/cognito-userpool-clients.go +++ b/resources/cognito-userpool-clients.go @@ -64,7 +64,7 @@ func (l *CognitoUserPoolClientLister) List(ctx context.Context, o interface{}) ( id: client.ClientId, name: client.ClientName, userPoolName: userPool.name, - userPoolId: userPool.id, + userPoolID: userPool.id, }) } @@ -84,13 +84,13 @@ type CognitoUserPoolClient struct { name *string id *string userPoolName *string - userPoolId *string + userPoolID *string } func (p *CognitoUserPoolClient) Remove(_ context.Context) error { _, err := p.svc.DeleteUserPoolClient(&cognitoidentityprovider.DeleteUserPoolClientInput{ ClientId: p.id, - UserPoolId: p.userPoolId, + UserPoolId: p.userPoolID, }) return err diff --git a/resources/cognito-userpool-domains.go b/resources/cognito-userpool-domains.go index 5a5669f4..7195c319 100644 --- a/resources/cognito-userpool-domains.go +++ b/resources/cognito-userpool-domains.go @@ -60,7 +60,7 @@ func (l *CognitoUserPoolDomainLister) List(ctx context.Context, o interface{}) ( svc: svc, name: userPoolDetails.UserPool.Domain, userPoolName: userPool.name, - userPoolId: userPool.id, + userPoolID: userPool.id, }) } @@ -71,13 +71,13 @@ type CognitoUserPoolDomain struct { svc *cognitoidentityprovider.CognitoIdentityProvider name *string userPoolName *string - userPoolId *string + userPoolID *string } func (f *CognitoUserPoolDomain) Remove(_ context.Context) error { params := &cognitoidentityprovider.DeleteUserPoolDomainInput{ Domain: f.name, - UserPoolId: f.userPoolId, + UserPoolId: f.userPoolID, } _, err := f.svc.DeleteUserPoolDomain(params) From 29ee815d47a03529d03cb741bd3764b11ea43a8b Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:49:30 -0700 Subject: [PATCH 184/617] chore(resources/codebuild): fix golangci-lint violations --- resources/codebuild-projects.go | 1 - 1 file changed, 1 deletion(-) diff --git a/resources/codebuild-projects.go b/resources/codebuild-projects.go index 6128a5de..2cbb235a 100644 --- a/resources/codebuild-projects.go +++ b/resources/codebuild-projects.go @@ -30,7 +30,6 @@ func GetTags(svc *codebuild.CodeBuild, project *string) map[string]*string { for _, project := range batchResult.Projects { if len(project.Tags) > 0 { - for _, v := range project.Tags { tags[*v.Key] = v.Value } From 262052b1f45069500813149d529b412eec24e131 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:49:42 -0700 Subject: [PATCH 185/617] chore(resources/cloudwatch): fix golangci-lint violations --- resources/cloudwatch-rum.go | 1 - resources/cloudwatchevents-buses.go | 5 ++++- resources/cloudwatchevents-targets.go | 8 ++++---- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/resources/cloudwatch-rum.go b/resources/cloudwatch-rum.go index cb32f057..80c4b8d9 100644 --- a/resources/cloudwatch-rum.go +++ b/resources/cloudwatch-rum.go @@ -65,7 +65,6 @@ type CloudWatchRumApp struct { } func (f *CloudWatchRumApp) Remove(_ context.Context) error { - _, err := f.svc.DeleteAppMonitor(&cloudwatchrum.DeleteAppMonitorInput{ Name: f.appMonitorName, }) diff --git a/resources/cloudwatchevents-buses.go b/resources/cloudwatchevents-buses.go index a17340f9..b9ef9e28 100644 --- a/resources/cloudwatchevents-buses.go +++ b/resources/cloudwatchevents-buses.go @@ -3,11 +3,14 @@ package resources import ( "context" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/service/cloudwatchevents" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/aws-nuke/pkg/awsutil" "github.com/ekristen/aws-nuke/pkg/nuke" ) @@ -35,7 +38,7 @@ func (l *CloudWatchEventsBusesLister) List(_ context.Context, o interface{}) ([] resources := make([]resource.Resource, 0) for _, bus := range resp.EventBuses { - if *bus.Name == "default" { + if ptr.ToString(bus.Name) == awsutil.Default { continue } diff --git a/resources/cloudwatchevents-targets.go b/resources/cloudwatchevents-targets.go index 1fc7a52c..dc8f2dae 100644 --- a/resources/cloudwatchevents-targets.go +++ b/resources/cloudwatchevents-targets.go @@ -56,7 +56,7 @@ func (l *CloudWatchEventsTargetLister) List(_ context.Context, o interface{}) ([ resources = append(resources, &CloudWatchEventsTarget{ svc: svc, ruleName: rule.Name, - targetId: target.Id, + targetID: target.Id, busName: bus.Name, }) } @@ -68,13 +68,13 @@ func (l *CloudWatchEventsTargetLister) List(_ context.Context, o interface{}) ([ type CloudWatchEventsTarget struct { svc *cloudwatchevents.CloudWatchEvents - targetId *string + targetID *string ruleName *string busName *string } func (target *CloudWatchEventsTarget) Remove(_ context.Context) error { - ids := []*string{target.targetId} + ids := []*string{target.targetID} _, err := target.svc.RemoveTargets(&cloudwatchevents.RemoveTargetsInput{ Ids: ids, Rule: target.ruleName, @@ -87,5 +87,5 @@ func (target *CloudWatchEventsTarget) Remove(_ context.Context) error { func (target *CloudWatchEventsTarget) String() string { // TODO: change this to IAM format rule -> target and mark as breaking change for filters // TODO: add properties for rule and target separately - return fmt.Sprintf("Rule: %s Target ID: %s", *target.ruleName, *target.targetId) + return fmt.Sprintf("Rule: %s Target ID: %s", *target.ruleName, *target.targetID) } From f323b216b8852887c19f45e6f82e15a261e752a5 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:49:53 -0700 Subject: [PATCH 186/617] chore(resources/cloudtrail): fix golangci-lint violations --- resources/cloudtrail-trails.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/cloudtrail-trails.go b/resources/cloudtrail-trails.go index 1d957a1f..ebd68dfc 100644 --- a/resources/cloudtrail-trails.go +++ b/resources/cloudtrail-trails.go @@ -33,14 +33,15 @@ func (l *CloudTrailTrailLister) List(_ context.Context, o interface{}) ([]resour if err != nil { return nil, err } + resources := make([]resource.Resource, 0) for _, trail := range resp.TrailList { resources = append(resources, &CloudTrailTrail{ svc: svc, name: trail.Name, }) - } + return resources, nil } From f090cc179abc12b28d04ce94ebb9a833ba1c738b Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:50:12 -0700 Subject: [PATCH 187/617] chore(resources/cloudhsmv2): fix golangci-lint violations --- resources/cloudhsmv2-clusterhsms.go | 1 - 1 file changed, 1 deletion(-) diff --git a/resources/cloudhsmv2-clusterhsms.go b/resources/cloudhsmv2-clusterhsms.go index 809f02e7..4ee6ecf8 100644 --- a/resources/cloudhsmv2-clusterhsms.go +++ b/resources/cloudhsmv2-clusterhsms.go @@ -48,7 +48,6 @@ func (l *CloudHSMV2ClusterHSMLister) List(_ context.Context, o interface{}) ([]r hsmID: hsm.HsmId, }) } - } if resp.NextToken == nil { From 40ea87c51b71867f8dba2333f7ed3712f4078733 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:50:25 -0700 Subject: [PATCH 188/617] chore(resources/cloudfront): fix golangci-lint violations --- .../cloudfront-distribution-deployments.go | 10 ++++---- resources/cloudfront-function.go | 2 +- .../cloudfront-origin-access-identities.go | 24 +++++++++---------- 3 files changed, 16 insertions(+), 20 deletions(-) diff --git a/resources/cloudfront-distribution-deployments.go b/resources/cloudfront-distribution-deployments.go index 1f379216..f77a7219 100644 --- a/resources/cloudfront-distribution-deployments.go +++ b/resources/cloudfront-distribution-deployments.go @@ -2,8 +2,8 @@ package resources import ( "context" - "fmt" + "github.com/gotidy/ptr" "github.com/aws/aws-sdk-go/aws" @@ -51,11 +51,9 @@ func (l *CloudFrontDistributionDeploymentLister) List(_ context.Context, o inter return nil, err } - for _, item := range resp.DistributionList.Items { - distributions = append(distributions, item) - } + distributions = append(distributions, resp.DistributionList.Items...) - if *resp.DistributionList.IsTruncated == false { + if !ptr.ToBool(resp.DistributionList.IsTruncated) { break } @@ -95,7 +93,7 @@ func (f *CloudFrontDistributionDeployment) Remove(_ context.Context) error { } func (f *CloudFrontDistributionDeployment) Filter() error { - if *f.distributionConfig.Enabled == false && f.status != "InProgress" { + if !ptr.ToBool(f.distributionConfig.Enabled) && f.status != "InProgress" { return fmt.Errorf("already disabled") } return nil diff --git a/resources/cloudfront-function.go b/resources/cloudfront-function.go index 2207ef73..5682a36d 100644 --- a/resources/cloudfront-function.go +++ b/resources/cloudfront-function.go @@ -50,8 +50,8 @@ func (l *CloudFrontFunctionLister) List(_ context.Context, o interface{}) ([]res } params.Marker = resp.FunctionList.NextMarker - } + return resources, nil } diff --git a/resources/cloudfront-origin-access-identities.go b/resources/cloudfront-origin-access-identities.go index c95f5e59..396213e8 100644 --- a/resources/cloudfront-origin-access-identities.go +++ b/resources/cloudfront-origin-access-identities.go @@ -30,20 +30,18 @@ func (l *CloudFrontOriginAccessIdentityLister) List(_ context.Context, o interfa svc := cloudfront.New(opts.Session) resources := make([]resource.Resource, 0) - for { - resp, err := svc.ListCloudFrontOriginAccessIdentities(nil) - if err != nil { - return nil, err - } - - for _, item := range resp.CloudFrontOriginAccessIdentityList.Items { - resources = append(resources, &CloudFrontOriginAccessIdentity{ - svc: svc, - ID: item.Id, - }) - } - return resources, nil + resp, err := svc.ListCloudFrontOriginAccessIdentities(nil) + if err != nil { + return nil, err + } + + for _, item := range resp.CloudFrontOriginAccessIdentityList.Items { + resources = append(resources, &CloudFrontOriginAccessIdentity{ + svc: svc, + ID: item.Id, + }) } + return resources, nil } type CloudFrontOriginAccessIdentity struct { From 7bed8a5e4439507932b7f46452b7cf7aafa90809 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:50:38 -0700 Subject: [PATCH 189/617] chore(resources/cloudformation): fix golangci-lint violations --- resources/cloudformation-stack.go | 39 +++++++++---------- resources/cloudformation-stack_test.go | 18 +++++---- resources/cloudformation-stackset.go | 46 +++++++++++++---------- resources/cloudformation-stackset_test.go | 9 +++-- resources/cloudformation-type.go | 14 +++++-- 5 files changed, 72 insertions(+), 54 deletions(-) diff --git a/resources/cloudformation-stack.go b/resources/cloudformation-stack.go index 97c7b1f2..260b6cd7 100644 --- a/resources/cloudformation-stack.go +++ b/resources/cloudformation-stack.go @@ -2,8 +2,6 @@ package resources import ( "context" - "github.com/ekristen/libnuke/pkg/settings" - "errors" "strings" "time" @@ -18,6 +16,7 @@ import ( liberrors "github.com/ekristen/libnuke/pkg/errors" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/settings" "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -87,15 +86,17 @@ func (cfs *CloudFormationStack) removeWithAttempts(attempt int) error { if err := cfs.doRemove(); err != nil { // TODO: pass logrus in via ListerOpts so that it can be used here instead of global - logrus.Errorf("CloudFormationStack stackName=%s attempt=%d maxAttempts=%d delete failed: %s", *cfs.stack.StackName, attempt, cfs.maxDeleteAttempts, err.Error()) + logrus.Errorf("CloudFormationStack stackName=%s attempt=%d maxAttempts=%d delete failed: %s", + *cfs.stack.StackName, attempt, cfs.maxDeleteAttempts, err.Error()) var awsErr awserr.Error ok := errors.As(err, &awsErr) if ok && awsErr.Code() == "ValidationError" && awsErr.Message() == "Stack ["+*cfs.stack.StackName+"] cannot be deleted while TerminationProtection is enabled" { - + // check if the setting for the resource is set to allow deletion protection to be disabled if cfs.settings.Get("DisableDeletionProtection").(bool) { - logrus.Infof("CloudFormationStack stackName=%s attempt=%d maxAttempts=%d updating termination protection", *cfs.stack.StackName, attempt, cfs.maxDeleteAttempts) + logrus.Infof("CloudFormationStack stackName=%s attempt=%d maxAttempts=%d updating termination protection", + *cfs.stack.StackName, attempt, cfs.maxDeleteAttempts) _, err = cfs.svc.UpdateTerminationProtection(&cloudformation.UpdateTerminationProtectionInput{ EnableTerminationProtection: aws.Bool(false), StackName: cfs.stack.StackName, @@ -104,7 +105,8 @@ func (cfs *CloudFormationStack) removeWithAttempts(attempt int) error { return err } } else { - logrus.Warnf("CloudFormationStack stackName=%s attempt=%d maxAttempts=%d set feature flag to disable deletion protection", *cfs.stack.StackName, attempt, cfs.maxDeleteAttempts) + logrus.Warnf("CloudFormationStack stackName=%s attempt=%d maxAttempts=%d set feature flag to disable deletion protection", + *cfs.stack.StackName, attempt, cfs.maxDeleteAttempts) return err } } @@ -118,22 +120,22 @@ func (cfs *CloudFormationStack) removeWithAttempts(attempt int) error { } } -func GetParentStack(svc cloudformationiface.CloudFormationAPI, stackId string) (*cloudformation.Stack, error) { +func GetParentStack(svc cloudformationiface.CloudFormationAPI, stackID string) (*cloudformation.Stack, error) { o, err := svc.DescribeStacks(&cloudformation.DescribeStacksInput{}) if err != nil { return nil, err } for _, o := range o.Stacks { - if *o.StackId == stackId { + if *o.StackId == stackID { return o, nil } } - return nil, nil + return nil, nil //nolint:nilnil } -func (cfs *CloudFormationStack) doRemove() error { +func (cfs *CloudFormationStack) doRemove() error { //nolint:gocyclo if cfs.stack.ParentId != nil { p, err := GetParentStack(cfs.svc, *cfs.stack.ParentId) if err != nil { @@ -161,7 +163,7 @@ func (cfs *CloudFormationStack) doRemove() error { stack := o.Stacks[0] if *stack.StackStatus == cloudformation.StackStatusDeleteComplete { - //stack already deleted, no need to re-delete + // stack already deleted, no need to re-delete return nil } else if *stack.StackStatus == cloudformation.StackStatusDeleteInProgress { logrus.Infof("CloudFormationStack stackName=%s delete in progress. Waiting", *cfs.stack.StackName) @@ -215,19 +217,18 @@ func (cfs *CloudFormationStack) doRemove() error { } func (cfs *CloudFormationStack) waitForStackToStabilize(currentStatus string) error { switch currentStatus { - case cloudformation.StackStatusUpdateInProgress: - fallthrough - case cloudformation.StackStatusUpdateRollbackCompleteCleanupInProgress: - fallthrough - case cloudformation.StackStatusUpdateRollbackInProgress: + case cloudformation.StackStatusUpdateInProgress, + cloudformation.StackStatusUpdateRollbackCompleteCleanupInProgress, + cloudformation.StackStatusUpdateRollbackInProgress: logrus.Infof("CloudFormationStack stackName=%s update in progress. Waiting to stabalize", *cfs.stack.StackName) + return cfs.svc.WaitUntilStackUpdateComplete(&cloudformation.DescribeStacksInput{ StackName: cfs.stack.StackName, }) - case cloudformation.StackStatusCreateInProgress: - fallthrough - case cloudformation.StackStatusRollbackInProgress: + case cloudformation.StackStatusCreateInProgress, + cloudformation.StackStatusRollbackInProgress: logrus.Infof("CloudFormationStack stackName=%s create in progress. Waiting to stabalize", *cfs.stack.StackName) + return cfs.svc.WaitUntilStackCreateComplete(&cloudformation.DescribeStacksInput{ StackName: cfs.stack.StackName, }) diff --git a/resources/cloudformation-stack_test.go b/resources/cloudformation-stack_test.go index 54281783..e0800729 100644 --- a/resources/cloudformation-stack_test.go +++ b/resources/cloudformation-stack_test.go @@ -2,7 +2,7 @@ package resources import ( "context" - "github.com/ekristen/libnuke/pkg/settings" + "testing" "github.com/golang/mock/gomock" @@ -12,6 +12,8 @@ import ( "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/service/cloudformation" + libsettings "github.com/ekristen/libnuke/pkg/settings" + "github.com/ekristen/aws-nuke/mocks/mock_cloudformationiface" ) @@ -27,7 +29,7 @@ func TestCloudformationStack_Remove_StackAlreadyDeleted(t *testing.T) { stack: &cloudformation.Stack{ StackName: aws.String("foobar"), }, - settings: &settings.Setting{ + settings: &libsettings.Setting{ "DisableDeletionProtection": true, }, } @@ -58,7 +60,7 @@ func TestCloudformationStack_Remove_StackDoesNotExist(t *testing.T) { stack: &cloudformation.Stack{ StackName: aws.String("foobar"), }, - settings: &settings.Setting{ + settings: &libsettings.Setting{ "DisableDeletionProtection": true, }, } @@ -83,7 +85,7 @@ func TestCloudformationStack_Remove_DeleteFailed(t *testing.T) { stack: &cloudformation.Stack{ StackName: aws.String("foobar"), }, - settings: &settings.Setting{ + settings: &libsettings.Setting{ "DisableDeletionProtection": true, }, } @@ -140,7 +142,7 @@ func TestCloudformationStack_Remove_DeleteInProgress(t *testing.T) { stack: &cloudformation.Stack{ StackName: aws.String("foobar"), }, - settings: &settings.Setting{ + settings: &libsettings.Setting{ "DisableDeletionProtection": true, }, } @@ -190,7 +192,7 @@ func TestCloudformationStack_Remove_Stack_InCompletedStatus(t *testing.T) { stack: &cloudformation.Stack{ StackName: aws.String("foobar"), }, - settings: &settings.Setting{ + settings: &libsettings.Setting{ "DisableDeletionProtection": true, }, } @@ -240,7 +242,7 @@ func TestCloudformationStack_Remove_Stack_CreateInProgress(t *testing.T) { stack: &cloudformation.Stack{ StackName: aws.String("foobar"), }, - settings: &settings.Setting{ + settings: &libsettings.Setting{ "DisableDeletionProtection": true, }, } @@ -295,7 +297,7 @@ func TestCloudformationStack_Remove_Stack_UpdateInProgress(t *testing.T) { stack: &cloudformation.Stack{ StackName: aws.String("foobar"), }, - settings: &settings.Setting{ + settings: &libsettings.Setting{ "DisableDeletionProtection": true, }, } diff --git a/resources/cloudformation-stackset.go b/resources/cloudformation-stackset.go index 56b859b1..5ceb3df7 100644 --- a/resources/cloudformation-stackset.go +++ b/resources/cloudformation-stackset.go @@ -2,21 +2,21 @@ package resources import ( "context" - - "github.com/ekristen/aws-nuke/pkg/nuke" - "github.com/ekristen/libnuke/pkg/registry" - "github.com/ekristen/libnuke/pkg/resource" - "fmt" "strings" "time" - "github.com/aws/aws-sdk-go/aws" + "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/cloudformation" "github.com/aws/aws-sdk-go/service/cloudformation/cloudformationiface" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/sirupsen/logrus" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) const CloudFormationStackSetResource = "CloudFormationStackSet" @@ -100,29 +100,35 @@ func (cfs *CloudFormationStackSet) findStackInstances() (map[string][]string, er return accounts, nil } -func (cfs *CloudFormationStackSet) waitForStackSetOperation(operationId string) error { +func (cfs *CloudFormationStackSet) waitForStackSetOperation(operationID string) error { for { result, err := cfs.svc.DescribeStackSetOperation(&cloudformation.DescribeStackSetOperationInput{ StackSetName: cfs.stackSetSummary.StackSetName, - OperationId: &operationId, + OperationId: &operationID, }) if err != nil { return err } - logrus.Infof("Got stackInstance operation status on stackSet=%s operationId=%s status=%s", *cfs.stackSetSummary.StackSetName, operationId, *result.StackSetOperation.Status) + logrus.Infof("Got stackInstance operation status on stackSet=%s operationID=%s status=%s", + *cfs.stackSetSummary.StackSetName, operationID, *result.StackSetOperation.Status) + if *result.StackSetOperation.Status == cloudformation.StackSetOperationResultStatusSucceeded { return nil - } else if *result.StackSetOperation.Status == cloudformation.StackSetOperationResultStatusFailed || *result.StackSetOperation.Status == cloudformation.StackSetOperationResultStatusCancelled { - return fmt.Errorf("unable to delete stackSet=%s operationId=%s status=%s", *cfs.stackSetSummary.StackSetName, operationId, *result.StackSetOperation.Status) + } else if *result.StackSetOperation.Status == cloudformation.StackSetOperationResultStatusFailed || + *result.StackSetOperation.Status == cloudformation.StackSetOperationResultStatusCancelled { + return fmt.Errorf("unable to delete stackSet=%s operationID=%s status=%s", + *cfs.stackSetSummary.StackSetName, operationID, *result.StackSetOperation.Status) } else { - logrus.Infof("Waiting on stackSet=%s operationId=%s status=%s", *cfs.stackSetSummary.StackSetName, operationId, *result.StackSetOperation.Status) + logrus.Infof("Waiting on stackSet=%s operationID=%s status=%s", + *cfs.stackSetSummary.StackSetName, operationID, *result.StackSetOperation.Status) + time.Sleep(cfs.sleepDuration) } } } -func (cfs *CloudFormationStackSet) deleteStackInstances(accountId string, regions []string) error { - logrus.Infof("Deleting stack instance accountId=%s regions=%s", accountId, strings.Join(regions, ",")) +func (cfs *CloudFormationStackSet) deleteStackInstances(accountID string, regions []string) error { + logrus.Infof("Deleting stack instance accountID=%s regions=%s", accountID, strings.Join(regions, ",")) regionsInput := make([]*string, len(regions)) for i, region := range regions { regionsInput[i] = aws.String(region) @@ -130,9 +136,11 @@ func (cfs *CloudFormationStackSet) deleteStackInstances(accountId string, region } result, err := cfs.svc.DeleteStackInstances(&cloudformation.DeleteStackInstancesInput{ StackSetName: cfs.stackSetSummary.StackSetName, - Accounts: []*string{&accountId}, + Accounts: []*string{&accountID}, Regions: regionsInput, - RetainStacks: aws.Bool(true), //this will remove the stack set instance from the stackset, but will leave the stack in the account/region it was deployed to + // this will remove the stack set instance from the stackset, but will leave the stack + // in the account/region it was deployed to + RetainStacks: aws.Bool(true), }) fmt.Printf("got result=%v err=%v\n", result, err) @@ -152,8 +160,8 @@ func (cfs *CloudFormationStackSet) Remove(_ context.Context) error { if err != nil { return err } - for accountId, regions := range accounts { - err := cfs.deleteStackInstances(accountId, regions) + for accountID, regions := range accounts { + err := cfs.deleteStackInstances(accountID, regions) if err != nil { return err } diff --git a/resources/cloudformation-stackset_test.go b/resources/cloudformation-stackset_test.go index f07e5798..9100299b 100644 --- a/resources/cloudformation-stackset_test.go +++ b/resources/cloudformation-stackset_test.go @@ -58,10 +58,11 @@ func TestCloudformationStackSet_Remove(t *testing.T) { } describeStackSetOperationCalls := make([]*gomock.Call, len(describeStackSetStatuses)) for i, status := range describeStackSetStatuses { - describeStackSetOperationCalls[i] = mockCloudformation.EXPECT().DescribeStackSetOperation(gomock.Eq(&cloudformation.DescribeStackSetOperationInput{ - OperationId: aws.String("o1"), - StackSetName: aws.String("foobar"), - })).Return(&cloudformation.DescribeStackSetOperationOutput{ + describeStackSetOperationCalls[i] = mockCloudformation.EXPECT(). + DescribeStackSetOperation(gomock.Eq(&cloudformation.DescribeStackSetOperationInput{ + OperationId: aws.String("o1"), + StackSetName: aws.String("foobar"), + })).Return(&cloudformation.DescribeStackSetOperationOutput{ StackSetOperation: &cloudformation.StackSetOperation{ Status: aws.String(status), }, diff --git a/resources/cloudformation-type.go b/resources/cloudformation-type.go index 8f944ff2..9e6136b4 100644 --- a/resources/cloudformation-type.go +++ b/resources/cloudformation-type.go @@ -76,12 +76,14 @@ func (cfs *CloudFormationType) findAllVersionSummaries() ([]*cloudformation.Type if err != nil { return nil, err } + typeVersionSummaries = append(typeVersionSummaries, resp.TypeVersionSummaries...) if resp.NextToken == nil { return typeVersionSummaries, nil } + params.NextToken = resp.NextToken - page = page + 1 + page++ } } @@ -94,15 +96,19 @@ func (cfs *CloudFormationType) Remove(_ context.Context) error { failed := false for _, typeVersionSummary := range typeVersionSummaries { if *typeVersionSummary.IsDefaultVersion { - logrus.Infof("CloudFormationType ignoring default version type=%s version=%s", *cfs.typeSummary.TypeArn, *typeVersionSummary.VersionId) + logrus.Infof("CloudFormationType ignoring default version type=%s version=%s", + *cfs.typeSummary.TypeArn, *typeVersionSummary.VersionId) } else { - logrus.Infof("CloudFormationType removing type=%s version=%s", *cfs.typeSummary.TypeArn, *typeVersionSummary.VersionId) + logrus.Infof("CloudFormationType removing type=%s version=%s", + *cfs.typeSummary.TypeArn, *typeVersionSummary.VersionId) if _, err := cfs.svc.DeregisterType(&cloudformation.DeregisterTypeInput{ VersionId: typeVersionSummary.VersionId, TypeName: typeVersionSummary.TypeName, Type: typeVersionSummary.Type, }); err != nil { - logrus.Errorf("CloudFormationType failed removing type=%s version=%s type=%s arn=%s error=%s", *cfs.typeSummary.TypeName, *typeVersionSummary.VersionId, *typeVersionSummary.Type, *cfs.typeSummary.TypeArn, err.Error()) + logrus.Errorf("CloudFormationType failed removing type=%s version=%s type=%s arn=%s error=%s", + *cfs.typeSummary.TypeName, *typeVersionSummary.VersionId, *typeVersionSummary.Type, + *cfs.typeSummary.TypeArn, err.Error()) failed = true } } From 9bbdd02e5ccae481f1923844ec9c9c0be7105209 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:50:53 -0700 Subject: [PATCH 190/617] chore(resources/clouddirectory): fix golangci-lint violations --- resources/clouddirectory-directories.go | 1 - resources/clouddirectory-schemas.go | 1 - 2 files changed, 2 deletions(-) diff --git a/resources/clouddirectory-directories.go b/resources/clouddirectory-directories.go index 8e12261a..b215657c 100644 --- a/resources/clouddirectory-directories.go +++ b/resources/clouddirectory-directories.go @@ -64,7 +64,6 @@ type CloudDirectoryDirectory struct { } func (f *CloudDirectoryDirectory) Remove(_ context.Context) error { - _, err := f.svc.DisableDirectory(&clouddirectory.DisableDirectoryInput{ DirectoryArn: f.directoryARN, }) diff --git a/resources/clouddirectory-schemas.go b/resources/clouddirectory-schemas.go index 9b8314bc..021494ad 100644 --- a/resources/clouddirectory-schemas.go +++ b/resources/clouddirectory-schemas.go @@ -89,7 +89,6 @@ type CloudDirectorySchema struct { } func (f *CloudDirectorySchema) Remove(_ context.Context) error { - _, err := f.svc.DeleteSchema(&clouddirectory.DeleteSchemaInput{ SchemaArn: f.schemaARN, }) From 91513e5d878853e47b2ce93a8dfef45155ce5c89 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:51:03 -0700 Subject: [PATCH 191/617] chore(resources/cloudcontrol): fix golangci-lint violations --- resources/cloudcontrol.go | 7 +++---- resources/cloudcontrol_test.go | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/resources/cloudcontrol.go b/resources/cloudcontrol.go index a225ee4b..6a647fbd 100644 --- a/resources/cloudcontrol.go +++ b/resources/cloudcontrol.go @@ -2,19 +2,18 @@ package resources import ( "context" - "encoding/json" "fmt" - "github.com/aws/aws-sdk-go/aws/awserr" - sdkerrors "github.com/ekristen/libnuke/pkg/errors" "github.com/google/uuid" "github.com/pkg/errors" "github.com/sirupsen/logrus" "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/service/cloudcontrolapi" + liberrors "github.com/ekristen/libnuke/pkg/errors" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -106,7 +105,7 @@ func (l *CloudControlResourceLister) List(_ context.Context, o interface{}) ([]r var awsError awserr.Error if errors.As(err, &awsError) { if awsError.Code() == "TypeNotFoundException" { - return nil, sdkerrors.ErrSkipRequest( + return nil, liberrors.ErrSkipRequest( "cloudformation type not available in region: " + *opts.Session.Config.Region) } } diff --git a/resources/cloudcontrol_test.go b/resources/cloudcontrol_test.go index 8c24797c..d271208a 100644 --- a/resources/cloudcontrol_test.go +++ b/resources/cloudcontrol_test.go @@ -17,7 +17,7 @@ func TestCloudControlParseProperties(t *testing.T) { }{ { name: "ActualEC2VPC", - payload: `{"VpcId":"vpc-456","InstanceTenancy":"default","CidrBlockAssociations":["vpc-cidr-assoc-1234", "vpc-cidr-assoc-5678"],"CidrBlock":"10.10.0.0/16","Tags":[{"Value":"Kubernetes VPC","Key":"Name"}]}`, + payload: `{"VpcId":"vpc-456","InstanceTenancy":"default","CidrBlockAssociations":["vpc-cidr-assoc-1234", "vpc-cidr-assoc-5678"],"CidrBlock":"10.10.0.0/16","Tags":[{"Value":"Kubernetes VPC","Key":"Name"}]}`, //nolint:lll want: []string{ `CidrBlock: "10.10.0.0/16"`, `Tags.["Name"]: "Kubernetes VPC"`, From 71b6cc3e655eb61eac50392ff447d8c51d6e346b Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:51:17 -0700 Subject: [PATCH 192/617] chore(resources/budgets): fix golangci-lint violations --- resources/budgets.go | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/resources/budgets.go b/resources/budgets.go index 54704be3..e0fc4cbb 100644 --- a/resources/budgets.go +++ b/resources/budgets.go @@ -2,8 +2,8 @@ package resources import ( "context" - "fmt" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/budgets" "github.com/aws/aws-sdk-go/service/sts" @@ -46,9 +46,7 @@ func (l *BudgetLister) List(_ context.Context, o interface{}) ([]resource.Resour buds := make([]*budgets.Budget, 0) err = svc.DescribeBudgetsPages(params, func(page *budgets.DescribeBudgetsOutput, lastPage bool) bool { - for _, out := range page.Budgets { - buds = append(buds, out) - } + buds = append(buds, page.Budgets...) return true }) @@ -62,7 +60,7 @@ func (l *BudgetLister) List(_ context.Context, o interface{}) ([]resource.Resour svc: svc, name: bud.BudgetName, budgetType: bud.BudgetType, - accountId: accountID, + accountID: accountID, }) } @@ -73,13 +71,12 @@ type Budget struct { svc *budgets.Budgets name *string budgetType *string - accountId *string + accountID *string } func (b *Budget) Remove(_ context.Context) error { - _, err := b.svc.DeleteBudget(&budgets.DeleteBudgetInput{ - AccountId: b.accountId, + AccountId: b.accountID, BudgetName: b.name, }) @@ -92,7 +89,7 @@ func (b *Budget) Properties() types.Properties { properties. Set("Name", *b.name). Set("BudgetType", *b.budgetType). - Set("AccountID", *b.accountId) + Set("AccountID", *b.accountID) return properties } From 428231534785298b8e33070b1135169d359c490f Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:51:28 -0700 Subject: [PATCH 193/617] chore(resources/billing): fix golangci-lint violations --- resources/billing-costandusagereports.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/resources/billing-costandusagereports.go b/resources/billing-costandusagereports.go index 7d40588d..d219e638 100644 --- a/resources/billing-costandusagereports.go +++ b/resources/billing-costandusagereports.go @@ -42,12 +42,11 @@ func (l *BillingCostandUsageReportLister) List(_ context.Context, o interface{}) } reports := make([]*costandusagereportservice.ReportDefinition, 0) - err := svc.DescribeReportDefinitionsPages(params, func(page *costandusagereportservice.DescribeReportDefinitionsOutput, lastPage bool) bool { - for _, out := range page.ReportDefinitions { - reports = append(reports, out) - } - return true - }) + err := svc.DescribeReportDefinitionsPages( + params, func(page *costandusagereportservice.DescribeReportDefinitionsOutput, lastPage bool) bool { + reports = append(reports, page.ReportDefinitions...) + return true + }) if err != nil { return nil, err } From 4d70fd40d5f880e7164be4fc868f658120c06ebc Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:51:40 -0700 Subject: [PATCH 194/617] chore(resources/batch): fix golangci-lint violations --- resources/batch-compute-environment-states.go | 5 +++-- resources/batch-job-queue-states.go | 6 +++--- resources/batch-job-queues.go | 1 - 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/resources/batch-compute-environment-states.go b/resources/batch-compute-environment-states.go index fbf0828b..a9c16b74 100644 --- a/resources/batch-compute-environment-states.go +++ b/resources/batch-compute-environment-states.go @@ -2,10 +2,11 @@ package resources import ( "context" - "fmt" "strings" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/batch" @@ -81,7 +82,7 @@ func (f *BatchComputeEnvironmentState) String() string { } func (f *BatchComputeEnvironmentState) Filter() error { - if strings.ToLower(*f.state) == "disabled" { + if strings.EqualFold(ptr.ToString(f.state), "disabled") { return fmt.Errorf("already disabled") } return nil diff --git a/resources/batch-job-queue-states.go b/resources/batch-job-queue-states.go index d0b18192..a2b37899 100644 --- a/resources/batch-job-queue-states.go +++ b/resources/batch-job-queue-states.go @@ -2,10 +2,11 @@ package resources import ( "context" - "fmt" "strings" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/batch" @@ -68,7 +69,6 @@ func (l *BatchJobQueueStateLister) List(_ context.Context, o interface{}) ([]res } func (f *BatchJobQueueState) Remove(_ context.Context) error { - _, err := f.svc.UpdateJobQueue(&batch.UpdateJobQueueInput{ JobQueue: f.jobQueue, State: aws.String("DISABLED"), @@ -82,7 +82,7 @@ func (f *BatchJobQueueState) String() string { } func (f *BatchJobQueueState) Filter() error { - if strings.ToLower(*f.state) == "disabled" { + if strings.EqualFold(ptr.ToString(f.state), "disabled") { return fmt.Errorf("already disabled") } return nil diff --git a/resources/batch-job-queues.go b/resources/batch-job-queues.go index bd3f7870..85d77176 100644 --- a/resources/batch-job-queues.go +++ b/resources/batch-job-queues.go @@ -63,7 +63,6 @@ type BatchJobQueue struct { } func (f *BatchJobQueue) Remove(_ context.Context) error { - _, err := f.svc.DeleteJobQueue(&batch.DeleteJobQueueInput{ JobQueue: f.jobQueue, }) From 05c5a3b5ffdafc64f484cc3bd738b55787e5c833 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:51:50 -0700 Subject: [PATCH 195/617] chore(resources/backup): fix golangci-lint violations --- resources/backup-recovery-points.go | 8 ++++---- resources/backup-selections.go | 18 +++++++++--------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/resources/backup-recovery-points.go b/resources/backup-recovery-points.go index 163943c5..8f7df854 100644 --- a/resources/backup-recovery-points.go +++ b/resources/backup-recovery-points.go @@ -3,8 +3,6 @@ package resources import ( "context" - "fmt" - "github.com/aws/aws-sdk-go/service/backup" "github.com/ekristen/libnuke/pkg/registry" @@ -47,7 +45,9 @@ func (l *AWSBackupRecoveryPointLister) List(_ context.Context, o interface{}) ([ resources := make([]resource.Resource, 0) for _, out := range resp.BackupVaultList { - recoveryPointsOutput, _ := svc.ListRecoveryPointsByBackupVault(&backup.ListRecoveryPointsByBackupVaultInput{BackupVaultName: out.BackupVaultName}) + recoveryPointsOutput, _ := svc.ListRecoveryPointsByBackupVault( + &backup.ListRecoveryPointsByBackupVaultInput{BackupVaultName: out.BackupVaultName}) + for _, rp := range recoveryPointsOutput.RecoveryPoints { resources = append(resources, &BackupRecoveryPoint{ svc: svc, @@ -75,5 +75,5 @@ func (b *BackupRecoveryPoint) Remove(_ context.Context) error { } func (b *BackupRecoveryPoint) String() string { - return fmt.Sprintf("%s", b.arn) + return b.arn } diff --git a/resources/backup-selections.go b/resources/backup-selections.go index f632df48..2f4d2153 100644 --- a/resources/backup-selections.go +++ b/resources/backup-selections.go @@ -17,8 +17,8 @@ import ( type BackupSelection struct { svc *backup.Backup - planId string - selectionId string + planID string + selectionID string selectionName string } @@ -57,8 +57,8 @@ func (l *AWSBackupSelectionLister) List(_ context.Context, o interface{}) ([]res for _, selection := range selectionsOutput.BackupSelectionsList { resources = append(resources, &BackupSelection{ svc: svc, - planId: *selection.BackupPlanId, - selectionId: *selection.SelectionId, + planID: *selection.BackupPlanId, + selectionID: *selection.SelectionId, selectionName: *selection.SelectionName, }) } @@ -77,21 +77,21 @@ func (l *AWSBackupSelectionLister) List(_ context.Context, o interface{}) ([]res func (b *BackupSelection) Properties() types.Properties { properties := types.NewProperties() properties.Set("Name", b.selectionName) - properties.Set("ID", b.selectionId) - properties.Set("PlanID", b.planId) + properties.Set("ID", b.selectionID) + properties.Set("PlanID", b.planID) return properties } func (b *BackupSelection) Remove(_ context.Context) error { _, err := b.svc.DeleteBackupSelection(&backup.DeleteBackupSelectionInput{ - BackupPlanId: &b.planId, - SelectionId: &b.selectionId, + BackupPlanId: &b.planID, + SelectionId: &b.selectionID, }) return err } func (b *BackupSelection) String() string { - return fmt.Sprintf("%s (%s)", b.planId, b.selectionId) + return fmt.Sprintf("%s (%s)", b.planID, b.selectionID) } func (b *BackupSelection) Filter() error { From fefb76fd3e95b02589196982df004f1156844201 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:52:00 -0700 Subject: [PATCH 196/617] chore(resources/athena): fix golangci-lint violations --- resources/athena-work-groups.go | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/resources/athena-work-groups.go b/resources/athena-work-groups.go index 2b1839ea..026d4ac1 100644 --- a/resources/athena-work-groups.go +++ b/resources/athena-work-groups.go @@ -2,10 +2,10 @@ package resources import ( "context" - "errors" "fmt" + "github.com/gotidy/ptr" "github.com/sirupsen/logrus" "github.com/aws/aws-sdk-go/aws" @@ -108,6 +108,9 @@ func (a *AthenaWorkGroup) Remove(_ context.Context) error { Description: aws.String(""), WorkGroup: a.name, }) + if err != nil { + return err + } // Remove any tags wgTagsRes, err := a.svc.ListTagsForResource(&athena.ListTagsForResourceInput{ @@ -116,10 +119,12 @@ func (a *AthenaWorkGroup) Remove(_ context.Context) error { if err != nil { return err } + var tagKeys []*string for _, tag := range wgTagsRes.Tags { tagKeys = append(tagKeys, tag.Key) } + _, err = a.svc.UntagResource(&athena.UntagResourceInput{ ResourceARN: a.arn, TagKeys: tagKeys, @@ -163,9 +168,9 @@ func (a *AthenaWorkGroup) Filter() error { // don't add it to our plan wgConfig := wgConfigRes.WorkGroup.Configuration isCleanConfig := wgConfig.BytesScannedCutoffPerQuery == nil && - *wgConfig.EnforceWorkGroupConfiguration == false && - *wgConfig.PublishCloudWatchMetricsEnabled == false && - *wgConfig.RequesterPaysEnabled == false && + !ptr.ToBool(wgConfig.EnforceWorkGroupConfiguration) && + !ptr.ToBool(wgConfig.PublishCloudWatchMetricsEnabled) && + !ptr.ToBool(wgConfig.RequesterPaysEnabled) && *wgConfig.ResultConfiguration == athena.ResultConfiguration{} && len(wgTagsRes.Tags) == 0 From f2a591b3fc50aa2a243dcdbeea1d0904ddb1c4da Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:52:20 -0700 Subject: [PATCH 197/617] chore(resources/appstream): fix golangci-lint violations --- resources/appstream-fleetstates.go | 8 ++++---- resources/appstream-imagebuilderwaiters.go | 10 +++++----- resources/appstream-images.go | 5 +++-- resources/appstream-stack-fleet-attachments.go | 7 +------ 4 files changed, 13 insertions(+), 17 deletions(-) diff --git a/resources/appstream-fleetstates.go b/resources/appstream-fleetstates.go index 0bf72fa1..018d3131 100644 --- a/resources/appstream-fleetstates.go +++ b/resources/appstream-fleetstates.go @@ -2,9 +2,10 @@ package resources import ( "context" - "fmt" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/service/appstream" "github.com/ekristen/libnuke/pkg/registry" @@ -64,7 +65,6 @@ func (l *AppStreamFleetStateLister) List(_ context.Context, o interface{}) ([]re } func (f *AppStreamFleetState) Remove(_ context.Context) error { - _, err := f.svc.StopFleet(&appstream.StopFleetInput{ Name: f.name, }) @@ -77,9 +77,9 @@ func (f *AppStreamFleetState) String() string { } func (f *AppStreamFleetState) Filter() error { - if *f.state == "STOPPED" { + if ptr.ToString(f.state) == appstream.FleetStateStopped { return fmt.Errorf("already stopped") - } else if *f.state == "DELETING" { + } else if ptr.ToString(f.state) == "DELETING" { return fmt.Errorf("already being deleted") } diff --git a/resources/appstream-imagebuilderwaiters.go b/resources/appstream-imagebuilderwaiters.go index fb2beaf6..2edf3d38 100644 --- a/resources/appstream-imagebuilderwaiters.go +++ b/resources/appstream-imagebuilderwaiters.go @@ -2,9 +2,10 @@ package resources import ( "context" - "fmt" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/appstream" @@ -67,7 +68,6 @@ func (l *AppStreamImageBuilderWaiterLister) List(_ context.Context, o interface{ } func (f *AppStreamImageBuilderWaiter) Remove(_ context.Context) error { - return nil } @@ -76,11 +76,11 @@ func (f *AppStreamImageBuilderWaiter) String() string { } func (f *AppStreamImageBuilderWaiter) Filter() error { - if *f.state == "STOPPED" { + if ptr.ToString(f.state) == appstream.ImageBuilderStateStopped { return fmt.Errorf("already stopped") - } else if *f.state == "RUNNING" { + } else if ptr.ToString(f.state) == appstream.ImageBuilderStateRunning { return fmt.Errorf("already running") - } else if *f.state == "DELETING" { + } else if ptr.ToString(f.state) == appstream.ImageBuilderStateDeleting { return fmt.Errorf("already being deleted") } diff --git a/resources/appstream-images.go b/resources/appstream-images.go index ab1e64ea..8eb8460c 100644 --- a/resources/appstream-images.go +++ b/resources/appstream-images.go @@ -2,10 +2,11 @@ package resources import ( "context" - "fmt" "strings" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/service/appstream" "github.com/ekristen/libnuke/pkg/registry" @@ -69,7 +70,7 @@ func (f *AppStreamImage) String() string { } func (f *AppStreamImage) Filter() error { - if strings.ToUpper(*f.visibility) == "PUBLIC" { + if strings.EqualFold(ptr.ToString(f.visibility), "PUBLIC") { return fmt.Errorf("cannot delete public AWS images") } return nil diff --git a/resources/appstream-stack-fleet-attachments.go b/resources/appstream-stack-fleet-attachments.go index 0ddae89d..bb439238 100644 --- a/resources/appstream-stack-fleet-attachments.go +++ b/resources/appstream-stack-fleet-attachments.go @@ -2,7 +2,6 @@ package resources import ( "context" - "fmt" "github.com/aws/aws-sdk-go/service/appstream" @@ -45,9 +44,7 @@ func (l *AppStreamStackFleetAttachmentLister) List(_ context.Context, o interfac return nil, err } - for _, stack := range output.Stacks { - stacks = append(stacks, stack) - } + stacks = append(stacks, output.Stacks...) if output.NextToken == nil { break @@ -58,7 +55,6 @@ func (l *AppStreamStackFleetAttachmentLister) List(_ context.Context, o interfac stackAssocParams := &appstream.ListAssociatedFleetsInput{} for _, stack := range stacks { - stackAssocParams.StackName = stack.Name output, err := svc.ListAssociatedFleets(stackAssocParams) if err != nil { @@ -78,7 +74,6 @@ func (l *AppStreamStackFleetAttachmentLister) List(_ context.Context, o interfac } func (f *AppStreamStackFleetAttachment) Remove(_ context.Context) error { - _, err := f.svc.DisassociateFleet(&appstream.DisassociateFleetInput{ StackName: f.stackName, FleetName: f.fleetName, From e970d64b2d7e4517f58ebb2bb0b89afff81f252c Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:53:17 -0700 Subject: [PATCH 198/617] chore(resources/appmesh): fix golangci-lint violations --- resources/appmesh-gatewayroute.go | 4 +--- resources/appmesh-route.go | 4 +--- resources/appmesh-virtualgateway.go | 4 +--- resources/appmesh-virtualnode.go | 4 +--- resources/appmesh-virtualrouter.go | 4 +--- resources/appmesh-virtualservice.go | 4 +--- resources/apprunner-service.go | 14 +++++++------- 7 files changed, 13 insertions(+), 25 deletions(-) diff --git a/resources/appmesh-gatewayroute.go b/resources/appmesh-gatewayroute.go index 7b3db473..917803a6 100644 --- a/resources/appmesh-gatewayroute.go +++ b/resources/appmesh-gatewayroute.go @@ -52,9 +52,7 @@ func (l *AppMeshGatewayRouteLister) List(_ context.Context, o interface{}) ([]re MeshName: meshName, }, func(page *appmesh.ListVirtualGatewaysOutput, lastPage bool) bool { - for _, vg := range page.VirtualGateways { - vgs = append(vgs, vg) - } + vgs = append(vgs, page.VirtualGateways...) return lastPage }, ) diff --git a/resources/appmesh-route.go b/resources/appmesh-route.go index a72fb1f5..3eea7f63 100644 --- a/resources/appmesh-route.go +++ b/resources/appmesh-route.go @@ -52,9 +52,7 @@ func (l *AppMeshRouteLister) List(_ context.Context, o interface{}) ([]resource. MeshName: meshName, }, func(page *appmesh.ListVirtualRoutersOutput, lastPage bool) bool { - for _, vr := range page.VirtualRouters { - virtualRouters = append(virtualRouters, vr) - } + virtualRouters = append(virtualRouters, page.VirtualRouters...) return lastPage }, ) diff --git a/resources/appmesh-virtualgateway.go b/resources/appmesh-virtualgateway.go index efa3020a..ded86668 100644 --- a/resources/appmesh-virtualgateway.go +++ b/resources/appmesh-virtualgateway.go @@ -52,9 +52,7 @@ func (l *AppMeshVirtualGatewayLister) List(_ context.Context, o interface{}) ([] MeshName: meshName, }, func(page *appmesh.ListVirtualGatewaysOutput, lastPage bool) bool { - for _, vg := range page.VirtualGateways { - vgs = append(vgs, vg) - } + vgs = append(vgs, page.VirtualGateways...) return lastPage }, ) diff --git a/resources/appmesh-virtualnode.go b/resources/appmesh-virtualnode.go index fe755e02..5c8a6296 100644 --- a/resources/appmesh-virtualnode.go +++ b/resources/appmesh-virtualnode.go @@ -53,9 +53,7 @@ func (l *AppMeshVirtualNodeLister) List(_ context.Context, o interface{}) ([]res MeshName: meshName, }, func(page *appmesh.ListVirtualNodesOutput, lastPage bool) bool { - for _, vn := range page.VirtualNodes { - vns = append(vns, vn) - } + vns = append(vns, page.VirtualNodes...) return lastPage }, ) diff --git a/resources/appmesh-virtualrouter.go b/resources/appmesh-virtualrouter.go index 556bfa07..df408da6 100644 --- a/resources/appmesh-virtualrouter.go +++ b/resources/appmesh-virtualrouter.go @@ -59,9 +59,7 @@ func (l *AppMeshVirtualRouterLister) List(_ context.Context, o interface{}) ([]r MeshName: meshName, }, func(page *appmesh.ListVirtualRoutersOutput, lastPage bool) bool { - for _, vr := range page.VirtualRouters { - vrs = append(vrs, vr) - } + vrs = append(vrs, page.VirtualRouters...) return lastPage }, ) diff --git a/resources/appmesh-virtualservice.go b/resources/appmesh-virtualservice.go index f794f2a0..54c11bde 100644 --- a/resources/appmesh-virtualservice.go +++ b/resources/appmesh-virtualservice.go @@ -59,9 +59,7 @@ func (l *AppMeshVirtualServiceLister) List(_ context.Context, o interface{}) ([] MeshName: meshName, }, func(page *appmesh.ListVirtualServicesOutput, lastPage bool) bool { - for _, vs := range page.VirtualServices { - vss = append(vss, vs) - } + vss = append(vss, page.VirtualServices...) return lastPage }, ) diff --git a/resources/apprunner-service.go b/resources/apprunner-service.go index ce45203a..691f1f58 100644 --- a/resources/apprunner-service.go +++ b/resources/apprunner-service.go @@ -14,8 +14,8 @@ import ( type AppRunnerService struct { svc *apprunner.AppRunner - ServiceArn *string - ServiceId *string + ServiceARN *string + ServiceID *string ServiceName *string } @@ -48,8 +48,8 @@ func (l *AppRunnerServiceLister) List(_ context.Context, o interface{}) ([]resou for _, item := range resp.ServiceSummaryList { resources = append(resources, &AppRunnerService{ svc: svc, - ServiceArn: item.ServiceArn, - ServiceId: item.ServiceId, + ServiceARN: item.ServiceArn, + ServiceID: item.ServiceId, ServiceName: item.ServiceName, }) } @@ -66,7 +66,7 @@ func (l *AppRunnerServiceLister) List(_ context.Context, o interface{}) ([]resou func (f *AppRunnerService) Remove(_ context.Context) error { _, err := f.svc.DeleteService(&apprunner.DeleteServiceInput{ - ServiceArn: f.ServiceArn, + ServiceArn: f.ServiceARN, }) return err @@ -74,8 +74,8 @@ func (f *AppRunnerService) Remove(_ context.Context) error { func (f *AppRunnerService) Properties() types.Properties { properties := types.NewProperties() - properties.Set("ServiceArn", f.ServiceArn) - properties.Set("ServiceId", f.ServiceId) + properties.Set("ServiceARN", f.ServiceARN) + properties.Set("ServiceID", f.ServiceID) properties.Set("ServiceName", f.ServiceName) return properties } From ab40d50293e8bff1703c523ec6ce1e6990421698 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:53:30 -0700 Subject: [PATCH 199/617] chore(resources/applicationautoscaling): fix golangci-lint violations --- resources/applicationautoscaling-scalable-targets.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/applicationautoscaling-scalable-targets.go b/resources/applicationautoscaling-scalable-targets.go index 714a1105..5400a01f 100644 --- a/resources/applicationautoscaling-scalable-targets.go +++ b/resources/applicationautoscaling-scalable-targets.go @@ -3,6 +3,8 @@ package resources import ( "context" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/service/applicationautoscaling" "github.com/ekristen/libnuke/pkg/registry" @@ -34,7 +36,7 @@ func (l *ApplicationAutoScalingScalableTargetLister) List(_ context.Context, o i resources := make([]resource.Resource, 0) for _, namespace := range namespaces { for { - params.ServiceNamespace = &namespace + params.ServiceNamespace = ptr.String(namespace) resp, err := svc.DescribeScalableTargets(params) if err != nil { return nil, err From cd1c32ee47dd3671d9af3f356f74ace91f047ce0 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:53:44 -0700 Subject: [PATCH 200/617] chore(resources/appconfig): fix golangci-lint violations --- resources/appconfig-configurationprofiles.go | 8 ++++---- resources/appconfig-environments.go | 8 ++++---- .../appconfig-hostedconfigurationversions.go | 18 +++++++++--------- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/resources/appconfig-configurationprofiles.go b/resources/appconfig-configurationprofiles.go index cd57ac64..3f517929 100644 --- a/resources/appconfig-configurationprofiles.go +++ b/resources/appconfig-configurationprofiles.go @@ -17,7 +17,7 @@ import ( type AppConfigConfigurationProfile struct { svc *appconfig.AppConfig - applicationId *string + applicationID *string id *string name *string } @@ -63,7 +63,7 @@ func (l *AppConfigConfigurationProfileLister) List(ctx context.Context, o interf for _, item := range page.Items { resources = append(resources, &AppConfigConfigurationProfile{ svc: svc, - applicationId: application.id, + applicationID: application.id, id: item.Id, name: item.Name, }) @@ -79,7 +79,7 @@ func (l *AppConfigConfigurationProfileLister) List(ctx context.Context, o interf func (f *AppConfigConfigurationProfile) Remove(_ context.Context) error { _, err := f.svc.DeleteConfigurationProfile(&appconfig.DeleteConfigurationProfileInput{ - ApplicationId: f.applicationId, + ApplicationId: f.applicationID, ConfigurationProfileId: f.id, }) return err @@ -87,7 +87,7 @@ func (f *AppConfigConfigurationProfile) Remove(_ context.Context) error { func (f *AppConfigConfigurationProfile) Properties() types.Properties { return types.NewProperties(). - Set("ApplicationID", f.applicationId). + Set("ApplicationID", f.applicationID). Set("ID", f.id). Set("Name", f.name) } diff --git a/resources/appconfig-environments.go b/resources/appconfig-environments.go index 7195b210..080aacb6 100644 --- a/resources/appconfig-environments.go +++ b/resources/appconfig-environments.go @@ -17,7 +17,7 @@ import ( type AppConfigEnvironment struct { svc *appconfig.AppConfig - applicationId *string + applicationID *string id *string name *string } @@ -59,7 +59,7 @@ func (l *AppConfigEnvironmentLister) List(ctx context.Context, o interface{}) ([ for _, item := range page.Items { resources = append(resources, &AppConfigEnvironment{ svc: svc, - applicationId: application.id, + applicationID: application.id, id: item.Id, name: item.Name, }) @@ -75,7 +75,7 @@ func (l *AppConfigEnvironmentLister) List(ctx context.Context, o interface{}) ([ func (f *AppConfigEnvironment) Remove(_ context.Context) error { _, err := f.svc.DeleteEnvironment(&appconfig.DeleteEnvironmentInput{ - ApplicationId: f.applicationId, + ApplicationId: f.applicationID, EnvironmentId: f.id, }) return err @@ -83,7 +83,7 @@ func (f *AppConfigEnvironment) Remove(_ context.Context) error { func (f *AppConfigEnvironment) Properties() types.Properties { return types.NewProperties(). - Set("ApplicationID", f.applicationId). + Set("ApplicationID", f.applicationID). Set("ID", f.id). Set("Name", f.name) } diff --git a/resources/appconfig-hostedconfigurationversions.go b/resources/appconfig-hostedconfigurationversions.go index 4a7bcfe9..f8dffa77 100644 --- a/resources/appconfig-hostedconfigurationversions.go +++ b/resources/appconfig-hostedconfigurationversions.go @@ -17,8 +17,8 @@ import ( type AppConfigHostedConfigurationVersion struct { svc *appconfig.AppConfig - applicationId *string - configurationProfileId *string + applicationID *string + configurationProfileID *string versionNumber *int64 } @@ -52,7 +52,7 @@ func (l *AppConfigHostedConfigurationVersionLister) List(ctx context.Context, o continue } params := &appconfig.ListHostedConfigurationVersionsInput{ - ApplicationId: configurationProfile.applicationId, + ApplicationId: configurationProfile.applicationID, ConfigurationProfileId: configurationProfile.id, MaxResults: aws.Int64(50), } @@ -60,8 +60,8 @@ func (l *AppConfigHostedConfigurationVersionLister) List(ctx context.Context, o for _, item := range page.Items { resources = append(resources, &AppConfigHostedConfigurationVersion{ svc: svc, - applicationId: configurationProfile.applicationId, - configurationProfileId: configurationProfile.id, + applicationID: configurationProfile.applicationID, + configurationProfileID: configurationProfile.id, versionNumber: item.VersionNumber, }) } @@ -76,8 +76,8 @@ func (l *AppConfigHostedConfigurationVersionLister) List(ctx context.Context, o func (f *AppConfigHostedConfigurationVersion) Remove(_ context.Context) error { _, err := f.svc.DeleteHostedConfigurationVersion(&appconfig.DeleteHostedConfigurationVersionInput{ - ApplicationId: f.applicationId, - ConfigurationProfileId: f.configurationProfileId, + ApplicationId: f.applicationID, + ConfigurationProfileId: f.configurationProfileID, VersionNumber: f.versionNumber, }) return err @@ -85,7 +85,7 @@ func (f *AppConfigHostedConfigurationVersion) Remove(_ context.Context) error { func (f *AppConfigHostedConfigurationVersion) Properties() types.Properties { return types.NewProperties(). - Set("ApplicationID", f.applicationId). - Set("ConfigurationProfileID", f.configurationProfileId). + Set("ApplicationID", f.applicationID). + Set("ConfigurationProfileID", f.configurationProfileID). Set("VersionNumber", f.versionNumber) } From 8d7216c25589968882f8c28633434f32f43817e3 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:53:55 -0700 Subject: [PATCH 201/617] chore(resources/apigateway): fix golangci-lint violations --- resources/apigateway-apikeys.go | 1 - 1 file changed, 1 deletion(-) diff --git a/resources/apigateway-apikeys.go b/resources/apigateway-apikeys.go index 2769458a..650144f1 100644 --- a/resources/apigateway-apikeys.go +++ b/resources/apigateway-apikeys.go @@ -64,7 +64,6 @@ type APIGatewayAPIKey struct { } func (f *APIGatewayAPIKey) Remove(_ context.Context) error { - _, err := f.svc.DeleteApiKey(&apigateway.DeleteApiKeyInput{ ApiKey: f.APIKey, }) From 00bd07ee6b527084ac9f98affbad035a156e1437 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 11:54:12 -0700 Subject: [PATCH 202/617] chore(resources/acmpca): fix golangci-lint violations --- resources/acmpca-certificateauthorities.go | 1 - resources/acmpca-certificateauthoritystates.go | 3 --- 2 files changed, 4 deletions(-) diff --git a/resources/acmpca-certificateauthorities.go b/resources/acmpca-certificateauthorities.go index b4783ec0..1f09a736 100644 --- a/resources/acmpca-certificateauthorities.go +++ b/resources/acmpca-certificateauthorities.go @@ -89,7 +89,6 @@ type ACMPCACertificateAuthority struct { } func (f *ACMPCACertificateAuthority) Remove(_ context.Context) error { - _, err := f.svc.DeleteCertificateAuthority(&acmpca.DeleteCertificateAuthorityInput{ CertificateAuthorityArn: f.ARN, }) diff --git a/resources/acmpca-certificateauthoritystates.go b/resources/acmpca-certificateauthoritystates.go index bb3d8aa2..53fa812c 100644 --- a/resources/acmpca-certificateauthoritystates.go +++ b/resources/acmpca-certificateauthoritystates.go @@ -88,7 +88,6 @@ type ACMPCACertificateAuthorityState struct { } func (f *ACMPCACertificateAuthorityState) Remove(_ context.Context) error { - _, err := f.svc.UpdateCertificateAuthority(&acmpca.UpdateCertificateAuthorityInput{ CertificateAuthorityArn: f.ARN, Status: aws.String("DISABLED"), @@ -102,7 +101,6 @@ func (f *ACMPCACertificateAuthorityState) String() string { } func (f *ACMPCACertificateAuthorityState) Filter() error { - switch *f.status { case "CREATING": return fmt.Errorf("available for deletion") @@ -115,7 +113,6 @@ func (f *ACMPCACertificateAuthorityState) Filter() error { default: return nil } - } func (f *ACMPCACertificateAuthorityState) Properties() types.Properties { From 5f7770c8f02d63912851a9b763b9132a8f124444 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 12:02:02 -0700 Subject: [PATCH 203/617] test: fix case on test equality --- resources/cloudformation-stackset_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/cloudformation-stackset_test.go b/resources/cloudformation-stackset_test.go index 9100299b..554eb76b 100644 --- a/resources/cloudformation-stackset_test.go +++ b/resources/cloudformation-stackset_test.go @@ -197,5 +197,5 @@ func TestCloudformationStackSet_Remove_DeleteStackInstanceFailed(t *testing.T) { }, nil) err := stackSet.Remove(context.TODO()) - a.EqualError(err, "unable to delete stackSet=foobar operationId=o1 status=FAILED") + a.EqualError(err, "unable to delete stackSet=foobar operationID=o1 status=FAILED") } From 497d1d438672a901b0f6354bb9242bbaaaafde52 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 12:10:39 -0700 Subject: [PATCH 204/617] chore: switch to fmt.Sprintf, rename file for consistency --- .../{cognito-identitypools.go => cognito-identity-pools.go} | 0 resources/cognito-identity-providers.go | 4 +++- 2 files changed, 3 insertions(+), 1 deletion(-) rename resources/{cognito-identitypools.go => cognito-identity-pools.go} (100%) diff --git a/resources/cognito-identitypools.go b/resources/cognito-identity-pools.go similarity index 100% rename from resources/cognito-identitypools.go rename to resources/cognito-identity-pools.go diff --git a/resources/cognito-identity-providers.go b/resources/cognito-identity-providers.go index aa620b87..a1f219cf 100644 --- a/resources/cognito-identity-providers.go +++ b/resources/cognito-identity-providers.go @@ -2,6 +2,8 @@ package resources import ( "context" + "fmt" + "github.com/gotidy/ptr" "github.com/sirupsen/logrus" @@ -105,5 +107,5 @@ func (p *CognitoIdentityProvider) Properties() types.Properties { } func (p *CognitoIdentityProvider) String() string { - return *p.userPoolName + " -> " + *p.name + return fmt.Sprintf("%s -> %s", ptr.ToString(p.userPoolName), ptr.ToString(p.name)) } From fd9573759d28936d6184d0be2c3fc764da502596 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 12:11:22 -0700 Subject: [PATCH 205/617] chore: fix imports --- resources/cognito-identity-providers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/cognito-identity-providers.go b/resources/cognito-identity-providers.go index a1f219cf..b0aeed0b 100644 --- a/resources/cognito-identity-providers.go +++ b/resources/cognito-identity-providers.go @@ -3,6 +3,7 @@ package resources import ( "context" "fmt" + "github.com/gotidy/ptr" "github.com/sirupsen/logrus" From eac3b05e47bb78ce83306440186c1bbf3e1cda8e Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 12:14:14 -0700 Subject: [PATCH 206/617] chore: nolint nolintlint for gosec on hardcoded secrets --- resources/ec2-vpc-endpoint-connections.go | 2 +- resources/wafregional-regex-match-sets.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/ec2-vpc-endpoint-connections.go b/resources/ec2-vpc-endpoint-connections.go index a8db78da..436775c1 100644 --- a/resources/ec2-vpc-endpoint-connections.go +++ b/resources/ec2-vpc-endpoint-connections.go @@ -15,7 +15,7 @@ import ( "github.com/ekristen/aws-nuke/pkg/nuke" ) -const EC2VPCEndpointConnectionResource = "EC2VPCEndpointConnection" //nolint:gosec +const EC2VPCEndpointConnectionResource = "EC2VPCEndpointConnection" //nolint:gosec,nolintlint func init() { registry.Register(®istry.Registration{ diff --git a/resources/wafregional-regex-match-sets.go b/resources/wafregional-regex-match-sets.go index 3ca43196..b18ce802 100644 --- a/resources/wafregional-regex-match-sets.go +++ b/resources/wafregional-regex-match-sets.go @@ -14,7 +14,7 @@ import ( "github.com/ekristen/aws-nuke/pkg/nuke" ) -const WAFRegionalRegexMatchSetResource = "WAFRegionalRegexMatchSet" //nolint:gosec +const WAFRegionalRegexMatchSetResource = "WAFRegionalRegexMatchSet" //nolint:gosec,nolintlint func init() { registry.Register(®istry.Registration{ From 7be03e7f31d049e60673700b396262c1fdccc2a0 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 12:20:40 -0700 Subject: [PATCH 207/617] chore: fixing repetitive -> with fmt.Sprintf --- resources/cognito-userpool-clients.go | 3 ++- resources/cognito-userpool-domains.go | 3 ++- resources/dynamodb-items.go | 3 ++- resources/iam-service-specific-credentials.go | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/resources/cognito-userpool-clients.go b/resources/cognito-userpool-clients.go index df473101..84978918 100644 --- a/resources/cognito-userpool-clients.go +++ b/resources/cognito-userpool-clients.go @@ -2,6 +2,7 @@ package resources import ( "context" + "fmt" "github.com/sirupsen/logrus" @@ -105,5 +106,5 @@ func (p *CognitoUserPoolClient) Properties() types.Properties { } func (p *CognitoUserPoolClient) String() string { - return *p.userPoolName + " -> " + *p.name + return fmt.Sprintf("%s -> %s", *p.userPoolName, *p.name) } diff --git a/resources/cognito-userpool-domains.go b/resources/cognito-userpool-domains.go index 7195c319..fc6263ce 100644 --- a/resources/cognito-userpool-domains.go +++ b/resources/cognito-userpool-domains.go @@ -2,6 +2,7 @@ package resources import ( "context" + "fmt" "github.com/sirupsen/logrus" @@ -85,5 +86,5 @@ func (f *CognitoUserPoolDomain) Remove(_ context.Context) error { } func (f *CognitoUserPoolDomain) String() string { - return *f.userPoolName + " -> " + *f.name + return fmt.Sprintf("%s -> %s", *f.userPoolName, *f.name) } diff --git a/resources/dynamodb-items.go b/resources/dynamodb-items.go index 9d0c54bf..3ff48214 100644 --- a/resources/dynamodb-items.go +++ b/resources/dynamodb-items.go @@ -2,6 +2,7 @@ package resources import ( "context" + "fmt" "strings" @@ -124,5 +125,5 @@ func (i *DynamoDBTableItem) Properties() types.Properties { } func (i *DynamoDBTableItem) String() string { - return i.table.String() + " -> " + i.keyValue + return fmt.Sprintf("%s -> %s", i.table.String(), i.keyValue) } diff --git a/resources/iam-service-specific-credentials.go b/resources/iam-service-specific-credentials.go index 10dd0d9b..5e7368c2 100644 --- a/resources/iam-service-specific-credentials.go +++ b/resources/iam-service-specific-credentials.go @@ -2,6 +2,7 @@ package resources import ( "context" + "fmt" "github.com/sirupsen/logrus" @@ -95,5 +96,5 @@ func (e *IAMServiceSpecificCredential) Properties() types.Properties { } func (e *IAMServiceSpecificCredential) String() string { - return e.userName + " -> " + e.name + return fmt.Sprintf("%s -> %s", e.userName, e.name) } From 238c9856236e9ce9540bd4936d27d4185babb615 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 15:30:14 -0700 Subject: [PATCH 208/617] feat: write log message if s3 bucket deletion is going to take a while --- resources/s3-buckets.go | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/resources/s3-buckets.go b/resources/s3-buckets.go index d091db5d..431872e1 100644 --- a/resources/s3-buckets.go +++ b/resources/s3-buckets.go @@ -2,11 +2,11 @@ package resources import ( "context" - "fmt" "time" "github.com/gotidy/ptr" + "github.com/sirupsen/logrus" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" @@ -118,7 +118,7 @@ type S3Bucket struct { tags []*s3.Tag } -func (e *S3Bucket) Remove(_ context.Context) error { +func (e *S3Bucket) Remove(ctx context.Context) error { _, err := e.svc.DeleteBucketPolicy(&s3.DeleteBucketPolicyInput{ Bucket: &e.name, }) @@ -134,12 +134,12 @@ func (e *S3Bucket) Remove(_ context.Context) error { return err } - err = e.RemoveAllVersions() + err = e.RemoveAllVersions(ctx) if err != nil { return err } - err = e.RemoveAllObjects() + err = e.RemoveAllObjects(ctx) if err != nil { return err } @@ -151,22 +151,22 @@ func (e *S3Bucket) Remove(_ context.Context) error { return err } -func (e *S3Bucket) RemoveAllVersions() error { +func (e *S3Bucket) RemoveAllVersions(ctx context.Context) error { params := &s3.ListObjectVersionsInput{ Bucket: &e.name, } iterator := newS3DeleteVersionListIterator(e.svc, params) - return s3manager.NewBatchDeleteWithClient(e.svc).Delete(aws.BackgroundContext(), iterator) + return s3manager.NewBatchDeleteWithClient(e.svc).Delete(ctx, iterator) } -func (e *S3Bucket) RemoveAllObjects() error { +func (e *S3Bucket) RemoveAllObjects(ctx context.Context) error { params := &s3.ListObjectsInput{ Bucket: &e.name, } iterator := s3manager.NewDeleteListIterator(e.svc, params) - return s3manager.NewBatchDeleteWithClient(e.svc).Delete(aws.BackgroundContext(), iterator) + return s3manager.NewBatchDeleteWithClient(e.svc).Delete(ctx, iterator) } func (e *S3Bucket) Properties() types.Properties { @@ -186,9 +186,10 @@ func (e *S3Bucket) String() string { } type s3DeleteVersionListIterator struct { - Bucket *string - Paginator request.Pagination - objects []*s3.ObjectVersion + Bucket *string + Paginator request.Pagination + objects []*s3.ObjectVersion + lastNotify time.Time } func newS3DeleteVersionListIterator( @@ -213,6 +214,7 @@ func newS3DeleteVersionListIterator( for _, opt := range opts { opt(iter) } + return iter } @@ -234,6 +236,13 @@ func (iter *s3DeleteVersionListIterator) Next() bool { } } + if len(iter.objects) > 500 && (iter.lastNotify.IsZero() || time.Since(iter.lastNotify) > 120*time.Second) { + logrus.Infof( + "S3Bucket: %s - empty bucket operation in progress, this could take a while, please be patient", + *iter.Bucket) + iter.lastNotify = time.Now().UTC() + } + return len(iter.objects) > 0 } From 533bd0e24bfca2836aab346a0173ff6987520572 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 15:45:50 -0700 Subject: [PATCH 209/617] fix: explain config command (#92) * docs: update docs for explain-config * fix: account id determination and rework a couple flags * chore: ignore lint funlen * chore: ignore lint gocyclo --- docs/cli-usage.md | 26 +++++++++------- pkg/commands/config/config.go | 57 ++++++++++++++++++++++++----------- 2 files changed, 55 insertions(+), 28 deletions(-) diff --git a/docs/cli-usage.md b/docs/cli-usage.md index f9be0215..5dff3e68 100644 --- a/docs/cli-usage.md +++ b/docs/cli-usage.md @@ -115,16 +115,15 @@ USAGE: DESCRIPTION: explain the configuration file and the resources that will be nuked for an account that is defined within the configuration. You may either specific an account using the --account-id flag or - leave it empty to use the default account that can be authenticated against. If you want to see the - resource types that will be nuked, use the --with-resource-types flag. If you want to see the resources - that have filters defined, use the --with-resource-filters flag. + leave it empty to use the default account that can be authenticated against. You can optionally list out included, + excluded and resources with filters with their respective with flags. OPTIONS: - --config value, -c value path to config file (default: "config.yaml") - --account-id value the account id to check against the configuration file, if empty, it will use whatever account - can be authenticated against - --with-resource-filters include resource with filters defined in the output (default: false) - --with-resource-types include resource types defined in the output (default: false) + --config value, -c value path to config file (default: "config.yaml") + --account-id value the account id to check against the configuration file, if empty, it will use whatever account can be authenticated against + --with-filtered print out resource types that have filters defined against them (default: false) + --with-included print out the included resource types (default: false) + --with-excluded print out the excluded resource types (default: false) --default-region value the default aws region to use when setting up the aws auth session [$AWS_DEFAULT_REGION] --access-key-id value the aws access key id to use when setting up the aws auth session [$AWS_ACCESS_KEY_ID] --secret-access-key value the aws secret access key to use when setting up the aws auth session [$AWS_SECRET_ACCESS_KEY] @@ -145,10 +144,15 @@ OPTIONS: ```console Configuration Details -Resource Types: 426 +Account ID: 012345678912 +Resource Types: 442 (total) + Included: 429 + Excluded: 13 Filter Presets: 2 Resource Filters: 24 -Note: use --with-resource-filters to see resources with filters defined -Note: use --with-resource-types to see included resource types that will be nuked +Note: use --with-filtered to see resources with filters defined +Note: use --with-included to see included resource types that will be nuked +Note: use --with-excluded to see excluded resource types + ``` diff --git a/pkg/commands/config/config.go b/pkg/commands/config/config.go index a9dc683e..a7de048d 100644 --- a/pkg/commands/config/config.go +++ b/pkg/commands/config/config.go @@ -18,7 +18,7 @@ import ( "github.com/ekristen/aws-nuke/pkg/config" ) -func execute(c *cli.Context) error { +func execute(c *cli.Context) error { //nolint:funlen,gocyclo accountID := c.String("account-id") parsedConfig, err := config.New(libconfig.Options{ @@ -30,7 +30,8 @@ func execute(c *cli.Context) error { return err } - if accountID != "" { + if accountID == "" { + logrus.Info("no account id provided, attempting to authenticate and get account id") creds := nuke.ConfigureCreds(c) if err := creds.Validate(); err != nil { return err @@ -49,7 +50,7 @@ func execute(c *cli.Context) error { accountConfig := parsedConfig.Accounts[accountID] if accountConfig == nil { - return fmt.Errorf("account is not configured in the config file") + return fmt.Errorf("account %s is not configured in the config file", accountID) } // Resolve the resource types to be used for the nuke process based on the parameters, global configuration, and @@ -90,30 +91,49 @@ func execute(c *cli.Context) error { fmt.Printf("Configuration Details\n\n") - fmt.Printf("Resource Types: %d\n", len(resourceTypes)) + fmt.Printf("Account ID: %s\n", accountID) + fmt.Printf("Resource Types: %d (total)\n", len(registry.GetNames())) + fmt.Printf(" Included: %d\n", len(resourceTypes)) + fmt.Printf(" Excluded: %d\n", len(registry.GetNames())-len(resourceTypes)) fmt.Printf("Filter Presets: %d\n", len(accountConfig.Presets)) fmt.Printf("Resource Filters: %d\n", filtersTotal) fmt.Println("") - if c.Bool("with-resource-filters") { + if c.Bool("with-filtered") { fmt.Println("Resources with Filters Defined:") for _, resource := range resourcesWithFilters { fmt.Printf(" %s\n", resource) } fmt.Println("") - } else { - fmt.Printf("Note: use --with-resource-filters to see resources with filters defined\n") } - if c.Bool("with-resource-types") { + if c.Bool("with-included") { fmt.Println("Resource Types:") for _, resourceType := range resourceTypes { fmt.Printf(" %s\n", resourceType) } fmt.Println("") - } else { - fmt.Printf("Note: use --with-resource-types to see included resource types that will be nuked\n") + } + + if c.Bool("with-excluded") { + fmt.Println("Excluded Resource Types:") + for _, resourceType := range registry.GetNames() { + if !slices.Contains(resourceTypes, resourceType) { + fmt.Printf(" %s\n", resourceType) + } + } + fmt.Println("") + } + + if !c.Bool("with-filtered") { + fmt.Printf("Note: use --with-filtered to see resources with filters defined\n") + } + if !c.Bool("with-included") { + fmt.Printf("Note: use --with-included to see included resource types that will be nuked\n") + } + if !c.Bool("with-excluded") { + fmt.Printf("Note: use --with-excluded to see excluded resource types\n") } return nil @@ -132,12 +152,16 @@ func init() { Usage: `the account id to check against the configuration file, if empty, it will use whatever account can be authenticated against`, }, &cli.BoolFlag{ - Name: "with-resource-filters", - Usage: "include resource with filters defined in the output", + Name: "with-filtered", + Usage: "print out resource types that have filters defined against them", + }, + &cli.BoolFlag{ + Name: "with-included", + Usage: "print out the included resource types", }, &cli.BoolFlag{ - Name: "with-resource-types", - Usage: "include resource types defined in the output", + Name: "with-excluded", + Usage: "print out the excluded resource types", }, &cli.StringFlag{ Name: "default-region", @@ -186,9 +210,8 @@ func init() { Usage: "explain the configuration file and the resources that will be nuked for an account", Description: `explain the configuration file and the resources that will be nuked for an account that is defined within the configuration. You may either specific an account using the --account-id flag or -leave it empty to use the default account that can be authenticated against. If you want to see the -resource types that will be nuked, use the --with-resource-types flag. If you want to see the resources -that have filters defined, use the --with-resource-filters flag.`, +leave it empty to use the default account that can be authenticated against. You can optionally list out included, +excluded and resources with filters with their respective with flags.`, Flags: append(flags, global.Flags()...), Before: global.Before, Action: execute, From 5bb9e8cd37f5aaf51d4ac1d2f200d2fedf61ddfc Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 16:22:04 -0700 Subject: [PATCH 210/617] ci: adjust timeout for golangci-lint run (#95) --- .github/workflows/golangci-lint.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 80ce3ecc..8f4ac75b 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -18,4 +18,6 @@ jobs: go-version: '1.21.x' cache: false - name: golangci-lint - uses: golangci/golangci-lint-action@v4 \ No newline at end of file + uses: golangci/golangci-lint-action@v4 + with: + args: --timeout=10m \ No newline at end of file From 0915a23787d0e60d3ba9df159a0fa18c87401f12 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 16:22:16 -0700 Subject: [PATCH 211/617] docs: update CONTRIBUTING.md file (#93) --- CONTRIBUTING.md | 149 ++++++++++++++++++++++++++++++------------------ 1 file changed, 95 insertions(+), 54 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 67a2e1da..8b776724 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,55 +2,42 @@ Thank you for wanting to contribute to *aws-nuke*. -Because of the amount of AWS services and their rate of change, we rely on your -participation. For the same reason we can only act retroactive on changes of -AWS services. Otherwise it would be a fulltime job to keep up with AWS. +Because of the amount of AWS services and their rate of change, we rely on your participation. For the same reason we +can only act retroactive on changes of AWS services. Otherwise, it would be a full time job to keep up with AWS. ## How Can I Contribute? ### Some Resource Is Not Supported by *aws-nuke* -If a resource is not yet supported by *aws-nuke*, you have two options to -resolve this: +If a resource is not yet supported by *aws-nuke*, you have two options to resolve this: -* File [an issue](https://github.com/rebuy-de/aws-nuke/issues/new) and describe - which resource is missing. This way someone can take care of it. -* Add the resource yourself and open a Pull Request. Please follow the - guidelines below to see how to create such a resource. +* File [an issue](https://github.com/rebuy-de/aws-nuke/issues/new) and describe which resource is missing. This way someone can take care of it. +* Add the resource yourself and open a Pull Request. Please follow the guidelines below to see how to create + such a resource. ### Some Resource Does Not Get Deleted Please check the following points before creating a bug issue: -* Is the resource actually supported by *aws-nuke*? If not, please follow the - guidelines above. -* Are there permission problems? In this case *aws-nuke* will print errors - that usually contain the status code `403`. -* Did you just get scared by an error that was printed? *aws-nuke* does not - know about dependencies between resources. To work around this it will just - retry deleting all resources in multiple iterations. Therefore it is normal - that there are a lot of dependency errors in the first one. The iterations - are separated by lines starting with `Removal requested:` and only the - errors in the last block indicate actual errros. - -File [an issue](https://github.com/rebuy-de/aws-nuke/issues/new) and describe -as accurately as possible how to generate the resource on AWS that cause the -errors in *aws-nuke*. Ideally this is provided in a reproducible way like -a Terraform template or AWS CLI commands. +* Is the resource actually supported by *aws-nuke*? If not, please follow the guidelines above. +* Are there permission problems? In this case *aws-nuke* will print errors that usually contain the status code `403`. +* Did you just get scared by an error that was printed? *aws-nuke* does not know about dependencies between resources. + To work around this it will just retry deleting all resources in multiple iterations. Therefore, it is normal that + there are a lot of dependency errors in the first one. The iterations are separated by lines starting with + `Removal requested:` and only the errors in the last block indicate actual errors. + +File [an issue](https://github.com/rebuy-de/aws-nuke/issues/new) and describe as accurately as possible how to generate the resource on AWS that cause the +errors in *aws-nuke*. Ideally this is provided in a reproducible way like a Terraform template or AWS CLI commands. ### I Have Ideas to Improve *aws-nuke* You should take these steps if you have an idea how to improve *aws-nuke*: -1. Check the [issues page](https://github.com/rebuy-de/aws-nuke/issues), - whether someone already had the same or a similar idea. -2. Also check the [closed - issues](https://github.com/rebuy-de/aws-nuke/issues?utf8=%E2%9C%93&q=is%3Aissue), - because this might have already been implemented, but not yet released. Also - the idea might not be viable for unobvious reasons. -3. Join the discussion, if there is already an related issue. If this is not - the case, open a new issue and describe your idea. Afterwards, we can - discuss this idea and form a proposal. +1. Check the [issues page](https://github.com/rebuy-de/aws-nuke/issues), whether someone already had the same or a similar idea. +2. Also check the [closed issues](https://github.com/rebuy-de/aws-nuke/issues?utf8=%E2%9C%93&q=is%3Aissue), because this might have already been implemented, but not yet released. Also, + the idea might not be viable for obvious reasons. +3. Join the discussion, if there is already a related issue. If this is not the case, open a new issue and describe + your idea. Afterward, we can discuss this idea and form a proposal. ### I Just Have a Question @@ -58,36 +45,41 @@ Please use [GitHub Discussions](https://github.com/ekristen/aws-nuke/discussions ## Resource Guidelines +### Tooling + +Checkout the documentation around [resources](https://ekristen.github.io/aws-nuke/resources/) as it provides resource +format and a tool to help generate the resource. + ### Consider Pagination Most AWS resources are paginated and all resources should handle that. ### Use Properties Instead of String Functions -Currently, each resource can offer two functions to describe itself, that are -used by the user to identify it and by *aws-nuke* to filter it. +Currently, each resource can offer two functions to describe itself, that are used by the user to identify it and by +*aws-nuke* to filter it. The String function is deprecated: -```go -String() string +```golang +func (r *Resource) String() string ``` The Properties function should be used instead: -```go -Properties() types.Properties +```golang +func (r *Resource) Properties() types.Properties ``` -The interface for the String function is still there, because not all resources -are migrated yet. Please use the Properties function for new resources. +**Note:** The interface for the String function is still there, because not all resources are migrated yet. Please use +the Properties function for new resources. ### Filter Resources That Cannot Get Removed Some AWS APIs list resources, that cannot be deleted. For example: -* Resources that are already deleted, but still listed for some time (eg EC2 Instances). -* Resources that are created by AWS, but cannot be deleted by the user (eg some IAM Roles). +* Resources that are already deleted, but still listed for some time (e.g. EC2 Instances) +* Resources that are created by AWS, but cannot be deleted by the user (e.g. some IAM Roles) Those resources should be excluded in the filter step, rather than in the list step. @@ -95,19 +87,69 @@ Those resources should be excluded in the filter step, rather than in the list s ### Go +#### golangci-lint + +There is an extensive golangci-lint configuration in the repository. Please make sure to run `golangci-lint run` before +committing any changes. + #### Code Format -Like almost all Go projects, we are using `go fmt` as a single source of truth -for formatting the source code. Please use `go fmt` before committing any -change. +Like almost all Go projects, we are using `go fmt` as a single source of truth for formatting the source code. Please +use `go fmt` before committing any change. + +#### Import Format + +1. Standard library imports +2. Third party imports +3. AWS SDK imports +4. ekristen/libnuke imports +5. Local package imports + +##### Example Import Format + +```golang +package example + +import ( + "context" + + "github.com/sirupsen/logrus" + + "github.com/aws/aws-sdk-go-v2/aws" + "github.com/aws/aws-sdk-go-v2/service/s3" + + "github.com/ekristen/libnuke/pkg/settings" + + "github.com/ekristen/aws-nuke/pkg/types" +) +``` ### Git +#### Pull Requests + +We default to squash merge pull requests. This means that the commit history of the pull request will be squashed into a +single commit and then merged into the main branch. This keeps the commit history clean and easy to read. + +#### Commits + +We are using the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) specification for our commit +messages. This allows us to automatically generate a changelog and version numbers. + +All commits in a pull request must follow this format or the GitHub Actions will fail. + +#### Signed Commits + +We require that all commits be signed. + +```console +git config --global commit.gpgsign true +``` + #### Setup Email -We prefer having the commit linked to the GitHub account, that is creating the -Pull Request. To make this happen, *git* must be configured with an email, that -is registered with a GitHub account. +We prefer having the commit linked to the GitHub account, that is creating the Pull Request. To make this happen, +*git* must be configured with an email, that is registered with a GitHub account. To set the email for all git commits, you can use this command: @@ -115,9 +157,8 @@ To set the email for all git commits, you can use this command: git config --global user.email "email@example.com" ``` -If you want to change the email only for the *aws-nuke* repository, you can -skip the `--global` flag. You have to make sure that you are executing this in -the *aws-nuke* directory: +If you want to change the email only for the *aws-nuke* repository, you can skip the `--global` flag. You have to +make sure that you are executing this in the *aws-nuke* directory: ```bash git config user.email "email@example.com" @@ -129,5 +170,5 @@ If you already committed something with a wrong email, you can use this command: git commit --amend --author="Author Name " ``` -This changes the email of the lastest commit. If you have multiple commits in -your branch, please squash them and change the author afterwards. +This changes the email of the latest commit. If you have multiple commits in your branch, please squash them and +change the author afterwards. From 68e54595b2dfaff5a2b22a315aeefdbf567f59de Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 16:22:58 -0700 Subject: [PATCH 212/617] fix(resource/ecrpublicrepository): only run if region is us-east-1 (#94) --- resources/ecr-public-repository.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/resources/ecr-public-repository.go b/resources/ecr-public-repository.go index b26bb878..865551e5 100644 --- a/resources/ecr-public-repository.go +++ b/resources/ecr-public-repository.go @@ -2,6 +2,7 @@ package resources import ( "context" + "github.com/aws/aws-sdk-go/aws/endpoints" "time" @@ -36,6 +37,11 @@ func (l *ECRPublicRepositoryLister) List(_ context.Context, o interface{}) ([]re svc := ecrpublic.New(opts.Session) var resources []resource.Resource + // ECRPublicRepository is only supported in us-east-1, only run if the region is us-east-1 + if opts.Session.Config.Region == nil || *opts.Session.Config.Region != endpoints.UsEast1RegionID { + return resources, nil + } + input := &ecrpublic.DescribeRepositoriesInput{ MaxResults: aws.Int64(100), } From 932ae96a3e5e8e99822ff2ca5ad320c99902dd1d Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 16:39:40 -0700 Subject: [PATCH 213/617] docs: update README version 3 changes (#96) --- README.md | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 383864fd..e7b91452 100644 --- a/README.md +++ b/README.md @@ -12,20 +12,30 @@ Remove all resources from an AWS account. *aws-nuke* is stable, but it is likely that not all AWS resources are covered by it. Be encouraged to add missing resources and create a Pull Request or to create an [Issue](https://github.com/ekristen/aws-nuke/issues/new). -## What's New in Version 3! +## What's New in Version 3 Version 3 is a rewrite of this tool using [libnuke](https://github.com/ekristen/libnuke) with a focus on improving a number of the outstanding things that I couldn't get done with the original project without separating out the core code into a library. See Goals below for more. -### Notable Changes - -- The root command will result in help now, the primary nuke command moved to `run` (alias: `nuke`). **Breaking Change** -- CloudFormation Stacks now support a hold and wait for parent deletion process. **New Behavior, Breaking Change** -- Nested CloudFormation Stacks are now eligible for deletion and no longer omitted. **New Behavior, Breaking Change** -- The entire resource lister format has changed and requires a struct to allow for more options going forward. -- Context is passed throughout the entire library now, including the listing function and the removal function. - - This is in preparation for supporting AWS SDK Go v2 +This is not a comprehensive list, but here are some of the highlights: + +* New Feature: Signed Darwin Binaries for MacOS +* New Feature: Published Homebrew Tap (ekristen/tap/aws-nuke@3) +* New Feature: Global Filters +* New Feature: Run Against All Enabled Regions +* New Feature: Explain Account and Explain Config Commands +* Upcoming Feature: Filter Groups (**in progress**) +* Breaking Change: `root` command no longer triggers the run, must use subcommand `run` (alias: `nuke`) +* Breaking Change: CloudFormation Stacks now support a hold and wait for parent deletion process +* Breaking Change: Nested CloudFormation Stacks are now eligible for deletion and no longer omitted +* Completely rewrote the core of the tool as a dedicated library [libnuke](https://github.com/ekristen/libnuke) + * This library has over 95% test coverage which makes iteration and new features easier to implement. +* Semantic Releases with notifications on issues / pull requests +* Context is passed throughout the entire library now, including the listing function and the removal function + * This is in preparation for supporting AWS SDK Go v2 +* New Resources +* Broke away from rebuy-de/aws-nuke project as a fork for reasons outlined in the history section ### Goals From e51aaca7f5c08297f410c75517b7d47ad8fbaeaa Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 16:48:59 -0700 Subject: [PATCH 214/617] fix: revert property change from an earlier pull request (#97) * fix: revert property change from an earlier pull request * chore: fix golangci-lint violation goimports --- resources/apprunner-service.go | 4 ++-- resources/ecr-public-repository.go | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/resources/apprunner-service.go b/resources/apprunner-service.go index 691f1f58..ed35f1fe 100644 --- a/resources/apprunner-service.go +++ b/resources/apprunner-service.go @@ -74,8 +74,8 @@ func (f *AppRunnerService) Remove(_ context.Context) error { func (f *AppRunnerService) Properties() types.Properties { properties := types.NewProperties() - properties.Set("ServiceARN", f.ServiceARN) - properties.Set("ServiceID", f.ServiceID) + properties.Set("ServiceArn", f.ServiceARN) + properties.Set("ServiceId", f.ServiceID) properties.Set("ServiceName", f.ServiceName) return properties } diff --git a/resources/ecr-public-repository.go b/resources/ecr-public-repository.go index 865551e5..100ff2db 100644 --- a/resources/ecr-public-repository.go +++ b/resources/ecr-public-repository.go @@ -2,11 +2,10 @@ package resources import ( "context" - "github.com/aws/aws-sdk-go/aws/endpoints" - "time" "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/endpoints" "github.com/aws/aws-sdk-go/service/ecrpublic" "github.com/ekristen/libnuke/pkg/registry" From b9bb5fd92182fabdf16d518530f3af3d0dad5311 Mon Sep 17 00:00:00 2001 From: Andrew Burchill Date: Thu, 8 Feb 2024 16:36:00 +1100 Subject: [PATCH 215/617] feat(IAMRolesAnywhere): add support for IAM RolesAnywhere TrustAnchors, Profiles, and CRLs --- resources/iam-rolesanywhere-crls.go | 64 ++++++++++++++++++++ resources/iam-rolesanywhere-profiles.go | 64 ++++++++++++++++++++ resources/iam-rolesanywhere-trust-anchors.go | 64 ++++++++++++++++++++ 3 files changed, 192 insertions(+) create mode 100644 resources/iam-rolesanywhere-crls.go create mode 100644 resources/iam-rolesanywhere-profiles.go create mode 100644 resources/iam-rolesanywhere-trust-anchors.go diff --git a/resources/iam-rolesanywhere-crls.go b/resources/iam-rolesanywhere-crls.go new file mode 100644 index 00000000..d4e4a09c --- /dev/null +++ b/resources/iam-rolesanywhere-crls.go @@ -0,0 +1,64 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/rolesanywhere" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type Crl struct { + svc *rolesanywhere.RolesAnywhere + CrlId string +} + +func init() { + register("IAMRolesAnywhereCrls", ListCRLs) +} + +func ListCRLs(sess *session.Session) ([]Resource, error) { + svc := rolesanywhere.New(sess) + + params := &rolesanywhere.ListCrlsInput{} + resources := make([]Resource, 0) + + for { + resp, err := svc.ListCrls(params) + if err != nil { + return nil, err + } + for _, crl := range resp.Crls { + resources = append(resources, &Crl{ + svc: svc, + CrlId: *crl.CrlId, + }) + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken + } + + return resources, nil +} + +func (e *Crl) Remove() error { + _, err := e.svc.DeleteCrl(&rolesanywhere.DeleteCrlInput{ + CrlId: &e.CrlId, + }) + if err != nil { + return err + } + + return nil +} + +func (e *Crl) String() string { + return e.CrlId +} + +func (e *Crl) Properties() types.Properties { + return types.NewProperties(). + Set("CrlId", e.CrlId) +} diff --git a/resources/iam-rolesanywhere-profiles.go b/resources/iam-rolesanywhere-profiles.go new file mode 100644 index 00000000..37e6e434 --- /dev/null +++ b/resources/iam-rolesanywhere-profiles.go @@ -0,0 +1,64 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/rolesanywhere" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type Profile struct { + svc *rolesanywhere.RolesAnywhere + ProfileId string +} + +func init() { + register("IAMRolesAnywhereProfiles", ListProfiles) +} + +func ListProfiles(sess *session.Session) ([]Resource, error) { + svc := rolesanywhere.New(sess) + + params := &rolesanywhere.ListProfilesInput{} + resources := make([]Resource, 0) + + for { + resp, err := svc.ListProfiles(params) + if err != nil { + return nil, err + } + for _, profile := range resp.Profiles { + resources = append(resources, &Profile{ + svc: svc, + ProfileId: *profile.ProfileId, + }) + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken + } + + return resources, nil +} + +func (e *Profile) Remove() error { + _, err := e.svc.DeleteProfile(&rolesanywhere.DeleteProfileInput{ + ProfileId: &e.ProfileId, + }) + if err != nil { + return err + } + + return nil +} + +func (e *Profile) String() string { + return e.ProfileId +} + +func (e *Profile) Properties() types.Properties { + return types.NewProperties(). + Set("ProfileId", e.ProfileId) +} diff --git a/resources/iam-rolesanywhere-trust-anchors.go b/resources/iam-rolesanywhere-trust-anchors.go new file mode 100644 index 00000000..c9f82300 --- /dev/null +++ b/resources/iam-rolesanywhere-trust-anchors.go @@ -0,0 +1,64 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/rolesanywhere" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type TrustAnchor struct { + svc *rolesanywhere.RolesAnywhere + TrustAnchorId string +} + +func init() { + register("IAMRolesAnywhereTrustAnchors", ListTrustAnchors) +} + +func ListTrustAnchors(sess *session.Session) ([]Resource, error) { + svc := rolesanywhere.New(sess) + + params := &rolesanywhere.ListTrustAnchorsInput{} + resources := make([]Resource, 0) + + for { + resp, err := svc.ListTrustAnchors(params) + if err != nil { + return nil, err + } + for _, trustAnchor := range resp.TrustAnchors { + resources = append(resources, &TrustAnchor{ + svc: svc, + TrustAnchorId: *trustAnchor.TrustAnchorId, + }) + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken + } + + return resources, nil +} + +func (e *TrustAnchor) Remove() error { + _, err := e.svc.DeleteTrustAnchor(&rolesanywhere.DeleteTrustAnchorInput{ + TrustAnchorId: &e.TrustAnchorId, + }) + if err != nil { + return err + } + + return nil +} + +func (e *TrustAnchor) String() string { + return e.TrustAnchorId +} + +func (e *TrustAnchor) Properties() types.Properties { + return types.NewProperties(). + Set("TrustAnchorId", e.TrustAnchorId) +} From 693d2d2a7626729b256d204992bfe6bbb1c858e9 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 17:06:26 -0700 Subject: [PATCH 216/617] chore: refactor to libnuke resource format --- resources/iam-rolesanywhere-crls.go | 52 +++++++++++++------- resources/iam-rolesanywhere-profiles.go | 52 +++++++++++++------- resources/iam-rolesanywhere-trust-anchors.go | 52 +++++++++++++------- 3 files changed, 102 insertions(+), 54 deletions(-) diff --git a/resources/iam-rolesanywhere-crls.go b/resources/iam-rolesanywhere-crls.go index d4e4a09c..16ebda3c 100644 --- a/resources/iam-rolesanywhere-crls.go +++ b/resources/iam-rolesanywhere-crls.go @@ -1,25 +1,41 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/aws/aws-sdk-go/service/rolesanywhere" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" ) -type Crl struct { - svc *rolesanywhere.RolesAnywhere - CrlId string +type IAMRolesAnywhereCRL struct { + svc *rolesanywhere.RolesAnywhere + CrlID string } +const IAMRolesAnywhereCRLResource = "IAMRolesAnywhereCRL" + func init() { - register("IAMRolesAnywhereCrls", ListCRLs) + registry.Register(®istry.Registration{ + Name: IAMRolesAnywhereCRLResource, + Scope: nuke.Account, + Lister: &IAMRolesAnywhereCRLLister{}, + }) } -func ListCRLs(sess *session.Session) ([]Resource, error) { - svc := rolesanywhere.New(sess) +type IAMRolesAnywhereCRLLister struct{} + +func (l *IAMRolesAnywhereCRLLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := rolesanywhere.New(opts.Session) params := &rolesanywhere.ListCrlsInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { resp, err := svc.ListCrls(params) @@ -27,9 +43,9 @@ func ListCRLs(sess *session.Session) ([]Resource, error) { return nil, err } for _, crl := range resp.Crls { - resources = append(resources, &Crl{ - svc: svc, - CrlId: *crl.CrlId, + resources = append(resources, &IAMRolesAnywhereCRL{ + svc: svc, + CrlID: *crl.CrlId, }) } @@ -43,9 +59,9 @@ func ListCRLs(sess *session.Session) ([]Resource, error) { return resources, nil } -func (e *Crl) Remove() error { +func (e *IAMRolesAnywhereCRL) Remove(_ context.Context) error { _, err := e.svc.DeleteCrl(&rolesanywhere.DeleteCrlInput{ - CrlId: &e.CrlId, + CrlId: &e.CrlID, }) if err != nil { return err @@ -54,11 +70,11 @@ func (e *Crl) Remove() error { return nil } -func (e *Crl) String() string { - return e.CrlId +func (e *IAMRolesAnywhereCRL) String() string { + return e.CrlID } -func (e *Crl) Properties() types.Properties { +func (e *IAMRolesAnywhereCRL) Properties() types.Properties { return types.NewProperties(). - Set("CrlId", e.CrlId) + Set("CrlId", e.CrlID) } diff --git a/resources/iam-rolesanywhere-profiles.go b/resources/iam-rolesanywhere-profiles.go index 37e6e434..042ab7a9 100644 --- a/resources/iam-rolesanywhere-profiles.go +++ b/resources/iam-rolesanywhere-profiles.go @@ -1,25 +1,41 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/rolesanywhere" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type Profile struct { - svc *rolesanywhere.RolesAnywhere - ProfileId string +type IAMRolesAnywhereProfile struct { + svc *rolesanywhere.RolesAnywhere + ProfileID string } +const IAMRolesAnywhereProfilesResource = "IAMRolesAnywhereProfile" + func init() { - register("IAMRolesAnywhereProfiles", ListProfiles) + registry.Register(®istry.Registration{ + Name: IAMRolesAnywhereProfilesResource, + Scope: nuke.Account, + Lister: &IAMRolesAnywhereProfilesLister{}, + }) } -func ListProfiles(sess *session.Session) ([]Resource, error) { - svc := rolesanywhere.New(sess) +type IAMRolesAnywhereProfilesLister struct{} + +func (l *IAMRolesAnywhereProfilesLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := rolesanywhere.New(opts.Session) params := &rolesanywhere.ListProfilesInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { resp, err := svc.ListProfiles(params) @@ -27,9 +43,9 @@ func ListProfiles(sess *session.Session) ([]Resource, error) { return nil, err } for _, profile := range resp.Profiles { - resources = append(resources, &Profile{ - svc: svc, - ProfileId: *profile.ProfileId, + resources = append(resources, &IAMRolesAnywhereProfile{ + svc: svc, + ProfileID: *profile.ProfileId, }) } @@ -43,9 +59,9 @@ func ListProfiles(sess *session.Session) ([]Resource, error) { return resources, nil } -func (e *Profile) Remove() error { +func (e *IAMRolesAnywhereProfile) Remove(_ context.Context) error { _, err := e.svc.DeleteProfile(&rolesanywhere.DeleteProfileInput{ - ProfileId: &e.ProfileId, + ProfileId: &e.ProfileID, }) if err != nil { return err @@ -54,11 +70,11 @@ func (e *Profile) Remove() error { return nil } -func (e *Profile) String() string { - return e.ProfileId +func (e *IAMRolesAnywhereProfile) String() string { + return e.ProfileID } -func (e *Profile) Properties() types.Properties { +func (e *IAMRolesAnywhereProfile) Properties() types.Properties { return types.NewProperties(). - Set("ProfileId", e.ProfileId) + Set("ProfileId", e.ProfileID) } diff --git a/resources/iam-rolesanywhere-trust-anchors.go b/resources/iam-rolesanywhere-trust-anchors.go index c9f82300..f31a56b1 100644 --- a/resources/iam-rolesanywhere-trust-anchors.go +++ b/resources/iam-rolesanywhere-trust-anchors.go @@ -1,25 +1,41 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/rolesanywhere" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type TrustAnchor struct { - svc *rolesanywhere.RolesAnywhere - TrustAnchorId string +type IAMRolesAnywhereTrustAnchor struct { + svc *rolesanywhere.RolesAnywhere + TrustAnchorID string } +const IAMRolesAnywhereTrustAnchorResource = "IAMRolesAnywhereTrustAnchor" + func init() { - register("IAMRolesAnywhereTrustAnchors", ListTrustAnchors) + registry.Register(®istry.Registration{ + Name: IAMRolesAnywhereTrustAnchorResource, + Scope: nuke.Account, + Lister: &IAMRolesAnywhereTrustAnchorLister{}, + }) } -func ListTrustAnchors(sess *session.Session) ([]Resource, error) { - svc := rolesanywhere.New(sess) +type IAMRolesAnywhereTrustAnchorLister struct{} + +func (l *IAMRolesAnywhereTrustAnchorLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := rolesanywhere.New(opts.Session) params := &rolesanywhere.ListTrustAnchorsInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for { resp, err := svc.ListTrustAnchors(params) @@ -27,9 +43,9 @@ func ListTrustAnchors(sess *session.Session) ([]Resource, error) { return nil, err } for _, trustAnchor := range resp.TrustAnchors { - resources = append(resources, &TrustAnchor{ - svc: svc, - TrustAnchorId: *trustAnchor.TrustAnchorId, + resources = append(resources, &IAMRolesAnywhereTrustAnchor{ + svc: svc, + TrustAnchorID: *trustAnchor.TrustAnchorId, }) } @@ -43,9 +59,9 @@ func ListTrustAnchors(sess *session.Session) ([]Resource, error) { return resources, nil } -func (e *TrustAnchor) Remove() error { +func (e *IAMRolesAnywhereTrustAnchor) Remove(_ context.Context) error { _, err := e.svc.DeleteTrustAnchor(&rolesanywhere.DeleteTrustAnchorInput{ - TrustAnchorId: &e.TrustAnchorId, + TrustAnchorId: &e.TrustAnchorID, }) if err != nil { return err @@ -54,11 +70,11 @@ func (e *TrustAnchor) Remove() error { return nil } -func (e *TrustAnchor) String() string { - return e.TrustAnchorId +func (e *IAMRolesAnywhereTrustAnchor) String() string { + return e.TrustAnchorID } -func (e *TrustAnchor) Properties() types.Properties { +func (e *IAMRolesAnywhereTrustAnchor) Properties() types.Properties { return types.NewProperties(). - Set("TrustAnchorId", e.TrustAnchorId) + Set("TrustAnchorId", e.TrustAnchorID) } From 625ea11fa4b56197fe58d9c28ad38320fce7da08 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 17:42:38 -0700 Subject: [PATCH 217/617] feat(EC2VPCEndpointServiceConfiguration): add tags to properties (#100) --- resources/ec2-vpc-endpoint-service-configurations.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/resources/ec2-vpc-endpoint-service-configurations.go b/resources/ec2-vpc-endpoint-service-configurations.go index 99e34774..8767791a 100644 --- a/resources/ec2-vpc-endpoint-service-configurations.go +++ b/resources/ec2-vpc-endpoint-service-configurations.go @@ -45,6 +45,7 @@ func (l *EC2VPCEndpointServiceConfigurationLister) List(_ context.Context, o int svc: svc, id: serviceConfig.ServiceId, name: serviceConfig.ServiceName, + tags: serviceConfig.Tags, }) } @@ -62,6 +63,7 @@ type EC2VPCEndpointServiceConfiguration struct { svc *ec2.EC2 id *string name *string + tags []*ec2.Tag } func (e *EC2VPCEndpointServiceConfiguration) Remove(_ context.Context) error { @@ -73,12 +75,19 @@ func (e *EC2VPCEndpointServiceConfiguration) Remove(_ context.Context) error { if err != nil { return err } + return nil } func (e *EC2VPCEndpointServiceConfiguration) Properties() types.Properties { properties := types.NewProperties() + properties.Set("ID", e.id) properties.Set("Name", e.name) + + for _, tag := range e.tags { + properties.SetTag(tag.Key, tag.Value) + } + return properties } From fde304d181739de162b4a4cd81e397706daff7e3 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 17:54:45 -0700 Subject: [PATCH 218/617] ci: update renovate config format --- .github/renovate.json | 38 +++++++++++--------------------------- 1 file changed, 11 insertions(+), 27 deletions(-) diff --git a/.github/renovate.json b/.github/renovate.json index 63a72137..07ba84d3 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -1,33 +1,20 @@ { - "extends": [ - "config:base" - ], + "extends": ["config:recommended"], "packageRules": [ { - "matchManagers": [ - "dockerfile" - ], - "matchUpdateTypes": [ - "pin", - "digest" - ], + "matchManagers": ["dockerfile"], + "matchUpdateTypes": ["pin", "digest"], "automerge": true, "automergeStrategy": "squash" }, { - "matchPackagePatterns": [ - "^golang.*" - ], + "matchPackagePatterns": ["^golang.*"], "groupName": "golang", "groupSlug": "golang" }, { - "matchFileNames": [ - ".github/workflows/*.yml" - ], - "matchDepTypes": [ - "action" - ], + "matchFileNames": [".github/workflows/*.yml"], + "matchDepTypes": ["action"], "matchCurrentVersion": "!/^0/", "automerge": true, "automergeStrategy": "squash", @@ -35,16 +22,13 @@ "commitMessageSuffix": " [release skip]" } ], - "regexManagers": [ + "customManagers": [ { - "fileMatch": [ - "^.github/workflows/.*" - ], - "matchStrings": [ - "go-version: (?.*?)\n" - ], + "customType": "regex", + "fileMatch": ["^.github/workflows/.*"], + "matchStrings": ["go-version: (?.*?)\n"], "depNameTemplate": "golang", "datasourceTemplate": "docker" } ] -} \ No newline at end of file +} From e1b0e235eb1a4917a5088e3a53395326ed8f4d70 Mon Sep 17 00:00:00 2001 From: Solomon Wakhungu Date: Wed, 20 Dec 2023 13:13:14 -0600 Subject: [PATCH 219/617] feat(NetworkManager): add core network resources --- resources/networkmanager-connect-peers.go | 74 ++++++++++++++++ resources/networkmanager-core-network.go | 76 ++++++++++++++++ resources/networkmanager-global-network.go | 86 +++++++++++++++++++ .../networkmanager-network-attachments.go | 76 ++++++++++++++++ 4 files changed, 312 insertions(+) create mode 100644 resources/networkmanager-connect-peers.go create mode 100644 resources/networkmanager-core-network.go create mode 100644 resources/networkmanager-global-network.go create mode 100644 resources/networkmanager-network-attachments.go diff --git a/resources/networkmanager-connect-peers.go b/resources/networkmanager-connect-peers.go new file mode 100644 index 00000000..ef6ef692 --- /dev/null +++ b/resources/networkmanager-connect-peers.go @@ -0,0 +1,74 @@ +package resources + +import ( + "fmt" + "strings" + + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/networkmanager" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type NetworkManagerConnectPeer struct { + svc *networkmanager.NetworkManager + peer *networkmanager.ConnectPeerSummary +} + +func init() { + register("NetworkManagerConnectPeer", ListNetworkManagerConnectPeers) +} + +func ListNetworkManagerConnectPeers(sess *session.Session) ([]Resource, error) { + svc := networkmanager.New(sess) + params := &networkmanager.ListConnectPeersInput{} + resources := make([]Resource, 0) + + resp, err := svc.ListConnectPeers(params) + if err != nil { + return nil, err + } + + for _, connectPeer := range resp.ConnectPeers { + resources = append(resources, &NetworkManagerConnectPeer{ + svc: svc, + peer: connectPeer, + }) + } + + return resources, nil +} + +func (n *NetworkManagerConnectPeer) Remove() error { + params := &networkmanager.DeleteConnectPeerInput{ + ConnectPeerId: n.peer.ConnectPeerId, + } + + _, err := n.svc.DeleteConnectPeer(params) + if err != nil { + return err + } + + return nil + +} + +func (n *NetworkManagerConnectPeer) Filter() error { + if strings.ToLower(*n.peer.ConnectPeerState) == "deleted" { + return fmt.Errorf("already deleted") + } + + return nil +} + +func (n *NetworkManagerConnectPeer) Properties() types.Properties { + properties := types.NewProperties() + for _, tagValue := range n.peer.Tags { + properties.SetTag(tagValue.Key, tagValue.Value) + } + properties.Set("ID", n.peer.ConnectPeerId) + return properties +} + +func (n *NetworkManagerConnectPeer) String() string { + return *n.peer.ConnectPeerId +} diff --git a/resources/networkmanager-core-network.go b/resources/networkmanager-core-network.go new file mode 100644 index 00000000..323bae12 --- /dev/null +++ b/resources/networkmanager-core-network.go @@ -0,0 +1,76 @@ +package resources + +import ( + "fmt" + "strings" + + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/networkmanager" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type NetworkManagerCoreNetwork struct { + svc *networkmanager.NetworkManager + network *networkmanager.CoreNetworkSummary +} + +func init() { + register("NetworkManagerCoreNetwork", ListNetworkManagerCoreNetworks) +} + +func ListNetworkManagerCoreNetworks(sess *session.Session) ([]Resource, error) { + svc := networkmanager.New(sess) + params := &networkmanager.ListCoreNetworksInput{} + resources := make([]Resource, 0) + + resp, err := svc.ListCoreNetworks(params) + if err != nil { + return nil, err + } + + for _, network := range resp.CoreNetworks { + resources = append(resources, &NetworkManagerCoreNetwork{ + svc: svc, + network: network, + }) + } + + return resources, nil +} + +func (n *NetworkManagerCoreNetwork) Remove() error { + params := &networkmanager.DeleteCoreNetworkInput{ + CoreNetworkId: n.network.CoreNetworkId, + } + + _, err := n.svc.DeleteCoreNetwork(params) + if err != nil { + return err + } + + return nil + +} + +func (n *NetworkManagerCoreNetwork) Filter() error { + if strings.ToLower(*n.network.State) == "deleted" { + return fmt.Errorf("already deleted") + } + + return nil +} + +func (n *NetworkManagerCoreNetwork) Properties() types.Properties { + properties := types.NewProperties() + for _, tagValue := range n.network.Tags { + properties.SetTag(tagValue.Key, tagValue.Value) + } + properties. + Set("ID", n.network.CoreNetworkId). + Set("ARN", n.network.CoreNetworkArn) + return properties +} + +func (n *NetworkManagerCoreNetwork) String() string { + return *n.network.CoreNetworkId +} diff --git a/resources/networkmanager-global-network.go b/resources/networkmanager-global-network.go new file mode 100644 index 00000000..5f2bef71 --- /dev/null +++ b/resources/networkmanager-global-network.go @@ -0,0 +1,86 @@ +package resources + +import ( + "fmt" + "strings" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/networkmanager" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type NetworkManagerGlobalNetwork struct { + svc *networkmanager.NetworkManager + network *networkmanager.GlobalNetwork +} + +func init() { + register("NetworkManagerGlobalNetwork", ListNetworkManagerGlobalNetworks) +} + +func ListNetworkManagerGlobalNetworks(sess *session.Session) ([]Resource, error) { + svc := networkmanager.New(sess) + resources := []Resource{} + + params := &networkmanager.DescribeGlobalNetworksInput{ + MaxResults: aws.Int64(100), + } + + for { + resp, err := svc.DescribeGlobalNetworks(params) + if err != nil { + return nil, err + } + + for _, network := range resp.GlobalNetworks { + resources = append(resources, &NetworkManagerGlobalNetwork{ + svc: svc, + network: network, + }) + } + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken + } + return resources, nil +} + +func (n *NetworkManagerGlobalNetwork) Remove() error { + params := &networkmanager.DeleteGlobalNetworkInput{ + GlobalNetworkId: n.network.GlobalNetworkId, + } + + _, err := n.svc.DeleteGlobalNetwork(params) + if err != nil { + return err + } + + return nil + +} + +func (n *NetworkManagerGlobalNetwork) Filter() error { + if strings.ToLower(*n.network.State) == "deleted" { + return fmt.Errorf("already deleted") + } + + return nil +} + +func (n *NetworkManagerGlobalNetwork) Properties() types.Properties { + properties := types.NewProperties() + for _, tagValue := range n.network.Tags { + properties.SetTag(tagValue.Key, tagValue.Value) + } + properties. + Set("ID", n.network.GlobalNetworkId). + Set("ARN", n.network.GlobalNetworkArn) + return properties +} + +func (n *NetworkManagerGlobalNetwork) String() string { + return *n.network.GlobalNetworkId +} diff --git a/resources/networkmanager-network-attachments.go b/resources/networkmanager-network-attachments.go new file mode 100644 index 00000000..f167f008 --- /dev/null +++ b/resources/networkmanager-network-attachments.go @@ -0,0 +1,76 @@ +package resources + +import ( + "fmt" + "strings" + + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/networkmanager" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type NetworkManagerNetworkAttachment struct { + svc *networkmanager.NetworkManager + attachment *networkmanager.Attachment +} + +func init() { + register("NetworkManagerNetworkAttachment", ListNetworkManagerNetworkAttachments) +} + +func ListNetworkManagerNetworkAttachments(sess *session.Session) ([]Resource, error) { + svc := networkmanager.New(sess) + params := &networkmanager.ListAttachmentsInput{} + resources := make([]Resource, 0) + + resp, err := svc.ListAttachments(params) + if err != nil { + return nil, err + } + + for _, attachment := range resp.Attachments { + resources = append(resources, &NetworkManagerNetworkAttachment{ + svc: svc, + attachment: attachment, + }) + } + + return resources, nil +} + +func (n *NetworkManagerNetworkAttachment) Remove() error { + params := &networkmanager.DeleteAttachmentInput{ + AttachmentId: n.attachment.AttachmentId, + } + + _, err := n.svc.DeleteAttachment(params) + if err != nil { + return err + } + + return nil + +} + +func (n *NetworkManagerNetworkAttachment) Filter() error { + if strings.ToLower(*n.attachment.State) == "deleted" { + return fmt.Errorf("already deleted") + } + + return nil +} + +func (n *NetworkManagerNetworkAttachment) Properties() types.Properties { + properties := types.NewProperties() + for _, tagValue := range n.attachment.Tags { + properties.SetTag(tagValue.Key, tagValue.Value) + } + properties. + Set("ID", n.attachment.AttachmentId). + Set("ARN", n.attachment.ResourceArn) + return properties +} + +func (n *NetworkManagerNetworkAttachment) String() string { + return *n.attachment.AttachmentId +} From 76a435585c6c1ed6c0e6adf7695d4395e18e6e46 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 18:05:48 -0700 Subject: [PATCH 220/617] chore: refactor to libnuke resource format and code standards --- resources/networkmanager-connect-peers.go | 33 ++++++++++++---- resources/networkmanager-core-network.go | 36 +++++++++++++----- resources/networkmanager-global-network.go | 38 ++++++++++++++----- .../networkmanager-network-attachments.go | 37 +++++++++++++----- 4 files changed, 106 insertions(+), 38 deletions(-) diff --git a/resources/networkmanager-connect-peers.go b/resources/networkmanager-connect-peers.go index ef6ef692..92dae629 100644 --- a/resources/networkmanager-connect-peers.go +++ b/resources/networkmanager-connect-peers.go @@ -1,12 +1,17 @@ package resources import ( + "context" "fmt" "strings" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/networkmanager" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type NetworkManagerConnectPeer struct { @@ -14,14 +19,24 @@ type NetworkManagerConnectPeer struct { peer *networkmanager.ConnectPeerSummary } +const NetworkManagerConnectPeerResource = "NetworkManagerConnectPeer" + func init() { - register("NetworkManagerConnectPeer", ListNetworkManagerConnectPeers) + registry.Register(®istry.Registration{ + Name: NetworkManagerConnectPeerResource, + Scope: nuke.Account, + Lister: &NetworkManagerConnectPeerLister{}, + }) } -func ListNetworkManagerConnectPeers(sess *session.Session) ([]Resource, error) { - svc := networkmanager.New(sess) +type NetworkManagerConnectPeerLister struct{} + +func (l *NetworkManagerConnectPeerLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := networkmanager.New(opts.Session) params := &networkmanager.ListConnectPeersInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) resp, err := svc.ListConnectPeers(params) if err != nil { @@ -38,7 +53,7 @@ func ListNetworkManagerConnectPeers(sess *session.Session) ([]Resource, error) { return resources, nil } -func (n *NetworkManagerConnectPeer) Remove() error { +func (n *NetworkManagerConnectPeer) Remove(_ context.Context) error { params := &networkmanager.DeleteConnectPeerInput{ ConnectPeerId: n.peer.ConnectPeerId, } @@ -62,10 +77,12 @@ func (n *NetworkManagerConnectPeer) Filter() error { func (n *NetworkManagerConnectPeer) Properties() types.Properties { properties := types.NewProperties() + properties.Set("ID", n.peer.ConnectPeerId) + for _, tagValue := range n.peer.Tags { properties.SetTag(tagValue.Key, tagValue.Value) } - properties.Set("ID", n.peer.ConnectPeerId) + return properties } diff --git a/resources/networkmanager-core-network.go b/resources/networkmanager-core-network.go index 323bae12..12536fe8 100644 --- a/resources/networkmanager-core-network.go +++ b/resources/networkmanager-core-network.go @@ -1,12 +1,17 @@ package resources import ( + "context" "fmt" "strings" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/networkmanager" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type NetworkManagerCoreNetwork struct { @@ -14,14 +19,24 @@ type NetworkManagerCoreNetwork struct { network *networkmanager.CoreNetworkSummary } +const NetworkManagerCoreNetworkResource = "NetworkManagerCoreNetwork" + func init() { - register("NetworkManagerCoreNetwork", ListNetworkManagerCoreNetworks) + registry.Register(®istry.Registration{ + Name: NetworkManagerCoreNetworkResource, + Scope: nuke.Account, + Lister: &NetworkManagerCoreNetworkLister{}, + }) } -func ListNetworkManagerCoreNetworks(sess *session.Session) ([]Resource, error) { - svc := networkmanager.New(sess) +type NetworkManagerCoreNetworkLister struct{} + +func (l *NetworkManagerCoreNetworkLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := networkmanager.New(opts.Session) params := &networkmanager.ListCoreNetworksInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) resp, err := svc.ListCoreNetworks(params) if err != nil { @@ -38,7 +53,7 @@ func ListNetworkManagerCoreNetworks(sess *session.Session) ([]Resource, error) { return resources, nil } -func (n *NetworkManagerCoreNetwork) Remove() error { +func (n *NetworkManagerCoreNetwork) Remove(_ context.Context) error { params := &networkmanager.DeleteCoreNetworkInput{ CoreNetworkId: n.network.CoreNetworkId, } @@ -62,12 +77,13 @@ func (n *NetworkManagerCoreNetwork) Filter() error { func (n *NetworkManagerCoreNetwork) Properties() types.Properties { properties := types.NewProperties() + properties.Set("ID", n.network.CoreNetworkId) + properties.Set("ARN", n.network.CoreNetworkArn) + for _, tagValue := range n.network.Tags { properties.SetTag(tagValue.Key, tagValue.Value) } - properties. - Set("ID", n.network.CoreNetworkId). - Set("ARN", n.network.CoreNetworkArn) + return properties } diff --git a/resources/networkmanager-global-network.go b/resources/networkmanager-global-network.go index 5f2bef71..6a84b286 100644 --- a/resources/networkmanager-global-network.go +++ b/resources/networkmanager-global-network.go @@ -1,13 +1,18 @@ package resources import ( + "context" "fmt" "strings" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/networkmanager" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type NetworkManagerGlobalNetwork struct { @@ -15,13 +20,23 @@ type NetworkManagerGlobalNetwork struct { network *networkmanager.GlobalNetwork } +const NetworkManagerGlobalNetworkResource = "NetworkManagerGlobalNetwork" + func init() { - register("NetworkManagerGlobalNetwork", ListNetworkManagerGlobalNetworks) + registry.Register(®istry.Registration{ + Name: NetworkManagerGlobalNetworkResource, + Scope: nuke.Account, + Lister: &NetworkManagerGlobalNetworkLister{}, + }) } -func ListNetworkManagerGlobalNetworks(sess *session.Session) ([]Resource, error) { - svc := networkmanager.New(sess) - resources := []Resource{} +type NetworkManagerGlobalNetworkLister struct{} + +func (l *NetworkManagerGlobalNetworkLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := networkmanager.New(opts.Session) + resources := make([]resource.Resource, 0) params := &networkmanager.DescribeGlobalNetworksInput{ MaxResults: aws.Int64(100), @@ -45,10 +60,11 @@ func ListNetworkManagerGlobalNetworks(sess *session.Session) ([]Resource, error) params.NextToken = resp.NextToken } + return resources, nil } -func (n *NetworkManagerGlobalNetwork) Remove() error { +func (n *NetworkManagerGlobalNetwork) Remove(_ context.Context) error { params := &networkmanager.DeleteGlobalNetworkInput{ GlobalNetworkId: n.network.GlobalNetworkId, } @@ -72,12 +88,14 @@ func (n *NetworkManagerGlobalNetwork) Filter() error { func (n *NetworkManagerGlobalNetwork) Properties() types.Properties { properties := types.NewProperties() + + properties.Set("ID", n.network.GlobalNetworkId) + properties.Set("ARN", n.network.GlobalNetworkArn) + for _, tagValue := range n.network.Tags { properties.SetTag(tagValue.Key, tagValue.Value) } - properties. - Set("ID", n.network.GlobalNetworkId). - Set("ARN", n.network.GlobalNetworkArn) + return properties } diff --git a/resources/networkmanager-network-attachments.go b/resources/networkmanager-network-attachments.go index f167f008..57295dd5 100644 --- a/resources/networkmanager-network-attachments.go +++ b/resources/networkmanager-network-attachments.go @@ -1,12 +1,17 @@ package resources import ( + "context" "fmt" "strings" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/networkmanager" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type NetworkManagerNetworkAttachment struct { @@ -14,14 +19,24 @@ type NetworkManagerNetworkAttachment struct { attachment *networkmanager.Attachment } +const NetworkManagerNetworkAttachmentResource = "NetworkManagerNetworkAttachment" + func init() { - register("NetworkManagerNetworkAttachment", ListNetworkManagerNetworkAttachments) + registry.Register(®istry.Registration{ + Name: NetworkManagerNetworkAttachmentResource, + Scope: nuke.Account, + Lister: &NetworkManagerNetworkAttachmentLister{}, + }) } -func ListNetworkManagerNetworkAttachments(sess *session.Session) ([]Resource, error) { - svc := networkmanager.New(sess) +type NetworkManagerNetworkAttachmentLister struct{} + +func (l *NetworkManagerNetworkAttachmentLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := networkmanager.New(opts.Session) params := &networkmanager.ListAttachmentsInput{} - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) resp, err := svc.ListAttachments(params) if err != nil { @@ -38,7 +53,7 @@ func ListNetworkManagerNetworkAttachments(sess *session.Session) ([]Resource, er return resources, nil } -func (n *NetworkManagerNetworkAttachment) Remove() error { +func (n *NetworkManagerNetworkAttachment) Remove(_ context.Context) error { params := &networkmanager.DeleteAttachmentInput{ AttachmentId: n.attachment.AttachmentId, } @@ -62,12 +77,14 @@ func (n *NetworkManagerNetworkAttachment) Filter() error { func (n *NetworkManagerNetworkAttachment) Properties() types.Properties { properties := types.NewProperties() + + properties.Set("ID", n.attachment.AttachmentId) + properties.Set("ARN", n.attachment.ResourceArn) + for _, tagValue := range n.attachment.Tags { properties.SetTag(tagValue.Key, tagValue.Value) } - properties. - Set("ID", n.attachment.AttachmentId). - Set("ARN", n.attachment.ResourceArn) + return properties } From 877864b3b76f62cecf6d0ab2c64c1819f5e0c490 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 23 Feb 2024 18:30:23 -0700 Subject: [PATCH 221/617] chore: fix golangci-lint violations --- resources/ec2-vpn-connections.go | 7 +++++-- resources/networkmanager-connect-peers.go | 6 ++++-- resources/networkmanager-core-network.go | 6 ++++-- resources/networkmanager-global-network.go | 6 ++++-- resources/networkmanager-network-attachments.go | 6 ++++-- 5 files changed, 21 insertions(+), 10 deletions(-) diff --git a/resources/ec2-vpn-connections.go b/resources/ec2-vpn-connections.go index e6e7f78c..f0fca44d 100644 --- a/resources/ec2-vpn-connections.go +++ b/resources/ec2-vpn-connections.go @@ -2,15 +2,17 @@ package resources import ( "context" - "fmt" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/service/ec2" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" + "github.com/ekristen/aws-nuke/pkg/awsutil" "github.com/ekristen/aws-nuke/pkg/nuke" ) @@ -56,9 +58,10 @@ type EC2VPNConnection struct { } func (v *EC2VPNConnection) Filter() error { - if *v.conn.State == "deleted" { + if ptr.ToString(v.conn.State) == awsutil.StateDeleted { return fmt.Errorf("already deleted") } + return nil } diff --git a/resources/networkmanager-connect-peers.go b/resources/networkmanager-connect-peers.go index 92dae629..0dc6b2fa 100644 --- a/resources/networkmanager-connect-peers.go +++ b/resources/networkmanager-connect-peers.go @@ -5,12 +5,15 @@ import ( "fmt" "strings" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/service/networkmanager" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" + "github.com/ekristen/aws-nuke/pkg/awsutil" "github.com/ekristen/aws-nuke/pkg/nuke" ) @@ -64,11 +67,10 @@ func (n *NetworkManagerConnectPeer) Remove(_ context.Context) error { } return nil - } func (n *NetworkManagerConnectPeer) Filter() error { - if strings.ToLower(*n.peer.ConnectPeerState) == "deleted" { + if strings.EqualFold(ptr.ToString(n.peer.ConnectPeerState), awsutil.StateDeleted) { return fmt.Errorf("already deleted") } diff --git a/resources/networkmanager-core-network.go b/resources/networkmanager-core-network.go index 12536fe8..81b24f48 100644 --- a/resources/networkmanager-core-network.go +++ b/resources/networkmanager-core-network.go @@ -5,12 +5,15 @@ import ( "fmt" "strings" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/service/networkmanager" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" + "github.com/ekristen/aws-nuke/pkg/awsutil" "github.com/ekristen/aws-nuke/pkg/nuke" ) @@ -64,11 +67,10 @@ func (n *NetworkManagerCoreNetwork) Remove(_ context.Context) error { } return nil - } func (n *NetworkManagerCoreNetwork) Filter() error { - if strings.ToLower(*n.network.State) == "deleted" { + if strings.EqualFold(ptr.ToString(n.network.State), awsutil.StateDeleted) { return fmt.Errorf("already deleted") } diff --git a/resources/networkmanager-global-network.go b/resources/networkmanager-global-network.go index 6a84b286..69b3d59f 100644 --- a/resources/networkmanager-global-network.go +++ b/resources/networkmanager-global-network.go @@ -5,6 +5,8 @@ import ( "fmt" "strings" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/networkmanager" @@ -12,6 +14,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" + "github.com/ekristen/aws-nuke/pkg/awsutil" "github.com/ekristen/aws-nuke/pkg/nuke" ) @@ -75,11 +78,10 @@ func (n *NetworkManagerGlobalNetwork) Remove(_ context.Context) error { } return nil - } func (n *NetworkManagerGlobalNetwork) Filter() error { - if strings.ToLower(*n.network.State) == "deleted" { + if strings.EqualFold(ptr.ToString(n.network.State), awsutil.StateDeleted) { return fmt.Errorf("already deleted") } diff --git a/resources/networkmanager-network-attachments.go b/resources/networkmanager-network-attachments.go index 57295dd5..4176b7bb 100644 --- a/resources/networkmanager-network-attachments.go +++ b/resources/networkmanager-network-attachments.go @@ -5,12 +5,15 @@ import ( "fmt" "strings" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/service/networkmanager" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" + "github.com/ekristen/aws-nuke/pkg/awsutil" "github.com/ekristen/aws-nuke/pkg/nuke" ) @@ -64,11 +67,10 @@ func (n *NetworkManagerNetworkAttachment) Remove(_ context.Context) error { } return nil - } func (n *NetworkManagerNetworkAttachment) Filter() error { - if strings.ToLower(*n.attachment.State) == "deleted" { + if strings.EqualFold(ptr.ToString(n.attachment.State), awsutil.StateDeleted) { return fmt.Errorf("already deleted") } From 75ec23e6e78a8069b9c6b5dea9eff67d0395349b Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sat, 24 Feb 2024 19:24:50 -0700 Subject: [PATCH 222/617] chore: update docs and internal tooling (#103) * docs: adding documentation around newer features * chore: fixing internal tools --- docs/features/enabled-regions.md | 7 +++++++ docs/features/global-filters.md | 7 +++++++ docs/features/signed-binaries.md | 4 ++++ docs/index.md | 6 +++--- mkdocs.yml | 3 +++ tools/compare-resources/main.go | 16 ++++++++++------ tools/migrate-resource/main.go | 3 +-- 7 files changed, 35 insertions(+), 11 deletions(-) create mode 100644 docs/features/enabled-regions.md create mode 100644 docs/features/global-filters.md create mode 100644 docs/features/signed-binaries.md diff --git a/docs/features/enabled-regions.md b/docs/features/enabled-regions.md new file mode 100644 index 00000000..d3365dd9 --- /dev/null +++ b/docs/features/enabled-regions.md @@ -0,0 +1,7 @@ +# Feature: All Enabled Regions + +There is a special region called `all` that can be provided to the regions block in the configuration. If `all` is +provided then the special `global` region and all regions that are enabled for the account will automatically be +included. Any other regions that are provided will be **ignored**. + +See [Full Documentation](../config.md#all-enabled-regions) for more information. \ No newline at end of file diff --git a/docs/features/global-filters.md b/docs/features/global-filters.md new file mode 100644 index 00000000..0fdde23e --- /dev/null +++ b/docs/features/global-filters.md @@ -0,0 +1,7 @@ +# Global Filters + +Global filters are filters that are applied to all resources. They are defined using a special resource name called +`__global__`. The global filters are pre-pended to all resources before any other filters for the specific resource +are applied. + +[Full Documentation](../config-filtering.md#global) \ No newline at end of file diff --git a/docs/features/signed-binaries.md b/docs/features/signed-binaries.md new file mode 100644 index 00000000..a399af0a --- /dev/null +++ b/docs/features/signed-binaries.md @@ -0,0 +1,4 @@ +# Signed Binaries + +All darwin binaries are now signed and notarized by Apple. This means that you can now run the binaries without +needing to bypass the security settings on your Mac. diff --git a/docs/index.md b/docs/index.md index 3a7e6a73..a3d108b0 100644 --- a/docs/index.md +++ b/docs/index.md @@ -9,9 +9,9 @@ resources and create a Pull Request or to create an [Issue](https://github.com/e This is not a comprehensive list, but here are some of the highlights: -* New Feature: Global Filters -* New Feature: Run Against All Enabled Regions -* New Feature: Bypass Alias Check - Allow the skip of an alias on an account +* New Feature: [Global Filters](features/global-filters.md +* New Feature: [Run Against All Enabled Regions](features/enabled-regions.md) +* New Feature: [Bypass Alias Check - Allow the skip of an alias on an account](features/bypass-alias-check.md) * Upcoming Feature: Filter Groups (**in progress**) * Breaking Change: `root` command no longer triggers the run, must use subcommand `run` (alias: `nuke`) * Completely rewrote the core of the tool as a dedicated library [libnuke](https://github.com/ekristen/libnuke) diff --git a/mkdocs.yml b/mkdocs.yml index 298ff333..ea494fc9 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -72,6 +72,9 @@ nav: - Quick Start: quick-start.md - Features: - Bypass Alias Check: features/bypass-alias-check.md + - Global Filters: features/global-filters.md + - Enabled Regions: features/enabled-regions.md + - Signed Binaries: features/signed-binaries.md - CLI: - Usage: cli-usage.md - Options: cli-options.md diff --git a/tools/compare-resources/main.go b/tools/compare-resources/main.go index dbd044c2..5a44dd77 100644 --- a/tools/compare-resources/main.go +++ b/tools/compare-resources/main.go @@ -14,7 +14,7 @@ import ( var OriginalRegisterRegex = regexp.MustCompile( `register\("(?P.*)",\s?(?P\w+)(,)?(\s+mapCloudControl\("(?P.*)"\))?`) -var NewRegisterRegex = regexp.MustCompile(`resource.Registration{\s+Name:\s+(?P.*),`) +var NewRegisterRegex = regexp.MustCompile(`registry.Registration{\s+Name:\s+(?P.*),`) var aliases = map[string]string{ "NetpuneSnapshot": "NeptuneSnapshot", @@ -99,6 +99,10 @@ func main() { //nolint:funlen,gocyclo matches := NewRegisterRegex.FindStringSubmatch(string(originalFileContents)) + if len(matches) == 0 { + continue + } + var NameRegex = regexp.MustCompile(fmt.Sprintf(`const %s = "(?P.*)"`, matches[1])) nameMatches := NameRegex.FindStringSubmatch(string(originalFileContents)) @@ -111,10 +115,10 @@ func main() { //nolint:funlen,gocyclo localResourceTypes = append(localResourceTypes, resourceType) } - fmt.Println("\naws-nuke resource count:", len(upstreamResourceTypes)) - fmt.Println("local resource count:", len(localResourceTypes)) + fmt.Println("\nrebuy-de/aws-nuke resource count:", len(upstreamResourceTypes)) + fmt.Println("ekristen/aws-nuke resource count:", len(localResourceTypes)) - fmt.Println("\nResources not in aws-nuke:") + fmt.Println("\nResources unique to ekristen/aws-nuke:") for _, resource := range localResourceTypes { found := false for _, v := range aliases { @@ -124,11 +128,11 @@ func main() { //nolint:funlen,gocyclo } if !slices.Contains(upstreamResourceTypes, resource) && !found { - fmt.Println("+>", resource) + color.New(color.Bold, color.FgGreen).Printf("%-55s\n", resource) } } - fmt.Println("\nResources not in local aws-nuke:") + fmt.Println("\nResources not in ekristen/aws-nuke:") for _, resource := range upstreamResourceTypes { _, ok := aliases[resource] if !slices.Contains(localResourceTypes, resource) && !ok { diff --git a/tools/migrate-resource/main.go b/tools/migrate-resource/main.go index b6200330..0182a1fd 100644 --- a/tools/migrate-resource/main.go +++ b/tools/migrate-resource/main.go @@ -96,8 +96,7 @@ func main() { newContents := repl.ReplaceAllString(string(originalFileContents), tpl.String()) - newContents = strings.ReplaceAll(newContents, - "github.com/rebuy-de/aws-nuke/v2/pkg/types", "github.com/ekristen/libnuke/pkg/types") + newContents = strings.ReplaceAll(newContents, "github.com/rebuy-de/aws-nuke/v2/pkg/types", "") newContents = funcMatch.ReplaceAllString(newContents, funcTpl.String()) newContents = strings.ReplaceAll(newContents, "[]Resource", "[]resource.Resource") From 58723ebcd794715c45b048f83cd74921e5d48b00 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sun, 25 Feb 2024 09:39:25 -0700 Subject: [PATCH 223/617] docs: general doc improvements (#104) * docs: fix markdown link error * docs: improving docs --- docs/index.md | 2 +- docs/installation.md | 11 +++++------ docs/warning.md | 23 ++++++++++++++++------- 3 files changed, 22 insertions(+), 14 deletions(-) diff --git a/docs/index.md b/docs/index.md index a3d108b0..ef7f01a7 100644 --- a/docs/index.md +++ b/docs/index.md @@ -9,7 +9,7 @@ resources and create a Pull Request or to create an [Issue](https://github.com/e This is not a comprehensive list, but here are some of the highlights: -* New Feature: [Global Filters](features/global-filters.md +* New Feature: [Global Filters](features/global-filters.md) * New Feature: [Run Against All Enabled Regions](features/enabled-regions.md) * New Feature: [Bypass Alias Check - Allow the skip of an alias on an account](features/bypass-alias-check.md) * Upcoming Feature: Filter Groups (**in progress**) diff --git a/docs/installation.md b/docs/installation.md index f3ee060f..6b8933bb 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -5,10 +5,10 @@ ### Homebrew Tap (MacOS/Linux) ```console -brew install ekristen/tap/aws-nuke +brew install ekristen/tap/aws-nuke@3 ``` -!!! note +!!! warning "Brew Warning" `brew install aws-nuke` will install the rebuy-aws version of aws-nuke, which is not the same as this version. ## Releases @@ -20,15 +20,14 @@ You can download pre-compiled binaries from the [releases](https://github.com/ek Registries: - [ghcr.io/ekristen/aws-nuke](https://github.com/ekristen/aws-nuke/pkgs/container/aws-nuke) -- [docker.io/ekristen/aws-nuke](https://hub.docker.com/r/ekristen/aws-nuke) -You can run *aws-nuke* with Docker by using a command like this: +You can run **aws-nuke** with Docker by using a command like this: ## Source -To compile *aws-nuke* from source you need a working [Golang](https://golang.org/doc/install) development environment and [goreleaser](https://goreleaser.com/install/). +To compile **aws-nuke** from source you need a working [Golang](https://golang.org/doc/install) development environment and [goreleaser](https://goreleaser.com/install/). -*aws-nuke* uses go modules and so the clone path should no matter. Then simply change directory into the clone and run: +**aws-nuke** uses go modules and so the clone path should not matter. Then simply change directory into the clone and run: ```bash goreleaser --clean --snapshot --single-target diff --git a/docs/warning.md b/docs/warning.md index be809df6..4ea68d22 100644 --- a/docs/warning.md +++ b/docs/warning.md @@ -10,22 +10,31 @@ To reduce the blast radius of accidents, there are some safety precautions: -1. By default, *aws-nuke* only lists all nuke-able resources. You need to add `--no-dry-run` to actually delete +1. By default, **aws-nuke** only lists all nuke-able resources. You need to add `--no-dry-run` to actually delete resources. -2. *aws-nuke* asks you twice to confirm the deletion by entering the account alias. The first time is directly +2. **aws-nuke** asks you twice to confirm the deletion by entering the account alias. The first time is directly after the start and the second time after listing all nuke-able resources. -3. To avoid just displaying a account ID, which might gladly be ignored by humans, it is required to actually set + + !!! note "ProTip" + This can be disabled by adding `--no-prompt` to the command line. + +3. To avoid just displaying an account ID, which might gladly be ignored by humans, it is required to actually set an [Account Alias](https://docs.aws.amazon.com/IAM/latest/UserGuide/console_account-alias.html) for your account. Otherwise, *aws-nuke* will abort. -4. The Account Alias must not contain the string `prod`. This string is hardcoded, and it is recommended to add it + + !!! note "ProTip" + This can be disabled by adding `--no-alias-check` to the command line and + [modifying the config accordingly](features/bypass-alias-check.md). + +4. The account alias must not contain the string `prod`. This string is hardcoded, and it is recommended to add it to every actual production account (e.g. `mycompany-production-ecr`). 5. The config file contains a blocklist field. If the Account ID of the account you want to nuke is part of this - blocklist, *aws-nuke* will abort. It is recommended, that you add every production account to this blocklist. + blocklist, **aws-nuke** will abort. It is recommended, that you add every production account to this blocklist. 6. To ensure you don't just ignore the blocklisting feature, the blocklist must contain at least one Account ID. 7. The config file contains account specific settings (e.g. filters). The account you want to nuke must be explicitly listed there. 8. To ensure to not accidentally delete a random account, it is required to specify a config file. It is recommended - to have only a single config file and add it to a central repository. This way the account blocklist is way - easier to manage and keep up to date. + to have only a single config file and add it to a central repository. This way the blocklist is easier to manage and + keep up to date. Feel free to create an issue, if you have any ideas to improve the safety procedures. From 69bbf59d230ebc47a956d57c081000c83a7f3c18 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 6 Mar 2024 00:05:14 +0000 Subject: [PATCH 224/617] chore(deps): update docker/dockerfile docker tag to v1.7 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 53a88d2d..b38e4e2d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -# syntax=docker/dockerfile:1.6-labs +# syntax=docker/dockerfile:1.7-labs FROM alpine:3.19.1 as base RUN apk add --no-cache ca-certificates RUN adduser -D aws-nuke From 9ebe2a614d662db82395f732c6be463220ca11c1 Mon Sep 17 00:00:00 2001 From: Maarten Dirkse Date: Thu, 7 Mar 2024 16:48:26 +0100 Subject: [PATCH 225/617] feat: rename command file to nuke and add q alias for --quiet (#107) --- pkg/commands/nuke/{command.go => nuke.go} | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) rename pkg/commands/nuke/{command.go => nuke.go} (99%) diff --git a/pkg/commands/nuke/command.go b/pkg/commands/nuke/nuke.go similarity index 99% rename from pkg/commands/nuke/command.go rename to pkg/commands/nuke/nuke.go index bfb6b0cf..21084f62 100644 --- a/pkg/commands/nuke/command.go +++ b/pkg/commands/nuke/nuke.go @@ -224,8 +224,9 @@ func init() { //nolint:funlen Usage: "use these resource types with the Cloud Control API instead of the default", }, &cli.BoolFlag{ - Name: "quiet", - Usage: "hide filtered messages", + Name: "quiet", + Aliases: []string{"q"}, + Usage: "hide filtered messages", }, &cli.BoolFlag{ Name: "no-dry-run", From e0fbd16bcb88361a7c25d34c17dcc186ca0e4a2f Mon Sep 17 00:00:00 2001 From: Maarten Dirkse Date: Thu, 7 Mar 2024 16:49:00 +0100 Subject: [PATCH 226/617] docs: add missing build command (#106) --- docs/installation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/installation.md b/docs/installation.md index 6b8933bb..e852ad0f 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -30,6 +30,6 @@ To compile **aws-nuke** from source you need a working [Golang](https://golang.o **aws-nuke** uses go modules and so the clone path should not matter. Then simply change directory into the clone and run: ```bash -goreleaser --clean --snapshot --single-target +goreleaser build --clean --snapshot --single-target ``` From 362afaeb53e89c5e7f6ebcf29705f984fcf1c58f Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 7 Mar 2024 08:49:19 -0700 Subject: [PATCH 227/617] docs: improving documentation (#105) * docs: add contributing, feature overview, migration guide * docs: add note about migration guide --- docs/contributing.md | 174 ++++++++++++++++++++++++++++++++++++++ docs/features/overview.md | 22 +++++ docs/index.md | 11 ++- docs/migration-guide.md | 23 +++++ docs/releases.md | 13 ++- docs/standards.md | 7 ++ docs/warning.md | 3 - mkdocs.yml | 6 +- 8 files changed, 248 insertions(+), 11 deletions(-) create mode 100644 docs/contributing.md create mode 100644 docs/features/overview.md create mode 100644 docs/migration-guide.md diff --git a/docs/contributing.md b/docs/contributing.md new file mode 100644 index 00000000..8b776724 --- /dev/null +++ b/docs/contributing.md @@ -0,0 +1,174 @@ +# Contributing + +Thank you for wanting to contribute to *aws-nuke*. + +Because of the amount of AWS services and their rate of change, we rely on your participation. For the same reason we +can only act retroactive on changes of AWS services. Otherwise, it would be a full time job to keep up with AWS. + +## How Can I Contribute? + +### Some Resource Is Not Supported by *aws-nuke* + +If a resource is not yet supported by *aws-nuke*, you have two options to resolve this: + +* File [an issue](https://github.com/rebuy-de/aws-nuke/issues/new) and describe which resource is missing. This way someone can take care of it. +* Add the resource yourself and open a Pull Request. Please follow the guidelines below to see how to create + such a resource. + +### Some Resource Does Not Get Deleted + +Please check the following points before creating a bug issue: + +* Is the resource actually supported by *aws-nuke*? If not, please follow the guidelines above. +* Are there permission problems? In this case *aws-nuke* will print errors that usually contain the status code `403`. +* Did you just get scared by an error that was printed? *aws-nuke* does not know about dependencies between resources. + To work around this it will just retry deleting all resources in multiple iterations. Therefore, it is normal that + there are a lot of dependency errors in the first one. The iterations are separated by lines starting with + `Removal requested:` and only the errors in the last block indicate actual errors. + +File [an issue](https://github.com/rebuy-de/aws-nuke/issues/new) and describe as accurately as possible how to generate the resource on AWS that cause the +errors in *aws-nuke*. Ideally this is provided in a reproducible way like a Terraform template or AWS CLI commands. + +### I Have Ideas to Improve *aws-nuke* + +You should take these steps if you have an idea how to improve *aws-nuke*: + +1. Check the [issues page](https://github.com/rebuy-de/aws-nuke/issues), whether someone already had the same or a similar idea. +2. Also check the [closed issues](https://github.com/rebuy-de/aws-nuke/issues?utf8=%E2%9C%93&q=is%3Aissue), because this might have already been implemented, but not yet released. Also, + the idea might not be viable for obvious reasons. +3. Join the discussion, if there is already a related issue. If this is not the case, open a new issue and describe + your idea. Afterward, we can discuss this idea and form a proposal. + +### I Just Have a Question + +Please use [GitHub Discussions](https://github.com/ekristen/aws-nuke/discussions) + +## Resource Guidelines + +### Tooling + +Checkout the documentation around [resources](https://ekristen.github.io/aws-nuke/resources/) as it provides resource +format and a tool to help generate the resource. + +### Consider Pagination + +Most AWS resources are paginated and all resources should handle that. + +### Use Properties Instead of String Functions + +Currently, each resource can offer two functions to describe itself, that are used by the user to identify it and by +*aws-nuke* to filter it. + +The String function is deprecated: + +```golang +func (r *Resource) String() string +``` + +The Properties function should be used instead: + +```golang +func (r *Resource) Properties() types.Properties +``` + +**Note:** The interface for the String function is still there, because not all resources are migrated yet. Please use +the Properties function for new resources. + +### Filter Resources That Cannot Get Removed + +Some AWS APIs list resources, that cannot be deleted. For example: + +* Resources that are already deleted, but still listed for some time (e.g. EC2 Instances) +* Resources that are created by AWS, but cannot be deleted by the user (e.g. some IAM Roles) + +Those resources should be excluded in the filter step, rather than in the list step. + +## Styleguide + +### Go + +#### golangci-lint + +There is an extensive golangci-lint configuration in the repository. Please make sure to run `golangci-lint run` before +committing any changes. + +#### Code Format + +Like almost all Go projects, we are using `go fmt` as a single source of truth for formatting the source code. Please +use `go fmt` before committing any change. + +#### Import Format + +1. Standard library imports +2. Third party imports +3. AWS SDK imports +4. ekristen/libnuke imports +5. Local package imports + +##### Example Import Format + +```golang +package example + +import ( + "context" + + "github.com/sirupsen/logrus" + + "github.com/aws/aws-sdk-go-v2/aws" + "github.com/aws/aws-sdk-go-v2/service/s3" + + "github.com/ekristen/libnuke/pkg/settings" + + "github.com/ekristen/aws-nuke/pkg/types" +) +``` + +### Git + +#### Pull Requests + +We default to squash merge pull requests. This means that the commit history of the pull request will be squashed into a +single commit and then merged into the main branch. This keeps the commit history clean and easy to read. + +#### Commits + +We are using the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) specification for our commit +messages. This allows us to automatically generate a changelog and version numbers. + +All commits in a pull request must follow this format or the GitHub Actions will fail. + +#### Signed Commits + +We require that all commits be signed. + +```console +git config --global commit.gpgsign true +``` + +#### Setup Email + +We prefer having the commit linked to the GitHub account, that is creating the Pull Request. To make this happen, +*git* must be configured with an email, that is registered with a GitHub account. + +To set the email for all git commits, you can use this command: + +```bash +git config --global user.email "email@example.com" +``` + +If you want to change the email only for the *aws-nuke* repository, you can skip the `--global` flag. You have to +make sure that you are executing this in the *aws-nuke* directory: + +```bash +git config user.email "email@example.com" +``` + +If you already committed something with a wrong email, you can use this command: + +```bash +git commit --amend --author="Author Name " +``` + +This changes the email of the latest commit. If you have multiple commits in your branch, please squash them and +change the author afterwards. diff --git a/docs/features/overview.md b/docs/features/overview.md new file mode 100644 index 00000000..95aa6a6d --- /dev/null +++ b/docs/features/overview.md @@ -0,0 +1,22 @@ +There are a number of new features with this version these features range from usability to debugging purposes. + +Some of the new features include: + +- [Global Filters](global-filters.md) +- [Run Against All Enabled Regions](enabled-regions.md) +- [Bypass Alias Check - Allow the skip of an alias on an account](bypass-alias-check.md) +- [Signed Binaries](signed-binaries.md) + +Additionally, there are a few new sub commands to the tool to help with setup and debugging purposes: + +First, there is a new `explain-account` command that will attempt to perform basic authentication against AWS with +whatever information is has available to it, and print it out to screen, this is useful for seeing which account is +actually being targeted and what credentials the tool and AWS sees as being used. +[more information](../cli-usage.md#aws-nuke-explain-account) + +Second, there is a new `explain-config` command that will attempt to parse the config file and print out the information +for the configuration file, such as total resource types, filtered resources types, number of includes or excludes with +optional flags to describe in detail all the resource types that fit the various categories. +[more information](../cli-usage.md#aws-nuke-explain-config) + + diff --git a/docs/index.md b/docs/index.md index ef7f01a7..c40a89a9 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,12 +1,17 @@ -# AWS Nuke - Remove all resources from an AWS account. -*aws-nuke* is stable, but it is likely that not all AWS resources are covered by it. Be encouraged to add missing +**aws-nuke** is stable, but it is likely that not all AWS resources are covered by it. Be encouraged to add missing resources and create a Pull Request or to create an [Issue](https://github.com/ekristen/aws-nuke/issues/new). +!!! danger "Destructive Tool" + Be aware that this is a very destructive tool, hence you have to be very careful while using it. Otherwise, + you might delete production data. + ## What's New in Version 3 +!!! note "Migration Guide" + There is **only one breaking change** between version 2 and 3, but see the [migration guide](migration-guide.md) for more information. + This is not a comprehensive list, but here are some of the highlights: * New Feature: [Global Filters](features/global-filters.md) diff --git a/docs/migration-guide.md b/docs/migration-guide.md new file mode 100644 index 00000000..4296a4e2 --- /dev/null +++ b/docs/migration-guide.md @@ -0,0 +1,23 @@ +There's only **one** real breaking change between version 2 and version 3 and that is that the root command will +no longer trigger a run, you must use the `run` command to trigger a run. + +There are a number of other changes that have been made, but they are 100% backwards compatible and warnings are provided +during run time if you are using deprecated flags or resources. + +## CLI Changes + +- `root` command no longer triggers the run, must use subcommand `run` (alias: `nuke`) +- `target` is deprecated, use `include` instead (on `run` command) +- `feature-flag` is a new flag used to change behavior of the tool, for resource behavior changes see [settings](config.md#settings) + +## Config Changes + +### New + +* `settings` is a new section in the config file that allows you to change the behavior of a resource, formerly these + were called `feature-flags` and were a top level key in the config file. + +### Deprecated + +- `targets` is now deprecated, use `includes` instead +- `feature-flags` is now deprecated, use `settings` instead diff --git a/docs/releases.md b/docs/releases.md index 6cf041d5..5e6c7416 100644 --- a/docs/releases.md +++ b/docs/releases.md @@ -1,8 +1,13 @@ # Releases -We usually release a new version once enough changes came together and have been tested for a while. +Releases are performed automatically based on semantic commits. The versioning is then determined from the commits. +We use a tool called [semantic-release](https://semantic-release.gitbook.io/) to determine if a release should occur +and what the version should be. This takes away the need for humans to be involved. + +## Release Assets You can find Linux, macOS and Windows binaries on the [releases page](https://github.com/ekristen/aws-nuke/releases), but we also provide containerized -versions on [ghcr.io/ekristen/aws-nuke](https://ghcr.io/ekristen/aws-nuke) and [docker.io/ekristen/aws-nuke](https://hub.docker.com/r/ekristen/aws-nuke). Both are available for multiple -architectures (amd64, arm64 & armv7) using Docker manifests. You can reference the main tag on any system and get -the correct docker image automatically. \ No newline at end of file +versions on [ghcr.io/ekristen/aws-nuke](https://ghcr.io/ekristen/aws-nuke). + +Both are available for multiple architectures (amd64, arm64 & armv7) using Docker manifests. You can reference the +main tag on any system and get the correct docker image automatically. \ No newline at end of file diff --git a/docs/standards.md b/docs/standards.md index cb985eba..cb6af9c2 100644 --- a/docs/standards.md +++ b/docs/standards.md @@ -1,5 +1,12 @@ # Standards +This is an attempt to describe the standards we use in developing this project. Currently most of the standards +are captured in the contributing guide. + +## Git + +See the [contributing guide](contributing.md) for more information. + ## CLI Standards - Use `--no-` prefix for boolean flags diff --git a/docs/warning.md b/docs/warning.md index 4ea68d22..679d8457 100644 --- a/docs/warning.md +++ b/docs/warning.md @@ -1,8 +1,5 @@ # Caution and Warning -!!! danger - Be aware that *aws-nuke* is a very destructive tool, hence you have to be very careful while using it. Otherwise, - you might delete production data. !!! warning **We strongly advise you to not run this application on any AWS account, where you cannot afford to lose diff --git a/mkdocs.yml b/mkdocs.yml index ea494fc9..5d19d8df 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -39,6 +39,7 @@ theme: - navigation.indexes - navigation.path - navigation.sections + - navigation.tabs - toc.follow - toc.integrate - content.code.annotate @@ -65,12 +66,14 @@ markdown_extensions: # Page tree nav: - Getting Started: - - Introduction: index.md + - Overview: index.md - Warning: warning.md - Install: installation.md - Authentication: auth.md - Quick Start: quick-start.md + - Migration Guide: migration-guide.md - Features: + - Overview: features/overview.md - Bypass Alias Check: features/bypass-alias-check.md - Global Filters: features/global-filters.md - Enabled Regions: features/enabled-regions.md @@ -88,6 +91,7 @@ nav: - Migration Guide: config-migration.md - Development: - Overview: development.md + - Contributing: contributing.md - Standards: standards.md - Resources: resources.md - Releases: releases.md From 9f6ba23d2c9d3a5a5d073ed8d2a58e3204fd4e2a Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 7 Mar 2024 15:37:59 -0700 Subject: [PATCH 228/617] feat(sagemaker-domain): include tags on resource for filtering --- resources/sagemaker-domain.go | 50 ++++++++++++++++++++++++++++------- 1 file changed, 41 insertions(+), 9 deletions(-) diff --git a/resources/sagemaker-domain.go b/resources/sagemaker-domain.go index 5c715ba8..fcda579a 100644 --- a/resources/sagemaker-domain.go +++ b/resources/sagemaker-domain.go @@ -2,6 +2,10 @@ package resources import ( "context" + "github.com/aws/aws-sdk-go/service/sagemaker/sagemakeriface" + "github.com/gotidy/ptr" + "github.com/sirupsen/logrus" + "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/sagemaker" @@ -23,12 +27,18 @@ func init() { }) } -type SageMakerDomainLister struct{} +type SageMakerDomainLister struct { + svc sagemakeriface.SageMakerAPI +} func (l *SageMakerDomainLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) - svc := sagemaker.New(opts.Session) + // Note: this allows us to override svc in tests with a mock + if l.svc == nil { + l.svc = sagemaker.New(opts.Session) + } + resources := make([]resource.Resource, 0) params := &sagemaker.ListDomainsInput{ @@ -36,15 +46,29 @@ func (l *SageMakerDomainLister) List(_ context.Context, o interface{}) ([]resour } for { - resp, err := svc.ListDomains(params) + resp, err := l.svc.ListDomains(params) if err != nil { return nil, err } for _, domain := range resp.Domains { + tags := make([]*sagemaker.Tag, 0) + tagParams := &sagemaker.ListTagsInput{ + ResourceArn: domain.DomainArn, + } + tagOutput, err := l.svc.ListTags(tagParams) + if err != nil { + logrus.WithError(err).Errorf("unable to get tags for SageMakerDomain: %s", ptr.ToString(domain.DomainId)) + } + if tagOutput != nil { + tags = tagOutput.Tags + } + resources = append(resources, &SageMakerDomain{ - svc: svc, - domainID: domain.DomainId, + svc: l.svc, + domainID: domain.DomainId, + creationTime: domain.CreationTime, + tags: tags, }) } @@ -59,8 +83,10 @@ func (l *SageMakerDomainLister) List(_ context.Context, o interface{}) ([]resour } type SageMakerDomain struct { - svc *sagemaker.SageMaker - domainID *string + svc sagemakeriface.SageMakerAPI + domainID *string + creationTime *time.Time + tags []*sagemaker.Tag } func (f *SageMakerDomain) Remove(_ context.Context) error { @@ -78,7 +104,13 @@ func (f *SageMakerDomain) String() string { func (f *SageMakerDomain) Properties() types.Properties { properties := types.NewProperties() - properties. - Set("DomainID", f.domainID) + + properties.Set("DomainID", f.domainID) + properties.Set("CreationTime", f.creationTime.Format(time.RFC3339)) + + for _, tag := range f.tags { + properties.SetTag(tag.Key, tag.Value) + } + return properties } From 13853384b0712362a564d83147341e2b430c00a1 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 7 Mar 2024 15:38:23 -0700 Subject: [PATCH 229/617] chore: go.sum --- go.sum | 1 + 1 file changed, 1 insertion(+) diff --git a/go.sum b/go.sum index 03f1ce1e..6115db3e 100644 --- a/go.sum +++ b/go.sum @@ -91,6 +91,7 @@ golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtn golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.12 h1:VveCTK38A2rkS8ZqFY25HIDFscX5X9OoEhJd3quQmXU= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= +golang.org/x/tools v0.6.0 h1:BOw41kyTf3PuCW1pVQf8+Cyg8pMlkYB1oo9iJ6D/lKM= golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= From 8741ab77cb1f161a7168a17bc5eee5cdecaf9388 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 7 Mar 2024 15:38:46 -0700 Subject: [PATCH 230/617] test(mocks): add sagemaker mocks --- mocks/mock_sagemakeriface/mock.go | 18908 ++++++++++++++++++++++++++++ 1 file changed, 18908 insertions(+) create mode 100644 mocks/mock_sagemakeriface/mock.go diff --git a/mocks/mock_sagemakeriface/mock.go b/mocks/mock_sagemakeriface/mock.go new file mode 100644 index 00000000..aa9eac7f --- /dev/null +++ b/mocks/mock_sagemakeriface/mock.go @@ -0,0 +1,18908 @@ +// Code generated by MockGen. DO NOT EDIT. +// Source: /Users/ekristen/go/pkg/mod/github.com/aws/aws-sdk-go@v1.50.24/service/sagemaker/sagemakeriface/interface.go + +// Package mock_sagemakeriface is a generated GoMock package. +package mock_sagemakeriface + +import ( + reflect "reflect" + + aws "github.com/aws/aws-sdk-go/aws" + request "github.com/aws/aws-sdk-go/aws/request" + sagemaker "github.com/aws/aws-sdk-go/service/sagemaker" + gomock "github.com/golang/mock/gomock" +) + +// MockSageMakerAPI is a mock of SageMakerAPI interface. +type MockSageMakerAPI struct { + ctrl *gomock.Controller + recorder *MockSageMakerAPIMockRecorder +} + +// MockSageMakerAPIMockRecorder is the mock recorder for MockSageMakerAPI. +type MockSageMakerAPIMockRecorder struct { + mock *MockSageMakerAPI +} + +// NewMockSageMakerAPI creates a new mock instance. +func NewMockSageMakerAPI(ctrl *gomock.Controller) *MockSageMakerAPI { + mock := &MockSageMakerAPI{ctrl: ctrl} + mock.recorder = &MockSageMakerAPIMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockSageMakerAPI) EXPECT() *MockSageMakerAPIMockRecorder { + return m.recorder +} + +// AddAssociation mocks base method. +func (m *MockSageMakerAPI) AddAssociation(arg0 *sagemaker.AddAssociationInput) (*sagemaker.AddAssociationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AddAssociation", arg0) + ret0, _ := ret[0].(*sagemaker.AddAssociationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AddAssociation indicates an expected call of AddAssociation. +func (mr *MockSageMakerAPIMockRecorder) AddAssociation(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddAssociation", reflect.TypeOf((*MockSageMakerAPI)(nil).AddAssociation), arg0) +} + +// AddAssociationRequest mocks base method. +func (m *MockSageMakerAPI) AddAssociationRequest(arg0 *sagemaker.AddAssociationInput) (*request.Request, *sagemaker.AddAssociationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AddAssociationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.AddAssociationOutput) + return ret0, ret1 +} + +// AddAssociationRequest indicates an expected call of AddAssociationRequest. +func (mr *MockSageMakerAPIMockRecorder) AddAssociationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddAssociationRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).AddAssociationRequest), arg0) +} + +// AddAssociationWithContext mocks base method. +func (m *MockSageMakerAPI) AddAssociationWithContext(arg0 aws.Context, arg1 *sagemaker.AddAssociationInput, arg2 ...request.Option) (*sagemaker.AddAssociationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AddAssociationWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.AddAssociationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AddAssociationWithContext indicates an expected call of AddAssociationWithContext. +func (mr *MockSageMakerAPIMockRecorder) AddAssociationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddAssociationWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).AddAssociationWithContext), varargs...) +} + +// AddTags mocks base method. +func (m *MockSageMakerAPI) AddTags(arg0 *sagemaker.AddTagsInput) (*sagemaker.AddTagsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AddTags", arg0) + ret0, _ := ret[0].(*sagemaker.AddTagsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AddTags indicates an expected call of AddTags. +func (mr *MockSageMakerAPIMockRecorder) AddTags(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddTags", reflect.TypeOf((*MockSageMakerAPI)(nil).AddTags), arg0) +} + +// AddTagsRequest mocks base method. +func (m *MockSageMakerAPI) AddTagsRequest(arg0 *sagemaker.AddTagsInput) (*request.Request, *sagemaker.AddTagsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AddTagsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.AddTagsOutput) + return ret0, ret1 +} + +// AddTagsRequest indicates an expected call of AddTagsRequest. +func (mr *MockSageMakerAPIMockRecorder) AddTagsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddTagsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).AddTagsRequest), arg0) +} + +// AddTagsWithContext mocks base method. +func (m *MockSageMakerAPI) AddTagsWithContext(arg0 aws.Context, arg1 *sagemaker.AddTagsInput, arg2 ...request.Option) (*sagemaker.AddTagsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AddTagsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.AddTagsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AddTagsWithContext indicates an expected call of AddTagsWithContext. +func (mr *MockSageMakerAPIMockRecorder) AddTagsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddTagsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).AddTagsWithContext), varargs...) +} + +// AssociateTrialComponent mocks base method. +func (m *MockSageMakerAPI) AssociateTrialComponent(arg0 *sagemaker.AssociateTrialComponentInput) (*sagemaker.AssociateTrialComponentOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AssociateTrialComponent", arg0) + ret0, _ := ret[0].(*sagemaker.AssociateTrialComponentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AssociateTrialComponent indicates an expected call of AssociateTrialComponent. +func (mr *MockSageMakerAPIMockRecorder) AssociateTrialComponent(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssociateTrialComponent", reflect.TypeOf((*MockSageMakerAPI)(nil).AssociateTrialComponent), arg0) +} + +// AssociateTrialComponentRequest mocks base method. +func (m *MockSageMakerAPI) AssociateTrialComponentRequest(arg0 *sagemaker.AssociateTrialComponentInput) (*request.Request, *sagemaker.AssociateTrialComponentOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AssociateTrialComponentRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.AssociateTrialComponentOutput) + return ret0, ret1 +} + +// AssociateTrialComponentRequest indicates an expected call of AssociateTrialComponentRequest. +func (mr *MockSageMakerAPIMockRecorder) AssociateTrialComponentRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssociateTrialComponentRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).AssociateTrialComponentRequest), arg0) +} + +// AssociateTrialComponentWithContext mocks base method. +func (m *MockSageMakerAPI) AssociateTrialComponentWithContext(arg0 aws.Context, arg1 *sagemaker.AssociateTrialComponentInput, arg2 ...request.Option) (*sagemaker.AssociateTrialComponentOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AssociateTrialComponentWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.AssociateTrialComponentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AssociateTrialComponentWithContext indicates an expected call of AssociateTrialComponentWithContext. +func (mr *MockSageMakerAPIMockRecorder) AssociateTrialComponentWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssociateTrialComponentWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).AssociateTrialComponentWithContext), varargs...) +} + +// BatchDescribeModelPackage mocks base method. +func (m *MockSageMakerAPI) BatchDescribeModelPackage(arg0 *sagemaker.BatchDescribeModelPackageInput) (*sagemaker.BatchDescribeModelPackageOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchDescribeModelPackage", arg0) + ret0, _ := ret[0].(*sagemaker.BatchDescribeModelPackageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchDescribeModelPackage indicates an expected call of BatchDescribeModelPackage. +func (mr *MockSageMakerAPIMockRecorder) BatchDescribeModelPackage(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchDescribeModelPackage", reflect.TypeOf((*MockSageMakerAPI)(nil).BatchDescribeModelPackage), arg0) +} + +// BatchDescribeModelPackageRequest mocks base method. +func (m *MockSageMakerAPI) BatchDescribeModelPackageRequest(arg0 *sagemaker.BatchDescribeModelPackageInput) (*request.Request, *sagemaker.BatchDescribeModelPackageOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchDescribeModelPackageRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.BatchDescribeModelPackageOutput) + return ret0, ret1 +} + +// BatchDescribeModelPackageRequest indicates an expected call of BatchDescribeModelPackageRequest. +func (mr *MockSageMakerAPIMockRecorder) BatchDescribeModelPackageRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchDescribeModelPackageRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).BatchDescribeModelPackageRequest), arg0) +} + +// BatchDescribeModelPackageWithContext mocks base method. +func (m *MockSageMakerAPI) BatchDescribeModelPackageWithContext(arg0 aws.Context, arg1 *sagemaker.BatchDescribeModelPackageInput, arg2 ...request.Option) (*sagemaker.BatchDescribeModelPackageOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "BatchDescribeModelPackageWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.BatchDescribeModelPackageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchDescribeModelPackageWithContext indicates an expected call of BatchDescribeModelPackageWithContext. +func (mr *MockSageMakerAPIMockRecorder) BatchDescribeModelPackageWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchDescribeModelPackageWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).BatchDescribeModelPackageWithContext), varargs...) +} + +// CreateAction mocks base method. +func (m *MockSageMakerAPI) CreateAction(arg0 *sagemaker.CreateActionInput) (*sagemaker.CreateActionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateAction", arg0) + ret0, _ := ret[0].(*sagemaker.CreateActionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateAction indicates an expected call of CreateAction. +func (mr *MockSageMakerAPIMockRecorder) CreateAction(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAction", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateAction), arg0) +} + +// CreateActionRequest mocks base method. +func (m *MockSageMakerAPI) CreateActionRequest(arg0 *sagemaker.CreateActionInput) (*request.Request, *sagemaker.CreateActionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateActionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateActionOutput) + return ret0, ret1 +} + +// CreateActionRequest indicates an expected call of CreateActionRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateActionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateActionRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateActionRequest), arg0) +} + +// CreateActionWithContext mocks base method. +func (m *MockSageMakerAPI) CreateActionWithContext(arg0 aws.Context, arg1 *sagemaker.CreateActionInput, arg2 ...request.Option) (*sagemaker.CreateActionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateActionWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateActionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateActionWithContext indicates an expected call of CreateActionWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateActionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateActionWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateActionWithContext), varargs...) +} + +// CreateAlgorithm mocks base method. +func (m *MockSageMakerAPI) CreateAlgorithm(arg0 *sagemaker.CreateAlgorithmInput) (*sagemaker.CreateAlgorithmOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateAlgorithm", arg0) + ret0, _ := ret[0].(*sagemaker.CreateAlgorithmOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateAlgorithm indicates an expected call of CreateAlgorithm. +func (mr *MockSageMakerAPIMockRecorder) CreateAlgorithm(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAlgorithm", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateAlgorithm), arg0) +} + +// CreateAlgorithmRequest mocks base method. +func (m *MockSageMakerAPI) CreateAlgorithmRequest(arg0 *sagemaker.CreateAlgorithmInput) (*request.Request, *sagemaker.CreateAlgorithmOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateAlgorithmRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateAlgorithmOutput) + return ret0, ret1 +} + +// CreateAlgorithmRequest indicates an expected call of CreateAlgorithmRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateAlgorithmRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAlgorithmRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateAlgorithmRequest), arg0) +} + +// CreateAlgorithmWithContext mocks base method. +func (m *MockSageMakerAPI) CreateAlgorithmWithContext(arg0 aws.Context, arg1 *sagemaker.CreateAlgorithmInput, arg2 ...request.Option) (*sagemaker.CreateAlgorithmOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateAlgorithmWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateAlgorithmOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateAlgorithmWithContext indicates an expected call of CreateAlgorithmWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateAlgorithmWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAlgorithmWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateAlgorithmWithContext), varargs...) +} + +// CreateApp mocks base method. +func (m *MockSageMakerAPI) CreateApp(arg0 *sagemaker.CreateAppInput) (*sagemaker.CreateAppOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateApp", arg0) + ret0, _ := ret[0].(*sagemaker.CreateAppOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateApp indicates an expected call of CreateApp. +func (mr *MockSageMakerAPIMockRecorder) CreateApp(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateApp", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateApp), arg0) +} + +// CreateAppImageConfig mocks base method. +func (m *MockSageMakerAPI) CreateAppImageConfig(arg0 *sagemaker.CreateAppImageConfigInput) (*sagemaker.CreateAppImageConfigOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateAppImageConfig", arg0) + ret0, _ := ret[0].(*sagemaker.CreateAppImageConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateAppImageConfig indicates an expected call of CreateAppImageConfig. +func (mr *MockSageMakerAPIMockRecorder) CreateAppImageConfig(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAppImageConfig", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateAppImageConfig), arg0) +} + +// CreateAppImageConfigRequest mocks base method. +func (m *MockSageMakerAPI) CreateAppImageConfigRequest(arg0 *sagemaker.CreateAppImageConfigInput) (*request.Request, *sagemaker.CreateAppImageConfigOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateAppImageConfigRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateAppImageConfigOutput) + return ret0, ret1 +} + +// CreateAppImageConfigRequest indicates an expected call of CreateAppImageConfigRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateAppImageConfigRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAppImageConfigRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateAppImageConfigRequest), arg0) +} + +// CreateAppImageConfigWithContext mocks base method. +func (m *MockSageMakerAPI) CreateAppImageConfigWithContext(arg0 aws.Context, arg1 *sagemaker.CreateAppImageConfigInput, arg2 ...request.Option) (*sagemaker.CreateAppImageConfigOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateAppImageConfigWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateAppImageConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateAppImageConfigWithContext indicates an expected call of CreateAppImageConfigWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateAppImageConfigWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAppImageConfigWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateAppImageConfigWithContext), varargs...) +} + +// CreateAppRequest mocks base method. +func (m *MockSageMakerAPI) CreateAppRequest(arg0 *sagemaker.CreateAppInput) (*request.Request, *sagemaker.CreateAppOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateAppRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateAppOutput) + return ret0, ret1 +} + +// CreateAppRequest indicates an expected call of CreateAppRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateAppRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAppRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateAppRequest), arg0) +} + +// CreateAppWithContext mocks base method. +func (m *MockSageMakerAPI) CreateAppWithContext(arg0 aws.Context, arg1 *sagemaker.CreateAppInput, arg2 ...request.Option) (*sagemaker.CreateAppOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateAppWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateAppOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateAppWithContext indicates an expected call of CreateAppWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateAppWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAppWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateAppWithContext), varargs...) +} + +// CreateArtifact mocks base method. +func (m *MockSageMakerAPI) CreateArtifact(arg0 *sagemaker.CreateArtifactInput) (*sagemaker.CreateArtifactOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateArtifact", arg0) + ret0, _ := ret[0].(*sagemaker.CreateArtifactOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateArtifact indicates an expected call of CreateArtifact. +func (mr *MockSageMakerAPIMockRecorder) CreateArtifact(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateArtifact", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateArtifact), arg0) +} + +// CreateArtifactRequest mocks base method. +func (m *MockSageMakerAPI) CreateArtifactRequest(arg0 *sagemaker.CreateArtifactInput) (*request.Request, *sagemaker.CreateArtifactOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateArtifactRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateArtifactOutput) + return ret0, ret1 +} + +// CreateArtifactRequest indicates an expected call of CreateArtifactRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateArtifactRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateArtifactRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateArtifactRequest), arg0) +} + +// CreateArtifactWithContext mocks base method. +func (m *MockSageMakerAPI) CreateArtifactWithContext(arg0 aws.Context, arg1 *sagemaker.CreateArtifactInput, arg2 ...request.Option) (*sagemaker.CreateArtifactOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateArtifactWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateArtifactOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateArtifactWithContext indicates an expected call of CreateArtifactWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateArtifactWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateArtifactWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateArtifactWithContext), varargs...) +} + +// CreateAutoMLJob mocks base method. +func (m *MockSageMakerAPI) CreateAutoMLJob(arg0 *sagemaker.CreateAutoMLJobInput) (*sagemaker.CreateAutoMLJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateAutoMLJob", arg0) + ret0, _ := ret[0].(*sagemaker.CreateAutoMLJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateAutoMLJob indicates an expected call of CreateAutoMLJob. +func (mr *MockSageMakerAPIMockRecorder) CreateAutoMLJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAutoMLJob", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateAutoMLJob), arg0) +} + +// CreateAutoMLJobRequest mocks base method. +func (m *MockSageMakerAPI) CreateAutoMLJobRequest(arg0 *sagemaker.CreateAutoMLJobInput) (*request.Request, *sagemaker.CreateAutoMLJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateAutoMLJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateAutoMLJobOutput) + return ret0, ret1 +} + +// CreateAutoMLJobRequest indicates an expected call of CreateAutoMLJobRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateAutoMLJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAutoMLJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateAutoMLJobRequest), arg0) +} + +// CreateAutoMLJobV2 mocks base method. +func (m *MockSageMakerAPI) CreateAutoMLJobV2(arg0 *sagemaker.CreateAutoMLJobV2Input) (*sagemaker.CreateAutoMLJobV2Output, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateAutoMLJobV2", arg0) + ret0, _ := ret[0].(*sagemaker.CreateAutoMLJobV2Output) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateAutoMLJobV2 indicates an expected call of CreateAutoMLJobV2. +func (mr *MockSageMakerAPIMockRecorder) CreateAutoMLJobV2(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAutoMLJobV2", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateAutoMLJobV2), arg0) +} + +// CreateAutoMLJobV2Request mocks base method. +func (m *MockSageMakerAPI) CreateAutoMLJobV2Request(arg0 *sagemaker.CreateAutoMLJobV2Input) (*request.Request, *sagemaker.CreateAutoMLJobV2Output) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateAutoMLJobV2Request", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateAutoMLJobV2Output) + return ret0, ret1 +} + +// CreateAutoMLJobV2Request indicates an expected call of CreateAutoMLJobV2Request. +func (mr *MockSageMakerAPIMockRecorder) CreateAutoMLJobV2Request(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAutoMLJobV2Request", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateAutoMLJobV2Request), arg0) +} + +// CreateAutoMLJobV2WithContext mocks base method. +func (m *MockSageMakerAPI) CreateAutoMLJobV2WithContext(arg0 aws.Context, arg1 *sagemaker.CreateAutoMLJobV2Input, arg2 ...request.Option) (*sagemaker.CreateAutoMLJobV2Output, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateAutoMLJobV2WithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateAutoMLJobV2Output) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateAutoMLJobV2WithContext indicates an expected call of CreateAutoMLJobV2WithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateAutoMLJobV2WithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAutoMLJobV2WithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateAutoMLJobV2WithContext), varargs...) +} + +// CreateAutoMLJobWithContext mocks base method. +func (m *MockSageMakerAPI) CreateAutoMLJobWithContext(arg0 aws.Context, arg1 *sagemaker.CreateAutoMLJobInput, arg2 ...request.Option) (*sagemaker.CreateAutoMLJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateAutoMLJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateAutoMLJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateAutoMLJobWithContext indicates an expected call of CreateAutoMLJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateAutoMLJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAutoMLJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateAutoMLJobWithContext), varargs...) +} + +// CreateCluster mocks base method. +func (m *MockSageMakerAPI) CreateCluster(arg0 *sagemaker.CreateClusterInput) (*sagemaker.CreateClusterOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateCluster", arg0) + ret0, _ := ret[0].(*sagemaker.CreateClusterOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateCluster indicates an expected call of CreateCluster. +func (mr *MockSageMakerAPIMockRecorder) CreateCluster(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCluster", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateCluster), arg0) +} + +// CreateClusterRequest mocks base method. +func (m *MockSageMakerAPI) CreateClusterRequest(arg0 *sagemaker.CreateClusterInput) (*request.Request, *sagemaker.CreateClusterOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateClusterRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateClusterOutput) + return ret0, ret1 +} + +// CreateClusterRequest indicates an expected call of CreateClusterRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateClusterRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateClusterRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateClusterRequest), arg0) +} + +// CreateClusterWithContext mocks base method. +func (m *MockSageMakerAPI) CreateClusterWithContext(arg0 aws.Context, arg1 *sagemaker.CreateClusterInput, arg2 ...request.Option) (*sagemaker.CreateClusterOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateClusterWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateClusterOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateClusterWithContext indicates an expected call of CreateClusterWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateClusterWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateClusterWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateClusterWithContext), varargs...) +} + +// CreateCodeRepository mocks base method. +func (m *MockSageMakerAPI) CreateCodeRepository(arg0 *sagemaker.CreateCodeRepositoryInput) (*sagemaker.CreateCodeRepositoryOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateCodeRepository", arg0) + ret0, _ := ret[0].(*sagemaker.CreateCodeRepositoryOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateCodeRepository indicates an expected call of CreateCodeRepository. +func (mr *MockSageMakerAPIMockRecorder) CreateCodeRepository(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCodeRepository", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateCodeRepository), arg0) +} + +// CreateCodeRepositoryRequest mocks base method. +func (m *MockSageMakerAPI) CreateCodeRepositoryRequest(arg0 *sagemaker.CreateCodeRepositoryInput) (*request.Request, *sagemaker.CreateCodeRepositoryOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateCodeRepositoryRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateCodeRepositoryOutput) + return ret0, ret1 +} + +// CreateCodeRepositoryRequest indicates an expected call of CreateCodeRepositoryRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateCodeRepositoryRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCodeRepositoryRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateCodeRepositoryRequest), arg0) +} + +// CreateCodeRepositoryWithContext mocks base method. +func (m *MockSageMakerAPI) CreateCodeRepositoryWithContext(arg0 aws.Context, arg1 *sagemaker.CreateCodeRepositoryInput, arg2 ...request.Option) (*sagemaker.CreateCodeRepositoryOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateCodeRepositoryWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateCodeRepositoryOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateCodeRepositoryWithContext indicates an expected call of CreateCodeRepositoryWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateCodeRepositoryWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCodeRepositoryWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateCodeRepositoryWithContext), varargs...) +} + +// CreateCompilationJob mocks base method. +func (m *MockSageMakerAPI) CreateCompilationJob(arg0 *sagemaker.CreateCompilationJobInput) (*sagemaker.CreateCompilationJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateCompilationJob", arg0) + ret0, _ := ret[0].(*sagemaker.CreateCompilationJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateCompilationJob indicates an expected call of CreateCompilationJob. +func (mr *MockSageMakerAPIMockRecorder) CreateCompilationJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCompilationJob", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateCompilationJob), arg0) +} + +// CreateCompilationJobRequest mocks base method. +func (m *MockSageMakerAPI) CreateCompilationJobRequest(arg0 *sagemaker.CreateCompilationJobInput) (*request.Request, *sagemaker.CreateCompilationJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateCompilationJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateCompilationJobOutput) + return ret0, ret1 +} + +// CreateCompilationJobRequest indicates an expected call of CreateCompilationJobRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateCompilationJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCompilationJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateCompilationJobRequest), arg0) +} + +// CreateCompilationJobWithContext mocks base method. +func (m *MockSageMakerAPI) CreateCompilationJobWithContext(arg0 aws.Context, arg1 *sagemaker.CreateCompilationJobInput, arg2 ...request.Option) (*sagemaker.CreateCompilationJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateCompilationJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateCompilationJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateCompilationJobWithContext indicates an expected call of CreateCompilationJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateCompilationJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCompilationJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateCompilationJobWithContext), varargs...) +} + +// CreateContext mocks base method. +func (m *MockSageMakerAPI) CreateContext(arg0 *sagemaker.CreateContextInput) (*sagemaker.CreateContextOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateContext", arg0) + ret0, _ := ret[0].(*sagemaker.CreateContextOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateContext indicates an expected call of CreateContext. +func (mr *MockSageMakerAPIMockRecorder) CreateContext(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateContext), arg0) +} + +// CreateContextRequest mocks base method. +func (m *MockSageMakerAPI) CreateContextRequest(arg0 *sagemaker.CreateContextInput) (*request.Request, *sagemaker.CreateContextOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateContextRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateContextOutput) + return ret0, ret1 +} + +// CreateContextRequest indicates an expected call of CreateContextRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateContextRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateContextRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateContextRequest), arg0) +} + +// CreateContextWithContext mocks base method. +func (m *MockSageMakerAPI) CreateContextWithContext(arg0 aws.Context, arg1 *sagemaker.CreateContextInput, arg2 ...request.Option) (*sagemaker.CreateContextOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateContextWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateContextOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateContextWithContext indicates an expected call of CreateContextWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateContextWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateContextWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateContextWithContext), varargs...) +} + +// CreateDataQualityJobDefinition mocks base method. +func (m *MockSageMakerAPI) CreateDataQualityJobDefinition(arg0 *sagemaker.CreateDataQualityJobDefinitionInput) (*sagemaker.CreateDataQualityJobDefinitionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateDataQualityJobDefinition", arg0) + ret0, _ := ret[0].(*sagemaker.CreateDataQualityJobDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateDataQualityJobDefinition indicates an expected call of CreateDataQualityJobDefinition. +func (mr *MockSageMakerAPIMockRecorder) CreateDataQualityJobDefinition(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateDataQualityJobDefinition", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateDataQualityJobDefinition), arg0) +} + +// CreateDataQualityJobDefinitionRequest mocks base method. +func (m *MockSageMakerAPI) CreateDataQualityJobDefinitionRequest(arg0 *sagemaker.CreateDataQualityJobDefinitionInput) (*request.Request, *sagemaker.CreateDataQualityJobDefinitionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateDataQualityJobDefinitionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateDataQualityJobDefinitionOutput) + return ret0, ret1 +} + +// CreateDataQualityJobDefinitionRequest indicates an expected call of CreateDataQualityJobDefinitionRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateDataQualityJobDefinitionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateDataQualityJobDefinitionRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateDataQualityJobDefinitionRequest), arg0) +} + +// CreateDataQualityJobDefinitionWithContext mocks base method. +func (m *MockSageMakerAPI) CreateDataQualityJobDefinitionWithContext(arg0 aws.Context, arg1 *sagemaker.CreateDataQualityJobDefinitionInput, arg2 ...request.Option) (*sagemaker.CreateDataQualityJobDefinitionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateDataQualityJobDefinitionWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateDataQualityJobDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateDataQualityJobDefinitionWithContext indicates an expected call of CreateDataQualityJobDefinitionWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateDataQualityJobDefinitionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateDataQualityJobDefinitionWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateDataQualityJobDefinitionWithContext), varargs...) +} + +// CreateDeviceFleet mocks base method. +func (m *MockSageMakerAPI) CreateDeviceFleet(arg0 *sagemaker.CreateDeviceFleetInput) (*sagemaker.CreateDeviceFleetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateDeviceFleet", arg0) + ret0, _ := ret[0].(*sagemaker.CreateDeviceFleetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateDeviceFleet indicates an expected call of CreateDeviceFleet. +func (mr *MockSageMakerAPIMockRecorder) CreateDeviceFleet(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateDeviceFleet", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateDeviceFleet), arg0) +} + +// CreateDeviceFleetRequest mocks base method. +func (m *MockSageMakerAPI) CreateDeviceFleetRequest(arg0 *sagemaker.CreateDeviceFleetInput) (*request.Request, *sagemaker.CreateDeviceFleetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateDeviceFleetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateDeviceFleetOutput) + return ret0, ret1 +} + +// CreateDeviceFleetRequest indicates an expected call of CreateDeviceFleetRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateDeviceFleetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateDeviceFleetRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateDeviceFleetRequest), arg0) +} + +// CreateDeviceFleetWithContext mocks base method. +func (m *MockSageMakerAPI) CreateDeviceFleetWithContext(arg0 aws.Context, arg1 *sagemaker.CreateDeviceFleetInput, arg2 ...request.Option) (*sagemaker.CreateDeviceFleetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateDeviceFleetWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateDeviceFleetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateDeviceFleetWithContext indicates an expected call of CreateDeviceFleetWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateDeviceFleetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateDeviceFleetWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateDeviceFleetWithContext), varargs...) +} + +// CreateDomain mocks base method. +func (m *MockSageMakerAPI) CreateDomain(arg0 *sagemaker.CreateDomainInput) (*sagemaker.CreateDomainOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateDomain", arg0) + ret0, _ := ret[0].(*sagemaker.CreateDomainOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateDomain indicates an expected call of CreateDomain. +func (mr *MockSageMakerAPIMockRecorder) CreateDomain(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateDomain", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateDomain), arg0) +} + +// CreateDomainRequest mocks base method. +func (m *MockSageMakerAPI) CreateDomainRequest(arg0 *sagemaker.CreateDomainInput) (*request.Request, *sagemaker.CreateDomainOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateDomainRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateDomainOutput) + return ret0, ret1 +} + +// CreateDomainRequest indicates an expected call of CreateDomainRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateDomainRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateDomainRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateDomainRequest), arg0) +} + +// CreateDomainWithContext mocks base method. +func (m *MockSageMakerAPI) CreateDomainWithContext(arg0 aws.Context, arg1 *sagemaker.CreateDomainInput, arg2 ...request.Option) (*sagemaker.CreateDomainOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateDomainWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateDomainOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateDomainWithContext indicates an expected call of CreateDomainWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateDomainWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateDomainWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateDomainWithContext), varargs...) +} + +// CreateEdgeDeploymentPlan mocks base method. +func (m *MockSageMakerAPI) CreateEdgeDeploymentPlan(arg0 *sagemaker.CreateEdgeDeploymentPlanInput) (*sagemaker.CreateEdgeDeploymentPlanOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateEdgeDeploymentPlan", arg0) + ret0, _ := ret[0].(*sagemaker.CreateEdgeDeploymentPlanOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateEdgeDeploymentPlan indicates an expected call of CreateEdgeDeploymentPlan. +func (mr *MockSageMakerAPIMockRecorder) CreateEdgeDeploymentPlan(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateEdgeDeploymentPlan", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateEdgeDeploymentPlan), arg0) +} + +// CreateEdgeDeploymentPlanRequest mocks base method. +func (m *MockSageMakerAPI) CreateEdgeDeploymentPlanRequest(arg0 *sagemaker.CreateEdgeDeploymentPlanInput) (*request.Request, *sagemaker.CreateEdgeDeploymentPlanOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateEdgeDeploymentPlanRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateEdgeDeploymentPlanOutput) + return ret0, ret1 +} + +// CreateEdgeDeploymentPlanRequest indicates an expected call of CreateEdgeDeploymentPlanRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateEdgeDeploymentPlanRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateEdgeDeploymentPlanRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateEdgeDeploymentPlanRequest), arg0) +} + +// CreateEdgeDeploymentPlanWithContext mocks base method. +func (m *MockSageMakerAPI) CreateEdgeDeploymentPlanWithContext(arg0 aws.Context, arg1 *sagemaker.CreateEdgeDeploymentPlanInput, arg2 ...request.Option) (*sagemaker.CreateEdgeDeploymentPlanOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateEdgeDeploymentPlanWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateEdgeDeploymentPlanOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateEdgeDeploymentPlanWithContext indicates an expected call of CreateEdgeDeploymentPlanWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateEdgeDeploymentPlanWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateEdgeDeploymentPlanWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateEdgeDeploymentPlanWithContext), varargs...) +} + +// CreateEdgeDeploymentStage mocks base method. +func (m *MockSageMakerAPI) CreateEdgeDeploymentStage(arg0 *sagemaker.CreateEdgeDeploymentStageInput) (*sagemaker.CreateEdgeDeploymentStageOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateEdgeDeploymentStage", arg0) + ret0, _ := ret[0].(*sagemaker.CreateEdgeDeploymentStageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateEdgeDeploymentStage indicates an expected call of CreateEdgeDeploymentStage. +func (mr *MockSageMakerAPIMockRecorder) CreateEdgeDeploymentStage(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateEdgeDeploymentStage", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateEdgeDeploymentStage), arg0) +} + +// CreateEdgeDeploymentStageRequest mocks base method. +func (m *MockSageMakerAPI) CreateEdgeDeploymentStageRequest(arg0 *sagemaker.CreateEdgeDeploymentStageInput) (*request.Request, *sagemaker.CreateEdgeDeploymentStageOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateEdgeDeploymentStageRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateEdgeDeploymentStageOutput) + return ret0, ret1 +} + +// CreateEdgeDeploymentStageRequest indicates an expected call of CreateEdgeDeploymentStageRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateEdgeDeploymentStageRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateEdgeDeploymentStageRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateEdgeDeploymentStageRequest), arg0) +} + +// CreateEdgeDeploymentStageWithContext mocks base method. +func (m *MockSageMakerAPI) CreateEdgeDeploymentStageWithContext(arg0 aws.Context, arg1 *sagemaker.CreateEdgeDeploymentStageInput, arg2 ...request.Option) (*sagemaker.CreateEdgeDeploymentStageOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateEdgeDeploymentStageWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateEdgeDeploymentStageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateEdgeDeploymentStageWithContext indicates an expected call of CreateEdgeDeploymentStageWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateEdgeDeploymentStageWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateEdgeDeploymentStageWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateEdgeDeploymentStageWithContext), varargs...) +} + +// CreateEdgePackagingJob mocks base method. +func (m *MockSageMakerAPI) CreateEdgePackagingJob(arg0 *sagemaker.CreateEdgePackagingJobInput) (*sagemaker.CreateEdgePackagingJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateEdgePackagingJob", arg0) + ret0, _ := ret[0].(*sagemaker.CreateEdgePackagingJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateEdgePackagingJob indicates an expected call of CreateEdgePackagingJob. +func (mr *MockSageMakerAPIMockRecorder) CreateEdgePackagingJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateEdgePackagingJob", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateEdgePackagingJob), arg0) +} + +// CreateEdgePackagingJobRequest mocks base method. +func (m *MockSageMakerAPI) CreateEdgePackagingJobRequest(arg0 *sagemaker.CreateEdgePackagingJobInput) (*request.Request, *sagemaker.CreateEdgePackagingJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateEdgePackagingJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateEdgePackagingJobOutput) + return ret0, ret1 +} + +// CreateEdgePackagingJobRequest indicates an expected call of CreateEdgePackagingJobRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateEdgePackagingJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateEdgePackagingJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateEdgePackagingJobRequest), arg0) +} + +// CreateEdgePackagingJobWithContext mocks base method. +func (m *MockSageMakerAPI) CreateEdgePackagingJobWithContext(arg0 aws.Context, arg1 *sagemaker.CreateEdgePackagingJobInput, arg2 ...request.Option) (*sagemaker.CreateEdgePackagingJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateEdgePackagingJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateEdgePackagingJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateEdgePackagingJobWithContext indicates an expected call of CreateEdgePackagingJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateEdgePackagingJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateEdgePackagingJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateEdgePackagingJobWithContext), varargs...) +} + +// CreateEndpoint mocks base method. +func (m *MockSageMakerAPI) CreateEndpoint(arg0 *sagemaker.CreateEndpointInput) (*sagemaker.CreateEndpointOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateEndpoint", arg0) + ret0, _ := ret[0].(*sagemaker.CreateEndpointOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateEndpoint indicates an expected call of CreateEndpoint. +func (mr *MockSageMakerAPIMockRecorder) CreateEndpoint(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateEndpoint", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateEndpoint), arg0) +} + +// CreateEndpointConfig mocks base method. +func (m *MockSageMakerAPI) CreateEndpointConfig(arg0 *sagemaker.CreateEndpointConfigInput) (*sagemaker.CreateEndpointConfigOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateEndpointConfig", arg0) + ret0, _ := ret[0].(*sagemaker.CreateEndpointConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateEndpointConfig indicates an expected call of CreateEndpointConfig. +func (mr *MockSageMakerAPIMockRecorder) CreateEndpointConfig(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateEndpointConfig", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateEndpointConfig), arg0) +} + +// CreateEndpointConfigRequest mocks base method. +func (m *MockSageMakerAPI) CreateEndpointConfigRequest(arg0 *sagemaker.CreateEndpointConfigInput) (*request.Request, *sagemaker.CreateEndpointConfigOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateEndpointConfigRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateEndpointConfigOutput) + return ret0, ret1 +} + +// CreateEndpointConfigRequest indicates an expected call of CreateEndpointConfigRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateEndpointConfigRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateEndpointConfigRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateEndpointConfigRequest), arg0) +} + +// CreateEndpointConfigWithContext mocks base method. +func (m *MockSageMakerAPI) CreateEndpointConfigWithContext(arg0 aws.Context, arg1 *sagemaker.CreateEndpointConfigInput, arg2 ...request.Option) (*sagemaker.CreateEndpointConfigOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateEndpointConfigWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateEndpointConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateEndpointConfigWithContext indicates an expected call of CreateEndpointConfigWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateEndpointConfigWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateEndpointConfigWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateEndpointConfigWithContext), varargs...) +} + +// CreateEndpointRequest mocks base method. +func (m *MockSageMakerAPI) CreateEndpointRequest(arg0 *sagemaker.CreateEndpointInput) (*request.Request, *sagemaker.CreateEndpointOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateEndpointRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateEndpointOutput) + return ret0, ret1 +} + +// CreateEndpointRequest indicates an expected call of CreateEndpointRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateEndpointRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateEndpointRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateEndpointRequest), arg0) +} + +// CreateEndpointWithContext mocks base method. +func (m *MockSageMakerAPI) CreateEndpointWithContext(arg0 aws.Context, arg1 *sagemaker.CreateEndpointInput, arg2 ...request.Option) (*sagemaker.CreateEndpointOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateEndpointWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateEndpointOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateEndpointWithContext indicates an expected call of CreateEndpointWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateEndpointWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateEndpointWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateEndpointWithContext), varargs...) +} + +// CreateExperiment mocks base method. +func (m *MockSageMakerAPI) CreateExperiment(arg0 *sagemaker.CreateExperimentInput) (*sagemaker.CreateExperimentOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateExperiment", arg0) + ret0, _ := ret[0].(*sagemaker.CreateExperimentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateExperiment indicates an expected call of CreateExperiment. +func (mr *MockSageMakerAPIMockRecorder) CreateExperiment(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateExperiment", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateExperiment), arg0) +} + +// CreateExperimentRequest mocks base method. +func (m *MockSageMakerAPI) CreateExperimentRequest(arg0 *sagemaker.CreateExperimentInput) (*request.Request, *sagemaker.CreateExperimentOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateExperimentRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateExperimentOutput) + return ret0, ret1 +} + +// CreateExperimentRequest indicates an expected call of CreateExperimentRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateExperimentRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateExperimentRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateExperimentRequest), arg0) +} + +// CreateExperimentWithContext mocks base method. +func (m *MockSageMakerAPI) CreateExperimentWithContext(arg0 aws.Context, arg1 *sagemaker.CreateExperimentInput, arg2 ...request.Option) (*sagemaker.CreateExperimentOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateExperimentWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateExperimentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateExperimentWithContext indicates an expected call of CreateExperimentWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateExperimentWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateExperimentWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateExperimentWithContext), varargs...) +} + +// CreateFeatureGroup mocks base method. +func (m *MockSageMakerAPI) CreateFeatureGroup(arg0 *sagemaker.CreateFeatureGroupInput) (*sagemaker.CreateFeatureGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateFeatureGroup", arg0) + ret0, _ := ret[0].(*sagemaker.CreateFeatureGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateFeatureGroup indicates an expected call of CreateFeatureGroup. +func (mr *MockSageMakerAPIMockRecorder) CreateFeatureGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateFeatureGroup", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateFeatureGroup), arg0) +} + +// CreateFeatureGroupRequest mocks base method. +func (m *MockSageMakerAPI) CreateFeatureGroupRequest(arg0 *sagemaker.CreateFeatureGroupInput) (*request.Request, *sagemaker.CreateFeatureGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateFeatureGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateFeatureGroupOutput) + return ret0, ret1 +} + +// CreateFeatureGroupRequest indicates an expected call of CreateFeatureGroupRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateFeatureGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateFeatureGroupRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateFeatureGroupRequest), arg0) +} + +// CreateFeatureGroupWithContext mocks base method. +func (m *MockSageMakerAPI) CreateFeatureGroupWithContext(arg0 aws.Context, arg1 *sagemaker.CreateFeatureGroupInput, arg2 ...request.Option) (*sagemaker.CreateFeatureGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateFeatureGroupWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateFeatureGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateFeatureGroupWithContext indicates an expected call of CreateFeatureGroupWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateFeatureGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateFeatureGroupWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateFeatureGroupWithContext), varargs...) +} + +// CreateFlowDefinition mocks base method. +func (m *MockSageMakerAPI) CreateFlowDefinition(arg0 *sagemaker.CreateFlowDefinitionInput) (*sagemaker.CreateFlowDefinitionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateFlowDefinition", arg0) + ret0, _ := ret[0].(*sagemaker.CreateFlowDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateFlowDefinition indicates an expected call of CreateFlowDefinition. +func (mr *MockSageMakerAPIMockRecorder) CreateFlowDefinition(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateFlowDefinition", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateFlowDefinition), arg0) +} + +// CreateFlowDefinitionRequest mocks base method. +func (m *MockSageMakerAPI) CreateFlowDefinitionRequest(arg0 *sagemaker.CreateFlowDefinitionInput) (*request.Request, *sagemaker.CreateFlowDefinitionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateFlowDefinitionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateFlowDefinitionOutput) + return ret0, ret1 +} + +// CreateFlowDefinitionRequest indicates an expected call of CreateFlowDefinitionRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateFlowDefinitionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateFlowDefinitionRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateFlowDefinitionRequest), arg0) +} + +// CreateFlowDefinitionWithContext mocks base method. +func (m *MockSageMakerAPI) CreateFlowDefinitionWithContext(arg0 aws.Context, arg1 *sagemaker.CreateFlowDefinitionInput, arg2 ...request.Option) (*sagemaker.CreateFlowDefinitionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateFlowDefinitionWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateFlowDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateFlowDefinitionWithContext indicates an expected call of CreateFlowDefinitionWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateFlowDefinitionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateFlowDefinitionWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateFlowDefinitionWithContext), varargs...) +} + +// CreateHub mocks base method. +func (m *MockSageMakerAPI) CreateHub(arg0 *sagemaker.CreateHubInput) (*sagemaker.CreateHubOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateHub", arg0) + ret0, _ := ret[0].(*sagemaker.CreateHubOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateHub indicates an expected call of CreateHub. +func (mr *MockSageMakerAPIMockRecorder) CreateHub(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateHub", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateHub), arg0) +} + +// CreateHubRequest mocks base method. +func (m *MockSageMakerAPI) CreateHubRequest(arg0 *sagemaker.CreateHubInput) (*request.Request, *sagemaker.CreateHubOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateHubRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateHubOutput) + return ret0, ret1 +} + +// CreateHubRequest indicates an expected call of CreateHubRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateHubRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateHubRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateHubRequest), arg0) +} + +// CreateHubWithContext mocks base method. +func (m *MockSageMakerAPI) CreateHubWithContext(arg0 aws.Context, arg1 *sagemaker.CreateHubInput, arg2 ...request.Option) (*sagemaker.CreateHubOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateHubWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateHubOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateHubWithContext indicates an expected call of CreateHubWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateHubWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateHubWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateHubWithContext), varargs...) +} + +// CreateHumanTaskUi mocks base method. +func (m *MockSageMakerAPI) CreateHumanTaskUi(arg0 *sagemaker.CreateHumanTaskUiInput) (*sagemaker.CreateHumanTaskUiOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateHumanTaskUi", arg0) + ret0, _ := ret[0].(*sagemaker.CreateHumanTaskUiOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateHumanTaskUi indicates an expected call of CreateHumanTaskUi. +func (mr *MockSageMakerAPIMockRecorder) CreateHumanTaskUi(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateHumanTaskUi", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateHumanTaskUi), arg0) +} + +// CreateHumanTaskUiRequest mocks base method. +func (m *MockSageMakerAPI) CreateHumanTaskUiRequest(arg0 *sagemaker.CreateHumanTaskUiInput) (*request.Request, *sagemaker.CreateHumanTaskUiOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateHumanTaskUiRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateHumanTaskUiOutput) + return ret0, ret1 +} + +// CreateHumanTaskUiRequest indicates an expected call of CreateHumanTaskUiRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateHumanTaskUiRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateHumanTaskUiRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateHumanTaskUiRequest), arg0) +} + +// CreateHumanTaskUiWithContext mocks base method. +func (m *MockSageMakerAPI) CreateHumanTaskUiWithContext(arg0 aws.Context, arg1 *sagemaker.CreateHumanTaskUiInput, arg2 ...request.Option) (*sagemaker.CreateHumanTaskUiOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateHumanTaskUiWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateHumanTaskUiOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateHumanTaskUiWithContext indicates an expected call of CreateHumanTaskUiWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateHumanTaskUiWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateHumanTaskUiWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateHumanTaskUiWithContext), varargs...) +} + +// CreateHyperParameterTuningJob mocks base method. +func (m *MockSageMakerAPI) CreateHyperParameterTuningJob(arg0 *sagemaker.CreateHyperParameterTuningJobInput) (*sagemaker.CreateHyperParameterTuningJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateHyperParameterTuningJob", arg0) + ret0, _ := ret[0].(*sagemaker.CreateHyperParameterTuningJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateHyperParameterTuningJob indicates an expected call of CreateHyperParameterTuningJob. +func (mr *MockSageMakerAPIMockRecorder) CreateHyperParameterTuningJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateHyperParameterTuningJob", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateHyperParameterTuningJob), arg0) +} + +// CreateHyperParameterTuningJobRequest mocks base method. +func (m *MockSageMakerAPI) CreateHyperParameterTuningJobRequest(arg0 *sagemaker.CreateHyperParameterTuningJobInput) (*request.Request, *sagemaker.CreateHyperParameterTuningJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateHyperParameterTuningJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateHyperParameterTuningJobOutput) + return ret0, ret1 +} + +// CreateHyperParameterTuningJobRequest indicates an expected call of CreateHyperParameterTuningJobRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateHyperParameterTuningJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateHyperParameterTuningJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateHyperParameterTuningJobRequest), arg0) +} + +// CreateHyperParameterTuningJobWithContext mocks base method. +func (m *MockSageMakerAPI) CreateHyperParameterTuningJobWithContext(arg0 aws.Context, arg1 *sagemaker.CreateHyperParameterTuningJobInput, arg2 ...request.Option) (*sagemaker.CreateHyperParameterTuningJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateHyperParameterTuningJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateHyperParameterTuningJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateHyperParameterTuningJobWithContext indicates an expected call of CreateHyperParameterTuningJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateHyperParameterTuningJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateHyperParameterTuningJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateHyperParameterTuningJobWithContext), varargs...) +} + +// CreateImage mocks base method. +func (m *MockSageMakerAPI) CreateImage(arg0 *sagemaker.CreateImageInput) (*sagemaker.CreateImageOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateImage", arg0) + ret0, _ := ret[0].(*sagemaker.CreateImageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateImage indicates an expected call of CreateImage. +func (mr *MockSageMakerAPIMockRecorder) CreateImage(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateImage", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateImage), arg0) +} + +// CreateImageRequest mocks base method. +func (m *MockSageMakerAPI) CreateImageRequest(arg0 *sagemaker.CreateImageInput) (*request.Request, *sagemaker.CreateImageOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateImageRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateImageOutput) + return ret0, ret1 +} + +// CreateImageRequest indicates an expected call of CreateImageRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateImageRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateImageRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateImageRequest), arg0) +} + +// CreateImageVersion mocks base method. +func (m *MockSageMakerAPI) CreateImageVersion(arg0 *sagemaker.CreateImageVersionInput) (*sagemaker.CreateImageVersionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateImageVersion", arg0) + ret0, _ := ret[0].(*sagemaker.CreateImageVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateImageVersion indicates an expected call of CreateImageVersion. +func (mr *MockSageMakerAPIMockRecorder) CreateImageVersion(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateImageVersion", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateImageVersion), arg0) +} + +// CreateImageVersionRequest mocks base method. +func (m *MockSageMakerAPI) CreateImageVersionRequest(arg0 *sagemaker.CreateImageVersionInput) (*request.Request, *sagemaker.CreateImageVersionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateImageVersionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateImageVersionOutput) + return ret0, ret1 +} + +// CreateImageVersionRequest indicates an expected call of CreateImageVersionRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateImageVersionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateImageVersionRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateImageVersionRequest), arg0) +} + +// CreateImageVersionWithContext mocks base method. +func (m *MockSageMakerAPI) CreateImageVersionWithContext(arg0 aws.Context, arg1 *sagemaker.CreateImageVersionInput, arg2 ...request.Option) (*sagemaker.CreateImageVersionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateImageVersionWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateImageVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateImageVersionWithContext indicates an expected call of CreateImageVersionWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateImageVersionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateImageVersionWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateImageVersionWithContext), varargs...) +} + +// CreateImageWithContext mocks base method. +func (m *MockSageMakerAPI) CreateImageWithContext(arg0 aws.Context, arg1 *sagemaker.CreateImageInput, arg2 ...request.Option) (*sagemaker.CreateImageOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateImageWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateImageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateImageWithContext indicates an expected call of CreateImageWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateImageWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateImageWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateImageWithContext), varargs...) +} + +// CreateInferenceComponent mocks base method. +func (m *MockSageMakerAPI) CreateInferenceComponent(arg0 *sagemaker.CreateInferenceComponentInput) (*sagemaker.CreateInferenceComponentOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateInferenceComponent", arg0) + ret0, _ := ret[0].(*sagemaker.CreateInferenceComponentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateInferenceComponent indicates an expected call of CreateInferenceComponent. +func (mr *MockSageMakerAPIMockRecorder) CreateInferenceComponent(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateInferenceComponent", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateInferenceComponent), arg0) +} + +// CreateInferenceComponentRequest mocks base method. +func (m *MockSageMakerAPI) CreateInferenceComponentRequest(arg0 *sagemaker.CreateInferenceComponentInput) (*request.Request, *sagemaker.CreateInferenceComponentOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateInferenceComponentRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateInferenceComponentOutput) + return ret0, ret1 +} + +// CreateInferenceComponentRequest indicates an expected call of CreateInferenceComponentRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateInferenceComponentRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateInferenceComponentRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateInferenceComponentRequest), arg0) +} + +// CreateInferenceComponentWithContext mocks base method. +func (m *MockSageMakerAPI) CreateInferenceComponentWithContext(arg0 aws.Context, arg1 *sagemaker.CreateInferenceComponentInput, arg2 ...request.Option) (*sagemaker.CreateInferenceComponentOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateInferenceComponentWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateInferenceComponentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateInferenceComponentWithContext indicates an expected call of CreateInferenceComponentWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateInferenceComponentWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateInferenceComponentWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateInferenceComponentWithContext), varargs...) +} + +// CreateInferenceExperiment mocks base method. +func (m *MockSageMakerAPI) CreateInferenceExperiment(arg0 *sagemaker.CreateInferenceExperimentInput) (*sagemaker.CreateInferenceExperimentOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateInferenceExperiment", arg0) + ret0, _ := ret[0].(*sagemaker.CreateInferenceExperimentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateInferenceExperiment indicates an expected call of CreateInferenceExperiment. +func (mr *MockSageMakerAPIMockRecorder) CreateInferenceExperiment(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateInferenceExperiment", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateInferenceExperiment), arg0) +} + +// CreateInferenceExperimentRequest mocks base method. +func (m *MockSageMakerAPI) CreateInferenceExperimentRequest(arg0 *sagemaker.CreateInferenceExperimentInput) (*request.Request, *sagemaker.CreateInferenceExperimentOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateInferenceExperimentRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateInferenceExperimentOutput) + return ret0, ret1 +} + +// CreateInferenceExperimentRequest indicates an expected call of CreateInferenceExperimentRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateInferenceExperimentRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateInferenceExperimentRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateInferenceExperimentRequest), arg0) +} + +// CreateInferenceExperimentWithContext mocks base method. +func (m *MockSageMakerAPI) CreateInferenceExperimentWithContext(arg0 aws.Context, arg1 *sagemaker.CreateInferenceExperimentInput, arg2 ...request.Option) (*sagemaker.CreateInferenceExperimentOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateInferenceExperimentWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateInferenceExperimentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateInferenceExperimentWithContext indicates an expected call of CreateInferenceExperimentWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateInferenceExperimentWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateInferenceExperimentWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateInferenceExperimentWithContext), varargs...) +} + +// CreateInferenceRecommendationsJob mocks base method. +func (m *MockSageMakerAPI) CreateInferenceRecommendationsJob(arg0 *sagemaker.CreateInferenceRecommendationsJobInput) (*sagemaker.CreateInferenceRecommendationsJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateInferenceRecommendationsJob", arg0) + ret0, _ := ret[0].(*sagemaker.CreateInferenceRecommendationsJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateInferenceRecommendationsJob indicates an expected call of CreateInferenceRecommendationsJob. +func (mr *MockSageMakerAPIMockRecorder) CreateInferenceRecommendationsJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateInferenceRecommendationsJob", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateInferenceRecommendationsJob), arg0) +} + +// CreateInferenceRecommendationsJobRequest mocks base method. +func (m *MockSageMakerAPI) CreateInferenceRecommendationsJobRequest(arg0 *sagemaker.CreateInferenceRecommendationsJobInput) (*request.Request, *sagemaker.CreateInferenceRecommendationsJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateInferenceRecommendationsJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateInferenceRecommendationsJobOutput) + return ret0, ret1 +} + +// CreateInferenceRecommendationsJobRequest indicates an expected call of CreateInferenceRecommendationsJobRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateInferenceRecommendationsJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateInferenceRecommendationsJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateInferenceRecommendationsJobRequest), arg0) +} + +// CreateInferenceRecommendationsJobWithContext mocks base method. +func (m *MockSageMakerAPI) CreateInferenceRecommendationsJobWithContext(arg0 aws.Context, arg1 *sagemaker.CreateInferenceRecommendationsJobInput, arg2 ...request.Option) (*sagemaker.CreateInferenceRecommendationsJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateInferenceRecommendationsJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateInferenceRecommendationsJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateInferenceRecommendationsJobWithContext indicates an expected call of CreateInferenceRecommendationsJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateInferenceRecommendationsJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateInferenceRecommendationsJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateInferenceRecommendationsJobWithContext), varargs...) +} + +// CreateLabelingJob mocks base method. +func (m *MockSageMakerAPI) CreateLabelingJob(arg0 *sagemaker.CreateLabelingJobInput) (*sagemaker.CreateLabelingJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateLabelingJob", arg0) + ret0, _ := ret[0].(*sagemaker.CreateLabelingJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateLabelingJob indicates an expected call of CreateLabelingJob. +func (mr *MockSageMakerAPIMockRecorder) CreateLabelingJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateLabelingJob", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateLabelingJob), arg0) +} + +// CreateLabelingJobRequest mocks base method. +func (m *MockSageMakerAPI) CreateLabelingJobRequest(arg0 *sagemaker.CreateLabelingJobInput) (*request.Request, *sagemaker.CreateLabelingJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateLabelingJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateLabelingJobOutput) + return ret0, ret1 +} + +// CreateLabelingJobRequest indicates an expected call of CreateLabelingJobRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateLabelingJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateLabelingJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateLabelingJobRequest), arg0) +} + +// CreateLabelingJobWithContext mocks base method. +func (m *MockSageMakerAPI) CreateLabelingJobWithContext(arg0 aws.Context, arg1 *sagemaker.CreateLabelingJobInput, arg2 ...request.Option) (*sagemaker.CreateLabelingJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateLabelingJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateLabelingJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateLabelingJobWithContext indicates an expected call of CreateLabelingJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateLabelingJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateLabelingJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateLabelingJobWithContext), varargs...) +} + +// CreateModel mocks base method. +func (m *MockSageMakerAPI) CreateModel(arg0 *sagemaker.CreateModelInput) (*sagemaker.CreateModelOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateModel", arg0) + ret0, _ := ret[0].(*sagemaker.CreateModelOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateModel indicates an expected call of CreateModel. +func (mr *MockSageMakerAPIMockRecorder) CreateModel(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateModel", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateModel), arg0) +} + +// CreateModelBiasJobDefinition mocks base method. +func (m *MockSageMakerAPI) CreateModelBiasJobDefinition(arg0 *sagemaker.CreateModelBiasJobDefinitionInput) (*sagemaker.CreateModelBiasJobDefinitionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateModelBiasJobDefinition", arg0) + ret0, _ := ret[0].(*sagemaker.CreateModelBiasJobDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateModelBiasJobDefinition indicates an expected call of CreateModelBiasJobDefinition. +func (mr *MockSageMakerAPIMockRecorder) CreateModelBiasJobDefinition(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateModelBiasJobDefinition", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateModelBiasJobDefinition), arg0) +} + +// CreateModelBiasJobDefinitionRequest mocks base method. +func (m *MockSageMakerAPI) CreateModelBiasJobDefinitionRequest(arg0 *sagemaker.CreateModelBiasJobDefinitionInput) (*request.Request, *sagemaker.CreateModelBiasJobDefinitionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateModelBiasJobDefinitionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateModelBiasJobDefinitionOutput) + return ret0, ret1 +} + +// CreateModelBiasJobDefinitionRequest indicates an expected call of CreateModelBiasJobDefinitionRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateModelBiasJobDefinitionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateModelBiasJobDefinitionRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateModelBiasJobDefinitionRequest), arg0) +} + +// CreateModelBiasJobDefinitionWithContext mocks base method. +func (m *MockSageMakerAPI) CreateModelBiasJobDefinitionWithContext(arg0 aws.Context, arg1 *sagemaker.CreateModelBiasJobDefinitionInput, arg2 ...request.Option) (*sagemaker.CreateModelBiasJobDefinitionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateModelBiasJobDefinitionWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateModelBiasJobDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateModelBiasJobDefinitionWithContext indicates an expected call of CreateModelBiasJobDefinitionWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateModelBiasJobDefinitionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateModelBiasJobDefinitionWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateModelBiasJobDefinitionWithContext), varargs...) +} + +// CreateModelCard mocks base method. +func (m *MockSageMakerAPI) CreateModelCard(arg0 *sagemaker.CreateModelCardInput) (*sagemaker.CreateModelCardOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateModelCard", arg0) + ret0, _ := ret[0].(*sagemaker.CreateModelCardOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateModelCard indicates an expected call of CreateModelCard. +func (mr *MockSageMakerAPIMockRecorder) CreateModelCard(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateModelCard", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateModelCard), arg0) +} + +// CreateModelCardExportJob mocks base method. +func (m *MockSageMakerAPI) CreateModelCardExportJob(arg0 *sagemaker.CreateModelCardExportJobInput) (*sagemaker.CreateModelCardExportJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateModelCardExportJob", arg0) + ret0, _ := ret[0].(*sagemaker.CreateModelCardExportJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateModelCardExportJob indicates an expected call of CreateModelCardExportJob. +func (mr *MockSageMakerAPIMockRecorder) CreateModelCardExportJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateModelCardExportJob", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateModelCardExportJob), arg0) +} + +// CreateModelCardExportJobRequest mocks base method. +func (m *MockSageMakerAPI) CreateModelCardExportJobRequest(arg0 *sagemaker.CreateModelCardExportJobInput) (*request.Request, *sagemaker.CreateModelCardExportJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateModelCardExportJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateModelCardExportJobOutput) + return ret0, ret1 +} + +// CreateModelCardExportJobRequest indicates an expected call of CreateModelCardExportJobRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateModelCardExportJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateModelCardExportJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateModelCardExportJobRequest), arg0) +} + +// CreateModelCardExportJobWithContext mocks base method. +func (m *MockSageMakerAPI) CreateModelCardExportJobWithContext(arg0 aws.Context, arg1 *sagemaker.CreateModelCardExportJobInput, arg2 ...request.Option) (*sagemaker.CreateModelCardExportJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateModelCardExportJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateModelCardExportJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateModelCardExportJobWithContext indicates an expected call of CreateModelCardExportJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateModelCardExportJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateModelCardExportJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateModelCardExportJobWithContext), varargs...) +} + +// CreateModelCardRequest mocks base method. +func (m *MockSageMakerAPI) CreateModelCardRequest(arg0 *sagemaker.CreateModelCardInput) (*request.Request, *sagemaker.CreateModelCardOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateModelCardRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateModelCardOutput) + return ret0, ret1 +} + +// CreateModelCardRequest indicates an expected call of CreateModelCardRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateModelCardRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateModelCardRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateModelCardRequest), arg0) +} + +// CreateModelCardWithContext mocks base method. +func (m *MockSageMakerAPI) CreateModelCardWithContext(arg0 aws.Context, arg1 *sagemaker.CreateModelCardInput, arg2 ...request.Option) (*sagemaker.CreateModelCardOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateModelCardWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateModelCardOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateModelCardWithContext indicates an expected call of CreateModelCardWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateModelCardWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateModelCardWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateModelCardWithContext), varargs...) +} + +// CreateModelExplainabilityJobDefinition mocks base method. +func (m *MockSageMakerAPI) CreateModelExplainabilityJobDefinition(arg0 *sagemaker.CreateModelExplainabilityJobDefinitionInput) (*sagemaker.CreateModelExplainabilityJobDefinitionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateModelExplainabilityJobDefinition", arg0) + ret0, _ := ret[0].(*sagemaker.CreateModelExplainabilityJobDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateModelExplainabilityJobDefinition indicates an expected call of CreateModelExplainabilityJobDefinition. +func (mr *MockSageMakerAPIMockRecorder) CreateModelExplainabilityJobDefinition(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateModelExplainabilityJobDefinition", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateModelExplainabilityJobDefinition), arg0) +} + +// CreateModelExplainabilityJobDefinitionRequest mocks base method. +func (m *MockSageMakerAPI) CreateModelExplainabilityJobDefinitionRequest(arg0 *sagemaker.CreateModelExplainabilityJobDefinitionInput) (*request.Request, *sagemaker.CreateModelExplainabilityJobDefinitionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateModelExplainabilityJobDefinitionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateModelExplainabilityJobDefinitionOutput) + return ret0, ret1 +} + +// CreateModelExplainabilityJobDefinitionRequest indicates an expected call of CreateModelExplainabilityJobDefinitionRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateModelExplainabilityJobDefinitionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateModelExplainabilityJobDefinitionRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateModelExplainabilityJobDefinitionRequest), arg0) +} + +// CreateModelExplainabilityJobDefinitionWithContext mocks base method. +func (m *MockSageMakerAPI) CreateModelExplainabilityJobDefinitionWithContext(arg0 aws.Context, arg1 *sagemaker.CreateModelExplainabilityJobDefinitionInput, arg2 ...request.Option) (*sagemaker.CreateModelExplainabilityJobDefinitionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateModelExplainabilityJobDefinitionWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateModelExplainabilityJobDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateModelExplainabilityJobDefinitionWithContext indicates an expected call of CreateModelExplainabilityJobDefinitionWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateModelExplainabilityJobDefinitionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateModelExplainabilityJobDefinitionWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateModelExplainabilityJobDefinitionWithContext), varargs...) +} + +// CreateModelPackage mocks base method. +func (m *MockSageMakerAPI) CreateModelPackage(arg0 *sagemaker.CreateModelPackageInput) (*sagemaker.CreateModelPackageOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateModelPackage", arg0) + ret0, _ := ret[0].(*sagemaker.CreateModelPackageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateModelPackage indicates an expected call of CreateModelPackage. +func (mr *MockSageMakerAPIMockRecorder) CreateModelPackage(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateModelPackage", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateModelPackage), arg0) +} + +// CreateModelPackageGroup mocks base method. +func (m *MockSageMakerAPI) CreateModelPackageGroup(arg0 *sagemaker.CreateModelPackageGroupInput) (*sagemaker.CreateModelPackageGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateModelPackageGroup", arg0) + ret0, _ := ret[0].(*sagemaker.CreateModelPackageGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateModelPackageGroup indicates an expected call of CreateModelPackageGroup. +func (mr *MockSageMakerAPIMockRecorder) CreateModelPackageGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateModelPackageGroup", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateModelPackageGroup), arg0) +} + +// CreateModelPackageGroupRequest mocks base method. +func (m *MockSageMakerAPI) CreateModelPackageGroupRequest(arg0 *sagemaker.CreateModelPackageGroupInput) (*request.Request, *sagemaker.CreateModelPackageGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateModelPackageGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateModelPackageGroupOutput) + return ret0, ret1 +} + +// CreateModelPackageGroupRequest indicates an expected call of CreateModelPackageGroupRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateModelPackageGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateModelPackageGroupRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateModelPackageGroupRequest), arg0) +} + +// CreateModelPackageGroupWithContext mocks base method. +func (m *MockSageMakerAPI) CreateModelPackageGroupWithContext(arg0 aws.Context, arg1 *sagemaker.CreateModelPackageGroupInput, arg2 ...request.Option) (*sagemaker.CreateModelPackageGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateModelPackageGroupWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateModelPackageGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateModelPackageGroupWithContext indicates an expected call of CreateModelPackageGroupWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateModelPackageGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateModelPackageGroupWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateModelPackageGroupWithContext), varargs...) +} + +// CreateModelPackageRequest mocks base method. +func (m *MockSageMakerAPI) CreateModelPackageRequest(arg0 *sagemaker.CreateModelPackageInput) (*request.Request, *sagemaker.CreateModelPackageOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateModelPackageRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateModelPackageOutput) + return ret0, ret1 +} + +// CreateModelPackageRequest indicates an expected call of CreateModelPackageRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateModelPackageRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateModelPackageRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateModelPackageRequest), arg0) +} + +// CreateModelPackageWithContext mocks base method. +func (m *MockSageMakerAPI) CreateModelPackageWithContext(arg0 aws.Context, arg1 *sagemaker.CreateModelPackageInput, arg2 ...request.Option) (*sagemaker.CreateModelPackageOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateModelPackageWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateModelPackageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateModelPackageWithContext indicates an expected call of CreateModelPackageWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateModelPackageWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateModelPackageWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateModelPackageWithContext), varargs...) +} + +// CreateModelQualityJobDefinition mocks base method. +func (m *MockSageMakerAPI) CreateModelQualityJobDefinition(arg0 *sagemaker.CreateModelQualityJobDefinitionInput) (*sagemaker.CreateModelQualityJobDefinitionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateModelQualityJobDefinition", arg0) + ret0, _ := ret[0].(*sagemaker.CreateModelQualityJobDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateModelQualityJobDefinition indicates an expected call of CreateModelQualityJobDefinition. +func (mr *MockSageMakerAPIMockRecorder) CreateModelQualityJobDefinition(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateModelQualityJobDefinition", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateModelQualityJobDefinition), arg0) +} + +// CreateModelQualityJobDefinitionRequest mocks base method. +func (m *MockSageMakerAPI) CreateModelQualityJobDefinitionRequest(arg0 *sagemaker.CreateModelQualityJobDefinitionInput) (*request.Request, *sagemaker.CreateModelQualityJobDefinitionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateModelQualityJobDefinitionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateModelQualityJobDefinitionOutput) + return ret0, ret1 +} + +// CreateModelQualityJobDefinitionRequest indicates an expected call of CreateModelQualityJobDefinitionRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateModelQualityJobDefinitionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateModelQualityJobDefinitionRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateModelQualityJobDefinitionRequest), arg0) +} + +// CreateModelQualityJobDefinitionWithContext mocks base method. +func (m *MockSageMakerAPI) CreateModelQualityJobDefinitionWithContext(arg0 aws.Context, arg1 *sagemaker.CreateModelQualityJobDefinitionInput, arg2 ...request.Option) (*sagemaker.CreateModelQualityJobDefinitionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateModelQualityJobDefinitionWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateModelQualityJobDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateModelQualityJobDefinitionWithContext indicates an expected call of CreateModelQualityJobDefinitionWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateModelQualityJobDefinitionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateModelQualityJobDefinitionWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateModelQualityJobDefinitionWithContext), varargs...) +} + +// CreateModelRequest mocks base method. +func (m *MockSageMakerAPI) CreateModelRequest(arg0 *sagemaker.CreateModelInput) (*request.Request, *sagemaker.CreateModelOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateModelRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateModelOutput) + return ret0, ret1 +} + +// CreateModelRequest indicates an expected call of CreateModelRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateModelRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateModelRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateModelRequest), arg0) +} + +// CreateModelWithContext mocks base method. +func (m *MockSageMakerAPI) CreateModelWithContext(arg0 aws.Context, arg1 *sagemaker.CreateModelInput, arg2 ...request.Option) (*sagemaker.CreateModelOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateModelWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateModelOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateModelWithContext indicates an expected call of CreateModelWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateModelWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateModelWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateModelWithContext), varargs...) +} + +// CreateMonitoringSchedule mocks base method. +func (m *MockSageMakerAPI) CreateMonitoringSchedule(arg0 *sagemaker.CreateMonitoringScheduleInput) (*sagemaker.CreateMonitoringScheduleOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateMonitoringSchedule", arg0) + ret0, _ := ret[0].(*sagemaker.CreateMonitoringScheduleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateMonitoringSchedule indicates an expected call of CreateMonitoringSchedule. +func (mr *MockSageMakerAPIMockRecorder) CreateMonitoringSchedule(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateMonitoringSchedule", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateMonitoringSchedule), arg0) +} + +// CreateMonitoringScheduleRequest mocks base method. +func (m *MockSageMakerAPI) CreateMonitoringScheduleRequest(arg0 *sagemaker.CreateMonitoringScheduleInput) (*request.Request, *sagemaker.CreateMonitoringScheduleOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateMonitoringScheduleRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateMonitoringScheduleOutput) + return ret0, ret1 +} + +// CreateMonitoringScheduleRequest indicates an expected call of CreateMonitoringScheduleRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateMonitoringScheduleRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateMonitoringScheduleRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateMonitoringScheduleRequest), arg0) +} + +// CreateMonitoringScheduleWithContext mocks base method. +func (m *MockSageMakerAPI) CreateMonitoringScheduleWithContext(arg0 aws.Context, arg1 *sagemaker.CreateMonitoringScheduleInput, arg2 ...request.Option) (*sagemaker.CreateMonitoringScheduleOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateMonitoringScheduleWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateMonitoringScheduleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateMonitoringScheduleWithContext indicates an expected call of CreateMonitoringScheduleWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateMonitoringScheduleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateMonitoringScheduleWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateMonitoringScheduleWithContext), varargs...) +} + +// CreateNotebookInstance mocks base method. +func (m *MockSageMakerAPI) CreateNotebookInstance(arg0 *sagemaker.CreateNotebookInstanceInput) (*sagemaker.CreateNotebookInstanceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateNotebookInstance", arg0) + ret0, _ := ret[0].(*sagemaker.CreateNotebookInstanceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateNotebookInstance indicates an expected call of CreateNotebookInstance. +func (mr *MockSageMakerAPIMockRecorder) CreateNotebookInstance(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateNotebookInstance", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateNotebookInstance), arg0) +} + +// CreateNotebookInstanceLifecycleConfig mocks base method. +func (m *MockSageMakerAPI) CreateNotebookInstanceLifecycleConfig(arg0 *sagemaker.CreateNotebookInstanceLifecycleConfigInput) (*sagemaker.CreateNotebookInstanceLifecycleConfigOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateNotebookInstanceLifecycleConfig", arg0) + ret0, _ := ret[0].(*sagemaker.CreateNotebookInstanceLifecycleConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateNotebookInstanceLifecycleConfig indicates an expected call of CreateNotebookInstanceLifecycleConfig. +func (mr *MockSageMakerAPIMockRecorder) CreateNotebookInstanceLifecycleConfig(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateNotebookInstanceLifecycleConfig", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateNotebookInstanceLifecycleConfig), arg0) +} + +// CreateNotebookInstanceLifecycleConfigRequest mocks base method. +func (m *MockSageMakerAPI) CreateNotebookInstanceLifecycleConfigRequest(arg0 *sagemaker.CreateNotebookInstanceLifecycleConfigInput) (*request.Request, *sagemaker.CreateNotebookInstanceLifecycleConfigOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateNotebookInstanceLifecycleConfigRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateNotebookInstanceLifecycleConfigOutput) + return ret0, ret1 +} + +// CreateNotebookInstanceLifecycleConfigRequest indicates an expected call of CreateNotebookInstanceLifecycleConfigRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateNotebookInstanceLifecycleConfigRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateNotebookInstanceLifecycleConfigRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateNotebookInstanceLifecycleConfigRequest), arg0) +} + +// CreateNotebookInstanceLifecycleConfigWithContext mocks base method. +func (m *MockSageMakerAPI) CreateNotebookInstanceLifecycleConfigWithContext(arg0 aws.Context, arg1 *sagemaker.CreateNotebookInstanceLifecycleConfigInput, arg2 ...request.Option) (*sagemaker.CreateNotebookInstanceLifecycleConfigOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateNotebookInstanceLifecycleConfigWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateNotebookInstanceLifecycleConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateNotebookInstanceLifecycleConfigWithContext indicates an expected call of CreateNotebookInstanceLifecycleConfigWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateNotebookInstanceLifecycleConfigWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateNotebookInstanceLifecycleConfigWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateNotebookInstanceLifecycleConfigWithContext), varargs...) +} + +// CreateNotebookInstanceRequest mocks base method. +func (m *MockSageMakerAPI) CreateNotebookInstanceRequest(arg0 *sagemaker.CreateNotebookInstanceInput) (*request.Request, *sagemaker.CreateNotebookInstanceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateNotebookInstanceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateNotebookInstanceOutput) + return ret0, ret1 +} + +// CreateNotebookInstanceRequest indicates an expected call of CreateNotebookInstanceRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateNotebookInstanceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateNotebookInstanceRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateNotebookInstanceRequest), arg0) +} + +// CreateNotebookInstanceWithContext mocks base method. +func (m *MockSageMakerAPI) CreateNotebookInstanceWithContext(arg0 aws.Context, arg1 *sagemaker.CreateNotebookInstanceInput, arg2 ...request.Option) (*sagemaker.CreateNotebookInstanceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateNotebookInstanceWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateNotebookInstanceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateNotebookInstanceWithContext indicates an expected call of CreateNotebookInstanceWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateNotebookInstanceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateNotebookInstanceWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateNotebookInstanceWithContext), varargs...) +} + +// CreatePipeline mocks base method. +func (m *MockSageMakerAPI) CreatePipeline(arg0 *sagemaker.CreatePipelineInput) (*sagemaker.CreatePipelineOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreatePipeline", arg0) + ret0, _ := ret[0].(*sagemaker.CreatePipelineOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreatePipeline indicates an expected call of CreatePipeline. +func (mr *MockSageMakerAPIMockRecorder) CreatePipeline(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePipeline", reflect.TypeOf((*MockSageMakerAPI)(nil).CreatePipeline), arg0) +} + +// CreatePipelineRequest mocks base method. +func (m *MockSageMakerAPI) CreatePipelineRequest(arg0 *sagemaker.CreatePipelineInput) (*request.Request, *sagemaker.CreatePipelineOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreatePipelineRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreatePipelineOutput) + return ret0, ret1 +} + +// CreatePipelineRequest indicates an expected call of CreatePipelineRequest. +func (mr *MockSageMakerAPIMockRecorder) CreatePipelineRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePipelineRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreatePipelineRequest), arg0) +} + +// CreatePipelineWithContext mocks base method. +func (m *MockSageMakerAPI) CreatePipelineWithContext(arg0 aws.Context, arg1 *sagemaker.CreatePipelineInput, arg2 ...request.Option) (*sagemaker.CreatePipelineOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreatePipelineWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreatePipelineOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreatePipelineWithContext indicates an expected call of CreatePipelineWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreatePipelineWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePipelineWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreatePipelineWithContext), varargs...) +} + +// CreatePresignedDomainUrl mocks base method. +func (m *MockSageMakerAPI) CreatePresignedDomainUrl(arg0 *sagemaker.CreatePresignedDomainUrlInput) (*sagemaker.CreatePresignedDomainUrlOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreatePresignedDomainUrl", arg0) + ret0, _ := ret[0].(*sagemaker.CreatePresignedDomainUrlOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreatePresignedDomainUrl indicates an expected call of CreatePresignedDomainUrl. +func (mr *MockSageMakerAPIMockRecorder) CreatePresignedDomainUrl(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePresignedDomainUrl", reflect.TypeOf((*MockSageMakerAPI)(nil).CreatePresignedDomainUrl), arg0) +} + +// CreatePresignedDomainUrlRequest mocks base method. +func (m *MockSageMakerAPI) CreatePresignedDomainUrlRequest(arg0 *sagemaker.CreatePresignedDomainUrlInput) (*request.Request, *sagemaker.CreatePresignedDomainUrlOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreatePresignedDomainUrlRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreatePresignedDomainUrlOutput) + return ret0, ret1 +} + +// CreatePresignedDomainUrlRequest indicates an expected call of CreatePresignedDomainUrlRequest. +func (mr *MockSageMakerAPIMockRecorder) CreatePresignedDomainUrlRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePresignedDomainUrlRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreatePresignedDomainUrlRequest), arg0) +} + +// CreatePresignedDomainUrlWithContext mocks base method. +func (m *MockSageMakerAPI) CreatePresignedDomainUrlWithContext(arg0 aws.Context, arg1 *sagemaker.CreatePresignedDomainUrlInput, arg2 ...request.Option) (*sagemaker.CreatePresignedDomainUrlOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreatePresignedDomainUrlWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreatePresignedDomainUrlOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreatePresignedDomainUrlWithContext indicates an expected call of CreatePresignedDomainUrlWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreatePresignedDomainUrlWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePresignedDomainUrlWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreatePresignedDomainUrlWithContext), varargs...) +} + +// CreatePresignedNotebookInstanceUrl mocks base method. +func (m *MockSageMakerAPI) CreatePresignedNotebookInstanceUrl(arg0 *sagemaker.CreatePresignedNotebookInstanceUrlInput) (*sagemaker.CreatePresignedNotebookInstanceUrlOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreatePresignedNotebookInstanceUrl", arg0) + ret0, _ := ret[0].(*sagemaker.CreatePresignedNotebookInstanceUrlOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreatePresignedNotebookInstanceUrl indicates an expected call of CreatePresignedNotebookInstanceUrl. +func (mr *MockSageMakerAPIMockRecorder) CreatePresignedNotebookInstanceUrl(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePresignedNotebookInstanceUrl", reflect.TypeOf((*MockSageMakerAPI)(nil).CreatePresignedNotebookInstanceUrl), arg0) +} + +// CreatePresignedNotebookInstanceUrlRequest mocks base method. +func (m *MockSageMakerAPI) CreatePresignedNotebookInstanceUrlRequest(arg0 *sagemaker.CreatePresignedNotebookInstanceUrlInput) (*request.Request, *sagemaker.CreatePresignedNotebookInstanceUrlOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreatePresignedNotebookInstanceUrlRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreatePresignedNotebookInstanceUrlOutput) + return ret0, ret1 +} + +// CreatePresignedNotebookInstanceUrlRequest indicates an expected call of CreatePresignedNotebookInstanceUrlRequest. +func (mr *MockSageMakerAPIMockRecorder) CreatePresignedNotebookInstanceUrlRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePresignedNotebookInstanceUrlRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreatePresignedNotebookInstanceUrlRequest), arg0) +} + +// CreatePresignedNotebookInstanceUrlWithContext mocks base method. +func (m *MockSageMakerAPI) CreatePresignedNotebookInstanceUrlWithContext(arg0 aws.Context, arg1 *sagemaker.CreatePresignedNotebookInstanceUrlInput, arg2 ...request.Option) (*sagemaker.CreatePresignedNotebookInstanceUrlOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreatePresignedNotebookInstanceUrlWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreatePresignedNotebookInstanceUrlOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreatePresignedNotebookInstanceUrlWithContext indicates an expected call of CreatePresignedNotebookInstanceUrlWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreatePresignedNotebookInstanceUrlWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePresignedNotebookInstanceUrlWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreatePresignedNotebookInstanceUrlWithContext), varargs...) +} + +// CreateProcessingJob mocks base method. +func (m *MockSageMakerAPI) CreateProcessingJob(arg0 *sagemaker.CreateProcessingJobInput) (*sagemaker.CreateProcessingJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateProcessingJob", arg0) + ret0, _ := ret[0].(*sagemaker.CreateProcessingJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateProcessingJob indicates an expected call of CreateProcessingJob. +func (mr *MockSageMakerAPIMockRecorder) CreateProcessingJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateProcessingJob", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateProcessingJob), arg0) +} + +// CreateProcessingJobRequest mocks base method. +func (m *MockSageMakerAPI) CreateProcessingJobRequest(arg0 *sagemaker.CreateProcessingJobInput) (*request.Request, *sagemaker.CreateProcessingJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateProcessingJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateProcessingJobOutput) + return ret0, ret1 +} + +// CreateProcessingJobRequest indicates an expected call of CreateProcessingJobRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateProcessingJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateProcessingJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateProcessingJobRequest), arg0) +} + +// CreateProcessingJobWithContext mocks base method. +func (m *MockSageMakerAPI) CreateProcessingJobWithContext(arg0 aws.Context, arg1 *sagemaker.CreateProcessingJobInput, arg2 ...request.Option) (*sagemaker.CreateProcessingJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateProcessingJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateProcessingJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateProcessingJobWithContext indicates an expected call of CreateProcessingJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateProcessingJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateProcessingJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateProcessingJobWithContext), varargs...) +} + +// CreateProject mocks base method. +func (m *MockSageMakerAPI) CreateProject(arg0 *sagemaker.CreateProjectInput) (*sagemaker.CreateProjectOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateProject", arg0) + ret0, _ := ret[0].(*sagemaker.CreateProjectOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateProject indicates an expected call of CreateProject. +func (mr *MockSageMakerAPIMockRecorder) CreateProject(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateProject", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateProject), arg0) +} + +// CreateProjectRequest mocks base method. +func (m *MockSageMakerAPI) CreateProjectRequest(arg0 *sagemaker.CreateProjectInput) (*request.Request, *sagemaker.CreateProjectOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateProjectRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateProjectOutput) + return ret0, ret1 +} + +// CreateProjectRequest indicates an expected call of CreateProjectRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateProjectRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateProjectRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateProjectRequest), arg0) +} + +// CreateProjectWithContext mocks base method. +func (m *MockSageMakerAPI) CreateProjectWithContext(arg0 aws.Context, arg1 *sagemaker.CreateProjectInput, arg2 ...request.Option) (*sagemaker.CreateProjectOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateProjectWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateProjectOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateProjectWithContext indicates an expected call of CreateProjectWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateProjectWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateProjectWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateProjectWithContext), varargs...) +} + +// CreateSpace mocks base method. +func (m *MockSageMakerAPI) CreateSpace(arg0 *sagemaker.CreateSpaceInput) (*sagemaker.CreateSpaceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateSpace", arg0) + ret0, _ := ret[0].(*sagemaker.CreateSpaceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateSpace indicates an expected call of CreateSpace. +func (mr *MockSageMakerAPIMockRecorder) CreateSpace(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateSpace", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateSpace), arg0) +} + +// CreateSpaceRequest mocks base method. +func (m *MockSageMakerAPI) CreateSpaceRequest(arg0 *sagemaker.CreateSpaceInput) (*request.Request, *sagemaker.CreateSpaceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateSpaceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateSpaceOutput) + return ret0, ret1 +} + +// CreateSpaceRequest indicates an expected call of CreateSpaceRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateSpaceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateSpaceRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateSpaceRequest), arg0) +} + +// CreateSpaceWithContext mocks base method. +func (m *MockSageMakerAPI) CreateSpaceWithContext(arg0 aws.Context, arg1 *sagemaker.CreateSpaceInput, arg2 ...request.Option) (*sagemaker.CreateSpaceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateSpaceWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateSpaceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateSpaceWithContext indicates an expected call of CreateSpaceWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateSpaceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateSpaceWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateSpaceWithContext), varargs...) +} + +// CreateStudioLifecycleConfig mocks base method. +func (m *MockSageMakerAPI) CreateStudioLifecycleConfig(arg0 *sagemaker.CreateStudioLifecycleConfigInput) (*sagemaker.CreateStudioLifecycleConfigOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateStudioLifecycleConfig", arg0) + ret0, _ := ret[0].(*sagemaker.CreateStudioLifecycleConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateStudioLifecycleConfig indicates an expected call of CreateStudioLifecycleConfig. +func (mr *MockSageMakerAPIMockRecorder) CreateStudioLifecycleConfig(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateStudioLifecycleConfig", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateStudioLifecycleConfig), arg0) +} + +// CreateStudioLifecycleConfigRequest mocks base method. +func (m *MockSageMakerAPI) CreateStudioLifecycleConfigRequest(arg0 *sagemaker.CreateStudioLifecycleConfigInput) (*request.Request, *sagemaker.CreateStudioLifecycleConfigOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateStudioLifecycleConfigRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateStudioLifecycleConfigOutput) + return ret0, ret1 +} + +// CreateStudioLifecycleConfigRequest indicates an expected call of CreateStudioLifecycleConfigRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateStudioLifecycleConfigRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateStudioLifecycleConfigRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateStudioLifecycleConfigRequest), arg0) +} + +// CreateStudioLifecycleConfigWithContext mocks base method. +func (m *MockSageMakerAPI) CreateStudioLifecycleConfigWithContext(arg0 aws.Context, arg1 *sagemaker.CreateStudioLifecycleConfigInput, arg2 ...request.Option) (*sagemaker.CreateStudioLifecycleConfigOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateStudioLifecycleConfigWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateStudioLifecycleConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateStudioLifecycleConfigWithContext indicates an expected call of CreateStudioLifecycleConfigWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateStudioLifecycleConfigWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateStudioLifecycleConfigWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateStudioLifecycleConfigWithContext), varargs...) +} + +// CreateTrainingJob mocks base method. +func (m *MockSageMakerAPI) CreateTrainingJob(arg0 *sagemaker.CreateTrainingJobInput) (*sagemaker.CreateTrainingJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateTrainingJob", arg0) + ret0, _ := ret[0].(*sagemaker.CreateTrainingJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateTrainingJob indicates an expected call of CreateTrainingJob. +func (mr *MockSageMakerAPIMockRecorder) CreateTrainingJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTrainingJob", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateTrainingJob), arg0) +} + +// CreateTrainingJobRequest mocks base method. +func (m *MockSageMakerAPI) CreateTrainingJobRequest(arg0 *sagemaker.CreateTrainingJobInput) (*request.Request, *sagemaker.CreateTrainingJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateTrainingJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateTrainingJobOutput) + return ret0, ret1 +} + +// CreateTrainingJobRequest indicates an expected call of CreateTrainingJobRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateTrainingJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTrainingJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateTrainingJobRequest), arg0) +} + +// CreateTrainingJobWithContext mocks base method. +func (m *MockSageMakerAPI) CreateTrainingJobWithContext(arg0 aws.Context, arg1 *sagemaker.CreateTrainingJobInput, arg2 ...request.Option) (*sagemaker.CreateTrainingJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateTrainingJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateTrainingJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateTrainingJobWithContext indicates an expected call of CreateTrainingJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateTrainingJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTrainingJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateTrainingJobWithContext), varargs...) +} + +// CreateTransformJob mocks base method. +func (m *MockSageMakerAPI) CreateTransformJob(arg0 *sagemaker.CreateTransformJobInput) (*sagemaker.CreateTransformJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateTransformJob", arg0) + ret0, _ := ret[0].(*sagemaker.CreateTransformJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateTransformJob indicates an expected call of CreateTransformJob. +func (mr *MockSageMakerAPIMockRecorder) CreateTransformJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTransformJob", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateTransformJob), arg0) +} + +// CreateTransformJobRequest mocks base method. +func (m *MockSageMakerAPI) CreateTransformJobRequest(arg0 *sagemaker.CreateTransformJobInput) (*request.Request, *sagemaker.CreateTransformJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateTransformJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateTransformJobOutput) + return ret0, ret1 +} + +// CreateTransformJobRequest indicates an expected call of CreateTransformJobRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateTransformJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTransformJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateTransformJobRequest), arg0) +} + +// CreateTransformJobWithContext mocks base method. +func (m *MockSageMakerAPI) CreateTransformJobWithContext(arg0 aws.Context, arg1 *sagemaker.CreateTransformJobInput, arg2 ...request.Option) (*sagemaker.CreateTransformJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateTransformJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateTransformJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateTransformJobWithContext indicates an expected call of CreateTransformJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateTransformJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTransformJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateTransformJobWithContext), varargs...) +} + +// CreateTrial mocks base method. +func (m *MockSageMakerAPI) CreateTrial(arg0 *sagemaker.CreateTrialInput) (*sagemaker.CreateTrialOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateTrial", arg0) + ret0, _ := ret[0].(*sagemaker.CreateTrialOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateTrial indicates an expected call of CreateTrial. +func (mr *MockSageMakerAPIMockRecorder) CreateTrial(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTrial", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateTrial), arg0) +} + +// CreateTrialComponent mocks base method. +func (m *MockSageMakerAPI) CreateTrialComponent(arg0 *sagemaker.CreateTrialComponentInput) (*sagemaker.CreateTrialComponentOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateTrialComponent", arg0) + ret0, _ := ret[0].(*sagemaker.CreateTrialComponentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateTrialComponent indicates an expected call of CreateTrialComponent. +func (mr *MockSageMakerAPIMockRecorder) CreateTrialComponent(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTrialComponent", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateTrialComponent), arg0) +} + +// CreateTrialComponentRequest mocks base method. +func (m *MockSageMakerAPI) CreateTrialComponentRequest(arg0 *sagemaker.CreateTrialComponentInput) (*request.Request, *sagemaker.CreateTrialComponentOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateTrialComponentRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateTrialComponentOutput) + return ret0, ret1 +} + +// CreateTrialComponentRequest indicates an expected call of CreateTrialComponentRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateTrialComponentRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTrialComponentRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateTrialComponentRequest), arg0) +} + +// CreateTrialComponentWithContext mocks base method. +func (m *MockSageMakerAPI) CreateTrialComponentWithContext(arg0 aws.Context, arg1 *sagemaker.CreateTrialComponentInput, arg2 ...request.Option) (*sagemaker.CreateTrialComponentOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateTrialComponentWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateTrialComponentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateTrialComponentWithContext indicates an expected call of CreateTrialComponentWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateTrialComponentWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTrialComponentWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateTrialComponentWithContext), varargs...) +} + +// CreateTrialRequest mocks base method. +func (m *MockSageMakerAPI) CreateTrialRequest(arg0 *sagemaker.CreateTrialInput) (*request.Request, *sagemaker.CreateTrialOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateTrialRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateTrialOutput) + return ret0, ret1 +} + +// CreateTrialRequest indicates an expected call of CreateTrialRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateTrialRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTrialRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateTrialRequest), arg0) +} + +// CreateTrialWithContext mocks base method. +func (m *MockSageMakerAPI) CreateTrialWithContext(arg0 aws.Context, arg1 *sagemaker.CreateTrialInput, arg2 ...request.Option) (*sagemaker.CreateTrialOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateTrialWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateTrialOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateTrialWithContext indicates an expected call of CreateTrialWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateTrialWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTrialWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateTrialWithContext), varargs...) +} + +// CreateUserProfile mocks base method. +func (m *MockSageMakerAPI) CreateUserProfile(arg0 *sagemaker.CreateUserProfileInput) (*sagemaker.CreateUserProfileOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateUserProfile", arg0) + ret0, _ := ret[0].(*sagemaker.CreateUserProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateUserProfile indicates an expected call of CreateUserProfile. +func (mr *MockSageMakerAPIMockRecorder) CreateUserProfile(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUserProfile", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateUserProfile), arg0) +} + +// CreateUserProfileRequest mocks base method. +func (m *MockSageMakerAPI) CreateUserProfileRequest(arg0 *sagemaker.CreateUserProfileInput) (*request.Request, *sagemaker.CreateUserProfileOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateUserProfileRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateUserProfileOutput) + return ret0, ret1 +} + +// CreateUserProfileRequest indicates an expected call of CreateUserProfileRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateUserProfileRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUserProfileRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateUserProfileRequest), arg0) +} + +// CreateUserProfileWithContext mocks base method. +func (m *MockSageMakerAPI) CreateUserProfileWithContext(arg0 aws.Context, arg1 *sagemaker.CreateUserProfileInput, arg2 ...request.Option) (*sagemaker.CreateUserProfileOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateUserProfileWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateUserProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateUserProfileWithContext indicates an expected call of CreateUserProfileWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateUserProfileWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUserProfileWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateUserProfileWithContext), varargs...) +} + +// CreateWorkforce mocks base method. +func (m *MockSageMakerAPI) CreateWorkforce(arg0 *sagemaker.CreateWorkforceInput) (*sagemaker.CreateWorkforceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateWorkforce", arg0) + ret0, _ := ret[0].(*sagemaker.CreateWorkforceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateWorkforce indicates an expected call of CreateWorkforce. +func (mr *MockSageMakerAPIMockRecorder) CreateWorkforce(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateWorkforce", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateWorkforce), arg0) +} + +// CreateWorkforceRequest mocks base method. +func (m *MockSageMakerAPI) CreateWorkforceRequest(arg0 *sagemaker.CreateWorkforceInput) (*request.Request, *sagemaker.CreateWorkforceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateWorkforceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateWorkforceOutput) + return ret0, ret1 +} + +// CreateWorkforceRequest indicates an expected call of CreateWorkforceRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateWorkforceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateWorkforceRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateWorkforceRequest), arg0) +} + +// CreateWorkforceWithContext mocks base method. +func (m *MockSageMakerAPI) CreateWorkforceWithContext(arg0 aws.Context, arg1 *sagemaker.CreateWorkforceInput, arg2 ...request.Option) (*sagemaker.CreateWorkforceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateWorkforceWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateWorkforceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateWorkforceWithContext indicates an expected call of CreateWorkforceWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateWorkforceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateWorkforceWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateWorkforceWithContext), varargs...) +} + +// CreateWorkteam mocks base method. +func (m *MockSageMakerAPI) CreateWorkteam(arg0 *sagemaker.CreateWorkteamInput) (*sagemaker.CreateWorkteamOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateWorkteam", arg0) + ret0, _ := ret[0].(*sagemaker.CreateWorkteamOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateWorkteam indicates an expected call of CreateWorkteam. +func (mr *MockSageMakerAPIMockRecorder) CreateWorkteam(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateWorkteam", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateWorkteam), arg0) +} + +// CreateWorkteamRequest mocks base method. +func (m *MockSageMakerAPI) CreateWorkteamRequest(arg0 *sagemaker.CreateWorkteamInput) (*request.Request, *sagemaker.CreateWorkteamOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateWorkteamRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateWorkteamOutput) + return ret0, ret1 +} + +// CreateWorkteamRequest indicates an expected call of CreateWorkteamRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateWorkteamRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateWorkteamRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateWorkteamRequest), arg0) +} + +// CreateWorkteamWithContext mocks base method. +func (m *MockSageMakerAPI) CreateWorkteamWithContext(arg0 aws.Context, arg1 *sagemaker.CreateWorkteamInput, arg2 ...request.Option) (*sagemaker.CreateWorkteamOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateWorkteamWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateWorkteamOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateWorkteamWithContext indicates an expected call of CreateWorkteamWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateWorkteamWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateWorkteamWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateWorkteamWithContext), varargs...) +} + +// DeleteAction mocks base method. +func (m *MockSageMakerAPI) DeleteAction(arg0 *sagemaker.DeleteActionInput) (*sagemaker.DeleteActionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteAction", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteActionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteAction indicates an expected call of DeleteAction. +func (mr *MockSageMakerAPIMockRecorder) DeleteAction(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAction", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteAction), arg0) +} + +// DeleteActionRequest mocks base method. +func (m *MockSageMakerAPI) DeleteActionRequest(arg0 *sagemaker.DeleteActionInput) (*request.Request, *sagemaker.DeleteActionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteActionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteActionOutput) + return ret0, ret1 +} + +// DeleteActionRequest indicates an expected call of DeleteActionRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteActionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteActionRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteActionRequest), arg0) +} + +// DeleteActionWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteActionWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteActionInput, arg2 ...request.Option) (*sagemaker.DeleteActionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteActionWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteActionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteActionWithContext indicates an expected call of DeleteActionWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteActionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteActionWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteActionWithContext), varargs...) +} + +// DeleteAlgorithm mocks base method. +func (m *MockSageMakerAPI) DeleteAlgorithm(arg0 *sagemaker.DeleteAlgorithmInput) (*sagemaker.DeleteAlgorithmOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteAlgorithm", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteAlgorithmOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteAlgorithm indicates an expected call of DeleteAlgorithm. +func (mr *MockSageMakerAPIMockRecorder) DeleteAlgorithm(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAlgorithm", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteAlgorithm), arg0) +} + +// DeleteAlgorithmRequest mocks base method. +func (m *MockSageMakerAPI) DeleteAlgorithmRequest(arg0 *sagemaker.DeleteAlgorithmInput) (*request.Request, *sagemaker.DeleteAlgorithmOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteAlgorithmRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteAlgorithmOutput) + return ret0, ret1 +} + +// DeleteAlgorithmRequest indicates an expected call of DeleteAlgorithmRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteAlgorithmRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAlgorithmRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteAlgorithmRequest), arg0) +} + +// DeleteAlgorithmWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteAlgorithmWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteAlgorithmInput, arg2 ...request.Option) (*sagemaker.DeleteAlgorithmOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteAlgorithmWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteAlgorithmOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteAlgorithmWithContext indicates an expected call of DeleteAlgorithmWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteAlgorithmWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAlgorithmWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteAlgorithmWithContext), varargs...) +} + +// DeleteApp mocks base method. +func (m *MockSageMakerAPI) DeleteApp(arg0 *sagemaker.DeleteAppInput) (*sagemaker.DeleteAppOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteApp", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteAppOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteApp indicates an expected call of DeleteApp. +func (mr *MockSageMakerAPIMockRecorder) DeleteApp(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteApp", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteApp), arg0) +} + +// DeleteAppImageConfig mocks base method. +func (m *MockSageMakerAPI) DeleteAppImageConfig(arg0 *sagemaker.DeleteAppImageConfigInput) (*sagemaker.DeleteAppImageConfigOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteAppImageConfig", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteAppImageConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteAppImageConfig indicates an expected call of DeleteAppImageConfig. +func (mr *MockSageMakerAPIMockRecorder) DeleteAppImageConfig(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAppImageConfig", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteAppImageConfig), arg0) +} + +// DeleteAppImageConfigRequest mocks base method. +func (m *MockSageMakerAPI) DeleteAppImageConfigRequest(arg0 *sagemaker.DeleteAppImageConfigInput) (*request.Request, *sagemaker.DeleteAppImageConfigOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteAppImageConfigRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteAppImageConfigOutput) + return ret0, ret1 +} + +// DeleteAppImageConfigRequest indicates an expected call of DeleteAppImageConfigRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteAppImageConfigRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAppImageConfigRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteAppImageConfigRequest), arg0) +} + +// DeleteAppImageConfigWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteAppImageConfigWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteAppImageConfigInput, arg2 ...request.Option) (*sagemaker.DeleteAppImageConfigOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteAppImageConfigWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteAppImageConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteAppImageConfigWithContext indicates an expected call of DeleteAppImageConfigWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteAppImageConfigWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAppImageConfigWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteAppImageConfigWithContext), varargs...) +} + +// DeleteAppRequest mocks base method. +func (m *MockSageMakerAPI) DeleteAppRequest(arg0 *sagemaker.DeleteAppInput) (*request.Request, *sagemaker.DeleteAppOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteAppRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteAppOutput) + return ret0, ret1 +} + +// DeleteAppRequest indicates an expected call of DeleteAppRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteAppRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAppRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteAppRequest), arg0) +} + +// DeleteAppWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteAppWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteAppInput, arg2 ...request.Option) (*sagemaker.DeleteAppOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteAppWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteAppOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteAppWithContext indicates an expected call of DeleteAppWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteAppWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAppWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteAppWithContext), varargs...) +} + +// DeleteArtifact mocks base method. +func (m *MockSageMakerAPI) DeleteArtifact(arg0 *sagemaker.DeleteArtifactInput) (*sagemaker.DeleteArtifactOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteArtifact", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteArtifactOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteArtifact indicates an expected call of DeleteArtifact. +func (mr *MockSageMakerAPIMockRecorder) DeleteArtifact(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteArtifact", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteArtifact), arg0) +} + +// DeleteArtifactRequest mocks base method. +func (m *MockSageMakerAPI) DeleteArtifactRequest(arg0 *sagemaker.DeleteArtifactInput) (*request.Request, *sagemaker.DeleteArtifactOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteArtifactRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteArtifactOutput) + return ret0, ret1 +} + +// DeleteArtifactRequest indicates an expected call of DeleteArtifactRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteArtifactRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteArtifactRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteArtifactRequest), arg0) +} + +// DeleteArtifactWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteArtifactWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteArtifactInput, arg2 ...request.Option) (*sagemaker.DeleteArtifactOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteArtifactWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteArtifactOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteArtifactWithContext indicates an expected call of DeleteArtifactWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteArtifactWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteArtifactWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteArtifactWithContext), varargs...) +} + +// DeleteAssociation mocks base method. +func (m *MockSageMakerAPI) DeleteAssociation(arg0 *sagemaker.DeleteAssociationInput) (*sagemaker.DeleteAssociationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteAssociation", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteAssociationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteAssociation indicates an expected call of DeleteAssociation. +func (mr *MockSageMakerAPIMockRecorder) DeleteAssociation(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAssociation", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteAssociation), arg0) +} + +// DeleteAssociationRequest mocks base method. +func (m *MockSageMakerAPI) DeleteAssociationRequest(arg0 *sagemaker.DeleteAssociationInput) (*request.Request, *sagemaker.DeleteAssociationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteAssociationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteAssociationOutput) + return ret0, ret1 +} + +// DeleteAssociationRequest indicates an expected call of DeleteAssociationRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteAssociationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAssociationRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteAssociationRequest), arg0) +} + +// DeleteAssociationWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteAssociationWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteAssociationInput, arg2 ...request.Option) (*sagemaker.DeleteAssociationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteAssociationWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteAssociationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteAssociationWithContext indicates an expected call of DeleteAssociationWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteAssociationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAssociationWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteAssociationWithContext), varargs...) +} + +// DeleteCluster mocks base method. +func (m *MockSageMakerAPI) DeleteCluster(arg0 *sagemaker.DeleteClusterInput) (*sagemaker.DeleteClusterOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteCluster", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteClusterOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteCluster indicates an expected call of DeleteCluster. +func (mr *MockSageMakerAPIMockRecorder) DeleteCluster(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCluster", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteCluster), arg0) +} + +// DeleteClusterRequest mocks base method. +func (m *MockSageMakerAPI) DeleteClusterRequest(arg0 *sagemaker.DeleteClusterInput) (*request.Request, *sagemaker.DeleteClusterOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteClusterRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteClusterOutput) + return ret0, ret1 +} + +// DeleteClusterRequest indicates an expected call of DeleteClusterRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteClusterRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteClusterRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteClusterRequest), arg0) +} + +// DeleteClusterWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteClusterWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteClusterInput, arg2 ...request.Option) (*sagemaker.DeleteClusterOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteClusterWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteClusterOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteClusterWithContext indicates an expected call of DeleteClusterWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteClusterWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteClusterWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteClusterWithContext), varargs...) +} + +// DeleteCodeRepository mocks base method. +func (m *MockSageMakerAPI) DeleteCodeRepository(arg0 *sagemaker.DeleteCodeRepositoryInput) (*sagemaker.DeleteCodeRepositoryOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteCodeRepository", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteCodeRepositoryOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteCodeRepository indicates an expected call of DeleteCodeRepository. +func (mr *MockSageMakerAPIMockRecorder) DeleteCodeRepository(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCodeRepository", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteCodeRepository), arg0) +} + +// DeleteCodeRepositoryRequest mocks base method. +func (m *MockSageMakerAPI) DeleteCodeRepositoryRequest(arg0 *sagemaker.DeleteCodeRepositoryInput) (*request.Request, *sagemaker.DeleteCodeRepositoryOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteCodeRepositoryRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteCodeRepositoryOutput) + return ret0, ret1 +} + +// DeleteCodeRepositoryRequest indicates an expected call of DeleteCodeRepositoryRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteCodeRepositoryRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCodeRepositoryRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteCodeRepositoryRequest), arg0) +} + +// DeleteCodeRepositoryWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteCodeRepositoryWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteCodeRepositoryInput, arg2 ...request.Option) (*sagemaker.DeleteCodeRepositoryOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteCodeRepositoryWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteCodeRepositoryOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteCodeRepositoryWithContext indicates an expected call of DeleteCodeRepositoryWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteCodeRepositoryWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCodeRepositoryWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteCodeRepositoryWithContext), varargs...) +} + +// DeleteCompilationJob mocks base method. +func (m *MockSageMakerAPI) DeleteCompilationJob(arg0 *sagemaker.DeleteCompilationJobInput) (*sagemaker.DeleteCompilationJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteCompilationJob", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteCompilationJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteCompilationJob indicates an expected call of DeleteCompilationJob. +func (mr *MockSageMakerAPIMockRecorder) DeleteCompilationJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCompilationJob", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteCompilationJob), arg0) +} + +// DeleteCompilationJobRequest mocks base method. +func (m *MockSageMakerAPI) DeleteCompilationJobRequest(arg0 *sagemaker.DeleteCompilationJobInput) (*request.Request, *sagemaker.DeleteCompilationJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteCompilationJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteCompilationJobOutput) + return ret0, ret1 +} + +// DeleteCompilationJobRequest indicates an expected call of DeleteCompilationJobRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteCompilationJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCompilationJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteCompilationJobRequest), arg0) +} + +// DeleteCompilationJobWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteCompilationJobWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteCompilationJobInput, arg2 ...request.Option) (*sagemaker.DeleteCompilationJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteCompilationJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteCompilationJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteCompilationJobWithContext indicates an expected call of DeleteCompilationJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteCompilationJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCompilationJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteCompilationJobWithContext), varargs...) +} + +// DeleteContext mocks base method. +func (m *MockSageMakerAPI) DeleteContext(arg0 *sagemaker.DeleteContextInput) (*sagemaker.DeleteContextOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteContext", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteContextOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteContext indicates an expected call of DeleteContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteContext(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteContext), arg0) +} + +// DeleteContextRequest mocks base method. +func (m *MockSageMakerAPI) DeleteContextRequest(arg0 *sagemaker.DeleteContextInput) (*request.Request, *sagemaker.DeleteContextOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteContextRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteContextOutput) + return ret0, ret1 +} + +// DeleteContextRequest indicates an expected call of DeleteContextRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteContextRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteContextRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteContextRequest), arg0) +} + +// DeleteContextWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteContextWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteContextInput, arg2 ...request.Option) (*sagemaker.DeleteContextOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteContextWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteContextOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteContextWithContext indicates an expected call of DeleteContextWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteContextWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteContextWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteContextWithContext), varargs...) +} + +// DeleteDataQualityJobDefinition mocks base method. +func (m *MockSageMakerAPI) DeleteDataQualityJobDefinition(arg0 *sagemaker.DeleteDataQualityJobDefinitionInput) (*sagemaker.DeleteDataQualityJobDefinitionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteDataQualityJobDefinition", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteDataQualityJobDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteDataQualityJobDefinition indicates an expected call of DeleteDataQualityJobDefinition. +func (mr *MockSageMakerAPIMockRecorder) DeleteDataQualityJobDefinition(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDataQualityJobDefinition", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteDataQualityJobDefinition), arg0) +} + +// DeleteDataQualityJobDefinitionRequest mocks base method. +func (m *MockSageMakerAPI) DeleteDataQualityJobDefinitionRequest(arg0 *sagemaker.DeleteDataQualityJobDefinitionInput) (*request.Request, *sagemaker.DeleteDataQualityJobDefinitionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteDataQualityJobDefinitionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteDataQualityJobDefinitionOutput) + return ret0, ret1 +} + +// DeleteDataQualityJobDefinitionRequest indicates an expected call of DeleteDataQualityJobDefinitionRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteDataQualityJobDefinitionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDataQualityJobDefinitionRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteDataQualityJobDefinitionRequest), arg0) +} + +// DeleteDataQualityJobDefinitionWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteDataQualityJobDefinitionWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteDataQualityJobDefinitionInput, arg2 ...request.Option) (*sagemaker.DeleteDataQualityJobDefinitionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteDataQualityJobDefinitionWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteDataQualityJobDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteDataQualityJobDefinitionWithContext indicates an expected call of DeleteDataQualityJobDefinitionWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteDataQualityJobDefinitionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDataQualityJobDefinitionWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteDataQualityJobDefinitionWithContext), varargs...) +} + +// DeleteDeviceFleet mocks base method. +func (m *MockSageMakerAPI) DeleteDeviceFleet(arg0 *sagemaker.DeleteDeviceFleetInput) (*sagemaker.DeleteDeviceFleetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteDeviceFleet", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteDeviceFleetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteDeviceFleet indicates an expected call of DeleteDeviceFleet. +func (mr *MockSageMakerAPIMockRecorder) DeleteDeviceFleet(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDeviceFleet", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteDeviceFleet), arg0) +} + +// DeleteDeviceFleetRequest mocks base method. +func (m *MockSageMakerAPI) DeleteDeviceFleetRequest(arg0 *sagemaker.DeleteDeviceFleetInput) (*request.Request, *sagemaker.DeleteDeviceFleetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteDeviceFleetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteDeviceFleetOutput) + return ret0, ret1 +} + +// DeleteDeviceFleetRequest indicates an expected call of DeleteDeviceFleetRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteDeviceFleetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDeviceFleetRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteDeviceFleetRequest), arg0) +} + +// DeleteDeviceFleetWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteDeviceFleetWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteDeviceFleetInput, arg2 ...request.Option) (*sagemaker.DeleteDeviceFleetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteDeviceFleetWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteDeviceFleetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteDeviceFleetWithContext indicates an expected call of DeleteDeviceFleetWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteDeviceFleetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDeviceFleetWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteDeviceFleetWithContext), varargs...) +} + +// DeleteDomain mocks base method. +func (m *MockSageMakerAPI) DeleteDomain(arg0 *sagemaker.DeleteDomainInput) (*sagemaker.DeleteDomainOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteDomain", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteDomainOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteDomain indicates an expected call of DeleteDomain. +func (mr *MockSageMakerAPIMockRecorder) DeleteDomain(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDomain", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteDomain), arg0) +} + +// DeleteDomainRequest mocks base method. +func (m *MockSageMakerAPI) DeleteDomainRequest(arg0 *sagemaker.DeleteDomainInput) (*request.Request, *sagemaker.DeleteDomainOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteDomainRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteDomainOutput) + return ret0, ret1 +} + +// DeleteDomainRequest indicates an expected call of DeleteDomainRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteDomainRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDomainRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteDomainRequest), arg0) +} + +// DeleteDomainWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteDomainWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteDomainInput, arg2 ...request.Option) (*sagemaker.DeleteDomainOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteDomainWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteDomainOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteDomainWithContext indicates an expected call of DeleteDomainWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteDomainWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDomainWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteDomainWithContext), varargs...) +} + +// DeleteEdgeDeploymentPlan mocks base method. +func (m *MockSageMakerAPI) DeleteEdgeDeploymentPlan(arg0 *sagemaker.DeleteEdgeDeploymentPlanInput) (*sagemaker.DeleteEdgeDeploymentPlanOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteEdgeDeploymentPlan", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteEdgeDeploymentPlanOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteEdgeDeploymentPlan indicates an expected call of DeleteEdgeDeploymentPlan. +func (mr *MockSageMakerAPIMockRecorder) DeleteEdgeDeploymentPlan(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteEdgeDeploymentPlan", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteEdgeDeploymentPlan), arg0) +} + +// DeleteEdgeDeploymentPlanRequest mocks base method. +func (m *MockSageMakerAPI) DeleteEdgeDeploymentPlanRequest(arg0 *sagemaker.DeleteEdgeDeploymentPlanInput) (*request.Request, *sagemaker.DeleteEdgeDeploymentPlanOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteEdgeDeploymentPlanRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteEdgeDeploymentPlanOutput) + return ret0, ret1 +} + +// DeleteEdgeDeploymentPlanRequest indicates an expected call of DeleteEdgeDeploymentPlanRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteEdgeDeploymentPlanRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteEdgeDeploymentPlanRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteEdgeDeploymentPlanRequest), arg0) +} + +// DeleteEdgeDeploymentPlanWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteEdgeDeploymentPlanWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteEdgeDeploymentPlanInput, arg2 ...request.Option) (*sagemaker.DeleteEdgeDeploymentPlanOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteEdgeDeploymentPlanWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteEdgeDeploymentPlanOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteEdgeDeploymentPlanWithContext indicates an expected call of DeleteEdgeDeploymentPlanWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteEdgeDeploymentPlanWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteEdgeDeploymentPlanWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteEdgeDeploymentPlanWithContext), varargs...) +} + +// DeleteEdgeDeploymentStage mocks base method. +func (m *MockSageMakerAPI) DeleteEdgeDeploymentStage(arg0 *sagemaker.DeleteEdgeDeploymentStageInput) (*sagemaker.DeleteEdgeDeploymentStageOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteEdgeDeploymentStage", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteEdgeDeploymentStageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteEdgeDeploymentStage indicates an expected call of DeleteEdgeDeploymentStage. +func (mr *MockSageMakerAPIMockRecorder) DeleteEdgeDeploymentStage(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteEdgeDeploymentStage", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteEdgeDeploymentStage), arg0) +} + +// DeleteEdgeDeploymentStageRequest mocks base method. +func (m *MockSageMakerAPI) DeleteEdgeDeploymentStageRequest(arg0 *sagemaker.DeleteEdgeDeploymentStageInput) (*request.Request, *sagemaker.DeleteEdgeDeploymentStageOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteEdgeDeploymentStageRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteEdgeDeploymentStageOutput) + return ret0, ret1 +} + +// DeleteEdgeDeploymentStageRequest indicates an expected call of DeleteEdgeDeploymentStageRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteEdgeDeploymentStageRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteEdgeDeploymentStageRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteEdgeDeploymentStageRequest), arg0) +} + +// DeleteEdgeDeploymentStageWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteEdgeDeploymentStageWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteEdgeDeploymentStageInput, arg2 ...request.Option) (*sagemaker.DeleteEdgeDeploymentStageOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteEdgeDeploymentStageWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteEdgeDeploymentStageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteEdgeDeploymentStageWithContext indicates an expected call of DeleteEdgeDeploymentStageWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteEdgeDeploymentStageWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteEdgeDeploymentStageWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteEdgeDeploymentStageWithContext), varargs...) +} + +// DeleteEndpoint mocks base method. +func (m *MockSageMakerAPI) DeleteEndpoint(arg0 *sagemaker.DeleteEndpointInput) (*sagemaker.DeleteEndpointOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteEndpoint", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteEndpointOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteEndpoint indicates an expected call of DeleteEndpoint. +func (mr *MockSageMakerAPIMockRecorder) DeleteEndpoint(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteEndpoint", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteEndpoint), arg0) +} + +// DeleteEndpointConfig mocks base method. +func (m *MockSageMakerAPI) DeleteEndpointConfig(arg0 *sagemaker.DeleteEndpointConfigInput) (*sagemaker.DeleteEndpointConfigOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteEndpointConfig", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteEndpointConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteEndpointConfig indicates an expected call of DeleteEndpointConfig. +func (mr *MockSageMakerAPIMockRecorder) DeleteEndpointConfig(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteEndpointConfig", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteEndpointConfig), arg0) +} + +// DeleteEndpointConfigRequest mocks base method. +func (m *MockSageMakerAPI) DeleteEndpointConfigRequest(arg0 *sagemaker.DeleteEndpointConfigInput) (*request.Request, *sagemaker.DeleteEndpointConfigOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteEndpointConfigRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteEndpointConfigOutput) + return ret0, ret1 +} + +// DeleteEndpointConfigRequest indicates an expected call of DeleteEndpointConfigRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteEndpointConfigRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteEndpointConfigRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteEndpointConfigRequest), arg0) +} + +// DeleteEndpointConfigWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteEndpointConfigWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteEndpointConfigInput, arg2 ...request.Option) (*sagemaker.DeleteEndpointConfigOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteEndpointConfigWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteEndpointConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteEndpointConfigWithContext indicates an expected call of DeleteEndpointConfigWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteEndpointConfigWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteEndpointConfigWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteEndpointConfigWithContext), varargs...) +} + +// DeleteEndpointRequest mocks base method. +func (m *MockSageMakerAPI) DeleteEndpointRequest(arg0 *sagemaker.DeleteEndpointInput) (*request.Request, *sagemaker.DeleteEndpointOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteEndpointRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteEndpointOutput) + return ret0, ret1 +} + +// DeleteEndpointRequest indicates an expected call of DeleteEndpointRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteEndpointRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteEndpointRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteEndpointRequest), arg0) +} + +// DeleteEndpointWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteEndpointWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteEndpointInput, arg2 ...request.Option) (*sagemaker.DeleteEndpointOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteEndpointWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteEndpointOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteEndpointWithContext indicates an expected call of DeleteEndpointWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteEndpointWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteEndpointWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteEndpointWithContext), varargs...) +} + +// DeleteExperiment mocks base method. +func (m *MockSageMakerAPI) DeleteExperiment(arg0 *sagemaker.DeleteExperimentInput) (*sagemaker.DeleteExperimentOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteExperiment", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteExperimentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteExperiment indicates an expected call of DeleteExperiment. +func (mr *MockSageMakerAPIMockRecorder) DeleteExperiment(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteExperiment", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteExperiment), arg0) +} + +// DeleteExperimentRequest mocks base method. +func (m *MockSageMakerAPI) DeleteExperimentRequest(arg0 *sagemaker.DeleteExperimentInput) (*request.Request, *sagemaker.DeleteExperimentOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteExperimentRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteExperimentOutput) + return ret0, ret1 +} + +// DeleteExperimentRequest indicates an expected call of DeleteExperimentRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteExperimentRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteExperimentRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteExperimentRequest), arg0) +} + +// DeleteExperimentWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteExperimentWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteExperimentInput, arg2 ...request.Option) (*sagemaker.DeleteExperimentOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteExperimentWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteExperimentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteExperimentWithContext indicates an expected call of DeleteExperimentWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteExperimentWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteExperimentWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteExperimentWithContext), varargs...) +} + +// DeleteFeatureGroup mocks base method. +func (m *MockSageMakerAPI) DeleteFeatureGroup(arg0 *sagemaker.DeleteFeatureGroupInput) (*sagemaker.DeleteFeatureGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteFeatureGroup", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteFeatureGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteFeatureGroup indicates an expected call of DeleteFeatureGroup. +func (mr *MockSageMakerAPIMockRecorder) DeleteFeatureGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteFeatureGroup", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteFeatureGroup), arg0) +} + +// DeleteFeatureGroupRequest mocks base method. +func (m *MockSageMakerAPI) DeleteFeatureGroupRequest(arg0 *sagemaker.DeleteFeatureGroupInput) (*request.Request, *sagemaker.DeleteFeatureGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteFeatureGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteFeatureGroupOutput) + return ret0, ret1 +} + +// DeleteFeatureGroupRequest indicates an expected call of DeleteFeatureGroupRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteFeatureGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteFeatureGroupRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteFeatureGroupRequest), arg0) +} + +// DeleteFeatureGroupWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteFeatureGroupWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteFeatureGroupInput, arg2 ...request.Option) (*sagemaker.DeleteFeatureGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteFeatureGroupWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteFeatureGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteFeatureGroupWithContext indicates an expected call of DeleteFeatureGroupWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteFeatureGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteFeatureGroupWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteFeatureGroupWithContext), varargs...) +} + +// DeleteFlowDefinition mocks base method. +func (m *MockSageMakerAPI) DeleteFlowDefinition(arg0 *sagemaker.DeleteFlowDefinitionInput) (*sagemaker.DeleteFlowDefinitionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteFlowDefinition", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteFlowDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteFlowDefinition indicates an expected call of DeleteFlowDefinition. +func (mr *MockSageMakerAPIMockRecorder) DeleteFlowDefinition(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteFlowDefinition", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteFlowDefinition), arg0) +} + +// DeleteFlowDefinitionRequest mocks base method. +func (m *MockSageMakerAPI) DeleteFlowDefinitionRequest(arg0 *sagemaker.DeleteFlowDefinitionInput) (*request.Request, *sagemaker.DeleteFlowDefinitionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteFlowDefinitionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteFlowDefinitionOutput) + return ret0, ret1 +} + +// DeleteFlowDefinitionRequest indicates an expected call of DeleteFlowDefinitionRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteFlowDefinitionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteFlowDefinitionRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteFlowDefinitionRequest), arg0) +} + +// DeleteFlowDefinitionWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteFlowDefinitionWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteFlowDefinitionInput, arg2 ...request.Option) (*sagemaker.DeleteFlowDefinitionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteFlowDefinitionWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteFlowDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteFlowDefinitionWithContext indicates an expected call of DeleteFlowDefinitionWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteFlowDefinitionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteFlowDefinitionWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteFlowDefinitionWithContext), varargs...) +} + +// DeleteHub mocks base method. +func (m *MockSageMakerAPI) DeleteHub(arg0 *sagemaker.DeleteHubInput) (*sagemaker.DeleteHubOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteHub", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteHubOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteHub indicates an expected call of DeleteHub. +func (mr *MockSageMakerAPIMockRecorder) DeleteHub(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteHub", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteHub), arg0) +} + +// DeleteHubContent mocks base method. +func (m *MockSageMakerAPI) DeleteHubContent(arg0 *sagemaker.DeleteHubContentInput) (*sagemaker.DeleteHubContentOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteHubContent", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteHubContentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteHubContent indicates an expected call of DeleteHubContent. +func (mr *MockSageMakerAPIMockRecorder) DeleteHubContent(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteHubContent", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteHubContent), arg0) +} + +// DeleteHubContentRequest mocks base method. +func (m *MockSageMakerAPI) DeleteHubContentRequest(arg0 *sagemaker.DeleteHubContentInput) (*request.Request, *sagemaker.DeleteHubContentOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteHubContentRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteHubContentOutput) + return ret0, ret1 +} + +// DeleteHubContentRequest indicates an expected call of DeleteHubContentRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteHubContentRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteHubContentRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteHubContentRequest), arg0) +} + +// DeleteHubContentWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteHubContentWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteHubContentInput, arg2 ...request.Option) (*sagemaker.DeleteHubContentOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteHubContentWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteHubContentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteHubContentWithContext indicates an expected call of DeleteHubContentWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteHubContentWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteHubContentWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteHubContentWithContext), varargs...) +} + +// DeleteHubRequest mocks base method. +func (m *MockSageMakerAPI) DeleteHubRequest(arg0 *sagemaker.DeleteHubInput) (*request.Request, *sagemaker.DeleteHubOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteHubRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteHubOutput) + return ret0, ret1 +} + +// DeleteHubRequest indicates an expected call of DeleteHubRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteHubRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteHubRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteHubRequest), arg0) +} + +// DeleteHubWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteHubWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteHubInput, arg2 ...request.Option) (*sagemaker.DeleteHubOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteHubWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteHubOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteHubWithContext indicates an expected call of DeleteHubWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteHubWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteHubWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteHubWithContext), varargs...) +} + +// DeleteHumanTaskUi mocks base method. +func (m *MockSageMakerAPI) DeleteHumanTaskUi(arg0 *sagemaker.DeleteHumanTaskUiInput) (*sagemaker.DeleteHumanTaskUiOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteHumanTaskUi", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteHumanTaskUiOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteHumanTaskUi indicates an expected call of DeleteHumanTaskUi. +func (mr *MockSageMakerAPIMockRecorder) DeleteHumanTaskUi(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteHumanTaskUi", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteHumanTaskUi), arg0) +} + +// DeleteHumanTaskUiRequest mocks base method. +func (m *MockSageMakerAPI) DeleteHumanTaskUiRequest(arg0 *sagemaker.DeleteHumanTaskUiInput) (*request.Request, *sagemaker.DeleteHumanTaskUiOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteHumanTaskUiRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteHumanTaskUiOutput) + return ret0, ret1 +} + +// DeleteHumanTaskUiRequest indicates an expected call of DeleteHumanTaskUiRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteHumanTaskUiRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteHumanTaskUiRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteHumanTaskUiRequest), arg0) +} + +// DeleteHumanTaskUiWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteHumanTaskUiWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteHumanTaskUiInput, arg2 ...request.Option) (*sagemaker.DeleteHumanTaskUiOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteHumanTaskUiWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteHumanTaskUiOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteHumanTaskUiWithContext indicates an expected call of DeleteHumanTaskUiWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteHumanTaskUiWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteHumanTaskUiWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteHumanTaskUiWithContext), varargs...) +} + +// DeleteHyperParameterTuningJob mocks base method. +func (m *MockSageMakerAPI) DeleteHyperParameterTuningJob(arg0 *sagemaker.DeleteHyperParameterTuningJobInput) (*sagemaker.DeleteHyperParameterTuningJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteHyperParameterTuningJob", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteHyperParameterTuningJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteHyperParameterTuningJob indicates an expected call of DeleteHyperParameterTuningJob. +func (mr *MockSageMakerAPIMockRecorder) DeleteHyperParameterTuningJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteHyperParameterTuningJob", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteHyperParameterTuningJob), arg0) +} + +// DeleteHyperParameterTuningJobRequest mocks base method. +func (m *MockSageMakerAPI) DeleteHyperParameterTuningJobRequest(arg0 *sagemaker.DeleteHyperParameterTuningJobInput) (*request.Request, *sagemaker.DeleteHyperParameterTuningJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteHyperParameterTuningJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteHyperParameterTuningJobOutput) + return ret0, ret1 +} + +// DeleteHyperParameterTuningJobRequest indicates an expected call of DeleteHyperParameterTuningJobRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteHyperParameterTuningJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteHyperParameterTuningJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteHyperParameterTuningJobRequest), arg0) +} + +// DeleteHyperParameterTuningJobWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteHyperParameterTuningJobWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteHyperParameterTuningJobInput, arg2 ...request.Option) (*sagemaker.DeleteHyperParameterTuningJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteHyperParameterTuningJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteHyperParameterTuningJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteHyperParameterTuningJobWithContext indicates an expected call of DeleteHyperParameterTuningJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteHyperParameterTuningJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteHyperParameterTuningJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteHyperParameterTuningJobWithContext), varargs...) +} + +// DeleteImage mocks base method. +func (m *MockSageMakerAPI) DeleteImage(arg0 *sagemaker.DeleteImageInput) (*sagemaker.DeleteImageOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteImage", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteImageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteImage indicates an expected call of DeleteImage. +func (mr *MockSageMakerAPIMockRecorder) DeleteImage(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteImage", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteImage), arg0) +} + +// DeleteImageRequest mocks base method. +func (m *MockSageMakerAPI) DeleteImageRequest(arg0 *sagemaker.DeleteImageInput) (*request.Request, *sagemaker.DeleteImageOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteImageRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteImageOutput) + return ret0, ret1 +} + +// DeleteImageRequest indicates an expected call of DeleteImageRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteImageRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteImageRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteImageRequest), arg0) +} + +// DeleteImageVersion mocks base method. +func (m *MockSageMakerAPI) DeleteImageVersion(arg0 *sagemaker.DeleteImageVersionInput) (*sagemaker.DeleteImageVersionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteImageVersion", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteImageVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteImageVersion indicates an expected call of DeleteImageVersion. +func (mr *MockSageMakerAPIMockRecorder) DeleteImageVersion(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteImageVersion", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteImageVersion), arg0) +} + +// DeleteImageVersionRequest mocks base method. +func (m *MockSageMakerAPI) DeleteImageVersionRequest(arg0 *sagemaker.DeleteImageVersionInput) (*request.Request, *sagemaker.DeleteImageVersionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteImageVersionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteImageVersionOutput) + return ret0, ret1 +} + +// DeleteImageVersionRequest indicates an expected call of DeleteImageVersionRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteImageVersionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteImageVersionRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteImageVersionRequest), arg0) +} + +// DeleteImageVersionWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteImageVersionWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteImageVersionInput, arg2 ...request.Option) (*sagemaker.DeleteImageVersionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteImageVersionWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteImageVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteImageVersionWithContext indicates an expected call of DeleteImageVersionWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteImageVersionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteImageVersionWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteImageVersionWithContext), varargs...) +} + +// DeleteImageWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteImageWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteImageInput, arg2 ...request.Option) (*sagemaker.DeleteImageOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteImageWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteImageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteImageWithContext indicates an expected call of DeleteImageWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteImageWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteImageWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteImageWithContext), varargs...) +} + +// DeleteInferenceComponent mocks base method. +func (m *MockSageMakerAPI) DeleteInferenceComponent(arg0 *sagemaker.DeleteInferenceComponentInput) (*sagemaker.DeleteInferenceComponentOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteInferenceComponent", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteInferenceComponentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteInferenceComponent indicates an expected call of DeleteInferenceComponent. +func (mr *MockSageMakerAPIMockRecorder) DeleteInferenceComponent(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteInferenceComponent", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteInferenceComponent), arg0) +} + +// DeleteInferenceComponentRequest mocks base method. +func (m *MockSageMakerAPI) DeleteInferenceComponentRequest(arg0 *sagemaker.DeleteInferenceComponentInput) (*request.Request, *sagemaker.DeleteInferenceComponentOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteInferenceComponentRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteInferenceComponentOutput) + return ret0, ret1 +} + +// DeleteInferenceComponentRequest indicates an expected call of DeleteInferenceComponentRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteInferenceComponentRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteInferenceComponentRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteInferenceComponentRequest), arg0) +} + +// DeleteInferenceComponentWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteInferenceComponentWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteInferenceComponentInput, arg2 ...request.Option) (*sagemaker.DeleteInferenceComponentOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteInferenceComponentWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteInferenceComponentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteInferenceComponentWithContext indicates an expected call of DeleteInferenceComponentWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteInferenceComponentWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteInferenceComponentWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteInferenceComponentWithContext), varargs...) +} + +// DeleteInferenceExperiment mocks base method. +func (m *MockSageMakerAPI) DeleteInferenceExperiment(arg0 *sagemaker.DeleteInferenceExperimentInput) (*sagemaker.DeleteInferenceExperimentOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteInferenceExperiment", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteInferenceExperimentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteInferenceExperiment indicates an expected call of DeleteInferenceExperiment. +func (mr *MockSageMakerAPIMockRecorder) DeleteInferenceExperiment(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteInferenceExperiment", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteInferenceExperiment), arg0) +} + +// DeleteInferenceExperimentRequest mocks base method. +func (m *MockSageMakerAPI) DeleteInferenceExperimentRequest(arg0 *sagemaker.DeleteInferenceExperimentInput) (*request.Request, *sagemaker.DeleteInferenceExperimentOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteInferenceExperimentRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteInferenceExperimentOutput) + return ret0, ret1 +} + +// DeleteInferenceExperimentRequest indicates an expected call of DeleteInferenceExperimentRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteInferenceExperimentRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteInferenceExperimentRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteInferenceExperimentRequest), arg0) +} + +// DeleteInferenceExperimentWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteInferenceExperimentWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteInferenceExperimentInput, arg2 ...request.Option) (*sagemaker.DeleteInferenceExperimentOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteInferenceExperimentWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteInferenceExperimentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteInferenceExperimentWithContext indicates an expected call of DeleteInferenceExperimentWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteInferenceExperimentWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteInferenceExperimentWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteInferenceExperimentWithContext), varargs...) +} + +// DeleteModel mocks base method. +func (m *MockSageMakerAPI) DeleteModel(arg0 *sagemaker.DeleteModelInput) (*sagemaker.DeleteModelOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteModel", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteModelOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteModel indicates an expected call of DeleteModel. +func (mr *MockSageMakerAPIMockRecorder) DeleteModel(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteModel", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteModel), arg0) +} + +// DeleteModelBiasJobDefinition mocks base method. +func (m *MockSageMakerAPI) DeleteModelBiasJobDefinition(arg0 *sagemaker.DeleteModelBiasJobDefinitionInput) (*sagemaker.DeleteModelBiasJobDefinitionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteModelBiasJobDefinition", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteModelBiasJobDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteModelBiasJobDefinition indicates an expected call of DeleteModelBiasJobDefinition. +func (mr *MockSageMakerAPIMockRecorder) DeleteModelBiasJobDefinition(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteModelBiasJobDefinition", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteModelBiasJobDefinition), arg0) +} + +// DeleteModelBiasJobDefinitionRequest mocks base method. +func (m *MockSageMakerAPI) DeleteModelBiasJobDefinitionRequest(arg0 *sagemaker.DeleteModelBiasJobDefinitionInput) (*request.Request, *sagemaker.DeleteModelBiasJobDefinitionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteModelBiasJobDefinitionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteModelBiasJobDefinitionOutput) + return ret0, ret1 +} + +// DeleteModelBiasJobDefinitionRequest indicates an expected call of DeleteModelBiasJobDefinitionRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteModelBiasJobDefinitionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteModelBiasJobDefinitionRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteModelBiasJobDefinitionRequest), arg0) +} + +// DeleteModelBiasJobDefinitionWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteModelBiasJobDefinitionWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteModelBiasJobDefinitionInput, arg2 ...request.Option) (*sagemaker.DeleteModelBiasJobDefinitionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteModelBiasJobDefinitionWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteModelBiasJobDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteModelBiasJobDefinitionWithContext indicates an expected call of DeleteModelBiasJobDefinitionWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteModelBiasJobDefinitionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteModelBiasJobDefinitionWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteModelBiasJobDefinitionWithContext), varargs...) +} + +// DeleteModelCard mocks base method. +func (m *MockSageMakerAPI) DeleteModelCard(arg0 *sagemaker.DeleteModelCardInput) (*sagemaker.DeleteModelCardOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteModelCard", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteModelCardOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteModelCard indicates an expected call of DeleteModelCard. +func (mr *MockSageMakerAPIMockRecorder) DeleteModelCard(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteModelCard", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteModelCard), arg0) +} + +// DeleteModelCardRequest mocks base method. +func (m *MockSageMakerAPI) DeleteModelCardRequest(arg0 *sagemaker.DeleteModelCardInput) (*request.Request, *sagemaker.DeleteModelCardOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteModelCardRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteModelCardOutput) + return ret0, ret1 +} + +// DeleteModelCardRequest indicates an expected call of DeleteModelCardRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteModelCardRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteModelCardRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteModelCardRequest), arg0) +} + +// DeleteModelCardWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteModelCardWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteModelCardInput, arg2 ...request.Option) (*sagemaker.DeleteModelCardOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteModelCardWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteModelCardOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteModelCardWithContext indicates an expected call of DeleteModelCardWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteModelCardWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteModelCardWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteModelCardWithContext), varargs...) +} + +// DeleteModelExplainabilityJobDefinition mocks base method. +func (m *MockSageMakerAPI) DeleteModelExplainabilityJobDefinition(arg0 *sagemaker.DeleteModelExplainabilityJobDefinitionInput) (*sagemaker.DeleteModelExplainabilityJobDefinitionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteModelExplainabilityJobDefinition", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteModelExplainabilityJobDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteModelExplainabilityJobDefinition indicates an expected call of DeleteModelExplainabilityJobDefinition. +func (mr *MockSageMakerAPIMockRecorder) DeleteModelExplainabilityJobDefinition(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteModelExplainabilityJobDefinition", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteModelExplainabilityJobDefinition), arg0) +} + +// DeleteModelExplainabilityJobDefinitionRequest mocks base method. +func (m *MockSageMakerAPI) DeleteModelExplainabilityJobDefinitionRequest(arg0 *sagemaker.DeleteModelExplainabilityJobDefinitionInput) (*request.Request, *sagemaker.DeleteModelExplainabilityJobDefinitionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteModelExplainabilityJobDefinitionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteModelExplainabilityJobDefinitionOutput) + return ret0, ret1 +} + +// DeleteModelExplainabilityJobDefinitionRequest indicates an expected call of DeleteModelExplainabilityJobDefinitionRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteModelExplainabilityJobDefinitionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteModelExplainabilityJobDefinitionRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteModelExplainabilityJobDefinitionRequest), arg0) +} + +// DeleteModelExplainabilityJobDefinitionWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteModelExplainabilityJobDefinitionWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteModelExplainabilityJobDefinitionInput, arg2 ...request.Option) (*sagemaker.DeleteModelExplainabilityJobDefinitionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteModelExplainabilityJobDefinitionWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteModelExplainabilityJobDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteModelExplainabilityJobDefinitionWithContext indicates an expected call of DeleteModelExplainabilityJobDefinitionWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteModelExplainabilityJobDefinitionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteModelExplainabilityJobDefinitionWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteModelExplainabilityJobDefinitionWithContext), varargs...) +} + +// DeleteModelPackage mocks base method. +func (m *MockSageMakerAPI) DeleteModelPackage(arg0 *sagemaker.DeleteModelPackageInput) (*sagemaker.DeleteModelPackageOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteModelPackage", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteModelPackageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteModelPackage indicates an expected call of DeleteModelPackage. +func (mr *MockSageMakerAPIMockRecorder) DeleteModelPackage(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteModelPackage", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteModelPackage), arg0) +} + +// DeleteModelPackageGroup mocks base method. +func (m *MockSageMakerAPI) DeleteModelPackageGroup(arg0 *sagemaker.DeleteModelPackageGroupInput) (*sagemaker.DeleteModelPackageGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteModelPackageGroup", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteModelPackageGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteModelPackageGroup indicates an expected call of DeleteModelPackageGroup. +func (mr *MockSageMakerAPIMockRecorder) DeleteModelPackageGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteModelPackageGroup", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteModelPackageGroup), arg0) +} + +// DeleteModelPackageGroupPolicy mocks base method. +func (m *MockSageMakerAPI) DeleteModelPackageGroupPolicy(arg0 *sagemaker.DeleteModelPackageGroupPolicyInput) (*sagemaker.DeleteModelPackageGroupPolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteModelPackageGroupPolicy", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteModelPackageGroupPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteModelPackageGroupPolicy indicates an expected call of DeleteModelPackageGroupPolicy. +func (mr *MockSageMakerAPIMockRecorder) DeleteModelPackageGroupPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteModelPackageGroupPolicy", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteModelPackageGroupPolicy), arg0) +} + +// DeleteModelPackageGroupPolicyRequest mocks base method. +func (m *MockSageMakerAPI) DeleteModelPackageGroupPolicyRequest(arg0 *sagemaker.DeleteModelPackageGroupPolicyInput) (*request.Request, *sagemaker.DeleteModelPackageGroupPolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteModelPackageGroupPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteModelPackageGroupPolicyOutput) + return ret0, ret1 +} + +// DeleteModelPackageGroupPolicyRequest indicates an expected call of DeleteModelPackageGroupPolicyRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteModelPackageGroupPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteModelPackageGroupPolicyRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteModelPackageGroupPolicyRequest), arg0) +} + +// DeleteModelPackageGroupPolicyWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteModelPackageGroupPolicyWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteModelPackageGroupPolicyInput, arg2 ...request.Option) (*sagemaker.DeleteModelPackageGroupPolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteModelPackageGroupPolicyWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteModelPackageGroupPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteModelPackageGroupPolicyWithContext indicates an expected call of DeleteModelPackageGroupPolicyWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteModelPackageGroupPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteModelPackageGroupPolicyWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteModelPackageGroupPolicyWithContext), varargs...) +} + +// DeleteModelPackageGroupRequest mocks base method. +func (m *MockSageMakerAPI) DeleteModelPackageGroupRequest(arg0 *sagemaker.DeleteModelPackageGroupInput) (*request.Request, *sagemaker.DeleteModelPackageGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteModelPackageGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteModelPackageGroupOutput) + return ret0, ret1 +} + +// DeleteModelPackageGroupRequest indicates an expected call of DeleteModelPackageGroupRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteModelPackageGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteModelPackageGroupRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteModelPackageGroupRequest), arg0) +} + +// DeleteModelPackageGroupWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteModelPackageGroupWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteModelPackageGroupInput, arg2 ...request.Option) (*sagemaker.DeleteModelPackageGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteModelPackageGroupWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteModelPackageGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteModelPackageGroupWithContext indicates an expected call of DeleteModelPackageGroupWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteModelPackageGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteModelPackageGroupWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteModelPackageGroupWithContext), varargs...) +} + +// DeleteModelPackageRequest mocks base method. +func (m *MockSageMakerAPI) DeleteModelPackageRequest(arg0 *sagemaker.DeleteModelPackageInput) (*request.Request, *sagemaker.DeleteModelPackageOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteModelPackageRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteModelPackageOutput) + return ret0, ret1 +} + +// DeleteModelPackageRequest indicates an expected call of DeleteModelPackageRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteModelPackageRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteModelPackageRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteModelPackageRequest), arg0) +} + +// DeleteModelPackageWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteModelPackageWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteModelPackageInput, arg2 ...request.Option) (*sagemaker.DeleteModelPackageOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteModelPackageWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteModelPackageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteModelPackageWithContext indicates an expected call of DeleteModelPackageWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteModelPackageWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteModelPackageWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteModelPackageWithContext), varargs...) +} + +// DeleteModelQualityJobDefinition mocks base method. +func (m *MockSageMakerAPI) DeleteModelQualityJobDefinition(arg0 *sagemaker.DeleteModelQualityJobDefinitionInput) (*sagemaker.DeleteModelQualityJobDefinitionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteModelQualityJobDefinition", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteModelQualityJobDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteModelQualityJobDefinition indicates an expected call of DeleteModelQualityJobDefinition. +func (mr *MockSageMakerAPIMockRecorder) DeleteModelQualityJobDefinition(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteModelQualityJobDefinition", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteModelQualityJobDefinition), arg0) +} + +// DeleteModelQualityJobDefinitionRequest mocks base method. +func (m *MockSageMakerAPI) DeleteModelQualityJobDefinitionRequest(arg0 *sagemaker.DeleteModelQualityJobDefinitionInput) (*request.Request, *sagemaker.DeleteModelQualityJobDefinitionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteModelQualityJobDefinitionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteModelQualityJobDefinitionOutput) + return ret0, ret1 +} + +// DeleteModelQualityJobDefinitionRequest indicates an expected call of DeleteModelQualityJobDefinitionRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteModelQualityJobDefinitionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteModelQualityJobDefinitionRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteModelQualityJobDefinitionRequest), arg0) +} + +// DeleteModelQualityJobDefinitionWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteModelQualityJobDefinitionWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteModelQualityJobDefinitionInput, arg2 ...request.Option) (*sagemaker.DeleteModelQualityJobDefinitionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteModelQualityJobDefinitionWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteModelQualityJobDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteModelQualityJobDefinitionWithContext indicates an expected call of DeleteModelQualityJobDefinitionWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteModelQualityJobDefinitionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteModelQualityJobDefinitionWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteModelQualityJobDefinitionWithContext), varargs...) +} + +// DeleteModelRequest mocks base method. +func (m *MockSageMakerAPI) DeleteModelRequest(arg0 *sagemaker.DeleteModelInput) (*request.Request, *sagemaker.DeleteModelOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteModelRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteModelOutput) + return ret0, ret1 +} + +// DeleteModelRequest indicates an expected call of DeleteModelRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteModelRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteModelRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteModelRequest), arg0) +} + +// DeleteModelWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteModelWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteModelInput, arg2 ...request.Option) (*sagemaker.DeleteModelOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteModelWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteModelOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteModelWithContext indicates an expected call of DeleteModelWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteModelWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteModelWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteModelWithContext), varargs...) +} + +// DeleteMonitoringSchedule mocks base method. +func (m *MockSageMakerAPI) DeleteMonitoringSchedule(arg0 *sagemaker.DeleteMonitoringScheduleInput) (*sagemaker.DeleteMonitoringScheduleOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteMonitoringSchedule", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteMonitoringScheduleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteMonitoringSchedule indicates an expected call of DeleteMonitoringSchedule. +func (mr *MockSageMakerAPIMockRecorder) DeleteMonitoringSchedule(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMonitoringSchedule", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteMonitoringSchedule), arg0) +} + +// DeleteMonitoringScheduleRequest mocks base method. +func (m *MockSageMakerAPI) DeleteMonitoringScheduleRequest(arg0 *sagemaker.DeleteMonitoringScheduleInput) (*request.Request, *sagemaker.DeleteMonitoringScheduleOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteMonitoringScheduleRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteMonitoringScheduleOutput) + return ret0, ret1 +} + +// DeleteMonitoringScheduleRequest indicates an expected call of DeleteMonitoringScheduleRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteMonitoringScheduleRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMonitoringScheduleRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteMonitoringScheduleRequest), arg0) +} + +// DeleteMonitoringScheduleWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteMonitoringScheduleWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteMonitoringScheduleInput, arg2 ...request.Option) (*sagemaker.DeleteMonitoringScheduleOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteMonitoringScheduleWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteMonitoringScheduleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteMonitoringScheduleWithContext indicates an expected call of DeleteMonitoringScheduleWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteMonitoringScheduleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMonitoringScheduleWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteMonitoringScheduleWithContext), varargs...) +} + +// DeleteNotebookInstance mocks base method. +func (m *MockSageMakerAPI) DeleteNotebookInstance(arg0 *sagemaker.DeleteNotebookInstanceInput) (*sagemaker.DeleteNotebookInstanceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteNotebookInstance", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteNotebookInstanceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteNotebookInstance indicates an expected call of DeleteNotebookInstance. +func (mr *MockSageMakerAPIMockRecorder) DeleteNotebookInstance(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteNotebookInstance", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteNotebookInstance), arg0) +} + +// DeleteNotebookInstanceLifecycleConfig mocks base method. +func (m *MockSageMakerAPI) DeleteNotebookInstanceLifecycleConfig(arg0 *sagemaker.DeleteNotebookInstanceLifecycleConfigInput) (*sagemaker.DeleteNotebookInstanceLifecycleConfigOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteNotebookInstanceLifecycleConfig", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteNotebookInstanceLifecycleConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteNotebookInstanceLifecycleConfig indicates an expected call of DeleteNotebookInstanceLifecycleConfig. +func (mr *MockSageMakerAPIMockRecorder) DeleteNotebookInstanceLifecycleConfig(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteNotebookInstanceLifecycleConfig", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteNotebookInstanceLifecycleConfig), arg0) +} + +// DeleteNotebookInstanceLifecycleConfigRequest mocks base method. +func (m *MockSageMakerAPI) DeleteNotebookInstanceLifecycleConfigRequest(arg0 *sagemaker.DeleteNotebookInstanceLifecycleConfigInput) (*request.Request, *sagemaker.DeleteNotebookInstanceLifecycleConfigOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteNotebookInstanceLifecycleConfigRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteNotebookInstanceLifecycleConfigOutput) + return ret0, ret1 +} + +// DeleteNotebookInstanceLifecycleConfigRequest indicates an expected call of DeleteNotebookInstanceLifecycleConfigRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteNotebookInstanceLifecycleConfigRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteNotebookInstanceLifecycleConfigRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteNotebookInstanceLifecycleConfigRequest), arg0) +} + +// DeleteNotebookInstanceLifecycleConfigWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteNotebookInstanceLifecycleConfigWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteNotebookInstanceLifecycleConfigInput, arg2 ...request.Option) (*sagemaker.DeleteNotebookInstanceLifecycleConfigOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteNotebookInstanceLifecycleConfigWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteNotebookInstanceLifecycleConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteNotebookInstanceLifecycleConfigWithContext indicates an expected call of DeleteNotebookInstanceLifecycleConfigWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteNotebookInstanceLifecycleConfigWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteNotebookInstanceLifecycleConfigWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteNotebookInstanceLifecycleConfigWithContext), varargs...) +} + +// DeleteNotebookInstanceRequest mocks base method. +func (m *MockSageMakerAPI) DeleteNotebookInstanceRequest(arg0 *sagemaker.DeleteNotebookInstanceInput) (*request.Request, *sagemaker.DeleteNotebookInstanceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteNotebookInstanceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteNotebookInstanceOutput) + return ret0, ret1 +} + +// DeleteNotebookInstanceRequest indicates an expected call of DeleteNotebookInstanceRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteNotebookInstanceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteNotebookInstanceRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteNotebookInstanceRequest), arg0) +} + +// DeleteNotebookInstanceWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteNotebookInstanceWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteNotebookInstanceInput, arg2 ...request.Option) (*sagemaker.DeleteNotebookInstanceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteNotebookInstanceWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteNotebookInstanceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteNotebookInstanceWithContext indicates an expected call of DeleteNotebookInstanceWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteNotebookInstanceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteNotebookInstanceWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteNotebookInstanceWithContext), varargs...) +} + +// DeletePipeline mocks base method. +func (m *MockSageMakerAPI) DeletePipeline(arg0 *sagemaker.DeletePipelineInput) (*sagemaker.DeletePipelineOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeletePipeline", arg0) + ret0, _ := ret[0].(*sagemaker.DeletePipelineOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeletePipeline indicates an expected call of DeletePipeline. +func (mr *MockSageMakerAPIMockRecorder) DeletePipeline(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePipeline", reflect.TypeOf((*MockSageMakerAPI)(nil).DeletePipeline), arg0) +} + +// DeletePipelineRequest mocks base method. +func (m *MockSageMakerAPI) DeletePipelineRequest(arg0 *sagemaker.DeletePipelineInput) (*request.Request, *sagemaker.DeletePipelineOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeletePipelineRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeletePipelineOutput) + return ret0, ret1 +} + +// DeletePipelineRequest indicates an expected call of DeletePipelineRequest. +func (mr *MockSageMakerAPIMockRecorder) DeletePipelineRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePipelineRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeletePipelineRequest), arg0) +} + +// DeletePipelineWithContext mocks base method. +func (m *MockSageMakerAPI) DeletePipelineWithContext(arg0 aws.Context, arg1 *sagemaker.DeletePipelineInput, arg2 ...request.Option) (*sagemaker.DeletePipelineOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeletePipelineWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeletePipelineOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeletePipelineWithContext indicates an expected call of DeletePipelineWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeletePipelineWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePipelineWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeletePipelineWithContext), varargs...) +} + +// DeleteProject mocks base method. +func (m *MockSageMakerAPI) DeleteProject(arg0 *sagemaker.DeleteProjectInput) (*sagemaker.DeleteProjectOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteProject", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteProjectOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteProject indicates an expected call of DeleteProject. +func (mr *MockSageMakerAPIMockRecorder) DeleteProject(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteProject", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteProject), arg0) +} + +// DeleteProjectRequest mocks base method. +func (m *MockSageMakerAPI) DeleteProjectRequest(arg0 *sagemaker.DeleteProjectInput) (*request.Request, *sagemaker.DeleteProjectOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteProjectRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteProjectOutput) + return ret0, ret1 +} + +// DeleteProjectRequest indicates an expected call of DeleteProjectRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteProjectRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteProjectRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteProjectRequest), arg0) +} + +// DeleteProjectWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteProjectWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteProjectInput, arg2 ...request.Option) (*sagemaker.DeleteProjectOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteProjectWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteProjectOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteProjectWithContext indicates an expected call of DeleteProjectWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteProjectWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteProjectWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteProjectWithContext), varargs...) +} + +// DeleteSpace mocks base method. +func (m *MockSageMakerAPI) DeleteSpace(arg0 *sagemaker.DeleteSpaceInput) (*sagemaker.DeleteSpaceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteSpace", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteSpaceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteSpace indicates an expected call of DeleteSpace. +func (mr *MockSageMakerAPIMockRecorder) DeleteSpace(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSpace", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteSpace), arg0) +} + +// DeleteSpaceRequest mocks base method. +func (m *MockSageMakerAPI) DeleteSpaceRequest(arg0 *sagemaker.DeleteSpaceInput) (*request.Request, *sagemaker.DeleteSpaceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteSpaceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteSpaceOutput) + return ret0, ret1 +} + +// DeleteSpaceRequest indicates an expected call of DeleteSpaceRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteSpaceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSpaceRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteSpaceRequest), arg0) +} + +// DeleteSpaceWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteSpaceWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteSpaceInput, arg2 ...request.Option) (*sagemaker.DeleteSpaceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteSpaceWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteSpaceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteSpaceWithContext indicates an expected call of DeleteSpaceWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteSpaceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSpaceWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteSpaceWithContext), varargs...) +} + +// DeleteStudioLifecycleConfig mocks base method. +func (m *MockSageMakerAPI) DeleteStudioLifecycleConfig(arg0 *sagemaker.DeleteStudioLifecycleConfigInput) (*sagemaker.DeleteStudioLifecycleConfigOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteStudioLifecycleConfig", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteStudioLifecycleConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteStudioLifecycleConfig indicates an expected call of DeleteStudioLifecycleConfig. +func (mr *MockSageMakerAPIMockRecorder) DeleteStudioLifecycleConfig(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteStudioLifecycleConfig", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteStudioLifecycleConfig), arg0) +} + +// DeleteStudioLifecycleConfigRequest mocks base method. +func (m *MockSageMakerAPI) DeleteStudioLifecycleConfigRequest(arg0 *sagemaker.DeleteStudioLifecycleConfigInput) (*request.Request, *sagemaker.DeleteStudioLifecycleConfigOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteStudioLifecycleConfigRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteStudioLifecycleConfigOutput) + return ret0, ret1 +} + +// DeleteStudioLifecycleConfigRequest indicates an expected call of DeleteStudioLifecycleConfigRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteStudioLifecycleConfigRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteStudioLifecycleConfigRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteStudioLifecycleConfigRequest), arg0) +} + +// DeleteStudioLifecycleConfigWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteStudioLifecycleConfigWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteStudioLifecycleConfigInput, arg2 ...request.Option) (*sagemaker.DeleteStudioLifecycleConfigOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteStudioLifecycleConfigWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteStudioLifecycleConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteStudioLifecycleConfigWithContext indicates an expected call of DeleteStudioLifecycleConfigWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteStudioLifecycleConfigWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteStudioLifecycleConfigWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteStudioLifecycleConfigWithContext), varargs...) +} + +// DeleteTags mocks base method. +func (m *MockSageMakerAPI) DeleteTags(arg0 *sagemaker.DeleteTagsInput) (*sagemaker.DeleteTagsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTags", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteTagsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTags indicates an expected call of DeleteTags. +func (mr *MockSageMakerAPIMockRecorder) DeleteTags(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTags", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteTags), arg0) +} + +// DeleteTagsRequest mocks base method. +func (m *MockSageMakerAPI) DeleteTagsRequest(arg0 *sagemaker.DeleteTagsInput) (*request.Request, *sagemaker.DeleteTagsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTagsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteTagsOutput) + return ret0, ret1 +} + +// DeleteTagsRequest indicates an expected call of DeleteTagsRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteTagsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTagsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteTagsRequest), arg0) +} + +// DeleteTagsWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteTagsWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteTagsInput, arg2 ...request.Option) (*sagemaker.DeleteTagsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteTagsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteTagsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTagsWithContext indicates an expected call of DeleteTagsWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteTagsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTagsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteTagsWithContext), varargs...) +} + +// DeleteTrial mocks base method. +func (m *MockSageMakerAPI) DeleteTrial(arg0 *sagemaker.DeleteTrialInput) (*sagemaker.DeleteTrialOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTrial", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteTrialOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTrial indicates an expected call of DeleteTrial. +func (mr *MockSageMakerAPIMockRecorder) DeleteTrial(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTrial", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteTrial), arg0) +} + +// DeleteTrialComponent mocks base method. +func (m *MockSageMakerAPI) DeleteTrialComponent(arg0 *sagemaker.DeleteTrialComponentInput) (*sagemaker.DeleteTrialComponentOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTrialComponent", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteTrialComponentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTrialComponent indicates an expected call of DeleteTrialComponent. +func (mr *MockSageMakerAPIMockRecorder) DeleteTrialComponent(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTrialComponent", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteTrialComponent), arg0) +} + +// DeleteTrialComponentRequest mocks base method. +func (m *MockSageMakerAPI) DeleteTrialComponentRequest(arg0 *sagemaker.DeleteTrialComponentInput) (*request.Request, *sagemaker.DeleteTrialComponentOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTrialComponentRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteTrialComponentOutput) + return ret0, ret1 +} + +// DeleteTrialComponentRequest indicates an expected call of DeleteTrialComponentRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteTrialComponentRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTrialComponentRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteTrialComponentRequest), arg0) +} + +// DeleteTrialComponentWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteTrialComponentWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteTrialComponentInput, arg2 ...request.Option) (*sagemaker.DeleteTrialComponentOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteTrialComponentWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteTrialComponentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTrialComponentWithContext indicates an expected call of DeleteTrialComponentWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteTrialComponentWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTrialComponentWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteTrialComponentWithContext), varargs...) +} + +// DeleteTrialRequest mocks base method. +func (m *MockSageMakerAPI) DeleteTrialRequest(arg0 *sagemaker.DeleteTrialInput) (*request.Request, *sagemaker.DeleteTrialOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTrialRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteTrialOutput) + return ret0, ret1 +} + +// DeleteTrialRequest indicates an expected call of DeleteTrialRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteTrialRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTrialRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteTrialRequest), arg0) +} + +// DeleteTrialWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteTrialWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteTrialInput, arg2 ...request.Option) (*sagemaker.DeleteTrialOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteTrialWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteTrialOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTrialWithContext indicates an expected call of DeleteTrialWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteTrialWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTrialWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteTrialWithContext), varargs...) +} + +// DeleteUserProfile mocks base method. +func (m *MockSageMakerAPI) DeleteUserProfile(arg0 *sagemaker.DeleteUserProfileInput) (*sagemaker.DeleteUserProfileOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteUserProfile", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteUserProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteUserProfile indicates an expected call of DeleteUserProfile. +func (mr *MockSageMakerAPIMockRecorder) DeleteUserProfile(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserProfile", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteUserProfile), arg0) +} + +// DeleteUserProfileRequest mocks base method. +func (m *MockSageMakerAPI) DeleteUserProfileRequest(arg0 *sagemaker.DeleteUserProfileInput) (*request.Request, *sagemaker.DeleteUserProfileOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteUserProfileRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteUserProfileOutput) + return ret0, ret1 +} + +// DeleteUserProfileRequest indicates an expected call of DeleteUserProfileRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteUserProfileRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserProfileRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteUserProfileRequest), arg0) +} + +// DeleteUserProfileWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteUserProfileWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteUserProfileInput, arg2 ...request.Option) (*sagemaker.DeleteUserProfileOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteUserProfileWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteUserProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteUserProfileWithContext indicates an expected call of DeleteUserProfileWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteUserProfileWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserProfileWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteUserProfileWithContext), varargs...) +} + +// DeleteWorkforce mocks base method. +func (m *MockSageMakerAPI) DeleteWorkforce(arg0 *sagemaker.DeleteWorkforceInput) (*sagemaker.DeleteWorkforceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteWorkforce", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteWorkforceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteWorkforce indicates an expected call of DeleteWorkforce. +func (mr *MockSageMakerAPIMockRecorder) DeleteWorkforce(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteWorkforce", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteWorkforce), arg0) +} + +// DeleteWorkforceRequest mocks base method. +func (m *MockSageMakerAPI) DeleteWorkforceRequest(arg0 *sagemaker.DeleteWorkforceInput) (*request.Request, *sagemaker.DeleteWorkforceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteWorkforceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteWorkforceOutput) + return ret0, ret1 +} + +// DeleteWorkforceRequest indicates an expected call of DeleteWorkforceRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteWorkforceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteWorkforceRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteWorkforceRequest), arg0) +} + +// DeleteWorkforceWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteWorkforceWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteWorkforceInput, arg2 ...request.Option) (*sagemaker.DeleteWorkforceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteWorkforceWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteWorkforceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteWorkforceWithContext indicates an expected call of DeleteWorkforceWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteWorkforceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteWorkforceWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteWorkforceWithContext), varargs...) +} + +// DeleteWorkteam mocks base method. +func (m *MockSageMakerAPI) DeleteWorkteam(arg0 *sagemaker.DeleteWorkteamInput) (*sagemaker.DeleteWorkteamOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteWorkteam", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteWorkteamOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteWorkteam indicates an expected call of DeleteWorkteam. +func (mr *MockSageMakerAPIMockRecorder) DeleteWorkteam(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteWorkteam", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteWorkteam), arg0) +} + +// DeleteWorkteamRequest mocks base method. +func (m *MockSageMakerAPI) DeleteWorkteamRequest(arg0 *sagemaker.DeleteWorkteamInput) (*request.Request, *sagemaker.DeleteWorkteamOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteWorkteamRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteWorkteamOutput) + return ret0, ret1 +} + +// DeleteWorkteamRequest indicates an expected call of DeleteWorkteamRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteWorkteamRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteWorkteamRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteWorkteamRequest), arg0) +} + +// DeleteWorkteamWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteWorkteamWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteWorkteamInput, arg2 ...request.Option) (*sagemaker.DeleteWorkteamOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteWorkteamWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteWorkteamOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteWorkteamWithContext indicates an expected call of DeleteWorkteamWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteWorkteamWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteWorkteamWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteWorkteamWithContext), varargs...) +} + +// DeregisterDevices mocks base method. +func (m *MockSageMakerAPI) DeregisterDevices(arg0 *sagemaker.DeregisterDevicesInput) (*sagemaker.DeregisterDevicesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeregisterDevices", arg0) + ret0, _ := ret[0].(*sagemaker.DeregisterDevicesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeregisterDevices indicates an expected call of DeregisterDevices. +func (mr *MockSageMakerAPIMockRecorder) DeregisterDevices(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeregisterDevices", reflect.TypeOf((*MockSageMakerAPI)(nil).DeregisterDevices), arg0) +} + +// DeregisterDevicesRequest mocks base method. +func (m *MockSageMakerAPI) DeregisterDevicesRequest(arg0 *sagemaker.DeregisterDevicesInput) (*request.Request, *sagemaker.DeregisterDevicesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeregisterDevicesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeregisterDevicesOutput) + return ret0, ret1 +} + +// DeregisterDevicesRequest indicates an expected call of DeregisterDevicesRequest. +func (mr *MockSageMakerAPIMockRecorder) DeregisterDevicesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeregisterDevicesRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeregisterDevicesRequest), arg0) +} + +// DeregisterDevicesWithContext mocks base method. +func (m *MockSageMakerAPI) DeregisterDevicesWithContext(arg0 aws.Context, arg1 *sagemaker.DeregisterDevicesInput, arg2 ...request.Option) (*sagemaker.DeregisterDevicesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeregisterDevicesWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeregisterDevicesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeregisterDevicesWithContext indicates an expected call of DeregisterDevicesWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeregisterDevicesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeregisterDevicesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeregisterDevicesWithContext), varargs...) +} + +// DescribeAction mocks base method. +func (m *MockSageMakerAPI) DescribeAction(arg0 *sagemaker.DescribeActionInput) (*sagemaker.DescribeActionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAction", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeActionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAction indicates an expected call of DescribeAction. +func (mr *MockSageMakerAPIMockRecorder) DescribeAction(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAction", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeAction), arg0) +} + +// DescribeActionRequest mocks base method. +func (m *MockSageMakerAPI) DescribeActionRequest(arg0 *sagemaker.DescribeActionInput) (*request.Request, *sagemaker.DescribeActionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeActionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeActionOutput) + return ret0, ret1 +} + +// DescribeActionRequest indicates an expected call of DescribeActionRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeActionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeActionRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeActionRequest), arg0) +} + +// DescribeActionWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeActionWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeActionInput, arg2 ...request.Option) (*sagemaker.DescribeActionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeActionWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeActionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeActionWithContext indicates an expected call of DescribeActionWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeActionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeActionWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeActionWithContext), varargs...) +} + +// DescribeAlgorithm mocks base method. +func (m *MockSageMakerAPI) DescribeAlgorithm(arg0 *sagemaker.DescribeAlgorithmInput) (*sagemaker.DescribeAlgorithmOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAlgorithm", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeAlgorithmOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAlgorithm indicates an expected call of DescribeAlgorithm. +func (mr *MockSageMakerAPIMockRecorder) DescribeAlgorithm(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAlgorithm", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeAlgorithm), arg0) +} + +// DescribeAlgorithmRequest mocks base method. +func (m *MockSageMakerAPI) DescribeAlgorithmRequest(arg0 *sagemaker.DescribeAlgorithmInput) (*request.Request, *sagemaker.DescribeAlgorithmOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAlgorithmRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeAlgorithmOutput) + return ret0, ret1 +} + +// DescribeAlgorithmRequest indicates an expected call of DescribeAlgorithmRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeAlgorithmRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAlgorithmRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeAlgorithmRequest), arg0) +} + +// DescribeAlgorithmWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeAlgorithmWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeAlgorithmInput, arg2 ...request.Option) (*sagemaker.DescribeAlgorithmOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeAlgorithmWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeAlgorithmOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAlgorithmWithContext indicates an expected call of DescribeAlgorithmWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeAlgorithmWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAlgorithmWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeAlgorithmWithContext), varargs...) +} + +// DescribeApp mocks base method. +func (m *MockSageMakerAPI) DescribeApp(arg0 *sagemaker.DescribeAppInput) (*sagemaker.DescribeAppOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeApp", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeAppOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeApp indicates an expected call of DescribeApp. +func (mr *MockSageMakerAPIMockRecorder) DescribeApp(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeApp", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeApp), arg0) +} + +// DescribeAppImageConfig mocks base method. +func (m *MockSageMakerAPI) DescribeAppImageConfig(arg0 *sagemaker.DescribeAppImageConfigInput) (*sagemaker.DescribeAppImageConfigOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAppImageConfig", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeAppImageConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAppImageConfig indicates an expected call of DescribeAppImageConfig. +func (mr *MockSageMakerAPIMockRecorder) DescribeAppImageConfig(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAppImageConfig", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeAppImageConfig), arg0) +} + +// DescribeAppImageConfigRequest mocks base method. +func (m *MockSageMakerAPI) DescribeAppImageConfigRequest(arg0 *sagemaker.DescribeAppImageConfigInput) (*request.Request, *sagemaker.DescribeAppImageConfigOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAppImageConfigRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeAppImageConfigOutput) + return ret0, ret1 +} + +// DescribeAppImageConfigRequest indicates an expected call of DescribeAppImageConfigRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeAppImageConfigRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAppImageConfigRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeAppImageConfigRequest), arg0) +} + +// DescribeAppImageConfigWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeAppImageConfigWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeAppImageConfigInput, arg2 ...request.Option) (*sagemaker.DescribeAppImageConfigOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeAppImageConfigWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeAppImageConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAppImageConfigWithContext indicates an expected call of DescribeAppImageConfigWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeAppImageConfigWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAppImageConfigWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeAppImageConfigWithContext), varargs...) +} + +// DescribeAppRequest mocks base method. +func (m *MockSageMakerAPI) DescribeAppRequest(arg0 *sagemaker.DescribeAppInput) (*request.Request, *sagemaker.DescribeAppOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAppRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeAppOutput) + return ret0, ret1 +} + +// DescribeAppRequest indicates an expected call of DescribeAppRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeAppRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAppRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeAppRequest), arg0) +} + +// DescribeAppWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeAppWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeAppInput, arg2 ...request.Option) (*sagemaker.DescribeAppOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeAppWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeAppOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAppWithContext indicates an expected call of DescribeAppWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeAppWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAppWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeAppWithContext), varargs...) +} + +// DescribeArtifact mocks base method. +func (m *MockSageMakerAPI) DescribeArtifact(arg0 *sagemaker.DescribeArtifactInput) (*sagemaker.DescribeArtifactOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeArtifact", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeArtifactOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeArtifact indicates an expected call of DescribeArtifact. +func (mr *MockSageMakerAPIMockRecorder) DescribeArtifact(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeArtifact", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeArtifact), arg0) +} + +// DescribeArtifactRequest mocks base method. +func (m *MockSageMakerAPI) DescribeArtifactRequest(arg0 *sagemaker.DescribeArtifactInput) (*request.Request, *sagemaker.DescribeArtifactOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeArtifactRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeArtifactOutput) + return ret0, ret1 +} + +// DescribeArtifactRequest indicates an expected call of DescribeArtifactRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeArtifactRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeArtifactRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeArtifactRequest), arg0) +} + +// DescribeArtifactWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeArtifactWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeArtifactInput, arg2 ...request.Option) (*sagemaker.DescribeArtifactOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeArtifactWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeArtifactOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeArtifactWithContext indicates an expected call of DescribeArtifactWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeArtifactWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeArtifactWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeArtifactWithContext), varargs...) +} + +// DescribeAutoMLJob mocks base method. +func (m *MockSageMakerAPI) DescribeAutoMLJob(arg0 *sagemaker.DescribeAutoMLJobInput) (*sagemaker.DescribeAutoMLJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAutoMLJob", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeAutoMLJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAutoMLJob indicates an expected call of DescribeAutoMLJob. +func (mr *MockSageMakerAPIMockRecorder) DescribeAutoMLJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAutoMLJob", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeAutoMLJob), arg0) +} + +// DescribeAutoMLJobRequest mocks base method. +func (m *MockSageMakerAPI) DescribeAutoMLJobRequest(arg0 *sagemaker.DescribeAutoMLJobInput) (*request.Request, *sagemaker.DescribeAutoMLJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAutoMLJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeAutoMLJobOutput) + return ret0, ret1 +} + +// DescribeAutoMLJobRequest indicates an expected call of DescribeAutoMLJobRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeAutoMLJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAutoMLJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeAutoMLJobRequest), arg0) +} + +// DescribeAutoMLJobV2 mocks base method. +func (m *MockSageMakerAPI) DescribeAutoMLJobV2(arg0 *sagemaker.DescribeAutoMLJobV2Input) (*sagemaker.DescribeAutoMLJobV2Output, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAutoMLJobV2", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeAutoMLJobV2Output) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAutoMLJobV2 indicates an expected call of DescribeAutoMLJobV2. +func (mr *MockSageMakerAPIMockRecorder) DescribeAutoMLJobV2(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAutoMLJobV2", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeAutoMLJobV2), arg0) +} + +// DescribeAutoMLJobV2Request mocks base method. +func (m *MockSageMakerAPI) DescribeAutoMLJobV2Request(arg0 *sagemaker.DescribeAutoMLJobV2Input) (*request.Request, *sagemaker.DescribeAutoMLJobV2Output) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAutoMLJobV2Request", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeAutoMLJobV2Output) + return ret0, ret1 +} + +// DescribeAutoMLJobV2Request indicates an expected call of DescribeAutoMLJobV2Request. +func (mr *MockSageMakerAPIMockRecorder) DescribeAutoMLJobV2Request(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAutoMLJobV2Request", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeAutoMLJobV2Request), arg0) +} + +// DescribeAutoMLJobV2WithContext mocks base method. +func (m *MockSageMakerAPI) DescribeAutoMLJobV2WithContext(arg0 aws.Context, arg1 *sagemaker.DescribeAutoMLJobV2Input, arg2 ...request.Option) (*sagemaker.DescribeAutoMLJobV2Output, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeAutoMLJobV2WithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeAutoMLJobV2Output) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAutoMLJobV2WithContext indicates an expected call of DescribeAutoMLJobV2WithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeAutoMLJobV2WithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAutoMLJobV2WithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeAutoMLJobV2WithContext), varargs...) +} + +// DescribeAutoMLJobWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeAutoMLJobWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeAutoMLJobInput, arg2 ...request.Option) (*sagemaker.DescribeAutoMLJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeAutoMLJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeAutoMLJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAutoMLJobWithContext indicates an expected call of DescribeAutoMLJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeAutoMLJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAutoMLJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeAutoMLJobWithContext), varargs...) +} + +// DescribeCluster mocks base method. +func (m *MockSageMakerAPI) DescribeCluster(arg0 *sagemaker.DescribeClusterInput) (*sagemaker.DescribeClusterOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeCluster", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeClusterOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeCluster indicates an expected call of DescribeCluster. +func (mr *MockSageMakerAPIMockRecorder) DescribeCluster(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCluster", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeCluster), arg0) +} + +// DescribeClusterNode mocks base method. +func (m *MockSageMakerAPI) DescribeClusterNode(arg0 *sagemaker.DescribeClusterNodeInput) (*sagemaker.DescribeClusterNodeOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeClusterNode", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeClusterNodeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeClusterNode indicates an expected call of DescribeClusterNode. +func (mr *MockSageMakerAPIMockRecorder) DescribeClusterNode(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeClusterNode", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeClusterNode), arg0) +} + +// DescribeClusterNodeRequest mocks base method. +func (m *MockSageMakerAPI) DescribeClusterNodeRequest(arg0 *sagemaker.DescribeClusterNodeInput) (*request.Request, *sagemaker.DescribeClusterNodeOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeClusterNodeRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeClusterNodeOutput) + return ret0, ret1 +} + +// DescribeClusterNodeRequest indicates an expected call of DescribeClusterNodeRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeClusterNodeRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeClusterNodeRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeClusterNodeRequest), arg0) +} + +// DescribeClusterNodeWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeClusterNodeWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeClusterNodeInput, arg2 ...request.Option) (*sagemaker.DescribeClusterNodeOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeClusterNodeWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeClusterNodeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeClusterNodeWithContext indicates an expected call of DescribeClusterNodeWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeClusterNodeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeClusterNodeWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeClusterNodeWithContext), varargs...) +} + +// DescribeClusterRequest mocks base method. +func (m *MockSageMakerAPI) DescribeClusterRequest(arg0 *sagemaker.DescribeClusterInput) (*request.Request, *sagemaker.DescribeClusterOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeClusterRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeClusterOutput) + return ret0, ret1 +} + +// DescribeClusterRequest indicates an expected call of DescribeClusterRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeClusterRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeClusterRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeClusterRequest), arg0) +} + +// DescribeClusterWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeClusterWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeClusterInput, arg2 ...request.Option) (*sagemaker.DescribeClusterOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeClusterWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeClusterOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeClusterWithContext indicates an expected call of DescribeClusterWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeClusterWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeClusterWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeClusterWithContext), varargs...) +} + +// DescribeCodeRepository mocks base method. +func (m *MockSageMakerAPI) DescribeCodeRepository(arg0 *sagemaker.DescribeCodeRepositoryInput) (*sagemaker.DescribeCodeRepositoryOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeCodeRepository", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeCodeRepositoryOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeCodeRepository indicates an expected call of DescribeCodeRepository. +func (mr *MockSageMakerAPIMockRecorder) DescribeCodeRepository(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCodeRepository", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeCodeRepository), arg0) +} + +// DescribeCodeRepositoryRequest mocks base method. +func (m *MockSageMakerAPI) DescribeCodeRepositoryRequest(arg0 *sagemaker.DescribeCodeRepositoryInput) (*request.Request, *sagemaker.DescribeCodeRepositoryOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeCodeRepositoryRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeCodeRepositoryOutput) + return ret0, ret1 +} + +// DescribeCodeRepositoryRequest indicates an expected call of DescribeCodeRepositoryRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeCodeRepositoryRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCodeRepositoryRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeCodeRepositoryRequest), arg0) +} + +// DescribeCodeRepositoryWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeCodeRepositoryWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeCodeRepositoryInput, arg2 ...request.Option) (*sagemaker.DescribeCodeRepositoryOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeCodeRepositoryWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeCodeRepositoryOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeCodeRepositoryWithContext indicates an expected call of DescribeCodeRepositoryWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeCodeRepositoryWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCodeRepositoryWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeCodeRepositoryWithContext), varargs...) +} + +// DescribeCompilationJob mocks base method. +func (m *MockSageMakerAPI) DescribeCompilationJob(arg0 *sagemaker.DescribeCompilationJobInput) (*sagemaker.DescribeCompilationJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeCompilationJob", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeCompilationJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeCompilationJob indicates an expected call of DescribeCompilationJob. +func (mr *MockSageMakerAPIMockRecorder) DescribeCompilationJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCompilationJob", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeCompilationJob), arg0) +} + +// DescribeCompilationJobRequest mocks base method. +func (m *MockSageMakerAPI) DescribeCompilationJobRequest(arg0 *sagemaker.DescribeCompilationJobInput) (*request.Request, *sagemaker.DescribeCompilationJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeCompilationJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeCompilationJobOutput) + return ret0, ret1 +} + +// DescribeCompilationJobRequest indicates an expected call of DescribeCompilationJobRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeCompilationJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCompilationJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeCompilationJobRequest), arg0) +} + +// DescribeCompilationJobWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeCompilationJobWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeCompilationJobInput, arg2 ...request.Option) (*sagemaker.DescribeCompilationJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeCompilationJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeCompilationJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeCompilationJobWithContext indicates an expected call of DescribeCompilationJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeCompilationJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCompilationJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeCompilationJobWithContext), varargs...) +} + +// DescribeContext mocks base method. +func (m *MockSageMakerAPI) DescribeContext(arg0 *sagemaker.DescribeContextInput) (*sagemaker.DescribeContextOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeContext", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeContextOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeContext indicates an expected call of DescribeContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeContext(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeContext), arg0) +} + +// DescribeContextRequest mocks base method. +func (m *MockSageMakerAPI) DescribeContextRequest(arg0 *sagemaker.DescribeContextInput) (*request.Request, *sagemaker.DescribeContextOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeContextRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeContextOutput) + return ret0, ret1 +} + +// DescribeContextRequest indicates an expected call of DescribeContextRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeContextRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeContextRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeContextRequest), arg0) +} + +// DescribeContextWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeContextWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeContextInput, arg2 ...request.Option) (*sagemaker.DescribeContextOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeContextWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeContextOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeContextWithContext indicates an expected call of DescribeContextWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeContextWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeContextWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeContextWithContext), varargs...) +} + +// DescribeDataQualityJobDefinition mocks base method. +func (m *MockSageMakerAPI) DescribeDataQualityJobDefinition(arg0 *sagemaker.DescribeDataQualityJobDefinitionInput) (*sagemaker.DescribeDataQualityJobDefinitionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeDataQualityJobDefinition", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeDataQualityJobDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeDataQualityJobDefinition indicates an expected call of DescribeDataQualityJobDefinition. +func (mr *MockSageMakerAPIMockRecorder) DescribeDataQualityJobDefinition(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDataQualityJobDefinition", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeDataQualityJobDefinition), arg0) +} + +// DescribeDataQualityJobDefinitionRequest mocks base method. +func (m *MockSageMakerAPI) DescribeDataQualityJobDefinitionRequest(arg0 *sagemaker.DescribeDataQualityJobDefinitionInput) (*request.Request, *sagemaker.DescribeDataQualityJobDefinitionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeDataQualityJobDefinitionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeDataQualityJobDefinitionOutput) + return ret0, ret1 +} + +// DescribeDataQualityJobDefinitionRequest indicates an expected call of DescribeDataQualityJobDefinitionRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeDataQualityJobDefinitionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDataQualityJobDefinitionRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeDataQualityJobDefinitionRequest), arg0) +} + +// DescribeDataQualityJobDefinitionWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeDataQualityJobDefinitionWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeDataQualityJobDefinitionInput, arg2 ...request.Option) (*sagemaker.DescribeDataQualityJobDefinitionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeDataQualityJobDefinitionWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeDataQualityJobDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeDataQualityJobDefinitionWithContext indicates an expected call of DescribeDataQualityJobDefinitionWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeDataQualityJobDefinitionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDataQualityJobDefinitionWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeDataQualityJobDefinitionWithContext), varargs...) +} + +// DescribeDevice mocks base method. +func (m *MockSageMakerAPI) DescribeDevice(arg0 *sagemaker.DescribeDeviceInput) (*sagemaker.DescribeDeviceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeDevice", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeDeviceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeDevice indicates an expected call of DescribeDevice. +func (mr *MockSageMakerAPIMockRecorder) DescribeDevice(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDevice", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeDevice), arg0) +} + +// DescribeDeviceFleet mocks base method. +func (m *MockSageMakerAPI) DescribeDeviceFleet(arg0 *sagemaker.DescribeDeviceFleetInput) (*sagemaker.DescribeDeviceFleetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeDeviceFleet", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeDeviceFleetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeDeviceFleet indicates an expected call of DescribeDeviceFleet. +func (mr *MockSageMakerAPIMockRecorder) DescribeDeviceFleet(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDeviceFleet", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeDeviceFleet), arg0) +} + +// DescribeDeviceFleetRequest mocks base method. +func (m *MockSageMakerAPI) DescribeDeviceFleetRequest(arg0 *sagemaker.DescribeDeviceFleetInput) (*request.Request, *sagemaker.DescribeDeviceFleetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeDeviceFleetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeDeviceFleetOutput) + return ret0, ret1 +} + +// DescribeDeviceFleetRequest indicates an expected call of DescribeDeviceFleetRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeDeviceFleetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDeviceFleetRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeDeviceFleetRequest), arg0) +} + +// DescribeDeviceFleetWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeDeviceFleetWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeDeviceFleetInput, arg2 ...request.Option) (*sagemaker.DescribeDeviceFleetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeDeviceFleetWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeDeviceFleetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeDeviceFleetWithContext indicates an expected call of DescribeDeviceFleetWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeDeviceFleetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDeviceFleetWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeDeviceFleetWithContext), varargs...) +} + +// DescribeDeviceRequest mocks base method. +func (m *MockSageMakerAPI) DescribeDeviceRequest(arg0 *sagemaker.DescribeDeviceInput) (*request.Request, *sagemaker.DescribeDeviceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeDeviceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeDeviceOutput) + return ret0, ret1 +} + +// DescribeDeviceRequest indicates an expected call of DescribeDeviceRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeDeviceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDeviceRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeDeviceRequest), arg0) +} + +// DescribeDeviceWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeDeviceWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeDeviceInput, arg2 ...request.Option) (*sagemaker.DescribeDeviceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeDeviceWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeDeviceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeDeviceWithContext indicates an expected call of DescribeDeviceWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeDeviceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDeviceWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeDeviceWithContext), varargs...) +} + +// DescribeDomain mocks base method. +func (m *MockSageMakerAPI) DescribeDomain(arg0 *sagemaker.DescribeDomainInput) (*sagemaker.DescribeDomainOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeDomain", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeDomainOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeDomain indicates an expected call of DescribeDomain. +func (mr *MockSageMakerAPIMockRecorder) DescribeDomain(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDomain", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeDomain), arg0) +} + +// DescribeDomainRequest mocks base method. +func (m *MockSageMakerAPI) DescribeDomainRequest(arg0 *sagemaker.DescribeDomainInput) (*request.Request, *sagemaker.DescribeDomainOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeDomainRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeDomainOutput) + return ret0, ret1 +} + +// DescribeDomainRequest indicates an expected call of DescribeDomainRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeDomainRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDomainRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeDomainRequest), arg0) +} + +// DescribeDomainWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeDomainWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeDomainInput, arg2 ...request.Option) (*sagemaker.DescribeDomainOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeDomainWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeDomainOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeDomainWithContext indicates an expected call of DescribeDomainWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeDomainWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDomainWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeDomainWithContext), varargs...) +} + +// DescribeEdgeDeploymentPlan mocks base method. +func (m *MockSageMakerAPI) DescribeEdgeDeploymentPlan(arg0 *sagemaker.DescribeEdgeDeploymentPlanInput) (*sagemaker.DescribeEdgeDeploymentPlanOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeEdgeDeploymentPlan", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeEdgeDeploymentPlanOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeEdgeDeploymentPlan indicates an expected call of DescribeEdgeDeploymentPlan. +func (mr *MockSageMakerAPIMockRecorder) DescribeEdgeDeploymentPlan(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeEdgeDeploymentPlan", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeEdgeDeploymentPlan), arg0) +} + +// DescribeEdgeDeploymentPlanRequest mocks base method. +func (m *MockSageMakerAPI) DescribeEdgeDeploymentPlanRequest(arg0 *sagemaker.DescribeEdgeDeploymentPlanInput) (*request.Request, *sagemaker.DescribeEdgeDeploymentPlanOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeEdgeDeploymentPlanRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeEdgeDeploymentPlanOutput) + return ret0, ret1 +} + +// DescribeEdgeDeploymentPlanRequest indicates an expected call of DescribeEdgeDeploymentPlanRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeEdgeDeploymentPlanRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeEdgeDeploymentPlanRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeEdgeDeploymentPlanRequest), arg0) +} + +// DescribeEdgeDeploymentPlanWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeEdgeDeploymentPlanWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeEdgeDeploymentPlanInput, arg2 ...request.Option) (*sagemaker.DescribeEdgeDeploymentPlanOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeEdgeDeploymentPlanWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeEdgeDeploymentPlanOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeEdgeDeploymentPlanWithContext indicates an expected call of DescribeEdgeDeploymentPlanWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeEdgeDeploymentPlanWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeEdgeDeploymentPlanWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeEdgeDeploymentPlanWithContext), varargs...) +} + +// DescribeEdgePackagingJob mocks base method. +func (m *MockSageMakerAPI) DescribeEdgePackagingJob(arg0 *sagemaker.DescribeEdgePackagingJobInput) (*sagemaker.DescribeEdgePackagingJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeEdgePackagingJob", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeEdgePackagingJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeEdgePackagingJob indicates an expected call of DescribeEdgePackagingJob. +func (mr *MockSageMakerAPIMockRecorder) DescribeEdgePackagingJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeEdgePackagingJob", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeEdgePackagingJob), arg0) +} + +// DescribeEdgePackagingJobRequest mocks base method. +func (m *MockSageMakerAPI) DescribeEdgePackagingJobRequest(arg0 *sagemaker.DescribeEdgePackagingJobInput) (*request.Request, *sagemaker.DescribeEdgePackagingJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeEdgePackagingJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeEdgePackagingJobOutput) + return ret0, ret1 +} + +// DescribeEdgePackagingJobRequest indicates an expected call of DescribeEdgePackagingJobRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeEdgePackagingJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeEdgePackagingJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeEdgePackagingJobRequest), arg0) +} + +// DescribeEdgePackagingJobWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeEdgePackagingJobWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeEdgePackagingJobInput, arg2 ...request.Option) (*sagemaker.DescribeEdgePackagingJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeEdgePackagingJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeEdgePackagingJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeEdgePackagingJobWithContext indicates an expected call of DescribeEdgePackagingJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeEdgePackagingJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeEdgePackagingJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeEdgePackagingJobWithContext), varargs...) +} + +// DescribeEndpoint mocks base method. +func (m *MockSageMakerAPI) DescribeEndpoint(arg0 *sagemaker.DescribeEndpointInput) (*sagemaker.DescribeEndpointOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeEndpoint", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeEndpointOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeEndpoint indicates an expected call of DescribeEndpoint. +func (mr *MockSageMakerAPIMockRecorder) DescribeEndpoint(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeEndpoint", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeEndpoint), arg0) +} + +// DescribeEndpointConfig mocks base method. +func (m *MockSageMakerAPI) DescribeEndpointConfig(arg0 *sagemaker.DescribeEndpointConfigInput) (*sagemaker.DescribeEndpointConfigOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeEndpointConfig", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeEndpointConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeEndpointConfig indicates an expected call of DescribeEndpointConfig. +func (mr *MockSageMakerAPIMockRecorder) DescribeEndpointConfig(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeEndpointConfig", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeEndpointConfig), arg0) +} + +// DescribeEndpointConfigRequest mocks base method. +func (m *MockSageMakerAPI) DescribeEndpointConfigRequest(arg0 *sagemaker.DescribeEndpointConfigInput) (*request.Request, *sagemaker.DescribeEndpointConfigOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeEndpointConfigRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeEndpointConfigOutput) + return ret0, ret1 +} + +// DescribeEndpointConfigRequest indicates an expected call of DescribeEndpointConfigRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeEndpointConfigRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeEndpointConfigRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeEndpointConfigRequest), arg0) +} + +// DescribeEndpointConfigWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeEndpointConfigWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeEndpointConfigInput, arg2 ...request.Option) (*sagemaker.DescribeEndpointConfigOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeEndpointConfigWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeEndpointConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeEndpointConfigWithContext indicates an expected call of DescribeEndpointConfigWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeEndpointConfigWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeEndpointConfigWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeEndpointConfigWithContext), varargs...) +} + +// DescribeEndpointRequest mocks base method. +func (m *MockSageMakerAPI) DescribeEndpointRequest(arg0 *sagemaker.DescribeEndpointInput) (*request.Request, *sagemaker.DescribeEndpointOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeEndpointRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeEndpointOutput) + return ret0, ret1 +} + +// DescribeEndpointRequest indicates an expected call of DescribeEndpointRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeEndpointRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeEndpointRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeEndpointRequest), arg0) +} + +// DescribeEndpointWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeEndpointWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeEndpointInput, arg2 ...request.Option) (*sagemaker.DescribeEndpointOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeEndpointWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeEndpointOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeEndpointWithContext indicates an expected call of DescribeEndpointWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeEndpointWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeEndpointWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeEndpointWithContext), varargs...) +} + +// DescribeExperiment mocks base method. +func (m *MockSageMakerAPI) DescribeExperiment(arg0 *sagemaker.DescribeExperimentInput) (*sagemaker.DescribeExperimentOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeExperiment", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeExperimentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeExperiment indicates an expected call of DescribeExperiment. +func (mr *MockSageMakerAPIMockRecorder) DescribeExperiment(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeExperiment", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeExperiment), arg0) +} + +// DescribeExperimentRequest mocks base method. +func (m *MockSageMakerAPI) DescribeExperimentRequest(arg0 *sagemaker.DescribeExperimentInput) (*request.Request, *sagemaker.DescribeExperimentOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeExperimentRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeExperimentOutput) + return ret0, ret1 +} + +// DescribeExperimentRequest indicates an expected call of DescribeExperimentRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeExperimentRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeExperimentRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeExperimentRequest), arg0) +} + +// DescribeExperimentWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeExperimentWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeExperimentInput, arg2 ...request.Option) (*sagemaker.DescribeExperimentOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeExperimentWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeExperimentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeExperimentWithContext indicates an expected call of DescribeExperimentWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeExperimentWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeExperimentWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeExperimentWithContext), varargs...) +} + +// DescribeFeatureGroup mocks base method. +func (m *MockSageMakerAPI) DescribeFeatureGroup(arg0 *sagemaker.DescribeFeatureGroupInput) (*sagemaker.DescribeFeatureGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeFeatureGroup", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeFeatureGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeFeatureGroup indicates an expected call of DescribeFeatureGroup. +func (mr *MockSageMakerAPIMockRecorder) DescribeFeatureGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFeatureGroup", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeFeatureGroup), arg0) +} + +// DescribeFeatureGroupRequest mocks base method. +func (m *MockSageMakerAPI) DescribeFeatureGroupRequest(arg0 *sagemaker.DescribeFeatureGroupInput) (*request.Request, *sagemaker.DescribeFeatureGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeFeatureGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeFeatureGroupOutput) + return ret0, ret1 +} + +// DescribeFeatureGroupRequest indicates an expected call of DescribeFeatureGroupRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeFeatureGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFeatureGroupRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeFeatureGroupRequest), arg0) +} + +// DescribeFeatureGroupWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeFeatureGroupWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeFeatureGroupInput, arg2 ...request.Option) (*sagemaker.DescribeFeatureGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeFeatureGroupWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeFeatureGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeFeatureGroupWithContext indicates an expected call of DescribeFeatureGroupWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeFeatureGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFeatureGroupWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeFeatureGroupWithContext), varargs...) +} + +// DescribeFeatureMetadata mocks base method. +func (m *MockSageMakerAPI) DescribeFeatureMetadata(arg0 *sagemaker.DescribeFeatureMetadataInput) (*sagemaker.DescribeFeatureMetadataOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeFeatureMetadata", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeFeatureMetadataOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeFeatureMetadata indicates an expected call of DescribeFeatureMetadata. +func (mr *MockSageMakerAPIMockRecorder) DescribeFeatureMetadata(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFeatureMetadata", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeFeatureMetadata), arg0) +} + +// DescribeFeatureMetadataRequest mocks base method. +func (m *MockSageMakerAPI) DescribeFeatureMetadataRequest(arg0 *sagemaker.DescribeFeatureMetadataInput) (*request.Request, *sagemaker.DescribeFeatureMetadataOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeFeatureMetadataRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeFeatureMetadataOutput) + return ret0, ret1 +} + +// DescribeFeatureMetadataRequest indicates an expected call of DescribeFeatureMetadataRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeFeatureMetadataRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFeatureMetadataRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeFeatureMetadataRequest), arg0) +} + +// DescribeFeatureMetadataWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeFeatureMetadataWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeFeatureMetadataInput, arg2 ...request.Option) (*sagemaker.DescribeFeatureMetadataOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeFeatureMetadataWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeFeatureMetadataOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeFeatureMetadataWithContext indicates an expected call of DescribeFeatureMetadataWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeFeatureMetadataWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFeatureMetadataWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeFeatureMetadataWithContext), varargs...) +} + +// DescribeFlowDefinition mocks base method. +func (m *MockSageMakerAPI) DescribeFlowDefinition(arg0 *sagemaker.DescribeFlowDefinitionInput) (*sagemaker.DescribeFlowDefinitionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeFlowDefinition", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeFlowDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeFlowDefinition indicates an expected call of DescribeFlowDefinition. +func (mr *MockSageMakerAPIMockRecorder) DescribeFlowDefinition(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFlowDefinition", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeFlowDefinition), arg0) +} + +// DescribeFlowDefinitionRequest mocks base method. +func (m *MockSageMakerAPI) DescribeFlowDefinitionRequest(arg0 *sagemaker.DescribeFlowDefinitionInput) (*request.Request, *sagemaker.DescribeFlowDefinitionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeFlowDefinitionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeFlowDefinitionOutput) + return ret0, ret1 +} + +// DescribeFlowDefinitionRequest indicates an expected call of DescribeFlowDefinitionRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeFlowDefinitionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFlowDefinitionRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeFlowDefinitionRequest), arg0) +} + +// DescribeFlowDefinitionWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeFlowDefinitionWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeFlowDefinitionInput, arg2 ...request.Option) (*sagemaker.DescribeFlowDefinitionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeFlowDefinitionWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeFlowDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeFlowDefinitionWithContext indicates an expected call of DescribeFlowDefinitionWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeFlowDefinitionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFlowDefinitionWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeFlowDefinitionWithContext), varargs...) +} + +// DescribeHub mocks base method. +func (m *MockSageMakerAPI) DescribeHub(arg0 *sagemaker.DescribeHubInput) (*sagemaker.DescribeHubOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeHub", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeHubOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeHub indicates an expected call of DescribeHub. +func (mr *MockSageMakerAPIMockRecorder) DescribeHub(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeHub", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeHub), arg0) +} + +// DescribeHubContent mocks base method. +func (m *MockSageMakerAPI) DescribeHubContent(arg0 *sagemaker.DescribeHubContentInput) (*sagemaker.DescribeHubContentOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeHubContent", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeHubContentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeHubContent indicates an expected call of DescribeHubContent. +func (mr *MockSageMakerAPIMockRecorder) DescribeHubContent(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeHubContent", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeHubContent), arg0) +} + +// DescribeHubContentRequest mocks base method. +func (m *MockSageMakerAPI) DescribeHubContentRequest(arg0 *sagemaker.DescribeHubContentInput) (*request.Request, *sagemaker.DescribeHubContentOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeHubContentRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeHubContentOutput) + return ret0, ret1 +} + +// DescribeHubContentRequest indicates an expected call of DescribeHubContentRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeHubContentRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeHubContentRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeHubContentRequest), arg0) +} + +// DescribeHubContentWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeHubContentWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeHubContentInput, arg2 ...request.Option) (*sagemaker.DescribeHubContentOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeHubContentWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeHubContentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeHubContentWithContext indicates an expected call of DescribeHubContentWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeHubContentWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeHubContentWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeHubContentWithContext), varargs...) +} + +// DescribeHubRequest mocks base method. +func (m *MockSageMakerAPI) DescribeHubRequest(arg0 *sagemaker.DescribeHubInput) (*request.Request, *sagemaker.DescribeHubOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeHubRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeHubOutput) + return ret0, ret1 +} + +// DescribeHubRequest indicates an expected call of DescribeHubRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeHubRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeHubRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeHubRequest), arg0) +} + +// DescribeHubWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeHubWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeHubInput, arg2 ...request.Option) (*sagemaker.DescribeHubOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeHubWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeHubOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeHubWithContext indicates an expected call of DescribeHubWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeHubWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeHubWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeHubWithContext), varargs...) +} + +// DescribeHumanTaskUi mocks base method. +func (m *MockSageMakerAPI) DescribeHumanTaskUi(arg0 *sagemaker.DescribeHumanTaskUiInput) (*sagemaker.DescribeHumanTaskUiOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeHumanTaskUi", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeHumanTaskUiOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeHumanTaskUi indicates an expected call of DescribeHumanTaskUi. +func (mr *MockSageMakerAPIMockRecorder) DescribeHumanTaskUi(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeHumanTaskUi", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeHumanTaskUi), arg0) +} + +// DescribeHumanTaskUiRequest mocks base method. +func (m *MockSageMakerAPI) DescribeHumanTaskUiRequest(arg0 *sagemaker.DescribeHumanTaskUiInput) (*request.Request, *sagemaker.DescribeHumanTaskUiOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeHumanTaskUiRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeHumanTaskUiOutput) + return ret0, ret1 +} + +// DescribeHumanTaskUiRequest indicates an expected call of DescribeHumanTaskUiRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeHumanTaskUiRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeHumanTaskUiRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeHumanTaskUiRequest), arg0) +} + +// DescribeHumanTaskUiWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeHumanTaskUiWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeHumanTaskUiInput, arg2 ...request.Option) (*sagemaker.DescribeHumanTaskUiOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeHumanTaskUiWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeHumanTaskUiOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeHumanTaskUiWithContext indicates an expected call of DescribeHumanTaskUiWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeHumanTaskUiWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeHumanTaskUiWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeHumanTaskUiWithContext), varargs...) +} + +// DescribeHyperParameterTuningJob mocks base method. +func (m *MockSageMakerAPI) DescribeHyperParameterTuningJob(arg0 *sagemaker.DescribeHyperParameterTuningJobInput) (*sagemaker.DescribeHyperParameterTuningJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeHyperParameterTuningJob", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeHyperParameterTuningJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeHyperParameterTuningJob indicates an expected call of DescribeHyperParameterTuningJob. +func (mr *MockSageMakerAPIMockRecorder) DescribeHyperParameterTuningJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeHyperParameterTuningJob", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeHyperParameterTuningJob), arg0) +} + +// DescribeHyperParameterTuningJobRequest mocks base method. +func (m *MockSageMakerAPI) DescribeHyperParameterTuningJobRequest(arg0 *sagemaker.DescribeHyperParameterTuningJobInput) (*request.Request, *sagemaker.DescribeHyperParameterTuningJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeHyperParameterTuningJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeHyperParameterTuningJobOutput) + return ret0, ret1 +} + +// DescribeHyperParameterTuningJobRequest indicates an expected call of DescribeHyperParameterTuningJobRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeHyperParameterTuningJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeHyperParameterTuningJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeHyperParameterTuningJobRequest), arg0) +} + +// DescribeHyperParameterTuningJobWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeHyperParameterTuningJobWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeHyperParameterTuningJobInput, arg2 ...request.Option) (*sagemaker.DescribeHyperParameterTuningJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeHyperParameterTuningJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeHyperParameterTuningJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeHyperParameterTuningJobWithContext indicates an expected call of DescribeHyperParameterTuningJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeHyperParameterTuningJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeHyperParameterTuningJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeHyperParameterTuningJobWithContext), varargs...) +} + +// DescribeImage mocks base method. +func (m *MockSageMakerAPI) DescribeImage(arg0 *sagemaker.DescribeImageInput) (*sagemaker.DescribeImageOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeImage", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeImageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeImage indicates an expected call of DescribeImage. +func (mr *MockSageMakerAPIMockRecorder) DescribeImage(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeImage", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeImage), arg0) +} + +// DescribeImageRequest mocks base method. +func (m *MockSageMakerAPI) DescribeImageRequest(arg0 *sagemaker.DescribeImageInput) (*request.Request, *sagemaker.DescribeImageOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeImageRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeImageOutput) + return ret0, ret1 +} + +// DescribeImageRequest indicates an expected call of DescribeImageRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeImageRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeImageRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeImageRequest), arg0) +} + +// DescribeImageVersion mocks base method. +func (m *MockSageMakerAPI) DescribeImageVersion(arg0 *sagemaker.DescribeImageVersionInput) (*sagemaker.DescribeImageVersionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeImageVersion", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeImageVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeImageVersion indicates an expected call of DescribeImageVersion. +func (mr *MockSageMakerAPIMockRecorder) DescribeImageVersion(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeImageVersion", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeImageVersion), arg0) +} + +// DescribeImageVersionRequest mocks base method. +func (m *MockSageMakerAPI) DescribeImageVersionRequest(arg0 *sagemaker.DescribeImageVersionInput) (*request.Request, *sagemaker.DescribeImageVersionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeImageVersionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeImageVersionOutput) + return ret0, ret1 +} + +// DescribeImageVersionRequest indicates an expected call of DescribeImageVersionRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeImageVersionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeImageVersionRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeImageVersionRequest), arg0) +} + +// DescribeImageVersionWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeImageVersionWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeImageVersionInput, arg2 ...request.Option) (*sagemaker.DescribeImageVersionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeImageVersionWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeImageVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeImageVersionWithContext indicates an expected call of DescribeImageVersionWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeImageVersionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeImageVersionWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeImageVersionWithContext), varargs...) +} + +// DescribeImageWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeImageWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeImageInput, arg2 ...request.Option) (*sagemaker.DescribeImageOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeImageWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeImageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeImageWithContext indicates an expected call of DescribeImageWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeImageWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeImageWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeImageWithContext), varargs...) +} + +// DescribeInferenceComponent mocks base method. +func (m *MockSageMakerAPI) DescribeInferenceComponent(arg0 *sagemaker.DescribeInferenceComponentInput) (*sagemaker.DescribeInferenceComponentOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeInferenceComponent", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeInferenceComponentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeInferenceComponent indicates an expected call of DescribeInferenceComponent. +func (mr *MockSageMakerAPIMockRecorder) DescribeInferenceComponent(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeInferenceComponent", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeInferenceComponent), arg0) +} + +// DescribeInferenceComponentRequest mocks base method. +func (m *MockSageMakerAPI) DescribeInferenceComponentRequest(arg0 *sagemaker.DescribeInferenceComponentInput) (*request.Request, *sagemaker.DescribeInferenceComponentOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeInferenceComponentRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeInferenceComponentOutput) + return ret0, ret1 +} + +// DescribeInferenceComponentRequest indicates an expected call of DescribeInferenceComponentRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeInferenceComponentRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeInferenceComponentRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeInferenceComponentRequest), arg0) +} + +// DescribeInferenceComponentWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeInferenceComponentWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeInferenceComponentInput, arg2 ...request.Option) (*sagemaker.DescribeInferenceComponentOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeInferenceComponentWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeInferenceComponentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeInferenceComponentWithContext indicates an expected call of DescribeInferenceComponentWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeInferenceComponentWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeInferenceComponentWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeInferenceComponentWithContext), varargs...) +} + +// DescribeInferenceExperiment mocks base method. +func (m *MockSageMakerAPI) DescribeInferenceExperiment(arg0 *sagemaker.DescribeInferenceExperimentInput) (*sagemaker.DescribeInferenceExperimentOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeInferenceExperiment", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeInferenceExperimentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeInferenceExperiment indicates an expected call of DescribeInferenceExperiment. +func (mr *MockSageMakerAPIMockRecorder) DescribeInferenceExperiment(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeInferenceExperiment", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeInferenceExperiment), arg0) +} + +// DescribeInferenceExperimentRequest mocks base method. +func (m *MockSageMakerAPI) DescribeInferenceExperimentRequest(arg0 *sagemaker.DescribeInferenceExperimentInput) (*request.Request, *sagemaker.DescribeInferenceExperimentOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeInferenceExperimentRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeInferenceExperimentOutput) + return ret0, ret1 +} + +// DescribeInferenceExperimentRequest indicates an expected call of DescribeInferenceExperimentRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeInferenceExperimentRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeInferenceExperimentRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeInferenceExperimentRequest), arg0) +} + +// DescribeInferenceExperimentWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeInferenceExperimentWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeInferenceExperimentInput, arg2 ...request.Option) (*sagemaker.DescribeInferenceExperimentOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeInferenceExperimentWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeInferenceExperimentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeInferenceExperimentWithContext indicates an expected call of DescribeInferenceExperimentWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeInferenceExperimentWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeInferenceExperimentWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeInferenceExperimentWithContext), varargs...) +} + +// DescribeInferenceRecommendationsJob mocks base method. +func (m *MockSageMakerAPI) DescribeInferenceRecommendationsJob(arg0 *sagemaker.DescribeInferenceRecommendationsJobInput) (*sagemaker.DescribeInferenceRecommendationsJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeInferenceRecommendationsJob", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeInferenceRecommendationsJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeInferenceRecommendationsJob indicates an expected call of DescribeInferenceRecommendationsJob. +func (mr *MockSageMakerAPIMockRecorder) DescribeInferenceRecommendationsJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeInferenceRecommendationsJob", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeInferenceRecommendationsJob), arg0) +} + +// DescribeInferenceRecommendationsJobRequest mocks base method. +func (m *MockSageMakerAPI) DescribeInferenceRecommendationsJobRequest(arg0 *sagemaker.DescribeInferenceRecommendationsJobInput) (*request.Request, *sagemaker.DescribeInferenceRecommendationsJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeInferenceRecommendationsJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeInferenceRecommendationsJobOutput) + return ret0, ret1 +} + +// DescribeInferenceRecommendationsJobRequest indicates an expected call of DescribeInferenceRecommendationsJobRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeInferenceRecommendationsJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeInferenceRecommendationsJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeInferenceRecommendationsJobRequest), arg0) +} + +// DescribeInferenceRecommendationsJobWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeInferenceRecommendationsJobWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeInferenceRecommendationsJobInput, arg2 ...request.Option) (*sagemaker.DescribeInferenceRecommendationsJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeInferenceRecommendationsJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeInferenceRecommendationsJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeInferenceRecommendationsJobWithContext indicates an expected call of DescribeInferenceRecommendationsJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeInferenceRecommendationsJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeInferenceRecommendationsJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeInferenceRecommendationsJobWithContext), varargs...) +} + +// DescribeLabelingJob mocks base method. +func (m *MockSageMakerAPI) DescribeLabelingJob(arg0 *sagemaker.DescribeLabelingJobInput) (*sagemaker.DescribeLabelingJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeLabelingJob", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeLabelingJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeLabelingJob indicates an expected call of DescribeLabelingJob. +func (mr *MockSageMakerAPIMockRecorder) DescribeLabelingJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeLabelingJob", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeLabelingJob), arg0) +} + +// DescribeLabelingJobRequest mocks base method. +func (m *MockSageMakerAPI) DescribeLabelingJobRequest(arg0 *sagemaker.DescribeLabelingJobInput) (*request.Request, *sagemaker.DescribeLabelingJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeLabelingJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeLabelingJobOutput) + return ret0, ret1 +} + +// DescribeLabelingJobRequest indicates an expected call of DescribeLabelingJobRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeLabelingJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeLabelingJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeLabelingJobRequest), arg0) +} + +// DescribeLabelingJobWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeLabelingJobWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeLabelingJobInput, arg2 ...request.Option) (*sagemaker.DescribeLabelingJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeLabelingJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeLabelingJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeLabelingJobWithContext indicates an expected call of DescribeLabelingJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeLabelingJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeLabelingJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeLabelingJobWithContext), varargs...) +} + +// DescribeLineageGroup mocks base method. +func (m *MockSageMakerAPI) DescribeLineageGroup(arg0 *sagemaker.DescribeLineageGroupInput) (*sagemaker.DescribeLineageGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeLineageGroup", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeLineageGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeLineageGroup indicates an expected call of DescribeLineageGroup. +func (mr *MockSageMakerAPIMockRecorder) DescribeLineageGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeLineageGroup", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeLineageGroup), arg0) +} + +// DescribeLineageGroupRequest mocks base method. +func (m *MockSageMakerAPI) DescribeLineageGroupRequest(arg0 *sagemaker.DescribeLineageGroupInput) (*request.Request, *sagemaker.DescribeLineageGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeLineageGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeLineageGroupOutput) + return ret0, ret1 +} + +// DescribeLineageGroupRequest indicates an expected call of DescribeLineageGroupRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeLineageGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeLineageGroupRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeLineageGroupRequest), arg0) +} + +// DescribeLineageGroupWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeLineageGroupWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeLineageGroupInput, arg2 ...request.Option) (*sagemaker.DescribeLineageGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeLineageGroupWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeLineageGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeLineageGroupWithContext indicates an expected call of DescribeLineageGroupWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeLineageGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeLineageGroupWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeLineageGroupWithContext), varargs...) +} + +// DescribeModel mocks base method. +func (m *MockSageMakerAPI) DescribeModel(arg0 *sagemaker.DescribeModelInput) (*sagemaker.DescribeModelOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeModel", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeModelOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeModel indicates an expected call of DescribeModel. +func (mr *MockSageMakerAPIMockRecorder) DescribeModel(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeModel", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeModel), arg0) +} + +// DescribeModelBiasJobDefinition mocks base method. +func (m *MockSageMakerAPI) DescribeModelBiasJobDefinition(arg0 *sagemaker.DescribeModelBiasJobDefinitionInput) (*sagemaker.DescribeModelBiasJobDefinitionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeModelBiasJobDefinition", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeModelBiasJobDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeModelBiasJobDefinition indicates an expected call of DescribeModelBiasJobDefinition. +func (mr *MockSageMakerAPIMockRecorder) DescribeModelBiasJobDefinition(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeModelBiasJobDefinition", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeModelBiasJobDefinition), arg0) +} + +// DescribeModelBiasJobDefinitionRequest mocks base method. +func (m *MockSageMakerAPI) DescribeModelBiasJobDefinitionRequest(arg0 *sagemaker.DescribeModelBiasJobDefinitionInput) (*request.Request, *sagemaker.DescribeModelBiasJobDefinitionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeModelBiasJobDefinitionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeModelBiasJobDefinitionOutput) + return ret0, ret1 +} + +// DescribeModelBiasJobDefinitionRequest indicates an expected call of DescribeModelBiasJobDefinitionRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeModelBiasJobDefinitionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeModelBiasJobDefinitionRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeModelBiasJobDefinitionRequest), arg0) +} + +// DescribeModelBiasJobDefinitionWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeModelBiasJobDefinitionWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeModelBiasJobDefinitionInput, arg2 ...request.Option) (*sagemaker.DescribeModelBiasJobDefinitionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeModelBiasJobDefinitionWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeModelBiasJobDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeModelBiasJobDefinitionWithContext indicates an expected call of DescribeModelBiasJobDefinitionWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeModelBiasJobDefinitionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeModelBiasJobDefinitionWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeModelBiasJobDefinitionWithContext), varargs...) +} + +// DescribeModelCard mocks base method. +func (m *MockSageMakerAPI) DescribeModelCard(arg0 *sagemaker.DescribeModelCardInput) (*sagemaker.DescribeModelCardOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeModelCard", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeModelCardOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeModelCard indicates an expected call of DescribeModelCard. +func (mr *MockSageMakerAPIMockRecorder) DescribeModelCard(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeModelCard", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeModelCard), arg0) +} + +// DescribeModelCardExportJob mocks base method. +func (m *MockSageMakerAPI) DescribeModelCardExportJob(arg0 *sagemaker.DescribeModelCardExportJobInput) (*sagemaker.DescribeModelCardExportJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeModelCardExportJob", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeModelCardExportJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeModelCardExportJob indicates an expected call of DescribeModelCardExportJob. +func (mr *MockSageMakerAPIMockRecorder) DescribeModelCardExportJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeModelCardExportJob", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeModelCardExportJob), arg0) +} + +// DescribeModelCardExportJobRequest mocks base method. +func (m *MockSageMakerAPI) DescribeModelCardExportJobRequest(arg0 *sagemaker.DescribeModelCardExportJobInput) (*request.Request, *sagemaker.DescribeModelCardExportJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeModelCardExportJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeModelCardExportJobOutput) + return ret0, ret1 +} + +// DescribeModelCardExportJobRequest indicates an expected call of DescribeModelCardExportJobRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeModelCardExportJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeModelCardExportJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeModelCardExportJobRequest), arg0) +} + +// DescribeModelCardExportJobWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeModelCardExportJobWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeModelCardExportJobInput, arg2 ...request.Option) (*sagemaker.DescribeModelCardExportJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeModelCardExportJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeModelCardExportJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeModelCardExportJobWithContext indicates an expected call of DescribeModelCardExportJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeModelCardExportJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeModelCardExportJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeModelCardExportJobWithContext), varargs...) +} + +// DescribeModelCardRequest mocks base method. +func (m *MockSageMakerAPI) DescribeModelCardRequest(arg0 *sagemaker.DescribeModelCardInput) (*request.Request, *sagemaker.DescribeModelCardOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeModelCardRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeModelCardOutput) + return ret0, ret1 +} + +// DescribeModelCardRequest indicates an expected call of DescribeModelCardRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeModelCardRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeModelCardRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeModelCardRequest), arg0) +} + +// DescribeModelCardWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeModelCardWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeModelCardInput, arg2 ...request.Option) (*sagemaker.DescribeModelCardOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeModelCardWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeModelCardOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeModelCardWithContext indicates an expected call of DescribeModelCardWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeModelCardWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeModelCardWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeModelCardWithContext), varargs...) +} + +// DescribeModelExplainabilityJobDefinition mocks base method. +func (m *MockSageMakerAPI) DescribeModelExplainabilityJobDefinition(arg0 *sagemaker.DescribeModelExplainabilityJobDefinitionInput) (*sagemaker.DescribeModelExplainabilityJobDefinitionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeModelExplainabilityJobDefinition", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeModelExplainabilityJobDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeModelExplainabilityJobDefinition indicates an expected call of DescribeModelExplainabilityJobDefinition. +func (mr *MockSageMakerAPIMockRecorder) DescribeModelExplainabilityJobDefinition(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeModelExplainabilityJobDefinition", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeModelExplainabilityJobDefinition), arg0) +} + +// DescribeModelExplainabilityJobDefinitionRequest mocks base method. +func (m *MockSageMakerAPI) DescribeModelExplainabilityJobDefinitionRequest(arg0 *sagemaker.DescribeModelExplainabilityJobDefinitionInput) (*request.Request, *sagemaker.DescribeModelExplainabilityJobDefinitionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeModelExplainabilityJobDefinitionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeModelExplainabilityJobDefinitionOutput) + return ret0, ret1 +} + +// DescribeModelExplainabilityJobDefinitionRequest indicates an expected call of DescribeModelExplainabilityJobDefinitionRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeModelExplainabilityJobDefinitionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeModelExplainabilityJobDefinitionRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeModelExplainabilityJobDefinitionRequest), arg0) +} + +// DescribeModelExplainabilityJobDefinitionWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeModelExplainabilityJobDefinitionWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeModelExplainabilityJobDefinitionInput, arg2 ...request.Option) (*sagemaker.DescribeModelExplainabilityJobDefinitionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeModelExplainabilityJobDefinitionWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeModelExplainabilityJobDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeModelExplainabilityJobDefinitionWithContext indicates an expected call of DescribeModelExplainabilityJobDefinitionWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeModelExplainabilityJobDefinitionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeModelExplainabilityJobDefinitionWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeModelExplainabilityJobDefinitionWithContext), varargs...) +} + +// DescribeModelPackage mocks base method. +func (m *MockSageMakerAPI) DescribeModelPackage(arg0 *sagemaker.DescribeModelPackageInput) (*sagemaker.DescribeModelPackageOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeModelPackage", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeModelPackageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeModelPackage indicates an expected call of DescribeModelPackage. +func (mr *MockSageMakerAPIMockRecorder) DescribeModelPackage(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeModelPackage", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeModelPackage), arg0) +} + +// DescribeModelPackageGroup mocks base method. +func (m *MockSageMakerAPI) DescribeModelPackageGroup(arg0 *sagemaker.DescribeModelPackageGroupInput) (*sagemaker.DescribeModelPackageGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeModelPackageGroup", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeModelPackageGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeModelPackageGroup indicates an expected call of DescribeModelPackageGroup. +func (mr *MockSageMakerAPIMockRecorder) DescribeModelPackageGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeModelPackageGroup", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeModelPackageGroup), arg0) +} + +// DescribeModelPackageGroupRequest mocks base method. +func (m *MockSageMakerAPI) DescribeModelPackageGroupRequest(arg0 *sagemaker.DescribeModelPackageGroupInput) (*request.Request, *sagemaker.DescribeModelPackageGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeModelPackageGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeModelPackageGroupOutput) + return ret0, ret1 +} + +// DescribeModelPackageGroupRequest indicates an expected call of DescribeModelPackageGroupRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeModelPackageGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeModelPackageGroupRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeModelPackageGroupRequest), arg0) +} + +// DescribeModelPackageGroupWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeModelPackageGroupWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeModelPackageGroupInput, arg2 ...request.Option) (*sagemaker.DescribeModelPackageGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeModelPackageGroupWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeModelPackageGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeModelPackageGroupWithContext indicates an expected call of DescribeModelPackageGroupWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeModelPackageGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeModelPackageGroupWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeModelPackageGroupWithContext), varargs...) +} + +// DescribeModelPackageRequest mocks base method. +func (m *MockSageMakerAPI) DescribeModelPackageRequest(arg0 *sagemaker.DescribeModelPackageInput) (*request.Request, *sagemaker.DescribeModelPackageOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeModelPackageRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeModelPackageOutput) + return ret0, ret1 +} + +// DescribeModelPackageRequest indicates an expected call of DescribeModelPackageRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeModelPackageRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeModelPackageRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeModelPackageRequest), arg0) +} + +// DescribeModelPackageWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeModelPackageWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeModelPackageInput, arg2 ...request.Option) (*sagemaker.DescribeModelPackageOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeModelPackageWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeModelPackageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeModelPackageWithContext indicates an expected call of DescribeModelPackageWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeModelPackageWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeModelPackageWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeModelPackageWithContext), varargs...) +} + +// DescribeModelQualityJobDefinition mocks base method. +func (m *MockSageMakerAPI) DescribeModelQualityJobDefinition(arg0 *sagemaker.DescribeModelQualityJobDefinitionInput) (*sagemaker.DescribeModelQualityJobDefinitionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeModelQualityJobDefinition", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeModelQualityJobDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeModelQualityJobDefinition indicates an expected call of DescribeModelQualityJobDefinition. +func (mr *MockSageMakerAPIMockRecorder) DescribeModelQualityJobDefinition(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeModelQualityJobDefinition", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeModelQualityJobDefinition), arg0) +} + +// DescribeModelQualityJobDefinitionRequest mocks base method. +func (m *MockSageMakerAPI) DescribeModelQualityJobDefinitionRequest(arg0 *sagemaker.DescribeModelQualityJobDefinitionInput) (*request.Request, *sagemaker.DescribeModelQualityJobDefinitionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeModelQualityJobDefinitionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeModelQualityJobDefinitionOutput) + return ret0, ret1 +} + +// DescribeModelQualityJobDefinitionRequest indicates an expected call of DescribeModelQualityJobDefinitionRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeModelQualityJobDefinitionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeModelQualityJobDefinitionRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeModelQualityJobDefinitionRequest), arg0) +} + +// DescribeModelQualityJobDefinitionWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeModelQualityJobDefinitionWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeModelQualityJobDefinitionInput, arg2 ...request.Option) (*sagemaker.DescribeModelQualityJobDefinitionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeModelQualityJobDefinitionWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeModelQualityJobDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeModelQualityJobDefinitionWithContext indicates an expected call of DescribeModelQualityJobDefinitionWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeModelQualityJobDefinitionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeModelQualityJobDefinitionWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeModelQualityJobDefinitionWithContext), varargs...) +} + +// DescribeModelRequest mocks base method. +func (m *MockSageMakerAPI) DescribeModelRequest(arg0 *sagemaker.DescribeModelInput) (*request.Request, *sagemaker.DescribeModelOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeModelRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeModelOutput) + return ret0, ret1 +} + +// DescribeModelRequest indicates an expected call of DescribeModelRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeModelRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeModelRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeModelRequest), arg0) +} + +// DescribeModelWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeModelWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeModelInput, arg2 ...request.Option) (*sagemaker.DescribeModelOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeModelWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeModelOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeModelWithContext indicates an expected call of DescribeModelWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeModelWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeModelWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeModelWithContext), varargs...) +} + +// DescribeMonitoringSchedule mocks base method. +func (m *MockSageMakerAPI) DescribeMonitoringSchedule(arg0 *sagemaker.DescribeMonitoringScheduleInput) (*sagemaker.DescribeMonitoringScheduleOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeMonitoringSchedule", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeMonitoringScheduleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeMonitoringSchedule indicates an expected call of DescribeMonitoringSchedule. +func (mr *MockSageMakerAPIMockRecorder) DescribeMonitoringSchedule(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeMonitoringSchedule", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeMonitoringSchedule), arg0) +} + +// DescribeMonitoringScheduleRequest mocks base method. +func (m *MockSageMakerAPI) DescribeMonitoringScheduleRequest(arg0 *sagemaker.DescribeMonitoringScheduleInput) (*request.Request, *sagemaker.DescribeMonitoringScheduleOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeMonitoringScheduleRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeMonitoringScheduleOutput) + return ret0, ret1 +} + +// DescribeMonitoringScheduleRequest indicates an expected call of DescribeMonitoringScheduleRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeMonitoringScheduleRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeMonitoringScheduleRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeMonitoringScheduleRequest), arg0) +} + +// DescribeMonitoringScheduleWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeMonitoringScheduleWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeMonitoringScheduleInput, arg2 ...request.Option) (*sagemaker.DescribeMonitoringScheduleOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeMonitoringScheduleWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeMonitoringScheduleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeMonitoringScheduleWithContext indicates an expected call of DescribeMonitoringScheduleWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeMonitoringScheduleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeMonitoringScheduleWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeMonitoringScheduleWithContext), varargs...) +} + +// DescribeNotebookInstance mocks base method. +func (m *MockSageMakerAPI) DescribeNotebookInstance(arg0 *sagemaker.DescribeNotebookInstanceInput) (*sagemaker.DescribeNotebookInstanceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeNotebookInstance", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeNotebookInstanceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeNotebookInstance indicates an expected call of DescribeNotebookInstance. +func (mr *MockSageMakerAPIMockRecorder) DescribeNotebookInstance(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeNotebookInstance", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeNotebookInstance), arg0) +} + +// DescribeNotebookInstanceLifecycleConfig mocks base method. +func (m *MockSageMakerAPI) DescribeNotebookInstanceLifecycleConfig(arg0 *sagemaker.DescribeNotebookInstanceLifecycleConfigInput) (*sagemaker.DescribeNotebookInstanceLifecycleConfigOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeNotebookInstanceLifecycleConfig", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeNotebookInstanceLifecycleConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeNotebookInstanceLifecycleConfig indicates an expected call of DescribeNotebookInstanceLifecycleConfig. +func (mr *MockSageMakerAPIMockRecorder) DescribeNotebookInstanceLifecycleConfig(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeNotebookInstanceLifecycleConfig", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeNotebookInstanceLifecycleConfig), arg0) +} + +// DescribeNotebookInstanceLifecycleConfigRequest mocks base method. +func (m *MockSageMakerAPI) DescribeNotebookInstanceLifecycleConfigRequest(arg0 *sagemaker.DescribeNotebookInstanceLifecycleConfigInput) (*request.Request, *sagemaker.DescribeNotebookInstanceLifecycleConfigOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeNotebookInstanceLifecycleConfigRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeNotebookInstanceLifecycleConfigOutput) + return ret0, ret1 +} + +// DescribeNotebookInstanceLifecycleConfigRequest indicates an expected call of DescribeNotebookInstanceLifecycleConfigRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeNotebookInstanceLifecycleConfigRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeNotebookInstanceLifecycleConfigRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeNotebookInstanceLifecycleConfigRequest), arg0) +} + +// DescribeNotebookInstanceLifecycleConfigWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeNotebookInstanceLifecycleConfigWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeNotebookInstanceLifecycleConfigInput, arg2 ...request.Option) (*sagemaker.DescribeNotebookInstanceLifecycleConfigOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeNotebookInstanceLifecycleConfigWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeNotebookInstanceLifecycleConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeNotebookInstanceLifecycleConfigWithContext indicates an expected call of DescribeNotebookInstanceLifecycleConfigWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeNotebookInstanceLifecycleConfigWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeNotebookInstanceLifecycleConfigWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeNotebookInstanceLifecycleConfigWithContext), varargs...) +} + +// DescribeNotebookInstanceRequest mocks base method. +func (m *MockSageMakerAPI) DescribeNotebookInstanceRequest(arg0 *sagemaker.DescribeNotebookInstanceInput) (*request.Request, *sagemaker.DescribeNotebookInstanceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeNotebookInstanceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeNotebookInstanceOutput) + return ret0, ret1 +} + +// DescribeNotebookInstanceRequest indicates an expected call of DescribeNotebookInstanceRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeNotebookInstanceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeNotebookInstanceRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeNotebookInstanceRequest), arg0) +} + +// DescribeNotebookInstanceWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeNotebookInstanceWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeNotebookInstanceInput, arg2 ...request.Option) (*sagemaker.DescribeNotebookInstanceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeNotebookInstanceWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeNotebookInstanceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeNotebookInstanceWithContext indicates an expected call of DescribeNotebookInstanceWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeNotebookInstanceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeNotebookInstanceWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeNotebookInstanceWithContext), varargs...) +} + +// DescribePipeline mocks base method. +func (m *MockSageMakerAPI) DescribePipeline(arg0 *sagemaker.DescribePipelineInput) (*sagemaker.DescribePipelineOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribePipeline", arg0) + ret0, _ := ret[0].(*sagemaker.DescribePipelineOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribePipeline indicates an expected call of DescribePipeline. +func (mr *MockSageMakerAPIMockRecorder) DescribePipeline(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribePipeline", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribePipeline), arg0) +} + +// DescribePipelineDefinitionForExecution mocks base method. +func (m *MockSageMakerAPI) DescribePipelineDefinitionForExecution(arg0 *sagemaker.DescribePipelineDefinitionForExecutionInput) (*sagemaker.DescribePipelineDefinitionForExecutionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribePipelineDefinitionForExecution", arg0) + ret0, _ := ret[0].(*sagemaker.DescribePipelineDefinitionForExecutionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribePipelineDefinitionForExecution indicates an expected call of DescribePipelineDefinitionForExecution. +func (mr *MockSageMakerAPIMockRecorder) DescribePipelineDefinitionForExecution(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribePipelineDefinitionForExecution", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribePipelineDefinitionForExecution), arg0) +} + +// DescribePipelineDefinitionForExecutionRequest mocks base method. +func (m *MockSageMakerAPI) DescribePipelineDefinitionForExecutionRequest(arg0 *sagemaker.DescribePipelineDefinitionForExecutionInput) (*request.Request, *sagemaker.DescribePipelineDefinitionForExecutionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribePipelineDefinitionForExecutionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribePipelineDefinitionForExecutionOutput) + return ret0, ret1 +} + +// DescribePipelineDefinitionForExecutionRequest indicates an expected call of DescribePipelineDefinitionForExecutionRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribePipelineDefinitionForExecutionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribePipelineDefinitionForExecutionRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribePipelineDefinitionForExecutionRequest), arg0) +} + +// DescribePipelineDefinitionForExecutionWithContext mocks base method. +func (m *MockSageMakerAPI) DescribePipelineDefinitionForExecutionWithContext(arg0 aws.Context, arg1 *sagemaker.DescribePipelineDefinitionForExecutionInput, arg2 ...request.Option) (*sagemaker.DescribePipelineDefinitionForExecutionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribePipelineDefinitionForExecutionWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribePipelineDefinitionForExecutionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribePipelineDefinitionForExecutionWithContext indicates an expected call of DescribePipelineDefinitionForExecutionWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribePipelineDefinitionForExecutionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribePipelineDefinitionForExecutionWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribePipelineDefinitionForExecutionWithContext), varargs...) +} + +// DescribePipelineExecution mocks base method. +func (m *MockSageMakerAPI) DescribePipelineExecution(arg0 *sagemaker.DescribePipelineExecutionInput) (*sagemaker.DescribePipelineExecutionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribePipelineExecution", arg0) + ret0, _ := ret[0].(*sagemaker.DescribePipelineExecutionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribePipelineExecution indicates an expected call of DescribePipelineExecution. +func (mr *MockSageMakerAPIMockRecorder) DescribePipelineExecution(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribePipelineExecution", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribePipelineExecution), arg0) +} + +// DescribePipelineExecutionRequest mocks base method. +func (m *MockSageMakerAPI) DescribePipelineExecutionRequest(arg0 *sagemaker.DescribePipelineExecutionInput) (*request.Request, *sagemaker.DescribePipelineExecutionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribePipelineExecutionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribePipelineExecutionOutput) + return ret0, ret1 +} + +// DescribePipelineExecutionRequest indicates an expected call of DescribePipelineExecutionRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribePipelineExecutionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribePipelineExecutionRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribePipelineExecutionRequest), arg0) +} + +// DescribePipelineExecutionWithContext mocks base method. +func (m *MockSageMakerAPI) DescribePipelineExecutionWithContext(arg0 aws.Context, arg1 *sagemaker.DescribePipelineExecutionInput, arg2 ...request.Option) (*sagemaker.DescribePipelineExecutionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribePipelineExecutionWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribePipelineExecutionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribePipelineExecutionWithContext indicates an expected call of DescribePipelineExecutionWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribePipelineExecutionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribePipelineExecutionWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribePipelineExecutionWithContext), varargs...) +} + +// DescribePipelineRequest mocks base method. +func (m *MockSageMakerAPI) DescribePipelineRequest(arg0 *sagemaker.DescribePipelineInput) (*request.Request, *sagemaker.DescribePipelineOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribePipelineRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribePipelineOutput) + return ret0, ret1 +} + +// DescribePipelineRequest indicates an expected call of DescribePipelineRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribePipelineRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribePipelineRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribePipelineRequest), arg0) +} + +// DescribePipelineWithContext mocks base method. +func (m *MockSageMakerAPI) DescribePipelineWithContext(arg0 aws.Context, arg1 *sagemaker.DescribePipelineInput, arg2 ...request.Option) (*sagemaker.DescribePipelineOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribePipelineWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribePipelineOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribePipelineWithContext indicates an expected call of DescribePipelineWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribePipelineWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribePipelineWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribePipelineWithContext), varargs...) +} + +// DescribeProcessingJob mocks base method. +func (m *MockSageMakerAPI) DescribeProcessingJob(arg0 *sagemaker.DescribeProcessingJobInput) (*sagemaker.DescribeProcessingJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeProcessingJob", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeProcessingJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeProcessingJob indicates an expected call of DescribeProcessingJob. +func (mr *MockSageMakerAPIMockRecorder) DescribeProcessingJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeProcessingJob", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeProcessingJob), arg0) +} + +// DescribeProcessingJobRequest mocks base method. +func (m *MockSageMakerAPI) DescribeProcessingJobRequest(arg0 *sagemaker.DescribeProcessingJobInput) (*request.Request, *sagemaker.DescribeProcessingJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeProcessingJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeProcessingJobOutput) + return ret0, ret1 +} + +// DescribeProcessingJobRequest indicates an expected call of DescribeProcessingJobRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeProcessingJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeProcessingJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeProcessingJobRequest), arg0) +} + +// DescribeProcessingJobWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeProcessingJobWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeProcessingJobInput, arg2 ...request.Option) (*sagemaker.DescribeProcessingJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeProcessingJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeProcessingJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeProcessingJobWithContext indicates an expected call of DescribeProcessingJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeProcessingJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeProcessingJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeProcessingJobWithContext), varargs...) +} + +// DescribeProject mocks base method. +func (m *MockSageMakerAPI) DescribeProject(arg0 *sagemaker.DescribeProjectInput) (*sagemaker.DescribeProjectOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeProject", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeProjectOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeProject indicates an expected call of DescribeProject. +func (mr *MockSageMakerAPIMockRecorder) DescribeProject(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeProject", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeProject), arg0) +} + +// DescribeProjectRequest mocks base method. +func (m *MockSageMakerAPI) DescribeProjectRequest(arg0 *sagemaker.DescribeProjectInput) (*request.Request, *sagemaker.DescribeProjectOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeProjectRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeProjectOutput) + return ret0, ret1 +} + +// DescribeProjectRequest indicates an expected call of DescribeProjectRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeProjectRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeProjectRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeProjectRequest), arg0) +} + +// DescribeProjectWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeProjectWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeProjectInput, arg2 ...request.Option) (*sagemaker.DescribeProjectOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeProjectWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeProjectOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeProjectWithContext indicates an expected call of DescribeProjectWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeProjectWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeProjectWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeProjectWithContext), varargs...) +} + +// DescribeSpace mocks base method. +func (m *MockSageMakerAPI) DescribeSpace(arg0 *sagemaker.DescribeSpaceInput) (*sagemaker.DescribeSpaceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeSpace", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeSpaceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeSpace indicates an expected call of DescribeSpace. +func (mr *MockSageMakerAPIMockRecorder) DescribeSpace(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeSpace", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeSpace), arg0) +} + +// DescribeSpaceRequest mocks base method. +func (m *MockSageMakerAPI) DescribeSpaceRequest(arg0 *sagemaker.DescribeSpaceInput) (*request.Request, *sagemaker.DescribeSpaceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeSpaceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeSpaceOutput) + return ret0, ret1 +} + +// DescribeSpaceRequest indicates an expected call of DescribeSpaceRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeSpaceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeSpaceRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeSpaceRequest), arg0) +} + +// DescribeSpaceWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeSpaceWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeSpaceInput, arg2 ...request.Option) (*sagemaker.DescribeSpaceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeSpaceWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeSpaceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeSpaceWithContext indicates an expected call of DescribeSpaceWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeSpaceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeSpaceWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeSpaceWithContext), varargs...) +} + +// DescribeStudioLifecycleConfig mocks base method. +func (m *MockSageMakerAPI) DescribeStudioLifecycleConfig(arg0 *sagemaker.DescribeStudioLifecycleConfigInput) (*sagemaker.DescribeStudioLifecycleConfigOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeStudioLifecycleConfig", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeStudioLifecycleConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeStudioLifecycleConfig indicates an expected call of DescribeStudioLifecycleConfig. +func (mr *MockSageMakerAPIMockRecorder) DescribeStudioLifecycleConfig(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeStudioLifecycleConfig", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeStudioLifecycleConfig), arg0) +} + +// DescribeStudioLifecycleConfigRequest mocks base method. +func (m *MockSageMakerAPI) DescribeStudioLifecycleConfigRequest(arg0 *sagemaker.DescribeStudioLifecycleConfigInput) (*request.Request, *sagemaker.DescribeStudioLifecycleConfigOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeStudioLifecycleConfigRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeStudioLifecycleConfigOutput) + return ret0, ret1 +} + +// DescribeStudioLifecycleConfigRequest indicates an expected call of DescribeStudioLifecycleConfigRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeStudioLifecycleConfigRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeStudioLifecycleConfigRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeStudioLifecycleConfigRequest), arg0) +} + +// DescribeStudioLifecycleConfigWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeStudioLifecycleConfigWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeStudioLifecycleConfigInput, arg2 ...request.Option) (*sagemaker.DescribeStudioLifecycleConfigOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeStudioLifecycleConfigWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeStudioLifecycleConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeStudioLifecycleConfigWithContext indicates an expected call of DescribeStudioLifecycleConfigWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeStudioLifecycleConfigWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeStudioLifecycleConfigWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeStudioLifecycleConfigWithContext), varargs...) +} + +// DescribeSubscribedWorkteam mocks base method. +func (m *MockSageMakerAPI) DescribeSubscribedWorkteam(arg0 *sagemaker.DescribeSubscribedWorkteamInput) (*sagemaker.DescribeSubscribedWorkteamOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeSubscribedWorkteam", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeSubscribedWorkteamOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeSubscribedWorkteam indicates an expected call of DescribeSubscribedWorkteam. +func (mr *MockSageMakerAPIMockRecorder) DescribeSubscribedWorkteam(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeSubscribedWorkteam", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeSubscribedWorkteam), arg0) +} + +// DescribeSubscribedWorkteamRequest mocks base method. +func (m *MockSageMakerAPI) DescribeSubscribedWorkteamRequest(arg0 *sagemaker.DescribeSubscribedWorkteamInput) (*request.Request, *sagemaker.DescribeSubscribedWorkteamOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeSubscribedWorkteamRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeSubscribedWorkteamOutput) + return ret0, ret1 +} + +// DescribeSubscribedWorkteamRequest indicates an expected call of DescribeSubscribedWorkteamRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeSubscribedWorkteamRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeSubscribedWorkteamRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeSubscribedWorkteamRequest), arg0) +} + +// DescribeSubscribedWorkteamWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeSubscribedWorkteamWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeSubscribedWorkteamInput, arg2 ...request.Option) (*sagemaker.DescribeSubscribedWorkteamOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeSubscribedWorkteamWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeSubscribedWorkteamOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeSubscribedWorkteamWithContext indicates an expected call of DescribeSubscribedWorkteamWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeSubscribedWorkteamWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeSubscribedWorkteamWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeSubscribedWorkteamWithContext), varargs...) +} + +// DescribeTrainingJob mocks base method. +func (m *MockSageMakerAPI) DescribeTrainingJob(arg0 *sagemaker.DescribeTrainingJobInput) (*sagemaker.DescribeTrainingJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTrainingJob", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeTrainingJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTrainingJob indicates an expected call of DescribeTrainingJob. +func (mr *MockSageMakerAPIMockRecorder) DescribeTrainingJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTrainingJob", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeTrainingJob), arg0) +} + +// DescribeTrainingJobRequest mocks base method. +func (m *MockSageMakerAPI) DescribeTrainingJobRequest(arg0 *sagemaker.DescribeTrainingJobInput) (*request.Request, *sagemaker.DescribeTrainingJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTrainingJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeTrainingJobOutput) + return ret0, ret1 +} + +// DescribeTrainingJobRequest indicates an expected call of DescribeTrainingJobRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeTrainingJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTrainingJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeTrainingJobRequest), arg0) +} + +// DescribeTrainingJobWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeTrainingJobWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeTrainingJobInput, arg2 ...request.Option) (*sagemaker.DescribeTrainingJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeTrainingJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeTrainingJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTrainingJobWithContext indicates an expected call of DescribeTrainingJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeTrainingJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTrainingJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeTrainingJobWithContext), varargs...) +} + +// DescribeTransformJob mocks base method. +func (m *MockSageMakerAPI) DescribeTransformJob(arg0 *sagemaker.DescribeTransformJobInput) (*sagemaker.DescribeTransformJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTransformJob", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeTransformJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTransformJob indicates an expected call of DescribeTransformJob. +func (mr *MockSageMakerAPIMockRecorder) DescribeTransformJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTransformJob", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeTransformJob), arg0) +} + +// DescribeTransformJobRequest mocks base method. +func (m *MockSageMakerAPI) DescribeTransformJobRequest(arg0 *sagemaker.DescribeTransformJobInput) (*request.Request, *sagemaker.DescribeTransformJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTransformJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeTransformJobOutput) + return ret0, ret1 +} + +// DescribeTransformJobRequest indicates an expected call of DescribeTransformJobRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeTransformJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTransformJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeTransformJobRequest), arg0) +} + +// DescribeTransformJobWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeTransformJobWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeTransformJobInput, arg2 ...request.Option) (*sagemaker.DescribeTransformJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeTransformJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeTransformJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTransformJobWithContext indicates an expected call of DescribeTransformJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeTransformJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTransformJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeTransformJobWithContext), varargs...) +} + +// DescribeTrial mocks base method. +func (m *MockSageMakerAPI) DescribeTrial(arg0 *sagemaker.DescribeTrialInput) (*sagemaker.DescribeTrialOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTrial", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeTrialOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTrial indicates an expected call of DescribeTrial. +func (mr *MockSageMakerAPIMockRecorder) DescribeTrial(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTrial", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeTrial), arg0) +} + +// DescribeTrialComponent mocks base method. +func (m *MockSageMakerAPI) DescribeTrialComponent(arg0 *sagemaker.DescribeTrialComponentInput) (*sagemaker.DescribeTrialComponentOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTrialComponent", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeTrialComponentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTrialComponent indicates an expected call of DescribeTrialComponent. +func (mr *MockSageMakerAPIMockRecorder) DescribeTrialComponent(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTrialComponent", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeTrialComponent), arg0) +} + +// DescribeTrialComponentRequest mocks base method. +func (m *MockSageMakerAPI) DescribeTrialComponentRequest(arg0 *sagemaker.DescribeTrialComponentInput) (*request.Request, *sagemaker.DescribeTrialComponentOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTrialComponentRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeTrialComponentOutput) + return ret0, ret1 +} + +// DescribeTrialComponentRequest indicates an expected call of DescribeTrialComponentRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeTrialComponentRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTrialComponentRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeTrialComponentRequest), arg0) +} + +// DescribeTrialComponentWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeTrialComponentWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeTrialComponentInput, arg2 ...request.Option) (*sagemaker.DescribeTrialComponentOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeTrialComponentWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeTrialComponentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTrialComponentWithContext indicates an expected call of DescribeTrialComponentWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeTrialComponentWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTrialComponentWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeTrialComponentWithContext), varargs...) +} + +// DescribeTrialRequest mocks base method. +func (m *MockSageMakerAPI) DescribeTrialRequest(arg0 *sagemaker.DescribeTrialInput) (*request.Request, *sagemaker.DescribeTrialOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTrialRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeTrialOutput) + return ret0, ret1 +} + +// DescribeTrialRequest indicates an expected call of DescribeTrialRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeTrialRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTrialRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeTrialRequest), arg0) +} + +// DescribeTrialWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeTrialWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeTrialInput, arg2 ...request.Option) (*sagemaker.DescribeTrialOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeTrialWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeTrialOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTrialWithContext indicates an expected call of DescribeTrialWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeTrialWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTrialWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeTrialWithContext), varargs...) +} + +// DescribeUserProfile mocks base method. +func (m *MockSageMakerAPI) DescribeUserProfile(arg0 *sagemaker.DescribeUserProfileInput) (*sagemaker.DescribeUserProfileOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeUserProfile", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeUserProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeUserProfile indicates an expected call of DescribeUserProfile. +func (mr *MockSageMakerAPIMockRecorder) DescribeUserProfile(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeUserProfile", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeUserProfile), arg0) +} + +// DescribeUserProfileRequest mocks base method. +func (m *MockSageMakerAPI) DescribeUserProfileRequest(arg0 *sagemaker.DescribeUserProfileInput) (*request.Request, *sagemaker.DescribeUserProfileOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeUserProfileRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeUserProfileOutput) + return ret0, ret1 +} + +// DescribeUserProfileRequest indicates an expected call of DescribeUserProfileRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeUserProfileRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeUserProfileRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeUserProfileRequest), arg0) +} + +// DescribeUserProfileWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeUserProfileWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeUserProfileInput, arg2 ...request.Option) (*sagemaker.DescribeUserProfileOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeUserProfileWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeUserProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeUserProfileWithContext indicates an expected call of DescribeUserProfileWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeUserProfileWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeUserProfileWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeUserProfileWithContext), varargs...) +} + +// DescribeWorkforce mocks base method. +func (m *MockSageMakerAPI) DescribeWorkforce(arg0 *sagemaker.DescribeWorkforceInput) (*sagemaker.DescribeWorkforceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeWorkforce", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeWorkforceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeWorkforce indicates an expected call of DescribeWorkforce. +func (mr *MockSageMakerAPIMockRecorder) DescribeWorkforce(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeWorkforce", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeWorkforce), arg0) +} + +// DescribeWorkforceRequest mocks base method. +func (m *MockSageMakerAPI) DescribeWorkforceRequest(arg0 *sagemaker.DescribeWorkforceInput) (*request.Request, *sagemaker.DescribeWorkforceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeWorkforceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeWorkforceOutput) + return ret0, ret1 +} + +// DescribeWorkforceRequest indicates an expected call of DescribeWorkforceRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeWorkforceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeWorkforceRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeWorkforceRequest), arg0) +} + +// DescribeWorkforceWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeWorkforceWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeWorkforceInput, arg2 ...request.Option) (*sagemaker.DescribeWorkforceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeWorkforceWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeWorkforceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeWorkforceWithContext indicates an expected call of DescribeWorkforceWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeWorkforceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeWorkforceWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeWorkforceWithContext), varargs...) +} + +// DescribeWorkteam mocks base method. +func (m *MockSageMakerAPI) DescribeWorkteam(arg0 *sagemaker.DescribeWorkteamInput) (*sagemaker.DescribeWorkteamOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeWorkteam", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeWorkteamOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeWorkteam indicates an expected call of DescribeWorkteam. +func (mr *MockSageMakerAPIMockRecorder) DescribeWorkteam(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeWorkteam", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeWorkteam), arg0) +} + +// DescribeWorkteamRequest mocks base method. +func (m *MockSageMakerAPI) DescribeWorkteamRequest(arg0 *sagemaker.DescribeWorkteamInput) (*request.Request, *sagemaker.DescribeWorkteamOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeWorkteamRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeWorkteamOutput) + return ret0, ret1 +} + +// DescribeWorkteamRequest indicates an expected call of DescribeWorkteamRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeWorkteamRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeWorkteamRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeWorkteamRequest), arg0) +} + +// DescribeWorkteamWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeWorkteamWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeWorkteamInput, arg2 ...request.Option) (*sagemaker.DescribeWorkteamOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeWorkteamWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeWorkteamOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeWorkteamWithContext indicates an expected call of DescribeWorkteamWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeWorkteamWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeWorkteamWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeWorkteamWithContext), varargs...) +} + +// DisableSagemakerServicecatalogPortfolio mocks base method. +func (m *MockSageMakerAPI) DisableSagemakerServicecatalogPortfolio(arg0 *sagemaker.DisableSagemakerServicecatalogPortfolioInput) (*sagemaker.DisableSagemakerServicecatalogPortfolioOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DisableSagemakerServicecatalogPortfolio", arg0) + ret0, _ := ret[0].(*sagemaker.DisableSagemakerServicecatalogPortfolioOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DisableSagemakerServicecatalogPortfolio indicates an expected call of DisableSagemakerServicecatalogPortfolio. +func (mr *MockSageMakerAPIMockRecorder) DisableSagemakerServicecatalogPortfolio(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisableSagemakerServicecatalogPortfolio", reflect.TypeOf((*MockSageMakerAPI)(nil).DisableSagemakerServicecatalogPortfolio), arg0) +} + +// DisableSagemakerServicecatalogPortfolioRequest mocks base method. +func (m *MockSageMakerAPI) DisableSagemakerServicecatalogPortfolioRequest(arg0 *sagemaker.DisableSagemakerServicecatalogPortfolioInput) (*request.Request, *sagemaker.DisableSagemakerServicecatalogPortfolioOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DisableSagemakerServicecatalogPortfolioRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DisableSagemakerServicecatalogPortfolioOutput) + return ret0, ret1 +} + +// DisableSagemakerServicecatalogPortfolioRequest indicates an expected call of DisableSagemakerServicecatalogPortfolioRequest. +func (mr *MockSageMakerAPIMockRecorder) DisableSagemakerServicecatalogPortfolioRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisableSagemakerServicecatalogPortfolioRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DisableSagemakerServicecatalogPortfolioRequest), arg0) +} + +// DisableSagemakerServicecatalogPortfolioWithContext mocks base method. +func (m *MockSageMakerAPI) DisableSagemakerServicecatalogPortfolioWithContext(arg0 aws.Context, arg1 *sagemaker.DisableSagemakerServicecatalogPortfolioInput, arg2 ...request.Option) (*sagemaker.DisableSagemakerServicecatalogPortfolioOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DisableSagemakerServicecatalogPortfolioWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DisableSagemakerServicecatalogPortfolioOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DisableSagemakerServicecatalogPortfolioWithContext indicates an expected call of DisableSagemakerServicecatalogPortfolioWithContext. +func (mr *MockSageMakerAPIMockRecorder) DisableSagemakerServicecatalogPortfolioWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisableSagemakerServicecatalogPortfolioWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DisableSagemakerServicecatalogPortfolioWithContext), varargs...) +} + +// DisassociateTrialComponent mocks base method. +func (m *MockSageMakerAPI) DisassociateTrialComponent(arg0 *sagemaker.DisassociateTrialComponentInput) (*sagemaker.DisassociateTrialComponentOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DisassociateTrialComponent", arg0) + ret0, _ := ret[0].(*sagemaker.DisassociateTrialComponentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DisassociateTrialComponent indicates an expected call of DisassociateTrialComponent. +func (mr *MockSageMakerAPIMockRecorder) DisassociateTrialComponent(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisassociateTrialComponent", reflect.TypeOf((*MockSageMakerAPI)(nil).DisassociateTrialComponent), arg0) +} + +// DisassociateTrialComponentRequest mocks base method. +func (m *MockSageMakerAPI) DisassociateTrialComponentRequest(arg0 *sagemaker.DisassociateTrialComponentInput) (*request.Request, *sagemaker.DisassociateTrialComponentOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DisassociateTrialComponentRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DisassociateTrialComponentOutput) + return ret0, ret1 +} + +// DisassociateTrialComponentRequest indicates an expected call of DisassociateTrialComponentRequest. +func (mr *MockSageMakerAPIMockRecorder) DisassociateTrialComponentRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisassociateTrialComponentRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DisassociateTrialComponentRequest), arg0) +} + +// DisassociateTrialComponentWithContext mocks base method. +func (m *MockSageMakerAPI) DisassociateTrialComponentWithContext(arg0 aws.Context, arg1 *sagemaker.DisassociateTrialComponentInput, arg2 ...request.Option) (*sagemaker.DisassociateTrialComponentOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DisassociateTrialComponentWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DisassociateTrialComponentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DisassociateTrialComponentWithContext indicates an expected call of DisassociateTrialComponentWithContext. +func (mr *MockSageMakerAPIMockRecorder) DisassociateTrialComponentWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisassociateTrialComponentWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DisassociateTrialComponentWithContext), varargs...) +} + +// EnableSagemakerServicecatalogPortfolio mocks base method. +func (m *MockSageMakerAPI) EnableSagemakerServicecatalogPortfolio(arg0 *sagemaker.EnableSagemakerServicecatalogPortfolioInput) (*sagemaker.EnableSagemakerServicecatalogPortfolioOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "EnableSagemakerServicecatalogPortfolio", arg0) + ret0, _ := ret[0].(*sagemaker.EnableSagemakerServicecatalogPortfolioOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// EnableSagemakerServicecatalogPortfolio indicates an expected call of EnableSagemakerServicecatalogPortfolio. +func (mr *MockSageMakerAPIMockRecorder) EnableSagemakerServicecatalogPortfolio(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnableSagemakerServicecatalogPortfolio", reflect.TypeOf((*MockSageMakerAPI)(nil).EnableSagemakerServicecatalogPortfolio), arg0) +} + +// EnableSagemakerServicecatalogPortfolioRequest mocks base method. +func (m *MockSageMakerAPI) EnableSagemakerServicecatalogPortfolioRequest(arg0 *sagemaker.EnableSagemakerServicecatalogPortfolioInput) (*request.Request, *sagemaker.EnableSagemakerServicecatalogPortfolioOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "EnableSagemakerServicecatalogPortfolioRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.EnableSagemakerServicecatalogPortfolioOutput) + return ret0, ret1 +} + +// EnableSagemakerServicecatalogPortfolioRequest indicates an expected call of EnableSagemakerServicecatalogPortfolioRequest. +func (mr *MockSageMakerAPIMockRecorder) EnableSagemakerServicecatalogPortfolioRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnableSagemakerServicecatalogPortfolioRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).EnableSagemakerServicecatalogPortfolioRequest), arg0) +} + +// EnableSagemakerServicecatalogPortfolioWithContext mocks base method. +func (m *MockSageMakerAPI) EnableSagemakerServicecatalogPortfolioWithContext(arg0 aws.Context, arg1 *sagemaker.EnableSagemakerServicecatalogPortfolioInput, arg2 ...request.Option) (*sagemaker.EnableSagemakerServicecatalogPortfolioOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "EnableSagemakerServicecatalogPortfolioWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.EnableSagemakerServicecatalogPortfolioOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// EnableSagemakerServicecatalogPortfolioWithContext indicates an expected call of EnableSagemakerServicecatalogPortfolioWithContext. +func (mr *MockSageMakerAPIMockRecorder) EnableSagemakerServicecatalogPortfolioWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnableSagemakerServicecatalogPortfolioWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).EnableSagemakerServicecatalogPortfolioWithContext), varargs...) +} + +// GetDeviceFleetReport mocks base method. +func (m *MockSageMakerAPI) GetDeviceFleetReport(arg0 *sagemaker.GetDeviceFleetReportInput) (*sagemaker.GetDeviceFleetReportOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetDeviceFleetReport", arg0) + ret0, _ := ret[0].(*sagemaker.GetDeviceFleetReportOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetDeviceFleetReport indicates an expected call of GetDeviceFleetReport. +func (mr *MockSageMakerAPIMockRecorder) GetDeviceFleetReport(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDeviceFleetReport", reflect.TypeOf((*MockSageMakerAPI)(nil).GetDeviceFleetReport), arg0) +} + +// GetDeviceFleetReportRequest mocks base method. +func (m *MockSageMakerAPI) GetDeviceFleetReportRequest(arg0 *sagemaker.GetDeviceFleetReportInput) (*request.Request, *sagemaker.GetDeviceFleetReportOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetDeviceFleetReportRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.GetDeviceFleetReportOutput) + return ret0, ret1 +} + +// GetDeviceFleetReportRequest indicates an expected call of GetDeviceFleetReportRequest. +func (mr *MockSageMakerAPIMockRecorder) GetDeviceFleetReportRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDeviceFleetReportRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).GetDeviceFleetReportRequest), arg0) +} + +// GetDeviceFleetReportWithContext mocks base method. +func (m *MockSageMakerAPI) GetDeviceFleetReportWithContext(arg0 aws.Context, arg1 *sagemaker.GetDeviceFleetReportInput, arg2 ...request.Option) (*sagemaker.GetDeviceFleetReportOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetDeviceFleetReportWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.GetDeviceFleetReportOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetDeviceFleetReportWithContext indicates an expected call of GetDeviceFleetReportWithContext. +func (mr *MockSageMakerAPIMockRecorder) GetDeviceFleetReportWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDeviceFleetReportWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).GetDeviceFleetReportWithContext), varargs...) +} + +// GetLineageGroupPolicy mocks base method. +func (m *MockSageMakerAPI) GetLineageGroupPolicy(arg0 *sagemaker.GetLineageGroupPolicyInput) (*sagemaker.GetLineageGroupPolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetLineageGroupPolicy", arg0) + ret0, _ := ret[0].(*sagemaker.GetLineageGroupPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetLineageGroupPolicy indicates an expected call of GetLineageGroupPolicy. +func (mr *MockSageMakerAPIMockRecorder) GetLineageGroupPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLineageGroupPolicy", reflect.TypeOf((*MockSageMakerAPI)(nil).GetLineageGroupPolicy), arg0) +} + +// GetLineageGroupPolicyRequest mocks base method. +func (m *MockSageMakerAPI) GetLineageGroupPolicyRequest(arg0 *sagemaker.GetLineageGroupPolicyInput) (*request.Request, *sagemaker.GetLineageGroupPolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetLineageGroupPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.GetLineageGroupPolicyOutput) + return ret0, ret1 +} + +// GetLineageGroupPolicyRequest indicates an expected call of GetLineageGroupPolicyRequest. +func (mr *MockSageMakerAPIMockRecorder) GetLineageGroupPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLineageGroupPolicyRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).GetLineageGroupPolicyRequest), arg0) +} + +// GetLineageGroupPolicyWithContext mocks base method. +func (m *MockSageMakerAPI) GetLineageGroupPolicyWithContext(arg0 aws.Context, arg1 *sagemaker.GetLineageGroupPolicyInput, arg2 ...request.Option) (*sagemaker.GetLineageGroupPolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetLineageGroupPolicyWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.GetLineageGroupPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetLineageGroupPolicyWithContext indicates an expected call of GetLineageGroupPolicyWithContext. +func (mr *MockSageMakerAPIMockRecorder) GetLineageGroupPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLineageGroupPolicyWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).GetLineageGroupPolicyWithContext), varargs...) +} + +// GetModelPackageGroupPolicy mocks base method. +func (m *MockSageMakerAPI) GetModelPackageGroupPolicy(arg0 *sagemaker.GetModelPackageGroupPolicyInput) (*sagemaker.GetModelPackageGroupPolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetModelPackageGroupPolicy", arg0) + ret0, _ := ret[0].(*sagemaker.GetModelPackageGroupPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetModelPackageGroupPolicy indicates an expected call of GetModelPackageGroupPolicy. +func (mr *MockSageMakerAPIMockRecorder) GetModelPackageGroupPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetModelPackageGroupPolicy", reflect.TypeOf((*MockSageMakerAPI)(nil).GetModelPackageGroupPolicy), arg0) +} + +// GetModelPackageGroupPolicyRequest mocks base method. +func (m *MockSageMakerAPI) GetModelPackageGroupPolicyRequest(arg0 *sagemaker.GetModelPackageGroupPolicyInput) (*request.Request, *sagemaker.GetModelPackageGroupPolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetModelPackageGroupPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.GetModelPackageGroupPolicyOutput) + return ret0, ret1 +} + +// GetModelPackageGroupPolicyRequest indicates an expected call of GetModelPackageGroupPolicyRequest. +func (mr *MockSageMakerAPIMockRecorder) GetModelPackageGroupPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetModelPackageGroupPolicyRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).GetModelPackageGroupPolicyRequest), arg0) +} + +// GetModelPackageGroupPolicyWithContext mocks base method. +func (m *MockSageMakerAPI) GetModelPackageGroupPolicyWithContext(arg0 aws.Context, arg1 *sagemaker.GetModelPackageGroupPolicyInput, arg2 ...request.Option) (*sagemaker.GetModelPackageGroupPolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetModelPackageGroupPolicyWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.GetModelPackageGroupPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetModelPackageGroupPolicyWithContext indicates an expected call of GetModelPackageGroupPolicyWithContext. +func (mr *MockSageMakerAPIMockRecorder) GetModelPackageGroupPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetModelPackageGroupPolicyWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).GetModelPackageGroupPolicyWithContext), varargs...) +} + +// GetSagemakerServicecatalogPortfolioStatus mocks base method. +func (m *MockSageMakerAPI) GetSagemakerServicecatalogPortfolioStatus(arg0 *sagemaker.GetSagemakerServicecatalogPortfolioStatusInput) (*sagemaker.GetSagemakerServicecatalogPortfolioStatusOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetSagemakerServicecatalogPortfolioStatus", arg0) + ret0, _ := ret[0].(*sagemaker.GetSagemakerServicecatalogPortfolioStatusOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetSagemakerServicecatalogPortfolioStatus indicates an expected call of GetSagemakerServicecatalogPortfolioStatus. +func (mr *MockSageMakerAPIMockRecorder) GetSagemakerServicecatalogPortfolioStatus(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSagemakerServicecatalogPortfolioStatus", reflect.TypeOf((*MockSageMakerAPI)(nil).GetSagemakerServicecatalogPortfolioStatus), arg0) +} + +// GetSagemakerServicecatalogPortfolioStatusRequest mocks base method. +func (m *MockSageMakerAPI) GetSagemakerServicecatalogPortfolioStatusRequest(arg0 *sagemaker.GetSagemakerServicecatalogPortfolioStatusInput) (*request.Request, *sagemaker.GetSagemakerServicecatalogPortfolioStatusOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetSagemakerServicecatalogPortfolioStatusRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.GetSagemakerServicecatalogPortfolioStatusOutput) + return ret0, ret1 +} + +// GetSagemakerServicecatalogPortfolioStatusRequest indicates an expected call of GetSagemakerServicecatalogPortfolioStatusRequest. +func (mr *MockSageMakerAPIMockRecorder) GetSagemakerServicecatalogPortfolioStatusRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSagemakerServicecatalogPortfolioStatusRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).GetSagemakerServicecatalogPortfolioStatusRequest), arg0) +} + +// GetSagemakerServicecatalogPortfolioStatusWithContext mocks base method. +func (m *MockSageMakerAPI) GetSagemakerServicecatalogPortfolioStatusWithContext(arg0 aws.Context, arg1 *sagemaker.GetSagemakerServicecatalogPortfolioStatusInput, arg2 ...request.Option) (*sagemaker.GetSagemakerServicecatalogPortfolioStatusOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetSagemakerServicecatalogPortfolioStatusWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.GetSagemakerServicecatalogPortfolioStatusOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetSagemakerServicecatalogPortfolioStatusWithContext indicates an expected call of GetSagemakerServicecatalogPortfolioStatusWithContext. +func (mr *MockSageMakerAPIMockRecorder) GetSagemakerServicecatalogPortfolioStatusWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSagemakerServicecatalogPortfolioStatusWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).GetSagemakerServicecatalogPortfolioStatusWithContext), varargs...) +} + +// GetScalingConfigurationRecommendation mocks base method. +func (m *MockSageMakerAPI) GetScalingConfigurationRecommendation(arg0 *sagemaker.GetScalingConfigurationRecommendationInput) (*sagemaker.GetScalingConfigurationRecommendationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetScalingConfigurationRecommendation", arg0) + ret0, _ := ret[0].(*sagemaker.GetScalingConfigurationRecommendationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetScalingConfigurationRecommendation indicates an expected call of GetScalingConfigurationRecommendation. +func (mr *MockSageMakerAPIMockRecorder) GetScalingConfigurationRecommendation(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetScalingConfigurationRecommendation", reflect.TypeOf((*MockSageMakerAPI)(nil).GetScalingConfigurationRecommendation), arg0) +} + +// GetScalingConfigurationRecommendationRequest mocks base method. +func (m *MockSageMakerAPI) GetScalingConfigurationRecommendationRequest(arg0 *sagemaker.GetScalingConfigurationRecommendationInput) (*request.Request, *sagemaker.GetScalingConfigurationRecommendationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetScalingConfigurationRecommendationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.GetScalingConfigurationRecommendationOutput) + return ret0, ret1 +} + +// GetScalingConfigurationRecommendationRequest indicates an expected call of GetScalingConfigurationRecommendationRequest. +func (mr *MockSageMakerAPIMockRecorder) GetScalingConfigurationRecommendationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetScalingConfigurationRecommendationRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).GetScalingConfigurationRecommendationRequest), arg0) +} + +// GetScalingConfigurationRecommendationWithContext mocks base method. +func (m *MockSageMakerAPI) GetScalingConfigurationRecommendationWithContext(arg0 aws.Context, arg1 *sagemaker.GetScalingConfigurationRecommendationInput, arg2 ...request.Option) (*sagemaker.GetScalingConfigurationRecommendationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetScalingConfigurationRecommendationWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.GetScalingConfigurationRecommendationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetScalingConfigurationRecommendationWithContext indicates an expected call of GetScalingConfigurationRecommendationWithContext. +func (mr *MockSageMakerAPIMockRecorder) GetScalingConfigurationRecommendationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetScalingConfigurationRecommendationWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).GetScalingConfigurationRecommendationWithContext), varargs...) +} + +// GetSearchSuggestions mocks base method. +func (m *MockSageMakerAPI) GetSearchSuggestions(arg0 *sagemaker.GetSearchSuggestionsInput) (*sagemaker.GetSearchSuggestionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetSearchSuggestions", arg0) + ret0, _ := ret[0].(*sagemaker.GetSearchSuggestionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetSearchSuggestions indicates an expected call of GetSearchSuggestions. +func (mr *MockSageMakerAPIMockRecorder) GetSearchSuggestions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSearchSuggestions", reflect.TypeOf((*MockSageMakerAPI)(nil).GetSearchSuggestions), arg0) +} + +// GetSearchSuggestionsRequest mocks base method. +func (m *MockSageMakerAPI) GetSearchSuggestionsRequest(arg0 *sagemaker.GetSearchSuggestionsInput) (*request.Request, *sagemaker.GetSearchSuggestionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetSearchSuggestionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.GetSearchSuggestionsOutput) + return ret0, ret1 +} + +// GetSearchSuggestionsRequest indicates an expected call of GetSearchSuggestionsRequest. +func (mr *MockSageMakerAPIMockRecorder) GetSearchSuggestionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSearchSuggestionsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).GetSearchSuggestionsRequest), arg0) +} + +// GetSearchSuggestionsWithContext mocks base method. +func (m *MockSageMakerAPI) GetSearchSuggestionsWithContext(arg0 aws.Context, arg1 *sagemaker.GetSearchSuggestionsInput, arg2 ...request.Option) (*sagemaker.GetSearchSuggestionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetSearchSuggestionsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.GetSearchSuggestionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetSearchSuggestionsWithContext indicates an expected call of GetSearchSuggestionsWithContext. +func (mr *MockSageMakerAPIMockRecorder) GetSearchSuggestionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSearchSuggestionsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).GetSearchSuggestionsWithContext), varargs...) +} + +// ImportHubContent mocks base method. +func (m *MockSageMakerAPI) ImportHubContent(arg0 *sagemaker.ImportHubContentInput) (*sagemaker.ImportHubContentOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ImportHubContent", arg0) + ret0, _ := ret[0].(*sagemaker.ImportHubContentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ImportHubContent indicates an expected call of ImportHubContent. +func (mr *MockSageMakerAPIMockRecorder) ImportHubContent(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImportHubContent", reflect.TypeOf((*MockSageMakerAPI)(nil).ImportHubContent), arg0) +} + +// ImportHubContentRequest mocks base method. +func (m *MockSageMakerAPI) ImportHubContentRequest(arg0 *sagemaker.ImportHubContentInput) (*request.Request, *sagemaker.ImportHubContentOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ImportHubContentRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ImportHubContentOutput) + return ret0, ret1 +} + +// ImportHubContentRequest indicates an expected call of ImportHubContentRequest. +func (mr *MockSageMakerAPIMockRecorder) ImportHubContentRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImportHubContentRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ImportHubContentRequest), arg0) +} + +// ImportHubContentWithContext mocks base method. +func (m *MockSageMakerAPI) ImportHubContentWithContext(arg0 aws.Context, arg1 *sagemaker.ImportHubContentInput, arg2 ...request.Option) (*sagemaker.ImportHubContentOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ImportHubContentWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ImportHubContentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ImportHubContentWithContext indicates an expected call of ImportHubContentWithContext. +func (mr *MockSageMakerAPIMockRecorder) ImportHubContentWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImportHubContentWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ImportHubContentWithContext), varargs...) +} + +// ListActions mocks base method. +func (m *MockSageMakerAPI) ListActions(arg0 *sagemaker.ListActionsInput) (*sagemaker.ListActionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListActions", arg0) + ret0, _ := ret[0].(*sagemaker.ListActionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListActions indicates an expected call of ListActions. +func (mr *MockSageMakerAPIMockRecorder) ListActions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListActions", reflect.TypeOf((*MockSageMakerAPI)(nil).ListActions), arg0) +} + +// ListActionsPages mocks base method. +func (m *MockSageMakerAPI) ListActionsPages(arg0 *sagemaker.ListActionsInput, arg1 func(*sagemaker.ListActionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListActionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListActionsPages indicates an expected call of ListActionsPages. +func (mr *MockSageMakerAPIMockRecorder) ListActionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListActionsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListActionsPages), arg0, arg1) +} + +// ListActionsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListActionsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListActionsInput, arg2 func(*sagemaker.ListActionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListActionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListActionsPagesWithContext indicates an expected call of ListActionsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListActionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListActionsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListActionsPagesWithContext), varargs...) +} + +// ListActionsRequest mocks base method. +func (m *MockSageMakerAPI) ListActionsRequest(arg0 *sagemaker.ListActionsInput) (*request.Request, *sagemaker.ListActionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListActionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListActionsOutput) + return ret0, ret1 +} + +// ListActionsRequest indicates an expected call of ListActionsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListActionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListActionsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListActionsRequest), arg0) +} + +// ListActionsWithContext mocks base method. +func (m *MockSageMakerAPI) ListActionsWithContext(arg0 aws.Context, arg1 *sagemaker.ListActionsInput, arg2 ...request.Option) (*sagemaker.ListActionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListActionsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListActionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListActionsWithContext indicates an expected call of ListActionsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListActionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListActionsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListActionsWithContext), varargs...) +} + +// ListAlgorithms mocks base method. +func (m *MockSageMakerAPI) ListAlgorithms(arg0 *sagemaker.ListAlgorithmsInput) (*sagemaker.ListAlgorithmsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAlgorithms", arg0) + ret0, _ := ret[0].(*sagemaker.ListAlgorithmsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAlgorithms indicates an expected call of ListAlgorithms. +func (mr *MockSageMakerAPIMockRecorder) ListAlgorithms(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAlgorithms", reflect.TypeOf((*MockSageMakerAPI)(nil).ListAlgorithms), arg0) +} + +// ListAlgorithmsPages mocks base method. +func (m *MockSageMakerAPI) ListAlgorithmsPages(arg0 *sagemaker.ListAlgorithmsInput, arg1 func(*sagemaker.ListAlgorithmsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAlgorithmsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListAlgorithmsPages indicates an expected call of ListAlgorithmsPages. +func (mr *MockSageMakerAPIMockRecorder) ListAlgorithmsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAlgorithmsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListAlgorithmsPages), arg0, arg1) +} + +// ListAlgorithmsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListAlgorithmsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListAlgorithmsInput, arg2 func(*sagemaker.ListAlgorithmsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAlgorithmsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListAlgorithmsPagesWithContext indicates an expected call of ListAlgorithmsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListAlgorithmsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAlgorithmsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListAlgorithmsPagesWithContext), varargs...) +} + +// ListAlgorithmsRequest mocks base method. +func (m *MockSageMakerAPI) ListAlgorithmsRequest(arg0 *sagemaker.ListAlgorithmsInput) (*request.Request, *sagemaker.ListAlgorithmsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAlgorithmsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListAlgorithmsOutput) + return ret0, ret1 +} + +// ListAlgorithmsRequest indicates an expected call of ListAlgorithmsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListAlgorithmsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAlgorithmsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListAlgorithmsRequest), arg0) +} + +// ListAlgorithmsWithContext mocks base method. +func (m *MockSageMakerAPI) ListAlgorithmsWithContext(arg0 aws.Context, arg1 *sagemaker.ListAlgorithmsInput, arg2 ...request.Option) (*sagemaker.ListAlgorithmsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAlgorithmsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListAlgorithmsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAlgorithmsWithContext indicates an expected call of ListAlgorithmsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListAlgorithmsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAlgorithmsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListAlgorithmsWithContext), varargs...) +} + +// ListAliases mocks base method. +func (m *MockSageMakerAPI) ListAliases(arg0 *sagemaker.ListAliasesInput) (*sagemaker.ListAliasesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAliases", arg0) + ret0, _ := ret[0].(*sagemaker.ListAliasesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAliases indicates an expected call of ListAliases. +func (mr *MockSageMakerAPIMockRecorder) ListAliases(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAliases", reflect.TypeOf((*MockSageMakerAPI)(nil).ListAliases), arg0) +} + +// ListAliasesPages mocks base method. +func (m *MockSageMakerAPI) ListAliasesPages(arg0 *sagemaker.ListAliasesInput, arg1 func(*sagemaker.ListAliasesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAliasesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListAliasesPages indicates an expected call of ListAliasesPages. +func (mr *MockSageMakerAPIMockRecorder) ListAliasesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAliasesPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListAliasesPages), arg0, arg1) +} + +// ListAliasesPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListAliasesPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListAliasesInput, arg2 func(*sagemaker.ListAliasesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAliasesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListAliasesPagesWithContext indicates an expected call of ListAliasesPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListAliasesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAliasesPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListAliasesPagesWithContext), varargs...) +} + +// ListAliasesRequest mocks base method. +func (m *MockSageMakerAPI) ListAliasesRequest(arg0 *sagemaker.ListAliasesInput) (*request.Request, *sagemaker.ListAliasesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAliasesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListAliasesOutput) + return ret0, ret1 +} + +// ListAliasesRequest indicates an expected call of ListAliasesRequest. +func (mr *MockSageMakerAPIMockRecorder) ListAliasesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAliasesRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListAliasesRequest), arg0) +} + +// ListAliasesWithContext mocks base method. +func (m *MockSageMakerAPI) ListAliasesWithContext(arg0 aws.Context, arg1 *sagemaker.ListAliasesInput, arg2 ...request.Option) (*sagemaker.ListAliasesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAliasesWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListAliasesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAliasesWithContext indicates an expected call of ListAliasesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListAliasesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAliasesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListAliasesWithContext), varargs...) +} + +// ListAppImageConfigs mocks base method. +func (m *MockSageMakerAPI) ListAppImageConfigs(arg0 *sagemaker.ListAppImageConfigsInput) (*sagemaker.ListAppImageConfigsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAppImageConfigs", arg0) + ret0, _ := ret[0].(*sagemaker.ListAppImageConfigsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAppImageConfigs indicates an expected call of ListAppImageConfigs. +func (mr *MockSageMakerAPIMockRecorder) ListAppImageConfigs(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAppImageConfigs", reflect.TypeOf((*MockSageMakerAPI)(nil).ListAppImageConfigs), arg0) +} + +// ListAppImageConfigsPages mocks base method. +func (m *MockSageMakerAPI) ListAppImageConfigsPages(arg0 *sagemaker.ListAppImageConfigsInput, arg1 func(*sagemaker.ListAppImageConfigsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAppImageConfigsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListAppImageConfigsPages indicates an expected call of ListAppImageConfigsPages. +func (mr *MockSageMakerAPIMockRecorder) ListAppImageConfigsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAppImageConfigsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListAppImageConfigsPages), arg0, arg1) +} + +// ListAppImageConfigsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListAppImageConfigsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListAppImageConfigsInput, arg2 func(*sagemaker.ListAppImageConfigsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAppImageConfigsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListAppImageConfigsPagesWithContext indicates an expected call of ListAppImageConfigsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListAppImageConfigsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAppImageConfigsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListAppImageConfigsPagesWithContext), varargs...) +} + +// ListAppImageConfigsRequest mocks base method. +func (m *MockSageMakerAPI) ListAppImageConfigsRequest(arg0 *sagemaker.ListAppImageConfigsInput) (*request.Request, *sagemaker.ListAppImageConfigsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAppImageConfigsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListAppImageConfigsOutput) + return ret0, ret1 +} + +// ListAppImageConfigsRequest indicates an expected call of ListAppImageConfigsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListAppImageConfigsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAppImageConfigsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListAppImageConfigsRequest), arg0) +} + +// ListAppImageConfigsWithContext mocks base method. +func (m *MockSageMakerAPI) ListAppImageConfigsWithContext(arg0 aws.Context, arg1 *sagemaker.ListAppImageConfigsInput, arg2 ...request.Option) (*sagemaker.ListAppImageConfigsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAppImageConfigsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListAppImageConfigsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAppImageConfigsWithContext indicates an expected call of ListAppImageConfigsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListAppImageConfigsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAppImageConfigsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListAppImageConfigsWithContext), varargs...) +} + +// ListApps mocks base method. +func (m *MockSageMakerAPI) ListApps(arg0 *sagemaker.ListAppsInput) (*sagemaker.ListAppsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListApps", arg0) + ret0, _ := ret[0].(*sagemaker.ListAppsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListApps indicates an expected call of ListApps. +func (mr *MockSageMakerAPIMockRecorder) ListApps(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListApps", reflect.TypeOf((*MockSageMakerAPI)(nil).ListApps), arg0) +} + +// ListAppsPages mocks base method. +func (m *MockSageMakerAPI) ListAppsPages(arg0 *sagemaker.ListAppsInput, arg1 func(*sagemaker.ListAppsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAppsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListAppsPages indicates an expected call of ListAppsPages. +func (mr *MockSageMakerAPIMockRecorder) ListAppsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAppsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListAppsPages), arg0, arg1) +} + +// ListAppsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListAppsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListAppsInput, arg2 func(*sagemaker.ListAppsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAppsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListAppsPagesWithContext indicates an expected call of ListAppsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListAppsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAppsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListAppsPagesWithContext), varargs...) +} + +// ListAppsRequest mocks base method. +func (m *MockSageMakerAPI) ListAppsRequest(arg0 *sagemaker.ListAppsInput) (*request.Request, *sagemaker.ListAppsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAppsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListAppsOutput) + return ret0, ret1 +} + +// ListAppsRequest indicates an expected call of ListAppsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListAppsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAppsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListAppsRequest), arg0) +} + +// ListAppsWithContext mocks base method. +func (m *MockSageMakerAPI) ListAppsWithContext(arg0 aws.Context, arg1 *sagemaker.ListAppsInput, arg2 ...request.Option) (*sagemaker.ListAppsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAppsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListAppsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAppsWithContext indicates an expected call of ListAppsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListAppsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAppsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListAppsWithContext), varargs...) +} + +// ListArtifacts mocks base method. +func (m *MockSageMakerAPI) ListArtifacts(arg0 *sagemaker.ListArtifactsInput) (*sagemaker.ListArtifactsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListArtifacts", arg0) + ret0, _ := ret[0].(*sagemaker.ListArtifactsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListArtifacts indicates an expected call of ListArtifacts. +func (mr *MockSageMakerAPIMockRecorder) ListArtifacts(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListArtifacts", reflect.TypeOf((*MockSageMakerAPI)(nil).ListArtifacts), arg0) +} + +// ListArtifactsPages mocks base method. +func (m *MockSageMakerAPI) ListArtifactsPages(arg0 *sagemaker.ListArtifactsInput, arg1 func(*sagemaker.ListArtifactsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListArtifactsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListArtifactsPages indicates an expected call of ListArtifactsPages. +func (mr *MockSageMakerAPIMockRecorder) ListArtifactsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListArtifactsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListArtifactsPages), arg0, arg1) +} + +// ListArtifactsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListArtifactsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListArtifactsInput, arg2 func(*sagemaker.ListArtifactsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListArtifactsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListArtifactsPagesWithContext indicates an expected call of ListArtifactsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListArtifactsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListArtifactsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListArtifactsPagesWithContext), varargs...) +} + +// ListArtifactsRequest mocks base method. +func (m *MockSageMakerAPI) ListArtifactsRequest(arg0 *sagemaker.ListArtifactsInput) (*request.Request, *sagemaker.ListArtifactsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListArtifactsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListArtifactsOutput) + return ret0, ret1 +} + +// ListArtifactsRequest indicates an expected call of ListArtifactsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListArtifactsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListArtifactsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListArtifactsRequest), arg0) +} + +// ListArtifactsWithContext mocks base method. +func (m *MockSageMakerAPI) ListArtifactsWithContext(arg0 aws.Context, arg1 *sagemaker.ListArtifactsInput, arg2 ...request.Option) (*sagemaker.ListArtifactsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListArtifactsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListArtifactsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListArtifactsWithContext indicates an expected call of ListArtifactsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListArtifactsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListArtifactsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListArtifactsWithContext), varargs...) +} + +// ListAssociations mocks base method. +func (m *MockSageMakerAPI) ListAssociations(arg0 *sagemaker.ListAssociationsInput) (*sagemaker.ListAssociationsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAssociations", arg0) + ret0, _ := ret[0].(*sagemaker.ListAssociationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAssociations indicates an expected call of ListAssociations. +func (mr *MockSageMakerAPIMockRecorder) ListAssociations(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAssociations", reflect.TypeOf((*MockSageMakerAPI)(nil).ListAssociations), arg0) +} + +// ListAssociationsPages mocks base method. +func (m *MockSageMakerAPI) ListAssociationsPages(arg0 *sagemaker.ListAssociationsInput, arg1 func(*sagemaker.ListAssociationsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAssociationsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListAssociationsPages indicates an expected call of ListAssociationsPages. +func (mr *MockSageMakerAPIMockRecorder) ListAssociationsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAssociationsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListAssociationsPages), arg0, arg1) +} + +// ListAssociationsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListAssociationsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListAssociationsInput, arg2 func(*sagemaker.ListAssociationsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAssociationsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListAssociationsPagesWithContext indicates an expected call of ListAssociationsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListAssociationsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAssociationsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListAssociationsPagesWithContext), varargs...) +} + +// ListAssociationsRequest mocks base method. +func (m *MockSageMakerAPI) ListAssociationsRequest(arg0 *sagemaker.ListAssociationsInput) (*request.Request, *sagemaker.ListAssociationsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAssociationsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListAssociationsOutput) + return ret0, ret1 +} + +// ListAssociationsRequest indicates an expected call of ListAssociationsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListAssociationsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAssociationsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListAssociationsRequest), arg0) +} + +// ListAssociationsWithContext mocks base method. +func (m *MockSageMakerAPI) ListAssociationsWithContext(arg0 aws.Context, arg1 *sagemaker.ListAssociationsInput, arg2 ...request.Option) (*sagemaker.ListAssociationsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAssociationsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListAssociationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAssociationsWithContext indicates an expected call of ListAssociationsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListAssociationsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAssociationsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListAssociationsWithContext), varargs...) +} + +// ListAutoMLJobs mocks base method. +func (m *MockSageMakerAPI) ListAutoMLJobs(arg0 *sagemaker.ListAutoMLJobsInput) (*sagemaker.ListAutoMLJobsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAutoMLJobs", arg0) + ret0, _ := ret[0].(*sagemaker.ListAutoMLJobsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAutoMLJobs indicates an expected call of ListAutoMLJobs. +func (mr *MockSageMakerAPIMockRecorder) ListAutoMLJobs(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAutoMLJobs", reflect.TypeOf((*MockSageMakerAPI)(nil).ListAutoMLJobs), arg0) +} + +// ListAutoMLJobsPages mocks base method. +func (m *MockSageMakerAPI) ListAutoMLJobsPages(arg0 *sagemaker.ListAutoMLJobsInput, arg1 func(*sagemaker.ListAutoMLJobsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAutoMLJobsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListAutoMLJobsPages indicates an expected call of ListAutoMLJobsPages. +func (mr *MockSageMakerAPIMockRecorder) ListAutoMLJobsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAutoMLJobsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListAutoMLJobsPages), arg0, arg1) +} + +// ListAutoMLJobsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListAutoMLJobsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListAutoMLJobsInput, arg2 func(*sagemaker.ListAutoMLJobsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAutoMLJobsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListAutoMLJobsPagesWithContext indicates an expected call of ListAutoMLJobsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListAutoMLJobsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAutoMLJobsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListAutoMLJobsPagesWithContext), varargs...) +} + +// ListAutoMLJobsRequest mocks base method. +func (m *MockSageMakerAPI) ListAutoMLJobsRequest(arg0 *sagemaker.ListAutoMLJobsInput) (*request.Request, *sagemaker.ListAutoMLJobsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAutoMLJobsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListAutoMLJobsOutput) + return ret0, ret1 +} + +// ListAutoMLJobsRequest indicates an expected call of ListAutoMLJobsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListAutoMLJobsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAutoMLJobsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListAutoMLJobsRequest), arg0) +} + +// ListAutoMLJobsWithContext mocks base method. +func (m *MockSageMakerAPI) ListAutoMLJobsWithContext(arg0 aws.Context, arg1 *sagemaker.ListAutoMLJobsInput, arg2 ...request.Option) (*sagemaker.ListAutoMLJobsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAutoMLJobsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListAutoMLJobsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAutoMLJobsWithContext indicates an expected call of ListAutoMLJobsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListAutoMLJobsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAutoMLJobsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListAutoMLJobsWithContext), varargs...) +} + +// ListCandidatesForAutoMLJob mocks base method. +func (m *MockSageMakerAPI) ListCandidatesForAutoMLJob(arg0 *sagemaker.ListCandidatesForAutoMLJobInput) (*sagemaker.ListCandidatesForAutoMLJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListCandidatesForAutoMLJob", arg0) + ret0, _ := ret[0].(*sagemaker.ListCandidatesForAutoMLJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListCandidatesForAutoMLJob indicates an expected call of ListCandidatesForAutoMLJob. +func (mr *MockSageMakerAPIMockRecorder) ListCandidatesForAutoMLJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCandidatesForAutoMLJob", reflect.TypeOf((*MockSageMakerAPI)(nil).ListCandidatesForAutoMLJob), arg0) +} + +// ListCandidatesForAutoMLJobPages mocks base method. +func (m *MockSageMakerAPI) ListCandidatesForAutoMLJobPages(arg0 *sagemaker.ListCandidatesForAutoMLJobInput, arg1 func(*sagemaker.ListCandidatesForAutoMLJobOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListCandidatesForAutoMLJobPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListCandidatesForAutoMLJobPages indicates an expected call of ListCandidatesForAutoMLJobPages. +func (mr *MockSageMakerAPIMockRecorder) ListCandidatesForAutoMLJobPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCandidatesForAutoMLJobPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListCandidatesForAutoMLJobPages), arg0, arg1) +} + +// ListCandidatesForAutoMLJobPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListCandidatesForAutoMLJobPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListCandidatesForAutoMLJobInput, arg2 func(*sagemaker.ListCandidatesForAutoMLJobOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListCandidatesForAutoMLJobPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListCandidatesForAutoMLJobPagesWithContext indicates an expected call of ListCandidatesForAutoMLJobPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListCandidatesForAutoMLJobPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCandidatesForAutoMLJobPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListCandidatesForAutoMLJobPagesWithContext), varargs...) +} + +// ListCandidatesForAutoMLJobRequest mocks base method. +func (m *MockSageMakerAPI) ListCandidatesForAutoMLJobRequest(arg0 *sagemaker.ListCandidatesForAutoMLJobInput) (*request.Request, *sagemaker.ListCandidatesForAutoMLJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListCandidatesForAutoMLJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListCandidatesForAutoMLJobOutput) + return ret0, ret1 +} + +// ListCandidatesForAutoMLJobRequest indicates an expected call of ListCandidatesForAutoMLJobRequest. +func (mr *MockSageMakerAPIMockRecorder) ListCandidatesForAutoMLJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCandidatesForAutoMLJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListCandidatesForAutoMLJobRequest), arg0) +} + +// ListCandidatesForAutoMLJobWithContext mocks base method. +func (m *MockSageMakerAPI) ListCandidatesForAutoMLJobWithContext(arg0 aws.Context, arg1 *sagemaker.ListCandidatesForAutoMLJobInput, arg2 ...request.Option) (*sagemaker.ListCandidatesForAutoMLJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListCandidatesForAutoMLJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListCandidatesForAutoMLJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListCandidatesForAutoMLJobWithContext indicates an expected call of ListCandidatesForAutoMLJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListCandidatesForAutoMLJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCandidatesForAutoMLJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListCandidatesForAutoMLJobWithContext), varargs...) +} + +// ListClusterNodes mocks base method. +func (m *MockSageMakerAPI) ListClusterNodes(arg0 *sagemaker.ListClusterNodesInput) (*sagemaker.ListClusterNodesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListClusterNodes", arg0) + ret0, _ := ret[0].(*sagemaker.ListClusterNodesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListClusterNodes indicates an expected call of ListClusterNodes. +func (mr *MockSageMakerAPIMockRecorder) ListClusterNodes(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListClusterNodes", reflect.TypeOf((*MockSageMakerAPI)(nil).ListClusterNodes), arg0) +} + +// ListClusterNodesPages mocks base method. +func (m *MockSageMakerAPI) ListClusterNodesPages(arg0 *sagemaker.ListClusterNodesInput, arg1 func(*sagemaker.ListClusterNodesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListClusterNodesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListClusterNodesPages indicates an expected call of ListClusterNodesPages. +func (mr *MockSageMakerAPIMockRecorder) ListClusterNodesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListClusterNodesPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListClusterNodesPages), arg0, arg1) +} + +// ListClusterNodesPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListClusterNodesPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListClusterNodesInput, arg2 func(*sagemaker.ListClusterNodesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListClusterNodesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListClusterNodesPagesWithContext indicates an expected call of ListClusterNodesPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListClusterNodesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListClusterNodesPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListClusterNodesPagesWithContext), varargs...) +} + +// ListClusterNodesRequest mocks base method. +func (m *MockSageMakerAPI) ListClusterNodesRequest(arg0 *sagemaker.ListClusterNodesInput) (*request.Request, *sagemaker.ListClusterNodesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListClusterNodesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListClusterNodesOutput) + return ret0, ret1 +} + +// ListClusterNodesRequest indicates an expected call of ListClusterNodesRequest. +func (mr *MockSageMakerAPIMockRecorder) ListClusterNodesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListClusterNodesRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListClusterNodesRequest), arg0) +} + +// ListClusterNodesWithContext mocks base method. +func (m *MockSageMakerAPI) ListClusterNodesWithContext(arg0 aws.Context, arg1 *sagemaker.ListClusterNodesInput, arg2 ...request.Option) (*sagemaker.ListClusterNodesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListClusterNodesWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListClusterNodesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListClusterNodesWithContext indicates an expected call of ListClusterNodesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListClusterNodesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListClusterNodesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListClusterNodesWithContext), varargs...) +} + +// ListClusters mocks base method. +func (m *MockSageMakerAPI) ListClusters(arg0 *sagemaker.ListClustersInput) (*sagemaker.ListClustersOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListClusters", arg0) + ret0, _ := ret[0].(*sagemaker.ListClustersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListClusters indicates an expected call of ListClusters. +func (mr *MockSageMakerAPIMockRecorder) ListClusters(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListClusters", reflect.TypeOf((*MockSageMakerAPI)(nil).ListClusters), arg0) +} + +// ListClustersPages mocks base method. +func (m *MockSageMakerAPI) ListClustersPages(arg0 *sagemaker.ListClustersInput, arg1 func(*sagemaker.ListClustersOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListClustersPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListClustersPages indicates an expected call of ListClustersPages. +func (mr *MockSageMakerAPIMockRecorder) ListClustersPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListClustersPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListClustersPages), arg0, arg1) +} + +// ListClustersPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListClustersPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListClustersInput, arg2 func(*sagemaker.ListClustersOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListClustersPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListClustersPagesWithContext indicates an expected call of ListClustersPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListClustersPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListClustersPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListClustersPagesWithContext), varargs...) +} + +// ListClustersRequest mocks base method. +func (m *MockSageMakerAPI) ListClustersRequest(arg0 *sagemaker.ListClustersInput) (*request.Request, *sagemaker.ListClustersOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListClustersRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListClustersOutput) + return ret0, ret1 +} + +// ListClustersRequest indicates an expected call of ListClustersRequest. +func (mr *MockSageMakerAPIMockRecorder) ListClustersRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListClustersRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListClustersRequest), arg0) +} + +// ListClustersWithContext mocks base method. +func (m *MockSageMakerAPI) ListClustersWithContext(arg0 aws.Context, arg1 *sagemaker.ListClustersInput, arg2 ...request.Option) (*sagemaker.ListClustersOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListClustersWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListClustersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListClustersWithContext indicates an expected call of ListClustersWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListClustersWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListClustersWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListClustersWithContext), varargs...) +} + +// ListCodeRepositories mocks base method. +func (m *MockSageMakerAPI) ListCodeRepositories(arg0 *sagemaker.ListCodeRepositoriesInput) (*sagemaker.ListCodeRepositoriesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListCodeRepositories", arg0) + ret0, _ := ret[0].(*sagemaker.ListCodeRepositoriesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListCodeRepositories indicates an expected call of ListCodeRepositories. +func (mr *MockSageMakerAPIMockRecorder) ListCodeRepositories(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCodeRepositories", reflect.TypeOf((*MockSageMakerAPI)(nil).ListCodeRepositories), arg0) +} + +// ListCodeRepositoriesPages mocks base method. +func (m *MockSageMakerAPI) ListCodeRepositoriesPages(arg0 *sagemaker.ListCodeRepositoriesInput, arg1 func(*sagemaker.ListCodeRepositoriesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListCodeRepositoriesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListCodeRepositoriesPages indicates an expected call of ListCodeRepositoriesPages. +func (mr *MockSageMakerAPIMockRecorder) ListCodeRepositoriesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCodeRepositoriesPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListCodeRepositoriesPages), arg0, arg1) +} + +// ListCodeRepositoriesPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListCodeRepositoriesPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListCodeRepositoriesInput, arg2 func(*sagemaker.ListCodeRepositoriesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListCodeRepositoriesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListCodeRepositoriesPagesWithContext indicates an expected call of ListCodeRepositoriesPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListCodeRepositoriesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCodeRepositoriesPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListCodeRepositoriesPagesWithContext), varargs...) +} + +// ListCodeRepositoriesRequest mocks base method. +func (m *MockSageMakerAPI) ListCodeRepositoriesRequest(arg0 *sagemaker.ListCodeRepositoriesInput) (*request.Request, *sagemaker.ListCodeRepositoriesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListCodeRepositoriesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListCodeRepositoriesOutput) + return ret0, ret1 +} + +// ListCodeRepositoriesRequest indicates an expected call of ListCodeRepositoriesRequest. +func (mr *MockSageMakerAPIMockRecorder) ListCodeRepositoriesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCodeRepositoriesRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListCodeRepositoriesRequest), arg0) +} + +// ListCodeRepositoriesWithContext mocks base method. +func (m *MockSageMakerAPI) ListCodeRepositoriesWithContext(arg0 aws.Context, arg1 *sagemaker.ListCodeRepositoriesInput, arg2 ...request.Option) (*sagemaker.ListCodeRepositoriesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListCodeRepositoriesWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListCodeRepositoriesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListCodeRepositoriesWithContext indicates an expected call of ListCodeRepositoriesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListCodeRepositoriesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCodeRepositoriesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListCodeRepositoriesWithContext), varargs...) +} + +// ListCompilationJobs mocks base method. +func (m *MockSageMakerAPI) ListCompilationJobs(arg0 *sagemaker.ListCompilationJobsInput) (*sagemaker.ListCompilationJobsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListCompilationJobs", arg0) + ret0, _ := ret[0].(*sagemaker.ListCompilationJobsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListCompilationJobs indicates an expected call of ListCompilationJobs. +func (mr *MockSageMakerAPIMockRecorder) ListCompilationJobs(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCompilationJobs", reflect.TypeOf((*MockSageMakerAPI)(nil).ListCompilationJobs), arg0) +} + +// ListCompilationJobsPages mocks base method. +func (m *MockSageMakerAPI) ListCompilationJobsPages(arg0 *sagemaker.ListCompilationJobsInput, arg1 func(*sagemaker.ListCompilationJobsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListCompilationJobsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListCompilationJobsPages indicates an expected call of ListCompilationJobsPages. +func (mr *MockSageMakerAPIMockRecorder) ListCompilationJobsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCompilationJobsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListCompilationJobsPages), arg0, arg1) +} + +// ListCompilationJobsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListCompilationJobsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListCompilationJobsInput, arg2 func(*sagemaker.ListCompilationJobsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListCompilationJobsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListCompilationJobsPagesWithContext indicates an expected call of ListCompilationJobsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListCompilationJobsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCompilationJobsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListCompilationJobsPagesWithContext), varargs...) +} + +// ListCompilationJobsRequest mocks base method. +func (m *MockSageMakerAPI) ListCompilationJobsRequest(arg0 *sagemaker.ListCompilationJobsInput) (*request.Request, *sagemaker.ListCompilationJobsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListCompilationJobsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListCompilationJobsOutput) + return ret0, ret1 +} + +// ListCompilationJobsRequest indicates an expected call of ListCompilationJobsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListCompilationJobsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCompilationJobsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListCompilationJobsRequest), arg0) +} + +// ListCompilationJobsWithContext mocks base method. +func (m *MockSageMakerAPI) ListCompilationJobsWithContext(arg0 aws.Context, arg1 *sagemaker.ListCompilationJobsInput, arg2 ...request.Option) (*sagemaker.ListCompilationJobsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListCompilationJobsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListCompilationJobsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListCompilationJobsWithContext indicates an expected call of ListCompilationJobsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListCompilationJobsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCompilationJobsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListCompilationJobsWithContext), varargs...) +} + +// ListContexts mocks base method. +func (m *MockSageMakerAPI) ListContexts(arg0 *sagemaker.ListContextsInput) (*sagemaker.ListContextsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListContexts", arg0) + ret0, _ := ret[0].(*sagemaker.ListContextsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListContexts indicates an expected call of ListContexts. +func (mr *MockSageMakerAPIMockRecorder) ListContexts(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListContexts", reflect.TypeOf((*MockSageMakerAPI)(nil).ListContexts), arg0) +} + +// ListContextsPages mocks base method. +func (m *MockSageMakerAPI) ListContextsPages(arg0 *sagemaker.ListContextsInput, arg1 func(*sagemaker.ListContextsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListContextsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListContextsPages indicates an expected call of ListContextsPages. +func (mr *MockSageMakerAPIMockRecorder) ListContextsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListContextsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListContextsPages), arg0, arg1) +} + +// ListContextsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListContextsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListContextsInput, arg2 func(*sagemaker.ListContextsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListContextsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListContextsPagesWithContext indicates an expected call of ListContextsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListContextsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListContextsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListContextsPagesWithContext), varargs...) +} + +// ListContextsRequest mocks base method. +func (m *MockSageMakerAPI) ListContextsRequest(arg0 *sagemaker.ListContextsInput) (*request.Request, *sagemaker.ListContextsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListContextsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListContextsOutput) + return ret0, ret1 +} + +// ListContextsRequest indicates an expected call of ListContextsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListContextsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListContextsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListContextsRequest), arg0) +} + +// ListContextsWithContext mocks base method. +func (m *MockSageMakerAPI) ListContextsWithContext(arg0 aws.Context, arg1 *sagemaker.ListContextsInput, arg2 ...request.Option) (*sagemaker.ListContextsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListContextsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListContextsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListContextsWithContext indicates an expected call of ListContextsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListContextsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListContextsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListContextsWithContext), varargs...) +} + +// ListDataQualityJobDefinitions mocks base method. +func (m *MockSageMakerAPI) ListDataQualityJobDefinitions(arg0 *sagemaker.ListDataQualityJobDefinitionsInput) (*sagemaker.ListDataQualityJobDefinitionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDataQualityJobDefinitions", arg0) + ret0, _ := ret[0].(*sagemaker.ListDataQualityJobDefinitionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListDataQualityJobDefinitions indicates an expected call of ListDataQualityJobDefinitions. +func (mr *MockSageMakerAPIMockRecorder) ListDataQualityJobDefinitions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDataQualityJobDefinitions", reflect.TypeOf((*MockSageMakerAPI)(nil).ListDataQualityJobDefinitions), arg0) +} + +// ListDataQualityJobDefinitionsPages mocks base method. +func (m *MockSageMakerAPI) ListDataQualityJobDefinitionsPages(arg0 *sagemaker.ListDataQualityJobDefinitionsInput, arg1 func(*sagemaker.ListDataQualityJobDefinitionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDataQualityJobDefinitionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListDataQualityJobDefinitionsPages indicates an expected call of ListDataQualityJobDefinitionsPages. +func (mr *MockSageMakerAPIMockRecorder) ListDataQualityJobDefinitionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDataQualityJobDefinitionsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListDataQualityJobDefinitionsPages), arg0, arg1) +} + +// ListDataQualityJobDefinitionsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListDataQualityJobDefinitionsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListDataQualityJobDefinitionsInput, arg2 func(*sagemaker.ListDataQualityJobDefinitionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListDataQualityJobDefinitionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListDataQualityJobDefinitionsPagesWithContext indicates an expected call of ListDataQualityJobDefinitionsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListDataQualityJobDefinitionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDataQualityJobDefinitionsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListDataQualityJobDefinitionsPagesWithContext), varargs...) +} + +// ListDataQualityJobDefinitionsRequest mocks base method. +func (m *MockSageMakerAPI) ListDataQualityJobDefinitionsRequest(arg0 *sagemaker.ListDataQualityJobDefinitionsInput) (*request.Request, *sagemaker.ListDataQualityJobDefinitionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDataQualityJobDefinitionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListDataQualityJobDefinitionsOutput) + return ret0, ret1 +} + +// ListDataQualityJobDefinitionsRequest indicates an expected call of ListDataQualityJobDefinitionsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListDataQualityJobDefinitionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDataQualityJobDefinitionsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListDataQualityJobDefinitionsRequest), arg0) +} + +// ListDataQualityJobDefinitionsWithContext mocks base method. +func (m *MockSageMakerAPI) ListDataQualityJobDefinitionsWithContext(arg0 aws.Context, arg1 *sagemaker.ListDataQualityJobDefinitionsInput, arg2 ...request.Option) (*sagemaker.ListDataQualityJobDefinitionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListDataQualityJobDefinitionsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListDataQualityJobDefinitionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListDataQualityJobDefinitionsWithContext indicates an expected call of ListDataQualityJobDefinitionsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListDataQualityJobDefinitionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDataQualityJobDefinitionsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListDataQualityJobDefinitionsWithContext), varargs...) +} + +// ListDeviceFleets mocks base method. +func (m *MockSageMakerAPI) ListDeviceFleets(arg0 *sagemaker.ListDeviceFleetsInput) (*sagemaker.ListDeviceFleetsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDeviceFleets", arg0) + ret0, _ := ret[0].(*sagemaker.ListDeviceFleetsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListDeviceFleets indicates an expected call of ListDeviceFleets. +func (mr *MockSageMakerAPIMockRecorder) ListDeviceFleets(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDeviceFleets", reflect.TypeOf((*MockSageMakerAPI)(nil).ListDeviceFleets), arg0) +} + +// ListDeviceFleetsPages mocks base method. +func (m *MockSageMakerAPI) ListDeviceFleetsPages(arg0 *sagemaker.ListDeviceFleetsInput, arg1 func(*sagemaker.ListDeviceFleetsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDeviceFleetsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListDeviceFleetsPages indicates an expected call of ListDeviceFleetsPages. +func (mr *MockSageMakerAPIMockRecorder) ListDeviceFleetsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDeviceFleetsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListDeviceFleetsPages), arg0, arg1) +} + +// ListDeviceFleetsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListDeviceFleetsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListDeviceFleetsInput, arg2 func(*sagemaker.ListDeviceFleetsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListDeviceFleetsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListDeviceFleetsPagesWithContext indicates an expected call of ListDeviceFleetsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListDeviceFleetsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDeviceFleetsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListDeviceFleetsPagesWithContext), varargs...) +} + +// ListDeviceFleetsRequest mocks base method. +func (m *MockSageMakerAPI) ListDeviceFleetsRequest(arg0 *sagemaker.ListDeviceFleetsInput) (*request.Request, *sagemaker.ListDeviceFleetsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDeviceFleetsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListDeviceFleetsOutput) + return ret0, ret1 +} + +// ListDeviceFleetsRequest indicates an expected call of ListDeviceFleetsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListDeviceFleetsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDeviceFleetsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListDeviceFleetsRequest), arg0) +} + +// ListDeviceFleetsWithContext mocks base method. +func (m *MockSageMakerAPI) ListDeviceFleetsWithContext(arg0 aws.Context, arg1 *sagemaker.ListDeviceFleetsInput, arg2 ...request.Option) (*sagemaker.ListDeviceFleetsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListDeviceFleetsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListDeviceFleetsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListDeviceFleetsWithContext indicates an expected call of ListDeviceFleetsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListDeviceFleetsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDeviceFleetsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListDeviceFleetsWithContext), varargs...) +} + +// ListDevices mocks base method. +func (m *MockSageMakerAPI) ListDevices(arg0 *sagemaker.ListDevicesInput) (*sagemaker.ListDevicesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDevices", arg0) + ret0, _ := ret[0].(*sagemaker.ListDevicesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListDevices indicates an expected call of ListDevices. +func (mr *MockSageMakerAPIMockRecorder) ListDevices(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDevices", reflect.TypeOf((*MockSageMakerAPI)(nil).ListDevices), arg0) +} + +// ListDevicesPages mocks base method. +func (m *MockSageMakerAPI) ListDevicesPages(arg0 *sagemaker.ListDevicesInput, arg1 func(*sagemaker.ListDevicesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDevicesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListDevicesPages indicates an expected call of ListDevicesPages. +func (mr *MockSageMakerAPIMockRecorder) ListDevicesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDevicesPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListDevicesPages), arg0, arg1) +} + +// ListDevicesPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListDevicesPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListDevicesInput, arg2 func(*sagemaker.ListDevicesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListDevicesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListDevicesPagesWithContext indicates an expected call of ListDevicesPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListDevicesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDevicesPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListDevicesPagesWithContext), varargs...) +} + +// ListDevicesRequest mocks base method. +func (m *MockSageMakerAPI) ListDevicesRequest(arg0 *sagemaker.ListDevicesInput) (*request.Request, *sagemaker.ListDevicesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDevicesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListDevicesOutput) + return ret0, ret1 +} + +// ListDevicesRequest indicates an expected call of ListDevicesRequest. +func (mr *MockSageMakerAPIMockRecorder) ListDevicesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDevicesRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListDevicesRequest), arg0) +} + +// ListDevicesWithContext mocks base method. +func (m *MockSageMakerAPI) ListDevicesWithContext(arg0 aws.Context, arg1 *sagemaker.ListDevicesInput, arg2 ...request.Option) (*sagemaker.ListDevicesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListDevicesWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListDevicesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListDevicesWithContext indicates an expected call of ListDevicesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListDevicesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDevicesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListDevicesWithContext), varargs...) +} + +// ListDomains mocks base method. +func (m *MockSageMakerAPI) ListDomains(arg0 *sagemaker.ListDomainsInput) (*sagemaker.ListDomainsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDomains", arg0) + ret0, _ := ret[0].(*sagemaker.ListDomainsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListDomains indicates an expected call of ListDomains. +func (mr *MockSageMakerAPIMockRecorder) ListDomains(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDomains", reflect.TypeOf((*MockSageMakerAPI)(nil).ListDomains), arg0) +} + +// ListDomainsPages mocks base method. +func (m *MockSageMakerAPI) ListDomainsPages(arg0 *sagemaker.ListDomainsInput, arg1 func(*sagemaker.ListDomainsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDomainsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListDomainsPages indicates an expected call of ListDomainsPages. +func (mr *MockSageMakerAPIMockRecorder) ListDomainsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDomainsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListDomainsPages), arg0, arg1) +} + +// ListDomainsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListDomainsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListDomainsInput, arg2 func(*sagemaker.ListDomainsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListDomainsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListDomainsPagesWithContext indicates an expected call of ListDomainsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListDomainsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDomainsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListDomainsPagesWithContext), varargs...) +} + +// ListDomainsRequest mocks base method. +func (m *MockSageMakerAPI) ListDomainsRequest(arg0 *sagemaker.ListDomainsInput) (*request.Request, *sagemaker.ListDomainsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDomainsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListDomainsOutput) + return ret0, ret1 +} + +// ListDomainsRequest indicates an expected call of ListDomainsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListDomainsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDomainsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListDomainsRequest), arg0) +} + +// ListDomainsWithContext mocks base method. +func (m *MockSageMakerAPI) ListDomainsWithContext(arg0 aws.Context, arg1 *sagemaker.ListDomainsInput, arg2 ...request.Option) (*sagemaker.ListDomainsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListDomainsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListDomainsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListDomainsWithContext indicates an expected call of ListDomainsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListDomainsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDomainsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListDomainsWithContext), varargs...) +} + +// ListEdgeDeploymentPlans mocks base method. +func (m *MockSageMakerAPI) ListEdgeDeploymentPlans(arg0 *sagemaker.ListEdgeDeploymentPlansInput) (*sagemaker.ListEdgeDeploymentPlansOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListEdgeDeploymentPlans", arg0) + ret0, _ := ret[0].(*sagemaker.ListEdgeDeploymentPlansOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListEdgeDeploymentPlans indicates an expected call of ListEdgeDeploymentPlans. +func (mr *MockSageMakerAPIMockRecorder) ListEdgeDeploymentPlans(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListEdgeDeploymentPlans", reflect.TypeOf((*MockSageMakerAPI)(nil).ListEdgeDeploymentPlans), arg0) +} + +// ListEdgeDeploymentPlansPages mocks base method. +func (m *MockSageMakerAPI) ListEdgeDeploymentPlansPages(arg0 *sagemaker.ListEdgeDeploymentPlansInput, arg1 func(*sagemaker.ListEdgeDeploymentPlansOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListEdgeDeploymentPlansPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListEdgeDeploymentPlansPages indicates an expected call of ListEdgeDeploymentPlansPages. +func (mr *MockSageMakerAPIMockRecorder) ListEdgeDeploymentPlansPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListEdgeDeploymentPlansPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListEdgeDeploymentPlansPages), arg0, arg1) +} + +// ListEdgeDeploymentPlansPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListEdgeDeploymentPlansPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListEdgeDeploymentPlansInput, arg2 func(*sagemaker.ListEdgeDeploymentPlansOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListEdgeDeploymentPlansPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListEdgeDeploymentPlansPagesWithContext indicates an expected call of ListEdgeDeploymentPlansPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListEdgeDeploymentPlansPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListEdgeDeploymentPlansPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListEdgeDeploymentPlansPagesWithContext), varargs...) +} + +// ListEdgeDeploymentPlansRequest mocks base method. +func (m *MockSageMakerAPI) ListEdgeDeploymentPlansRequest(arg0 *sagemaker.ListEdgeDeploymentPlansInput) (*request.Request, *sagemaker.ListEdgeDeploymentPlansOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListEdgeDeploymentPlansRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListEdgeDeploymentPlansOutput) + return ret0, ret1 +} + +// ListEdgeDeploymentPlansRequest indicates an expected call of ListEdgeDeploymentPlansRequest. +func (mr *MockSageMakerAPIMockRecorder) ListEdgeDeploymentPlansRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListEdgeDeploymentPlansRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListEdgeDeploymentPlansRequest), arg0) +} + +// ListEdgeDeploymentPlansWithContext mocks base method. +func (m *MockSageMakerAPI) ListEdgeDeploymentPlansWithContext(arg0 aws.Context, arg1 *sagemaker.ListEdgeDeploymentPlansInput, arg2 ...request.Option) (*sagemaker.ListEdgeDeploymentPlansOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListEdgeDeploymentPlansWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListEdgeDeploymentPlansOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListEdgeDeploymentPlansWithContext indicates an expected call of ListEdgeDeploymentPlansWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListEdgeDeploymentPlansWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListEdgeDeploymentPlansWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListEdgeDeploymentPlansWithContext), varargs...) +} + +// ListEdgePackagingJobs mocks base method. +func (m *MockSageMakerAPI) ListEdgePackagingJobs(arg0 *sagemaker.ListEdgePackagingJobsInput) (*sagemaker.ListEdgePackagingJobsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListEdgePackagingJobs", arg0) + ret0, _ := ret[0].(*sagemaker.ListEdgePackagingJobsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListEdgePackagingJobs indicates an expected call of ListEdgePackagingJobs. +func (mr *MockSageMakerAPIMockRecorder) ListEdgePackagingJobs(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListEdgePackagingJobs", reflect.TypeOf((*MockSageMakerAPI)(nil).ListEdgePackagingJobs), arg0) +} + +// ListEdgePackagingJobsPages mocks base method. +func (m *MockSageMakerAPI) ListEdgePackagingJobsPages(arg0 *sagemaker.ListEdgePackagingJobsInput, arg1 func(*sagemaker.ListEdgePackagingJobsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListEdgePackagingJobsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListEdgePackagingJobsPages indicates an expected call of ListEdgePackagingJobsPages. +func (mr *MockSageMakerAPIMockRecorder) ListEdgePackagingJobsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListEdgePackagingJobsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListEdgePackagingJobsPages), arg0, arg1) +} + +// ListEdgePackagingJobsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListEdgePackagingJobsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListEdgePackagingJobsInput, arg2 func(*sagemaker.ListEdgePackagingJobsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListEdgePackagingJobsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListEdgePackagingJobsPagesWithContext indicates an expected call of ListEdgePackagingJobsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListEdgePackagingJobsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListEdgePackagingJobsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListEdgePackagingJobsPagesWithContext), varargs...) +} + +// ListEdgePackagingJobsRequest mocks base method. +func (m *MockSageMakerAPI) ListEdgePackagingJobsRequest(arg0 *sagemaker.ListEdgePackagingJobsInput) (*request.Request, *sagemaker.ListEdgePackagingJobsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListEdgePackagingJobsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListEdgePackagingJobsOutput) + return ret0, ret1 +} + +// ListEdgePackagingJobsRequest indicates an expected call of ListEdgePackagingJobsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListEdgePackagingJobsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListEdgePackagingJobsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListEdgePackagingJobsRequest), arg0) +} + +// ListEdgePackagingJobsWithContext mocks base method. +func (m *MockSageMakerAPI) ListEdgePackagingJobsWithContext(arg0 aws.Context, arg1 *sagemaker.ListEdgePackagingJobsInput, arg2 ...request.Option) (*sagemaker.ListEdgePackagingJobsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListEdgePackagingJobsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListEdgePackagingJobsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListEdgePackagingJobsWithContext indicates an expected call of ListEdgePackagingJobsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListEdgePackagingJobsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListEdgePackagingJobsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListEdgePackagingJobsWithContext), varargs...) +} + +// ListEndpointConfigs mocks base method. +func (m *MockSageMakerAPI) ListEndpointConfigs(arg0 *sagemaker.ListEndpointConfigsInput) (*sagemaker.ListEndpointConfigsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListEndpointConfigs", arg0) + ret0, _ := ret[0].(*sagemaker.ListEndpointConfigsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListEndpointConfigs indicates an expected call of ListEndpointConfigs. +func (mr *MockSageMakerAPIMockRecorder) ListEndpointConfigs(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListEndpointConfigs", reflect.TypeOf((*MockSageMakerAPI)(nil).ListEndpointConfigs), arg0) +} + +// ListEndpointConfigsPages mocks base method. +func (m *MockSageMakerAPI) ListEndpointConfigsPages(arg0 *sagemaker.ListEndpointConfigsInput, arg1 func(*sagemaker.ListEndpointConfigsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListEndpointConfigsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListEndpointConfigsPages indicates an expected call of ListEndpointConfigsPages. +func (mr *MockSageMakerAPIMockRecorder) ListEndpointConfigsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListEndpointConfigsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListEndpointConfigsPages), arg0, arg1) +} + +// ListEndpointConfigsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListEndpointConfigsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListEndpointConfigsInput, arg2 func(*sagemaker.ListEndpointConfigsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListEndpointConfigsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListEndpointConfigsPagesWithContext indicates an expected call of ListEndpointConfigsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListEndpointConfigsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListEndpointConfigsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListEndpointConfigsPagesWithContext), varargs...) +} + +// ListEndpointConfigsRequest mocks base method. +func (m *MockSageMakerAPI) ListEndpointConfigsRequest(arg0 *sagemaker.ListEndpointConfigsInput) (*request.Request, *sagemaker.ListEndpointConfigsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListEndpointConfigsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListEndpointConfigsOutput) + return ret0, ret1 +} + +// ListEndpointConfigsRequest indicates an expected call of ListEndpointConfigsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListEndpointConfigsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListEndpointConfigsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListEndpointConfigsRequest), arg0) +} + +// ListEndpointConfigsWithContext mocks base method. +func (m *MockSageMakerAPI) ListEndpointConfigsWithContext(arg0 aws.Context, arg1 *sagemaker.ListEndpointConfigsInput, arg2 ...request.Option) (*sagemaker.ListEndpointConfigsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListEndpointConfigsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListEndpointConfigsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListEndpointConfigsWithContext indicates an expected call of ListEndpointConfigsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListEndpointConfigsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListEndpointConfigsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListEndpointConfigsWithContext), varargs...) +} + +// ListEndpoints mocks base method. +func (m *MockSageMakerAPI) ListEndpoints(arg0 *sagemaker.ListEndpointsInput) (*sagemaker.ListEndpointsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListEndpoints", arg0) + ret0, _ := ret[0].(*sagemaker.ListEndpointsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListEndpoints indicates an expected call of ListEndpoints. +func (mr *MockSageMakerAPIMockRecorder) ListEndpoints(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListEndpoints", reflect.TypeOf((*MockSageMakerAPI)(nil).ListEndpoints), arg0) +} + +// ListEndpointsPages mocks base method. +func (m *MockSageMakerAPI) ListEndpointsPages(arg0 *sagemaker.ListEndpointsInput, arg1 func(*sagemaker.ListEndpointsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListEndpointsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListEndpointsPages indicates an expected call of ListEndpointsPages. +func (mr *MockSageMakerAPIMockRecorder) ListEndpointsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListEndpointsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListEndpointsPages), arg0, arg1) +} + +// ListEndpointsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListEndpointsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListEndpointsInput, arg2 func(*sagemaker.ListEndpointsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListEndpointsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListEndpointsPagesWithContext indicates an expected call of ListEndpointsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListEndpointsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListEndpointsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListEndpointsPagesWithContext), varargs...) +} + +// ListEndpointsRequest mocks base method. +func (m *MockSageMakerAPI) ListEndpointsRequest(arg0 *sagemaker.ListEndpointsInput) (*request.Request, *sagemaker.ListEndpointsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListEndpointsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListEndpointsOutput) + return ret0, ret1 +} + +// ListEndpointsRequest indicates an expected call of ListEndpointsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListEndpointsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListEndpointsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListEndpointsRequest), arg0) +} + +// ListEndpointsWithContext mocks base method. +func (m *MockSageMakerAPI) ListEndpointsWithContext(arg0 aws.Context, arg1 *sagemaker.ListEndpointsInput, arg2 ...request.Option) (*sagemaker.ListEndpointsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListEndpointsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListEndpointsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListEndpointsWithContext indicates an expected call of ListEndpointsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListEndpointsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListEndpointsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListEndpointsWithContext), varargs...) +} + +// ListExperiments mocks base method. +func (m *MockSageMakerAPI) ListExperiments(arg0 *sagemaker.ListExperimentsInput) (*sagemaker.ListExperimentsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListExperiments", arg0) + ret0, _ := ret[0].(*sagemaker.ListExperimentsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListExperiments indicates an expected call of ListExperiments. +func (mr *MockSageMakerAPIMockRecorder) ListExperiments(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListExperiments", reflect.TypeOf((*MockSageMakerAPI)(nil).ListExperiments), arg0) +} + +// ListExperimentsPages mocks base method. +func (m *MockSageMakerAPI) ListExperimentsPages(arg0 *sagemaker.ListExperimentsInput, arg1 func(*sagemaker.ListExperimentsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListExperimentsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListExperimentsPages indicates an expected call of ListExperimentsPages. +func (mr *MockSageMakerAPIMockRecorder) ListExperimentsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListExperimentsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListExperimentsPages), arg0, arg1) +} + +// ListExperimentsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListExperimentsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListExperimentsInput, arg2 func(*sagemaker.ListExperimentsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListExperimentsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListExperimentsPagesWithContext indicates an expected call of ListExperimentsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListExperimentsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListExperimentsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListExperimentsPagesWithContext), varargs...) +} + +// ListExperimentsRequest mocks base method. +func (m *MockSageMakerAPI) ListExperimentsRequest(arg0 *sagemaker.ListExperimentsInput) (*request.Request, *sagemaker.ListExperimentsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListExperimentsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListExperimentsOutput) + return ret0, ret1 +} + +// ListExperimentsRequest indicates an expected call of ListExperimentsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListExperimentsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListExperimentsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListExperimentsRequest), arg0) +} + +// ListExperimentsWithContext mocks base method. +func (m *MockSageMakerAPI) ListExperimentsWithContext(arg0 aws.Context, arg1 *sagemaker.ListExperimentsInput, arg2 ...request.Option) (*sagemaker.ListExperimentsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListExperimentsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListExperimentsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListExperimentsWithContext indicates an expected call of ListExperimentsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListExperimentsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListExperimentsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListExperimentsWithContext), varargs...) +} + +// ListFeatureGroups mocks base method. +func (m *MockSageMakerAPI) ListFeatureGroups(arg0 *sagemaker.ListFeatureGroupsInput) (*sagemaker.ListFeatureGroupsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListFeatureGroups", arg0) + ret0, _ := ret[0].(*sagemaker.ListFeatureGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListFeatureGroups indicates an expected call of ListFeatureGroups. +func (mr *MockSageMakerAPIMockRecorder) ListFeatureGroups(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFeatureGroups", reflect.TypeOf((*MockSageMakerAPI)(nil).ListFeatureGroups), arg0) +} + +// ListFeatureGroupsPages mocks base method. +func (m *MockSageMakerAPI) ListFeatureGroupsPages(arg0 *sagemaker.ListFeatureGroupsInput, arg1 func(*sagemaker.ListFeatureGroupsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListFeatureGroupsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListFeatureGroupsPages indicates an expected call of ListFeatureGroupsPages. +func (mr *MockSageMakerAPIMockRecorder) ListFeatureGroupsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFeatureGroupsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListFeatureGroupsPages), arg0, arg1) +} + +// ListFeatureGroupsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListFeatureGroupsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListFeatureGroupsInput, arg2 func(*sagemaker.ListFeatureGroupsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListFeatureGroupsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListFeatureGroupsPagesWithContext indicates an expected call of ListFeatureGroupsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListFeatureGroupsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFeatureGroupsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListFeatureGroupsPagesWithContext), varargs...) +} + +// ListFeatureGroupsRequest mocks base method. +func (m *MockSageMakerAPI) ListFeatureGroupsRequest(arg0 *sagemaker.ListFeatureGroupsInput) (*request.Request, *sagemaker.ListFeatureGroupsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListFeatureGroupsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListFeatureGroupsOutput) + return ret0, ret1 +} + +// ListFeatureGroupsRequest indicates an expected call of ListFeatureGroupsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListFeatureGroupsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFeatureGroupsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListFeatureGroupsRequest), arg0) +} + +// ListFeatureGroupsWithContext mocks base method. +func (m *MockSageMakerAPI) ListFeatureGroupsWithContext(arg0 aws.Context, arg1 *sagemaker.ListFeatureGroupsInput, arg2 ...request.Option) (*sagemaker.ListFeatureGroupsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListFeatureGroupsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListFeatureGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListFeatureGroupsWithContext indicates an expected call of ListFeatureGroupsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListFeatureGroupsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFeatureGroupsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListFeatureGroupsWithContext), varargs...) +} + +// ListFlowDefinitions mocks base method. +func (m *MockSageMakerAPI) ListFlowDefinitions(arg0 *sagemaker.ListFlowDefinitionsInput) (*sagemaker.ListFlowDefinitionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListFlowDefinitions", arg0) + ret0, _ := ret[0].(*sagemaker.ListFlowDefinitionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListFlowDefinitions indicates an expected call of ListFlowDefinitions. +func (mr *MockSageMakerAPIMockRecorder) ListFlowDefinitions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFlowDefinitions", reflect.TypeOf((*MockSageMakerAPI)(nil).ListFlowDefinitions), arg0) +} + +// ListFlowDefinitionsPages mocks base method. +func (m *MockSageMakerAPI) ListFlowDefinitionsPages(arg0 *sagemaker.ListFlowDefinitionsInput, arg1 func(*sagemaker.ListFlowDefinitionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListFlowDefinitionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListFlowDefinitionsPages indicates an expected call of ListFlowDefinitionsPages. +func (mr *MockSageMakerAPIMockRecorder) ListFlowDefinitionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFlowDefinitionsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListFlowDefinitionsPages), arg0, arg1) +} + +// ListFlowDefinitionsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListFlowDefinitionsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListFlowDefinitionsInput, arg2 func(*sagemaker.ListFlowDefinitionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListFlowDefinitionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListFlowDefinitionsPagesWithContext indicates an expected call of ListFlowDefinitionsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListFlowDefinitionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFlowDefinitionsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListFlowDefinitionsPagesWithContext), varargs...) +} + +// ListFlowDefinitionsRequest mocks base method. +func (m *MockSageMakerAPI) ListFlowDefinitionsRequest(arg0 *sagemaker.ListFlowDefinitionsInput) (*request.Request, *sagemaker.ListFlowDefinitionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListFlowDefinitionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListFlowDefinitionsOutput) + return ret0, ret1 +} + +// ListFlowDefinitionsRequest indicates an expected call of ListFlowDefinitionsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListFlowDefinitionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFlowDefinitionsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListFlowDefinitionsRequest), arg0) +} + +// ListFlowDefinitionsWithContext mocks base method. +func (m *MockSageMakerAPI) ListFlowDefinitionsWithContext(arg0 aws.Context, arg1 *sagemaker.ListFlowDefinitionsInput, arg2 ...request.Option) (*sagemaker.ListFlowDefinitionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListFlowDefinitionsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListFlowDefinitionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListFlowDefinitionsWithContext indicates an expected call of ListFlowDefinitionsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListFlowDefinitionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFlowDefinitionsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListFlowDefinitionsWithContext), varargs...) +} + +// ListHubContentVersions mocks base method. +func (m *MockSageMakerAPI) ListHubContentVersions(arg0 *sagemaker.ListHubContentVersionsInput) (*sagemaker.ListHubContentVersionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListHubContentVersions", arg0) + ret0, _ := ret[0].(*sagemaker.ListHubContentVersionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListHubContentVersions indicates an expected call of ListHubContentVersions. +func (mr *MockSageMakerAPIMockRecorder) ListHubContentVersions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHubContentVersions", reflect.TypeOf((*MockSageMakerAPI)(nil).ListHubContentVersions), arg0) +} + +// ListHubContentVersionsRequest mocks base method. +func (m *MockSageMakerAPI) ListHubContentVersionsRequest(arg0 *sagemaker.ListHubContentVersionsInput) (*request.Request, *sagemaker.ListHubContentVersionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListHubContentVersionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListHubContentVersionsOutput) + return ret0, ret1 +} + +// ListHubContentVersionsRequest indicates an expected call of ListHubContentVersionsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListHubContentVersionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHubContentVersionsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListHubContentVersionsRequest), arg0) +} + +// ListHubContentVersionsWithContext mocks base method. +func (m *MockSageMakerAPI) ListHubContentVersionsWithContext(arg0 aws.Context, arg1 *sagemaker.ListHubContentVersionsInput, arg2 ...request.Option) (*sagemaker.ListHubContentVersionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListHubContentVersionsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListHubContentVersionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListHubContentVersionsWithContext indicates an expected call of ListHubContentVersionsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListHubContentVersionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHubContentVersionsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListHubContentVersionsWithContext), varargs...) +} + +// ListHubContents mocks base method. +func (m *MockSageMakerAPI) ListHubContents(arg0 *sagemaker.ListHubContentsInput) (*sagemaker.ListHubContentsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListHubContents", arg0) + ret0, _ := ret[0].(*sagemaker.ListHubContentsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListHubContents indicates an expected call of ListHubContents. +func (mr *MockSageMakerAPIMockRecorder) ListHubContents(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHubContents", reflect.TypeOf((*MockSageMakerAPI)(nil).ListHubContents), arg0) +} + +// ListHubContentsRequest mocks base method. +func (m *MockSageMakerAPI) ListHubContentsRequest(arg0 *sagemaker.ListHubContentsInput) (*request.Request, *sagemaker.ListHubContentsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListHubContentsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListHubContentsOutput) + return ret0, ret1 +} + +// ListHubContentsRequest indicates an expected call of ListHubContentsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListHubContentsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHubContentsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListHubContentsRequest), arg0) +} + +// ListHubContentsWithContext mocks base method. +func (m *MockSageMakerAPI) ListHubContentsWithContext(arg0 aws.Context, arg1 *sagemaker.ListHubContentsInput, arg2 ...request.Option) (*sagemaker.ListHubContentsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListHubContentsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListHubContentsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListHubContentsWithContext indicates an expected call of ListHubContentsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListHubContentsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHubContentsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListHubContentsWithContext), varargs...) +} + +// ListHubs mocks base method. +func (m *MockSageMakerAPI) ListHubs(arg0 *sagemaker.ListHubsInput) (*sagemaker.ListHubsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListHubs", arg0) + ret0, _ := ret[0].(*sagemaker.ListHubsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListHubs indicates an expected call of ListHubs. +func (mr *MockSageMakerAPIMockRecorder) ListHubs(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHubs", reflect.TypeOf((*MockSageMakerAPI)(nil).ListHubs), arg0) +} + +// ListHubsRequest mocks base method. +func (m *MockSageMakerAPI) ListHubsRequest(arg0 *sagemaker.ListHubsInput) (*request.Request, *sagemaker.ListHubsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListHubsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListHubsOutput) + return ret0, ret1 +} + +// ListHubsRequest indicates an expected call of ListHubsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListHubsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHubsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListHubsRequest), arg0) +} + +// ListHubsWithContext mocks base method. +func (m *MockSageMakerAPI) ListHubsWithContext(arg0 aws.Context, arg1 *sagemaker.ListHubsInput, arg2 ...request.Option) (*sagemaker.ListHubsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListHubsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListHubsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListHubsWithContext indicates an expected call of ListHubsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListHubsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHubsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListHubsWithContext), varargs...) +} + +// ListHumanTaskUis mocks base method. +func (m *MockSageMakerAPI) ListHumanTaskUis(arg0 *sagemaker.ListHumanTaskUisInput) (*sagemaker.ListHumanTaskUisOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListHumanTaskUis", arg0) + ret0, _ := ret[0].(*sagemaker.ListHumanTaskUisOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListHumanTaskUis indicates an expected call of ListHumanTaskUis. +func (mr *MockSageMakerAPIMockRecorder) ListHumanTaskUis(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHumanTaskUis", reflect.TypeOf((*MockSageMakerAPI)(nil).ListHumanTaskUis), arg0) +} + +// ListHumanTaskUisPages mocks base method. +func (m *MockSageMakerAPI) ListHumanTaskUisPages(arg0 *sagemaker.ListHumanTaskUisInput, arg1 func(*sagemaker.ListHumanTaskUisOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListHumanTaskUisPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListHumanTaskUisPages indicates an expected call of ListHumanTaskUisPages. +func (mr *MockSageMakerAPIMockRecorder) ListHumanTaskUisPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHumanTaskUisPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListHumanTaskUisPages), arg0, arg1) +} + +// ListHumanTaskUisPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListHumanTaskUisPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListHumanTaskUisInput, arg2 func(*sagemaker.ListHumanTaskUisOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListHumanTaskUisPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListHumanTaskUisPagesWithContext indicates an expected call of ListHumanTaskUisPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListHumanTaskUisPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHumanTaskUisPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListHumanTaskUisPagesWithContext), varargs...) +} + +// ListHumanTaskUisRequest mocks base method. +func (m *MockSageMakerAPI) ListHumanTaskUisRequest(arg0 *sagemaker.ListHumanTaskUisInput) (*request.Request, *sagemaker.ListHumanTaskUisOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListHumanTaskUisRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListHumanTaskUisOutput) + return ret0, ret1 +} + +// ListHumanTaskUisRequest indicates an expected call of ListHumanTaskUisRequest. +func (mr *MockSageMakerAPIMockRecorder) ListHumanTaskUisRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHumanTaskUisRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListHumanTaskUisRequest), arg0) +} + +// ListHumanTaskUisWithContext mocks base method. +func (m *MockSageMakerAPI) ListHumanTaskUisWithContext(arg0 aws.Context, arg1 *sagemaker.ListHumanTaskUisInput, arg2 ...request.Option) (*sagemaker.ListHumanTaskUisOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListHumanTaskUisWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListHumanTaskUisOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListHumanTaskUisWithContext indicates an expected call of ListHumanTaskUisWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListHumanTaskUisWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHumanTaskUisWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListHumanTaskUisWithContext), varargs...) +} + +// ListHyperParameterTuningJobs mocks base method. +func (m *MockSageMakerAPI) ListHyperParameterTuningJobs(arg0 *sagemaker.ListHyperParameterTuningJobsInput) (*sagemaker.ListHyperParameterTuningJobsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListHyperParameterTuningJobs", arg0) + ret0, _ := ret[0].(*sagemaker.ListHyperParameterTuningJobsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListHyperParameterTuningJobs indicates an expected call of ListHyperParameterTuningJobs. +func (mr *MockSageMakerAPIMockRecorder) ListHyperParameterTuningJobs(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHyperParameterTuningJobs", reflect.TypeOf((*MockSageMakerAPI)(nil).ListHyperParameterTuningJobs), arg0) +} + +// ListHyperParameterTuningJobsPages mocks base method. +func (m *MockSageMakerAPI) ListHyperParameterTuningJobsPages(arg0 *sagemaker.ListHyperParameterTuningJobsInput, arg1 func(*sagemaker.ListHyperParameterTuningJobsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListHyperParameterTuningJobsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListHyperParameterTuningJobsPages indicates an expected call of ListHyperParameterTuningJobsPages. +func (mr *MockSageMakerAPIMockRecorder) ListHyperParameterTuningJobsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHyperParameterTuningJobsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListHyperParameterTuningJobsPages), arg0, arg1) +} + +// ListHyperParameterTuningJobsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListHyperParameterTuningJobsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListHyperParameterTuningJobsInput, arg2 func(*sagemaker.ListHyperParameterTuningJobsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListHyperParameterTuningJobsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListHyperParameterTuningJobsPagesWithContext indicates an expected call of ListHyperParameterTuningJobsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListHyperParameterTuningJobsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHyperParameterTuningJobsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListHyperParameterTuningJobsPagesWithContext), varargs...) +} + +// ListHyperParameterTuningJobsRequest mocks base method. +func (m *MockSageMakerAPI) ListHyperParameterTuningJobsRequest(arg0 *sagemaker.ListHyperParameterTuningJobsInput) (*request.Request, *sagemaker.ListHyperParameterTuningJobsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListHyperParameterTuningJobsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListHyperParameterTuningJobsOutput) + return ret0, ret1 +} + +// ListHyperParameterTuningJobsRequest indicates an expected call of ListHyperParameterTuningJobsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListHyperParameterTuningJobsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHyperParameterTuningJobsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListHyperParameterTuningJobsRequest), arg0) +} + +// ListHyperParameterTuningJobsWithContext mocks base method. +func (m *MockSageMakerAPI) ListHyperParameterTuningJobsWithContext(arg0 aws.Context, arg1 *sagemaker.ListHyperParameterTuningJobsInput, arg2 ...request.Option) (*sagemaker.ListHyperParameterTuningJobsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListHyperParameterTuningJobsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListHyperParameterTuningJobsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListHyperParameterTuningJobsWithContext indicates an expected call of ListHyperParameterTuningJobsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListHyperParameterTuningJobsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHyperParameterTuningJobsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListHyperParameterTuningJobsWithContext), varargs...) +} + +// ListImageVersions mocks base method. +func (m *MockSageMakerAPI) ListImageVersions(arg0 *sagemaker.ListImageVersionsInput) (*sagemaker.ListImageVersionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListImageVersions", arg0) + ret0, _ := ret[0].(*sagemaker.ListImageVersionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListImageVersions indicates an expected call of ListImageVersions. +func (mr *MockSageMakerAPIMockRecorder) ListImageVersions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListImageVersions", reflect.TypeOf((*MockSageMakerAPI)(nil).ListImageVersions), arg0) +} + +// ListImageVersionsPages mocks base method. +func (m *MockSageMakerAPI) ListImageVersionsPages(arg0 *sagemaker.ListImageVersionsInput, arg1 func(*sagemaker.ListImageVersionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListImageVersionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListImageVersionsPages indicates an expected call of ListImageVersionsPages. +func (mr *MockSageMakerAPIMockRecorder) ListImageVersionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListImageVersionsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListImageVersionsPages), arg0, arg1) +} + +// ListImageVersionsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListImageVersionsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListImageVersionsInput, arg2 func(*sagemaker.ListImageVersionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListImageVersionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListImageVersionsPagesWithContext indicates an expected call of ListImageVersionsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListImageVersionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListImageVersionsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListImageVersionsPagesWithContext), varargs...) +} + +// ListImageVersionsRequest mocks base method. +func (m *MockSageMakerAPI) ListImageVersionsRequest(arg0 *sagemaker.ListImageVersionsInput) (*request.Request, *sagemaker.ListImageVersionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListImageVersionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListImageVersionsOutput) + return ret0, ret1 +} + +// ListImageVersionsRequest indicates an expected call of ListImageVersionsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListImageVersionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListImageVersionsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListImageVersionsRequest), arg0) +} + +// ListImageVersionsWithContext mocks base method. +func (m *MockSageMakerAPI) ListImageVersionsWithContext(arg0 aws.Context, arg1 *sagemaker.ListImageVersionsInput, arg2 ...request.Option) (*sagemaker.ListImageVersionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListImageVersionsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListImageVersionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListImageVersionsWithContext indicates an expected call of ListImageVersionsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListImageVersionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListImageVersionsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListImageVersionsWithContext), varargs...) +} + +// ListImages mocks base method. +func (m *MockSageMakerAPI) ListImages(arg0 *sagemaker.ListImagesInput) (*sagemaker.ListImagesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListImages", arg0) + ret0, _ := ret[0].(*sagemaker.ListImagesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListImages indicates an expected call of ListImages. +func (mr *MockSageMakerAPIMockRecorder) ListImages(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListImages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListImages), arg0) +} + +// ListImagesPages mocks base method. +func (m *MockSageMakerAPI) ListImagesPages(arg0 *sagemaker.ListImagesInput, arg1 func(*sagemaker.ListImagesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListImagesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListImagesPages indicates an expected call of ListImagesPages. +func (mr *MockSageMakerAPIMockRecorder) ListImagesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListImagesPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListImagesPages), arg0, arg1) +} + +// ListImagesPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListImagesPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListImagesInput, arg2 func(*sagemaker.ListImagesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListImagesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListImagesPagesWithContext indicates an expected call of ListImagesPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListImagesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListImagesPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListImagesPagesWithContext), varargs...) +} + +// ListImagesRequest mocks base method. +func (m *MockSageMakerAPI) ListImagesRequest(arg0 *sagemaker.ListImagesInput) (*request.Request, *sagemaker.ListImagesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListImagesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListImagesOutput) + return ret0, ret1 +} + +// ListImagesRequest indicates an expected call of ListImagesRequest. +func (mr *MockSageMakerAPIMockRecorder) ListImagesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListImagesRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListImagesRequest), arg0) +} + +// ListImagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListImagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListImagesInput, arg2 ...request.Option) (*sagemaker.ListImagesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListImagesWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListImagesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListImagesWithContext indicates an expected call of ListImagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListImagesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListImagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListImagesWithContext), varargs...) +} + +// ListInferenceComponents mocks base method. +func (m *MockSageMakerAPI) ListInferenceComponents(arg0 *sagemaker.ListInferenceComponentsInput) (*sagemaker.ListInferenceComponentsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListInferenceComponents", arg0) + ret0, _ := ret[0].(*sagemaker.ListInferenceComponentsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListInferenceComponents indicates an expected call of ListInferenceComponents. +func (mr *MockSageMakerAPIMockRecorder) ListInferenceComponents(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInferenceComponents", reflect.TypeOf((*MockSageMakerAPI)(nil).ListInferenceComponents), arg0) +} + +// ListInferenceComponentsPages mocks base method. +func (m *MockSageMakerAPI) ListInferenceComponentsPages(arg0 *sagemaker.ListInferenceComponentsInput, arg1 func(*sagemaker.ListInferenceComponentsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListInferenceComponentsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListInferenceComponentsPages indicates an expected call of ListInferenceComponentsPages. +func (mr *MockSageMakerAPIMockRecorder) ListInferenceComponentsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInferenceComponentsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListInferenceComponentsPages), arg0, arg1) +} + +// ListInferenceComponentsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListInferenceComponentsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListInferenceComponentsInput, arg2 func(*sagemaker.ListInferenceComponentsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListInferenceComponentsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListInferenceComponentsPagesWithContext indicates an expected call of ListInferenceComponentsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListInferenceComponentsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInferenceComponentsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListInferenceComponentsPagesWithContext), varargs...) +} + +// ListInferenceComponentsRequest mocks base method. +func (m *MockSageMakerAPI) ListInferenceComponentsRequest(arg0 *sagemaker.ListInferenceComponentsInput) (*request.Request, *sagemaker.ListInferenceComponentsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListInferenceComponentsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListInferenceComponentsOutput) + return ret0, ret1 +} + +// ListInferenceComponentsRequest indicates an expected call of ListInferenceComponentsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListInferenceComponentsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInferenceComponentsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListInferenceComponentsRequest), arg0) +} + +// ListInferenceComponentsWithContext mocks base method. +func (m *MockSageMakerAPI) ListInferenceComponentsWithContext(arg0 aws.Context, arg1 *sagemaker.ListInferenceComponentsInput, arg2 ...request.Option) (*sagemaker.ListInferenceComponentsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListInferenceComponentsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListInferenceComponentsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListInferenceComponentsWithContext indicates an expected call of ListInferenceComponentsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListInferenceComponentsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInferenceComponentsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListInferenceComponentsWithContext), varargs...) +} + +// ListInferenceExperiments mocks base method. +func (m *MockSageMakerAPI) ListInferenceExperiments(arg0 *sagemaker.ListInferenceExperimentsInput) (*sagemaker.ListInferenceExperimentsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListInferenceExperiments", arg0) + ret0, _ := ret[0].(*sagemaker.ListInferenceExperimentsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListInferenceExperiments indicates an expected call of ListInferenceExperiments. +func (mr *MockSageMakerAPIMockRecorder) ListInferenceExperiments(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInferenceExperiments", reflect.TypeOf((*MockSageMakerAPI)(nil).ListInferenceExperiments), arg0) +} + +// ListInferenceExperimentsPages mocks base method. +func (m *MockSageMakerAPI) ListInferenceExperimentsPages(arg0 *sagemaker.ListInferenceExperimentsInput, arg1 func(*sagemaker.ListInferenceExperimentsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListInferenceExperimentsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListInferenceExperimentsPages indicates an expected call of ListInferenceExperimentsPages. +func (mr *MockSageMakerAPIMockRecorder) ListInferenceExperimentsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInferenceExperimentsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListInferenceExperimentsPages), arg0, arg1) +} + +// ListInferenceExperimentsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListInferenceExperimentsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListInferenceExperimentsInput, arg2 func(*sagemaker.ListInferenceExperimentsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListInferenceExperimentsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListInferenceExperimentsPagesWithContext indicates an expected call of ListInferenceExperimentsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListInferenceExperimentsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInferenceExperimentsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListInferenceExperimentsPagesWithContext), varargs...) +} + +// ListInferenceExperimentsRequest mocks base method. +func (m *MockSageMakerAPI) ListInferenceExperimentsRequest(arg0 *sagemaker.ListInferenceExperimentsInput) (*request.Request, *sagemaker.ListInferenceExperimentsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListInferenceExperimentsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListInferenceExperimentsOutput) + return ret0, ret1 +} + +// ListInferenceExperimentsRequest indicates an expected call of ListInferenceExperimentsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListInferenceExperimentsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInferenceExperimentsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListInferenceExperimentsRequest), arg0) +} + +// ListInferenceExperimentsWithContext mocks base method. +func (m *MockSageMakerAPI) ListInferenceExperimentsWithContext(arg0 aws.Context, arg1 *sagemaker.ListInferenceExperimentsInput, arg2 ...request.Option) (*sagemaker.ListInferenceExperimentsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListInferenceExperimentsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListInferenceExperimentsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListInferenceExperimentsWithContext indicates an expected call of ListInferenceExperimentsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListInferenceExperimentsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInferenceExperimentsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListInferenceExperimentsWithContext), varargs...) +} + +// ListInferenceRecommendationsJobSteps mocks base method. +func (m *MockSageMakerAPI) ListInferenceRecommendationsJobSteps(arg0 *sagemaker.ListInferenceRecommendationsJobStepsInput) (*sagemaker.ListInferenceRecommendationsJobStepsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListInferenceRecommendationsJobSteps", arg0) + ret0, _ := ret[0].(*sagemaker.ListInferenceRecommendationsJobStepsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListInferenceRecommendationsJobSteps indicates an expected call of ListInferenceRecommendationsJobSteps. +func (mr *MockSageMakerAPIMockRecorder) ListInferenceRecommendationsJobSteps(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInferenceRecommendationsJobSteps", reflect.TypeOf((*MockSageMakerAPI)(nil).ListInferenceRecommendationsJobSteps), arg0) +} + +// ListInferenceRecommendationsJobStepsPages mocks base method. +func (m *MockSageMakerAPI) ListInferenceRecommendationsJobStepsPages(arg0 *sagemaker.ListInferenceRecommendationsJobStepsInput, arg1 func(*sagemaker.ListInferenceRecommendationsJobStepsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListInferenceRecommendationsJobStepsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListInferenceRecommendationsJobStepsPages indicates an expected call of ListInferenceRecommendationsJobStepsPages. +func (mr *MockSageMakerAPIMockRecorder) ListInferenceRecommendationsJobStepsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInferenceRecommendationsJobStepsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListInferenceRecommendationsJobStepsPages), arg0, arg1) +} + +// ListInferenceRecommendationsJobStepsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListInferenceRecommendationsJobStepsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListInferenceRecommendationsJobStepsInput, arg2 func(*sagemaker.ListInferenceRecommendationsJobStepsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListInferenceRecommendationsJobStepsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListInferenceRecommendationsJobStepsPagesWithContext indicates an expected call of ListInferenceRecommendationsJobStepsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListInferenceRecommendationsJobStepsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInferenceRecommendationsJobStepsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListInferenceRecommendationsJobStepsPagesWithContext), varargs...) +} + +// ListInferenceRecommendationsJobStepsRequest mocks base method. +func (m *MockSageMakerAPI) ListInferenceRecommendationsJobStepsRequest(arg0 *sagemaker.ListInferenceRecommendationsJobStepsInput) (*request.Request, *sagemaker.ListInferenceRecommendationsJobStepsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListInferenceRecommendationsJobStepsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListInferenceRecommendationsJobStepsOutput) + return ret0, ret1 +} + +// ListInferenceRecommendationsJobStepsRequest indicates an expected call of ListInferenceRecommendationsJobStepsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListInferenceRecommendationsJobStepsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInferenceRecommendationsJobStepsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListInferenceRecommendationsJobStepsRequest), arg0) +} + +// ListInferenceRecommendationsJobStepsWithContext mocks base method. +func (m *MockSageMakerAPI) ListInferenceRecommendationsJobStepsWithContext(arg0 aws.Context, arg1 *sagemaker.ListInferenceRecommendationsJobStepsInput, arg2 ...request.Option) (*sagemaker.ListInferenceRecommendationsJobStepsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListInferenceRecommendationsJobStepsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListInferenceRecommendationsJobStepsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListInferenceRecommendationsJobStepsWithContext indicates an expected call of ListInferenceRecommendationsJobStepsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListInferenceRecommendationsJobStepsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInferenceRecommendationsJobStepsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListInferenceRecommendationsJobStepsWithContext), varargs...) +} + +// ListInferenceRecommendationsJobs mocks base method. +func (m *MockSageMakerAPI) ListInferenceRecommendationsJobs(arg0 *sagemaker.ListInferenceRecommendationsJobsInput) (*sagemaker.ListInferenceRecommendationsJobsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListInferenceRecommendationsJobs", arg0) + ret0, _ := ret[0].(*sagemaker.ListInferenceRecommendationsJobsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListInferenceRecommendationsJobs indicates an expected call of ListInferenceRecommendationsJobs. +func (mr *MockSageMakerAPIMockRecorder) ListInferenceRecommendationsJobs(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInferenceRecommendationsJobs", reflect.TypeOf((*MockSageMakerAPI)(nil).ListInferenceRecommendationsJobs), arg0) +} + +// ListInferenceRecommendationsJobsPages mocks base method. +func (m *MockSageMakerAPI) ListInferenceRecommendationsJobsPages(arg0 *sagemaker.ListInferenceRecommendationsJobsInput, arg1 func(*sagemaker.ListInferenceRecommendationsJobsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListInferenceRecommendationsJobsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListInferenceRecommendationsJobsPages indicates an expected call of ListInferenceRecommendationsJobsPages. +func (mr *MockSageMakerAPIMockRecorder) ListInferenceRecommendationsJobsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInferenceRecommendationsJobsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListInferenceRecommendationsJobsPages), arg0, arg1) +} + +// ListInferenceRecommendationsJobsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListInferenceRecommendationsJobsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListInferenceRecommendationsJobsInput, arg2 func(*sagemaker.ListInferenceRecommendationsJobsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListInferenceRecommendationsJobsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListInferenceRecommendationsJobsPagesWithContext indicates an expected call of ListInferenceRecommendationsJobsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListInferenceRecommendationsJobsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInferenceRecommendationsJobsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListInferenceRecommendationsJobsPagesWithContext), varargs...) +} + +// ListInferenceRecommendationsJobsRequest mocks base method. +func (m *MockSageMakerAPI) ListInferenceRecommendationsJobsRequest(arg0 *sagemaker.ListInferenceRecommendationsJobsInput) (*request.Request, *sagemaker.ListInferenceRecommendationsJobsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListInferenceRecommendationsJobsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListInferenceRecommendationsJobsOutput) + return ret0, ret1 +} + +// ListInferenceRecommendationsJobsRequest indicates an expected call of ListInferenceRecommendationsJobsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListInferenceRecommendationsJobsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInferenceRecommendationsJobsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListInferenceRecommendationsJobsRequest), arg0) +} + +// ListInferenceRecommendationsJobsWithContext mocks base method. +func (m *MockSageMakerAPI) ListInferenceRecommendationsJobsWithContext(arg0 aws.Context, arg1 *sagemaker.ListInferenceRecommendationsJobsInput, arg2 ...request.Option) (*sagemaker.ListInferenceRecommendationsJobsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListInferenceRecommendationsJobsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListInferenceRecommendationsJobsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListInferenceRecommendationsJobsWithContext indicates an expected call of ListInferenceRecommendationsJobsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListInferenceRecommendationsJobsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInferenceRecommendationsJobsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListInferenceRecommendationsJobsWithContext), varargs...) +} + +// ListLabelingJobs mocks base method. +func (m *MockSageMakerAPI) ListLabelingJobs(arg0 *sagemaker.ListLabelingJobsInput) (*sagemaker.ListLabelingJobsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListLabelingJobs", arg0) + ret0, _ := ret[0].(*sagemaker.ListLabelingJobsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListLabelingJobs indicates an expected call of ListLabelingJobs. +func (mr *MockSageMakerAPIMockRecorder) ListLabelingJobs(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListLabelingJobs", reflect.TypeOf((*MockSageMakerAPI)(nil).ListLabelingJobs), arg0) +} + +// ListLabelingJobsForWorkteam mocks base method. +func (m *MockSageMakerAPI) ListLabelingJobsForWorkteam(arg0 *sagemaker.ListLabelingJobsForWorkteamInput) (*sagemaker.ListLabelingJobsForWorkteamOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListLabelingJobsForWorkteam", arg0) + ret0, _ := ret[0].(*sagemaker.ListLabelingJobsForWorkteamOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListLabelingJobsForWorkteam indicates an expected call of ListLabelingJobsForWorkteam. +func (mr *MockSageMakerAPIMockRecorder) ListLabelingJobsForWorkteam(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListLabelingJobsForWorkteam", reflect.TypeOf((*MockSageMakerAPI)(nil).ListLabelingJobsForWorkteam), arg0) +} + +// ListLabelingJobsForWorkteamPages mocks base method. +func (m *MockSageMakerAPI) ListLabelingJobsForWorkteamPages(arg0 *sagemaker.ListLabelingJobsForWorkteamInput, arg1 func(*sagemaker.ListLabelingJobsForWorkteamOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListLabelingJobsForWorkteamPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListLabelingJobsForWorkteamPages indicates an expected call of ListLabelingJobsForWorkteamPages. +func (mr *MockSageMakerAPIMockRecorder) ListLabelingJobsForWorkteamPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListLabelingJobsForWorkteamPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListLabelingJobsForWorkteamPages), arg0, arg1) +} + +// ListLabelingJobsForWorkteamPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListLabelingJobsForWorkteamPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListLabelingJobsForWorkteamInput, arg2 func(*sagemaker.ListLabelingJobsForWorkteamOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListLabelingJobsForWorkteamPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListLabelingJobsForWorkteamPagesWithContext indicates an expected call of ListLabelingJobsForWorkteamPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListLabelingJobsForWorkteamPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListLabelingJobsForWorkteamPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListLabelingJobsForWorkteamPagesWithContext), varargs...) +} + +// ListLabelingJobsForWorkteamRequest mocks base method. +func (m *MockSageMakerAPI) ListLabelingJobsForWorkteamRequest(arg0 *sagemaker.ListLabelingJobsForWorkteamInput) (*request.Request, *sagemaker.ListLabelingJobsForWorkteamOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListLabelingJobsForWorkteamRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListLabelingJobsForWorkteamOutput) + return ret0, ret1 +} + +// ListLabelingJobsForWorkteamRequest indicates an expected call of ListLabelingJobsForWorkteamRequest. +func (mr *MockSageMakerAPIMockRecorder) ListLabelingJobsForWorkteamRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListLabelingJobsForWorkteamRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListLabelingJobsForWorkteamRequest), arg0) +} + +// ListLabelingJobsForWorkteamWithContext mocks base method. +func (m *MockSageMakerAPI) ListLabelingJobsForWorkteamWithContext(arg0 aws.Context, arg1 *sagemaker.ListLabelingJobsForWorkteamInput, arg2 ...request.Option) (*sagemaker.ListLabelingJobsForWorkteamOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListLabelingJobsForWorkteamWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListLabelingJobsForWorkteamOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListLabelingJobsForWorkteamWithContext indicates an expected call of ListLabelingJobsForWorkteamWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListLabelingJobsForWorkteamWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListLabelingJobsForWorkteamWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListLabelingJobsForWorkteamWithContext), varargs...) +} + +// ListLabelingJobsPages mocks base method. +func (m *MockSageMakerAPI) ListLabelingJobsPages(arg0 *sagemaker.ListLabelingJobsInput, arg1 func(*sagemaker.ListLabelingJobsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListLabelingJobsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListLabelingJobsPages indicates an expected call of ListLabelingJobsPages. +func (mr *MockSageMakerAPIMockRecorder) ListLabelingJobsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListLabelingJobsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListLabelingJobsPages), arg0, arg1) +} + +// ListLabelingJobsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListLabelingJobsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListLabelingJobsInput, arg2 func(*sagemaker.ListLabelingJobsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListLabelingJobsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListLabelingJobsPagesWithContext indicates an expected call of ListLabelingJobsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListLabelingJobsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListLabelingJobsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListLabelingJobsPagesWithContext), varargs...) +} + +// ListLabelingJobsRequest mocks base method. +func (m *MockSageMakerAPI) ListLabelingJobsRequest(arg0 *sagemaker.ListLabelingJobsInput) (*request.Request, *sagemaker.ListLabelingJobsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListLabelingJobsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListLabelingJobsOutput) + return ret0, ret1 +} + +// ListLabelingJobsRequest indicates an expected call of ListLabelingJobsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListLabelingJobsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListLabelingJobsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListLabelingJobsRequest), arg0) +} + +// ListLabelingJobsWithContext mocks base method. +func (m *MockSageMakerAPI) ListLabelingJobsWithContext(arg0 aws.Context, arg1 *sagemaker.ListLabelingJobsInput, arg2 ...request.Option) (*sagemaker.ListLabelingJobsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListLabelingJobsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListLabelingJobsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListLabelingJobsWithContext indicates an expected call of ListLabelingJobsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListLabelingJobsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListLabelingJobsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListLabelingJobsWithContext), varargs...) +} + +// ListLineageGroups mocks base method. +func (m *MockSageMakerAPI) ListLineageGroups(arg0 *sagemaker.ListLineageGroupsInput) (*sagemaker.ListLineageGroupsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListLineageGroups", arg0) + ret0, _ := ret[0].(*sagemaker.ListLineageGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListLineageGroups indicates an expected call of ListLineageGroups. +func (mr *MockSageMakerAPIMockRecorder) ListLineageGroups(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListLineageGroups", reflect.TypeOf((*MockSageMakerAPI)(nil).ListLineageGroups), arg0) +} + +// ListLineageGroupsPages mocks base method. +func (m *MockSageMakerAPI) ListLineageGroupsPages(arg0 *sagemaker.ListLineageGroupsInput, arg1 func(*sagemaker.ListLineageGroupsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListLineageGroupsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListLineageGroupsPages indicates an expected call of ListLineageGroupsPages. +func (mr *MockSageMakerAPIMockRecorder) ListLineageGroupsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListLineageGroupsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListLineageGroupsPages), arg0, arg1) +} + +// ListLineageGroupsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListLineageGroupsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListLineageGroupsInput, arg2 func(*sagemaker.ListLineageGroupsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListLineageGroupsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListLineageGroupsPagesWithContext indicates an expected call of ListLineageGroupsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListLineageGroupsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListLineageGroupsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListLineageGroupsPagesWithContext), varargs...) +} + +// ListLineageGroupsRequest mocks base method. +func (m *MockSageMakerAPI) ListLineageGroupsRequest(arg0 *sagemaker.ListLineageGroupsInput) (*request.Request, *sagemaker.ListLineageGroupsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListLineageGroupsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListLineageGroupsOutput) + return ret0, ret1 +} + +// ListLineageGroupsRequest indicates an expected call of ListLineageGroupsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListLineageGroupsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListLineageGroupsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListLineageGroupsRequest), arg0) +} + +// ListLineageGroupsWithContext mocks base method. +func (m *MockSageMakerAPI) ListLineageGroupsWithContext(arg0 aws.Context, arg1 *sagemaker.ListLineageGroupsInput, arg2 ...request.Option) (*sagemaker.ListLineageGroupsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListLineageGroupsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListLineageGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListLineageGroupsWithContext indicates an expected call of ListLineageGroupsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListLineageGroupsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListLineageGroupsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListLineageGroupsWithContext), varargs...) +} + +// ListModelBiasJobDefinitions mocks base method. +func (m *MockSageMakerAPI) ListModelBiasJobDefinitions(arg0 *sagemaker.ListModelBiasJobDefinitionsInput) (*sagemaker.ListModelBiasJobDefinitionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListModelBiasJobDefinitions", arg0) + ret0, _ := ret[0].(*sagemaker.ListModelBiasJobDefinitionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListModelBiasJobDefinitions indicates an expected call of ListModelBiasJobDefinitions. +func (mr *MockSageMakerAPIMockRecorder) ListModelBiasJobDefinitions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelBiasJobDefinitions", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelBiasJobDefinitions), arg0) +} + +// ListModelBiasJobDefinitionsPages mocks base method. +func (m *MockSageMakerAPI) ListModelBiasJobDefinitionsPages(arg0 *sagemaker.ListModelBiasJobDefinitionsInput, arg1 func(*sagemaker.ListModelBiasJobDefinitionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListModelBiasJobDefinitionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListModelBiasJobDefinitionsPages indicates an expected call of ListModelBiasJobDefinitionsPages. +func (mr *MockSageMakerAPIMockRecorder) ListModelBiasJobDefinitionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelBiasJobDefinitionsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelBiasJobDefinitionsPages), arg0, arg1) +} + +// ListModelBiasJobDefinitionsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListModelBiasJobDefinitionsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListModelBiasJobDefinitionsInput, arg2 func(*sagemaker.ListModelBiasJobDefinitionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListModelBiasJobDefinitionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListModelBiasJobDefinitionsPagesWithContext indicates an expected call of ListModelBiasJobDefinitionsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListModelBiasJobDefinitionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelBiasJobDefinitionsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelBiasJobDefinitionsPagesWithContext), varargs...) +} + +// ListModelBiasJobDefinitionsRequest mocks base method. +func (m *MockSageMakerAPI) ListModelBiasJobDefinitionsRequest(arg0 *sagemaker.ListModelBiasJobDefinitionsInput) (*request.Request, *sagemaker.ListModelBiasJobDefinitionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListModelBiasJobDefinitionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListModelBiasJobDefinitionsOutput) + return ret0, ret1 +} + +// ListModelBiasJobDefinitionsRequest indicates an expected call of ListModelBiasJobDefinitionsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListModelBiasJobDefinitionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelBiasJobDefinitionsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelBiasJobDefinitionsRequest), arg0) +} + +// ListModelBiasJobDefinitionsWithContext mocks base method. +func (m *MockSageMakerAPI) ListModelBiasJobDefinitionsWithContext(arg0 aws.Context, arg1 *sagemaker.ListModelBiasJobDefinitionsInput, arg2 ...request.Option) (*sagemaker.ListModelBiasJobDefinitionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListModelBiasJobDefinitionsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListModelBiasJobDefinitionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListModelBiasJobDefinitionsWithContext indicates an expected call of ListModelBiasJobDefinitionsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListModelBiasJobDefinitionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelBiasJobDefinitionsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelBiasJobDefinitionsWithContext), varargs...) +} + +// ListModelCardExportJobs mocks base method. +func (m *MockSageMakerAPI) ListModelCardExportJobs(arg0 *sagemaker.ListModelCardExportJobsInput) (*sagemaker.ListModelCardExportJobsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListModelCardExportJobs", arg0) + ret0, _ := ret[0].(*sagemaker.ListModelCardExportJobsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListModelCardExportJobs indicates an expected call of ListModelCardExportJobs. +func (mr *MockSageMakerAPIMockRecorder) ListModelCardExportJobs(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelCardExportJobs", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelCardExportJobs), arg0) +} + +// ListModelCardExportJobsPages mocks base method. +func (m *MockSageMakerAPI) ListModelCardExportJobsPages(arg0 *sagemaker.ListModelCardExportJobsInput, arg1 func(*sagemaker.ListModelCardExportJobsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListModelCardExportJobsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListModelCardExportJobsPages indicates an expected call of ListModelCardExportJobsPages. +func (mr *MockSageMakerAPIMockRecorder) ListModelCardExportJobsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelCardExportJobsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelCardExportJobsPages), arg0, arg1) +} + +// ListModelCardExportJobsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListModelCardExportJobsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListModelCardExportJobsInput, arg2 func(*sagemaker.ListModelCardExportJobsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListModelCardExportJobsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListModelCardExportJobsPagesWithContext indicates an expected call of ListModelCardExportJobsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListModelCardExportJobsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelCardExportJobsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelCardExportJobsPagesWithContext), varargs...) +} + +// ListModelCardExportJobsRequest mocks base method. +func (m *MockSageMakerAPI) ListModelCardExportJobsRequest(arg0 *sagemaker.ListModelCardExportJobsInput) (*request.Request, *sagemaker.ListModelCardExportJobsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListModelCardExportJobsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListModelCardExportJobsOutput) + return ret0, ret1 +} + +// ListModelCardExportJobsRequest indicates an expected call of ListModelCardExportJobsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListModelCardExportJobsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelCardExportJobsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelCardExportJobsRequest), arg0) +} + +// ListModelCardExportJobsWithContext mocks base method. +func (m *MockSageMakerAPI) ListModelCardExportJobsWithContext(arg0 aws.Context, arg1 *sagemaker.ListModelCardExportJobsInput, arg2 ...request.Option) (*sagemaker.ListModelCardExportJobsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListModelCardExportJobsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListModelCardExportJobsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListModelCardExportJobsWithContext indicates an expected call of ListModelCardExportJobsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListModelCardExportJobsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelCardExportJobsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelCardExportJobsWithContext), varargs...) +} + +// ListModelCardVersions mocks base method. +func (m *MockSageMakerAPI) ListModelCardVersions(arg0 *sagemaker.ListModelCardVersionsInput) (*sagemaker.ListModelCardVersionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListModelCardVersions", arg0) + ret0, _ := ret[0].(*sagemaker.ListModelCardVersionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListModelCardVersions indicates an expected call of ListModelCardVersions. +func (mr *MockSageMakerAPIMockRecorder) ListModelCardVersions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelCardVersions", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelCardVersions), arg0) +} + +// ListModelCardVersionsPages mocks base method. +func (m *MockSageMakerAPI) ListModelCardVersionsPages(arg0 *sagemaker.ListModelCardVersionsInput, arg1 func(*sagemaker.ListModelCardVersionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListModelCardVersionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListModelCardVersionsPages indicates an expected call of ListModelCardVersionsPages. +func (mr *MockSageMakerAPIMockRecorder) ListModelCardVersionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelCardVersionsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelCardVersionsPages), arg0, arg1) +} + +// ListModelCardVersionsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListModelCardVersionsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListModelCardVersionsInput, arg2 func(*sagemaker.ListModelCardVersionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListModelCardVersionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListModelCardVersionsPagesWithContext indicates an expected call of ListModelCardVersionsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListModelCardVersionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelCardVersionsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelCardVersionsPagesWithContext), varargs...) +} + +// ListModelCardVersionsRequest mocks base method. +func (m *MockSageMakerAPI) ListModelCardVersionsRequest(arg0 *sagemaker.ListModelCardVersionsInput) (*request.Request, *sagemaker.ListModelCardVersionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListModelCardVersionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListModelCardVersionsOutput) + return ret0, ret1 +} + +// ListModelCardVersionsRequest indicates an expected call of ListModelCardVersionsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListModelCardVersionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelCardVersionsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelCardVersionsRequest), arg0) +} + +// ListModelCardVersionsWithContext mocks base method. +func (m *MockSageMakerAPI) ListModelCardVersionsWithContext(arg0 aws.Context, arg1 *sagemaker.ListModelCardVersionsInput, arg2 ...request.Option) (*sagemaker.ListModelCardVersionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListModelCardVersionsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListModelCardVersionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListModelCardVersionsWithContext indicates an expected call of ListModelCardVersionsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListModelCardVersionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelCardVersionsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelCardVersionsWithContext), varargs...) +} + +// ListModelCards mocks base method. +func (m *MockSageMakerAPI) ListModelCards(arg0 *sagemaker.ListModelCardsInput) (*sagemaker.ListModelCardsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListModelCards", arg0) + ret0, _ := ret[0].(*sagemaker.ListModelCardsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListModelCards indicates an expected call of ListModelCards. +func (mr *MockSageMakerAPIMockRecorder) ListModelCards(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelCards", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelCards), arg0) +} + +// ListModelCardsPages mocks base method. +func (m *MockSageMakerAPI) ListModelCardsPages(arg0 *sagemaker.ListModelCardsInput, arg1 func(*sagemaker.ListModelCardsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListModelCardsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListModelCardsPages indicates an expected call of ListModelCardsPages. +func (mr *MockSageMakerAPIMockRecorder) ListModelCardsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelCardsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelCardsPages), arg0, arg1) +} + +// ListModelCardsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListModelCardsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListModelCardsInput, arg2 func(*sagemaker.ListModelCardsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListModelCardsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListModelCardsPagesWithContext indicates an expected call of ListModelCardsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListModelCardsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelCardsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelCardsPagesWithContext), varargs...) +} + +// ListModelCardsRequest mocks base method. +func (m *MockSageMakerAPI) ListModelCardsRequest(arg0 *sagemaker.ListModelCardsInput) (*request.Request, *sagemaker.ListModelCardsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListModelCardsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListModelCardsOutput) + return ret0, ret1 +} + +// ListModelCardsRequest indicates an expected call of ListModelCardsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListModelCardsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelCardsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelCardsRequest), arg0) +} + +// ListModelCardsWithContext mocks base method. +func (m *MockSageMakerAPI) ListModelCardsWithContext(arg0 aws.Context, arg1 *sagemaker.ListModelCardsInput, arg2 ...request.Option) (*sagemaker.ListModelCardsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListModelCardsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListModelCardsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListModelCardsWithContext indicates an expected call of ListModelCardsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListModelCardsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelCardsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelCardsWithContext), varargs...) +} + +// ListModelExplainabilityJobDefinitions mocks base method. +func (m *MockSageMakerAPI) ListModelExplainabilityJobDefinitions(arg0 *sagemaker.ListModelExplainabilityJobDefinitionsInput) (*sagemaker.ListModelExplainabilityJobDefinitionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListModelExplainabilityJobDefinitions", arg0) + ret0, _ := ret[0].(*sagemaker.ListModelExplainabilityJobDefinitionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListModelExplainabilityJobDefinitions indicates an expected call of ListModelExplainabilityJobDefinitions. +func (mr *MockSageMakerAPIMockRecorder) ListModelExplainabilityJobDefinitions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelExplainabilityJobDefinitions", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelExplainabilityJobDefinitions), arg0) +} + +// ListModelExplainabilityJobDefinitionsPages mocks base method. +func (m *MockSageMakerAPI) ListModelExplainabilityJobDefinitionsPages(arg0 *sagemaker.ListModelExplainabilityJobDefinitionsInput, arg1 func(*sagemaker.ListModelExplainabilityJobDefinitionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListModelExplainabilityJobDefinitionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListModelExplainabilityJobDefinitionsPages indicates an expected call of ListModelExplainabilityJobDefinitionsPages. +func (mr *MockSageMakerAPIMockRecorder) ListModelExplainabilityJobDefinitionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelExplainabilityJobDefinitionsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelExplainabilityJobDefinitionsPages), arg0, arg1) +} + +// ListModelExplainabilityJobDefinitionsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListModelExplainabilityJobDefinitionsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListModelExplainabilityJobDefinitionsInput, arg2 func(*sagemaker.ListModelExplainabilityJobDefinitionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListModelExplainabilityJobDefinitionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListModelExplainabilityJobDefinitionsPagesWithContext indicates an expected call of ListModelExplainabilityJobDefinitionsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListModelExplainabilityJobDefinitionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelExplainabilityJobDefinitionsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelExplainabilityJobDefinitionsPagesWithContext), varargs...) +} + +// ListModelExplainabilityJobDefinitionsRequest mocks base method. +func (m *MockSageMakerAPI) ListModelExplainabilityJobDefinitionsRequest(arg0 *sagemaker.ListModelExplainabilityJobDefinitionsInput) (*request.Request, *sagemaker.ListModelExplainabilityJobDefinitionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListModelExplainabilityJobDefinitionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListModelExplainabilityJobDefinitionsOutput) + return ret0, ret1 +} + +// ListModelExplainabilityJobDefinitionsRequest indicates an expected call of ListModelExplainabilityJobDefinitionsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListModelExplainabilityJobDefinitionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelExplainabilityJobDefinitionsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelExplainabilityJobDefinitionsRequest), arg0) +} + +// ListModelExplainabilityJobDefinitionsWithContext mocks base method. +func (m *MockSageMakerAPI) ListModelExplainabilityJobDefinitionsWithContext(arg0 aws.Context, arg1 *sagemaker.ListModelExplainabilityJobDefinitionsInput, arg2 ...request.Option) (*sagemaker.ListModelExplainabilityJobDefinitionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListModelExplainabilityJobDefinitionsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListModelExplainabilityJobDefinitionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListModelExplainabilityJobDefinitionsWithContext indicates an expected call of ListModelExplainabilityJobDefinitionsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListModelExplainabilityJobDefinitionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelExplainabilityJobDefinitionsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelExplainabilityJobDefinitionsWithContext), varargs...) +} + +// ListModelMetadata mocks base method. +func (m *MockSageMakerAPI) ListModelMetadata(arg0 *sagemaker.ListModelMetadataInput) (*sagemaker.ListModelMetadataOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListModelMetadata", arg0) + ret0, _ := ret[0].(*sagemaker.ListModelMetadataOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListModelMetadata indicates an expected call of ListModelMetadata. +func (mr *MockSageMakerAPIMockRecorder) ListModelMetadata(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelMetadata", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelMetadata), arg0) +} + +// ListModelMetadataPages mocks base method. +func (m *MockSageMakerAPI) ListModelMetadataPages(arg0 *sagemaker.ListModelMetadataInput, arg1 func(*sagemaker.ListModelMetadataOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListModelMetadataPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListModelMetadataPages indicates an expected call of ListModelMetadataPages. +func (mr *MockSageMakerAPIMockRecorder) ListModelMetadataPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelMetadataPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelMetadataPages), arg0, arg1) +} + +// ListModelMetadataPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListModelMetadataPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListModelMetadataInput, arg2 func(*sagemaker.ListModelMetadataOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListModelMetadataPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListModelMetadataPagesWithContext indicates an expected call of ListModelMetadataPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListModelMetadataPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelMetadataPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelMetadataPagesWithContext), varargs...) +} + +// ListModelMetadataRequest mocks base method. +func (m *MockSageMakerAPI) ListModelMetadataRequest(arg0 *sagemaker.ListModelMetadataInput) (*request.Request, *sagemaker.ListModelMetadataOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListModelMetadataRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListModelMetadataOutput) + return ret0, ret1 +} + +// ListModelMetadataRequest indicates an expected call of ListModelMetadataRequest. +func (mr *MockSageMakerAPIMockRecorder) ListModelMetadataRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelMetadataRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelMetadataRequest), arg0) +} + +// ListModelMetadataWithContext mocks base method. +func (m *MockSageMakerAPI) ListModelMetadataWithContext(arg0 aws.Context, arg1 *sagemaker.ListModelMetadataInput, arg2 ...request.Option) (*sagemaker.ListModelMetadataOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListModelMetadataWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListModelMetadataOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListModelMetadataWithContext indicates an expected call of ListModelMetadataWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListModelMetadataWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelMetadataWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelMetadataWithContext), varargs...) +} + +// ListModelPackageGroups mocks base method. +func (m *MockSageMakerAPI) ListModelPackageGroups(arg0 *sagemaker.ListModelPackageGroupsInput) (*sagemaker.ListModelPackageGroupsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListModelPackageGroups", arg0) + ret0, _ := ret[0].(*sagemaker.ListModelPackageGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListModelPackageGroups indicates an expected call of ListModelPackageGroups. +func (mr *MockSageMakerAPIMockRecorder) ListModelPackageGroups(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelPackageGroups", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelPackageGroups), arg0) +} + +// ListModelPackageGroupsPages mocks base method. +func (m *MockSageMakerAPI) ListModelPackageGroupsPages(arg0 *sagemaker.ListModelPackageGroupsInput, arg1 func(*sagemaker.ListModelPackageGroupsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListModelPackageGroupsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListModelPackageGroupsPages indicates an expected call of ListModelPackageGroupsPages. +func (mr *MockSageMakerAPIMockRecorder) ListModelPackageGroupsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelPackageGroupsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelPackageGroupsPages), arg0, arg1) +} + +// ListModelPackageGroupsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListModelPackageGroupsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListModelPackageGroupsInput, arg2 func(*sagemaker.ListModelPackageGroupsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListModelPackageGroupsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListModelPackageGroupsPagesWithContext indicates an expected call of ListModelPackageGroupsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListModelPackageGroupsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelPackageGroupsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelPackageGroupsPagesWithContext), varargs...) +} + +// ListModelPackageGroupsRequest mocks base method. +func (m *MockSageMakerAPI) ListModelPackageGroupsRequest(arg0 *sagemaker.ListModelPackageGroupsInput) (*request.Request, *sagemaker.ListModelPackageGroupsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListModelPackageGroupsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListModelPackageGroupsOutput) + return ret0, ret1 +} + +// ListModelPackageGroupsRequest indicates an expected call of ListModelPackageGroupsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListModelPackageGroupsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelPackageGroupsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelPackageGroupsRequest), arg0) +} + +// ListModelPackageGroupsWithContext mocks base method. +func (m *MockSageMakerAPI) ListModelPackageGroupsWithContext(arg0 aws.Context, arg1 *sagemaker.ListModelPackageGroupsInput, arg2 ...request.Option) (*sagemaker.ListModelPackageGroupsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListModelPackageGroupsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListModelPackageGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListModelPackageGroupsWithContext indicates an expected call of ListModelPackageGroupsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListModelPackageGroupsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelPackageGroupsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelPackageGroupsWithContext), varargs...) +} + +// ListModelPackages mocks base method. +func (m *MockSageMakerAPI) ListModelPackages(arg0 *sagemaker.ListModelPackagesInput) (*sagemaker.ListModelPackagesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListModelPackages", arg0) + ret0, _ := ret[0].(*sagemaker.ListModelPackagesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListModelPackages indicates an expected call of ListModelPackages. +func (mr *MockSageMakerAPIMockRecorder) ListModelPackages(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelPackages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelPackages), arg0) +} + +// ListModelPackagesPages mocks base method. +func (m *MockSageMakerAPI) ListModelPackagesPages(arg0 *sagemaker.ListModelPackagesInput, arg1 func(*sagemaker.ListModelPackagesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListModelPackagesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListModelPackagesPages indicates an expected call of ListModelPackagesPages. +func (mr *MockSageMakerAPIMockRecorder) ListModelPackagesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelPackagesPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelPackagesPages), arg0, arg1) +} + +// ListModelPackagesPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListModelPackagesPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListModelPackagesInput, arg2 func(*sagemaker.ListModelPackagesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListModelPackagesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListModelPackagesPagesWithContext indicates an expected call of ListModelPackagesPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListModelPackagesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelPackagesPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelPackagesPagesWithContext), varargs...) +} + +// ListModelPackagesRequest mocks base method. +func (m *MockSageMakerAPI) ListModelPackagesRequest(arg0 *sagemaker.ListModelPackagesInput) (*request.Request, *sagemaker.ListModelPackagesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListModelPackagesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListModelPackagesOutput) + return ret0, ret1 +} + +// ListModelPackagesRequest indicates an expected call of ListModelPackagesRequest. +func (mr *MockSageMakerAPIMockRecorder) ListModelPackagesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelPackagesRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelPackagesRequest), arg0) +} + +// ListModelPackagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListModelPackagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListModelPackagesInput, arg2 ...request.Option) (*sagemaker.ListModelPackagesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListModelPackagesWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListModelPackagesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListModelPackagesWithContext indicates an expected call of ListModelPackagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListModelPackagesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelPackagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelPackagesWithContext), varargs...) +} + +// ListModelQualityJobDefinitions mocks base method. +func (m *MockSageMakerAPI) ListModelQualityJobDefinitions(arg0 *sagemaker.ListModelQualityJobDefinitionsInput) (*sagemaker.ListModelQualityJobDefinitionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListModelQualityJobDefinitions", arg0) + ret0, _ := ret[0].(*sagemaker.ListModelQualityJobDefinitionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListModelQualityJobDefinitions indicates an expected call of ListModelQualityJobDefinitions. +func (mr *MockSageMakerAPIMockRecorder) ListModelQualityJobDefinitions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelQualityJobDefinitions", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelQualityJobDefinitions), arg0) +} + +// ListModelQualityJobDefinitionsPages mocks base method. +func (m *MockSageMakerAPI) ListModelQualityJobDefinitionsPages(arg0 *sagemaker.ListModelQualityJobDefinitionsInput, arg1 func(*sagemaker.ListModelQualityJobDefinitionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListModelQualityJobDefinitionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListModelQualityJobDefinitionsPages indicates an expected call of ListModelQualityJobDefinitionsPages. +func (mr *MockSageMakerAPIMockRecorder) ListModelQualityJobDefinitionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelQualityJobDefinitionsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelQualityJobDefinitionsPages), arg0, arg1) +} + +// ListModelQualityJobDefinitionsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListModelQualityJobDefinitionsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListModelQualityJobDefinitionsInput, arg2 func(*sagemaker.ListModelQualityJobDefinitionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListModelQualityJobDefinitionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListModelQualityJobDefinitionsPagesWithContext indicates an expected call of ListModelQualityJobDefinitionsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListModelQualityJobDefinitionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelQualityJobDefinitionsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelQualityJobDefinitionsPagesWithContext), varargs...) +} + +// ListModelQualityJobDefinitionsRequest mocks base method. +func (m *MockSageMakerAPI) ListModelQualityJobDefinitionsRequest(arg0 *sagemaker.ListModelQualityJobDefinitionsInput) (*request.Request, *sagemaker.ListModelQualityJobDefinitionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListModelQualityJobDefinitionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListModelQualityJobDefinitionsOutput) + return ret0, ret1 +} + +// ListModelQualityJobDefinitionsRequest indicates an expected call of ListModelQualityJobDefinitionsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListModelQualityJobDefinitionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelQualityJobDefinitionsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelQualityJobDefinitionsRequest), arg0) +} + +// ListModelQualityJobDefinitionsWithContext mocks base method. +func (m *MockSageMakerAPI) ListModelQualityJobDefinitionsWithContext(arg0 aws.Context, arg1 *sagemaker.ListModelQualityJobDefinitionsInput, arg2 ...request.Option) (*sagemaker.ListModelQualityJobDefinitionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListModelQualityJobDefinitionsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListModelQualityJobDefinitionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListModelQualityJobDefinitionsWithContext indicates an expected call of ListModelQualityJobDefinitionsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListModelQualityJobDefinitionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelQualityJobDefinitionsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelQualityJobDefinitionsWithContext), varargs...) +} + +// ListModels mocks base method. +func (m *MockSageMakerAPI) ListModels(arg0 *sagemaker.ListModelsInput) (*sagemaker.ListModelsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListModels", arg0) + ret0, _ := ret[0].(*sagemaker.ListModelsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListModels indicates an expected call of ListModels. +func (mr *MockSageMakerAPIMockRecorder) ListModels(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModels", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModels), arg0) +} + +// ListModelsPages mocks base method. +func (m *MockSageMakerAPI) ListModelsPages(arg0 *sagemaker.ListModelsInput, arg1 func(*sagemaker.ListModelsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListModelsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListModelsPages indicates an expected call of ListModelsPages. +func (mr *MockSageMakerAPIMockRecorder) ListModelsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelsPages), arg0, arg1) +} + +// ListModelsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListModelsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListModelsInput, arg2 func(*sagemaker.ListModelsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListModelsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListModelsPagesWithContext indicates an expected call of ListModelsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListModelsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelsPagesWithContext), varargs...) +} + +// ListModelsRequest mocks base method. +func (m *MockSageMakerAPI) ListModelsRequest(arg0 *sagemaker.ListModelsInput) (*request.Request, *sagemaker.ListModelsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListModelsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListModelsOutput) + return ret0, ret1 +} + +// ListModelsRequest indicates an expected call of ListModelsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListModelsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelsRequest), arg0) +} + +// ListModelsWithContext mocks base method. +func (m *MockSageMakerAPI) ListModelsWithContext(arg0 aws.Context, arg1 *sagemaker.ListModelsInput, arg2 ...request.Option) (*sagemaker.ListModelsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListModelsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListModelsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListModelsWithContext indicates an expected call of ListModelsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListModelsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListModelsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListModelsWithContext), varargs...) +} + +// ListMonitoringAlertHistory mocks base method. +func (m *MockSageMakerAPI) ListMonitoringAlertHistory(arg0 *sagemaker.ListMonitoringAlertHistoryInput) (*sagemaker.ListMonitoringAlertHistoryOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListMonitoringAlertHistory", arg0) + ret0, _ := ret[0].(*sagemaker.ListMonitoringAlertHistoryOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListMonitoringAlertHistory indicates an expected call of ListMonitoringAlertHistory. +func (mr *MockSageMakerAPIMockRecorder) ListMonitoringAlertHistory(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMonitoringAlertHistory", reflect.TypeOf((*MockSageMakerAPI)(nil).ListMonitoringAlertHistory), arg0) +} + +// ListMonitoringAlertHistoryPages mocks base method. +func (m *MockSageMakerAPI) ListMonitoringAlertHistoryPages(arg0 *sagemaker.ListMonitoringAlertHistoryInput, arg1 func(*sagemaker.ListMonitoringAlertHistoryOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListMonitoringAlertHistoryPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListMonitoringAlertHistoryPages indicates an expected call of ListMonitoringAlertHistoryPages. +func (mr *MockSageMakerAPIMockRecorder) ListMonitoringAlertHistoryPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMonitoringAlertHistoryPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListMonitoringAlertHistoryPages), arg0, arg1) +} + +// ListMonitoringAlertHistoryPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListMonitoringAlertHistoryPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListMonitoringAlertHistoryInput, arg2 func(*sagemaker.ListMonitoringAlertHistoryOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListMonitoringAlertHistoryPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListMonitoringAlertHistoryPagesWithContext indicates an expected call of ListMonitoringAlertHistoryPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListMonitoringAlertHistoryPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMonitoringAlertHistoryPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListMonitoringAlertHistoryPagesWithContext), varargs...) +} + +// ListMonitoringAlertHistoryRequest mocks base method. +func (m *MockSageMakerAPI) ListMonitoringAlertHistoryRequest(arg0 *sagemaker.ListMonitoringAlertHistoryInput) (*request.Request, *sagemaker.ListMonitoringAlertHistoryOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListMonitoringAlertHistoryRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListMonitoringAlertHistoryOutput) + return ret0, ret1 +} + +// ListMonitoringAlertHistoryRequest indicates an expected call of ListMonitoringAlertHistoryRequest. +func (mr *MockSageMakerAPIMockRecorder) ListMonitoringAlertHistoryRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMonitoringAlertHistoryRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListMonitoringAlertHistoryRequest), arg0) +} + +// ListMonitoringAlertHistoryWithContext mocks base method. +func (m *MockSageMakerAPI) ListMonitoringAlertHistoryWithContext(arg0 aws.Context, arg1 *sagemaker.ListMonitoringAlertHistoryInput, arg2 ...request.Option) (*sagemaker.ListMonitoringAlertHistoryOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListMonitoringAlertHistoryWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListMonitoringAlertHistoryOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListMonitoringAlertHistoryWithContext indicates an expected call of ListMonitoringAlertHistoryWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListMonitoringAlertHistoryWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMonitoringAlertHistoryWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListMonitoringAlertHistoryWithContext), varargs...) +} + +// ListMonitoringAlerts mocks base method. +func (m *MockSageMakerAPI) ListMonitoringAlerts(arg0 *sagemaker.ListMonitoringAlertsInput) (*sagemaker.ListMonitoringAlertsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListMonitoringAlerts", arg0) + ret0, _ := ret[0].(*sagemaker.ListMonitoringAlertsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListMonitoringAlerts indicates an expected call of ListMonitoringAlerts. +func (mr *MockSageMakerAPIMockRecorder) ListMonitoringAlerts(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMonitoringAlerts", reflect.TypeOf((*MockSageMakerAPI)(nil).ListMonitoringAlerts), arg0) +} + +// ListMonitoringAlertsPages mocks base method. +func (m *MockSageMakerAPI) ListMonitoringAlertsPages(arg0 *sagemaker.ListMonitoringAlertsInput, arg1 func(*sagemaker.ListMonitoringAlertsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListMonitoringAlertsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListMonitoringAlertsPages indicates an expected call of ListMonitoringAlertsPages. +func (mr *MockSageMakerAPIMockRecorder) ListMonitoringAlertsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMonitoringAlertsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListMonitoringAlertsPages), arg0, arg1) +} + +// ListMonitoringAlertsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListMonitoringAlertsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListMonitoringAlertsInput, arg2 func(*sagemaker.ListMonitoringAlertsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListMonitoringAlertsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListMonitoringAlertsPagesWithContext indicates an expected call of ListMonitoringAlertsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListMonitoringAlertsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMonitoringAlertsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListMonitoringAlertsPagesWithContext), varargs...) +} + +// ListMonitoringAlertsRequest mocks base method. +func (m *MockSageMakerAPI) ListMonitoringAlertsRequest(arg0 *sagemaker.ListMonitoringAlertsInput) (*request.Request, *sagemaker.ListMonitoringAlertsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListMonitoringAlertsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListMonitoringAlertsOutput) + return ret0, ret1 +} + +// ListMonitoringAlertsRequest indicates an expected call of ListMonitoringAlertsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListMonitoringAlertsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMonitoringAlertsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListMonitoringAlertsRequest), arg0) +} + +// ListMonitoringAlertsWithContext mocks base method. +func (m *MockSageMakerAPI) ListMonitoringAlertsWithContext(arg0 aws.Context, arg1 *sagemaker.ListMonitoringAlertsInput, arg2 ...request.Option) (*sagemaker.ListMonitoringAlertsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListMonitoringAlertsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListMonitoringAlertsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListMonitoringAlertsWithContext indicates an expected call of ListMonitoringAlertsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListMonitoringAlertsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMonitoringAlertsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListMonitoringAlertsWithContext), varargs...) +} + +// ListMonitoringExecutions mocks base method. +func (m *MockSageMakerAPI) ListMonitoringExecutions(arg0 *sagemaker.ListMonitoringExecutionsInput) (*sagemaker.ListMonitoringExecutionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListMonitoringExecutions", arg0) + ret0, _ := ret[0].(*sagemaker.ListMonitoringExecutionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListMonitoringExecutions indicates an expected call of ListMonitoringExecutions. +func (mr *MockSageMakerAPIMockRecorder) ListMonitoringExecutions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMonitoringExecutions", reflect.TypeOf((*MockSageMakerAPI)(nil).ListMonitoringExecutions), arg0) +} + +// ListMonitoringExecutionsPages mocks base method. +func (m *MockSageMakerAPI) ListMonitoringExecutionsPages(arg0 *sagemaker.ListMonitoringExecutionsInput, arg1 func(*sagemaker.ListMonitoringExecutionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListMonitoringExecutionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListMonitoringExecutionsPages indicates an expected call of ListMonitoringExecutionsPages. +func (mr *MockSageMakerAPIMockRecorder) ListMonitoringExecutionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMonitoringExecutionsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListMonitoringExecutionsPages), arg0, arg1) +} + +// ListMonitoringExecutionsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListMonitoringExecutionsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListMonitoringExecutionsInput, arg2 func(*sagemaker.ListMonitoringExecutionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListMonitoringExecutionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListMonitoringExecutionsPagesWithContext indicates an expected call of ListMonitoringExecutionsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListMonitoringExecutionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMonitoringExecutionsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListMonitoringExecutionsPagesWithContext), varargs...) +} + +// ListMonitoringExecutionsRequest mocks base method. +func (m *MockSageMakerAPI) ListMonitoringExecutionsRequest(arg0 *sagemaker.ListMonitoringExecutionsInput) (*request.Request, *sagemaker.ListMonitoringExecutionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListMonitoringExecutionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListMonitoringExecutionsOutput) + return ret0, ret1 +} + +// ListMonitoringExecutionsRequest indicates an expected call of ListMonitoringExecutionsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListMonitoringExecutionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMonitoringExecutionsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListMonitoringExecutionsRequest), arg0) +} + +// ListMonitoringExecutionsWithContext mocks base method. +func (m *MockSageMakerAPI) ListMonitoringExecutionsWithContext(arg0 aws.Context, arg1 *sagemaker.ListMonitoringExecutionsInput, arg2 ...request.Option) (*sagemaker.ListMonitoringExecutionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListMonitoringExecutionsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListMonitoringExecutionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListMonitoringExecutionsWithContext indicates an expected call of ListMonitoringExecutionsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListMonitoringExecutionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMonitoringExecutionsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListMonitoringExecutionsWithContext), varargs...) +} + +// ListMonitoringSchedules mocks base method. +func (m *MockSageMakerAPI) ListMonitoringSchedules(arg0 *sagemaker.ListMonitoringSchedulesInput) (*sagemaker.ListMonitoringSchedulesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListMonitoringSchedules", arg0) + ret0, _ := ret[0].(*sagemaker.ListMonitoringSchedulesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListMonitoringSchedules indicates an expected call of ListMonitoringSchedules. +func (mr *MockSageMakerAPIMockRecorder) ListMonitoringSchedules(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMonitoringSchedules", reflect.TypeOf((*MockSageMakerAPI)(nil).ListMonitoringSchedules), arg0) +} + +// ListMonitoringSchedulesPages mocks base method. +func (m *MockSageMakerAPI) ListMonitoringSchedulesPages(arg0 *sagemaker.ListMonitoringSchedulesInput, arg1 func(*sagemaker.ListMonitoringSchedulesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListMonitoringSchedulesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListMonitoringSchedulesPages indicates an expected call of ListMonitoringSchedulesPages. +func (mr *MockSageMakerAPIMockRecorder) ListMonitoringSchedulesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMonitoringSchedulesPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListMonitoringSchedulesPages), arg0, arg1) +} + +// ListMonitoringSchedulesPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListMonitoringSchedulesPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListMonitoringSchedulesInput, arg2 func(*sagemaker.ListMonitoringSchedulesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListMonitoringSchedulesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListMonitoringSchedulesPagesWithContext indicates an expected call of ListMonitoringSchedulesPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListMonitoringSchedulesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMonitoringSchedulesPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListMonitoringSchedulesPagesWithContext), varargs...) +} + +// ListMonitoringSchedulesRequest mocks base method. +func (m *MockSageMakerAPI) ListMonitoringSchedulesRequest(arg0 *sagemaker.ListMonitoringSchedulesInput) (*request.Request, *sagemaker.ListMonitoringSchedulesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListMonitoringSchedulesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListMonitoringSchedulesOutput) + return ret0, ret1 +} + +// ListMonitoringSchedulesRequest indicates an expected call of ListMonitoringSchedulesRequest. +func (mr *MockSageMakerAPIMockRecorder) ListMonitoringSchedulesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMonitoringSchedulesRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListMonitoringSchedulesRequest), arg0) +} + +// ListMonitoringSchedulesWithContext mocks base method. +func (m *MockSageMakerAPI) ListMonitoringSchedulesWithContext(arg0 aws.Context, arg1 *sagemaker.ListMonitoringSchedulesInput, arg2 ...request.Option) (*sagemaker.ListMonitoringSchedulesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListMonitoringSchedulesWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListMonitoringSchedulesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListMonitoringSchedulesWithContext indicates an expected call of ListMonitoringSchedulesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListMonitoringSchedulesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMonitoringSchedulesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListMonitoringSchedulesWithContext), varargs...) +} + +// ListNotebookInstanceLifecycleConfigs mocks base method. +func (m *MockSageMakerAPI) ListNotebookInstanceLifecycleConfigs(arg0 *sagemaker.ListNotebookInstanceLifecycleConfigsInput) (*sagemaker.ListNotebookInstanceLifecycleConfigsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListNotebookInstanceLifecycleConfigs", arg0) + ret0, _ := ret[0].(*sagemaker.ListNotebookInstanceLifecycleConfigsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListNotebookInstanceLifecycleConfigs indicates an expected call of ListNotebookInstanceLifecycleConfigs. +func (mr *MockSageMakerAPIMockRecorder) ListNotebookInstanceLifecycleConfigs(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListNotebookInstanceLifecycleConfigs", reflect.TypeOf((*MockSageMakerAPI)(nil).ListNotebookInstanceLifecycleConfigs), arg0) +} + +// ListNotebookInstanceLifecycleConfigsPages mocks base method. +func (m *MockSageMakerAPI) ListNotebookInstanceLifecycleConfigsPages(arg0 *sagemaker.ListNotebookInstanceLifecycleConfigsInput, arg1 func(*sagemaker.ListNotebookInstanceLifecycleConfigsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListNotebookInstanceLifecycleConfigsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListNotebookInstanceLifecycleConfigsPages indicates an expected call of ListNotebookInstanceLifecycleConfigsPages. +func (mr *MockSageMakerAPIMockRecorder) ListNotebookInstanceLifecycleConfigsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListNotebookInstanceLifecycleConfigsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListNotebookInstanceLifecycleConfigsPages), arg0, arg1) +} + +// ListNotebookInstanceLifecycleConfigsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListNotebookInstanceLifecycleConfigsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListNotebookInstanceLifecycleConfigsInput, arg2 func(*sagemaker.ListNotebookInstanceLifecycleConfigsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListNotebookInstanceLifecycleConfigsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListNotebookInstanceLifecycleConfigsPagesWithContext indicates an expected call of ListNotebookInstanceLifecycleConfigsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListNotebookInstanceLifecycleConfigsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListNotebookInstanceLifecycleConfigsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListNotebookInstanceLifecycleConfigsPagesWithContext), varargs...) +} + +// ListNotebookInstanceLifecycleConfigsRequest mocks base method. +func (m *MockSageMakerAPI) ListNotebookInstanceLifecycleConfigsRequest(arg0 *sagemaker.ListNotebookInstanceLifecycleConfigsInput) (*request.Request, *sagemaker.ListNotebookInstanceLifecycleConfigsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListNotebookInstanceLifecycleConfigsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListNotebookInstanceLifecycleConfigsOutput) + return ret0, ret1 +} + +// ListNotebookInstanceLifecycleConfigsRequest indicates an expected call of ListNotebookInstanceLifecycleConfigsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListNotebookInstanceLifecycleConfigsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListNotebookInstanceLifecycleConfigsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListNotebookInstanceLifecycleConfigsRequest), arg0) +} + +// ListNotebookInstanceLifecycleConfigsWithContext mocks base method. +func (m *MockSageMakerAPI) ListNotebookInstanceLifecycleConfigsWithContext(arg0 aws.Context, arg1 *sagemaker.ListNotebookInstanceLifecycleConfigsInput, arg2 ...request.Option) (*sagemaker.ListNotebookInstanceLifecycleConfigsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListNotebookInstanceLifecycleConfigsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListNotebookInstanceLifecycleConfigsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListNotebookInstanceLifecycleConfigsWithContext indicates an expected call of ListNotebookInstanceLifecycleConfigsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListNotebookInstanceLifecycleConfigsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListNotebookInstanceLifecycleConfigsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListNotebookInstanceLifecycleConfigsWithContext), varargs...) +} + +// ListNotebookInstances mocks base method. +func (m *MockSageMakerAPI) ListNotebookInstances(arg0 *sagemaker.ListNotebookInstancesInput) (*sagemaker.ListNotebookInstancesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListNotebookInstances", arg0) + ret0, _ := ret[0].(*sagemaker.ListNotebookInstancesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListNotebookInstances indicates an expected call of ListNotebookInstances. +func (mr *MockSageMakerAPIMockRecorder) ListNotebookInstances(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListNotebookInstances", reflect.TypeOf((*MockSageMakerAPI)(nil).ListNotebookInstances), arg0) +} + +// ListNotebookInstancesPages mocks base method. +func (m *MockSageMakerAPI) ListNotebookInstancesPages(arg0 *sagemaker.ListNotebookInstancesInput, arg1 func(*sagemaker.ListNotebookInstancesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListNotebookInstancesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListNotebookInstancesPages indicates an expected call of ListNotebookInstancesPages. +func (mr *MockSageMakerAPIMockRecorder) ListNotebookInstancesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListNotebookInstancesPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListNotebookInstancesPages), arg0, arg1) +} + +// ListNotebookInstancesPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListNotebookInstancesPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListNotebookInstancesInput, arg2 func(*sagemaker.ListNotebookInstancesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListNotebookInstancesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListNotebookInstancesPagesWithContext indicates an expected call of ListNotebookInstancesPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListNotebookInstancesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListNotebookInstancesPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListNotebookInstancesPagesWithContext), varargs...) +} + +// ListNotebookInstancesRequest mocks base method. +func (m *MockSageMakerAPI) ListNotebookInstancesRequest(arg0 *sagemaker.ListNotebookInstancesInput) (*request.Request, *sagemaker.ListNotebookInstancesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListNotebookInstancesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListNotebookInstancesOutput) + return ret0, ret1 +} + +// ListNotebookInstancesRequest indicates an expected call of ListNotebookInstancesRequest. +func (mr *MockSageMakerAPIMockRecorder) ListNotebookInstancesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListNotebookInstancesRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListNotebookInstancesRequest), arg0) +} + +// ListNotebookInstancesWithContext mocks base method. +func (m *MockSageMakerAPI) ListNotebookInstancesWithContext(arg0 aws.Context, arg1 *sagemaker.ListNotebookInstancesInput, arg2 ...request.Option) (*sagemaker.ListNotebookInstancesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListNotebookInstancesWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListNotebookInstancesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListNotebookInstancesWithContext indicates an expected call of ListNotebookInstancesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListNotebookInstancesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListNotebookInstancesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListNotebookInstancesWithContext), varargs...) +} + +// ListPipelineExecutionSteps mocks base method. +func (m *MockSageMakerAPI) ListPipelineExecutionSteps(arg0 *sagemaker.ListPipelineExecutionStepsInput) (*sagemaker.ListPipelineExecutionStepsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListPipelineExecutionSteps", arg0) + ret0, _ := ret[0].(*sagemaker.ListPipelineExecutionStepsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListPipelineExecutionSteps indicates an expected call of ListPipelineExecutionSteps. +func (mr *MockSageMakerAPIMockRecorder) ListPipelineExecutionSteps(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPipelineExecutionSteps", reflect.TypeOf((*MockSageMakerAPI)(nil).ListPipelineExecutionSteps), arg0) +} + +// ListPipelineExecutionStepsPages mocks base method. +func (m *MockSageMakerAPI) ListPipelineExecutionStepsPages(arg0 *sagemaker.ListPipelineExecutionStepsInput, arg1 func(*sagemaker.ListPipelineExecutionStepsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListPipelineExecutionStepsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListPipelineExecutionStepsPages indicates an expected call of ListPipelineExecutionStepsPages. +func (mr *MockSageMakerAPIMockRecorder) ListPipelineExecutionStepsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPipelineExecutionStepsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListPipelineExecutionStepsPages), arg0, arg1) +} + +// ListPipelineExecutionStepsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListPipelineExecutionStepsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListPipelineExecutionStepsInput, arg2 func(*sagemaker.ListPipelineExecutionStepsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListPipelineExecutionStepsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListPipelineExecutionStepsPagesWithContext indicates an expected call of ListPipelineExecutionStepsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListPipelineExecutionStepsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPipelineExecutionStepsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListPipelineExecutionStepsPagesWithContext), varargs...) +} + +// ListPipelineExecutionStepsRequest mocks base method. +func (m *MockSageMakerAPI) ListPipelineExecutionStepsRequest(arg0 *sagemaker.ListPipelineExecutionStepsInput) (*request.Request, *sagemaker.ListPipelineExecutionStepsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListPipelineExecutionStepsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListPipelineExecutionStepsOutput) + return ret0, ret1 +} + +// ListPipelineExecutionStepsRequest indicates an expected call of ListPipelineExecutionStepsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListPipelineExecutionStepsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPipelineExecutionStepsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListPipelineExecutionStepsRequest), arg0) +} + +// ListPipelineExecutionStepsWithContext mocks base method. +func (m *MockSageMakerAPI) ListPipelineExecutionStepsWithContext(arg0 aws.Context, arg1 *sagemaker.ListPipelineExecutionStepsInput, arg2 ...request.Option) (*sagemaker.ListPipelineExecutionStepsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListPipelineExecutionStepsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListPipelineExecutionStepsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListPipelineExecutionStepsWithContext indicates an expected call of ListPipelineExecutionStepsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListPipelineExecutionStepsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPipelineExecutionStepsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListPipelineExecutionStepsWithContext), varargs...) +} + +// ListPipelineExecutions mocks base method. +func (m *MockSageMakerAPI) ListPipelineExecutions(arg0 *sagemaker.ListPipelineExecutionsInput) (*sagemaker.ListPipelineExecutionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListPipelineExecutions", arg0) + ret0, _ := ret[0].(*sagemaker.ListPipelineExecutionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListPipelineExecutions indicates an expected call of ListPipelineExecutions. +func (mr *MockSageMakerAPIMockRecorder) ListPipelineExecutions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPipelineExecutions", reflect.TypeOf((*MockSageMakerAPI)(nil).ListPipelineExecutions), arg0) +} + +// ListPipelineExecutionsPages mocks base method. +func (m *MockSageMakerAPI) ListPipelineExecutionsPages(arg0 *sagemaker.ListPipelineExecutionsInput, arg1 func(*sagemaker.ListPipelineExecutionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListPipelineExecutionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListPipelineExecutionsPages indicates an expected call of ListPipelineExecutionsPages. +func (mr *MockSageMakerAPIMockRecorder) ListPipelineExecutionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPipelineExecutionsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListPipelineExecutionsPages), arg0, arg1) +} + +// ListPipelineExecutionsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListPipelineExecutionsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListPipelineExecutionsInput, arg2 func(*sagemaker.ListPipelineExecutionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListPipelineExecutionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListPipelineExecutionsPagesWithContext indicates an expected call of ListPipelineExecutionsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListPipelineExecutionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPipelineExecutionsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListPipelineExecutionsPagesWithContext), varargs...) +} + +// ListPipelineExecutionsRequest mocks base method. +func (m *MockSageMakerAPI) ListPipelineExecutionsRequest(arg0 *sagemaker.ListPipelineExecutionsInput) (*request.Request, *sagemaker.ListPipelineExecutionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListPipelineExecutionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListPipelineExecutionsOutput) + return ret0, ret1 +} + +// ListPipelineExecutionsRequest indicates an expected call of ListPipelineExecutionsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListPipelineExecutionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPipelineExecutionsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListPipelineExecutionsRequest), arg0) +} + +// ListPipelineExecutionsWithContext mocks base method. +func (m *MockSageMakerAPI) ListPipelineExecutionsWithContext(arg0 aws.Context, arg1 *sagemaker.ListPipelineExecutionsInput, arg2 ...request.Option) (*sagemaker.ListPipelineExecutionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListPipelineExecutionsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListPipelineExecutionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListPipelineExecutionsWithContext indicates an expected call of ListPipelineExecutionsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListPipelineExecutionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPipelineExecutionsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListPipelineExecutionsWithContext), varargs...) +} + +// ListPipelineParametersForExecution mocks base method. +func (m *MockSageMakerAPI) ListPipelineParametersForExecution(arg0 *sagemaker.ListPipelineParametersForExecutionInput) (*sagemaker.ListPipelineParametersForExecutionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListPipelineParametersForExecution", arg0) + ret0, _ := ret[0].(*sagemaker.ListPipelineParametersForExecutionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListPipelineParametersForExecution indicates an expected call of ListPipelineParametersForExecution. +func (mr *MockSageMakerAPIMockRecorder) ListPipelineParametersForExecution(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPipelineParametersForExecution", reflect.TypeOf((*MockSageMakerAPI)(nil).ListPipelineParametersForExecution), arg0) +} + +// ListPipelineParametersForExecutionPages mocks base method. +func (m *MockSageMakerAPI) ListPipelineParametersForExecutionPages(arg0 *sagemaker.ListPipelineParametersForExecutionInput, arg1 func(*sagemaker.ListPipelineParametersForExecutionOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListPipelineParametersForExecutionPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListPipelineParametersForExecutionPages indicates an expected call of ListPipelineParametersForExecutionPages. +func (mr *MockSageMakerAPIMockRecorder) ListPipelineParametersForExecutionPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPipelineParametersForExecutionPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListPipelineParametersForExecutionPages), arg0, arg1) +} + +// ListPipelineParametersForExecutionPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListPipelineParametersForExecutionPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListPipelineParametersForExecutionInput, arg2 func(*sagemaker.ListPipelineParametersForExecutionOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListPipelineParametersForExecutionPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListPipelineParametersForExecutionPagesWithContext indicates an expected call of ListPipelineParametersForExecutionPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListPipelineParametersForExecutionPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPipelineParametersForExecutionPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListPipelineParametersForExecutionPagesWithContext), varargs...) +} + +// ListPipelineParametersForExecutionRequest mocks base method. +func (m *MockSageMakerAPI) ListPipelineParametersForExecutionRequest(arg0 *sagemaker.ListPipelineParametersForExecutionInput) (*request.Request, *sagemaker.ListPipelineParametersForExecutionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListPipelineParametersForExecutionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListPipelineParametersForExecutionOutput) + return ret0, ret1 +} + +// ListPipelineParametersForExecutionRequest indicates an expected call of ListPipelineParametersForExecutionRequest. +func (mr *MockSageMakerAPIMockRecorder) ListPipelineParametersForExecutionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPipelineParametersForExecutionRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListPipelineParametersForExecutionRequest), arg0) +} + +// ListPipelineParametersForExecutionWithContext mocks base method. +func (m *MockSageMakerAPI) ListPipelineParametersForExecutionWithContext(arg0 aws.Context, arg1 *sagemaker.ListPipelineParametersForExecutionInput, arg2 ...request.Option) (*sagemaker.ListPipelineParametersForExecutionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListPipelineParametersForExecutionWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListPipelineParametersForExecutionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListPipelineParametersForExecutionWithContext indicates an expected call of ListPipelineParametersForExecutionWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListPipelineParametersForExecutionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPipelineParametersForExecutionWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListPipelineParametersForExecutionWithContext), varargs...) +} + +// ListPipelines mocks base method. +func (m *MockSageMakerAPI) ListPipelines(arg0 *sagemaker.ListPipelinesInput) (*sagemaker.ListPipelinesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListPipelines", arg0) + ret0, _ := ret[0].(*sagemaker.ListPipelinesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListPipelines indicates an expected call of ListPipelines. +func (mr *MockSageMakerAPIMockRecorder) ListPipelines(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPipelines", reflect.TypeOf((*MockSageMakerAPI)(nil).ListPipelines), arg0) +} + +// ListPipelinesPages mocks base method. +func (m *MockSageMakerAPI) ListPipelinesPages(arg0 *sagemaker.ListPipelinesInput, arg1 func(*sagemaker.ListPipelinesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListPipelinesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListPipelinesPages indicates an expected call of ListPipelinesPages. +func (mr *MockSageMakerAPIMockRecorder) ListPipelinesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPipelinesPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListPipelinesPages), arg0, arg1) +} + +// ListPipelinesPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListPipelinesPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListPipelinesInput, arg2 func(*sagemaker.ListPipelinesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListPipelinesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListPipelinesPagesWithContext indicates an expected call of ListPipelinesPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListPipelinesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPipelinesPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListPipelinesPagesWithContext), varargs...) +} + +// ListPipelinesRequest mocks base method. +func (m *MockSageMakerAPI) ListPipelinesRequest(arg0 *sagemaker.ListPipelinesInput) (*request.Request, *sagemaker.ListPipelinesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListPipelinesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListPipelinesOutput) + return ret0, ret1 +} + +// ListPipelinesRequest indicates an expected call of ListPipelinesRequest. +func (mr *MockSageMakerAPIMockRecorder) ListPipelinesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPipelinesRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListPipelinesRequest), arg0) +} + +// ListPipelinesWithContext mocks base method. +func (m *MockSageMakerAPI) ListPipelinesWithContext(arg0 aws.Context, arg1 *sagemaker.ListPipelinesInput, arg2 ...request.Option) (*sagemaker.ListPipelinesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListPipelinesWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListPipelinesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListPipelinesWithContext indicates an expected call of ListPipelinesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListPipelinesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPipelinesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListPipelinesWithContext), varargs...) +} + +// ListProcessingJobs mocks base method. +func (m *MockSageMakerAPI) ListProcessingJobs(arg0 *sagemaker.ListProcessingJobsInput) (*sagemaker.ListProcessingJobsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListProcessingJobs", arg0) + ret0, _ := ret[0].(*sagemaker.ListProcessingJobsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListProcessingJobs indicates an expected call of ListProcessingJobs. +func (mr *MockSageMakerAPIMockRecorder) ListProcessingJobs(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListProcessingJobs", reflect.TypeOf((*MockSageMakerAPI)(nil).ListProcessingJobs), arg0) +} + +// ListProcessingJobsPages mocks base method. +func (m *MockSageMakerAPI) ListProcessingJobsPages(arg0 *sagemaker.ListProcessingJobsInput, arg1 func(*sagemaker.ListProcessingJobsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListProcessingJobsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListProcessingJobsPages indicates an expected call of ListProcessingJobsPages. +func (mr *MockSageMakerAPIMockRecorder) ListProcessingJobsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListProcessingJobsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListProcessingJobsPages), arg0, arg1) +} + +// ListProcessingJobsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListProcessingJobsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListProcessingJobsInput, arg2 func(*sagemaker.ListProcessingJobsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListProcessingJobsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListProcessingJobsPagesWithContext indicates an expected call of ListProcessingJobsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListProcessingJobsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListProcessingJobsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListProcessingJobsPagesWithContext), varargs...) +} + +// ListProcessingJobsRequest mocks base method. +func (m *MockSageMakerAPI) ListProcessingJobsRequest(arg0 *sagemaker.ListProcessingJobsInput) (*request.Request, *sagemaker.ListProcessingJobsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListProcessingJobsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListProcessingJobsOutput) + return ret0, ret1 +} + +// ListProcessingJobsRequest indicates an expected call of ListProcessingJobsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListProcessingJobsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListProcessingJobsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListProcessingJobsRequest), arg0) +} + +// ListProcessingJobsWithContext mocks base method. +func (m *MockSageMakerAPI) ListProcessingJobsWithContext(arg0 aws.Context, arg1 *sagemaker.ListProcessingJobsInput, arg2 ...request.Option) (*sagemaker.ListProcessingJobsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListProcessingJobsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListProcessingJobsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListProcessingJobsWithContext indicates an expected call of ListProcessingJobsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListProcessingJobsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListProcessingJobsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListProcessingJobsWithContext), varargs...) +} + +// ListProjects mocks base method. +func (m *MockSageMakerAPI) ListProjects(arg0 *sagemaker.ListProjectsInput) (*sagemaker.ListProjectsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListProjects", arg0) + ret0, _ := ret[0].(*sagemaker.ListProjectsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListProjects indicates an expected call of ListProjects. +func (mr *MockSageMakerAPIMockRecorder) ListProjects(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListProjects", reflect.TypeOf((*MockSageMakerAPI)(nil).ListProjects), arg0) +} + +// ListProjectsPages mocks base method. +func (m *MockSageMakerAPI) ListProjectsPages(arg0 *sagemaker.ListProjectsInput, arg1 func(*sagemaker.ListProjectsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListProjectsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListProjectsPages indicates an expected call of ListProjectsPages. +func (mr *MockSageMakerAPIMockRecorder) ListProjectsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListProjectsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListProjectsPages), arg0, arg1) +} + +// ListProjectsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListProjectsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListProjectsInput, arg2 func(*sagemaker.ListProjectsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListProjectsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListProjectsPagesWithContext indicates an expected call of ListProjectsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListProjectsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListProjectsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListProjectsPagesWithContext), varargs...) +} + +// ListProjectsRequest mocks base method. +func (m *MockSageMakerAPI) ListProjectsRequest(arg0 *sagemaker.ListProjectsInput) (*request.Request, *sagemaker.ListProjectsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListProjectsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListProjectsOutput) + return ret0, ret1 +} + +// ListProjectsRequest indicates an expected call of ListProjectsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListProjectsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListProjectsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListProjectsRequest), arg0) +} + +// ListProjectsWithContext mocks base method. +func (m *MockSageMakerAPI) ListProjectsWithContext(arg0 aws.Context, arg1 *sagemaker.ListProjectsInput, arg2 ...request.Option) (*sagemaker.ListProjectsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListProjectsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListProjectsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListProjectsWithContext indicates an expected call of ListProjectsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListProjectsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListProjectsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListProjectsWithContext), varargs...) +} + +// ListResourceCatalogs mocks base method. +func (m *MockSageMakerAPI) ListResourceCatalogs(arg0 *sagemaker.ListResourceCatalogsInput) (*sagemaker.ListResourceCatalogsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResourceCatalogs", arg0) + ret0, _ := ret[0].(*sagemaker.ListResourceCatalogsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListResourceCatalogs indicates an expected call of ListResourceCatalogs. +func (mr *MockSageMakerAPIMockRecorder) ListResourceCatalogs(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceCatalogs", reflect.TypeOf((*MockSageMakerAPI)(nil).ListResourceCatalogs), arg0) +} + +// ListResourceCatalogsPages mocks base method. +func (m *MockSageMakerAPI) ListResourceCatalogsPages(arg0 *sagemaker.ListResourceCatalogsInput, arg1 func(*sagemaker.ListResourceCatalogsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResourceCatalogsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListResourceCatalogsPages indicates an expected call of ListResourceCatalogsPages. +func (mr *MockSageMakerAPIMockRecorder) ListResourceCatalogsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceCatalogsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListResourceCatalogsPages), arg0, arg1) +} + +// ListResourceCatalogsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListResourceCatalogsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListResourceCatalogsInput, arg2 func(*sagemaker.ListResourceCatalogsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListResourceCatalogsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListResourceCatalogsPagesWithContext indicates an expected call of ListResourceCatalogsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListResourceCatalogsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceCatalogsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListResourceCatalogsPagesWithContext), varargs...) +} + +// ListResourceCatalogsRequest mocks base method. +func (m *MockSageMakerAPI) ListResourceCatalogsRequest(arg0 *sagemaker.ListResourceCatalogsInput) (*request.Request, *sagemaker.ListResourceCatalogsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResourceCatalogsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListResourceCatalogsOutput) + return ret0, ret1 +} + +// ListResourceCatalogsRequest indicates an expected call of ListResourceCatalogsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListResourceCatalogsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceCatalogsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListResourceCatalogsRequest), arg0) +} + +// ListResourceCatalogsWithContext mocks base method. +func (m *MockSageMakerAPI) ListResourceCatalogsWithContext(arg0 aws.Context, arg1 *sagemaker.ListResourceCatalogsInput, arg2 ...request.Option) (*sagemaker.ListResourceCatalogsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListResourceCatalogsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListResourceCatalogsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListResourceCatalogsWithContext indicates an expected call of ListResourceCatalogsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListResourceCatalogsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceCatalogsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListResourceCatalogsWithContext), varargs...) +} + +// ListSpaces mocks base method. +func (m *MockSageMakerAPI) ListSpaces(arg0 *sagemaker.ListSpacesInput) (*sagemaker.ListSpacesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListSpaces", arg0) + ret0, _ := ret[0].(*sagemaker.ListSpacesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListSpaces indicates an expected call of ListSpaces. +func (mr *MockSageMakerAPIMockRecorder) ListSpaces(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSpaces", reflect.TypeOf((*MockSageMakerAPI)(nil).ListSpaces), arg0) +} + +// ListSpacesPages mocks base method. +func (m *MockSageMakerAPI) ListSpacesPages(arg0 *sagemaker.ListSpacesInput, arg1 func(*sagemaker.ListSpacesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListSpacesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListSpacesPages indicates an expected call of ListSpacesPages. +func (mr *MockSageMakerAPIMockRecorder) ListSpacesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSpacesPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListSpacesPages), arg0, arg1) +} + +// ListSpacesPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListSpacesPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListSpacesInput, arg2 func(*sagemaker.ListSpacesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListSpacesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListSpacesPagesWithContext indicates an expected call of ListSpacesPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListSpacesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSpacesPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListSpacesPagesWithContext), varargs...) +} + +// ListSpacesRequest mocks base method. +func (m *MockSageMakerAPI) ListSpacesRequest(arg0 *sagemaker.ListSpacesInput) (*request.Request, *sagemaker.ListSpacesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListSpacesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListSpacesOutput) + return ret0, ret1 +} + +// ListSpacesRequest indicates an expected call of ListSpacesRequest. +func (mr *MockSageMakerAPIMockRecorder) ListSpacesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSpacesRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListSpacesRequest), arg0) +} + +// ListSpacesWithContext mocks base method. +func (m *MockSageMakerAPI) ListSpacesWithContext(arg0 aws.Context, arg1 *sagemaker.ListSpacesInput, arg2 ...request.Option) (*sagemaker.ListSpacesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListSpacesWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListSpacesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListSpacesWithContext indicates an expected call of ListSpacesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListSpacesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSpacesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListSpacesWithContext), varargs...) +} + +// ListStageDevices mocks base method. +func (m *MockSageMakerAPI) ListStageDevices(arg0 *sagemaker.ListStageDevicesInput) (*sagemaker.ListStageDevicesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListStageDevices", arg0) + ret0, _ := ret[0].(*sagemaker.ListStageDevicesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListStageDevices indicates an expected call of ListStageDevices. +func (mr *MockSageMakerAPIMockRecorder) ListStageDevices(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStageDevices", reflect.TypeOf((*MockSageMakerAPI)(nil).ListStageDevices), arg0) +} + +// ListStageDevicesPages mocks base method. +func (m *MockSageMakerAPI) ListStageDevicesPages(arg0 *sagemaker.ListStageDevicesInput, arg1 func(*sagemaker.ListStageDevicesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListStageDevicesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListStageDevicesPages indicates an expected call of ListStageDevicesPages. +func (mr *MockSageMakerAPIMockRecorder) ListStageDevicesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStageDevicesPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListStageDevicesPages), arg0, arg1) +} + +// ListStageDevicesPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListStageDevicesPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListStageDevicesInput, arg2 func(*sagemaker.ListStageDevicesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListStageDevicesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListStageDevicesPagesWithContext indicates an expected call of ListStageDevicesPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListStageDevicesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStageDevicesPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListStageDevicesPagesWithContext), varargs...) +} + +// ListStageDevicesRequest mocks base method. +func (m *MockSageMakerAPI) ListStageDevicesRequest(arg0 *sagemaker.ListStageDevicesInput) (*request.Request, *sagemaker.ListStageDevicesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListStageDevicesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListStageDevicesOutput) + return ret0, ret1 +} + +// ListStageDevicesRequest indicates an expected call of ListStageDevicesRequest. +func (mr *MockSageMakerAPIMockRecorder) ListStageDevicesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStageDevicesRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListStageDevicesRequest), arg0) +} + +// ListStageDevicesWithContext mocks base method. +func (m *MockSageMakerAPI) ListStageDevicesWithContext(arg0 aws.Context, arg1 *sagemaker.ListStageDevicesInput, arg2 ...request.Option) (*sagemaker.ListStageDevicesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListStageDevicesWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListStageDevicesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListStageDevicesWithContext indicates an expected call of ListStageDevicesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListStageDevicesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStageDevicesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListStageDevicesWithContext), varargs...) +} + +// ListStudioLifecycleConfigs mocks base method. +func (m *MockSageMakerAPI) ListStudioLifecycleConfigs(arg0 *sagemaker.ListStudioLifecycleConfigsInput) (*sagemaker.ListStudioLifecycleConfigsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListStudioLifecycleConfigs", arg0) + ret0, _ := ret[0].(*sagemaker.ListStudioLifecycleConfigsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListStudioLifecycleConfigs indicates an expected call of ListStudioLifecycleConfigs. +func (mr *MockSageMakerAPIMockRecorder) ListStudioLifecycleConfigs(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStudioLifecycleConfigs", reflect.TypeOf((*MockSageMakerAPI)(nil).ListStudioLifecycleConfigs), arg0) +} + +// ListStudioLifecycleConfigsPages mocks base method. +func (m *MockSageMakerAPI) ListStudioLifecycleConfigsPages(arg0 *sagemaker.ListStudioLifecycleConfigsInput, arg1 func(*sagemaker.ListStudioLifecycleConfigsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListStudioLifecycleConfigsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListStudioLifecycleConfigsPages indicates an expected call of ListStudioLifecycleConfigsPages. +func (mr *MockSageMakerAPIMockRecorder) ListStudioLifecycleConfigsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStudioLifecycleConfigsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListStudioLifecycleConfigsPages), arg0, arg1) +} + +// ListStudioLifecycleConfigsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListStudioLifecycleConfigsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListStudioLifecycleConfigsInput, arg2 func(*sagemaker.ListStudioLifecycleConfigsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListStudioLifecycleConfigsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListStudioLifecycleConfigsPagesWithContext indicates an expected call of ListStudioLifecycleConfigsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListStudioLifecycleConfigsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStudioLifecycleConfigsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListStudioLifecycleConfigsPagesWithContext), varargs...) +} + +// ListStudioLifecycleConfigsRequest mocks base method. +func (m *MockSageMakerAPI) ListStudioLifecycleConfigsRequest(arg0 *sagemaker.ListStudioLifecycleConfigsInput) (*request.Request, *sagemaker.ListStudioLifecycleConfigsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListStudioLifecycleConfigsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListStudioLifecycleConfigsOutput) + return ret0, ret1 +} + +// ListStudioLifecycleConfigsRequest indicates an expected call of ListStudioLifecycleConfigsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListStudioLifecycleConfigsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStudioLifecycleConfigsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListStudioLifecycleConfigsRequest), arg0) +} + +// ListStudioLifecycleConfigsWithContext mocks base method. +func (m *MockSageMakerAPI) ListStudioLifecycleConfigsWithContext(arg0 aws.Context, arg1 *sagemaker.ListStudioLifecycleConfigsInput, arg2 ...request.Option) (*sagemaker.ListStudioLifecycleConfigsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListStudioLifecycleConfigsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListStudioLifecycleConfigsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListStudioLifecycleConfigsWithContext indicates an expected call of ListStudioLifecycleConfigsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListStudioLifecycleConfigsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStudioLifecycleConfigsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListStudioLifecycleConfigsWithContext), varargs...) +} + +// ListSubscribedWorkteams mocks base method. +func (m *MockSageMakerAPI) ListSubscribedWorkteams(arg0 *sagemaker.ListSubscribedWorkteamsInput) (*sagemaker.ListSubscribedWorkteamsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListSubscribedWorkteams", arg0) + ret0, _ := ret[0].(*sagemaker.ListSubscribedWorkteamsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListSubscribedWorkteams indicates an expected call of ListSubscribedWorkteams. +func (mr *MockSageMakerAPIMockRecorder) ListSubscribedWorkteams(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSubscribedWorkteams", reflect.TypeOf((*MockSageMakerAPI)(nil).ListSubscribedWorkteams), arg0) +} + +// ListSubscribedWorkteamsPages mocks base method. +func (m *MockSageMakerAPI) ListSubscribedWorkteamsPages(arg0 *sagemaker.ListSubscribedWorkteamsInput, arg1 func(*sagemaker.ListSubscribedWorkteamsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListSubscribedWorkteamsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListSubscribedWorkteamsPages indicates an expected call of ListSubscribedWorkteamsPages. +func (mr *MockSageMakerAPIMockRecorder) ListSubscribedWorkteamsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSubscribedWorkteamsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListSubscribedWorkteamsPages), arg0, arg1) +} + +// ListSubscribedWorkteamsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListSubscribedWorkteamsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListSubscribedWorkteamsInput, arg2 func(*sagemaker.ListSubscribedWorkteamsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListSubscribedWorkteamsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListSubscribedWorkteamsPagesWithContext indicates an expected call of ListSubscribedWorkteamsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListSubscribedWorkteamsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSubscribedWorkteamsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListSubscribedWorkteamsPagesWithContext), varargs...) +} + +// ListSubscribedWorkteamsRequest mocks base method. +func (m *MockSageMakerAPI) ListSubscribedWorkteamsRequest(arg0 *sagemaker.ListSubscribedWorkteamsInput) (*request.Request, *sagemaker.ListSubscribedWorkteamsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListSubscribedWorkteamsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListSubscribedWorkteamsOutput) + return ret0, ret1 +} + +// ListSubscribedWorkteamsRequest indicates an expected call of ListSubscribedWorkteamsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListSubscribedWorkteamsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSubscribedWorkteamsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListSubscribedWorkteamsRequest), arg0) +} + +// ListSubscribedWorkteamsWithContext mocks base method. +func (m *MockSageMakerAPI) ListSubscribedWorkteamsWithContext(arg0 aws.Context, arg1 *sagemaker.ListSubscribedWorkteamsInput, arg2 ...request.Option) (*sagemaker.ListSubscribedWorkteamsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListSubscribedWorkteamsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListSubscribedWorkteamsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListSubscribedWorkteamsWithContext indicates an expected call of ListSubscribedWorkteamsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListSubscribedWorkteamsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSubscribedWorkteamsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListSubscribedWorkteamsWithContext), varargs...) +} + +// ListTags mocks base method. +func (m *MockSageMakerAPI) ListTags(arg0 *sagemaker.ListTagsInput) (*sagemaker.ListTagsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTags", arg0) + ret0, _ := ret[0].(*sagemaker.ListTagsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTags indicates an expected call of ListTags. +func (mr *MockSageMakerAPIMockRecorder) ListTags(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTags", reflect.TypeOf((*MockSageMakerAPI)(nil).ListTags), arg0) +} + +// ListTagsPages mocks base method. +func (m *MockSageMakerAPI) ListTagsPages(arg0 *sagemaker.ListTagsInput, arg1 func(*sagemaker.ListTagsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTagsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTagsPages indicates an expected call of ListTagsPages. +func (mr *MockSageMakerAPIMockRecorder) ListTagsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListTagsPages), arg0, arg1) +} + +// ListTagsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListTagsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListTagsInput, arg2 func(*sagemaker.ListTagsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTagsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTagsPagesWithContext indicates an expected call of ListTagsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListTagsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListTagsPagesWithContext), varargs...) +} + +// ListTagsRequest mocks base method. +func (m *MockSageMakerAPI) ListTagsRequest(arg0 *sagemaker.ListTagsInput) (*request.Request, *sagemaker.ListTagsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTagsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListTagsOutput) + return ret0, ret1 +} + +// ListTagsRequest indicates an expected call of ListTagsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListTagsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListTagsRequest), arg0) +} + +// ListTagsWithContext mocks base method. +func (m *MockSageMakerAPI) ListTagsWithContext(arg0 aws.Context, arg1 *sagemaker.ListTagsInput, arg2 ...request.Option) (*sagemaker.ListTagsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTagsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListTagsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTagsWithContext indicates an expected call of ListTagsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListTagsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListTagsWithContext), varargs...) +} + +// ListTrainingJobs mocks base method. +func (m *MockSageMakerAPI) ListTrainingJobs(arg0 *sagemaker.ListTrainingJobsInput) (*sagemaker.ListTrainingJobsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTrainingJobs", arg0) + ret0, _ := ret[0].(*sagemaker.ListTrainingJobsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTrainingJobs indicates an expected call of ListTrainingJobs. +func (mr *MockSageMakerAPIMockRecorder) ListTrainingJobs(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrainingJobs", reflect.TypeOf((*MockSageMakerAPI)(nil).ListTrainingJobs), arg0) +} + +// ListTrainingJobsForHyperParameterTuningJob mocks base method. +func (m *MockSageMakerAPI) ListTrainingJobsForHyperParameterTuningJob(arg0 *sagemaker.ListTrainingJobsForHyperParameterTuningJobInput) (*sagemaker.ListTrainingJobsForHyperParameterTuningJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTrainingJobsForHyperParameterTuningJob", arg0) + ret0, _ := ret[0].(*sagemaker.ListTrainingJobsForHyperParameterTuningJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTrainingJobsForHyperParameterTuningJob indicates an expected call of ListTrainingJobsForHyperParameterTuningJob. +func (mr *MockSageMakerAPIMockRecorder) ListTrainingJobsForHyperParameterTuningJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrainingJobsForHyperParameterTuningJob", reflect.TypeOf((*MockSageMakerAPI)(nil).ListTrainingJobsForHyperParameterTuningJob), arg0) +} + +// ListTrainingJobsForHyperParameterTuningJobPages mocks base method. +func (m *MockSageMakerAPI) ListTrainingJobsForHyperParameterTuningJobPages(arg0 *sagemaker.ListTrainingJobsForHyperParameterTuningJobInput, arg1 func(*sagemaker.ListTrainingJobsForHyperParameterTuningJobOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTrainingJobsForHyperParameterTuningJobPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTrainingJobsForHyperParameterTuningJobPages indicates an expected call of ListTrainingJobsForHyperParameterTuningJobPages. +func (mr *MockSageMakerAPIMockRecorder) ListTrainingJobsForHyperParameterTuningJobPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrainingJobsForHyperParameterTuningJobPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListTrainingJobsForHyperParameterTuningJobPages), arg0, arg1) +} + +// ListTrainingJobsForHyperParameterTuningJobPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListTrainingJobsForHyperParameterTuningJobPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListTrainingJobsForHyperParameterTuningJobInput, arg2 func(*sagemaker.ListTrainingJobsForHyperParameterTuningJobOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTrainingJobsForHyperParameterTuningJobPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTrainingJobsForHyperParameterTuningJobPagesWithContext indicates an expected call of ListTrainingJobsForHyperParameterTuningJobPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListTrainingJobsForHyperParameterTuningJobPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrainingJobsForHyperParameterTuningJobPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListTrainingJobsForHyperParameterTuningJobPagesWithContext), varargs...) +} + +// ListTrainingJobsForHyperParameterTuningJobRequest mocks base method. +func (m *MockSageMakerAPI) ListTrainingJobsForHyperParameterTuningJobRequest(arg0 *sagemaker.ListTrainingJobsForHyperParameterTuningJobInput) (*request.Request, *sagemaker.ListTrainingJobsForHyperParameterTuningJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTrainingJobsForHyperParameterTuningJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListTrainingJobsForHyperParameterTuningJobOutput) + return ret0, ret1 +} + +// ListTrainingJobsForHyperParameterTuningJobRequest indicates an expected call of ListTrainingJobsForHyperParameterTuningJobRequest. +func (mr *MockSageMakerAPIMockRecorder) ListTrainingJobsForHyperParameterTuningJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrainingJobsForHyperParameterTuningJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListTrainingJobsForHyperParameterTuningJobRequest), arg0) +} + +// ListTrainingJobsForHyperParameterTuningJobWithContext mocks base method. +func (m *MockSageMakerAPI) ListTrainingJobsForHyperParameterTuningJobWithContext(arg0 aws.Context, arg1 *sagemaker.ListTrainingJobsForHyperParameterTuningJobInput, arg2 ...request.Option) (*sagemaker.ListTrainingJobsForHyperParameterTuningJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTrainingJobsForHyperParameterTuningJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListTrainingJobsForHyperParameterTuningJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTrainingJobsForHyperParameterTuningJobWithContext indicates an expected call of ListTrainingJobsForHyperParameterTuningJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListTrainingJobsForHyperParameterTuningJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrainingJobsForHyperParameterTuningJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListTrainingJobsForHyperParameterTuningJobWithContext), varargs...) +} + +// ListTrainingJobsPages mocks base method. +func (m *MockSageMakerAPI) ListTrainingJobsPages(arg0 *sagemaker.ListTrainingJobsInput, arg1 func(*sagemaker.ListTrainingJobsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTrainingJobsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTrainingJobsPages indicates an expected call of ListTrainingJobsPages. +func (mr *MockSageMakerAPIMockRecorder) ListTrainingJobsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrainingJobsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListTrainingJobsPages), arg0, arg1) +} + +// ListTrainingJobsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListTrainingJobsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListTrainingJobsInput, arg2 func(*sagemaker.ListTrainingJobsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTrainingJobsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTrainingJobsPagesWithContext indicates an expected call of ListTrainingJobsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListTrainingJobsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrainingJobsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListTrainingJobsPagesWithContext), varargs...) +} + +// ListTrainingJobsRequest mocks base method. +func (m *MockSageMakerAPI) ListTrainingJobsRequest(arg0 *sagemaker.ListTrainingJobsInput) (*request.Request, *sagemaker.ListTrainingJobsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTrainingJobsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListTrainingJobsOutput) + return ret0, ret1 +} + +// ListTrainingJobsRequest indicates an expected call of ListTrainingJobsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListTrainingJobsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrainingJobsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListTrainingJobsRequest), arg0) +} + +// ListTrainingJobsWithContext mocks base method. +func (m *MockSageMakerAPI) ListTrainingJobsWithContext(arg0 aws.Context, arg1 *sagemaker.ListTrainingJobsInput, arg2 ...request.Option) (*sagemaker.ListTrainingJobsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTrainingJobsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListTrainingJobsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTrainingJobsWithContext indicates an expected call of ListTrainingJobsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListTrainingJobsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrainingJobsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListTrainingJobsWithContext), varargs...) +} + +// ListTransformJobs mocks base method. +func (m *MockSageMakerAPI) ListTransformJobs(arg0 *sagemaker.ListTransformJobsInput) (*sagemaker.ListTransformJobsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTransformJobs", arg0) + ret0, _ := ret[0].(*sagemaker.ListTransformJobsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTransformJobs indicates an expected call of ListTransformJobs. +func (mr *MockSageMakerAPIMockRecorder) ListTransformJobs(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTransformJobs", reflect.TypeOf((*MockSageMakerAPI)(nil).ListTransformJobs), arg0) +} + +// ListTransformJobsPages mocks base method. +func (m *MockSageMakerAPI) ListTransformJobsPages(arg0 *sagemaker.ListTransformJobsInput, arg1 func(*sagemaker.ListTransformJobsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTransformJobsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTransformJobsPages indicates an expected call of ListTransformJobsPages. +func (mr *MockSageMakerAPIMockRecorder) ListTransformJobsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTransformJobsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListTransformJobsPages), arg0, arg1) +} + +// ListTransformJobsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListTransformJobsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListTransformJobsInput, arg2 func(*sagemaker.ListTransformJobsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTransformJobsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTransformJobsPagesWithContext indicates an expected call of ListTransformJobsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListTransformJobsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTransformJobsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListTransformJobsPagesWithContext), varargs...) +} + +// ListTransformJobsRequest mocks base method. +func (m *MockSageMakerAPI) ListTransformJobsRequest(arg0 *sagemaker.ListTransformJobsInput) (*request.Request, *sagemaker.ListTransformJobsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTransformJobsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListTransformJobsOutput) + return ret0, ret1 +} + +// ListTransformJobsRequest indicates an expected call of ListTransformJobsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListTransformJobsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTransformJobsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListTransformJobsRequest), arg0) +} + +// ListTransformJobsWithContext mocks base method. +func (m *MockSageMakerAPI) ListTransformJobsWithContext(arg0 aws.Context, arg1 *sagemaker.ListTransformJobsInput, arg2 ...request.Option) (*sagemaker.ListTransformJobsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTransformJobsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListTransformJobsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTransformJobsWithContext indicates an expected call of ListTransformJobsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListTransformJobsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTransformJobsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListTransformJobsWithContext), varargs...) +} + +// ListTrialComponents mocks base method. +func (m *MockSageMakerAPI) ListTrialComponents(arg0 *sagemaker.ListTrialComponentsInput) (*sagemaker.ListTrialComponentsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTrialComponents", arg0) + ret0, _ := ret[0].(*sagemaker.ListTrialComponentsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTrialComponents indicates an expected call of ListTrialComponents. +func (mr *MockSageMakerAPIMockRecorder) ListTrialComponents(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrialComponents", reflect.TypeOf((*MockSageMakerAPI)(nil).ListTrialComponents), arg0) +} + +// ListTrialComponentsPages mocks base method. +func (m *MockSageMakerAPI) ListTrialComponentsPages(arg0 *sagemaker.ListTrialComponentsInput, arg1 func(*sagemaker.ListTrialComponentsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTrialComponentsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTrialComponentsPages indicates an expected call of ListTrialComponentsPages. +func (mr *MockSageMakerAPIMockRecorder) ListTrialComponentsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrialComponentsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListTrialComponentsPages), arg0, arg1) +} + +// ListTrialComponentsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListTrialComponentsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListTrialComponentsInput, arg2 func(*sagemaker.ListTrialComponentsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTrialComponentsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTrialComponentsPagesWithContext indicates an expected call of ListTrialComponentsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListTrialComponentsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrialComponentsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListTrialComponentsPagesWithContext), varargs...) +} + +// ListTrialComponentsRequest mocks base method. +func (m *MockSageMakerAPI) ListTrialComponentsRequest(arg0 *sagemaker.ListTrialComponentsInput) (*request.Request, *sagemaker.ListTrialComponentsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTrialComponentsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListTrialComponentsOutput) + return ret0, ret1 +} + +// ListTrialComponentsRequest indicates an expected call of ListTrialComponentsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListTrialComponentsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrialComponentsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListTrialComponentsRequest), arg0) +} + +// ListTrialComponentsWithContext mocks base method. +func (m *MockSageMakerAPI) ListTrialComponentsWithContext(arg0 aws.Context, arg1 *sagemaker.ListTrialComponentsInput, arg2 ...request.Option) (*sagemaker.ListTrialComponentsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTrialComponentsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListTrialComponentsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTrialComponentsWithContext indicates an expected call of ListTrialComponentsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListTrialComponentsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrialComponentsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListTrialComponentsWithContext), varargs...) +} + +// ListTrials mocks base method. +func (m *MockSageMakerAPI) ListTrials(arg0 *sagemaker.ListTrialsInput) (*sagemaker.ListTrialsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTrials", arg0) + ret0, _ := ret[0].(*sagemaker.ListTrialsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTrials indicates an expected call of ListTrials. +func (mr *MockSageMakerAPIMockRecorder) ListTrials(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrials", reflect.TypeOf((*MockSageMakerAPI)(nil).ListTrials), arg0) +} + +// ListTrialsPages mocks base method. +func (m *MockSageMakerAPI) ListTrialsPages(arg0 *sagemaker.ListTrialsInput, arg1 func(*sagemaker.ListTrialsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTrialsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTrialsPages indicates an expected call of ListTrialsPages. +func (mr *MockSageMakerAPIMockRecorder) ListTrialsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrialsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListTrialsPages), arg0, arg1) +} + +// ListTrialsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListTrialsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListTrialsInput, arg2 func(*sagemaker.ListTrialsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTrialsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTrialsPagesWithContext indicates an expected call of ListTrialsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListTrialsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrialsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListTrialsPagesWithContext), varargs...) +} + +// ListTrialsRequest mocks base method. +func (m *MockSageMakerAPI) ListTrialsRequest(arg0 *sagemaker.ListTrialsInput) (*request.Request, *sagemaker.ListTrialsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTrialsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListTrialsOutput) + return ret0, ret1 +} + +// ListTrialsRequest indicates an expected call of ListTrialsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListTrialsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrialsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListTrialsRequest), arg0) +} + +// ListTrialsWithContext mocks base method. +func (m *MockSageMakerAPI) ListTrialsWithContext(arg0 aws.Context, arg1 *sagemaker.ListTrialsInput, arg2 ...request.Option) (*sagemaker.ListTrialsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTrialsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListTrialsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTrialsWithContext indicates an expected call of ListTrialsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListTrialsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrialsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListTrialsWithContext), varargs...) +} + +// ListUserProfiles mocks base method. +func (m *MockSageMakerAPI) ListUserProfiles(arg0 *sagemaker.ListUserProfilesInput) (*sagemaker.ListUserProfilesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListUserProfiles", arg0) + ret0, _ := ret[0].(*sagemaker.ListUserProfilesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListUserProfiles indicates an expected call of ListUserProfiles. +func (mr *MockSageMakerAPIMockRecorder) ListUserProfiles(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUserProfiles", reflect.TypeOf((*MockSageMakerAPI)(nil).ListUserProfiles), arg0) +} + +// ListUserProfilesPages mocks base method. +func (m *MockSageMakerAPI) ListUserProfilesPages(arg0 *sagemaker.ListUserProfilesInput, arg1 func(*sagemaker.ListUserProfilesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListUserProfilesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListUserProfilesPages indicates an expected call of ListUserProfilesPages. +func (mr *MockSageMakerAPIMockRecorder) ListUserProfilesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUserProfilesPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListUserProfilesPages), arg0, arg1) +} + +// ListUserProfilesPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListUserProfilesPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListUserProfilesInput, arg2 func(*sagemaker.ListUserProfilesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListUserProfilesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListUserProfilesPagesWithContext indicates an expected call of ListUserProfilesPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListUserProfilesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUserProfilesPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListUserProfilesPagesWithContext), varargs...) +} + +// ListUserProfilesRequest mocks base method. +func (m *MockSageMakerAPI) ListUserProfilesRequest(arg0 *sagemaker.ListUserProfilesInput) (*request.Request, *sagemaker.ListUserProfilesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListUserProfilesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListUserProfilesOutput) + return ret0, ret1 +} + +// ListUserProfilesRequest indicates an expected call of ListUserProfilesRequest. +func (mr *MockSageMakerAPIMockRecorder) ListUserProfilesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUserProfilesRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListUserProfilesRequest), arg0) +} + +// ListUserProfilesWithContext mocks base method. +func (m *MockSageMakerAPI) ListUserProfilesWithContext(arg0 aws.Context, arg1 *sagemaker.ListUserProfilesInput, arg2 ...request.Option) (*sagemaker.ListUserProfilesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListUserProfilesWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListUserProfilesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListUserProfilesWithContext indicates an expected call of ListUserProfilesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListUserProfilesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUserProfilesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListUserProfilesWithContext), varargs...) +} + +// ListWorkforces mocks base method. +func (m *MockSageMakerAPI) ListWorkforces(arg0 *sagemaker.ListWorkforcesInput) (*sagemaker.ListWorkforcesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListWorkforces", arg0) + ret0, _ := ret[0].(*sagemaker.ListWorkforcesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListWorkforces indicates an expected call of ListWorkforces. +func (mr *MockSageMakerAPIMockRecorder) ListWorkforces(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListWorkforces", reflect.TypeOf((*MockSageMakerAPI)(nil).ListWorkforces), arg0) +} + +// ListWorkforcesPages mocks base method. +func (m *MockSageMakerAPI) ListWorkforcesPages(arg0 *sagemaker.ListWorkforcesInput, arg1 func(*sagemaker.ListWorkforcesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListWorkforcesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListWorkforcesPages indicates an expected call of ListWorkforcesPages. +func (mr *MockSageMakerAPIMockRecorder) ListWorkforcesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListWorkforcesPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListWorkforcesPages), arg0, arg1) +} + +// ListWorkforcesPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListWorkforcesPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListWorkforcesInput, arg2 func(*sagemaker.ListWorkforcesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListWorkforcesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListWorkforcesPagesWithContext indicates an expected call of ListWorkforcesPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListWorkforcesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListWorkforcesPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListWorkforcesPagesWithContext), varargs...) +} + +// ListWorkforcesRequest mocks base method. +func (m *MockSageMakerAPI) ListWorkforcesRequest(arg0 *sagemaker.ListWorkforcesInput) (*request.Request, *sagemaker.ListWorkforcesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListWorkforcesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListWorkforcesOutput) + return ret0, ret1 +} + +// ListWorkforcesRequest indicates an expected call of ListWorkforcesRequest. +func (mr *MockSageMakerAPIMockRecorder) ListWorkforcesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListWorkforcesRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListWorkforcesRequest), arg0) +} + +// ListWorkforcesWithContext mocks base method. +func (m *MockSageMakerAPI) ListWorkforcesWithContext(arg0 aws.Context, arg1 *sagemaker.ListWorkforcesInput, arg2 ...request.Option) (*sagemaker.ListWorkforcesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListWorkforcesWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListWorkforcesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListWorkforcesWithContext indicates an expected call of ListWorkforcesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListWorkforcesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListWorkforcesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListWorkforcesWithContext), varargs...) +} + +// ListWorkteams mocks base method. +func (m *MockSageMakerAPI) ListWorkteams(arg0 *sagemaker.ListWorkteamsInput) (*sagemaker.ListWorkteamsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListWorkteams", arg0) + ret0, _ := ret[0].(*sagemaker.ListWorkteamsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListWorkteams indicates an expected call of ListWorkteams. +func (mr *MockSageMakerAPIMockRecorder) ListWorkteams(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListWorkteams", reflect.TypeOf((*MockSageMakerAPI)(nil).ListWorkteams), arg0) +} + +// ListWorkteamsPages mocks base method. +func (m *MockSageMakerAPI) ListWorkteamsPages(arg0 *sagemaker.ListWorkteamsInput, arg1 func(*sagemaker.ListWorkteamsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListWorkteamsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListWorkteamsPages indicates an expected call of ListWorkteamsPages. +func (mr *MockSageMakerAPIMockRecorder) ListWorkteamsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListWorkteamsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListWorkteamsPages), arg0, arg1) +} + +// ListWorkteamsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListWorkteamsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListWorkteamsInput, arg2 func(*sagemaker.ListWorkteamsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListWorkteamsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListWorkteamsPagesWithContext indicates an expected call of ListWorkteamsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListWorkteamsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListWorkteamsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListWorkteamsPagesWithContext), varargs...) +} + +// ListWorkteamsRequest mocks base method. +func (m *MockSageMakerAPI) ListWorkteamsRequest(arg0 *sagemaker.ListWorkteamsInput) (*request.Request, *sagemaker.ListWorkteamsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListWorkteamsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListWorkteamsOutput) + return ret0, ret1 +} + +// ListWorkteamsRequest indicates an expected call of ListWorkteamsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListWorkteamsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListWorkteamsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListWorkteamsRequest), arg0) +} + +// ListWorkteamsWithContext mocks base method. +func (m *MockSageMakerAPI) ListWorkteamsWithContext(arg0 aws.Context, arg1 *sagemaker.ListWorkteamsInput, arg2 ...request.Option) (*sagemaker.ListWorkteamsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListWorkteamsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListWorkteamsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListWorkteamsWithContext indicates an expected call of ListWorkteamsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListWorkteamsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListWorkteamsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListWorkteamsWithContext), varargs...) +} + +// PutModelPackageGroupPolicy mocks base method. +func (m *MockSageMakerAPI) PutModelPackageGroupPolicy(arg0 *sagemaker.PutModelPackageGroupPolicyInput) (*sagemaker.PutModelPackageGroupPolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutModelPackageGroupPolicy", arg0) + ret0, _ := ret[0].(*sagemaker.PutModelPackageGroupPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutModelPackageGroupPolicy indicates an expected call of PutModelPackageGroupPolicy. +func (mr *MockSageMakerAPIMockRecorder) PutModelPackageGroupPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutModelPackageGroupPolicy", reflect.TypeOf((*MockSageMakerAPI)(nil).PutModelPackageGroupPolicy), arg0) +} + +// PutModelPackageGroupPolicyRequest mocks base method. +func (m *MockSageMakerAPI) PutModelPackageGroupPolicyRequest(arg0 *sagemaker.PutModelPackageGroupPolicyInput) (*request.Request, *sagemaker.PutModelPackageGroupPolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutModelPackageGroupPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.PutModelPackageGroupPolicyOutput) + return ret0, ret1 +} + +// PutModelPackageGroupPolicyRequest indicates an expected call of PutModelPackageGroupPolicyRequest. +func (mr *MockSageMakerAPIMockRecorder) PutModelPackageGroupPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutModelPackageGroupPolicyRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).PutModelPackageGroupPolicyRequest), arg0) +} + +// PutModelPackageGroupPolicyWithContext mocks base method. +func (m *MockSageMakerAPI) PutModelPackageGroupPolicyWithContext(arg0 aws.Context, arg1 *sagemaker.PutModelPackageGroupPolicyInput, arg2 ...request.Option) (*sagemaker.PutModelPackageGroupPolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PutModelPackageGroupPolicyWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.PutModelPackageGroupPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutModelPackageGroupPolicyWithContext indicates an expected call of PutModelPackageGroupPolicyWithContext. +func (mr *MockSageMakerAPIMockRecorder) PutModelPackageGroupPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutModelPackageGroupPolicyWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).PutModelPackageGroupPolicyWithContext), varargs...) +} + +// QueryLineage mocks base method. +func (m *MockSageMakerAPI) QueryLineage(arg0 *sagemaker.QueryLineageInput) (*sagemaker.QueryLineageOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "QueryLineage", arg0) + ret0, _ := ret[0].(*sagemaker.QueryLineageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// QueryLineage indicates an expected call of QueryLineage. +func (mr *MockSageMakerAPIMockRecorder) QueryLineage(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryLineage", reflect.TypeOf((*MockSageMakerAPI)(nil).QueryLineage), arg0) +} + +// QueryLineagePages mocks base method. +func (m *MockSageMakerAPI) QueryLineagePages(arg0 *sagemaker.QueryLineageInput, arg1 func(*sagemaker.QueryLineageOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "QueryLineagePages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// QueryLineagePages indicates an expected call of QueryLineagePages. +func (mr *MockSageMakerAPIMockRecorder) QueryLineagePages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryLineagePages", reflect.TypeOf((*MockSageMakerAPI)(nil).QueryLineagePages), arg0, arg1) +} + +// QueryLineagePagesWithContext mocks base method. +func (m *MockSageMakerAPI) QueryLineagePagesWithContext(arg0 aws.Context, arg1 *sagemaker.QueryLineageInput, arg2 func(*sagemaker.QueryLineageOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "QueryLineagePagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// QueryLineagePagesWithContext indicates an expected call of QueryLineagePagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) QueryLineagePagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryLineagePagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).QueryLineagePagesWithContext), varargs...) +} + +// QueryLineageRequest mocks base method. +func (m *MockSageMakerAPI) QueryLineageRequest(arg0 *sagemaker.QueryLineageInput) (*request.Request, *sagemaker.QueryLineageOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "QueryLineageRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.QueryLineageOutput) + return ret0, ret1 +} + +// QueryLineageRequest indicates an expected call of QueryLineageRequest. +func (mr *MockSageMakerAPIMockRecorder) QueryLineageRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryLineageRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).QueryLineageRequest), arg0) +} + +// QueryLineageWithContext mocks base method. +func (m *MockSageMakerAPI) QueryLineageWithContext(arg0 aws.Context, arg1 *sagemaker.QueryLineageInput, arg2 ...request.Option) (*sagemaker.QueryLineageOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "QueryLineageWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.QueryLineageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// QueryLineageWithContext indicates an expected call of QueryLineageWithContext. +func (mr *MockSageMakerAPIMockRecorder) QueryLineageWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryLineageWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).QueryLineageWithContext), varargs...) +} + +// RegisterDevices mocks base method. +func (m *MockSageMakerAPI) RegisterDevices(arg0 *sagemaker.RegisterDevicesInput) (*sagemaker.RegisterDevicesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RegisterDevices", arg0) + ret0, _ := ret[0].(*sagemaker.RegisterDevicesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RegisterDevices indicates an expected call of RegisterDevices. +func (mr *MockSageMakerAPIMockRecorder) RegisterDevices(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterDevices", reflect.TypeOf((*MockSageMakerAPI)(nil).RegisterDevices), arg0) +} + +// RegisterDevicesRequest mocks base method. +func (m *MockSageMakerAPI) RegisterDevicesRequest(arg0 *sagemaker.RegisterDevicesInput) (*request.Request, *sagemaker.RegisterDevicesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RegisterDevicesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.RegisterDevicesOutput) + return ret0, ret1 +} + +// RegisterDevicesRequest indicates an expected call of RegisterDevicesRequest. +func (mr *MockSageMakerAPIMockRecorder) RegisterDevicesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterDevicesRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).RegisterDevicesRequest), arg0) +} + +// RegisterDevicesWithContext mocks base method. +func (m *MockSageMakerAPI) RegisterDevicesWithContext(arg0 aws.Context, arg1 *sagemaker.RegisterDevicesInput, arg2 ...request.Option) (*sagemaker.RegisterDevicesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RegisterDevicesWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.RegisterDevicesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RegisterDevicesWithContext indicates an expected call of RegisterDevicesWithContext. +func (mr *MockSageMakerAPIMockRecorder) RegisterDevicesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterDevicesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).RegisterDevicesWithContext), varargs...) +} + +// RenderUiTemplate mocks base method. +func (m *MockSageMakerAPI) RenderUiTemplate(arg0 *sagemaker.RenderUiTemplateInput) (*sagemaker.RenderUiTemplateOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RenderUiTemplate", arg0) + ret0, _ := ret[0].(*sagemaker.RenderUiTemplateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RenderUiTemplate indicates an expected call of RenderUiTemplate. +func (mr *MockSageMakerAPIMockRecorder) RenderUiTemplate(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RenderUiTemplate", reflect.TypeOf((*MockSageMakerAPI)(nil).RenderUiTemplate), arg0) +} + +// RenderUiTemplateRequest mocks base method. +func (m *MockSageMakerAPI) RenderUiTemplateRequest(arg0 *sagemaker.RenderUiTemplateInput) (*request.Request, *sagemaker.RenderUiTemplateOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RenderUiTemplateRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.RenderUiTemplateOutput) + return ret0, ret1 +} + +// RenderUiTemplateRequest indicates an expected call of RenderUiTemplateRequest. +func (mr *MockSageMakerAPIMockRecorder) RenderUiTemplateRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RenderUiTemplateRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).RenderUiTemplateRequest), arg0) +} + +// RenderUiTemplateWithContext mocks base method. +func (m *MockSageMakerAPI) RenderUiTemplateWithContext(arg0 aws.Context, arg1 *sagemaker.RenderUiTemplateInput, arg2 ...request.Option) (*sagemaker.RenderUiTemplateOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RenderUiTemplateWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.RenderUiTemplateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RenderUiTemplateWithContext indicates an expected call of RenderUiTemplateWithContext. +func (mr *MockSageMakerAPIMockRecorder) RenderUiTemplateWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RenderUiTemplateWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).RenderUiTemplateWithContext), varargs...) +} + +// RetryPipelineExecution mocks base method. +func (m *MockSageMakerAPI) RetryPipelineExecution(arg0 *sagemaker.RetryPipelineExecutionInput) (*sagemaker.RetryPipelineExecutionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RetryPipelineExecution", arg0) + ret0, _ := ret[0].(*sagemaker.RetryPipelineExecutionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RetryPipelineExecution indicates an expected call of RetryPipelineExecution. +func (mr *MockSageMakerAPIMockRecorder) RetryPipelineExecution(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RetryPipelineExecution", reflect.TypeOf((*MockSageMakerAPI)(nil).RetryPipelineExecution), arg0) +} + +// RetryPipelineExecutionRequest mocks base method. +func (m *MockSageMakerAPI) RetryPipelineExecutionRequest(arg0 *sagemaker.RetryPipelineExecutionInput) (*request.Request, *sagemaker.RetryPipelineExecutionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RetryPipelineExecutionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.RetryPipelineExecutionOutput) + return ret0, ret1 +} + +// RetryPipelineExecutionRequest indicates an expected call of RetryPipelineExecutionRequest. +func (mr *MockSageMakerAPIMockRecorder) RetryPipelineExecutionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RetryPipelineExecutionRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).RetryPipelineExecutionRequest), arg0) +} + +// RetryPipelineExecutionWithContext mocks base method. +func (m *MockSageMakerAPI) RetryPipelineExecutionWithContext(arg0 aws.Context, arg1 *sagemaker.RetryPipelineExecutionInput, arg2 ...request.Option) (*sagemaker.RetryPipelineExecutionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RetryPipelineExecutionWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.RetryPipelineExecutionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RetryPipelineExecutionWithContext indicates an expected call of RetryPipelineExecutionWithContext. +func (mr *MockSageMakerAPIMockRecorder) RetryPipelineExecutionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RetryPipelineExecutionWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).RetryPipelineExecutionWithContext), varargs...) +} + +// Search mocks base method. +func (m *MockSageMakerAPI) Search(arg0 *sagemaker.SearchInput) (*sagemaker.SearchOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Search", arg0) + ret0, _ := ret[0].(*sagemaker.SearchOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// Search indicates an expected call of Search. +func (mr *MockSageMakerAPIMockRecorder) Search(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Search", reflect.TypeOf((*MockSageMakerAPI)(nil).Search), arg0) +} + +// SearchPages mocks base method. +func (m *MockSageMakerAPI) SearchPages(arg0 *sagemaker.SearchInput, arg1 func(*sagemaker.SearchOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SearchPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// SearchPages indicates an expected call of SearchPages. +func (mr *MockSageMakerAPIMockRecorder) SearchPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchPages", reflect.TypeOf((*MockSageMakerAPI)(nil).SearchPages), arg0, arg1) +} + +// SearchPagesWithContext mocks base method. +func (m *MockSageMakerAPI) SearchPagesWithContext(arg0 aws.Context, arg1 *sagemaker.SearchInput, arg2 func(*sagemaker.SearchOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SearchPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// SearchPagesWithContext indicates an expected call of SearchPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) SearchPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).SearchPagesWithContext), varargs...) +} + +// SearchRequest mocks base method. +func (m *MockSageMakerAPI) SearchRequest(arg0 *sagemaker.SearchInput) (*request.Request, *sagemaker.SearchOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SearchRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.SearchOutput) + return ret0, ret1 +} + +// SearchRequest indicates an expected call of SearchRequest. +func (mr *MockSageMakerAPIMockRecorder) SearchRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).SearchRequest), arg0) +} + +// SearchWithContext mocks base method. +func (m *MockSageMakerAPI) SearchWithContext(arg0 aws.Context, arg1 *sagemaker.SearchInput, arg2 ...request.Option) (*sagemaker.SearchOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SearchWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.SearchOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SearchWithContext indicates an expected call of SearchWithContext. +func (mr *MockSageMakerAPIMockRecorder) SearchWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).SearchWithContext), varargs...) +} + +// SendPipelineExecutionStepFailure mocks base method. +func (m *MockSageMakerAPI) SendPipelineExecutionStepFailure(arg0 *sagemaker.SendPipelineExecutionStepFailureInput) (*sagemaker.SendPipelineExecutionStepFailureOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SendPipelineExecutionStepFailure", arg0) + ret0, _ := ret[0].(*sagemaker.SendPipelineExecutionStepFailureOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SendPipelineExecutionStepFailure indicates an expected call of SendPipelineExecutionStepFailure. +func (mr *MockSageMakerAPIMockRecorder) SendPipelineExecutionStepFailure(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendPipelineExecutionStepFailure", reflect.TypeOf((*MockSageMakerAPI)(nil).SendPipelineExecutionStepFailure), arg0) +} + +// SendPipelineExecutionStepFailureRequest mocks base method. +func (m *MockSageMakerAPI) SendPipelineExecutionStepFailureRequest(arg0 *sagemaker.SendPipelineExecutionStepFailureInput) (*request.Request, *sagemaker.SendPipelineExecutionStepFailureOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SendPipelineExecutionStepFailureRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.SendPipelineExecutionStepFailureOutput) + return ret0, ret1 +} + +// SendPipelineExecutionStepFailureRequest indicates an expected call of SendPipelineExecutionStepFailureRequest. +func (mr *MockSageMakerAPIMockRecorder) SendPipelineExecutionStepFailureRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendPipelineExecutionStepFailureRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).SendPipelineExecutionStepFailureRequest), arg0) +} + +// SendPipelineExecutionStepFailureWithContext mocks base method. +func (m *MockSageMakerAPI) SendPipelineExecutionStepFailureWithContext(arg0 aws.Context, arg1 *sagemaker.SendPipelineExecutionStepFailureInput, arg2 ...request.Option) (*sagemaker.SendPipelineExecutionStepFailureOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SendPipelineExecutionStepFailureWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.SendPipelineExecutionStepFailureOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SendPipelineExecutionStepFailureWithContext indicates an expected call of SendPipelineExecutionStepFailureWithContext. +func (mr *MockSageMakerAPIMockRecorder) SendPipelineExecutionStepFailureWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendPipelineExecutionStepFailureWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).SendPipelineExecutionStepFailureWithContext), varargs...) +} + +// SendPipelineExecutionStepSuccess mocks base method. +func (m *MockSageMakerAPI) SendPipelineExecutionStepSuccess(arg0 *sagemaker.SendPipelineExecutionStepSuccessInput) (*sagemaker.SendPipelineExecutionStepSuccessOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SendPipelineExecutionStepSuccess", arg0) + ret0, _ := ret[0].(*sagemaker.SendPipelineExecutionStepSuccessOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SendPipelineExecutionStepSuccess indicates an expected call of SendPipelineExecutionStepSuccess. +func (mr *MockSageMakerAPIMockRecorder) SendPipelineExecutionStepSuccess(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendPipelineExecutionStepSuccess", reflect.TypeOf((*MockSageMakerAPI)(nil).SendPipelineExecutionStepSuccess), arg0) +} + +// SendPipelineExecutionStepSuccessRequest mocks base method. +func (m *MockSageMakerAPI) SendPipelineExecutionStepSuccessRequest(arg0 *sagemaker.SendPipelineExecutionStepSuccessInput) (*request.Request, *sagemaker.SendPipelineExecutionStepSuccessOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SendPipelineExecutionStepSuccessRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.SendPipelineExecutionStepSuccessOutput) + return ret0, ret1 +} + +// SendPipelineExecutionStepSuccessRequest indicates an expected call of SendPipelineExecutionStepSuccessRequest. +func (mr *MockSageMakerAPIMockRecorder) SendPipelineExecutionStepSuccessRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendPipelineExecutionStepSuccessRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).SendPipelineExecutionStepSuccessRequest), arg0) +} + +// SendPipelineExecutionStepSuccessWithContext mocks base method. +func (m *MockSageMakerAPI) SendPipelineExecutionStepSuccessWithContext(arg0 aws.Context, arg1 *sagemaker.SendPipelineExecutionStepSuccessInput, arg2 ...request.Option) (*sagemaker.SendPipelineExecutionStepSuccessOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SendPipelineExecutionStepSuccessWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.SendPipelineExecutionStepSuccessOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SendPipelineExecutionStepSuccessWithContext indicates an expected call of SendPipelineExecutionStepSuccessWithContext. +func (mr *MockSageMakerAPIMockRecorder) SendPipelineExecutionStepSuccessWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendPipelineExecutionStepSuccessWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).SendPipelineExecutionStepSuccessWithContext), varargs...) +} + +// StartEdgeDeploymentStage mocks base method. +func (m *MockSageMakerAPI) StartEdgeDeploymentStage(arg0 *sagemaker.StartEdgeDeploymentStageInput) (*sagemaker.StartEdgeDeploymentStageOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartEdgeDeploymentStage", arg0) + ret0, _ := ret[0].(*sagemaker.StartEdgeDeploymentStageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartEdgeDeploymentStage indicates an expected call of StartEdgeDeploymentStage. +func (mr *MockSageMakerAPIMockRecorder) StartEdgeDeploymentStage(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartEdgeDeploymentStage", reflect.TypeOf((*MockSageMakerAPI)(nil).StartEdgeDeploymentStage), arg0) +} + +// StartEdgeDeploymentStageRequest mocks base method. +func (m *MockSageMakerAPI) StartEdgeDeploymentStageRequest(arg0 *sagemaker.StartEdgeDeploymentStageInput) (*request.Request, *sagemaker.StartEdgeDeploymentStageOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartEdgeDeploymentStageRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.StartEdgeDeploymentStageOutput) + return ret0, ret1 +} + +// StartEdgeDeploymentStageRequest indicates an expected call of StartEdgeDeploymentStageRequest. +func (mr *MockSageMakerAPIMockRecorder) StartEdgeDeploymentStageRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartEdgeDeploymentStageRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).StartEdgeDeploymentStageRequest), arg0) +} + +// StartEdgeDeploymentStageWithContext mocks base method. +func (m *MockSageMakerAPI) StartEdgeDeploymentStageWithContext(arg0 aws.Context, arg1 *sagemaker.StartEdgeDeploymentStageInput, arg2 ...request.Option) (*sagemaker.StartEdgeDeploymentStageOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StartEdgeDeploymentStageWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.StartEdgeDeploymentStageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartEdgeDeploymentStageWithContext indicates an expected call of StartEdgeDeploymentStageWithContext. +func (mr *MockSageMakerAPIMockRecorder) StartEdgeDeploymentStageWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartEdgeDeploymentStageWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).StartEdgeDeploymentStageWithContext), varargs...) +} + +// StartInferenceExperiment mocks base method. +func (m *MockSageMakerAPI) StartInferenceExperiment(arg0 *sagemaker.StartInferenceExperimentInput) (*sagemaker.StartInferenceExperimentOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartInferenceExperiment", arg0) + ret0, _ := ret[0].(*sagemaker.StartInferenceExperimentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartInferenceExperiment indicates an expected call of StartInferenceExperiment. +func (mr *MockSageMakerAPIMockRecorder) StartInferenceExperiment(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartInferenceExperiment", reflect.TypeOf((*MockSageMakerAPI)(nil).StartInferenceExperiment), arg0) +} + +// StartInferenceExperimentRequest mocks base method. +func (m *MockSageMakerAPI) StartInferenceExperimentRequest(arg0 *sagemaker.StartInferenceExperimentInput) (*request.Request, *sagemaker.StartInferenceExperimentOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartInferenceExperimentRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.StartInferenceExperimentOutput) + return ret0, ret1 +} + +// StartInferenceExperimentRequest indicates an expected call of StartInferenceExperimentRequest. +func (mr *MockSageMakerAPIMockRecorder) StartInferenceExperimentRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartInferenceExperimentRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).StartInferenceExperimentRequest), arg0) +} + +// StartInferenceExperimentWithContext mocks base method. +func (m *MockSageMakerAPI) StartInferenceExperimentWithContext(arg0 aws.Context, arg1 *sagemaker.StartInferenceExperimentInput, arg2 ...request.Option) (*sagemaker.StartInferenceExperimentOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StartInferenceExperimentWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.StartInferenceExperimentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartInferenceExperimentWithContext indicates an expected call of StartInferenceExperimentWithContext. +func (mr *MockSageMakerAPIMockRecorder) StartInferenceExperimentWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartInferenceExperimentWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).StartInferenceExperimentWithContext), varargs...) +} + +// StartMonitoringSchedule mocks base method. +func (m *MockSageMakerAPI) StartMonitoringSchedule(arg0 *sagemaker.StartMonitoringScheduleInput) (*sagemaker.StartMonitoringScheduleOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartMonitoringSchedule", arg0) + ret0, _ := ret[0].(*sagemaker.StartMonitoringScheduleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartMonitoringSchedule indicates an expected call of StartMonitoringSchedule. +func (mr *MockSageMakerAPIMockRecorder) StartMonitoringSchedule(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartMonitoringSchedule", reflect.TypeOf((*MockSageMakerAPI)(nil).StartMonitoringSchedule), arg0) +} + +// StartMonitoringScheduleRequest mocks base method. +func (m *MockSageMakerAPI) StartMonitoringScheduleRequest(arg0 *sagemaker.StartMonitoringScheduleInput) (*request.Request, *sagemaker.StartMonitoringScheduleOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartMonitoringScheduleRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.StartMonitoringScheduleOutput) + return ret0, ret1 +} + +// StartMonitoringScheduleRequest indicates an expected call of StartMonitoringScheduleRequest. +func (mr *MockSageMakerAPIMockRecorder) StartMonitoringScheduleRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartMonitoringScheduleRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).StartMonitoringScheduleRequest), arg0) +} + +// StartMonitoringScheduleWithContext mocks base method. +func (m *MockSageMakerAPI) StartMonitoringScheduleWithContext(arg0 aws.Context, arg1 *sagemaker.StartMonitoringScheduleInput, arg2 ...request.Option) (*sagemaker.StartMonitoringScheduleOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StartMonitoringScheduleWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.StartMonitoringScheduleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartMonitoringScheduleWithContext indicates an expected call of StartMonitoringScheduleWithContext. +func (mr *MockSageMakerAPIMockRecorder) StartMonitoringScheduleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartMonitoringScheduleWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).StartMonitoringScheduleWithContext), varargs...) +} + +// StartNotebookInstance mocks base method. +func (m *MockSageMakerAPI) StartNotebookInstance(arg0 *sagemaker.StartNotebookInstanceInput) (*sagemaker.StartNotebookInstanceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartNotebookInstance", arg0) + ret0, _ := ret[0].(*sagemaker.StartNotebookInstanceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartNotebookInstance indicates an expected call of StartNotebookInstance. +func (mr *MockSageMakerAPIMockRecorder) StartNotebookInstance(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartNotebookInstance", reflect.TypeOf((*MockSageMakerAPI)(nil).StartNotebookInstance), arg0) +} + +// StartNotebookInstanceRequest mocks base method. +func (m *MockSageMakerAPI) StartNotebookInstanceRequest(arg0 *sagemaker.StartNotebookInstanceInput) (*request.Request, *sagemaker.StartNotebookInstanceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartNotebookInstanceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.StartNotebookInstanceOutput) + return ret0, ret1 +} + +// StartNotebookInstanceRequest indicates an expected call of StartNotebookInstanceRequest. +func (mr *MockSageMakerAPIMockRecorder) StartNotebookInstanceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartNotebookInstanceRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).StartNotebookInstanceRequest), arg0) +} + +// StartNotebookInstanceWithContext mocks base method. +func (m *MockSageMakerAPI) StartNotebookInstanceWithContext(arg0 aws.Context, arg1 *sagemaker.StartNotebookInstanceInput, arg2 ...request.Option) (*sagemaker.StartNotebookInstanceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StartNotebookInstanceWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.StartNotebookInstanceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartNotebookInstanceWithContext indicates an expected call of StartNotebookInstanceWithContext. +func (mr *MockSageMakerAPIMockRecorder) StartNotebookInstanceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartNotebookInstanceWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).StartNotebookInstanceWithContext), varargs...) +} + +// StartPipelineExecution mocks base method. +func (m *MockSageMakerAPI) StartPipelineExecution(arg0 *sagemaker.StartPipelineExecutionInput) (*sagemaker.StartPipelineExecutionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartPipelineExecution", arg0) + ret0, _ := ret[0].(*sagemaker.StartPipelineExecutionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartPipelineExecution indicates an expected call of StartPipelineExecution. +func (mr *MockSageMakerAPIMockRecorder) StartPipelineExecution(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartPipelineExecution", reflect.TypeOf((*MockSageMakerAPI)(nil).StartPipelineExecution), arg0) +} + +// StartPipelineExecutionRequest mocks base method. +func (m *MockSageMakerAPI) StartPipelineExecutionRequest(arg0 *sagemaker.StartPipelineExecutionInput) (*request.Request, *sagemaker.StartPipelineExecutionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartPipelineExecutionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.StartPipelineExecutionOutput) + return ret0, ret1 +} + +// StartPipelineExecutionRequest indicates an expected call of StartPipelineExecutionRequest. +func (mr *MockSageMakerAPIMockRecorder) StartPipelineExecutionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartPipelineExecutionRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).StartPipelineExecutionRequest), arg0) +} + +// StartPipelineExecutionWithContext mocks base method. +func (m *MockSageMakerAPI) StartPipelineExecutionWithContext(arg0 aws.Context, arg1 *sagemaker.StartPipelineExecutionInput, arg2 ...request.Option) (*sagemaker.StartPipelineExecutionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StartPipelineExecutionWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.StartPipelineExecutionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartPipelineExecutionWithContext indicates an expected call of StartPipelineExecutionWithContext. +func (mr *MockSageMakerAPIMockRecorder) StartPipelineExecutionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartPipelineExecutionWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).StartPipelineExecutionWithContext), varargs...) +} + +// StopAutoMLJob mocks base method. +func (m *MockSageMakerAPI) StopAutoMLJob(arg0 *sagemaker.StopAutoMLJobInput) (*sagemaker.StopAutoMLJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopAutoMLJob", arg0) + ret0, _ := ret[0].(*sagemaker.StopAutoMLJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopAutoMLJob indicates an expected call of StopAutoMLJob. +func (mr *MockSageMakerAPIMockRecorder) StopAutoMLJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopAutoMLJob", reflect.TypeOf((*MockSageMakerAPI)(nil).StopAutoMLJob), arg0) +} + +// StopAutoMLJobRequest mocks base method. +func (m *MockSageMakerAPI) StopAutoMLJobRequest(arg0 *sagemaker.StopAutoMLJobInput) (*request.Request, *sagemaker.StopAutoMLJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopAutoMLJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.StopAutoMLJobOutput) + return ret0, ret1 +} + +// StopAutoMLJobRequest indicates an expected call of StopAutoMLJobRequest. +func (mr *MockSageMakerAPIMockRecorder) StopAutoMLJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopAutoMLJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).StopAutoMLJobRequest), arg0) +} + +// StopAutoMLJobWithContext mocks base method. +func (m *MockSageMakerAPI) StopAutoMLJobWithContext(arg0 aws.Context, arg1 *sagemaker.StopAutoMLJobInput, arg2 ...request.Option) (*sagemaker.StopAutoMLJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StopAutoMLJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.StopAutoMLJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopAutoMLJobWithContext indicates an expected call of StopAutoMLJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) StopAutoMLJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopAutoMLJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).StopAutoMLJobWithContext), varargs...) +} + +// StopCompilationJob mocks base method. +func (m *MockSageMakerAPI) StopCompilationJob(arg0 *sagemaker.StopCompilationJobInput) (*sagemaker.StopCompilationJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopCompilationJob", arg0) + ret0, _ := ret[0].(*sagemaker.StopCompilationJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopCompilationJob indicates an expected call of StopCompilationJob. +func (mr *MockSageMakerAPIMockRecorder) StopCompilationJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopCompilationJob", reflect.TypeOf((*MockSageMakerAPI)(nil).StopCompilationJob), arg0) +} + +// StopCompilationJobRequest mocks base method. +func (m *MockSageMakerAPI) StopCompilationJobRequest(arg0 *sagemaker.StopCompilationJobInput) (*request.Request, *sagemaker.StopCompilationJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopCompilationJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.StopCompilationJobOutput) + return ret0, ret1 +} + +// StopCompilationJobRequest indicates an expected call of StopCompilationJobRequest. +func (mr *MockSageMakerAPIMockRecorder) StopCompilationJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopCompilationJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).StopCompilationJobRequest), arg0) +} + +// StopCompilationJobWithContext mocks base method. +func (m *MockSageMakerAPI) StopCompilationJobWithContext(arg0 aws.Context, arg1 *sagemaker.StopCompilationJobInput, arg2 ...request.Option) (*sagemaker.StopCompilationJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StopCompilationJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.StopCompilationJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopCompilationJobWithContext indicates an expected call of StopCompilationJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) StopCompilationJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopCompilationJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).StopCompilationJobWithContext), varargs...) +} + +// StopEdgeDeploymentStage mocks base method. +func (m *MockSageMakerAPI) StopEdgeDeploymentStage(arg0 *sagemaker.StopEdgeDeploymentStageInput) (*sagemaker.StopEdgeDeploymentStageOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopEdgeDeploymentStage", arg0) + ret0, _ := ret[0].(*sagemaker.StopEdgeDeploymentStageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopEdgeDeploymentStage indicates an expected call of StopEdgeDeploymentStage. +func (mr *MockSageMakerAPIMockRecorder) StopEdgeDeploymentStage(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopEdgeDeploymentStage", reflect.TypeOf((*MockSageMakerAPI)(nil).StopEdgeDeploymentStage), arg0) +} + +// StopEdgeDeploymentStageRequest mocks base method. +func (m *MockSageMakerAPI) StopEdgeDeploymentStageRequest(arg0 *sagemaker.StopEdgeDeploymentStageInput) (*request.Request, *sagemaker.StopEdgeDeploymentStageOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopEdgeDeploymentStageRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.StopEdgeDeploymentStageOutput) + return ret0, ret1 +} + +// StopEdgeDeploymentStageRequest indicates an expected call of StopEdgeDeploymentStageRequest. +func (mr *MockSageMakerAPIMockRecorder) StopEdgeDeploymentStageRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopEdgeDeploymentStageRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).StopEdgeDeploymentStageRequest), arg0) +} + +// StopEdgeDeploymentStageWithContext mocks base method. +func (m *MockSageMakerAPI) StopEdgeDeploymentStageWithContext(arg0 aws.Context, arg1 *sagemaker.StopEdgeDeploymentStageInput, arg2 ...request.Option) (*sagemaker.StopEdgeDeploymentStageOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StopEdgeDeploymentStageWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.StopEdgeDeploymentStageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopEdgeDeploymentStageWithContext indicates an expected call of StopEdgeDeploymentStageWithContext. +func (mr *MockSageMakerAPIMockRecorder) StopEdgeDeploymentStageWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopEdgeDeploymentStageWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).StopEdgeDeploymentStageWithContext), varargs...) +} + +// StopEdgePackagingJob mocks base method. +func (m *MockSageMakerAPI) StopEdgePackagingJob(arg0 *sagemaker.StopEdgePackagingJobInput) (*sagemaker.StopEdgePackagingJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopEdgePackagingJob", arg0) + ret0, _ := ret[0].(*sagemaker.StopEdgePackagingJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopEdgePackagingJob indicates an expected call of StopEdgePackagingJob. +func (mr *MockSageMakerAPIMockRecorder) StopEdgePackagingJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopEdgePackagingJob", reflect.TypeOf((*MockSageMakerAPI)(nil).StopEdgePackagingJob), arg0) +} + +// StopEdgePackagingJobRequest mocks base method. +func (m *MockSageMakerAPI) StopEdgePackagingJobRequest(arg0 *sagemaker.StopEdgePackagingJobInput) (*request.Request, *sagemaker.StopEdgePackagingJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopEdgePackagingJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.StopEdgePackagingJobOutput) + return ret0, ret1 +} + +// StopEdgePackagingJobRequest indicates an expected call of StopEdgePackagingJobRequest. +func (mr *MockSageMakerAPIMockRecorder) StopEdgePackagingJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopEdgePackagingJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).StopEdgePackagingJobRequest), arg0) +} + +// StopEdgePackagingJobWithContext mocks base method. +func (m *MockSageMakerAPI) StopEdgePackagingJobWithContext(arg0 aws.Context, arg1 *sagemaker.StopEdgePackagingJobInput, arg2 ...request.Option) (*sagemaker.StopEdgePackagingJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StopEdgePackagingJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.StopEdgePackagingJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopEdgePackagingJobWithContext indicates an expected call of StopEdgePackagingJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) StopEdgePackagingJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopEdgePackagingJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).StopEdgePackagingJobWithContext), varargs...) +} + +// StopHyperParameterTuningJob mocks base method. +func (m *MockSageMakerAPI) StopHyperParameterTuningJob(arg0 *sagemaker.StopHyperParameterTuningJobInput) (*sagemaker.StopHyperParameterTuningJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopHyperParameterTuningJob", arg0) + ret0, _ := ret[0].(*sagemaker.StopHyperParameterTuningJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopHyperParameterTuningJob indicates an expected call of StopHyperParameterTuningJob. +func (mr *MockSageMakerAPIMockRecorder) StopHyperParameterTuningJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopHyperParameterTuningJob", reflect.TypeOf((*MockSageMakerAPI)(nil).StopHyperParameterTuningJob), arg0) +} + +// StopHyperParameterTuningJobRequest mocks base method. +func (m *MockSageMakerAPI) StopHyperParameterTuningJobRequest(arg0 *sagemaker.StopHyperParameterTuningJobInput) (*request.Request, *sagemaker.StopHyperParameterTuningJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopHyperParameterTuningJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.StopHyperParameterTuningJobOutput) + return ret0, ret1 +} + +// StopHyperParameterTuningJobRequest indicates an expected call of StopHyperParameterTuningJobRequest. +func (mr *MockSageMakerAPIMockRecorder) StopHyperParameterTuningJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopHyperParameterTuningJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).StopHyperParameterTuningJobRequest), arg0) +} + +// StopHyperParameterTuningJobWithContext mocks base method. +func (m *MockSageMakerAPI) StopHyperParameterTuningJobWithContext(arg0 aws.Context, arg1 *sagemaker.StopHyperParameterTuningJobInput, arg2 ...request.Option) (*sagemaker.StopHyperParameterTuningJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StopHyperParameterTuningJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.StopHyperParameterTuningJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopHyperParameterTuningJobWithContext indicates an expected call of StopHyperParameterTuningJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) StopHyperParameterTuningJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopHyperParameterTuningJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).StopHyperParameterTuningJobWithContext), varargs...) +} + +// StopInferenceExperiment mocks base method. +func (m *MockSageMakerAPI) StopInferenceExperiment(arg0 *sagemaker.StopInferenceExperimentInput) (*sagemaker.StopInferenceExperimentOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopInferenceExperiment", arg0) + ret0, _ := ret[0].(*sagemaker.StopInferenceExperimentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopInferenceExperiment indicates an expected call of StopInferenceExperiment. +func (mr *MockSageMakerAPIMockRecorder) StopInferenceExperiment(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopInferenceExperiment", reflect.TypeOf((*MockSageMakerAPI)(nil).StopInferenceExperiment), arg0) +} + +// StopInferenceExperimentRequest mocks base method. +func (m *MockSageMakerAPI) StopInferenceExperimentRequest(arg0 *sagemaker.StopInferenceExperimentInput) (*request.Request, *sagemaker.StopInferenceExperimentOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopInferenceExperimentRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.StopInferenceExperimentOutput) + return ret0, ret1 +} + +// StopInferenceExperimentRequest indicates an expected call of StopInferenceExperimentRequest. +func (mr *MockSageMakerAPIMockRecorder) StopInferenceExperimentRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopInferenceExperimentRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).StopInferenceExperimentRequest), arg0) +} + +// StopInferenceExperimentWithContext mocks base method. +func (m *MockSageMakerAPI) StopInferenceExperimentWithContext(arg0 aws.Context, arg1 *sagemaker.StopInferenceExperimentInput, arg2 ...request.Option) (*sagemaker.StopInferenceExperimentOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StopInferenceExperimentWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.StopInferenceExperimentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopInferenceExperimentWithContext indicates an expected call of StopInferenceExperimentWithContext. +func (mr *MockSageMakerAPIMockRecorder) StopInferenceExperimentWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopInferenceExperimentWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).StopInferenceExperimentWithContext), varargs...) +} + +// StopInferenceRecommendationsJob mocks base method. +func (m *MockSageMakerAPI) StopInferenceRecommendationsJob(arg0 *sagemaker.StopInferenceRecommendationsJobInput) (*sagemaker.StopInferenceRecommendationsJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopInferenceRecommendationsJob", arg0) + ret0, _ := ret[0].(*sagemaker.StopInferenceRecommendationsJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopInferenceRecommendationsJob indicates an expected call of StopInferenceRecommendationsJob. +func (mr *MockSageMakerAPIMockRecorder) StopInferenceRecommendationsJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopInferenceRecommendationsJob", reflect.TypeOf((*MockSageMakerAPI)(nil).StopInferenceRecommendationsJob), arg0) +} + +// StopInferenceRecommendationsJobRequest mocks base method. +func (m *MockSageMakerAPI) StopInferenceRecommendationsJobRequest(arg0 *sagemaker.StopInferenceRecommendationsJobInput) (*request.Request, *sagemaker.StopInferenceRecommendationsJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopInferenceRecommendationsJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.StopInferenceRecommendationsJobOutput) + return ret0, ret1 +} + +// StopInferenceRecommendationsJobRequest indicates an expected call of StopInferenceRecommendationsJobRequest. +func (mr *MockSageMakerAPIMockRecorder) StopInferenceRecommendationsJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopInferenceRecommendationsJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).StopInferenceRecommendationsJobRequest), arg0) +} + +// StopInferenceRecommendationsJobWithContext mocks base method. +func (m *MockSageMakerAPI) StopInferenceRecommendationsJobWithContext(arg0 aws.Context, arg1 *sagemaker.StopInferenceRecommendationsJobInput, arg2 ...request.Option) (*sagemaker.StopInferenceRecommendationsJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StopInferenceRecommendationsJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.StopInferenceRecommendationsJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopInferenceRecommendationsJobWithContext indicates an expected call of StopInferenceRecommendationsJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) StopInferenceRecommendationsJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopInferenceRecommendationsJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).StopInferenceRecommendationsJobWithContext), varargs...) +} + +// StopLabelingJob mocks base method. +func (m *MockSageMakerAPI) StopLabelingJob(arg0 *sagemaker.StopLabelingJobInput) (*sagemaker.StopLabelingJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopLabelingJob", arg0) + ret0, _ := ret[0].(*sagemaker.StopLabelingJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopLabelingJob indicates an expected call of StopLabelingJob. +func (mr *MockSageMakerAPIMockRecorder) StopLabelingJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopLabelingJob", reflect.TypeOf((*MockSageMakerAPI)(nil).StopLabelingJob), arg0) +} + +// StopLabelingJobRequest mocks base method. +func (m *MockSageMakerAPI) StopLabelingJobRequest(arg0 *sagemaker.StopLabelingJobInput) (*request.Request, *sagemaker.StopLabelingJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopLabelingJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.StopLabelingJobOutput) + return ret0, ret1 +} + +// StopLabelingJobRequest indicates an expected call of StopLabelingJobRequest. +func (mr *MockSageMakerAPIMockRecorder) StopLabelingJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopLabelingJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).StopLabelingJobRequest), arg0) +} + +// StopLabelingJobWithContext mocks base method. +func (m *MockSageMakerAPI) StopLabelingJobWithContext(arg0 aws.Context, arg1 *sagemaker.StopLabelingJobInput, arg2 ...request.Option) (*sagemaker.StopLabelingJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StopLabelingJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.StopLabelingJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopLabelingJobWithContext indicates an expected call of StopLabelingJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) StopLabelingJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopLabelingJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).StopLabelingJobWithContext), varargs...) +} + +// StopMonitoringSchedule mocks base method. +func (m *MockSageMakerAPI) StopMonitoringSchedule(arg0 *sagemaker.StopMonitoringScheduleInput) (*sagemaker.StopMonitoringScheduleOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopMonitoringSchedule", arg0) + ret0, _ := ret[0].(*sagemaker.StopMonitoringScheduleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopMonitoringSchedule indicates an expected call of StopMonitoringSchedule. +func (mr *MockSageMakerAPIMockRecorder) StopMonitoringSchedule(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopMonitoringSchedule", reflect.TypeOf((*MockSageMakerAPI)(nil).StopMonitoringSchedule), arg0) +} + +// StopMonitoringScheduleRequest mocks base method. +func (m *MockSageMakerAPI) StopMonitoringScheduleRequest(arg0 *sagemaker.StopMonitoringScheduleInput) (*request.Request, *sagemaker.StopMonitoringScheduleOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopMonitoringScheduleRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.StopMonitoringScheduleOutput) + return ret0, ret1 +} + +// StopMonitoringScheduleRequest indicates an expected call of StopMonitoringScheduleRequest. +func (mr *MockSageMakerAPIMockRecorder) StopMonitoringScheduleRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopMonitoringScheduleRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).StopMonitoringScheduleRequest), arg0) +} + +// StopMonitoringScheduleWithContext mocks base method. +func (m *MockSageMakerAPI) StopMonitoringScheduleWithContext(arg0 aws.Context, arg1 *sagemaker.StopMonitoringScheduleInput, arg2 ...request.Option) (*sagemaker.StopMonitoringScheduleOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StopMonitoringScheduleWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.StopMonitoringScheduleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopMonitoringScheduleWithContext indicates an expected call of StopMonitoringScheduleWithContext. +func (mr *MockSageMakerAPIMockRecorder) StopMonitoringScheduleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopMonitoringScheduleWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).StopMonitoringScheduleWithContext), varargs...) +} + +// StopNotebookInstance mocks base method. +func (m *MockSageMakerAPI) StopNotebookInstance(arg0 *sagemaker.StopNotebookInstanceInput) (*sagemaker.StopNotebookInstanceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopNotebookInstance", arg0) + ret0, _ := ret[0].(*sagemaker.StopNotebookInstanceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopNotebookInstance indicates an expected call of StopNotebookInstance. +func (mr *MockSageMakerAPIMockRecorder) StopNotebookInstance(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopNotebookInstance", reflect.TypeOf((*MockSageMakerAPI)(nil).StopNotebookInstance), arg0) +} + +// StopNotebookInstanceRequest mocks base method. +func (m *MockSageMakerAPI) StopNotebookInstanceRequest(arg0 *sagemaker.StopNotebookInstanceInput) (*request.Request, *sagemaker.StopNotebookInstanceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopNotebookInstanceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.StopNotebookInstanceOutput) + return ret0, ret1 +} + +// StopNotebookInstanceRequest indicates an expected call of StopNotebookInstanceRequest. +func (mr *MockSageMakerAPIMockRecorder) StopNotebookInstanceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopNotebookInstanceRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).StopNotebookInstanceRequest), arg0) +} + +// StopNotebookInstanceWithContext mocks base method. +func (m *MockSageMakerAPI) StopNotebookInstanceWithContext(arg0 aws.Context, arg1 *sagemaker.StopNotebookInstanceInput, arg2 ...request.Option) (*sagemaker.StopNotebookInstanceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StopNotebookInstanceWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.StopNotebookInstanceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopNotebookInstanceWithContext indicates an expected call of StopNotebookInstanceWithContext. +func (mr *MockSageMakerAPIMockRecorder) StopNotebookInstanceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopNotebookInstanceWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).StopNotebookInstanceWithContext), varargs...) +} + +// StopPipelineExecution mocks base method. +func (m *MockSageMakerAPI) StopPipelineExecution(arg0 *sagemaker.StopPipelineExecutionInput) (*sagemaker.StopPipelineExecutionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopPipelineExecution", arg0) + ret0, _ := ret[0].(*sagemaker.StopPipelineExecutionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopPipelineExecution indicates an expected call of StopPipelineExecution. +func (mr *MockSageMakerAPIMockRecorder) StopPipelineExecution(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopPipelineExecution", reflect.TypeOf((*MockSageMakerAPI)(nil).StopPipelineExecution), arg0) +} + +// StopPipelineExecutionRequest mocks base method. +func (m *MockSageMakerAPI) StopPipelineExecutionRequest(arg0 *sagemaker.StopPipelineExecutionInput) (*request.Request, *sagemaker.StopPipelineExecutionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopPipelineExecutionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.StopPipelineExecutionOutput) + return ret0, ret1 +} + +// StopPipelineExecutionRequest indicates an expected call of StopPipelineExecutionRequest. +func (mr *MockSageMakerAPIMockRecorder) StopPipelineExecutionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopPipelineExecutionRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).StopPipelineExecutionRequest), arg0) +} + +// StopPipelineExecutionWithContext mocks base method. +func (m *MockSageMakerAPI) StopPipelineExecutionWithContext(arg0 aws.Context, arg1 *sagemaker.StopPipelineExecutionInput, arg2 ...request.Option) (*sagemaker.StopPipelineExecutionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StopPipelineExecutionWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.StopPipelineExecutionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopPipelineExecutionWithContext indicates an expected call of StopPipelineExecutionWithContext. +func (mr *MockSageMakerAPIMockRecorder) StopPipelineExecutionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopPipelineExecutionWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).StopPipelineExecutionWithContext), varargs...) +} + +// StopProcessingJob mocks base method. +func (m *MockSageMakerAPI) StopProcessingJob(arg0 *sagemaker.StopProcessingJobInput) (*sagemaker.StopProcessingJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopProcessingJob", arg0) + ret0, _ := ret[0].(*sagemaker.StopProcessingJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopProcessingJob indicates an expected call of StopProcessingJob. +func (mr *MockSageMakerAPIMockRecorder) StopProcessingJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopProcessingJob", reflect.TypeOf((*MockSageMakerAPI)(nil).StopProcessingJob), arg0) +} + +// StopProcessingJobRequest mocks base method. +func (m *MockSageMakerAPI) StopProcessingJobRequest(arg0 *sagemaker.StopProcessingJobInput) (*request.Request, *sagemaker.StopProcessingJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopProcessingJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.StopProcessingJobOutput) + return ret0, ret1 +} + +// StopProcessingJobRequest indicates an expected call of StopProcessingJobRequest. +func (mr *MockSageMakerAPIMockRecorder) StopProcessingJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopProcessingJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).StopProcessingJobRequest), arg0) +} + +// StopProcessingJobWithContext mocks base method. +func (m *MockSageMakerAPI) StopProcessingJobWithContext(arg0 aws.Context, arg1 *sagemaker.StopProcessingJobInput, arg2 ...request.Option) (*sagemaker.StopProcessingJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StopProcessingJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.StopProcessingJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopProcessingJobWithContext indicates an expected call of StopProcessingJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) StopProcessingJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopProcessingJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).StopProcessingJobWithContext), varargs...) +} + +// StopTrainingJob mocks base method. +func (m *MockSageMakerAPI) StopTrainingJob(arg0 *sagemaker.StopTrainingJobInput) (*sagemaker.StopTrainingJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopTrainingJob", arg0) + ret0, _ := ret[0].(*sagemaker.StopTrainingJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopTrainingJob indicates an expected call of StopTrainingJob. +func (mr *MockSageMakerAPIMockRecorder) StopTrainingJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopTrainingJob", reflect.TypeOf((*MockSageMakerAPI)(nil).StopTrainingJob), arg0) +} + +// StopTrainingJobRequest mocks base method. +func (m *MockSageMakerAPI) StopTrainingJobRequest(arg0 *sagemaker.StopTrainingJobInput) (*request.Request, *sagemaker.StopTrainingJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopTrainingJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.StopTrainingJobOutput) + return ret0, ret1 +} + +// StopTrainingJobRequest indicates an expected call of StopTrainingJobRequest. +func (mr *MockSageMakerAPIMockRecorder) StopTrainingJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopTrainingJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).StopTrainingJobRequest), arg0) +} + +// StopTrainingJobWithContext mocks base method. +func (m *MockSageMakerAPI) StopTrainingJobWithContext(arg0 aws.Context, arg1 *sagemaker.StopTrainingJobInput, arg2 ...request.Option) (*sagemaker.StopTrainingJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StopTrainingJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.StopTrainingJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopTrainingJobWithContext indicates an expected call of StopTrainingJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) StopTrainingJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopTrainingJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).StopTrainingJobWithContext), varargs...) +} + +// StopTransformJob mocks base method. +func (m *MockSageMakerAPI) StopTransformJob(arg0 *sagemaker.StopTransformJobInput) (*sagemaker.StopTransformJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopTransformJob", arg0) + ret0, _ := ret[0].(*sagemaker.StopTransformJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopTransformJob indicates an expected call of StopTransformJob. +func (mr *MockSageMakerAPIMockRecorder) StopTransformJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopTransformJob", reflect.TypeOf((*MockSageMakerAPI)(nil).StopTransformJob), arg0) +} + +// StopTransformJobRequest mocks base method. +func (m *MockSageMakerAPI) StopTransformJobRequest(arg0 *sagemaker.StopTransformJobInput) (*request.Request, *sagemaker.StopTransformJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopTransformJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.StopTransformJobOutput) + return ret0, ret1 +} + +// StopTransformJobRequest indicates an expected call of StopTransformJobRequest. +func (mr *MockSageMakerAPIMockRecorder) StopTransformJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopTransformJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).StopTransformJobRequest), arg0) +} + +// StopTransformJobWithContext mocks base method. +func (m *MockSageMakerAPI) StopTransformJobWithContext(arg0 aws.Context, arg1 *sagemaker.StopTransformJobInput, arg2 ...request.Option) (*sagemaker.StopTransformJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StopTransformJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.StopTransformJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopTransformJobWithContext indicates an expected call of StopTransformJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) StopTransformJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopTransformJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).StopTransformJobWithContext), varargs...) +} + +// UpdateAction mocks base method. +func (m *MockSageMakerAPI) UpdateAction(arg0 *sagemaker.UpdateActionInput) (*sagemaker.UpdateActionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateAction", arg0) + ret0, _ := ret[0].(*sagemaker.UpdateActionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateAction indicates an expected call of UpdateAction. +func (mr *MockSageMakerAPIMockRecorder) UpdateAction(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAction", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateAction), arg0) +} + +// UpdateActionRequest mocks base method. +func (m *MockSageMakerAPI) UpdateActionRequest(arg0 *sagemaker.UpdateActionInput) (*request.Request, *sagemaker.UpdateActionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateActionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdateActionOutput) + return ret0, ret1 +} + +// UpdateActionRequest indicates an expected call of UpdateActionRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdateActionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateActionRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateActionRequest), arg0) +} + +// UpdateActionWithContext mocks base method. +func (m *MockSageMakerAPI) UpdateActionWithContext(arg0 aws.Context, arg1 *sagemaker.UpdateActionInput, arg2 ...request.Option) (*sagemaker.UpdateActionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateActionWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdateActionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateActionWithContext indicates an expected call of UpdateActionWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateActionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateActionWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateActionWithContext), varargs...) +} + +// UpdateAppImageConfig mocks base method. +func (m *MockSageMakerAPI) UpdateAppImageConfig(arg0 *sagemaker.UpdateAppImageConfigInput) (*sagemaker.UpdateAppImageConfigOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateAppImageConfig", arg0) + ret0, _ := ret[0].(*sagemaker.UpdateAppImageConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateAppImageConfig indicates an expected call of UpdateAppImageConfig. +func (mr *MockSageMakerAPIMockRecorder) UpdateAppImageConfig(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAppImageConfig", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateAppImageConfig), arg0) +} + +// UpdateAppImageConfigRequest mocks base method. +func (m *MockSageMakerAPI) UpdateAppImageConfigRequest(arg0 *sagemaker.UpdateAppImageConfigInput) (*request.Request, *sagemaker.UpdateAppImageConfigOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateAppImageConfigRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdateAppImageConfigOutput) + return ret0, ret1 +} + +// UpdateAppImageConfigRequest indicates an expected call of UpdateAppImageConfigRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdateAppImageConfigRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAppImageConfigRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateAppImageConfigRequest), arg0) +} + +// UpdateAppImageConfigWithContext mocks base method. +func (m *MockSageMakerAPI) UpdateAppImageConfigWithContext(arg0 aws.Context, arg1 *sagemaker.UpdateAppImageConfigInput, arg2 ...request.Option) (*sagemaker.UpdateAppImageConfigOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateAppImageConfigWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdateAppImageConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateAppImageConfigWithContext indicates an expected call of UpdateAppImageConfigWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateAppImageConfigWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAppImageConfigWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateAppImageConfigWithContext), varargs...) +} + +// UpdateArtifact mocks base method. +func (m *MockSageMakerAPI) UpdateArtifact(arg0 *sagemaker.UpdateArtifactInput) (*sagemaker.UpdateArtifactOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateArtifact", arg0) + ret0, _ := ret[0].(*sagemaker.UpdateArtifactOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateArtifact indicates an expected call of UpdateArtifact. +func (mr *MockSageMakerAPIMockRecorder) UpdateArtifact(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateArtifact", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateArtifact), arg0) +} + +// UpdateArtifactRequest mocks base method. +func (m *MockSageMakerAPI) UpdateArtifactRequest(arg0 *sagemaker.UpdateArtifactInput) (*request.Request, *sagemaker.UpdateArtifactOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateArtifactRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdateArtifactOutput) + return ret0, ret1 +} + +// UpdateArtifactRequest indicates an expected call of UpdateArtifactRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdateArtifactRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateArtifactRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateArtifactRequest), arg0) +} + +// UpdateArtifactWithContext mocks base method. +func (m *MockSageMakerAPI) UpdateArtifactWithContext(arg0 aws.Context, arg1 *sagemaker.UpdateArtifactInput, arg2 ...request.Option) (*sagemaker.UpdateArtifactOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateArtifactWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdateArtifactOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateArtifactWithContext indicates an expected call of UpdateArtifactWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateArtifactWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateArtifactWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateArtifactWithContext), varargs...) +} + +// UpdateCluster mocks base method. +func (m *MockSageMakerAPI) UpdateCluster(arg0 *sagemaker.UpdateClusterInput) (*sagemaker.UpdateClusterOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateCluster", arg0) + ret0, _ := ret[0].(*sagemaker.UpdateClusterOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateCluster indicates an expected call of UpdateCluster. +func (mr *MockSageMakerAPIMockRecorder) UpdateCluster(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateCluster", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateCluster), arg0) +} + +// UpdateClusterRequest mocks base method. +func (m *MockSageMakerAPI) UpdateClusterRequest(arg0 *sagemaker.UpdateClusterInput) (*request.Request, *sagemaker.UpdateClusterOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateClusterRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdateClusterOutput) + return ret0, ret1 +} + +// UpdateClusterRequest indicates an expected call of UpdateClusterRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdateClusterRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateClusterRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateClusterRequest), arg0) +} + +// UpdateClusterSoftware mocks base method. +func (m *MockSageMakerAPI) UpdateClusterSoftware(arg0 *sagemaker.UpdateClusterSoftwareInput) (*sagemaker.UpdateClusterSoftwareOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateClusterSoftware", arg0) + ret0, _ := ret[0].(*sagemaker.UpdateClusterSoftwareOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateClusterSoftware indicates an expected call of UpdateClusterSoftware. +func (mr *MockSageMakerAPIMockRecorder) UpdateClusterSoftware(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateClusterSoftware", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateClusterSoftware), arg0) +} + +// UpdateClusterSoftwareRequest mocks base method. +func (m *MockSageMakerAPI) UpdateClusterSoftwareRequest(arg0 *sagemaker.UpdateClusterSoftwareInput) (*request.Request, *sagemaker.UpdateClusterSoftwareOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateClusterSoftwareRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdateClusterSoftwareOutput) + return ret0, ret1 +} + +// UpdateClusterSoftwareRequest indicates an expected call of UpdateClusterSoftwareRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdateClusterSoftwareRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateClusterSoftwareRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateClusterSoftwareRequest), arg0) +} + +// UpdateClusterSoftwareWithContext mocks base method. +func (m *MockSageMakerAPI) UpdateClusterSoftwareWithContext(arg0 aws.Context, arg1 *sagemaker.UpdateClusterSoftwareInput, arg2 ...request.Option) (*sagemaker.UpdateClusterSoftwareOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateClusterSoftwareWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdateClusterSoftwareOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateClusterSoftwareWithContext indicates an expected call of UpdateClusterSoftwareWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateClusterSoftwareWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateClusterSoftwareWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateClusterSoftwareWithContext), varargs...) +} + +// UpdateClusterWithContext mocks base method. +func (m *MockSageMakerAPI) UpdateClusterWithContext(arg0 aws.Context, arg1 *sagemaker.UpdateClusterInput, arg2 ...request.Option) (*sagemaker.UpdateClusterOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateClusterWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdateClusterOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateClusterWithContext indicates an expected call of UpdateClusterWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateClusterWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateClusterWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateClusterWithContext), varargs...) +} + +// UpdateCodeRepository mocks base method. +func (m *MockSageMakerAPI) UpdateCodeRepository(arg0 *sagemaker.UpdateCodeRepositoryInput) (*sagemaker.UpdateCodeRepositoryOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateCodeRepository", arg0) + ret0, _ := ret[0].(*sagemaker.UpdateCodeRepositoryOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateCodeRepository indicates an expected call of UpdateCodeRepository. +func (mr *MockSageMakerAPIMockRecorder) UpdateCodeRepository(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateCodeRepository", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateCodeRepository), arg0) +} + +// UpdateCodeRepositoryRequest mocks base method. +func (m *MockSageMakerAPI) UpdateCodeRepositoryRequest(arg0 *sagemaker.UpdateCodeRepositoryInput) (*request.Request, *sagemaker.UpdateCodeRepositoryOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateCodeRepositoryRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdateCodeRepositoryOutput) + return ret0, ret1 +} + +// UpdateCodeRepositoryRequest indicates an expected call of UpdateCodeRepositoryRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdateCodeRepositoryRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateCodeRepositoryRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateCodeRepositoryRequest), arg0) +} + +// UpdateCodeRepositoryWithContext mocks base method. +func (m *MockSageMakerAPI) UpdateCodeRepositoryWithContext(arg0 aws.Context, arg1 *sagemaker.UpdateCodeRepositoryInput, arg2 ...request.Option) (*sagemaker.UpdateCodeRepositoryOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateCodeRepositoryWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdateCodeRepositoryOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateCodeRepositoryWithContext indicates an expected call of UpdateCodeRepositoryWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateCodeRepositoryWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateCodeRepositoryWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateCodeRepositoryWithContext), varargs...) +} + +// UpdateContext mocks base method. +func (m *MockSageMakerAPI) UpdateContext(arg0 *sagemaker.UpdateContextInput) (*sagemaker.UpdateContextOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateContext", arg0) + ret0, _ := ret[0].(*sagemaker.UpdateContextOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateContext indicates an expected call of UpdateContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateContext(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateContext), arg0) +} + +// UpdateContextRequest mocks base method. +func (m *MockSageMakerAPI) UpdateContextRequest(arg0 *sagemaker.UpdateContextInput) (*request.Request, *sagemaker.UpdateContextOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateContextRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdateContextOutput) + return ret0, ret1 +} + +// UpdateContextRequest indicates an expected call of UpdateContextRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdateContextRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateContextRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateContextRequest), arg0) +} + +// UpdateContextWithContext mocks base method. +func (m *MockSageMakerAPI) UpdateContextWithContext(arg0 aws.Context, arg1 *sagemaker.UpdateContextInput, arg2 ...request.Option) (*sagemaker.UpdateContextOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateContextWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdateContextOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateContextWithContext indicates an expected call of UpdateContextWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateContextWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateContextWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateContextWithContext), varargs...) +} + +// UpdateDeviceFleet mocks base method. +func (m *MockSageMakerAPI) UpdateDeviceFleet(arg0 *sagemaker.UpdateDeviceFleetInput) (*sagemaker.UpdateDeviceFleetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateDeviceFleet", arg0) + ret0, _ := ret[0].(*sagemaker.UpdateDeviceFleetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateDeviceFleet indicates an expected call of UpdateDeviceFleet. +func (mr *MockSageMakerAPIMockRecorder) UpdateDeviceFleet(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDeviceFleet", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateDeviceFleet), arg0) +} + +// UpdateDeviceFleetRequest mocks base method. +func (m *MockSageMakerAPI) UpdateDeviceFleetRequest(arg0 *sagemaker.UpdateDeviceFleetInput) (*request.Request, *sagemaker.UpdateDeviceFleetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateDeviceFleetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdateDeviceFleetOutput) + return ret0, ret1 +} + +// UpdateDeviceFleetRequest indicates an expected call of UpdateDeviceFleetRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdateDeviceFleetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDeviceFleetRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateDeviceFleetRequest), arg0) +} + +// UpdateDeviceFleetWithContext mocks base method. +func (m *MockSageMakerAPI) UpdateDeviceFleetWithContext(arg0 aws.Context, arg1 *sagemaker.UpdateDeviceFleetInput, arg2 ...request.Option) (*sagemaker.UpdateDeviceFleetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateDeviceFleetWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdateDeviceFleetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateDeviceFleetWithContext indicates an expected call of UpdateDeviceFleetWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateDeviceFleetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDeviceFleetWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateDeviceFleetWithContext), varargs...) +} + +// UpdateDevices mocks base method. +func (m *MockSageMakerAPI) UpdateDevices(arg0 *sagemaker.UpdateDevicesInput) (*sagemaker.UpdateDevicesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateDevices", arg0) + ret0, _ := ret[0].(*sagemaker.UpdateDevicesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateDevices indicates an expected call of UpdateDevices. +func (mr *MockSageMakerAPIMockRecorder) UpdateDevices(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDevices", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateDevices), arg0) +} + +// UpdateDevicesRequest mocks base method. +func (m *MockSageMakerAPI) UpdateDevicesRequest(arg0 *sagemaker.UpdateDevicesInput) (*request.Request, *sagemaker.UpdateDevicesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateDevicesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdateDevicesOutput) + return ret0, ret1 +} + +// UpdateDevicesRequest indicates an expected call of UpdateDevicesRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdateDevicesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDevicesRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateDevicesRequest), arg0) +} + +// UpdateDevicesWithContext mocks base method. +func (m *MockSageMakerAPI) UpdateDevicesWithContext(arg0 aws.Context, arg1 *sagemaker.UpdateDevicesInput, arg2 ...request.Option) (*sagemaker.UpdateDevicesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateDevicesWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdateDevicesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateDevicesWithContext indicates an expected call of UpdateDevicesWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateDevicesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDevicesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateDevicesWithContext), varargs...) +} + +// UpdateDomain mocks base method. +func (m *MockSageMakerAPI) UpdateDomain(arg0 *sagemaker.UpdateDomainInput) (*sagemaker.UpdateDomainOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateDomain", arg0) + ret0, _ := ret[0].(*sagemaker.UpdateDomainOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateDomain indicates an expected call of UpdateDomain. +func (mr *MockSageMakerAPIMockRecorder) UpdateDomain(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDomain", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateDomain), arg0) +} + +// UpdateDomainRequest mocks base method. +func (m *MockSageMakerAPI) UpdateDomainRequest(arg0 *sagemaker.UpdateDomainInput) (*request.Request, *sagemaker.UpdateDomainOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateDomainRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdateDomainOutput) + return ret0, ret1 +} + +// UpdateDomainRequest indicates an expected call of UpdateDomainRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdateDomainRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDomainRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateDomainRequest), arg0) +} + +// UpdateDomainWithContext mocks base method. +func (m *MockSageMakerAPI) UpdateDomainWithContext(arg0 aws.Context, arg1 *sagemaker.UpdateDomainInput, arg2 ...request.Option) (*sagemaker.UpdateDomainOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateDomainWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdateDomainOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateDomainWithContext indicates an expected call of UpdateDomainWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateDomainWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDomainWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateDomainWithContext), varargs...) +} + +// UpdateEndpoint mocks base method. +func (m *MockSageMakerAPI) UpdateEndpoint(arg0 *sagemaker.UpdateEndpointInput) (*sagemaker.UpdateEndpointOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateEndpoint", arg0) + ret0, _ := ret[0].(*sagemaker.UpdateEndpointOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateEndpoint indicates an expected call of UpdateEndpoint. +func (mr *MockSageMakerAPIMockRecorder) UpdateEndpoint(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateEndpoint", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateEndpoint), arg0) +} + +// UpdateEndpointRequest mocks base method. +func (m *MockSageMakerAPI) UpdateEndpointRequest(arg0 *sagemaker.UpdateEndpointInput) (*request.Request, *sagemaker.UpdateEndpointOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateEndpointRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdateEndpointOutput) + return ret0, ret1 +} + +// UpdateEndpointRequest indicates an expected call of UpdateEndpointRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdateEndpointRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateEndpointRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateEndpointRequest), arg0) +} + +// UpdateEndpointWeightsAndCapacities mocks base method. +func (m *MockSageMakerAPI) UpdateEndpointWeightsAndCapacities(arg0 *sagemaker.UpdateEndpointWeightsAndCapacitiesInput) (*sagemaker.UpdateEndpointWeightsAndCapacitiesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateEndpointWeightsAndCapacities", arg0) + ret0, _ := ret[0].(*sagemaker.UpdateEndpointWeightsAndCapacitiesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateEndpointWeightsAndCapacities indicates an expected call of UpdateEndpointWeightsAndCapacities. +func (mr *MockSageMakerAPIMockRecorder) UpdateEndpointWeightsAndCapacities(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateEndpointWeightsAndCapacities", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateEndpointWeightsAndCapacities), arg0) +} + +// UpdateEndpointWeightsAndCapacitiesRequest mocks base method. +func (m *MockSageMakerAPI) UpdateEndpointWeightsAndCapacitiesRequest(arg0 *sagemaker.UpdateEndpointWeightsAndCapacitiesInput) (*request.Request, *sagemaker.UpdateEndpointWeightsAndCapacitiesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateEndpointWeightsAndCapacitiesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdateEndpointWeightsAndCapacitiesOutput) + return ret0, ret1 +} + +// UpdateEndpointWeightsAndCapacitiesRequest indicates an expected call of UpdateEndpointWeightsAndCapacitiesRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdateEndpointWeightsAndCapacitiesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateEndpointWeightsAndCapacitiesRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateEndpointWeightsAndCapacitiesRequest), arg0) +} + +// UpdateEndpointWeightsAndCapacitiesWithContext mocks base method. +func (m *MockSageMakerAPI) UpdateEndpointWeightsAndCapacitiesWithContext(arg0 aws.Context, arg1 *sagemaker.UpdateEndpointWeightsAndCapacitiesInput, arg2 ...request.Option) (*sagemaker.UpdateEndpointWeightsAndCapacitiesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateEndpointWeightsAndCapacitiesWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdateEndpointWeightsAndCapacitiesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateEndpointWeightsAndCapacitiesWithContext indicates an expected call of UpdateEndpointWeightsAndCapacitiesWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateEndpointWeightsAndCapacitiesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateEndpointWeightsAndCapacitiesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateEndpointWeightsAndCapacitiesWithContext), varargs...) +} + +// UpdateEndpointWithContext mocks base method. +func (m *MockSageMakerAPI) UpdateEndpointWithContext(arg0 aws.Context, arg1 *sagemaker.UpdateEndpointInput, arg2 ...request.Option) (*sagemaker.UpdateEndpointOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateEndpointWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdateEndpointOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateEndpointWithContext indicates an expected call of UpdateEndpointWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateEndpointWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateEndpointWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateEndpointWithContext), varargs...) +} + +// UpdateExperiment mocks base method. +func (m *MockSageMakerAPI) UpdateExperiment(arg0 *sagemaker.UpdateExperimentInput) (*sagemaker.UpdateExperimentOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateExperiment", arg0) + ret0, _ := ret[0].(*sagemaker.UpdateExperimentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateExperiment indicates an expected call of UpdateExperiment. +func (mr *MockSageMakerAPIMockRecorder) UpdateExperiment(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateExperiment", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateExperiment), arg0) +} + +// UpdateExperimentRequest mocks base method. +func (m *MockSageMakerAPI) UpdateExperimentRequest(arg0 *sagemaker.UpdateExperimentInput) (*request.Request, *sagemaker.UpdateExperimentOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateExperimentRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdateExperimentOutput) + return ret0, ret1 +} + +// UpdateExperimentRequest indicates an expected call of UpdateExperimentRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdateExperimentRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateExperimentRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateExperimentRequest), arg0) +} + +// UpdateExperimentWithContext mocks base method. +func (m *MockSageMakerAPI) UpdateExperimentWithContext(arg0 aws.Context, arg1 *sagemaker.UpdateExperimentInput, arg2 ...request.Option) (*sagemaker.UpdateExperimentOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateExperimentWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdateExperimentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateExperimentWithContext indicates an expected call of UpdateExperimentWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateExperimentWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateExperimentWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateExperimentWithContext), varargs...) +} + +// UpdateFeatureGroup mocks base method. +func (m *MockSageMakerAPI) UpdateFeatureGroup(arg0 *sagemaker.UpdateFeatureGroupInput) (*sagemaker.UpdateFeatureGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateFeatureGroup", arg0) + ret0, _ := ret[0].(*sagemaker.UpdateFeatureGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateFeatureGroup indicates an expected call of UpdateFeatureGroup. +func (mr *MockSageMakerAPIMockRecorder) UpdateFeatureGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFeatureGroup", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateFeatureGroup), arg0) +} + +// UpdateFeatureGroupRequest mocks base method. +func (m *MockSageMakerAPI) UpdateFeatureGroupRequest(arg0 *sagemaker.UpdateFeatureGroupInput) (*request.Request, *sagemaker.UpdateFeatureGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateFeatureGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdateFeatureGroupOutput) + return ret0, ret1 +} + +// UpdateFeatureGroupRequest indicates an expected call of UpdateFeatureGroupRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdateFeatureGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFeatureGroupRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateFeatureGroupRequest), arg0) +} + +// UpdateFeatureGroupWithContext mocks base method. +func (m *MockSageMakerAPI) UpdateFeatureGroupWithContext(arg0 aws.Context, arg1 *sagemaker.UpdateFeatureGroupInput, arg2 ...request.Option) (*sagemaker.UpdateFeatureGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateFeatureGroupWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdateFeatureGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateFeatureGroupWithContext indicates an expected call of UpdateFeatureGroupWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateFeatureGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFeatureGroupWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateFeatureGroupWithContext), varargs...) +} + +// UpdateFeatureMetadata mocks base method. +func (m *MockSageMakerAPI) UpdateFeatureMetadata(arg0 *sagemaker.UpdateFeatureMetadataInput) (*sagemaker.UpdateFeatureMetadataOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateFeatureMetadata", arg0) + ret0, _ := ret[0].(*sagemaker.UpdateFeatureMetadataOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateFeatureMetadata indicates an expected call of UpdateFeatureMetadata. +func (mr *MockSageMakerAPIMockRecorder) UpdateFeatureMetadata(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFeatureMetadata", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateFeatureMetadata), arg0) +} + +// UpdateFeatureMetadataRequest mocks base method. +func (m *MockSageMakerAPI) UpdateFeatureMetadataRequest(arg0 *sagemaker.UpdateFeatureMetadataInput) (*request.Request, *sagemaker.UpdateFeatureMetadataOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateFeatureMetadataRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdateFeatureMetadataOutput) + return ret0, ret1 +} + +// UpdateFeatureMetadataRequest indicates an expected call of UpdateFeatureMetadataRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdateFeatureMetadataRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFeatureMetadataRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateFeatureMetadataRequest), arg0) +} + +// UpdateFeatureMetadataWithContext mocks base method. +func (m *MockSageMakerAPI) UpdateFeatureMetadataWithContext(arg0 aws.Context, arg1 *sagemaker.UpdateFeatureMetadataInput, arg2 ...request.Option) (*sagemaker.UpdateFeatureMetadataOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateFeatureMetadataWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdateFeatureMetadataOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateFeatureMetadataWithContext indicates an expected call of UpdateFeatureMetadataWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateFeatureMetadataWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFeatureMetadataWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateFeatureMetadataWithContext), varargs...) +} + +// UpdateHub mocks base method. +func (m *MockSageMakerAPI) UpdateHub(arg0 *sagemaker.UpdateHubInput) (*sagemaker.UpdateHubOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateHub", arg0) + ret0, _ := ret[0].(*sagemaker.UpdateHubOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateHub indicates an expected call of UpdateHub. +func (mr *MockSageMakerAPIMockRecorder) UpdateHub(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateHub", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateHub), arg0) +} + +// UpdateHubRequest mocks base method. +func (m *MockSageMakerAPI) UpdateHubRequest(arg0 *sagemaker.UpdateHubInput) (*request.Request, *sagemaker.UpdateHubOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateHubRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdateHubOutput) + return ret0, ret1 +} + +// UpdateHubRequest indicates an expected call of UpdateHubRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdateHubRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateHubRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateHubRequest), arg0) +} + +// UpdateHubWithContext mocks base method. +func (m *MockSageMakerAPI) UpdateHubWithContext(arg0 aws.Context, arg1 *sagemaker.UpdateHubInput, arg2 ...request.Option) (*sagemaker.UpdateHubOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateHubWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdateHubOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateHubWithContext indicates an expected call of UpdateHubWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateHubWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateHubWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateHubWithContext), varargs...) +} + +// UpdateImage mocks base method. +func (m *MockSageMakerAPI) UpdateImage(arg0 *sagemaker.UpdateImageInput) (*sagemaker.UpdateImageOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateImage", arg0) + ret0, _ := ret[0].(*sagemaker.UpdateImageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateImage indicates an expected call of UpdateImage. +func (mr *MockSageMakerAPIMockRecorder) UpdateImage(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateImage", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateImage), arg0) +} + +// UpdateImageRequest mocks base method. +func (m *MockSageMakerAPI) UpdateImageRequest(arg0 *sagemaker.UpdateImageInput) (*request.Request, *sagemaker.UpdateImageOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateImageRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdateImageOutput) + return ret0, ret1 +} + +// UpdateImageRequest indicates an expected call of UpdateImageRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdateImageRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateImageRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateImageRequest), arg0) +} + +// UpdateImageVersion mocks base method. +func (m *MockSageMakerAPI) UpdateImageVersion(arg0 *sagemaker.UpdateImageVersionInput) (*sagemaker.UpdateImageVersionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateImageVersion", arg0) + ret0, _ := ret[0].(*sagemaker.UpdateImageVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateImageVersion indicates an expected call of UpdateImageVersion. +func (mr *MockSageMakerAPIMockRecorder) UpdateImageVersion(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateImageVersion", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateImageVersion), arg0) +} + +// UpdateImageVersionRequest mocks base method. +func (m *MockSageMakerAPI) UpdateImageVersionRequest(arg0 *sagemaker.UpdateImageVersionInput) (*request.Request, *sagemaker.UpdateImageVersionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateImageVersionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdateImageVersionOutput) + return ret0, ret1 +} + +// UpdateImageVersionRequest indicates an expected call of UpdateImageVersionRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdateImageVersionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateImageVersionRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateImageVersionRequest), arg0) +} + +// UpdateImageVersionWithContext mocks base method. +func (m *MockSageMakerAPI) UpdateImageVersionWithContext(arg0 aws.Context, arg1 *sagemaker.UpdateImageVersionInput, arg2 ...request.Option) (*sagemaker.UpdateImageVersionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateImageVersionWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdateImageVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateImageVersionWithContext indicates an expected call of UpdateImageVersionWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateImageVersionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateImageVersionWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateImageVersionWithContext), varargs...) +} + +// UpdateImageWithContext mocks base method. +func (m *MockSageMakerAPI) UpdateImageWithContext(arg0 aws.Context, arg1 *sagemaker.UpdateImageInput, arg2 ...request.Option) (*sagemaker.UpdateImageOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateImageWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdateImageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateImageWithContext indicates an expected call of UpdateImageWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateImageWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateImageWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateImageWithContext), varargs...) +} + +// UpdateInferenceComponent mocks base method. +func (m *MockSageMakerAPI) UpdateInferenceComponent(arg0 *sagemaker.UpdateInferenceComponentInput) (*sagemaker.UpdateInferenceComponentOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateInferenceComponent", arg0) + ret0, _ := ret[0].(*sagemaker.UpdateInferenceComponentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateInferenceComponent indicates an expected call of UpdateInferenceComponent. +func (mr *MockSageMakerAPIMockRecorder) UpdateInferenceComponent(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateInferenceComponent", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateInferenceComponent), arg0) +} + +// UpdateInferenceComponentRequest mocks base method. +func (m *MockSageMakerAPI) UpdateInferenceComponentRequest(arg0 *sagemaker.UpdateInferenceComponentInput) (*request.Request, *sagemaker.UpdateInferenceComponentOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateInferenceComponentRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdateInferenceComponentOutput) + return ret0, ret1 +} + +// UpdateInferenceComponentRequest indicates an expected call of UpdateInferenceComponentRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdateInferenceComponentRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateInferenceComponentRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateInferenceComponentRequest), arg0) +} + +// UpdateInferenceComponentRuntimeConfig mocks base method. +func (m *MockSageMakerAPI) UpdateInferenceComponentRuntimeConfig(arg0 *sagemaker.UpdateInferenceComponentRuntimeConfigInput) (*sagemaker.UpdateInferenceComponentRuntimeConfigOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateInferenceComponentRuntimeConfig", arg0) + ret0, _ := ret[0].(*sagemaker.UpdateInferenceComponentRuntimeConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateInferenceComponentRuntimeConfig indicates an expected call of UpdateInferenceComponentRuntimeConfig. +func (mr *MockSageMakerAPIMockRecorder) UpdateInferenceComponentRuntimeConfig(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateInferenceComponentRuntimeConfig", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateInferenceComponentRuntimeConfig), arg0) +} + +// UpdateInferenceComponentRuntimeConfigRequest mocks base method. +func (m *MockSageMakerAPI) UpdateInferenceComponentRuntimeConfigRequest(arg0 *sagemaker.UpdateInferenceComponentRuntimeConfigInput) (*request.Request, *sagemaker.UpdateInferenceComponentRuntimeConfigOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateInferenceComponentRuntimeConfigRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdateInferenceComponentRuntimeConfigOutput) + return ret0, ret1 +} + +// UpdateInferenceComponentRuntimeConfigRequest indicates an expected call of UpdateInferenceComponentRuntimeConfigRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdateInferenceComponentRuntimeConfigRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateInferenceComponentRuntimeConfigRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateInferenceComponentRuntimeConfigRequest), arg0) +} + +// UpdateInferenceComponentRuntimeConfigWithContext mocks base method. +func (m *MockSageMakerAPI) UpdateInferenceComponentRuntimeConfigWithContext(arg0 aws.Context, arg1 *sagemaker.UpdateInferenceComponentRuntimeConfigInput, arg2 ...request.Option) (*sagemaker.UpdateInferenceComponentRuntimeConfigOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateInferenceComponentRuntimeConfigWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdateInferenceComponentRuntimeConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateInferenceComponentRuntimeConfigWithContext indicates an expected call of UpdateInferenceComponentRuntimeConfigWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateInferenceComponentRuntimeConfigWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateInferenceComponentRuntimeConfigWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateInferenceComponentRuntimeConfigWithContext), varargs...) +} + +// UpdateInferenceComponentWithContext mocks base method. +func (m *MockSageMakerAPI) UpdateInferenceComponentWithContext(arg0 aws.Context, arg1 *sagemaker.UpdateInferenceComponentInput, arg2 ...request.Option) (*sagemaker.UpdateInferenceComponentOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateInferenceComponentWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdateInferenceComponentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateInferenceComponentWithContext indicates an expected call of UpdateInferenceComponentWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateInferenceComponentWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateInferenceComponentWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateInferenceComponentWithContext), varargs...) +} + +// UpdateInferenceExperiment mocks base method. +func (m *MockSageMakerAPI) UpdateInferenceExperiment(arg0 *sagemaker.UpdateInferenceExperimentInput) (*sagemaker.UpdateInferenceExperimentOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateInferenceExperiment", arg0) + ret0, _ := ret[0].(*sagemaker.UpdateInferenceExperimentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateInferenceExperiment indicates an expected call of UpdateInferenceExperiment. +func (mr *MockSageMakerAPIMockRecorder) UpdateInferenceExperiment(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateInferenceExperiment", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateInferenceExperiment), arg0) +} + +// UpdateInferenceExperimentRequest mocks base method. +func (m *MockSageMakerAPI) UpdateInferenceExperimentRequest(arg0 *sagemaker.UpdateInferenceExperimentInput) (*request.Request, *sagemaker.UpdateInferenceExperimentOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateInferenceExperimentRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdateInferenceExperimentOutput) + return ret0, ret1 +} + +// UpdateInferenceExperimentRequest indicates an expected call of UpdateInferenceExperimentRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdateInferenceExperimentRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateInferenceExperimentRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateInferenceExperimentRequest), arg0) +} + +// UpdateInferenceExperimentWithContext mocks base method. +func (m *MockSageMakerAPI) UpdateInferenceExperimentWithContext(arg0 aws.Context, arg1 *sagemaker.UpdateInferenceExperimentInput, arg2 ...request.Option) (*sagemaker.UpdateInferenceExperimentOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateInferenceExperimentWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdateInferenceExperimentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateInferenceExperimentWithContext indicates an expected call of UpdateInferenceExperimentWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateInferenceExperimentWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateInferenceExperimentWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateInferenceExperimentWithContext), varargs...) +} + +// UpdateModelCard mocks base method. +func (m *MockSageMakerAPI) UpdateModelCard(arg0 *sagemaker.UpdateModelCardInput) (*sagemaker.UpdateModelCardOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateModelCard", arg0) + ret0, _ := ret[0].(*sagemaker.UpdateModelCardOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateModelCard indicates an expected call of UpdateModelCard. +func (mr *MockSageMakerAPIMockRecorder) UpdateModelCard(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModelCard", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateModelCard), arg0) +} + +// UpdateModelCardRequest mocks base method. +func (m *MockSageMakerAPI) UpdateModelCardRequest(arg0 *sagemaker.UpdateModelCardInput) (*request.Request, *sagemaker.UpdateModelCardOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateModelCardRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdateModelCardOutput) + return ret0, ret1 +} + +// UpdateModelCardRequest indicates an expected call of UpdateModelCardRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdateModelCardRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModelCardRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateModelCardRequest), arg0) +} + +// UpdateModelCardWithContext mocks base method. +func (m *MockSageMakerAPI) UpdateModelCardWithContext(arg0 aws.Context, arg1 *sagemaker.UpdateModelCardInput, arg2 ...request.Option) (*sagemaker.UpdateModelCardOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateModelCardWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdateModelCardOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateModelCardWithContext indicates an expected call of UpdateModelCardWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateModelCardWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModelCardWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateModelCardWithContext), varargs...) +} + +// UpdateModelPackage mocks base method. +func (m *MockSageMakerAPI) UpdateModelPackage(arg0 *sagemaker.UpdateModelPackageInput) (*sagemaker.UpdateModelPackageOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateModelPackage", arg0) + ret0, _ := ret[0].(*sagemaker.UpdateModelPackageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateModelPackage indicates an expected call of UpdateModelPackage. +func (mr *MockSageMakerAPIMockRecorder) UpdateModelPackage(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModelPackage", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateModelPackage), arg0) +} + +// UpdateModelPackageRequest mocks base method. +func (m *MockSageMakerAPI) UpdateModelPackageRequest(arg0 *sagemaker.UpdateModelPackageInput) (*request.Request, *sagemaker.UpdateModelPackageOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateModelPackageRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdateModelPackageOutput) + return ret0, ret1 +} + +// UpdateModelPackageRequest indicates an expected call of UpdateModelPackageRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdateModelPackageRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModelPackageRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateModelPackageRequest), arg0) +} + +// UpdateModelPackageWithContext mocks base method. +func (m *MockSageMakerAPI) UpdateModelPackageWithContext(arg0 aws.Context, arg1 *sagemaker.UpdateModelPackageInput, arg2 ...request.Option) (*sagemaker.UpdateModelPackageOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateModelPackageWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdateModelPackageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateModelPackageWithContext indicates an expected call of UpdateModelPackageWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateModelPackageWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateModelPackageWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateModelPackageWithContext), varargs...) +} + +// UpdateMonitoringAlert mocks base method. +func (m *MockSageMakerAPI) UpdateMonitoringAlert(arg0 *sagemaker.UpdateMonitoringAlertInput) (*sagemaker.UpdateMonitoringAlertOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateMonitoringAlert", arg0) + ret0, _ := ret[0].(*sagemaker.UpdateMonitoringAlertOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateMonitoringAlert indicates an expected call of UpdateMonitoringAlert. +func (mr *MockSageMakerAPIMockRecorder) UpdateMonitoringAlert(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMonitoringAlert", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateMonitoringAlert), arg0) +} + +// UpdateMonitoringAlertRequest mocks base method. +func (m *MockSageMakerAPI) UpdateMonitoringAlertRequest(arg0 *sagemaker.UpdateMonitoringAlertInput) (*request.Request, *sagemaker.UpdateMonitoringAlertOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateMonitoringAlertRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdateMonitoringAlertOutput) + return ret0, ret1 +} + +// UpdateMonitoringAlertRequest indicates an expected call of UpdateMonitoringAlertRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdateMonitoringAlertRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMonitoringAlertRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateMonitoringAlertRequest), arg0) +} + +// UpdateMonitoringAlertWithContext mocks base method. +func (m *MockSageMakerAPI) UpdateMonitoringAlertWithContext(arg0 aws.Context, arg1 *sagemaker.UpdateMonitoringAlertInput, arg2 ...request.Option) (*sagemaker.UpdateMonitoringAlertOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateMonitoringAlertWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdateMonitoringAlertOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateMonitoringAlertWithContext indicates an expected call of UpdateMonitoringAlertWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateMonitoringAlertWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMonitoringAlertWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateMonitoringAlertWithContext), varargs...) +} + +// UpdateMonitoringSchedule mocks base method. +func (m *MockSageMakerAPI) UpdateMonitoringSchedule(arg0 *sagemaker.UpdateMonitoringScheduleInput) (*sagemaker.UpdateMonitoringScheduleOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateMonitoringSchedule", arg0) + ret0, _ := ret[0].(*sagemaker.UpdateMonitoringScheduleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateMonitoringSchedule indicates an expected call of UpdateMonitoringSchedule. +func (mr *MockSageMakerAPIMockRecorder) UpdateMonitoringSchedule(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMonitoringSchedule", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateMonitoringSchedule), arg0) +} + +// UpdateMonitoringScheduleRequest mocks base method. +func (m *MockSageMakerAPI) UpdateMonitoringScheduleRequest(arg0 *sagemaker.UpdateMonitoringScheduleInput) (*request.Request, *sagemaker.UpdateMonitoringScheduleOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateMonitoringScheduleRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdateMonitoringScheduleOutput) + return ret0, ret1 +} + +// UpdateMonitoringScheduleRequest indicates an expected call of UpdateMonitoringScheduleRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdateMonitoringScheduleRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMonitoringScheduleRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateMonitoringScheduleRequest), arg0) +} + +// UpdateMonitoringScheduleWithContext mocks base method. +func (m *MockSageMakerAPI) UpdateMonitoringScheduleWithContext(arg0 aws.Context, arg1 *sagemaker.UpdateMonitoringScheduleInput, arg2 ...request.Option) (*sagemaker.UpdateMonitoringScheduleOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateMonitoringScheduleWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdateMonitoringScheduleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateMonitoringScheduleWithContext indicates an expected call of UpdateMonitoringScheduleWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateMonitoringScheduleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMonitoringScheduleWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateMonitoringScheduleWithContext), varargs...) +} + +// UpdateNotebookInstance mocks base method. +func (m *MockSageMakerAPI) UpdateNotebookInstance(arg0 *sagemaker.UpdateNotebookInstanceInput) (*sagemaker.UpdateNotebookInstanceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateNotebookInstance", arg0) + ret0, _ := ret[0].(*sagemaker.UpdateNotebookInstanceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateNotebookInstance indicates an expected call of UpdateNotebookInstance. +func (mr *MockSageMakerAPIMockRecorder) UpdateNotebookInstance(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateNotebookInstance", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateNotebookInstance), arg0) +} + +// UpdateNotebookInstanceLifecycleConfig mocks base method. +func (m *MockSageMakerAPI) UpdateNotebookInstanceLifecycleConfig(arg0 *sagemaker.UpdateNotebookInstanceLifecycleConfigInput) (*sagemaker.UpdateNotebookInstanceLifecycleConfigOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateNotebookInstanceLifecycleConfig", arg0) + ret0, _ := ret[0].(*sagemaker.UpdateNotebookInstanceLifecycleConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateNotebookInstanceLifecycleConfig indicates an expected call of UpdateNotebookInstanceLifecycleConfig. +func (mr *MockSageMakerAPIMockRecorder) UpdateNotebookInstanceLifecycleConfig(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateNotebookInstanceLifecycleConfig", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateNotebookInstanceLifecycleConfig), arg0) +} + +// UpdateNotebookInstanceLifecycleConfigRequest mocks base method. +func (m *MockSageMakerAPI) UpdateNotebookInstanceLifecycleConfigRequest(arg0 *sagemaker.UpdateNotebookInstanceLifecycleConfigInput) (*request.Request, *sagemaker.UpdateNotebookInstanceLifecycleConfigOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateNotebookInstanceLifecycleConfigRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdateNotebookInstanceLifecycleConfigOutput) + return ret0, ret1 +} + +// UpdateNotebookInstanceLifecycleConfigRequest indicates an expected call of UpdateNotebookInstanceLifecycleConfigRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdateNotebookInstanceLifecycleConfigRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateNotebookInstanceLifecycleConfigRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateNotebookInstanceLifecycleConfigRequest), arg0) +} + +// UpdateNotebookInstanceLifecycleConfigWithContext mocks base method. +func (m *MockSageMakerAPI) UpdateNotebookInstanceLifecycleConfigWithContext(arg0 aws.Context, arg1 *sagemaker.UpdateNotebookInstanceLifecycleConfigInput, arg2 ...request.Option) (*sagemaker.UpdateNotebookInstanceLifecycleConfigOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateNotebookInstanceLifecycleConfigWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdateNotebookInstanceLifecycleConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateNotebookInstanceLifecycleConfigWithContext indicates an expected call of UpdateNotebookInstanceLifecycleConfigWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateNotebookInstanceLifecycleConfigWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateNotebookInstanceLifecycleConfigWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateNotebookInstanceLifecycleConfigWithContext), varargs...) +} + +// UpdateNotebookInstanceRequest mocks base method. +func (m *MockSageMakerAPI) UpdateNotebookInstanceRequest(arg0 *sagemaker.UpdateNotebookInstanceInput) (*request.Request, *sagemaker.UpdateNotebookInstanceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateNotebookInstanceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdateNotebookInstanceOutput) + return ret0, ret1 +} + +// UpdateNotebookInstanceRequest indicates an expected call of UpdateNotebookInstanceRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdateNotebookInstanceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateNotebookInstanceRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateNotebookInstanceRequest), arg0) +} + +// UpdateNotebookInstanceWithContext mocks base method. +func (m *MockSageMakerAPI) UpdateNotebookInstanceWithContext(arg0 aws.Context, arg1 *sagemaker.UpdateNotebookInstanceInput, arg2 ...request.Option) (*sagemaker.UpdateNotebookInstanceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateNotebookInstanceWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdateNotebookInstanceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateNotebookInstanceWithContext indicates an expected call of UpdateNotebookInstanceWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateNotebookInstanceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateNotebookInstanceWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateNotebookInstanceWithContext), varargs...) +} + +// UpdatePipeline mocks base method. +func (m *MockSageMakerAPI) UpdatePipeline(arg0 *sagemaker.UpdatePipelineInput) (*sagemaker.UpdatePipelineOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdatePipeline", arg0) + ret0, _ := ret[0].(*sagemaker.UpdatePipelineOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdatePipeline indicates an expected call of UpdatePipeline. +func (mr *MockSageMakerAPIMockRecorder) UpdatePipeline(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePipeline", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdatePipeline), arg0) +} + +// UpdatePipelineExecution mocks base method. +func (m *MockSageMakerAPI) UpdatePipelineExecution(arg0 *sagemaker.UpdatePipelineExecutionInput) (*sagemaker.UpdatePipelineExecutionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdatePipelineExecution", arg0) + ret0, _ := ret[0].(*sagemaker.UpdatePipelineExecutionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdatePipelineExecution indicates an expected call of UpdatePipelineExecution. +func (mr *MockSageMakerAPIMockRecorder) UpdatePipelineExecution(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePipelineExecution", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdatePipelineExecution), arg0) +} + +// UpdatePipelineExecutionRequest mocks base method. +func (m *MockSageMakerAPI) UpdatePipelineExecutionRequest(arg0 *sagemaker.UpdatePipelineExecutionInput) (*request.Request, *sagemaker.UpdatePipelineExecutionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdatePipelineExecutionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdatePipelineExecutionOutput) + return ret0, ret1 +} + +// UpdatePipelineExecutionRequest indicates an expected call of UpdatePipelineExecutionRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdatePipelineExecutionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePipelineExecutionRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdatePipelineExecutionRequest), arg0) +} + +// UpdatePipelineExecutionWithContext mocks base method. +func (m *MockSageMakerAPI) UpdatePipelineExecutionWithContext(arg0 aws.Context, arg1 *sagemaker.UpdatePipelineExecutionInput, arg2 ...request.Option) (*sagemaker.UpdatePipelineExecutionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdatePipelineExecutionWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdatePipelineExecutionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdatePipelineExecutionWithContext indicates an expected call of UpdatePipelineExecutionWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdatePipelineExecutionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePipelineExecutionWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdatePipelineExecutionWithContext), varargs...) +} + +// UpdatePipelineRequest mocks base method. +func (m *MockSageMakerAPI) UpdatePipelineRequest(arg0 *sagemaker.UpdatePipelineInput) (*request.Request, *sagemaker.UpdatePipelineOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdatePipelineRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdatePipelineOutput) + return ret0, ret1 +} + +// UpdatePipelineRequest indicates an expected call of UpdatePipelineRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdatePipelineRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePipelineRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdatePipelineRequest), arg0) +} + +// UpdatePipelineWithContext mocks base method. +func (m *MockSageMakerAPI) UpdatePipelineWithContext(arg0 aws.Context, arg1 *sagemaker.UpdatePipelineInput, arg2 ...request.Option) (*sagemaker.UpdatePipelineOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdatePipelineWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdatePipelineOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdatePipelineWithContext indicates an expected call of UpdatePipelineWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdatePipelineWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePipelineWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdatePipelineWithContext), varargs...) +} + +// UpdateProject mocks base method. +func (m *MockSageMakerAPI) UpdateProject(arg0 *sagemaker.UpdateProjectInput) (*sagemaker.UpdateProjectOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateProject", arg0) + ret0, _ := ret[0].(*sagemaker.UpdateProjectOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateProject indicates an expected call of UpdateProject. +func (mr *MockSageMakerAPIMockRecorder) UpdateProject(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateProject", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateProject), arg0) +} + +// UpdateProjectRequest mocks base method. +func (m *MockSageMakerAPI) UpdateProjectRequest(arg0 *sagemaker.UpdateProjectInput) (*request.Request, *sagemaker.UpdateProjectOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateProjectRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdateProjectOutput) + return ret0, ret1 +} + +// UpdateProjectRequest indicates an expected call of UpdateProjectRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdateProjectRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateProjectRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateProjectRequest), arg0) +} + +// UpdateProjectWithContext mocks base method. +func (m *MockSageMakerAPI) UpdateProjectWithContext(arg0 aws.Context, arg1 *sagemaker.UpdateProjectInput, arg2 ...request.Option) (*sagemaker.UpdateProjectOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateProjectWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdateProjectOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateProjectWithContext indicates an expected call of UpdateProjectWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateProjectWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateProjectWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateProjectWithContext), varargs...) +} + +// UpdateSpace mocks base method. +func (m *MockSageMakerAPI) UpdateSpace(arg0 *sagemaker.UpdateSpaceInput) (*sagemaker.UpdateSpaceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateSpace", arg0) + ret0, _ := ret[0].(*sagemaker.UpdateSpaceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateSpace indicates an expected call of UpdateSpace. +func (mr *MockSageMakerAPIMockRecorder) UpdateSpace(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSpace", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateSpace), arg0) +} + +// UpdateSpaceRequest mocks base method. +func (m *MockSageMakerAPI) UpdateSpaceRequest(arg0 *sagemaker.UpdateSpaceInput) (*request.Request, *sagemaker.UpdateSpaceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateSpaceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdateSpaceOutput) + return ret0, ret1 +} + +// UpdateSpaceRequest indicates an expected call of UpdateSpaceRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdateSpaceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSpaceRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateSpaceRequest), arg0) +} + +// UpdateSpaceWithContext mocks base method. +func (m *MockSageMakerAPI) UpdateSpaceWithContext(arg0 aws.Context, arg1 *sagemaker.UpdateSpaceInput, arg2 ...request.Option) (*sagemaker.UpdateSpaceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateSpaceWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdateSpaceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateSpaceWithContext indicates an expected call of UpdateSpaceWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateSpaceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSpaceWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateSpaceWithContext), varargs...) +} + +// UpdateTrainingJob mocks base method. +func (m *MockSageMakerAPI) UpdateTrainingJob(arg0 *sagemaker.UpdateTrainingJobInput) (*sagemaker.UpdateTrainingJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTrainingJob", arg0) + ret0, _ := ret[0].(*sagemaker.UpdateTrainingJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTrainingJob indicates an expected call of UpdateTrainingJob. +func (mr *MockSageMakerAPIMockRecorder) UpdateTrainingJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTrainingJob", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateTrainingJob), arg0) +} + +// UpdateTrainingJobRequest mocks base method. +func (m *MockSageMakerAPI) UpdateTrainingJobRequest(arg0 *sagemaker.UpdateTrainingJobInput) (*request.Request, *sagemaker.UpdateTrainingJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTrainingJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdateTrainingJobOutput) + return ret0, ret1 +} + +// UpdateTrainingJobRequest indicates an expected call of UpdateTrainingJobRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdateTrainingJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTrainingJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateTrainingJobRequest), arg0) +} + +// UpdateTrainingJobWithContext mocks base method. +func (m *MockSageMakerAPI) UpdateTrainingJobWithContext(arg0 aws.Context, arg1 *sagemaker.UpdateTrainingJobInput, arg2 ...request.Option) (*sagemaker.UpdateTrainingJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateTrainingJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdateTrainingJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTrainingJobWithContext indicates an expected call of UpdateTrainingJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateTrainingJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTrainingJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateTrainingJobWithContext), varargs...) +} + +// UpdateTrial mocks base method. +func (m *MockSageMakerAPI) UpdateTrial(arg0 *sagemaker.UpdateTrialInput) (*sagemaker.UpdateTrialOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTrial", arg0) + ret0, _ := ret[0].(*sagemaker.UpdateTrialOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTrial indicates an expected call of UpdateTrial. +func (mr *MockSageMakerAPIMockRecorder) UpdateTrial(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTrial", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateTrial), arg0) +} + +// UpdateTrialComponent mocks base method. +func (m *MockSageMakerAPI) UpdateTrialComponent(arg0 *sagemaker.UpdateTrialComponentInput) (*sagemaker.UpdateTrialComponentOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTrialComponent", arg0) + ret0, _ := ret[0].(*sagemaker.UpdateTrialComponentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTrialComponent indicates an expected call of UpdateTrialComponent. +func (mr *MockSageMakerAPIMockRecorder) UpdateTrialComponent(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTrialComponent", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateTrialComponent), arg0) +} + +// UpdateTrialComponentRequest mocks base method. +func (m *MockSageMakerAPI) UpdateTrialComponentRequest(arg0 *sagemaker.UpdateTrialComponentInput) (*request.Request, *sagemaker.UpdateTrialComponentOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTrialComponentRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdateTrialComponentOutput) + return ret0, ret1 +} + +// UpdateTrialComponentRequest indicates an expected call of UpdateTrialComponentRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdateTrialComponentRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTrialComponentRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateTrialComponentRequest), arg0) +} + +// UpdateTrialComponentWithContext mocks base method. +func (m *MockSageMakerAPI) UpdateTrialComponentWithContext(arg0 aws.Context, arg1 *sagemaker.UpdateTrialComponentInput, arg2 ...request.Option) (*sagemaker.UpdateTrialComponentOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateTrialComponentWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdateTrialComponentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTrialComponentWithContext indicates an expected call of UpdateTrialComponentWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateTrialComponentWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTrialComponentWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateTrialComponentWithContext), varargs...) +} + +// UpdateTrialRequest mocks base method. +func (m *MockSageMakerAPI) UpdateTrialRequest(arg0 *sagemaker.UpdateTrialInput) (*request.Request, *sagemaker.UpdateTrialOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTrialRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdateTrialOutput) + return ret0, ret1 +} + +// UpdateTrialRequest indicates an expected call of UpdateTrialRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdateTrialRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTrialRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateTrialRequest), arg0) +} + +// UpdateTrialWithContext mocks base method. +func (m *MockSageMakerAPI) UpdateTrialWithContext(arg0 aws.Context, arg1 *sagemaker.UpdateTrialInput, arg2 ...request.Option) (*sagemaker.UpdateTrialOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateTrialWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdateTrialOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTrialWithContext indicates an expected call of UpdateTrialWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateTrialWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTrialWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateTrialWithContext), varargs...) +} + +// UpdateUserProfile mocks base method. +func (m *MockSageMakerAPI) UpdateUserProfile(arg0 *sagemaker.UpdateUserProfileInput) (*sagemaker.UpdateUserProfileOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateUserProfile", arg0) + ret0, _ := ret[0].(*sagemaker.UpdateUserProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateUserProfile indicates an expected call of UpdateUserProfile. +func (mr *MockSageMakerAPIMockRecorder) UpdateUserProfile(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserProfile", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateUserProfile), arg0) +} + +// UpdateUserProfileRequest mocks base method. +func (m *MockSageMakerAPI) UpdateUserProfileRequest(arg0 *sagemaker.UpdateUserProfileInput) (*request.Request, *sagemaker.UpdateUserProfileOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateUserProfileRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdateUserProfileOutput) + return ret0, ret1 +} + +// UpdateUserProfileRequest indicates an expected call of UpdateUserProfileRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdateUserProfileRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserProfileRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateUserProfileRequest), arg0) +} + +// UpdateUserProfileWithContext mocks base method. +func (m *MockSageMakerAPI) UpdateUserProfileWithContext(arg0 aws.Context, arg1 *sagemaker.UpdateUserProfileInput, arg2 ...request.Option) (*sagemaker.UpdateUserProfileOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateUserProfileWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdateUserProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateUserProfileWithContext indicates an expected call of UpdateUserProfileWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateUserProfileWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserProfileWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateUserProfileWithContext), varargs...) +} + +// UpdateWorkforce mocks base method. +func (m *MockSageMakerAPI) UpdateWorkforce(arg0 *sagemaker.UpdateWorkforceInput) (*sagemaker.UpdateWorkforceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateWorkforce", arg0) + ret0, _ := ret[0].(*sagemaker.UpdateWorkforceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateWorkforce indicates an expected call of UpdateWorkforce. +func (mr *MockSageMakerAPIMockRecorder) UpdateWorkforce(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateWorkforce", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateWorkforce), arg0) +} + +// UpdateWorkforceRequest mocks base method. +func (m *MockSageMakerAPI) UpdateWorkforceRequest(arg0 *sagemaker.UpdateWorkforceInput) (*request.Request, *sagemaker.UpdateWorkforceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateWorkforceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdateWorkforceOutput) + return ret0, ret1 +} + +// UpdateWorkforceRequest indicates an expected call of UpdateWorkforceRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdateWorkforceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateWorkforceRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateWorkforceRequest), arg0) +} + +// UpdateWorkforceWithContext mocks base method. +func (m *MockSageMakerAPI) UpdateWorkforceWithContext(arg0 aws.Context, arg1 *sagemaker.UpdateWorkforceInput, arg2 ...request.Option) (*sagemaker.UpdateWorkforceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateWorkforceWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdateWorkforceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateWorkforceWithContext indicates an expected call of UpdateWorkforceWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateWorkforceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateWorkforceWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateWorkforceWithContext), varargs...) +} + +// UpdateWorkteam mocks base method. +func (m *MockSageMakerAPI) UpdateWorkteam(arg0 *sagemaker.UpdateWorkteamInput) (*sagemaker.UpdateWorkteamOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateWorkteam", arg0) + ret0, _ := ret[0].(*sagemaker.UpdateWorkteamOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateWorkteam indicates an expected call of UpdateWorkteam. +func (mr *MockSageMakerAPIMockRecorder) UpdateWorkteam(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateWorkteam", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateWorkteam), arg0) +} + +// UpdateWorkteamRequest mocks base method. +func (m *MockSageMakerAPI) UpdateWorkteamRequest(arg0 *sagemaker.UpdateWorkteamInput) (*request.Request, *sagemaker.UpdateWorkteamOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateWorkteamRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdateWorkteamOutput) + return ret0, ret1 +} + +// UpdateWorkteamRequest indicates an expected call of UpdateWorkteamRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdateWorkteamRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateWorkteamRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateWorkteamRequest), arg0) +} + +// UpdateWorkteamWithContext mocks base method. +func (m *MockSageMakerAPI) UpdateWorkteamWithContext(arg0 aws.Context, arg1 *sagemaker.UpdateWorkteamInput, arg2 ...request.Option) (*sagemaker.UpdateWorkteamOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateWorkteamWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdateWorkteamOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateWorkteamWithContext indicates an expected call of UpdateWorkteamWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateWorkteamWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateWorkteamWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateWorkteamWithContext), varargs...) +} + +// WaitUntilEndpointDeleted mocks base method. +func (m *MockSageMakerAPI) WaitUntilEndpointDeleted(arg0 *sagemaker.DescribeEndpointInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilEndpointDeleted", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilEndpointDeleted indicates an expected call of WaitUntilEndpointDeleted. +func (mr *MockSageMakerAPIMockRecorder) WaitUntilEndpointDeleted(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilEndpointDeleted", reflect.TypeOf((*MockSageMakerAPI)(nil).WaitUntilEndpointDeleted), arg0) +} + +// WaitUntilEndpointDeletedWithContext mocks base method. +func (m *MockSageMakerAPI) WaitUntilEndpointDeletedWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeEndpointInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilEndpointDeletedWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilEndpointDeletedWithContext indicates an expected call of WaitUntilEndpointDeletedWithContext. +func (mr *MockSageMakerAPIMockRecorder) WaitUntilEndpointDeletedWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilEndpointDeletedWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).WaitUntilEndpointDeletedWithContext), varargs...) +} + +// WaitUntilEndpointInService mocks base method. +func (m *MockSageMakerAPI) WaitUntilEndpointInService(arg0 *sagemaker.DescribeEndpointInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilEndpointInService", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilEndpointInService indicates an expected call of WaitUntilEndpointInService. +func (mr *MockSageMakerAPIMockRecorder) WaitUntilEndpointInService(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilEndpointInService", reflect.TypeOf((*MockSageMakerAPI)(nil).WaitUntilEndpointInService), arg0) +} + +// WaitUntilEndpointInServiceWithContext mocks base method. +func (m *MockSageMakerAPI) WaitUntilEndpointInServiceWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeEndpointInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilEndpointInServiceWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilEndpointInServiceWithContext indicates an expected call of WaitUntilEndpointInServiceWithContext. +func (mr *MockSageMakerAPIMockRecorder) WaitUntilEndpointInServiceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilEndpointInServiceWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).WaitUntilEndpointInServiceWithContext), varargs...) +} + +// WaitUntilImageCreated mocks base method. +func (m *MockSageMakerAPI) WaitUntilImageCreated(arg0 *sagemaker.DescribeImageInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilImageCreated", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilImageCreated indicates an expected call of WaitUntilImageCreated. +func (mr *MockSageMakerAPIMockRecorder) WaitUntilImageCreated(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilImageCreated", reflect.TypeOf((*MockSageMakerAPI)(nil).WaitUntilImageCreated), arg0) +} + +// WaitUntilImageCreatedWithContext mocks base method. +func (m *MockSageMakerAPI) WaitUntilImageCreatedWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeImageInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilImageCreatedWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilImageCreatedWithContext indicates an expected call of WaitUntilImageCreatedWithContext. +func (mr *MockSageMakerAPIMockRecorder) WaitUntilImageCreatedWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilImageCreatedWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).WaitUntilImageCreatedWithContext), varargs...) +} + +// WaitUntilImageDeleted mocks base method. +func (m *MockSageMakerAPI) WaitUntilImageDeleted(arg0 *sagemaker.DescribeImageInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilImageDeleted", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilImageDeleted indicates an expected call of WaitUntilImageDeleted. +func (mr *MockSageMakerAPIMockRecorder) WaitUntilImageDeleted(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilImageDeleted", reflect.TypeOf((*MockSageMakerAPI)(nil).WaitUntilImageDeleted), arg0) +} + +// WaitUntilImageDeletedWithContext mocks base method. +func (m *MockSageMakerAPI) WaitUntilImageDeletedWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeImageInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilImageDeletedWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilImageDeletedWithContext indicates an expected call of WaitUntilImageDeletedWithContext. +func (mr *MockSageMakerAPIMockRecorder) WaitUntilImageDeletedWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilImageDeletedWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).WaitUntilImageDeletedWithContext), varargs...) +} + +// WaitUntilImageUpdated mocks base method. +func (m *MockSageMakerAPI) WaitUntilImageUpdated(arg0 *sagemaker.DescribeImageInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilImageUpdated", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilImageUpdated indicates an expected call of WaitUntilImageUpdated. +func (mr *MockSageMakerAPIMockRecorder) WaitUntilImageUpdated(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilImageUpdated", reflect.TypeOf((*MockSageMakerAPI)(nil).WaitUntilImageUpdated), arg0) +} + +// WaitUntilImageUpdatedWithContext mocks base method. +func (m *MockSageMakerAPI) WaitUntilImageUpdatedWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeImageInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilImageUpdatedWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilImageUpdatedWithContext indicates an expected call of WaitUntilImageUpdatedWithContext. +func (mr *MockSageMakerAPIMockRecorder) WaitUntilImageUpdatedWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilImageUpdatedWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).WaitUntilImageUpdatedWithContext), varargs...) +} + +// WaitUntilImageVersionCreated mocks base method. +func (m *MockSageMakerAPI) WaitUntilImageVersionCreated(arg0 *sagemaker.DescribeImageVersionInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilImageVersionCreated", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilImageVersionCreated indicates an expected call of WaitUntilImageVersionCreated. +func (mr *MockSageMakerAPIMockRecorder) WaitUntilImageVersionCreated(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilImageVersionCreated", reflect.TypeOf((*MockSageMakerAPI)(nil).WaitUntilImageVersionCreated), arg0) +} + +// WaitUntilImageVersionCreatedWithContext mocks base method. +func (m *MockSageMakerAPI) WaitUntilImageVersionCreatedWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeImageVersionInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilImageVersionCreatedWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilImageVersionCreatedWithContext indicates an expected call of WaitUntilImageVersionCreatedWithContext. +func (mr *MockSageMakerAPIMockRecorder) WaitUntilImageVersionCreatedWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilImageVersionCreatedWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).WaitUntilImageVersionCreatedWithContext), varargs...) +} + +// WaitUntilImageVersionDeleted mocks base method. +func (m *MockSageMakerAPI) WaitUntilImageVersionDeleted(arg0 *sagemaker.DescribeImageVersionInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilImageVersionDeleted", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilImageVersionDeleted indicates an expected call of WaitUntilImageVersionDeleted. +func (mr *MockSageMakerAPIMockRecorder) WaitUntilImageVersionDeleted(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilImageVersionDeleted", reflect.TypeOf((*MockSageMakerAPI)(nil).WaitUntilImageVersionDeleted), arg0) +} + +// WaitUntilImageVersionDeletedWithContext mocks base method. +func (m *MockSageMakerAPI) WaitUntilImageVersionDeletedWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeImageVersionInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilImageVersionDeletedWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilImageVersionDeletedWithContext indicates an expected call of WaitUntilImageVersionDeletedWithContext. +func (mr *MockSageMakerAPIMockRecorder) WaitUntilImageVersionDeletedWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilImageVersionDeletedWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).WaitUntilImageVersionDeletedWithContext), varargs...) +} + +// WaitUntilNotebookInstanceDeleted mocks base method. +func (m *MockSageMakerAPI) WaitUntilNotebookInstanceDeleted(arg0 *sagemaker.DescribeNotebookInstanceInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilNotebookInstanceDeleted", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilNotebookInstanceDeleted indicates an expected call of WaitUntilNotebookInstanceDeleted. +func (mr *MockSageMakerAPIMockRecorder) WaitUntilNotebookInstanceDeleted(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilNotebookInstanceDeleted", reflect.TypeOf((*MockSageMakerAPI)(nil).WaitUntilNotebookInstanceDeleted), arg0) +} + +// WaitUntilNotebookInstanceDeletedWithContext mocks base method. +func (m *MockSageMakerAPI) WaitUntilNotebookInstanceDeletedWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeNotebookInstanceInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilNotebookInstanceDeletedWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilNotebookInstanceDeletedWithContext indicates an expected call of WaitUntilNotebookInstanceDeletedWithContext. +func (mr *MockSageMakerAPIMockRecorder) WaitUntilNotebookInstanceDeletedWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilNotebookInstanceDeletedWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).WaitUntilNotebookInstanceDeletedWithContext), varargs...) +} + +// WaitUntilNotebookInstanceInService mocks base method. +func (m *MockSageMakerAPI) WaitUntilNotebookInstanceInService(arg0 *sagemaker.DescribeNotebookInstanceInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilNotebookInstanceInService", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilNotebookInstanceInService indicates an expected call of WaitUntilNotebookInstanceInService. +func (mr *MockSageMakerAPIMockRecorder) WaitUntilNotebookInstanceInService(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilNotebookInstanceInService", reflect.TypeOf((*MockSageMakerAPI)(nil).WaitUntilNotebookInstanceInService), arg0) +} + +// WaitUntilNotebookInstanceInServiceWithContext mocks base method. +func (m *MockSageMakerAPI) WaitUntilNotebookInstanceInServiceWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeNotebookInstanceInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilNotebookInstanceInServiceWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilNotebookInstanceInServiceWithContext indicates an expected call of WaitUntilNotebookInstanceInServiceWithContext. +func (mr *MockSageMakerAPIMockRecorder) WaitUntilNotebookInstanceInServiceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilNotebookInstanceInServiceWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).WaitUntilNotebookInstanceInServiceWithContext), varargs...) +} + +// WaitUntilNotebookInstanceStopped mocks base method. +func (m *MockSageMakerAPI) WaitUntilNotebookInstanceStopped(arg0 *sagemaker.DescribeNotebookInstanceInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilNotebookInstanceStopped", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilNotebookInstanceStopped indicates an expected call of WaitUntilNotebookInstanceStopped. +func (mr *MockSageMakerAPIMockRecorder) WaitUntilNotebookInstanceStopped(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilNotebookInstanceStopped", reflect.TypeOf((*MockSageMakerAPI)(nil).WaitUntilNotebookInstanceStopped), arg0) +} + +// WaitUntilNotebookInstanceStoppedWithContext mocks base method. +func (m *MockSageMakerAPI) WaitUntilNotebookInstanceStoppedWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeNotebookInstanceInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilNotebookInstanceStoppedWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilNotebookInstanceStoppedWithContext indicates an expected call of WaitUntilNotebookInstanceStoppedWithContext. +func (mr *MockSageMakerAPIMockRecorder) WaitUntilNotebookInstanceStoppedWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilNotebookInstanceStoppedWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).WaitUntilNotebookInstanceStoppedWithContext), varargs...) +} + +// WaitUntilProcessingJobCompletedOrStopped mocks base method. +func (m *MockSageMakerAPI) WaitUntilProcessingJobCompletedOrStopped(arg0 *sagemaker.DescribeProcessingJobInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilProcessingJobCompletedOrStopped", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilProcessingJobCompletedOrStopped indicates an expected call of WaitUntilProcessingJobCompletedOrStopped. +func (mr *MockSageMakerAPIMockRecorder) WaitUntilProcessingJobCompletedOrStopped(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilProcessingJobCompletedOrStopped", reflect.TypeOf((*MockSageMakerAPI)(nil).WaitUntilProcessingJobCompletedOrStopped), arg0) +} + +// WaitUntilProcessingJobCompletedOrStoppedWithContext mocks base method. +func (m *MockSageMakerAPI) WaitUntilProcessingJobCompletedOrStoppedWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeProcessingJobInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilProcessingJobCompletedOrStoppedWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilProcessingJobCompletedOrStoppedWithContext indicates an expected call of WaitUntilProcessingJobCompletedOrStoppedWithContext. +func (mr *MockSageMakerAPIMockRecorder) WaitUntilProcessingJobCompletedOrStoppedWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilProcessingJobCompletedOrStoppedWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).WaitUntilProcessingJobCompletedOrStoppedWithContext), varargs...) +} + +// WaitUntilTrainingJobCompletedOrStopped mocks base method. +func (m *MockSageMakerAPI) WaitUntilTrainingJobCompletedOrStopped(arg0 *sagemaker.DescribeTrainingJobInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilTrainingJobCompletedOrStopped", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilTrainingJobCompletedOrStopped indicates an expected call of WaitUntilTrainingJobCompletedOrStopped. +func (mr *MockSageMakerAPIMockRecorder) WaitUntilTrainingJobCompletedOrStopped(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilTrainingJobCompletedOrStopped", reflect.TypeOf((*MockSageMakerAPI)(nil).WaitUntilTrainingJobCompletedOrStopped), arg0) +} + +// WaitUntilTrainingJobCompletedOrStoppedWithContext mocks base method. +func (m *MockSageMakerAPI) WaitUntilTrainingJobCompletedOrStoppedWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeTrainingJobInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilTrainingJobCompletedOrStoppedWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilTrainingJobCompletedOrStoppedWithContext indicates an expected call of WaitUntilTrainingJobCompletedOrStoppedWithContext. +func (mr *MockSageMakerAPIMockRecorder) WaitUntilTrainingJobCompletedOrStoppedWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilTrainingJobCompletedOrStoppedWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).WaitUntilTrainingJobCompletedOrStoppedWithContext), varargs...) +} + +// WaitUntilTransformJobCompletedOrStopped mocks base method. +func (m *MockSageMakerAPI) WaitUntilTransformJobCompletedOrStopped(arg0 *sagemaker.DescribeTransformJobInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilTransformJobCompletedOrStopped", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilTransformJobCompletedOrStopped indicates an expected call of WaitUntilTransformJobCompletedOrStopped. +func (mr *MockSageMakerAPIMockRecorder) WaitUntilTransformJobCompletedOrStopped(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilTransformJobCompletedOrStopped", reflect.TypeOf((*MockSageMakerAPI)(nil).WaitUntilTransformJobCompletedOrStopped), arg0) +} + +// WaitUntilTransformJobCompletedOrStoppedWithContext mocks base method. +func (m *MockSageMakerAPI) WaitUntilTransformJobCompletedOrStoppedWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeTransformJobInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilTransformJobCompletedOrStoppedWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilTransformJobCompletedOrStoppedWithContext indicates an expected call of WaitUntilTransformJobCompletedOrStoppedWithContext. +func (mr *MockSageMakerAPIMockRecorder) WaitUntilTransformJobCompletedOrStoppedWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilTransformJobCompletedOrStoppedWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).WaitUntilTransformJobCompletedOrStoppedWithContext), varargs...) +} From 2408539b5b73965c6ca88e7ed3d6dc490092644c Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 7 Mar 2024 15:39:12 -0700 Subject: [PATCH 231/617] test(sagemaker-domain): add mocks to test remove and tag support for sagemaker domain --- resources/sagemaker-domain_test.go | 89 ++++++++++++++++++++++++++++++ resources/sagemaker_mock_test.go | 4 ++ 2 files changed, 93 insertions(+) create mode 100644 resources/sagemaker-domain_test.go create mode 100644 resources/sagemaker_mock_test.go diff --git a/resources/sagemaker-domain_test.go b/resources/sagemaker-domain_test.go new file mode 100644 index 00000000..501b60cf --- /dev/null +++ b/resources/sagemaker-domain_test.go @@ -0,0 +1,89 @@ +package resources + +import ( + "context" + "github.com/aws/aws-sdk-go/service/sagemaker" + "github.com/ekristen/aws-nuke/mocks/mock_sagemakeriface" + "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/golang/mock/gomock" + "github.com/gotidy/ptr" + "github.com/stretchr/testify/assert" + "testing" + "time" +) + +// TestSageMakerDomain_List is a unit test function to test the list of SageMakerDomain via mocked interface +func TestSageMakerDomain_List(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockSageMaker := mock_sagemakeriface.NewMockSageMakerAPI(ctrl) + + sagemakerDomainLister := SageMakerDomainLister{ + svc: mockSageMaker, + } + + sagemakerDomain := SageMakerDomain{ + svc: mockSageMaker, + domainID: ptr.String("test"), + tags: []*sagemaker.Tag{ + { + Key: ptr.String("testKey"), + Value: ptr.String("testValue"), + }, + }, + } + + mockSageMaker.EXPECT().ListDomains(gomock.Eq(&sagemaker.ListDomainsInput{ + MaxResults: ptr.Int64(30), + })).Return(&sagemaker.ListDomainsOutput{ + Domains: []*sagemaker.DomainDetails{ + { + DomainId: ptr.String("test"), + DomainArn: ptr.String("testArn"), + }, + }, + }, nil) + + mockSageMaker.EXPECT().ListTags(gomock.Eq(&sagemaker.ListTagsInput{ + ResourceArn: ptr.String("testArn"), + })).Return(&sagemaker.ListTagsOutput{ + Tags: []*sagemaker.Tag{ + { + Key: ptr.String("testKey"), + Value: ptr.String("testValue"), + }, + }, + }, nil) + + resources, err := sagemakerDomainLister.List(context.TODO(), &nuke.ListerOpts{}) + a.NoError(err) + a.Len(resources, 1) + a.Equal([]resource.Resource{&sagemakerDomain}, resources) +} + +// TestSageMakerDomain_Remove is a unit test function to test the remove of a SageMakerDomain via mocked interface +func TestSageMakerDomain_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockSageMaker := mock_sagemakeriface.NewMockSageMakerAPI(ctrl) + + sagemakerDomain := SageMakerDomain{ + svc: mockSageMaker, + domainID: ptr.String("test"), + creationTime: ptr.Time(time.Now().UTC()), + } + + mockSageMaker.EXPECT().DeleteDomain(gomock.Eq(&sagemaker.DeleteDomainInput{ + DomainId: sagemakerDomain.domainID, + RetentionPolicy: &sagemaker.RetentionPolicy{ + HomeEfsFileSystem: ptr.String(sagemaker.RetentionTypeDelete), + }, + })) + + a.NoError(sagemakerDomain.Remove(context.TODO())) +} diff --git a/resources/sagemaker_mock_test.go b/resources/sagemaker_mock_test.go new file mode 100644 index 00000000..b62f76f6 --- /dev/null +++ b/resources/sagemaker_mock_test.go @@ -0,0 +1,4 @@ +//go:generate ../mocks/generate_mocks.sh sagemaker sagemakeriface +package resources + +// Note: empty on purpose, this file exist purely to generate mocks for the CloudFormation service From 20ccfc2d87667555b9b271e3b4d29f42ff5e92b1 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 7 Mar 2024 15:45:46 -0700 Subject: [PATCH 232/617] chore(golangci-lint): fix violations --- resources/sagemaker-domain.go | 5 +++-- resources/sagemaker-domain_test.go | 16 ++++++++++------ 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/resources/sagemaker-domain.go b/resources/sagemaker-domain.go index fcda579a..526ef82b 100644 --- a/resources/sagemaker-domain.go +++ b/resources/sagemaker-domain.go @@ -2,13 +2,14 @@ package resources import ( "context" - "github.com/aws/aws-sdk-go/service/sagemaker/sagemakeriface" + "time" + "github.com/gotidy/ptr" "github.com/sirupsen/logrus" - "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/sagemaker" + "github.com/aws/aws-sdk-go/service/sagemaker/sagemakeriface" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" diff --git a/resources/sagemaker-domain_test.go b/resources/sagemaker-domain_test.go index 501b60cf..881bdaf9 100644 --- a/resources/sagemaker-domain_test.go +++ b/resources/sagemaker-domain_test.go @@ -2,15 +2,19 @@ package resources import ( "context" - "github.com/aws/aws-sdk-go/service/sagemaker" - "github.com/ekristen/aws-nuke/mocks/mock_sagemakeriface" - "github.com/ekristen/aws-nuke/pkg/nuke" - "github.com/ekristen/libnuke/pkg/resource" + "testing" + "time" + "github.com/golang/mock/gomock" "github.com/gotidy/ptr" "github.com/stretchr/testify/assert" - "testing" - "time" + + "github.com/aws/aws-sdk-go/service/sagemaker" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/mocks/mock_sagemakeriface" + "github.com/ekristen/aws-nuke/pkg/nuke" ) // TestSageMakerDomain_List is a unit test function to test the list of SageMakerDomain via mocked interface From 0793e8edcabaa168c396f4d2d70b60cd8f5ccd10 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 7 Mar 2024 16:45:42 -0700 Subject: [PATCH 233/617] test(sagemaker-domain): test string and properties methods --- resources/sagemaker-domain_test.go | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/resources/sagemaker-domain_test.go b/resources/sagemaker-domain_test.go index 881bdaf9..6a71f20a 100644 --- a/resources/sagemaker-domain_test.go +++ b/resources/sagemaker-domain_test.go @@ -76,12 +76,24 @@ func TestSageMakerDomain_Remove(t *testing.T) { mockSageMaker := mock_sagemakeriface.NewMockSageMakerAPI(ctrl) + testTime := time.Now().UTC() + sagemakerDomain := SageMakerDomain{ svc: mockSageMaker, domainID: ptr.String("test"), - creationTime: ptr.Time(time.Now().UTC()), + creationTime: ptr.Time(testTime), + tags: []*sagemaker.Tag{ + { + Key: ptr.String("testKey"), + Value: ptr.String("testValue"), + }, + }, } + a.Equal("test", sagemakerDomain.String()) + a.Equal(testTime.Format(time.RFC3339), sagemakerDomain.Properties().Get("CreationTime")) + a.Equal("testValue", sagemakerDomain.Properties().Get("tag:testKey")) + mockSageMaker.EXPECT().DeleteDomain(gomock.Eq(&sagemaker.DeleteDomainInput{ DomainId: sagemakerDomain.domainID, RetentionPolicy: &sagemaker.RetentionPolicy{ From 7f0c83bcdae19dc1ab18b2f0c65232efcc092dab Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 7 Mar 2024 17:03:36 -0700 Subject: [PATCH 234/617] ci: allow workflow dispatch to upload artifacts --- .github/workflows/goreleaser.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index a26886c6..883062f9 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -93,7 +93,7 @@ jobs: run: | docker images --format "{{.Repository}}:{{.Tag}}" | grep "${{ github.repository }}" | xargs -L1 docker push - name: upload artifacts - if: github.event.pull_request.base.ref == 'main' + if: ${{ github.event.pull_request.base.ref == 'main' || github.event_name == 'workflow_dispatch' }} uses: actions/upload-artifact@v4 with: name: binaries From b4d961e37b41e9cefd2d771c408ca325c7f74bc6 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 7 Mar 2024 20:00:48 -0700 Subject: [PATCH 235/617] chore: remove beta channel --- .releaserc.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.releaserc.yml b/.releaserc.yml index 430c8b9d..bd3a37ef 100644 --- a/.releaserc.yml +++ b/.releaserc.yml @@ -5,6 +5,7 @@ plugins: branches: - name: main + - name: v2 + - name: next prerelease: 'beta' - channel: beta - - name: v2 \ No newline at end of file + channel: beta \ No newline at end of file From fb9262709086f4bbc504c8d09136c1693c93de31 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 8 Mar 2024 11:43:04 -0700 Subject: [PATCH 236/617] fix(sagemaker-domain): bug with mock service vs real service --- resources/sagemaker-domain.go | 15 +++++++++------ resources/sagemaker-domain_test.go | 2 +- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/resources/sagemaker-domain.go b/resources/sagemaker-domain.go index 526ef82b..e4d20edd 100644 --- a/resources/sagemaker-domain.go +++ b/resources/sagemaker-domain.go @@ -29,15 +29,18 @@ func init() { } type SageMakerDomainLister struct { - svc sagemakeriface.SageMakerAPI + mockSvc sagemakeriface.SageMakerAPI } func (l *SageMakerDomainLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) // Note: this allows us to override svc in tests with a mock - if l.svc == nil { - l.svc = sagemaker.New(opts.Session) + var svc sagemakeriface.SageMakerAPI + if l.mockSvc != nil { + svc = l.mockSvc + } else { + svc = sagemaker.New(opts.Session) } resources := make([]resource.Resource, 0) @@ -47,7 +50,7 @@ func (l *SageMakerDomainLister) List(_ context.Context, o interface{}) ([]resour } for { - resp, err := l.svc.ListDomains(params) + resp, err := svc.ListDomains(params) if err != nil { return nil, err } @@ -57,7 +60,7 @@ func (l *SageMakerDomainLister) List(_ context.Context, o interface{}) ([]resour tagParams := &sagemaker.ListTagsInput{ ResourceArn: domain.DomainArn, } - tagOutput, err := l.svc.ListTags(tagParams) + tagOutput, err := svc.ListTags(tagParams) if err != nil { logrus.WithError(err).Errorf("unable to get tags for SageMakerDomain: %s", ptr.ToString(domain.DomainId)) } @@ -66,7 +69,7 @@ func (l *SageMakerDomainLister) List(_ context.Context, o interface{}) ([]resour } resources = append(resources, &SageMakerDomain{ - svc: l.svc, + svc: svc, domainID: domain.DomainId, creationTime: domain.CreationTime, tags: tags, diff --git a/resources/sagemaker-domain_test.go b/resources/sagemaker-domain_test.go index 6a71f20a..90dea84b 100644 --- a/resources/sagemaker-domain_test.go +++ b/resources/sagemaker-domain_test.go @@ -26,7 +26,7 @@ func TestSageMakerDomain_List(t *testing.T) { mockSageMaker := mock_sagemakeriface.NewMockSageMakerAPI(ctrl) sagemakerDomainLister := SageMakerDomainLister{ - svc: mockSageMaker, + mockSvc: mockSageMaker, } sagemakerDomain := SageMakerDomain{ From 1777427696134a65186588dd1268efcb034e88f1 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 8 Mar 2024 16:06:25 -0700 Subject: [PATCH 237/617] feat: upgrade to libnuke@0.11.0, add OwnerID properties --- go.mod | 4 ++-- go.sum | 5 +++++ resources/ec2-dhcp-options.go | 8 +++++++- resources/ec2-internet-gateway-attachments.go | 11 +++++++++- resources/ec2-route-tables.go | 20 +++++++++++-------- 5 files changed, 36 insertions(+), 12 deletions(-) diff --git a/go.mod b/go.mod index 2c603446..48e0f505 100644 --- a/go.mod +++ b/go.mod @@ -4,14 +4,14 @@ go 1.21.6 require ( github.com/aws/aws-sdk-go v1.50.24 - github.com/ekristen/libnuke v0.10.1 + github.com/ekristen/libnuke v0.11.0 github.com/fatih/color v1.16.0 github.com/golang/mock v1.6.0 github.com/google/uuid v1.6.0 github.com/gotidy/ptr v1.4.0 github.com/pkg/errors v0.9.1 github.com/sirupsen/logrus v1.9.3 - github.com/stretchr/testify v1.8.4 + github.com/stretchr/testify v1.9.0 github.com/urfave/cli/v2 v2.27.1 gopkg.in/yaml.v3 v3.0.1 ) diff --git a/go.sum b/go.sum index 6115db3e..e439e0bb 100644 --- a/go.sum +++ b/go.sum @@ -8,6 +8,10 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/ekristen/libnuke v0.10.1 h1:+BRdDPuFR/5a8eJu1gpShXYbYs9tJ2kemM83EsbPp2g= github.com/ekristen/libnuke v0.10.1/go.mod h1:WhYx7LDAkvkXwwfhWCASRn7fbifF8kfyhNsUj5zCCVs= +github.com/ekristen/libnuke v0.10.2 h1:kMrJqgFhmsYSEs9FCkZN90hGcf6OFESZmkBmUQ9snvI= +github.com/ekristen/libnuke v0.10.2/go.mod h1:sBdA04l9IMMejQw5gO9k6o/a0GffSYhgZYaUSdRjIac= +github.com/ekristen/libnuke v0.11.0 h1:SdSaAVnuAdGDqNlV82uAa+2FD9NeQyH96rIMduheh6o= +github.com/ekristen/libnuke v0.11.0/go.mod h1:sBdA04l9IMMejQw5gO9k6o/a0GffSYhgZYaUSdRjIac= github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= @@ -52,6 +56,7 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/urfave/cli/v2 v2.27.1 h1:8xSQ6szndafKVRmfyeUMxkNUJQMjL1F2zmsZ+qHpfho= github.com/urfave/cli/v2 v2.27.1/go.mod h1:8qnjx1vcq5s2/wpsqoZFndg2CE5tNFyrTvS6SinrnYQ= github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 h1:bAn7/zixMGCfxrRTfdpNzjtPYqr8smhKouy9mxVdGPU= diff --git a/resources/ec2-dhcp-options.go b/resources/ec2-dhcp-options.go index bca399a6..0541f3b4 100644 --- a/resources/ec2-dhcp-options.go +++ b/resources/ec2-dhcp-options.go @@ -52,6 +52,7 @@ func (l *EC2DHCPOptionLister) List(_ context.Context, o interface{}) ([]resource id: out.DhcpOptionsId, tags: out.Tags, defaultVPC: defVpcDhcpOptsID == ptr.ToString(out.DhcpOptionsId), + ownerID: out.OwnerId, }) } @@ -63,6 +64,7 @@ type EC2DHCPOption struct { id *string tags []*ec2.Tag defaultVPC bool + ownerID *string } func (e *EC2DHCPOption) Remove(_ context.Context) error { @@ -80,10 +82,14 @@ func (e *EC2DHCPOption) Remove(_ context.Context) error { func (e *EC2DHCPOption) Properties() types.Properties { properties := types.NewProperties() + + properties.Set("DefaultVPC", e.defaultVPC) + properties.Set("OwnerID", e.ownerID) + for _, tagValue := range e.tags { properties.SetTag(tagValue.Key, tagValue.Value) } - properties.Set("DefaultVPC", e.defaultVPC) + return properties } diff --git a/resources/ec2-internet-gateway-attachments.go b/resources/ec2-internet-gateway-attachments.go index 13653ef8..38e62e45 100644 --- a/resources/ec2-internet-gateway-attachments.go +++ b/resources/ec2-internet-gateway-attachments.go @@ -61,8 +61,10 @@ func (l *EC2InternetGatewayAttachmentLister) List(_ context.Context, o interface resources = append(resources, &EC2InternetGatewayAttachment{ svc: svc, vpcID: vpc.VpcId, + vpcOwnerID: vpc.OwnerId, vpcTags: vpc.Tags, igwID: igw.InternetGatewayId, + igwOwnerID: igw.OwnerId, igwTags: igw.Tags, defaultVPC: *vpc.IsDefault, }) @@ -75,8 +77,10 @@ func (l *EC2InternetGatewayAttachmentLister) List(_ context.Context, o interface type EC2InternetGatewayAttachment struct { svc *ec2.EC2 vpcID *string + vpcOwnerID *string vpcTags []*ec2.Tag igwID *string + igwOwnerID *string igwTags []*ec2.Tag defaultVPC bool } @@ -97,13 +101,18 @@ func (e *EC2InternetGatewayAttachment) Remove(_ context.Context) error { func (e *EC2InternetGatewayAttachment) Properties() types.Properties { properties := types.NewProperties() + + properties.Set("DefaultVPC", e.defaultVPC) + properties.SetWithPrefix("vpc", "OwnerID", e.vpcOwnerID) + properties.SetWithPrefix("igw", "OwnerID", e.igwOwnerID) + for _, tagValue := range e.igwTags { properties.SetTagWithPrefix("igw", tagValue.Key, tagValue.Value) } for _, tagValue := range e.vpcTags { properties.SetTagWithPrefix("vpc", tagValue.Key, tagValue.Value) } - properties.Set("DefaultVPC", e.defaultVPC) + return properties } diff --git a/resources/ec2-route-tables.go b/resources/ec2-route-tables.go index 0bcf179e..8680c9e6 100644 --- a/resources/ec2-route-tables.go +++ b/resources/ec2-route-tables.go @@ -28,13 +28,6 @@ func init() { }) } -type EC2RouteTable struct { - svc *ec2.EC2 - routeTable *ec2.RouteTable - defaultVPC bool - vpc *ec2.Vpc -} - type EC2RouteTableLister struct{} func (l *EC2RouteTableLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { @@ -64,12 +57,21 @@ func (l *EC2RouteTableLister) List(_ context.Context, o interface{}) ([]resource routeTable: out, defaultVPC: defVpcID == ptr.ToString(out.VpcId), vpc: vpc, + ownerID: out.OwnerId, }) } return resources, nil } +type EC2RouteTable struct { + svc *ec2.EC2 + routeTable *ec2.RouteTable + defaultVPC bool + vpc *ec2.Vpc + ownerID *string +} + func (e *EC2RouteTable) Filter() error { for _, association := range e.routeTable.Associations { if *association.Main { @@ -97,7 +99,9 @@ func (e *EC2RouteTable) Properties() types.Properties { properties := types.NewProperties() properties.Set("DefaultVPC", e.defaultVPC) - properties.Set("vpcID", e.routeTable.VpcId) + properties.Set("OwnerID", e.ownerID) + properties.SetWithPrefix("vpc", "vpcID", e.vpc.VpcId) + properties.SetWithPrefix("vpc", "ID", e.vpc.VpcId) for _, tagValue := range e.routeTable.Tags { properties.SetTag(tagValue.Key, tagValue.Value) From 9c7e306f9d7b6eacb3caca0352bdd6ed10361637 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 8 Mar 2024 16:08:24 -0700 Subject: [PATCH 238/617] chore: go mod tidy --- go.mod | 4 +--- go.sum | 13 +------------ 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/go.mod b/go.mod index 48e0f505..f62f436f 100644 --- a/go.mod +++ b/go.mod @@ -13,6 +13,7 @@ require ( github.com/sirupsen/logrus v1.9.3 github.com/stretchr/testify v1.9.0 github.com/urfave/cli/v2 v2.27.1 + golang.org/x/text v0.14.0 gopkg.in/yaml.v3 v3.0.1 ) @@ -29,12 +30,9 @@ require ( github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/stevenle/topsort v0.2.0 // indirect github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect - golang.org/x/mod v0.9.0 // indirect golang.org/x/net v0.19.0 // indirect golang.org/x/sync v0.6.0 // indirect golang.org/x/sys v0.16.0 // indirect - golang.org/x/text v0.14.0 // indirect - golang.org/x/tools v0.6.0 // indirect gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect gopkg.in/yaml.v2 v2.4.0 // indirect ) diff --git a/go.sum b/go.sum index e439e0bb..01bbe06e 100644 --- a/go.sum +++ b/go.sum @@ -6,10 +6,6 @@ github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ3 github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/ekristen/libnuke v0.10.1 h1:+BRdDPuFR/5a8eJu1gpShXYbYs9tJ2kemM83EsbPp2g= -github.com/ekristen/libnuke v0.10.1/go.mod h1:WhYx7LDAkvkXwwfhWCASRn7fbifF8kfyhNsUj5zCCVs= -github.com/ekristen/libnuke v0.10.2 h1:kMrJqgFhmsYSEs9FCkZN90hGcf6OFESZmkBmUQ9snvI= -github.com/ekristen/libnuke v0.10.2/go.mod h1:sBdA04l9IMMejQw5gO9k6o/a0GffSYhgZYaUSdRjIac= github.com/ekristen/libnuke v0.11.0 h1:SdSaAVnuAdGDqNlV82uAa+2FD9NeQyH96rIMduheh6o= github.com/ekristen/libnuke v0.11.0/go.mod h1:sBdA04l9IMMejQw5gO9k6o/a0GffSYhgZYaUSdRjIac= github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= @@ -54,8 +50,7 @@ github.com/stevenle/topsort v0.2.0 h1:LLWgtp34HPX6/RBDRS0kElVxGOTzGBLI1lSAa5Lb46 github.com/stevenle/topsort v0.2.0/go.mod h1:ck2WG2/ZrOr6dLApQ/5Xrqy5wv3T0qhKYWE7r9tkibc= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= -github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/urfave/cli/v2 v2.27.1 h1:8xSQ6szndafKVRmfyeUMxkNUJQMjL1F2zmsZ+qHpfho= github.com/urfave/cli/v2 v2.27.1/go.mod h1:8qnjx1vcq5s2/wpsqoZFndg2CE5tNFyrTvS6SinrnYQ= @@ -65,8 +60,6 @@ github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1 golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.9.0 h1:KENHtAZL2y3NLMYZeHY9DW8HW8V+kQyJsY/V9JlKvCs= -golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= @@ -94,10 +87,6 @@ golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.12 h1:VveCTK38A2rkS8ZqFY25HIDFscX5X9OoEhJd3quQmXU= -golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= -golang.org/x/tools v0.6.0 h1:BOw41kyTf3PuCW1pVQf8+Cyg8pMlkYB1oo9iJ6D/lKM= -golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= From 32ed6115407e14c281561629037e1f87fba4581a Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 8 Mar 2024 16:16:57 -0700 Subject: [PATCH 239/617] chore: fix the property name back to original, note future removal --- resources/ec2-route-tables.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/ec2-route-tables.go b/resources/ec2-route-tables.go index 8680c9e6..39b2850c 100644 --- a/resources/ec2-route-tables.go +++ b/resources/ec2-route-tables.go @@ -100,7 +100,7 @@ func (e *EC2RouteTable) Properties() types.Properties { properties.Set("DefaultVPC", e.defaultVPC) properties.Set("OwnerID", e.ownerID) - properties.SetWithPrefix("vpc", "vpcID", e.vpc.VpcId) + properties.Set("vpcID", e.vpc.VpcId) // TODO: deprecate and remove this properties.SetWithPrefix("vpc", "ID", e.vpc.VpcId) for _, tagValue := range e.routeTable.Tags { From 2345cdb4687f92d5347ca19514bd14669b0ef03d Mon Sep 17 00:00:00 2001 From: Oliver Fletcher Date: Mon, 26 Feb 2024 21:15:32 +1100 Subject: [PATCH 240/617] feat: adding cloudfront response headers policies --- .../cloudfront-response-headers-policies.go | 83 +++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 resources/cloudfront-response-headers-policies.go diff --git a/resources/cloudfront-response-headers-policies.go b/resources/cloudfront-response-headers-policies.go new file mode 100644 index 00000000..e075b5d6 --- /dev/null +++ b/resources/cloudfront-response-headers-policies.go @@ -0,0 +1,83 @@ +package resources + +import ( + "fmt" + "strings" + + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/cloudfront" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type CloudFrontResponseHeadersPolicy struct { + svc *cloudfront.CloudFront + ID *string + name *string +} + +func init() { + register("CloudFrontResponseHeadersPolicy", ListCloudFrontResponseHeadersPolicies) +} + +func ListCloudFrontResponseHeadersPolicies(sess *session.Session) ([]Resource, error) { + svc := cloudfront.New(sess) + resources := []Resource{} + params := &cloudfront.ListResponseHeadersPoliciesInput{} + + for { + resp, err := svc.ListResponseHeadersPolicies(params) + if err != nil { + return nil, err + } + + for _, item := range resp.ResponseHeadersPolicyList.Items { + resources = append(resources, &CloudFrontResponseHeadersPolicy{ + svc: svc, + ID: item.ResponseHeadersPolicy.Id, + name: item.ResponseHeadersPolicy.ResponseHeadersPolicyConfig.Name, + }) + } + + if resp.ResponseHeadersPolicyList.NextMarker == nil { + break + } + + params.Marker = resp.ResponseHeadersPolicyList.NextMarker + } + + return resources, nil +} + +func (f *CloudFrontResponseHeadersPolicy) Filter() error { + if strings.HasPrefix(*f.name, "Managed-") { + return fmt.Errorf("Cannot delete default CloudFront Response headers policy") + } + return nil +} + +func (f *CloudFrontResponseHeadersPolicy) Remove() error { + resp, err := f.svc.GetResponseHeadersPolicy(&cloudfront.GetResponseHeadersPolicyInput{ + Id: f.ID, + }) + if err != nil { + return err + } + + _, err = f.svc.DeleteResponseHeadersPolicy(&cloudfront.DeleteResponseHeadersPolicyInput{ + Id: f.ID, + IfMatch: resp.ETag, + }) + + return err +} + +func (f *CloudFrontResponseHeadersPolicy) String() string { + return *f.name +} + +func (f *CloudFrontResponseHeadersPolicy) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("ID", f.ID) + properties.Set("Name", f.name) + return properties +} From aa1e76e2e3ae97f43184fa044399f2567b3234f3 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sun, 10 Mar 2024 10:34:47 -0600 Subject: [PATCH 241/617] chore: format for libnuke --- .../cloudfront-response-headers-policies.go | 41 +++++++++++++------ 1 file changed, 28 insertions(+), 13 deletions(-) diff --git a/resources/cloudfront-response-headers-policies.go b/resources/cloudfront-response-headers-policies.go index e075b5d6..c7d178f4 100644 --- a/resources/cloudfront-response-headers-policies.go +++ b/resources/cloudfront-response-headers-policies.go @@ -1,27 +1,36 @@ package resources import ( + "context" "fmt" "strings" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/cloudfront" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) -type CloudFrontResponseHeadersPolicy struct { - svc *cloudfront.CloudFront - ID *string - name *string -} +const CloudFrontResponseHeadersPolicyResource = "CloudFrontResponseHeadersPolicy" func init() { - register("CloudFrontResponseHeadersPolicy", ListCloudFrontResponseHeadersPolicies) + registry.Register(®istry.Registration{ + Name: CloudFrontResponseHeadersPolicyResource, + Scope: nuke.Account, + Lister: &CloudFrontResponseHeadersPolicyLister{}, + }) } -func ListCloudFrontResponseHeadersPolicies(sess *session.Session) ([]Resource, error) { - svc := cloudfront.New(sess) - resources := []Resource{} +type CloudFrontResponseHeadersPolicyLister struct{} + +func (l *CloudFrontResponseHeadersPolicyLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := cloudfront.New(opts.Session) + resources := make([]resource.Resource, 0) params := &cloudfront.ListResponseHeadersPoliciesInput{} for { @@ -48,14 +57,20 @@ func ListCloudFrontResponseHeadersPolicies(sess *session.Session) ([]Resource, e return resources, nil } +type CloudFrontResponseHeadersPolicy struct { + svc *cloudfront.CloudFront + ID *string + name *string +} + func (f *CloudFrontResponseHeadersPolicy) Filter() error { if strings.HasPrefix(*f.name, "Managed-") { - return fmt.Errorf("Cannot delete default CloudFront Response headers policy") + return fmt.Errorf("cannot delete default CloudFront Response headers policy") } return nil } -func (f *CloudFrontResponseHeadersPolicy) Remove() error { +func (f *CloudFrontResponseHeadersPolicy) Remove(_ context.Context) error { resp, err := f.svc.GetResponseHeadersPolicy(&cloudfront.GetResponseHeadersPolicyInput{ Id: f.ID, }) From 5ebe0fd38cb035c2b879bb8e10fd9a6b0764d5dd Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 13 Mar 2024 15:08:13 -0600 Subject: [PATCH 242/617] feat: add missing max-wait-retries (#121) --- pkg/commands/nuke/nuke.go | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/pkg/commands/nuke/nuke.go b/pkg/commands/nuke/nuke.go index 21084f62..48e254a6 100644 --- a/pkg/commands/nuke/nuke.go +++ b/pkg/commands/nuke/nuke.go @@ -53,13 +53,14 @@ func execute(c *cli.Context) error { //nolint:funlen,gocyclo // Create the parameters object that will be used to configure the nuke process. params := &libnuke.Parameters{ - Force: c.Bool("force"), - ForceSleep: c.Int("force-sleep"), - Quiet: c.Bool("quiet"), - NoDryRun: c.Bool("no-dry-run"), - Includes: c.StringSlice("include"), - Excludes: c.StringSlice("exclude"), - Alternatives: c.StringSlice("cloud-control"), + Force: c.Bool("force"), + ForceSleep: c.Int("force-sleep"), + Quiet: c.Bool("quiet"), + NoDryRun: c.Bool("no-dry-run"), + Includes: c.StringSlice("include"), + Excludes: c.StringSlice("exclude"), + Alternatives: c.StringSlice("cloud-control"), + MaxWaitRetries: c.Int("max-wait-retries"), } if len(c.StringSlice("feature-flag")) > 0 { @@ -232,10 +233,6 @@ func init() { //nolint:funlen Name: "no-dry-run", Usage: "actually run the removal of the resources after discovery", }, - &cli.BoolFlag{ - Name: "no-alias-check", - Usage: "disable aws account alias check - requires entry in config as well", - }, &cli.BoolFlag{ Name: "no-prompt", Usage: "disable prompting for verification to run", @@ -247,6 +244,14 @@ func init() { //nolint:funlen Value: 10, Aliases: []string{"force-sleep"}, }, + &cli.IntFlag{ + Name: "max-wait-retries", + Usage: "maximum number of retries to wait for dependencies to be removed", + }, + &cli.BoolFlag{ + Name: "no-alias-check", + Usage: "disable aws account alias check - requires entry in config as well", + }, &cli.StringSliceFlag{ Name: "feature-flag", Usage: "enable experimental behaviors that may not be fully tested or supported", From e50c11f5eef76e711c8c382aea50285d1f20ab1b Mon Sep 17 00:00:00 2001 From: Vincent Boulineau <58430298+vboulineau@users.noreply.github.com> Date: Thu, 29 Feb 2024 09:57:40 +0100 Subject: [PATCH 243/617] feat: add ELB Listener Rules object (#1193) Co-authored-by: Philipp Trulson --- resources/elbv2-listenerrule.go | 141 ++++++++++++++++++++++++++++++++ resources/util.go | 56 +++++++++++++ 2 files changed, 197 insertions(+) create mode 100644 resources/elbv2-listenerrule.go create mode 100644 resources/util.go diff --git a/resources/elbv2-listenerrule.go b/resources/elbv2-listenerrule.go new file mode 100644 index 00000000..a4fe640e --- /dev/null +++ b/resources/elbv2-listenerrule.go @@ -0,0 +1,141 @@ +package resources + +import ( + "fmt" + + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/elbv2" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" + "github.com/sirupsen/logrus" +) + +var elbv2ListenerRulePageSize int64 = 400 // AWS has a limit of 100 rules per listener + +type ELBv2ListenerRule struct { + svc *elbv2.ELBV2 + ruleArn *string + lbName *string + listenerArn *string + tags []*elbv2.Tag +} + +func init() { + register("ELBv2ListenerRule", ListELBv2ListenerRules) +} + +func ListELBv2ListenerRules(sess *session.Session) ([]Resource, error) { + svc := elbv2.New(sess) + + // We need to retrieve ELBs then Listeners then Rules + lbs := make([]*elbv2.LoadBalancer, 0) + err := svc.DescribeLoadBalancersPages( + nil, + func(page *elbv2.DescribeLoadBalancersOutput, lastPage bool) bool { + for _, elbv2 := range page.LoadBalancers { + lbs = append(lbs, elbv2) + } + return !lastPage + }, + ) + if err != nil { + return nil, err + } + + // Required for batched tag retrieval later + ruleArns := make([]*string, 0) + ruleArnToResource := make(map[string]*ELBv2ListenerRule) + + resources := make([]Resource, 0) + for _, lb := range lbs { + err := svc.DescribeListenersPages( + &elbv2.DescribeListenersInput{ + LoadBalancerArn: lb.LoadBalancerArn, + }, + func(page *elbv2.DescribeListenersOutput, lastPage bool) bool { + for _, listener := range page.Listeners { + rules, err := svc.DescribeRules(&elbv2.DescribeRulesInput{ + ListenerArn: listener.ListenerArn, + PageSize: &elbv2ListenerRulePageSize, + }) + if err == nil { + for _, rule := range rules.Rules { + // Skip default rules as they cannot be deleted + if rule.IsDefault != nil && *rule.IsDefault { + continue + } + + listenerRule := &ELBv2ListenerRule{ + svc: svc, + ruleArn: rule.RuleArn, + lbName: lb.LoadBalancerName, + listenerArn: listener.ListenerArn, + } + + ruleArns = append(ruleArns, rule.RuleArn) + resources = append(resources, listenerRule) + ruleArnToResource[*rule.RuleArn] = listenerRule + } + } else { + logrus. + WithError(err). + WithField("listenerArn", listener.ListenerArn). + Error("Failed to list listener rules for listener") + } + } + + return !lastPage + }, + ) + if err != nil { + logrus. + WithError(err). + WithField("loadBalancerArn", lb.LoadBalancerArn). + Error("Failed to list listeners for load balancer") + } + } + + // Tags for Rules need to be fetched separately + // We can only specify up to 20 in a single call + // See: https://github.com/aws/aws-sdk-go/blob/0e8c61841163762f870f6976775800ded4a789b0/service/elbv2/api.go#L5398 + for _, ruleChunk := range Chunk(ruleArns, 20) { + tagResp, err := svc.DescribeTags(&elbv2.DescribeTagsInput{ + ResourceArns: ruleChunk, + }) + if err != nil { + return nil, err + } + for _, elbv2TagInfo := range tagResp.TagDescriptions { + rule := ruleArnToResource[*elbv2TagInfo.ResourceArn] + rule.tags = elbv2TagInfo.Tags + } + } + + return resources, nil +} + +func (e *ELBv2ListenerRule) Remove() error { + _, err := e.svc.DeleteRule(&elbv2.DeleteRuleInput{ + RuleArn: e.ruleArn, + }) + if err != nil { + return err + } + + return nil +} + +func (e *ELBv2ListenerRule) Properties() types.Properties { + properties := types.NewProperties(). + Set("ARN", e.ruleArn). + Set("ListenerARN", e.listenerArn). + Set("LoadBalancerName", e.lbName) + + for _, tagValue := range e.tags { + properties.SetTag(tagValue.Key, tagValue.Value) + } + return properties +} + +func (e *ELBv2ListenerRule) String() string { + return fmt.Sprintf("%s -> %s", *e.lbName, *e.ruleArn) +} diff --git a/resources/util.go b/resources/util.go new file mode 100644 index 00000000..b61b8396 --- /dev/null +++ b/resources/util.go @@ -0,0 +1,56 @@ +package resources + +import "github.com/aws/aws-sdk-go/aws/awserr" + +func UnPtrBool(ptr *bool, def bool) bool { + if ptr == nil { + return def + } + return *ptr +} + +func UnPtrString(ptr *string, def string) string { + if ptr == nil { + return def + } + return *ptr +} + +func EqualStringPtr(v1, v2 *string) bool { + if v1 == nil && v2 == nil { + return true + } + + if v1 == nil || v2 == nil { + return false + } + + return *v1 == *v2 +} + +func IsAWSError(err error, code string) bool { + aerr, ok := err.(awserr.Error) + if !ok { + return false + } + + return aerr.Code() == code +} + +func Chunk[T any](slice []T, size int) [][]T { + var chunks [][]T + for i := 0; i < len(slice); { + // Clamp the last chunk to the slice bound as necessary. + end := size + if l := len(slice[i:]); l < size { + end = l + } + + // Set the capacity of each chunk so that appending to a chunk does not + // modify the original slice. + chunks = append(chunks, slice[i:i+end:i+end]) + i += end + } + + return chunks +} From 4bf7b3cad7171143000facc0f552349904cc1ce4 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 13 Mar 2024 20:53:20 -0600 Subject: [PATCH 244/617] refactor(elbv2-listenerrule): support libnuke --- go.mod | 2 +- go.sum | 2 + resources/elbv2-listenerrule.go | 66 +++++++++++++++++++++------------ resources/util.go | 56 ---------------------------- 4 files changed, 45 insertions(+), 81 deletions(-) delete mode 100644 resources/util.go diff --git a/go.mod b/go.mod index f62f436f..895816f3 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.21.6 require ( github.com/aws/aws-sdk-go v1.50.24 - github.com/ekristen/libnuke v0.11.0 + github.com/ekristen/libnuke v0.12.0 github.com/fatih/color v1.16.0 github.com/golang/mock v1.6.0 github.com/google/uuid v1.6.0 diff --git a/go.sum b/go.sum index 01bbe06e..5fb7f1ee 100644 --- a/go.sum +++ b/go.sum @@ -8,6 +8,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/ekristen/libnuke v0.11.0 h1:SdSaAVnuAdGDqNlV82uAa+2FD9NeQyH96rIMduheh6o= github.com/ekristen/libnuke v0.11.0/go.mod h1:sBdA04l9IMMejQw5gO9k6o/a0GffSYhgZYaUSdRjIac= +github.com/ekristen/libnuke v0.12.0 h1:Dsk+ckT9sh9QZTLq5m8kOA1KFJGJxSv0TLnfe3YeL1o= +github.com/ekristen/libnuke v0.12.0/go.mod h1:sBdA04l9IMMejQw5gO9k6o/a0GffSYhgZYaUSdRjIac= github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= diff --git a/resources/elbv2-listenerrule.go b/resources/elbv2-listenerrule.go index a4fe640e..c1a1924b 100644 --- a/resources/elbv2-listenerrule.go +++ b/resources/elbv2-listenerrule.go @@ -1,38 +1,47 @@ package resources import ( + "context" "fmt" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/elbv2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" "github.com/sirupsen/logrus" + + "github.com/aws/aws-sdk-go/service/elbv2" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/slices" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) var elbv2ListenerRulePageSize int64 = 400 // AWS has a limit of 100 rules per listener -type ELBv2ListenerRule struct { - svc *elbv2.ELBV2 - ruleArn *string - lbName *string - listenerArn *string - tags []*elbv2.Tag -} +const ELBv2ListenerRuleResource = "ELBv2ListenerRule" func init() { - register("ELBv2ListenerRule", ListELBv2ListenerRules) + registry.Register(®istry.Registration{ + Name: ELBv2ListenerRuleResource, + Scope: nuke.Account, + Lister: &ELBv2ListenerRuleLister{}, + }) } -func ListELBv2ListenerRules(sess *session.Session) ([]Resource, error) { - svc := elbv2.New(sess) +type ELBv2ListenerRuleLister struct{} + +func (l *ELBv2ListenerRuleLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := elbv2.New(opts.Session) // We need to retrieve ELBs then Listeners then Rules lbs := make([]*elbv2.LoadBalancer, 0) err := svc.DescribeLoadBalancersPages( nil, func(page *elbv2.DescribeLoadBalancersOutput, lastPage bool) bool { - for _, elbv2 := range page.LoadBalancers { - lbs = append(lbs, elbv2) + for _, elbv2lb := range page.LoadBalancers { + lbs = append(lbs, elbv2lb) } return !lastPage }, @@ -45,7 +54,7 @@ func ListELBv2ListenerRules(sess *session.Session) ([]Resource, error) { ruleArns := make([]*string, 0) ruleArnToResource := make(map[string]*ELBv2ListenerRule) - resources := make([]Resource, 0) + resources := make([]resource.Resource, 0) for _, lb := range lbs { err := svc.DescribeListenersPages( &elbv2.DescribeListenersInput{ @@ -94,10 +103,9 @@ func ListELBv2ListenerRules(sess *session.Session) ([]Resource, error) { } } - // Tags for Rules need to be fetched separately - // We can only specify up to 20 in a single call + // Tags for Rules need to be fetched separately. We can only specify up to 20 in a single call. // See: https://github.com/aws/aws-sdk-go/blob/0e8c61841163762f870f6976775800ded4a789b0/service/elbv2/api.go#L5398 - for _, ruleChunk := range Chunk(ruleArns, 20) { + for _, ruleChunk := range slices.Chunk(ruleArns, 20) { tagResp, err := svc.DescribeTags(&elbv2.DescribeTagsInput{ ResourceArns: ruleChunk, }) @@ -113,7 +121,15 @@ func ListELBv2ListenerRules(sess *session.Session) ([]Resource, error) { return resources, nil } -func (e *ELBv2ListenerRule) Remove() error { +type ELBv2ListenerRule struct { + svc *elbv2.ELBV2 + ruleArn *string + lbName *string + listenerArn *string + tags []*elbv2.Tag +} + +func (e *ELBv2ListenerRule) Remove(_ context.Context) error { _, err := e.svc.DeleteRule(&elbv2.DeleteRuleInput{ RuleArn: e.ruleArn, }) @@ -125,14 +141,16 @@ func (e *ELBv2ListenerRule) Remove() error { } func (e *ELBv2ListenerRule) Properties() types.Properties { - properties := types.NewProperties(). - Set("ARN", e.ruleArn). - Set("ListenerARN", e.listenerArn). - Set("LoadBalancerName", e.lbName) + properties := types.NewProperties() + + properties.Set("ARN", e.ruleArn) + properties.Set("ListenerARN", e.listenerArn) + properties.Set("LoadBalancerName", e.lbName) for _, tagValue := range e.tags { properties.SetTag(tagValue.Key, tagValue.Value) } + return properties } diff --git a/resources/util.go b/resources/util.go deleted file mode 100644 index b61b8396..00000000 --- a/resources/util.go +++ /dev/null @@ -1,56 +0,0 @@ -package resources - -import "github.com/aws/aws-sdk-go/aws/awserr" - -func UnPtrBool(ptr *bool, def bool) bool { - if ptr == nil { - return def - } - return *ptr -} - -func UnPtrString(ptr *string, def string) string { - if ptr == nil { - return def - } - return *ptr -} - -func EqualStringPtr(v1, v2 *string) bool { - if v1 == nil && v2 == nil { - return true - } - - if v1 == nil || v2 == nil { - return false - } - - return *v1 == *v2 -} - -func IsAWSError(err error, code string) bool { - aerr, ok := err.(awserr.Error) - if !ok { - return false - } - - return aerr.Code() == code -} - -func Chunk[T any](slice []T, size int) [][]T { - var chunks [][]T - for i := 0; i < len(slice); { - // Clamp the last chunk to the slice bound as necessary. - end := size - if l := len(slice[i:]); l < size { - end = l - } - - // Set the capacity of each chunk so that appending to a chunk does not - // modify the original slice. - chunks = append(chunks, slice[i:i+end:i+end]) - i += end - } - - return chunks -} From 4dd7729e7bbfca77fb70f6da015cc3fdfc38a1ff Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 13 Mar 2024 21:01:43 -0600 Subject: [PATCH 245/617] chore(golangci-lint): fix violations --- resources/elbv2-listenerrule.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/resources/elbv2-listenerrule.go b/resources/elbv2-listenerrule.go index c1a1924b..5f01fd3f 100644 --- a/resources/elbv2-listenerrule.go +++ b/resources/elbv2-listenerrule.go @@ -40,9 +40,8 @@ func (l *ELBv2ListenerRuleLister) List(_ context.Context, o interface{}) ([]reso err := svc.DescribeLoadBalancersPages( nil, func(page *elbv2.DescribeLoadBalancersOutput, lastPage bool) bool { - for _, elbv2lb := range page.LoadBalancers { - lbs = append(lbs, elbv2lb) - } + lbs = append(lbs, page.LoadBalancers...) + return !lastPage }, ) From 20384a8829f119feef1a4393342686968ab16366 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 14 Mar 2024 23:12:28 -0600 Subject: [PATCH 246/617] fix(iot-thinggroups): support deleting dynamic thing groups --- resources/iot-thinggroups.go | 38 ++++++++++++++++++++++++++++++------ 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/resources/iot-thinggroups.go b/resources/iot-thinggroups.go index e4942393..3ed504b5 100644 --- a/resources/iot-thinggroups.go +++ b/resources/iot-thinggroups.go @@ -2,6 +2,7 @@ package resources import ( "context" + "github.com/ekristen/libnuke/pkg/types" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iot" @@ -57,10 +58,16 @@ func (l *IoTThingGroupLister) List(_ context.Context, o interface{}) ([]resource return nil, err } + thingGroupType := "static" + if output.IndexName != nil { + thingGroupType = "dynamic" + } + resources = append(resources, &IoTThingGroup{ - svc: svc, - name: thingGroup.GroupName, - version: output.Version, + svc: svc, + name: thingGroup.GroupName, + version: output.Version, + groupType: thingGroupType, }) } @@ -68,12 +75,22 @@ func (l *IoTThingGroupLister) List(_ context.Context, o interface{}) ([]resource } type IoTThingGroup struct { - svc *iot.IoT - name *string - version *int64 + svc *iot.IoT + name *string + version *int64 + groupType string } func (f *IoTThingGroup) Remove(_ context.Context) error { + if f.groupType == "dynamic" { + _, err := f.svc.DeleteDynamicThingGroup(&iot.DeleteDynamicThingGroupInput{ + ThingGroupName: f.name, + ExpectedVersion: f.version, + }) + + return err + } + _, err := f.svc.DeleteThingGroup(&iot.DeleteThingGroupInput{ ThingGroupName: f.name, ExpectedVersion: f.version, @@ -85,3 +102,12 @@ func (f *IoTThingGroup) Remove(_ context.Context) error { func (f *IoTThingGroup) String() string { return *f.name } + +func (f *IoTThingGroup) Properties() types.Properties { + properties := types.NewProperties() + + properties.Set("Name", f.name) + properties.Set("Type", f.groupType) + + return properties +} From 3b5944c38cd79aeb08c561fd6f90283b7527787e Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 14 Mar 2024 23:22:25 -0600 Subject: [PATCH 247/617] chore(golangci-lint): fix violations --- resources/iot-thinggroups.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/iot-thinggroups.go b/resources/iot-thinggroups.go index 3ed504b5..70594131 100644 --- a/resources/iot-thinggroups.go +++ b/resources/iot-thinggroups.go @@ -2,13 +2,13 @@ package resources import ( "context" - "github.com/ekristen/libnuke/pkg/types" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iot" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/pkg/nuke" ) From 2dc0493168f8cd21149b493215e6cd767612a7cf Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 20 Mar 2024 17:26:36 +0000 Subject: [PATCH 248/617] chore(deps): update 1password/load-secrets-action action to v2 [release skip] (#125) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/goreleaser.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 883062f9..0ebc826c 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -69,7 +69,7 @@ jobs: run: | echo "GORELEASER_ARGS=--snapshot --skip-publish" >> $GITHUB_ENV - name: setup quill - uses: 1password/load-secrets-action@v1 + uses: 1password/load-secrets-action@v2 if: startsWith(github.ref, 'refs/tags/') == true && github.actor == github.repository_owner with: export-env: true From ddbb0dffa986f599b2ea9fcc5270f81a3939927d Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 28 Mar 2024 18:19:58 -0600 Subject: [PATCH 249/617] feat(glue-securityconfiguration): add glue security configuration resource and mock tests --- go.mod | 2 + go.sum | 4 + mocks/mock_glueiface/mock.go | 12040 ++++++++++++++++ resources/glue-securityconfiguration.go | 81 + .../glue-securityconfiguration_mock_test.go | 34 + resources/glue_mock_test.go | 4 + 6 files changed, 12165 insertions(+) create mode 100644 mocks/mock_glueiface/mock.go create mode 100644 resources/glue-securityconfiguration.go create mode 100644 resources/glue-securityconfiguration_mock_test.go create mode 100644 resources/glue_mock_test.go diff --git a/go.mod b/go.mod index 895816f3..d11608c4 100644 --- a/go.mod +++ b/go.mod @@ -30,9 +30,11 @@ require ( github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/stevenle/topsort v0.2.0 // indirect github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect + golang.org/x/mod v0.9.0 // indirect golang.org/x/net v0.19.0 // indirect golang.org/x/sync v0.6.0 // indirect golang.org/x/sys v0.16.0 // indirect + golang.org/x/tools v0.6.0 // indirect gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect gopkg.in/yaml.v2 v2.4.0 // indirect ) diff --git a/go.sum b/go.sum index 5fb7f1ee..eea477d5 100644 --- a/go.sum +++ b/go.sum @@ -62,6 +62,8 @@ github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1 golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.9.0 h1:KENHtAZL2y3NLMYZeHY9DW8HW8V+kQyJsY/V9JlKvCs= +golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= @@ -89,6 +91,8 @@ golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.6.0 h1:BOw41kyTf3PuCW1pVQf8+Cyg8pMlkYB1oo9iJ6D/lKM= +golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/mocks/mock_glueiface/mock.go b/mocks/mock_glueiface/mock.go new file mode 100644 index 00000000..6eb44474 --- /dev/null +++ b/mocks/mock_glueiface/mock.go @@ -0,0 +1,12040 @@ +// Code generated by MockGen. DO NOT EDIT. +// Source: /Users/ekristen/go/pkg/mod/github.com/aws/aws-sdk-go@v1.50.24/service/glue/glueiface/interface.go + +// Package mock_glueiface is a generated GoMock package. +package mock_glueiface + +import ( + reflect "reflect" + + aws "github.com/aws/aws-sdk-go/aws" + request "github.com/aws/aws-sdk-go/aws/request" + glue "github.com/aws/aws-sdk-go/service/glue" + gomock "github.com/golang/mock/gomock" +) + +// MockGlueAPI is a mock of GlueAPI interface. +type MockGlueAPI struct { + ctrl *gomock.Controller + recorder *MockGlueAPIMockRecorder +} + +// MockGlueAPIMockRecorder is the mock recorder for MockGlueAPI. +type MockGlueAPIMockRecorder struct { + mock *MockGlueAPI +} + +// NewMockGlueAPI creates a new mock instance. +func NewMockGlueAPI(ctrl *gomock.Controller) *MockGlueAPI { + mock := &MockGlueAPI{ctrl: ctrl} + mock.recorder = &MockGlueAPIMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockGlueAPI) EXPECT() *MockGlueAPIMockRecorder { + return m.recorder +} + +// BatchCreatePartition mocks base method. +func (m *MockGlueAPI) BatchCreatePartition(arg0 *glue.BatchCreatePartitionInput) (*glue.BatchCreatePartitionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchCreatePartition", arg0) + ret0, _ := ret[0].(*glue.BatchCreatePartitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchCreatePartition indicates an expected call of BatchCreatePartition. +func (mr *MockGlueAPIMockRecorder) BatchCreatePartition(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchCreatePartition", reflect.TypeOf((*MockGlueAPI)(nil).BatchCreatePartition), arg0) +} + +// BatchCreatePartitionRequest mocks base method. +func (m *MockGlueAPI) BatchCreatePartitionRequest(arg0 *glue.BatchCreatePartitionInput) (*request.Request, *glue.BatchCreatePartitionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchCreatePartitionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.BatchCreatePartitionOutput) + return ret0, ret1 +} + +// BatchCreatePartitionRequest indicates an expected call of BatchCreatePartitionRequest. +func (mr *MockGlueAPIMockRecorder) BatchCreatePartitionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchCreatePartitionRequest", reflect.TypeOf((*MockGlueAPI)(nil).BatchCreatePartitionRequest), arg0) +} + +// BatchCreatePartitionWithContext mocks base method. +func (m *MockGlueAPI) BatchCreatePartitionWithContext(arg0 aws.Context, arg1 *glue.BatchCreatePartitionInput, arg2 ...request.Option) (*glue.BatchCreatePartitionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "BatchCreatePartitionWithContext", varargs...) + ret0, _ := ret[0].(*glue.BatchCreatePartitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchCreatePartitionWithContext indicates an expected call of BatchCreatePartitionWithContext. +func (mr *MockGlueAPIMockRecorder) BatchCreatePartitionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchCreatePartitionWithContext", reflect.TypeOf((*MockGlueAPI)(nil).BatchCreatePartitionWithContext), varargs...) +} + +// BatchDeleteConnection mocks base method. +func (m *MockGlueAPI) BatchDeleteConnection(arg0 *glue.BatchDeleteConnectionInput) (*glue.BatchDeleteConnectionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchDeleteConnection", arg0) + ret0, _ := ret[0].(*glue.BatchDeleteConnectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchDeleteConnection indicates an expected call of BatchDeleteConnection. +func (mr *MockGlueAPIMockRecorder) BatchDeleteConnection(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchDeleteConnection", reflect.TypeOf((*MockGlueAPI)(nil).BatchDeleteConnection), arg0) +} + +// BatchDeleteConnectionRequest mocks base method. +func (m *MockGlueAPI) BatchDeleteConnectionRequest(arg0 *glue.BatchDeleteConnectionInput) (*request.Request, *glue.BatchDeleteConnectionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchDeleteConnectionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.BatchDeleteConnectionOutput) + return ret0, ret1 +} + +// BatchDeleteConnectionRequest indicates an expected call of BatchDeleteConnectionRequest. +func (mr *MockGlueAPIMockRecorder) BatchDeleteConnectionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchDeleteConnectionRequest", reflect.TypeOf((*MockGlueAPI)(nil).BatchDeleteConnectionRequest), arg0) +} + +// BatchDeleteConnectionWithContext mocks base method. +func (m *MockGlueAPI) BatchDeleteConnectionWithContext(arg0 aws.Context, arg1 *glue.BatchDeleteConnectionInput, arg2 ...request.Option) (*glue.BatchDeleteConnectionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "BatchDeleteConnectionWithContext", varargs...) + ret0, _ := ret[0].(*glue.BatchDeleteConnectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchDeleteConnectionWithContext indicates an expected call of BatchDeleteConnectionWithContext. +func (mr *MockGlueAPIMockRecorder) BatchDeleteConnectionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchDeleteConnectionWithContext", reflect.TypeOf((*MockGlueAPI)(nil).BatchDeleteConnectionWithContext), varargs...) +} + +// BatchDeletePartition mocks base method. +func (m *MockGlueAPI) BatchDeletePartition(arg0 *glue.BatchDeletePartitionInput) (*glue.BatchDeletePartitionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchDeletePartition", arg0) + ret0, _ := ret[0].(*glue.BatchDeletePartitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchDeletePartition indicates an expected call of BatchDeletePartition. +func (mr *MockGlueAPIMockRecorder) BatchDeletePartition(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchDeletePartition", reflect.TypeOf((*MockGlueAPI)(nil).BatchDeletePartition), arg0) +} + +// BatchDeletePartitionRequest mocks base method. +func (m *MockGlueAPI) BatchDeletePartitionRequest(arg0 *glue.BatchDeletePartitionInput) (*request.Request, *glue.BatchDeletePartitionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchDeletePartitionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.BatchDeletePartitionOutput) + return ret0, ret1 +} + +// BatchDeletePartitionRequest indicates an expected call of BatchDeletePartitionRequest. +func (mr *MockGlueAPIMockRecorder) BatchDeletePartitionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchDeletePartitionRequest", reflect.TypeOf((*MockGlueAPI)(nil).BatchDeletePartitionRequest), arg0) +} + +// BatchDeletePartitionWithContext mocks base method. +func (m *MockGlueAPI) BatchDeletePartitionWithContext(arg0 aws.Context, arg1 *glue.BatchDeletePartitionInput, arg2 ...request.Option) (*glue.BatchDeletePartitionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "BatchDeletePartitionWithContext", varargs...) + ret0, _ := ret[0].(*glue.BatchDeletePartitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchDeletePartitionWithContext indicates an expected call of BatchDeletePartitionWithContext. +func (mr *MockGlueAPIMockRecorder) BatchDeletePartitionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchDeletePartitionWithContext", reflect.TypeOf((*MockGlueAPI)(nil).BatchDeletePartitionWithContext), varargs...) +} + +// BatchDeleteTable mocks base method. +func (m *MockGlueAPI) BatchDeleteTable(arg0 *glue.BatchDeleteTableInput) (*glue.BatchDeleteTableOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchDeleteTable", arg0) + ret0, _ := ret[0].(*glue.BatchDeleteTableOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchDeleteTable indicates an expected call of BatchDeleteTable. +func (mr *MockGlueAPIMockRecorder) BatchDeleteTable(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchDeleteTable", reflect.TypeOf((*MockGlueAPI)(nil).BatchDeleteTable), arg0) +} + +// BatchDeleteTableRequest mocks base method. +func (m *MockGlueAPI) BatchDeleteTableRequest(arg0 *glue.BatchDeleteTableInput) (*request.Request, *glue.BatchDeleteTableOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchDeleteTableRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.BatchDeleteTableOutput) + return ret0, ret1 +} + +// BatchDeleteTableRequest indicates an expected call of BatchDeleteTableRequest. +func (mr *MockGlueAPIMockRecorder) BatchDeleteTableRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchDeleteTableRequest", reflect.TypeOf((*MockGlueAPI)(nil).BatchDeleteTableRequest), arg0) +} + +// BatchDeleteTableVersion mocks base method. +func (m *MockGlueAPI) BatchDeleteTableVersion(arg0 *glue.BatchDeleteTableVersionInput) (*glue.BatchDeleteTableVersionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchDeleteTableVersion", arg0) + ret0, _ := ret[0].(*glue.BatchDeleteTableVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchDeleteTableVersion indicates an expected call of BatchDeleteTableVersion. +func (mr *MockGlueAPIMockRecorder) BatchDeleteTableVersion(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchDeleteTableVersion", reflect.TypeOf((*MockGlueAPI)(nil).BatchDeleteTableVersion), arg0) +} + +// BatchDeleteTableVersionRequest mocks base method. +func (m *MockGlueAPI) BatchDeleteTableVersionRequest(arg0 *glue.BatchDeleteTableVersionInput) (*request.Request, *glue.BatchDeleteTableVersionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchDeleteTableVersionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.BatchDeleteTableVersionOutput) + return ret0, ret1 +} + +// BatchDeleteTableVersionRequest indicates an expected call of BatchDeleteTableVersionRequest. +func (mr *MockGlueAPIMockRecorder) BatchDeleteTableVersionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchDeleteTableVersionRequest", reflect.TypeOf((*MockGlueAPI)(nil).BatchDeleteTableVersionRequest), arg0) +} + +// BatchDeleteTableVersionWithContext mocks base method. +func (m *MockGlueAPI) BatchDeleteTableVersionWithContext(arg0 aws.Context, arg1 *glue.BatchDeleteTableVersionInput, arg2 ...request.Option) (*glue.BatchDeleteTableVersionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "BatchDeleteTableVersionWithContext", varargs...) + ret0, _ := ret[0].(*glue.BatchDeleteTableVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchDeleteTableVersionWithContext indicates an expected call of BatchDeleteTableVersionWithContext. +func (mr *MockGlueAPIMockRecorder) BatchDeleteTableVersionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchDeleteTableVersionWithContext", reflect.TypeOf((*MockGlueAPI)(nil).BatchDeleteTableVersionWithContext), varargs...) +} + +// BatchDeleteTableWithContext mocks base method. +func (m *MockGlueAPI) BatchDeleteTableWithContext(arg0 aws.Context, arg1 *glue.BatchDeleteTableInput, arg2 ...request.Option) (*glue.BatchDeleteTableOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "BatchDeleteTableWithContext", varargs...) + ret0, _ := ret[0].(*glue.BatchDeleteTableOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchDeleteTableWithContext indicates an expected call of BatchDeleteTableWithContext. +func (mr *MockGlueAPIMockRecorder) BatchDeleteTableWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchDeleteTableWithContext", reflect.TypeOf((*MockGlueAPI)(nil).BatchDeleteTableWithContext), varargs...) +} + +// BatchGetBlueprints mocks base method. +func (m *MockGlueAPI) BatchGetBlueprints(arg0 *glue.BatchGetBlueprintsInput) (*glue.BatchGetBlueprintsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchGetBlueprints", arg0) + ret0, _ := ret[0].(*glue.BatchGetBlueprintsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchGetBlueprints indicates an expected call of BatchGetBlueprints. +func (mr *MockGlueAPIMockRecorder) BatchGetBlueprints(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetBlueprints", reflect.TypeOf((*MockGlueAPI)(nil).BatchGetBlueprints), arg0) +} + +// BatchGetBlueprintsRequest mocks base method. +func (m *MockGlueAPI) BatchGetBlueprintsRequest(arg0 *glue.BatchGetBlueprintsInput) (*request.Request, *glue.BatchGetBlueprintsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchGetBlueprintsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.BatchGetBlueprintsOutput) + return ret0, ret1 +} + +// BatchGetBlueprintsRequest indicates an expected call of BatchGetBlueprintsRequest. +func (mr *MockGlueAPIMockRecorder) BatchGetBlueprintsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetBlueprintsRequest", reflect.TypeOf((*MockGlueAPI)(nil).BatchGetBlueprintsRequest), arg0) +} + +// BatchGetBlueprintsWithContext mocks base method. +func (m *MockGlueAPI) BatchGetBlueprintsWithContext(arg0 aws.Context, arg1 *glue.BatchGetBlueprintsInput, arg2 ...request.Option) (*glue.BatchGetBlueprintsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "BatchGetBlueprintsWithContext", varargs...) + ret0, _ := ret[0].(*glue.BatchGetBlueprintsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchGetBlueprintsWithContext indicates an expected call of BatchGetBlueprintsWithContext. +func (mr *MockGlueAPIMockRecorder) BatchGetBlueprintsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetBlueprintsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).BatchGetBlueprintsWithContext), varargs...) +} + +// BatchGetCrawlers mocks base method. +func (m *MockGlueAPI) BatchGetCrawlers(arg0 *glue.BatchGetCrawlersInput) (*glue.BatchGetCrawlersOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchGetCrawlers", arg0) + ret0, _ := ret[0].(*glue.BatchGetCrawlersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchGetCrawlers indicates an expected call of BatchGetCrawlers. +func (mr *MockGlueAPIMockRecorder) BatchGetCrawlers(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetCrawlers", reflect.TypeOf((*MockGlueAPI)(nil).BatchGetCrawlers), arg0) +} + +// BatchGetCrawlersRequest mocks base method. +func (m *MockGlueAPI) BatchGetCrawlersRequest(arg0 *glue.BatchGetCrawlersInput) (*request.Request, *glue.BatchGetCrawlersOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchGetCrawlersRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.BatchGetCrawlersOutput) + return ret0, ret1 +} + +// BatchGetCrawlersRequest indicates an expected call of BatchGetCrawlersRequest. +func (mr *MockGlueAPIMockRecorder) BatchGetCrawlersRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetCrawlersRequest", reflect.TypeOf((*MockGlueAPI)(nil).BatchGetCrawlersRequest), arg0) +} + +// BatchGetCrawlersWithContext mocks base method. +func (m *MockGlueAPI) BatchGetCrawlersWithContext(arg0 aws.Context, arg1 *glue.BatchGetCrawlersInput, arg2 ...request.Option) (*glue.BatchGetCrawlersOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "BatchGetCrawlersWithContext", varargs...) + ret0, _ := ret[0].(*glue.BatchGetCrawlersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchGetCrawlersWithContext indicates an expected call of BatchGetCrawlersWithContext. +func (mr *MockGlueAPIMockRecorder) BatchGetCrawlersWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetCrawlersWithContext", reflect.TypeOf((*MockGlueAPI)(nil).BatchGetCrawlersWithContext), varargs...) +} + +// BatchGetCustomEntityTypes mocks base method. +func (m *MockGlueAPI) BatchGetCustomEntityTypes(arg0 *glue.BatchGetCustomEntityTypesInput) (*glue.BatchGetCustomEntityTypesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchGetCustomEntityTypes", arg0) + ret0, _ := ret[0].(*glue.BatchGetCustomEntityTypesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchGetCustomEntityTypes indicates an expected call of BatchGetCustomEntityTypes. +func (mr *MockGlueAPIMockRecorder) BatchGetCustomEntityTypes(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetCustomEntityTypes", reflect.TypeOf((*MockGlueAPI)(nil).BatchGetCustomEntityTypes), arg0) +} + +// BatchGetCustomEntityTypesRequest mocks base method. +func (m *MockGlueAPI) BatchGetCustomEntityTypesRequest(arg0 *glue.BatchGetCustomEntityTypesInput) (*request.Request, *glue.BatchGetCustomEntityTypesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchGetCustomEntityTypesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.BatchGetCustomEntityTypesOutput) + return ret0, ret1 +} + +// BatchGetCustomEntityTypesRequest indicates an expected call of BatchGetCustomEntityTypesRequest. +func (mr *MockGlueAPIMockRecorder) BatchGetCustomEntityTypesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetCustomEntityTypesRequest", reflect.TypeOf((*MockGlueAPI)(nil).BatchGetCustomEntityTypesRequest), arg0) +} + +// BatchGetCustomEntityTypesWithContext mocks base method. +func (m *MockGlueAPI) BatchGetCustomEntityTypesWithContext(arg0 aws.Context, arg1 *glue.BatchGetCustomEntityTypesInput, arg2 ...request.Option) (*glue.BatchGetCustomEntityTypesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "BatchGetCustomEntityTypesWithContext", varargs...) + ret0, _ := ret[0].(*glue.BatchGetCustomEntityTypesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchGetCustomEntityTypesWithContext indicates an expected call of BatchGetCustomEntityTypesWithContext. +func (mr *MockGlueAPIMockRecorder) BatchGetCustomEntityTypesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetCustomEntityTypesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).BatchGetCustomEntityTypesWithContext), varargs...) +} + +// BatchGetDataQualityResult mocks base method. +func (m *MockGlueAPI) BatchGetDataQualityResult(arg0 *glue.BatchGetDataQualityResultInput) (*glue.BatchGetDataQualityResultOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchGetDataQualityResult", arg0) + ret0, _ := ret[0].(*glue.BatchGetDataQualityResultOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchGetDataQualityResult indicates an expected call of BatchGetDataQualityResult. +func (mr *MockGlueAPIMockRecorder) BatchGetDataQualityResult(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetDataQualityResult", reflect.TypeOf((*MockGlueAPI)(nil).BatchGetDataQualityResult), arg0) +} + +// BatchGetDataQualityResultRequest mocks base method. +func (m *MockGlueAPI) BatchGetDataQualityResultRequest(arg0 *glue.BatchGetDataQualityResultInput) (*request.Request, *glue.BatchGetDataQualityResultOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchGetDataQualityResultRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.BatchGetDataQualityResultOutput) + return ret0, ret1 +} + +// BatchGetDataQualityResultRequest indicates an expected call of BatchGetDataQualityResultRequest. +func (mr *MockGlueAPIMockRecorder) BatchGetDataQualityResultRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetDataQualityResultRequest", reflect.TypeOf((*MockGlueAPI)(nil).BatchGetDataQualityResultRequest), arg0) +} + +// BatchGetDataQualityResultWithContext mocks base method. +func (m *MockGlueAPI) BatchGetDataQualityResultWithContext(arg0 aws.Context, arg1 *glue.BatchGetDataQualityResultInput, arg2 ...request.Option) (*glue.BatchGetDataQualityResultOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "BatchGetDataQualityResultWithContext", varargs...) + ret0, _ := ret[0].(*glue.BatchGetDataQualityResultOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchGetDataQualityResultWithContext indicates an expected call of BatchGetDataQualityResultWithContext. +func (mr *MockGlueAPIMockRecorder) BatchGetDataQualityResultWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetDataQualityResultWithContext", reflect.TypeOf((*MockGlueAPI)(nil).BatchGetDataQualityResultWithContext), varargs...) +} + +// BatchGetDevEndpoints mocks base method. +func (m *MockGlueAPI) BatchGetDevEndpoints(arg0 *glue.BatchGetDevEndpointsInput) (*glue.BatchGetDevEndpointsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchGetDevEndpoints", arg0) + ret0, _ := ret[0].(*glue.BatchGetDevEndpointsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchGetDevEndpoints indicates an expected call of BatchGetDevEndpoints. +func (mr *MockGlueAPIMockRecorder) BatchGetDevEndpoints(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetDevEndpoints", reflect.TypeOf((*MockGlueAPI)(nil).BatchGetDevEndpoints), arg0) +} + +// BatchGetDevEndpointsRequest mocks base method. +func (m *MockGlueAPI) BatchGetDevEndpointsRequest(arg0 *glue.BatchGetDevEndpointsInput) (*request.Request, *glue.BatchGetDevEndpointsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchGetDevEndpointsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.BatchGetDevEndpointsOutput) + return ret0, ret1 +} + +// BatchGetDevEndpointsRequest indicates an expected call of BatchGetDevEndpointsRequest. +func (mr *MockGlueAPIMockRecorder) BatchGetDevEndpointsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetDevEndpointsRequest", reflect.TypeOf((*MockGlueAPI)(nil).BatchGetDevEndpointsRequest), arg0) +} + +// BatchGetDevEndpointsWithContext mocks base method. +func (m *MockGlueAPI) BatchGetDevEndpointsWithContext(arg0 aws.Context, arg1 *glue.BatchGetDevEndpointsInput, arg2 ...request.Option) (*glue.BatchGetDevEndpointsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "BatchGetDevEndpointsWithContext", varargs...) + ret0, _ := ret[0].(*glue.BatchGetDevEndpointsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchGetDevEndpointsWithContext indicates an expected call of BatchGetDevEndpointsWithContext. +func (mr *MockGlueAPIMockRecorder) BatchGetDevEndpointsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetDevEndpointsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).BatchGetDevEndpointsWithContext), varargs...) +} + +// BatchGetJobs mocks base method. +func (m *MockGlueAPI) BatchGetJobs(arg0 *glue.BatchGetJobsInput) (*glue.BatchGetJobsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchGetJobs", arg0) + ret0, _ := ret[0].(*glue.BatchGetJobsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchGetJobs indicates an expected call of BatchGetJobs. +func (mr *MockGlueAPIMockRecorder) BatchGetJobs(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetJobs", reflect.TypeOf((*MockGlueAPI)(nil).BatchGetJobs), arg0) +} + +// BatchGetJobsRequest mocks base method. +func (m *MockGlueAPI) BatchGetJobsRequest(arg0 *glue.BatchGetJobsInput) (*request.Request, *glue.BatchGetJobsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchGetJobsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.BatchGetJobsOutput) + return ret0, ret1 +} + +// BatchGetJobsRequest indicates an expected call of BatchGetJobsRequest. +func (mr *MockGlueAPIMockRecorder) BatchGetJobsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetJobsRequest", reflect.TypeOf((*MockGlueAPI)(nil).BatchGetJobsRequest), arg0) +} + +// BatchGetJobsWithContext mocks base method. +func (m *MockGlueAPI) BatchGetJobsWithContext(arg0 aws.Context, arg1 *glue.BatchGetJobsInput, arg2 ...request.Option) (*glue.BatchGetJobsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "BatchGetJobsWithContext", varargs...) + ret0, _ := ret[0].(*glue.BatchGetJobsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchGetJobsWithContext indicates an expected call of BatchGetJobsWithContext. +func (mr *MockGlueAPIMockRecorder) BatchGetJobsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetJobsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).BatchGetJobsWithContext), varargs...) +} + +// BatchGetPartition mocks base method. +func (m *MockGlueAPI) BatchGetPartition(arg0 *glue.BatchGetPartitionInput) (*glue.BatchGetPartitionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchGetPartition", arg0) + ret0, _ := ret[0].(*glue.BatchGetPartitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchGetPartition indicates an expected call of BatchGetPartition. +func (mr *MockGlueAPIMockRecorder) BatchGetPartition(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetPartition", reflect.TypeOf((*MockGlueAPI)(nil).BatchGetPartition), arg0) +} + +// BatchGetPartitionRequest mocks base method. +func (m *MockGlueAPI) BatchGetPartitionRequest(arg0 *glue.BatchGetPartitionInput) (*request.Request, *glue.BatchGetPartitionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchGetPartitionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.BatchGetPartitionOutput) + return ret0, ret1 +} + +// BatchGetPartitionRequest indicates an expected call of BatchGetPartitionRequest. +func (mr *MockGlueAPIMockRecorder) BatchGetPartitionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetPartitionRequest", reflect.TypeOf((*MockGlueAPI)(nil).BatchGetPartitionRequest), arg0) +} + +// BatchGetPartitionWithContext mocks base method. +func (m *MockGlueAPI) BatchGetPartitionWithContext(arg0 aws.Context, arg1 *glue.BatchGetPartitionInput, arg2 ...request.Option) (*glue.BatchGetPartitionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "BatchGetPartitionWithContext", varargs...) + ret0, _ := ret[0].(*glue.BatchGetPartitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchGetPartitionWithContext indicates an expected call of BatchGetPartitionWithContext. +func (mr *MockGlueAPIMockRecorder) BatchGetPartitionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetPartitionWithContext", reflect.TypeOf((*MockGlueAPI)(nil).BatchGetPartitionWithContext), varargs...) +} + +// BatchGetTableOptimizer mocks base method. +func (m *MockGlueAPI) BatchGetTableOptimizer(arg0 *glue.BatchGetTableOptimizerInput) (*glue.BatchGetTableOptimizerOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchGetTableOptimizer", arg0) + ret0, _ := ret[0].(*glue.BatchGetTableOptimizerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchGetTableOptimizer indicates an expected call of BatchGetTableOptimizer. +func (mr *MockGlueAPIMockRecorder) BatchGetTableOptimizer(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetTableOptimizer", reflect.TypeOf((*MockGlueAPI)(nil).BatchGetTableOptimizer), arg0) +} + +// BatchGetTableOptimizerRequest mocks base method. +func (m *MockGlueAPI) BatchGetTableOptimizerRequest(arg0 *glue.BatchGetTableOptimizerInput) (*request.Request, *glue.BatchGetTableOptimizerOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchGetTableOptimizerRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.BatchGetTableOptimizerOutput) + return ret0, ret1 +} + +// BatchGetTableOptimizerRequest indicates an expected call of BatchGetTableOptimizerRequest. +func (mr *MockGlueAPIMockRecorder) BatchGetTableOptimizerRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetTableOptimizerRequest", reflect.TypeOf((*MockGlueAPI)(nil).BatchGetTableOptimizerRequest), arg0) +} + +// BatchGetTableOptimizerWithContext mocks base method. +func (m *MockGlueAPI) BatchGetTableOptimizerWithContext(arg0 aws.Context, arg1 *glue.BatchGetTableOptimizerInput, arg2 ...request.Option) (*glue.BatchGetTableOptimizerOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "BatchGetTableOptimizerWithContext", varargs...) + ret0, _ := ret[0].(*glue.BatchGetTableOptimizerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchGetTableOptimizerWithContext indicates an expected call of BatchGetTableOptimizerWithContext. +func (mr *MockGlueAPIMockRecorder) BatchGetTableOptimizerWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetTableOptimizerWithContext", reflect.TypeOf((*MockGlueAPI)(nil).BatchGetTableOptimizerWithContext), varargs...) +} + +// BatchGetTriggers mocks base method. +func (m *MockGlueAPI) BatchGetTriggers(arg0 *glue.BatchGetTriggersInput) (*glue.BatchGetTriggersOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchGetTriggers", arg0) + ret0, _ := ret[0].(*glue.BatchGetTriggersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchGetTriggers indicates an expected call of BatchGetTriggers. +func (mr *MockGlueAPIMockRecorder) BatchGetTriggers(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetTriggers", reflect.TypeOf((*MockGlueAPI)(nil).BatchGetTriggers), arg0) +} + +// BatchGetTriggersRequest mocks base method. +func (m *MockGlueAPI) BatchGetTriggersRequest(arg0 *glue.BatchGetTriggersInput) (*request.Request, *glue.BatchGetTriggersOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchGetTriggersRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.BatchGetTriggersOutput) + return ret0, ret1 +} + +// BatchGetTriggersRequest indicates an expected call of BatchGetTriggersRequest. +func (mr *MockGlueAPIMockRecorder) BatchGetTriggersRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetTriggersRequest", reflect.TypeOf((*MockGlueAPI)(nil).BatchGetTriggersRequest), arg0) +} + +// BatchGetTriggersWithContext mocks base method. +func (m *MockGlueAPI) BatchGetTriggersWithContext(arg0 aws.Context, arg1 *glue.BatchGetTriggersInput, arg2 ...request.Option) (*glue.BatchGetTriggersOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "BatchGetTriggersWithContext", varargs...) + ret0, _ := ret[0].(*glue.BatchGetTriggersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchGetTriggersWithContext indicates an expected call of BatchGetTriggersWithContext. +func (mr *MockGlueAPIMockRecorder) BatchGetTriggersWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetTriggersWithContext", reflect.TypeOf((*MockGlueAPI)(nil).BatchGetTriggersWithContext), varargs...) +} + +// BatchGetWorkflows mocks base method. +func (m *MockGlueAPI) BatchGetWorkflows(arg0 *glue.BatchGetWorkflowsInput) (*glue.BatchGetWorkflowsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchGetWorkflows", arg0) + ret0, _ := ret[0].(*glue.BatchGetWorkflowsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchGetWorkflows indicates an expected call of BatchGetWorkflows. +func (mr *MockGlueAPIMockRecorder) BatchGetWorkflows(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetWorkflows", reflect.TypeOf((*MockGlueAPI)(nil).BatchGetWorkflows), arg0) +} + +// BatchGetWorkflowsRequest mocks base method. +func (m *MockGlueAPI) BatchGetWorkflowsRequest(arg0 *glue.BatchGetWorkflowsInput) (*request.Request, *glue.BatchGetWorkflowsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchGetWorkflowsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.BatchGetWorkflowsOutput) + return ret0, ret1 +} + +// BatchGetWorkflowsRequest indicates an expected call of BatchGetWorkflowsRequest. +func (mr *MockGlueAPIMockRecorder) BatchGetWorkflowsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetWorkflowsRequest", reflect.TypeOf((*MockGlueAPI)(nil).BatchGetWorkflowsRequest), arg0) +} + +// BatchGetWorkflowsWithContext mocks base method. +func (m *MockGlueAPI) BatchGetWorkflowsWithContext(arg0 aws.Context, arg1 *glue.BatchGetWorkflowsInput, arg2 ...request.Option) (*glue.BatchGetWorkflowsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "BatchGetWorkflowsWithContext", varargs...) + ret0, _ := ret[0].(*glue.BatchGetWorkflowsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchGetWorkflowsWithContext indicates an expected call of BatchGetWorkflowsWithContext. +func (mr *MockGlueAPIMockRecorder) BatchGetWorkflowsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetWorkflowsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).BatchGetWorkflowsWithContext), varargs...) +} + +// BatchStopJobRun mocks base method. +func (m *MockGlueAPI) BatchStopJobRun(arg0 *glue.BatchStopJobRunInput) (*glue.BatchStopJobRunOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchStopJobRun", arg0) + ret0, _ := ret[0].(*glue.BatchStopJobRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchStopJobRun indicates an expected call of BatchStopJobRun. +func (mr *MockGlueAPIMockRecorder) BatchStopJobRun(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchStopJobRun", reflect.TypeOf((*MockGlueAPI)(nil).BatchStopJobRun), arg0) +} + +// BatchStopJobRunRequest mocks base method. +func (m *MockGlueAPI) BatchStopJobRunRequest(arg0 *glue.BatchStopJobRunInput) (*request.Request, *glue.BatchStopJobRunOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchStopJobRunRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.BatchStopJobRunOutput) + return ret0, ret1 +} + +// BatchStopJobRunRequest indicates an expected call of BatchStopJobRunRequest. +func (mr *MockGlueAPIMockRecorder) BatchStopJobRunRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchStopJobRunRequest", reflect.TypeOf((*MockGlueAPI)(nil).BatchStopJobRunRequest), arg0) +} + +// BatchStopJobRunWithContext mocks base method. +func (m *MockGlueAPI) BatchStopJobRunWithContext(arg0 aws.Context, arg1 *glue.BatchStopJobRunInput, arg2 ...request.Option) (*glue.BatchStopJobRunOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "BatchStopJobRunWithContext", varargs...) + ret0, _ := ret[0].(*glue.BatchStopJobRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchStopJobRunWithContext indicates an expected call of BatchStopJobRunWithContext. +func (mr *MockGlueAPIMockRecorder) BatchStopJobRunWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchStopJobRunWithContext", reflect.TypeOf((*MockGlueAPI)(nil).BatchStopJobRunWithContext), varargs...) +} + +// BatchUpdatePartition mocks base method. +func (m *MockGlueAPI) BatchUpdatePartition(arg0 *glue.BatchUpdatePartitionInput) (*glue.BatchUpdatePartitionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchUpdatePartition", arg0) + ret0, _ := ret[0].(*glue.BatchUpdatePartitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchUpdatePartition indicates an expected call of BatchUpdatePartition. +func (mr *MockGlueAPIMockRecorder) BatchUpdatePartition(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchUpdatePartition", reflect.TypeOf((*MockGlueAPI)(nil).BatchUpdatePartition), arg0) +} + +// BatchUpdatePartitionRequest mocks base method. +func (m *MockGlueAPI) BatchUpdatePartitionRequest(arg0 *glue.BatchUpdatePartitionInput) (*request.Request, *glue.BatchUpdatePartitionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchUpdatePartitionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.BatchUpdatePartitionOutput) + return ret0, ret1 +} + +// BatchUpdatePartitionRequest indicates an expected call of BatchUpdatePartitionRequest. +func (mr *MockGlueAPIMockRecorder) BatchUpdatePartitionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchUpdatePartitionRequest", reflect.TypeOf((*MockGlueAPI)(nil).BatchUpdatePartitionRequest), arg0) +} + +// BatchUpdatePartitionWithContext mocks base method. +func (m *MockGlueAPI) BatchUpdatePartitionWithContext(arg0 aws.Context, arg1 *glue.BatchUpdatePartitionInput, arg2 ...request.Option) (*glue.BatchUpdatePartitionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "BatchUpdatePartitionWithContext", varargs...) + ret0, _ := ret[0].(*glue.BatchUpdatePartitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchUpdatePartitionWithContext indicates an expected call of BatchUpdatePartitionWithContext. +func (mr *MockGlueAPIMockRecorder) BatchUpdatePartitionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchUpdatePartitionWithContext", reflect.TypeOf((*MockGlueAPI)(nil).BatchUpdatePartitionWithContext), varargs...) +} + +// CancelDataQualityRuleRecommendationRun mocks base method. +func (m *MockGlueAPI) CancelDataQualityRuleRecommendationRun(arg0 *glue.CancelDataQualityRuleRecommendationRunInput) (*glue.CancelDataQualityRuleRecommendationRunOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CancelDataQualityRuleRecommendationRun", arg0) + ret0, _ := ret[0].(*glue.CancelDataQualityRuleRecommendationRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CancelDataQualityRuleRecommendationRun indicates an expected call of CancelDataQualityRuleRecommendationRun. +func (mr *MockGlueAPIMockRecorder) CancelDataQualityRuleRecommendationRun(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelDataQualityRuleRecommendationRun", reflect.TypeOf((*MockGlueAPI)(nil).CancelDataQualityRuleRecommendationRun), arg0) +} + +// CancelDataQualityRuleRecommendationRunRequest mocks base method. +func (m *MockGlueAPI) CancelDataQualityRuleRecommendationRunRequest(arg0 *glue.CancelDataQualityRuleRecommendationRunInput) (*request.Request, *glue.CancelDataQualityRuleRecommendationRunOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CancelDataQualityRuleRecommendationRunRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.CancelDataQualityRuleRecommendationRunOutput) + return ret0, ret1 +} + +// CancelDataQualityRuleRecommendationRunRequest indicates an expected call of CancelDataQualityRuleRecommendationRunRequest. +func (mr *MockGlueAPIMockRecorder) CancelDataQualityRuleRecommendationRunRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelDataQualityRuleRecommendationRunRequest", reflect.TypeOf((*MockGlueAPI)(nil).CancelDataQualityRuleRecommendationRunRequest), arg0) +} + +// CancelDataQualityRuleRecommendationRunWithContext mocks base method. +func (m *MockGlueAPI) CancelDataQualityRuleRecommendationRunWithContext(arg0 aws.Context, arg1 *glue.CancelDataQualityRuleRecommendationRunInput, arg2 ...request.Option) (*glue.CancelDataQualityRuleRecommendationRunOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CancelDataQualityRuleRecommendationRunWithContext", varargs...) + ret0, _ := ret[0].(*glue.CancelDataQualityRuleRecommendationRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CancelDataQualityRuleRecommendationRunWithContext indicates an expected call of CancelDataQualityRuleRecommendationRunWithContext. +func (mr *MockGlueAPIMockRecorder) CancelDataQualityRuleRecommendationRunWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelDataQualityRuleRecommendationRunWithContext", reflect.TypeOf((*MockGlueAPI)(nil).CancelDataQualityRuleRecommendationRunWithContext), varargs...) +} + +// CancelDataQualityRulesetEvaluationRun mocks base method. +func (m *MockGlueAPI) CancelDataQualityRulesetEvaluationRun(arg0 *glue.CancelDataQualityRulesetEvaluationRunInput) (*glue.CancelDataQualityRulesetEvaluationRunOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CancelDataQualityRulesetEvaluationRun", arg0) + ret0, _ := ret[0].(*glue.CancelDataQualityRulesetEvaluationRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CancelDataQualityRulesetEvaluationRun indicates an expected call of CancelDataQualityRulesetEvaluationRun. +func (mr *MockGlueAPIMockRecorder) CancelDataQualityRulesetEvaluationRun(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelDataQualityRulesetEvaluationRun", reflect.TypeOf((*MockGlueAPI)(nil).CancelDataQualityRulesetEvaluationRun), arg0) +} + +// CancelDataQualityRulesetEvaluationRunRequest mocks base method. +func (m *MockGlueAPI) CancelDataQualityRulesetEvaluationRunRequest(arg0 *glue.CancelDataQualityRulesetEvaluationRunInput) (*request.Request, *glue.CancelDataQualityRulesetEvaluationRunOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CancelDataQualityRulesetEvaluationRunRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.CancelDataQualityRulesetEvaluationRunOutput) + return ret0, ret1 +} + +// CancelDataQualityRulesetEvaluationRunRequest indicates an expected call of CancelDataQualityRulesetEvaluationRunRequest. +func (mr *MockGlueAPIMockRecorder) CancelDataQualityRulesetEvaluationRunRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelDataQualityRulesetEvaluationRunRequest", reflect.TypeOf((*MockGlueAPI)(nil).CancelDataQualityRulesetEvaluationRunRequest), arg0) +} + +// CancelDataQualityRulesetEvaluationRunWithContext mocks base method. +func (m *MockGlueAPI) CancelDataQualityRulesetEvaluationRunWithContext(arg0 aws.Context, arg1 *glue.CancelDataQualityRulesetEvaluationRunInput, arg2 ...request.Option) (*glue.CancelDataQualityRulesetEvaluationRunOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CancelDataQualityRulesetEvaluationRunWithContext", varargs...) + ret0, _ := ret[0].(*glue.CancelDataQualityRulesetEvaluationRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CancelDataQualityRulesetEvaluationRunWithContext indicates an expected call of CancelDataQualityRulesetEvaluationRunWithContext. +func (mr *MockGlueAPIMockRecorder) CancelDataQualityRulesetEvaluationRunWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelDataQualityRulesetEvaluationRunWithContext", reflect.TypeOf((*MockGlueAPI)(nil).CancelDataQualityRulesetEvaluationRunWithContext), varargs...) +} + +// CancelMLTaskRun mocks base method. +func (m *MockGlueAPI) CancelMLTaskRun(arg0 *glue.CancelMLTaskRunInput) (*glue.CancelMLTaskRunOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CancelMLTaskRun", arg0) + ret0, _ := ret[0].(*glue.CancelMLTaskRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CancelMLTaskRun indicates an expected call of CancelMLTaskRun. +func (mr *MockGlueAPIMockRecorder) CancelMLTaskRun(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelMLTaskRun", reflect.TypeOf((*MockGlueAPI)(nil).CancelMLTaskRun), arg0) +} + +// CancelMLTaskRunRequest mocks base method. +func (m *MockGlueAPI) CancelMLTaskRunRequest(arg0 *glue.CancelMLTaskRunInput) (*request.Request, *glue.CancelMLTaskRunOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CancelMLTaskRunRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.CancelMLTaskRunOutput) + return ret0, ret1 +} + +// CancelMLTaskRunRequest indicates an expected call of CancelMLTaskRunRequest. +func (mr *MockGlueAPIMockRecorder) CancelMLTaskRunRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelMLTaskRunRequest", reflect.TypeOf((*MockGlueAPI)(nil).CancelMLTaskRunRequest), arg0) +} + +// CancelMLTaskRunWithContext mocks base method. +func (m *MockGlueAPI) CancelMLTaskRunWithContext(arg0 aws.Context, arg1 *glue.CancelMLTaskRunInput, arg2 ...request.Option) (*glue.CancelMLTaskRunOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CancelMLTaskRunWithContext", varargs...) + ret0, _ := ret[0].(*glue.CancelMLTaskRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CancelMLTaskRunWithContext indicates an expected call of CancelMLTaskRunWithContext. +func (mr *MockGlueAPIMockRecorder) CancelMLTaskRunWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelMLTaskRunWithContext", reflect.TypeOf((*MockGlueAPI)(nil).CancelMLTaskRunWithContext), varargs...) +} + +// CancelStatement mocks base method. +func (m *MockGlueAPI) CancelStatement(arg0 *glue.CancelStatementInput) (*glue.CancelStatementOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CancelStatement", arg0) + ret0, _ := ret[0].(*glue.CancelStatementOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CancelStatement indicates an expected call of CancelStatement. +func (mr *MockGlueAPIMockRecorder) CancelStatement(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelStatement", reflect.TypeOf((*MockGlueAPI)(nil).CancelStatement), arg0) +} + +// CancelStatementRequest mocks base method. +func (m *MockGlueAPI) CancelStatementRequest(arg0 *glue.CancelStatementInput) (*request.Request, *glue.CancelStatementOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CancelStatementRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.CancelStatementOutput) + return ret0, ret1 +} + +// CancelStatementRequest indicates an expected call of CancelStatementRequest. +func (mr *MockGlueAPIMockRecorder) CancelStatementRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelStatementRequest", reflect.TypeOf((*MockGlueAPI)(nil).CancelStatementRequest), arg0) +} + +// CancelStatementWithContext mocks base method. +func (m *MockGlueAPI) CancelStatementWithContext(arg0 aws.Context, arg1 *glue.CancelStatementInput, arg2 ...request.Option) (*glue.CancelStatementOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CancelStatementWithContext", varargs...) + ret0, _ := ret[0].(*glue.CancelStatementOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CancelStatementWithContext indicates an expected call of CancelStatementWithContext. +func (mr *MockGlueAPIMockRecorder) CancelStatementWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelStatementWithContext", reflect.TypeOf((*MockGlueAPI)(nil).CancelStatementWithContext), varargs...) +} + +// CheckSchemaVersionValidity mocks base method. +func (m *MockGlueAPI) CheckSchemaVersionValidity(arg0 *glue.CheckSchemaVersionValidityInput) (*glue.CheckSchemaVersionValidityOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CheckSchemaVersionValidity", arg0) + ret0, _ := ret[0].(*glue.CheckSchemaVersionValidityOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CheckSchemaVersionValidity indicates an expected call of CheckSchemaVersionValidity. +func (mr *MockGlueAPIMockRecorder) CheckSchemaVersionValidity(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckSchemaVersionValidity", reflect.TypeOf((*MockGlueAPI)(nil).CheckSchemaVersionValidity), arg0) +} + +// CheckSchemaVersionValidityRequest mocks base method. +func (m *MockGlueAPI) CheckSchemaVersionValidityRequest(arg0 *glue.CheckSchemaVersionValidityInput) (*request.Request, *glue.CheckSchemaVersionValidityOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CheckSchemaVersionValidityRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.CheckSchemaVersionValidityOutput) + return ret0, ret1 +} + +// CheckSchemaVersionValidityRequest indicates an expected call of CheckSchemaVersionValidityRequest. +func (mr *MockGlueAPIMockRecorder) CheckSchemaVersionValidityRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckSchemaVersionValidityRequest", reflect.TypeOf((*MockGlueAPI)(nil).CheckSchemaVersionValidityRequest), arg0) +} + +// CheckSchemaVersionValidityWithContext mocks base method. +func (m *MockGlueAPI) CheckSchemaVersionValidityWithContext(arg0 aws.Context, arg1 *glue.CheckSchemaVersionValidityInput, arg2 ...request.Option) (*glue.CheckSchemaVersionValidityOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CheckSchemaVersionValidityWithContext", varargs...) + ret0, _ := ret[0].(*glue.CheckSchemaVersionValidityOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CheckSchemaVersionValidityWithContext indicates an expected call of CheckSchemaVersionValidityWithContext. +func (mr *MockGlueAPIMockRecorder) CheckSchemaVersionValidityWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckSchemaVersionValidityWithContext", reflect.TypeOf((*MockGlueAPI)(nil).CheckSchemaVersionValidityWithContext), varargs...) +} + +// CreateBlueprint mocks base method. +func (m *MockGlueAPI) CreateBlueprint(arg0 *glue.CreateBlueprintInput) (*glue.CreateBlueprintOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateBlueprint", arg0) + ret0, _ := ret[0].(*glue.CreateBlueprintOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateBlueprint indicates an expected call of CreateBlueprint. +func (mr *MockGlueAPIMockRecorder) CreateBlueprint(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateBlueprint", reflect.TypeOf((*MockGlueAPI)(nil).CreateBlueprint), arg0) +} + +// CreateBlueprintRequest mocks base method. +func (m *MockGlueAPI) CreateBlueprintRequest(arg0 *glue.CreateBlueprintInput) (*request.Request, *glue.CreateBlueprintOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateBlueprintRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.CreateBlueprintOutput) + return ret0, ret1 +} + +// CreateBlueprintRequest indicates an expected call of CreateBlueprintRequest. +func (mr *MockGlueAPIMockRecorder) CreateBlueprintRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateBlueprintRequest", reflect.TypeOf((*MockGlueAPI)(nil).CreateBlueprintRequest), arg0) +} + +// CreateBlueprintWithContext mocks base method. +func (m *MockGlueAPI) CreateBlueprintWithContext(arg0 aws.Context, arg1 *glue.CreateBlueprintInput, arg2 ...request.Option) (*glue.CreateBlueprintOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateBlueprintWithContext", varargs...) + ret0, _ := ret[0].(*glue.CreateBlueprintOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateBlueprintWithContext indicates an expected call of CreateBlueprintWithContext. +func (mr *MockGlueAPIMockRecorder) CreateBlueprintWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateBlueprintWithContext", reflect.TypeOf((*MockGlueAPI)(nil).CreateBlueprintWithContext), varargs...) +} + +// CreateClassifier mocks base method. +func (m *MockGlueAPI) CreateClassifier(arg0 *glue.CreateClassifierInput) (*glue.CreateClassifierOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateClassifier", arg0) + ret0, _ := ret[0].(*glue.CreateClassifierOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateClassifier indicates an expected call of CreateClassifier. +func (mr *MockGlueAPIMockRecorder) CreateClassifier(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateClassifier", reflect.TypeOf((*MockGlueAPI)(nil).CreateClassifier), arg0) +} + +// CreateClassifierRequest mocks base method. +func (m *MockGlueAPI) CreateClassifierRequest(arg0 *glue.CreateClassifierInput) (*request.Request, *glue.CreateClassifierOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateClassifierRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.CreateClassifierOutput) + return ret0, ret1 +} + +// CreateClassifierRequest indicates an expected call of CreateClassifierRequest. +func (mr *MockGlueAPIMockRecorder) CreateClassifierRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateClassifierRequest", reflect.TypeOf((*MockGlueAPI)(nil).CreateClassifierRequest), arg0) +} + +// CreateClassifierWithContext mocks base method. +func (m *MockGlueAPI) CreateClassifierWithContext(arg0 aws.Context, arg1 *glue.CreateClassifierInput, arg2 ...request.Option) (*glue.CreateClassifierOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateClassifierWithContext", varargs...) + ret0, _ := ret[0].(*glue.CreateClassifierOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateClassifierWithContext indicates an expected call of CreateClassifierWithContext. +func (mr *MockGlueAPIMockRecorder) CreateClassifierWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateClassifierWithContext", reflect.TypeOf((*MockGlueAPI)(nil).CreateClassifierWithContext), varargs...) +} + +// CreateConnection mocks base method. +func (m *MockGlueAPI) CreateConnection(arg0 *glue.CreateConnectionInput) (*glue.CreateConnectionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateConnection", arg0) + ret0, _ := ret[0].(*glue.CreateConnectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateConnection indicates an expected call of CreateConnection. +func (mr *MockGlueAPIMockRecorder) CreateConnection(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateConnection", reflect.TypeOf((*MockGlueAPI)(nil).CreateConnection), arg0) +} + +// CreateConnectionRequest mocks base method. +func (m *MockGlueAPI) CreateConnectionRequest(arg0 *glue.CreateConnectionInput) (*request.Request, *glue.CreateConnectionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateConnectionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.CreateConnectionOutput) + return ret0, ret1 +} + +// CreateConnectionRequest indicates an expected call of CreateConnectionRequest. +func (mr *MockGlueAPIMockRecorder) CreateConnectionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateConnectionRequest", reflect.TypeOf((*MockGlueAPI)(nil).CreateConnectionRequest), arg0) +} + +// CreateConnectionWithContext mocks base method. +func (m *MockGlueAPI) CreateConnectionWithContext(arg0 aws.Context, arg1 *glue.CreateConnectionInput, arg2 ...request.Option) (*glue.CreateConnectionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateConnectionWithContext", varargs...) + ret0, _ := ret[0].(*glue.CreateConnectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateConnectionWithContext indicates an expected call of CreateConnectionWithContext. +func (mr *MockGlueAPIMockRecorder) CreateConnectionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateConnectionWithContext", reflect.TypeOf((*MockGlueAPI)(nil).CreateConnectionWithContext), varargs...) +} + +// CreateCrawler mocks base method. +func (m *MockGlueAPI) CreateCrawler(arg0 *glue.CreateCrawlerInput) (*glue.CreateCrawlerOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateCrawler", arg0) + ret0, _ := ret[0].(*glue.CreateCrawlerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateCrawler indicates an expected call of CreateCrawler. +func (mr *MockGlueAPIMockRecorder) CreateCrawler(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCrawler", reflect.TypeOf((*MockGlueAPI)(nil).CreateCrawler), arg0) +} + +// CreateCrawlerRequest mocks base method. +func (m *MockGlueAPI) CreateCrawlerRequest(arg0 *glue.CreateCrawlerInput) (*request.Request, *glue.CreateCrawlerOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateCrawlerRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.CreateCrawlerOutput) + return ret0, ret1 +} + +// CreateCrawlerRequest indicates an expected call of CreateCrawlerRequest. +func (mr *MockGlueAPIMockRecorder) CreateCrawlerRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCrawlerRequest", reflect.TypeOf((*MockGlueAPI)(nil).CreateCrawlerRequest), arg0) +} + +// CreateCrawlerWithContext mocks base method. +func (m *MockGlueAPI) CreateCrawlerWithContext(arg0 aws.Context, arg1 *glue.CreateCrawlerInput, arg2 ...request.Option) (*glue.CreateCrawlerOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateCrawlerWithContext", varargs...) + ret0, _ := ret[0].(*glue.CreateCrawlerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateCrawlerWithContext indicates an expected call of CreateCrawlerWithContext. +func (mr *MockGlueAPIMockRecorder) CreateCrawlerWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCrawlerWithContext", reflect.TypeOf((*MockGlueAPI)(nil).CreateCrawlerWithContext), varargs...) +} + +// CreateCustomEntityType mocks base method. +func (m *MockGlueAPI) CreateCustomEntityType(arg0 *glue.CreateCustomEntityTypeInput) (*glue.CreateCustomEntityTypeOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateCustomEntityType", arg0) + ret0, _ := ret[0].(*glue.CreateCustomEntityTypeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateCustomEntityType indicates an expected call of CreateCustomEntityType. +func (mr *MockGlueAPIMockRecorder) CreateCustomEntityType(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCustomEntityType", reflect.TypeOf((*MockGlueAPI)(nil).CreateCustomEntityType), arg0) +} + +// CreateCustomEntityTypeRequest mocks base method. +func (m *MockGlueAPI) CreateCustomEntityTypeRequest(arg0 *glue.CreateCustomEntityTypeInput) (*request.Request, *glue.CreateCustomEntityTypeOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateCustomEntityTypeRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.CreateCustomEntityTypeOutput) + return ret0, ret1 +} + +// CreateCustomEntityTypeRequest indicates an expected call of CreateCustomEntityTypeRequest. +func (mr *MockGlueAPIMockRecorder) CreateCustomEntityTypeRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCustomEntityTypeRequest", reflect.TypeOf((*MockGlueAPI)(nil).CreateCustomEntityTypeRequest), arg0) +} + +// CreateCustomEntityTypeWithContext mocks base method. +func (m *MockGlueAPI) CreateCustomEntityTypeWithContext(arg0 aws.Context, arg1 *glue.CreateCustomEntityTypeInput, arg2 ...request.Option) (*glue.CreateCustomEntityTypeOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateCustomEntityTypeWithContext", varargs...) + ret0, _ := ret[0].(*glue.CreateCustomEntityTypeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateCustomEntityTypeWithContext indicates an expected call of CreateCustomEntityTypeWithContext. +func (mr *MockGlueAPIMockRecorder) CreateCustomEntityTypeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCustomEntityTypeWithContext", reflect.TypeOf((*MockGlueAPI)(nil).CreateCustomEntityTypeWithContext), varargs...) +} + +// CreateDataQualityRuleset mocks base method. +func (m *MockGlueAPI) CreateDataQualityRuleset(arg0 *glue.CreateDataQualityRulesetInput) (*glue.CreateDataQualityRulesetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateDataQualityRuleset", arg0) + ret0, _ := ret[0].(*glue.CreateDataQualityRulesetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateDataQualityRuleset indicates an expected call of CreateDataQualityRuleset. +func (mr *MockGlueAPIMockRecorder) CreateDataQualityRuleset(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateDataQualityRuleset", reflect.TypeOf((*MockGlueAPI)(nil).CreateDataQualityRuleset), arg0) +} + +// CreateDataQualityRulesetRequest mocks base method. +func (m *MockGlueAPI) CreateDataQualityRulesetRequest(arg0 *glue.CreateDataQualityRulesetInput) (*request.Request, *glue.CreateDataQualityRulesetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateDataQualityRulesetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.CreateDataQualityRulesetOutput) + return ret0, ret1 +} + +// CreateDataQualityRulesetRequest indicates an expected call of CreateDataQualityRulesetRequest. +func (mr *MockGlueAPIMockRecorder) CreateDataQualityRulesetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateDataQualityRulesetRequest", reflect.TypeOf((*MockGlueAPI)(nil).CreateDataQualityRulesetRequest), arg0) +} + +// CreateDataQualityRulesetWithContext mocks base method. +func (m *MockGlueAPI) CreateDataQualityRulesetWithContext(arg0 aws.Context, arg1 *glue.CreateDataQualityRulesetInput, arg2 ...request.Option) (*glue.CreateDataQualityRulesetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateDataQualityRulesetWithContext", varargs...) + ret0, _ := ret[0].(*glue.CreateDataQualityRulesetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateDataQualityRulesetWithContext indicates an expected call of CreateDataQualityRulesetWithContext. +func (mr *MockGlueAPIMockRecorder) CreateDataQualityRulesetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateDataQualityRulesetWithContext", reflect.TypeOf((*MockGlueAPI)(nil).CreateDataQualityRulesetWithContext), varargs...) +} + +// CreateDatabase mocks base method. +func (m *MockGlueAPI) CreateDatabase(arg0 *glue.CreateDatabaseInput) (*glue.CreateDatabaseOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateDatabase", arg0) + ret0, _ := ret[0].(*glue.CreateDatabaseOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateDatabase indicates an expected call of CreateDatabase. +func (mr *MockGlueAPIMockRecorder) CreateDatabase(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateDatabase", reflect.TypeOf((*MockGlueAPI)(nil).CreateDatabase), arg0) +} + +// CreateDatabaseRequest mocks base method. +func (m *MockGlueAPI) CreateDatabaseRequest(arg0 *glue.CreateDatabaseInput) (*request.Request, *glue.CreateDatabaseOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateDatabaseRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.CreateDatabaseOutput) + return ret0, ret1 +} + +// CreateDatabaseRequest indicates an expected call of CreateDatabaseRequest. +func (mr *MockGlueAPIMockRecorder) CreateDatabaseRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateDatabaseRequest", reflect.TypeOf((*MockGlueAPI)(nil).CreateDatabaseRequest), arg0) +} + +// CreateDatabaseWithContext mocks base method. +func (m *MockGlueAPI) CreateDatabaseWithContext(arg0 aws.Context, arg1 *glue.CreateDatabaseInput, arg2 ...request.Option) (*glue.CreateDatabaseOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateDatabaseWithContext", varargs...) + ret0, _ := ret[0].(*glue.CreateDatabaseOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateDatabaseWithContext indicates an expected call of CreateDatabaseWithContext. +func (mr *MockGlueAPIMockRecorder) CreateDatabaseWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateDatabaseWithContext", reflect.TypeOf((*MockGlueAPI)(nil).CreateDatabaseWithContext), varargs...) +} + +// CreateDevEndpoint mocks base method. +func (m *MockGlueAPI) CreateDevEndpoint(arg0 *glue.CreateDevEndpointInput) (*glue.CreateDevEndpointOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateDevEndpoint", arg0) + ret0, _ := ret[0].(*glue.CreateDevEndpointOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateDevEndpoint indicates an expected call of CreateDevEndpoint. +func (mr *MockGlueAPIMockRecorder) CreateDevEndpoint(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateDevEndpoint", reflect.TypeOf((*MockGlueAPI)(nil).CreateDevEndpoint), arg0) +} + +// CreateDevEndpointRequest mocks base method. +func (m *MockGlueAPI) CreateDevEndpointRequest(arg0 *glue.CreateDevEndpointInput) (*request.Request, *glue.CreateDevEndpointOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateDevEndpointRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.CreateDevEndpointOutput) + return ret0, ret1 +} + +// CreateDevEndpointRequest indicates an expected call of CreateDevEndpointRequest. +func (mr *MockGlueAPIMockRecorder) CreateDevEndpointRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateDevEndpointRequest", reflect.TypeOf((*MockGlueAPI)(nil).CreateDevEndpointRequest), arg0) +} + +// CreateDevEndpointWithContext mocks base method. +func (m *MockGlueAPI) CreateDevEndpointWithContext(arg0 aws.Context, arg1 *glue.CreateDevEndpointInput, arg2 ...request.Option) (*glue.CreateDevEndpointOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateDevEndpointWithContext", varargs...) + ret0, _ := ret[0].(*glue.CreateDevEndpointOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateDevEndpointWithContext indicates an expected call of CreateDevEndpointWithContext. +func (mr *MockGlueAPIMockRecorder) CreateDevEndpointWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateDevEndpointWithContext", reflect.TypeOf((*MockGlueAPI)(nil).CreateDevEndpointWithContext), varargs...) +} + +// CreateJob mocks base method. +func (m *MockGlueAPI) CreateJob(arg0 *glue.CreateJobInput) (*glue.CreateJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateJob", arg0) + ret0, _ := ret[0].(*glue.CreateJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateJob indicates an expected call of CreateJob. +func (mr *MockGlueAPIMockRecorder) CreateJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateJob", reflect.TypeOf((*MockGlueAPI)(nil).CreateJob), arg0) +} + +// CreateJobRequest mocks base method. +func (m *MockGlueAPI) CreateJobRequest(arg0 *glue.CreateJobInput) (*request.Request, *glue.CreateJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.CreateJobOutput) + return ret0, ret1 +} + +// CreateJobRequest indicates an expected call of CreateJobRequest. +func (mr *MockGlueAPIMockRecorder) CreateJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateJobRequest", reflect.TypeOf((*MockGlueAPI)(nil).CreateJobRequest), arg0) +} + +// CreateJobWithContext mocks base method. +func (m *MockGlueAPI) CreateJobWithContext(arg0 aws.Context, arg1 *glue.CreateJobInput, arg2 ...request.Option) (*glue.CreateJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateJobWithContext", varargs...) + ret0, _ := ret[0].(*glue.CreateJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateJobWithContext indicates an expected call of CreateJobWithContext. +func (mr *MockGlueAPIMockRecorder) CreateJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateJobWithContext", reflect.TypeOf((*MockGlueAPI)(nil).CreateJobWithContext), varargs...) +} + +// CreateMLTransform mocks base method. +func (m *MockGlueAPI) CreateMLTransform(arg0 *glue.CreateMLTransformInput) (*glue.CreateMLTransformOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateMLTransform", arg0) + ret0, _ := ret[0].(*glue.CreateMLTransformOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateMLTransform indicates an expected call of CreateMLTransform. +func (mr *MockGlueAPIMockRecorder) CreateMLTransform(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateMLTransform", reflect.TypeOf((*MockGlueAPI)(nil).CreateMLTransform), arg0) +} + +// CreateMLTransformRequest mocks base method. +func (m *MockGlueAPI) CreateMLTransformRequest(arg0 *glue.CreateMLTransformInput) (*request.Request, *glue.CreateMLTransformOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateMLTransformRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.CreateMLTransformOutput) + return ret0, ret1 +} + +// CreateMLTransformRequest indicates an expected call of CreateMLTransformRequest. +func (mr *MockGlueAPIMockRecorder) CreateMLTransformRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateMLTransformRequest", reflect.TypeOf((*MockGlueAPI)(nil).CreateMLTransformRequest), arg0) +} + +// CreateMLTransformWithContext mocks base method. +func (m *MockGlueAPI) CreateMLTransformWithContext(arg0 aws.Context, arg1 *glue.CreateMLTransformInput, arg2 ...request.Option) (*glue.CreateMLTransformOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateMLTransformWithContext", varargs...) + ret0, _ := ret[0].(*glue.CreateMLTransformOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateMLTransformWithContext indicates an expected call of CreateMLTransformWithContext. +func (mr *MockGlueAPIMockRecorder) CreateMLTransformWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateMLTransformWithContext", reflect.TypeOf((*MockGlueAPI)(nil).CreateMLTransformWithContext), varargs...) +} + +// CreatePartition mocks base method. +func (m *MockGlueAPI) CreatePartition(arg0 *glue.CreatePartitionInput) (*glue.CreatePartitionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreatePartition", arg0) + ret0, _ := ret[0].(*glue.CreatePartitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreatePartition indicates an expected call of CreatePartition. +func (mr *MockGlueAPIMockRecorder) CreatePartition(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePartition", reflect.TypeOf((*MockGlueAPI)(nil).CreatePartition), arg0) +} + +// CreatePartitionIndex mocks base method. +func (m *MockGlueAPI) CreatePartitionIndex(arg0 *glue.CreatePartitionIndexInput) (*glue.CreatePartitionIndexOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreatePartitionIndex", arg0) + ret0, _ := ret[0].(*glue.CreatePartitionIndexOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreatePartitionIndex indicates an expected call of CreatePartitionIndex. +func (mr *MockGlueAPIMockRecorder) CreatePartitionIndex(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePartitionIndex", reflect.TypeOf((*MockGlueAPI)(nil).CreatePartitionIndex), arg0) +} + +// CreatePartitionIndexRequest mocks base method. +func (m *MockGlueAPI) CreatePartitionIndexRequest(arg0 *glue.CreatePartitionIndexInput) (*request.Request, *glue.CreatePartitionIndexOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreatePartitionIndexRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.CreatePartitionIndexOutput) + return ret0, ret1 +} + +// CreatePartitionIndexRequest indicates an expected call of CreatePartitionIndexRequest. +func (mr *MockGlueAPIMockRecorder) CreatePartitionIndexRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePartitionIndexRequest", reflect.TypeOf((*MockGlueAPI)(nil).CreatePartitionIndexRequest), arg0) +} + +// CreatePartitionIndexWithContext mocks base method. +func (m *MockGlueAPI) CreatePartitionIndexWithContext(arg0 aws.Context, arg1 *glue.CreatePartitionIndexInput, arg2 ...request.Option) (*glue.CreatePartitionIndexOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreatePartitionIndexWithContext", varargs...) + ret0, _ := ret[0].(*glue.CreatePartitionIndexOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreatePartitionIndexWithContext indicates an expected call of CreatePartitionIndexWithContext. +func (mr *MockGlueAPIMockRecorder) CreatePartitionIndexWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePartitionIndexWithContext", reflect.TypeOf((*MockGlueAPI)(nil).CreatePartitionIndexWithContext), varargs...) +} + +// CreatePartitionRequest mocks base method. +func (m *MockGlueAPI) CreatePartitionRequest(arg0 *glue.CreatePartitionInput) (*request.Request, *glue.CreatePartitionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreatePartitionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.CreatePartitionOutput) + return ret0, ret1 +} + +// CreatePartitionRequest indicates an expected call of CreatePartitionRequest. +func (mr *MockGlueAPIMockRecorder) CreatePartitionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePartitionRequest", reflect.TypeOf((*MockGlueAPI)(nil).CreatePartitionRequest), arg0) +} + +// CreatePartitionWithContext mocks base method. +func (m *MockGlueAPI) CreatePartitionWithContext(arg0 aws.Context, arg1 *glue.CreatePartitionInput, arg2 ...request.Option) (*glue.CreatePartitionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreatePartitionWithContext", varargs...) + ret0, _ := ret[0].(*glue.CreatePartitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreatePartitionWithContext indicates an expected call of CreatePartitionWithContext. +func (mr *MockGlueAPIMockRecorder) CreatePartitionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePartitionWithContext", reflect.TypeOf((*MockGlueAPI)(nil).CreatePartitionWithContext), varargs...) +} + +// CreateRegistry mocks base method. +func (m *MockGlueAPI) CreateRegistry(arg0 *glue.CreateRegistryInput) (*glue.CreateRegistryOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateRegistry", arg0) + ret0, _ := ret[0].(*glue.CreateRegistryOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateRegistry indicates an expected call of CreateRegistry. +func (mr *MockGlueAPIMockRecorder) CreateRegistry(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRegistry", reflect.TypeOf((*MockGlueAPI)(nil).CreateRegistry), arg0) +} + +// CreateRegistryRequest mocks base method. +func (m *MockGlueAPI) CreateRegistryRequest(arg0 *glue.CreateRegistryInput) (*request.Request, *glue.CreateRegistryOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateRegistryRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.CreateRegistryOutput) + return ret0, ret1 +} + +// CreateRegistryRequest indicates an expected call of CreateRegistryRequest. +func (mr *MockGlueAPIMockRecorder) CreateRegistryRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRegistryRequest", reflect.TypeOf((*MockGlueAPI)(nil).CreateRegistryRequest), arg0) +} + +// CreateRegistryWithContext mocks base method. +func (m *MockGlueAPI) CreateRegistryWithContext(arg0 aws.Context, arg1 *glue.CreateRegistryInput, arg2 ...request.Option) (*glue.CreateRegistryOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateRegistryWithContext", varargs...) + ret0, _ := ret[0].(*glue.CreateRegistryOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateRegistryWithContext indicates an expected call of CreateRegistryWithContext. +func (mr *MockGlueAPIMockRecorder) CreateRegistryWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRegistryWithContext", reflect.TypeOf((*MockGlueAPI)(nil).CreateRegistryWithContext), varargs...) +} + +// CreateSchema mocks base method. +func (m *MockGlueAPI) CreateSchema(arg0 *glue.CreateSchemaInput) (*glue.CreateSchemaOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateSchema", arg0) + ret0, _ := ret[0].(*glue.CreateSchemaOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateSchema indicates an expected call of CreateSchema. +func (mr *MockGlueAPIMockRecorder) CreateSchema(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateSchema", reflect.TypeOf((*MockGlueAPI)(nil).CreateSchema), arg0) +} + +// CreateSchemaRequest mocks base method. +func (m *MockGlueAPI) CreateSchemaRequest(arg0 *glue.CreateSchemaInput) (*request.Request, *glue.CreateSchemaOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateSchemaRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.CreateSchemaOutput) + return ret0, ret1 +} + +// CreateSchemaRequest indicates an expected call of CreateSchemaRequest. +func (mr *MockGlueAPIMockRecorder) CreateSchemaRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateSchemaRequest", reflect.TypeOf((*MockGlueAPI)(nil).CreateSchemaRequest), arg0) +} + +// CreateSchemaWithContext mocks base method. +func (m *MockGlueAPI) CreateSchemaWithContext(arg0 aws.Context, arg1 *glue.CreateSchemaInput, arg2 ...request.Option) (*glue.CreateSchemaOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateSchemaWithContext", varargs...) + ret0, _ := ret[0].(*glue.CreateSchemaOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateSchemaWithContext indicates an expected call of CreateSchemaWithContext. +func (mr *MockGlueAPIMockRecorder) CreateSchemaWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateSchemaWithContext", reflect.TypeOf((*MockGlueAPI)(nil).CreateSchemaWithContext), varargs...) +} + +// CreateScript mocks base method. +func (m *MockGlueAPI) CreateScript(arg0 *glue.CreateScriptInput) (*glue.CreateScriptOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateScript", arg0) + ret0, _ := ret[0].(*glue.CreateScriptOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateScript indicates an expected call of CreateScript. +func (mr *MockGlueAPIMockRecorder) CreateScript(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateScript", reflect.TypeOf((*MockGlueAPI)(nil).CreateScript), arg0) +} + +// CreateScriptRequest mocks base method. +func (m *MockGlueAPI) CreateScriptRequest(arg0 *glue.CreateScriptInput) (*request.Request, *glue.CreateScriptOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateScriptRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.CreateScriptOutput) + return ret0, ret1 +} + +// CreateScriptRequest indicates an expected call of CreateScriptRequest. +func (mr *MockGlueAPIMockRecorder) CreateScriptRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateScriptRequest", reflect.TypeOf((*MockGlueAPI)(nil).CreateScriptRequest), arg0) +} + +// CreateScriptWithContext mocks base method. +func (m *MockGlueAPI) CreateScriptWithContext(arg0 aws.Context, arg1 *glue.CreateScriptInput, arg2 ...request.Option) (*glue.CreateScriptOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateScriptWithContext", varargs...) + ret0, _ := ret[0].(*glue.CreateScriptOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateScriptWithContext indicates an expected call of CreateScriptWithContext. +func (mr *MockGlueAPIMockRecorder) CreateScriptWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateScriptWithContext", reflect.TypeOf((*MockGlueAPI)(nil).CreateScriptWithContext), varargs...) +} + +// CreateSecurityConfiguration mocks base method. +func (m *MockGlueAPI) CreateSecurityConfiguration(arg0 *glue.CreateSecurityConfigurationInput) (*glue.CreateSecurityConfigurationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateSecurityConfiguration", arg0) + ret0, _ := ret[0].(*glue.CreateSecurityConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateSecurityConfiguration indicates an expected call of CreateSecurityConfiguration. +func (mr *MockGlueAPIMockRecorder) CreateSecurityConfiguration(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateSecurityConfiguration", reflect.TypeOf((*MockGlueAPI)(nil).CreateSecurityConfiguration), arg0) +} + +// CreateSecurityConfigurationRequest mocks base method. +func (m *MockGlueAPI) CreateSecurityConfigurationRequest(arg0 *glue.CreateSecurityConfigurationInput) (*request.Request, *glue.CreateSecurityConfigurationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateSecurityConfigurationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.CreateSecurityConfigurationOutput) + return ret0, ret1 +} + +// CreateSecurityConfigurationRequest indicates an expected call of CreateSecurityConfigurationRequest. +func (mr *MockGlueAPIMockRecorder) CreateSecurityConfigurationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateSecurityConfigurationRequest", reflect.TypeOf((*MockGlueAPI)(nil).CreateSecurityConfigurationRequest), arg0) +} + +// CreateSecurityConfigurationWithContext mocks base method. +func (m *MockGlueAPI) CreateSecurityConfigurationWithContext(arg0 aws.Context, arg1 *glue.CreateSecurityConfigurationInput, arg2 ...request.Option) (*glue.CreateSecurityConfigurationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateSecurityConfigurationWithContext", varargs...) + ret0, _ := ret[0].(*glue.CreateSecurityConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateSecurityConfigurationWithContext indicates an expected call of CreateSecurityConfigurationWithContext. +func (mr *MockGlueAPIMockRecorder) CreateSecurityConfigurationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateSecurityConfigurationWithContext", reflect.TypeOf((*MockGlueAPI)(nil).CreateSecurityConfigurationWithContext), varargs...) +} + +// CreateSession mocks base method. +func (m *MockGlueAPI) CreateSession(arg0 *glue.CreateSessionInput) (*glue.CreateSessionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateSession", arg0) + ret0, _ := ret[0].(*glue.CreateSessionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateSession indicates an expected call of CreateSession. +func (mr *MockGlueAPIMockRecorder) CreateSession(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateSession", reflect.TypeOf((*MockGlueAPI)(nil).CreateSession), arg0) +} + +// CreateSessionRequest mocks base method. +func (m *MockGlueAPI) CreateSessionRequest(arg0 *glue.CreateSessionInput) (*request.Request, *glue.CreateSessionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateSessionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.CreateSessionOutput) + return ret0, ret1 +} + +// CreateSessionRequest indicates an expected call of CreateSessionRequest. +func (mr *MockGlueAPIMockRecorder) CreateSessionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateSessionRequest", reflect.TypeOf((*MockGlueAPI)(nil).CreateSessionRequest), arg0) +} + +// CreateSessionWithContext mocks base method. +func (m *MockGlueAPI) CreateSessionWithContext(arg0 aws.Context, arg1 *glue.CreateSessionInput, arg2 ...request.Option) (*glue.CreateSessionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateSessionWithContext", varargs...) + ret0, _ := ret[0].(*glue.CreateSessionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateSessionWithContext indicates an expected call of CreateSessionWithContext. +func (mr *MockGlueAPIMockRecorder) CreateSessionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateSessionWithContext", reflect.TypeOf((*MockGlueAPI)(nil).CreateSessionWithContext), varargs...) +} + +// CreateTable mocks base method. +func (m *MockGlueAPI) CreateTable(arg0 *glue.CreateTableInput) (*glue.CreateTableOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateTable", arg0) + ret0, _ := ret[0].(*glue.CreateTableOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateTable indicates an expected call of CreateTable. +func (mr *MockGlueAPIMockRecorder) CreateTable(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTable", reflect.TypeOf((*MockGlueAPI)(nil).CreateTable), arg0) +} + +// CreateTableOptimizer mocks base method. +func (m *MockGlueAPI) CreateTableOptimizer(arg0 *glue.CreateTableOptimizerInput) (*glue.CreateTableOptimizerOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateTableOptimizer", arg0) + ret0, _ := ret[0].(*glue.CreateTableOptimizerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateTableOptimizer indicates an expected call of CreateTableOptimizer. +func (mr *MockGlueAPIMockRecorder) CreateTableOptimizer(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTableOptimizer", reflect.TypeOf((*MockGlueAPI)(nil).CreateTableOptimizer), arg0) +} + +// CreateTableOptimizerRequest mocks base method. +func (m *MockGlueAPI) CreateTableOptimizerRequest(arg0 *glue.CreateTableOptimizerInput) (*request.Request, *glue.CreateTableOptimizerOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateTableOptimizerRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.CreateTableOptimizerOutput) + return ret0, ret1 +} + +// CreateTableOptimizerRequest indicates an expected call of CreateTableOptimizerRequest. +func (mr *MockGlueAPIMockRecorder) CreateTableOptimizerRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTableOptimizerRequest", reflect.TypeOf((*MockGlueAPI)(nil).CreateTableOptimizerRequest), arg0) +} + +// CreateTableOptimizerWithContext mocks base method. +func (m *MockGlueAPI) CreateTableOptimizerWithContext(arg0 aws.Context, arg1 *glue.CreateTableOptimizerInput, arg2 ...request.Option) (*glue.CreateTableOptimizerOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateTableOptimizerWithContext", varargs...) + ret0, _ := ret[0].(*glue.CreateTableOptimizerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateTableOptimizerWithContext indicates an expected call of CreateTableOptimizerWithContext. +func (mr *MockGlueAPIMockRecorder) CreateTableOptimizerWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTableOptimizerWithContext", reflect.TypeOf((*MockGlueAPI)(nil).CreateTableOptimizerWithContext), varargs...) +} + +// CreateTableRequest mocks base method. +func (m *MockGlueAPI) CreateTableRequest(arg0 *glue.CreateTableInput) (*request.Request, *glue.CreateTableOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateTableRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.CreateTableOutput) + return ret0, ret1 +} + +// CreateTableRequest indicates an expected call of CreateTableRequest. +func (mr *MockGlueAPIMockRecorder) CreateTableRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTableRequest", reflect.TypeOf((*MockGlueAPI)(nil).CreateTableRequest), arg0) +} + +// CreateTableWithContext mocks base method. +func (m *MockGlueAPI) CreateTableWithContext(arg0 aws.Context, arg1 *glue.CreateTableInput, arg2 ...request.Option) (*glue.CreateTableOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateTableWithContext", varargs...) + ret0, _ := ret[0].(*glue.CreateTableOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateTableWithContext indicates an expected call of CreateTableWithContext. +func (mr *MockGlueAPIMockRecorder) CreateTableWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTableWithContext", reflect.TypeOf((*MockGlueAPI)(nil).CreateTableWithContext), varargs...) +} + +// CreateTrigger mocks base method. +func (m *MockGlueAPI) CreateTrigger(arg0 *glue.CreateTriggerInput) (*glue.CreateTriggerOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateTrigger", arg0) + ret0, _ := ret[0].(*glue.CreateTriggerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateTrigger indicates an expected call of CreateTrigger. +func (mr *MockGlueAPIMockRecorder) CreateTrigger(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTrigger", reflect.TypeOf((*MockGlueAPI)(nil).CreateTrigger), arg0) +} + +// CreateTriggerRequest mocks base method. +func (m *MockGlueAPI) CreateTriggerRequest(arg0 *glue.CreateTriggerInput) (*request.Request, *glue.CreateTriggerOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateTriggerRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.CreateTriggerOutput) + return ret0, ret1 +} + +// CreateTriggerRequest indicates an expected call of CreateTriggerRequest. +func (mr *MockGlueAPIMockRecorder) CreateTriggerRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTriggerRequest", reflect.TypeOf((*MockGlueAPI)(nil).CreateTriggerRequest), arg0) +} + +// CreateTriggerWithContext mocks base method. +func (m *MockGlueAPI) CreateTriggerWithContext(arg0 aws.Context, arg1 *glue.CreateTriggerInput, arg2 ...request.Option) (*glue.CreateTriggerOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateTriggerWithContext", varargs...) + ret0, _ := ret[0].(*glue.CreateTriggerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateTriggerWithContext indicates an expected call of CreateTriggerWithContext. +func (mr *MockGlueAPIMockRecorder) CreateTriggerWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTriggerWithContext", reflect.TypeOf((*MockGlueAPI)(nil).CreateTriggerWithContext), varargs...) +} + +// CreateUserDefinedFunction mocks base method. +func (m *MockGlueAPI) CreateUserDefinedFunction(arg0 *glue.CreateUserDefinedFunctionInput) (*glue.CreateUserDefinedFunctionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateUserDefinedFunction", arg0) + ret0, _ := ret[0].(*glue.CreateUserDefinedFunctionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateUserDefinedFunction indicates an expected call of CreateUserDefinedFunction. +func (mr *MockGlueAPIMockRecorder) CreateUserDefinedFunction(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUserDefinedFunction", reflect.TypeOf((*MockGlueAPI)(nil).CreateUserDefinedFunction), arg0) +} + +// CreateUserDefinedFunctionRequest mocks base method. +func (m *MockGlueAPI) CreateUserDefinedFunctionRequest(arg0 *glue.CreateUserDefinedFunctionInput) (*request.Request, *glue.CreateUserDefinedFunctionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateUserDefinedFunctionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.CreateUserDefinedFunctionOutput) + return ret0, ret1 +} + +// CreateUserDefinedFunctionRequest indicates an expected call of CreateUserDefinedFunctionRequest. +func (mr *MockGlueAPIMockRecorder) CreateUserDefinedFunctionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUserDefinedFunctionRequest", reflect.TypeOf((*MockGlueAPI)(nil).CreateUserDefinedFunctionRequest), arg0) +} + +// CreateUserDefinedFunctionWithContext mocks base method. +func (m *MockGlueAPI) CreateUserDefinedFunctionWithContext(arg0 aws.Context, arg1 *glue.CreateUserDefinedFunctionInput, arg2 ...request.Option) (*glue.CreateUserDefinedFunctionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateUserDefinedFunctionWithContext", varargs...) + ret0, _ := ret[0].(*glue.CreateUserDefinedFunctionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateUserDefinedFunctionWithContext indicates an expected call of CreateUserDefinedFunctionWithContext. +func (mr *MockGlueAPIMockRecorder) CreateUserDefinedFunctionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUserDefinedFunctionWithContext", reflect.TypeOf((*MockGlueAPI)(nil).CreateUserDefinedFunctionWithContext), varargs...) +} + +// CreateWorkflow mocks base method. +func (m *MockGlueAPI) CreateWorkflow(arg0 *glue.CreateWorkflowInput) (*glue.CreateWorkflowOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateWorkflow", arg0) + ret0, _ := ret[0].(*glue.CreateWorkflowOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateWorkflow indicates an expected call of CreateWorkflow. +func (mr *MockGlueAPIMockRecorder) CreateWorkflow(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateWorkflow", reflect.TypeOf((*MockGlueAPI)(nil).CreateWorkflow), arg0) +} + +// CreateWorkflowRequest mocks base method. +func (m *MockGlueAPI) CreateWorkflowRequest(arg0 *glue.CreateWorkflowInput) (*request.Request, *glue.CreateWorkflowOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateWorkflowRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.CreateWorkflowOutput) + return ret0, ret1 +} + +// CreateWorkflowRequest indicates an expected call of CreateWorkflowRequest. +func (mr *MockGlueAPIMockRecorder) CreateWorkflowRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateWorkflowRequest", reflect.TypeOf((*MockGlueAPI)(nil).CreateWorkflowRequest), arg0) +} + +// CreateWorkflowWithContext mocks base method. +func (m *MockGlueAPI) CreateWorkflowWithContext(arg0 aws.Context, arg1 *glue.CreateWorkflowInput, arg2 ...request.Option) (*glue.CreateWorkflowOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateWorkflowWithContext", varargs...) + ret0, _ := ret[0].(*glue.CreateWorkflowOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateWorkflowWithContext indicates an expected call of CreateWorkflowWithContext. +func (mr *MockGlueAPIMockRecorder) CreateWorkflowWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateWorkflowWithContext", reflect.TypeOf((*MockGlueAPI)(nil).CreateWorkflowWithContext), varargs...) +} + +// DeleteBlueprint mocks base method. +func (m *MockGlueAPI) DeleteBlueprint(arg0 *glue.DeleteBlueprintInput) (*glue.DeleteBlueprintOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteBlueprint", arg0) + ret0, _ := ret[0].(*glue.DeleteBlueprintOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteBlueprint indicates an expected call of DeleteBlueprint. +func (mr *MockGlueAPIMockRecorder) DeleteBlueprint(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteBlueprint", reflect.TypeOf((*MockGlueAPI)(nil).DeleteBlueprint), arg0) +} + +// DeleteBlueprintRequest mocks base method. +func (m *MockGlueAPI) DeleteBlueprintRequest(arg0 *glue.DeleteBlueprintInput) (*request.Request, *glue.DeleteBlueprintOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteBlueprintRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.DeleteBlueprintOutput) + return ret0, ret1 +} + +// DeleteBlueprintRequest indicates an expected call of DeleteBlueprintRequest. +func (mr *MockGlueAPIMockRecorder) DeleteBlueprintRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteBlueprintRequest", reflect.TypeOf((*MockGlueAPI)(nil).DeleteBlueprintRequest), arg0) +} + +// DeleteBlueprintWithContext mocks base method. +func (m *MockGlueAPI) DeleteBlueprintWithContext(arg0 aws.Context, arg1 *glue.DeleteBlueprintInput, arg2 ...request.Option) (*glue.DeleteBlueprintOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteBlueprintWithContext", varargs...) + ret0, _ := ret[0].(*glue.DeleteBlueprintOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteBlueprintWithContext indicates an expected call of DeleteBlueprintWithContext. +func (mr *MockGlueAPIMockRecorder) DeleteBlueprintWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteBlueprintWithContext", reflect.TypeOf((*MockGlueAPI)(nil).DeleteBlueprintWithContext), varargs...) +} + +// DeleteClassifier mocks base method. +func (m *MockGlueAPI) DeleteClassifier(arg0 *glue.DeleteClassifierInput) (*glue.DeleteClassifierOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteClassifier", arg0) + ret0, _ := ret[0].(*glue.DeleteClassifierOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteClassifier indicates an expected call of DeleteClassifier. +func (mr *MockGlueAPIMockRecorder) DeleteClassifier(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteClassifier", reflect.TypeOf((*MockGlueAPI)(nil).DeleteClassifier), arg0) +} + +// DeleteClassifierRequest mocks base method. +func (m *MockGlueAPI) DeleteClassifierRequest(arg0 *glue.DeleteClassifierInput) (*request.Request, *glue.DeleteClassifierOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteClassifierRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.DeleteClassifierOutput) + return ret0, ret1 +} + +// DeleteClassifierRequest indicates an expected call of DeleteClassifierRequest. +func (mr *MockGlueAPIMockRecorder) DeleteClassifierRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteClassifierRequest", reflect.TypeOf((*MockGlueAPI)(nil).DeleteClassifierRequest), arg0) +} + +// DeleteClassifierWithContext mocks base method. +func (m *MockGlueAPI) DeleteClassifierWithContext(arg0 aws.Context, arg1 *glue.DeleteClassifierInput, arg2 ...request.Option) (*glue.DeleteClassifierOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteClassifierWithContext", varargs...) + ret0, _ := ret[0].(*glue.DeleteClassifierOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteClassifierWithContext indicates an expected call of DeleteClassifierWithContext. +func (mr *MockGlueAPIMockRecorder) DeleteClassifierWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteClassifierWithContext", reflect.TypeOf((*MockGlueAPI)(nil).DeleteClassifierWithContext), varargs...) +} + +// DeleteColumnStatisticsForPartition mocks base method. +func (m *MockGlueAPI) DeleteColumnStatisticsForPartition(arg0 *glue.DeleteColumnStatisticsForPartitionInput) (*glue.DeleteColumnStatisticsForPartitionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteColumnStatisticsForPartition", arg0) + ret0, _ := ret[0].(*glue.DeleteColumnStatisticsForPartitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteColumnStatisticsForPartition indicates an expected call of DeleteColumnStatisticsForPartition. +func (mr *MockGlueAPIMockRecorder) DeleteColumnStatisticsForPartition(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteColumnStatisticsForPartition", reflect.TypeOf((*MockGlueAPI)(nil).DeleteColumnStatisticsForPartition), arg0) +} + +// DeleteColumnStatisticsForPartitionRequest mocks base method. +func (m *MockGlueAPI) DeleteColumnStatisticsForPartitionRequest(arg0 *glue.DeleteColumnStatisticsForPartitionInput) (*request.Request, *glue.DeleteColumnStatisticsForPartitionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteColumnStatisticsForPartitionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.DeleteColumnStatisticsForPartitionOutput) + return ret0, ret1 +} + +// DeleteColumnStatisticsForPartitionRequest indicates an expected call of DeleteColumnStatisticsForPartitionRequest. +func (mr *MockGlueAPIMockRecorder) DeleteColumnStatisticsForPartitionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteColumnStatisticsForPartitionRequest", reflect.TypeOf((*MockGlueAPI)(nil).DeleteColumnStatisticsForPartitionRequest), arg0) +} + +// DeleteColumnStatisticsForPartitionWithContext mocks base method. +func (m *MockGlueAPI) DeleteColumnStatisticsForPartitionWithContext(arg0 aws.Context, arg1 *glue.DeleteColumnStatisticsForPartitionInput, arg2 ...request.Option) (*glue.DeleteColumnStatisticsForPartitionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteColumnStatisticsForPartitionWithContext", varargs...) + ret0, _ := ret[0].(*glue.DeleteColumnStatisticsForPartitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteColumnStatisticsForPartitionWithContext indicates an expected call of DeleteColumnStatisticsForPartitionWithContext. +func (mr *MockGlueAPIMockRecorder) DeleteColumnStatisticsForPartitionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteColumnStatisticsForPartitionWithContext", reflect.TypeOf((*MockGlueAPI)(nil).DeleteColumnStatisticsForPartitionWithContext), varargs...) +} + +// DeleteColumnStatisticsForTable mocks base method. +func (m *MockGlueAPI) DeleteColumnStatisticsForTable(arg0 *glue.DeleteColumnStatisticsForTableInput) (*glue.DeleteColumnStatisticsForTableOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteColumnStatisticsForTable", arg0) + ret0, _ := ret[0].(*glue.DeleteColumnStatisticsForTableOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteColumnStatisticsForTable indicates an expected call of DeleteColumnStatisticsForTable. +func (mr *MockGlueAPIMockRecorder) DeleteColumnStatisticsForTable(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteColumnStatisticsForTable", reflect.TypeOf((*MockGlueAPI)(nil).DeleteColumnStatisticsForTable), arg0) +} + +// DeleteColumnStatisticsForTableRequest mocks base method. +func (m *MockGlueAPI) DeleteColumnStatisticsForTableRequest(arg0 *glue.DeleteColumnStatisticsForTableInput) (*request.Request, *glue.DeleteColumnStatisticsForTableOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteColumnStatisticsForTableRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.DeleteColumnStatisticsForTableOutput) + return ret0, ret1 +} + +// DeleteColumnStatisticsForTableRequest indicates an expected call of DeleteColumnStatisticsForTableRequest. +func (mr *MockGlueAPIMockRecorder) DeleteColumnStatisticsForTableRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteColumnStatisticsForTableRequest", reflect.TypeOf((*MockGlueAPI)(nil).DeleteColumnStatisticsForTableRequest), arg0) +} + +// DeleteColumnStatisticsForTableWithContext mocks base method. +func (m *MockGlueAPI) DeleteColumnStatisticsForTableWithContext(arg0 aws.Context, arg1 *glue.DeleteColumnStatisticsForTableInput, arg2 ...request.Option) (*glue.DeleteColumnStatisticsForTableOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteColumnStatisticsForTableWithContext", varargs...) + ret0, _ := ret[0].(*glue.DeleteColumnStatisticsForTableOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteColumnStatisticsForTableWithContext indicates an expected call of DeleteColumnStatisticsForTableWithContext. +func (mr *MockGlueAPIMockRecorder) DeleteColumnStatisticsForTableWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteColumnStatisticsForTableWithContext", reflect.TypeOf((*MockGlueAPI)(nil).DeleteColumnStatisticsForTableWithContext), varargs...) +} + +// DeleteConnection mocks base method. +func (m *MockGlueAPI) DeleteConnection(arg0 *glue.DeleteConnectionInput) (*glue.DeleteConnectionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteConnection", arg0) + ret0, _ := ret[0].(*glue.DeleteConnectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteConnection indicates an expected call of DeleteConnection. +func (mr *MockGlueAPIMockRecorder) DeleteConnection(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteConnection", reflect.TypeOf((*MockGlueAPI)(nil).DeleteConnection), arg0) +} + +// DeleteConnectionRequest mocks base method. +func (m *MockGlueAPI) DeleteConnectionRequest(arg0 *glue.DeleteConnectionInput) (*request.Request, *glue.DeleteConnectionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteConnectionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.DeleteConnectionOutput) + return ret0, ret1 +} + +// DeleteConnectionRequest indicates an expected call of DeleteConnectionRequest. +func (mr *MockGlueAPIMockRecorder) DeleteConnectionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteConnectionRequest", reflect.TypeOf((*MockGlueAPI)(nil).DeleteConnectionRequest), arg0) +} + +// DeleteConnectionWithContext mocks base method. +func (m *MockGlueAPI) DeleteConnectionWithContext(arg0 aws.Context, arg1 *glue.DeleteConnectionInput, arg2 ...request.Option) (*glue.DeleteConnectionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteConnectionWithContext", varargs...) + ret0, _ := ret[0].(*glue.DeleteConnectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteConnectionWithContext indicates an expected call of DeleteConnectionWithContext. +func (mr *MockGlueAPIMockRecorder) DeleteConnectionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteConnectionWithContext", reflect.TypeOf((*MockGlueAPI)(nil).DeleteConnectionWithContext), varargs...) +} + +// DeleteCrawler mocks base method. +func (m *MockGlueAPI) DeleteCrawler(arg0 *glue.DeleteCrawlerInput) (*glue.DeleteCrawlerOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteCrawler", arg0) + ret0, _ := ret[0].(*glue.DeleteCrawlerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteCrawler indicates an expected call of DeleteCrawler. +func (mr *MockGlueAPIMockRecorder) DeleteCrawler(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCrawler", reflect.TypeOf((*MockGlueAPI)(nil).DeleteCrawler), arg0) +} + +// DeleteCrawlerRequest mocks base method. +func (m *MockGlueAPI) DeleteCrawlerRequest(arg0 *glue.DeleteCrawlerInput) (*request.Request, *glue.DeleteCrawlerOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteCrawlerRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.DeleteCrawlerOutput) + return ret0, ret1 +} + +// DeleteCrawlerRequest indicates an expected call of DeleteCrawlerRequest. +func (mr *MockGlueAPIMockRecorder) DeleteCrawlerRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCrawlerRequest", reflect.TypeOf((*MockGlueAPI)(nil).DeleteCrawlerRequest), arg0) +} + +// DeleteCrawlerWithContext mocks base method. +func (m *MockGlueAPI) DeleteCrawlerWithContext(arg0 aws.Context, arg1 *glue.DeleteCrawlerInput, arg2 ...request.Option) (*glue.DeleteCrawlerOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteCrawlerWithContext", varargs...) + ret0, _ := ret[0].(*glue.DeleteCrawlerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteCrawlerWithContext indicates an expected call of DeleteCrawlerWithContext. +func (mr *MockGlueAPIMockRecorder) DeleteCrawlerWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCrawlerWithContext", reflect.TypeOf((*MockGlueAPI)(nil).DeleteCrawlerWithContext), varargs...) +} + +// DeleteCustomEntityType mocks base method. +func (m *MockGlueAPI) DeleteCustomEntityType(arg0 *glue.DeleteCustomEntityTypeInput) (*glue.DeleteCustomEntityTypeOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteCustomEntityType", arg0) + ret0, _ := ret[0].(*glue.DeleteCustomEntityTypeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteCustomEntityType indicates an expected call of DeleteCustomEntityType. +func (mr *MockGlueAPIMockRecorder) DeleteCustomEntityType(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCustomEntityType", reflect.TypeOf((*MockGlueAPI)(nil).DeleteCustomEntityType), arg0) +} + +// DeleteCustomEntityTypeRequest mocks base method. +func (m *MockGlueAPI) DeleteCustomEntityTypeRequest(arg0 *glue.DeleteCustomEntityTypeInput) (*request.Request, *glue.DeleteCustomEntityTypeOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteCustomEntityTypeRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.DeleteCustomEntityTypeOutput) + return ret0, ret1 +} + +// DeleteCustomEntityTypeRequest indicates an expected call of DeleteCustomEntityTypeRequest. +func (mr *MockGlueAPIMockRecorder) DeleteCustomEntityTypeRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCustomEntityTypeRequest", reflect.TypeOf((*MockGlueAPI)(nil).DeleteCustomEntityTypeRequest), arg0) +} + +// DeleteCustomEntityTypeWithContext mocks base method. +func (m *MockGlueAPI) DeleteCustomEntityTypeWithContext(arg0 aws.Context, arg1 *glue.DeleteCustomEntityTypeInput, arg2 ...request.Option) (*glue.DeleteCustomEntityTypeOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteCustomEntityTypeWithContext", varargs...) + ret0, _ := ret[0].(*glue.DeleteCustomEntityTypeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteCustomEntityTypeWithContext indicates an expected call of DeleteCustomEntityTypeWithContext. +func (mr *MockGlueAPIMockRecorder) DeleteCustomEntityTypeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCustomEntityTypeWithContext", reflect.TypeOf((*MockGlueAPI)(nil).DeleteCustomEntityTypeWithContext), varargs...) +} + +// DeleteDataQualityRuleset mocks base method. +func (m *MockGlueAPI) DeleteDataQualityRuleset(arg0 *glue.DeleteDataQualityRulesetInput) (*glue.DeleteDataQualityRulesetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteDataQualityRuleset", arg0) + ret0, _ := ret[0].(*glue.DeleteDataQualityRulesetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteDataQualityRuleset indicates an expected call of DeleteDataQualityRuleset. +func (mr *MockGlueAPIMockRecorder) DeleteDataQualityRuleset(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDataQualityRuleset", reflect.TypeOf((*MockGlueAPI)(nil).DeleteDataQualityRuleset), arg0) +} + +// DeleteDataQualityRulesetRequest mocks base method. +func (m *MockGlueAPI) DeleteDataQualityRulesetRequest(arg0 *glue.DeleteDataQualityRulesetInput) (*request.Request, *glue.DeleteDataQualityRulesetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteDataQualityRulesetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.DeleteDataQualityRulesetOutput) + return ret0, ret1 +} + +// DeleteDataQualityRulesetRequest indicates an expected call of DeleteDataQualityRulesetRequest. +func (mr *MockGlueAPIMockRecorder) DeleteDataQualityRulesetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDataQualityRulesetRequest", reflect.TypeOf((*MockGlueAPI)(nil).DeleteDataQualityRulesetRequest), arg0) +} + +// DeleteDataQualityRulesetWithContext mocks base method. +func (m *MockGlueAPI) DeleteDataQualityRulesetWithContext(arg0 aws.Context, arg1 *glue.DeleteDataQualityRulesetInput, arg2 ...request.Option) (*glue.DeleteDataQualityRulesetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteDataQualityRulesetWithContext", varargs...) + ret0, _ := ret[0].(*glue.DeleteDataQualityRulesetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteDataQualityRulesetWithContext indicates an expected call of DeleteDataQualityRulesetWithContext. +func (mr *MockGlueAPIMockRecorder) DeleteDataQualityRulesetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDataQualityRulesetWithContext", reflect.TypeOf((*MockGlueAPI)(nil).DeleteDataQualityRulesetWithContext), varargs...) +} + +// DeleteDatabase mocks base method. +func (m *MockGlueAPI) DeleteDatabase(arg0 *glue.DeleteDatabaseInput) (*glue.DeleteDatabaseOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteDatabase", arg0) + ret0, _ := ret[0].(*glue.DeleteDatabaseOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteDatabase indicates an expected call of DeleteDatabase. +func (mr *MockGlueAPIMockRecorder) DeleteDatabase(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDatabase", reflect.TypeOf((*MockGlueAPI)(nil).DeleteDatabase), arg0) +} + +// DeleteDatabaseRequest mocks base method. +func (m *MockGlueAPI) DeleteDatabaseRequest(arg0 *glue.DeleteDatabaseInput) (*request.Request, *glue.DeleteDatabaseOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteDatabaseRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.DeleteDatabaseOutput) + return ret0, ret1 +} + +// DeleteDatabaseRequest indicates an expected call of DeleteDatabaseRequest. +func (mr *MockGlueAPIMockRecorder) DeleteDatabaseRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDatabaseRequest", reflect.TypeOf((*MockGlueAPI)(nil).DeleteDatabaseRequest), arg0) +} + +// DeleteDatabaseWithContext mocks base method. +func (m *MockGlueAPI) DeleteDatabaseWithContext(arg0 aws.Context, arg1 *glue.DeleteDatabaseInput, arg2 ...request.Option) (*glue.DeleteDatabaseOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteDatabaseWithContext", varargs...) + ret0, _ := ret[0].(*glue.DeleteDatabaseOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteDatabaseWithContext indicates an expected call of DeleteDatabaseWithContext. +func (mr *MockGlueAPIMockRecorder) DeleteDatabaseWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDatabaseWithContext", reflect.TypeOf((*MockGlueAPI)(nil).DeleteDatabaseWithContext), varargs...) +} + +// DeleteDevEndpoint mocks base method. +func (m *MockGlueAPI) DeleteDevEndpoint(arg0 *glue.DeleteDevEndpointInput) (*glue.DeleteDevEndpointOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteDevEndpoint", arg0) + ret0, _ := ret[0].(*glue.DeleteDevEndpointOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteDevEndpoint indicates an expected call of DeleteDevEndpoint. +func (mr *MockGlueAPIMockRecorder) DeleteDevEndpoint(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDevEndpoint", reflect.TypeOf((*MockGlueAPI)(nil).DeleteDevEndpoint), arg0) +} + +// DeleteDevEndpointRequest mocks base method. +func (m *MockGlueAPI) DeleteDevEndpointRequest(arg0 *glue.DeleteDevEndpointInput) (*request.Request, *glue.DeleteDevEndpointOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteDevEndpointRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.DeleteDevEndpointOutput) + return ret0, ret1 +} + +// DeleteDevEndpointRequest indicates an expected call of DeleteDevEndpointRequest. +func (mr *MockGlueAPIMockRecorder) DeleteDevEndpointRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDevEndpointRequest", reflect.TypeOf((*MockGlueAPI)(nil).DeleteDevEndpointRequest), arg0) +} + +// DeleteDevEndpointWithContext mocks base method. +func (m *MockGlueAPI) DeleteDevEndpointWithContext(arg0 aws.Context, arg1 *glue.DeleteDevEndpointInput, arg2 ...request.Option) (*glue.DeleteDevEndpointOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteDevEndpointWithContext", varargs...) + ret0, _ := ret[0].(*glue.DeleteDevEndpointOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteDevEndpointWithContext indicates an expected call of DeleteDevEndpointWithContext. +func (mr *MockGlueAPIMockRecorder) DeleteDevEndpointWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDevEndpointWithContext", reflect.TypeOf((*MockGlueAPI)(nil).DeleteDevEndpointWithContext), varargs...) +} + +// DeleteJob mocks base method. +func (m *MockGlueAPI) DeleteJob(arg0 *glue.DeleteJobInput) (*glue.DeleteJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteJob", arg0) + ret0, _ := ret[0].(*glue.DeleteJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteJob indicates an expected call of DeleteJob. +func (mr *MockGlueAPIMockRecorder) DeleteJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteJob", reflect.TypeOf((*MockGlueAPI)(nil).DeleteJob), arg0) +} + +// DeleteJobRequest mocks base method. +func (m *MockGlueAPI) DeleteJobRequest(arg0 *glue.DeleteJobInput) (*request.Request, *glue.DeleteJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.DeleteJobOutput) + return ret0, ret1 +} + +// DeleteJobRequest indicates an expected call of DeleteJobRequest. +func (mr *MockGlueAPIMockRecorder) DeleteJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteJobRequest", reflect.TypeOf((*MockGlueAPI)(nil).DeleteJobRequest), arg0) +} + +// DeleteJobWithContext mocks base method. +func (m *MockGlueAPI) DeleteJobWithContext(arg0 aws.Context, arg1 *glue.DeleteJobInput, arg2 ...request.Option) (*glue.DeleteJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteJobWithContext", varargs...) + ret0, _ := ret[0].(*glue.DeleteJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteJobWithContext indicates an expected call of DeleteJobWithContext. +func (mr *MockGlueAPIMockRecorder) DeleteJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteJobWithContext", reflect.TypeOf((*MockGlueAPI)(nil).DeleteJobWithContext), varargs...) +} + +// DeleteMLTransform mocks base method. +func (m *MockGlueAPI) DeleteMLTransform(arg0 *glue.DeleteMLTransformInput) (*glue.DeleteMLTransformOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteMLTransform", arg0) + ret0, _ := ret[0].(*glue.DeleteMLTransformOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteMLTransform indicates an expected call of DeleteMLTransform. +func (mr *MockGlueAPIMockRecorder) DeleteMLTransform(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMLTransform", reflect.TypeOf((*MockGlueAPI)(nil).DeleteMLTransform), arg0) +} + +// DeleteMLTransformRequest mocks base method. +func (m *MockGlueAPI) DeleteMLTransformRequest(arg0 *glue.DeleteMLTransformInput) (*request.Request, *glue.DeleteMLTransformOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteMLTransformRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.DeleteMLTransformOutput) + return ret0, ret1 +} + +// DeleteMLTransformRequest indicates an expected call of DeleteMLTransformRequest. +func (mr *MockGlueAPIMockRecorder) DeleteMLTransformRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMLTransformRequest", reflect.TypeOf((*MockGlueAPI)(nil).DeleteMLTransformRequest), arg0) +} + +// DeleteMLTransformWithContext mocks base method. +func (m *MockGlueAPI) DeleteMLTransformWithContext(arg0 aws.Context, arg1 *glue.DeleteMLTransformInput, arg2 ...request.Option) (*glue.DeleteMLTransformOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteMLTransformWithContext", varargs...) + ret0, _ := ret[0].(*glue.DeleteMLTransformOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteMLTransformWithContext indicates an expected call of DeleteMLTransformWithContext. +func (mr *MockGlueAPIMockRecorder) DeleteMLTransformWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMLTransformWithContext", reflect.TypeOf((*MockGlueAPI)(nil).DeleteMLTransformWithContext), varargs...) +} + +// DeletePartition mocks base method. +func (m *MockGlueAPI) DeletePartition(arg0 *glue.DeletePartitionInput) (*glue.DeletePartitionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeletePartition", arg0) + ret0, _ := ret[0].(*glue.DeletePartitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeletePartition indicates an expected call of DeletePartition. +func (mr *MockGlueAPIMockRecorder) DeletePartition(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePartition", reflect.TypeOf((*MockGlueAPI)(nil).DeletePartition), arg0) +} + +// DeletePartitionIndex mocks base method. +func (m *MockGlueAPI) DeletePartitionIndex(arg0 *glue.DeletePartitionIndexInput) (*glue.DeletePartitionIndexOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeletePartitionIndex", arg0) + ret0, _ := ret[0].(*glue.DeletePartitionIndexOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeletePartitionIndex indicates an expected call of DeletePartitionIndex. +func (mr *MockGlueAPIMockRecorder) DeletePartitionIndex(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePartitionIndex", reflect.TypeOf((*MockGlueAPI)(nil).DeletePartitionIndex), arg0) +} + +// DeletePartitionIndexRequest mocks base method. +func (m *MockGlueAPI) DeletePartitionIndexRequest(arg0 *glue.DeletePartitionIndexInput) (*request.Request, *glue.DeletePartitionIndexOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeletePartitionIndexRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.DeletePartitionIndexOutput) + return ret0, ret1 +} + +// DeletePartitionIndexRequest indicates an expected call of DeletePartitionIndexRequest. +func (mr *MockGlueAPIMockRecorder) DeletePartitionIndexRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePartitionIndexRequest", reflect.TypeOf((*MockGlueAPI)(nil).DeletePartitionIndexRequest), arg0) +} + +// DeletePartitionIndexWithContext mocks base method. +func (m *MockGlueAPI) DeletePartitionIndexWithContext(arg0 aws.Context, arg1 *glue.DeletePartitionIndexInput, arg2 ...request.Option) (*glue.DeletePartitionIndexOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeletePartitionIndexWithContext", varargs...) + ret0, _ := ret[0].(*glue.DeletePartitionIndexOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeletePartitionIndexWithContext indicates an expected call of DeletePartitionIndexWithContext. +func (mr *MockGlueAPIMockRecorder) DeletePartitionIndexWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePartitionIndexWithContext", reflect.TypeOf((*MockGlueAPI)(nil).DeletePartitionIndexWithContext), varargs...) +} + +// DeletePartitionRequest mocks base method. +func (m *MockGlueAPI) DeletePartitionRequest(arg0 *glue.DeletePartitionInput) (*request.Request, *glue.DeletePartitionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeletePartitionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.DeletePartitionOutput) + return ret0, ret1 +} + +// DeletePartitionRequest indicates an expected call of DeletePartitionRequest. +func (mr *MockGlueAPIMockRecorder) DeletePartitionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePartitionRequest", reflect.TypeOf((*MockGlueAPI)(nil).DeletePartitionRequest), arg0) +} + +// DeletePartitionWithContext mocks base method. +func (m *MockGlueAPI) DeletePartitionWithContext(arg0 aws.Context, arg1 *glue.DeletePartitionInput, arg2 ...request.Option) (*glue.DeletePartitionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeletePartitionWithContext", varargs...) + ret0, _ := ret[0].(*glue.DeletePartitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeletePartitionWithContext indicates an expected call of DeletePartitionWithContext. +func (mr *MockGlueAPIMockRecorder) DeletePartitionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePartitionWithContext", reflect.TypeOf((*MockGlueAPI)(nil).DeletePartitionWithContext), varargs...) +} + +// DeleteRegistry mocks base method. +func (m *MockGlueAPI) DeleteRegistry(arg0 *glue.DeleteRegistryInput) (*glue.DeleteRegistryOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteRegistry", arg0) + ret0, _ := ret[0].(*glue.DeleteRegistryOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteRegistry indicates an expected call of DeleteRegistry. +func (mr *MockGlueAPIMockRecorder) DeleteRegistry(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRegistry", reflect.TypeOf((*MockGlueAPI)(nil).DeleteRegistry), arg0) +} + +// DeleteRegistryRequest mocks base method. +func (m *MockGlueAPI) DeleteRegistryRequest(arg0 *glue.DeleteRegistryInput) (*request.Request, *glue.DeleteRegistryOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteRegistryRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.DeleteRegistryOutput) + return ret0, ret1 +} + +// DeleteRegistryRequest indicates an expected call of DeleteRegistryRequest. +func (mr *MockGlueAPIMockRecorder) DeleteRegistryRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRegistryRequest", reflect.TypeOf((*MockGlueAPI)(nil).DeleteRegistryRequest), arg0) +} + +// DeleteRegistryWithContext mocks base method. +func (m *MockGlueAPI) DeleteRegistryWithContext(arg0 aws.Context, arg1 *glue.DeleteRegistryInput, arg2 ...request.Option) (*glue.DeleteRegistryOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteRegistryWithContext", varargs...) + ret0, _ := ret[0].(*glue.DeleteRegistryOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteRegistryWithContext indicates an expected call of DeleteRegistryWithContext. +func (mr *MockGlueAPIMockRecorder) DeleteRegistryWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRegistryWithContext", reflect.TypeOf((*MockGlueAPI)(nil).DeleteRegistryWithContext), varargs...) +} + +// DeleteResourcePolicy mocks base method. +func (m *MockGlueAPI) DeleteResourcePolicy(arg0 *glue.DeleteResourcePolicyInput) (*glue.DeleteResourcePolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteResourcePolicy", arg0) + ret0, _ := ret[0].(*glue.DeleteResourcePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteResourcePolicy indicates an expected call of DeleteResourcePolicy. +func (mr *MockGlueAPIMockRecorder) DeleteResourcePolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteResourcePolicy", reflect.TypeOf((*MockGlueAPI)(nil).DeleteResourcePolicy), arg0) +} + +// DeleteResourcePolicyRequest mocks base method. +func (m *MockGlueAPI) DeleteResourcePolicyRequest(arg0 *glue.DeleteResourcePolicyInput) (*request.Request, *glue.DeleteResourcePolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteResourcePolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.DeleteResourcePolicyOutput) + return ret0, ret1 +} + +// DeleteResourcePolicyRequest indicates an expected call of DeleteResourcePolicyRequest. +func (mr *MockGlueAPIMockRecorder) DeleteResourcePolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteResourcePolicyRequest", reflect.TypeOf((*MockGlueAPI)(nil).DeleteResourcePolicyRequest), arg0) +} + +// DeleteResourcePolicyWithContext mocks base method. +func (m *MockGlueAPI) DeleteResourcePolicyWithContext(arg0 aws.Context, arg1 *glue.DeleteResourcePolicyInput, arg2 ...request.Option) (*glue.DeleteResourcePolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteResourcePolicyWithContext", varargs...) + ret0, _ := ret[0].(*glue.DeleteResourcePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteResourcePolicyWithContext indicates an expected call of DeleteResourcePolicyWithContext. +func (mr *MockGlueAPIMockRecorder) DeleteResourcePolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteResourcePolicyWithContext", reflect.TypeOf((*MockGlueAPI)(nil).DeleteResourcePolicyWithContext), varargs...) +} + +// DeleteSchema mocks base method. +func (m *MockGlueAPI) DeleteSchema(arg0 *glue.DeleteSchemaInput) (*glue.DeleteSchemaOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteSchema", arg0) + ret0, _ := ret[0].(*glue.DeleteSchemaOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteSchema indicates an expected call of DeleteSchema. +func (mr *MockGlueAPIMockRecorder) DeleteSchema(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSchema", reflect.TypeOf((*MockGlueAPI)(nil).DeleteSchema), arg0) +} + +// DeleteSchemaRequest mocks base method. +func (m *MockGlueAPI) DeleteSchemaRequest(arg0 *glue.DeleteSchemaInput) (*request.Request, *glue.DeleteSchemaOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteSchemaRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.DeleteSchemaOutput) + return ret0, ret1 +} + +// DeleteSchemaRequest indicates an expected call of DeleteSchemaRequest. +func (mr *MockGlueAPIMockRecorder) DeleteSchemaRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSchemaRequest", reflect.TypeOf((*MockGlueAPI)(nil).DeleteSchemaRequest), arg0) +} + +// DeleteSchemaVersions mocks base method. +func (m *MockGlueAPI) DeleteSchemaVersions(arg0 *glue.DeleteSchemaVersionsInput) (*glue.DeleteSchemaVersionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteSchemaVersions", arg0) + ret0, _ := ret[0].(*glue.DeleteSchemaVersionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteSchemaVersions indicates an expected call of DeleteSchemaVersions. +func (mr *MockGlueAPIMockRecorder) DeleteSchemaVersions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSchemaVersions", reflect.TypeOf((*MockGlueAPI)(nil).DeleteSchemaVersions), arg0) +} + +// DeleteSchemaVersionsRequest mocks base method. +func (m *MockGlueAPI) DeleteSchemaVersionsRequest(arg0 *glue.DeleteSchemaVersionsInput) (*request.Request, *glue.DeleteSchemaVersionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteSchemaVersionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.DeleteSchemaVersionsOutput) + return ret0, ret1 +} + +// DeleteSchemaVersionsRequest indicates an expected call of DeleteSchemaVersionsRequest. +func (mr *MockGlueAPIMockRecorder) DeleteSchemaVersionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSchemaVersionsRequest", reflect.TypeOf((*MockGlueAPI)(nil).DeleteSchemaVersionsRequest), arg0) +} + +// DeleteSchemaVersionsWithContext mocks base method. +func (m *MockGlueAPI) DeleteSchemaVersionsWithContext(arg0 aws.Context, arg1 *glue.DeleteSchemaVersionsInput, arg2 ...request.Option) (*glue.DeleteSchemaVersionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteSchemaVersionsWithContext", varargs...) + ret0, _ := ret[0].(*glue.DeleteSchemaVersionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteSchemaVersionsWithContext indicates an expected call of DeleteSchemaVersionsWithContext. +func (mr *MockGlueAPIMockRecorder) DeleteSchemaVersionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSchemaVersionsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).DeleteSchemaVersionsWithContext), varargs...) +} + +// DeleteSchemaWithContext mocks base method. +func (m *MockGlueAPI) DeleteSchemaWithContext(arg0 aws.Context, arg1 *glue.DeleteSchemaInput, arg2 ...request.Option) (*glue.DeleteSchemaOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteSchemaWithContext", varargs...) + ret0, _ := ret[0].(*glue.DeleteSchemaOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteSchemaWithContext indicates an expected call of DeleteSchemaWithContext. +func (mr *MockGlueAPIMockRecorder) DeleteSchemaWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSchemaWithContext", reflect.TypeOf((*MockGlueAPI)(nil).DeleteSchemaWithContext), varargs...) +} + +// DeleteSecurityConfiguration mocks base method. +func (m *MockGlueAPI) DeleteSecurityConfiguration(arg0 *glue.DeleteSecurityConfigurationInput) (*glue.DeleteSecurityConfigurationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteSecurityConfiguration", arg0) + ret0, _ := ret[0].(*glue.DeleteSecurityConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteSecurityConfiguration indicates an expected call of DeleteSecurityConfiguration. +func (mr *MockGlueAPIMockRecorder) DeleteSecurityConfiguration(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSecurityConfiguration", reflect.TypeOf((*MockGlueAPI)(nil).DeleteSecurityConfiguration), arg0) +} + +// DeleteSecurityConfigurationRequest mocks base method. +func (m *MockGlueAPI) DeleteSecurityConfigurationRequest(arg0 *glue.DeleteSecurityConfigurationInput) (*request.Request, *glue.DeleteSecurityConfigurationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteSecurityConfigurationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.DeleteSecurityConfigurationOutput) + return ret0, ret1 +} + +// DeleteSecurityConfigurationRequest indicates an expected call of DeleteSecurityConfigurationRequest. +func (mr *MockGlueAPIMockRecorder) DeleteSecurityConfigurationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSecurityConfigurationRequest", reflect.TypeOf((*MockGlueAPI)(nil).DeleteSecurityConfigurationRequest), arg0) +} + +// DeleteSecurityConfigurationWithContext mocks base method. +func (m *MockGlueAPI) DeleteSecurityConfigurationWithContext(arg0 aws.Context, arg1 *glue.DeleteSecurityConfigurationInput, arg2 ...request.Option) (*glue.DeleteSecurityConfigurationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteSecurityConfigurationWithContext", varargs...) + ret0, _ := ret[0].(*glue.DeleteSecurityConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteSecurityConfigurationWithContext indicates an expected call of DeleteSecurityConfigurationWithContext. +func (mr *MockGlueAPIMockRecorder) DeleteSecurityConfigurationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSecurityConfigurationWithContext", reflect.TypeOf((*MockGlueAPI)(nil).DeleteSecurityConfigurationWithContext), varargs...) +} + +// DeleteSession mocks base method. +func (m *MockGlueAPI) DeleteSession(arg0 *glue.DeleteSessionInput) (*glue.DeleteSessionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteSession", arg0) + ret0, _ := ret[0].(*glue.DeleteSessionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteSession indicates an expected call of DeleteSession. +func (mr *MockGlueAPIMockRecorder) DeleteSession(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSession", reflect.TypeOf((*MockGlueAPI)(nil).DeleteSession), arg0) +} + +// DeleteSessionRequest mocks base method. +func (m *MockGlueAPI) DeleteSessionRequest(arg0 *glue.DeleteSessionInput) (*request.Request, *glue.DeleteSessionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteSessionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.DeleteSessionOutput) + return ret0, ret1 +} + +// DeleteSessionRequest indicates an expected call of DeleteSessionRequest. +func (mr *MockGlueAPIMockRecorder) DeleteSessionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSessionRequest", reflect.TypeOf((*MockGlueAPI)(nil).DeleteSessionRequest), arg0) +} + +// DeleteSessionWithContext mocks base method. +func (m *MockGlueAPI) DeleteSessionWithContext(arg0 aws.Context, arg1 *glue.DeleteSessionInput, arg2 ...request.Option) (*glue.DeleteSessionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteSessionWithContext", varargs...) + ret0, _ := ret[0].(*glue.DeleteSessionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteSessionWithContext indicates an expected call of DeleteSessionWithContext. +func (mr *MockGlueAPIMockRecorder) DeleteSessionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSessionWithContext", reflect.TypeOf((*MockGlueAPI)(nil).DeleteSessionWithContext), varargs...) +} + +// DeleteTable mocks base method. +func (m *MockGlueAPI) DeleteTable(arg0 *glue.DeleteTableInput) (*glue.DeleteTableOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTable", arg0) + ret0, _ := ret[0].(*glue.DeleteTableOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTable indicates an expected call of DeleteTable. +func (mr *MockGlueAPIMockRecorder) DeleteTable(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTable", reflect.TypeOf((*MockGlueAPI)(nil).DeleteTable), arg0) +} + +// DeleteTableOptimizer mocks base method. +func (m *MockGlueAPI) DeleteTableOptimizer(arg0 *glue.DeleteTableOptimizerInput) (*glue.DeleteTableOptimizerOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTableOptimizer", arg0) + ret0, _ := ret[0].(*glue.DeleteTableOptimizerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTableOptimizer indicates an expected call of DeleteTableOptimizer. +func (mr *MockGlueAPIMockRecorder) DeleteTableOptimizer(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTableOptimizer", reflect.TypeOf((*MockGlueAPI)(nil).DeleteTableOptimizer), arg0) +} + +// DeleteTableOptimizerRequest mocks base method. +func (m *MockGlueAPI) DeleteTableOptimizerRequest(arg0 *glue.DeleteTableOptimizerInput) (*request.Request, *glue.DeleteTableOptimizerOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTableOptimizerRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.DeleteTableOptimizerOutput) + return ret0, ret1 +} + +// DeleteTableOptimizerRequest indicates an expected call of DeleteTableOptimizerRequest. +func (mr *MockGlueAPIMockRecorder) DeleteTableOptimizerRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTableOptimizerRequest", reflect.TypeOf((*MockGlueAPI)(nil).DeleteTableOptimizerRequest), arg0) +} + +// DeleteTableOptimizerWithContext mocks base method. +func (m *MockGlueAPI) DeleteTableOptimizerWithContext(arg0 aws.Context, arg1 *glue.DeleteTableOptimizerInput, arg2 ...request.Option) (*glue.DeleteTableOptimizerOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteTableOptimizerWithContext", varargs...) + ret0, _ := ret[0].(*glue.DeleteTableOptimizerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTableOptimizerWithContext indicates an expected call of DeleteTableOptimizerWithContext. +func (mr *MockGlueAPIMockRecorder) DeleteTableOptimizerWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTableOptimizerWithContext", reflect.TypeOf((*MockGlueAPI)(nil).DeleteTableOptimizerWithContext), varargs...) +} + +// DeleteTableRequest mocks base method. +func (m *MockGlueAPI) DeleteTableRequest(arg0 *glue.DeleteTableInput) (*request.Request, *glue.DeleteTableOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTableRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.DeleteTableOutput) + return ret0, ret1 +} + +// DeleteTableRequest indicates an expected call of DeleteTableRequest. +func (mr *MockGlueAPIMockRecorder) DeleteTableRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTableRequest", reflect.TypeOf((*MockGlueAPI)(nil).DeleteTableRequest), arg0) +} + +// DeleteTableVersion mocks base method. +func (m *MockGlueAPI) DeleteTableVersion(arg0 *glue.DeleteTableVersionInput) (*glue.DeleteTableVersionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTableVersion", arg0) + ret0, _ := ret[0].(*glue.DeleteTableVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTableVersion indicates an expected call of DeleteTableVersion. +func (mr *MockGlueAPIMockRecorder) DeleteTableVersion(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTableVersion", reflect.TypeOf((*MockGlueAPI)(nil).DeleteTableVersion), arg0) +} + +// DeleteTableVersionRequest mocks base method. +func (m *MockGlueAPI) DeleteTableVersionRequest(arg0 *glue.DeleteTableVersionInput) (*request.Request, *glue.DeleteTableVersionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTableVersionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.DeleteTableVersionOutput) + return ret0, ret1 +} + +// DeleteTableVersionRequest indicates an expected call of DeleteTableVersionRequest. +func (mr *MockGlueAPIMockRecorder) DeleteTableVersionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTableVersionRequest", reflect.TypeOf((*MockGlueAPI)(nil).DeleteTableVersionRequest), arg0) +} + +// DeleteTableVersionWithContext mocks base method. +func (m *MockGlueAPI) DeleteTableVersionWithContext(arg0 aws.Context, arg1 *glue.DeleteTableVersionInput, arg2 ...request.Option) (*glue.DeleteTableVersionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteTableVersionWithContext", varargs...) + ret0, _ := ret[0].(*glue.DeleteTableVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTableVersionWithContext indicates an expected call of DeleteTableVersionWithContext. +func (mr *MockGlueAPIMockRecorder) DeleteTableVersionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTableVersionWithContext", reflect.TypeOf((*MockGlueAPI)(nil).DeleteTableVersionWithContext), varargs...) +} + +// DeleteTableWithContext mocks base method. +func (m *MockGlueAPI) DeleteTableWithContext(arg0 aws.Context, arg1 *glue.DeleteTableInput, arg2 ...request.Option) (*glue.DeleteTableOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteTableWithContext", varargs...) + ret0, _ := ret[0].(*glue.DeleteTableOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTableWithContext indicates an expected call of DeleteTableWithContext. +func (mr *MockGlueAPIMockRecorder) DeleteTableWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTableWithContext", reflect.TypeOf((*MockGlueAPI)(nil).DeleteTableWithContext), varargs...) +} + +// DeleteTrigger mocks base method. +func (m *MockGlueAPI) DeleteTrigger(arg0 *glue.DeleteTriggerInput) (*glue.DeleteTriggerOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTrigger", arg0) + ret0, _ := ret[0].(*glue.DeleteTriggerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTrigger indicates an expected call of DeleteTrigger. +func (mr *MockGlueAPIMockRecorder) DeleteTrigger(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTrigger", reflect.TypeOf((*MockGlueAPI)(nil).DeleteTrigger), arg0) +} + +// DeleteTriggerRequest mocks base method. +func (m *MockGlueAPI) DeleteTriggerRequest(arg0 *glue.DeleteTriggerInput) (*request.Request, *glue.DeleteTriggerOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTriggerRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.DeleteTriggerOutput) + return ret0, ret1 +} + +// DeleteTriggerRequest indicates an expected call of DeleteTriggerRequest. +func (mr *MockGlueAPIMockRecorder) DeleteTriggerRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTriggerRequest", reflect.TypeOf((*MockGlueAPI)(nil).DeleteTriggerRequest), arg0) +} + +// DeleteTriggerWithContext mocks base method. +func (m *MockGlueAPI) DeleteTriggerWithContext(arg0 aws.Context, arg1 *glue.DeleteTriggerInput, arg2 ...request.Option) (*glue.DeleteTriggerOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteTriggerWithContext", varargs...) + ret0, _ := ret[0].(*glue.DeleteTriggerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTriggerWithContext indicates an expected call of DeleteTriggerWithContext. +func (mr *MockGlueAPIMockRecorder) DeleteTriggerWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTriggerWithContext", reflect.TypeOf((*MockGlueAPI)(nil).DeleteTriggerWithContext), varargs...) +} + +// DeleteUserDefinedFunction mocks base method. +func (m *MockGlueAPI) DeleteUserDefinedFunction(arg0 *glue.DeleteUserDefinedFunctionInput) (*glue.DeleteUserDefinedFunctionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteUserDefinedFunction", arg0) + ret0, _ := ret[0].(*glue.DeleteUserDefinedFunctionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteUserDefinedFunction indicates an expected call of DeleteUserDefinedFunction. +func (mr *MockGlueAPIMockRecorder) DeleteUserDefinedFunction(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserDefinedFunction", reflect.TypeOf((*MockGlueAPI)(nil).DeleteUserDefinedFunction), arg0) +} + +// DeleteUserDefinedFunctionRequest mocks base method. +func (m *MockGlueAPI) DeleteUserDefinedFunctionRequest(arg0 *glue.DeleteUserDefinedFunctionInput) (*request.Request, *glue.DeleteUserDefinedFunctionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteUserDefinedFunctionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.DeleteUserDefinedFunctionOutput) + return ret0, ret1 +} + +// DeleteUserDefinedFunctionRequest indicates an expected call of DeleteUserDefinedFunctionRequest. +func (mr *MockGlueAPIMockRecorder) DeleteUserDefinedFunctionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserDefinedFunctionRequest", reflect.TypeOf((*MockGlueAPI)(nil).DeleteUserDefinedFunctionRequest), arg0) +} + +// DeleteUserDefinedFunctionWithContext mocks base method. +func (m *MockGlueAPI) DeleteUserDefinedFunctionWithContext(arg0 aws.Context, arg1 *glue.DeleteUserDefinedFunctionInput, arg2 ...request.Option) (*glue.DeleteUserDefinedFunctionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteUserDefinedFunctionWithContext", varargs...) + ret0, _ := ret[0].(*glue.DeleteUserDefinedFunctionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteUserDefinedFunctionWithContext indicates an expected call of DeleteUserDefinedFunctionWithContext. +func (mr *MockGlueAPIMockRecorder) DeleteUserDefinedFunctionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserDefinedFunctionWithContext", reflect.TypeOf((*MockGlueAPI)(nil).DeleteUserDefinedFunctionWithContext), varargs...) +} + +// DeleteWorkflow mocks base method. +func (m *MockGlueAPI) DeleteWorkflow(arg0 *glue.DeleteWorkflowInput) (*glue.DeleteWorkflowOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteWorkflow", arg0) + ret0, _ := ret[0].(*glue.DeleteWorkflowOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteWorkflow indicates an expected call of DeleteWorkflow. +func (mr *MockGlueAPIMockRecorder) DeleteWorkflow(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteWorkflow", reflect.TypeOf((*MockGlueAPI)(nil).DeleteWorkflow), arg0) +} + +// DeleteWorkflowRequest mocks base method. +func (m *MockGlueAPI) DeleteWorkflowRequest(arg0 *glue.DeleteWorkflowInput) (*request.Request, *glue.DeleteWorkflowOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteWorkflowRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.DeleteWorkflowOutput) + return ret0, ret1 +} + +// DeleteWorkflowRequest indicates an expected call of DeleteWorkflowRequest. +func (mr *MockGlueAPIMockRecorder) DeleteWorkflowRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteWorkflowRequest", reflect.TypeOf((*MockGlueAPI)(nil).DeleteWorkflowRequest), arg0) +} + +// DeleteWorkflowWithContext mocks base method. +func (m *MockGlueAPI) DeleteWorkflowWithContext(arg0 aws.Context, arg1 *glue.DeleteWorkflowInput, arg2 ...request.Option) (*glue.DeleteWorkflowOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteWorkflowWithContext", varargs...) + ret0, _ := ret[0].(*glue.DeleteWorkflowOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteWorkflowWithContext indicates an expected call of DeleteWorkflowWithContext. +func (mr *MockGlueAPIMockRecorder) DeleteWorkflowWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteWorkflowWithContext", reflect.TypeOf((*MockGlueAPI)(nil).DeleteWorkflowWithContext), varargs...) +} + +// GetBlueprint mocks base method. +func (m *MockGlueAPI) GetBlueprint(arg0 *glue.GetBlueprintInput) (*glue.GetBlueprintOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetBlueprint", arg0) + ret0, _ := ret[0].(*glue.GetBlueprintOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetBlueprint indicates an expected call of GetBlueprint. +func (mr *MockGlueAPIMockRecorder) GetBlueprint(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlueprint", reflect.TypeOf((*MockGlueAPI)(nil).GetBlueprint), arg0) +} + +// GetBlueprintRequest mocks base method. +func (m *MockGlueAPI) GetBlueprintRequest(arg0 *glue.GetBlueprintInput) (*request.Request, *glue.GetBlueprintOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetBlueprintRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetBlueprintOutput) + return ret0, ret1 +} + +// GetBlueprintRequest indicates an expected call of GetBlueprintRequest. +func (mr *MockGlueAPIMockRecorder) GetBlueprintRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlueprintRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetBlueprintRequest), arg0) +} + +// GetBlueprintRun mocks base method. +func (m *MockGlueAPI) GetBlueprintRun(arg0 *glue.GetBlueprintRunInput) (*glue.GetBlueprintRunOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetBlueprintRun", arg0) + ret0, _ := ret[0].(*glue.GetBlueprintRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetBlueprintRun indicates an expected call of GetBlueprintRun. +func (mr *MockGlueAPIMockRecorder) GetBlueprintRun(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlueprintRun", reflect.TypeOf((*MockGlueAPI)(nil).GetBlueprintRun), arg0) +} + +// GetBlueprintRunRequest mocks base method. +func (m *MockGlueAPI) GetBlueprintRunRequest(arg0 *glue.GetBlueprintRunInput) (*request.Request, *glue.GetBlueprintRunOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetBlueprintRunRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetBlueprintRunOutput) + return ret0, ret1 +} + +// GetBlueprintRunRequest indicates an expected call of GetBlueprintRunRequest. +func (mr *MockGlueAPIMockRecorder) GetBlueprintRunRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlueprintRunRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetBlueprintRunRequest), arg0) +} + +// GetBlueprintRunWithContext mocks base method. +func (m *MockGlueAPI) GetBlueprintRunWithContext(arg0 aws.Context, arg1 *glue.GetBlueprintRunInput, arg2 ...request.Option) (*glue.GetBlueprintRunOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetBlueprintRunWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetBlueprintRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetBlueprintRunWithContext indicates an expected call of GetBlueprintRunWithContext. +func (mr *MockGlueAPIMockRecorder) GetBlueprintRunWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlueprintRunWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetBlueprintRunWithContext), varargs...) +} + +// GetBlueprintRuns mocks base method. +func (m *MockGlueAPI) GetBlueprintRuns(arg0 *glue.GetBlueprintRunsInput) (*glue.GetBlueprintRunsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetBlueprintRuns", arg0) + ret0, _ := ret[0].(*glue.GetBlueprintRunsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetBlueprintRuns indicates an expected call of GetBlueprintRuns. +func (mr *MockGlueAPIMockRecorder) GetBlueprintRuns(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlueprintRuns", reflect.TypeOf((*MockGlueAPI)(nil).GetBlueprintRuns), arg0) +} + +// GetBlueprintRunsPages mocks base method. +func (m *MockGlueAPI) GetBlueprintRunsPages(arg0 *glue.GetBlueprintRunsInput, arg1 func(*glue.GetBlueprintRunsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetBlueprintRunsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetBlueprintRunsPages indicates an expected call of GetBlueprintRunsPages. +func (mr *MockGlueAPIMockRecorder) GetBlueprintRunsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlueprintRunsPages", reflect.TypeOf((*MockGlueAPI)(nil).GetBlueprintRunsPages), arg0, arg1) +} + +// GetBlueprintRunsPagesWithContext mocks base method. +func (m *MockGlueAPI) GetBlueprintRunsPagesWithContext(arg0 aws.Context, arg1 *glue.GetBlueprintRunsInput, arg2 func(*glue.GetBlueprintRunsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetBlueprintRunsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetBlueprintRunsPagesWithContext indicates an expected call of GetBlueprintRunsPagesWithContext. +func (mr *MockGlueAPIMockRecorder) GetBlueprintRunsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlueprintRunsPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetBlueprintRunsPagesWithContext), varargs...) +} + +// GetBlueprintRunsRequest mocks base method. +func (m *MockGlueAPI) GetBlueprintRunsRequest(arg0 *glue.GetBlueprintRunsInput) (*request.Request, *glue.GetBlueprintRunsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetBlueprintRunsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetBlueprintRunsOutput) + return ret0, ret1 +} + +// GetBlueprintRunsRequest indicates an expected call of GetBlueprintRunsRequest. +func (mr *MockGlueAPIMockRecorder) GetBlueprintRunsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlueprintRunsRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetBlueprintRunsRequest), arg0) +} + +// GetBlueprintRunsWithContext mocks base method. +func (m *MockGlueAPI) GetBlueprintRunsWithContext(arg0 aws.Context, arg1 *glue.GetBlueprintRunsInput, arg2 ...request.Option) (*glue.GetBlueprintRunsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetBlueprintRunsWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetBlueprintRunsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetBlueprintRunsWithContext indicates an expected call of GetBlueprintRunsWithContext. +func (mr *MockGlueAPIMockRecorder) GetBlueprintRunsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlueprintRunsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetBlueprintRunsWithContext), varargs...) +} + +// GetBlueprintWithContext mocks base method. +func (m *MockGlueAPI) GetBlueprintWithContext(arg0 aws.Context, arg1 *glue.GetBlueprintInput, arg2 ...request.Option) (*glue.GetBlueprintOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetBlueprintWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetBlueprintOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetBlueprintWithContext indicates an expected call of GetBlueprintWithContext. +func (mr *MockGlueAPIMockRecorder) GetBlueprintWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlueprintWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetBlueprintWithContext), varargs...) +} + +// GetCatalogImportStatus mocks base method. +func (m *MockGlueAPI) GetCatalogImportStatus(arg0 *glue.GetCatalogImportStatusInput) (*glue.GetCatalogImportStatusOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetCatalogImportStatus", arg0) + ret0, _ := ret[0].(*glue.GetCatalogImportStatusOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetCatalogImportStatus indicates an expected call of GetCatalogImportStatus. +func (mr *MockGlueAPIMockRecorder) GetCatalogImportStatus(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCatalogImportStatus", reflect.TypeOf((*MockGlueAPI)(nil).GetCatalogImportStatus), arg0) +} + +// GetCatalogImportStatusRequest mocks base method. +func (m *MockGlueAPI) GetCatalogImportStatusRequest(arg0 *glue.GetCatalogImportStatusInput) (*request.Request, *glue.GetCatalogImportStatusOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetCatalogImportStatusRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetCatalogImportStatusOutput) + return ret0, ret1 +} + +// GetCatalogImportStatusRequest indicates an expected call of GetCatalogImportStatusRequest. +func (mr *MockGlueAPIMockRecorder) GetCatalogImportStatusRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCatalogImportStatusRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetCatalogImportStatusRequest), arg0) +} + +// GetCatalogImportStatusWithContext mocks base method. +func (m *MockGlueAPI) GetCatalogImportStatusWithContext(arg0 aws.Context, arg1 *glue.GetCatalogImportStatusInput, arg2 ...request.Option) (*glue.GetCatalogImportStatusOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetCatalogImportStatusWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetCatalogImportStatusOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetCatalogImportStatusWithContext indicates an expected call of GetCatalogImportStatusWithContext. +func (mr *MockGlueAPIMockRecorder) GetCatalogImportStatusWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCatalogImportStatusWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetCatalogImportStatusWithContext), varargs...) +} + +// GetClassifier mocks base method. +func (m *MockGlueAPI) GetClassifier(arg0 *glue.GetClassifierInput) (*glue.GetClassifierOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetClassifier", arg0) + ret0, _ := ret[0].(*glue.GetClassifierOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetClassifier indicates an expected call of GetClassifier. +func (mr *MockGlueAPIMockRecorder) GetClassifier(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetClassifier", reflect.TypeOf((*MockGlueAPI)(nil).GetClassifier), arg0) +} + +// GetClassifierRequest mocks base method. +func (m *MockGlueAPI) GetClassifierRequest(arg0 *glue.GetClassifierInput) (*request.Request, *glue.GetClassifierOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetClassifierRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetClassifierOutput) + return ret0, ret1 +} + +// GetClassifierRequest indicates an expected call of GetClassifierRequest. +func (mr *MockGlueAPIMockRecorder) GetClassifierRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetClassifierRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetClassifierRequest), arg0) +} + +// GetClassifierWithContext mocks base method. +func (m *MockGlueAPI) GetClassifierWithContext(arg0 aws.Context, arg1 *glue.GetClassifierInput, arg2 ...request.Option) (*glue.GetClassifierOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetClassifierWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetClassifierOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetClassifierWithContext indicates an expected call of GetClassifierWithContext. +func (mr *MockGlueAPIMockRecorder) GetClassifierWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetClassifierWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetClassifierWithContext), varargs...) +} + +// GetClassifiers mocks base method. +func (m *MockGlueAPI) GetClassifiers(arg0 *glue.GetClassifiersInput) (*glue.GetClassifiersOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetClassifiers", arg0) + ret0, _ := ret[0].(*glue.GetClassifiersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetClassifiers indicates an expected call of GetClassifiers. +func (mr *MockGlueAPIMockRecorder) GetClassifiers(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetClassifiers", reflect.TypeOf((*MockGlueAPI)(nil).GetClassifiers), arg0) +} + +// GetClassifiersPages mocks base method. +func (m *MockGlueAPI) GetClassifiersPages(arg0 *glue.GetClassifiersInput, arg1 func(*glue.GetClassifiersOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetClassifiersPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetClassifiersPages indicates an expected call of GetClassifiersPages. +func (mr *MockGlueAPIMockRecorder) GetClassifiersPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetClassifiersPages", reflect.TypeOf((*MockGlueAPI)(nil).GetClassifiersPages), arg0, arg1) +} + +// GetClassifiersPagesWithContext mocks base method. +func (m *MockGlueAPI) GetClassifiersPagesWithContext(arg0 aws.Context, arg1 *glue.GetClassifiersInput, arg2 func(*glue.GetClassifiersOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetClassifiersPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetClassifiersPagesWithContext indicates an expected call of GetClassifiersPagesWithContext. +func (mr *MockGlueAPIMockRecorder) GetClassifiersPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetClassifiersPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetClassifiersPagesWithContext), varargs...) +} + +// GetClassifiersRequest mocks base method. +func (m *MockGlueAPI) GetClassifiersRequest(arg0 *glue.GetClassifiersInput) (*request.Request, *glue.GetClassifiersOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetClassifiersRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetClassifiersOutput) + return ret0, ret1 +} + +// GetClassifiersRequest indicates an expected call of GetClassifiersRequest. +func (mr *MockGlueAPIMockRecorder) GetClassifiersRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetClassifiersRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetClassifiersRequest), arg0) +} + +// GetClassifiersWithContext mocks base method. +func (m *MockGlueAPI) GetClassifiersWithContext(arg0 aws.Context, arg1 *glue.GetClassifiersInput, arg2 ...request.Option) (*glue.GetClassifiersOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetClassifiersWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetClassifiersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetClassifiersWithContext indicates an expected call of GetClassifiersWithContext. +func (mr *MockGlueAPIMockRecorder) GetClassifiersWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetClassifiersWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetClassifiersWithContext), varargs...) +} + +// GetColumnStatisticsForPartition mocks base method. +func (m *MockGlueAPI) GetColumnStatisticsForPartition(arg0 *glue.GetColumnStatisticsForPartitionInput) (*glue.GetColumnStatisticsForPartitionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetColumnStatisticsForPartition", arg0) + ret0, _ := ret[0].(*glue.GetColumnStatisticsForPartitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetColumnStatisticsForPartition indicates an expected call of GetColumnStatisticsForPartition. +func (mr *MockGlueAPIMockRecorder) GetColumnStatisticsForPartition(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetColumnStatisticsForPartition", reflect.TypeOf((*MockGlueAPI)(nil).GetColumnStatisticsForPartition), arg0) +} + +// GetColumnStatisticsForPartitionRequest mocks base method. +func (m *MockGlueAPI) GetColumnStatisticsForPartitionRequest(arg0 *glue.GetColumnStatisticsForPartitionInput) (*request.Request, *glue.GetColumnStatisticsForPartitionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetColumnStatisticsForPartitionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetColumnStatisticsForPartitionOutput) + return ret0, ret1 +} + +// GetColumnStatisticsForPartitionRequest indicates an expected call of GetColumnStatisticsForPartitionRequest. +func (mr *MockGlueAPIMockRecorder) GetColumnStatisticsForPartitionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetColumnStatisticsForPartitionRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetColumnStatisticsForPartitionRequest), arg0) +} + +// GetColumnStatisticsForPartitionWithContext mocks base method. +func (m *MockGlueAPI) GetColumnStatisticsForPartitionWithContext(arg0 aws.Context, arg1 *glue.GetColumnStatisticsForPartitionInput, arg2 ...request.Option) (*glue.GetColumnStatisticsForPartitionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetColumnStatisticsForPartitionWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetColumnStatisticsForPartitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetColumnStatisticsForPartitionWithContext indicates an expected call of GetColumnStatisticsForPartitionWithContext. +func (mr *MockGlueAPIMockRecorder) GetColumnStatisticsForPartitionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetColumnStatisticsForPartitionWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetColumnStatisticsForPartitionWithContext), varargs...) +} + +// GetColumnStatisticsForTable mocks base method. +func (m *MockGlueAPI) GetColumnStatisticsForTable(arg0 *glue.GetColumnStatisticsForTableInput) (*glue.GetColumnStatisticsForTableOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetColumnStatisticsForTable", arg0) + ret0, _ := ret[0].(*glue.GetColumnStatisticsForTableOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetColumnStatisticsForTable indicates an expected call of GetColumnStatisticsForTable. +func (mr *MockGlueAPIMockRecorder) GetColumnStatisticsForTable(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetColumnStatisticsForTable", reflect.TypeOf((*MockGlueAPI)(nil).GetColumnStatisticsForTable), arg0) +} + +// GetColumnStatisticsForTableRequest mocks base method. +func (m *MockGlueAPI) GetColumnStatisticsForTableRequest(arg0 *glue.GetColumnStatisticsForTableInput) (*request.Request, *glue.GetColumnStatisticsForTableOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetColumnStatisticsForTableRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetColumnStatisticsForTableOutput) + return ret0, ret1 +} + +// GetColumnStatisticsForTableRequest indicates an expected call of GetColumnStatisticsForTableRequest. +func (mr *MockGlueAPIMockRecorder) GetColumnStatisticsForTableRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetColumnStatisticsForTableRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetColumnStatisticsForTableRequest), arg0) +} + +// GetColumnStatisticsForTableWithContext mocks base method. +func (m *MockGlueAPI) GetColumnStatisticsForTableWithContext(arg0 aws.Context, arg1 *glue.GetColumnStatisticsForTableInput, arg2 ...request.Option) (*glue.GetColumnStatisticsForTableOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetColumnStatisticsForTableWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetColumnStatisticsForTableOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetColumnStatisticsForTableWithContext indicates an expected call of GetColumnStatisticsForTableWithContext. +func (mr *MockGlueAPIMockRecorder) GetColumnStatisticsForTableWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetColumnStatisticsForTableWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetColumnStatisticsForTableWithContext), varargs...) +} + +// GetColumnStatisticsTaskRun mocks base method. +func (m *MockGlueAPI) GetColumnStatisticsTaskRun(arg0 *glue.GetColumnStatisticsTaskRunInput) (*glue.GetColumnStatisticsTaskRunOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetColumnStatisticsTaskRun", arg0) + ret0, _ := ret[0].(*glue.GetColumnStatisticsTaskRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetColumnStatisticsTaskRun indicates an expected call of GetColumnStatisticsTaskRun. +func (mr *MockGlueAPIMockRecorder) GetColumnStatisticsTaskRun(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetColumnStatisticsTaskRun", reflect.TypeOf((*MockGlueAPI)(nil).GetColumnStatisticsTaskRun), arg0) +} + +// GetColumnStatisticsTaskRunRequest mocks base method. +func (m *MockGlueAPI) GetColumnStatisticsTaskRunRequest(arg0 *glue.GetColumnStatisticsTaskRunInput) (*request.Request, *glue.GetColumnStatisticsTaskRunOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetColumnStatisticsTaskRunRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetColumnStatisticsTaskRunOutput) + return ret0, ret1 +} + +// GetColumnStatisticsTaskRunRequest indicates an expected call of GetColumnStatisticsTaskRunRequest. +func (mr *MockGlueAPIMockRecorder) GetColumnStatisticsTaskRunRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetColumnStatisticsTaskRunRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetColumnStatisticsTaskRunRequest), arg0) +} + +// GetColumnStatisticsTaskRunWithContext mocks base method. +func (m *MockGlueAPI) GetColumnStatisticsTaskRunWithContext(arg0 aws.Context, arg1 *glue.GetColumnStatisticsTaskRunInput, arg2 ...request.Option) (*glue.GetColumnStatisticsTaskRunOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetColumnStatisticsTaskRunWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetColumnStatisticsTaskRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetColumnStatisticsTaskRunWithContext indicates an expected call of GetColumnStatisticsTaskRunWithContext. +func (mr *MockGlueAPIMockRecorder) GetColumnStatisticsTaskRunWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetColumnStatisticsTaskRunWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetColumnStatisticsTaskRunWithContext), varargs...) +} + +// GetColumnStatisticsTaskRuns mocks base method. +func (m *MockGlueAPI) GetColumnStatisticsTaskRuns(arg0 *glue.GetColumnStatisticsTaskRunsInput) (*glue.GetColumnStatisticsTaskRunsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetColumnStatisticsTaskRuns", arg0) + ret0, _ := ret[0].(*glue.GetColumnStatisticsTaskRunsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetColumnStatisticsTaskRuns indicates an expected call of GetColumnStatisticsTaskRuns. +func (mr *MockGlueAPIMockRecorder) GetColumnStatisticsTaskRuns(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetColumnStatisticsTaskRuns", reflect.TypeOf((*MockGlueAPI)(nil).GetColumnStatisticsTaskRuns), arg0) +} + +// GetColumnStatisticsTaskRunsPages mocks base method. +func (m *MockGlueAPI) GetColumnStatisticsTaskRunsPages(arg0 *glue.GetColumnStatisticsTaskRunsInput, arg1 func(*glue.GetColumnStatisticsTaskRunsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetColumnStatisticsTaskRunsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetColumnStatisticsTaskRunsPages indicates an expected call of GetColumnStatisticsTaskRunsPages. +func (mr *MockGlueAPIMockRecorder) GetColumnStatisticsTaskRunsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetColumnStatisticsTaskRunsPages", reflect.TypeOf((*MockGlueAPI)(nil).GetColumnStatisticsTaskRunsPages), arg0, arg1) +} + +// GetColumnStatisticsTaskRunsPagesWithContext mocks base method. +func (m *MockGlueAPI) GetColumnStatisticsTaskRunsPagesWithContext(arg0 aws.Context, arg1 *glue.GetColumnStatisticsTaskRunsInput, arg2 func(*glue.GetColumnStatisticsTaskRunsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetColumnStatisticsTaskRunsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetColumnStatisticsTaskRunsPagesWithContext indicates an expected call of GetColumnStatisticsTaskRunsPagesWithContext. +func (mr *MockGlueAPIMockRecorder) GetColumnStatisticsTaskRunsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetColumnStatisticsTaskRunsPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetColumnStatisticsTaskRunsPagesWithContext), varargs...) +} + +// GetColumnStatisticsTaskRunsRequest mocks base method. +func (m *MockGlueAPI) GetColumnStatisticsTaskRunsRequest(arg0 *glue.GetColumnStatisticsTaskRunsInput) (*request.Request, *glue.GetColumnStatisticsTaskRunsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetColumnStatisticsTaskRunsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetColumnStatisticsTaskRunsOutput) + return ret0, ret1 +} + +// GetColumnStatisticsTaskRunsRequest indicates an expected call of GetColumnStatisticsTaskRunsRequest. +func (mr *MockGlueAPIMockRecorder) GetColumnStatisticsTaskRunsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetColumnStatisticsTaskRunsRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetColumnStatisticsTaskRunsRequest), arg0) +} + +// GetColumnStatisticsTaskRunsWithContext mocks base method. +func (m *MockGlueAPI) GetColumnStatisticsTaskRunsWithContext(arg0 aws.Context, arg1 *glue.GetColumnStatisticsTaskRunsInput, arg2 ...request.Option) (*glue.GetColumnStatisticsTaskRunsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetColumnStatisticsTaskRunsWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetColumnStatisticsTaskRunsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetColumnStatisticsTaskRunsWithContext indicates an expected call of GetColumnStatisticsTaskRunsWithContext. +func (mr *MockGlueAPIMockRecorder) GetColumnStatisticsTaskRunsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetColumnStatisticsTaskRunsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetColumnStatisticsTaskRunsWithContext), varargs...) +} + +// GetConnection mocks base method. +func (m *MockGlueAPI) GetConnection(arg0 *glue.GetConnectionInput) (*glue.GetConnectionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetConnection", arg0) + ret0, _ := ret[0].(*glue.GetConnectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetConnection indicates an expected call of GetConnection. +func (mr *MockGlueAPIMockRecorder) GetConnection(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConnection", reflect.TypeOf((*MockGlueAPI)(nil).GetConnection), arg0) +} + +// GetConnectionRequest mocks base method. +func (m *MockGlueAPI) GetConnectionRequest(arg0 *glue.GetConnectionInput) (*request.Request, *glue.GetConnectionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetConnectionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetConnectionOutput) + return ret0, ret1 +} + +// GetConnectionRequest indicates an expected call of GetConnectionRequest. +func (mr *MockGlueAPIMockRecorder) GetConnectionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConnectionRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetConnectionRequest), arg0) +} + +// GetConnectionWithContext mocks base method. +func (m *MockGlueAPI) GetConnectionWithContext(arg0 aws.Context, arg1 *glue.GetConnectionInput, arg2 ...request.Option) (*glue.GetConnectionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetConnectionWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetConnectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetConnectionWithContext indicates an expected call of GetConnectionWithContext. +func (mr *MockGlueAPIMockRecorder) GetConnectionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConnectionWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetConnectionWithContext), varargs...) +} + +// GetConnections mocks base method. +func (m *MockGlueAPI) GetConnections(arg0 *glue.GetConnectionsInput) (*glue.GetConnectionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetConnections", arg0) + ret0, _ := ret[0].(*glue.GetConnectionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetConnections indicates an expected call of GetConnections. +func (mr *MockGlueAPIMockRecorder) GetConnections(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConnections", reflect.TypeOf((*MockGlueAPI)(nil).GetConnections), arg0) +} + +// GetConnectionsPages mocks base method. +func (m *MockGlueAPI) GetConnectionsPages(arg0 *glue.GetConnectionsInput, arg1 func(*glue.GetConnectionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetConnectionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetConnectionsPages indicates an expected call of GetConnectionsPages. +func (mr *MockGlueAPIMockRecorder) GetConnectionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConnectionsPages", reflect.TypeOf((*MockGlueAPI)(nil).GetConnectionsPages), arg0, arg1) +} + +// GetConnectionsPagesWithContext mocks base method. +func (m *MockGlueAPI) GetConnectionsPagesWithContext(arg0 aws.Context, arg1 *glue.GetConnectionsInput, arg2 func(*glue.GetConnectionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetConnectionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetConnectionsPagesWithContext indicates an expected call of GetConnectionsPagesWithContext. +func (mr *MockGlueAPIMockRecorder) GetConnectionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConnectionsPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetConnectionsPagesWithContext), varargs...) +} + +// GetConnectionsRequest mocks base method. +func (m *MockGlueAPI) GetConnectionsRequest(arg0 *glue.GetConnectionsInput) (*request.Request, *glue.GetConnectionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetConnectionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetConnectionsOutput) + return ret0, ret1 +} + +// GetConnectionsRequest indicates an expected call of GetConnectionsRequest. +func (mr *MockGlueAPIMockRecorder) GetConnectionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConnectionsRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetConnectionsRequest), arg0) +} + +// GetConnectionsWithContext mocks base method. +func (m *MockGlueAPI) GetConnectionsWithContext(arg0 aws.Context, arg1 *glue.GetConnectionsInput, arg2 ...request.Option) (*glue.GetConnectionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetConnectionsWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetConnectionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetConnectionsWithContext indicates an expected call of GetConnectionsWithContext. +func (mr *MockGlueAPIMockRecorder) GetConnectionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConnectionsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetConnectionsWithContext), varargs...) +} + +// GetCrawler mocks base method. +func (m *MockGlueAPI) GetCrawler(arg0 *glue.GetCrawlerInput) (*glue.GetCrawlerOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetCrawler", arg0) + ret0, _ := ret[0].(*glue.GetCrawlerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetCrawler indicates an expected call of GetCrawler. +func (mr *MockGlueAPIMockRecorder) GetCrawler(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCrawler", reflect.TypeOf((*MockGlueAPI)(nil).GetCrawler), arg0) +} + +// GetCrawlerMetrics mocks base method. +func (m *MockGlueAPI) GetCrawlerMetrics(arg0 *glue.GetCrawlerMetricsInput) (*glue.GetCrawlerMetricsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetCrawlerMetrics", arg0) + ret0, _ := ret[0].(*glue.GetCrawlerMetricsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetCrawlerMetrics indicates an expected call of GetCrawlerMetrics. +func (mr *MockGlueAPIMockRecorder) GetCrawlerMetrics(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCrawlerMetrics", reflect.TypeOf((*MockGlueAPI)(nil).GetCrawlerMetrics), arg0) +} + +// GetCrawlerMetricsPages mocks base method. +func (m *MockGlueAPI) GetCrawlerMetricsPages(arg0 *glue.GetCrawlerMetricsInput, arg1 func(*glue.GetCrawlerMetricsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetCrawlerMetricsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetCrawlerMetricsPages indicates an expected call of GetCrawlerMetricsPages. +func (mr *MockGlueAPIMockRecorder) GetCrawlerMetricsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCrawlerMetricsPages", reflect.TypeOf((*MockGlueAPI)(nil).GetCrawlerMetricsPages), arg0, arg1) +} + +// GetCrawlerMetricsPagesWithContext mocks base method. +func (m *MockGlueAPI) GetCrawlerMetricsPagesWithContext(arg0 aws.Context, arg1 *glue.GetCrawlerMetricsInput, arg2 func(*glue.GetCrawlerMetricsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetCrawlerMetricsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetCrawlerMetricsPagesWithContext indicates an expected call of GetCrawlerMetricsPagesWithContext. +func (mr *MockGlueAPIMockRecorder) GetCrawlerMetricsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCrawlerMetricsPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetCrawlerMetricsPagesWithContext), varargs...) +} + +// GetCrawlerMetricsRequest mocks base method. +func (m *MockGlueAPI) GetCrawlerMetricsRequest(arg0 *glue.GetCrawlerMetricsInput) (*request.Request, *glue.GetCrawlerMetricsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetCrawlerMetricsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetCrawlerMetricsOutput) + return ret0, ret1 +} + +// GetCrawlerMetricsRequest indicates an expected call of GetCrawlerMetricsRequest. +func (mr *MockGlueAPIMockRecorder) GetCrawlerMetricsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCrawlerMetricsRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetCrawlerMetricsRequest), arg0) +} + +// GetCrawlerMetricsWithContext mocks base method. +func (m *MockGlueAPI) GetCrawlerMetricsWithContext(arg0 aws.Context, arg1 *glue.GetCrawlerMetricsInput, arg2 ...request.Option) (*glue.GetCrawlerMetricsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetCrawlerMetricsWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetCrawlerMetricsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetCrawlerMetricsWithContext indicates an expected call of GetCrawlerMetricsWithContext. +func (mr *MockGlueAPIMockRecorder) GetCrawlerMetricsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCrawlerMetricsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetCrawlerMetricsWithContext), varargs...) +} + +// GetCrawlerRequest mocks base method. +func (m *MockGlueAPI) GetCrawlerRequest(arg0 *glue.GetCrawlerInput) (*request.Request, *glue.GetCrawlerOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetCrawlerRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetCrawlerOutput) + return ret0, ret1 +} + +// GetCrawlerRequest indicates an expected call of GetCrawlerRequest. +func (mr *MockGlueAPIMockRecorder) GetCrawlerRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCrawlerRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetCrawlerRequest), arg0) +} + +// GetCrawlerWithContext mocks base method. +func (m *MockGlueAPI) GetCrawlerWithContext(arg0 aws.Context, arg1 *glue.GetCrawlerInput, arg2 ...request.Option) (*glue.GetCrawlerOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetCrawlerWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetCrawlerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetCrawlerWithContext indicates an expected call of GetCrawlerWithContext. +func (mr *MockGlueAPIMockRecorder) GetCrawlerWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCrawlerWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetCrawlerWithContext), varargs...) +} + +// GetCrawlers mocks base method. +func (m *MockGlueAPI) GetCrawlers(arg0 *glue.GetCrawlersInput) (*glue.GetCrawlersOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetCrawlers", arg0) + ret0, _ := ret[0].(*glue.GetCrawlersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetCrawlers indicates an expected call of GetCrawlers. +func (mr *MockGlueAPIMockRecorder) GetCrawlers(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCrawlers", reflect.TypeOf((*MockGlueAPI)(nil).GetCrawlers), arg0) +} + +// GetCrawlersPages mocks base method. +func (m *MockGlueAPI) GetCrawlersPages(arg0 *glue.GetCrawlersInput, arg1 func(*glue.GetCrawlersOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetCrawlersPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetCrawlersPages indicates an expected call of GetCrawlersPages. +func (mr *MockGlueAPIMockRecorder) GetCrawlersPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCrawlersPages", reflect.TypeOf((*MockGlueAPI)(nil).GetCrawlersPages), arg0, arg1) +} + +// GetCrawlersPagesWithContext mocks base method. +func (m *MockGlueAPI) GetCrawlersPagesWithContext(arg0 aws.Context, arg1 *glue.GetCrawlersInput, arg2 func(*glue.GetCrawlersOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetCrawlersPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetCrawlersPagesWithContext indicates an expected call of GetCrawlersPagesWithContext. +func (mr *MockGlueAPIMockRecorder) GetCrawlersPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCrawlersPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetCrawlersPagesWithContext), varargs...) +} + +// GetCrawlersRequest mocks base method. +func (m *MockGlueAPI) GetCrawlersRequest(arg0 *glue.GetCrawlersInput) (*request.Request, *glue.GetCrawlersOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetCrawlersRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetCrawlersOutput) + return ret0, ret1 +} + +// GetCrawlersRequest indicates an expected call of GetCrawlersRequest. +func (mr *MockGlueAPIMockRecorder) GetCrawlersRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCrawlersRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetCrawlersRequest), arg0) +} + +// GetCrawlersWithContext mocks base method. +func (m *MockGlueAPI) GetCrawlersWithContext(arg0 aws.Context, arg1 *glue.GetCrawlersInput, arg2 ...request.Option) (*glue.GetCrawlersOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetCrawlersWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetCrawlersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetCrawlersWithContext indicates an expected call of GetCrawlersWithContext. +func (mr *MockGlueAPIMockRecorder) GetCrawlersWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCrawlersWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetCrawlersWithContext), varargs...) +} + +// GetCustomEntityType mocks base method. +func (m *MockGlueAPI) GetCustomEntityType(arg0 *glue.GetCustomEntityTypeInput) (*glue.GetCustomEntityTypeOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetCustomEntityType", arg0) + ret0, _ := ret[0].(*glue.GetCustomEntityTypeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetCustomEntityType indicates an expected call of GetCustomEntityType. +func (mr *MockGlueAPIMockRecorder) GetCustomEntityType(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCustomEntityType", reflect.TypeOf((*MockGlueAPI)(nil).GetCustomEntityType), arg0) +} + +// GetCustomEntityTypeRequest mocks base method. +func (m *MockGlueAPI) GetCustomEntityTypeRequest(arg0 *glue.GetCustomEntityTypeInput) (*request.Request, *glue.GetCustomEntityTypeOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetCustomEntityTypeRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetCustomEntityTypeOutput) + return ret0, ret1 +} + +// GetCustomEntityTypeRequest indicates an expected call of GetCustomEntityTypeRequest. +func (mr *MockGlueAPIMockRecorder) GetCustomEntityTypeRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCustomEntityTypeRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetCustomEntityTypeRequest), arg0) +} + +// GetCustomEntityTypeWithContext mocks base method. +func (m *MockGlueAPI) GetCustomEntityTypeWithContext(arg0 aws.Context, arg1 *glue.GetCustomEntityTypeInput, arg2 ...request.Option) (*glue.GetCustomEntityTypeOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetCustomEntityTypeWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetCustomEntityTypeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetCustomEntityTypeWithContext indicates an expected call of GetCustomEntityTypeWithContext. +func (mr *MockGlueAPIMockRecorder) GetCustomEntityTypeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCustomEntityTypeWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetCustomEntityTypeWithContext), varargs...) +} + +// GetDataCatalogEncryptionSettings mocks base method. +func (m *MockGlueAPI) GetDataCatalogEncryptionSettings(arg0 *glue.GetDataCatalogEncryptionSettingsInput) (*glue.GetDataCatalogEncryptionSettingsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetDataCatalogEncryptionSettings", arg0) + ret0, _ := ret[0].(*glue.GetDataCatalogEncryptionSettingsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetDataCatalogEncryptionSettings indicates an expected call of GetDataCatalogEncryptionSettings. +func (mr *MockGlueAPIMockRecorder) GetDataCatalogEncryptionSettings(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDataCatalogEncryptionSettings", reflect.TypeOf((*MockGlueAPI)(nil).GetDataCatalogEncryptionSettings), arg0) +} + +// GetDataCatalogEncryptionSettingsRequest mocks base method. +func (m *MockGlueAPI) GetDataCatalogEncryptionSettingsRequest(arg0 *glue.GetDataCatalogEncryptionSettingsInput) (*request.Request, *glue.GetDataCatalogEncryptionSettingsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetDataCatalogEncryptionSettingsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetDataCatalogEncryptionSettingsOutput) + return ret0, ret1 +} + +// GetDataCatalogEncryptionSettingsRequest indicates an expected call of GetDataCatalogEncryptionSettingsRequest. +func (mr *MockGlueAPIMockRecorder) GetDataCatalogEncryptionSettingsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDataCatalogEncryptionSettingsRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetDataCatalogEncryptionSettingsRequest), arg0) +} + +// GetDataCatalogEncryptionSettingsWithContext mocks base method. +func (m *MockGlueAPI) GetDataCatalogEncryptionSettingsWithContext(arg0 aws.Context, arg1 *glue.GetDataCatalogEncryptionSettingsInput, arg2 ...request.Option) (*glue.GetDataCatalogEncryptionSettingsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetDataCatalogEncryptionSettingsWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetDataCatalogEncryptionSettingsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetDataCatalogEncryptionSettingsWithContext indicates an expected call of GetDataCatalogEncryptionSettingsWithContext. +func (mr *MockGlueAPIMockRecorder) GetDataCatalogEncryptionSettingsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDataCatalogEncryptionSettingsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetDataCatalogEncryptionSettingsWithContext), varargs...) +} + +// GetDataQualityResult mocks base method. +func (m *MockGlueAPI) GetDataQualityResult(arg0 *glue.GetDataQualityResultInput) (*glue.GetDataQualityResultOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetDataQualityResult", arg0) + ret0, _ := ret[0].(*glue.GetDataQualityResultOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetDataQualityResult indicates an expected call of GetDataQualityResult. +func (mr *MockGlueAPIMockRecorder) GetDataQualityResult(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDataQualityResult", reflect.TypeOf((*MockGlueAPI)(nil).GetDataQualityResult), arg0) +} + +// GetDataQualityResultRequest mocks base method. +func (m *MockGlueAPI) GetDataQualityResultRequest(arg0 *glue.GetDataQualityResultInput) (*request.Request, *glue.GetDataQualityResultOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetDataQualityResultRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetDataQualityResultOutput) + return ret0, ret1 +} + +// GetDataQualityResultRequest indicates an expected call of GetDataQualityResultRequest. +func (mr *MockGlueAPIMockRecorder) GetDataQualityResultRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDataQualityResultRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetDataQualityResultRequest), arg0) +} + +// GetDataQualityResultWithContext mocks base method. +func (m *MockGlueAPI) GetDataQualityResultWithContext(arg0 aws.Context, arg1 *glue.GetDataQualityResultInput, arg2 ...request.Option) (*glue.GetDataQualityResultOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetDataQualityResultWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetDataQualityResultOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetDataQualityResultWithContext indicates an expected call of GetDataQualityResultWithContext. +func (mr *MockGlueAPIMockRecorder) GetDataQualityResultWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDataQualityResultWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetDataQualityResultWithContext), varargs...) +} + +// GetDataQualityRuleRecommendationRun mocks base method. +func (m *MockGlueAPI) GetDataQualityRuleRecommendationRun(arg0 *glue.GetDataQualityRuleRecommendationRunInput) (*glue.GetDataQualityRuleRecommendationRunOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetDataQualityRuleRecommendationRun", arg0) + ret0, _ := ret[0].(*glue.GetDataQualityRuleRecommendationRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetDataQualityRuleRecommendationRun indicates an expected call of GetDataQualityRuleRecommendationRun. +func (mr *MockGlueAPIMockRecorder) GetDataQualityRuleRecommendationRun(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDataQualityRuleRecommendationRun", reflect.TypeOf((*MockGlueAPI)(nil).GetDataQualityRuleRecommendationRun), arg0) +} + +// GetDataQualityRuleRecommendationRunRequest mocks base method. +func (m *MockGlueAPI) GetDataQualityRuleRecommendationRunRequest(arg0 *glue.GetDataQualityRuleRecommendationRunInput) (*request.Request, *glue.GetDataQualityRuleRecommendationRunOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetDataQualityRuleRecommendationRunRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetDataQualityRuleRecommendationRunOutput) + return ret0, ret1 +} + +// GetDataQualityRuleRecommendationRunRequest indicates an expected call of GetDataQualityRuleRecommendationRunRequest. +func (mr *MockGlueAPIMockRecorder) GetDataQualityRuleRecommendationRunRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDataQualityRuleRecommendationRunRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetDataQualityRuleRecommendationRunRequest), arg0) +} + +// GetDataQualityRuleRecommendationRunWithContext mocks base method. +func (m *MockGlueAPI) GetDataQualityRuleRecommendationRunWithContext(arg0 aws.Context, arg1 *glue.GetDataQualityRuleRecommendationRunInput, arg2 ...request.Option) (*glue.GetDataQualityRuleRecommendationRunOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetDataQualityRuleRecommendationRunWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetDataQualityRuleRecommendationRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetDataQualityRuleRecommendationRunWithContext indicates an expected call of GetDataQualityRuleRecommendationRunWithContext. +func (mr *MockGlueAPIMockRecorder) GetDataQualityRuleRecommendationRunWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDataQualityRuleRecommendationRunWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetDataQualityRuleRecommendationRunWithContext), varargs...) +} + +// GetDataQualityRuleset mocks base method. +func (m *MockGlueAPI) GetDataQualityRuleset(arg0 *glue.GetDataQualityRulesetInput) (*glue.GetDataQualityRulesetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetDataQualityRuleset", arg0) + ret0, _ := ret[0].(*glue.GetDataQualityRulesetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetDataQualityRuleset indicates an expected call of GetDataQualityRuleset. +func (mr *MockGlueAPIMockRecorder) GetDataQualityRuleset(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDataQualityRuleset", reflect.TypeOf((*MockGlueAPI)(nil).GetDataQualityRuleset), arg0) +} + +// GetDataQualityRulesetEvaluationRun mocks base method. +func (m *MockGlueAPI) GetDataQualityRulesetEvaluationRun(arg0 *glue.GetDataQualityRulesetEvaluationRunInput) (*glue.GetDataQualityRulesetEvaluationRunOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetDataQualityRulesetEvaluationRun", arg0) + ret0, _ := ret[0].(*glue.GetDataQualityRulesetEvaluationRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetDataQualityRulesetEvaluationRun indicates an expected call of GetDataQualityRulesetEvaluationRun. +func (mr *MockGlueAPIMockRecorder) GetDataQualityRulesetEvaluationRun(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDataQualityRulesetEvaluationRun", reflect.TypeOf((*MockGlueAPI)(nil).GetDataQualityRulesetEvaluationRun), arg0) +} + +// GetDataQualityRulesetEvaluationRunRequest mocks base method. +func (m *MockGlueAPI) GetDataQualityRulesetEvaluationRunRequest(arg0 *glue.GetDataQualityRulesetEvaluationRunInput) (*request.Request, *glue.GetDataQualityRulesetEvaluationRunOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetDataQualityRulesetEvaluationRunRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetDataQualityRulesetEvaluationRunOutput) + return ret0, ret1 +} + +// GetDataQualityRulesetEvaluationRunRequest indicates an expected call of GetDataQualityRulesetEvaluationRunRequest. +func (mr *MockGlueAPIMockRecorder) GetDataQualityRulesetEvaluationRunRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDataQualityRulesetEvaluationRunRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetDataQualityRulesetEvaluationRunRequest), arg0) +} + +// GetDataQualityRulesetEvaluationRunWithContext mocks base method. +func (m *MockGlueAPI) GetDataQualityRulesetEvaluationRunWithContext(arg0 aws.Context, arg1 *glue.GetDataQualityRulesetEvaluationRunInput, arg2 ...request.Option) (*glue.GetDataQualityRulesetEvaluationRunOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetDataQualityRulesetEvaluationRunWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetDataQualityRulesetEvaluationRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetDataQualityRulesetEvaluationRunWithContext indicates an expected call of GetDataQualityRulesetEvaluationRunWithContext. +func (mr *MockGlueAPIMockRecorder) GetDataQualityRulesetEvaluationRunWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDataQualityRulesetEvaluationRunWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetDataQualityRulesetEvaluationRunWithContext), varargs...) +} + +// GetDataQualityRulesetRequest mocks base method. +func (m *MockGlueAPI) GetDataQualityRulesetRequest(arg0 *glue.GetDataQualityRulesetInput) (*request.Request, *glue.GetDataQualityRulesetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetDataQualityRulesetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetDataQualityRulesetOutput) + return ret0, ret1 +} + +// GetDataQualityRulesetRequest indicates an expected call of GetDataQualityRulesetRequest. +func (mr *MockGlueAPIMockRecorder) GetDataQualityRulesetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDataQualityRulesetRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetDataQualityRulesetRequest), arg0) +} + +// GetDataQualityRulesetWithContext mocks base method. +func (m *MockGlueAPI) GetDataQualityRulesetWithContext(arg0 aws.Context, arg1 *glue.GetDataQualityRulesetInput, arg2 ...request.Option) (*glue.GetDataQualityRulesetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetDataQualityRulesetWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetDataQualityRulesetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetDataQualityRulesetWithContext indicates an expected call of GetDataQualityRulesetWithContext. +func (mr *MockGlueAPIMockRecorder) GetDataQualityRulesetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDataQualityRulesetWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetDataQualityRulesetWithContext), varargs...) +} + +// GetDatabase mocks base method. +func (m *MockGlueAPI) GetDatabase(arg0 *glue.GetDatabaseInput) (*glue.GetDatabaseOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetDatabase", arg0) + ret0, _ := ret[0].(*glue.GetDatabaseOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetDatabase indicates an expected call of GetDatabase. +func (mr *MockGlueAPIMockRecorder) GetDatabase(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDatabase", reflect.TypeOf((*MockGlueAPI)(nil).GetDatabase), arg0) +} + +// GetDatabaseRequest mocks base method. +func (m *MockGlueAPI) GetDatabaseRequest(arg0 *glue.GetDatabaseInput) (*request.Request, *glue.GetDatabaseOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetDatabaseRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetDatabaseOutput) + return ret0, ret1 +} + +// GetDatabaseRequest indicates an expected call of GetDatabaseRequest. +func (mr *MockGlueAPIMockRecorder) GetDatabaseRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDatabaseRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetDatabaseRequest), arg0) +} + +// GetDatabaseWithContext mocks base method. +func (m *MockGlueAPI) GetDatabaseWithContext(arg0 aws.Context, arg1 *glue.GetDatabaseInput, arg2 ...request.Option) (*glue.GetDatabaseOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetDatabaseWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetDatabaseOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetDatabaseWithContext indicates an expected call of GetDatabaseWithContext. +func (mr *MockGlueAPIMockRecorder) GetDatabaseWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDatabaseWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetDatabaseWithContext), varargs...) +} + +// GetDatabases mocks base method. +func (m *MockGlueAPI) GetDatabases(arg0 *glue.GetDatabasesInput) (*glue.GetDatabasesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetDatabases", arg0) + ret0, _ := ret[0].(*glue.GetDatabasesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetDatabases indicates an expected call of GetDatabases. +func (mr *MockGlueAPIMockRecorder) GetDatabases(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDatabases", reflect.TypeOf((*MockGlueAPI)(nil).GetDatabases), arg0) +} + +// GetDatabasesPages mocks base method. +func (m *MockGlueAPI) GetDatabasesPages(arg0 *glue.GetDatabasesInput, arg1 func(*glue.GetDatabasesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetDatabasesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetDatabasesPages indicates an expected call of GetDatabasesPages. +func (mr *MockGlueAPIMockRecorder) GetDatabasesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDatabasesPages", reflect.TypeOf((*MockGlueAPI)(nil).GetDatabasesPages), arg0, arg1) +} + +// GetDatabasesPagesWithContext mocks base method. +func (m *MockGlueAPI) GetDatabasesPagesWithContext(arg0 aws.Context, arg1 *glue.GetDatabasesInput, arg2 func(*glue.GetDatabasesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetDatabasesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetDatabasesPagesWithContext indicates an expected call of GetDatabasesPagesWithContext. +func (mr *MockGlueAPIMockRecorder) GetDatabasesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDatabasesPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetDatabasesPagesWithContext), varargs...) +} + +// GetDatabasesRequest mocks base method. +func (m *MockGlueAPI) GetDatabasesRequest(arg0 *glue.GetDatabasesInput) (*request.Request, *glue.GetDatabasesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetDatabasesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetDatabasesOutput) + return ret0, ret1 +} + +// GetDatabasesRequest indicates an expected call of GetDatabasesRequest. +func (mr *MockGlueAPIMockRecorder) GetDatabasesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDatabasesRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetDatabasesRequest), arg0) +} + +// GetDatabasesWithContext mocks base method. +func (m *MockGlueAPI) GetDatabasesWithContext(arg0 aws.Context, arg1 *glue.GetDatabasesInput, arg2 ...request.Option) (*glue.GetDatabasesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetDatabasesWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetDatabasesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetDatabasesWithContext indicates an expected call of GetDatabasesWithContext. +func (mr *MockGlueAPIMockRecorder) GetDatabasesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDatabasesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetDatabasesWithContext), varargs...) +} + +// GetDataflowGraph mocks base method. +func (m *MockGlueAPI) GetDataflowGraph(arg0 *glue.GetDataflowGraphInput) (*glue.GetDataflowGraphOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetDataflowGraph", arg0) + ret0, _ := ret[0].(*glue.GetDataflowGraphOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetDataflowGraph indicates an expected call of GetDataflowGraph. +func (mr *MockGlueAPIMockRecorder) GetDataflowGraph(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDataflowGraph", reflect.TypeOf((*MockGlueAPI)(nil).GetDataflowGraph), arg0) +} + +// GetDataflowGraphRequest mocks base method. +func (m *MockGlueAPI) GetDataflowGraphRequest(arg0 *glue.GetDataflowGraphInput) (*request.Request, *glue.GetDataflowGraphOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetDataflowGraphRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetDataflowGraphOutput) + return ret0, ret1 +} + +// GetDataflowGraphRequest indicates an expected call of GetDataflowGraphRequest. +func (mr *MockGlueAPIMockRecorder) GetDataflowGraphRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDataflowGraphRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetDataflowGraphRequest), arg0) +} + +// GetDataflowGraphWithContext mocks base method. +func (m *MockGlueAPI) GetDataflowGraphWithContext(arg0 aws.Context, arg1 *glue.GetDataflowGraphInput, arg2 ...request.Option) (*glue.GetDataflowGraphOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetDataflowGraphWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetDataflowGraphOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetDataflowGraphWithContext indicates an expected call of GetDataflowGraphWithContext. +func (mr *MockGlueAPIMockRecorder) GetDataflowGraphWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDataflowGraphWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetDataflowGraphWithContext), varargs...) +} + +// GetDevEndpoint mocks base method. +func (m *MockGlueAPI) GetDevEndpoint(arg0 *glue.GetDevEndpointInput) (*glue.GetDevEndpointOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetDevEndpoint", arg0) + ret0, _ := ret[0].(*glue.GetDevEndpointOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetDevEndpoint indicates an expected call of GetDevEndpoint. +func (mr *MockGlueAPIMockRecorder) GetDevEndpoint(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDevEndpoint", reflect.TypeOf((*MockGlueAPI)(nil).GetDevEndpoint), arg0) +} + +// GetDevEndpointRequest mocks base method. +func (m *MockGlueAPI) GetDevEndpointRequest(arg0 *glue.GetDevEndpointInput) (*request.Request, *glue.GetDevEndpointOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetDevEndpointRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetDevEndpointOutput) + return ret0, ret1 +} + +// GetDevEndpointRequest indicates an expected call of GetDevEndpointRequest. +func (mr *MockGlueAPIMockRecorder) GetDevEndpointRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDevEndpointRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetDevEndpointRequest), arg0) +} + +// GetDevEndpointWithContext mocks base method. +func (m *MockGlueAPI) GetDevEndpointWithContext(arg0 aws.Context, arg1 *glue.GetDevEndpointInput, arg2 ...request.Option) (*glue.GetDevEndpointOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetDevEndpointWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetDevEndpointOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetDevEndpointWithContext indicates an expected call of GetDevEndpointWithContext. +func (mr *MockGlueAPIMockRecorder) GetDevEndpointWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDevEndpointWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetDevEndpointWithContext), varargs...) +} + +// GetDevEndpoints mocks base method. +func (m *MockGlueAPI) GetDevEndpoints(arg0 *glue.GetDevEndpointsInput) (*glue.GetDevEndpointsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetDevEndpoints", arg0) + ret0, _ := ret[0].(*glue.GetDevEndpointsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetDevEndpoints indicates an expected call of GetDevEndpoints. +func (mr *MockGlueAPIMockRecorder) GetDevEndpoints(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDevEndpoints", reflect.TypeOf((*MockGlueAPI)(nil).GetDevEndpoints), arg0) +} + +// GetDevEndpointsPages mocks base method. +func (m *MockGlueAPI) GetDevEndpointsPages(arg0 *glue.GetDevEndpointsInput, arg1 func(*glue.GetDevEndpointsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetDevEndpointsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetDevEndpointsPages indicates an expected call of GetDevEndpointsPages. +func (mr *MockGlueAPIMockRecorder) GetDevEndpointsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDevEndpointsPages", reflect.TypeOf((*MockGlueAPI)(nil).GetDevEndpointsPages), arg0, arg1) +} + +// GetDevEndpointsPagesWithContext mocks base method. +func (m *MockGlueAPI) GetDevEndpointsPagesWithContext(arg0 aws.Context, arg1 *glue.GetDevEndpointsInput, arg2 func(*glue.GetDevEndpointsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetDevEndpointsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetDevEndpointsPagesWithContext indicates an expected call of GetDevEndpointsPagesWithContext. +func (mr *MockGlueAPIMockRecorder) GetDevEndpointsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDevEndpointsPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetDevEndpointsPagesWithContext), varargs...) +} + +// GetDevEndpointsRequest mocks base method. +func (m *MockGlueAPI) GetDevEndpointsRequest(arg0 *glue.GetDevEndpointsInput) (*request.Request, *glue.GetDevEndpointsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetDevEndpointsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetDevEndpointsOutput) + return ret0, ret1 +} + +// GetDevEndpointsRequest indicates an expected call of GetDevEndpointsRequest. +func (mr *MockGlueAPIMockRecorder) GetDevEndpointsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDevEndpointsRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetDevEndpointsRequest), arg0) +} + +// GetDevEndpointsWithContext mocks base method. +func (m *MockGlueAPI) GetDevEndpointsWithContext(arg0 aws.Context, arg1 *glue.GetDevEndpointsInput, arg2 ...request.Option) (*glue.GetDevEndpointsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetDevEndpointsWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetDevEndpointsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetDevEndpointsWithContext indicates an expected call of GetDevEndpointsWithContext. +func (mr *MockGlueAPIMockRecorder) GetDevEndpointsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDevEndpointsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetDevEndpointsWithContext), varargs...) +} + +// GetJob mocks base method. +func (m *MockGlueAPI) GetJob(arg0 *glue.GetJobInput) (*glue.GetJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetJob", arg0) + ret0, _ := ret[0].(*glue.GetJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetJob indicates an expected call of GetJob. +func (mr *MockGlueAPIMockRecorder) GetJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetJob", reflect.TypeOf((*MockGlueAPI)(nil).GetJob), arg0) +} + +// GetJobBookmark mocks base method. +func (m *MockGlueAPI) GetJobBookmark(arg0 *glue.GetJobBookmarkInput) (*glue.GetJobBookmarkOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetJobBookmark", arg0) + ret0, _ := ret[0].(*glue.GetJobBookmarkOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetJobBookmark indicates an expected call of GetJobBookmark. +func (mr *MockGlueAPIMockRecorder) GetJobBookmark(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetJobBookmark", reflect.TypeOf((*MockGlueAPI)(nil).GetJobBookmark), arg0) +} + +// GetJobBookmarkRequest mocks base method. +func (m *MockGlueAPI) GetJobBookmarkRequest(arg0 *glue.GetJobBookmarkInput) (*request.Request, *glue.GetJobBookmarkOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetJobBookmarkRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetJobBookmarkOutput) + return ret0, ret1 +} + +// GetJobBookmarkRequest indicates an expected call of GetJobBookmarkRequest. +func (mr *MockGlueAPIMockRecorder) GetJobBookmarkRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetJobBookmarkRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetJobBookmarkRequest), arg0) +} + +// GetJobBookmarkWithContext mocks base method. +func (m *MockGlueAPI) GetJobBookmarkWithContext(arg0 aws.Context, arg1 *glue.GetJobBookmarkInput, arg2 ...request.Option) (*glue.GetJobBookmarkOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetJobBookmarkWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetJobBookmarkOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetJobBookmarkWithContext indicates an expected call of GetJobBookmarkWithContext. +func (mr *MockGlueAPIMockRecorder) GetJobBookmarkWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetJobBookmarkWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetJobBookmarkWithContext), varargs...) +} + +// GetJobRequest mocks base method. +func (m *MockGlueAPI) GetJobRequest(arg0 *glue.GetJobInput) (*request.Request, *glue.GetJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetJobOutput) + return ret0, ret1 +} + +// GetJobRequest indicates an expected call of GetJobRequest. +func (mr *MockGlueAPIMockRecorder) GetJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetJobRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetJobRequest), arg0) +} + +// GetJobRun mocks base method. +func (m *MockGlueAPI) GetJobRun(arg0 *glue.GetJobRunInput) (*glue.GetJobRunOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetJobRun", arg0) + ret0, _ := ret[0].(*glue.GetJobRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetJobRun indicates an expected call of GetJobRun. +func (mr *MockGlueAPIMockRecorder) GetJobRun(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetJobRun", reflect.TypeOf((*MockGlueAPI)(nil).GetJobRun), arg0) +} + +// GetJobRunRequest mocks base method. +func (m *MockGlueAPI) GetJobRunRequest(arg0 *glue.GetJobRunInput) (*request.Request, *glue.GetJobRunOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetJobRunRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetJobRunOutput) + return ret0, ret1 +} + +// GetJobRunRequest indicates an expected call of GetJobRunRequest. +func (mr *MockGlueAPIMockRecorder) GetJobRunRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetJobRunRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetJobRunRequest), arg0) +} + +// GetJobRunWithContext mocks base method. +func (m *MockGlueAPI) GetJobRunWithContext(arg0 aws.Context, arg1 *glue.GetJobRunInput, arg2 ...request.Option) (*glue.GetJobRunOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetJobRunWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetJobRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetJobRunWithContext indicates an expected call of GetJobRunWithContext. +func (mr *MockGlueAPIMockRecorder) GetJobRunWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetJobRunWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetJobRunWithContext), varargs...) +} + +// GetJobRuns mocks base method. +func (m *MockGlueAPI) GetJobRuns(arg0 *glue.GetJobRunsInput) (*glue.GetJobRunsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetJobRuns", arg0) + ret0, _ := ret[0].(*glue.GetJobRunsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetJobRuns indicates an expected call of GetJobRuns. +func (mr *MockGlueAPIMockRecorder) GetJobRuns(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetJobRuns", reflect.TypeOf((*MockGlueAPI)(nil).GetJobRuns), arg0) +} + +// GetJobRunsPages mocks base method. +func (m *MockGlueAPI) GetJobRunsPages(arg0 *glue.GetJobRunsInput, arg1 func(*glue.GetJobRunsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetJobRunsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetJobRunsPages indicates an expected call of GetJobRunsPages. +func (mr *MockGlueAPIMockRecorder) GetJobRunsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetJobRunsPages", reflect.TypeOf((*MockGlueAPI)(nil).GetJobRunsPages), arg0, arg1) +} + +// GetJobRunsPagesWithContext mocks base method. +func (m *MockGlueAPI) GetJobRunsPagesWithContext(arg0 aws.Context, arg1 *glue.GetJobRunsInput, arg2 func(*glue.GetJobRunsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetJobRunsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetJobRunsPagesWithContext indicates an expected call of GetJobRunsPagesWithContext. +func (mr *MockGlueAPIMockRecorder) GetJobRunsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetJobRunsPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetJobRunsPagesWithContext), varargs...) +} + +// GetJobRunsRequest mocks base method. +func (m *MockGlueAPI) GetJobRunsRequest(arg0 *glue.GetJobRunsInput) (*request.Request, *glue.GetJobRunsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetJobRunsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetJobRunsOutput) + return ret0, ret1 +} + +// GetJobRunsRequest indicates an expected call of GetJobRunsRequest. +func (mr *MockGlueAPIMockRecorder) GetJobRunsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetJobRunsRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetJobRunsRequest), arg0) +} + +// GetJobRunsWithContext mocks base method. +func (m *MockGlueAPI) GetJobRunsWithContext(arg0 aws.Context, arg1 *glue.GetJobRunsInput, arg2 ...request.Option) (*glue.GetJobRunsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetJobRunsWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetJobRunsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetJobRunsWithContext indicates an expected call of GetJobRunsWithContext. +func (mr *MockGlueAPIMockRecorder) GetJobRunsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetJobRunsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetJobRunsWithContext), varargs...) +} + +// GetJobWithContext mocks base method. +func (m *MockGlueAPI) GetJobWithContext(arg0 aws.Context, arg1 *glue.GetJobInput, arg2 ...request.Option) (*glue.GetJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetJobWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetJobWithContext indicates an expected call of GetJobWithContext. +func (mr *MockGlueAPIMockRecorder) GetJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetJobWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetJobWithContext), varargs...) +} + +// GetJobs mocks base method. +func (m *MockGlueAPI) GetJobs(arg0 *glue.GetJobsInput) (*glue.GetJobsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetJobs", arg0) + ret0, _ := ret[0].(*glue.GetJobsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetJobs indicates an expected call of GetJobs. +func (mr *MockGlueAPIMockRecorder) GetJobs(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetJobs", reflect.TypeOf((*MockGlueAPI)(nil).GetJobs), arg0) +} + +// GetJobsPages mocks base method. +func (m *MockGlueAPI) GetJobsPages(arg0 *glue.GetJobsInput, arg1 func(*glue.GetJobsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetJobsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetJobsPages indicates an expected call of GetJobsPages. +func (mr *MockGlueAPIMockRecorder) GetJobsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetJobsPages", reflect.TypeOf((*MockGlueAPI)(nil).GetJobsPages), arg0, arg1) +} + +// GetJobsPagesWithContext mocks base method. +func (m *MockGlueAPI) GetJobsPagesWithContext(arg0 aws.Context, arg1 *glue.GetJobsInput, arg2 func(*glue.GetJobsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetJobsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetJobsPagesWithContext indicates an expected call of GetJobsPagesWithContext. +func (mr *MockGlueAPIMockRecorder) GetJobsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetJobsPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetJobsPagesWithContext), varargs...) +} + +// GetJobsRequest mocks base method. +func (m *MockGlueAPI) GetJobsRequest(arg0 *glue.GetJobsInput) (*request.Request, *glue.GetJobsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetJobsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetJobsOutput) + return ret0, ret1 +} + +// GetJobsRequest indicates an expected call of GetJobsRequest. +func (mr *MockGlueAPIMockRecorder) GetJobsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetJobsRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetJobsRequest), arg0) +} + +// GetJobsWithContext mocks base method. +func (m *MockGlueAPI) GetJobsWithContext(arg0 aws.Context, arg1 *glue.GetJobsInput, arg2 ...request.Option) (*glue.GetJobsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetJobsWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetJobsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetJobsWithContext indicates an expected call of GetJobsWithContext. +func (mr *MockGlueAPIMockRecorder) GetJobsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetJobsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetJobsWithContext), varargs...) +} + +// GetMLTaskRun mocks base method. +func (m *MockGlueAPI) GetMLTaskRun(arg0 *glue.GetMLTaskRunInput) (*glue.GetMLTaskRunOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetMLTaskRun", arg0) + ret0, _ := ret[0].(*glue.GetMLTaskRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetMLTaskRun indicates an expected call of GetMLTaskRun. +func (mr *MockGlueAPIMockRecorder) GetMLTaskRun(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMLTaskRun", reflect.TypeOf((*MockGlueAPI)(nil).GetMLTaskRun), arg0) +} + +// GetMLTaskRunRequest mocks base method. +func (m *MockGlueAPI) GetMLTaskRunRequest(arg0 *glue.GetMLTaskRunInput) (*request.Request, *glue.GetMLTaskRunOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetMLTaskRunRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetMLTaskRunOutput) + return ret0, ret1 +} + +// GetMLTaskRunRequest indicates an expected call of GetMLTaskRunRequest. +func (mr *MockGlueAPIMockRecorder) GetMLTaskRunRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMLTaskRunRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetMLTaskRunRequest), arg0) +} + +// GetMLTaskRunWithContext mocks base method. +func (m *MockGlueAPI) GetMLTaskRunWithContext(arg0 aws.Context, arg1 *glue.GetMLTaskRunInput, arg2 ...request.Option) (*glue.GetMLTaskRunOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetMLTaskRunWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetMLTaskRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetMLTaskRunWithContext indicates an expected call of GetMLTaskRunWithContext. +func (mr *MockGlueAPIMockRecorder) GetMLTaskRunWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMLTaskRunWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetMLTaskRunWithContext), varargs...) +} + +// GetMLTaskRuns mocks base method. +func (m *MockGlueAPI) GetMLTaskRuns(arg0 *glue.GetMLTaskRunsInput) (*glue.GetMLTaskRunsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetMLTaskRuns", arg0) + ret0, _ := ret[0].(*glue.GetMLTaskRunsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetMLTaskRuns indicates an expected call of GetMLTaskRuns. +func (mr *MockGlueAPIMockRecorder) GetMLTaskRuns(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMLTaskRuns", reflect.TypeOf((*MockGlueAPI)(nil).GetMLTaskRuns), arg0) +} + +// GetMLTaskRunsPages mocks base method. +func (m *MockGlueAPI) GetMLTaskRunsPages(arg0 *glue.GetMLTaskRunsInput, arg1 func(*glue.GetMLTaskRunsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetMLTaskRunsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetMLTaskRunsPages indicates an expected call of GetMLTaskRunsPages. +func (mr *MockGlueAPIMockRecorder) GetMLTaskRunsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMLTaskRunsPages", reflect.TypeOf((*MockGlueAPI)(nil).GetMLTaskRunsPages), arg0, arg1) +} + +// GetMLTaskRunsPagesWithContext mocks base method. +func (m *MockGlueAPI) GetMLTaskRunsPagesWithContext(arg0 aws.Context, arg1 *glue.GetMLTaskRunsInput, arg2 func(*glue.GetMLTaskRunsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetMLTaskRunsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetMLTaskRunsPagesWithContext indicates an expected call of GetMLTaskRunsPagesWithContext. +func (mr *MockGlueAPIMockRecorder) GetMLTaskRunsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMLTaskRunsPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetMLTaskRunsPagesWithContext), varargs...) +} + +// GetMLTaskRunsRequest mocks base method. +func (m *MockGlueAPI) GetMLTaskRunsRequest(arg0 *glue.GetMLTaskRunsInput) (*request.Request, *glue.GetMLTaskRunsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetMLTaskRunsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetMLTaskRunsOutput) + return ret0, ret1 +} + +// GetMLTaskRunsRequest indicates an expected call of GetMLTaskRunsRequest. +func (mr *MockGlueAPIMockRecorder) GetMLTaskRunsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMLTaskRunsRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetMLTaskRunsRequest), arg0) +} + +// GetMLTaskRunsWithContext mocks base method. +func (m *MockGlueAPI) GetMLTaskRunsWithContext(arg0 aws.Context, arg1 *glue.GetMLTaskRunsInput, arg2 ...request.Option) (*glue.GetMLTaskRunsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetMLTaskRunsWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetMLTaskRunsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetMLTaskRunsWithContext indicates an expected call of GetMLTaskRunsWithContext. +func (mr *MockGlueAPIMockRecorder) GetMLTaskRunsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMLTaskRunsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetMLTaskRunsWithContext), varargs...) +} + +// GetMLTransform mocks base method. +func (m *MockGlueAPI) GetMLTransform(arg0 *glue.GetMLTransformInput) (*glue.GetMLTransformOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetMLTransform", arg0) + ret0, _ := ret[0].(*glue.GetMLTransformOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetMLTransform indicates an expected call of GetMLTransform. +func (mr *MockGlueAPIMockRecorder) GetMLTransform(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMLTransform", reflect.TypeOf((*MockGlueAPI)(nil).GetMLTransform), arg0) +} + +// GetMLTransformRequest mocks base method. +func (m *MockGlueAPI) GetMLTransformRequest(arg0 *glue.GetMLTransformInput) (*request.Request, *glue.GetMLTransformOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetMLTransformRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetMLTransformOutput) + return ret0, ret1 +} + +// GetMLTransformRequest indicates an expected call of GetMLTransformRequest. +func (mr *MockGlueAPIMockRecorder) GetMLTransformRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMLTransformRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetMLTransformRequest), arg0) +} + +// GetMLTransformWithContext mocks base method. +func (m *MockGlueAPI) GetMLTransformWithContext(arg0 aws.Context, arg1 *glue.GetMLTransformInput, arg2 ...request.Option) (*glue.GetMLTransformOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetMLTransformWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetMLTransformOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetMLTransformWithContext indicates an expected call of GetMLTransformWithContext. +func (mr *MockGlueAPIMockRecorder) GetMLTransformWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMLTransformWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetMLTransformWithContext), varargs...) +} + +// GetMLTransforms mocks base method. +func (m *MockGlueAPI) GetMLTransforms(arg0 *glue.GetMLTransformsInput) (*glue.GetMLTransformsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetMLTransforms", arg0) + ret0, _ := ret[0].(*glue.GetMLTransformsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetMLTransforms indicates an expected call of GetMLTransforms. +func (mr *MockGlueAPIMockRecorder) GetMLTransforms(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMLTransforms", reflect.TypeOf((*MockGlueAPI)(nil).GetMLTransforms), arg0) +} + +// GetMLTransformsPages mocks base method. +func (m *MockGlueAPI) GetMLTransformsPages(arg0 *glue.GetMLTransformsInput, arg1 func(*glue.GetMLTransformsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetMLTransformsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetMLTransformsPages indicates an expected call of GetMLTransformsPages. +func (mr *MockGlueAPIMockRecorder) GetMLTransformsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMLTransformsPages", reflect.TypeOf((*MockGlueAPI)(nil).GetMLTransformsPages), arg0, arg1) +} + +// GetMLTransformsPagesWithContext mocks base method. +func (m *MockGlueAPI) GetMLTransformsPagesWithContext(arg0 aws.Context, arg1 *glue.GetMLTransformsInput, arg2 func(*glue.GetMLTransformsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetMLTransformsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetMLTransformsPagesWithContext indicates an expected call of GetMLTransformsPagesWithContext. +func (mr *MockGlueAPIMockRecorder) GetMLTransformsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMLTransformsPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetMLTransformsPagesWithContext), varargs...) +} + +// GetMLTransformsRequest mocks base method. +func (m *MockGlueAPI) GetMLTransformsRequest(arg0 *glue.GetMLTransformsInput) (*request.Request, *glue.GetMLTransformsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetMLTransformsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetMLTransformsOutput) + return ret0, ret1 +} + +// GetMLTransformsRequest indicates an expected call of GetMLTransformsRequest. +func (mr *MockGlueAPIMockRecorder) GetMLTransformsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMLTransformsRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetMLTransformsRequest), arg0) +} + +// GetMLTransformsWithContext mocks base method. +func (m *MockGlueAPI) GetMLTransformsWithContext(arg0 aws.Context, arg1 *glue.GetMLTransformsInput, arg2 ...request.Option) (*glue.GetMLTransformsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetMLTransformsWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetMLTransformsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetMLTransformsWithContext indicates an expected call of GetMLTransformsWithContext. +func (mr *MockGlueAPIMockRecorder) GetMLTransformsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMLTransformsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetMLTransformsWithContext), varargs...) +} + +// GetMapping mocks base method. +func (m *MockGlueAPI) GetMapping(arg0 *glue.GetMappingInput) (*glue.GetMappingOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetMapping", arg0) + ret0, _ := ret[0].(*glue.GetMappingOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetMapping indicates an expected call of GetMapping. +func (mr *MockGlueAPIMockRecorder) GetMapping(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMapping", reflect.TypeOf((*MockGlueAPI)(nil).GetMapping), arg0) +} + +// GetMappingRequest mocks base method. +func (m *MockGlueAPI) GetMappingRequest(arg0 *glue.GetMappingInput) (*request.Request, *glue.GetMappingOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetMappingRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetMappingOutput) + return ret0, ret1 +} + +// GetMappingRequest indicates an expected call of GetMappingRequest. +func (mr *MockGlueAPIMockRecorder) GetMappingRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMappingRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetMappingRequest), arg0) +} + +// GetMappingWithContext mocks base method. +func (m *MockGlueAPI) GetMappingWithContext(arg0 aws.Context, arg1 *glue.GetMappingInput, arg2 ...request.Option) (*glue.GetMappingOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetMappingWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetMappingOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetMappingWithContext indicates an expected call of GetMappingWithContext. +func (mr *MockGlueAPIMockRecorder) GetMappingWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMappingWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetMappingWithContext), varargs...) +} + +// GetPartition mocks base method. +func (m *MockGlueAPI) GetPartition(arg0 *glue.GetPartitionInput) (*glue.GetPartitionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetPartition", arg0) + ret0, _ := ret[0].(*glue.GetPartitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetPartition indicates an expected call of GetPartition. +func (mr *MockGlueAPIMockRecorder) GetPartition(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPartition", reflect.TypeOf((*MockGlueAPI)(nil).GetPartition), arg0) +} + +// GetPartitionIndexes mocks base method. +func (m *MockGlueAPI) GetPartitionIndexes(arg0 *glue.GetPartitionIndexesInput) (*glue.GetPartitionIndexesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetPartitionIndexes", arg0) + ret0, _ := ret[0].(*glue.GetPartitionIndexesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetPartitionIndexes indicates an expected call of GetPartitionIndexes. +func (mr *MockGlueAPIMockRecorder) GetPartitionIndexes(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPartitionIndexes", reflect.TypeOf((*MockGlueAPI)(nil).GetPartitionIndexes), arg0) +} + +// GetPartitionIndexesPages mocks base method. +func (m *MockGlueAPI) GetPartitionIndexesPages(arg0 *glue.GetPartitionIndexesInput, arg1 func(*glue.GetPartitionIndexesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetPartitionIndexesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetPartitionIndexesPages indicates an expected call of GetPartitionIndexesPages. +func (mr *MockGlueAPIMockRecorder) GetPartitionIndexesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPartitionIndexesPages", reflect.TypeOf((*MockGlueAPI)(nil).GetPartitionIndexesPages), arg0, arg1) +} + +// GetPartitionIndexesPagesWithContext mocks base method. +func (m *MockGlueAPI) GetPartitionIndexesPagesWithContext(arg0 aws.Context, arg1 *glue.GetPartitionIndexesInput, arg2 func(*glue.GetPartitionIndexesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetPartitionIndexesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetPartitionIndexesPagesWithContext indicates an expected call of GetPartitionIndexesPagesWithContext. +func (mr *MockGlueAPIMockRecorder) GetPartitionIndexesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPartitionIndexesPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetPartitionIndexesPagesWithContext), varargs...) +} + +// GetPartitionIndexesRequest mocks base method. +func (m *MockGlueAPI) GetPartitionIndexesRequest(arg0 *glue.GetPartitionIndexesInput) (*request.Request, *glue.GetPartitionIndexesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetPartitionIndexesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetPartitionIndexesOutput) + return ret0, ret1 +} + +// GetPartitionIndexesRequest indicates an expected call of GetPartitionIndexesRequest. +func (mr *MockGlueAPIMockRecorder) GetPartitionIndexesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPartitionIndexesRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetPartitionIndexesRequest), arg0) +} + +// GetPartitionIndexesWithContext mocks base method. +func (m *MockGlueAPI) GetPartitionIndexesWithContext(arg0 aws.Context, arg1 *glue.GetPartitionIndexesInput, arg2 ...request.Option) (*glue.GetPartitionIndexesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetPartitionIndexesWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetPartitionIndexesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetPartitionIndexesWithContext indicates an expected call of GetPartitionIndexesWithContext. +func (mr *MockGlueAPIMockRecorder) GetPartitionIndexesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPartitionIndexesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetPartitionIndexesWithContext), varargs...) +} + +// GetPartitionRequest mocks base method. +func (m *MockGlueAPI) GetPartitionRequest(arg0 *glue.GetPartitionInput) (*request.Request, *glue.GetPartitionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetPartitionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetPartitionOutput) + return ret0, ret1 +} + +// GetPartitionRequest indicates an expected call of GetPartitionRequest. +func (mr *MockGlueAPIMockRecorder) GetPartitionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPartitionRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetPartitionRequest), arg0) +} + +// GetPartitionWithContext mocks base method. +func (m *MockGlueAPI) GetPartitionWithContext(arg0 aws.Context, arg1 *glue.GetPartitionInput, arg2 ...request.Option) (*glue.GetPartitionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetPartitionWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetPartitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetPartitionWithContext indicates an expected call of GetPartitionWithContext. +func (mr *MockGlueAPIMockRecorder) GetPartitionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPartitionWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetPartitionWithContext), varargs...) +} + +// GetPartitions mocks base method. +func (m *MockGlueAPI) GetPartitions(arg0 *glue.GetPartitionsInput) (*glue.GetPartitionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetPartitions", arg0) + ret0, _ := ret[0].(*glue.GetPartitionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetPartitions indicates an expected call of GetPartitions. +func (mr *MockGlueAPIMockRecorder) GetPartitions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPartitions", reflect.TypeOf((*MockGlueAPI)(nil).GetPartitions), arg0) +} + +// GetPartitionsPages mocks base method. +func (m *MockGlueAPI) GetPartitionsPages(arg0 *glue.GetPartitionsInput, arg1 func(*glue.GetPartitionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetPartitionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetPartitionsPages indicates an expected call of GetPartitionsPages. +func (mr *MockGlueAPIMockRecorder) GetPartitionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPartitionsPages", reflect.TypeOf((*MockGlueAPI)(nil).GetPartitionsPages), arg0, arg1) +} + +// GetPartitionsPagesWithContext mocks base method. +func (m *MockGlueAPI) GetPartitionsPagesWithContext(arg0 aws.Context, arg1 *glue.GetPartitionsInput, arg2 func(*glue.GetPartitionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetPartitionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetPartitionsPagesWithContext indicates an expected call of GetPartitionsPagesWithContext. +func (mr *MockGlueAPIMockRecorder) GetPartitionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPartitionsPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetPartitionsPagesWithContext), varargs...) +} + +// GetPartitionsRequest mocks base method. +func (m *MockGlueAPI) GetPartitionsRequest(arg0 *glue.GetPartitionsInput) (*request.Request, *glue.GetPartitionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetPartitionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetPartitionsOutput) + return ret0, ret1 +} + +// GetPartitionsRequest indicates an expected call of GetPartitionsRequest. +func (mr *MockGlueAPIMockRecorder) GetPartitionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPartitionsRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetPartitionsRequest), arg0) +} + +// GetPartitionsWithContext mocks base method. +func (m *MockGlueAPI) GetPartitionsWithContext(arg0 aws.Context, arg1 *glue.GetPartitionsInput, arg2 ...request.Option) (*glue.GetPartitionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetPartitionsWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetPartitionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetPartitionsWithContext indicates an expected call of GetPartitionsWithContext. +func (mr *MockGlueAPIMockRecorder) GetPartitionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPartitionsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetPartitionsWithContext), varargs...) +} + +// GetPlan mocks base method. +func (m *MockGlueAPI) GetPlan(arg0 *glue.GetPlanInput) (*glue.GetPlanOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetPlan", arg0) + ret0, _ := ret[0].(*glue.GetPlanOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetPlan indicates an expected call of GetPlan. +func (mr *MockGlueAPIMockRecorder) GetPlan(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPlan", reflect.TypeOf((*MockGlueAPI)(nil).GetPlan), arg0) +} + +// GetPlanRequest mocks base method. +func (m *MockGlueAPI) GetPlanRequest(arg0 *glue.GetPlanInput) (*request.Request, *glue.GetPlanOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetPlanRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetPlanOutput) + return ret0, ret1 +} + +// GetPlanRequest indicates an expected call of GetPlanRequest. +func (mr *MockGlueAPIMockRecorder) GetPlanRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPlanRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetPlanRequest), arg0) +} + +// GetPlanWithContext mocks base method. +func (m *MockGlueAPI) GetPlanWithContext(arg0 aws.Context, arg1 *glue.GetPlanInput, arg2 ...request.Option) (*glue.GetPlanOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetPlanWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetPlanOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetPlanWithContext indicates an expected call of GetPlanWithContext. +func (mr *MockGlueAPIMockRecorder) GetPlanWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPlanWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetPlanWithContext), varargs...) +} + +// GetRegistry mocks base method. +func (m *MockGlueAPI) GetRegistry(arg0 *glue.GetRegistryInput) (*glue.GetRegistryOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetRegistry", arg0) + ret0, _ := ret[0].(*glue.GetRegistryOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetRegistry indicates an expected call of GetRegistry. +func (mr *MockGlueAPIMockRecorder) GetRegistry(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRegistry", reflect.TypeOf((*MockGlueAPI)(nil).GetRegistry), arg0) +} + +// GetRegistryRequest mocks base method. +func (m *MockGlueAPI) GetRegistryRequest(arg0 *glue.GetRegistryInput) (*request.Request, *glue.GetRegistryOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetRegistryRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetRegistryOutput) + return ret0, ret1 +} + +// GetRegistryRequest indicates an expected call of GetRegistryRequest. +func (mr *MockGlueAPIMockRecorder) GetRegistryRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRegistryRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetRegistryRequest), arg0) +} + +// GetRegistryWithContext mocks base method. +func (m *MockGlueAPI) GetRegistryWithContext(arg0 aws.Context, arg1 *glue.GetRegistryInput, arg2 ...request.Option) (*glue.GetRegistryOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetRegistryWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetRegistryOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetRegistryWithContext indicates an expected call of GetRegistryWithContext. +func (mr *MockGlueAPIMockRecorder) GetRegistryWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRegistryWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetRegistryWithContext), varargs...) +} + +// GetResourcePolicies mocks base method. +func (m *MockGlueAPI) GetResourcePolicies(arg0 *glue.GetResourcePoliciesInput) (*glue.GetResourcePoliciesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetResourcePolicies", arg0) + ret0, _ := ret[0].(*glue.GetResourcePoliciesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetResourcePolicies indicates an expected call of GetResourcePolicies. +func (mr *MockGlueAPIMockRecorder) GetResourcePolicies(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResourcePolicies", reflect.TypeOf((*MockGlueAPI)(nil).GetResourcePolicies), arg0) +} + +// GetResourcePoliciesPages mocks base method. +func (m *MockGlueAPI) GetResourcePoliciesPages(arg0 *glue.GetResourcePoliciesInput, arg1 func(*glue.GetResourcePoliciesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetResourcePoliciesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetResourcePoliciesPages indicates an expected call of GetResourcePoliciesPages. +func (mr *MockGlueAPIMockRecorder) GetResourcePoliciesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResourcePoliciesPages", reflect.TypeOf((*MockGlueAPI)(nil).GetResourcePoliciesPages), arg0, arg1) +} + +// GetResourcePoliciesPagesWithContext mocks base method. +func (m *MockGlueAPI) GetResourcePoliciesPagesWithContext(arg0 aws.Context, arg1 *glue.GetResourcePoliciesInput, arg2 func(*glue.GetResourcePoliciesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetResourcePoliciesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetResourcePoliciesPagesWithContext indicates an expected call of GetResourcePoliciesPagesWithContext. +func (mr *MockGlueAPIMockRecorder) GetResourcePoliciesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResourcePoliciesPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetResourcePoliciesPagesWithContext), varargs...) +} + +// GetResourcePoliciesRequest mocks base method. +func (m *MockGlueAPI) GetResourcePoliciesRequest(arg0 *glue.GetResourcePoliciesInput) (*request.Request, *glue.GetResourcePoliciesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetResourcePoliciesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetResourcePoliciesOutput) + return ret0, ret1 +} + +// GetResourcePoliciesRequest indicates an expected call of GetResourcePoliciesRequest. +func (mr *MockGlueAPIMockRecorder) GetResourcePoliciesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResourcePoliciesRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetResourcePoliciesRequest), arg0) +} + +// GetResourcePoliciesWithContext mocks base method. +func (m *MockGlueAPI) GetResourcePoliciesWithContext(arg0 aws.Context, arg1 *glue.GetResourcePoliciesInput, arg2 ...request.Option) (*glue.GetResourcePoliciesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetResourcePoliciesWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetResourcePoliciesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetResourcePoliciesWithContext indicates an expected call of GetResourcePoliciesWithContext. +func (mr *MockGlueAPIMockRecorder) GetResourcePoliciesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResourcePoliciesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetResourcePoliciesWithContext), varargs...) +} + +// GetResourcePolicy mocks base method. +func (m *MockGlueAPI) GetResourcePolicy(arg0 *glue.GetResourcePolicyInput) (*glue.GetResourcePolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetResourcePolicy", arg0) + ret0, _ := ret[0].(*glue.GetResourcePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetResourcePolicy indicates an expected call of GetResourcePolicy. +func (mr *MockGlueAPIMockRecorder) GetResourcePolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResourcePolicy", reflect.TypeOf((*MockGlueAPI)(nil).GetResourcePolicy), arg0) +} + +// GetResourcePolicyRequest mocks base method. +func (m *MockGlueAPI) GetResourcePolicyRequest(arg0 *glue.GetResourcePolicyInput) (*request.Request, *glue.GetResourcePolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetResourcePolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetResourcePolicyOutput) + return ret0, ret1 +} + +// GetResourcePolicyRequest indicates an expected call of GetResourcePolicyRequest. +func (mr *MockGlueAPIMockRecorder) GetResourcePolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResourcePolicyRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetResourcePolicyRequest), arg0) +} + +// GetResourcePolicyWithContext mocks base method. +func (m *MockGlueAPI) GetResourcePolicyWithContext(arg0 aws.Context, arg1 *glue.GetResourcePolicyInput, arg2 ...request.Option) (*glue.GetResourcePolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetResourcePolicyWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetResourcePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetResourcePolicyWithContext indicates an expected call of GetResourcePolicyWithContext. +func (mr *MockGlueAPIMockRecorder) GetResourcePolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResourcePolicyWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetResourcePolicyWithContext), varargs...) +} + +// GetSchema mocks base method. +func (m *MockGlueAPI) GetSchema(arg0 *glue.GetSchemaInput) (*glue.GetSchemaOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetSchema", arg0) + ret0, _ := ret[0].(*glue.GetSchemaOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetSchema indicates an expected call of GetSchema. +func (mr *MockGlueAPIMockRecorder) GetSchema(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSchema", reflect.TypeOf((*MockGlueAPI)(nil).GetSchema), arg0) +} + +// GetSchemaByDefinition mocks base method. +func (m *MockGlueAPI) GetSchemaByDefinition(arg0 *glue.GetSchemaByDefinitionInput) (*glue.GetSchemaByDefinitionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetSchemaByDefinition", arg0) + ret0, _ := ret[0].(*glue.GetSchemaByDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetSchemaByDefinition indicates an expected call of GetSchemaByDefinition. +func (mr *MockGlueAPIMockRecorder) GetSchemaByDefinition(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSchemaByDefinition", reflect.TypeOf((*MockGlueAPI)(nil).GetSchemaByDefinition), arg0) +} + +// GetSchemaByDefinitionRequest mocks base method. +func (m *MockGlueAPI) GetSchemaByDefinitionRequest(arg0 *glue.GetSchemaByDefinitionInput) (*request.Request, *glue.GetSchemaByDefinitionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetSchemaByDefinitionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetSchemaByDefinitionOutput) + return ret0, ret1 +} + +// GetSchemaByDefinitionRequest indicates an expected call of GetSchemaByDefinitionRequest. +func (mr *MockGlueAPIMockRecorder) GetSchemaByDefinitionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSchemaByDefinitionRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetSchemaByDefinitionRequest), arg0) +} + +// GetSchemaByDefinitionWithContext mocks base method. +func (m *MockGlueAPI) GetSchemaByDefinitionWithContext(arg0 aws.Context, arg1 *glue.GetSchemaByDefinitionInput, arg2 ...request.Option) (*glue.GetSchemaByDefinitionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetSchemaByDefinitionWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetSchemaByDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetSchemaByDefinitionWithContext indicates an expected call of GetSchemaByDefinitionWithContext. +func (mr *MockGlueAPIMockRecorder) GetSchemaByDefinitionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSchemaByDefinitionWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetSchemaByDefinitionWithContext), varargs...) +} + +// GetSchemaRequest mocks base method. +func (m *MockGlueAPI) GetSchemaRequest(arg0 *glue.GetSchemaInput) (*request.Request, *glue.GetSchemaOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetSchemaRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetSchemaOutput) + return ret0, ret1 +} + +// GetSchemaRequest indicates an expected call of GetSchemaRequest. +func (mr *MockGlueAPIMockRecorder) GetSchemaRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSchemaRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetSchemaRequest), arg0) +} + +// GetSchemaVersion mocks base method. +func (m *MockGlueAPI) GetSchemaVersion(arg0 *glue.GetSchemaVersionInput) (*glue.GetSchemaVersionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetSchemaVersion", arg0) + ret0, _ := ret[0].(*glue.GetSchemaVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetSchemaVersion indicates an expected call of GetSchemaVersion. +func (mr *MockGlueAPIMockRecorder) GetSchemaVersion(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSchemaVersion", reflect.TypeOf((*MockGlueAPI)(nil).GetSchemaVersion), arg0) +} + +// GetSchemaVersionRequest mocks base method. +func (m *MockGlueAPI) GetSchemaVersionRequest(arg0 *glue.GetSchemaVersionInput) (*request.Request, *glue.GetSchemaVersionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetSchemaVersionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetSchemaVersionOutput) + return ret0, ret1 +} + +// GetSchemaVersionRequest indicates an expected call of GetSchemaVersionRequest. +func (mr *MockGlueAPIMockRecorder) GetSchemaVersionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSchemaVersionRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetSchemaVersionRequest), arg0) +} + +// GetSchemaVersionWithContext mocks base method. +func (m *MockGlueAPI) GetSchemaVersionWithContext(arg0 aws.Context, arg1 *glue.GetSchemaVersionInput, arg2 ...request.Option) (*glue.GetSchemaVersionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetSchemaVersionWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetSchemaVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetSchemaVersionWithContext indicates an expected call of GetSchemaVersionWithContext. +func (mr *MockGlueAPIMockRecorder) GetSchemaVersionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSchemaVersionWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetSchemaVersionWithContext), varargs...) +} + +// GetSchemaVersionsDiff mocks base method. +func (m *MockGlueAPI) GetSchemaVersionsDiff(arg0 *glue.GetSchemaVersionsDiffInput) (*glue.GetSchemaVersionsDiffOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetSchemaVersionsDiff", arg0) + ret0, _ := ret[0].(*glue.GetSchemaVersionsDiffOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetSchemaVersionsDiff indicates an expected call of GetSchemaVersionsDiff. +func (mr *MockGlueAPIMockRecorder) GetSchemaVersionsDiff(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSchemaVersionsDiff", reflect.TypeOf((*MockGlueAPI)(nil).GetSchemaVersionsDiff), arg0) +} + +// GetSchemaVersionsDiffRequest mocks base method. +func (m *MockGlueAPI) GetSchemaVersionsDiffRequest(arg0 *glue.GetSchemaVersionsDiffInput) (*request.Request, *glue.GetSchemaVersionsDiffOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetSchemaVersionsDiffRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetSchemaVersionsDiffOutput) + return ret0, ret1 +} + +// GetSchemaVersionsDiffRequest indicates an expected call of GetSchemaVersionsDiffRequest. +func (mr *MockGlueAPIMockRecorder) GetSchemaVersionsDiffRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSchemaVersionsDiffRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetSchemaVersionsDiffRequest), arg0) +} + +// GetSchemaVersionsDiffWithContext mocks base method. +func (m *MockGlueAPI) GetSchemaVersionsDiffWithContext(arg0 aws.Context, arg1 *glue.GetSchemaVersionsDiffInput, arg2 ...request.Option) (*glue.GetSchemaVersionsDiffOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetSchemaVersionsDiffWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetSchemaVersionsDiffOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetSchemaVersionsDiffWithContext indicates an expected call of GetSchemaVersionsDiffWithContext. +func (mr *MockGlueAPIMockRecorder) GetSchemaVersionsDiffWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSchemaVersionsDiffWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetSchemaVersionsDiffWithContext), varargs...) +} + +// GetSchemaWithContext mocks base method. +func (m *MockGlueAPI) GetSchemaWithContext(arg0 aws.Context, arg1 *glue.GetSchemaInput, arg2 ...request.Option) (*glue.GetSchemaOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetSchemaWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetSchemaOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetSchemaWithContext indicates an expected call of GetSchemaWithContext. +func (mr *MockGlueAPIMockRecorder) GetSchemaWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSchemaWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetSchemaWithContext), varargs...) +} + +// GetSecurityConfiguration mocks base method. +func (m *MockGlueAPI) GetSecurityConfiguration(arg0 *glue.GetSecurityConfigurationInput) (*glue.GetSecurityConfigurationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetSecurityConfiguration", arg0) + ret0, _ := ret[0].(*glue.GetSecurityConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetSecurityConfiguration indicates an expected call of GetSecurityConfiguration. +func (mr *MockGlueAPIMockRecorder) GetSecurityConfiguration(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSecurityConfiguration", reflect.TypeOf((*MockGlueAPI)(nil).GetSecurityConfiguration), arg0) +} + +// GetSecurityConfigurationRequest mocks base method. +func (m *MockGlueAPI) GetSecurityConfigurationRequest(arg0 *glue.GetSecurityConfigurationInput) (*request.Request, *glue.GetSecurityConfigurationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetSecurityConfigurationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetSecurityConfigurationOutput) + return ret0, ret1 +} + +// GetSecurityConfigurationRequest indicates an expected call of GetSecurityConfigurationRequest. +func (mr *MockGlueAPIMockRecorder) GetSecurityConfigurationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSecurityConfigurationRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetSecurityConfigurationRequest), arg0) +} + +// GetSecurityConfigurationWithContext mocks base method. +func (m *MockGlueAPI) GetSecurityConfigurationWithContext(arg0 aws.Context, arg1 *glue.GetSecurityConfigurationInput, arg2 ...request.Option) (*glue.GetSecurityConfigurationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetSecurityConfigurationWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetSecurityConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetSecurityConfigurationWithContext indicates an expected call of GetSecurityConfigurationWithContext. +func (mr *MockGlueAPIMockRecorder) GetSecurityConfigurationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSecurityConfigurationWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetSecurityConfigurationWithContext), varargs...) +} + +// GetSecurityConfigurations mocks base method. +func (m *MockGlueAPI) GetSecurityConfigurations(arg0 *glue.GetSecurityConfigurationsInput) (*glue.GetSecurityConfigurationsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetSecurityConfigurations", arg0) + ret0, _ := ret[0].(*glue.GetSecurityConfigurationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetSecurityConfigurations indicates an expected call of GetSecurityConfigurations. +func (mr *MockGlueAPIMockRecorder) GetSecurityConfigurations(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSecurityConfigurations", reflect.TypeOf((*MockGlueAPI)(nil).GetSecurityConfigurations), arg0) +} + +// GetSecurityConfigurationsPages mocks base method. +func (m *MockGlueAPI) GetSecurityConfigurationsPages(arg0 *glue.GetSecurityConfigurationsInput, arg1 func(*glue.GetSecurityConfigurationsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetSecurityConfigurationsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetSecurityConfigurationsPages indicates an expected call of GetSecurityConfigurationsPages. +func (mr *MockGlueAPIMockRecorder) GetSecurityConfigurationsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSecurityConfigurationsPages", reflect.TypeOf((*MockGlueAPI)(nil).GetSecurityConfigurationsPages), arg0, arg1) +} + +// GetSecurityConfigurationsPagesWithContext mocks base method. +func (m *MockGlueAPI) GetSecurityConfigurationsPagesWithContext(arg0 aws.Context, arg1 *glue.GetSecurityConfigurationsInput, arg2 func(*glue.GetSecurityConfigurationsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetSecurityConfigurationsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetSecurityConfigurationsPagesWithContext indicates an expected call of GetSecurityConfigurationsPagesWithContext. +func (mr *MockGlueAPIMockRecorder) GetSecurityConfigurationsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSecurityConfigurationsPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetSecurityConfigurationsPagesWithContext), varargs...) +} + +// GetSecurityConfigurationsRequest mocks base method. +func (m *MockGlueAPI) GetSecurityConfigurationsRequest(arg0 *glue.GetSecurityConfigurationsInput) (*request.Request, *glue.GetSecurityConfigurationsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetSecurityConfigurationsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetSecurityConfigurationsOutput) + return ret0, ret1 +} + +// GetSecurityConfigurationsRequest indicates an expected call of GetSecurityConfigurationsRequest. +func (mr *MockGlueAPIMockRecorder) GetSecurityConfigurationsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSecurityConfigurationsRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetSecurityConfigurationsRequest), arg0) +} + +// GetSecurityConfigurationsWithContext mocks base method. +func (m *MockGlueAPI) GetSecurityConfigurationsWithContext(arg0 aws.Context, arg1 *glue.GetSecurityConfigurationsInput, arg2 ...request.Option) (*glue.GetSecurityConfigurationsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetSecurityConfigurationsWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetSecurityConfigurationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetSecurityConfigurationsWithContext indicates an expected call of GetSecurityConfigurationsWithContext. +func (mr *MockGlueAPIMockRecorder) GetSecurityConfigurationsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSecurityConfigurationsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetSecurityConfigurationsWithContext), varargs...) +} + +// GetSession mocks base method. +func (m *MockGlueAPI) GetSession(arg0 *glue.GetSessionInput) (*glue.GetSessionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetSession", arg0) + ret0, _ := ret[0].(*glue.GetSessionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetSession indicates an expected call of GetSession. +func (mr *MockGlueAPIMockRecorder) GetSession(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSession", reflect.TypeOf((*MockGlueAPI)(nil).GetSession), arg0) +} + +// GetSessionRequest mocks base method. +func (m *MockGlueAPI) GetSessionRequest(arg0 *glue.GetSessionInput) (*request.Request, *glue.GetSessionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetSessionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetSessionOutput) + return ret0, ret1 +} + +// GetSessionRequest indicates an expected call of GetSessionRequest. +func (mr *MockGlueAPIMockRecorder) GetSessionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSessionRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetSessionRequest), arg0) +} + +// GetSessionWithContext mocks base method. +func (m *MockGlueAPI) GetSessionWithContext(arg0 aws.Context, arg1 *glue.GetSessionInput, arg2 ...request.Option) (*glue.GetSessionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetSessionWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetSessionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetSessionWithContext indicates an expected call of GetSessionWithContext. +func (mr *MockGlueAPIMockRecorder) GetSessionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSessionWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetSessionWithContext), varargs...) +} + +// GetStatement mocks base method. +func (m *MockGlueAPI) GetStatement(arg0 *glue.GetStatementInput) (*glue.GetStatementOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetStatement", arg0) + ret0, _ := ret[0].(*glue.GetStatementOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetStatement indicates an expected call of GetStatement. +func (mr *MockGlueAPIMockRecorder) GetStatement(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStatement", reflect.TypeOf((*MockGlueAPI)(nil).GetStatement), arg0) +} + +// GetStatementRequest mocks base method. +func (m *MockGlueAPI) GetStatementRequest(arg0 *glue.GetStatementInput) (*request.Request, *glue.GetStatementOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetStatementRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetStatementOutput) + return ret0, ret1 +} + +// GetStatementRequest indicates an expected call of GetStatementRequest. +func (mr *MockGlueAPIMockRecorder) GetStatementRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStatementRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetStatementRequest), arg0) +} + +// GetStatementWithContext mocks base method. +func (m *MockGlueAPI) GetStatementWithContext(arg0 aws.Context, arg1 *glue.GetStatementInput, arg2 ...request.Option) (*glue.GetStatementOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetStatementWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetStatementOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetStatementWithContext indicates an expected call of GetStatementWithContext. +func (mr *MockGlueAPIMockRecorder) GetStatementWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStatementWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetStatementWithContext), varargs...) +} + +// GetTable mocks base method. +func (m *MockGlueAPI) GetTable(arg0 *glue.GetTableInput) (*glue.GetTableOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetTable", arg0) + ret0, _ := ret[0].(*glue.GetTableOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetTable indicates an expected call of GetTable. +func (mr *MockGlueAPIMockRecorder) GetTable(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTable", reflect.TypeOf((*MockGlueAPI)(nil).GetTable), arg0) +} + +// GetTableOptimizer mocks base method. +func (m *MockGlueAPI) GetTableOptimizer(arg0 *glue.GetTableOptimizerInput) (*glue.GetTableOptimizerOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetTableOptimizer", arg0) + ret0, _ := ret[0].(*glue.GetTableOptimizerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetTableOptimizer indicates an expected call of GetTableOptimizer. +func (mr *MockGlueAPIMockRecorder) GetTableOptimizer(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTableOptimizer", reflect.TypeOf((*MockGlueAPI)(nil).GetTableOptimizer), arg0) +} + +// GetTableOptimizerRequest mocks base method. +func (m *MockGlueAPI) GetTableOptimizerRequest(arg0 *glue.GetTableOptimizerInput) (*request.Request, *glue.GetTableOptimizerOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetTableOptimizerRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetTableOptimizerOutput) + return ret0, ret1 +} + +// GetTableOptimizerRequest indicates an expected call of GetTableOptimizerRequest. +func (mr *MockGlueAPIMockRecorder) GetTableOptimizerRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTableOptimizerRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetTableOptimizerRequest), arg0) +} + +// GetTableOptimizerWithContext mocks base method. +func (m *MockGlueAPI) GetTableOptimizerWithContext(arg0 aws.Context, arg1 *glue.GetTableOptimizerInput, arg2 ...request.Option) (*glue.GetTableOptimizerOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetTableOptimizerWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetTableOptimizerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetTableOptimizerWithContext indicates an expected call of GetTableOptimizerWithContext. +func (mr *MockGlueAPIMockRecorder) GetTableOptimizerWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTableOptimizerWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetTableOptimizerWithContext), varargs...) +} + +// GetTableRequest mocks base method. +func (m *MockGlueAPI) GetTableRequest(arg0 *glue.GetTableInput) (*request.Request, *glue.GetTableOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetTableRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetTableOutput) + return ret0, ret1 +} + +// GetTableRequest indicates an expected call of GetTableRequest. +func (mr *MockGlueAPIMockRecorder) GetTableRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTableRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetTableRequest), arg0) +} + +// GetTableVersion mocks base method. +func (m *MockGlueAPI) GetTableVersion(arg0 *glue.GetTableVersionInput) (*glue.GetTableVersionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetTableVersion", arg0) + ret0, _ := ret[0].(*glue.GetTableVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetTableVersion indicates an expected call of GetTableVersion. +func (mr *MockGlueAPIMockRecorder) GetTableVersion(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTableVersion", reflect.TypeOf((*MockGlueAPI)(nil).GetTableVersion), arg0) +} + +// GetTableVersionRequest mocks base method. +func (m *MockGlueAPI) GetTableVersionRequest(arg0 *glue.GetTableVersionInput) (*request.Request, *glue.GetTableVersionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetTableVersionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetTableVersionOutput) + return ret0, ret1 +} + +// GetTableVersionRequest indicates an expected call of GetTableVersionRequest. +func (mr *MockGlueAPIMockRecorder) GetTableVersionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTableVersionRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetTableVersionRequest), arg0) +} + +// GetTableVersionWithContext mocks base method. +func (m *MockGlueAPI) GetTableVersionWithContext(arg0 aws.Context, arg1 *glue.GetTableVersionInput, arg2 ...request.Option) (*glue.GetTableVersionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetTableVersionWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetTableVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetTableVersionWithContext indicates an expected call of GetTableVersionWithContext. +func (mr *MockGlueAPIMockRecorder) GetTableVersionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTableVersionWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetTableVersionWithContext), varargs...) +} + +// GetTableVersions mocks base method. +func (m *MockGlueAPI) GetTableVersions(arg0 *glue.GetTableVersionsInput) (*glue.GetTableVersionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetTableVersions", arg0) + ret0, _ := ret[0].(*glue.GetTableVersionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetTableVersions indicates an expected call of GetTableVersions. +func (mr *MockGlueAPIMockRecorder) GetTableVersions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTableVersions", reflect.TypeOf((*MockGlueAPI)(nil).GetTableVersions), arg0) +} + +// GetTableVersionsPages mocks base method. +func (m *MockGlueAPI) GetTableVersionsPages(arg0 *glue.GetTableVersionsInput, arg1 func(*glue.GetTableVersionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetTableVersionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetTableVersionsPages indicates an expected call of GetTableVersionsPages. +func (mr *MockGlueAPIMockRecorder) GetTableVersionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTableVersionsPages", reflect.TypeOf((*MockGlueAPI)(nil).GetTableVersionsPages), arg0, arg1) +} + +// GetTableVersionsPagesWithContext mocks base method. +func (m *MockGlueAPI) GetTableVersionsPagesWithContext(arg0 aws.Context, arg1 *glue.GetTableVersionsInput, arg2 func(*glue.GetTableVersionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetTableVersionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetTableVersionsPagesWithContext indicates an expected call of GetTableVersionsPagesWithContext. +func (mr *MockGlueAPIMockRecorder) GetTableVersionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTableVersionsPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetTableVersionsPagesWithContext), varargs...) +} + +// GetTableVersionsRequest mocks base method. +func (m *MockGlueAPI) GetTableVersionsRequest(arg0 *glue.GetTableVersionsInput) (*request.Request, *glue.GetTableVersionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetTableVersionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetTableVersionsOutput) + return ret0, ret1 +} + +// GetTableVersionsRequest indicates an expected call of GetTableVersionsRequest. +func (mr *MockGlueAPIMockRecorder) GetTableVersionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTableVersionsRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetTableVersionsRequest), arg0) +} + +// GetTableVersionsWithContext mocks base method. +func (m *MockGlueAPI) GetTableVersionsWithContext(arg0 aws.Context, arg1 *glue.GetTableVersionsInput, arg2 ...request.Option) (*glue.GetTableVersionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetTableVersionsWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetTableVersionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetTableVersionsWithContext indicates an expected call of GetTableVersionsWithContext. +func (mr *MockGlueAPIMockRecorder) GetTableVersionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTableVersionsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetTableVersionsWithContext), varargs...) +} + +// GetTableWithContext mocks base method. +func (m *MockGlueAPI) GetTableWithContext(arg0 aws.Context, arg1 *glue.GetTableInput, arg2 ...request.Option) (*glue.GetTableOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetTableWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetTableOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetTableWithContext indicates an expected call of GetTableWithContext. +func (mr *MockGlueAPIMockRecorder) GetTableWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTableWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetTableWithContext), varargs...) +} + +// GetTables mocks base method. +func (m *MockGlueAPI) GetTables(arg0 *glue.GetTablesInput) (*glue.GetTablesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetTables", arg0) + ret0, _ := ret[0].(*glue.GetTablesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetTables indicates an expected call of GetTables. +func (mr *MockGlueAPIMockRecorder) GetTables(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTables", reflect.TypeOf((*MockGlueAPI)(nil).GetTables), arg0) +} + +// GetTablesPages mocks base method. +func (m *MockGlueAPI) GetTablesPages(arg0 *glue.GetTablesInput, arg1 func(*glue.GetTablesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetTablesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetTablesPages indicates an expected call of GetTablesPages. +func (mr *MockGlueAPIMockRecorder) GetTablesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTablesPages", reflect.TypeOf((*MockGlueAPI)(nil).GetTablesPages), arg0, arg1) +} + +// GetTablesPagesWithContext mocks base method. +func (m *MockGlueAPI) GetTablesPagesWithContext(arg0 aws.Context, arg1 *glue.GetTablesInput, arg2 func(*glue.GetTablesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetTablesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetTablesPagesWithContext indicates an expected call of GetTablesPagesWithContext. +func (mr *MockGlueAPIMockRecorder) GetTablesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTablesPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetTablesPagesWithContext), varargs...) +} + +// GetTablesRequest mocks base method. +func (m *MockGlueAPI) GetTablesRequest(arg0 *glue.GetTablesInput) (*request.Request, *glue.GetTablesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetTablesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetTablesOutput) + return ret0, ret1 +} + +// GetTablesRequest indicates an expected call of GetTablesRequest. +func (mr *MockGlueAPIMockRecorder) GetTablesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTablesRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetTablesRequest), arg0) +} + +// GetTablesWithContext mocks base method. +func (m *MockGlueAPI) GetTablesWithContext(arg0 aws.Context, arg1 *glue.GetTablesInput, arg2 ...request.Option) (*glue.GetTablesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetTablesWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetTablesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetTablesWithContext indicates an expected call of GetTablesWithContext. +func (mr *MockGlueAPIMockRecorder) GetTablesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTablesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetTablesWithContext), varargs...) +} + +// GetTags mocks base method. +func (m *MockGlueAPI) GetTags(arg0 *glue.GetTagsInput) (*glue.GetTagsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetTags", arg0) + ret0, _ := ret[0].(*glue.GetTagsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetTags indicates an expected call of GetTags. +func (mr *MockGlueAPIMockRecorder) GetTags(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTags", reflect.TypeOf((*MockGlueAPI)(nil).GetTags), arg0) +} + +// GetTagsRequest mocks base method. +func (m *MockGlueAPI) GetTagsRequest(arg0 *glue.GetTagsInput) (*request.Request, *glue.GetTagsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetTagsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetTagsOutput) + return ret0, ret1 +} + +// GetTagsRequest indicates an expected call of GetTagsRequest. +func (mr *MockGlueAPIMockRecorder) GetTagsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTagsRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetTagsRequest), arg0) +} + +// GetTagsWithContext mocks base method. +func (m *MockGlueAPI) GetTagsWithContext(arg0 aws.Context, arg1 *glue.GetTagsInput, arg2 ...request.Option) (*glue.GetTagsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetTagsWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetTagsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetTagsWithContext indicates an expected call of GetTagsWithContext. +func (mr *MockGlueAPIMockRecorder) GetTagsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTagsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetTagsWithContext), varargs...) +} + +// GetTrigger mocks base method. +func (m *MockGlueAPI) GetTrigger(arg0 *glue.GetTriggerInput) (*glue.GetTriggerOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetTrigger", arg0) + ret0, _ := ret[0].(*glue.GetTriggerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetTrigger indicates an expected call of GetTrigger. +func (mr *MockGlueAPIMockRecorder) GetTrigger(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTrigger", reflect.TypeOf((*MockGlueAPI)(nil).GetTrigger), arg0) +} + +// GetTriggerRequest mocks base method. +func (m *MockGlueAPI) GetTriggerRequest(arg0 *glue.GetTriggerInput) (*request.Request, *glue.GetTriggerOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetTriggerRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetTriggerOutput) + return ret0, ret1 +} + +// GetTriggerRequest indicates an expected call of GetTriggerRequest. +func (mr *MockGlueAPIMockRecorder) GetTriggerRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTriggerRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetTriggerRequest), arg0) +} + +// GetTriggerWithContext mocks base method. +func (m *MockGlueAPI) GetTriggerWithContext(arg0 aws.Context, arg1 *glue.GetTriggerInput, arg2 ...request.Option) (*glue.GetTriggerOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetTriggerWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetTriggerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetTriggerWithContext indicates an expected call of GetTriggerWithContext. +func (mr *MockGlueAPIMockRecorder) GetTriggerWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTriggerWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetTriggerWithContext), varargs...) +} + +// GetTriggers mocks base method. +func (m *MockGlueAPI) GetTriggers(arg0 *glue.GetTriggersInput) (*glue.GetTriggersOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetTriggers", arg0) + ret0, _ := ret[0].(*glue.GetTriggersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetTriggers indicates an expected call of GetTriggers. +func (mr *MockGlueAPIMockRecorder) GetTriggers(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTriggers", reflect.TypeOf((*MockGlueAPI)(nil).GetTriggers), arg0) +} + +// GetTriggersPages mocks base method. +func (m *MockGlueAPI) GetTriggersPages(arg0 *glue.GetTriggersInput, arg1 func(*glue.GetTriggersOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetTriggersPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetTriggersPages indicates an expected call of GetTriggersPages. +func (mr *MockGlueAPIMockRecorder) GetTriggersPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTriggersPages", reflect.TypeOf((*MockGlueAPI)(nil).GetTriggersPages), arg0, arg1) +} + +// GetTriggersPagesWithContext mocks base method. +func (m *MockGlueAPI) GetTriggersPagesWithContext(arg0 aws.Context, arg1 *glue.GetTriggersInput, arg2 func(*glue.GetTriggersOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetTriggersPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetTriggersPagesWithContext indicates an expected call of GetTriggersPagesWithContext. +func (mr *MockGlueAPIMockRecorder) GetTriggersPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTriggersPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetTriggersPagesWithContext), varargs...) +} + +// GetTriggersRequest mocks base method. +func (m *MockGlueAPI) GetTriggersRequest(arg0 *glue.GetTriggersInput) (*request.Request, *glue.GetTriggersOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetTriggersRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetTriggersOutput) + return ret0, ret1 +} + +// GetTriggersRequest indicates an expected call of GetTriggersRequest. +func (mr *MockGlueAPIMockRecorder) GetTriggersRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTriggersRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetTriggersRequest), arg0) +} + +// GetTriggersWithContext mocks base method. +func (m *MockGlueAPI) GetTriggersWithContext(arg0 aws.Context, arg1 *glue.GetTriggersInput, arg2 ...request.Option) (*glue.GetTriggersOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetTriggersWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetTriggersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetTriggersWithContext indicates an expected call of GetTriggersWithContext. +func (mr *MockGlueAPIMockRecorder) GetTriggersWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTriggersWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetTriggersWithContext), varargs...) +} + +// GetUnfilteredPartitionMetadata mocks base method. +func (m *MockGlueAPI) GetUnfilteredPartitionMetadata(arg0 *glue.GetUnfilteredPartitionMetadataInput) (*glue.GetUnfilteredPartitionMetadataOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetUnfilteredPartitionMetadata", arg0) + ret0, _ := ret[0].(*glue.GetUnfilteredPartitionMetadataOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetUnfilteredPartitionMetadata indicates an expected call of GetUnfilteredPartitionMetadata. +func (mr *MockGlueAPIMockRecorder) GetUnfilteredPartitionMetadata(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUnfilteredPartitionMetadata", reflect.TypeOf((*MockGlueAPI)(nil).GetUnfilteredPartitionMetadata), arg0) +} + +// GetUnfilteredPartitionMetadataRequest mocks base method. +func (m *MockGlueAPI) GetUnfilteredPartitionMetadataRequest(arg0 *glue.GetUnfilteredPartitionMetadataInput) (*request.Request, *glue.GetUnfilteredPartitionMetadataOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetUnfilteredPartitionMetadataRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetUnfilteredPartitionMetadataOutput) + return ret0, ret1 +} + +// GetUnfilteredPartitionMetadataRequest indicates an expected call of GetUnfilteredPartitionMetadataRequest. +func (mr *MockGlueAPIMockRecorder) GetUnfilteredPartitionMetadataRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUnfilteredPartitionMetadataRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetUnfilteredPartitionMetadataRequest), arg0) +} + +// GetUnfilteredPartitionMetadataWithContext mocks base method. +func (m *MockGlueAPI) GetUnfilteredPartitionMetadataWithContext(arg0 aws.Context, arg1 *glue.GetUnfilteredPartitionMetadataInput, arg2 ...request.Option) (*glue.GetUnfilteredPartitionMetadataOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetUnfilteredPartitionMetadataWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetUnfilteredPartitionMetadataOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetUnfilteredPartitionMetadataWithContext indicates an expected call of GetUnfilteredPartitionMetadataWithContext. +func (mr *MockGlueAPIMockRecorder) GetUnfilteredPartitionMetadataWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUnfilteredPartitionMetadataWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetUnfilteredPartitionMetadataWithContext), varargs...) +} + +// GetUnfilteredPartitionsMetadata mocks base method. +func (m *MockGlueAPI) GetUnfilteredPartitionsMetadata(arg0 *glue.GetUnfilteredPartitionsMetadataInput) (*glue.GetUnfilteredPartitionsMetadataOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetUnfilteredPartitionsMetadata", arg0) + ret0, _ := ret[0].(*glue.GetUnfilteredPartitionsMetadataOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetUnfilteredPartitionsMetadata indicates an expected call of GetUnfilteredPartitionsMetadata. +func (mr *MockGlueAPIMockRecorder) GetUnfilteredPartitionsMetadata(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUnfilteredPartitionsMetadata", reflect.TypeOf((*MockGlueAPI)(nil).GetUnfilteredPartitionsMetadata), arg0) +} + +// GetUnfilteredPartitionsMetadataPages mocks base method. +func (m *MockGlueAPI) GetUnfilteredPartitionsMetadataPages(arg0 *glue.GetUnfilteredPartitionsMetadataInput, arg1 func(*glue.GetUnfilteredPartitionsMetadataOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetUnfilteredPartitionsMetadataPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetUnfilteredPartitionsMetadataPages indicates an expected call of GetUnfilteredPartitionsMetadataPages. +func (mr *MockGlueAPIMockRecorder) GetUnfilteredPartitionsMetadataPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUnfilteredPartitionsMetadataPages", reflect.TypeOf((*MockGlueAPI)(nil).GetUnfilteredPartitionsMetadataPages), arg0, arg1) +} + +// GetUnfilteredPartitionsMetadataPagesWithContext mocks base method. +func (m *MockGlueAPI) GetUnfilteredPartitionsMetadataPagesWithContext(arg0 aws.Context, arg1 *glue.GetUnfilteredPartitionsMetadataInput, arg2 func(*glue.GetUnfilteredPartitionsMetadataOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetUnfilteredPartitionsMetadataPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetUnfilteredPartitionsMetadataPagesWithContext indicates an expected call of GetUnfilteredPartitionsMetadataPagesWithContext. +func (mr *MockGlueAPIMockRecorder) GetUnfilteredPartitionsMetadataPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUnfilteredPartitionsMetadataPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetUnfilteredPartitionsMetadataPagesWithContext), varargs...) +} + +// GetUnfilteredPartitionsMetadataRequest mocks base method. +func (m *MockGlueAPI) GetUnfilteredPartitionsMetadataRequest(arg0 *glue.GetUnfilteredPartitionsMetadataInput) (*request.Request, *glue.GetUnfilteredPartitionsMetadataOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetUnfilteredPartitionsMetadataRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetUnfilteredPartitionsMetadataOutput) + return ret0, ret1 +} + +// GetUnfilteredPartitionsMetadataRequest indicates an expected call of GetUnfilteredPartitionsMetadataRequest. +func (mr *MockGlueAPIMockRecorder) GetUnfilteredPartitionsMetadataRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUnfilteredPartitionsMetadataRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetUnfilteredPartitionsMetadataRequest), arg0) +} + +// GetUnfilteredPartitionsMetadataWithContext mocks base method. +func (m *MockGlueAPI) GetUnfilteredPartitionsMetadataWithContext(arg0 aws.Context, arg1 *glue.GetUnfilteredPartitionsMetadataInput, arg2 ...request.Option) (*glue.GetUnfilteredPartitionsMetadataOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetUnfilteredPartitionsMetadataWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetUnfilteredPartitionsMetadataOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetUnfilteredPartitionsMetadataWithContext indicates an expected call of GetUnfilteredPartitionsMetadataWithContext. +func (mr *MockGlueAPIMockRecorder) GetUnfilteredPartitionsMetadataWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUnfilteredPartitionsMetadataWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetUnfilteredPartitionsMetadataWithContext), varargs...) +} + +// GetUnfilteredTableMetadata mocks base method. +func (m *MockGlueAPI) GetUnfilteredTableMetadata(arg0 *glue.GetUnfilteredTableMetadataInput) (*glue.GetUnfilteredTableMetadataOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetUnfilteredTableMetadata", arg0) + ret0, _ := ret[0].(*glue.GetUnfilteredTableMetadataOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetUnfilteredTableMetadata indicates an expected call of GetUnfilteredTableMetadata. +func (mr *MockGlueAPIMockRecorder) GetUnfilteredTableMetadata(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUnfilteredTableMetadata", reflect.TypeOf((*MockGlueAPI)(nil).GetUnfilteredTableMetadata), arg0) +} + +// GetUnfilteredTableMetadataRequest mocks base method. +func (m *MockGlueAPI) GetUnfilteredTableMetadataRequest(arg0 *glue.GetUnfilteredTableMetadataInput) (*request.Request, *glue.GetUnfilteredTableMetadataOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetUnfilteredTableMetadataRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetUnfilteredTableMetadataOutput) + return ret0, ret1 +} + +// GetUnfilteredTableMetadataRequest indicates an expected call of GetUnfilteredTableMetadataRequest. +func (mr *MockGlueAPIMockRecorder) GetUnfilteredTableMetadataRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUnfilteredTableMetadataRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetUnfilteredTableMetadataRequest), arg0) +} + +// GetUnfilteredTableMetadataWithContext mocks base method. +func (m *MockGlueAPI) GetUnfilteredTableMetadataWithContext(arg0 aws.Context, arg1 *glue.GetUnfilteredTableMetadataInput, arg2 ...request.Option) (*glue.GetUnfilteredTableMetadataOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetUnfilteredTableMetadataWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetUnfilteredTableMetadataOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetUnfilteredTableMetadataWithContext indicates an expected call of GetUnfilteredTableMetadataWithContext. +func (mr *MockGlueAPIMockRecorder) GetUnfilteredTableMetadataWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUnfilteredTableMetadataWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetUnfilteredTableMetadataWithContext), varargs...) +} + +// GetUserDefinedFunction mocks base method. +func (m *MockGlueAPI) GetUserDefinedFunction(arg0 *glue.GetUserDefinedFunctionInput) (*glue.GetUserDefinedFunctionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetUserDefinedFunction", arg0) + ret0, _ := ret[0].(*glue.GetUserDefinedFunctionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetUserDefinedFunction indicates an expected call of GetUserDefinedFunction. +func (mr *MockGlueAPIMockRecorder) GetUserDefinedFunction(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserDefinedFunction", reflect.TypeOf((*MockGlueAPI)(nil).GetUserDefinedFunction), arg0) +} + +// GetUserDefinedFunctionRequest mocks base method. +func (m *MockGlueAPI) GetUserDefinedFunctionRequest(arg0 *glue.GetUserDefinedFunctionInput) (*request.Request, *glue.GetUserDefinedFunctionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetUserDefinedFunctionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetUserDefinedFunctionOutput) + return ret0, ret1 +} + +// GetUserDefinedFunctionRequest indicates an expected call of GetUserDefinedFunctionRequest. +func (mr *MockGlueAPIMockRecorder) GetUserDefinedFunctionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserDefinedFunctionRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetUserDefinedFunctionRequest), arg0) +} + +// GetUserDefinedFunctionWithContext mocks base method. +func (m *MockGlueAPI) GetUserDefinedFunctionWithContext(arg0 aws.Context, arg1 *glue.GetUserDefinedFunctionInput, arg2 ...request.Option) (*glue.GetUserDefinedFunctionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetUserDefinedFunctionWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetUserDefinedFunctionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetUserDefinedFunctionWithContext indicates an expected call of GetUserDefinedFunctionWithContext. +func (mr *MockGlueAPIMockRecorder) GetUserDefinedFunctionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserDefinedFunctionWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetUserDefinedFunctionWithContext), varargs...) +} + +// GetUserDefinedFunctions mocks base method. +func (m *MockGlueAPI) GetUserDefinedFunctions(arg0 *glue.GetUserDefinedFunctionsInput) (*glue.GetUserDefinedFunctionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetUserDefinedFunctions", arg0) + ret0, _ := ret[0].(*glue.GetUserDefinedFunctionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetUserDefinedFunctions indicates an expected call of GetUserDefinedFunctions. +func (mr *MockGlueAPIMockRecorder) GetUserDefinedFunctions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserDefinedFunctions", reflect.TypeOf((*MockGlueAPI)(nil).GetUserDefinedFunctions), arg0) +} + +// GetUserDefinedFunctionsPages mocks base method. +func (m *MockGlueAPI) GetUserDefinedFunctionsPages(arg0 *glue.GetUserDefinedFunctionsInput, arg1 func(*glue.GetUserDefinedFunctionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetUserDefinedFunctionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetUserDefinedFunctionsPages indicates an expected call of GetUserDefinedFunctionsPages. +func (mr *MockGlueAPIMockRecorder) GetUserDefinedFunctionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserDefinedFunctionsPages", reflect.TypeOf((*MockGlueAPI)(nil).GetUserDefinedFunctionsPages), arg0, arg1) +} + +// GetUserDefinedFunctionsPagesWithContext mocks base method. +func (m *MockGlueAPI) GetUserDefinedFunctionsPagesWithContext(arg0 aws.Context, arg1 *glue.GetUserDefinedFunctionsInput, arg2 func(*glue.GetUserDefinedFunctionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetUserDefinedFunctionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetUserDefinedFunctionsPagesWithContext indicates an expected call of GetUserDefinedFunctionsPagesWithContext. +func (mr *MockGlueAPIMockRecorder) GetUserDefinedFunctionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserDefinedFunctionsPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetUserDefinedFunctionsPagesWithContext), varargs...) +} + +// GetUserDefinedFunctionsRequest mocks base method. +func (m *MockGlueAPI) GetUserDefinedFunctionsRequest(arg0 *glue.GetUserDefinedFunctionsInput) (*request.Request, *glue.GetUserDefinedFunctionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetUserDefinedFunctionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetUserDefinedFunctionsOutput) + return ret0, ret1 +} + +// GetUserDefinedFunctionsRequest indicates an expected call of GetUserDefinedFunctionsRequest. +func (mr *MockGlueAPIMockRecorder) GetUserDefinedFunctionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserDefinedFunctionsRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetUserDefinedFunctionsRequest), arg0) +} + +// GetUserDefinedFunctionsWithContext mocks base method. +func (m *MockGlueAPI) GetUserDefinedFunctionsWithContext(arg0 aws.Context, arg1 *glue.GetUserDefinedFunctionsInput, arg2 ...request.Option) (*glue.GetUserDefinedFunctionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetUserDefinedFunctionsWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetUserDefinedFunctionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetUserDefinedFunctionsWithContext indicates an expected call of GetUserDefinedFunctionsWithContext. +func (mr *MockGlueAPIMockRecorder) GetUserDefinedFunctionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserDefinedFunctionsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetUserDefinedFunctionsWithContext), varargs...) +} + +// GetWorkflow mocks base method. +func (m *MockGlueAPI) GetWorkflow(arg0 *glue.GetWorkflowInput) (*glue.GetWorkflowOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetWorkflow", arg0) + ret0, _ := ret[0].(*glue.GetWorkflowOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetWorkflow indicates an expected call of GetWorkflow. +func (mr *MockGlueAPIMockRecorder) GetWorkflow(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkflow", reflect.TypeOf((*MockGlueAPI)(nil).GetWorkflow), arg0) +} + +// GetWorkflowRequest mocks base method. +func (m *MockGlueAPI) GetWorkflowRequest(arg0 *glue.GetWorkflowInput) (*request.Request, *glue.GetWorkflowOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetWorkflowRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetWorkflowOutput) + return ret0, ret1 +} + +// GetWorkflowRequest indicates an expected call of GetWorkflowRequest. +func (mr *MockGlueAPIMockRecorder) GetWorkflowRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkflowRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetWorkflowRequest), arg0) +} + +// GetWorkflowRun mocks base method. +func (m *MockGlueAPI) GetWorkflowRun(arg0 *glue.GetWorkflowRunInput) (*glue.GetWorkflowRunOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetWorkflowRun", arg0) + ret0, _ := ret[0].(*glue.GetWorkflowRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetWorkflowRun indicates an expected call of GetWorkflowRun. +func (mr *MockGlueAPIMockRecorder) GetWorkflowRun(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkflowRun", reflect.TypeOf((*MockGlueAPI)(nil).GetWorkflowRun), arg0) +} + +// GetWorkflowRunProperties mocks base method. +func (m *MockGlueAPI) GetWorkflowRunProperties(arg0 *glue.GetWorkflowRunPropertiesInput) (*glue.GetWorkflowRunPropertiesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetWorkflowRunProperties", arg0) + ret0, _ := ret[0].(*glue.GetWorkflowRunPropertiesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetWorkflowRunProperties indicates an expected call of GetWorkflowRunProperties. +func (mr *MockGlueAPIMockRecorder) GetWorkflowRunProperties(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkflowRunProperties", reflect.TypeOf((*MockGlueAPI)(nil).GetWorkflowRunProperties), arg0) +} + +// GetWorkflowRunPropertiesRequest mocks base method. +func (m *MockGlueAPI) GetWorkflowRunPropertiesRequest(arg0 *glue.GetWorkflowRunPropertiesInput) (*request.Request, *glue.GetWorkflowRunPropertiesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetWorkflowRunPropertiesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetWorkflowRunPropertiesOutput) + return ret0, ret1 +} + +// GetWorkflowRunPropertiesRequest indicates an expected call of GetWorkflowRunPropertiesRequest. +func (mr *MockGlueAPIMockRecorder) GetWorkflowRunPropertiesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkflowRunPropertiesRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetWorkflowRunPropertiesRequest), arg0) +} + +// GetWorkflowRunPropertiesWithContext mocks base method. +func (m *MockGlueAPI) GetWorkflowRunPropertiesWithContext(arg0 aws.Context, arg1 *glue.GetWorkflowRunPropertiesInput, arg2 ...request.Option) (*glue.GetWorkflowRunPropertiesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetWorkflowRunPropertiesWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetWorkflowRunPropertiesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetWorkflowRunPropertiesWithContext indicates an expected call of GetWorkflowRunPropertiesWithContext. +func (mr *MockGlueAPIMockRecorder) GetWorkflowRunPropertiesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkflowRunPropertiesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetWorkflowRunPropertiesWithContext), varargs...) +} + +// GetWorkflowRunRequest mocks base method. +func (m *MockGlueAPI) GetWorkflowRunRequest(arg0 *glue.GetWorkflowRunInput) (*request.Request, *glue.GetWorkflowRunOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetWorkflowRunRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetWorkflowRunOutput) + return ret0, ret1 +} + +// GetWorkflowRunRequest indicates an expected call of GetWorkflowRunRequest. +func (mr *MockGlueAPIMockRecorder) GetWorkflowRunRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkflowRunRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetWorkflowRunRequest), arg0) +} + +// GetWorkflowRunWithContext mocks base method. +func (m *MockGlueAPI) GetWorkflowRunWithContext(arg0 aws.Context, arg1 *glue.GetWorkflowRunInput, arg2 ...request.Option) (*glue.GetWorkflowRunOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetWorkflowRunWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetWorkflowRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetWorkflowRunWithContext indicates an expected call of GetWorkflowRunWithContext. +func (mr *MockGlueAPIMockRecorder) GetWorkflowRunWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkflowRunWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetWorkflowRunWithContext), varargs...) +} + +// GetWorkflowRuns mocks base method. +func (m *MockGlueAPI) GetWorkflowRuns(arg0 *glue.GetWorkflowRunsInput) (*glue.GetWorkflowRunsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetWorkflowRuns", arg0) + ret0, _ := ret[0].(*glue.GetWorkflowRunsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetWorkflowRuns indicates an expected call of GetWorkflowRuns. +func (mr *MockGlueAPIMockRecorder) GetWorkflowRuns(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkflowRuns", reflect.TypeOf((*MockGlueAPI)(nil).GetWorkflowRuns), arg0) +} + +// GetWorkflowRunsPages mocks base method. +func (m *MockGlueAPI) GetWorkflowRunsPages(arg0 *glue.GetWorkflowRunsInput, arg1 func(*glue.GetWorkflowRunsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetWorkflowRunsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetWorkflowRunsPages indicates an expected call of GetWorkflowRunsPages. +func (mr *MockGlueAPIMockRecorder) GetWorkflowRunsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkflowRunsPages", reflect.TypeOf((*MockGlueAPI)(nil).GetWorkflowRunsPages), arg0, arg1) +} + +// GetWorkflowRunsPagesWithContext mocks base method. +func (m *MockGlueAPI) GetWorkflowRunsPagesWithContext(arg0 aws.Context, arg1 *glue.GetWorkflowRunsInput, arg2 func(*glue.GetWorkflowRunsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetWorkflowRunsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetWorkflowRunsPagesWithContext indicates an expected call of GetWorkflowRunsPagesWithContext. +func (mr *MockGlueAPIMockRecorder) GetWorkflowRunsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkflowRunsPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetWorkflowRunsPagesWithContext), varargs...) +} + +// GetWorkflowRunsRequest mocks base method. +func (m *MockGlueAPI) GetWorkflowRunsRequest(arg0 *glue.GetWorkflowRunsInput) (*request.Request, *glue.GetWorkflowRunsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetWorkflowRunsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetWorkflowRunsOutput) + return ret0, ret1 +} + +// GetWorkflowRunsRequest indicates an expected call of GetWorkflowRunsRequest. +func (mr *MockGlueAPIMockRecorder) GetWorkflowRunsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkflowRunsRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetWorkflowRunsRequest), arg0) +} + +// GetWorkflowRunsWithContext mocks base method. +func (m *MockGlueAPI) GetWorkflowRunsWithContext(arg0 aws.Context, arg1 *glue.GetWorkflowRunsInput, arg2 ...request.Option) (*glue.GetWorkflowRunsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetWorkflowRunsWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetWorkflowRunsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetWorkflowRunsWithContext indicates an expected call of GetWorkflowRunsWithContext. +func (mr *MockGlueAPIMockRecorder) GetWorkflowRunsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkflowRunsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetWorkflowRunsWithContext), varargs...) +} + +// GetWorkflowWithContext mocks base method. +func (m *MockGlueAPI) GetWorkflowWithContext(arg0 aws.Context, arg1 *glue.GetWorkflowInput, arg2 ...request.Option) (*glue.GetWorkflowOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetWorkflowWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetWorkflowOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetWorkflowWithContext indicates an expected call of GetWorkflowWithContext. +func (mr *MockGlueAPIMockRecorder) GetWorkflowWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkflowWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetWorkflowWithContext), varargs...) +} + +// ImportCatalogToGlue mocks base method. +func (m *MockGlueAPI) ImportCatalogToGlue(arg0 *glue.ImportCatalogToGlueInput) (*glue.ImportCatalogToGlueOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ImportCatalogToGlue", arg0) + ret0, _ := ret[0].(*glue.ImportCatalogToGlueOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ImportCatalogToGlue indicates an expected call of ImportCatalogToGlue. +func (mr *MockGlueAPIMockRecorder) ImportCatalogToGlue(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImportCatalogToGlue", reflect.TypeOf((*MockGlueAPI)(nil).ImportCatalogToGlue), arg0) +} + +// ImportCatalogToGlueRequest mocks base method. +func (m *MockGlueAPI) ImportCatalogToGlueRequest(arg0 *glue.ImportCatalogToGlueInput) (*request.Request, *glue.ImportCatalogToGlueOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ImportCatalogToGlueRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.ImportCatalogToGlueOutput) + return ret0, ret1 +} + +// ImportCatalogToGlueRequest indicates an expected call of ImportCatalogToGlueRequest. +func (mr *MockGlueAPIMockRecorder) ImportCatalogToGlueRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImportCatalogToGlueRequest", reflect.TypeOf((*MockGlueAPI)(nil).ImportCatalogToGlueRequest), arg0) +} + +// ImportCatalogToGlueWithContext mocks base method. +func (m *MockGlueAPI) ImportCatalogToGlueWithContext(arg0 aws.Context, arg1 *glue.ImportCatalogToGlueInput, arg2 ...request.Option) (*glue.ImportCatalogToGlueOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ImportCatalogToGlueWithContext", varargs...) + ret0, _ := ret[0].(*glue.ImportCatalogToGlueOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ImportCatalogToGlueWithContext indicates an expected call of ImportCatalogToGlueWithContext. +func (mr *MockGlueAPIMockRecorder) ImportCatalogToGlueWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImportCatalogToGlueWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ImportCatalogToGlueWithContext), varargs...) +} + +// ListBlueprints mocks base method. +func (m *MockGlueAPI) ListBlueprints(arg0 *glue.ListBlueprintsInput) (*glue.ListBlueprintsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListBlueprints", arg0) + ret0, _ := ret[0].(*glue.ListBlueprintsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListBlueprints indicates an expected call of ListBlueprints. +func (mr *MockGlueAPIMockRecorder) ListBlueprints(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListBlueprints", reflect.TypeOf((*MockGlueAPI)(nil).ListBlueprints), arg0) +} + +// ListBlueprintsPages mocks base method. +func (m *MockGlueAPI) ListBlueprintsPages(arg0 *glue.ListBlueprintsInput, arg1 func(*glue.ListBlueprintsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListBlueprintsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListBlueprintsPages indicates an expected call of ListBlueprintsPages. +func (mr *MockGlueAPIMockRecorder) ListBlueprintsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListBlueprintsPages", reflect.TypeOf((*MockGlueAPI)(nil).ListBlueprintsPages), arg0, arg1) +} + +// ListBlueprintsPagesWithContext mocks base method. +func (m *MockGlueAPI) ListBlueprintsPagesWithContext(arg0 aws.Context, arg1 *glue.ListBlueprintsInput, arg2 func(*glue.ListBlueprintsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListBlueprintsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListBlueprintsPagesWithContext indicates an expected call of ListBlueprintsPagesWithContext. +func (mr *MockGlueAPIMockRecorder) ListBlueprintsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListBlueprintsPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListBlueprintsPagesWithContext), varargs...) +} + +// ListBlueprintsRequest mocks base method. +func (m *MockGlueAPI) ListBlueprintsRequest(arg0 *glue.ListBlueprintsInput) (*request.Request, *glue.ListBlueprintsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListBlueprintsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.ListBlueprintsOutput) + return ret0, ret1 +} + +// ListBlueprintsRequest indicates an expected call of ListBlueprintsRequest. +func (mr *MockGlueAPIMockRecorder) ListBlueprintsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListBlueprintsRequest", reflect.TypeOf((*MockGlueAPI)(nil).ListBlueprintsRequest), arg0) +} + +// ListBlueprintsWithContext mocks base method. +func (m *MockGlueAPI) ListBlueprintsWithContext(arg0 aws.Context, arg1 *glue.ListBlueprintsInput, arg2 ...request.Option) (*glue.ListBlueprintsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListBlueprintsWithContext", varargs...) + ret0, _ := ret[0].(*glue.ListBlueprintsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListBlueprintsWithContext indicates an expected call of ListBlueprintsWithContext. +func (mr *MockGlueAPIMockRecorder) ListBlueprintsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListBlueprintsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListBlueprintsWithContext), varargs...) +} + +// ListColumnStatisticsTaskRuns mocks base method. +func (m *MockGlueAPI) ListColumnStatisticsTaskRuns(arg0 *glue.ListColumnStatisticsTaskRunsInput) (*glue.ListColumnStatisticsTaskRunsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListColumnStatisticsTaskRuns", arg0) + ret0, _ := ret[0].(*glue.ListColumnStatisticsTaskRunsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListColumnStatisticsTaskRuns indicates an expected call of ListColumnStatisticsTaskRuns. +func (mr *MockGlueAPIMockRecorder) ListColumnStatisticsTaskRuns(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListColumnStatisticsTaskRuns", reflect.TypeOf((*MockGlueAPI)(nil).ListColumnStatisticsTaskRuns), arg0) +} + +// ListColumnStatisticsTaskRunsPages mocks base method. +func (m *MockGlueAPI) ListColumnStatisticsTaskRunsPages(arg0 *glue.ListColumnStatisticsTaskRunsInput, arg1 func(*glue.ListColumnStatisticsTaskRunsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListColumnStatisticsTaskRunsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListColumnStatisticsTaskRunsPages indicates an expected call of ListColumnStatisticsTaskRunsPages. +func (mr *MockGlueAPIMockRecorder) ListColumnStatisticsTaskRunsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListColumnStatisticsTaskRunsPages", reflect.TypeOf((*MockGlueAPI)(nil).ListColumnStatisticsTaskRunsPages), arg0, arg1) +} + +// ListColumnStatisticsTaskRunsPagesWithContext mocks base method. +func (m *MockGlueAPI) ListColumnStatisticsTaskRunsPagesWithContext(arg0 aws.Context, arg1 *glue.ListColumnStatisticsTaskRunsInput, arg2 func(*glue.ListColumnStatisticsTaskRunsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListColumnStatisticsTaskRunsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListColumnStatisticsTaskRunsPagesWithContext indicates an expected call of ListColumnStatisticsTaskRunsPagesWithContext. +func (mr *MockGlueAPIMockRecorder) ListColumnStatisticsTaskRunsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListColumnStatisticsTaskRunsPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListColumnStatisticsTaskRunsPagesWithContext), varargs...) +} + +// ListColumnStatisticsTaskRunsRequest mocks base method. +func (m *MockGlueAPI) ListColumnStatisticsTaskRunsRequest(arg0 *glue.ListColumnStatisticsTaskRunsInput) (*request.Request, *glue.ListColumnStatisticsTaskRunsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListColumnStatisticsTaskRunsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.ListColumnStatisticsTaskRunsOutput) + return ret0, ret1 +} + +// ListColumnStatisticsTaskRunsRequest indicates an expected call of ListColumnStatisticsTaskRunsRequest. +func (mr *MockGlueAPIMockRecorder) ListColumnStatisticsTaskRunsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListColumnStatisticsTaskRunsRequest", reflect.TypeOf((*MockGlueAPI)(nil).ListColumnStatisticsTaskRunsRequest), arg0) +} + +// ListColumnStatisticsTaskRunsWithContext mocks base method. +func (m *MockGlueAPI) ListColumnStatisticsTaskRunsWithContext(arg0 aws.Context, arg1 *glue.ListColumnStatisticsTaskRunsInput, arg2 ...request.Option) (*glue.ListColumnStatisticsTaskRunsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListColumnStatisticsTaskRunsWithContext", varargs...) + ret0, _ := ret[0].(*glue.ListColumnStatisticsTaskRunsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListColumnStatisticsTaskRunsWithContext indicates an expected call of ListColumnStatisticsTaskRunsWithContext. +func (mr *MockGlueAPIMockRecorder) ListColumnStatisticsTaskRunsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListColumnStatisticsTaskRunsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListColumnStatisticsTaskRunsWithContext), varargs...) +} + +// ListCrawlers mocks base method. +func (m *MockGlueAPI) ListCrawlers(arg0 *glue.ListCrawlersInput) (*glue.ListCrawlersOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListCrawlers", arg0) + ret0, _ := ret[0].(*glue.ListCrawlersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListCrawlers indicates an expected call of ListCrawlers. +func (mr *MockGlueAPIMockRecorder) ListCrawlers(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCrawlers", reflect.TypeOf((*MockGlueAPI)(nil).ListCrawlers), arg0) +} + +// ListCrawlersPages mocks base method. +func (m *MockGlueAPI) ListCrawlersPages(arg0 *glue.ListCrawlersInput, arg1 func(*glue.ListCrawlersOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListCrawlersPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListCrawlersPages indicates an expected call of ListCrawlersPages. +func (mr *MockGlueAPIMockRecorder) ListCrawlersPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCrawlersPages", reflect.TypeOf((*MockGlueAPI)(nil).ListCrawlersPages), arg0, arg1) +} + +// ListCrawlersPagesWithContext mocks base method. +func (m *MockGlueAPI) ListCrawlersPagesWithContext(arg0 aws.Context, arg1 *glue.ListCrawlersInput, arg2 func(*glue.ListCrawlersOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListCrawlersPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListCrawlersPagesWithContext indicates an expected call of ListCrawlersPagesWithContext. +func (mr *MockGlueAPIMockRecorder) ListCrawlersPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCrawlersPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListCrawlersPagesWithContext), varargs...) +} + +// ListCrawlersRequest mocks base method. +func (m *MockGlueAPI) ListCrawlersRequest(arg0 *glue.ListCrawlersInput) (*request.Request, *glue.ListCrawlersOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListCrawlersRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.ListCrawlersOutput) + return ret0, ret1 +} + +// ListCrawlersRequest indicates an expected call of ListCrawlersRequest. +func (mr *MockGlueAPIMockRecorder) ListCrawlersRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCrawlersRequest", reflect.TypeOf((*MockGlueAPI)(nil).ListCrawlersRequest), arg0) +} + +// ListCrawlersWithContext mocks base method. +func (m *MockGlueAPI) ListCrawlersWithContext(arg0 aws.Context, arg1 *glue.ListCrawlersInput, arg2 ...request.Option) (*glue.ListCrawlersOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListCrawlersWithContext", varargs...) + ret0, _ := ret[0].(*glue.ListCrawlersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListCrawlersWithContext indicates an expected call of ListCrawlersWithContext. +func (mr *MockGlueAPIMockRecorder) ListCrawlersWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCrawlersWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListCrawlersWithContext), varargs...) +} + +// ListCrawls mocks base method. +func (m *MockGlueAPI) ListCrawls(arg0 *glue.ListCrawlsInput) (*glue.ListCrawlsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListCrawls", arg0) + ret0, _ := ret[0].(*glue.ListCrawlsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListCrawls indicates an expected call of ListCrawls. +func (mr *MockGlueAPIMockRecorder) ListCrawls(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCrawls", reflect.TypeOf((*MockGlueAPI)(nil).ListCrawls), arg0) +} + +// ListCrawlsRequest mocks base method. +func (m *MockGlueAPI) ListCrawlsRequest(arg0 *glue.ListCrawlsInput) (*request.Request, *glue.ListCrawlsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListCrawlsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.ListCrawlsOutput) + return ret0, ret1 +} + +// ListCrawlsRequest indicates an expected call of ListCrawlsRequest. +func (mr *MockGlueAPIMockRecorder) ListCrawlsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCrawlsRequest", reflect.TypeOf((*MockGlueAPI)(nil).ListCrawlsRequest), arg0) +} + +// ListCrawlsWithContext mocks base method. +func (m *MockGlueAPI) ListCrawlsWithContext(arg0 aws.Context, arg1 *glue.ListCrawlsInput, arg2 ...request.Option) (*glue.ListCrawlsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListCrawlsWithContext", varargs...) + ret0, _ := ret[0].(*glue.ListCrawlsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListCrawlsWithContext indicates an expected call of ListCrawlsWithContext. +func (mr *MockGlueAPIMockRecorder) ListCrawlsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCrawlsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListCrawlsWithContext), varargs...) +} + +// ListCustomEntityTypes mocks base method. +func (m *MockGlueAPI) ListCustomEntityTypes(arg0 *glue.ListCustomEntityTypesInput) (*glue.ListCustomEntityTypesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListCustomEntityTypes", arg0) + ret0, _ := ret[0].(*glue.ListCustomEntityTypesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListCustomEntityTypes indicates an expected call of ListCustomEntityTypes. +func (mr *MockGlueAPIMockRecorder) ListCustomEntityTypes(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCustomEntityTypes", reflect.TypeOf((*MockGlueAPI)(nil).ListCustomEntityTypes), arg0) +} + +// ListCustomEntityTypesPages mocks base method. +func (m *MockGlueAPI) ListCustomEntityTypesPages(arg0 *glue.ListCustomEntityTypesInput, arg1 func(*glue.ListCustomEntityTypesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListCustomEntityTypesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListCustomEntityTypesPages indicates an expected call of ListCustomEntityTypesPages. +func (mr *MockGlueAPIMockRecorder) ListCustomEntityTypesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCustomEntityTypesPages", reflect.TypeOf((*MockGlueAPI)(nil).ListCustomEntityTypesPages), arg0, arg1) +} + +// ListCustomEntityTypesPagesWithContext mocks base method. +func (m *MockGlueAPI) ListCustomEntityTypesPagesWithContext(arg0 aws.Context, arg1 *glue.ListCustomEntityTypesInput, arg2 func(*glue.ListCustomEntityTypesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListCustomEntityTypesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListCustomEntityTypesPagesWithContext indicates an expected call of ListCustomEntityTypesPagesWithContext. +func (mr *MockGlueAPIMockRecorder) ListCustomEntityTypesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCustomEntityTypesPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListCustomEntityTypesPagesWithContext), varargs...) +} + +// ListCustomEntityTypesRequest mocks base method. +func (m *MockGlueAPI) ListCustomEntityTypesRequest(arg0 *glue.ListCustomEntityTypesInput) (*request.Request, *glue.ListCustomEntityTypesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListCustomEntityTypesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.ListCustomEntityTypesOutput) + return ret0, ret1 +} + +// ListCustomEntityTypesRequest indicates an expected call of ListCustomEntityTypesRequest. +func (mr *MockGlueAPIMockRecorder) ListCustomEntityTypesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCustomEntityTypesRequest", reflect.TypeOf((*MockGlueAPI)(nil).ListCustomEntityTypesRequest), arg0) +} + +// ListCustomEntityTypesWithContext mocks base method. +func (m *MockGlueAPI) ListCustomEntityTypesWithContext(arg0 aws.Context, arg1 *glue.ListCustomEntityTypesInput, arg2 ...request.Option) (*glue.ListCustomEntityTypesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListCustomEntityTypesWithContext", varargs...) + ret0, _ := ret[0].(*glue.ListCustomEntityTypesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListCustomEntityTypesWithContext indicates an expected call of ListCustomEntityTypesWithContext. +func (mr *MockGlueAPIMockRecorder) ListCustomEntityTypesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCustomEntityTypesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListCustomEntityTypesWithContext), varargs...) +} + +// ListDataQualityResults mocks base method. +func (m *MockGlueAPI) ListDataQualityResults(arg0 *glue.ListDataQualityResultsInput) (*glue.ListDataQualityResultsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDataQualityResults", arg0) + ret0, _ := ret[0].(*glue.ListDataQualityResultsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListDataQualityResults indicates an expected call of ListDataQualityResults. +func (mr *MockGlueAPIMockRecorder) ListDataQualityResults(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDataQualityResults", reflect.TypeOf((*MockGlueAPI)(nil).ListDataQualityResults), arg0) +} + +// ListDataQualityResultsPages mocks base method. +func (m *MockGlueAPI) ListDataQualityResultsPages(arg0 *glue.ListDataQualityResultsInput, arg1 func(*glue.ListDataQualityResultsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDataQualityResultsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListDataQualityResultsPages indicates an expected call of ListDataQualityResultsPages. +func (mr *MockGlueAPIMockRecorder) ListDataQualityResultsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDataQualityResultsPages", reflect.TypeOf((*MockGlueAPI)(nil).ListDataQualityResultsPages), arg0, arg1) +} + +// ListDataQualityResultsPagesWithContext mocks base method. +func (m *MockGlueAPI) ListDataQualityResultsPagesWithContext(arg0 aws.Context, arg1 *glue.ListDataQualityResultsInput, arg2 func(*glue.ListDataQualityResultsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListDataQualityResultsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListDataQualityResultsPagesWithContext indicates an expected call of ListDataQualityResultsPagesWithContext. +func (mr *MockGlueAPIMockRecorder) ListDataQualityResultsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDataQualityResultsPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListDataQualityResultsPagesWithContext), varargs...) +} + +// ListDataQualityResultsRequest mocks base method. +func (m *MockGlueAPI) ListDataQualityResultsRequest(arg0 *glue.ListDataQualityResultsInput) (*request.Request, *glue.ListDataQualityResultsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDataQualityResultsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.ListDataQualityResultsOutput) + return ret0, ret1 +} + +// ListDataQualityResultsRequest indicates an expected call of ListDataQualityResultsRequest. +func (mr *MockGlueAPIMockRecorder) ListDataQualityResultsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDataQualityResultsRequest", reflect.TypeOf((*MockGlueAPI)(nil).ListDataQualityResultsRequest), arg0) +} + +// ListDataQualityResultsWithContext mocks base method. +func (m *MockGlueAPI) ListDataQualityResultsWithContext(arg0 aws.Context, arg1 *glue.ListDataQualityResultsInput, arg2 ...request.Option) (*glue.ListDataQualityResultsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListDataQualityResultsWithContext", varargs...) + ret0, _ := ret[0].(*glue.ListDataQualityResultsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListDataQualityResultsWithContext indicates an expected call of ListDataQualityResultsWithContext. +func (mr *MockGlueAPIMockRecorder) ListDataQualityResultsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDataQualityResultsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListDataQualityResultsWithContext), varargs...) +} + +// ListDataQualityRuleRecommendationRuns mocks base method. +func (m *MockGlueAPI) ListDataQualityRuleRecommendationRuns(arg0 *glue.ListDataQualityRuleRecommendationRunsInput) (*glue.ListDataQualityRuleRecommendationRunsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDataQualityRuleRecommendationRuns", arg0) + ret0, _ := ret[0].(*glue.ListDataQualityRuleRecommendationRunsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListDataQualityRuleRecommendationRuns indicates an expected call of ListDataQualityRuleRecommendationRuns. +func (mr *MockGlueAPIMockRecorder) ListDataQualityRuleRecommendationRuns(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDataQualityRuleRecommendationRuns", reflect.TypeOf((*MockGlueAPI)(nil).ListDataQualityRuleRecommendationRuns), arg0) +} + +// ListDataQualityRuleRecommendationRunsPages mocks base method. +func (m *MockGlueAPI) ListDataQualityRuleRecommendationRunsPages(arg0 *glue.ListDataQualityRuleRecommendationRunsInput, arg1 func(*glue.ListDataQualityRuleRecommendationRunsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDataQualityRuleRecommendationRunsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListDataQualityRuleRecommendationRunsPages indicates an expected call of ListDataQualityRuleRecommendationRunsPages. +func (mr *MockGlueAPIMockRecorder) ListDataQualityRuleRecommendationRunsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDataQualityRuleRecommendationRunsPages", reflect.TypeOf((*MockGlueAPI)(nil).ListDataQualityRuleRecommendationRunsPages), arg0, arg1) +} + +// ListDataQualityRuleRecommendationRunsPagesWithContext mocks base method. +func (m *MockGlueAPI) ListDataQualityRuleRecommendationRunsPagesWithContext(arg0 aws.Context, arg1 *glue.ListDataQualityRuleRecommendationRunsInput, arg2 func(*glue.ListDataQualityRuleRecommendationRunsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListDataQualityRuleRecommendationRunsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListDataQualityRuleRecommendationRunsPagesWithContext indicates an expected call of ListDataQualityRuleRecommendationRunsPagesWithContext. +func (mr *MockGlueAPIMockRecorder) ListDataQualityRuleRecommendationRunsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDataQualityRuleRecommendationRunsPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListDataQualityRuleRecommendationRunsPagesWithContext), varargs...) +} + +// ListDataQualityRuleRecommendationRunsRequest mocks base method. +func (m *MockGlueAPI) ListDataQualityRuleRecommendationRunsRequest(arg0 *glue.ListDataQualityRuleRecommendationRunsInput) (*request.Request, *glue.ListDataQualityRuleRecommendationRunsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDataQualityRuleRecommendationRunsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.ListDataQualityRuleRecommendationRunsOutput) + return ret0, ret1 +} + +// ListDataQualityRuleRecommendationRunsRequest indicates an expected call of ListDataQualityRuleRecommendationRunsRequest. +func (mr *MockGlueAPIMockRecorder) ListDataQualityRuleRecommendationRunsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDataQualityRuleRecommendationRunsRequest", reflect.TypeOf((*MockGlueAPI)(nil).ListDataQualityRuleRecommendationRunsRequest), arg0) +} + +// ListDataQualityRuleRecommendationRunsWithContext mocks base method. +func (m *MockGlueAPI) ListDataQualityRuleRecommendationRunsWithContext(arg0 aws.Context, arg1 *glue.ListDataQualityRuleRecommendationRunsInput, arg2 ...request.Option) (*glue.ListDataQualityRuleRecommendationRunsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListDataQualityRuleRecommendationRunsWithContext", varargs...) + ret0, _ := ret[0].(*glue.ListDataQualityRuleRecommendationRunsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListDataQualityRuleRecommendationRunsWithContext indicates an expected call of ListDataQualityRuleRecommendationRunsWithContext. +func (mr *MockGlueAPIMockRecorder) ListDataQualityRuleRecommendationRunsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDataQualityRuleRecommendationRunsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListDataQualityRuleRecommendationRunsWithContext), varargs...) +} + +// ListDataQualityRulesetEvaluationRuns mocks base method. +func (m *MockGlueAPI) ListDataQualityRulesetEvaluationRuns(arg0 *glue.ListDataQualityRulesetEvaluationRunsInput) (*glue.ListDataQualityRulesetEvaluationRunsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDataQualityRulesetEvaluationRuns", arg0) + ret0, _ := ret[0].(*glue.ListDataQualityRulesetEvaluationRunsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListDataQualityRulesetEvaluationRuns indicates an expected call of ListDataQualityRulesetEvaluationRuns. +func (mr *MockGlueAPIMockRecorder) ListDataQualityRulesetEvaluationRuns(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDataQualityRulesetEvaluationRuns", reflect.TypeOf((*MockGlueAPI)(nil).ListDataQualityRulesetEvaluationRuns), arg0) +} + +// ListDataQualityRulesetEvaluationRunsPages mocks base method. +func (m *MockGlueAPI) ListDataQualityRulesetEvaluationRunsPages(arg0 *glue.ListDataQualityRulesetEvaluationRunsInput, arg1 func(*glue.ListDataQualityRulesetEvaluationRunsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDataQualityRulesetEvaluationRunsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListDataQualityRulesetEvaluationRunsPages indicates an expected call of ListDataQualityRulesetEvaluationRunsPages. +func (mr *MockGlueAPIMockRecorder) ListDataQualityRulesetEvaluationRunsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDataQualityRulesetEvaluationRunsPages", reflect.TypeOf((*MockGlueAPI)(nil).ListDataQualityRulesetEvaluationRunsPages), arg0, arg1) +} + +// ListDataQualityRulesetEvaluationRunsPagesWithContext mocks base method. +func (m *MockGlueAPI) ListDataQualityRulesetEvaluationRunsPagesWithContext(arg0 aws.Context, arg1 *glue.ListDataQualityRulesetEvaluationRunsInput, arg2 func(*glue.ListDataQualityRulesetEvaluationRunsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListDataQualityRulesetEvaluationRunsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListDataQualityRulesetEvaluationRunsPagesWithContext indicates an expected call of ListDataQualityRulesetEvaluationRunsPagesWithContext. +func (mr *MockGlueAPIMockRecorder) ListDataQualityRulesetEvaluationRunsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDataQualityRulesetEvaluationRunsPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListDataQualityRulesetEvaluationRunsPagesWithContext), varargs...) +} + +// ListDataQualityRulesetEvaluationRunsRequest mocks base method. +func (m *MockGlueAPI) ListDataQualityRulesetEvaluationRunsRequest(arg0 *glue.ListDataQualityRulesetEvaluationRunsInput) (*request.Request, *glue.ListDataQualityRulesetEvaluationRunsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDataQualityRulesetEvaluationRunsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.ListDataQualityRulesetEvaluationRunsOutput) + return ret0, ret1 +} + +// ListDataQualityRulesetEvaluationRunsRequest indicates an expected call of ListDataQualityRulesetEvaluationRunsRequest. +func (mr *MockGlueAPIMockRecorder) ListDataQualityRulesetEvaluationRunsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDataQualityRulesetEvaluationRunsRequest", reflect.TypeOf((*MockGlueAPI)(nil).ListDataQualityRulesetEvaluationRunsRequest), arg0) +} + +// ListDataQualityRulesetEvaluationRunsWithContext mocks base method. +func (m *MockGlueAPI) ListDataQualityRulesetEvaluationRunsWithContext(arg0 aws.Context, arg1 *glue.ListDataQualityRulesetEvaluationRunsInput, arg2 ...request.Option) (*glue.ListDataQualityRulesetEvaluationRunsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListDataQualityRulesetEvaluationRunsWithContext", varargs...) + ret0, _ := ret[0].(*glue.ListDataQualityRulesetEvaluationRunsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListDataQualityRulesetEvaluationRunsWithContext indicates an expected call of ListDataQualityRulesetEvaluationRunsWithContext. +func (mr *MockGlueAPIMockRecorder) ListDataQualityRulesetEvaluationRunsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDataQualityRulesetEvaluationRunsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListDataQualityRulesetEvaluationRunsWithContext), varargs...) +} + +// ListDataQualityRulesets mocks base method. +func (m *MockGlueAPI) ListDataQualityRulesets(arg0 *glue.ListDataQualityRulesetsInput) (*glue.ListDataQualityRulesetsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDataQualityRulesets", arg0) + ret0, _ := ret[0].(*glue.ListDataQualityRulesetsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListDataQualityRulesets indicates an expected call of ListDataQualityRulesets. +func (mr *MockGlueAPIMockRecorder) ListDataQualityRulesets(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDataQualityRulesets", reflect.TypeOf((*MockGlueAPI)(nil).ListDataQualityRulesets), arg0) +} + +// ListDataQualityRulesetsPages mocks base method. +func (m *MockGlueAPI) ListDataQualityRulesetsPages(arg0 *glue.ListDataQualityRulesetsInput, arg1 func(*glue.ListDataQualityRulesetsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDataQualityRulesetsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListDataQualityRulesetsPages indicates an expected call of ListDataQualityRulesetsPages. +func (mr *MockGlueAPIMockRecorder) ListDataQualityRulesetsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDataQualityRulesetsPages", reflect.TypeOf((*MockGlueAPI)(nil).ListDataQualityRulesetsPages), arg0, arg1) +} + +// ListDataQualityRulesetsPagesWithContext mocks base method. +func (m *MockGlueAPI) ListDataQualityRulesetsPagesWithContext(arg0 aws.Context, arg1 *glue.ListDataQualityRulesetsInput, arg2 func(*glue.ListDataQualityRulesetsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListDataQualityRulesetsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListDataQualityRulesetsPagesWithContext indicates an expected call of ListDataQualityRulesetsPagesWithContext. +func (mr *MockGlueAPIMockRecorder) ListDataQualityRulesetsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDataQualityRulesetsPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListDataQualityRulesetsPagesWithContext), varargs...) +} + +// ListDataQualityRulesetsRequest mocks base method. +func (m *MockGlueAPI) ListDataQualityRulesetsRequest(arg0 *glue.ListDataQualityRulesetsInput) (*request.Request, *glue.ListDataQualityRulesetsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDataQualityRulesetsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.ListDataQualityRulesetsOutput) + return ret0, ret1 +} + +// ListDataQualityRulesetsRequest indicates an expected call of ListDataQualityRulesetsRequest. +func (mr *MockGlueAPIMockRecorder) ListDataQualityRulesetsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDataQualityRulesetsRequest", reflect.TypeOf((*MockGlueAPI)(nil).ListDataQualityRulesetsRequest), arg0) +} + +// ListDataQualityRulesetsWithContext mocks base method. +func (m *MockGlueAPI) ListDataQualityRulesetsWithContext(arg0 aws.Context, arg1 *glue.ListDataQualityRulesetsInput, arg2 ...request.Option) (*glue.ListDataQualityRulesetsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListDataQualityRulesetsWithContext", varargs...) + ret0, _ := ret[0].(*glue.ListDataQualityRulesetsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListDataQualityRulesetsWithContext indicates an expected call of ListDataQualityRulesetsWithContext. +func (mr *MockGlueAPIMockRecorder) ListDataQualityRulesetsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDataQualityRulesetsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListDataQualityRulesetsWithContext), varargs...) +} + +// ListDevEndpoints mocks base method. +func (m *MockGlueAPI) ListDevEndpoints(arg0 *glue.ListDevEndpointsInput) (*glue.ListDevEndpointsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDevEndpoints", arg0) + ret0, _ := ret[0].(*glue.ListDevEndpointsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListDevEndpoints indicates an expected call of ListDevEndpoints. +func (mr *MockGlueAPIMockRecorder) ListDevEndpoints(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDevEndpoints", reflect.TypeOf((*MockGlueAPI)(nil).ListDevEndpoints), arg0) +} + +// ListDevEndpointsPages mocks base method. +func (m *MockGlueAPI) ListDevEndpointsPages(arg0 *glue.ListDevEndpointsInput, arg1 func(*glue.ListDevEndpointsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDevEndpointsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListDevEndpointsPages indicates an expected call of ListDevEndpointsPages. +func (mr *MockGlueAPIMockRecorder) ListDevEndpointsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDevEndpointsPages", reflect.TypeOf((*MockGlueAPI)(nil).ListDevEndpointsPages), arg0, arg1) +} + +// ListDevEndpointsPagesWithContext mocks base method. +func (m *MockGlueAPI) ListDevEndpointsPagesWithContext(arg0 aws.Context, arg1 *glue.ListDevEndpointsInput, arg2 func(*glue.ListDevEndpointsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListDevEndpointsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListDevEndpointsPagesWithContext indicates an expected call of ListDevEndpointsPagesWithContext. +func (mr *MockGlueAPIMockRecorder) ListDevEndpointsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDevEndpointsPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListDevEndpointsPagesWithContext), varargs...) +} + +// ListDevEndpointsRequest mocks base method. +func (m *MockGlueAPI) ListDevEndpointsRequest(arg0 *glue.ListDevEndpointsInput) (*request.Request, *glue.ListDevEndpointsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDevEndpointsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.ListDevEndpointsOutput) + return ret0, ret1 +} + +// ListDevEndpointsRequest indicates an expected call of ListDevEndpointsRequest. +func (mr *MockGlueAPIMockRecorder) ListDevEndpointsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDevEndpointsRequest", reflect.TypeOf((*MockGlueAPI)(nil).ListDevEndpointsRequest), arg0) +} + +// ListDevEndpointsWithContext mocks base method. +func (m *MockGlueAPI) ListDevEndpointsWithContext(arg0 aws.Context, arg1 *glue.ListDevEndpointsInput, arg2 ...request.Option) (*glue.ListDevEndpointsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListDevEndpointsWithContext", varargs...) + ret0, _ := ret[0].(*glue.ListDevEndpointsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListDevEndpointsWithContext indicates an expected call of ListDevEndpointsWithContext. +func (mr *MockGlueAPIMockRecorder) ListDevEndpointsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDevEndpointsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListDevEndpointsWithContext), varargs...) +} + +// ListJobs mocks base method. +func (m *MockGlueAPI) ListJobs(arg0 *glue.ListJobsInput) (*glue.ListJobsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListJobs", arg0) + ret0, _ := ret[0].(*glue.ListJobsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListJobs indicates an expected call of ListJobs. +func (mr *MockGlueAPIMockRecorder) ListJobs(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListJobs", reflect.TypeOf((*MockGlueAPI)(nil).ListJobs), arg0) +} + +// ListJobsPages mocks base method. +func (m *MockGlueAPI) ListJobsPages(arg0 *glue.ListJobsInput, arg1 func(*glue.ListJobsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListJobsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListJobsPages indicates an expected call of ListJobsPages. +func (mr *MockGlueAPIMockRecorder) ListJobsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListJobsPages", reflect.TypeOf((*MockGlueAPI)(nil).ListJobsPages), arg0, arg1) +} + +// ListJobsPagesWithContext mocks base method. +func (m *MockGlueAPI) ListJobsPagesWithContext(arg0 aws.Context, arg1 *glue.ListJobsInput, arg2 func(*glue.ListJobsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListJobsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListJobsPagesWithContext indicates an expected call of ListJobsPagesWithContext. +func (mr *MockGlueAPIMockRecorder) ListJobsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListJobsPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListJobsPagesWithContext), varargs...) +} + +// ListJobsRequest mocks base method. +func (m *MockGlueAPI) ListJobsRequest(arg0 *glue.ListJobsInput) (*request.Request, *glue.ListJobsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListJobsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.ListJobsOutput) + return ret0, ret1 +} + +// ListJobsRequest indicates an expected call of ListJobsRequest. +func (mr *MockGlueAPIMockRecorder) ListJobsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListJobsRequest", reflect.TypeOf((*MockGlueAPI)(nil).ListJobsRequest), arg0) +} + +// ListJobsWithContext mocks base method. +func (m *MockGlueAPI) ListJobsWithContext(arg0 aws.Context, arg1 *glue.ListJobsInput, arg2 ...request.Option) (*glue.ListJobsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListJobsWithContext", varargs...) + ret0, _ := ret[0].(*glue.ListJobsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListJobsWithContext indicates an expected call of ListJobsWithContext. +func (mr *MockGlueAPIMockRecorder) ListJobsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListJobsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListJobsWithContext), varargs...) +} + +// ListMLTransforms mocks base method. +func (m *MockGlueAPI) ListMLTransforms(arg0 *glue.ListMLTransformsInput) (*glue.ListMLTransformsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListMLTransforms", arg0) + ret0, _ := ret[0].(*glue.ListMLTransformsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListMLTransforms indicates an expected call of ListMLTransforms. +func (mr *MockGlueAPIMockRecorder) ListMLTransforms(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMLTransforms", reflect.TypeOf((*MockGlueAPI)(nil).ListMLTransforms), arg0) +} + +// ListMLTransformsPages mocks base method. +func (m *MockGlueAPI) ListMLTransformsPages(arg0 *glue.ListMLTransformsInput, arg1 func(*glue.ListMLTransformsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListMLTransformsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListMLTransformsPages indicates an expected call of ListMLTransformsPages. +func (mr *MockGlueAPIMockRecorder) ListMLTransformsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMLTransformsPages", reflect.TypeOf((*MockGlueAPI)(nil).ListMLTransformsPages), arg0, arg1) +} + +// ListMLTransformsPagesWithContext mocks base method. +func (m *MockGlueAPI) ListMLTransformsPagesWithContext(arg0 aws.Context, arg1 *glue.ListMLTransformsInput, arg2 func(*glue.ListMLTransformsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListMLTransformsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListMLTransformsPagesWithContext indicates an expected call of ListMLTransformsPagesWithContext. +func (mr *MockGlueAPIMockRecorder) ListMLTransformsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMLTransformsPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListMLTransformsPagesWithContext), varargs...) +} + +// ListMLTransformsRequest mocks base method. +func (m *MockGlueAPI) ListMLTransformsRequest(arg0 *glue.ListMLTransformsInput) (*request.Request, *glue.ListMLTransformsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListMLTransformsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.ListMLTransformsOutput) + return ret0, ret1 +} + +// ListMLTransformsRequest indicates an expected call of ListMLTransformsRequest. +func (mr *MockGlueAPIMockRecorder) ListMLTransformsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMLTransformsRequest", reflect.TypeOf((*MockGlueAPI)(nil).ListMLTransformsRequest), arg0) +} + +// ListMLTransformsWithContext mocks base method. +func (m *MockGlueAPI) ListMLTransformsWithContext(arg0 aws.Context, arg1 *glue.ListMLTransformsInput, arg2 ...request.Option) (*glue.ListMLTransformsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListMLTransformsWithContext", varargs...) + ret0, _ := ret[0].(*glue.ListMLTransformsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListMLTransformsWithContext indicates an expected call of ListMLTransformsWithContext. +func (mr *MockGlueAPIMockRecorder) ListMLTransformsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMLTransformsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListMLTransformsWithContext), varargs...) +} + +// ListRegistries mocks base method. +func (m *MockGlueAPI) ListRegistries(arg0 *glue.ListRegistriesInput) (*glue.ListRegistriesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListRegistries", arg0) + ret0, _ := ret[0].(*glue.ListRegistriesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListRegistries indicates an expected call of ListRegistries. +func (mr *MockGlueAPIMockRecorder) ListRegistries(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRegistries", reflect.TypeOf((*MockGlueAPI)(nil).ListRegistries), arg0) +} + +// ListRegistriesPages mocks base method. +func (m *MockGlueAPI) ListRegistriesPages(arg0 *glue.ListRegistriesInput, arg1 func(*glue.ListRegistriesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListRegistriesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListRegistriesPages indicates an expected call of ListRegistriesPages. +func (mr *MockGlueAPIMockRecorder) ListRegistriesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRegistriesPages", reflect.TypeOf((*MockGlueAPI)(nil).ListRegistriesPages), arg0, arg1) +} + +// ListRegistriesPagesWithContext mocks base method. +func (m *MockGlueAPI) ListRegistriesPagesWithContext(arg0 aws.Context, arg1 *glue.ListRegistriesInput, arg2 func(*glue.ListRegistriesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListRegistriesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListRegistriesPagesWithContext indicates an expected call of ListRegistriesPagesWithContext. +func (mr *MockGlueAPIMockRecorder) ListRegistriesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRegistriesPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListRegistriesPagesWithContext), varargs...) +} + +// ListRegistriesRequest mocks base method. +func (m *MockGlueAPI) ListRegistriesRequest(arg0 *glue.ListRegistriesInput) (*request.Request, *glue.ListRegistriesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListRegistriesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.ListRegistriesOutput) + return ret0, ret1 +} + +// ListRegistriesRequest indicates an expected call of ListRegistriesRequest. +func (mr *MockGlueAPIMockRecorder) ListRegistriesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRegistriesRequest", reflect.TypeOf((*MockGlueAPI)(nil).ListRegistriesRequest), arg0) +} + +// ListRegistriesWithContext mocks base method. +func (m *MockGlueAPI) ListRegistriesWithContext(arg0 aws.Context, arg1 *glue.ListRegistriesInput, arg2 ...request.Option) (*glue.ListRegistriesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListRegistriesWithContext", varargs...) + ret0, _ := ret[0].(*glue.ListRegistriesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListRegistriesWithContext indicates an expected call of ListRegistriesWithContext. +func (mr *MockGlueAPIMockRecorder) ListRegistriesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRegistriesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListRegistriesWithContext), varargs...) +} + +// ListSchemaVersions mocks base method. +func (m *MockGlueAPI) ListSchemaVersions(arg0 *glue.ListSchemaVersionsInput) (*glue.ListSchemaVersionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListSchemaVersions", arg0) + ret0, _ := ret[0].(*glue.ListSchemaVersionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListSchemaVersions indicates an expected call of ListSchemaVersions. +func (mr *MockGlueAPIMockRecorder) ListSchemaVersions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSchemaVersions", reflect.TypeOf((*MockGlueAPI)(nil).ListSchemaVersions), arg0) +} + +// ListSchemaVersionsPages mocks base method. +func (m *MockGlueAPI) ListSchemaVersionsPages(arg0 *glue.ListSchemaVersionsInput, arg1 func(*glue.ListSchemaVersionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListSchemaVersionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListSchemaVersionsPages indicates an expected call of ListSchemaVersionsPages. +func (mr *MockGlueAPIMockRecorder) ListSchemaVersionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSchemaVersionsPages", reflect.TypeOf((*MockGlueAPI)(nil).ListSchemaVersionsPages), arg0, arg1) +} + +// ListSchemaVersionsPagesWithContext mocks base method. +func (m *MockGlueAPI) ListSchemaVersionsPagesWithContext(arg0 aws.Context, arg1 *glue.ListSchemaVersionsInput, arg2 func(*glue.ListSchemaVersionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListSchemaVersionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListSchemaVersionsPagesWithContext indicates an expected call of ListSchemaVersionsPagesWithContext. +func (mr *MockGlueAPIMockRecorder) ListSchemaVersionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSchemaVersionsPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListSchemaVersionsPagesWithContext), varargs...) +} + +// ListSchemaVersionsRequest mocks base method. +func (m *MockGlueAPI) ListSchemaVersionsRequest(arg0 *glue.ListSchemaVersionsInput) (*request.Request, *glue.ListSchemaVersionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListSchemaVersionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.ListSchemaVersionsOutput) + return ret0, ret1 +} + +// ListSchemaVersionsRequest indicates an expected call of ListSchemaVersionsRequest. +func (mr *MockGlueAPIMockRecorder) ListSchemaVersionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSchemaVersionsRequest", reflect.TypeOf((*MockGlueAPI)(nil).ListSchemaVersionsRequest), arg0) +} + +// ListSchemaVersionsWithContext mocks base method. +func (m *MockGlueAPI) ListSchemaVersionsWithContext(arg0 aws.Context, arg1 *glue.ListSchemaVersionsInput, arg2 ...request.Option) (*glue.ListSchemaVersionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListSchemaVersionsWithContext", varargs...) + ret0, _ := ret[0].(*glue.ListSchemaVersionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListSchemaVersionsWithContext indicates an expected call of ListSchemaVersionsWithContext. +func (mr *MockGlueAPIMockRecorder) ListSchemaVersionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSchemaVersionsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListSchemaVersionsWithContext), varargs...) +} + +// ListSchemas mocks base method. +func (m *MockGlueAPI) ListSchemas(arg0 *glue.ListSchemasInput) (*glue.ListSchemasOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListSchemas", arg0) + ret0, _ := ret[0].(*glue.ListSchemasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListSchemas indicates an expected call of ListSchemas. +func (mr *MockGlueAPIMockRecorder) ListSchemas(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSchemas", reflect.TypeOf((*MockGlueAPI)(nil).ListSchemas), arg0) +} + +// ListSchemasPages mocks base method. +func (m *MockGlueAPI) ListSchemasPages(arg0 *glue.ListSchemasInput, arg1 func(*glue.ListSchemasOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListSchemasPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListSchemasPages indicates an expected call of ListSchemasPages. +func (mr *MockGlueAPIMockRecorder) ListSchemasPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSchemasPages", reflect.TypeOf((*MockGlueAPI)(nil).ListSchemasPages), arg0, arg1) +} + +// ListSchemasPagesWithContext mocks base method. +func (m *MockGlueAPI) ListSchemasPagesWithContext(arg0 aws.Context, arg1 *glue.ListSchemasInput, arg2 func(*glue.ListSchemasOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListSchemasPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListSchemasPagesWithContext indicates an expected call of ListSchemasPagesWithContext. +func (mr *MockGlueAPIMockRecorder) ListSchemasPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSchemasPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListSchemasPagesWithContext), varargs...) +} + +// ListSchemasRequest mocks base method. +func (m *MockGlueAPI) ListSchemasRequest(arg0 *glue.ListSchemasInput) (*request.Request, *glue.ListSchemasOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListSchemasRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.ListSchemasOutput) + return ret0, ret1 +} + +// ListSchemasRequest indicates an expected call of ListSchemasRequest. +func (mr *MockGlueAPIMockRecorder) ListSchemasRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSchemasRequest", reflect.TypeOf((*MockGlueAPI)(nil).ListSchemasRequest), arg0) +} + +// ListSchemasWithContext mocks base method. +func (m *MockGlueAPI) ListSchemasWithContext(arg0 aws.Context, arg1 *glue.ListSchemasInput, arg2 ...request.Option) (*glue.ListSchemasOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListSchemasWithContext", varargs...) + ret0, _ := ret[0].(*glue.ListSchemasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListSchemasWithContext indicates an expected call of ListSchemasWithContext. +func (mr *MockGlueAPIMockRecorder) ListSchemasWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSchemasWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListSchemasWithContext), varargs...) +} + +// ListSessions mocks base method. +func (m *MockGlueAPI) ListSessions(arg0 *glue.ListSessionsInput) (*glue.ListSessionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListSessions", arg0) + ret0, _ := ret[0].(*glue.ListSessionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListSessions indicates an expected call of ListSessions. +func (mr *MockGlueAPIMockRecorder) ListSessions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSessions", reflect.TypeOf((*MockGlueAPI)(nil).ListSessions), arg0) +} + +// ListSessionsPages mocks base method. +func (m *MockGlueAPI) ListSessionsPages(arg0 *glue.ListSessionsInput, arg1 func(*glue.ListSessionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListSessionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListSessionsPages indicates an expected call of ListSessionsPages. +func (mr *MockGlueAPIMockRecorder) ListSessionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSessionsPages", reflect.TypeOf((*MockGlueAPI)(nil).ListSessionsPages), arg0, arg1) +} + +// ListSessionsPagesWithContext mocks base method. +func (m *MockGlueAPI) ListSessionsPagesWithContext(arg0 aws.Context, arg1 *glue.ListSessionsInput, arg2 func(*glue.ListSessionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListSessionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListSessionsPagesWithContext indicates an expected call of ListSessionsPagesWithContext. +func (mr *MockGlueAPIMockRecorder) ListSessionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSessionsPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListSessionsPagesWithContext), varargs...) +} + +// ListSessionsRequest mocks base method. +func (m *MockGlueAPI) ListSessionsRequest(arg0 *glue.ListSessionsInput) (*request.Request, *glue.ListSessionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListSessionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.ListSessionsOutput) + return ret0, ret1 +} + +// ListSessionsRequest indicates an expected call of ListSessionsRequest. +func (mr *MockGlueAPIMockRecorder) ListSessionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSessionsRequest", reflect.TypeOf((*MockGlueAPI)(nil).ListSessionsRequest), arg0) +} + +// ListSessionsWithContext mocks base method. +func (m *MockGlueAPI) ListSessionsWithContext(arg0 aws.Context, arg1 *glue.ListSessionsInput, arg2 ...request.Option) (*glue.ListSessionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListSessionsWithContext", varargs...) + ret0, _ := ret[0].(*glue.ListSessionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListSessionsWithContext indicates an expected call of ListSessionsWithContext. +func (mr *MockGlueAPIMockRecorder) ListSessionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSessionsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListSessionsWithContext), varargs...) +} + +// ListStatements mocks base method. +func (m *MockGlueAPI) ListStatements(arg0 *glue.ListStatementsInput) (*glue.ListStatementsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListStatements", arg0) + ret0, _ := ret[0].(*glue.ListStatementsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListStatements indicates an expected call of ListStatements. +func (mr *MockGlueAPIMockRecorder) ListStatements(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStatements", reflect.TypeOf((*MockGlueAPI)(nil).ListStatements), arg0) +} + +// ListStatementsRequest mocks base method. +func (m *MockGlueAPI) ListStatementsRequest(arg0 *glue.ListStatementsInput) (*request.Request, *glue.ListStatementsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListStatementsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.ListStatementsOutput) + return ret0, ret1 +} + +// ListStatementsRequest indicates an expected call of ListStatementsRequest. +func (mr *MockGlueAPIMockRecorder) ListStatementsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStatementsRequest", reflect.TypeOf((*MockGlueAPI)(nil).ListStatementsRequest), arg0) +} + +// ListStatementsWithContext mocks base method. +func (m *MockGlueAPI) ListStatementsWithContext(arg0 aws.Context, arg1 *glue.ListStatementsInput, arg2 ...request.Option) (*glue.ListStatementsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListStatementsWithContext", varargs...) + ret0, _ := ret[0].(*glue.ListStatementsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListStatementsWithContext indicates an expected call of ListStatementsWithContext. +func (mr *MockGlueAPIMockRecorder) ListStatementsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStatementsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListStatementsWithContext), varargs...) +} + +// ListTableOptimizerRuns mocks base method. +func (m *MockGlueAPI) ListTableOptimizerRuns(arg0 *glue.ListTableOptimizerRunsInput) (*glue.ListTableOptimizerRunsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTableOptimizerRuns", arg0) + ret0, _ := ret[0].(*glue.ListTableOptimizerRunsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTableOptimizerRuns indicates an expected call of ListTableOptimizerRuns. +func (mr *MockGlueAPIMockRecorder) ListTableOptimizerRuns(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTableOptimizerRuns", reflect.TypeOf((*MockGlueAPI)(nil).ListTableOptimizerRuns), arg0) +} + +// ListTableOptimizerRunsPages mocks base method. +func (m *MockGlueAPI) ListTableOptimizerRunsPages(arg0 *glue.ListTableOptimizerRunsInput, arg1 func(*glue.ListTableOptimizerRunsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTableOptimizerRunsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTableOptimizerRunsPages indicates an expected call of ListTableOptimizerRunsPages. +func (mr *MockGlueAPIMockRecorder) ListTableOptimizerRunsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTableOptimizerRunsPages", reflect.TypeOf((*MockGlueAPI)(nil).ListTableOptimizerRunsPages), arg0, arg1) +} + +// ListTableOptimizerRunsPagesWithContext mocks base method. +func (m *MockGlueAPI) ListTableOptimizerRunsPagesWithContext(arg0 aws.Context, arg1 *glue.ListTableOptimizerRunsInput, arg2 func(*glue.ListTableOptimizerRunsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTableOptimizerRunsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTableOptimizerRunsPagesWithContext indicates an expected call of ListTableOptimizerRunsPagesWithContext. +func (mr *MockGlueAPIMockRecorder) ListTableOptimizerRunsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTableOptimizerRunsPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListTableOptimizerRunsPagesWithContext), varargs...) +} + +// ListTableOptimizerRunsRequest mocks base method. +func (m *MockGlueAPI) ListTableOptimizerRunsRequest(arg0 *glue.ListTableOptimizerRunsInput) (*request.Request, *glue.ListTableOptimizerRunsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTableOptimizerRunsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.ListTableOptimizerRunsOutput) + return ret0, ret1 +} + +// ListTableOptimizerRunsRequest indicates an expected call of ListTableOptimizerRunsRequest. +func (mr *MockGlueAPIMockRecorder) ListTableOptimizerRunsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTableOptimizerRunsRequest", reflect.TypeOf((*MockGlueAPI)(nil).ListTableOptimizerRunsRequest), arg0) +} + +// ListTableOptimizerRunsWithContext mocks base method. +func (m *MockGlueAPI) ListTableOptimizerRunsWithContext(arg0 aws.Context, arg1 *glue.ListTableOptimizerRunsInput, arg2 ...request.Option) (*glue.ListTableOptimizerRunsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTableOptimizerRunsWithContext", varargs...) + ret0, _ := ret[0].(*glue.ListTableOptimizerRunsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTableOptimizerRunsWithContext indicates an expected call of ListTableOptimizerRunsWithContext. +func (mr *MockGlueAPIMockRecorder) ListTableOptimizerRunsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTableOptimizerRunsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListTableOptimizerRunsWithContext), varargs...) +} + +// ListTriggers mocks base method. +func (m *MockGlueAPI) ListTriggers(arg0 *glue.ListTriggersInput) (*glue.ListTriggersOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTriggers", arg0) + ret0, _ := ret[0].(*glue.ListTriggersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTriggers indicates an expected call of ListTriggers. +func (mr *MockGlueAPIMockRecorder) ListTriggers(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTriggers", reflect.TypeOf((*MockGlueAPI)(nil).ListTriggers), arg0) +} + +// ListTriggersPages mocks base method. +func (m *MockGlueAPI) ListTriggersPages(arg0 *glue.ListTriggersInput, arg1 func(*glue.ListTriggersOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTriggersPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTriggersPages indicates an expected call of ListTriggersPages. +func (mr *MockGlueAPIMockRecorder) ListTriggersPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTriggersPages", reflect.TypeOf((*MockGlueAPI)(nil).ListTriggersPages), arg0, arg1) +} + +// ListTriggersPagesWithContext mocks base method. +func (m *MockGlueAPI) ListTriggersPagesWithContext(arg0 aws.Context, arg1 *glue.ListTriggersInput, arg2 func(*glue.ListTriggersOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTriggersPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTriggersPagesWithContext indicates an expected call of ListTriggersPagesWithContext. +func (mr *MockGlueAPIMockRecorder) ListTriggersPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTriggersPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListTriggersPagesWithContext), varargs...) +} + +// ListTriggersRequest mocks base method. +func (m *MockGlueAPI) ListTriggersRequest(arg0 *glue.ListTriggersInput) (*request.Request, *glue.ListTriggersOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTriggersRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.ListTriggersOutput) + return ret0, ret1 +} + +// ListTriggersRequest indicates an expected call of ListTriggersRequest. +func (mr *MockGlueAPIMockRecorder) ListTriggersRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTriggersRequest", reflect.TypeOf((*MockGlueAPI)(nil).ListTriggersRequest), arg0) +} + +// ListTriggersWithContext mocks base method. +func (m *MockGlueAPI) ListTriggersWithContext(arg0 aws.Context, arg1 *glue.ListTriggersInput, arg2 ...request.Option) (*glue.ListTriggersOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTriggersWithContext", varargs...) + ret0, _ := ret[0].(*glue.ListTriggersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTriggersWithContext indicates an expected call of ListTriggersWithContext. +func (mr *MockGlueAPIMockRecorder) ListTriggersWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTriggersWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListTriggersWithContext), varargs...) +} + +// ListWorkflows mocks base method. +func (m *MockGlueAPI) ListWorkflows(arg0 *glue.ListWorkflowsInput) (*glue.ListWorkflowsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListWorkflows", arg0) + ret0, _ := ret[0].(*glue.ListWorkflowsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListWorkflows indicates an expected call of ListWorkflows. +func (mr *MockGlueAPIMockRecorder) ListWorkflows(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListWorkflows", reflect.TypeOf((*MockGlueAPI)(nil).ListWorkflows), arg0) +} + +// ListWorkflowsPages mocks base method. +func (m *MockGlueAPI) ListWorkflowsPages(arg0 *glue.ListWorkflowsInput, arg1 func(*glue.ListWorkflowsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListWorkflowsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListWorkflowsPages indicates an expected call of ListWorkflowsPages. +func (mr *MockGlueAPIMockRecorder) ListWorkflowsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListWorkflowsPages", reflect.TypeOf((*MockGlueAPI)(nil).ListWorkflowsPages), arg0, arg1) +} + +// ListWorkflowsPagesWithContext mocks base method. +func (m *MockGlueAPI) ListWorkflowsPagesWithContext(arg0 aws.Context, arg1 *glue.ListWorkflowsInput, arg2 func(*glue.ListWorkflowsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListWorkflowsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListWorkflowsPagesWithContext indicates an expected call of ListWorkflowsPagesWithContext. +func (mr *MockGlueAPIMockRecorder) ListWorkflowsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListWorkflowsPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListWorkflowsPagesWithContext), varargs...) +} + +// ListWorkflowsRequest mocks base method. +func (m *MockGlueAPI) ListWorkflowsRequest(arg0 *glue.ListWorkflowsInput) (*request.Request, *glue.ListWorkflowsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListWorkflowsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.ListWorkflowsOutput) + return ret0, ret1 +} + +// ListWorkflowsRequest indicates an expected call of ListWorkflowsRequest. +func (mr *MockGlueAPIMockRecorder) ListWorkflowsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListWorkflowsRequest", reflect.TypeOf((*MockGlueAPI)(nil).ListWorkflowsRequest), arg0) +} + +// ListWorkflowsWithContext mocks base method. +func (m *MockGlueAPI) ListWorkflowsWithContext(arg0 aws.Context, arg1 *glue.ListWorkflowsInput, arg2 ...request.Option) (*glue.ListWorkflowsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListWorkflowsWithContext", varargs...) + ret0, _ := ret[0].(*glue.ListWorkflowsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListWorkflowsWithContext indicates an expected call of ListWorkflowsWithContext. +func (mr *MockGlueAPIMockRecorder) ListWorkflowsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListWorkflowsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListWorkflowsWithContext), varargs...) +} + +// PutDataCatalogEncryptionSettings mocks base method. +func (m *MockGlueAPI) PutDataCatalogEncryptionSettings(arg0 *glue.PutDataCatalogEncryptionSettingsInput) (*glue.PutDataCatalogEncryptionSettingsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutDataCatalogEncryptionSettings", arg0) + ret0, _ := ret[0].(*glue.PutDataCatalogEncryptionSettingsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutDataCatalogEncryptionSettings indicates an expected call of PutDataCatalogEncryptionSettings. +func (mr *MockGlueAPIMockRecorder) PutDataCatalogEncryptionSettings(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutDataCatalogEncryptionSettings", reflect.TypeOf((*MockGlueAPI)(nil).PutDataCatalogEncryptionSettings), arg0) +} + +// PutDataCatalogEncryptionSettingsRequest mocks base method. +func (m *MockGlueAPI) PutDataCatalogEncryptionSettingsRequest(arg0 *glue.PutDataCatalogEncryptionSettingsInput) (*request.Request, *glue.PutDataCatalogEncryptionSettingsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutDataCatalogEncryptionSettingsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.PutDataCatalogEncryptionSettingsOutput) + return ret0, ret1 +} + +// PutDataCatalogEncryptionSettingsRequest indicates an expected call of PutDataCatalogEncryptionSettingsRequest. +func (mr *MockGlueAPIMockRecorder) PutDataCatalogEncryptionSettingsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutDataCatalogEncryptionSettingsRequest", reflect.TypeOf((*MockGlueAPI)(nil).PutDataCatalogEncryptionSettingsRequest), arg0) +} + +// PutDataCatalogEncryptionSettingsWithContext mocks base method. +func (m *MockGlueAPI) PutDataCatalogEncryptionSettingsWithContext(arg0 aws.Context, arg1 *glue.PutDataCatalogEncryptionSettingsInput, arg2 ...request.Option) (*glue.PutDataCatalogEncryptionSettingsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PutDataCatalogEncryptionSettingsWithContext", varargs...) + ret0, _ := ret[0].(*glue.PutDataCatalogEncryptionSettingsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutDataCatalogEncryptionSettingsWithContext indicates an expected call of PutDataCatalogEncryptionSettingsWithContext. +func (mr *MockGlueAPIMockRecorder) PutDataCatalogEncryptionSettingsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutDataCatalogEncryptionSettingsWithContext", reflect.TypeOf((*MockGlueAPI)(nil).PutDataCatalogEncryptionSettingsWithContext), varargs...) +} + +// PutResourcePolicy mocks base method. +func (m *MockGlueAPI) PutResourcePolicy(arg0 *glue.PutResourcePolicyInput) (*glue.PutResourcePolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutResourcePolicy", arg0) + ret0, _ := ret[0].(*glue.PutResourcePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutResourcePolicy indicates an expected call of PutResourcePolicy. +func (mr *MockGlueAPIMockRecorder) PutResourcePolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutResourcePolicy", reflect.TypeOf((*MockGlueAPI)(nil).PutResourcePolicy), arg0) +} + +// PutResourcePolicyRequest mocks base method. +func (m *MockGlueAPI) PutResourcePolicyRequest(arg0 *glue.PutResourcePolicyInput) (*request.Request, *glue.PutResourcePolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutResourcePolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.PutResourcePolicyOutput) + return ret0, ret1 +} + +// PutResourcePolicyRequest indicates an expected call of PutResourcePolicyRequest. +func (mr *MockGlueAPIMockRecorder) PutResourcePolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutResourcePolicyRequest", reflect.TypeOf((*MockGlueAPI)(nil).PutResourcePolicyRequest), arg0) +} + +// PutResourcePolicyWithContext mocks base method. +func (m *MockGlueAPI) PutResourcePolicyWithContext(arg0 aws.Context, arg1 *glue.PutResourcePolicyInput, arg2 ...request.Option) (*glue.PutResourcePolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PutResourcePolicyWithContext", varargs...) + ret0, _ := ret[0].(*glue.PutResourcePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutResourcePolicyWithContext indicates an expected call of PutResourcePolicyWithContext. +func (mr *MockGlueAPIMockRecorder) PutResourcePolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutResourcePolicyWithContext", reflect.TypeOf((*MockGlueAPI)(nil).PutResourcePolicyWithContext), varargs...) +} + +// PutSchemaVersionMetadata mocks base method. +func (m *MockGlueAPI) PutSchemaVersionMetadata(arg0 *glue.PutSchemaVersionMetadataInput) (*glue.PutSchemaVersionMetadataOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutSchemaVersionMetadata", arg0) + ret0, _ := ret[0].(*glue.PutSchemaVersionMetadataOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutSchemaVersionMetadata indicates an expected call of PutSchemaVersionMetadata. +func (mr *MockGlueAPIMockRecorder) PutSchemaVersionMetadata(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutSchemaVersionMetadata", reflect.TypeOf((*MockGlueAPI)(nil).PutSchemaVersionMetadata), arg0) +} + +// PutSchemaVersionMetadataRequest mocks base method. +func (m *MockGlueAPI) PutSchemaVersionMetadataRequest(arg0 *glue.PutSchemaVersionMetadataInput) (*request.Request, *glue.PutSchemaVersionMetadataOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutSchemaVersionMetadataRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.PutSchemaVersionMetadataOutput) + return ret0, ret1 +} + +// PutSchemaVersionMetadataRequest indicates an expected call of PutSchemaVersionMetadataRequest. +func (mr *MockGlueAPIMockRecorder) PutSchemaVersionMetadataRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutSchemaVersionMetadataRequest", reflect.TypeOf((*MockGlueAPI)(nil).PutSchemaVersionMetadataRequest), arg0) +} + +// PutSchemaVersionMetadataWithContext mocks base method. +func (m *MockGlueAPI) PutSchemaVersionMetadataWithContext(arg0 aws.Context, arg1 *glue.PutSchemaVersionMetadataInput, arg2 ...request.Option) (*glue.PutSchemaVersionMetadataOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PutSchemaVersionMetadataWithContext", varargs...) + ret0, _ := ret[0].(*glue.PutSchemaVersionMetadataOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutSchemaVersionMetadataWithContext indicates an expected call of PutSchemaVersionMetadataWithContext. +func (mr *MockGlueAPIMockRecorder) PutSchemaVersionMetadataWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutSchemaVersionMetadataWithContext", reflect.TypeOf((*MockGlueAPI)(nil).PutSchemaVersionMetadataWithContext), varargs...) +} + +// PutWorkflowRunProperties mocks base method. +func (m *MockGlueAPI) PutWorkflowRunProperties(arg0 *glue.PutWorkflowRunPropertiesInput) (*glue.PutWorkflowRunPropertiesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutWorkflowRunProperties", arg0) + ret0, _ := ret[0].(*glue.PutWorkflowRunPropertiesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutWorkflowRunProperties indicates an expected call of PutWorkflowRunProperties. +func (mr *MockGlueAPIMockRecorder) PutWorkflowRunProperties(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutWorkflowRunProperties", reflect.TypeOf((*MockGlueAPI)(nil).PutWorkflowRunProperties), arg0) +} + +// PutWorkflowRunPropertiesRequest mocks base method. +func (m *MockGlueAPI) PutWorkflowRunPropertiesRequest(arg0 *glue.PutWorkflowRunPropertiesInput) (*request.Request, *glue.PutWorkflowRunPropertiesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutWorkflowRunPropertiesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.PutWorkflowRunPropertiesOutput) + return ret0, ret1 +} + +// PutWorkflowRunPropertiesRequest indicates an expected call of PutWorkflowRunPropertiesRequest. +func (mr *MockGlueAPIMockRecorder) PutWorkflowRunPropertiesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutWorkflowRunPropertiesRequest", reflect.TypeOf((*MockGlueAPI)(nil).PutWorkflowRunPropertiesRequest), arg0) +} + +// PutWorkflowRunPropertiesWithContext mocks base method. +func (m *MockGlueAPI) PutWorkflowRunPropertiesWithContext(arg0 aws.Context, arg1 *glue.PutWorkflowRunPropertiesInput, arg2 ...request.Option) (*glue.PutWorkflowRunPropertiesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PutWorkflowRunPropertiesWithContext", varargs...) + ret0, _ := ret[0].(*glue.PutWorkflowRunPropertiesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutWorkflowRunPropertiesWithContext indicates an expected call of PutWorkflowRunPropertiesWithContext. +func (mr *MockGlueAPIMockRecorder) PutWorkflowRunPropertiesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutWorkflowRunPropertiesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).PutWorkflowRunPropertiesWithContext), varargs...) +} + +// QuerySchemaVersionMetadata mocks base method. +func (m *MockGlueAPI) QuerySchemaVersionMetadata(arg0 *glue.QuerySchemaVersionMetadataInput) (*glue.QuerySchemaVersionMetadataOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "QuerySchemaVersionMetadata", arg0) + ret0, _ := ret[0].(*glue.QuerySchemaVersionMetadataOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// QuerySchemaVersionMetadata indicates an expected call of QuerySchemaVersionMetadata. +func (mr *MockGlueAPIMockRecorder) QuerySchemaVersionMetadata(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QuerySchemaVersionMetadata", reflect.TypeOf((*MockGlueAPI)(nil).QuerySchemaVersionMetadata), arg0) +} + +// QuerySchemaVersionMetadataRequest mocks base method. +func (m *MockGlueAPI) QuerySchemaVersionMetadataRequest(arg0 *glue.QuerySchemaVersionMetadataInput) (*request.Request, *glue.QuerySchemaVersionMetadataOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "QuerySchemaVersionMetadataRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.QuerySchemaVersionMetadataOutput) + return ret0, ret1 +} + +// QuerySchemaVersionMetadataRequest indicates an expected call of QuerySchemaVersionMetadataRequest. +func (mr *MockGlueAPIMockRecorder) QuerySchemaVersionMetadataRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QuerySchemaVersionMetadataRequest", reflect.TypeOf((*MockGlueAPI)(nil).QuerySchemaVersionMetadataRequest), arg0) +} + +// QuerySchemaVersionMetadataWithContext mocks base method. +func (m *MockGlueAPI) QuerySchemaVersionMetadataWithContext(arg0 aws.Context, arg1 *glue.QuerySchemaVersionMetadataInput, arg2 ...request.Option) (*glue.QuerySchemaVersionMetadataOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "QuerySchemaVersionMetadataWithContext", varargs...) + ret0, _ := ret[0].(*glue.QuerySchemaVersionMetadataOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// QuerySchemaVersionMetadataWithContext indicates an expected call of QuerySchemaVersionMetadataWithContext. +func (mr *MockGlueAPIMockRecorder) QuerySchemaVersionMetadataWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QuerySchemaVersionMetadataWithContext", reflect.TypeOf((*MockGlueAPI)(nil).QuerySchemaVersionMetadataWithContext), varargs...) +} + +// RegisterSchemaVersion mocks base method. +func (m *MockGlueAPI) RegisterSchemaVersion(arg0 *glue.RegisterSchemaVersionInput) (*glue.RegisterSchemaVersionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RegisterSchemaVersion", arg0) + ret0, _ := ret[0].(*glue.RegisterSchemaVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RegisterSchemaVersion indicates an expected call of RegisterSchemaVersion. +func (mr *MockGlueAPIMockRecorder) RegisterSchemaVersion(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterSchemaVersion", reflect.TypeOf((*MockGlueAPI)(nil).RegisterSchemaVersion), arg0) +} + +// RegisterSchemaVersionRequest mocks base method. +func (m *MockGlueAPI) RegisterSchemaVersionRequest(arg0 *glue.RegisterSchemaVersionInput) (*request.Request, *glue.RegisterSchemaVersionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RegisterSchemaVersionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.RegisterSchemaVersionOutput) + return ret0, ret1 +} + +// RegisterSchemaVersionRequest indicates an expected call of RegisterSchemaVersionRequest. +func (mr *MockGlueAPIMockRecorder) RegisterSchemaVersionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterSchemaVersionRequest", reflect.TypeOf((*MockGlueAPI)(nil).RegisterSchemaVersionRequest), arg0) +} + +// RegisterSchemaVersionWithContext mocks base method. +func (m *MockGlueAPI) RegisterSchemaVersionWithContext(arg0 aws.Context, arg1 *glue.RegisterSchemaVersionInput, arg2 ...request.Option) (*glue.RegisterSchemaVersionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RegisterSchemaVersionWithContext", varargs...) + ret0, _ := ret[0].(*glue.RegisterSchemaVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RegisterSchemaVersionWithContext indicates an expected call of RegisterSchemaVersionWithContext. +func (mr *MockGlueAPIMockRecorder) RegisterSchemaVersionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterSchemaVersionWithContext", reflect.TypeOf((*MockGlueAPI)(nil).RegisterSchemaVersionWithContext), varargs...) +} + +// RemoveSchemaVersionMetadata mocks base method. +func (m *MockGlueAPI) RemoveSchemaVersionMetadata(arg0 *glue.RemoveSchemaVersionMetadataInput) (*glue.RemoveSchemaVersionMetadataOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RemoveSchemaVersionMetadata", arg0) + ret0, _ := ret[0].(*glue.RemoveSchemaVersionMetadataOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RemoveSchemaVersionMetadata indicates an expected call of RemoveSchemaVersionMetadata. +func (mr *MockGlueAPIMockRecorder) RemoveSchemaVersionMetadata(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveSchemaVersionMetadata", reflect.TypeOf((*MockGlueAPI)(nil).RemoveSchemaVersionMetadata), arg0) +} + +// RemoveSchemaVersionMetadataRequest mocks base method. +func (m *MockGlueAPI) RemoveSchemaVersionMetadataRequest(arg0 *glue.RemoveSchemaVersionMetadataInput) (*request.Request, *glue.RemoveSchemaVersionMetadataOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RemoveSchemaVersionMetadataRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.RemoveSchemaVersionMetadataOutput) + return ret0, ret1 +} + +// RemoveSchemaVersionMetadataRequest indicates an expected call of RemoveSchemaVersionMetadataRequest. +func (mr *MockGlueAPIMockRecorder) RemoveSchemaVersionMetadataRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveSchemaVersionMetadataRequest", reflect.TypeOf((*MockGlueAPI)(nil).RemoveSchemaVersionMetadataRequest), arg0) +} + +// RemoveSchemaVersionMetadataWithContext mocks base method. +func (m *MockGlueAPI) RemoveSchemaVersionMetadataWithContext(arg0 aws.Context, arg1 *glue.RemoveSchemaVersionMetadataInput, arg2 ...request.Option) (*glue.RemoveSchemaVersionMetadataOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RemoveSchemaVersionMetadataWithContext", varargs...) + ret0, _ := ret[0].(*glue.RemoveSchemaVersionMetadataOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RemoveSchemaVersionMetadataWithContext indicates an expected call of RemoveSchemaVersionMetadataWithContext. +func (mr *MockGlueAPIMockRecorder) RemoveSchemaVersionMetadataWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveSchemaVersionMetadataWithContext", reflect.TypeOf((*MockGlueAPI)(nil).RemoveSchemaVersionMetadataWithContext), varargs...) +} + +// ResetJobBookmark mocks base method. +func (m *MockGlueAPI) ResetJobBookmark(arg0 *glue.ResetJobBookmarkInput) (*glue.ResetJobBookmarkOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ResetJobBookmark", arg0) + ret0, _ := ret[0].(*glue.ResetJobBookmarkOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ResetJobBookmark indicates an expected call of ResetJobBookmark. +func (mr *MockGlueAPIMockRecorder) ResetJobBookmark(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResetJobBookmark", reflect.TypeOf((*MockGlueAPI)(nil).ResetJobBookmark), arg0) +} + +// ResetJobBookmarkRequest mocks base method. +func (m *MockGlueAPI) ResetJobBookmarkRequest(arg0 *glue.ResetJobBookmarkInput) (*request.Request, *glue.ResetJobBookmarkOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ResetJobBookmarkRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.ResetJobBookmarkOutput) + return ret0, ret1 +} + +// ResetJobBookmarkRequest indicates an expected call of ResetJobBookmarkRequest. +func (mr *MockGlueAPIMockRecorder) ResetJobBookmarkRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResetJobBookmarkRequest", reflect.TypeOf((*MockGlueAPI)(nil).ResetJobBookmarkRequest), arg0) +} + +// ResetJobBookmarkWithContext mocks base method. +func (m *MockGlueAPI) ResetJobBookmarkWithContext(arg0 aws.Context, arg1 *glue.ResetJobBookmarkInput, arg2 ...request.Option) (*glue.ResetJobBookmarkOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ResetJobBookmarkWithContext", varargs...) + ret0, _ := ret[0].(*glue.ResetJobBookmarkOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ResetJobBookmarkWithContext indicates an expected call of ResetJobBookmarkWithContext. +func (mr *MockGlueAPIMockRecorder) ResetJobBookmarkWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResetJobBookmarkWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ResetJobBookmarkWithContext), varargs...) +} + +// ResumeWorkflowRun mocks base method. +func (m *MockGlueAPI) ResumeWorkflowRun(arg0 *glue.ResumeWorkflowRunInput) (*glue.ResumeWorkflowRunOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ResumeWorkflowRun", arg0) + ret0, _ := ret[0].(*glue.ResumeWorkflowRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ResumeWorkflowRun indicates an expected call of ResumeWorkflowRun. +func (mr *MockGlueAPIMockRecorder) ResumeWorkflowRun(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResumeWorkflowRun", reflect.TypeOf((*MockGlueAPI)(nil).ResumeWorkflowRun), arg0) +} + +// ResumeWorkflowRunRequest mocks base method. +func (m *MockGlueAPI) ResumeWorkflowRunRequest(arg0 *glue.ResumeWorkflowRunInput) (*request.Request, *glue.ResumeWorkflowRunOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ResumeWorkflowRunRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.ResumeWorkflowRunOutput) + return ret0, ret1 +} + +// ResumeWorkflowRunRequest indicates an expected call of ResumeWorkflowRunRequest. +func (mr *MockGlueAPIMockRecorder) ResumeWorkflowRunRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResumeWorkflowRunRequest", reflect.TypeOf((*MockGlueAPI)(nil).ResumeWorkflowRunRequest), arg0) +} + +// ResumeWorkflowRunWithContext mocks base method. +func (m *MockGlueAPI) ResumeWorkflowRunWithContext(arg0 aws.Context, arg1 *glue.ResumeWorkflowRunInput, arg2 ...request.Option) (*glue.ResumeWorkflowRunOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ResumeWorkflowRunWithContext", varargs...) + ret0, _ := ret[0].(*glue.ResumeWorkflowRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ResumeWorkflowRunWithContext indicates an expected call of ResumeWorkflowRunWithContext. +func (mr *MockGlueAPIMockRecorder) ResumeWorkflowRunWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResumeWorkflowRunWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ResumeWorkflowRunWithContext), varargs...) +} + +// RunStatement mocks base method. +func (m *MockGlueAPI) RunStatement(arg0 *glue.RunStatementInput) (*glue.RunStatementOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RunStatement", arg0) + ret0, _ := ret[0].(*glue.RunStatementOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RunStatement indicates an expected call of RunStatement. +func (mr *MockGlueAPIMockRecorder) RunStatement(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RunStatement", reflect.TypeOf((*MockGlueAPI)(nil).RunStatement), arg0) +} + +// RunStatementRequest mocks base method. +func (m *MockGlueAPI) RunStatementRequest(arg0 *glue.RunStatementInput) (*request.Request, *glue.RunStatementOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RunStatementRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.RunStatementOutput) + return ret0, ret1 +} + +// RunStatementRequest indicates an expected call of RunStatementRequest. +func (mr *MockGlueAPIMockRecorder) RunStatementRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RunStatementRequest", reflect.TypeOf((*MockGlueAPI)(nil).RunStatementRequest), arg0) +} + +// RunStatementWithContext mocks base method. +func (m *MockGlueAPI) RunStatementWithContext(arg0 aws.Context, arg1 *glue.RunStatementInput, arg2 ...request.Option) (*glue.RunStatementOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RunStatementWithContext", varargs...) + ret0, _ := ret[0].(*glue.RunStatementOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RunStatementWithContext indicates an expected call of RunStatementWithContext. +func (mr *MockGlueAPIMockRecorder) RunStatementWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RunStatementWithContext", reflect.TypeOf((*MockGlueAPI)(nil).RunStatementWithContext), varargs...) +} + +// SearchTables mocks base method. +func (m *MockGlueAPI) SearchTables(arg0 *glue.SearchTablesInput) (*glue.SearchTablesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SearchTables", arg0) + ret0, _ := ret[0].(*glue.SearchTablesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SearchTables indicates an expected call of SearchTables. +func (mr *MockGlueAPIMockRecorder) SearchTables(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchTables", reflect.TypeOf((*MockGlueAPI)(nil).SearchTables), arg0) +} + +// SearchTablesPages mocks base method. +func (m *MockGlueAPI) SearchTablesPages(arg0 *glue.SearchTablesInput, arg1 func(*glue.SearchTablesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SearchTablesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// SearchTablesPages indicates an expected call of SearchTablesPages. +func (mr *MockGlueAPIMockRecorder) SearchTablesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchTablesPages", reflect.TypeOf((*MockGlueAPI)(nil).SearchTablesPages), arg0, arg1) +} + +// SearchTablesPagesWithContext mocks base method. +func (m *MockGlueAPI) SearchTablesPagesWithContext(arg0 aws.Context, arg1 *glue.SearchTablesInput, arg2 func(*glue.SearchTablesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SearchTablesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// SearchTablesPagesWithContext indicates an expected call of SearchTablesPagesWithContext. +func (mr *MockGlueAPIMockRecorder) SearchTablesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchTablesPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).SearchTablesPagesWithContext), varargs...) +} + +// SearchTablesRequest mocks base method. +func (m *MockGlueAPI) SearchTablesRequest(arg0 *glue.SearchTablesInput) (*request.Request, *glue.SearchTablesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SearchTablesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.SearchTablesOutput) + return ret0, ret1 +} + +// SearchTablesRequest indicates an expected call of SearchTablesRequest. +func (mr *MockGlueAPIMockRecorder) SearchTablesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchTablesRequest", reflect.TypeOf((*MockGlueAPI)(nil).SearchTablesRequest), arg0) +} + +// SearchTablesWithContext mocks base method. +func (m *MockGlueAPI) SearchTablesWithContext(arg0 aws.Context, arg1 *glue.SearchTablesInput, arg2 ...request.Option) (*glue.SearchTablesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SearchTablesWithContext", varargs...) + ret0, _ := ret[0].(*glue.SearchTablesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SearchTablesWithContext indicates an expected call of SearchTablesWithContext. +func (mr *MockGlueAPIMockRecorder) SearchTablesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchTablesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).SearchTablesWithContext), varargs...) +} + +// StartBlueprintRun mocks base method. +func (m *MockGlueAPI) StartBlueprintRun(arg0 *glue.StartBlueprintRunInput) (*glue.StartBlueprintRunOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartBlueprintRun", arg0) + ret0, _ := ret[0].(*glue.StartBlueprintRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartBlueprintRun indicates an expected call of StartBlueprintRun. +func (mr *MockGlueAPIMockRecorder) StartBlueprintRun(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartBlueprintRun", reflect.TypeOf((*MockGlueAPI)(nil).StartBlueprintRun), arg0) +} + +// StartBlueprintRunRequest mocks base method. +func (m *MockGlueAPI) StartBlueprintRunRequest(arg0 *glue.StartBlueprintRunInput) (*request.Request, *glue.StartBlueprintRunOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartBlueprintRunRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.StartBlueprintRunOutput) + return ret0, ret1 +} + +// StartBlueprintRunRequest indicates an expected call of StartBlueprintRunRequest. +func (mr *MockGlueAPIMockRecorder) StartBlueprintRunRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartBlueprintRunRequest", reflect.TypeOf((*MockGlueAPI)(nil).StartBlueprintRunRequest), arg0) +} + +// StartBlueprintRunWithContext mocks base method. +func (m *MockGlueAPI) StartBlueprintRunWithContext(arg0 aws.Context, arg1 *glue.StartBlueprintRunInput, arg2 ...request.Option) (*glue.StartBlueprintRunOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StartBlueprintRunWithContext", varargs...) + ret0, _ := ret[0].(*glue.StartBlueprintRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartBlueprintRunWithContext indicates an expected call of StartBlueprintRunWithContext. +func (mr *MockGlueAPIMockRecorder) StartBlueprintRunWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartBlueprintRunWithContext", reflect.TypeOf((*MockGlueAPI)(nil).StartBlueprintRunWithContext), varargs...) +} + +// StartColumnStatisticsTaskRun mocks base method. +func (m *MockGlueAPI) StartColumnStatisticsTaskRun(arg0 *glue.StartColumnStatisticsTaskRunInput) (*glue.StartColumnStatisticsTaskRunOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartColumnStatisticsTaskRun", arg0) + ret0, _ := ret[0].(*glue.StartColumnStatisticsTaskRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartColumnStatisticsTaskRun indicates an expected call of StartColumnStatisticsTaskRun. +func (mr *MockGlueAPIMockRecorder) StartColumnStatisticsTaskRun(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartColumnStatisticsTaskRun", reflect.TypeOf((*MockGlueAPI)(nil).StartColumnStatisticsTaskRun), arg0) +} + +// StartColumnStatisticsTaskRunRequest mocks base method. +func (m *MockGlueAPI) StartColumnStatisticsTaskRunRequest(arg0 *glue.StartColumnStatisticsTaskRunInput) (*request.Request, *glue.StartColumnStatisticsTaskRunOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartColumnStatisticsTaskRunRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.StartColumnStatisticsTaskRunOutput) + return ret0, ret1 +} + +// StartColumnStatisticsTaskRunRequest indicates an expected call of StartColumnStatisticsTaskRunRequest. +func (mr *MockGlueAPIMockRecorder) StartColumnStatisticsTaskRunRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartColumnStatisticsTaskRunRequest", reflect.TypeOf((*MockGlueAPI)(nil).StartColumnStatisticsTaskRunRequest), arg0) +} + +// StartColumnStatisticsTaskRunWithContext mocks base method. +func (m *MockGlueAPI) StartColumnStatisticsTaskRunWithContext(arg0 aws.Context, arg1 *glue.StartColumnStatisticsTaskRunInput, arg2 ...request.Option) (*glue.StartColumnStatisticsTaskRunOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StartColumnStatisticsTaskRunWithContext", varargs...) + ret0, _ := ret[0].(*glue.StartColumnStatisticsTaskRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartColumnStatisticsTaskRunWithContext indicates an expected call of StartColumnStatisticsTaskRunWithContext. +func (mr *MockGlueAPIMockRecorder) StartColumnStatisticsTaskRunWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartColumnStatisticsTaskRunWithContext", reflect.TypeOf((*MockGlueAPI)(nil).StartColumnStatisticsTaskRunWithContext), varargs...) +} + +// StartCrawler mocks base method. +func (m *MockGlueAPI) StartCrawler(arg0 *glue.StartCrawlerInput) (*glue.StartCrawlerOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartCrawler", arg0) + ret0, _ := ret[0].(*glue.StartCrawlerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartCrawler indicates an expected call of StartCrawler. +func (mr *MockGlueAPIMockRecorder) StartCrawler(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartCrawler", reflect.TypeOf((*MockGlueAPI)(nil).StartCrawler), arg0) +} + +// StartCrawlerRequest mocks base method. +func (m *MockGlueAPI) StartCrawlerRequest(arg0 *glue.StartCrawlerInput) (*request.Request, *glue.StartCrawlerOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartCrawlerRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.StartCrawlerOutput) + return ret0, ret1 +} + +// StartCrawlerRequest indicates an expected call of StartCrawlerRequest. +func (mr *MockGlueAPIMockRecorder) StartCrawlerRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartCrawlerRequest", reflect.TypeOf((*MockGlueAPI)(nil).StartCrawlerRequest), arg0) +} + +// StartCrawlerSchedule mocks base method. +func (m *MockGlueAPI) StartCrawlerSchedule(arg0 *glue.StartCrawlerScheduleInput) (*glue.StartCrawlerScheduleOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartCrawlerSchedule", arg0) + ret0, _ := ret[0].(*glue.StartCrawlerScheduleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartCrawlerSchedule indicates an expected call of StartCrawlerSchedule. +func (mr *MockGlueAPIMockRecorder) StartCrawlerSchedule(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartCrawlerSchedule", reflect.TypeOf((*MockGlueAPI)(nil).StartCrawlerSchedule), arg0) +} + +// StartCrawlerScheduleRequest mocks base method. +func (m *MockGlueAPI) StartCrawlerScheduleRequest(arg0 *glue.StartCrawlerScheduleInput) (*request.Request, *glue.StartCrawlerScheduleOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartCrawlerScheduleRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.StartCrawlerScheduleOutput) + return ret0, ret1 +} + +// StartCrawlerScheduleRequest indicates an expected call of StartCrawlerScheduleRequest. +func (mr *MockGlueAPIMockRecorder) StartCrawlerScheduleRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartCrawlerScheduleRequest", reflect.TypeOf((*MockGlueAPI)(nil).StartCrawlerScheduleRequest), arg0) +} + +// StartCrawlerScheduleWithContext mocks base method. +func (m *MockGlueAPI) StartCrawlerScheduleWithContext(arg0 aws.Context, arg1 *glue.StartCrawlerScheduleInput, arg2 ...request.Option) (*glue.StartCrawlerScheduleOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StartCrawlerScheduleWithContext", varargs...) + ret0, _ := ret[0].(*glue.StartCrawlerScheduleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartCrawlerScheduleWithContext indicates an expected call of StartCrawlerScheduleWithContext. +func (mr *MockGlueAPIMockRecorder) StartCrawlerScheduleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartCrawlerScheduleWithContext", reflect.TypeOf((*MockGlueAPI)(nil).StartCrawlerScheduleWithContext), varargs...) +} + +// StartCrawlerWithContext mocks base method. +func (m *MockGlueAPI) StartCrawlerWithContext(arg0 aws.Context, arg1 *glue.StartCrawlerInput, arg2 ...request.Option) (*glue.StartCrawlerOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StartCrawlerWithContext", varargs...) + ret0, _ := ret[0].(*glue.StartCrawlerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartCrawlerWithContext indicates an expected call of StartCrawlerWithContext. +func (mr *MockGlueAPIMockRecorder) StartCrawlerWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartCrawlerWithContext", reflect.TypeOf((*MockGlueAPI)(nil).StartCrawlerWithContext), varargs...) +} + +// StartDataQualityRuleRecommendationRun mocks base method. +func (m *MockGlueAPI) StartDataQualityRuleRecommendationRun(arg0 *glue.StartDataQualityRuleRecommendationRunInput) (*glue.StartDataQualityRuleRecommendationRunOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartDataQualityRuleRecommendationRun", arg0) + ret0, _ := ret[0].(*glue.StartDataQualityRuleRecommendationRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartDataQualityRuleRecommendationRun indicates an expected call of StartDataQualityRuleRecommendationRun. +func (mr *MockGlueAPIMockRecorder) StartDataQualityRuleRecommendationRun(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartDataQualityRuleRecommendationRun", reflect.TypeOf((*MockGlueAPI)(nil).StartDataQualityRuleRecommendationRun), arg0) +} + +// StartDataQualityRuleRecommendationRunRequest mocks base method. +func (m *MockGlueAPI) StartDataQualityRuleRecommendationRunRequest(arg0 *glue.StartDataQualityRuleRecommendationRunInput) (*request.Request, *glue.StartDataQualityRuleRecommendationRunOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartDataQualityRuleRecommendationRunRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.StartDataQualityRuleRecommendationRunOutput) + return ret0, ret1 +} + +// StartDataQualityRuleRecommendationRunRequest indicates an expected call of StartDataQualityRuleRecommendationRunRequest. +func (mr *MockGlueAPIMockRecorder) StartDataQualityRuleRecommendationRunRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartDataQualityRuleRecommendationRunRequest", reflect.TypeOf((*MockGlueAPI)(nil).StartDataQualityRuleRecommendationRunRequest), arg0) +} + +// StartDataQualityRuleRecommendationRunWithContext mocks base method. +func (m *MockGlueAPI) StartDataQualityRuleRecommendationRunWithContext(arg0 aws.Context, arg1 *glue.StartDataQualityRuleRecommendationRunInput, arg2 ...request.Option) (*glue.StartDataQualityRuleRecommendationRunOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StartDataQualityRuleRecommendationRunWithContext", varargs...) + ret0, _ := ret[0].(*glue.StartDataQualityRuleRecommendationRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartDataQualityRuleRecommendationRunWithContext indicates an expected call of StartDataQualityRuleRecommendationRunWithContext. +func (mr *MockGlueAPIMockRecorder) StartDataQualityRuleRecommendationRunWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartDataQualityRuleRecommendationRunWithContext", reflect.TypeOf((*MockGlueAPI)(nil).StartDataQualityRuleRecommendationRunWithContext), varargs...) +} + +// StartDataQualityRulesetEvaluationRun mocks base method. +func (m *MockGlueAPI) StartDataQualityRulesetEvaluationRun(arg0 *glue.StartDataQualityRulesetEvaluationRunInput) (*glue.StartDataQualityRulesetEvaluationRunOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartDataQualityRulesetEvaluationRun", arg0) + ret0, _ := ret[0].(*glue.StartDataQualityRulesetEvaluationRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartDataQualityRulesetEvaluationRun indicates an expected call of StartDataQualityRulesetEvaluationRun. +func (mr *MockGlueAPIMockRecorder) StartDataQualityRulesetEvaluationRun(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartDataQualityRulesetEvaluationRun", reflect.TypeOf((*MockGlueAPI)(nil).StartDataQualityRulesetEvaluationRun), arg0) +} + +// StartDataQualityRulesetEvaluationRunRequest mocks base method. +func (m *MockGlueAPI) StartDataQualityRulesetEvaluationRunRequest(arg0 *glue.StartDataQualityRulesetEvaluationRunInput) (*request.Request, *glue.StartDataQualityRulesetEvaluationRunOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartDataQualityRulesetEvaluationRunRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.StartDataQualityRulesetEvaluationRunOutput) + return ret0, ret1 +} + +// StartDataQualityRulesetEvaluationRunRequest indicates an expected call of StartDataQualityRulesetEvaluationRunRequest. +func (mr *MockGlueAPIMockRecorder) StartDataQualityRulesetEvaluationRunRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartDataQualityRulesetEvaluationRunRequest", reflect.TypeOf((*MockGlueAPI)(nil).StartDataQualityRulesetEvaluationRunRequest), arg0) +} + +// StartDataQualityRulesetEvaluationRunWithContext mocks base method. +func (m *MockGlueAPI) StartDataQualityRulesetEvaluationRunWithContext(arg0 aws.Context, arg1 *glue.StartDataQualityRulesetEvaluationRunInput, arg2 ...request.Option) (*glue.StartDataQualityRulesetEvaluationRunOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StartDataQualityRulesetEvaluationRunWithContext", varargs...) + ret0, _ := ret[0].(*glue.StartDataQualityRulesetEvaluationRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartDataQualityRulesetEvaluationRunWithContext indicates an expected call of StartDataQualityRulesetEvaluationRunWithContext. +func (mr *MockGlueAPIMockRecorder) StartDataQualityRulesetEvaluationRunWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartDataQualityRulesetEvaluationRunWithContext", reflect.TypeOf((*MockGlueAPI)(nil).StartDataQualityRulesetEvaluationRunWithContext), varargs...) +} + +// StartExportLabelsTaskRun mocks base method. +func (m *MockGlueAPI) StartExportLabelsTaskRun(arg0 *glue.StartExportLabelsTaskRunInput) (*glue.StartExportLabelsTaskRunOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartExportLabelsTaskRun", arg0) + ret0, _ := ret[0].(*glue.StartExportLabelsTaskRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartExportLabelsTaskRun indicates an expected call of StartExportLabelsTaskRun. +func (mr *MockGlueAPIMockRecorder) StartExportLabelsTaskRun(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartExportLabelsTaskRun", reflect.TypeOf((*MockGlueAPI)(nil).StartExportLabelsTaskRun), arg0) +} + +// StartExportLabelsTaskRunRequest mocks base method. +func (m *MockGlueAPI) StartExportLabelsTaskRunRequest(arg0 *glue.StartExportLabelsTaskRunInput) (*request.Request, *glue.StartExportLabelsTaskRunOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartExportLabelsTaskRunRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.StartExportLabelsTaskRunOutput) + return ret0, ret1 +} + +// StartExportLabelsTaskRunRequest indicates an expected call of StartExportLabelsTaskRunRequest. +func (mr *MockGlueAPIMockRecorder) StartExportLabelsTaskRunRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartExportLabelsTaskRunRequest", reflect.TypeOf((*MockGlueAPI)(nil).StartExportLabelsTaskRunRequest), arg0) +} + +// StartExportLabelsTaskRunWithContext mocks base method. +func (m *MockGlueAPI) StartExportLabelsTaskRunWithContext(arg0 aws.Context, arg1 *glue.StartExportLabelsTaskRunInput, arg2 ...request.Option) (*glue.StartExportLabelsTaskRunOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StartExportLabelsTaskRunWithContext", varargs...) + ret0, _ := ret[0].(*glue.StartExportLabelsTaskRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartExportLabelsTaskRunWithContext indicates an expected call of StartExportLabelsTaskRunWithContext. +func (mr *MockGlueAPIMockRecorder) StartExportLabelsTaskRunWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartExportLabelsTaskRunWithContext", reflect.TypeOf((*MockGlueAPI)(nil).StartExportLabelsTaskRunWithContext), varargs...) +} + +// StartImportLabelsTaskRun mocks base method. +func (m *MockGlueAPI) StartImportLabelsTaskRun(arg0 *glue.StartImportLabelsTaskRunInput) (*glue.StartImportLabelsTaskRunOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartImportLabelsTaskRun", arg0) + ret0, _ := ret[0].(*glue.StartImportLabelsTaskRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartImportLabelsTaskRun indicates an expected call of StartImportLabelsTaskRun. +func (mr *MockGlueAPIMockRecorder) StartImportLabelsTaskRun(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartImportLabelsTaskRun", reflect.TypeOf((*MockGlueAPI)(nil).StartImportLabelsTaskRun), arg0) +} + +// StartImportLabelsTaskRunRequest mocks base method. +func (m *MockGlueAPI) StartImportLabelsTaskRunRequest(arg0 *glue.StartImportLabelsTaskRunInput) (*request.Request, *glue.StartImportLabelsTaskRunOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartImportLabelsTaskRunRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.StartImportLabelsTaskRunOutput) + return ret0, ret1 +} + +// StartImportLabelsTaskRunRequest indicates an expected call of StartImportLabelsTaskRunRequest. +func (mr *MockGlueAPIMockRecorder) StartImportLabelsTaskRunRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartImportLabelsTaskRunRequest", reflect.TypeOf((*MockGlueAPI)(nil).StartImportLabelsTaskRunRequest), arg0) +} + +// StartImportLabelsTaskRunWithContext mocks base method. +func (m *MockGlueAPI) StartImportLabelsTaskRunWithContext(arg0 aws.Context, arg1 *glue.StartImportLabelsTaskRunInput, arg2 ...request.Option) (*glue.StartImportLabelsTaskRunOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StartImportLabelsTaskRunWithContext", varargs...) + ret0, _ := ret[0].(*glue.StartImportLabelsTaskRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartImportLabelsTaskRunWithContext indicates an expected call of StartImportLabelsTaskRunWithContext. +func (mr *MockGlueAPIMockRecorder) StartImportLabelsTaskRunWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartImportLabelsTaskRunWithContext", reflect.TypeOf((*MockGlueAPI)(nil).StartImportLabelsTaskRunWithContext), varargs...) +} + +// StartJobRun mocks base method. +func (m *MockGlueAPI) StartJobRun(arg0 *glue.StartJobRunInput) (*glue.StartJobRunOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartJobRun", arg0) + ret0, _ := ret[0].(*glue.StartJobRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartJobRun indicates an expected call of StartJobRun. +func (mr *MockGlueAPIMockRecorder) StartJobRun(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartJobRun", reflect.TypeOf((*MockGlueAPI)(nil).StartJobRun), arg0) +} + +// StartJobRunRequest mocks base method. +func (m *MockGlueAPI) StartJobRunRequest(arg0 *glue.StartJobRunInput) (*request.Request, *glue.StartJobRunOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartJobRunRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.StartJobRunOutput) + return ret0, ret1 +} + +// StartJobRunRequest indicates an expected call of StartJobRunRequest. +func (mr *MockGlueAPIMockRecorder) StartJobRunRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartJobRunRequest", reflect.TypeOf((*MockGlueAPI)(nil).StartJobRunRequest), arg0) +} + +// StartJobRunWithContext mocks base method. +func (m *MockGlueAPI) StartJobRunWithContext(arg0 aws.Context, arg1 *glue.StartJobRunInput, arg2 ...request.Option) (*glue.StartJobRunOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StartJobRunWithContext", varargs...) + ret0, _ := ret[0].(*glue.StartJobRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartJobRunWithContext indicates an expected call of StartJobRunWithContext. +func (mr *MockGlueAPIMockRecorder) StartJobRunWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartJobRunWithContext", reflect.TypeOf((*MockGlueAPI)(nil).StartJobRunWithContext), varargs...) +} + +// StartMLEvaluationTaskRun mocks base method. +func (m *MockGlueAPI) StartMLEvaluationTaskRun(arg0 *glue.StartMLEvaluationTaskRunInput) (*glue.StartMLEvaluationTaskRunOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartMLEvaluationTaskRun", arg0) + ret0, _ := ret[0].(*glue.StartMLEvaluationTaskRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartMLEvaluationTaskRun indicates an expected call of StartMLEvaluationTaskRun. +func (mr *MockGlueAPIMockRecorder) StartMLEvaluationTaskRun(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartMLEvaluationTaskRun", reflect.TypeOf((*MockGlueAPI)(nil).StartMLEvaluationTaskRun), arg0) +} + +// StartMLEvaluationTaskRunRequest mocks base method. +func (m *MockGlueAPI) StartMLEvaluationTaskRunRequest(arg0 *glue.StartMLEvaluationTaskRunInput) (*request.Request, *glue.StartMLEvaluationTaskRunOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartMLEvaluationTaskRunRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.StartMLEvaluationTaskRunOutput) + return ret0, ret1 +} + +// StartMLEvaluationTaskRunRequest indicates an expected call of StartMLEvaluationTaskRunRequest. +func (mr *MockGlueAPIMockRecorder) StartMLEvaluationTaskRunRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartMLEvaluationTaskRunRequest", reflect.TypeOf((*MockGlueAPI)(nil).StartMLEvaluationTaskRunRequest), arg0) +} + +// StartMLEvaluationTaskRunWithContext mocks base method. +func (m *MockGlueAPI) StartMLEvaluationTaskRunWithContext(arg0 aws.Context, arg1 *glue.StartMLEvaluationTaskRunInput, arg2 ...request.Option) (*glue.StartMLEvaluationTaskRunOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StartMLEvaluationTaskRunWithContext", varargs...) + ret0, _ := ret[0].(*glue.StartMLEvaluationTaskRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartMLEvaluationTaskRunWithContext indicates an expected call of StartMLEvaluationTaskRunWithContext. +func (mr *MockGlueAPIMockRecorder) StartMLEvaluationTaskRunWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartMLEvaluationTaskRunWithContext", reflect.TypeOf((*MockGlueAPI)(nil).StartMLEvaluationTaskRunWithContext), varargs...) +} + +// StartMLLabelingSetGenerationTaskRun mocks base method. +func (m *MockGlueAPI) StartMLLabelingSetGenerationTaskRun(arg0 *glue.StartMLLabelingSetGenerationTaskRunInput) (*glue.StartMLLabelingSetGenerationTaskRunOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartMLLabelingSetGenerationTaskRun", arg0) + ret0, _ := ret[0].(*glue.StartMLLabelingSetGenerationTaskRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartMLLabelingSetGenerationTaskRun indicates an expected call of StartMLLabelingSetGenerationTaskRun. +func (mr *MockGlueAPIMockRecorder) StartMLLabelingSetGenerationTaskRun(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartMLLabelingSetGenerationTaskRun", reflect.TypeOf((*MockGlueAPI)(nil).StartMLLabelingSetGenerationTaskRun), arg0) +} + +// StartMLLabelingSetGenerationTaskRunRequest mocks base method. +func (m *MockGlueAPI) StartMLLabelingSetGenerationTaskRunRequest(arg0 *glue.StartMLLabelingSetGenerationTaskRunInput) (*request.Request, *glue.StartMLLabelingSetGenerationTaskRunOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartMLLabelingSetGenerationTaskRunRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.StartMLLabelingSetGenerationTaskRunOutput) + return ret0, ret1 +} + +// StartMLLabelingSetGenerationTaskRunRequest indicates an expected call of StartMLLabelingSetGenerationTaskRunRequest. +func (mr *MockGlueAPIMockRecorder) StartMLLabelingSetGenerationTaskRunRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartMLLabelingSetGenerationTaskRunRequest", reflect.TypeOf((*MockGlueAPI)(nil).StartMLLabelingSetGenerationTaskRunRequest), arg0) +} + +// StartMLLabelingSetGenerationTaskRunWithContext mocks base method. +func (m *MockGlueAPI) StartMLLabelingSetGenerationTaskRunWithContext(arg0 aws.Context, arg1 *glue.StartMLLabelingSetGenerationTaskRunInput, arg2 ...request.Option) (*glue.StartMLLabelingSetGenerationTaskRunOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StartMLLabelingSetGenerationTaskRunWithContext", varargs...) + ret0, _ := ret[0].(*glue.StartMLLabelingSetGenerationTaskRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartMLLabelingSetGenerationTaskRunWithContext indicates an expected call of StartMLLabelingSetGenerationTaskRunWithContext. +func (mr *MockGlueAPIMockRecorder) StartMLLabelingSetGenerationTaskRunWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartMLLabelingSetGenerationTaskRunWithContext", reflect.TypeOf((*MockGlueAPI)(nil).StartMLLabelingSetGenerationTaskRunWithContext), varargs...) +} + +// StartTrigger mocks base method. +func (m *MockGlueAPI) StartTrigger(arg0 *glue.StartTriggerInput) (*glue.StartTriggerOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartTrigger", arg0) + ret0, _ := ret[0].(*glue.StartTriggerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartTrigger indicates an expected call of StartTrigger. +func (mr *MockGlueAPIMockRecorder) StartTrigger(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartTrigger", reflect.TypeOf((*MockGlueAPI)(nil).StartTrigger), arg0) +} + +// StartTriggerRequest mocks base method. +func (m *MockGlueAPI) StartTriggerRequest(arg0 *glue.StartTriggerInput) (*request.Request, *glue.StartTriggerOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartTriggerRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.StartTriggerOutput) + return ret0, ret1 +} + +// StartTriggerRequest indicates an expected call of StartTriggerRequest. +func (mr *MockGlueAPIMockRecorder) StartTriggerRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartTriggerRequest", reflect.TypeOf((*MockGlueAPI)(nil).StartTriggerRequest), arg0) +} + +// StartTriggerWithContext mocks base method. +func (m *MockGlueAPI) StartTriggerWithContext(arg0 aws.Context, arg1 *glue.StartTriggerInput, arg2 ...request.Option) (*glue.StartTriggerOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StartTriggerWithContext", varargs...) + ret0, _ := ret[0].(*glue.StartTriggerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartTriggerWithContext indicates an expected call of StartTriggerWithContext. +func (mr *MockGlueAPIMockRecorder) StartTriggerWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartTriggerWithContext", reflect.TypeOf((*MockGlueAPI)(nil).StartTriggerWithContext), varargs...) +} + +// StartWorkflowRun mocks base method. +func (m *MockGlueAPI) StartWorkflowRun(arg0 *glue.StartWorkflowRunInput) (*glue.StartWorkflowRunOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartWorkflowRun", arg0) + ret0, _ := ret[0].(*glue.StartWorkflowRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartWorkflowRun indicates an expected call of StartWorkflowRun. +func (mr *MockGlueAPIMockRecorder) StartWorkflowRun(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartWorkflowRun", reflect.TypeOf((*MockGlueAPI)(nil).StartWorkflowRun), arg0) +} + +// StartWorkflowRunRequest mocks base method. +func (m *MockGlueAPI) StartWorkflowRunRequest(arg0 *glue.StartWorkflowRunInput) (*request.Request, *glue.StartWorkflowRunOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartWorkflowRunRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.StartWorkflowRunOutput) + return ret0, ret1 +} + +// StartWorkflowRunRequest indicates an expected call of StartWorkflowRunRequest. +func (mr *MockGlueAPIMockRecorder) StartWorkflowRunRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartWorkflowRunRequest", reflect.TypeOf((*MockGlueAPI)(nil).StartWorkflowRunRequest), arg0) +} + +// StartWorkflowRunWithContext mocks base method. +func (m *MockGlueAPI) StartWorkflowRunWithContext(arg0 aws.Context, arg1 *glue.StartWorkflowRunInput, arg2 ...request.Option) (*glue.StartWorkflowRunOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StartWorkflowRunWithContext", varargs...) + ret0, _ := ret[0].(*glue.StartWorkflowRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartWorkflowRunWithContext indicates an expected call of StartWorkflowRunWithContext. +func (mr *MockGlueAPIMockRecorder) StartWorkflowRunWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartWorkflowRunWithContext", reflect.TypeOf((*MockGlueAPI)(nil).StartWorkflowRunWithContext), varargs...) +} + +// StopColumnStatisticsTaskRun mocks base method. +func (m *MockGlueAPI) StopColumnStatisticsTaskRun(arg0 *glue.StopColumnStatisticsTaskRunInput) (*glue.StopColumnStatisticsTaskRunOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopColumnStatisticsTaskRun", arg0) + ret0, _ := ret[0].(*glue.StopColumnStatisticsTaskRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopColumnStatisticsTaskRun indicates an expected call of StopColumnStatisticsTaskRun. +func (mr *MockGlueAPIMockRecorder) StopColumnStatisticsTaskRun(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopColumnStatisticsTaskRun", reflect.TypeOf((*MockGlueAPI)(nil).StopColumnStatisticsTaskRun), arg0) +} + +// StopColumnStatisticsTaskRunRequest mocks base method. +func (m *MockGlueAPI) StopColumnStatisticsTaskRunRequest(arg0 *glue.StopColumnStatisticsTaskRunInput) (*request.Request, *glue.StopColumnStatisticsTaskRunOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopColumnStatisticsTaskRunRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.StopColumnStatisticsTaskRunOutput) + return ret0, ret1 +} + +// StopColumnStatisticsTaskRunRequest indicates an expected call of StopColumnStatisticsTaskRunRequest. +func (mr *MockGlueAPIMockRecorder) StopColumnStatisticsTaskRunRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopColumnStatisticsTaskRunRequest", reflect.TypeOf((*MockGlueAPI)(nil).StopColumnStatisticsTaskRunRequest), arg0) +} + +// StopColumnStatisticsTaskRunWithContext mocks base method. +func (m *MockGlueAPI) StopColumnStatisticsTaskRunWithContext(arg0 aws.Context, arg1 *glue.StopColumnStatisticsTaskRunInput, arg2 ...request.Option) (*glue.StopColumnStatisticsTaskRunOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StopColumnStatisticsTaskRunWithContext", varargs...) + ret0, _ := ret[0].(*glue.StopColumnStatisticsTaskRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopColumnStatisticsTaskRunWithContext indicates an expected call of StopColumnStatisticsTaskRunWithContext. +func (mr *MockGlueAPIMockRecorder) StopColumnStatisticsTaskRunWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopColumnStatisticsTaskRunWithContext", reflect.TypeOf((*MockGlueAPI)(nil).StopColumnStatisticsTaskRunWithContext), varargs...) +} + +// StopCrawler mocks base method. +func (m *MockGlueAPI) StopCrawler(arg0 *glue.StopCrawlerInput) (*glue.StopCrawlerOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopCrawler", arg0) + ret0, _ := ret[0].(*glue.StopCrawlerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopCrawler indicates an expected call of StopCrawler. +func (mr *MockGlueAPIMockRecorder) StopCrawler(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopCrawler", reflect.TypeOf((*MockGlueAPI)(nil).StopCrawler), arg0) +} + +// StopCrawlerRequest mocks base method. +func (m *MockGlueAPI) StopCrawlerRequest(arg0 *glue.StopCrawlerInput) (*request.Request, *glue.StopCrawlerOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopCrawlerRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.StopCrawlerOutput) + return ret0, ret1 +} + +// StopCrawlerRequest indicates an expected call of StopCrawlerRequest. +func (mr *MockGlueAPIMockRecorder) StopCrawlerRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopCrawlerRequest", reflect.TypeOf((*MockGlueAPI)(nil).StopCrawlerRequest), arg0) +} + +// StopCrawlerSchedule mocks base method. +func (m *MockGlueAPI) StopCrawlerSchedule(arg0 *glue.StopCrawlerScheduleInput) (*glue.StopCrawlerScheduleOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopCrawlerSchedule", arg0) + ret0, _ := ret[0].(*glue.StopCrawlerScheduleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopCrawlerSchedule indicates an expected call of StopCrawlerSchedule. +func (mr *MockGlueAPIMockRecorder) StopCrawlerSchedule(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopCrawlerSchedule", reflect.TypeOf((*MockGlueAPI)(nil).StopCrawlerSchedule), arg0) +} + +// StopCrawlerScheduleRequest mocks base method. +func (m *MockGlueAPI) StopCrawlerScheduleRequest(arg0 *glue.StopCrawlerScheduleInput) (*request.Request, *glue.StopCrawlerScheduleOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopCrawlerScheduleRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.StopCrawlerScheduleOutput) + return ret0, ret1 +} + +// StopCrawlerScheduleRequest indicates an expected call of StopCrawlerScheduleRequest. +func (mr *MockGlueAPIMockRecorder) StopCrawlerScheduleRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopCrawlerScheduleRequest", reflect.TypeOf((*MockGlueAPI)(nil).StopCrawlerScheduleRequest), arg0) +} + +// StopCrawlerScheduleWithContext mocks base method. +func (m *MockGlueAPI) StopCrawlerScheduleWithContext(arg0 aws.Context, arg1 *glue.StopCrawlerScheduleInput, arg2 ...request.Option) (*glue.StopCrawlerScheduleOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StopCrawlerScheduleWithContext", varargs...) + ret0, _ := ret[0].(*glue.StopCrawlerScheduleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopCrawlerScheduleWithContext indicates an expected call of StopCrawlerScheduleWithContext. +func (mr *MockGlueAPIMockRecorder) StopCrawlerScheduleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopCrawlerScheduleWithContext", reflect.TypeOf((*MockGlueAPI)(nil).StopCrawlerScheduleWithContext), varargs...) +} + +// StopCrawlerWithContext mocks base method. +func (m *MockGlueAPI) StopCrawlerWithContext(arg0 aws.Context, arg1 *glue.StopCrawlerInput, arg2 ...request.Option) (*glue.StopCrawlerOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StopCrawlerWithContext", varargs...) + ret0, _ := ret[0].(*glue.StopCrawlerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopCrawlerWithContext indicates an expected call of StopCrawlerWithContext. +func (mr *MockGlueAPIMockRecorder) StopCrawlerWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopCrawlerWithContext", reflect.TypeOf((*MockGlueAPI)(nil).StopCrawlerWithContext), varargs...) +} + +// StopSession mocks base method. +func (m *MockGlueAPI) StopSession(arg0 *glue.StopSessionInput) (*glue.StopSessionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopSession", arg0) + ret0, _ := ret[0].(*glue.StopSessionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopSession indicates an expected call of StopSession. +func (mr *MockGlueAPIMockRecorder) StopSession(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopSession", reflect.TypeOf((*MockGlueAPI)(nil).StopSession), arg0) +} + +// StopSessionRequest mocks base method. +func (m *MockGlueAPI) StopSessionRequest(arg0 *glue.StopSessionInput) (*request.Request, *glue.StopSessionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopSessionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.StopSessionOutput) + return ret0, ret1 +} + +// StopSessionRequest indicates an expected call of StopSessionRequest. +func (mr *MockGlueAPIMockRecorder) StopSessionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopSessionRequest", reflect.TypeOf((*MockGlueAPI)(nil).StopSessionRequest), arg0) +} + +// StopSessionWithContext mocks base method. +func (m *MockGlueAPI) StopSessionWithContext(arg0 aws.Context, arg1 *glue.StopSessionInput, arg2 ...request.Option) (*glue.StopSessionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StopSessionWithContext", varargs...) + ret0, _ := ret[0].(*glue.StopSessionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopSessionWithContext indicates an expected call of StopSessionWithContext. +func (mr *MockGlueAPIMockRecorder) StopSessionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopSessionWithContext", reflect.TypeOf((*MockGlueAPI)(nil).StopSessionWithContext), varargs...) +} + +// StopTrigger mocks base method. +func (m *MockGlueAPI) StopTrigger(arg0 *glue.StopTriggerInput) (*glue.StopTriggerOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopTrigger", arg0) + ret0, _ := ret[0].(*glue.StopTriggerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopTrigger indicates an expected call of StopTrigger. +func (mr *MockGlueAPIMockRecorder) StopTrigger(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopTrigger", reflect.TypeOf((*MockGlueAPI)(nil).StopTrigger), arg0) +} + +// StopTriggerRequest mocks base method. +func (m *MockGlueAPI) StopTriggerRequest(arg0 *glue.StopTriggerInput) (*request.Request, *glue.StopTriggerOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopTriggerRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.StopTriggerOutput) + return ret0, ret1 +} + +// StopTriggerRequest indicates an expected call of StopTriggerRequest. +func (mr *MockGlueAPIMockRecorder) StopTriggerRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopTriggerRequest", reflect.TypeOf((*MockGlueAPI)(nil).StopTriggerRequest), arg0) +} + +// StopTriggerWithContext mocks base method. +func (m *MockGlueAPI) StopTriggerWithContext(arg0 aws.Context, arg1 *glue.StopTriggerInput, arg2 ...request.Option) (*glue.StopTriggerOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StopTriggerWithContext", varargs...) + ret0, _ := ret[0].(*glue.StopTriggerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopTriggerWithContext indicates an expected call of StopTriggerWithContext. +func (mr *MockGlueAPIMockRecorder) StopTriggerWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopTriggerWithContext", reflect.TypeOf((*MockGlueAPI)(nil).StopTriggerWithContext), varargs...) +} + +// StopWorkflowRun mocks base method. +func (m *MockGlueAPI) StopWorkflowRun(arg0 *glue.StopWorkflowRunInput) (*glue.StopWorkflowRunOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopWorkflowRun", arg0) + ret0, _ := ret[0].(*glue.StopWorkflowRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopWorkflowRun indicates an expected call of StopWorkflowRun. +func (mr *MockGlueAPIMockRecorder) StopWorkflowRun(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopWorkflowRun", reflect.TypeOf((*MockGlueAPI)(nil).StopWorkflowRun), arg0) +} + +// StopWorkflowRunRequest mocks base method. +func (m *MockGlueAPI) StopWorkflowRunRequest(arg0 *glue.StopWorkflowRunInput) (*request.Request, *glue.StopWorkflowRunOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopWorkflowRunRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.StopWorkflowRunOutput) + return ret0, ret1 +} + +// StopWorkflowRunRequest indicates an expected call of StopWorkflowRunRequest. +func (mr *MockGlueAPIMockRecorder) StopWorkflowRunRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopWorkflowRunRequest", reflect.TypeOf((*MockGlueAPI)(nil).StopWorkflowRunRequest), arg0) +} + +// StopWorkflowRunWithContext mocks base method. +func (m *MockGlueAPI) StopWorkflowRunWithContext(arg0 aws.Context, arg1 *glue.StopWorkflowRunInput, arg2 ...request.Option) (*glue.StopWorkflowRunOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StopWorkflowRunWithContext", varargs...) + ret0, _ := ret[0].(*glue.StopWorkflowRunOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopWorkflowRunWithContext indicates an expected call of StopWorkflowRunWithContext. +func (mr *MockGlueAPIMockRecorder) StopWorkflowRunWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopWorkflowRunWithContext", reflect.TypeOf((*MockGlueAPI)(nil).StopWorkflowRunWithContext), varargs...) +} + +// TagResource mocks base method. +func (m *MockGlueAPI) TagResource(arg0 *glue.TagResourceInput) (*glue.TagResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagResource", arg0) + ret0, _ := ret[0].(*glue.TagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagResource indicates an expected call of TagResource. +func (mr *MockGlueAPIMockRecorder) TagResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagResource", reflect.TypeOf((*MockGlueAPI)(nil).TagResource), arg0) +} + +// TagResourceRequest mocks base method. +func (m *MockGlueAPI) TagResourceRequest(arg0 *glue.TagResourceInput) (*request.Request, *glue.TagResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.TagResourceOutput) + return ret0, ret1 +} + +// TagResourceRequest indicates an expected call of TagResourceRequest. +func (mr *MockGlueAPIMockRecorder) TagResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagResourceRequest", reflect.TypeOf((*MockGlueAPI)(nil).TagResourceRequest), arg0) +} + +// TagResourceWithContext mocks base method. +func (m *MockGlueAPI) TagResourceWithContext(arg0 aws.Context, arg1 *glue.TagResourceInput, arg2 ...request.Option) (*glue.TagResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "TagResourceWithContext", varargs...) + ret0, _ := ret[0].(*glue.TagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagResourceWithContext indicates an expected call of TagResourceWithContext. +func (mr *MockGlueAPIMockRecorder) TagResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagResourceWithContext", reflect.TypeOf((*MockGlueAPI)(nil).TagResourceWithContext), varargs...) +} + +// UntagResource mocks base method. +func (m *MockGlueAPI) UntagResource(arg0 *glue.UntagResourceInput) (*glue.UntagResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagResource", arg0) + ret0, _ := ret[0].(*glue.UntagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagResource indicates an expected call of UntagResource. +func (mr *MockGlueAPIMockRecorder) UntagResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagResource", reflect.TypeOf((*MockGlueAPI)(nil).UntagResource), arg0) +} + +// UntagResourceRequest mocks base method. +func (m *MockGlueAPI) UntagResourceRequest(arg0 *glue.UntagResourceInput) (*request.Request, *glue.UntagResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.UntagResourceOutput) + return ret0, ret1 +} + +// UntagResourceRequest indicates an expected call of UntagResourceRequest. +func (mr *MockGlueAPIMockRecorder) UntagResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagResourceRequest", reflect.TypeOf((*MockGlueAPI)(nil).UntagResourceRequest), arg0) +} + +// UntagResourceWithContext mocks base method. +func (m *MockGlueAPI) UntagResourceWithContext(arg0 aws.Context, arg1 *glue.UntagResourceInput, arg2 ...request.Option) (*glue.UntagResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UntagResourceWithContext", varargs...) + ret0, _ := ret[0].(*glue.UntagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagResourceWithContext indicates an expected call of UntagResourceWithContext. +func (mr *MockGlueAPIMockRecorder) UntagResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagResourceWithContext", reflect.TypeOf((*MockGlueAPI)(nil).UntagResourceWithContext), varargs...) +} + +// UpdateBlueprint mocks base method. +func (m *MockGlueAPI) UpdateBlueprint(arg0 *glue.UpdateBlueprintInput) (*glue.UpdateBlueprintOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateBlueprint", arg0) + ret0, _ := ret[0].(*glue.UpdateBlueprintOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateBlueprint indicates an expected call of UpdateBlueprint. +func (mr *MockGlueAPIMockRecorder) UpdateBlueprint(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateBlueprint", reflect.TypeOf((*MockGlueAPI)(nil).UpdateBlueprint), arg0) +} + +// UpdateBlueprintRequest mocks base method. +func (m *MockGlueAPI) UpdateBlueprintRequest(arg0 *glue.UpdateBlueprintInput) (*request.Request, *glue.UpdateBlueprintOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateBlueprintRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.UpdateBlueprintOutput) + return ret0, ret1 +} + +// UpdateBlueprintRequest indicates an expected call of UpdateBlueprintRequest. +func (mr *MockGlueAPIMockRecorder) UpdateBlueprintRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateBlueprintRequest", reflect.TypeOf((*MockGlueAPI)(nil).UpdateBlueprintRequest), arg0) +} + +// UpdateBlueprintWithContext mocks base method. +func (m *MockGlueAPI) UpdateBlueprintWithContext(arg0 aws.Context, arg1 *glue.UpdateBlueprintInput, arg2 ...request.Option) (*glue.UpdateBlueprintOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateBlueprintWithContext", varargs...) + ret0, _ := ret[0].(*glue.UpdateBlueprintOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateBlueprintWithContext indicates an expected call of UpdateBlueprintWithContext. +func (mr *MockGlueAPIMockRecorder) UpdateBlueprintWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateBlueprintWithContext", reflect.TypeOf((*MockGlueAPI)(nil).UpdateBlueprintWithContext), varargs...) +} + +// UpdateClassifier mocks base method. +func (m *MockGlueAPI) UpdateClassifier(arg0 *glue.UpdateClassifierInput) (*glue.UpdateClassifierOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateClassifier", arg0) + ret0, _ := ret[0].(*glue.UpdateClassifierOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateClassifier indicates an expected call of UpdateClassifier. +func (mr *MockGlueAPIMockRecorder) UpdateClassifier(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateClassifier", reflect.TypeOf((*MockGlueAPI)(nil).UpdateClassifier), arg0) +} + +// UpdateClassifierRequest mocks base method. +func (m *MockGlueAPI) UpdateClassifierRequest(arg0 *glue.UpdateClassifierInput) (*request.Request, *glue.UpdateClassifierOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateClassifierRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.UpdateClassifierOutput) + return ret0, ret1 +} + +// UpdateClassifierRequest indicates an expected call of UpdateClassifierRequest. +func (mr *MockGlueAPIMockRecorder) UpdateClassifierRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateClassifierRequest", reflect.TypeOf((*MockGlueAPI)(nil).UpdateClassifierRequest), arg0) +} + +// UpdateClassifierWithContext mocks base method. +func (m *MockGlueAPI) UpdateClassifierWithContext(arg0 aws.Context, arg1 *glue.UpdateClassifierInput, arg2 ...request.Option) (*glue.UpdateClassifierOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateClassifierWithContext", varargs...) + ret0, _ := ret[0].(*glue.UpdateClassifierOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateClassifierWithContext indicates an expected call of UpdateClassifierWithContext. +func (mr *MockGlueAPIMockRecorder) UpdateClassifierWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateClassifierWithContext", reflect.TypeOf((*MockGlueAPI)(nil).UpdateClassifierWithContext), varargs...) +} + +// UpdateColumnStatisticsForPartition mocks base method. +func (m *MockGlueAPI) UpdateColumnStatisticsForPartition(arg0 *glue.UpdateColumnStatisticsForPartitionInput) (*glue.UpdateColumnStatisticsForPartitionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateColumnStatisticsForPartition", arg0) + ret0, _ := ret[0].(*glue.UpdateColumnStatisticsForPartitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateColumnStatisticsForPartition indicates an expected call of UpdateColumnStatisticsForPartition. +func (mr *MockGlueAPIMockRecorder) UpdateColumnStatisticsForPartition(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateColumnStatisticsForPartition", reflect.TypeOf((*MockGlueAPI)(nil).UpdateColumnStatisticsForPartition), arg0) +} + +// UpdateColumnStatisticsForPartitionRequest mocks base method. +func (m *MockGlueAPI) UpdateColumnStatisticsForPartitionRequest(arg0 *glue.UpdateColumnStatisticsForPartitionInput) (*request.Request, *glue.UpdateColumnStatisticsForPartitionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateColumnStatisticsForPartitionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.UpdateColumnStatisticsForPartitionOutput) + return ret0, ret1 +} + +// UpdateColumnStatisticsForPartitionRequest indicates an expected call of UpdateColumnStatisticsForPartitionRequest. +func (mr *MockGlueAPIMockRecorder) UpdateColumnStatisticsForPartitionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateColumnStatisticsForPartitionRequest", reflect.TypeOf((*MockGlueAPI)(nil).UpdateColumnStatisticsForPartitionRequest), arg0) +} + +// UpdateColumnStatisticsForPartitionWithContext mocks base method. +func (m *MockGlueAPI) UpdateColumnStatisticsForPartitionWithContext(arg0 aws.Context, arg1 *glue.UpdateColumnStatisticsForPartitionInput, arg2 ...request.Option) (*glue.UpdateColumnStatisticsForPartitionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateColumnStatisticsForPartitionWithContext", varargs...) + ret0, _ := ret[0].(*glue.UpdateColumnStatisticsForPartitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateColumnStatisticsForPartitionWithContext indicates an expected call of UpdateColumnStatisticsForPartitionWithContext. +func (mr *MockGlueAPIMockRecorder) UpdateColumnStatisticsForPartitionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateColumnStatisticsForPartitionWithContext", reflect.TypeOf((*MockGlueAPI)(nil).UpdateColumnStatisticsForPartitionWithContext), varargs...) +} + +// UpdateColumnStatisticsForTable mocks base method. +func (m *MockGlueAPI) UpdateColumnStatisticsForTable(arg0 *glue.UpdateColumnStatisticsForTableInput) (*glue.UpdateColumnStatisticsForTableOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateColumnStatisticsForTable", arg0) + ret0, _ := ret[0].(*glue.UpdateColumnStatisticsForTableOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateColumnStatisticsForTable indicates an expected call of UpdateColumnStatisticsForTable. +func (mr *MockGlueAPIMockRecorder) UpdateColumnStatisticsForTable(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateColumnStatisticsForTable", reflect.TypeOf((*MockGlueAPI)(nil).UpdateColumnStatisticsForTable), arg0) +} + +// UpdateColumnStatisticsForTableRequest mocks base method. +func (m *MockGlueAPI) UpdateColumnStatisticsForTableRequest(arg0 *glue.UpdateColumnStatisticsForTableInput) (*request.Request, *glue.UpdateColumnStatisticsForTableOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateColumnStatisticsForTableRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.UpdateColumnStatisticsForTableOutput) + return ret0, ret1 +} + +// UpdateColumnStatisticsForTableRequest indicates an expected call of UpdateColumnStatisticsForTableRequest. +func (mr *MockGlueAPIMockRecorder) UpdateColumnStatisticsForTableRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateColumnStatisticsForTableRequest", reflect.TypeOf((*MockGlueAPI)(nil).UpdateColumnStatisticsForTableRequest), arg0) +} + +// UpdateColumnStatisticsForTableWithContext mocks base method. +func (m *MockGlueAPI) UpdateColumnStatisticsForTableWithContext(arg0 aws.Context, arg1 *glue.UpdateColumnStatisticsForTableInput, arg2 ...request.Option) (*glue.UpdateColumnStatisticsForTableOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateColumnStatisticsForTableWithContext", varargs...) + ret0, _ := ret[0].(*glue.UpdateColumnStatisticsForTableOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateColumnStatisticsForTableWithContext indicates an expected call of UpdateColumnStatisticsForTableWithContext. +func (mr *MockGlueAPIMockRecorder) UpdateColumnStatisticsForTableWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateColumnStatisticsForTableWithContext", reflect.TypeOf((*MockGlueAPI)(nil).UpdateColumnStatisticsForTableWithContext), varargs...) +} + +// UpdateConnection mocks base method. +func (m *MockGlueAPI) UpdateConnection(arg0 *glue.UpdateConnectionInput) (*glue.UpdateConnectionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateConnection", arg0) + ret0, _ := ret[0].(*glue.UpdateConnectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateConnection indicates an expected call of UpdateConnection. +func (mr *MockGlueAPIMockRecorder) UpdateConnection(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateConnection", reflect.TypeOf((*MockGlueAPI)(nil).UpdateConnection), arg0) +} + +// UpdateConnectionRequest mocks base method. +func (m *MockGlueAPI) UpdateConnectionRequest(arg0 *glue.UpdateConnectionInput) (*request.Request, *glue.UpdateConnectionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateConnectionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.UpdateConnectionOutput) + return ret0, ret1 +} + +// UpdateConnectionRequest indicates an expected call of UpdateConnectionRequest. +func (mr *MockGlueAPIMockRecorder) UpdateConnectionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateConnectionRequest", reflect.TypeOf((*MockGlueAPI)(nil).UpdateConnectionRequest), arg0) +} + +// UpdateConnectionWithContext mocks base method. +func (m *MockGlueAPI) UpdateConnectionWithContext(arg0 aws.Context, arg1 *glue.UpdateConnectionInput, arg2 ...request.Option) (*glue.UpdateConnectionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateConnectionWithContext", varargs...) + ret0, _ := ret[0].(*glue.UpdateConnectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateConnectionWithContext indicates an expected call of UpdateConnectionWithContext. +func (mr *MockGlueAPIMockRecorder) UpdateConnectionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateConnectionWithContext", reflect.TypeOf((*MockGlueAPI)(nil).UpdateConnectionWithContext), varargs...) +} + +// UpdateCrawler mocks base method. +func (m *MockGlueAPI) UpdateCrawler(arg0 *glue.UpdateCrawlerInput) (*glue.UpdateCrawlerOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateCrawler", arg0) + ret0, _ := ret[0].(*glue.UpdateCrawlerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateCrawler indicates an expected call of UpdateCrawler. +func (mr *MockGlueAPIMockRecorder) UpdateCrawler(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateCrawler", reflect.TypeOf((*MockGlueAPI)(nil).UpdateCrawler), arg0) +} + +// UpdateCrawlerRequest mocks base method. +func (m *MockGlueAPI) UpdateCrawlerRequest(arg0 *glue.UpdateCrawlerInput) (*request.Request, *glue.UpdateCrawlerOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateCrawlerRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.UpdateCrawlerOutput) + return ret0, ret1 +} + +// UpdateCrawlerRequest indicates an expected call of UpdateCrawlerRequest. +func (mr *MockGlueAPIMockRecorder) UpdateCrawlerRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateCrawlerRequest", reflect.TypeOf((*MockGlueAPI)(nil).UpdateCrawlerRequest), arg0) +} + +// UpdateCrawlerSchedule mocks base method. +func (m *MockGlueAPI) UpdateCrawlerSchedule(arg0 *glue.UpdateCrawlerScheduleInput) (*glue.UpdateCrawlerScheduleOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateCrawlerSchedule", arg0) + ret0, _ := ret[0].(*glue.UpdateCrawlerScheduleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateCrawlerSchedule indicates an expected call of UpdateCrawlerSchedule. +func (mr *MockGlueAPIMockRecorder) UpdateCrawlerSchedule(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateCrawlerSchedule", reflect.TypeOf((*MockGlueAPI)(nil).UpdateCrawlerSchedule), arg0) +} + +// UpdateCrawlerScheduleRequest mocks base method. +func (m *MockGlueAPI) UpdateCrawlerScheduleRequest(arg0 *glue.UpdateCrawlerScheduleInput) (*request.Request, *glue.UpdateCrawlerScheduleOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateCrawlerScheduleRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.UpdateCrawlerScheduleOutput) + return ret0, ret1 +} + +// UpdateCrawlerScheduleRequest indicates an expected call of UpdateCrawlerScheduleRequest. +func (mr *MockGlueAPIMockRecorder) UpdateCrawlerScheduleRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateCrawlerScheduleRequest", reflect.TypeOf((*MockGlueAPI)(nil).UpdateCrawlerScheduleRequest), arg0) +} + +// UpdateCrawlerScheduleWithContext mocks base method. +func (m *MockGlueAPI) UpdateCrawlerScheduleWithContext(arg0 aws.Context, arg1 *glue.UpdateCrawlerScheduleInput, arg2 ...request.Option) (*glue.UpdateCrawlerScheduleOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateCrawlerScheduleWithContext", varargs...) + ret0, _ := ret[0].(*glue.UpdateCrawlerScheduleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateCrawlerScheduleWithContext indicates an expected call of UpdateCrawlerScheduleWithContext. +func (mr *MockGlueAPIMockRecorder) UpdateCrawlerScheduleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateCrawlerScheduleWithContext", reflect.TypeOf((*MockGlueAPI)(nil).UpdateCrawlerScheduleWithContext), varargs...) +} + +// UpdateCrawlerWithContext mocks base method. +func (m *MockGlueAPI) UpdateCrawlerWithContext(arg0 aws.Context, arg1 *glue.UpdateCrawlerInput, arg2 ...request.Option) (*glue.UpdateCrawlerOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateCrawlerWithContext", varargs...) + ret0, _ := ret[0].(*glue.UpdateCrawlerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateCrawlerWithContext indicates an expected call of UpdateCrawlerWithContext. +func (mr *MockGlueAPIMockRecorder) UpdateCrawlerWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateCrawlerWithContext", reflect.TypeOf((*MockGlueAPI)(nil).UpdateCrawlerWithContext), varargs...) +} + +// UpdateDataQualityRuleset mocks base method. +func (m *MockGlueAPI) UpdateDataQualityRuleset(arg0 *glue.UpdateDataQualityRulesetInput) (*glue.UpdateDataQualityRulesetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateDataQualityRuleset", arg0) + ret0, _ := ret[0].(*glue.UpdateDataQualityRulesetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateDataQualityRuleset indicates an expected call of UpdateDataQualityRuleset. +func (mr *MockGlueAPIMockRecorder) UpdateDataQualityRuleset(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDataQualityRuleset", reflect.TypeOf((*MockGlueAPI)(nil).UpdateDataQualityRuleset), arg0) +} + +// UpdateDataQualityRulesetRequest mocks base method. +func (m *MockGlueAPI) UpdateDataQualityRulesetRequest(arg0 *glue.UpdateDataQualityRulesetInput) (*request.Request, *glue.UpdateDataQualityRulesetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateDataQualityRulesetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.UpdateDataQualityRulesetOutput) + return ret0, ret1 +} + +// UpdateDataQualityRulesetRequest indicates an expected call of UpdateDataQualityRulesetRequest. +func (mr *MockGlueAPIMockRecorder) UpdateDataQualityRulesetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDataQualityRulesetRequest", reflect.TypeOf((*MockGlueAPI)(nil).UpdateDataQualityRulesetRequest), arg0) +} + +// UpdateDataQualityRulesetWithContext mocks base method. +func (m *MockGlueAPI) UpdateDataQualityRulesetWithContext(arg0 aws.Context, arg1 *glue.UpdateDataQualityRulesetInput, arg2 ...request.Option) (*glue.UpdateDataQualityRulesetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateDataQualityRulesetWithContext", varargs...) + ret0, _ := ret[0].(*glue.UpdateDataQualityRulesetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateDataQualityRulesetWithContext indicates an expected call of UpdateDataQualityRulesetWithContext. +func (mr *MockGlueAPIMockRecorder) UpdateDataQualityRulesetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDataQualityRulesetWithContext", reflect.TypeOf((*MockGlueAPI)(nil).UpdateDataQualityRulesetWithContext), varargs...) +} + +// UpdateDatabase mocks base method. +func (m *MockGlueAPI) UpdateDatabase(arg0 *glue.UpdateDatabaseInput) (*glue.UpdateDatabaseOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateDatabase", arg0) + ret0, _ := ret[0].(*glue.UpdateDatabaseOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateDatabase indicates an expected call of UpdateDatabase. +func (mr *MockGlueAPIMockRecorder) UpdateDatabase(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDatabase", reflect.TypeOf((*MockGlueAPI)(nil).UpdateDatabase), arg0) +} + +// UpdateDatabaseRequest mocks base method. +func (m *MockGlueAPI) UpdateDatabaseRequest(arg0 *glue.UpdateDatabaseInput) (*request.Request, *glue.UpdateDatabaseOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateDatabaseRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.UpdateDatabaseOutput) + return ret0, ret1 +} + +// UpdateDatabaseRequest indicates an expected call of UpdateDatabaseRequest. +func (mr *MockGlueAPIMockRecorder) UpdateDatabaseRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDatabaseRequest", reflect.TypeOf((*MockGlueAPI)(nil).UpdateDatabaseRequest), arg0) +} + +// UpdateDatabaseWithContext mocks base method. +func (m *MockGlueAPI) UpdateDatabaseWithContext(arg0 aws.Context, arg1 *glue.UpdateDatabaseInput, arg2 ...request.Option) (*glue.UpdateDatabaseOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateDatabaseWithContext", varargs...) + ret0, _ := ret[0].(*glue.UpdateDatabaseOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateDatabaseWithContext indicates an expected call of UpdateDatabaseWithContext. +func (mr *MockGlueAPIMockRecorder) UpdateDatabaseWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDatabaseWithContext", reflect.TypeOf((*MockGlueAPI)(nil).UpdateDatabaseWithContext), varargs...) +} + +// UpdateDevEndpoint mocks base method. +func (m *MockGlueAPI) UpdateDevEndpoint(arg0 *glue.UpdateDevEndpointInput) (*glue.UpdateDevEndpointOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateDevEndpoint", arg0) + ret0, _ := ret[0].(*glue.UpdateDevEndpointOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateDevEndpoint indicates an expected call of UpdateDevEndpoint. +func (mr *MockGlueAPIMockRecorder) UpdateDevEndpoint(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDevEndpoint", reflect.TypeOf((*MockGlueAPI)(nil).UpdateDevEndpoint), arg0) +} + +// UpdateDevEndpointRequest mocks base method. +func (m *MockGlueAPI) UpdateDevEndpointRequest(arg0 *glue.UpdateDevEndpointInput) (*request.Request, *glue.UpdateDevEndpointOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateDevEndpointRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.UpdateDevEndpointOutput) + return ret0, ret1 +} + +// UpdateDevEndpointRequest indicates an expected call of UpdateDevEndpointRequest. +func (mr *MockGlueAPIMockRecorder) UpdateDevEndpointRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDevEndpointRequest", reflect.TypeOf((*MockGlueAPI)(nil).UpdateDevEndpointRequest), arg0) +} + +// UpdateDevEndpointWithContext mocks base method. +func (m *MockGlueAPI) UpdateDevEndpointWithContext(arg0 aws.Context, arg1 *glue.UpdateDevEndpointInput, arg2 ...request.Option) (*glue.UpdateDevEndpointOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateDevEndpointWithContext", varargs...) + ret0, _ := ret[0].(*glue.UpdateDevEndpointOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateDevEndpointWithContext indicates an expected call of UpdateDevEndpointWithContext. +func (mr *MockGlueAPIMockRecorder) UpdateDevEndpointWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDevEndpointWithContext", reflect.TypeOf((*MockGlueAPI)(nil).UpdateDevEndpointWithContext), varargs...) +} + +// UpdateJob mocks base method. +func (m *MockGlueAPI) UpdateJob(arg0 *glue.UpdateJobInput) (*glue.UpdateJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateJob", arg0) + ret0, _ := ret[0].(*glue.UpdateJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateJob indicates an expected call of UpdateJob. +func (mr *MockGlueAPIMockRecorder) UpdateJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateJob", reflect.TypeOf((*MockGlueAPI)(nil).UpdateJob), arg0) +} + +// UpdateJobFromSourceControl mocks base method. +func (m *MockGlueAPI) UpdateJobFromSourceControl(arg0 *glue.UpdateJobFromSourceControlInput) (*glue.UpdateJobFromSourceControlOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateJobFromSourceControl", arg0) + ret0, _ := ret[0].(*glue.UpdateJobFromSourceControlOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateJobFromSourceControl indicates an expected call of UpdateJobFromSourceControl. +func (mr *MockGlueAPIMockRecorder) UpdateJobFromSourceControl(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateJobFromSourceControl", reflect.TypeOf((*MockGlueAPI)(nil).UpdateJobFromSourceControl), arg0) +} + +// UpdateJobFromSourceControlRequest mocks base method. +func (m *MockGlueAPI) UpdateJobFromSourceControlRequest(arg0 *glue.UpdateJobFromSourceControlInput) (*request.Request, *glue.UpdateJobFromSourceControlOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateJobFromSourceControlRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.UpdateJobFromSourceControlOutput) + return ret0, ret1 +} + +// UpdateJobFromSourceControlRequest indicates an expected call of UpdateJobFromSourceControlRequest. +func (mr *MockGlueAPIMockRecorder) UpdateJobFromSourceControlRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateJobFromSourceControlRequest", reflect.TypeOf((*MockGlueAPI)(nil).UpdateJobFromSourceControlRequest), arg0) +} + +// UpdateJobFromSourceControlWithContext mocks base method. +func (m *MockGlueAPI) UpdateJobFromSourceControlWithContext(arg0 aws.Context, arg1 *glue.UpdateJobFromSourceControlInput, arg2 ...request.Option) (*glue.UpdateJobFromSourceControlOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateJobFromSourceControlWithContext", varargs...) + ret0, _ := ret[0].(*glue.UpdateJobFromSourceControlOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateJobFromSourceControlWithContext indicates an expected call of UpdateJobFromSourceControlWithContext. +func (mr *MockGlueAPIMockRecorder) UpdateJobFromSourceControlWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateJobFromSourceControlWithContext", reflect.TypeOf((*MockGlueAPI)(nil).UpdateJobFromSourceControlWithContext), varargs...) +} + +// UpdateJobRequest mocks base method. +func (m *MockGlueAPI) UpdateJobRequest(arg0 *glue.UpdateJobInput) (*request.Request, *glue.UpdateJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.UpdateJobOutput) + return ret0, ret1 +} + +// UpdateJobRequest indicates an expected call of UpdateJobRequest. +func (mr *MockGlueAPIMockRecorder) UpdateJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateJobRequest", reflect.TypeOf((*MockGlueAPI)(nil).UpdateJobRequest), arg0) +} + +// UpdateJobWithContext mocks base method. +func (m *MockGlueAPI) UpdateJobWithContext(arg0 aws.Context, arg1 *glue.UpdateJobInput, arg2 ...request.Option) (*glue.UpdateJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateJobWithContext", varargs...) + ret0, _ := ret[0].(*glue.UpdateJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateJobWithContext indicates an expected call of UpdateJobWithContext. +func (mr *MockGlueAPIMockRecorder) UpdateJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateJobWithContext", reflect.TypeOf((*MockGlueAPI)(nil).UpdateJobWithContext), varargs...) +} + +// UpdateMLTransform mocks base method. +func (m *MockGlueAPI) UpdateMLTransform(arg0 *glue.UpdateMLTransformInput) (*glue.UpdateMLTransformOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateMLTransform", arg0) + ret0, _ := ret[0].(*glue.UpdateMLTransformOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateMLTransform indicates an expected call of UpdateMLTransform. +func (mr *MockGlueAPIMockRecorder) UpdateMLTransform(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMLTransform", reflect.TypeOf((*MockGlueAPI)(nil).UpdateMLTransform), arg0) +} + +// UpdateMLTransformRequest mocks base method. +func (m *MockGlueAPI) UpdateMLTransformRequest(arg0 *glue.UpdateMLTransformInput) (*request.Request, *glue.UpdateMLTransformOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateMLTransformRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.UpdateMLTransformOutput) + return ret0, ret1 +} + +// UpdateMLTransformRequest indicates an expected call of UpdateMLTransformRequest. +func (mr *MockGlueAPIMockRecorder) UpdateMLTransformRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMLTransformRequest", reflect.TypeOf((*MockGlueAPI)(nil).UpdateMLTransformRequest), arg0) +} + +// UpdateMLTransformWithContext mocks base method. +func (m *MockGlueAPI) UpdateMLTransformWithContext(arg0 aws.Context, arg1 *glue.UpdateMLTransformInput, arg2 ...request.Option) (*glue.UpdateMLTransformOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateMLTransformWithContext", varargs...) + ret0, _ := ret[0].(*glue.UpdateMLTransformOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateMLTransformWithContext indicates an expected call of UpdateMLTransformWithContext. +func (mr *MockGlueAPIMockRecorder) UpdateMLTransformWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMLTransformWithContext", reflect.TypeOf((*MockGlueAPI)(nil).UpdateMLTransformWithContext), varargs...) +} + +// UpdatePartition mocks base method. +func (m *MockGlueAPI) UpdatePartition(arg0 *glue.UpdatePartitionInput) (*glue.UpdatePartitionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdatePartition", arg0) + ret0, _ := ret[0].(*glue.UpdatePartitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdatePartition indicates an expected call of UpdatePartition. +func (mr *MockGlueAPIMockRecorder) UpdatePartition(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePartition", reflect.TypeOf((*MockGlueAPI)(nil).UpdatePartition), arg0) +} + +// UpdatePartitionRequest mocks base method. +func (m *MockGlueAPI) UpdatePartitionRequest(arg0 *glue.UpdatePartitionInput) (*request.Request, *glue.UpdatePartitionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdatePartitionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.UpdatePartitionOutput) + return ret0, ret1 +} + +// UpdatePartitionRequest indicates an expected call of UpdatePartitionRequest. +func (mr *MockGlueAPIMockRecorder) UpdatePartitionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePartitionRequest", reflect.TypeOf((*MockGlueAPI)(nil).UpdatePartitionRequest), arg0) +} + +// UpdatePartitionWithContext mocks base method. +func (m *MockGlueAPI) UpdatePartitionWithContext(arg0 aws.Context, arg1 *glue.UpdatePartitionInput, arg2 ...request.Option) (*glue.UpdatePartitionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdatePartitionWithContext", varargs...) + ret0, _ := ret[0].(*glue.UpdatePartitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdatePartitionWithContext indicates an expected call of UpdatePartitionWithContext. +func (mr *MockGlueAPIMockRecorder) UpdatePartitionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePartitionWithContext", reflect.TypeOf((*MockGlueAPI)(nil).UpdatePartitionWithContext), varargs...) +} + +// UpdateRegistry mocks base method. +func (m *MockGlueAPI) UpdateRegistry(arg0 *glue.UpdateRegistryInput) (*glue.UpdateRegistryOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateRegistry", arg0) + ret0, _ := ret[0].(*glue.UpdateRegistryOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateRegistry indicates an expected call of UpdateRegistry. +func (mr *MockGlueAPIMockRecorder) UpdateRegistry(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRegistry", reflect.TypeOf((*MockGlueAPI)(nil).UpdateRegistry), arg0) +} + +// UpdateRegistryRequest mocks base method. +func (m *MockGlueAPI) UpdateRegistryRequest(arg0 *glue.UpdateRegistryInput) (*request.Request, *glue.UpdateRegistryOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateRegistryRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.UpdateRegistryOutput) + return ret0, ret1 +} + +// UpdateRegistryRequest indicates an expected call of UpdateRegistryRequest. +func (mr *MockGlueAPIMockRecorder) UpdateRegistryRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRegistryRequest", reflect.TypeOf((*MockGlueAPI)(nil).UpdateRegistryRequest), arg0) +} + +// UpdateRegistryWithContext mocks base method. +func (m *MockGlueAPI) UpdateRegistryWithContext(arg0 aws.Context, arg1 *glue.UpdateRegistryInput, arg2 ...request.Option) (*glue.UpdateRegistryOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateRegistryWithContext", varargs...) + ret0, _ := ret[0].(*glue.UpdateRegistryOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateRegistryWithContext indicates an expected call of UpdateRegistryWithContext. +func (mr *MockGlueAPIMockRecorder) UpdateRegistryWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRegistryWithContext", reflect.TypeOf((*MockGlueAPI)(nil).UpdateRegistryWithContext), varargs...) +} + +// UpdateSchema mocks base method. +func (m *MockGlueAPI) UpdateSchema(arg0 *glue.UpdateSchemaInput) (*glue.UpdateSchemaOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateSchema", arg0) + ret0, _ := ret[0].(*glue.UpdateSchemaOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateSchema indicates an expected call of UpdateSchema. +func (mr *MockGlueAPIMockRecorder) UpdateSchema(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSchema", reflect.TypeOf((*MockGlueAPI)(nil).UpdateSchema), arg0) +} + +// UpdateSchemaRequest mocks base method. +func (m *MockGlueAPI) UpdateSchemaRequest(arg0 *glue.UpdateSchemaInput) (*request.Request, *glue.UpdateSchemaOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateSchemaRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.UpdateSchemaOutput) + return ret0, ret1 +} + +// UpdateSchemaRequest indicates an expected call of UpdateSchemaRequest. +func (mr *MockGlueAPIMockRecorder) UpdateSchemaRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSchemaRequest", reflect.TypeOf((*MockGlueAPI)(nil).UpdateSchemaRequest), arg0) +} + +// UpdateSchemaWithContext mocks base method. +func (m *MockGlueAPI) UpdateSchemaWithContext(arg0 aws.Context, arg1 *glue.UpdateSchemaInput, arg2 ...request.Option) (*glue.UpdateSchemaOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateSchemaWithContext", varargs...) + ret0, _ := ret[0].(*glue.UpdateSchemaOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateSchemaWithContext indicates an expected call of UpdateSchemaWithContext. +func (mr *MockGlueAPIMockRecorder) UpdateSchemaWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSchemaWithContext", reflect.TypeOf((*MockGlueAPI)(nil).UpdateSchemaWithContext), varargs...) +} + +// UpdateSourceControlFromJob mocks base method. +func (m *MockGlueAPI) UpdateSourceControlFromJob(arg0 *glue.UpdateSourceControlFromJobInput) (*glue.UpdateSourceControlFromJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateSourceControlFromJob", arg0) + ret0, _ := ret[0].(*glue.UpdateSourceControlFromJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateSourceControlFromJob indicates an expected call of UpdateSourceControlFromJob. +func (mr *MockGlueAPIMockRecorder) UpdateSourceControlFromJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSourceControlFromJob", reflect.TypeOf((*MockGlueAPI)(nil).UpdateSourceControlFromJob), arg0) +} + +// UpdateSourceControlFromJobRequest mocks base method. +func (m *MockGlueAPI) UpdateSourceControlFromJobRequest(arg0 *glue.UpdateSourceControlFromJobInput) (*request.Request, *glue.UpdateSourceControlFromJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateSourceControlFromJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.UpdateSourceControlFromJobOutput) + return ret0, ret1 +} + +// UpdateSourceControlFromJobRequest indicates an expected call of UpdateSourceControlFromJobRequest. +func (mr *MockGlueAPIMockRecorder) UpdateSourceControlFromJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSourceControlFromJobRequest", reflect.TypeOf((*MockGlueAPI)(nil).UpdateSourceControlFromJobRequest), arg0) +} + +// UpdateSourceControlFromJobWithContext mocks base method. +func (m *MockGlueAPI) UpdateSourceControlFromJobWithContext(arg0 aws.Context, arg1 *glue.UpdateSourceControlFromJobInput, arg2 ...request.Option) (*glue.UpdateSourceControlFromJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateSourceControlFromJobWithContext", varargs...) + ret0, _ := ret[0].(*glue.UpdateSourceControlFromJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateSourceControlFromJobWithContext indicates an expected call of UpdateSourceControlFromJobWithContext. +func (mr *MockGlueAPIMockRecorder) UpdateSourceControlFromJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSourceControlFromJobWithContext", reflect.TypeOf((*MockGlueAPI)(nil).UpdateSourceControlFromJobWithContext), varargs...) +} + +// UpdateTable mocks base method. +func (m *MockGlueAPI) UpdateTable(arg0 *glue.UpdateTableInput) (*glue.UpdateTableOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTable", arg0) + ret0, _ := ret[0].(*glue.UpdateTableOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTable indicates an expected call of UpdateTable. +func (mr *MockGlueAPIMockRecorder) UpdateTable(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTable", reflect.TypeOf((*MockGlueAPI)(nil).UpdateTable), arg0) +} + +// UpdateTableOptimizer mocks base method. +func (m *MockGlueAPI) UpdateTableOptimizer(arg0 *glue.UpdateTableOptimizerInput) (*glue.UpdateTableOptimizerOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTableOptimizer", arg0) + ret0, _ := ret[0].(*glue.UpdateTableOptimizerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTableOptimizer indicates an expected call of UpdateTableOptimizer. +func (mr *MockGlueAPIMockRecorder) UpdateTableOptimizer(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTableOptimizer", reflect.TypeOf((*MockGlueAPI)(nil).UpdateTableOptimizer), arg0) +} + +// UpdateTableOptimizerRequest mocks base method. +func (m *MockGlueAPI) UpdateTableOptimizerRequest(arg0 *glue.UpdateTableOptimizerInput) (*request.Request, *glue.UpdateTableOptimizerOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTableOptimizerRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.UpdateTableOptimizerOutput) + return ret0, ret1 +} + +// UpdateTableOptimizerRequest indicates an expected call of UpdateTableOptimizerRequest. +func (mr *MockGlueAPIMockRecorder) UpdateTableOptimizerRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTableOptimizerRequest", reflect.TypeOf((*MockGlueAPI)(nil).UpdateTableOptimizerRequest), arg0) +} + +// UpdateTableOptimizerWithContext mocks base method. +func (m *MockGlueAPI) UpdateTableOptimizerWithContext(arg0 aws.Context, arg1 *glue.UpdateTableOptimizerInput, arg2 ...request.Option) (*glue.UpdateTableOptimizerOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateTableOptimizerWithContext", varargs...) + ret0, _ := ret[0].(*glue.UpdateTableOptimizerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTableOptimizerWithContext indicates an expected call of UpdateTableOptimizerWithContext. +func (mr *MockGlueAPIMockRecorder) UpdateTableOptimizerWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTableOptimizerWithContext", reflect.TypeOf((*MockGlueAPI)(nil).UpdateTableOptimizerWithContext), varargs...) +} + +// UpdateTableRequest mocks base method. +func (m *MockGlueAPI) UpdateTableRequest(arg0 *glue.UpdateTableInput) (*request.Request, *glue.UpdateTableOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTableRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.UpdateTableOutput) + return ret0, ret1 +} + +// UpdateTableRequest indicates an expected call of UpdateTableRequest. +func (mr *MockGlueAPIMockRecorder) UpdateTableRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTableRequest", reflect.TypeOf((*MockGlueAPI)(nil).UpdateTableRequest), arg0) +} + +// UpdateTableWithContext mocks base method. +func (m *MockGlueAPI) UpdateTableWithContext(arg0 aws.Context, arg1 *glue.UpdateTableInput, arg2 ...request.Option) (*glue.UpdateTableOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateTableWithContext", varargs...) + ret0, _ := ret[0].(*glue.UpdateTableOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTableWithContext indicates an expected call of UpdateTableWithContext. +func (mr *MockGlueAPIMockRecorder) UpdateTableWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTableWithContext", reflect.TypeOf((*MockGlueAPI)(nil).UpdateTableWithContext), varargs...) +} + +// UpdateTrigger mocks base method. +func (m *MockGlueAPI) UpdateTrigger(arg0 *glue.UpdateTriggerInput) (*glue.UpdateTriggerOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTrigger", arg0) + ret0, _ := ret[0].(*glue.UpdateTriggerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTrigger indicates an expected call of UpdateTrigger. +func (mr *MockGlueAPIMockRecorder) UpdateTrigger(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTrigger", reflect.TypeOf((*MockGlueAPI)(nil).UpdateTrigger), arg0) +} + +// UpdateTriggerRequest mocks base method. +func (m *MockGlueAPI) UpdateTriggerRequest(arg0 *glue.UpdateTriggerInput) (*request.Request, *glue.UpdateTriggerOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTriggerRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.UpdateTriggerOutput) + return ret0, ret1 +} + +// UpdateTriggerRequest indicates an expected call of UpdateTriggerRequest. +func (mr *MockGlueAPIMockRecorder) UpdateTriggerRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTriggerRequest", reflect.TypeOf((*MockGlueAPI)(nil).UpdateTriggerRequest), arg0) +} + +// UpdateTriggerWithContext mocks base method. +func (m *MockGlueAPI) UpdateTriggerWithContext(arg0 aws.Context, arg1 *glue.UpdateTriggerInput, arg2 ...request.Option) (*glue.UpdateTriggerOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateTriggerWithContext", varargs...) + ret0, _ := ret[0].(*glue.UpdateTriggerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTriggerWithContext indicates an expected call of UpdateTriggerWithContext. +func (mr *MockGlueAPIMockRecorder) UpdateTriggerWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTriggerWithContext", reflect.TypeOf((*MockGlueAPI)(nil).UpdateTriggerWithContext), varargs...) +} + +// UpdateUserDefinedFunction mocks base method. +func (m *MockGlueAPI) UpdateUserDefinedFunction(arg0 *glue.UpdateUserDefinedFunctionInput) (*glue.UpdateUserDefinedFunctionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateUserDefinedFunction", arg0) + ret0, _ := ret[0].(*glue.UpdateUserDefinedFunctionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateUserDefinedFunction indicates an expected call of UpdateUserDefinedFunction. +func (mr *MockGlueAPIMockRecorder) UpdateUserDefinedFunction(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserDefinedFunction", reflect.TypeOf((*MockGlueAPI)(nil).UpdateUserDefinedFunction), arg0) +} + +// UpdateUserDefinedFunctionRequest mocks base method. +func (m *MockGlueAPI) UpdateUserDefinedFunctionRequest(arg0 *glue.UpdateUserDefinedFunctionInput) (*request.Request, *glue.UpdateUserDefinedFunctionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateUserDefinedFunctionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.UpdateUserDefinedFunctionOutput) + return ret0, ret1 +} + +// UpdateUserDefinedFunctionRequest indicates an expected call of UpdateUserDefinedFunctionRequest. +func (mr *MockGlueAPIMockRecorder) UpdateUserDefinedFunctionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserDefinedFunctionRequest", reflect.TypeOf((*MockGlueAPI)(nil).UpdateUserDefinedFunctionRequest), arg0) +} + +// UpdateUserDefinedFunctionWithContext mocks base method. +func (m *MockGlueAPI) UpdateUserDefinedFunctionWithContext(arg0 aws.Context, arg1 *glue.UpdateUserDefinedFunctionInput, arg2 ...request.Option) (*glue.UpdateUserDefinedFunctionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateUserDefinedFunctionWithContext", varargs...) + ret0, _ := ret[0].(*glue.UpdateUserDefinedFunctionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateUserDefinedFunctionWithContext indicates an expected call of UpdateUserDefinedFunctionWithContext. +func (mr *MockGlueAPIMockRecorder) UpdateUserDefinedFunctionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserDefinedFunctionWithContext", reflect.TypeOf((*MockGlueAPI)(nil).UpdateUserDefinedFunctionWithContext), varargs...) +} + +// UpdateWorkflow mocks base method. +func (m *MockGlueAPI) UpdateWorkflow(arg0 *glue.UpdateWorkflowInput) (*glue.UpdateWorkflowOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateWorkflow", arg0) + ret0, _ := ret[0].(*glue.UpdateWorkflowOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateWorkflow indicates an expected call of UpdateWorkflow. +func (mr *MockGlueAPIMockRecorder) UpdateWorkflow(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateWorkflow", reflect.TypeOf((*MockGlueAPI)(nil).UpdateWorkflow), arg0) +} + +// UpdateWorkflowRequest mocks base method. +func (m *MockGlueAPI) UpdateWorkflowRequest(arg0 *glue.UpdateWorkflowInput) (*request.Request, *glue.UpdateWorkflowOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateWorkflowRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.UpdateWorkflowOutput) + return ret0, ret1 +} + +// UpdateWorkflowRequest indicates an expected call of UpdateWorkflowRequest. +func (mr *MockGlueAPIMockRecorder) UpdateWorkflowRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateWorkflowRequest", reflect.TypeOf((*MockGlueAPI)(nil).UpdateWorkflowRequest), arg0) +} + +// UpdateWorkflowWithContext mocks base method. +func (m *MockGlueAPI) UpdateWorkflowWithContext(arg0 aws.Context, arg1 *glue.UpdateWorkflowInput, arg2 ...request.Option) (*glue.UpdateWorkflowOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateWorkflowWithContext", varargs...) + ret0, _ := ret[0].(*glue.UpdateWorkflowOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateWorkflowWithContext indicates an expected call of UpdateWorkflowWithContext. +func (mr *MockGlueAPIMockRecorder) UpdateWorkflowWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateWorkflowWithContext", reflect.TypeOf((*MockGlueAPI)(nil).UpdateWorkflowWithContext), varargs...) +} diff --git a/resources/glue-securityconfiguration.go b/resources/glue-securityconfiguration.go new file mode 100644 index 00000000..8ac22cab --- /dev/null +++ b/resources/glue-securityconfiguration.go @@ -0,0 +1,81 @@ +package resources + +import ( + "context" + "github.com/aws/aws-sdk-go/service/glue/glueiface" + + "github.com/aws/aws-sdk-go/service/glue" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" +) + +const GlueSecurityConfigurationResource = "GlueSecurityConfiguration" + +func init() { + registry.Register(®istry.Registration{ + Name: GlueSecurityConfigurationResource, + Scope: nuke.Account, + Lister: &GlueSecurityConfigurationLister{}, + }) +} + +type GlueSecurityConfigurationLister struct{} + +func (l *GlueSecurityConfigurationLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := glue.New(opts.Session) + var resources []resource.Resource + + var nextToken *string + for { + params := &glue.GetSecurityConfigurationsInput{ + NextToken: nextToken, + } + + res, err := svc.GetSecurityConfigurations(params) + if err != nil { + return nil, err + } + + for _, p := range res.SecurityConfigurations { + resources = append(resources, &GlueSecurityConfiguration{ + svc: svc, + name: p.Name, + }) + } + + if res.NextToken == nil { + break + } + + nextToken = res.NextToken + } + + return resources, nil +} + +type GlueSecurityConfiguration struct { + svc glueiface.GlueAPI + name *string +} + +func (r *GlueSecurityConfiguration) Remove(_ context.Context) error { + _, err := r.svc.DeleteSecurityConfiguration(&glue.DeleteSecurityConfigurationInput{ + Name: r.name, + }) + return err +} + +func (r *GlueSecurityConfiguration) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("Name", r.name) + return properties +} + +func (r *GlueSecurityConfiguration) String() string { + return *r.name +} diff --git a/resources/glue-securityconfiguration_mock_test.go b/resources/glue-securityconfiguration_mock_test.go new file mode 100644 index 00000000..eb71ceb3 --- /dev/null +++ b/resources/glue-securityconfiguration_mock_test.go @@ -0,0 +1,34 @@ +package resources + +import ( + "context" + "testing" + + "github.com/golang/mock/gomock" + "github.com/gotidy/ptr" + "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/service/glue" + + "github.com/ekristen/aws-nuke/mocks/mock_glueiface" +) + +func Test_Mock_GlueSecurityConfiguration_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockSvc := mock_glueiface.NewMockGlueAPI(ctrl) + + resource := GlueSecurityConfiguration{ + svc: mockSvc, + name: ptr.String("foobar"), + } + + mockSvc.EXPECT().DeleteSecurityConfiguration(gomock.Eq(&glue.DeleteSecurityConfigurationInput{ + Name: resource.name, + })).Return(&glue.DeleteSecurityConfigurationOutput{}, nil) + + err := resource.Remove(context.TODO()) + a.Nil(err) +} diff --git a/resources/glue_mock_test.go b/resources/glue_mock_test.go new file mode 100644 index 00000000..871a3164 --- /dev/null +++ b/resources/glue_mock_test.go @@ -0,0 +1,4 @@ +//go:generate ../mocks/generate_mocks.sh glue glueiface +package resources + +// Note: empty on purpose, this file exist purely to generate mocks for the IAM service From b9625f82aa3df7ccefc3140da8e45e8c6ff08107 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 28 Mar 2024 18:21:33 -0600 Subject: [PATCH 250/617] fix: comment --- resources/glue_mock_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/glue_mock_test.go b/resources/glue_mock_test.go index 871a3164..62b7f3dc 100644 --- a/resources/glue_mock_test.go +++ b/resources/glue_mock_test.go @@ -1,4 +1,4 @@ //go:generate ../mocks/generate_mocks.sh glue glueiface package resources -// Note: empty on purpose, this file exist purely to generate mocks for the IAM service +// Note: empty on purpose, this file exist purely to generate mocks for the glue service From f6bacd3a788cb88f3b2eaf9cecf7f4dbac4791c0 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 28 Mar 2024 18:40:30 -0600 Subject: [PATCH 251/617] fix(glue-securityconfiguration): nexttoken loop --- resources/glue-securityconfiguration.go | 19 ++++-- .../glue-securityconfiguration_mock_test.go | 63 +++++++++++++++++++ 2 files changed, 76 insertions(+), 6 deletions(-) diff --git a/resources/glue-securityconfiguration.go b/resources/glue-securityconfiguration.go index 8ac22cab..142bc87d 100644 --- a/resources/glue-securityconfiguration.go +++ b/resources/glue-securityconfiguration.go @@ -2,13 +2,12 @@ package resources import ( "context" - "github.com/aws/aws-sdk-go/service/glue/glueiface" - "github.com/aws/aws-sdk-go/service/glue" - + "github.com/aws/aws-sdk-go/service/glue/glueiface" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" + "github.com/gotidy/ptr" "github.com/ekristen/aws-nuke/pkg/nuke" ) @@ -23,13 +22,21 @@ func init() { }) } -type GlueSecurityConfigurationLister struct{} +type GlueSecurityConfigurationLister struct { + mockSvc glueiface.GlueAPI +} func (l *GlueSecurityConfigurationLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) - svc := glue.New(opts.Session) var resources []resource.Resource + var svc glueiface.GlueAPI + if l.mockSvc != nil { + svc = l.mockSvc + } else { + svc = glue.New(opts.Session) + } + var nextToken *string for { params := &glue.GetSecurityConfigurationsInput{ @@ -48,7 +55,7 @@ func (l *GlueSecurityConfigurationLister) List(_ context.Context, o interface{}) }) } - if res.NextToken == nil { + if res.NextToken == nil || ptr.ToString(res.NextToken) == "" { break } diff --git a/resources/glue-securityconfiguration_mock_test.go b/resources/glue-securityconfiguration_mock_test.go index eb71ceb3..1c8920a0 100644 --- a/resources/glue-securityconfiguration_mock_test.go +++ b/resources/glue-securityconfiguration_mock_test.go @@ -11,6 +11,7 @@ import ( "github.com/aws/aws-sdk-go/service/glue" "github.com/ekristen/aws-nuke/mocks/mock_glueiface" + "github.com/ekristen/aws-nuke/pkg/nuke" ) func Test_Mock_GlueSecurityConfiguration_Remove(t *testing.T) { @@ -32,3 +33,65 @@ func Test_Mock_GlueSecurityConfiguration_Remove(t *testing.T) { err := resource.Remove(context.TODO()) a.Nil(err) } + +func Test_Mock_GlueSecurityConfiguration_List(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockSvc := mock_glueiface.NewMockGlueAPI(ctrl) + + resource := GlueSecurityConfigurationLister{ + mockSvc: mockSvc, + } + + mockSvc.EXPECT().GetSecurityConfigurations(gomock.Any()).Return(&glue.GetSecurityConfigurationsOutput{ + SecurityConfigurations: []*glue.SecurityConfiguration{ + { + Name: ptr.String("foobar"), + }, + }, + }, nil) + + resources, err := resource.List(context.TODO(), &nuke.ListerOpts{}) + a.Nil(err) + a.Len(resources, 1) + a.Equal("foobar", *resources[0].(*GlueSecurityConfiguration).name) +} + +func Test_Mock_GlueSecurityConfiguration_ListNext(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockSvc := mock_glueiface.NewMockGlueAPI(ctrl) + + resource := GlueSecurityConfigurationLister{ + mockSvc: mockSvc, + } + + mockSvc.EXPECT().GetSecurityConfigurations(gomock.Any()).Return(&glue.GetSecurityConfigurationsOutput{ + SecurityConfigurations: []*glue.SecurityConfiguration{ + { + Name: ptr.String("foobar1"), + }, + }, + NextToken: ptr.String("once"), + }, nil) + + mockSvc.EXPECT().GetSecurityConfigurations(&glue.GetSecurityConfigurationsInput{ + NextToken: ptr.String("once"), + }).Return(&glue.GetSecurityConfigurationsOutput{ + SecurityConfigurations: []*glue.SecurityConfiguration{ + { + Name: ptr.String("foobar2"), + }, + }, + NextToken: &[]string{""}[0], // empty string to break the loop or nil + }, nil) + + resources, err := resource.List(context.TODO(), &nuke.ListerOpts{}) + a.Nil(err) + a.Len(resources, 2) + a.Equal("foobar1", *resources[0].(*GlueSecurityConfiguration).name) +} From 553cb806bdb2237732debe406bba4490ae7eb325 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 28 Mar 2024 18:41:54 -0600 Subject: [PATCH 252/617] fix: fallback break out of the loop if there are no more results --- resources/glue-securityconfiguration.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/glue-securityconfiguration.go b/resources/glue-securityconfiguration.go index 142bc87d..dfe8e321 100644 --- a/resources/glue-securityconfiguration.go +++ b/resources/glue-securityconfiguration.go @@ -59,6 +59,10 @@ func (l *GlueSecurityConfigurationLister) List(_ context.Context, o interface{}) break } + if len(res.SecurityConfigurations) == 0 { + break + } + nextToken = res.NextToken } From 7c69bb08fee2226a507b59ea36895dcdf25f3055 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 28 Mar 2024 18:42:46 -0600 Subject: [PATCH 253/617] chore(golangci-lint): fix violations --- resources/glue-securityconfiguration.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/glue-securityconfiguration.go b/resources/glue-securityconfiguration.go index dfe8e321..44821d1f 100644 --- a/resources/glue-securityconfiguration.go +++ b/resources/glue-securityconfiguration.go @@ -2,12 +2,15 @@ package resources import ( "context" + + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/service/glue" "github.com/aws/aws-sdk-go/service/glue/glueiface" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/gotidy/ptr" "github.com/ekristen/aws-nuke/pkg/nuke" ) From 91870d579aab3fce156f50165270ab714d3ed0f2 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 9 Apr 2024 09:47:27 -0600 Subject: [PATCH 254/617] chore(deps): update actions/configure-pages action to v5 (#130) [release skip] Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/docs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index f1675862..e249f77d 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -29,7 +29,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: setup pages - uses: actions/configure-pages@v4 + uses: actions/configure-pages@v5 - name: setup python uses: actions/setup-python@v5 with: From 834184488bea42271482600fda147d2ea91731c8 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 9 Apr 2024 09:47:49 -0600 Subject: [PATCH 255/617] chore(deps): update wagoid/commitlint-github-action action to v6 (#126) [release skip] Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/commit-lint.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/commit-lint.yaml b/.github/workflows/commit-lint.yaml index 7680393d..e83fcf5c 100644 --- a/.github/workflows/commit-lint.yaml +++ b/.github/workflows/commit-lint.yaml @@ -17,4 +17,4 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: wagoid/commitlint-github-action@v5 \ No newline at end of file + - uses: wagoid/commitlint-github-action@v6 \ No newline at end of file From 5b047cb00554f52491095de9dc31d333f26b19a2 Mon Sep 17 00:00:00 2001 From: Mike Schouw Date: Sat, 18 Nov 2023 14:09:02 +0100 Subject: [PATCH 256/617] feat: add cloudfront cache policy --- resources/cloudfront-cache-policy.go | 68 ++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 resources/cloudfront-cache-policy.go diff --git a/resources/cloudfront-cache-policy.go b/resources/cloudfront-cache-policy.go new file mode 100644 index 00000000..2732beee --- /dev/null +++ b/resources/cloudfront-cache-policy.go @@ -0,0 +1,68 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/cloudfront" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type CloudFrontCachePolicy struct { + svc *cloudfront.CloudFront + ID *string +} + +func init() { + register("CloudFrontCachePolicy", ListCloudFrontCachePolicy) +} + +func ListCloudFrontCachePolicy(sess *session.Session) ([]Resource, error) { + svc := cloudfront.New(sess) + resources := []Resource{} + params := &cloudfront.ListCachePoliciesInput{} + + for { + resp, err := svc.ListCachePolicies(params) + if err != nil { + return nil, err + } + + for _, item := range resp.CachePolicyList.Items { + if *item.Type == "custom" { + resources = append(resources, &CloudFrontCachePolicy{ + svc: svc, + ID: item.CachePolicy.Id, + }) + } + } + + if resp.CachePolicyList.NextMarker == nil { + break + } + + params.Marker = resp.CachePolicyList.NextMarker + } + + return resources, nil +} + +func (f *CloudFrontCachePolicy) Remove() error { + resp, err := f.svc.GetCachePolicy(&cloudfront.GetCachePolicyInput{ + Id: f.ID, + }) + if err != nil { + return err + } + + _, err = f.svc.DeleteCachePolicy(&cloudfront.DeleteCachePolicyInput{ + Id: f.ID, + IfMatch: resp.ETag, + }) + + return err +} + +func (f *CloudFrontCachePolicy) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("ID", f.ID) + return properties +} From abab6e87b08ddb3f4a155dbcf0a9261df8179d8b Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 12 Apr 2024 18:45:42 -0600 Subject: [PATCH 257/617] refactor: convert cloudfront cache policy to libnuke format --- resources/cloudfront-cache-policy.go | 30 +++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/resources/cloudfront-cache-policy.go b/resources/cloudfront-cache-policy.go index 2732beee..8284b17f 100644 --- a/resources/cloudfront-cache-policy.go +++ b/resources/cloudfront-cache-policy.go @@ -1,9 +1,15 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/cloudfront" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type CloudFrontCachePolicy struct { @@ -11,13 +17,23 @@ type CloudFrontCachePolicy struct { ID *string } +const CloudFrontCachePolicyResource = "CloudFrontCachePolicy" + func init() { - register("CloudFrontCachePolicy", ListCloudFrontCachePolicy) + registry.Register(®istry.Registration{ + Name: CloudFrontCachePolicyResource, + Scope: nuke.Account, + Lister: &CloudFrontCachePolicyLister{}, + }) } -func ListCloudFrontCachePolicy(sess *session.Session) ([]Resource, error) { - svc := cloudfront.New(sess) - resources := []Resource{} +type CloudFrontCachePolicyLister struct{} + +func (l *CloudFrontCachePolicyLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := cloudfront.New(opts.Session) + resources := make([]resource.Resource, 0) params := &cloudfront.ListCachePoliciesInput{} for { @@ -45,7 +61,7 @@ func ListCloudFrontCachePolicy(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *CloudFrontCachePolicy) Remove() error { +func (f *CloudFrontCachePolicy) Remove(_ context.Context) error { resp, err := f.svc.GetCachePolicy(&cloudfront.GetCachePolicyInput{ Id: f.ID, }) From e266b70d54f3a14f80492fad3b015a621cc7e3a2 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 12 Apr 2024 18:51:19 -0600 Subject: [PATCH 258/617] chore: add nolint for goconst --- resources/cloudfront-cache-policy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/cloudfront-cache-policy.go b/resources/cloudfront-cache-policy.go index 8284b17f..c6b2ad6c 100644 --- a/resources/cloudfront-cache-policy.go +++ b/resources/cloudfront-cache-policy.go @@ -43,7 +43,7 @@ func (l *CloudFrontCachePolicyLister) List(_ context.Context, o interface{}) ([] } for _, item := range resp.CachePolicyList.Items { - if *item.Type == "custom" { + if *item.Type == "custom" { //nolint:goconst resources = append(resources, &CloudFrontCachePolicy{ svc: svc, ID: item.CachePolicy.Id, From c5f55cd25e2b8f52b81c377b059664e204ca9118 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 12 Apr 2024 19:54:26 -0600 Subject: [PATCH 259/617] fix(cloudfront-cache-policy): add legacy stringer, add name property --- resources/cloudfront-cache-policy.go | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/resources/cloudfront-cache-policy.go b/resources/cloudfront-cache-policy.go index c6b2ad6c..fcb70121 100644 --- a/resources/cloudfront-cache-policy.go +++ b/resources/cloudfront-cache-policy.go @@ -13,8 +13,9 @@ import ( ) type CloudFrontCachePolicy struct { - svc *cloudfront.CloudFront - ID *string + svc *cloudfront.CloudFront + ID *string + Name *string } const CloudFrontCachePolicyResource = "CloudFrontCachePolicy" @@ -45,8 +46,9 @@ func (l *CloudFrontCachePolicyLister) List(_ context.Context, o interface{}) ([] for _, item := range resp.CachePolicyList.Items { if *item.Type == "custom" { //nolint:goconst resources = append(resources, &CloudFrontCachePolicy{ - svc: svc, - ID: item.CachePolicy.Id, + svc: svc, + ID: item.CachePolicy.Id, + Name: item.CachePolicy.CachePolicyConfig.Name, }) } } @@ -80,5 +82,10 @@ func (f *CloudFrontCachePolicy) Remove(_ context.Context) error { func (f *CloudFrontCachePolicy) Properties() types.Properties { properties := types.NewProperties() properties.Set("ID", f.ID) + properties.Set("Name", f.Name) return properties } + +func (f *CloudFrontCachePolicy) String() string { + return *f.Name +} From 3e27ebdb6441430968833a840c070eba04a89774 Mon Sep 17 00:00:00 2001 From: Jacob Peterson <14127217+Petersoj@users.noreply.github.com> Date: Sun, 14 Apr 2024 09:55:33 -0700 Subject: [PATCH 260/617] feat: remove EC2 instances tags before termination --- resources/ec2-instance.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/resources/ec2-instance.go b/resources/ec2-instance.go index 4f78c7d3..8ed4774b 100644 --- a/resources/ec2-instance.go +++ b/resources/ec2-instance.go @@ -83,6 +83,13 @@ func (i *EC2Instance) Filter() error { } func (i *EC2Instance) Remove(_ context.Context) error { + deleteTagsParams := &ec2.DeleteTagsInput{ + Resources: []*string{i.instance.InstanceId}, + } + if _, err := i.svc.DeleteTags(deleteTagsParams); err != nil { + return err + } + params := &ec2.TerminateInstancesInput{ InstanceIds: []*string{i.instance.InstanceId}, } From 85b54a91bee2f3764adeb335925a6d3a9801b5a3 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 16 Apr 2024 16:30:51 -0600 Subject: [PATCH 261/617] fix(awsutil): properly determine partition for all supported regions --- pkg/commands/account/account.go | 17 +++++++++-------- pkg/commands/nuke/nuke.go | 13 ++++++------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/pkg/commands/account/account.go b/pkg/commands/account/account.go index 53173c43..5e2c30c4 100644 --- a/pkg/commands/account/account.go +++ b/pkg/commands/account/account.go @@ -39,18 +39,19 @@ func execute(c *cli.Context) error { // Set the default region for the AWS SDK to use. if defaultRegion != "" { awsutil.DefaultRegionID = defaultRegion - switch defaultRegion { - case endpoints.UsEast1RegionID, endpoints.UsEast2RegionID, endpoints.UsWest1RegionID, endpoints.UsWest2RegionID: - awsutil.DefaultAWSPartitionID = endpoints.AwsPartitionID - case endpoints.UsGovEast1RegionID, endpoints.UsGovWest1RegionID: - awsutil.DefaultAWSPartitionID = endpoints.AwsUsGovPartitionID - default: + + partition, ok := endpoints.PartitionForRegion(endpoints.DefaultPartitions(), defaultRegion) + if !ok { if parsedConfig.CustomEndpoints.GetRegion(defaultRegion) == nil { - err = fmt.Errorf("the custom region '%s' must be specified in the configuration 'endpoints'", defaultRegion) - logrus.Error(err.Error()) + err = fmt.Errorf( + "the custom region '%s' must be specified in the configuration 'endpoints'"+ + " to determine its partition", defaultRegion) + logrus.WithError(err).Error("unable to resolve partition for region: %s", defaultRegion) return err } } + + awsutil.DefaultAWSPartitionID = partition.ID() } // Create the AWS Account object. This will be used to get the account ID and aliases for the account. diff --git a/pkg/commands/nuke/nuke.go b/pkg/commands/nuke/nuke.go index 48e254a6..fd5ccdef 100644 --- a/pkg/commands/nuke/nuke.go +++ b/pkg/commands/nuke/nuke.go @@ -82,18 +82,17 @@ func execute(c *cli.Context) error { //nolint:funlen,gocyclo // Set the default region for the AWS SDK to use. if defaultRegion != "" { awsutil.DefaultRegionID = defaultRegion - switch defaultRegion { - case endpoints.UsEast1RegionID, endpoints.UsEast2RegionID, endpoints.UsWest1RegionID, endpoints.UsWest2RegionID: - awsutil.DefaultAWSPartitionID = endpoints.AwsPartitionID - case endpoints.UsGovEast1RegionID, endpoints.UsGovWest1RegionID: - awsutil.DefaultAWSPartitionID = endpoints.AwsUsGovPartitionID - default: + + partition, ok := endpoints.PartitionForRegion(endpoints.DefaultPartitions(), defaultRegion) + if !ok { if parsedConfig.CustomEndpoints.GetRegion(defaultRegion) == nil { err = fmt.Errorf("the custom region '%s' must be specified in the configuration 'endpoints'", defaultRegion) - logrus.Error(err.Error()) + logrus.WithError(err).Error("unable to resolve partition for region: %s", defaultRegion) return err } } + + awsutil.DefaultAWSPartitionID = partition.ID() } // Create the AWS Account object. This will be used to get the account ID and aliases for the account. From 4e32f2e55b6d88ca108f8920998cfbe62de32fb8 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 16 Apr 2024 16:34:05 -0600 Subject: [PATCH 262/617] fix: error with call to log func --- pkg/commands/account/account.go | 2 +- pkg/commands/nuke/nuke.go | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pkg/commands/account/account.go b/pkg/commands/account/account.go index 5e2c30c4..081e36eb 100644 --- a/pkg/commands/account/account.go +++ b/pkg/commands/account/account.go @@ -46,7 +46,7 @@ func execute(c *cli.Context) error { err = fmt.Errorf( "the custom region '%s' must be specified in the configuration 'endpoints'"+ " to determine its partition", defaultRegion) - logrus.WithError(err).Error("unable to resolve partition for region: %s", defaultRegion) + logrus.WithError(err).Errorf("unable to resolve partition for region: %s", defaultRegion) return err } } diff --git a/pkg/commands/nuke/nuke.go b/pkg/commands/nuke/nuke.go index fd5ccdef..7c746d31 100644 --- a/pkg/commands/nuke/nuke.go +++ b/pkg/commands/nuke/nuke.go @@ -86,8 +86,10 @@ func execute(c *cli.Context) error { //nolint:funlen,gocyclo partition, ok := endpoints.PartitionForRegion(endpoints.DefaultPartitions(), defaultRegion) if !ok { if parsedConfig.CustomEndpoints.GetRegion(defaultRegion) == nil { - err = fmt.Errorf("the custom region '%s' must be specified in the configuration 'endpoints'", defaultRegion) - logrus.WithError(err).Error("unable to resolve partition for region: %s", defaultRegion) + err = fmt.Errorf( + "the custom region '%s' must be specified in the configuration 'endpoints'"+ + " to determine its partition", defaultRegion) + logrus.WithError(err).Errorf("unable to resolve partition for region: %s", defaultRegion) return err } } From 0ffae1329fa779e60625445d2723529adf5cace6 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 17 Apr 2024 08:18:30 -0600 Subject: [PATCH 263/617] fix: statically compile when doing direct docker build --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 53a88d2d..d18cf806 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,17 +6,19 @@ RUN adduser -D aws-nuke FROM ghcr.io/acorn-io/images-mirror/golang:1.21 AS build COPY / /src WORKDIR /src +ENV CGO_ENABLED=0 RUN \ --mount=type=cache,target=/go/pkg \ --mount=type=cache,target=/root/.cache/go-build \ - go build -o bin/aws-nuke main.go + go build -ldflags '-s -w -extldflags="-static"' -o bin/aws-nuke main.go -FROM base AS goreleaser +FROM base AS gorelease ENTRYPOINT ["/usr/local/bin/aws-nuke"] COPY aws-nuke /usr/local/bin/aws-nuke USER aws-nuke FROM base ENTRYPOINT ["/usr/local/bin/aws-nuke"] -COPY --from=build /src/bin/aws-nuke /usr/local/bin/aws-nuke +COPY --from=build --chmod=755 /src/bin/aws-nuke /usr/local/bin/aws-nuke +RUN chmod +x /usr/local/bin/aws-nuke USER aws-nuke \ No newline at end of file From f6d33499cc3e0e4de27c132aaee6173b85a25f00 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 17 Apr 2024 09:09:03 -0600 Subject: [PATCH 264/617] fix: accidental removal of `r` from goreleaser in dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d18cf806..36681b98 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ RUN \ --mount=type=cache,target=/root/.cache/go-build \ go build -ldflags '-s -w -extldflags="-static"' -o bin/aws-nuke main.go -FROM base AS gorelease +FROM base AS goreleaser ENTRYPOINT ["/usr/local/bin/aws-nuke"] COPY aws-nuke /usr/local/bin/aws-nuke USER aws-nuke From 345e0a4ef50503dae67bf739fa5757d21debb4ae Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 17 Apr 2024 15:57:00 -0600 Subject: [PATCH 265/617] ci: add workflow to automatically update mocks --- .github/workflows/aws-sdk-mocks.yml | 35 +++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/aws-sdk-mocks.yml diff --git a/.github/workflows/aws-sdk-mocks.yml b/.github/workflows/aws-sdk-mocks.yml new file mode 100644 index 00000000..210621ca --- /dev/null +++ b/.github/workflows/aws-sdk-mocks.yml @@ -0,0 +1,35 @@ +name: aws-sdk-update-mocks + +on: + pull_request_target: + types: + - opened + - edited + - synchronize + branches: + - renovate/aws-sdk-go-monorepo + +permissions: + contents: write + pull-requests: read + +jobs: + go-generate: + name: go-generate + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: '1.21.x' + - name: download go mods + run: | + go mod download + - run: | + go generate ./... + - run: | + git config --global user.name github-actions + git config --global user.email github-actions@github.com + git add . + git commit -a -m 'chore: update mocks' + git push From c42915d249f3f67f8d2503515311cff329cbe929 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 17 Apr 2024 16:00:44 -0600 Subject: [PATCH 266/617] ci: ignore changes when github actions makes the change --- .github/renovate.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/renovate.json b/.github/renovate.json index 07ba84d3..a3c4a6f7 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -30,5 +30,6 @@ "depNameTemplate": "golang", "datasourceTemplate": "docker" } - ] + ], + "gitIgnoredAuthors": ["github-actions@github.com"] } From ad49cb7be975f7e6affa45fb2460d0424e28fe4c Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 18 Apr 2024 07:41:22 -0600 Subject: [PATCH 267/617] ci: wrap branch in quotes to fix matching --- .github/workflows/aws-sdk-mocks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aws-sdk-mocks.yml b/.github/workflows/aws-sdk-mocks.yml index 210621ca..f3a8c4fe 100644 --- a/.github/workflows/aws-sdk-mocks.yml +++ b/.github/workflows/aws-sdk-mocks.yml @@ -7,7 +7,7 @@ on: - edited - synchronize branches: - - renovate/aws-sdk-go-monorepo + - 'renovate/aws-sdk-go-monorepo' permissions: contents: write From 3f856314fb92fc1bd0bd84ca00f64fdaf7c896fb Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 19 Apr 2024 14:21:06 -0600 Subject: [PATCH 268/617] ci: pull_request not target --- .github/workflows/aws-sdk-mocks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aws-sdk-mocks.yml b/.github/workflows/aws-sdk-mocks.yml index f3a8c4fe..15d1ff32 100644 --- a/.github/workflows/aws-sdk-mocks.yml +++ b/.github/workflows/aws-sdk-mocks.yml @@ -1,7 +1,7 @@ name: aws-sdk-update-mocks on: - pull_request_target: + pull_request: types: - opened - edited From 98f6f8ab481a6f7ec8715e137b3b178d7b197d9f Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 22 Apr 2024 18:02:04 -0600 Subject: [PATCH 269/617] docs: fix links to the wrong repository --- docs/contributing.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/contributing.md b/docs/contributing.md index 8b776724..be84f5d0 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -11,7 +11,7 @@ can only act retroactive on changes of AWS services. Otherwise, it would be a fu If a resource is not yet supported by *aws-nuke*, you have two options to resolve this: -* File [an issue](https://github.com/rebuy-de/aws-nuke/issues/new) and describe which resource is missing. This way someone can take care of it. +* File [an issue](https://github.com/ekristen/aws-nuke/issues/new) and describe which resource is missing. This way someone can take care of it. * Add the resource yourself and open a Pull Request. Please follow the guidelines below to see how to create such a resource. @@ -26,15 +26,15 @@ Please check the following points before creating a bug issue: there are a lot of dependency errors in the first one. The iterations are separated by lines starting with `Removal requested:` and only the errors in the last block indicate actual errors. -File [an issue](https://github.com/rebuy-de/aws-nuke/issues/new) and describe as accurately as possible how to generate the resource on AWS that cause the +File [an issue](https://github.com/ekristen/aws-nuke/issues/new) and describe as accurately as possible how to generate the resource on AWS that cause the errors in *aws-nuke*. Ideally this is provided in a reproducible way like a Terraform template or AWS CLI commands. ### I Have Ideas to Improve *aws-nuke* You should take these steps if you have an idea how to improve *aws-nuke*: -1. Check the [issues page](https://github.com/rebuy-de/aws-nuke/issues), whether someone already had the same or a similar idea. -2. Also check the [closed issues](https://github.com/rebuy-de/aws-nuke/issues?utf8=%E2%9C%93&q=is%3Aissue), because this might have already been implemented, but not yet released. Also, +1. Check the [issues page](https://github.com/ekristen/aws-nuke/issues), whether someone already had the same or a similar idea. +2. Also check the [closed issues](https://github.com/ekristen/aws-nuke/issues?utf8=%E2%9C%93&q=is%3Aissue), because this might have already been implemented, but not yet released. Also, the idea might not be viable for obvious reasons. 3. Join the discussion, if there is already a related issue. If this is not the case, open a new issue and describe your idea. Afterward, we can discuss this idea and form a proposal. From 9204fc91a96204c960067653e7b377b48e829c78 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 13 Mar 2024 21:20:20 -0600 Subject: [PATCH 270/617] test(ecs-clusters): add tests for list and remove --- mocks/mock_ecsiface/mock.go | 3266 +++++++++++++++++++++++++++ resources/ecs-clusters.go | 15 +- resources/ecs-clusters_mock_test.go | 58 + resources/ecs-mock_test.go | 2 + 4 files changed, 3338 insertions(+), 3 deletions(-) create mode 100644 mocks/mock_ecsiface/mock.go create mode 100644 resources/ecs-clusters_mock_test.go create mode 100644 resources/ecs-mock_test.go diff --git a/mocks/mock_ecsiface/mock.go b/mocks/mock_ecsiface/mock.go new file mode 100644 index 00000000..0c7d72c3 --- /dev/null +++ b/mocks/mock_ecsiface/mock.go @@ -0,0 +1,3266 @@ +// Code generated by MockGen. DO NOT EDIT. +// Source: /Users/ekristen/go/pkg/mod/github.com/aws/aws-sdk-go@v1.50.24/service/ecs/ecsiface/interface.go + +// Package mock_ecsiface is a generated GoMock package. +package mock_ecsiface + +import ( + reflect "reflect" + + aws "github.com/aws/aws-sdk-go/aws" + request "github.com/aws/aws-sdk-go/aws/request" + ecs "github.com/aws/aws-sdk-go/service/ecs" + gomock "github.com/golang/mock/gomock" +) + +// MockECSAPI is a mock of ECSAPI interface. +type MockECSAPI struct { + ctrl *gomock.Controller + recorder *MockECSAPIMockRecorder +} + +// MockECSAPIMockRecorder is the mock recorder for MockECSAPI. +type MockECSAPIMockRecorder struct { + mock *MockECSAPI +} + +// NewMockECSAPI creates a new mock instance. +func NewMockECSAPI(ctrl *gomock.Controller) *MockECSAPI { + mock := &MockECSAPI{ctrl: ctrl} + mock.recorder = &MockECSAPIMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockECSAPI) EXPECT() *MockECSAPIMockRecorder { + return m.recorder +} + +// CreateCapacityProvider mocks base method. +func (m *MockECSAPI) CreateCapacityProvider(arg0 *ecs.CreateCapacityProviderInput) (*ecs.CreateCapacityProviderOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateCapacityProvider", arg0) + ret0, _ := ret[0].(*ecs.CreateCapacityProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateCapacityProvider indicates an expected call of CreateCapacityProvider. +func (mr *MockECSAPIMockRecorder) CreateCapacityProvider(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCapacityProvider", reflect.TypeOf((*MockECSAPI)(nil).CreateCapacityProvider), arg0) +} + +// CreateCapacityProviderRequest mocks base method. +func (m *MockECSAPI) CreateCapacityProviderRequest(arg0 *ecs.CreateCapacityProviderInput) (*request.Request, *ecs.CreateCapacityProviderOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateCapacityProviderRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.CreateCapacityProviderOutput) + return ret0, ret1 +} + +// CreateCapacityProviderRequest indicates an expected call of CreateCapacityProviderRequest. +func (mr *MockECSAPIMockRecorder) CreateCapacityProviderRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCapacityProviderRequest", reflect.TypeOf((*MockECSAPI)(nil).CreateCapacityProviderRequest), arg0) +} + +// CreateCapacityProviderWithContext mocks base method. +func (m *MockECSAPI) CreateCapacityProviderWithContext(arg0 aws.Context, arg1 *ecs.CreateCapacityProviderInput, arg2 ...request.Option) (*ecs.CreateCapacityProviderOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateCapacityProviderWithContext", varargs...) + ret0, _ := ret[0].(*ecs.CreateCapacityProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateCapacityProviderWithContext indicates an expected call of CreateCapacityProviderWithContext. +func (mr *MockECSAPIMockRecorder) CreateCapacityProviderWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCapacityProviderWithContext", reflect.TypeOf((*MockECSAPI)(nil).CreateCapacityProviderWithContext), varargs...) +} + +// CreateCluster mocks base method. +func (m *MockECSAPI) CreateCluster(arg0 *ecs.CreateClusterInput) (*ecs.CreateClusterOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateCluster", arg0) + ret0, _ := ret[0].(*ecs.CreateClusterOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateCluster indicates an expected call of CreateCluster. +func (mr *MockECSAPIMockRecorder) CreateCluster(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCluster", reflect.TypeOf((*MockECSAPI)(nil).CreateCluster), arg0) +} + +// CreateClusterRequest mocks base method. +func (m *MockECSAPI) CreateClusterRequest(arg0 *ecs.CreateClusterInput) (*request.Request, *ecs.CreateClusterOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateClusterRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.CreateClusterOutput) + return ret0, ret1 +} + +// CreateClusterRequest indicates an expected call of CreateClusterRequest. +func (mr *MockECSAPIMockRecorder) CreateClusterRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateClusterRequest", reflect.TypeOf((*MockECSAPI)(nil).CreateClusterRequest), arg0) +} + +// CreateClusterWithContext mocks base method. +func (m *MockECSAPI) CreateClusterWithContext(arg0 aws.Context, arg1 *ecs.CreateClusterInput, arg2 ...request.Option) (*ecs.CreateClusterOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateClusterWithContext", varargs...) + ret0, _ := ret[0].(*ecs.CreateClusterOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateClusterWithContext indicates an expected call of CreateClusterWithContext. +func (mr *MockECSAPIMockRecorder) CreateClusterWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateClusterWithContext", reflect.TypeOf((*MockECSAPI)(nil).CreateClusterWithContext), varargs...) +} + +// CreateService mocks base method. +func (m *MockECSAPI) CreateService(arg0 *ecs.CreateServiceInput) (*ecs.CreateServiceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateService", arg0) + ret0, _ := ret[0].(*ecs.CreateServiceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateService indicates an expected call of CreateService. +func (mr *MockECSAPIMockRecorder) CreateService(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateService", reflect.TypeOf((*MockECSAPI)(nil).CreateService), arg0) +} + +// CreateServiceRequest mocks base method. +func (m *MockECSAPI) CreateServiceRequest(arg0 *ecs.CreateServiceInput) (*request.Request, *ecs.CreateServiceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateServiceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.CreateServiceOutput) + return ret0, ret1 +} + +// CreateServiceRequest indicates an expected call of CreateServiceRequest. +func (mr *MockECSAPIMockRecorder) CreateServiceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateServiceRequest", reflect.TypeOf((*MockECSAPI)(nil).CreateServiceRequest), arg0) +} + +// CreateServiceWithContext mocks base method. +func (m *MockECSAPI) CreateServiceWithContext(arg0 aws.Context, arg1 *ecs.CreateServiceInput, arg2 ...request.Option) (*ecs.CreateServiceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateServiceWithContext", varargs...) + ret0, _ := ret[0].(*ecs.CreateServiceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateServiceWithContext indicates an expected call of CreateServiceWithContext. +func (mr *MockECSAPIMockRecorder) CreateServiceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateServiceWithContext", reflect.TypeOf((*MockECSAPI)(nil).CreateServiceWithContext), varargs...) +} + +// CreateTaskSet mocks base method. +func (m *MockECSAPI) CreateTaskSet(arg0 *ecs.CreateTaskSetInput) (*ecs.CreateTaskSetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateTaskSet", arg0) + ret0, _ := ret[0].(*ecs.CreateTaskSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateTaskSet indicates an expected call of CreateTaskSet. +func (mr *MockECSAPIMockRecorder) CreateTaskSet(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTaskSet", reflect.TypeOf((*MockECSAPI)(nil).CreateTaskSet), arg0) +} + +// CreateTaskSetRequest mocks base method. +func (m *MockECSAPI) CreateTaskSetRequest(arg0 *ecs.CreateTaskSetInput) (*request.Request, *ecs.CreateTaskSetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateTaskSetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.CreateTaskSetOutput) + return ret0, ret1 +} + +// CreateTaskSetRequest indicates an expected call of CreateTaskSetRequest. +func (mr *MockECSAPIMockRecorder) CreateTaskSetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTaskSetRequest", reflect.TypeOf((*MockECSAPI)(nil).CreateTaskSetRequest), arg0) +} + +// CreateTaskSetWithContext mocks base method. +func (m *MockECSAPI) CreateTaskSetWithContext(arg0 aws.Context, arg1 *ecs.CreateTaskSetInput, arg2 ...request.Option) (*ecs.CreateTaskSetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateTaskSetWithContext", varargs...) + ret0, _ := ret[0].(*ecs.CreateTaskSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateTaskSetWithContext indicates an expected call of CreateTaskSetWithContext. +func (mr *MockECSAPIMockRecorder) CreateTaskSetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTaskSetWithContext", reflect.TypeOf((*MockECSAPI)(nil).CreateTaskSetWithContext), varargs...) +} + +// DeleteAccountSetting mocks base method. +func (m *MockECSAPI) DeleteAccountSetting(arg0 *ecs.DeleteAccountSettingInput) (*ecs.DeleteAccountSettingOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteAccountSetting", arg0) + ret0, _ := ret[0].(*ecs.DeleteAccountSettingOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteAccountSetting indicates an expected call of DeleteAccountSetting. +func (mr *MockECSAPIMockRecorder) DeleteAccountSetting(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAccountSetting", reflect.TypeOf((*MockECSAPI)(nil).DeleteAccountSetting), arg0) +} + +// DeleteAccountSettingRequest mocks base method. +func (m *MockECSAPI) DeleteAccountSettingRequest(arg0 *ecs.DeleteAccountSettingInput) (*request.Request, *ecs.DeleteAccountSettingOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteAccountSettingRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.DeleteAccountSettingOutput) + return ret0, ret1 +} + +// DeleteAccountSettingRequest indicates an expected call of DeleteAccountSettingRequest. +func (mr *MockECSAPIMockRecorder) DeleteAccountSettingRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAccountSettingRequest", reflect.TypeOf((*MockECSAPI)(nil).DeleteAccountSettingRequest), arg0) +} + +// DeleteAccountSettingWithContext mocks base method. +func (m *MockECSAPI) DeleteAccountSettingWithContext(arg0 aws.Context, arg1 *ecs.DeleteAccountSettingInput, arg2 ...request.Option) (*ecs.DeleteAccountSettingOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteAccountSettingWithContext", varargs...) + ret0, _ := ret[0].(*ecs.DeleteAccountSettingOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteAccountSettingWithContext indicates an expected call of DeleteAccountSettingWithContext. +func (mr *MockECSAPIMockRecorder) DeleteAccountSettingWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAccountSettingWithContext", reflect.TypeOf((*MockECSAPI)(nil).DeleteAccountSettingWithContext), varargs...) +} + +// DeleteAttributes mocks base method. +func (m *MockECSAPI) DeleteAttributes(arg0 *ecs.DeleteAttributesInput) (*ecs.DeleteAttributesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteAttributes", arg0) + ret0, _ := ret[0].(*ecs.DeleteAttributesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteAttributes indicates an expected call of DeleteAttributes. +func (mr *MockECSAPIMockRecorder) DeleteAttributes(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAttributes", reflect.TypeOf((*MockECSAPI)(nil).DeleteAttributes), arg0) +} + +// DeleteAttributesRequest mocks base method. +func (m *MockECSAPI) DeleteAttributesRequest(arg0 *ecs.DeleteAttributesInput) (*request.Request, *ecs.DeleteAttributesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteAttributesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.DeleteAttributesOutput) + return ret0, ret1 +} + +// DeleteAttributesRequest indicates an expected call of DeleteAttributesRequest. +func (mr *MockECSAPIMockRecorder) DeleteAttributesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAttributesRequest", reflect.TypeOf((*MockECSAPI)(nil).DeleteAttributesRequest), arg0) +} + +// DeleteAttributesWithContext mocks base method. +func (m *MockECSAPI) DeleteAttributesWithContext(arg0 aws.Context, arg1 *ecs.DeleteAttributesInput, arg2 ...request.Option) (*ecs.DeleteAttributesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteAttributesWithContext", varargs...) + ret0, _ := ret[0].(*ecs.DeleteAttributesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteAttributesWithContext indicates an expected call of DeleteAttributesWithContext. +func (mr *MockECSAPIMockRecorder) DeleteAttributesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAttributesWithContext", reflect.TypeOf((*MockECSAPI)(nil).DeleteAttributesWithContext), varargs...) +} + +// DeleteCapacityProvider mocks base method. +func (m *MockECSAPI) DeleteCapacityProvider(arg0 *ecs.DeleteCapacityProviderInput) (*ecs.DeleteCapacityProviderOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteCapacityProvider", arg0) + ret0, _ := ret[0].(*ecs.DeleteCapacityProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteCapacityProvider indicates an expected call of DeleteCapacityProvider. +func (mr *MockECSAPIMockRecorder) DeleteCapacityProvider(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCapacityProvider", reflect.TypeOf((*MockECSAPI)(nil).DeleteCapacityProvider), arg0) +} + +// DeleteCapacityProviderRequest mocks base method. +func (m *MockECSAPI) DeleteCapacityProviderRequest(arg0 *ecs.DeleteCapacityProviderInput) (*request.Request, *ecs.DeleteCapacityProviderOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteCapacityProviderRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.DeleteCapacityProviderOutput) + return ret0, ret1 +} + +// DeleteCapacityProviderRequest indicates an expected call of DeleteCapacityProviderRequest. +func (mr *MockECSAPIMockRecorder) DeleteCapacityProviderRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCapacityProviderRequest", reflect.TypeOf((*MockECSAPI)(nil).DeleteCapacityProviderRequest), arg0) +} + +// DeleteCapacityProviderWithContext mocks base method. +func (m *MockECSAPI) DeleteCapacityProviderWithContext(arg0 aws.Context, arg1 *ecs.DeleteCapacityProviderInput, arg2 ...request.Option) (*ecs.DeleteCapacityProviderOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteCapacityProviderWithContext", varargs...) + ret0, _ := ret[0].(*ecs.DeleteCapacityProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteCapacityProviderWithContext indicates an expected call of DeleteCapacityProviderWithContext. +func (mr *MockECSAPIMockRecorder) DeleteCapacityProviderWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCapacityProviderWithContext", reflect.TypeOf((*MockECSAPI)(nil).DeleteCapacityProviderWithContext), varargs...) +} + +// DeleteCluster mocks base method. +func (m *MockECSAPI) DeleteCluster(arg0 *ecs.DeleteClusterInput) (*ecs.DeleteClusterOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteCluster", arg0) + ret0, _ := ret[0].(*ecs.DeleteClusterOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteCluster indicates an expected call of DeleteCluster. +func (mr *MockECSAPIMockRecorder) DeleteCluster(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCluster", reflect.TypeOf((*MockECSAPI)(nil).DeleteCluster), arg0) +} + +// DeleteClusterRequest mocks base method. +func (m *MockECSAPI) DeleteClusterRequest(arg0 *ecs.DeleteClusterInput) (*request.Request, *ecs.DeleteClusterOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteClusterRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.DeleteClusterOutput) + return ret0, ret1 +} + +// DeleteClusterRequest indicates an expected call of DeleteClusterRequest. +func (mr *MockECSAPIMockRecorder) DeleteClusterRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteClusterRequest", reflect.TypeOf((*MockECSAPI)(nil).DeleteClusterRequest), arg0) +} + +// DeleteClusterWithContext mocks base method. +func (m *MockECSAPI) DeleteClusterWithContext(arg0 aws.Context, arg1 *ecs.DeleteClusterInput, arg2 ...request.Option) (*ecs.DeleteClusterOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteClusterWithContext", varargs...) + ret0, _ := ret[0].(*ecs.DeleteClusterOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteClusterWithContext indicates an expected call of DeleteClusterWithContext. +func (mr *MockECSAPIMockRecorder) DeleteClusterWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteClusterWithContext", reflect.TypeOf((*MockECSAPI)(nil).DeleteClusterWithContext), varargs...) +} + +// DeleteService mocks base method. +func (m *MockECSAPI) DeleteService(arg0 *ecs.DeleteServiceInput) (*ecs.DeleteServiceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteService", arg0) + ret0, _ := ret[0].(*ecs.DeleteServiceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteService indicates an expected call of DeleteService. +func (mr *MockECSAPIMockRecorder) DeleteService(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteService", reflect.TypeOf((*MockECSAPI)(nil).DeleteService), arg0) +} + +// DeleteServiceRequest mocks base method. +func (m *MockECSAPI) DeleteServiceRequest(arg0 *ecs.DeleteServiceInput) (*request.Request, *ecs.DeleteServiceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteServiceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.DeleteServiceOutput) + return ret0, ret1 +} + +// DeleteServiceRequest indicates an expected call of DeleteServiceRequest. +func (mr *MockECSAPIMockRecorder) DeleteServiceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteServiceRequest", reflect.TypeOf((*MockECSAPI)(nil).DeleteServiceRequest), arg0) +} + +// DeleteServiceWithContext mocks base method. +func (m *MockECSAPI) DeleteServiceWithContext(arg0 aws.Context, arg1 *ecs.DeleteServiceInput, arg2 ...request.Option) (*ecs.DeleteServiceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteServiceWithContext", varargs...) + ret0, _ := ret[0].(*ecs.DeleteServiceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteServiceWithContext indicates an expected call of DeleteServiceWithContext. +func (mr *MockECSAPIMockRecorder) DeleteServiceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteServiceWithContext", reflect.TypeOf((*MockECSAPI)(nil).DeleteServiceWithContext), varargs...) +} + +// DeleteTaskDefinitions mocks base method. +func (m *MockECSAPI) DeleteTaskDefinitions(arg0 *ecs.DeleteTaskDefinitionsInput) (*ecs.DeleteTaskDefinitionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTaskDefinitions", arg0) + ret0, _ := ret[0].(*ecs.DeleteTaskDefinitionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTaskDefinitions indicates an expected call of DeleteTaskDefinitions. +func (mr *MockECSAPIMockRecorder) DeleteTaskDefinitions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTaskDefinitions", reflect.TypeOf((*MockECSAPI)(nil).DeleteTaskDefinitions), arg0) +} + +// DeleteTaskDefinitionsRequest mocks base method. +func (m *MockECSAPI) DeleteTaskDefinitionsRequest(arg0 *ecs.DeleteTaskDefinitionsInput) (*request.Request, *ecs.DeleteTaskDefinitionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTaskDefinitionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.DeleteTaskDefinitionsOutput) + return ret0, ret1 +} + +// DeleteTaskDefinitionsRequest indicates an expected call of DeleteTaskDefinitionsRequest. +func (mr *MockECSAPIMockRecorder) DeleteTaskDefinitionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTaskDefinitionsRequest", reflect.TypeOf((*MockECSAPI)(nil).DeleteTaskDefinitionsRequest), arg0) +} + +// DeleteTaskDefinitionsWithContext mocks base method. +func (m *MockECSAPI) DeleteTaskDefinitionsWithContext(arg0 aws.Context, arg1 *ecs.DeleteTaskDefinitionsInput, arg2 ...request.Option) (*ecs.DeleteTaskDefinitionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteTaskDefinitionsWithContext", varargs...) + ret0, _ := ret[0].(*ecs.DeleteTaskDefinitionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTaskDefinitionsWithContext indicates an expected call of DeleteTaskDefinitionsWithContext. +func (mr *MockECSAPIMockRecorder) DeleteTaskDefinitionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTaskDefinitionsWithContext", reflect.TypeOf((*MockECSAPI)(nil).DeleteTaskDefinitionsWithContext), varargs...) +} + +// DeleteTaskSet mocks base method. +func (m *MockECSAPI) DeleteTaskSet(arg0 *ecs.DeleteTaskSetInput) (*ecs.DeleteTaskSetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTaskSet", arg0) + ret0, _ := ret[0].(*ecs.DeleteTaskSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTaskSet indicates an expected call of DeleteTaskSet. +func (mr *MockECSAPIMockRecorder) DeleteTaskSet(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTaskSet", reflect.TypeOf((*MockECSAPI)(nil).DeleteTaskSet), arg0) +} + +// DeleteTaskSetRequest mocks base method. +func (m *MockECSAPI) DeleteTaskSetRequest(arg0 *ecs.DeleteTaskSetInput) (*request.Request, *ecs.DeleteTaskSetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTaskSetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.DeleteTaskSetOutput) + return ret0, ret1 +} + +// DeleteTaskSetRequest indicates an expected call of DeleteTaskSetRequest. +func (mr *MockECSAPIMockRecorder) DeleteTaskSetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTaskSetRequest", reflect.TypeOf((*MockECSAPI)(nil).DeleteTaskSetRequest), arg0) +} + +// DeleteTaskSetWithContext mocks base method. +func (m *MockECSAPI) DeleteTaskSetWithContext(arg0 aws.Context, arg1 *ecs.DeleteTaskSetInput, arg2 ...request.Option) (*ecs.DeleteTaskSetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteTaskSetWithContext", varargs...) + ret0, _ := ret[0].(*ecs.DeleteTaskSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTaskSetWithContext indicates an expected call of DeleteTaskSetWithContext. +func (mr *MockECSAPIMockRecorder) DeleteTaskSetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTaskSetWithContext", reflect.TypeOf((*MockECSAPI)(nil).DeleteTaskSetWithContext), varargs...) +} + +// DeregisterContainerInstance mocks base method. +func (m *MockECSAPI) DeregisterContainerInstance(arg0 *ecs.DeregisterContainerInstanceInput) (*ecs.DeregisterContainerInstanceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeregisterContainerInstance", arg0) + ret0, _ := ret[0].(*ecs.DeregisterContainerInstanceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeregisterContainerInstance indicates an expected call of DeregisterContainerInstance. +func (mr *MockECSAPIMockRecorder) DeregisterContainerInstance(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeregisterContainerInstance", reflect.TypeOf((*MockECSAPI)(nil).DeregisterContainerInstance), arg0) +} + +// DeregisterContainerInstanceRequest mocks base method. +func (m *MockECSAPI) DeregisterContainerInstanceRequest(arg0 *ecs.DeregisterContainerInstanceInput) (*request.Request, *ecs.DeregisterContainerInstanceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeregisterContainerInstanceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.DeregisterContainerInstanceOutput) + return ret0, ret1 +} + +// DeregisterContainerInstanceRequest indicates an expected call of DeregisterContainerInstanceRequest. +func (mr *MockECSAPIMockRecorder) DeregisterContainerInstanceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeregisterContainerInstanceRequest", reflect.TypeOf((*MockECSAPI)(nil).DeregisterContainerInstanceRequest), arg0) +} + +// DeregisterContainerInstanceWithContext mocks base method. +func (m *MockECSAPI) DeregisterContainerInstanceWithContext(arg0 aws.Context, arg1 *ecs.DeregisterContainerInstanceInput, arg2 ...request.Option) (*ecs.DeregisterContainerInstanceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeregisterContainerInstanceWithContext", varargs...) + ret0, _ := ret[0].(*ecs.DeregisterContainerInstanceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeregisterContainerInstanceWithContext indicates an expected call of DeregisterContainerInstanceWithContext. +func (mr *MockECSAPIMockRecorder) DeregisterContainerInstanceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeregisterContainerInstanceWithContext", reflect.TypeOf((*MockECSAPI)(nil).DeregisterContainerInstanceWithContext), varargs...) +} + +// DeregisterTaskDefinition mocks base method. +func (m *MockECSAPI) DeregisterTaskDefinition(arg0 *ecs.DeregisterTaskDefinitionInput) (*ecs.DeregisterTaskDefinitionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeregisterTaskDefinition", arg0) + ret0, _ := ret[0].(*ecs.DeregisterTaskDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeregisterTaskDefinition indicates an expected call of DeregisterTaskDefinition. +func (mr *MockECSAPIMockRecorder) DeregisterTaskDefinition(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeregisterTaskDefinition", reflect.TypeOf((*MockECSAPI)(nil).DeregisterTaskDefinition), arg0) +} + +// DeregisterTaskDefinitionRequest mocks base method. +func (m *MockECSAPI) DeregisterTaskDefinitionRequest(arg0 *ecs.DeregisterTaskDefinitionInput) (*request.Request, *ecs.DeregisterTaskDefinitionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeregisterTaskDefinitionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.DeregisterTaskDefinitionOutput) + return ret0, ret1 +} + +// DeregisterTaskDefinitionRequest indicates an expected call of DeregisterTaskDefinitionRequest. +func (mr *MockECSAPIMockRecorder) DeregisterTaskDefinitionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeregisterTaskDefinitionRequest", reflect.TypeOf((*MockECSAPI)(nil).DeregisterTaskDefinitionRequest), arg0) +} + +// DeregisterTaskDefinitionWithContext mocks base method. +func (m *MockECSAPI) DeregisterTaskDefinitionWithContext(arg0 aws.Context, arg1 *ecs.DeregisterTaskDefinitionInput, arg2 ...request.Option) (*ecs.DeregisterTaskDefinitionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeregisterTaskDefinitionWithContext", varargs...) + ret0, _ := ret[0].(*ecs.DeregisterTaskDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeregisterTaskDefinitionWithContext indicates an expected call of DeregisterTaskDefinitionWithContext. +func (mr *MockECSAPIMockRecorder) DeregisterTaskDefinitionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeregisterTaskDefinitionWithContext", reflect.TypeOf((*MockECSAPI)(nil).DeregisterTaskDefinitionWithContext), varargs...) +} + +// DescribeCapacityProviders mocks base method. +func (m *MockECSAPI) DescribeCapacityProviders(arg0 *ecs.DescribeCapacityProvidersInput) (*ecs.DescribeCapacityProvidersOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeCapacityProviders", arg0) + ret0, _ := ret[0].(*ecs.DescribeCapacityProvidersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeCapacityProviders indicates an expected call of DescribeCapacityProviders. +func (mr *MockECSAPIMockRecorder) DescribeCapacityProviders(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCapacityProviders", reflect.TypeOf((*MockECSAPI)(nil).DescribeCapacityProviders), arg0) +} + +// DescribeCapacityProvidersRequest mocks base method. +func (m *MockECSAPI) DescribeCapacityProvidersRequest(arg0 *ecs.DescribeCapacityProvidersInput) (*request.Request, *ecs.DescribeCapacityProvidersOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeCapacityProvidersRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.DescribeCapacityProvidersOutput) + return ret0, ret1 +} + +// DescribeCapacityProvidersRequest indicates an expected call of DescribeCapacityProvidersRequest. +func (mr *MockECSAPIMockRecorder) DescribeCapacityProvidersRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCapacityProvidersRequest", reflect.TypeOf((*MockECSAPI)(nil).DescribeCapacityProvidersRequest), arg0) +} + +// DescribeCapacityProvidersWithContext mocks base method. +func (m *MockECSAPI) DescribeCapacityProvidersWithContext(arg0 aws.Context, arg1 *ecs.DescribeCapacityProvidersInput, arg2 ...request.Option) (*ecs.DescribeCapacityProvidersOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeCapacityProvidersWithContext", varargs...) + ret0, _ := ret[0].(*ecs.DescribeCapacityProvidersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeCapacityProvidersWithContext indicates an expected call of DescribeCapacityProvidersWithContext. +func (mr *MockECSAPIMockRecorder) DescribeCapacityProvidersWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCapacityProvidersWithContext", reflect.TypeOf((*MockECSAPI)(nil).DescribeCapacityProvidersWithContext), varargs...) +} + +// DescribeClusters mocks base method. +func (m *MockECSAPI) DescribeClusters(arg0 *ecs.DescribeClustersInput) (*ecs.DescribeClustersOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeClusters", arg0) + ret0, _ := ret[0].(*ecs.DescribeClustersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeClusters indicates an expected call of DescribeClusters. +func (mr *MockECSAPIMockRecorder) DescribeClusters(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeClusters", reflect.TypeOf((*MockECSAPI)(nil).DescribeClusters), arg0) +} + +// DescribeClustersRequest mocks base method. +func (m *MockECSAPI) DescribeClustersRequest(arg0 *ecs.DescribeClustersInput) (*request.Request, *ecs.DescribeClustersOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeClustersRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.DescribeClustersOutput) + return ret0, ret1 +} + +// DescribeClustersRequest indicates an expected call of DescribeClustersRequest. +func (mr *MockECSAPIMockRecorder) DescribeClustersRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeClustersRequest", reflect.TypeOf((*MockECSAPI)(nil).DescribeClustersRequest), arg0) +} + +// DescribeClustersWithContext mocks base method. +func (m *MockECSAPI) DescribeClustersWithContext(arg0 aws.Context, arg1 *ecs.DescribeClustersInput, arg2 ...request.Option) (*ecs.DescribeClustersOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeClustersWithContext", varargs...) + ret0, _ := ret[0].(*ecs.DescribeClustersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeClustersWithContext indicates an expected call of DescribeClustersWithContext. +func (mr *MockECSAPIMockRecorder) DescribeClustersWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeClustersWithContext", reflect.TypeOf((*MockECSAPI)(nil).DescribeClustersWithContext), varargs...) +} + +// DescribeContainerInstances mocks base method. +func (m *MockECSAPI) DescribeContainerInstances(arg0 *ecs.DescribeContainerInstancesInput) (*ecs.DescribeContainerInstancesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeContainerInstances", arg0) + ret0, _ := ret[0].(*ecs.DescribeContainerInstancesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeContainerInstances indicates an expected call of DescribeContainerInstances. +func (mr *MockECSAPIMockRecorder) DescribeContainerInstances(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeContainerInstances", reflect.TypeOf((*MockECSAPI)(nil).DescribeContainerInstances), arg0) +} + +// DescribeContainerInstancesRequest mocks base method. +func (m *MockECSAPI) DescribeContainerInstancesRequest(arg0 *ecs.DescribeContainerInstancesInput) (*request.Request, *ecs.DescribeContainerInstancesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeContainerInstancesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.DescribeContainerInstancesOutput) + return ret0, ret1 +} + +// DescribeContainerInstancesRequest indicates an expected call of DescribeContainerInstancesRequest. +func (mr *MockECSAPIMockRecorder) DescribeContainerInstancesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeContainerInstancesRequest", reflect.TypeOf((*MockECSAPI)(nil).DescribeContainerInstancesRequest), arg0) +} + +// DescribeContainerInstancesWithContext mocks base method. +func (m *MockECSAPI) DescribeContainerInstancesWithContext(arg0 aws.Context, arg1 *ecs.DescribeContainerInstancesInput, arg2 ...request.Option) (*ecs.DescribeContainerInstancesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeContainerInstancesWithContext", varargs...) + ret0, _ := ret[0].(*ecs.DescribeContainerInstancesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeContainerInstancesWithContext indicates an expected call of DescribeContainerInstancesWithContext. +func (mr *MockECSAPIMockRecorder) DescribeContainerInstancesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeContainerInstancesWithContext", reflect.TypeOf((*MockECSAPI)(nil).DescribeContainerInstancesWithContext), varargs...) +} + +// DescribeServices mocks base method. +func (m *MockECSAPI) DescribeServices(arg0 *ecs.DescribeServicesInput) (*ecs.DescribeServicesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeServices", arg0) + ret0, _ := ret[0].(*ecs.DescribeServicesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeServices indicates an expected call of DescribeServices. +func (mr *MockECSAPIMockRecorder) DescribeServices(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeServices", reflect.TypeOf((*MockECSAPI)(nil).DescribeServices), arg0) +} + +// DescribeServicesRequest mocks base method. +func (m *MockECSAPI) DescribeServicesRequest(arg0 *ecs.DescribeServicesInput) (*request.Request, *ecs.DescribeServicesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeServicesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.DescribeServicesOutput) + return ret0, ret1 +} + +// DescribeServicesRequest indicates an expected call of DescribeServicesRequest. +func (mr *MockECSAPIMockRecorder) DescribeServicesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeServicesRequest", reflect.TypeOf((*MockECSAPI)(nil).DescribeServicesRequest), arg0) +} + +// DescribeServicesWithContext mocks base method. +func (m *MockECSAPI) DescribeServicesWithContext(arg0 aws.Context, arg1 *ecs.DescribeServicesInput, arg2 ...request.Option) (*ecs.DescribeServicesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeServicesWithContext", varargs...) + ret0, _ := ret[0].(*ecs.DescribeServicesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeServicesWithContext indicates an expected call of DescribeServicesWithContext. +func (mr *MockECSAPIMockRecorder) DescribeServicesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeServicesWithContext", reflect.TypeOf((*MockECSAPI)(nil).DescribeServicesWithContext), varargs...) +} + +// DescribeTaskDefinition mocks base method. +func (m *MockECSAPI) DescribeTaskDefinition(arg0 *ecs.DescribeTaskDefinitionInput) (*ecs.DescribeTaskDefinitionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTaskDefinition", arg0) + ret0, _ := ret[0].(*ecs.DescribeTaskDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTaskDefinition indicates an expected call of DescribeTaskDefinition. +func (mr *MockECSAPIMockRecorder) DescribeTaskDefinition(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTaskDefinition", reflect.TypeOf((*MockECSAPI)(nil).DescribeTaskDefinition), arg0) +} + +// DescribeTaskDefinitionRequest mocks base method. +func (m *MockECSAPI) DescribeTaskDefinitionRequest(arg0 *ecs.DescribeTaskDefinitionInput) (*request.Request, *ecs.DescribeTaskDefinitionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTaskDefinitionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.DescribeTaskDefinitionOutput) + return ret0, ret1 +} + +// DescribeTaskDefinitionRequest indicates an expected call of DescribeTaskDefinitionRequest. +func (mr *MockECSAPIMockRecorder) DescribeTaskDefinitionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTaskDefinitionRequest", reflect.TypeOf((*MockECSAPI)(nil).DescribeTaskDefinitionRequest), arg0) +} + +// DescribeTaskDefinitionWithContext mocks base method. +func (m *MockECSAPI) DescribeTaskDefinitionWithContext(arg0 aws.Context, arg1 *ecs.DescribeTaskDefinitionInput, arg2 ...request.Option) (*ecs.DescribeTaskDefinitionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeTaskDefinitionWithContext", varargs...) + ret0, _ := ret[0].(*ecs.DescribeTaskDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTaskDefinitionWithContext indicates an expected call of DescribeTaskDefinitionWithContext. +func (mr *MockECSAPIMockRecorder) DescribeTaskDefinitionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTaskDefinitionWithContext", reflect.TypeOf((*MockECSAPI)(nil).DescribeTaskDefinitionWithContext), varargs...) +} + +// DescribeTaskSets mocks base method. +func (m *MockECSAPI) DescribeTaskSets(arg0 *ecs.DescribeTaskSetsInput) (*ecs.DescribeTaskSetsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTaskSets", arg0) + ret0, _ := ret[0].(*ecs.DescribeTaskSetsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTaskSets indicates an expected call of DescribeTaskSets. +func (mr *MockECSAPIMockRecorder) DescribeTaskSets(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTaskSets", reflect.TypeOf((*MockECSAPI)(nil).DescribeTaskSets), arg0) +} + +// DescribeTaskSetsRequest mocks base method. +func (m *MockECSAPI) DescribeTaskSetsRequest(arg0 *ecs.DescribeTaskSetsInput) (*request.Request, *ecs.DescribeTaskSetsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTaskSetsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.DescribeTaskSetsOutput) + return ret0, ret1 +} + +// DescribeTaskSetsRequest indicates an expected call of DescribeTaskSetsRequest. +func (mr *MockECSAPIMockRecorder) DescribeTaskSetsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTaskSetsRequest", reflect.TypeOf((*MockECSAPI)(nil).DescribeTaskSetsRequest), arg0) +} + +// DescribeTaskSetsWithContext mocks base method. +func (m *MockECSAPI) DescribeTaskSetsWithContext(arg0 aws.Context, arg1 *ecs.DescribeTaskSetsInput, arg2 ...request.Option) (*ecs.DescribeTaskSetsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeTaskSetsWithContext", varargs...) + ret0, _ := ret[0].(*ecs.DescribeTaskSetsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTaskSetsWithContext indicates an expected call of DescribeTaskSetsWithContext. +func (mr *MockECSAPIMockRecorder) DescribeTaskSetsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTaskSetsWithContext", reflect.TypeOf((*MockECSAPI)(nil).DescribeTaskSetsWithContext), varargs...) +} + +// DescribeTasks mocks base method. +func (m *MockECSAPI) DescribeTasks(arg0 *ecs.DescribeTasksInput) (*ecs.DescribeTasksOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTasks", arg0) + ret0, _ := ret[0].(*ecs.DescribeTasksOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTasks indicates an expected call of DescribeTasks. +func (mr *MockECSAPIMockRecorder) DescribeTasks(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTasks", reflect.TypeOf((*MockECSAPI)(nil).DescribeTasks), arg0) +} + +// DescribeTasksRequest mocks base method. +func (m *MockECSAPI) DescribeTasksRequest(arg0 *ecs.DescribeTasksInput) (*request.Request, *ecs.DescribeTasksOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTasksRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.DescribeTasksOutput) + return ret0, ret1 +} + +// DescribeTasksRequest indicates an expected call of DescribeTasksRequest. +func (mr *MockECSAPIMockRecorder) DescribeTasksRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTasksRequest", reflect.TypeOf((*MockECSAPI)(nil).DescribeTasksRequest), arg0) +} + +// DescribeTasksWithContext mocks base method. +func (m *MockECSAPI) DescribeTasksWithContext(arg0 aws.Context, arg1 *ecs.DescribeTasksInput, arg2 ...request.Option) (*ecs.DescribeTasksOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeTasksWithContext", varargs...) + ret0, _ := ret[0].(*ecs.DescribeTasksOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTasksWithContext indicates an expected call of DescribeTasksWithContext. +func (mr *MockECSAPIMockRecorder) DescribeTasksWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTasksWithContext", reflect.TypeOf((*MockECSAPI)(nil).DescribeTasksWithContext), varargs...) +} + +// DiscoverPollEndpoint mocks base method. +func (m *MockECSAPI) DiscoverPollEndpoint(arg0 *ecs.DiscoverPollEndpointInput) (*ecs.DiscoverPollEndpointOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DiscoverPollEndpoint", arg0) + ret0, _ := ret[0].(*ecs.DiscoverPollEndpointOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DiscoverPollEndpoint indicates an expected call of DiscoverPollEndpoint. +func (mr *MockECSAPIMockRecorder) DiscoverPollEndpoint(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DiscoverPollEndpoint", reflect.TypeOf((*MockECSAPI)(nil).DiscoverPollEndpoint), arg0) +} + +// DiscoverPollEndpointRequest mocks base method. +func (m *MockECSAPI) DiscoverPollEndpointRequest(arg0 *ecs.DiscoverPollEndpointInput) (*request.Request, *ecs.DiscoverPollEndpointOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DiscoverPollEndpointRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.DiscoverPollEndpointOutput) + return ret0, ret1 +} + +// DiscoverPollEndpointRequest indicates an expected call of DiscoverPollEndpointRequest. +func (mr *MockECSAPIMockRecorder) DiscoverPollEndpointRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DiscoverPollEndpointRequest", reflect.TypeOf((*MockECSAPI)(nil).DiscoverPollEndpointRequest), arg0) +} + +// DiscoverPollEndpointWithContext mocks base method. +func (m *MockECSAPI) DiscoverPollEndpointWithContext(arg0 aws.Context, arg1 *ecs.DiscoverPollEndpointInput, arg2 ...request.Option) (*ecs.DiscoverPollEndpointOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DiscoverPollEndpointWithContext", varargs...) + ret0, _ := ret[0].(*ecs.DiscoverPollEndpointOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DiscoverPollEndpointWithContext indicates an expected call of DiscoverPollEndpointWithContext. +func (mr *MockECSAPIMockRecorder) DiscoverPollEndpointWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DiscoverPollEndpointWithContext", reflect.TypeOf((*MockECSAPI)(nil).DiscoverPollEndpointWithContext), varargs...) +} + +// ExecuteCommand mocks base method. +func (m *MockECSAPI) ExecuteCommand(arg0 *ecs.ExecuteCommandInput) (*ecs.ExecuteCommandOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExecuteCommand", arg0) + ret0, _ := ret[0].(*ecs.ExecuteCommandOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExecuteCommand indicates an expected call of ExecuteCommand. +func (mr *MockECSAPIMockRecorder) ExecuteCommand(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecuteCommand", reflect.TypeOf((*MockECSAPI)(nil).ExecuteCommand), arg0) +} + +// ExecuteCommandRequest mocks base method. +func (m *MockECSAPI) ExecuteCommandRequest(arg0 *ecs.ExecuteCommandInput) (*request.Request, *ecs.ExecuteCommandOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExecuteCommandRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.ExecuteCommandOutput) + return ret0, ret1 +} + +// ExecuteCommandRequest indicates an expected call of ExecuteCommandRequest. +func (mr *MockECSAPIMockRecorder) ExecuteCommandRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecuteCommandRequest", reflect.TypeOf((*MockECSAPI)(nil).ExecuteCommandRequest), arg0) +} + +// ExecuteCommandWithContext mocks base method. +func (m *MockECSAPI) ExecuteCommandWithContext(arg0 aws.Context, arg1 *ecs.ExecuteCommandInput, arg2 ...request.Option) (*ecs.ExecuteCommandOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ExecuteCommandWithContext", varargs...) + ret0, _ := ret[0].(*ecs.ExecuteCommandOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExecuteCommandWithContext indicates an expected call of ExecuteCommandWithContext. +func (mr *MockECSAPIMockRecorder) ExecuteCommandWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecuteCommandWithContext", reflect.TypeOf((*MockECSAPI)(nil).ExecuteCommandWithContext), varargs...) +} + +// GetTaskProtection mocks base method. +func (m *MockECSAPI) GetTaskProtection(arg0 *ecs.GetTaskProtectionInput) (*ecs.GetTaskProtectionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetTaskProtection", arg0) + ret0, _ := ret[0].(*ecs.GetTaskProtectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetTaskProtection indicates an expected call of GetTaskProtection. +func (mr *MockECSAPIMockRecorder) GetTaskProtection(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTaskProtection", reflect.TypeOf((*MockECSAPI)(nil).GetTaskProtection), arg0) +} + +// GetTaskProtectionRequest mocks base method. +func (m *MockECSAPI) GetTaskProtectionRequest(arg0 *ecs.GetTaskProtectionInput) (*request.Request, *ecs.GetTaskProtectionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetTaskProtectionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.GetTaskProtectionOutput) + return ret0, ret1 +} + +// GetTaskProtectionRequest indicates an expected call of GetTaskProtectionRequest. +func (mr *MockECSAPIMockRecorder) GetTaskProtectionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTaskProtectionRequest", reflect.TypeOf((*MockECSAPI)(nil).GetTaskProtectionRequest), arg0) +} + +// GetTaskProtectionWithContext mocks base method. +func (m *MockECSAPI) GetTaskProtectionWithContext(arg0 aws.Context, arg1 *ecs.GetTaskProtectionInput, arg2 ...request.Option) (*ecs.GetTaskProtectionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetTaskProtectionWithContext", varargs...) + ret0, _ := ret[0].(*ecs.GetTaskProtectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetTaskProtectionWithContext indicates an expected call of GetTaskProtectionWithContext. +func (mr *MockECSAPIMockRecorder) GetTaskProtectionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTaskProtectionWithContext", reflect.TypeOf((*MockECSAPI)(nil).GetTaskProtectionWithContext), varargs...) +} + +// ListAccountSettings mocks base method. +func (m *MockECSAPI) ListAccountSettings(arg0 *ecs.ListAccountSettingsInput) (*ecs.ListAccountSettingsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAccountSettings", arg0) + ret0, _ := ret[0].(*ecs.ListAccountSettingsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAccountSettings indicates an expected call of ListAccountSettings. +func (mr *MockECSAPIMockRecorder) ListAccountSettings(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAccountSettings", reflect.TypeOf((*MockECSAPI)(nil).ListAccountSettings), arg0) +} + +// ListAccountSettingsPages mocks base method. +func (m *MockECSAPI) ListAccountSettingsPages(arg0 *ecs.ListAccountSettingsInput, arg1 func(*ecs.ListAccountSettingsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAccountSettingsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListAccountSettingsPages indicates an expected call of ListAccountSettingsPages. +func (mr *MockECSAPIMockRecorder) ListAccountSettingsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAccountSettingsPages", reflect.TypeOf((*MockECSAPI)(nil).ListAccountSettingsPages), arg0, arg1) +} + +// ListAccountSettingsPagesWithContext mocks base method. +func (m *MockECSAPI) ListAccountSettingsPagesWithContext(arg0 aws.Context, arg1 *ecs.ListAccountSettingsInput, arg2 func(*ecs.ListAccountSettingsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAccountSettingsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListAccountSettingsPagesWithContext indicates an expected call of ListAccountSettingsPagesWithContext. +func (mr *MockECSAPIMockRecorder) ListAccountSettingsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAccountSettingsPagesWithContext", reflect.TypeOf((*MockECSAPI)(nil).ListAccountSettingsPagesWithContext), varargs...) +} + +// ListAccountSettingsRequest mocks base method. +func (m *MockECSAPI) ListAccountSettingsRequest(arg0 *ecs.ListAccountSettingsInput) (*request.Request, *ecs.ListAccountSettingsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAccountSettingsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.ListAccountSettingsOutput) + return ret0, ret1 +} + +// ListAccountSettingsRequest indicates an expected call of ListAccountSettingsRequest. +func (mr *MockECSAPIMockRecorder) ListAccountSettingsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAccountSettingsRequest", reflect.TypeOf((*MockECSAPI)(nil).ListAccountSettingsRequest), arg0) +} + +// ListAccountSettingsWithContext mocks base method. +func (m *MockECSAPI) ListAccountSettingsWithContext(arg0 aws.Context, arg1 *ecs.ListAccountSettingsInput, arg2 ...request.Option) (*ecs.ListAccountSettingsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAccountSettingsWithContext", varargs...) + ret0, _ := ret[0].(*ecs.ListAccountSettingsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAccountSettingsWithContext indicates an expected call of ListAccountSettingsWithContext. +func (mr *MockECSAPIMockRecorder) ListAccountSettingsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAccountSettingsWithContext", reflect.TypeOf((*MockECSAPI)(nil).ListAccountSettingsWithContext), varargs...) +} + +// ListAttributes mocks base method. +func (m *MockECSAPI) ListAttributes(arg0 *ecs.ListAttributesInput) (*ecs.ListAttributesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAttributes", arg0) + ret0, _ := ret[0].(*ecs.ListAttributesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAttributes indicates an expected call of ListAttributes. +func (mr *MockECSAPIMockRecorder) ListAttributes(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAttributes", reflect.TypeOf((*MockECSAPI)(nil).ListAttributes), arg0) +} + +// ListAttributesPages mocks base method. +func (m *MockECSAPI) ListAttributesPages(arg0 *ecs.ListAttributesInput, arg1 func(*ecs.ListAttributesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAttributesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListAttributesPages indicates an expected call of ListAttributesPages. +func (mr *MockECSAPIMockRecorder) ListAttributesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAttributesPages", reflect.TypeOf((*MockECSAPI)(nil).ListAttributesPages), arg0, arg1) +} + +// ListAttributesPagesWithContext mocks base method. +func (m *MockECSAPI) ListAttributesPagesWithContext(arg0 aws.Context, arg1 *ecs.ListAttributesInput, arg2 func(*ecs.ListAttributesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAttributesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListAttributesPagesWithContext indicates an expected call of ListAttributesPagesWithContext. +func (mr *MockECSAPIMockRecorder) ListAttributesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAttributesPagesWithContext", reflect.TypeOf((*MockECSAPI)(nil).ListAttributesPagesWithContext), varargs...) +} + +// ListAttributesRequest mocks base method. +func (m *MockECSAPI) ListAttributesRequest(arg0 *ecs.ListAttributesInput) (*request.Request, *ecs.ListAttributesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAttributesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.ListAttributesOutput) + return ret0, ret1 +} + +// ListAttributesRequest indicates an expected call of ListAttributesRequest. +func (mr *MockECSAPIMockRecorder) ListAttributesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAttributesRequest", reflect.TypeOf((*MockECSAPI)(nil).ListAttributesRequest), arg0) +} + +// ListAttributesWithContext mocks base method. +func (m *MockECSAPI) ListAttributesWithContext(arg0 aws.Context, arg1 *ecs.ListAttributesInput, arg2 ...request.Option) (*ecs.ListAttributesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAttributesWithContext", varargs...) + ret0, _ := ret[0].(*ecs.ListAttributesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAttributesWithContext indicates an expected call of ListAttributesWithContext. +func (mr *MockECSAPIMockRecorder) ListAttributesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAttributesWithContext", reflect.TypeOf((*MockECSAPI)(nil).ListAttributesWithContext), varargs...) +} + +// ListClusters mocks base method. +func (m *MockECSAPI) ListClusters(arg0 *ecs.ListClustersInput) (*ecs.ListClustersOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListClusters", arg0) + ret0, _ := ret[0].(*ecs.ListClustersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListClusters indicates an expected call of ListClusters. +func (mr *MockECSAPIMockRecorder) ListClusters(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListClusters", reflect.TypeOf((*MockECSAPI)(nil).ListClusters), arg0) +} + +// ListClustersPages mocks base method. +func (m *MockECSAPI) ListClustersPages(arg0 *ecs.ListClustersInput, arg1 func(*ecs.ListClustersOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListClustersPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListClustersPages indicates an expected call of ListClustersPages. +func (mr *MockECSAPIMockRecorder) ListClustersPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListClustersPages", reflect.TypeOf((*MockECSAPI)(nil).ListClustersPages), arg0, arg1) +} + +// ListClustersPagesWithContext mocks base method. +func (m *MockECSAPI) ListClustersPagesWithContext(arg0 aws.Context, arg1 *ecs.ListClustersInput, arg2 func(*ecs.ListClustersOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListClustersPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListClustersPagesWithContext indicates an expected call of ListClustersPagesWithContext. +func (mr *MockECSAPIMockRecorder) ListClustersPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListClustersPagesWithContext", reflect.TypeOf((*MockECSAPI)(nil).ListClustersPagesWithContext), varargs...) +} + +// ListClustersRequest mocks base method. +func (m *MockECSAPI) ListClustersRequest(arg0 *ecs.ListClustersInput) (*request.Request, *ecs.ListClustersOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListClustersRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.ListClustersOutput) + return ret0, ret1 +} + +// ListClustersRequest indicates an expected call of ListClustersRequest. +func (mr *MockECSAPIMockRecorder) ListClustersRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListClustersRequest", reflect.TypeOf((*MockECSAPI)(nil).ListClustersRequest), arg0) +} + +// ListClustersWithContext mocks base method. +func (m *MockECSAPI) ListClustersWithContext(arg0 aws.Context, arg1 *ecs.ListClustersInput, arg2 ...request.Option) (*ecs.ListClustersOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListClustersWithContext", varargs...) + ret0, _ := ret[0].(*ecs.ListClustersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListClustersWithContext indicates an expected call of ListClustersWithContext. +func (mr *MockECSAPIMockRecorder) ListClustersWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListClustersWithContext", reflect.TypeOf((*MockECSAPI)(nil).ListClustersWithContext), varargs...) +} + +// ListContainerInstances mocks base method. +func (m *MockECSAPI) ListContainerInstances(arg0 *ecs.ListContainerInstancesInput) (*ecs.ListContainerInstancesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListContainerInstances", arg0) + ret0, _ := ret[0].(*ecs.ListContainerInstancesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListContainerInstances indicates an expected call of ListContainerInstances. +func (mr *MockECSAPIMockRecorder) ListContainerInstances(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListContainerInstances", reflect.TypeOf((*MockECSAPI)(nil).ListContainerInstances), arg0) +} + +// ListContainerInstancesPages mocks base method. +func (m *MockECSAPI) ListContainerInstancesPages(arg0 *ecs.ListContainerInstancesInput, arg1 func(*ecs.ListContainerInstancesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListContainerInstancesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListContainerInstancesPages indicates an expected call of ListContainerInstancesPages. +func (mr *MockECSAPIMockRecorder) ListContainerInstancesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListContainerInstancesPages", reflect.TypeOf((*MockECSAPI)(nil).ListContainerInstancesPages), arg0, arg1) +} + +// ListContainerInstancesPagesWithContext mocks base method. +func (m *MockECSAPI) ListContainerInstancesPagesWithContext(arg0 aws.Context, arg1 *ecs.ListContainerInstancesInput, arg2 func(*ecs.ListContainerInstancesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListContainerInstancesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListContainerInstancesPagesWithContext indicates an expected call of ListContainerInstancesPagesWithContext. +func (mr *MockECSAPIMockRecorder) ListContainerInstancesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListContainerInstancesPagesWithContext", reflect.TypeOf((*MockECSAPI)(nil).ListContainerInstancesPagesWithContext), varargs...) +} + +// ListContainerInstancesRequest mocks base method. +func (m *MockECSAPI) ListContainerInstancesRequest(arg0 *ecs.ListContainerInstancesInput) (*request.Request, *ecs.ListContainerInstancesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListContainerInstancesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.ListContainerInstancesOutput) + return ret0, ret1 +} + +// ListContainerInstancesRequest indicates an expected call of ListContainerInstancesRequest. +func (mr *MockECSAPIMockRecorder) ListContainerInstancesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListContainerInstancesRequest", reflect.TypeOf((*MockECSAPI)(nil).ListContainerInstancesRequest), arg0) +} + +// ListContainerInstancesWithContext mocks base method. +func (m *MockECSAPI) ListContainerInstancesWithContext(arg0 aws.Context, arg1 *ecs.ListContainerInstancesInput, arg2 ...request.Option) (*ecs.ListContainerInstancesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListContainerInstancesWithContext", varargs...) + ret0, _ := ret[0].(*ecs.ListContainerInstancesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListContainerInstancesWithContext indicates an expected call of ListContainerInstancesWithContext. +func (mr *MockECSAPIMockRecorder) ListContainerInstancesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListContainerInstancesWithContext", reflect.TypeOf((*MockECSAPI)(nil).ListContainerInstancesWithContext), varargs...) +} + +// ListServices mocks base method. +func (m *MockECSAPI) ListServices(arg0 *ecs.ListServicesInput) (*ecs.ListServicesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListServices", arg0) + ret0, _ := ret[0].(*ecs.ListServicesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListServices indicates an expected call of ListServices. +func (mr *MockECSAPIMockRecorder) ListServices(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServices", reflect.TypeOf((*MockECSAPI)(nil).ListServices), arg0) +} + +// ListServicesByNamespace mocks base method. +func (m *MockECSAPI) ListServicesByNamespace(arg0 *ecs.ListServicesByNamespaceInput) (*ecs.ListServicesByNamespaceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListServicesByNamespace", arg0) + ret0, _ := ret[0].(*ecs.ListServicesByNamespaceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListServicesByNamespace indicates an expected call of ListServicesByNamespace. +func (mr *MockECSAPIMockRecorder) ListServicesByNamespace(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServicesByNamespace", reflect.TypeOf((*MockECSAPI)(nil).ListServicesByNamespace), arg0) +} + +// ListServicesByNamespacePages mocks base method. +func (m *MockECSAPI) ListServicesByNamespacePages(arg0 *ecs.ListServicesByNamespaceInput, arg1 func(*ecs.ListServicesByNamespaceOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListServicesByNamespacePages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListServicesByNamespacePages indicates an expected call of ListServicesByNamespacePages. +func (mr *MockECSAPIMockRecorder) ListServicesByNamespacePages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServicesByNamespacePages", reflect.TypeOf((*MockECSAPI)(nil).ListServicesByNamespacePages), arg0, arg1) +} + +// ListServicesByNamespacePagesWithContext mocks base method. +func (m *MockECSAPI) ListServicesByNamespacePagesWithContext(arg0 aws.Context, arg1 *ecs.ListServicesByNamespaceInput, arg2 func(*ecs.ListServicesByNamespaceOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListServicesByNamespacePagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListServicesByNamespacePagesWithContext indicates an expected call of ListServicesByNamespacePagesWithContext. +func (mr *MockECSAPIMockRecorder) ListServicesByNamespacePagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServicesByNamespacePagesWithContext", reflect.TypeOf((*MockECSAPI)(nil).ListServicesByNamespacePagesWithContext), varargs...) +} + +// ListServicesByNamespaceRequest mocks base method. +func (m *MockECSAPI) ListServicesByNamespaceRequest(arg0 *ecs.ListServicesByNamespaceInput) (*request.Request, *ecs.ListServicesByNamespaceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListServicesByNamespaceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.ListServicesByNamespaceOutput) + return ret0, ret1 +} + +// ListServicesByNamespaceRequest indicates an expected call of ListServicesByNamespaceRequest. +func (mr *MockECSAPIMockRecorder) ListServicesByNamespaceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServicesByNamespaceRequest", reflect.TypeOf((*MockECSAPI)(nil).ListServicesByNamespaceRequest), arg0) +} + +// ListServicesByNamespaceWithContext mocks base method. +func (m *MockECSAPI) ListServicesByNamespaceWithContext(arg0 aws.Context, arg1 *ecs.ListServicesByNamespaceInput, arg2 ...request.Option) (*ecs.ListServicesByNamespaceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListServicesByNamespaceWithContext", varargs...) + ret0, _ := ret[0].(*ecs.ListServicesByNamespaceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListServicesByNamespaceWithContext indicates an expected call of ListServicesByNamespaceWithContext. +func (mr *MockECSAPIMockRecorder) ListServicesByNamespaceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServicesByNamespaceWithContext", reflect.TypeOf((*MockECSAPI)(nil).ListServicesByNamespaceWithContext), varargs...) +} + +// ListServicesPages mocks base method. +func (m *MockECSAPI) ListServicesPages(arg0 *ecs.ListServicesInput, arg1 func(*ecs.ListServicesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListServicesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListServicesPages indicates an expected call of ListServicesPages. +func (mr *MockECSAPIMockRecorder) ListServicesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServicesPages", reflect.TypeOf((*MockECSAPI)(nil).ListServicesPages), arg0, arg1) +} + +// ListServicesPagesWithContext mocks base method. +func (m *MockECSAPI) ListServicesPagesWithContext(arg0 aws.Context, arg1 *ecs.ListServicesInput, arg2 func(*ecs.ListServicesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListServicesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListServicesPagesWithContext indicates an expected call of ListServicesPagesWithContext. +func (mr *MockECSAPIMockRecorder) ListServicesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServicesPagesWithContext", reflect.TypeOf((*MockECSAPI)(nil).ListServicesPagesWithContext), varargs...) +} + +// ListServicesRequest mocks base method. +func (m *MockECSAPI) ListServicesRequest(arg0 *ecs.ListServicesInput) (*request.Request, *ecs.ListServicesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListServicesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.ListServicesOutput) + return ret0, ret1 +} + +// ListServicesRequest indicates an expected call of ListServicesRequest. +func (mr *MockECSAPIMockRecorder) ListServicesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServicesRequest", reflect.TypeOf((*MockECSAPI)(nil).ListServicesRequest), arg0) +} + +// ListServicesWithContext mocks base method. +func (m *MockECSAPI) ListServicesWithContext(arg0 aws.Context, arg1 *ecs.ListServicesInput, arg2 ...request.Option) (*ecs.ListServicesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListServicesWithContext", varargs...) + ret0, _ := ret[0].(*ecs.ListServicesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListServicesWithContext indicates an expected call of ListServicesWithContext. +func (mr *MockECSAPIMockRecorder) ListServicesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServicesWithContext", reflect.TypeOf((*MockECSAPI)(nil).ListServicesWithContext), varargs...) +} + +// ListTagsForResource mocks base method. +func (m *MockECSAPI) ListTagsForResource(arg0 *ecs.ListTagsForResourceInput) (*ecs.ListTagsForResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTagsForResource", arg0) + ret0, _ := ret[0].(*ecs.ListTagsForResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTagsForResource indicates an expected call of ListTagsForResource. +func (mr *MockECSAPIMockRecorder) ListTagsForResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsForResource", reflect.TypeOf((*MockECSAPI)(nil).ListTagsForResource), arg0) +} + +// ListTagsForResourceRequest mocks base method. +func (m *MockECSAPI) ListTagsForResourceRequest(arg0 *ecs.ListTagsForResourceInput) (*request.Request, *ecs.ListTagsForResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTagsForResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.ListTagsForResourceOutput) + return ret0, ret1 +} + +// ListTagsForResourceRequest indicates an expected call of ListTagsForResourceRequest. +func (mr *MockECSAPIMockRecorder) ListTagsForResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsForResourceRequest", reflect.TypeOf((*MockECSAPI)(nil).ListTagsForResourceRequest), arg0) +} + +// ListTagsForResourceWithContext mocks base method. +func (m *MockECSAPI) ListTagsForResourceWithContext(arg0 aws.Context, arg1 *ecs.ListTagsForResourceInput, arg2 ...request.Option) (*ecs.ListTagsForResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTagsForResourceWithContext", varargs...) + ret0, _ := ret[0].(*ecs.ListTagsForResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTagsForResourceWithContext indicates an expected call of ListTagsForResourceWithContext. +func (mr *MockECSAPIMockRecorder) ListTagsForResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsForResourceWithContext", reflect.TypeOf((*MockECSAPI)(nil).ListTagsForResourceWithContext), varargs...) +} + +// ListTaskDefinitionFamilies mocks base method. +func (m *MockECSAPI) ListTaskDefinitionFamilies(arg0 *ecs.ListTaskDefinitionFamiliesInput) (*ecs.ListTaskDefinitionFamiliesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTaskDefinitionFamilies", arg0) + ret0, _ := ret[0].(*ecs.ListTaskDefinitionFamiliesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTaskDefinitionFamilies indicates an expected call of ListTaskDefinitionFamilies. +func (mr *MockECSAPIMockRecorder) ListTaskDefinitionFamilies(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTaskDefinitionFamilies", reflect.TypeOf((*MockECSAPI)(nil).ListTaskDefinitionFamilies), arg0) +} + +// ListTaskDefinitionFamiliesPages mocks base method. +func (m *MockECSAPI) ListTaskDefinitionFamiliesPages(arg0 *ecs.ListTaskDefinitionFamiliesInput, arg1 func(*ecs.ListTaskDefinitionFamiliesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTaskDefinitionFamiliesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTaskDefinitionFamiliesPages indicates an expected call of ListTaskDefinitionFamiliesPages. +func (mr *MockECSAPIMockRecorder) ListTaskDefinitionFamiliesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTaskDefinitionFamiliesPages", reflect.TypeOf((*MockECSAPI)(nil).ListTaskDefinitionFamiliesPages), arg0, arg1) +} + +// ListTaskDefinitionFamiliesPagesWithContext mocks base method. +func (m *MockECSAPI) ListTaskDefinitionFamiliesPagesWithContext(arg0 aws.Context, arg1 *ecs.ListTaskDefinitionFamiliesInput, arg2 func(*ecs.ListTaskDefinitionFamiliesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTaskDefinitionFamiliesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTaskDefinitionFamiliesPagesWithContext indicates an expected call of ListTaskDefinitionFamiliesPagesWithContext. +func (mr *MockECSAPIMockRecorder) ListTaskDefinitionFamiliesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTaskDefinitionFamiliesPagesWithContext", reflect.TypeOf((*MockECSAPI)(nil).ListTaskDefinitionFamiliesPagesWithContext), varargs...) +} + +// ListTaskDefinitionFamiliesRequest mocks base method. +func (m *MockECSAPI) ListTaskDefinitionFamiliesRequest(arg0 *ecs.ListTaskDefinitionFamiliesInput) (*request.Request, *ecs.ListTaskDefinitionFamiliesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTaskDefinitionFamiliesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.ListTaskDefinitionFamiliesOutput) + return ret0, ret1 +} + +// ListTaskDefinitionFamiliesRequest indicates an expected call of ListTaskDefinitionFamiliesRequest. +func (mr *MockECSAPIMockRecorder) ListTaskDefinitionFamiliesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTaskDefinitionFamiliesRequest", reflect.TypeOf((*MockECSAPI)(nil).ListTaskDefinitionFamiliesRequest), arg0) +} + +// ListTaskDefinitionFamiliesWithContext mocks base method. +func (m *MockECSAPI) ListTaskDefinitionFamiliesWithContext(arg0 aws.Context, arg1 *ecs.ListTaskDefinitionFamiliesInput, arg2 ...request.Option) (*ecs.ListTaskDefinitionFamiliesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTaskDefinitionFamiliesWithContext", varargs...) + ret0, _ := ret[0].(*ecs.ListTaskDefinitionFamiliesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTaskDefinitionFamiliesWithContext indicates an expected call of ListTaskDefinitionFamiliesWithContext. +func (mr *MockECSAPIMockRecorder) ListTaskDefinitionFamiliesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTaskDefinitionFamiliesWithContext", reflect.TypeOf((*MockECSAPI)(nil).ListTaskDefinitionFamiliesWithContext), varargs...) +} + +// ListTaskDefinitions mocks base method. +func (m *MockECSAPI) ListTaskDefinitions(arg0 *ecs.ListTaskDefinitionsInput) (*ecs.ListTaskDefinitionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTaskDefinitions", arg0) + ret0, _ := ret[0].(*ecs.ListTaskDefinitionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTaskDefinitions indicates an expected call of ListTaskDefinitions. +func (mr *MockECSAPIMockRecorder) ListTaskDefinitions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTaskDefinitions", reflect.TypeOf((*MockECSAPI)(nil).ListTaskDefinitions), arg0) +} + +// ListTaskDefinitionsPages mocks base method. +func (m *MockECSAPI) ListTaskDefinitionsPages(arg0 *ecs.ListTaskDefinitionsInput, arg1 func(*ecs.ListTaskDefinitionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTaskDefinitionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTaskDefinitionsPages indicates an expected call of ListTaskDefinitionsPages. +func (mr *MockECSAPIMockRecorder) ListTaskDefinitionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTaskDefinitionsPages", reflect.TypeOf((*MockECSAPI)(nil).ListTaskDefinitionsPages), arg0, arg1) +} + +// ListTaskDefinitionsPagesWithContext mocks base method. +func (m *MockECSAPI) ListTaskDefinitionsPagesWithContext(arg0 aws.Context, arg1 *ecs.ListTaskDefinitionsInput, arg2 func(*ecs.ListTaskDefinitionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTaskDefinitionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTaskDefinitionsPagesWithContext indicates an expected call of ListTaskDefinitionsPagesWithContext. +func (mr *MockECSAPIMockRecorder) ListTaskDefinitionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTaskDefinitionsPagesWithContext", reflect.TypeOf((*MockECSAPI)(nil).ListTaskDefinitionsPagesWithContext), varargs...) +} + +// ListTaskDefinitionsRequest mocks base method. +func (m *MockECSAPI) ListTaskDefinitionsRequest(arg0 *ecs.ListTaskDefinitionsInput) (*request.Request, *ecs.ListTaskDefinitionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTaskDefinitionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.ListTaskDefinitionsOutput) + return ret0, ret1 +} + +// ListTaskDefinitionsRequest indicates an expected call of ListTaskDefinitionsRequest. +func (mr *MockECSAPIMockRecorder) ListTaskDefinitionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTaskDefinitionsRequest", reflect.TypeOf((*MockECSAPI)(nil).ListTaskDefinitionsRequest), arg0) +} + +// ListTaskDefinitionsWithContext mocks base method. +func (m *MockECSAPI) ListTaskDefinitionsWithContext(arg0 aws.Context, arg1 *ecs.ListTaskDefinitionsInput, arg2 ...request.Option) (*ecs.ListTaskDefinitionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTaskDefinitionsWithContext", varargs...) + ret0, _ := ret[0].(*ecs.ListTaskDefinitionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTaskDefinitionsWithContext indicates an expected call of ListTaskDefinitionsWithContext. +func (mr *MockECSAPIMockRecorder) ListTaskDefinitionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTaskDefinitionsWithContext", reflect.TypeOf((*MockECSAPI)(nil).ListTaskDefinitionsWithContext), varargs...) +} + +// ListTasks mocks base method. +func (m *MockECSAPI) ListTasks(arg0 *ecs.ListTasksInput) (*ecs.ListTasksOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTasks", arg0) + ret0, _ := ret[0].(*ecs.ListTasksOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTasks indicates an expected call of ListTasks. +func (mr *MockECSAPIMockRecorder) ListTasks(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTasks", reflect.TypeOf((*MockECSAPI)(nil).ListTasks), arg0) +} + +// ListTasksPages mocks base method. +func (m *MockECSAPI) ListTasksPages(arg0 *ecs.ListTasksInput, arg1 func(*ecs.ListTasksOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTasksPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTasksPages indicates an expected call of ListTasksPages. +func (mr *MockECSAPIMockRecorder) ListTasksPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTasksPages", reflect.TypeOf((*MockECSAPI)(nil).ListTasksPages), arg0, arg1) +} + +// ListTasksPagesWithContext mocks base method. +func (m *MockECSAPI) ListTasksPagesWithContext(arg0 aws.Context, arg1 *ecs.ListTasksInput, arg2 func(*ecs.ListTasksOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTasksPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTasksPagesWithContext indicates an expected call of ListTasksPagesWithContext. +func (mr *MockECSAPIMockRecorder) ListTasksPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTasksPagesWithContext", reflect.TypeOf((*MockECSAPI)(nil).ListTasksPagesWithContext), varargs...) +} + +// ListTasksRequest mocks base method. +func (m *MockECSAPI) ListTasksRequest(arg0 *ecs.ListTasksInput) (*request.Request, *ecs.ListTasksOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTasksRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.ListTasksOutput) + return ret0, ret1 +} + +// ListTasksRequest indicates an expected call of ListTasksRequest. +func (mr *MockECSAPIMockRecorder) ListTasksRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTasksRequest", reflect.TypeOf((*MockECSAPI)(nil).ListTasksRequest), arg0) +} + +// ListTasksWithContext mocks base method. +func (m *MockECSAPI) ListTasksWithContext(arg0 aws.Context, arg1 *ecs.ListTasksInput, arg2 ...request.Option) (*ecs.ListTasksOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTasksWithContext", varargs...) + ret0, _ := ret[0].(*ecs.ListTasksOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTasksWithContext indicates an expected call of ListTasksWithContext. +func (mr *MockECSAPIMockRecorder) ListTasksWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTasksWithContext", reflect.TypeOf((*MockECSAPI)(nil).ListTasksWithContext), varargs...) +} + +// PutAccountSetting mocks base method. +func (m *MockECSAPI) PutAccountSetting(arg0 *ecs.PutAccountSettingInput) (*ecs.PutAccountSettingOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutAccountSetting", arg0) + ret0, _ := ret[0].(*ecs.PutAccountSettingOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutAccountSetting indicates an expected call of PutAccountSetting. +func (mr *MockECSAPIMockRecorder) PutAccountSetting(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutAccountSetting", reflect.TypeOf((*MockECSAPI)(nil).PutAccountSetting), arg0) +} + +// PutAccountSettingDefault mocks base method. +func (m *MockECSAPI) PutAccountSettingDefault(arg0 *ecs.PutAccountSettingDefaultInput) (*ecs.PutAccountSettingDefaultOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutAccountSettingDefault", arg0) + ret0, _ := ret[0].(*ecs.PutAccountSettingDefaultOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutAccountSettingDefault indicates an expected call of PutAccountSettingDefault. +func (mr *MockECSAPIMockRecorder) PutAccountSettingDefault(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutAccountSettingDefault", reflect.TypeOf((*MockECSAPI)(nil).PutAccountSettingDefault), arg0) +} + +// PutAccountSettingDefaultRequest mocks base method. +func (m *MockECSAPI) PutAccountSettingDefaultRequest(arg0 *ecs.PutAccountSettingDefaultInput) (*request.Request, *ecs.PutAccountSettingDefaultOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutAccountSettingDefaultRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.PutAccountSettingDefaultOutput) + return ret0, ret1 +} + +// PutAccountSettingDefaultRequest indicates an expected call of PutAccountSettingDefaultRequest. +func (mr *MockECSAPIMockRecorder) PutAccountSettingDefaultRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutAccountSettingDefaultRequest", reflect.TypeOf((*MockECSAPI)(nil).PutAccountSettingDefaultRequest), arg0) +} + +// PutAccountSettingDefaultWithContext mocks base method. +func (m *MockECSAPI) PutAccountSettingDefaultWithContext(arg0 aws.Context, arg1 *ecs.PutAccountSettingDefaultInput, arg2 ...request.Option) (*ecs.PutAccountSettingDefaultOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PutAccountSettingDefaultWithContext", varargs...) + ret0, _ := ret[0].(*ecs.PutAccountSettingDefaultOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutAccountSettingDefaultWithContext indicates an expected call of PutAccountSettingDefaultWithContext. +func (mr *MockECSAPIMockRecorder) PutAccountSettingDefaultWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutAccountSettingDefaultWithContext", reflect.TypeOf((*MockECSAPI)(nil).PutAccountSettingDefaultWithContext), varargs...) +} + +// PutAccountSettingRequest mocks base method. +func (m *MockECSAPI) PutAccountSettingRequest(arg0 *ecs.PutAccountSettingInput) (*request.Request, *ecs.PutAccountSettingOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutAccountSettingRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.PutAccountSettingOutput) + return ret0, ret1 +} + +// PutAccountSettingRequest indicates an expected call of PutAccountSettingRequest. +func (mr *MockECSAPIMockRecorder) PutAccountSettingRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutAccountSettingRequest", reflect.TypeOf((*MockECSAPI)(nil).PutAccountSettingRequest), arg0) +} + +// PutAccountSettingWithContext mocks base method. +func (m *MockECSAPI) PutAccountSettingWithContext(arg0 aws.Context, arg1 *ecs.PutAccountSettingInput, arg2 ...request.Option) (*ecs.PutAccountSettingOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PutAccountSettingWithContext", varargs...) + ret0, _ := ret[0].(*ecs.PutAccountSettingOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutAccountSettingWithContext indicates an expected call of PutAccountSettingWithContext. +func (mr *MockECSAPIMockRecorder) PutAccountSettingWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutAccountSettingWithContext", reflect.TypeOf((*MockECSAPI)(nil).PutAccountSettingWithContext), varargs...) +} + +// PutAttributes mocks base method. +func (m *MockECSAPI) PutAttributes(arg0 *ecs.PutAttributesInput) (*ecs.PutAttributesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutAttributes", arg0) + ret0, _ := ret[0].(*ecs.PutAttributesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutAttributes indicates an expected call of PutAttributes. +func (mr *MockECSAPIMockRecorder) PutAttributes(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutAttributes", reflect.TypeOf((*MockECSAPI)(nil).PutAttributes), arg0) +} + +// PutAttributesRequest mocks base method. +func (m *MockECSAPI) PutAttributesRequest(arg0 *ecs.PutAttributesInput) (*request.Request, *ecs.PutAttributesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutAttributesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.PutAttributesOutput) + return ret0, ret1 +} + +// PutAttributesRequest indicates an expected call of PutAttributesRequest. +func (mr *MockECSAPIMockRecorder) PutAttributesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutAttributesRequest", reflect.TypeOf((*MockECSAPI)(nil).PutAttributesRequest), arg0) +} + +// PutAttributesWithContext mocks base method. +func (m *MockECSAPI) PutAttributesWithContext(arg0 aws.Context, arg1 *ecs.PutAttributesInput, arg2 ...request.Option) (*ecs.PutAttributesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PutAttributesWithContext", varargs...) + ret0, _ := ret[0].(*ecs.PutAttributesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutAttributesWithContext indicates an expected call of PutAttributesWithContext. +func (mr *MockECSAPIMockRecorder) PutAttributesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutAttributesWithContext", reflect.TypeOf((*MockECSAPI)(nil).PutAttributesWithContext), varargs...) +} + +// PutClusterCapacityProviders mocks base method. +func (m *MockECSAPI) PutClusterCapacityProviders(arg0 *ecs.PutClusterCapacityProvidersInput) (*ecs.PutClusterCapacityProvidersOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutClusterCapacityProviders", arg0) + ret0, _ := ret[0].(*ecs.PutClusterCapacityProvidersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutClusterCapacityProviders indicates an expected call of PutClusterCapacityProviders. +func (mr *MockECSAPIMockRecorder) PutClusterCapacityProviders(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutClusterCapacityProviders", reflect.TypeOf((*MockECSAPI)(nil).PutClusterCapacityProviders), arg0) +} + +// PutClusterCapacityProvidersRequest mocks base method. +func (m *MockECSAPI) PutClusterCapacityProvidersRequest(arg0 *ecs.PutClusterCapacityProvidersInput) (*request.Request, *ecs.PutClusterCapacityProvidersOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutClusterCapacityProvidersRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.PutClusterCapacityProvidersOutput) + return ret0, ret1 +} + +// PutClusterCapacityProvidersRequest indicates an expected call of PutClusterCapacityProvidersRequest. +func (mr *MockECSAPIMockRecorder) PutClusterCapacityProvidersRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutClusterCapacityProvidersRequest", reflect.TypeOf((*MockECSAPI)(nil).PutClusterCapacityProvidersRequest), arg0) +} + +// PutClusterCapacityProvidersWithContext mocks base method. +func (m *MockECSAPI) PutClusterCapacityProvidersWithContext(arg0 aws.Context, arg1 *ecs.PutClusterCapacityProvidersInput, arg2 ...request.Option) (*ecs.PutClusterCapacityProvidersOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PutClusterCapacityProvidersWithContext", varargs...) + ret0, _ := ret[0].(*ecs.PutClusterCapacityProvidersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutClusterCapacityProvidersWithContext indicates an expected call of PutClusterCapacityProvidersWithContext. +func (mr *MockECSAPIMockRecorder) PutClusterCapacityProvidersWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutClusterCapacityProvidersWithContext", reflect.TypeOf((*MockECSAPI)(nil).PutClusterCapacityProvidersWithContext), varargs...) +} + +// RegisterContainerInstance mocks base method. +func (m *MockECSAPI) RegisterContainerInstance(arg0 *ecs.RegisterContainerInstanceInput) (*ecs.RegisterContainerInstanceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RegisterContainerInstance", arg0) + ret0, _ := ret[0].(*ecs.RegisterContainerInstanceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RegisterContainerInstance indicates an expected call of RegisterContainerInstance. +func (mr *MockECSAPIMockRecorder) RegisterContainerInstance(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterContainerInstance", reflect.TypeOf((*MockECSAPI)(nil).RegisterContainerInstance), arg0) +} + +// RegisterContainerInstanceRequest mocks base method. +func (m *MockECSAPI) RegisterContainerInstanceRequest(arg0 *ecs.RegisterContainerInstanceInput) (*request.Request, *ecs.RegisterContainerInstanceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RegisterContainerInstanceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.RegisterContainerInstanceOutput) + return ret0, ret1 +} + +// RegisterContainerInstanceRequest indicates an expected call of RegisterContainerInstanceRequest. +func (mr *MockECSAPIMockRecorder) RegisterContainerInstanceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterContainerInstanceRequest", reflect.TypeOf((*MockECSAPI)(nil).RegisterContainerInstanceRequest), arg0) +} + +// RegisterContainerInstanceWithContext mocks base method. +func (m *MockECSAPI) RegisterContainerInstanceWithContext(arg0 aws.Context, arg1 *ecs.RegisterContainerInstanceInput, arg2 ...request.Option) (*ecs.RegisterContainerInstanceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RegisterContainerInstanceWithContext", varargs...) + ret0, _ := ret[0].(*ecs.RegisterContainerInstanceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RegisterContainerInstanceWithContext indicates an expected call of RegisterContainerInstanceWithContext. +func (mr *MockECSAPIMockRecorder) RegisterContainerInstanceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterContainerInstanceWithContext", reflect.TypeOf((*MockECSAPI)(nil).RegisterContainerInstanceWithContext), varargs...) +} + +// RegisterTaskDefinition mocks base method. +func (m *MockECSAPI) RegisterTaskDefinition(arg0 *ecs.RegisterTaskDefinitionInput) (*ecs.RegisterTaskDefinitionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RegisterTaskDefinition", arg0) + ret0, _ := ret[0].(*ecs.RegisterTaskDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RegisterTaskDefinition indicates an expected call of RegisterTaskDefinition. +func (mr *MockECSAPIMockRecorder) RegisterTaskDefinition(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterTaskDefinition", reflect.TypeOf((*MockECSAPI)(nil).RegisterTaskDefinition), arg0) +} + +// RegisterTaskDefinitionRequest mocks base method. +func (m *MockECSAPI) RegisterTaskDefinitionRequest(arg0 *ecs.RegisterTaskDefinitionInput) (*request.Request, *ecs.RegisterTaskDefinitionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RegisterTaskDefinitionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.RegisterTaskDefinitionOutput) + return ret0, ret1 +} + +// RegisterTaskDefinitionRequest indicates an expected call of RegisterTaskDefinitionRequest. +func (mr *MockECSAPIMockRecorder) RegisterTaskDefinitionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterTaskDefinitionRequest", reflect.TypeOf((*MockECSAPI)(nil).RegisterTaskDefinitionRequest), arg0) +} + +// RegisterTaskDefinitionWithContext mocks base method. +func (m *MockECSAPI) RegisterTaskDefinitionWithContext(arg0 aws.Context, arg1 *ecs.RegisterTaskDefinitionInput, arg2 ...request.Option) (*ecs.RegisterTaskDefinitionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RegisterTaskDefinitionWithContext", varargs...) + ret0, _ := ret[0].(*ecs.RegisterTaskDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RegisterTaskDefinitionWithContext indicates an expected call of RegisterTaskDefinitionWithContext. +func (mr *MockECSAPIMockRecorder) RegisterTaskDefinitionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterTaskDefinitionWithContext", reflect.TypeOf((*MockECSAPI)(nil).RegisterTaskDefinitionWithContext), varargs...) +} + +// RunTask mocks base method. +func (m *MockECSAPI) RunTask(arg0 *ecs.RunTaskInput) (*ecs.RunTaskOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RunTask", arg0) + ret0, _ := ret[0].(*ecs.RunTaskOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RunTask indicates an expected call of RunTask. +func (mr *MockECSAPIMockRecorder) RunTask(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RunTask", reflect.TypeOf((*MockECSAPI)(nil).RunTask), arg0) +} + +// RunTaskRequest mocks base method. +func (m *MockECSAPI) RunTaskRequest(arg0 *ecs.RunTaskInput) (*request.Request, *ecs.RunTaskOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RunTaskRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.RunTaskOutput) + return ret0, ret1 +} + +// RunTaskRequest indicates an expected call of RunTaskRequest. +func (mr *MockECSAPIMockRecorder) RunTaskRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RunTaskRequest", reflect.TypeOf((*MockECSAPI)(nil).RunTaskRequest), arg0) +} + +// RunTaskWithContext mocks base method. +func (m *MockECSAPI) RunTaskWithContext(arg0 aws.Context, arg1 *ecs.RunTaskInput, arg2 ...request.Option) (*ecs.RunTaskOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RunTaskWithContext", varargs...) + ret0, _ := ret[0].(*ecs.RunTaskOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RunTaskWithContext indicates an expected call of RunTaskWithContext. +func (mr *MockECSAPIMockRecorder) RunTaskWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RunTaskWithContext", reflect.TypeOf((*MockECSAPI)(nil).RunTaskWithContext), varargs...) +} + +// StartTask mocks base method. +func (m *MockECSAPI) StartTask(arg0 *ecs.StartTaskInput) (*ecs.StartTaskOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartTask", arg0) + ret0, _ := ret[0].(*ecs.StartTaskOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartTask indicates an expected call of StartTask. +func (mr *MockECSAPIMockRecorder) StartTask(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartTask", reflect.TypeOf((*MockECSAPI)(nil).StartTask), arg0) +} + +// StartTaskRequest mocks base method. +func (m *MockECSAPI) StartTaskRequest(arg0 *ecs.StartTaskInput) (*request.Request, *ecs.StartTaskOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartTaskRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.StartTaskOutput) + return ret0, ret1 +} + +// StartTaskRequest indicates an expected call of StartTaskRequest. +func (mr *MockECSAPIMockRecorder) StartTaskRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartTaskRequest", reflect.TypeOf((*MockECSAPI)(nil).StartTaskRequest), arg0) +} + +// StartTaskWithContext mocks base method. +func (m *MockECSAPI) StartTaskWithContext(arg0 aws.Context, arg1 *ecs.StartTaskInput, arg2 ...request.Option) (*ecs.StartTaskOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StartTaskWithContext", varargs...) + ret0, _ := ret[0].(*ecs.StartTaskOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartTaskWithContext indicates an expected call of StartTaskWithContext. +func (mr *MockECSAPIMockRecorder) StartTaskWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartTaskWithContext", reflect.TypeOf((*MockECSAPI)(nil).StartTaskWithContext), varargs...) +} + +// StopTask mocks base method. +func (m *MockECSAPI) StopTask(arg0 *ecs.StopTaskInput) (*ecs.StopTaskOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopTask", arg0) + ret0, _ := ret[0].(*ecs.StopTaskOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopTask indicates an expected call of StopTask. +func (mr *MockECSAPIMockRecorder) StopTask(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopTask", reflect.TypeOf((*MockECSAPI)(nil).StopTask), arg0) +} + +// StopTaskRequest mocks base method. +func (m *MockECSAPI) StopTaskRequest(arg0 *ecs.StopTaskInput) (*request.Request, *ecs.StopTaskOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopTaskRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.StopTaskOutput) + return ret0, ret1 +} + +// StopTaskRequest indicates an expected call of StopTaskRequest. +func (mr *MockECSAPIMockRecorder) StopTaskRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopTaskRequest", reflect.TypeOf((*MockECSAPI)(nil).StopTaskRequest), arg0) +} + +// StopTaskWithContext mocks base method. +func (m *MockECSAPI) StopTaskWithContext(arg0 aws.Context, arg1 *ecs.StopTaskInput, arg2 ...request.Option) (*ecs.StopTaskOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StopTaskWithContext", varargs...) + ret0, _ := ret[0].(*ecs.StopTaskOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopTaskWithContext indicates an expected call of StopTaskWithContext. +func (mr *MockECSAPIMockRecorder) StopTaskWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopTaskWithContext", reflect.TypeOf((*MockECSAPI)(nil).StopTaskWithContext), varargs...) +} + +// SubmitAttachmentStateChanges mocks base method. +func (m *MockECSAPI) SubmitAttachmentStateChanges(arg0 *ecs.SubmitAttachmentStateChangesInput) (*ecs.SubmitAttachmentStateChangesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SubmitAttachmentStateChanges", arg0) + ret0, _ := ret[0].(*ecs.SubmitAttachmentStateChangesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SubmitAttachmentStateChanges indicates an expected call of SubmitAttachmentStateChanges. +func (mr *MockECSAPIMockRecorder) SubmitAttachmentStateChanges(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubmitAttachmentStateChanges", reflect.TypeOf((*MockECSAPI)(nil).SubmitAttachmentStateChanges), arg0) +} + +// SubmitAttachmentStateChangesRequest mocks base method. +func (m *MockECSAPI) SubmitAttachmentStateChangesRequest(arg0 *ecs.SubmitAttachmentStateChangesInput) (*request.Request, *ecs.SubmitAttachmentStateChangesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SubmitAttachmentStateChangesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.SubmitAttachmentStateChangesOutput) + return ret0, ret1 +} + +// SubmitAttachmentStateChangesRequest indicates an expected call of SubmitAttachmentStateChangesRequest. +func (mr *MockECSAPIMockRecorder) SubmitAttachmentStateChangesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubmitAttachmentStateChangesRequest", reflect.TypeOf((*MockECSAPI)(nil).SubmitAttachmentStateChangesRequest), arg0) +} + +// SubmitAttachmentStateChangesWithContext mocks base method. +func (m *MockECSAPI) SubmitAttachmentStateChangesWithContext(arg0 aws.Context, arg1 *ecs.SubmitAttachmentStateChangesInput, arg2 ...request.Option) (*ecs.SubmitAttachmentStateChangesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SubmitAttachmentStateChangesWithContext", varargs...) + ret0, _ := ret[0].(*ecs.SubmitAttachmentStateChangesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SubmitAttachmentStateChangesWithContext indicates an expected call of SubmitAttachmentStateChangesWithContext. +func (mr *MockECSAPIMockRecorder) SubmitAttachmentStateChangesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubmitAttachmentStateChangesWithContext", reflect.TypeOf((*MockECSAPI)(nil).SubmitAttachmentStateChangesWithContext), varargs...) +} + +// SubmitContainerStateChange mocks base method. +func (m *MockECSAPI) SubmitContainerStateChange(arg0 *ecs.SubmitContainerStateChangeInput) (*ecs.SubmitContainerStateChangeOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SubmitContainerStateChange", arg0) + ret0, _ := ret[0].(*ecs.SubmitContainerStateChangeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SubmitContainerStateChange indicates an expected call of SubmitContainerStateChange. +func (mr *MockECSAPIMockRecorder) SubmitContainerStateChange(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubmitContainerStateChange", reflect.TypeOf((*MockECSAPI)(nil).SubmitContainerStateChange), arg0) +} + +// SubmitContainerStateChangeRequest mocks base method. +func (m *MockECSAPI) SubmitContainerStateChangeRequest(arg0 *ecs.SubmitContainerStateChangeInput) (*request.Request, *ecs.SubmitContainerStateChangeOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SubmitContainerStateChangeRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.SubmitContainerStateChangeOutput) + return ret0, ret1 +} + +// SubmitContainerStateChangeRequest indicates an expected call of SubmitContainerStateChangeRequest. +func (mr *MockECSAPIMockRecorder) SubmitContainerStateChangeRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubmitContainerStateChangeRequest", reflect.TypeOf((*MockECSAPI)(nil).SubmitContainerStateChangeRequest), arg0) +} + +// SubmitContainerStateChangeWithContext mocks base method. +func (m *MockECSAPI) SubmitContainerStateChangeWithContext(arg0 aws.Context, arg1 *ecs.SubmitContainerStateChangeInput, arg2 ...request.Option) (*ecs.SubmitContainerStateChangeOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SubmitContainerStateChangeWithContext", varargs...) + ret0, _ := ret[0].(*ecs.SubmitContainerStateChangeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SubmitContainerStateChangeWithContext indicates an expected call of SubmitContainerStateChangeWithContext. +func (mr *MockECSAPIMockRecorder) SubmitContainerStateChangeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubmitContainerStateChangeWithContext", reflect.TypeOf((*MockECSAPI)(nil).SubmitContainerStateChangeWithContext), varargs...) +} + +// SubmitTaskStateChange mocks base method. +func (m *MockECSAPI) SubmitTaskStateChange(arg0 *ecs.SubmitTaskStateChangeInput) (*ecs.SubmitTaskStateChangeOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SubmitTaskStateChange", arg0) + ret0, _ := ret[0].(*ecs.SubmitTaskStateChangeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SubmitTaskStateChange indicates an expected call of SubmitTaskStateChange. +func (mr *MockECSAPIMockRecorder) SubmitTaskStateChange(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubmitTaskStateChange", reflect.TypeOf((*MockECSAPI)(nil).SubmitTaskStateChange), arg0) +} + +// SubmitTaskStateChangeRequest mocks base method. +func (m *MockECSAPI) SubmitTaskStateChangeRequest(arg0 *ecs.SubmitTaskStateChangeInput) (*request.Request, *ecs.SubmitTaskStateChangeOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SubmitTaskStateChangeRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.SubmitTaskStateChangeOutput) + return ret0, ret1 +} + +// SubmitTaskStateChangeRequest indicates an expected call of SubmitTaskStateChangeRequest. +func (mr *MockECSAPIMockRecorder) SubmitTaskStateChangeRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubmitTaskStateChangeRequest", reflect.TypeOf((*MockECSAPI)(nil).SubmitTaskStateChangeRequest), arg0) +} + +// SubmitTaskStateChangeWithContext mocks base method. +func (m *MockECSAPI) SubmitTaskStateChangeWithContext(arg0 aws.Context, arg1 *ecs.SubmitTaskStateChangeInput, arg2 ...request.Option) (*ecs.SubmitTaskStateChangeOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SubmitTaskStateChangeWithContext", varargs...) + ret0, _ := ret[0].(*ecs.SubmitTaskStateChangeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SubmitTaskStateChangeWithContext indicates an expected call of SubmitTaskStateChangeWithContext. +func (mr *MockECSAPIMockRecorder) SubmitTaskStateChangeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubmitTaskStateChangeWithContext", reflect.TypeOf((*MockECSAPI)(nil).SubmitTaskStateChangeWithContext), varargs...) +} + +// TagResource mocks base method. +func (m *MockECSAPI) TagResource(arg0 *ecs.TagResourceInput) (*ecs.TagResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagResource", arg0) + ret0, _ := ret[0].(*ecs.TagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagResource indicates an expected call of TagResource. +func (mr *MockECSAPIMockRecorder) TagResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagResource", reflect.TypeOf((*MockECSAPI)(nil).TagResource), arg0) +} + +// TagResourceRequest mocks base method. +func (m *MockECSAPI) TagResourceRequest(arg0 *ecs.TagResourceInput) (*request.Request, *ecs.TagResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.TagResourceOutput) + return ret0, ret1 +} + +// TagResourceRequest indicates an expected call of TagResourceRequest. +func (mr *MockECSAPIMockRecorder) TagResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagResourceRequest", reflect.TypeOf((*MockECSAPI)(nil).TagResourceRequest), arg0) +} + +// TagResourceWithContext mocks base method. +func (m *MockECSAPI) TagResourceWithContext(arg0 aws.Context, arg1 *ecs.TagResourceInput, arg2 ...request.Option) (*ecs.TagResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "TagResourceWithContext", varargs...) + ret0, _ := ret[0].(*ecs.TagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagResourceWithContext indicates an expected call of TagResourceWithContext. +func (mr *MockECSAPIMockRecorder) TagResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagResourceWithContext", reflect.TypeOf((*MockECSAPI)(nil).TagResourceWithContext), varargs...) +} + +// UntagResource mocks base method. +func (m *MockECSAPI) UntagResource(arg0 *ecs.UntagResourceInput) (*ecs.UntagResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagResource", arg0) + ret0, _ := ret[0].(*ecs.UntagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagResource indicates an expected call of UntagResource. +func (mr *MockECSAPIMockRecorder) UntagResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagResource", reflect.TypeOf((*MockECSAPI)(nil).UntagResource), arg0) +} + +// UntagResourceRequest mocks base method. +func (m *MockECSAPI) UntagResourceRequest(arg0 *ecs.UntagResourceInput) (*request.Request, *ecs.UntagResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.UntagResourceOutput) + return ret0, ret1 +} + +// UntagResourceRequest indicates an expected call of UntagResourceRequest. +func (mr *MockECSAPIMockRecorder) UntagResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagResourceRequest", reflect.TypeOf((*MockECSAPI)(nil).UntagResourceRequest), arg0) +} + +// UntagResourceWithContext mocks base method. +func (m *MockECSAPI) UntagResourceWithContext(arg0 aws.Context, arg1 *ecs.UntagResourceInput, arg2 ...request.Option) (*ecs.UntagResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UntagResourceWithContext", varargs...) + ret0, _ := ret[0].(*ecs.UntagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagResourceWithContext indicates an expected call of UntagResourceWithContext. +func (mr *MockECSAPIMockRecorder) UntagResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagResourceWithContext", reflect.TypeOf((*MockECSAPI)(nil).UntagResourceWithContext), varargs...) +} + +// UpdateCapacityProvider mocks base method. +func (m *MockECSAPI) UpdateCapacityProvider(arg0 *ecs.UpdateCapacityProviderInput) (*ecs.UpdateCapacityProviderOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateCapacityProvider", arg0) + ret0, _ := ret[0].(*ecs.UpdateCapacityProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateCapacityProvider indicates an expected call of UpdateCapacityProvider. +func (mr *MockECSAPIMockRecorder) UpdateCapacityProvider(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateCapacityProvider", reflect.TypeOf((*MockECSAPI)(nil).UpdateCapacityProvider), arg0) +} + +// UpdateCapacityProviderRequest mocks base method. +func (m *MockECSAPI) UpdateCapacityProviderRequest(arg0 *ecs.UpdateCapacityProviderInput) (*request.Request, *ecs.UpdateCapacityProviderOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateCapacityProviderRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.UpdateCapacityProviderOutput) + return ret0, ret1 +} + +// UpdateCapacityProviderRequest indicates an expected call of UpdateCapacityProviderRequest. +func (mr *MockECSAPIMockRecorder) UpdateCapacityProviderRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateCapacityProviderRequest", reflect.TypeOf((*MockECSAPI)(nil).UpdateCapacityProviderRequest), arg0) +} + +// UpdateCapacityProviderWithContext mocks base method. +func (m *MockECSAPI) UpdateCapacityProviderWithContext(arg0 aws.Context, arg1 *ecs.UpdateCapacityProviderInput, arg2 ...request.Option) (*ecs.UpdateCapacityProviderOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateCapacityProviderWithContext", varargs...) + ret0, _ := ret[0].(*ecs.UpdateCapacityProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateCapacityProviderWithContext indicates an expected call of UpdateCapacityProviderWithContext. +func (mr *MockECSAPIMockRecorder) UpdateCapacityProviderWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateCapacityProviderWithContext", reflect.TypeOf((*MockECSAPI)(nil).UpdateCapacityProviderWithContext), varargs...) +} + +// UpdateCluster mocks base method. +func (m *MockECSAPI) UpdateCluster(arg0 *ecs.UpdateClusterInput) (*ecs.UpdateClusterOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateCluster", arg0) + ret0, _ := ret[0].(*ecs.UpdateClusterOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateCluster indicates an expected call of UpdateCluster. +func (mr *MockECSAPIMockRecorder) UpdateCluster(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateCluster", reflect.TypeOf((*MockECSAPI)(nil).UpdateCluster), arg0) +} + +// UpdateClusterRequest mocks base method. +func (m *MockECSAPI) UpdateClusterRequest(arg0 *ecs.UpdateClusterInput) (*request.Request, *ecs.UpdateClusterOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateClusterRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.UpdateClusterOutput) + return ret0, ret1 +} + +// UpdateClusterRequest indicates an expected call of UpdateClusterRequest. +func (mr *MockECSAPIMockRecorder) UpdateClusterRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateClusterRequest", reflect.TypeOf((*MockECSAPI)(nil).UpdateClusterRequest), arg0) +} + +// UpdateClusterSettings mocks base method. +func (m *MockECSAPI) UpdateClusterSettings(arg0 *ecs.UpdateClusterSettingsInput) (*ecs.UpdateClusterSettingsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateClusterSettings", arg0) + ret0, _ := ret[0].(*ecs.UpdateClusterSettingsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateClusterSettings indicates an expected call of UpdateClusterSettings. +func (mr *MockECSAPIMockRecorder) UpdateClusterSettings(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateClusterSettings", reflect.TypeOf((*MockECSAPI)(nil).UpdateClusterSettings), arg0) +} + +// UpdateClusterSettingsRequest mocks base method. +func (m *MockECSAPI) UpdateClusterSettingsRequest(arg0 *ecs.UpdateClusterSettingsInput) (*request.Request, *ecs.UpdateClusterSettingsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateClusterSettingsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.UpdateClusterSettingsOutput) + return ret0, ret1 +} + +// UpdateClusterSettingsRequest indicates an expected call of UpdateClusterSettingsRequest. +func (mr *MockECSAPIMockRecorder) UpdateClusterSettingsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateClusterSettingsRequest", reflect.TypeOf((*MockECSAPI)(nil).UpdateClusterSettingsRequest), arg0) +} + +// UpdateClusterSettingsWithContext mocks base method. +func (m *MockECSAPI) UpdateClusterSettingsWithContext(arg0 aws.Context, arg1 *ecs.UpdateClusterSettingsInput, arg2 ...request.Option) (*ecs.UpdateClusterSettingsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateClusterSettingsWithContext", varargs...) + ret0, _ := ret[0].(*ecs.UpdateClusterSettingsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateClusterSettingsWithContext indicates an expected call of UpdateClusterSettingsWithContext. +func (mr *MockECSAPIMockRecorder) UpdateClusterSettingsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateClusterSettingsWithContext", reflect.TypeOf((*MockECSAPI)(nil).UpdateClusterSettingsWithContext), varargs...) +} + +// UpdateClusterWithContext mocks base method. +func (m *MockECSAPI) UpdateClusterWithContext(arg0 aws.Context, arg1 *ecs.UpdateClusterInput, arg2 ...request.Option) (*ecs.UpdateClusterOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateClusterWithContext", varargs...) + ret0, _ := ret[0].(*ecs.UpdateClusterOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateClusterWithContext indicates an expected call of UpdateClusterWithContext. +func (mr *MockECSAPIMockRecorder) UpdateClusterWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateClusterWithContext", reflect.TypeOf((*MockECSAPI)(nil).UpdateClusterWithContext), varargs...) +} + +// UpdateContainerAgent mocks base method. +func (m *MockECSAPI) UpdateContainerAgent(arg0 *ecs.UpdateContainerAgentInput) (*ecs.UpdateContainerAgentOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateContainerAgent", arg0) + ret0, _ := ret[0].(*ecs.UpdateContainerAgentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateContainerAgent indicates an expected call of UpdateContainerAgent. +func (mr *MockECSAPIMockRecorder) UpdateContainerAgent(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateContainerAgent", reflect.TypeOf((*MockECSAPI)(nil).UpdateContainerAgent), arg0) +} + +// UpdateContainerAgentRequest mocks base method. +func (m *MockECSAPI) UpdateContainerAgentRequest(arg0 *ecs.UpdateContainerAgentInput) (*request.Request, *ecs.UpdateContainerAgentOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateContainerAgentRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.UpdateContainerAgentOutput) + return ret0, ret1 +} + +// UpdateContainerAgentRequest indicates an expected call of UpdateContainerAgentRequest. +func (mr *MockECSAPIMockRecorder) UpdateContainerAgentRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateContainerAgentRequest", reflect.TypeOf((*MockECSAPI)(nil).UpdateContainerAgentRequest), arg0) +} + +// UpdateContainerAgentWithContext mocks base method. +func (m *MockECSAPI) UpdateContainerAgentWithContext(arg0 aws.Context, arg1 *ecs.UpdateContainerAgentInput, arg2 ...request.Option) (*ecs.UpdateContainerAgentOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateContainerAgentWithContext", varargs...) + ret0, _ := ret[0].(*ecs.UpdateContainerAgentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateContainerAgentWithContext indicates an expected call of UpdateContainerAgentWithContext. +func (mr *MockECSAPIMockRecorder) UpdateContainerAgentWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateContainerAgentWithContext", reflect.TypeOf((*MockECSAPI)(nil).UpdateContainerAgentWithContext), varargs...) +} + +// UpdateContainerInstancesState mocks base method. +func (m *MockECSAPI) UpdateContainerInstancesState(arg0 *ecs.UpdateContainerInstancesStateInput) (*ecs.UpdateContainerInstancesStateOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateContainerInstancesState", arg0) + ret0, _ := ret[0].(*ecs.UpdateContainerInstancesStateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateContainerInstancesState indicates an expected call of UpdateContainerInstancesState. +func (mr *MockECSAPIMockRecorder) UpdateContainerInstancesState(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateContainerInstancesState", reflect.TypeOf((*MockECSAPI)(nil).UpdateContainerInstancesState), arg0) +} + +// UpdateContainerInstancesStateRequest mocks base method. +func (m *MockECSAPI) UpdateContainerInstancesStateRequest(arg0 *ecs.UpdateContainerInstancesStateInput) (*request.Request, *ecs.UpdateContainerInstancesStateOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateContainerInstancesStateRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.UpdateContainerInstancesStateOutput) + return ret0, ret1 +} + +// UpdateContainerInstancesStateRequest indicates an expected call of UpdateContainerInstancesStateRequest. +func (mr *MockECSAPIMockRecorder) UpdateContainerInstancesStateRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateContainerInstancesStateRequest", reflect.TypeOf((*MockECSAPI)(nil).UpdateContainerInstancesStateRequest), arg0) +} + +// UpdateContainerInstancesStateWithContext mocks base method. +func (m *MockECSAPI) UpdateContainerInstancesStateWithContext(arg0 aws.Context, arg1 *ecs.UpdateContainerInstancesStateInput, arg2 ...request.Option) (*ecs.UpdateContainerInstancesStateOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateContainerInstancesStateWithContext", varargs...) + ret0, _ := ret[0].(*ecs.UpdateContainerInstancesStateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateContainerInstancesStateWithContext indicates an expected call of UpdateContainerInstancesStateWithContext. +func (mr *MockECSAPIMockRecorder) UpdateContainerInstancesStateWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateContainerInstancesStateWithContext", reflect.TypeOf((*MockECSAPI)(nil).UpdateContainerInstancesStateWithContext), varargs...) +} + +// UpdateService mocks base method. +func (m *MockECSAPI) UpdateService(arg0 *ecs.UpdateServiceInput) (*ecs.UpdateServiceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateService", arg0) + ret0, _ := ret[0].(*ecs.UpdateServiceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateService indicates an expected call of UpdateService. +func (mr *MockECSAPIMockRecorder) UpdateService(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateService", reflect.TypeOf((*MockECSAPI)(nil).UpdateService), arg0) +} + +// UpdateServicePrimaryTaskSet mocks base method. +func (m *MockECSAPI) UpdateServicePrimaryTaskSet(arg0 *ecs.UpdateServicePrimaryTaskSetInput) (*ecs.UpdateServicePrimaryTaskSetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateServicePrimaryTaskSet", arg0) + ret0, _ := ret[0].(*ecs.UpdateServicePrimaryTaskSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateServicePrimaryTaskSet indicates an expected call of UpdateServicePrimaryTaskSet. +func (mr *MockECSAPIMockRecorder) UpdateServicePrimaryTaskSet(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateServicePrimaryTaskSet", reflect.TypeOf((*MockECSAPI)(nil).UpdateServicePrimaryTaskSet), arg0) +} + +// UpdateServicePrimaryTaskSetRequest mocks base method. +func (m *MockECSAPI) UpdateServicePrimaryTaskSetRequest(arg0 *ecs.UpdateServicePrimaryTaskSetInput) (*request.Request, *ecs.UpdateServicePrimaryTaskSetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateServicePrimaryTaskSetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.UpdateServicePrimaryTaskSetOutput) + return ret0, ret1 +} + +// UpdateServicePrimaryTaskSetRequest indicates an expected call of UpdateServicePrimaryTaskSetRequest. +func (mr *MockECSAPIMockRecorder) UpdateServicePrimaryTaskSetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateServicePrimaryTaskSetRequest", reflect.TypeOf((*MockECSAPI)(nil).UpdateServicePrimaryTaskSetRequest), arg0) +} + +// UpdateServicePrimaryTaskSetWithContext mocks base method. +func (m *MockECSAPI) UpdateServicePrimaryTaskSetWithContext(arg0 aws.Context, arg1 *ecs.UpdateServicePrimaryTaskSetInput, arg2 ...request.Option) (*ecs.UpdateServicePrimaryTaskSetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateServicePrimaryTaskSetWithContext", varargs...) + ret0, _ := ret[0].(*ecs.UpdateServicePrimaryTaskSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateServicePrimaryTaskSetWithContext indicates an expected call of UpdateServicePrimaryTaskSetWithContext. +func (mr *MockECSAPIMockRecorder) UpdateServicePrimaryTaskSetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateServicePrimaryTaskSetWithContext", reflect.TypeOf((*MockECSAPI)(nil).UpdateServicePrimaryTaskSetWithContext), varargs...) +} + +// UpdateServiceRequest mocks base method. +func (m *MockECSAPI) UpdateServiceRequest(arg0 *ecs.UpdateServiceInput) (*request.Request, *ecs.UpdateServiceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateServiceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.UpdateServiceOutput) + return ret0, ret1 +} + +// UpdateServiceRequest indicates an expected call of UpdateServiceRequest. +func (mr *MockECSAPIMockRecorder) UpdateServiceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateServiceRequest", reflect.TypeOf((*MockECSAPI)(nil).UpdateServiceRequest), arg0) +} + +// UpdateServiceWithContext mocks base method. +func (m *MockECSAPI) UpdateServiceWithContext(arg0 aws.Context, arg1 *ecs.UpdateServiceInput, arg2 ...request.Option) (*ecs.UpdateServiceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateServiceWithContext", varargs...) + ret0, _ := ret[0].(*ecs.UpdateServiceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateServiceWithContext indicates an expected call of UpdateServiceWithContext. +func (mr *MockECSAPIMockRecorder) UpdateServiceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateServiceWithContext", reflect.TypeOf((*MockECSAPI)(nil).UpdateServiceWithContext), varargs...) +} + +// UpdateTaskProtection mocks base method. +func (m *MockECSAPI) UpdateTaskProtection(arg0 *ecs.UpdateTaskProtectionInput) (*ecs.UpdateTaskProtectionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTaskProtection", arg0) + ret0, _ := ret[0].(*ecs.UpdateTaskProtectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTaskProtection indicates an expected call of UpdateTaskProtection. +func (mr *MockECSAPIMockRecorder) UpdateTaskProtection(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTaskProtection", reflect.TypeOf((*MockECSAPI)(nil).UpdateTaskProtection), arg0) +} + +// UpdateTaskProtectionRequest mocks base method. +func (m *MockECSAPI) UpdateTaskProtectionRequest(arg0 *ecs.UpdateTaskProtectionInput) (*request.Request, *ecs.UpdateTaskProtectionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTaskProtectionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.UpdateTaskProtectionOutput) + return ret0, ret1 +} + +// UpdateTaskProtectionRequest indicates an expected call of UpdateTaskProtectionRequest. +func (mr *MockECSAPIMockRecorder) UpdateTaskProtectionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTaskProtectionRequest", reflect.TypeOf((*MockECSAPI)(nil).UpdateTaskProtectionRequest), arg0) +} + +// UpdateTaskProtectionWithContext mocks base method. +func (m *MockECSAPI) UpdateTaskProtectionWithContext(arg0 aws.Context, arg1 *ecs.UpdateTaskProtectionInput, arg2 ...request.Option) (*ecs.UpdateTaskProtectionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateTaskProtectionWithContext", varargs...) + ret0, _ := ret[0].(*ecs.UpdateTaskProtectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTaskProtectionWithContext indicates an expected call of UpdateTaskProtectionWithContext. +func (mr *MockECSAPIMockRecorder) UpdateTaskProtectionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTaskProtectionWithContext", reflect.TypeOf((*MockECSAPI)(nil).UpdateTaskProtectionWithContext), varargs...) +} + +// UpdateTaskSet mocks base method. +func (m *MockECSAPI) UpdateTaskSet(arg0 *ecs.UpdateTaskSetInput) (*ecs.UpdateTaskSetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTaskSet", arg0) + ret0, _ := ret[0].(*ecs.UpdateTaskSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTaskSet indicates an expected call of UpdateTaskSet. +func (mr *MockECSAPIMockRecorder) UpdateTaskSet(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTaskSet", reflect.TypeOf((*MockECSAPI)(nil).UpdateTaskSet), arg0) +} + +// UpdateTaskSetRequest mocks base method. +func (m *MockECSAPI) UpdateTaskSetRequest(arg0 *ecs.UpdateTaskSetInput) (*request.Request, *ecs.UpdateTaskSetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTaskSetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*ecs.UpdateTaskSetOutput) + return ret0, ret1 +} + +// UpdateTaskSetRequest indicates an expected call of UpdateTaskSetRequest. +func (mr *MockECSAPIMockRecorder) UpdateTaskSetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTaskSetRequest", reflect.TypeOf((*MockECSAPI)(nil).UpdateTaskSetRequest), arg0) +} + +// UpdateTaskSetWithContext mocks base method. +func (m *MockECSAPI) UpdateTaskSetWithContext(arg0 aws.Context, arg1 *ecs.UpdateTaskSetInput, arg2 ...request.Option) (*ecs.UpdateTaskSetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateTaskSetWithContext", varargs...) + ret0, _ := ret[0].(*ecs.UpdateTaskSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTaskSetWithContext indicates an expected call of UpdateTaskSetWithContext. +func (mr *MockECSAPIMockRecorder) UpdateTaskSetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTaskSetWithContext", reflect.TypeOf((*MockECSAPI)(nil).UpdateTaskSetWithContext), varargs...) +} + +// WaitUntilServicesInactive mocks base method. +func (m *MockECSAPI) WaitUntilServicesInactive(arg0 *ecs.DescribeServicesInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilServicesInactive", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilServicesInactive indicates an expected call of WaitUntilServicesInactive. +func (mr *MockECSAPIMockRecorder) WaitUntilServicesInactive(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilServicesInactive", reflect.TypeOf((*MockECSAPI)(nil).WaitUntilServicesInactive), arg0) +} + +// WaitUntilServicesInactiveWithContext mocks base method. +func (m *MockECSAPI) WaitUntilServicesInactiveWithContext(arg0 aws.Context, arg1 *ecs.DescribeServicesInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilServicesInactiveWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilServicesInactiveWithContext indicates an expected call of WaitUntilServicesInactiveWithContext. +func (mr *MockECSAPIMockRecorder) WaitUntilServicesInactiveWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilServicesInactiveWithContext", reflect.TypeOf((*MockECSAPI)(nil).WaitUntilServicesInactiveWithContext), varargs...) +} + +// WaitUntilServicesStable mocks base method. +func (m *MockECSAPI) WaitUntilServicesStable(arg0 *ecs.DescribeServicesInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilServicesStable", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilServicesStable indicates an expected call of WaitUntilServicesStable. +func (mr *MockECSAPIMockRecorder) WaitUntilServicesStable(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilServicesStable", reflect.TypeOf((*MockECSAPI)(nil).WaitUntilServicesStable), arg0) +} + +// WaitUntilServicesStableWithContext mocks base method. +func (m *MockECSAPI) WaitUntilServicesStableWithContext(arg0 aws.Context, arg1 *ecs.DescribeServicesInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilServicesStableWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilServicesStableWithContext indicates an expected call of WaitUntilServicesStableWithContext. +func (mr *MockECSAPIMockRecorder) WaitUntilServicesStableWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilServicesStableWithContext", reflect.TypeOf((*MockECSAPI)(nil).WaitUntilServicesStableWithContext), varargs...) +} + +// WaitUntilTasksRunning mocks base method. +func (m *MockECSAPI) WaitUntilTasksRunning(arg0 *ecs.DescribeTasksInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilTasksRunning", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilTasksRunning indicates an expected call of WaitUntilTasksRunning. +func (mr *MockECSAPIMockRecorder) WaitUntilTasksRunning(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilTasksRunning", reflect.TypeOf((*MockECSAPI)(nil).WaitUntilTasksRunning), arg0) +} + +// WaitUntilTasksRunningWithContext mocks base method. +func (m *MockECSAPI) WaitUntilTasksRunningWithContext(arg0 aws.Context, arg1 *ecs.DescribeTasksInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilTasksRunningWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilTasksRunningWithContext indicates an expected call of WaitUntilTasksRunningWithContext. +func (mr *MockECSAPIMockRecorder) WaitUntilTasksRunningWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilTasksRunningWithContext", reflect.TypeOf((*MockECSAPI)(nil).WaitUntilTasksRunningWithContext), varargs...) +} + +// WaitUntilTasksStopped mocks base method. +func (m *MockECSAPI) WaitUntilTasksStopped(arg0 *ecs.DescribeTasksInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilTasksStopped", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilTasksStopped indicates an expected call of WaitUntilTasksStopped. +func (mr *MockECSAPIMockRecorder) WaitUntilTasksStopped(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilTasksStopped", reflect.TypeOf((*MockECSAPI)(nil).WaitUntilTasksStopped), arg0) +} + +// WaitUntilTasksStoppedWithContext mocks base method. +func (m *MockECSAPI) WaitUntilTasksStoppedWithContext(arg0 aws.Context, arg1 *ecs.DescribeTasksInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilTasksStoppedWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilTasksStoppedWithContext indicates an expected call of WaitUntilTasksStoppedWithContext. +func (mr *MockECSAPIMockRecorder) WaitUntilTasksStoppedWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilTasksStoppedWithContext", reflect.TypeOf((*MockECSAPI)(nil).WaitUntilTasksStoppedWithContext), varargs...) +} diff --git a/resources/ecs-clusters.go b/resources/ecs-clusters.go index 8e197dbe..e9b62d1b 100644 --- a/resources/ecs-clusters.go +++ b/resources/ecs-clusters.go @@ -2,6 +2,7 @@ package resources import ( "context" + "github.com/aws/aws-sdk-go/service/ecs/ecsiface" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ecs" @@ -22,12 +23,20 @@ func init() { }) } -type ECSClusterLister struct{} +type ECSClusterLister struct { + mockSvc ecsiface.ECSAPI +} func (l *ECSClusterLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) - svc := ecs.New(opts.Session) + var svc ecsiface.ECSAPI + if l.mockSvc != nil { + svc = l.mockSvc + } else { + svc = ecs.New(opts.Session) + } + resources := make([]resource.Resource, 0) params := &ecs.ListClustersInput{ @@ -58,7 +67,7 @@ func (l *ECSClusterLister) List(_ context.Context, o interface{}) ([]resource.Re } type ECSCluster struct { - svc *ecs.ECS + svc ecsiface.ECSAPI ARN *string } diff --git a/resources/ecs-clusters_mock_test.go b/resources/ecs-clusters_mock_test.go new file mode 100644 index 00000000..2522f35e --- /dev/null +++ b/resources/ecs-clusters_mock_test.go @@ -0,0 +1,58 @@ +package resources + +import ( + "context" + "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/gotidy/ptr" + "testing" + + "github.com/golang/mock/gomock" + "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/ecs" + + "github.com/ekristen/aws-nuke/mocks/mock_ecsiface" +) + +func Test_Mock_ECSCluster_List(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockECS := mock_ecsiface.NewMockECSAPI(ctrl) + + ecsClusterLister := ECSClusterLister{ + mockSvc: mockECS, + } + + mockECS.EXPECT().ListClusters(gomock.Any()).Return(&ecs.ListClustersOutput{ + ClusterArns: []*string{ + aws.String("foobar"), + }, + }, nil) + + resources, err := ecsClusterLister.List(context.TODO(), &nuke.ListerOpts{}) + a.Nil(err) + a.Len(resources, 1) +} + +func Test_Mock_ECSCluster_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockECS := mock_ecsiface.NewMockECSAPI(ctrl) + + iamUser := ECSCluster{ + svc: mockECS, + ARN: ptr.String("foobar"), + } + + mockECS.EXPECT().DeleteCluster(gomock.Eq(&ecs.DeleteClusterInput{ + Cluster: aws.String("foobar"), + })).Return(&ecs.DeleteClusterOutput{}, nil) + + err := iamUser.Remove(context.TODO()) + a.Nil(err) +} diff --git a/resources/ecs-mock_test.go b/resources/ecs-mock_test.go new file mode 100644 index 00000000..65d903e5 --- /dev/null +++ b/resources/ecs-mock_test.go @@ -0,0 +1,2 @@ +//go:generate ../mocks/generate_mocks.sh ecs ecsiface +package resources From b89183b2d996645fe5973311dfeec92da4025656 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 13 Mar 2024 21:42:23 -0600 Subject: [PATCH 271/617] feat(ecs-clusters): add tags, increase mock tests coverage --- resources/ecs-clusters.go | 40 ++++++++++++++++++++++++----- resources/ecs-clusters_mock_test.go | 34 +++++++++++++++++++++--- 2 files changed, 63 insertions(+), 11 deletions(-) diff --git a/resources/ecs-clusters.go b/resources/ecs-clusters.go index e9b62d1b..417db445 100644 --- a/resources/ecs-clusters.go +++ b/resources/ecs-clusters.go @@ -2,13 +2,17 @@ package resources import ( "context" - "github.com/aws/aws-sdk-go/service/ecs/ecsiface" + + "github.com/sirupsen/logrus" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ecs" + "github.com/aws/aws-sdk-go/service/ecs/ecsiface" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/slices" + "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/pkg/nuke" ) @@ -49,11 +53,21 @@ func (l *ECSClusterLister) List(_ context.Context, o interface{}) ([]resource.Re return nil, err } - for _, clusterArn := range output.ClusterArns { - resources = append(resources, &ECSCluster{ - svc: svc, - ARN: clusterArn, + for _, clusterChunk := range slices.Chunk(output.ClusterArns, 100) { + clusters, err := svc.DescribeClusters(&ecs.DescribeClustersInput{ + Clusters: clusterChunk, }) + if err != nil { + logrus.WithError(err).Error("unable to retrieve clusters") + } + + for _, cluster := range clusters.Clusters { + resources = append(resources, &ECSCluster{ + svc: svc, + ARN: cluster.ClusterArn, + tags: cluster.Tags, + }) + } } if output.NextToken == nil { @@ -67,8 +81,9 @@ func (l *ECSClusterLister) List(_ context.Context, o interface{}) ([]resource.Re } type ECSCluster struct { - svc ecsiface.ECSAPI - ARN *string + svc ecsiface.ECSAPI + ARN *string + tags []*ecs.Tag } func (f *ECSCluster) Remove(_ context.Context) error { @@ -82,3 +97,14 @@ func (f *ECSCluster) Remove(_ context.Context) error { func (f *ECSCluster) String() string { return *f.ARN } + +func (f *ECSCluster) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("ARN", f.ARN) + + for _, tag := range f.tags { + properties.SetTag(tag.Key, tag.Value) + } + + return properties +} diff --git a/resources/ecs-clusters_mock_test.go b/resources/ecs-clusters_mock_test.go index 2522f35e..65b1d5eb 100644 --- a/resources/ecs-clusters_mock_test.go +++ b/resources/ecs-clusters_mock_test.go @@ -2,17 +2,18 @@ package resources import ( "context" - "github.com/ekristen/aws-nuke/pkg/nuke" - "github.com/gotidy/ptr" "testing" "github.com/golang/mock/gomock" + "github.com/gotidy/ptr" "github.com/stretchr/testify/assert" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ecs" "github.com/ekristen/aws-nuke/mocks/mock_ecsiface" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) func Test_Mock_ECSCluster_List(t *testing.T) { @@ -32,9 +33,32 @@ func Test_Mock_ECSCluster_List(t *testing.T) { }, }, nil) + mockECS.EXPECT().DescribeClusters(gomock.Any()).Return(&ecs.DescribeClustersOutput{ + Clusters: []*ecs.Cluster{ + { + ClusterArn: aws.String("foobar"), + Tags: []*ecs.Tag{ + { + Key: aws.String("Name"), + Value: aws.String("foobar"), + }, + { + Key: aws.String("aws-nuke"), + Value: aws.String("test"), + }, + }, + }, + }, + }, nil) + resources, err := ecsClusterLister.List(context.TODO(), &nuke.ListerOpts{}) a.Nil(err) a.Len(resources, 1) + + ecsCluster := resources[0].(*ECSCluster) + a.Equal("foobar", ecsCluster.String()) + a.Equal("foobar", ecsCluster.Properties().Get("tag:Name")) + a.Equal("test", ecsCluster.Properties().Get("tag:aws-nuke")) } func Test_Mock_ECSCluster_Remove(t *testing.T) { @@ -44,15 +68,17 @@ func Test_Mock_ECSCluster_Remove(t *testing.T) { mockECS := mock_ecsiface.NewMockECSAPI(ctrl) - iamUser := ECSCluster{ + ecsCluster := ECSCluster{ svc: mockECS, ARN: ptr.String("foobar"), } + a.Equal("foobar", ecsCluster.String()) + mockECS.EXPECT().DeleteCluster(gomock.Eq(&ecs.DeleteClusterInput{ Cluster: aws.String("foobar"), })).Return(&ecs.DeleteClusterOutput{}, nil) - err := iamUser.Remove(context.TODO()) + err := ecsCluster.Remove(context.TODO()) a.Nil(err) } From 4025d28924654562c1df58a246df0a8333605055 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 13 Mar 2024 21:59:51 -0600 Subject: [PATCH 272/617] feat(sqs-queues): add properties, tags, and mock tests --- mocks/mock_sqsiface/mock.go | 1253 +++++++++++++++++++++++++++++ resources/sqs-queues.go | 41 +- resources/sqs-queues_mock_test.go | 68 ++ resources/sqs_mock_test.go | 4 + 4 files changed, 1363 insertions(+), 3 deletions(-) create mode 100644 mocks/mock_sqsiface/mock.go create mode 100644 resources/sqs-queues_mock_test.go create mode 100644 resources/sqs_mock_test.go diff --git a/mocks/mock_sqsiface/mock.go b/mocks/mock_sqsiface/mock.go new file mode 100644 index 00000000..16bf8e29 --- /dev/null +++ b/mocks/mock_sqsiface/mock.go @@ -0,0 +1,1253 @@ +// Code generated by MockGen. DO NOT EDIT. +// Source: /Users/ekristen/go/pkg/mod/github.com/aws/aws-sdk-go@v1.50.24/service/sqs/sqsiface/interface.go + +// Package mock_sqsiface is a generated GoMock package. +package mock_sqsiface + +import ( + reflect "reflect" + + aws "github.com/aws/aws-sdk-go/aws" + request "github.com/aws/aws-sdk-go/aws/request" + sqs "github.com/aws/aws-sdk-go/service/sqs" + gomock "github.com/golang/mock/gomock" +) + +// MockSQSAPI is a mock of SQSAPI interface. +type MockSQSAPI struct { + ctrl *gomock.Controller + recorder *MockSQSAPIMockRecorder +} + +// MockSQSAPIMockRecorder is the mock recorder for MockSQSAPI. +type MockSQSAPIMockRecorder struct { + mock *MockSQSAPI +} + +// NewMockSQSAPI creates a new mock instance. +func NewMockSQSAPI(ctrl *gomock.Controller) *MockSQSAPI { + mock := &MockSQSAPI{ctrl: ctrl} + mock.recorder = &MockSQSAPIMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockSQSAPI) EXPECT() *MockSQSAPIMockRecorder { + return m.recorder +} + +// AddPermission mocks base method. +func (m *MockSQSAPI) AddPermission(arg0 *sqs.AddPermissionInput) (*sqs.AddPermissionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AddPermission", arg0) + ret0, _ := ret[0].(*sqs.AddPermissionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AddPermission indicates an expected call of AddPermission. +func (mr *MockSQSAPIMockRecorder) AddPermission(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddPermission", reflect.TypeOf((*MockSQSAPI)(nil).AddPermission), arg0) +} + +// AddPermissionRequest mocks base method. +func (m *MockSQSAPI) AddPermissionRequest(arg0 *sqs.AddPermissionInput) (*request.Request, *sqs.AddPermissionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AddPermissionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sqs.AddPermissionOutput) + return ret0, ret1 +} + +// AddPermissionRequest indicates an expected call of AddPermissionRequest. +func (mr *MockSQSAPIMockRecorder) AddPermissionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddPermissionRequest", reflect.TypeOf((*MockSQSAPI)(nil).AddPermissionRequest), arg0) +} + +// AddPermissionWithContext mocks base method. +func (m *MockSQSAPI) AddPermissionWithContext(arg0 aws.Context, arg1 *sqs.AddPermissionInput, arg2 ...request.Option) (*sqs.AddPermissionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AddPermissionWithContext", varargs...) + ret0, _ := ret[0].(*sqs.AddPermissionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AddPermissionWithContext indicates an expected call of AddPermissionWithContext. +func (mr *MockSQSAPIMockRecorder) AddPermissionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddPermissionWithContext", reflect.TypeOf((*MockSQSAPI)(nil).AddPermissionWithContext), varargs...) +} + +// CancelMessageMoveTask mocks base method. +func (m *MockSQSAPI) CancelMessageMoveTask(arg0 *sqs.CancelMessageMoveTaskInput) (*sqs.CancelMessageMoveTaskOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CancelMessageMoveTask", arg0) + ret0, _ := ret[0].(*sqs.CancelMessageMoveTaskOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CancelMessageMoveTask indicates an expected call of CancelMessageMoveTask. +func (mr *MockSQSAPIMockRecorder) CancelMessageMoveTask(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelMessageMoveTask", reflect.TypeOf((*MockSQSAPI)(nil).CancelMessageMoveTask), arg0) +} + +// CancelMessageMoveTaskRequest mocks base method. +func (m *MockSQSAPI) CancelMessageMoveTaskRequest(arg0 *sqs.CancelMessageMoveTaskInput) (*request.Request, *sqs.CancelMessageMoveTaskOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CancelMessageMoveTaskRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sqs.CancelMessageMoveTaskOutput) + return ret0, ret1 +} + +// CancelMessageMoveTaskRequest indicates an expected call of CancelMessageMoveTaskRequest. +func (mr *MockSQSAPIMockRecorder) CancelMessageMoveTaskRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelMessageMoveTaskRequest", reflect.TypeOf((*MockSQSAPI)(nil).CancelMessageMoveTaskRequest), arg0) +} + +// CancelMessageMoveTaskWithContext mocks base method. +func (m *MockSQSAPI) CancelMessageMoveTaskWithContext(arg0 aws.Context, arg1 *sqs.CancelMessageMoveTaskInput, arg2 ...request.Option) (*sqs.CancelMessageMoveTaskOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CancelMessageMoveTaskWithContext", varargs...) + ret0, _ := ret[0].(*sqs.CancelMessageMoveTaskOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CancelMessageMoveTaskWithContext indicates an expected call of CancelMessageMoveTaskWithContext. +func (mr *MockSQSAPIMockRecorder) CancelMessageMoveTaskWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelMessageMoveTaskWithContext", reflect.TypeOf((*MockSQSAPI)(nil).CancelMessageMoveTaskWithContext), varargs...) +} + +// ChangeMessageVisibility mocks base method. +func (m *MockSQSAPI) ChangeMessageVisibility(arg0 *sqs.ChangeMessageVisibilityInput) (*sqs.ChangeMessageVisibilityOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ChangeMessageVisibility", arg0) + ret0, _ := ret[0].(*sqs.ChangeMessageVisibilityOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ChangeMessageVisibility indicates an expected call of ChangeMessageVisibility. +func (mr *MockSQSAPIMockRecorder) ChangeMessageVisibility(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChangeMessageVisibility", reflect.TypeOf((*MockSQSAPI)(nil).ChangeMessageVisibility), arg0) +} + +// ChangeMessageVisibilityBatch mocks base method. +func (m *MockSQSAPI) ChangeMessageVisibilityBatch(arg0 *sqs.ChangeMessageVisibilityBatchInput) (*sqs.ChangeMessageVisibilityBatchOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ChangeMessageVisibilityBatch", arg0) + ret0, _ := ret[0].(*sqs.ChangeMessageVisibilityBatchOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ChangeMessageVisibilityBatch indicates an expected call of ChangeMessageVisibilityBatch. +func (mr *MockSQSAPIMockRecorder) ChangeMessageVisibilityBatch(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChangeMessageVisibilityBatch", reflect.TypeOf((*MockSQSAPI)(nil).ChangeMessageVisibilityBatch), arg0) +} + +// ChangeMessageVisibilityBatchRequest mocks base method. +func (m *MockSQSAPI) ChangeMessageVisibilityBatchRequest(arg0 *sqs.ChangeMessageVisibilityBatchInput) (*request.Request, *sqs.ChangeMessageVisibilityBatchOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ChangeMessageVisibilityBatchRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sqs.ChangeMessageVisibilityBatchOutput) + return ret0, ret1 +} + +// ChangeMessageVisibilityBatchRequest indicates an expected call of ChangeMessageVisibilityBatchRequest. +func (mr *MockSQSAPIMockRecorder) ChangeMessageVisibilityBatchRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChangeMessageVisibilityBatchRequest", reflect.TypeOf((*MockSQSAPI)(nil).ChangeMessageVisibilityBatchRequest), arg0) +} + +// ChangeMessageVisibilityBatchWithContext mocks base method. +func (m *MockSQSAPI) ChangeMessageVisibilityBatchWithContext(arg0 aws.Context, arg1 *sqs.ChangeMessageVisibilityBatchInput, arg2 ...request.Option) (*sqs.ChangeMessageVisibilityBatchOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ChangeMessageVisibilityBatchWithContext", varargs...) + ret0, _ := ret[0].(*sqs.ChangeMessageVisibilityBatchOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ChangeMessageVisibilityBatchWithContext indicates an expected call of ChangeMessageVisibilityBatchWithContext. +func (mr *MockSQSAPIMockRecorder) ChangeMessageVisibilityBatchWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChangeMessageVisibilityBatchWithContext", reflect.TypeOf((*MockSQSAPI)(nil).ChangeMessageVisibilityBatchWithContext), varargs...) +} + +// ChangeMessageVisibilityRequest mocks base method. +func (m *MockSQSAPI) ChangeMessageVisibilityRequest(arg0 *sqs.ChangeMessageVisibilityInput) (*request.Request, *sqs.ChangeMessageVisibilityOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ChangeMessageVisibilityRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sqs.ChangeMessageVisibilityOutput) + return ret0, ret1 +} + +// ChangeMessageVisibilityRequest indicates an expected call of ChangeMessageVisibilityRequest. +func (mr *MockSQSAPIMockRecorder) ChangeMessageVisibilityRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChangeMessageVisibilityRequest", reflect.TypeOf((*MockSQSAPI)(nil).ChangeMessageVisibilityRequest), arg0) +} + +// ChangeMessageVisibilityWithContext mocks base method. +func (m *MockSQSAPI) ChangeMessageVisibilityWithContext(arg0 aws.Context, arg1 *sqs.ChangeMessageVisibilityInput, arg2 ...request.Option) (*sqs.ChangeMessageVisibilityOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ChangeMessageVisibilityWithContext", varargs...) + ret0, _ := ret[0].(*sqs.ChangeMessageVisibilityOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ChangeMessageVisibilityWithContext indicates an expected call of ChangeMessageVisibilityWithContext. +func (mr *MockSQSAPIMockRecorder) ChangeMessageVisibilityWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChangeMessageVisibilityWithContext", reflect.TypeOf((*MockSQSAPI)(nil).ChangeMessageVisibilityWithContext), varargs...) +} + +// CreateQueue mocks base method. +func (m *MockSQSAPI) CreateQueue(arg0 *sqs.CreateQueueInput) (*sqs.CreateQueueOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateQueue", arg0) + ret0, _ := ret[0].(*sqs.CreateQueueOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateQueue indicates an expected call of CreateQueue. +func (mr *MockSQSAPIMockRecorder) CreateQueue(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateQueue", reflect.TypeOf((*MockSQSAPI)(nil).CreateQueue), arg0) +} + +// CreateQueueRequest mocks base method. +func (m *MockSQSAPI) CreateQueueRequest(arg0 *sqs.CreateQueueInput) (*request.Request, *sqs.CreateQueueOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateQueueRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sqs.CreateQueueOutput) + return ret0, ret1 +} + +// CreateQueueRequest indicates an expected call of CreateQueueRequest. +func (mr *MockSQSAPIMockRecorder) CreateQueueRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateQueueRequest", reflect.TypeOf((*MockSQSAPI)(nil).CreateQueueRequest), arg0) +} + +// CreateQueueWithContext mocks base method. +func (m *MockSQSAPI) CreateQueueWithContext(arg0 aws.Context, arg1 *sqs.CreateQueueInput, arg2 ...request.Option) (*sqs.CreateQueueOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateQueueWithContext", varargs...) + ret0, _ := ret[0].(*sqs.CreateQueueOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateQueueWithContext indicates an expected call of CreateQueueWithContext. +func (mr *MockSQSAPIMockRecorder) CreateQueueWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateQueueWithContext", reflect.TypeOf((*MockSQSAPI)(nil).CreateQueueWithContext), varargs...) +} + +// DeleteMessage mocks base method. +func (m *MockSQSAPI) DeleteMessage(arg0 *sqs.DeleteMessageInput) (*sqs.DeleteMessageOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteMessage", arg0) + ret0, _ := ret[0].(*sqs.DeleteMessageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteMessage indicates an expected call of DeleteMessage. +func (mr *MockSQSAPIMockRecorder) DeleteMessage(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMessage", reflect.TypeOf((*MockSQSAPI)(nil).DeleteMessage), arg0) +} + +// DeleteMessageBatch mocks base method. +func (m *MockSQSAPI) DeleteMessageBatch(arg0 *sqs.DeleteMessageBatchInput) (*sqs.DeleteMessageBatchOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteMessageBatch", arg0) + ret0, _ := ret[0].(*sqs.DeleteMessageBatchOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteMessageBatch indicates an expected call of DeleteMessageBatch. +func (mr *MockSQSAPIMockRecorder) DeleteMessageBatch(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMessageBatch", reflect.TypeOf((*MockSQSAPI)(nil).DeleteMessageBatch), arg0) +} + +// DeleteMessageBatchRequest mocks base method. +func (m *MockSQSAPI) DeleteMessageBatchRequest(arg0 *sqs.DeleteMessageBatchInput) (*request.Request, *sqs.DeleteMessageBatchOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteMessageBatchRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sqs.DeleteMessageBatchOutput) + return ret0, ret1 +} + +// DeleteMessageBatchRequest indicates an expected call of DeleteMessageBatchRequest. +func (mr *MockSQSAPIMockRecorder) DeleteMessageBatchRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMessageBatchRequest", reflect.TypeOf((*MockSQSAPI)(nil).DeleteMessageBatchRequest), arg0) +} + +// DeleteMessageBatchWithContext mocks base method. +func (m *MockSQSAPI) DeleteMessageBatchWithContext(arg0 aws.Context, arg1 *sqs.DeleteMessageBatchInput, arg2 ...request.Option) (*sqs.DeleteMessageBatchOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteMessageBatchWithContext", varargs...) + ret0, _ := ret[0].(*sqs.DeleteMessageBatchOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteMessageBatchWithContext indicates an expected call of DeleteMessageBatchWithContext. +func (mr *MockSQSAPIMockRecorder) DeleteMessageBatchWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMessageBatchWithContext", reflect.TypeOf((*MockSQSAPI)(nil).DeleteMessageBatchWithContext), varargs...) +} + +// DeleteMessageRequest mocks base method. +func (m *MockSQSAPI) DeleteMessageRequest(arg0 *sqs.DeleteMessageInput) (*request.Request, *sqs.DeleteMessageOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteMessageRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sqs.DeleteMessageOutput) + return ret0, ret1 +} + +// DeleteMessageRequest indicates an expected call of DeleteMessageRequest. +func (mr *MockSQSAPIMockRecorder) DeleteMessageRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMessageRequest", reflect.TypeOf((*MockSQSAPI)(nil).DeleteMessageRequest), arg0) +} + +// DeleteMessageWithContext mocks base method. +func (m *MockSQSAPI) DeleteMessageWithContext(arg0 aws.Context, arg1 *sqs.DeleteMessageInput, arg2 ...request.Option) (*sqs.DeleteMessageOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteMessageWithContext", varargs...) + ret0, _ := ret[0].(*sqs.DeleteMessageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteMessageWithContext indicates an expected call of DeleteMessageWithContext. +func (mr *MockSQSAPIMockRecorder) DeleteMessageWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMessageWithContext", reflect.TypeOf((*MockSQSAPI)(nil).DeleteMessageWithContext), varargs...) +} + +// DeleteQueue mocks base method. +func (m *MockSQSAPI) DeleteQueue(arg0 *sqs.DeleteQueueInput) (*sqs.DeleteQueueOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteQueue", arg0) + ret0, _ := ret[0].(*sqs.DeleteQueueOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteQueue indicates an expected call of DeleteQueue. +func (mr *MockSQSAPIMockRecorder) DeleteQueue(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteQueue", reflect.TypeOf((*MockSQSAPI)(nil).DeleteQueue), arg0) +} + +// DeleteQueueRequest mocks base method. +func (m *MockSQSAPI) DeleteQueueRequest(arg0 *sqs.DeleteQueueInput) (*request.Request, *sqs.DeleteQueueOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteQueueRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sqs.DeleteQueueOutput) + return ret0, ret1 +} + +// DeleteQueueRequest indicates an expected call of DeleteQueueRequest. +func (mr *MockSQSAPIMockRecorder) DeleteQueueRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteQueueRequest", reflect.TypeOf((*MockSQSAPI)(nil).DeleteQueueRequest), arg0) +} + +// DeleteQueueWithContext mocks base method. +func (m *MockSQSAPI) DeleteQueueWithContext(arg0 aws.Context, arg1 *sqs.DeleteQueueInput, arg2 ...request.Option) (*sqs.DeleteQueueOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteQueueWithContext", varargs...) + ret0, _ := ret[0].(*sqs.DeleteQueueOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteQueueWithContext indicates an expected call of DeleteQueueWithContext. +func (mr *MockSQSAPIMockRecorder) DeleteQueueWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteQueueWithContext", reflect.TypeOf((*MockSQSAPI)(nil).DeleteQueueWithContext), varargs...) +} + +// GetQueueAttributes mocks base method. +func (m *MockSQSAPI) GetQueueAttributes(arg0 *sqs.GetQueueAttributesInput) (*sqs.GetQueueAttributesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetQueueAttributes", arg0) + ret0, _ := ret[0].(*sqs.GetQueueAttributesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetQueueAttributes indicates an expected call of GetQueueAttributes. +func (mr *MockSQSAPIMockRecorder) GetQueueAttributes(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetQueueAttributes", reflect.TypeOf((*MockSQSAPI)(nil).GetQueueAttributes), arg0) +} + +// GetQueueAttributesRequest mocks base method. +func (m *MockSQSAPI) GetQueueAttributesRequest(arg0 *sqs.GetQueueAttributesInput) (*request.Request, *sqs.GetQueueAttributesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetQueueAttributesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sqs.GetQueueAttributesOutput) + return ret0, ret1 +} + +// GetQueueAttributesRequest indicates an expected call of GetQueueAttributesRequest. +func (mr *MockSQSAPIMockRecorder) GetQueueAttributesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetQueueAttributesRequest", reflect.TypeOf((*MockSQSAPI)(nil).GetQueueAttributesRequest), arg0) +} + +// GetQueueAttributesWithContext mocks base method. +func (m *MockSQSAPI) GetQueueAttributesWithContext(arg0 aws.Context, arg1 *sqs.GetQueueAttributesInput, arg2 ...request.Option) (*sqs.GetQueueAttributesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetQueueAttributesWithContext", varargs...) + ret0, _ := ret[0].(*sqs.GetQueueAttributesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetQueueAttributesWithContext indicates an expected call of GetQueueAttributesWithContext. +func (mr *MockSQSAPIMockRecorder) GetQueueAttributesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetQueueAttributesWithContext", reflect.TypeOf((*MockSQSAPI)(nil).GetQueueAttributesWithContext), varargs...) +} + +// GetQueueUrl mocks base method. +func (m *MockSQSAPI) GetQueueUrl(arg0 *sqs.GetQueueUrlInput) (*sqs.GetQueueUrlOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetQueueUrl", arg0) + ret0, _ := ret[0].(*sqs.GetQueueUrlOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetQueueUrl indicates an expected call of GetQueueUrl. +func (mr *MockSQSAPIMockRecorder) GetQueueUrl(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetQueueUrl", reflect.TypeOf((*MockSQSAPI)(nil).GetQueueUrl), arg0) +} + +// GetQueueUrlRequest mocks base method. +func (m *MockSQSAPI) GetQueueUrlRequest(arg0 *sqs.GetQueueUrlInput) (*request.Request, *sqs.GetQueueUrlOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetQueueUrlRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sqs.GetQueueUrlOutput) + return ret0, ret1 +} + +// GetQueueUrlRequest indicates an expected call of GetQueueUrlRequest. +func (mr *MockSQSAPIMockRecorder) GetQueueUrlRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetQueueUrlRequest", reflect.TypeOf((*MockSQSAPI)(nil).GetQueueUrlRequest), arg0) +} + +// GetQueueUrlWithContext mocks base method. +func (m *MockSQSAPI) GetQueueUrlWithContext(arg0 aws.Context, arg1 *sqs.GetQueueUrlInput, arg2 ...request.Option) (*sqs.GetQueueUrlOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetQueueUrlWithContext", varargs...) + ret0, _ := ret[0].(*sqs.GetQueueUrlOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetQueueUrlWithContext indicates an expected call of GetQueueUrlWithContext. +func (mr *MockSQSAPIMockRecorder) GetQueueUrlWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetQueueUrlWithContext", reflect.TypeOf((*MockSQSAPI)(nil).GetQueueUrlWithContext), varargs...) +} + +// ListDeadLetterSourceQueues mocks base method. +func (m *MockSQSAPI) ListDeadLetterSourceQueues(arg0 *sqs.ListDeadLetterSourceQueuesInput) (*sqs.ListDeadLetterSourceQueuesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDeadLetterSourceQueues", arg0) + ret0, _ := ret[0].(*sqs.ListDeadLetterSourceQueuesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListDeadLetterSourceQueues indicates an expected call of ListDeadLetterSourceQueues. +func (mr *MockSQSAPIMockRecorder) ListDeadLetterSourceQueues(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDeadLetterSourceQueues", reflect.TypeOf((*MockSQSAPI)(nil).ListDeadLetterSourceQueues), arg0) +} + +// ListDeadLetterSourceQueuesPages mocks base method. +func (m *MockSQSAPI) ListDeadLetterSourceQueuesPages(arg0 *sqs.ListDeadLetterSourceQueuesInput, arg1 func(*sqs.ListDeadLetterSourceQueuesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDeadLetterSourceQueuesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListDeadLetterSourceQueuesPages indicates an expected call of ListDeadLetterSourceQueuesPages. +func (mr *MockSQSAPIMockRecorder) ListDeadLetterSourceQueuesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDeadLetterSourceQueuesPages", reflect.TypeOf((*MockSQSAPI)(nil).ListDeadLetterSourceQueuesPages), arg0, arg1) +} + +// ListDeadLetterSourceQueuesPagesWithContext mocks base method. +func (m *MockSQSAPI) ListDeadLetterSourceQueuesPagesWithContext(arg0 aws.Context, arg1 *sqs.ListDeadLetterSourceQueuesInput, arg2 func(*sqs.ListDeadLetterSourceQueuesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListDeadLetterSourceQueuesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListDeadLetterSourceQueuesPagesWithContext indicates an expected call of ListDeadLetterSourceQueuesPagesWithContext. +func (mr *MockSQSAPIMockRecorder) ListDeadLetterSourceQueuesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDeadLetterSourceQueuesPagesWithContext", reflect.TypeOf((*MockSQSAPI)(nil).ListDeadLetterSourceQueuesPagesWithContext), varargs...) +} + +// ListDeadLetterSourceQueuesRequest mocks base method. +func (m *MockSQSAPI) ListDeadLetterSourceQueuesRequest(arg0 *sqs.ListDeadLetterSourceQueuesInput) (*request.Request, *sqs.ListDeadLetterSourceQueuesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDeadLetterSourceQueuesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sqs.ListDeadLetterSourceQueuesOutput) + return ret0, ret1 +} + +// ListDeadLetterSourceQueuesRequest indicates an expected call of ListDeadLetterSourceQueuesRequest. +func (mr *MockSQSAPIMockRecorder) ListDeadLetterSourceQueuesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDeadLetterSourceQueuesRequest", reflect.TypeOf((*MockSQSAPI)(nil).ListDeadLetterSourceQueuesRequest), arg0) +} + +// ListDeadLetterSourceQueuesWithContext mocks base method. +func (m *MockSQSAPI) ListDeadLetterSourceQueuesWithContext(arg0 aws.Context, arg1 *sqs.ListDeadLetterSourceQueuesInput, arg2 ...request.Option) (*sqs.ListDeadLetterSourceQueuesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListDeadLetterSourceQueuesWithContext", varargs...) + ret0, _ := ret[0].(*sqs.ListDeadLetterSourceQueuesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListDeadLetterSourceQueuesWithContext indicates an expected call of ListDeadLetterSourceQueuesWithContext. +func (mr *MockSQSAPIMockRecorder) ListDeadLetterSourceQueuesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDeadLetterSourceQueuesWithContext", reflect.TypeOf((*MockSQSAPI)(nil).ListDeadLetterSourceQueuesWithContext), varargs...) +} + +// ListMessageMoveTasks mocks base method. +func (m *MockSQSAPI) ListMessageMoveTasks(arg0 *sqs.ListMessageMoveTasksInput) (*sqs.ListMessageMoveTasksOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListMessageMoveTasks", arg0) + ret0, _ := ret[0].(*sqs.ListMessageMoveTasksOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListMessageMoveTasks indicates an expected call of ListMessageMoveTasks. +func (mr *MockSQSAPIMockRecorder) ListMessageMoveTasks(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMessageMoveTasks", reflect.TypeOf((*MockSQSAPI)(nil).ListMessageMoveTasks), arg0) +} + +// ListMessageMoveTasksRequest mocks base method. +func (m *MockSQSAPI) ListMessageMoveTasksRequest(arg0 *sqs.ListMessageMoveTasksInput) (*request.Request, *sqs.ListMessageMoveTasksOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListMessageMoveTasksRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sqs.ListMessageMoveTasksOutput) + return ret0, ret1 +} + +// ListMessageMoveTasksRequest indicates an expected call of ListMessageMoveTasksRequest. +func (mr *MockSQSAPIMockRecorder) ListMessageMoveTasksRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMessageMoveTasksRequest", reflect.TypeOf((*MockSQSAPI)(nil).ListMessageMoveTasksRequest), arg0) +} + +// ListMessageMoveTasksWithContext mocks base method. +func (m *MockSQSAPI) ListMessageMoveTasksWithContext(arg0 aws.Context, arg1 *sqs.ListMessageMoveTasksInput, arg2 ...request.Option) (*sqs.ListMessageMoveTasksOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListMessageMoveTasksWithContext", varargs...) + ret0, _ := ret[0].(*sqs.ListMessageMoveTasksOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListMessageMoveTasksWithContext indicates an expected call of ListMessageMoveTasksWithContext. +func (mr *MockSQSAPIMockRecorder) ListMessageMoveTasksWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMessageMoveTasksWithContext", reflect.TypeOf((*MockSQSAPI)(nil).ListMessageMoveTasksWithContext), varargs...) +} + +// ListQueueTags mocks base method. +func (m *MockSQSAPI) ListQueueTags(arg0 *sqs.ListQueueTagsInput) (*sqs.ListQueueTagsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListQueueTags", arg0) + ret0, _ := ret[0].(*sqs.ListQueueTagsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListQueueTags indicates an expected call of ListQueueTags. +func (mr *MockSQSAPIMockRecorder) ListQueueTags(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListQueueTags", reflect.TypeOf((*MockSQSAPI)(nil).ListQueueTags), arg0) +} + +// ListQueueTagsRequest mocks base method. +func (m *MockSQSAPI) ListQueueTagsRequest(arg0 *sqs.ListQueueTagsInput) (*request.Request, *sqs.ListQueueTagsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListQueueTagsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sqs.ListQueueTagsOutput) + return ret0, ret1 +} + +// ListQueueTagsRequest indicates an expected call of ListQueueTagsRequest. +func (mr *MockSQSAPIMockRecorder) ListQueueTagsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListQueueTagsRequest", reflect.TypeOf((*MockSQSAPI)(nil).ListQueueTagsRequest), arg0) +} + +// ListQueueTagsWithContext mocks base method. +func (m *MockSQSAPI) ListQueueTagsWithContext(arg0 aws.Context, arg1 *sqs.ListQueueTagsInput, arg2 ...request.Option) (*sqs.ListQueueTagsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListQueueTagsWithContext", varargs...) + ret0, _ := ret[0].(*sqs.ListQueueTagsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListQueueTagsWithContext indicates an expected call of ListQueueTagsWithContext. +func (mr *MockSQSAPIMockRecorder) ListQueueTagsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListQueueTagsWithContext", reflect.TypeOf((*MockSQSAPI)(nil).ListQueueTagsWithContext), varargs...) +} + +// ListQueues mocks base method. +func (m *MockSQSAPI) ListQueues(arg0 *sqs.ListQueuesInput) (*sqs.ListQueuesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListQueues", arg0) + ret0, _ := ret[0].(*sqs.ListQueuesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListQueues indicates an expected call of ListQueues. +func (mr *MockSQSAPIMockRecorder) ListQueues(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListQueues", reflect.TypeOf((*MockSQSAPI)(nil).ListQueues), arg0) +} + +// ListQueuesPages mocks base method. +func (m *MockSQSAPI) ListQueuesPages(arg0 *sqs.ListQueuesInput, arg1 func(*sqs.ListQueuesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListQueuesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListQueuesPages indicates an expected call of ListQueuesPages. +func (mr *MockSQSAPIMockRecorder) ListQueuesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListQueuesPages", reflect.TypeOf((*MockSQSAPI)(nil).ListQueuesPages), arg0, arg1) +} + +// ListQueuesPagesWithContext mocks base method. +func (m *MockSQSAPI) ListQueuesPagesWithContext(arg0 aws.Context, arg1 *sqs.ListQueuesInput, arg2 func(*sqs.ListQueuesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListQueuesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListQueuesPagesWithContext indicates an expected call of ListQueuesPagesWithContext. +func (mr *MockSQSAPIMockRecorder) ListQueuesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListQueuesPagesWithContext", reflect.TypeOf((*MockSQSAPI)(nil).ListQueuesPagesWithContext), varargs...) +} + +// ListQueuesRequest mocks base method. +func (m *MockSQSAPI) ListQueuesRequest(arg0 *sqs.ListQueuesInput) (*request.Request, *sqs.ListQueuesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListQueuesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sqs.ListQueuesOutput) + return ret0, ret1 +} + +// ListQueuesRequest indicates an expected call of ListQueuesRequest. +func (mr *MockSQSAPIMockRecorder) ListQueuesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListQueuesRequest", reflect.TypeOf((*MockSQSAPI)(nil).ListQueuesRequest), arg0) +} + +// ListQueuesWithContext mocks base method. +func (m *MockSQSAPI) ListQueuesWithContext(arg0 aws.Context, arg1 *sqs.ListQueuesInput, arg2 ...request.Option) (*sqs.ListQueuesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListQueuesWithContext", varargs...) + ret0, _ := ret[0].(*sqs.ListQueuesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListQueuesWithContext indicates an expected call of ListQueuesWithContext. +func (mr *MockSQSAPIMockRecorder) ListQueuesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListQueuesWithContext", reflect.TypeOf((*MockSQSAPI)(nil).ListQueuesWithContext), varargs...) +} + +// PurgeQueue mocks base method. +func (m *MockSQSAPI) PurgeQueue(arg0 *sqs.PurgeQueueInput) (*sqs.PurgeQueueOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PurgeQueue", arg0) + ret0, _ := ret[0].(*sqs.PurgeQueueOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PurgeQueue indicates an expected call of PurgeQueue. +func (mr *MockSQSAPIMockRecorder) PurgeQueue(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PurgeQueue", reflect.TypeOf((*MockSQSAPI)(nil).PurgeQueue), arg0) +} + +// PurgeQueueRequest mocks base method. +func (m *MockSQSAPI) PurgeQueueRequest(arg0 *sqs.PurgeQueueInput) (*request.Request, *sqs.PurgeQueueOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PurgeQueueRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sqs.PurgeQueueOutput) + return ret0, ret1 +} + +// PurgeQueueRequest indicates an expected call of PurgeQueueRequest. +func (mr *MockSQSAPIMockRecorder) PurgeQueueRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PurgeQueueRequest", reflect.TypeOf((*MockSQSAPI)(nil).PurgeQueueRequest), arg0) +} + +// PurgeQueueWithContext mocks base method. +func (m *MockSQSAPI) PurgeQueueWithContext(arg0 aws.Context, arg1 *sqs.PurgeQueueInput, arg2 ...request.Option) (*sqs.PurgeQueueOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PurgeQueueWithContext", varargs...) + ret0, _ := ret[0].(*sqs.PurgeQueueOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PurgeQueueWithContext indicates an expected call of PurgeQueueWithContext. +func (mr *MockSQSAPIMockRecorder) PurgeQueueWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PurgeQueueWithContext", reflect.TypeOf((*MockSQSAPI)(nil).PurgeQueueWithContext), varargs...) +} + +// ReceiveMessage mocks base method. +func (m *MockSQSAPI) ReceiveMessage(arg0 *sqs.ReceiveMessageInput) (*sqs.ReceiveMessageOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ReceiveMessage", arg0) + ret0, _ := ret[0].(*sqs.ReceiveMessageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ReceiveMessage indicates an expected call of ReceiveMessage. +func (mr *MockSQSAPIMockRecorder) ReceiveMessage(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReceiveMessage", reflect.TypeOf((*MockSQSAPI)(nil).ReceiveMessage), arg0) +} + +// ReceiveMessageRequest mocks base method. +func (m *MockSQSAPI) ReceiveMessageRequest(arg0 *sqs.ReceiveMessageInput) (*request.Request, *sqs.ReceiveMessageOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ReceiveMessageRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sqs.ReceiveMessageOutput) + return ret0, ret1 +} + +// ReceiveMessageRequest indicates an expected call of ReceiveMessageRequest. +func (mr *MockSQSAPIMockRecorder) ReceiveMessageRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReceiveMessageRequest", reflect.TypeOf((*MockSQSAPI)(nil).ReceiveMessageRequest), arg0) +} + +// ReceiveMessageWithContext mocks base method. +func (m *MockSQSAPI) ReceiveMessageWithContext(arg0 aws.Context, arg1 *sqs.ReceiveMessageInput, arg2 ...request.Option) (*sqs.ReceiveMessageOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ReceiveMessageWithContext", varargs...) + ret0, _ := ret[0].(*sqs.ReceiveMessageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ReceiveMessageWithContext indicates an expected call of ReceiveMessageWithContext. +func (mr *MockSQSAPIMockRecorder) ReceiveMessageWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReceiveMessageWithContext", reflect.TypeOf((*MockSQSAPI)(nil).ReceiveMessageWithContext), varargs...) +} + +// RemovePermission mocks base method. +func (m *MockSQSAPI) RemovePermission(arg0 *sqs.RemovePermissionInput) (*sqs.RemovePermissionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RemovePermission", arg0) + ret0, _ := ret[0].(*sqs.RemovePermissionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RemovePermission indicates an expected call of RemovePermission. +func (mr *MockSQSAPIMockRecorder) RemovePermission(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemovePermission", reflect.TypeOf((*MockSQSAPI)(nil).RemovePermission), arg0) +} + +// RemovePermissionRequest mocks base method. +func (m *MockSQSAPI) RemovePermissionRequest(arg0 *sqs.RemovePermissionInput) (*request.Request, *sqs.RemovePermissionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RemovePermissionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sqs.RemovePermissionOutput) + return ret0, ret1 +} + +// RemovePermissionRequest indicates an expected call of RemovePermissionRequest. +func (mr *MockSQSAPIMockRecorder) RemovePermissionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemovePermissionRequest", reflect.TypeOf((*MockSQSAPI)(nil).RemovePermissionRequest), arg0) +} + +// RemovePermissionWithContext mocks base method. +func (m *MockSQSAPI) RemovePermissionWithContext(arg0 aws.Context, arg1 *sqs.RemovePermissionInput, arg2 ...request.Option) (*sqs.RemovePermissionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RemovePermissionWithContext", varargs...) + ret0, _ := ret[0].(*sqs.RemovePermissionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RemovePermissionWithContext indicates an expected call of RemovePermissionWithContext. +func (mr *MockSQSAPIMockRecorder) RemovePermissionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemovePermissionWithContext", reflect.TypeOf((*MockSQSAPI)(nil).RemovePermissionWithContext), varargs...) +} + +// SendMessage mocks base method. +func (m *MockSQSAPI) SendMessage(arg0 *sqs.SendMessageInput) (*sqs.SendMessageOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SendMessage", arg0) + ret0, _ := ret[0].(*sqs.SendMessageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SendMessage indicates an expected call of SendMessage. +func (mr *MockSQSAPIMockRecorder) SendMessage(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMessage", reflect.TypeOf((*MockSQSAPI)(nil).SendMessage), arg0) +} + +// SendMessageBatch mocks base method. +func (m *MockSQSAPI) SendMessageBatch(arg0 *sqs.SendMessageBatchInput) (*sqs.SendMessageBatchOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SendMessageBatch", arg0) + ret0, _ := ret[0].(*sqs.SendMessageBatchOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SendMessageBatch indicates an expected call of SendMessageBatch. +func (mr *MockSQSAPIMockRecorder) SendMessageBatch(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMessageBatch", reflect.TypeOf((*MockSQSAPI)(nil).SendMessageBatch), arg0) +} + +// SendMessageBatchRequest mocks base method. +func (m *MockSQSAPI) SendMessageBatchRequest(arg0 *sqs.SendMessageBatchInput) (*request.Request, *sqs.SendMessageBatchOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SendMessageBatchRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sqs.SendMessageBatchOutput) + return ret0, ret1 +} + +// SendMessageBatchRequest indicates an expected call of SendMessageBatchRequest. +func (mr *MockSQSAPIMockRecorder) SendMessageBatchRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMessageBatchRequest", reflect.TypeOf((*MockSQSAPI)(nil).SendMessageBatchRequest), arg0) +} + +// SendMessageBatchWithContext mocks base method. +func (m *MockSQSAPI) SendMessageBatchWithContext(arg0 aws.Context, arg1 *sqs.SendMessageBatchInput, arg2 ...request.Option) (*sqs.SendMessageBatchOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SendMessageBatchWithContext", varargs...) + ret0, _ := ret[0].(*sqs.SendMessageBatchOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SendMessageBatchWithContext indicates an expected call of SendMessageBatchWithContext. +func (mr *MockSQSAPIMockRecorder) SendMessageBatchWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMessageBatchWithContext", reflect.TypeOf((*MockSQSAPI)(nil).SendMessageBatchWithContext), varargs...) +} + +// SendMessageRequest mocks base method. +func (m *MockSQSAPI) SendMessageRequest(arg0 *sqs.SendMessageInput) (*request.Request, *sqs.SendMessageOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SendMessageRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sqs.SendMessageOutput) + return ret0, ret1 +} + +// SendMessageRequest indicates an expected call of SendMessageRequest. +func (mr *MockSQSAPIMockRecorder) SendMessageRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMessageRequest", reflect.TypeOf((*MockSQSAPI)(nil).SendMessageRequest), arg0) +} + +// SendMessageWithContext mocks base method. +func (m *MockSQSAPI) SendMessageWithContext(arg0 aws.Context, arg1 *sqs.SendMessageInput, arg2 ...request.Option) (*sqs.SendMessageOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SendMessageWithContext", varargs...) + ret0, _ := ret[0].(*sqs.SendMessageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SendMessageWithContext indicates an expected call of SendMessageWithContext. +func (mr *MockSQSAPIMockRecorder) SendMessageWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMessageWithContext", reflect.TypeOf((*MockSQSAPI)(nil).SendMessageWithContext), varargs...) +} + +// SetQueueAttributes mocks base method. +func (m *MockSQSAPI) SetQueueAttributes(arg0 *sqs.SetQueueAttributesInput) (*sqs.SetQueueAttributesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetQueueAttributes", arg0) + ret0, _ := ret[0].(*sqs.SetQueueAttributesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetQueueAttributes indicates an expected call of SetQueueAttributes. +func (mr *MockSQSAPIMockRecorder) SetQueueAttributes(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetQueueAttributes", reflect.TypeOf((*MockSQSAPI)(nil).SetQueueAttributes), arg0) +} + +// SetQueueAttributesRequest mocks base method. +func (m *MockSQSAPI) SetQueueAttributesRequest(arg0 *sqs.SetQueueAttributesInput) (*request.Request, *sqs.SetQueueAttributesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetQueueAttributesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sqs.SetQueueAttributesOutput) + return ret0, ret1 +} + +// SetQueueAttributesRequest indicates an expected call of SetQueueAttributesRequest. +func (mr *MockSQSAPIMockRecorder) SetQueueAttributesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetQueueAttributesRequest", reflect.TypeOf((*MockSQSAPI)(nil).SetQueueAttributesRequest), arg0) +} + +// SetQueueAttributesWithContext mocks base method. +func (m *MockSQSAPI) SetQueueAttributesWithContext(arg0 aws.Context, arg1 *sqs.SetQueueAttributesInput, arg2 ...request.Option) (*sqs.SetQueueAttributesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SetQueueAttributesWithContext", varargs...) + ret0, _ := ret[0].(*sqs.SetQueueAttributesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetQueueAttributesWithContext indicates an expected call of SetQueueAttributesWithContext. +func (mr *MockSQSAPIMockRecorder) SetQueueAttributesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetQueueAttributesWithContext", reflect.TypeOf((*MockSQSAPI)(nil).SetQueueAttributesWithContext), varargs...) +} + +// StartMessageMoveTask mocks base method. +func (m *MockSQSAPI) StartMessageMoveTask(arg0 *sqs.StartMessageMoveTaskInput) (*sqs.StartMessageMoveTaskOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartMessageMoveTask", arg0) + ret0, _ := ret[0].(*sqs.StartMessageMoveTaskOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartMessageMoveTask indicates an expected call of StartMessageMoveTask. +func (mr *MockSQSAPIMockRecorder) StartMessageMoveTask(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartMessageMoveTask", reflect.TypeOf((*MockSQSAPI)(nil).StartMessageMoveTask), arg0) +} + +// StartMessageMoveTaskRequest mocks base method. +func (m *MockSQSAPI) StartMessageMoveTaskRequest(arg0 *sqs.StartMessageMoveTaskInput) (*request.Request, *sqs.StartMessageMoveTaskOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartMessageMoveTaskRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sqs.StartMessageMoveTaskOutput) + return ret0, ret1 +} + +// StartMessageMoveTaskRequest indicates an expected call of StartMessageMoveTaskRequest. +func (mr *MockSQSAPIMockRecorder) StartMessageMoveTaskRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartMessageMoveTaskRequest", reflect.TypeOf((*MockSQSAPI)(nil).StartMessageMoveTaskRequest), arg0) +} + +// StartMessageMoveTaskWithContext mocks base method. +func (m *MockSQSAPI) StartMessageMoveTaskWithContext(arg0 aws.Context, arg1 *sqs.StartMessageMoveTaskInput, arg2 ...request.Option) (*sqs.StartMessageMoveTaskOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StartMessageMoveTaskWithContext", varargs...) + ret0, _ := ret[0].(*sqs.StartMessageMoveTaskOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartMessageMoveTaskWithContext indicates an expected call of StartMessageMoveTaskWithContext. +func (mr *MockSQSAPIMockRecorder) StartMessageMoveTaskWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartMessageMoveTaskWithContext", reflect.TypeOf((*MockSQSAPI)(nil).StartMessageMoveTaskWithContext), varargs...) +} + +// TagQueue mocks base method. +func (m *MockSQSAPI) TagQueue(arg0 *sqs.TagQueueInput) (*sqs.TagQueueOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagQueue", arg0) + ret0, _ := ret[0].(*sqs.TagQueueOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagQueue indicates an expected call of TagQueue. +func (mr *MockSQSAPIMockRecorder) TagQueue(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagQueue", reflect.TypeOf((*MockSQSAPI)(nil).TagQueue), arg0) +} + +// TagQueueRequest mocks base method. +func (m *MockSQSAPI) TagQueueRequest(arg0 *sqs.TagQueueInput) (*request.Request, *sqs.TagQueueOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagQueueRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sqs.TagQueueOutput) + return ret0, ret1 +} + +// TagQueueRequest indicates an expected call of TagQueueRequest. +func (mr *MockSQSAPIMockRecorder) TagQueueRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagQueueRequest", reflect.TypeOf((*MockSQSAPI)(nil).TagQueueRequest), arg0) +} + +// TagQueueWithContext mocks base method. +func (m *MockSQSAPI) TagQueueWithContext(arg0 aws.Context, arg1 *sqs.TagQueueInput, arg2 ...request.Option) (*sqs.TagQueueOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "TagQueueWithContext", varargs...) + ret0, _ := ret[0].(*sqs.TagQueueOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagQueueWithContext indicates an expected call of TagQueueWithContext. +func (mr *MockSQSAPIMockRecorder) TagQueueWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagQueueWithContext", reflect.TypeOf((*MockSQSAPI)(nil).TagQueueWithContext), varargs...) +} + +// UntagQueue mocks base method. +func (m *MockSQSAPI) UntagQueue(arg0 *sqs.UntagQueueInput) (*sqs.UntagQueueOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagQueue", arg0) + ret0, _ := ret[0].(*sqs.UntagQueueOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagQueue indicates an expected call of UntagQueue. +func (mr *MockSQSAPIMockRecorder) UntagQueue(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagQueue", reflect.TypeOf((*MockSQSAPI)(nil).UntagQueue), arg0) +} + +// UntagQueueRequest mocks base method. +func (m *MockSQSAPI) UntagQueueRequest(arg0 *sqs.UntagQueueInput) (*request.Request, *sqs.UntagQueueOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagQueueRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sqs.UntagQueueOutput) + return ret0, ret1 +} + +// UntagQueueRequest indicates an expected call of UntagQueueRequest. +func (mr *MockSQSAPIMockRecorder) UntagQueueRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagQueueRequest", reflect.TypeOf((*MockSQSAPI)(nil).UntagQueueRequest), arg0) +} + +// UntagQueueWithContext mocks base method. +func (m *MockSQSAPI) UntagQueueWithContext(arg0 aws.Context, arg1 *sqs.UntagQueueInput, arg2 ...request.Option) (*sqs.UntagQueueOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UntagQueueWithContext", varargs...) + ret0, _ := ret[0].(*sqs.UntagQueueOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagQueueWithContext indicates an expected call of UntagQueueWithContext. +func (mr *MockSQSAPIMockRecorder) UntagQueueWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagQueueWithContext", reflect.TypeOf((*MockSQSAPI)(nil).UntagQueueWithContext), varargs...) +} diff --git a/resources/sqs-queues.go b/resources/sqs-queues.go index 5cb78f42..c68b7da0 100644 --- a/resources/sqs-queues.go +++ b/resources/sqs-queues.go @@ -2,6 +2,9 @@ package resources import ( "context" + "github.com/aws/aws-sdk-go/service/sqs/sqsiface" + "github.com/ekristen/libnuke/pkg/types" + "github.com/sirupsen/logrus" "github.com/gotidy/ptr" @@ -23,12 +26,19 @@ func init() { }) } -type SQSQueueLister struct{} +type SQSQueueLister struct { + mockSvc sqsiface.SQSAPI +} func (l *SQSQueueLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) - svc := sqs.New(opts.Session) + var svc sqsiface.SQSAPI + if l.mockSvc != nil { + svc = l.mockSvc + } else { + svc = sqs.New(opts.Session) + } params := &sqs.ListQueuesInput{} resp, err := svc.ListQueues(params) @@ -38,9 +48,21 @@ func (l *SQSQueueLister) List(_ context.Context, o interface{}) ([]resource.Reso resources := make([]resource.Resource, 0) for _, queue := range resp.QueueUrls { + var tags map[string]*string + queueTags, err := svc.ListQueueTags(&sqs.ListQueueTagsInput{ + QueueUrl: queue, + }) + if err != nil { + logrus.WithError(err).Error("unable to list queue tags") + } + if queueTags != nil { + tags = queueTags.Tags + } + resources = append(resources, &SQSQueue{ svc: svc, queueURL: queue, + tags: tags, }) } @@ -48,8 +70,9 @@ func (l *SQSQueueLister) List(_ context.Context, o interface{}) ([]resource.Reso } type SQSQueue struct { - svc *sqs.SQS + svc sqsiface.SQSAPI queueURL *string + tags map[string]*string } func (f *SQSQueue) Remove(_ context.Context) error { @@ -63,3 +86,15 @@ func (f *SQSQueue) Remove(_ context.Context) error { func (f *SQSQueue) String() string { return ptr.ToString(f.queueURL) } + +func (f *SQSQueue) Properties() types.Properties { + properties := types.NewProperties() + + properties.Set("QueueURL", f.queueURL) + + for k, v := range f.tags { + properties.SetTag(ptr.String(k), v) + } + + return properties +} diff --git a/resources/sqs-queues_mock_test.go b/resources/sqs-queues_mock_test.go new file mode 100644 index 00000000..fff06521 --- /dev/null +++ b/resources/sqs-queues_mock_test.go @@ -0,0 +1,68 @@ +package resources + +import ( + "context" + "testing" + + "github.com/golang/mock/gomock" + "github.com/gotidy/ptr" + "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/service/sqs" + + "github.com/ekristen/aws-nuke/mocks/mock_sqsiface" + + "github.com/ekristen/aws-nuke/pkg/nuke" +) + +func Test_Mock_SQSQueues_List(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockSQS := mock_sqsiface.NewMockSQSAPI(ctrl) + + sqsQueueLister := SQSQueueLister{ + mockSvc: mockSQS, + } + + mockSQS.EXPECT().ListQueues(gomock.Any()).Return(&sqs.ListQueuesOutput{ + QueueUrls: []*string{ + ptr.String("foobar"), + }, + }, nil) + + mockSQS.EXPECT().ListQueueTags(gomock.Any()).Return(&sqs.ListQueueTagsOutput{ + Tags: map[string]*string{ + "Name": ptr.String("foobar"), + }, + }, nil) + + resources, err := sqsQueueLister.List(context.TODO(), &nuke.ListerOpts{}) + a.Nil(err) + a.Len(resources, 1) + + sqsQueue := resources[0].(*SQSQueue) + a.Equal("foobar", sqsQueue.String()) + a.Equal("foobar", sqsQueue.Properties().Get("tag:Name")) +} + +func Test_Mock_SQSQueue_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockSQS := mock_sqsiface.NewMockSQSAPI(ctrl) + + sqsQueue := SQSQueue{ + svc: mockSQS, + queueURL: ptr.String("foobar"), + } + + mockSQS.EXPECT().DeleteQueue(gomock.Eq(&sqs.DeleteQueueInput{ + QueueUrl: sqsQueue.queueURL, + })).Return(&sqs.DeleteQueueOutput{}, nil) + + err := sqsQueue.Remove(context.TODO()) + a.Nil(err) +} diff --git a/resources/sqs_mock_test.go b/resources/sqs_mock_test.go new file mode 100644 index 00000000..da5f7a6e --- /dev/null +++ b/resources/sqs_mock_test.go @@ -0,0 +1,4 @@ +//go:generate ../mocks/generate_mocks.sh sqs sqsiface +package resources + +// Note: empty on purpose, this file exist purely to generate mocks for the IAM service From 1543a50f84e01a22b159f9e01e6bca6b1f00b64f Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 13 Mar 2024 22:23:48 -0600 Subject: [PATCH 273/617] feat(sagemaker-userprofiles): add properties, tags, and mock tests --- resources/sagemaker-userprofiles.go | 51 +++++++++-- resources/sagemaker-userprofiles_mock_test.go | 89 +++++++++++++++++++ 2 files changed, 134 insertions(+), 6 deletions(-) create mode 100644 resources/sagemaker-userprofiles_mock_test.go diff --git a/resources/sagemaker-userprofiles.go b/resources/sagemaker-userprofiles.go index 7261ec07..bbeef962 100644 --- a/resources/sagemaker-userprofiles.go +++ b/resources/sagemaker-userprofiles.go @@ -2,6 +2,8 @@ package resources import ( "context" + "github.com/aws/aws-sdk-go/service/sagemaker/sagemakeriface" + "github.com/sirupsen/logrus" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/sagemaker" @@ -23,12 +25,20 @@ func init() { }) } -type SageMakerUserProfilesLister struct{} +type SageMakerUserProfilesLister struct { + mockSvc sagemakeriface.SageMakerAPI +} func (l *SageMakerUserProfilesLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) - svc := sagemaker.New(opts.Session) + var svc sagemakeriface.SageMakerAPI + if l.mockSvc != nil { + svc = l.mockSvc + } else { + svc = sagemaker.New(opts.Session) + } + resources := make([]resource.Resource, 0) params := &sagemaker.ListUserProfilesInput{ @@ -42,10 +52,33 @@ func (l *SageMakerUserProfilesLister) List(_ context.Context, o interface{}) ([] } for _, userProfile := range resp.UserProfiles { + var tags []*sagemaker.Tag + up, err := svc.DescribeUserProfile(&sagemaker.DescribeUserProfileInput{ + DomainId: userProfile.DomainId, + UserProfileName: userProfile.UserProfileName, + }) + if err != nil { + logrus.WithError(err).Error("unable to get user profile") + continue + } + + upTags, err := svc.ListTags(&sagemaker.ListTagsInput{ + ResourceArn: up.UserProfileArn, + MaxResults: aws.Int64(100), + }) + if err != nil { + logrus.WithError(err).Error("unable to get tags") + continue + } + if upTags.Tags != nil { + tags = upTags.Tags + } + resources = append(resources, &SageMakerUserProfile{ svc: svc, domainID: userProfile.DomainId, userProfileName: userProfile.UserProfileName, + tags: tags, }) } @@ -60,9 +93,10 @@ func (l *SageMakerUserProfilesLister) List(_ context.Context, o interface{}) ([] } type SageMakerUserProfile struct { - svc *sagemaker.SageMaker + svc sagemakeriface.SageMakerAPI domainID *string userProfileName *string + tags []*sagemaker.Tag } func (f *SageMakerUserProfile) Remove(_ context.Context) error { @@ -80,8 +114,13 @@ func (f *SageMakerUserProfile) String() string { func (f *SageMakerUserProfile) Properties() types.Properties { properties := types.NewProperties() - properties. - Set("DomainID", f.domainID). - Set("UserProfileName", f.userProfileName) + + properties.Set("DomainID", f.domainID) + properties.Set("UserProfileName", f.userProfileName) + + for _, tag := range f.tags { + properties.SetTag(tag.Key, tag.Value) + } + return properties } diff --git a/resources/sagemaker-userprofiles_mock_test.go b/resources/sagemaker-userprofiles_mock_test.go new file mode 100644 index 00000000..a9fb2a1d --- /dev/null +++ b/resources/sagemaker-userprofiles_mock_test.go @@ -0,0 +1,89 @@ +package resources + +import ( + "context" + + "testing" + + "github.com/golang/mock/gomock" + "github.com/gotidy/ptr" + "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/service/sagemaker" + + "github.com/ekristen/aws-nuke/pkg/nuke" + + "github.com/ekristen/aws-nuke/mocks/mock_sagemakeriface" +) + +func Test_Mock_SageMakerUserProfiles_List(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockSvc := mock_sagemakeriface.NewMockSageMakerAPI(ctrl) + + resource := SageMakerUserProfilesLister{ + mockSvc: mockSvc, + } + + mockSvc.EXPECT().ListUserProfiles(gomock.Any()).Return(&sagemaker.ListUserProfilesOutput{ + UserProfiles: []*sagemaker.UserProfileDetails{ + { + DomainId: ptr.String("foo"), + UserProfileName: ptr.String("bar"), + }, + }, + }, nil) + + mockSvc.EXPECT().DescribeUserProfile(gomock.Eq(&sagemaker.DescribeUserProfileInput{ + DomainId: ptr.String("foo"), + UserProfileName: ptr.String("bar"), + })).Return(&sagemaker.DescribeUserProfileOutput{ + DomainId: ptr.String("foo"), + UserProfileName: ptr.String("bar"), + UserProfileArn: ptr.String("arn:foobar"), + }, nil) + + mockSvc.EXPECT().ListTags(gomock.Eq(&sagemaker.ListTagsInput{ + ResourceArn: ptr.String("arn:foobar"), + MaxResults: ptr.Int64(100), + })).Return(&sagemaker.ListTagsOutput{ + Tags: []*sagemaker.Tag{ + { + Key: ptr.String("foo"), + Value: ptr.String("bar"), + }, + }, + }, nil) + + resources, err := resource.List(context.TODO(), &nuke.ListerOpts{}) + a.Nil(err) + a.Len(resources, 1) + + userProfile := resources[0].(*SageMakerUserProfile) + a.Equal("foo", *userProfile.domainID) + a.Equal("bar", *userProfile.userProfileName) +} + +func Test_Mock_SageMakerUserProfile_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockSvc := mock_sagemakeriface.NewMockSageMakerAPI(ctrl) + + resource := SageMakerUserProfile{ + svc: mockSvc, + domainID: ptr.String("foo"), + userProfileName: ptr.String("bar"), + } + + mockSvc.EXPECT().DeleteUserProfile(gomock.Eq(&sagemaker.DeleteUserProfileInput{ + DomainId: resource.domainID, + UserProfileName: resource.userProfileName, + })).Return(&sagemaker.DeleteUserProfileOutput{}, nil) + + err := resource.Remove(context.TODO()) + a.Nil(err) +} From 949f60771051e142a7539486aefa8ea3839ba0de Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 13 Mar 2024 22:25:20 -0600 Subject: [PATCH 274/617] chore(golangci-lint): fix violations --- resources/sagemaker-userprofiles.go | 4 +++- resources/sqs-queues.go | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/resources/sagemaker-userprofiles.go b/resources/sagemaker-userprofiles.go index bbeef962..c34063fd 100644 --- a/resources/sagemaker-userprofiles.go +++ b/resources/sagemaker-userprofiles.go @@ -2,12 +2,14 @@ package resources import ( "context" - "github.com/aws/aws-sdk-go/service/sagemaker/sagemakeriface" + "github.com/sirupsen/logrus" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/sagemaker" + "github.com/aws/aws-sdk-go/service/sagemaker/sagemakeriface" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" diff --git a/resources/sqs-queues.go b/resources/sqs-queues.go index c68b7da0..6f341513 100644 --- a/resources/sqs-queues.go +++ b/resources/sqs-queues.go @@ -2,16 +2,17 @@ package resources import ( "context" - "github.com/aws/aws-sdk-go/service/sqs/sqsiface" - "github.com/ekristen/libnuke/pkg/types" + "github.com/sirupsen/logrus" "github.com/gotidy/ptr" "github.com/aws/aws-sdk-go/service/sqs" + "github.com/aws/aws-sdk-go/service/sqs/sqsiface" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/pkg/nuke" ) From e154902af1cdef4d78fe883dda685b2b2c648c96 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 14 Mar 2024 22:23:14 -0600 Subject: [PATCH 275/617] feat(servicediscovery-namespaces): add properties, tags, and mock tests --- mocks/mock_servicediscoveryiface/mock.go | 1552 +++++++++++++++++ resources/servicediscovery-namespaces.go | 42 +- .../servicediscovery-namespaces_mock_test.go | 136 ++ resources/servicediscovery_mock_test.go | 4 + 4 files changed, 1728 insertions(+), 6 deletions(-) create mode 100644 mocks/mock_servicediscoveryiface/mock.go create mode 100644 resources/servicediscovery-namespaces_mock_test.go create mode 100644 resources/servicediscovery_mock_test.go diff --git a/mocks/mock_servicediscoveryiface/mock.go b/mocks/mock_servicediscoveryiface/mock.go new file mode 100644 index 00000000..732abf2e --- /dev/null +++ b/mocks/mock_servicediscoveryiface/mock.go @@ -0,0 +1,1552 @@ +// Code generated by MockGen. DO NOT EDIT. +// Source: /Users/ekristen/go/pkg/mod/github.com/aws/aws-sdk-go@v1.50.24/service/servicediscovery/servicediscoveryiface/interface.go + +// Package mock_servicediscoveryiface is a generated GoMock package. +package mock_servicediscoveryiface + +import ( + reflect "reflect" + + aws "github.com/aws/aws-sdk-go/aws" + request "github.com/aws/aws-sdk-go/aws/request" + servicediscovery "github.com/aws/aws-sdk-go/service/servicediscovery" + gomock "github.com/golang/mock/gomock" +) + +// MockServiceDiscoveryAPI is a mock of ServiceDiscoveryAPI interface. +type MockServiceDiscoveryAPI struct { + ctrl *gomock.Controller + recorder *MockServiceDiscoveryAPIMockRecorder +} + +// MockServiceDiscoveryAPIMockRecorder is the mock recorder for MockServiceDiscoveryAPI. +type MockServiceDiscoveryAPIMockRecorder struct { + mock *MockServiceDiscoveryAPI +} + +// NewMockServiceDiscoveryAPI creates a new mock instance. +func NewMockServiceDiscoveryAPI(ctrl *gomock.Controller) *MockServiceDiscoveryAPI { + mock := &MockServiceDiscoveryAPI{ctrl: ctrl} + mock.recorder = &MockServiceDiscoveryAPIMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockServiceDiscoveryAPI) EXPECT() *MockServiceDiscoveryAPIMockRecorder { + return m.recorder +} + +// CreateHttpNamespace mocks base method. +func (m *MockServiceDiscoveryAPI) CreateHttpNamespace(arg0 *servicediscovery.CreateHttpNamespaceInput) (*servicediscovery.CreateHttpNamespaceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateHttpNamespace", arg0) + ret0, _ := ret[0].(*servicediscovery.CreateHttpNamespaceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateHttpNamespace indicates an expected call of CreateHttpNamespace. +func (mr *MockServiceDiscoveryAPIMockRecorder) CreateHttpNamespace(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateHttpNamespace", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).CreateHttpNamespace), arg0) +} + +// CreateHttpNamespaceRequest mocks base method. +func (m *MockServiceDiscoveryAPI) CreateHttpNamespaceRequest(arg0 *servicediscovery.CreateHttpNamespaceInput) (*request.Request, *servicediscovery.CreateHttpNamespaceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateHttpNamespaceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*servicediscovery.CreateHttpNamespaceOutput) + return ret0, ret1 +} + +// CreateHttpNamespaceRequest indicates an expected call of CreateHttpNamespaceRequest. +func (mr *MockServiceDiscoveryAPIMockRecorder) CreateHttpNamespaceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateHttpNamespaceRequest", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).CreateHttpNamespaceRequest), arg0) +} + +// CreateHttpNamespaceWithContext mocks base method. +func (m *MockServiceDiscoveryAPI) CreateHttpNamespaceWithContext(arg0 aws.Context, arg1 *servicediscovery.CreateHttpNamespaceInput, arg2 ...request.Option) (*servicediscovery.CreateHttpNamespaceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateHttpNamespaceWithContext", varargs...) + ret0, _ := ret[0].(*servicediscovery.CreateHttpNamespaceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateHttpNamespaceWithContext indicates an expected call of CreateHttpNamespaceWithContext. +func (mr *MockServiceDiscoveryAPIMockRecorder) CreateHttpNamespaceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateHttpNamespaceWithContext", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).CreateHttpNamespaceWithContext), varargs...) +} + +// CreatePrivateDnsNamespace mocks base method. +func (m *MockServiceDiscoveryAPI) CreatePrivateDnsNamespace(arg0 *servicediscovery.CreatePrivateDnsNamespaceInput) (*servicediscovery.CreatePrivateDnsNamespaceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreatePrivateDnsNamespace", arg0) + ret0, _ := ret[0].(*servicediscovery.CreatePrivateDnsNamespaceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreatePrivateDnsNamespace indicates an expected call of CreatePrivateDnsNamespace. +func (mr *MockServiceDiscoveryAPIMockRecorder) CreatePrivateDnsNamespace(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePrivateDnsNamespace", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).CreatePrivateDnsNamespace), arg0) +} + +// CreatePrivateDnsNamespaceRequest mocks base method. +func (m *MockServiceDiscoveryAPI) CreatePrivateDnsNamespaceRequest(arg0 *servicediscovery.CreatePrivateDnsNamespaceInput) (*request.Request, *servicediscovery.CreatePrivateDnsNamespaceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreatePrivateDnsNamespaceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*servicediscovery.CreatePrivateDnsNamespaceOutput) + return ret0, ret1 +} + +// CreatePrivateDnsNamespaceRequest indicates an expected call of CreatePrivateDnsNamespaceRequest. +func (mr *MockServiceDiscoveryAPIMockRecorder) CreatePrivateDnsNamespaceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePrivateDnsNamespaceRequest", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).CreatePrivateDnsNamespaceRequest), arg0) +} + +// CreatePrivateDnsNamespaceWithContext mocks base method. +func (m *MockServiceDiscoveryAPI) CreatePrivateDnsNamespaceWithContext(arg0 aws.Context, arg1 *servicediscovery.CreatePrivateDnsNamespaceInput, arg2 ...request.Option) (*servicediscovery.CreatePrivateDnsNamespaceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreatePrivateDnsNamespaceWithContext", varargs...) + ret0, _ := ret[0].(*servicediscovery.CreatePrivateDnsNamespaceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreatePrivateDnsNamespaceWithContext indicates an expected call of CreatePrivateDnsNamespaceWithContext. +func (mr *MockServiceDiscoveryAPIMockRecorder) CreatePrivateDnsNamespaceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePrivateDnsNamespaceWithContext", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).CreatePrivateDnsNamespaceWithContext), varargs...) +} + +// CreatePublicDnsNamespace mocks base method. +func (m *MockServiceDiscoveryAPI) CreatePublicDnsNamespace(arg0 *servicediscovery.CreatePublicDnsNamespaceInput) (*servicediscovery.CreatePublicDnsNamespaceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreatePublicDnsNamespace", arg0) + ret0, _ := ret[0].(*servicediscovery.CreatePublicDnsNamespaceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreatePublicDnsNamespace indicates an expected call of CreatePublicDnsNamespace. +func (mr *MockServiceDiscoveryAPIMockRecorder) CreatePublicDnsNamespace(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePublicDnsNamespace", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).CreatePublicDnsNamespace), arg0) +} + +// CreatePublicDnsNamespaceRequest mocks base method. +func (m *MockServiceDiscoveryAPI) CreatePublicDnsNamespaceRequest(arg0 *servicediscovery.CreatePublicDnsNamespaceInput) (*request.Request, *servicediscovery.CreatePublicDnsNamespaceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreatePublicDnsNamespaceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*servicediscovery.CreatePublicDnsNamespaceOutput) + return ret0, ret1 +} + +// CreatePublicDnsNamespaceRequest indicates an expected call of CreatePublicDnsNamespaceRequest. +func (mr *MockServiceDiscoveryAPIMockRecorder) CreatePublicDnsNamespaceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePublicDnsNamespaceRequest", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).CreatePublicDnsNamespaceRequest), arg0) +} + +// CreatePublicDnsNamespaceWithContext mocks base method. +func (m *MockServiceDiscoveryAPI) CreatePublicDnsNamespaceWithContext(arg0 aws.Context, arg1 *servicediscovery.CreatePublicDnsNamespaceInput, arg2 ...request.Option) (*servicediscovery.CreatePublicDnsNamespaceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreatePublicDnsNamespaceWithContext", varargs...) + ret0, _ := ret[0].(*servicediscovery.CreatePublicDnsNamespaceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreatePublicDnsNamespaceWithContext indicates an expected call of CreatePublicDnsNamespaceWithContext. +func (mr *MockServiceDiscoveryAPIMockRecorder) CreatePublicDnsNamespaceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePublicDnsNamespaceWithContext", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).CreatePublicDnsNamespaceWithContext), varargs...) +} + +// CreateService mocks base method. +func (m *MockServiceDiscoveryAPI) CreateService(arg0 *servicediscovery.CreateServiceInput) (*servicediscovery.CreateServiceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateService", arg0) + ret0, _ := ret[0].(*servicediscovery.CreateServiceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateService indicates an expected call of CreateService. +func (mr *MockServiceDiscoveryAPIMockRecorder) CreateService(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateService", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).CreateService), arg0) +} + +// CreateServiceRequest mocks base method. +func (m *MockServiceDiscoveryAPI) CreateServiceRequest(arg0 *servicediscovery.CreateServiceInput) (*request.Request, *servicediscovery.CreateServiceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateServiceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*servicediscovery.CreateServiceOutput) + return ret0, ret1 +} + +// CreateServiceRequest indicates an expected call of CreateServiceRequest. +func (mr *MockServiceDiscoveryAPIMockRecorder) CreateServiceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateServiceRequest", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).CreateServiceRequest), arg0) +} + +// CreateServiceWithContext mocks base method. +func (m *MockServiceDiscoveryAPI) CreateServiceWithContext(arg0 aws.Context, arg1 *servicediscovery.CreateServiceInput, arg2 ...request.Option) (*servicediscovery.CreateServiceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateServiceWithContext", varargs...) + ret0, _ := ret[0].(*servicediscovery.CreateServiceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateServiceWithContext indicates an expected call of CreateServiceWithContext. +func (mr *MockServiceDiscoveryAPIMockRecorder) CreateServiceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateServiceWithContext", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).CreateServiceWithContext), varargs...) +} + +// DeleteNamespace mocks base method. +func (m *MockServiceDiscoveryAPI) DeleteNamespace(arg0 *servicediscovery.DeleteNamespaceInput) (*servicediscovery.DeleteNamespaceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteNamespace", arg0) + ret0, _ := ret[0].(*servicediscovery.DeleteNamespaceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteNamespace indicates an expected call of DeleteNamespace. +func (mr *MockServiceDiscoveryAPIMockRecorder) DeleteNamespace(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteNamespace", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).DeleteNamespace), arg0) +} + +// DeleteNamespaceRequest mocks base method. +func (m *MockServiceDiscoveryAPI) DeleteNamespaceRequest(arg0 *servicediscovery.DeleteNamespaceInput) (*request.Request, *servicediscovery.DeleteNamespaceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteNamespaceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*servicediscovery.DeleteNamespaceOutput) + return ret0, ret1 +} + +// DeleteNamespaceRequest indicates an expected call of DeleteNamespaceRequest. +func (mr *MockServiceDiscoveryAPIMockRecorder) DeleteNamespaceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteNamespaceRequest", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).DeleteNamespaceRequest), arg0) +} + +// DeleteNamespaceWithContext mocks base method. +func (m *MockServiceDiscoveryAPI) DeleteNamespaceWithContext(arg0 aws.Context, arg1 *servicediscovery.DeleteNamespaceInput, arg2 ...request.Option) (*servicediscovery.DeleteNamespaceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteNamespaceWithContext", varargs...) + ret0, _ := ret[0].(*servicediscovery.DeleteNamespaceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteNamespaceWithContext indicates an expected call of DeleteNamespaceWithContext. +func (mr *MockServiceDiscoveryAPIMockRecorder) DeleteNamespaceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteNamespaceWithContext", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).DeleteNamespaceWithContext), varargs...) +} + +// DeleteService mocks base method. +func (m *MockServiceDiscoveryAPI) DeleteService(arg0 *servicediscovery.DeleteServiceInput) (*servicediscovery.DeleteServiceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteService", arg0) + ret0, _ := ret[0].(*servicediscovery.DeleteServiceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteService indicates an expected call of DeleteService. +func (mr *MockServiceDiscoveryAPIMockRecorder) DeleteService(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteService", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).DeleteService), arg0) +} + +// DeleteServiceRequest mocks base method. +func (m *MockServiceDiscoveryAPI) DeleteServiceRequest(arg0 *servicediscovery.DeleteServiceInput) (*request.Request, *servicediscovery.DeleteServiceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteServiceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*servicediscovery.DeleteServiceOutput) + return ret0, ret1 +} + +// DeleteServiceRequest indicates an expected call of DeleteServiceRequest. +func (mr *MockServiceDiscoveryAPIMockRecorder) DeleteServiceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteServiceRequest", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).DeleteServiceRequest), arg0) +} + +// DeleteServiceWithContext mocks base method. +func (m *MockServiceDiscoveryAPI) DeleteServiceWithContext(arg0 aws.Context, arg1 *servicediscovery.DeleteServiceInput, arg2 ...request.Option) (*servicediscovery.DeleteServiceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteServiceWithContext", varargs...) + ret0, _ := ret[0].(*servicediscovery.DeleteServiceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteServiceWithContext indicates an expected call of DeleteServiceWithContext. +func (mr *MockServiceDiscoveryAPIMockRecorder) DeleteServiceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteServiceWithContext", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).DeleteServiceWithContext), varargs...) +} + +// DeregisterInstance mocks base method. +func (m *MockServiceDiscoveryAPI) DeregisterInstance(arg0 *servicediscovery.DeregisterInstanceInput) (*servicediscovery.DeregisterInstanceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeregisterInstance", arg0) + ret0, _ := ret[0].(*servicediscovery.DeregisterInstanceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeregisterInstance indicates an expected call of DeregisterInstance. +func (mr *MockServiceDiscoveryAPIMockRecorder) DeregisterInstance(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeregisterInstance", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).DeregisterInstance), arg0) +} + +// DeregisterInstanceRequest mocks base method. +func (m *MockServiceDiscoveryAPI) DeregisterInstanceRequest(arg0 *servicediscovery.DeregisterInstanceInput) (*request.Request, *servicediscovery.DeregisterInstanceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeregisterInstanceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*servicediscovery.DeregisterInstanceOutput) + return ret0, ret1 +} + +// DeregisterInstanceRequest indicates an expected call of DeregisterInstanceRequest. +func (mr *MockServiceDiscoveryAPIMockRecorder) DeregisterInstanceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeregisterInstanceRequest", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).DeregisterInstanceRequest), arg0) +} + +// DeregisterInstanceWithContext mocks base method. +func (m *MockServiceDiscoveryAPI) DeregisterInstanceWithContext(arg0 aws.Context, arg1 *servicediscovery.DeregisterInstanceInput, arg2 ...request.Option) (*servicediscovery.DeregisterInstanceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeregisterInstanceWithContext", varargs...) + ret0, _ := ret[0].(*servicediscovery.DeregisterInstanceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeregisterInstanceWithContext indicates an expected call of DeregisterInstanceWithContext. +func (mr *MockServiceDiscoveryAPIMockRecorder) DeregisterInstanceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeregisterInstanceWithContext", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).DeregisterInstanceWithContext), varargs...) +} + +// DiscoverInstances mocks base method. +func (m *MockServiceDiscoveryAPI) DiscoverInstances(arg0 *servicediscovery.DiscoverInstancesInput) (*servicediscovery.DiscoverInstancesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DiscoverInstances", arg0) + ret0, _ := ret[0].(*servicediscovery.DiscoverInstancesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DiscoverInstances indicates an expected call of DiscoverInstances. +func (mr *MockServiceDiscoveryAPIMockRecorder) DiscoverInstances(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DiscoverInstances", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).DiscoverInstances), arg0) +} + +// DiscoverInstancesRequest mocks base method. +func (m *MockServiceDiscoveryAPI) DiscoverInstancesRequest(arg0 *servicediscovery.DiscoverInstancesInput) (*request.Request, *servicediscovery.DiscoverInstancesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DiscoverInstancesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*servicediscovery.DiscoverInstancesOutput) + return ret0, ret1 +} + +// DiscoverInstancesRequest indicates an expected call of DiscoverInstancesRequest. +func (mr *MockServiceDiscoveryAPIMockRecorder) DiscoverInstancesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DiscoverInstancesRequest", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).DiscoverInstancesRequest), arg0) +} + +// DiscoverInstancesRevision mocks base method. +func (m *MockServiceDiscoveryAPI) DiscoverInstancesRevision(arg0 *servicediscovery.DiscoverInstancesRevisionInput) (*servicediscovery.DiscoverInstancesRevisionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DiscoverInstancesRevision", arg0) + ret0, _ := ret[0].(*servicediscovery.DiscoverInstancesRevisionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DiscoverInstancesRevision indicates an expected call of DiscoverInstancesRevision. +func (mr *MockServiceDiscoveryAPIMockRecorder) DiscoverInstancesRevision(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DiscoverInstancesRevision", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).DiscoverInstancesRevision), arg0) +} + +// DiscoverInstancesRevisionRequest mocks base method. +func (m *MockServiceDiscoveryAPI) DiscoverInstancesRevisionRequest(arg0 *servicediscovery.DiscoverInstancesRevisionInput) (*request.Request, *servicediscovery.DiscoverInstancesRevisionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DiscoverInstancesRevisionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*servicediscovery.DiscoverInstancesRevisionOutput) + return ret0, ret1 +} + +// DiscoverInstancesRevisionRequest indicates an expected call of DiscoverInstancesRevisionRequest. +func (mr *MockServiceDiscoveryAPIMockRecorder) DiscoverInstancesRevisionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DiscoverInstancesRevisionRequest", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).DiscoverInstancesRevisionRequest), arg0) +} + +// DiscoverInstancesRevisionWithContext mocks base method. +func (m *MockServiceDiscoveryAPI) DiscoverInstancesRevisionWithContext(arg0 aws.Context, arg1 *servicediscovery.DiscoverInstancesRevisionInput, arg2 ...request.Option) (*servicediscovery.DiscoverInstancesRevisionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DiscoverInstancesRevisionWithContext", varargs...) + ret0, _ := ret[0].(*servicediscovery.DiscoverInstancesRevisionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DiscoverInstancesRevisionWithContext indicates an expected call of DiscoverInstancesRevisionWithContext. +func (mr *MockServiceDiscoveryAPIMockRecorder) DiscoverInstancesRevisionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DiscoverInstancesRevisionWithContext", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).DiscoverInstancesRevisionWithContext), varargs...) +} + +// DiscoverInstancesWithContext mocks base method. +func (m *MockServiceDiscoveryAPI) DiscoverInstancesWithContext(arg0 aws.Context, arg1 *servicediscovery.DiscoverInstancesInput, arg2 ...request.Option) (*servicediscovery.DiscoverInstancesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DiscoverInstancesWithContext", varargs...) + ret0, _ := ret[0].(*servicediscovery.DiscoverInstancesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DiscoverInstancesWithContext indicates an expected call of DiscoverInstancesWithContext. +func (mr *MockServiceDiscoveryAPIMockRecorder) DiscoverInstancesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DiscoverInstancesWithContext", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).DiscoverInstancesWithContext), varargs...) +} + +// GetInstance mocks base method. +func (m *MockServiceDiscoveryAPI) GetInstance(arg0 *servicediscovery.GetInstanceInput) (*servicediscovery.GetInstanceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetInstance", arg0) + ret0, _ := ret[0].(*servicediscovery.GetInstanceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetInstance indicates an expected call of GetInstance. +func (mr *MockServiceDiscoveryAPIMockRecorder) GetInstance(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInstance", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).GetInstance), arg0) +} + +// GetInstanceRequest mocks base method. +func (m *MockServiceDiscoveryAPI) GetInstanceRequest(arg0 *servicediscovery.GetInstanceInput) (*request.Request, *servicediscovery.GetInstanceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetInstanceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*servicediscovery.GetInstanceOutput) + return ret0, ret1 +} + +// GetInstanceRequest indicates an expected call of GetInstanceRequest. +func (mr *MockServiceDiscoveryAPIMockRecorder) GetInstanceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInstanceRequest", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).GetInstanceRequest), arg0) +} + +// GetInstanceWithContext mocks base method. +func (m *MockServiceDiscoveryAPI) GetInstanceWithContext(arg0 aws.Context, arg1 *servicediscovery.GetInstanceInput, arg2 ...request.Option) (*servicediscovery.GetInstanceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetInstanceWithContext", varargs...) + ret0, _ := ret[0].(*servicediscovery.GetInstanceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetInstanceWithContext indicates an expected call of GetInstanceWithContext. +func (mr *MockServiceDiscoveryAPIMockRecorder) GetInstanceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInstanceWithContext", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).GetInstanceWithContext), varargs...) +} + +// GetInstancesHealthStatus mocks base method. +func (m *MockServiceDiscoveryAPI) GetInstancesHealthStatus(arg0 *servicediscovery.GetInstancesHealthStatusInput) (*servicediscovery.GetInstancesHealthStatusOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetInstancesHealthStatus", arg0) + ret0, _ := ret[0].(*servicediscovery.GetInstancesHealthStatusOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetInstancesHealthStatus indicates an expected call of GetInstancesHealthStatus. +func (mr *MockServiceDiscoveryAPIMockRecorder) GetInstancesHealthStatus(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInstancesHealthStatus", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).GetInstancesHealthStatus), arg0) +} + +// GetInstancesHealthStatusPages mocks base method. +func (m *MockServiceDiscoveryAPI) GetInstancesHealthStatusPages(arg0 *servicediscovery.GetInstancesHealthStatusInput, arg1 func(*servicediscovery.GetInstancesHealthStatusOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetInstancesHealthStatusPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetInstancesHealthStatusPages indicates an expected call of GetInstancesHealthStatusPages. +func (mr *MockServiceDiscoveryAPIMockRecorder) GetInstancesHealthStatusPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInstancesHealthStatusPages", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).GetInstancesHealthStatusPages), arg0, arg1) +} + +// GetInstancesHealthStatusPagesWithContext mocks base method. +func (m *MockServiceDiscoveryAPI) GetInstancesHealthStatusPagesWithContext(arg0 aws.Context, arg1 *servicediscovery.GetInstancesHealthStatusInput, arg2 func(*servicediscovery.GetInstancesHealthStatusOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetInstancesHealthStatusPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// GetInstancesHealthStatusPagesWithContext indicates an expected call of GetInstancesHealthStatusPagesWithContext. +func (mr *MockServiceDiscoveryAPIMockRecorder) GetInstancesHealthStatusPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInstancesHealthStatusPagesWithContext", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).GetInstancesHealthStatusPagesWithContext), varargs...) +} + +// GetInstancesHealthStatusRequest mocks base method. +func (m *MockServiceDiscoveryAPI) GetInstancesHealthStatusRequest(arg0 *servicediscovery.GetInstancesHealthStatusInput) (*request.Request, *servicediscovery.GetInstancesHealthStatusOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetInstancesHealthStatusRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*servicediscovery.GetInstancesHealthStatusOutput) + return ret0, ret1 +} + +// GetInstancesHealthStatusRequest indicates an expected call of GetInstancesHealthStatusRequest. +func (mr *MockServiceDiscoveryAPIMockRecorder) GetInstancesHealthStatusRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInstancesHealthStatusRequest", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).GetInstancesHealthStatusRequest), arg0) +} + +// GetInstancesHealthStatusWithContext mocks base method. +func (m *MockServiceDiscoveryAPI) GetInstancesHealthStatusWithContext(arg0 aws.Context, arg1 *servicediscovery.GetInstancesHealthStatusInput, arg2 ...request.Option) (*servicediscovery.GetInstancesHealthStatusOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetInstancesHealthStatusWithContext", varargs...) + ret0, _ := ret[0].(*servicediscovery.GetInstancesHealthStatusOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetInstancesHealthStatusWithContext indicates an expected call of GetInstancesHealthStatusWithContext. +func (mr *MockServiceDiscoveryAPIMockRecorder) GetInstancesHealthStatusWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInstancesHealthStatusWithContext", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).GetInstancesHealthStatusWithContext), varargs...) +} + +// GetNamespace mocks base method. +func (m *MockServiceDiscoveryAPI) GetNamespace(arg0 *servicediscovery.GetNamespaceInput) (*servicediscovery.GetNamespaceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetNamespace", arg0) + ret0, _ := ret[0].(*servicediscovery.GetNamespaceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetNamespace indicates an expected call of GetNamespace. +func (mr *MockServiceDiscoveryAPIMockRecorder) GetNamespace(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNamespace", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).GetNamespace), arg0) +} + +// GetNamespaceRequest mocks base method. +func (m *MockServiceDiscoveryAPI) GetNamespaceRequest(arg0 *servicediscovery.GetNamespaceInput) (*request.Request, *servicediscovery.GetNamespaceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetNamespaceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*servicediscovery.GetNamespaceOutput) + return ret0, ret1 +} + +// GetNamespaceRequest indicates an expected call of GetNamespaceRequest. +func (mr *MockServiceDiscoveryAPIMockRecorder) GetNamespaceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNamespaceRequest", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).GetNamespaceRequest), arg0) +} + +// GetNamespaceWithContext mocks base method. +func (m *MockServiceDiscoveryAPI) GetNamespaceWithContext(arg0 aws.Context, arg1 *servicediscovery.GetNamespaceInput, arg2 ...request.Option) (*servicediscovery.GetNamespaceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetNamespaceWithContext", varargs...) + ret0, _ := ret[0].(*servicediscovery.GetNamespaceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetNamespaceWithContext indicates an expected call of GetNamespaceWithContext. +func (mr *MockServiceDiscoveryAPIMockRecorder) GetNamespaceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNamespaceWithContext", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).GetNamespaceWithContext), varargs...) +} + +// GetOperation mocks base method. +func (m *MockServiceDiscoveryAPI) GetOperation(arg0 *servicediscovery.GetOperationInput) (*servicediscovery.GetOperationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetOperation", arg0) + ret0, _ := ret[0].(*servicediscovery.GetOperationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetOperation indicates an expected call of GetOperation. +func (mr *MockServiceDiscoveryAPIMockRecorder) GetOperation(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOperation", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).GetOperation), arg0) +} + +// GetOperationRequest mocks base method. +func (m *MockServiceDiscoveryAPI) GetOperationRequest(arg0 *servicediscovery.GetOperationInput) (*request.Request, *servicediscovery.GetOperationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetOperationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*servicediscovery.GetOperationOutput) + return ret0, ret1 +} + +// GetOperationRequest indicates an expected call of GetOperationRequest. +func (mr *MockServiceDiscoveryAPIMockRecorder) GetOperationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOperationRequest", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).GetOperationRequest), arg0) +} + +// GetOperationWithContext mocks base method. +func (m *MockServiceDiscoveryAPI) GetOperationWithContext(arg0 aws.Context, arg1 *servicediscovery.GetOperationInput, arg2 ...request.Option) (*servicediscovery.GetOperationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetOperationWithContext", varargs...) + ret0, _ := ret[0].(*servicediscovery.GetOperationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetOperationWithContext indicates an expected call of GetOperationWithContext. +func (mr *MockServiceDiscoveryAPIMockRecorder) GetOperationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOperationWithContext", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).GetOperationWithContext), varargs...) +} + +// GetService mocks base method. +func (m *MockServiceDiscoveryAPI) GetService(arg0 *servicediscovery.GetServiceInput) (*servicediscovery.GetServiceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetService", arg0) + ret0, _ := ret[0].(*servicediscovery.GetServiceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetService indicates an expected call of GetService. +func (mr *MockServiceDiscoveryAPIMockRecorder) GetService(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetService", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).GetService), arg0) +} + +// GetServiceRequest mocks base method. +func (m *MockServiceDiscoveryAPI) GetServiceRequest(arg0 *servicediscovery.GetServiceInput) (*request.Request, *servicediscovery.GetServiceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetServiceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*servicediscovery.GetServiceOutput) + return ret0, ret1 +} + +// GetServiceRequest indicates an expected call of GetServiceRequest. +func (mr *MockServiceDiscoveryAPIMockRecorder) GetServiceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceRequest", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).GetServiceRequest), arg0) +} + +// GetServiceWithContext mocks base method. +func (m *MockServiceDiscoveryAPI) GetServiceWithContext(arg0 aws.Context, arg1 *servicediscovery.GetServiceInput, arg2 ...request.Option) (*servicediscovery.GetServiceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetServiceWithContext", varargs...) + ret0, _ := ret[0].(*servicediscovery.GetServiceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetServiceWithContext indicates an expected call of GetServiceWithContext. +func (mr *MockServiceDiscoveryAPIMockRecorder) GetServiceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceWithContext", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).GetServiceWithContext), varargs...) +} + +// ListInstances mocks base method. +func (m *MockServiceDiscoveryAPI) ListInstances(arg0 *servicediscovery.ListInstancesInput) (*servicediscovery.ListInstancesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListInstances", arg0) + ret0, _ := ret[0].(*servicediscovery.ListInstancesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListInstances indicates an expected call of ListInstances. +func (mr *MockServiceDiscoveryAPIMockRecorder) ListInstances(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInstances", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).ListInstances), arg0) +} + +// ListInstancesPages mocks base method. +func (m *MockServiceDiscoveryAPI) ListInstancesPages(arg0 *servicediscovery.ListInstancesInput, arg1 func(*servicediscovery.ListInstancesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListInstancesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListInstancesPages indicates an expected call of ListInstancesPages. +func (mr *MockServiceDiscoveryAPIMockRecorder) ListInstancesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInstancesPages", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).ListInstancesPages), arg0, arg1) +} + +// ListInstancesPagesWithContext mocks base method. +func (m *MockServiceDiscoveryAPI) ListInstancesPagesWithContext(arg0 aws.Context, arg1 *servicediscovery.ListInstancesInput, arg2 func(*servicediscovery.ListInstancesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListInstancesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListInstancesPagesWithContext indicates an expected call of ListInstancesPagesWithContext. +func (mr *MockServiceDiscoveryAPIMockRecorder) ListInstancesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInstancesPagesWithContext", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).ListInstancesPagesWithContext), varargs...) +} + +// ListInstancesRequest mocks base method. +func (m *MockServiceDiscoveryAPI) ListInstancesRequest(arg0 *servicediscovery.ListInstancesInput) (*request.Request, *servicediscovery.ListInstancesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListInstancesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*servicediscovery.ListInstancesOutput) + return ret0, ret1 +} + +// ListInstancesRequest indicates an expected call of ListInstancesRequest. +func (mr *MockServiceDiscoveryAPIMockRecorder) ListInstancesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInstancesRequest", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).ListInstancesRequest), arg0) +} + +// ListInstancesWithContext mocks base method. +func (m *MockServiceDiscoveryAPI) ListInstancesWithContext(arg0 aws.Context, arg1 *servicediscovery.ListInstancesInput, arg2 ...request.Option) (*servicediscovery.ListInstancesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListInstancesWithContext", varargs...) + ret0, _ := ret[0].(*servicediscovery.ListInstancesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListInstancesWithContext indicates an expected call of ListInstancesWithContext. +func (mr *MockServiceDiscoveryAPIMockRecorder) ListInstancesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInstancesWithContext", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).ListInstancesWithContext), varargs...) +} + +// ListNamespaces mocks base method. +func (m *MockServiceDiscoveryAPI) ListNamespaces(arg0 *servicediscovery.ListNamespacesInput) (*servicediscovery.ListNamespacesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListNamespaces", arg0) + ret0, _ := ret[0].(*servicediscovery.ListNamespacesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListNamespaces indicates an expected call of ListNamespaces. +func (mr *MockServiceDiscoveryAPIMockRecorder) ListNamespaces(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListNamespaces", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).ListNamespaces), arg0) +} + +// ListNamespacesPages mocks base method. +func (m *MockServiceDiscoveryAPI) ListNamespacesPages(arg0 *servicediscovery.ListNamespacesInput, arg1 func(*servicediscovery.ListNamespacesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListNamespacesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListNamespacesPages indicates an expected call of ListNamespacesPages. +func (mr *MockServiceDiscoveryAPIMockRecorder) ListNamespacesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListNamespacesPages", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).ListNamespacesPages), arg0, arg1) +} + +// ListNamespacesPagesWithContext mocks base method. +func (m *MockServiceDiscoveryAPI) ListNamespacesPagesWithContext(arg0 aws.Context, arg1 *servicediscovery.ListNamespacesInput, arg2 func(*servicediscovery.ListNamespacesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListNamespacesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListNamespacesPagesWithContext indicates an expected call of ListNamespacesPagesWithContext. +func (mr *MockServiceDiscoveryAPIMockRecorder) ListNamespacesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListNamespacesPagesWithContext", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).ListNamespacesPagesWithContext), varargs...) +} + +// ListNamespacesRequest mocks base method. +func (m *MockServiceDiscoveryAPI) ListNamespacesRequest(arg0 *servicediscovery.ListNamespacesInput) (*request.Request, *servicediscovery.ListNamespacesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListNamespacesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*servicediscovery.ListNamespacesOutput) + return ret0, ret1 +} + +// ListNamespacesRequest indicates an expected call of ListNamespacesRequest. +func (mr *MockServiceDiscoveryAPIMockRecorder) ListNamespacesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListNamespacesRequest", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).ListNamespacesRequest), arg0) +} + +// ListNamespacesWithContext mocks base method. +func (m *MockServiceDiscoveryAPI) ListNamespacesWithContext(arg0 aws.Context, arg1 *servicediscovery.ListNamespacesInput, arg2 ...request.Option) (*servicediscovery.ListNamespacesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListNamespacesWithContext", varargs...) + ret0, _ := ret[0].(*servicediscovery.ListNamespacesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListNamespacesWithContext indicates an expected call of ListNamespacesWithContext. +func (mr *MockServiceDiscoveryAPIMockRecorder) ListNamespacesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListNamespacesWithContext", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).ListNamespacesWithContext), varargs...) +} + +// ListOperations mocks base method. +func (m *MockServiceDiscoveryAPI) ListOperations(arg0 *servicediscovery.ListOperationsInput) (*servicediscovery.ListOperationsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListOperations", arg0) + ret0, _ := ret[0].(*servicediscovery.ListOperationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListOperations indicates an expected call of ListOperations. +func (mr *MockServiceDiscoveryAPIMockRecorder) ListOperations(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOperations", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).ListOperations), arg0) +} + +// ListOperationsPages mocks base method. +func (m *MockServiceDiscoveryAPI) ListOperationsPages(arg0 *servicediscovery.ListOperationsInput, arg1 func(*servicediscovery.ListOperationsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListOperationsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListOperationsPages indicates an expected call of ListOperationsPages. +func (mr *MockServiceDiscoveryAPIMockRecorder) ListOperationsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOperationsPages", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).ListOperationsPages), arg0, arg1) +} + +// ListOperationsPagesWithContext mocks base method. +func (m *MockServiceDiscoveryAPI) ListOperationsPagesWithContext(arg0 aws.Context, arg1 *servicediscovery.ListOperationsInput, arg2 func(*servicediscovery.ListOperationsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListOperationsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListOperationsPagesWithContext indicates an expected call of ListOperationsPagesWithContext. +func (mr *MockServiceDiscoveryAPIMockRecorder) ListOperationsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOperationsPagesWithContext", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).ListOperationsPagesWithContext), varargs...) +} + +// ListOperationsRequest mocks base method. +func (m *MockServiceDiscoveryAPI) ListOperationsRequest(arg0 *servicediscovery.ListOperationsInput) (*request.Request, *servicediscovery.ListOperationsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListOperationsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*servicediscovery.ListOperationsOutput) + return ret0, ret1 +} + +// ListOperationsRequest indicates an expected call of ListOperationsRequest. +func (mr *MockServiceDiscoveryAPIMockRecorder) ListOperationsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOperationsRequest", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).ListOperationsRequest), arg0) +} + +// ListOperationsWithContext mocks base method. +func (m *MockServiceDiscoveryAPI) ListOperationsWithContext(arg0 aws.Context, arg1 *servicediscovery.ListOperationsInput, arg2 ...request.Option) (*servicediscovery.ListOperationsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListOperationsWithContext", varargs...) + ret0, _ := ret[0].(*servicediscovery.ListOperationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListOperationsWithContext indicates an expected call of ListOperationsWithContext. +func (mr *MockServiceDiscoveryAPIMockRecorder) ListOperationsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOperationsWithContext", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).ListOperationsWithContext), varargs...) +} + +// ListServices mocks base method. +func (m *MockServiceDiscoveryAPI) ListServices(arg0 *servicediscovery.ListServicesInput) (*servicediscovery.ListServicesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListServices", arg0) + ret0, _ := ret[0].(*servicediscovery.ListServicesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListServices indicates an expected call of ListServices. +func (mr *MockServiceDiscoveryAPIMockRecorder) ListServices(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServices", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).ListServices), arg0) +} + +// ListServicesPages mocks base method. +func (m *MockServiceDiscoveryAPI) ListServicesPages(arg0 *servicediscovery.ListServicesInput, arg1 func(*servicediscovery.ListServicesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListServicesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListServicesPages indicates an expected call of ListServicesPages. +func (mr *MockServiceDiscoveryAPIMockRecorder) ListServicesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServicesPages", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).ListServicesPages), arg0, arg1) +} + +// ListServicesPagesWithContext mocks base method. +func (m *MockServiceDiscoveryAPI) ListServicesPagesWithContext(arg0 aws.Context, arg1 *servicediscovery.ListServicesInput, arg2 func(*servicediscovery.ListServicesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListServicesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListServicesPagesWithContext indicates an expected call of ListServicesPagesWithContext. +func (mr *MockServiceDiscoveryAPIMockRecorder) ListServicesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServicesPagesWithContext", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).ListServicesPagesWithContext), varargs...) +} + +// ListServicesRequest mocks base method. +func (m *MockServiceDiscoveryAPI) ListServicesRequest(arg0 *servicediscovery.ListServicesInput) (*request.Request, *servicediscovery.ListServicesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListServicesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*servicediscovery.ListServicesOutput) + return ret0, ret1 +} + +// ListServicesRequest indicates an expected call of ListServicesRequest. +func (mr *MockServiceDiscoveryAPIMockRecorder) ListServicesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServicesRequest", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).ListServicesRequest), arg0) +} + +// ListServicesWithContext mocks base method. +func (m *MockServiceDiscoveryAPI) ListServicesWithContext(arg0 aws.Context, arg1 *servicediscovery.ListServicesInput, arg2 ...request.Option) (*servicediscovery.ListServicesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListServicesWithContext", varargs...) + ret0, _ := ret[0].(*servicediscovery.ListServicesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListServicesWithContext indicates an expected call of ListServicesWithContext. +func (mr *MockServiceDiscoveryAPIMockRecorder) ListServicesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServicesWithContext", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).ListServicesWithContext), varargs...) +} + +// ListTagsForResource mocks base method. +func (m *MockServiceDiscoveryAPI) ListTagsForResource(arg0 *servicediscovery.ListTagsForResourceInput) (*servicediscovery.ListTagsForResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTagsForResource", arg0) + ret0, _ := ret[0].(*servicediscovery.ListTagsForResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTagsForResource indicates an expected call of ListTagsForResource. +func (mr *MockServiceDiscoveryAPIMockRecorder) ListTagsForResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsForResource", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).ListTagsForResource), arg0) +} + +// ListTagsForResourceRequest mocks base method. +func (m *MockServiceDiscoveryAPI) ListTagsForResourceRequest(arg0 *servicediscovery.ListTagsForResourceInput) (*request.Request, *servicediscovery.ListTagsForResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTagsForResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*servicediscovery.ListTagsForResourceOutput) + return ret0, ret1 +} + +// ListTagsForResourceRequest indicates an expected call of ListTagsForResourceRequest. +func (mr *MockServiceDiscoveryAPIMockRecorder) ListTagsForResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsForResourceRequest", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).ListTagsForResourceRequest), arg0) +} + +// ListTagsForResourceWithContext mocks base method. +func (m *MockServiceDiscoveryAPI) ListTagsForResourceWithContext(arg0 aws.Context, arg1 *servicediscovery.ListTagsForResourceInput, arg2 ...request.Option) (*servicediscovery.ListTagsForResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTagsForResourceWithContext", varargs...) + ret0, _ := ret[0].(*servicediscovery.ListTagsForResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTagsForResourceWithContext indicates an expected call of ListTagsForResourceWithContext. +func (mr *MockServiceDiscoveryAPIMockRecorder) ListTagsForResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsForResourceWithContext", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).ListTagsForResourceWithContext), varargs...) +} + +// RegisterInstance mocks base method. +func (m *MockServiceDiscoveryAPI) RegisterInstance(arg0 *servicediscovery.RegisterInstanceInput) (*servicediscovery.RegisterInstanceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RegisterInstance", arg0) + ret0, _ := ret[0].(*servicediscovery.RegisterInstanceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RegisterInstance indicates an expected call of RegisterInstance. +func (mr *MockServiceDiscoveryAPIMockRecorder) RegisterInstance(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterInstance", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).RegisterInstance), arg0) +} + +// RegisterInstanceRequest mocks base method. +func (m *MockServiceDiscoveryAPI) RegisterInstanceRequest(arg0 *servicediscovery.RegisterInstanceInput) (*request.Request, *servicediscovery.RegisterInstanceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RegisterInstanceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*servicediscovery.RegisterInstanceOutput) + return ret0, ret1 +} + +// RegisterInstanceRequest indicates an expected call of RegisterInstanceRequest. +func (mr *MockServiceDiscoveryAPIMockRecorder) RegisterInstanceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterInstanceRequest", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).RegisterInstanceRequest), arg0) +} + +// RegisterInstanceWithContext mocks base method. +func (m *MockServiceDiscoveryAPI) RegisterInstanceWithContext(arg0 aws.Context, arg1 *servicediscovery.RegisterInstanceInput, arg2 ...request.Option) (*servicediscovery.RegisterInstanceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RegisterInstanceWithContext", varargs...) + ret0, _ := ret[0].(*servicediscovery.RegisterInstanceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RegisterInstanceWithContext indicates an expected call of RegisterInstanceWithContext. +func (mr *MockServiceDiscoveryAPIMockRecorder) RegisterInstanceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterInstanceWithContext", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).RegisterInstanceWithContext), varargs...) +} + +// TagResource mocks base method. +func (m *MockServiceDiscoveryAPI) TagResource(arg0 *servicediscovery.TagResourceInput) (*servicediscovery.TagResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagResource", arg0) + ret0, _ := ret[0].(*servicediscovery.TagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagResource indicates an expected call of TagResource. +func (mr *MockServiceDiscoveryAPIMockRecorder) TagResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagResource", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).TagResource), arg0) +} + +// TagResourceRequest mocks base method. +func (m *MockServiceDiscoveryAPI) TagResourceRequest(arg0 *servicediscovery.TagResourceInput) (*request.Request, *servicediscovery.TagResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*servicediscovery.TagResourceOutput) + return ret0, ret1 +} + +// TagResourceRequest indicates an expected call of TagResourceRequest. +func (mr *MockServiceDiscoveryAPIMockRecorder) TagResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagResourceRequest", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).TagResourceRequest), arg0) +} + +// TagResourceWithContext mocks base method. +func (m *MockServiceDiscoveryAPI) TagResourceWithContext(arg0 aws.Context, arg1 *servicediscovery.TagResourceInput, arg2 ...request.Option) (*servicediscovery.TagResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "TagResourceWithContext", varargs...) + ret0, _ := ret[0].(*servicediscovery.TagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagResourceWithContext indicates an expected call of TagResourceWithContext. +func (mr *MockServiceDiscoveryAPIMockRecorder) TagResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagResourceWithContext", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).TagResourceWithContext), varargs...) +} + +// UntagResource mocks base method. +func (m *MockServiceDiscoveryAPI) UntagResource(arg0 *servicediscovery.UntagResourceInput) (*servicediscovery.UntagResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagResource", arg0) + ret0, _ := ret[0].(*servicediscovery.UntagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagResource indicates an expected call of UntagResource. +func (mr *MockServiceDiscoveryAPIMockRecorder) UntagResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagResource", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).UntagResource), arg0) +} + +// UntagResourceRequest mocks base method. +func (m *MockServiceDiscoveryAPI) UntagResourceRequest(arg0 *servicediscovery.UntagResourceInput) (*request.Request, *servicediscovery.UntagResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*servicediscovery.UntagResourceOutput) + return ret0, ret1 +} + +// UntagResourceRequest indicates an expected call of UntagResourceRequest. +func (mr *MockServiceDiscoveryAPIMockRecorder) UntagResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagResourceRequest", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).UntagResourceRequest), arg0) +} + +// UntagResourceWithContext mocks base method. +func (m *MockServiceDiscoveryAPI) UntagResourceWithContext(arg0 aws.Context, arg1 *servicediscovery.UntagResourceInput, arg2 ...request.Option) (*servicediscovery.UntagResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UntagResourceWithContext", varargs...) + ret0, _ := ret[0].(*servicediscovery.UntagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagResourceWithContext indicates an expected call of UntagResourceWithContext. +func (mr *MockServiceDiscoveryAPIMockRecorder) UntagResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagResourceWithContext", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).UntagResourceWithContext), varargs...) +} + +// UpdateHttpNamespace mocks base method. +func (m *MockServiceDiscoveryAPI) UpdateHttpNamespace(arg0 *servicediscovery.UpdateHttpNamespaceInput) (*servicediscovery.UpdateHttpNamespaceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateHttpNamespace", arg0) + ret0, _ := ret[0].(*servicediscovery.UpdateHttpNamespaceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateHttpNamespace indicates an expected call of UpdateHttpNamespace. +func (mr *MockServiceDiscoveryAPIMockRecorder) UpdateHttpNamespace(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateHttpNamespace", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).UpdateHttpNamespace), arg0) +} + +// UpdateHttpNamespaceRequest mocks base method. +func (m *MockServiceDiscoveryAPI) UpdateHttpNamespaceRequest(arg0 *servicediscovery.UpdateHttpNamespaceInput) (*request.Request, *servicediscovery.UpdateHttpNamespaceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateHttpNamespaceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*servicediscovery.UpdateHttpNamespaceOutput) + return ret0, ret1 +} + +// UpdateHttpNamespaceRequest indicates an expected call of UpdateHttpNamespaceRequest. +func (mr *MockServiceDiscoveryAPIMockRecorder) UpdateHttpNamespaceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateHttpNamespaceRequest", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).UpdateHttpNamespaceRequest), arg0) +} + +// UpdateHttpNamespaceWithContext mocks base method. +func (m *MockServiceDiscoveryAPI) UpdateHttpNamespaceWithContext(arg0 aws.Context, arg1 *servicediscovery.UpdateHttpNamespaceInput, arg2 ...request.Option) (*servicediscovery.UpdateHttpNamespaceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateHttpNamespaceWithContext", varargs...) + ret0, _ := ret[0].(*servicediscovery.UpdateHttpNamespaceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateHttpNamespaceWithContext indicates an expected call of UpdateHttpNamespaceWithContext. +func (mr *MockServiceDiscoveryAPIMockRecorder) UpdateHttpNamespaceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateHttpNamespaceWithContext", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).UpdateHttpNamespaceWithContext), varargs...) +} + +// UpdateInstanceCustomHealthStatus mocks base method. +func (m *MockServiceDiscoveryAPI) UpdateInstanceCustomHealthStatus(arg0 *servicediscovery.UpdateInstanceCustomHealthStatusInput) (*servicediscovery.UpdateInstanceCustomHealthStatusOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateInstanceCustomHealthStatus", arg0) + ret0, _ := ret[0].(*servicediscovery.UpdateInstanceCustomHealthStatusOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateInstanceCustomHealthStatus indicates an expected call of UpdateInstanceCustomHealthStatus. +func (mr *MockServiceDiscoveryAPIMockRecorder) UpdateInstanceCustomHealthStatus(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateInstanceCustomHealthStatus", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).UpdateInstanceCustomHealthStatus), arg0) +} + +// UpdateInstanceCustomHealthStatusRequest mocks base method. +func (m *MockServiceDiscoveryAPI) UpdateInstanceCustomHealthStatusRequest(arg0 *servicediscovery.UpdateInstanceCustomHealthStatusInput) (*request.Request, *servicediscovery.UpdateInstanceCustomHealthStatusOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateInstanceCustomHealthStatusRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*servicediscovery.UpdateInstanceCustomHealthStatusOutput) + return ret0, ret1 +} + +// UpdateInstanceCustomHealthStatusRequest indicates an expected call of UpdateInstanceCustomHealthStatusRequest. +func (mr *MockServiceDiscoveryAPIMockRecorder) UpdateInstanceCustomHealthStatusRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateInstanceCustomHealthStatusRequest", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).UpdateInstanceCustomHealthStatusRequest), arg0) +} + +// UpdateInstanceCustomHealthStatusWithContext mocks base method. +func (m *MockServiceDiscoveryAPI) UpdateInstanceCustomHealthStatusWithContext(arg0 aws.Context, arg1 *servicediscovery.UpdateInstanceCustomHealthStatusInput, arg2 ...request.Option) (*servicediscovery.UpdateInstanceCustomHealthStatusOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateInstanceCustomHealthStatusWithContext", varargs...) + ret0, _ := ret[0].(*servicediscovery.UpdateInstanceCustomHealthStatusOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateInstanceCustomHealthStatusWithContext indicates an expected call of UpdateInstanceCustomHealthStatusWithContext. +func (mr *MockServiceDiscoveryAPIMockRecorder) UpdateInstanceCustomHealthStatusWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateInstanceCustomHealthStatusWithContext", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).UpdateInstanceCustomHealthStatusWithContext), varargs...) +} + +// UpdatePrivateDnsNamespace mocks base method. +func (m *MockServiceDiscoveryAPI) UpdatePrivateDnsNamespace(arg0 *servicediscovery.UpdatePrivateDnsNamespaceInput) (*servicediscovery.UpdatePrivateDnsNamespaceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdatePrivateDnsNamespace", arg0) + ret0, _ := ret[0].(*servicediscovery.UpdatePrivateDnsNamespaceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdatePrivateDnsNamespace indicates an expected call of UpdatePrivateDnsNamespace. +func (mr *MockServiceDiscoveryAPIMockRecorder) UpdatePrivateDnsNamespace(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePrivateDnsNamespace", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).UpdatePrivateDnsNamespace), arg0) +} + +// UpdatePrivateDnsNamespaceRequest mocks base method. +func (m *MockServiceDiscoveryAPI) UpdatePrivateDnsNamespaceRequest(arg0 *servicediscovery.UpdatePrivateDnsNamespaceInput) (*request.Request, *servicediscovery.UpdatePrivateDnsNamespaceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdatePrivateDnsNamespaceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*servicediscovery.UpdatePrivateDnsNamespaceOutput) + return ret0, ret1 +} + +// UpdatePrivateDnsNamespaceRequest indicates an expected call of UpdatePrivateDnsNamespaceRequest. +func (mr *MockServiceDiscoveryAPIMockRecorder) UpdatePrivateDnsNamespaceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePrivateDnsNamespaceRequest", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).UpdatePrivateDnsNamespaceRequest), arg0) +} + +// UpdatePrivateDnsNamespaceWithContext mocks base method. +func (m *MockServiceDiscoveryAPI) UpdatePrivateDnsNamespaceWithContext(arg0 aws.Context, arg1 *servicediscovery.UpdatePrivateDnsNamespaceInput, arg2 ...request.Option) (*servicediscovery.UpdatePrivateDnsNamespaceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdatePrivateDnsNamespaceWithContext", varargs...) + ret0, _ := ret[0].(*servicediscovery.UpdatePrivateDnsNamespaceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdatePrivateDnsNamespaceWithContext indicates an expected call of UpdatePrivateDnsNamespaceWithContext. +func (mr *MockServiceDiscoveryAPIMockRecorder) UpdatePrivateDnsNamespaceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePrivateDnsNamespaceWithContext", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).UpdatePrivateDnsNamespaceWithContext), varargs...) +} + +// UpdatePublicDnsNamespace mocks base method. +func (m *MockServiceDiscoveryAPI) UpdatePublicDnsNamespace(arg0 *servicediscovery.UpdatePublicDnsNamespaceInput) (*servicediscovery.UpdatePublicDnsNamespaceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdatePublicDnsNamespace", arg0) + ret0, _ := ret[0].(*servicediscovery.UpdatePublicDnsNamespaceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdatePublicDnsNamespace indicates an expected call of UpdatePublicDnsNamespace. +func (mr *MockServiceDiscoveryAPIMockRecorder) UpdatePublicDnsNamespace(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePublicDnsNamespace", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).UpdatePublicDnsNamespace), arg0) +} + +// UpdatePublicDnsNamespaceRequest mocks base method. +func (m *MockServiceDiscoveryAPI) UpdatePublicDnsNamespaceRequest(arg0 *servicediscovery.UpdatePublicDnsNamespaceInput) (*request.Request, *servicediscovery.UpdatePublicDnsNamespaceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdatePublicDnsNamespaceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*servicediscovery.UpdatePublicDnsNamespaceOutput) + return ret0, ret1 +} + +// UpdatePublicDnsNamespaceRequest indicates an expected call of UpdatePublicDnsNamespaceRequest. +func (mr *MockServiceDiscoveryAPIMockRecorder) UpdatePublicDnsNamespaceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePublicDnsNamespaceRequest", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).UpdatePublicDnsNamespaceRequest), arg0) +} + +// UpdatePublicDnsNamespaceWithContext mocks base method. +func (m *MockServiceDiscoveryAPI) UpdatePublicDnsNamespaceWithContext(arg0 aws.Context, arg1 *servicediscovery.UpdatePublicDnsNamespaceInput, arg2 ...request.Option) (*servicediscovery.UpdatePublicDnsNamespaceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdatePublicDnsNamespaceWithContext", varargs...) + ret0, _ := ret[0].(*servicediscovery.UpdatePublicDnsNamespaceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdatePublicDnsNamespaceWithContext indicates an expected call of UpdatePublicDnsNamespaceWithContext. +func (mr *MockServiceDiscoveryAPIMockRecorder) UpdatePublicDnsNamespaceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePublicDnsNamespaceWithContext", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).UpdatePublicDnsNamespaceWithContext), varargs...) +} + +// UpdateService mocks base method. +func (m *MockServiceDiscoveryAPI) UpdateService(arg0 *servicediscovery.UpdateServiceInput) (*servicediscovery.UpdateServiceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateService", arg0) + ret0, _ := ret[0].(*servicediscovery.UpdateServiceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateService indicates an expected call of UpdateService. +func (mr *MockServiceDiscoveryAPIMockRecorder) UpdateService(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateService", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).UpdateService), arg0) +} + +// UpdateServiceRequest mocks base method. +func (m *MockServiceDiscoveryAPI) UpdateServiceRequest(arg0 *servicediscovery.UpdateServiceInput) (*request.Request, *servicediscovery.UpdateServiceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateServiceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*servicediscovery.UpdateServiceOutput) + return ret0, ret1 +} + +// UpdateServiceRequest indicates an expected call of UpdateServiceRequest. +func (mr *MockServiceDiscoveryAPIMockRecorder) UpdateServiceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateServiceRequest", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).UpdateServiceRequest), arg0) +} + +// UpdateServiceWithContext mocks base method. +func (m *MockServiceDiscoveryAPI) UpdateServiceWithContext(arg0 aws.Context, arg1 *servicediscovery.UpdateServiceInput, arg2 ...request.Option) (*servicediscovery.UpdateServiceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateServiceWithContext", varargs...) + ret0, _ := ret[0].(*servicediscovery.UpdateServiceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateServiceWithContext indicates an expected call of UpdateServiceWithContext. +func (mr *MockServiceDiscoveryAPIMockRecorder) UpdateServiceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateServiceWithContext", reflect.TypeOf((*MockServiceDiscoveryAPI)(nil).UpdateServiceWithContext), varargs...) +} diff --git a/resources/servicediscovery-namespaces.go b/resources/servicediscovery-namespaces.go index add9a0d8..58d0ecf8 100644 --- a/resources/servicediscovery-namespaces.go +++ b/resources/servicediscovery-namespaces.go @@ -3,11 +3,15 @@ package resources import ( "context" + "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/servicediscovery" + "github.com/aws/aws-sdk-go/service/servicediscovery/servicediscoveryiface" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/pkg/nuke" ) @@ -22,12 +26,20 @@ func init() { }) } -type ServiceDiscoveryNamespaceLister struct{} +type ServiceDiscoveryNamespaceLister struct { + mockSvc servicediscoveryiface.ServiceDiscoveryAPI +} func (l *ServiceDiscoveryNamespaceLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) - svc := servicediscovery.New(opts.Session) + var svc servicediscoveryiface.ServiceDiscoveryAPI + if l.mockSvc != nil { + svc = l.mockSvc + } else { + svc = servicediscovery.New(opts.Session) + } + resources := make([]resource.Resource, 0) params := &servicediscovery.ListNamespacesInput{ @@ -43,9 +55,21 @@ func (l *ServiceDiscoveryNamespaceLister) List(_ context.Context, o interface{}) } for _, namespace := range output.Namespaces { + var tags []*servicediscovery.Tag + tagsOutput, err := svc.ListTagsForResource(&servicediscovery.ListTagsForResourceInput{ + ResourceARN: namespace.Arn, + }) + if err != nil { + logrus.WithError(err).Error("unable to list tags for namespace") + } + if tagsOutput.Tags != nil { + tags = tagsOutput.Tags + } + resources = append(resources, &ServiceDiscoveryNamespace{ - svc: svc, - ID: namespace.Id, + svc: svc, + ID: namespace.Id, + tags: tags, }) } @@ -60,8 +84,9 @@ func (l *ServiceDiscoveryNamespaceLister) List(_ context.Context, o interface{}) } type ServiceDiscoveryNamespace struct { - svc *servicediscovery.ServiceDiscovery - ID *string + svc servicediscoveryiface.ServiceDiscoveryAPI + ID *string + tags []*servicediscovery.Tag } func (f *ServiceDiscoveryNamespace) Remove(_ context.Context) error { @@ -75,3 +100,8 @@ func (f *ServiceDiscoveryNamespace) Remove(_ context.Context) error { func (f *ServiceDiscoveryNamespace) String() string { return *f.ID } + +func (f *ServiceDiscoveryNamespace) Properties() types.Properties { + return types.NewProperties(). + Set("ID", f.ID) +} diff --git a/resources/servicediscovery-namespaces_mock_test.go b/resources/servicediscovery-namespaces_mock_test.go new file mode 100644 index 00000000..4ebfda6f --- /dev/null +++ b/resources/servicediscovery-namespaces_mock_test.go @@ -0,0 +1,136 @@ +package resources + +import ( + "context" + "fmt" + "testing" + + "github.com/golang/mock/gomock" + "github.com/gotidy/ptr" + "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/service/servicediscovery" + + "github.com/ekristen/aws-nuke/mocks/mock_servicediscoveryiface" + + "github.com/ekristen/aws-nuke/pkg/nuke" +) + +func Test_Mock_ServiceDiscoveryNamespace_List(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockSvc := mock_servicediscoveryiface.NewMockServiceDiscoveryAPI(ctrl) + + resource := ServiceDiscoveryNamespaceLister{ + mockSvc: mockSvc, + } + + mockSvc.EXPECT().ListNamespaces(gomock.Any()).Return(&servicediscovery.ListNamespacesOutput{ + Namespaces: []*servicediscovery.NamespaceSummary{ + { + Id: ptr.String("id"), + Arn: ptr.String("arn:aws:servicediscovery:us-west-2:123456789012:namespace/id"), + }, + }, + }, nil) + + mockSvc.EXPECT().ListTagsForResource(gomock.Eq(&servicediscovery.ListTagsForResourceInput{ + ResourceARN: ptr.String("arn:aws:servicediscovery:us-west-2:123456789012:namespace/id"), + })).Return(&servicediscovery.ListTagsForResourceOutput{ + Tags: []*servicediscovery.Tag{ + { + Key: ptr.String("foo"), + Value: ptr.String("bar"), + }, + }, + }, nil) + + resources, err := resource.List(context.TODO(), &nuke.ListerOpts{}) + a.Nil(err) + a.Len(resources, 1) +} + +func Test_Mock_ServiceDiscoveryNamespace_List_NoTags(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockSvc := mock_servicediscoveryiface.NewMockServiceDiscoveryAPI(ctrl) + + resource := ServiceDiscoveryNamespaceLister{ + mockSvc: mockSvc, + } + + mockSvc.EXPECT().ListNamespaces(gomock.Any()).Return(&servicediscovery.ListNamespacesOutput{ + Namespaces: []*servicediscovery.NamespaceSummary{ + { + Id: ptr.String("id"), + Arn: ptr.String("arn:aws:servicediscovery:us-west-2:123456789012:namespace/id"), + }, + }, + }, nil) + + mockSvc.EXPECT().ListTagsForResource(gomock.Eq(&servicediscovery.ListTagsForResourceInput{ + ResourceARN: ptr.String("arn:aws:servicediscovery:us-west-2:123456789012:namespace/id"), + })).Return(&servicediscovery.ListTagsForResourceOutput{}, nil) + + resources, err := resource.List(context.TODO(), &nuke.ListerOpts{}) + a.Nil(err) + a.Len(resources, 1) +} + +func Test_Mock_ServiceDiscoveryNamespace_List_TagError(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockSvc := mock_servicediscoveryiface.NewMockServiceDiscoveryAPI(ctrl) + + resource := ServiceDiscoveryNamespaceLister{ + mockSvc: mockSvc, + } + + mockSvc.EXPECT().ListNamespaces(gomock.Any()).Return(&servicediscovery.ListNamespacesOutput{ + Namespaces: []*servicediscovery.NamespaceSummary{ + { + Id: ptr.String("id"), + Arn: ptr.String("arn:aws:servicediscovery:us-west-2:123456789012:namespace/id"), + }, + }, + }, nil) + + mockSvc.EXPECT().ListTagsForResource(gomock.Eq(&servicediscovery.ListTagsForResourceInput{ + ResourceARN: ptr.String("arn:aws:servicediscovery:us-west-2:123456789012:namespace/id"), + })).Return(&servicediscovery.ListTagsForResourceOutput{}, fmt.Errorf("error")) + + resources, err := resource.List(context.TODO(), &nuke.ListerOpts{}) + a.Nil(err) + a.Len(resources, 1) + + namespace := resources[0].(*ServiceDiscoveryNamespace) + a.Equal("id", namespace.String()) + a.Equal("id", namespace.Properties().Get("ID")) + a.Equal("", namespace.Properties().Get("tag:foo")) +} + +func Test_Mock_ServiceDiscoveryNamespace_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockSvc := mock_servicediscoveryiface.NewMockServiceDiscoveryAPI(ctrl) + + resource := ServiceDiscoveryNamespace{ + svc: mockSvc, + ID: ptr.String("id"), + } + + mockSvc.EXPECT().DeleteNamespace(gomock.Eq(&servicediscovery.DeleteNamespaceInput{ + Id: resource.ID, + })).Return(&servicediscovery.DeleteNamespaceOutput{}, nil) + + err := resource.Remove(context.TODO()) + a.Nil(err) +} diff --git a/resources/servicediscovery_mock_test.go b/resources/servicediscovery_mock_test.go new file mode 100644 index 00000000..2943a155 --- /dev/null +++ b/resources/servicediscovery_mock_test.go @@ -0,0 +1,4 @@ +//go:generate ../mocks/generate_mocks.sh servicediscovery servicediscoveryiface +package resources + +// Note: empty on purpose, this file exist purely to generate mocks for the CloudFormation service From 5353a67212302ba9de54e53ffa4ecd11c53a35b0 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 14 Mar 2024 22:30:00 -0600 Subject: [PATCH 276/617] fix(servicediscovery-namespaces): add tags to properties --- resources/servicediscovery-namespaces.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/resources/servicediscovery-namespaces.go b/resources/servicediscovery-namespaces.go index 58d0ecf8..cdb46d05 100644 --- a/resources/servicediscovery-namespaces.go +++ b/resources/servicediscovery-namespaces.go @@ -102,6 +102,12 @@ func (f *ServiceDiscoveryNamespace) String() string { } func (f *ServiceDiscoveryNamespace) Properties() types.Properties { - return types.NewProperties(). - Set("ID", f.ID) + properties := types.NewProperties() + properties.Set("ID", f.ID) + + for _, tag := range f.tags { + properties.SetTag(tag.Key, tag.Value) + } + + return properties } From 40ff1528d3f44e47984bc2799d080497fb6bf872 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 22 Apr 2024 18:58:44 -0600 Subject: [PATCH 277/617] test(elasticache): adding tests for subnet groups and clusters --- mocks/mock_elasticacheiface/mock.go | 4546 +++++++++++++++++ resources/elasticache-memcacheclusters.go | 39 +- .../elasticache-memcacheclusters_mock_test.go | 109 + resources/elasticache-mock_test.go | 2 + resources/elasticache-subnetgroups.go | 38 +- .../elasticache-subnetgroups_mock_test.go | 113 + 6 files changed, 4841 insertions(+), 6 deletions(-) create mode 100644 mocks/mock_elasticacheiface/mock.go create mode 100644 resources/elasticache-memcacheclusters_mock_test.go create mode 100644 resources/elasticache-mock_test.go create mode 100644 resources/elasticache-subnetgroups_mock_test.go diff --git a/mocks/mock_elasticacheiface/mock.go b/mocks/mock_elasticacheiface/mock.go new file mode 100644 index 00000000..007ccd02 --- /dev/null +++ b/mocks/mock_elasticacheiface/mock.go @@ -0,0 +1,4546 @@ +// Code generated by MockGen. DO NOT EDIT. +// Source: /Users/ekristen/go/pkg/mod/github.com/aws/aws-sdk-go@v1.50.24/service/elasticache/elasticacheiface/interface.go + +// Package mock_elasticacheiface is a generated GoMock package. +package mock_elasticacheiface + +import ( + reflect "reflect" + + aws "github.com/aws/aws-sdk-go/aws" + request "github.com/aws/aws-sdk-go/aws/request" + elasticache "github.com/aws/aws-sdk-go/service/elasticache" + gomock "github.com/golang/mock/gomock" +) + +// MockElastiCacheAPI is a mock of ElastiCacheAPI interface. +type MockElastiCacheAPI struct { + ctrl *gomock.Controller + recorder *MockElastiCacheAPIMockRecorder +} + +// MockElastiCacheAPIMockRecorder is the mock recorder for MockElastiCacheAPI. +type MockElastiCacheAPIMockRecorder struct { + mock *MockElastiCacheAPI +} + +// NewMockElastiCacheAPI creates a new mock instance. +func NewMockElastiCacheAPI(ctrl *gomock.Controller) *MockElastiCacheAPI { + mock := &MockElastiCacheAPI{ctrl: ctrl} + mock.recorder = &MockElastiCacheAPIMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockElastiCacheAPI) EXPECT() *MockElastiCacheAPIMockRecorder { + return m.recorder +} + +// AddTagsToResource mocks base method. +func (m *MockElastiCacheAPI) AddTagsToResource(arg0 *elasticache.AddTagsToResourceInput) (*elasticache.TagListMessage, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AddTagsToResource", arg0) + ret0, _ := ret[0].(*elasticache.TagListMessage) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AddTagsToResource indicates an expected call of AddTagsToResource. +func (mr *MockElastiCacheAPIMockRecorder) AddTagsToResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddTagsToResource", reflect.TypeOf((*MockElastiCacheAPI)(nil).AddTagsToResource), arg0) +} + +// AddTagsToResourceRequest mocks base method. +func (m *MockElastiCacheAPI) AddTagsToResourceRequest(arg0 *elasticache.AddTagsToResourceInput) (*request.Request, *elasticache.TagListMessage) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AddTagsToResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.TagListMessage) + return ret0, ret1 +} + +// AddTagsToResourceRequest indicates an expected call of AddTagsToResourceRequest. +func (mr *MockElastiCacheAPIMockRecorder) AddTagsToResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddTagsToResourceRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).AddTagsToResourceRequest), arg0) +} + +// AddTagsToResourceWithContext mocks base method. +func (m *MockElastiCacheAPI) AddTagsToResourceWithContext(arg0 aws.Context, arg1 *elasticache.AddTagsToResourceInput, arg2 ...request.Option) (*elasticache.TagListMessage, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AddTagsToResourceWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.TagListMessage) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AddTagsToResourceWithContext indicates an expected call of AddTagsToResourceWithContext. +func (mr *MockElastiCacheAPIMockRecorder) AddTagsToResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddTagsToResourceWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).AddTagsToResourceWithContext), varargs...) +} + +// AuthorizeCacheSecurityGroupIngress mocks base method. +func (m *MockElastiCacheAPI) AuthorizeCacheSecurityGroupIngress(arg0 *elasticache.AuthorizeCacheSecurityGroupIngressInput) (*elasticache.AuthorizeCacheSecurityGroupIngressOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AuthorizeCacheSecurityGroupIngress", arg0) + ret0, _ := ret[0].(*elasticache.AuthorizeCacheSecurityGroupIngressOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AuthorizeCacheSecurityGroupIngress indicates an expected call of AuthorizeCacheSecurityGroupIngress. +func (mr *MockElastiCacheAPIMockRecorder) AuthorizeCacheSecurityGroupIngress(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthorizeCacheSecurityGroupIngress", reflect.TypeOf((*MockElastiCacheAPI)(nil).AuthorizeCacheSecurityGroupIngress), arg0) +} + +// AuthorizeCacheSecurityGroupIngressRequest mocks base method. +func (m *MockElastiCacheAPI) AuthorizeCacheSecurityGroupIngressRequest(arg0 *elasticache.AuthorizeCacheSecurityGroupIngressInput) (*request.Request, *elasticache.AuthorizeCacheSecurityGroupIngressOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AuthorizeCacheSecurityGroupIngressRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.AuthorizeCacheSecurityGroupIngressOutput) + return ret0, ret1 +} + +// AuthorizeCacheSecurityGroupIngressRequest indicates an expected call of AuthorizeCacheSecurityGroupIngressRequest. +func (mr *MockElastiCacheAPIMockRecorder) AuthorizeCacheSecurityGroupIngressRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthorizeCacheSecurityGroupIngressRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).AuthorizeCacheSecurityGroupIngressRequest), arg0) +} + +// AuthorizeCacheSecurityGroupIngressWithContext mocks base method. +func (m *MockElastiCacheAPI) AuthorizeCacheSecurityGroupIngressWithContext(arg0 aws.Context, arg1 *elasticache.AuthorizeCacheSecurityGroupIngressInput, arg2 ...request.Option) (*elasticache.AuthorizeCacheSecurityGroupIngressOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AuthorizeCacheSecurityGroupIngressWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.AuthorizeCacheSecurityGroupIngressOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AuthorizeCacheSecurityGroupIngressWithContext indicates an expected call of AuthorizeCacheSecurityGroupIngressWithContext. +func (mr *MockElastiCacheAPIMockRecorder) AuthorizeCacheSecurityGroupIngressWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthorizeCacheSecurityGroupIngressWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).AuthorizeCacheSecurityGroupIngressWithContext), varargs...) +} + +// BatchApplyUpdateAction mocks base method. +func (m *MockElastiCacheAPI) BatchApplyUpdateAction(arg0 *elasticache.BatchApplyUpdateActionInput) (*elasticache.BatchApplyUpdateActionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchApplyUpdateAction", arg0) + ret0, _ := ret[0].(*elasticache.BatchApplyUpdateActionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchApplyUpdateAction indicates an expected call of BatchApplyUpdateAction. +func (mr *MockElastiCacheAPIMockRecorder) BatchApplyUpdateAction(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchApplyUpdateAction", reflect.TypeOf((*MockElastiCacheAPI)(nil).BatchApplyUpdateAction), arg0) +} + +// BatchApplyUpdateActionRequest mocks base method. +func (m *MockElastiCacheAPI) BatchApplyUpdateActionRequest(arg0 *elasticache.BatchApplyUpdateActionInput) (*request.Request, *elasticache.BatchApplyUpdateActionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchApplyUpdateActionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.BatchApplyUpdateActionOutput) + return ret0, ret1 +} + +// BatchApplyUpdateActionRequest indicates an expected call of BatchApplyUpdateActionRequest. +func (mr *MockElastiCacheAPIMockRecorder) BatchApplyUpdateActionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchApplyUpdateActionRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).BatchApplyUpdateActionRequest), arg0) +} + +// BatchApplyUpdateActionWithContext mocks base method. +func (m *MockElastiCacheAPI) BatchApplyUpdateActionWithContext(arg0 aws.Context, arg1 *elasticache.BatchApplyUpdateActionInput, arg2 ...request.Option) (*elasticache.BatchApplyUpdateActionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "BatchApplyUpdateActionWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.BatchApplyUpdateActionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchApplyUpdateActionWithContext indicates an expected call of BatchApplyUpdateActionWithContext. +func (mr *MockElastiCacheAPIMockRecorder) BatchApplyUpdateActionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchApplyUpdateActionWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).BatchApplyUpdateActionWithContext), varargs...) +} + +// BatchStopUpdateAction mocks base method. +func (m *MockElastiCacheAPI) BatchStopUpdateAction(arg0 *elasticache.BatchStopUpdateActionInput) (*elasticache.BatchStopUpdateActionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchStopUpdateAction", arg0) + ret0, _ := ret[0].(*elasticache.BatchStopUpdateActionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchStopUpdateAction indicates an expected call of BatchStopUpdateAction. +func (mr *MockElastiCacheAPIMockRecorder) BatchStopUpdateAction(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchStopUpdateAction", reflect.TypeOf((*MockElastiCacheAPI)(nil).BatchStopUpdateAction), arg0) +} + +// BatchStopUpdateActionRequest mocks base method. +func (m *MockElastiCacheAPI) BatchStopUpdateActionRequest(arg0 *elasticache.BatchStopUpdateActionInput) (*request.Request, *elasticache.BatchStopUpdateActionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchStopUpdateActionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.BatchStopUpdateActionOutput) + return ret0, ret1 +} + +// BatchStopUpdateActionRequest indicates an expected call of BatchStopUpdateActionRequest. +func (mr *MockElastiCacheAPIMockRecorder) BatchStopUpdateActionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchStopUpdateActionRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).BatchStopUpdateActionRequest), arg0) +} + +// BatchStopUpdateActionWithContext mocks base method. +func (m *MockElastiCacheAPI) BatchStopUpdateActionWithContext(arg0 aws.Context, arg1 *elasticache.BatchStopUpdateActionInput, arg2 ...request.Option) (*elasticache.BatchStopUpdateActionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "BatchStopUpdateActionWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.BatchStopUpdateActionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchStopUpdateActionWithContext indicates an expected call of BatchStopUpdateActionWithContext. +func (mr *MockElastiCacheAPIMockRecorder) BatchStopUpdateActionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchStopUpdateActionWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).BatchStopUpdateActionWithContext), varargs...) +} + +// CompleteMigration mocks base method. +func (m *MockElastiCacheAPI) CompleteMigration(arg0 *elasticache.CompleteMigrationInput) (*elasticache.CompleteMigrationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CompleteMigration", arg0) + ret0, _ := ret[0].(*elasticache.CompleteMigrationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CompleteMigration indicates an expected call of CompleteMigration. +func (mr *MockElastiCacheAPIMockRecorder) CompleteMigration(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CompleteMigration", reflect.TypeOf((*MockElastiCacheAPI)(nil).CompleteMigration), arg0) +} + +// CompleteMigrationRequest mocks base method. +func (m *MockElastiCacheAPI) CompleteMigrationRequest(arg0 *elasticache.CompleteMigrationInput) (*request.Request, *elasticache.CompleteMigrationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CompleteMigrationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.CompleteMigrationOutput) + return ret0, ret1 +} + +// CompleteMigrationRequest indicates an expected call of CompleteMigrationRequest. +func (mr *MockElastiCacheAPIMockRecorder) CompleteMigrationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CompleteMigrationRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).CompleteMigrationRequest), arg0) +} + +// CompleteMigrationWithContext mocks base method. +func (m *MockElastiCacheAPI) CompleteMigrationWithContext(arg0 aws.Context, arg1 *elasticache.CompleteMigrationInput, arg2 ...request.Option) (*elasticache.CompleteMigrationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CompleteMigrationWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.CompleteMigrationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CompleteMigrationWithContext indicates an expected call of CompleteMigrationWithContext. +func (mr *MockElastiCacheAPIMockRecorder) CompleteMigrationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CompleteMigrationWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).CompleteMigrationWithContext), varargs...) +} + +// CopyServerlessCacheSnapshot mocks base method. +func (m *MockElastiCacheAPI) CopyServerlessCacheSnapshot(arg0 *elasticache.CopyServerlessCacheSnapshotInput) (*elasticache.CopyServerlessCacheSnapshotOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CopyServerlessCacheSnapshot", arg0) + ret0, _ := ret[0].(*elasticache.CopyServerlessCacheSnapshotOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CopyServerlessCacheSnapshot indicates an expected call of CopyServerlessCacheSnapshot. +func (mr *MockElastiCacheAPIMockRecorder) CopyServerlessCacheSnapshot(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CopyServerlessCacheSnapshot", reflect.TypeOf((*MockElastiCacheAPI)(nil).CopyServerlessCacheSnapshot), arg0) +} + +// CopyServerlessCacheSnapshotRequest mocks base method. +func (m *MockElastiCacheAPI) CopyServerlessCacheSnapshotRequest(arg0 *elasticache.CopyServerlessCacheSnapshotInput) (*request.Request, *elasticache.CopyServerlessCacheSnapshotOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CopyServerlessCacheSnapshotRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.CopyServerlessCacheSnapshotOutput) + return ret0, ret1 +} + +// CopyServerlessCacheSnapshotRequest indicates an expected call of CopyServerlessCacheSnapshotRequest. +func (mr *MockElastiCacheAPIMockRecorder) CopyServerlessCacheSnapshotRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CopyServerlessCacheSnapshotRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).CopyServerlessCacheSnapshotRequest), arg0) +} + +// CopyServerlessCacheSnapshotWithContext mocks base method. +func (m *MockElastiCacheAPI) CopyServerlessCacheSnapshotWithContext(arg0 aws.Context, arg1 *elasticache.CopyServerlessCacheSnapshotInput, arg2 ...request.Option) (*elasticache.CopyServerlessCacheSnapshotOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CopyServerlessCacheSnapshotWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.CopyServerlessCacheSnapshotOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CopyServerlessCacheSnapshotWithContext indicates an expected call of CopyServerlessCacheSnapshotWithContext. +func (mr *MockElastiCacheAPIMockRecorder) CopyServerlessCacheSnapshotWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CopyServerlessCacheSnapshotWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).CopyServerlessCacheSnapshotWithContext), varargs...) +} + +// CopySnapshot mocks base method. +func (m *MockElastiCacheAPI) CopySnapshot(arg0 *elasticache.CopySnapshotInput) (*elasticache.CopySnapshotOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CopySnapshot", arg0) + ret0, _ := ret[0].(*elasticache.CopySnapshotOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CopySnapshot indicates an expected call of CopySnapshot. +func (mr *MockElastiCacheAPIMockRecorder) CopySnapshot(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CopySnapshot", reflect.TypeOf((*MockElastiCacheAPI)(nil).CopySnapshot), arg0) +} + +// CopySnapshotRequest mocks base method. +func (m *MockElastiCacheAPI) CopySnapshotRequest(arg0 *elasticache.CopySnapshotInput) (*request.Request, *elasticache.CopySnapshotOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CopySnapshotRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.CopySnapshotOutput) + return ret0, ret1 +} + +// CopySnapshotRequest indicates an expected call of CopySnapshotRequest. +func (mr *MockElastiCacheAPIMockRecorder) CopySnapshotRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CopySnapshotRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).CopySnapshotRequest), arg0) +} + +// CopySnapshotWithContext mocks base method. +func (m *MockElastiCacheAPI) CopySnapshotWithContext(arg0 aws.Context, arg1 *elasticache.CopySnapshotInput, arg2 ...request.Option) (*elasticache.CopySnapshotOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CopySnapshotWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.CopySnapshotOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CopySnapshotWithContext indicates an expected call of CopySnapshotWithContext. +func (mr *MockElastiCacheAPIMockRecorder) CopySnapshotWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CopySnapshotWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).CopySnapshotWithContext), varargs...) +} + +// CreateCacheCluster mocks base method. +func (m *MockElastiCacheAPI) CreateCacheCluster(arg0 *elasticache.CreateCacheClusterInput) (*elasticache.CreateCacheClusterOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateCacheCluster", arg0) + ret0, _ := ret[0].(*elasticache.CreateCacheClusterOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateCacheCluster indicates an expected call of CreateCacheCluster. +func (mr *MockElastiCacheAPIMockRecorder) CreateCacheCluster(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCacheCluster", reflect.TypeOf((*MockElastiCacheAPI)(nil).CreateCacheCluster), arg0) +} + +// CreateCacheClusterRequest mocks base method. +func (m *MockElastiCacheAPI) CreateCacheClusterRequest(arg0 *elasticache.CreateCacheClusterInput) (*request.Request, *elasticache.CreateCacheClusterOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateCacheClusterRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.CreateCacheClusterOutput) + return ret0, ret1 +} + +// CreateCacheClusterRequest indicates an expected call of CreateCacheClusterRequest. +func (mr *MockElastiCacheAPIMockRecorder) CreateCacheClusterRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCacheClusterRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).CreateCacheClusterRequest), arg0) +} + +// CreateCacheClusterWithContext mocks base method. +func (m *MockElastiCacheAPI) CreateCacheClusterWithContext(arg0 aws.Context, arg1 *elasticache.CreateCacheClusterInput, arg2 ...request.Option) (*elasticache.CreateCacheClusterOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateCacheClusterWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.CreateCacheClusterOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateCacheClusterWithContext indicates an expected call of CreateCacheClusterWithContext. +func (mr *MockElastiCacheAPIMockRecorder) CreateCacheClusterWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCacheClusterWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).CreateCacheClusterWithContext), varargs...) +} + +// CreateCacheParameterGroup mocks base method. +func (m *MockElastiCacheAPI) CreateCacheParameterGroup(arg0 *elasticache.CreateCacheParameterGroupInput) (*elasticache.CreateCacheParameterGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateCacheParameterGroup", arg0) + ret0, _ := ret[0].(*elasticache.CreateCacheParameterGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateCacheParameterGroup indicates an expected call of CreateCacheParameterGroup. +func (mr *MockElastiCacheAPIMockRecorder) CreateCacheParameterGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCacheParameterGroup", reflect.TypeOf((*MockElastiCacheAPI)(nil).CreateCacheParameterGroup), arg0) +} + +// CreateCacheParameterGroupRequest mocks base method. +func (m *MockElastiCacheAPI) CreateCacheParameterGroupRequest(arg0 *elasticache.CreateCacheParameterGroupInput) (*request.Request, *elasticache.CreateCacheParameterGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateCacheParameterGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.CreateCacheParameterGroupOutput) + return ret0, ret1 +} + +// CreateCacheParameterGroupRequest indicates an expected call of CreateCacheParameterGroupRequest. +func (mr *MockElastiCacheAPIMockRecorder) CreateCacheParameterGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCacheParameterGroupRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).CreateCacheParameterGroupRequest), arg0) +} + +// CreateCacheParameterGroupWithContext mocks base method. +func (m *MockElastiCacheAPI) CreateCacheParameterGroupWithContext(arg0 aws.Context, arg1 *elasticache.CreateCacheParameterGroupInput, arg2 ...request.Option) (*elasticache.CreateCacheParameterGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateCacheParameterGroupWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.CreateCacheParameterGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateCacheParameterGroupWithContext indicates an expected call of CreateCacheParameterGroupWithContext. +func (mr *MockElastiCacheAPIMockRecorder) CreateCacheParameterGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCacheParameterGroupWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).CreateCacheParameterGroupWithContext), varargs...) +} + +// CreateCacheSecurityGroup mocks base method. +func (m *MockElastiCacheAPI) CreateCacheSecurityGroup(arg0 *elasticache.CreateCacheSecurityGroupInput) (*elasticache.CreateCacheSecurityGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateCacheSecurityGroup", arg0) + ret0, _ := ret[0].(*elasticache.CreateCacheSecurityGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateCacheSecurityGroup indicates an expected call of CreateCacheSecurityGroup. +func (mr *MockElastiCacheAPIMockRecorder) CreateCacheSecurityGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCacheSecurityGroup", reflect.TypeOf((*MockElastiCacheAPI)(nil).CreateCacheSecurityGroup), arg0) +} + +// CreateCacheSecurityGroupRequest mocks base method. +func (m *MockElastiCacheAPI) CreateCacheSecurityGroupRequest(arg0 *elasticache.CreateCacheSecurityGroupInput) (*request.Request, *elasticache.CreateCacheSecurityGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateCacheSecurityGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.CreateCacheSecurityGroupOutput) + return ret0, ret1 +} + +// CreateCacheSecurityGroupRequest indicates an expected call of CreateCacheSecurityGroupRequest. +func (mr *MockElastiCacheAPIMockRecorder) CreateCacheSecurityGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCacheSecurityGroupRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).CreateCacheSecurityGroupRequest), arg0) +} + +// CreateCacheSecurityGroupWithContext mocks base method. +func (m *MockElastiCacheAPI) CreateCacheSecurityGroupWithContext(arg0 aws.Context, arg1 *elasticache.CreateCacheSecurityGroupInput, arg2 ...request.Option) (*elasticache.CreateCacheSecurityGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateCacheSecurityGroupWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.CreateCacheSecurityGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateCacheSecurityGroupWithContext indicates an expected call of CreateCacheSecurityGroupWithContext. +func (mr *MockElastiCacheAPIMockRecorder) CreateCacheSecurityGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCacheSecurityGroupWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).CreateCacheSecurityGroupWithContext), varargs...) +} + +// CreateCacheSubnetGroup mocks base method. +func (m *MockElastiCacheAPI) CreateCacheSubnetGroup(arg0 *elasticache.CreateCacheSubnetGroupInput) (*elasticache.CreateCacheSubnetGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateCacheSubnetGroup", arg0) + ret0, _ := ret[0].(*elasticache.CreateCacheSubnetGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateCacheSubnetGroup indicates an expected call of CreateCacheSubnetGroup. +func (mr *MockElastiCacheAPIMockRecorder) CreateCacheSubnetGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCacheSubnetGroup", reflect.TypeOf((*MockElastiCacheAPI)(nil).CreateCacheSubnetGroup), arg0) +} + +// CreateCacheSubnetGroupRequest mocks base method. +func (m *MockElastiCacheAPI) CreateCacheSubnetGroupRequest(arg0 *elasticache.CreateCacheSubnetGroupInput) (*request.Request, *elasticache.CreateCacheSubnetGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateCacheSubnetGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.CreateCacheSubnetGroupOutput) + return ret0, ret1 +} + +// CreateCacheSubnetGroupRequest indicates an expected call of CreateCacheSubnetGroupRequest. +func (mr *MockElastiCacheAPIMockRecorder) CreateCacheSubnetGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCacheSubnetGroupRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).CreateCacheSubnetGroupRequest), arg0) +} + +// CreateCacheSubnetGroupWithContext mocks base method. +func (m *MockElastiCacheAPI) CreateCacheSubnetGroupWithContext(arg0 aws.Context, arg1 *elasticache.CreateCacheSubnetGroupInput, arg2 ...request.Option) (*elasticache.CreateCacheSubnetGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateCacheSubnetGroupWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.CreateCacheSubnetGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateCacheSubnetGroupWithContext indicates an expected call of CreateCacheSubnetGroupWithContext. +func (mr *MockElastiCacheAPIMockRecorder) CreateCacheSubnetGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCacheSubnetGroupWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).CreateCacheSubnetGroupWithContext), varargs...) +} + +// CreateGlobalReplicationGroup mocks base method. +func (m *MockElastiCacheAPI) CreateGlobalReplicationGroup(arg0 *elasticache.CreateGlobalReplicationGroupInput) (*elasticache.CreateGlobalReplicationGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateGlobalReplicationGroup", arg0) + ret0, _ := ret[0].(*elasticache.CreateGlobalReplicationGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateGlobalReplicationGroup indicates an expected call of CreateGlobalReplicationGroup. +func (mr *MockElastiCacheAPIMockRecorder) CreateGlobalReplicationGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGlobalReplicationGroup", reflect.TypeOf((*MockElastiCacheAPI)(nil).CreateGlobalReplicationGroup), arg0) +} + +// CreateGlobalReplicationGroupRequest mocks base method. +func (m *MockElastiCacheAPI) CreateGlobalReplicationGroupRequest(arg0 *elasticache.CreateGlobalReplicationGroupInput) (*request.Request, *elasticache.CreateGlobalReplicationGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateGlobalReplicationGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.CreateGlobalReplicationGroupOutput) + return ret0, ret1 +} + +// CreateGlobalReplicationGroupRequest indicates an expected call of CreateGlobalReplicationGroupRequest. +func (mr *MockElastiCacheAPIMockRecorder) CreateGlobalReplicationGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGlobalReplicationGroupRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).CreateGlobalReplicationGroupRequest), arg0) +} + +// CreateGlobalReplicationGroupWithContext mocks base method. +func (m *MockElastiCacheAPI) CreateGlobalReplicationGroupWithContext(arg0 aws.Context, arg1 *elasticache.CreateGlobalReplicationGroupInput, arg2 ...request.Option) (*elasticache.CreateGlobalReplicationGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateGlobalReplicationGroupWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.CreateGlobalReplicationGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateGlobalReplicationGroupWithContext indicates an expected call of CreateGlobalReplicationGroupWithContext. +func (mr *MockElastiCacheAPIMockRecorder) CreateGlobalReplicationGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGlobalReplicationGroupWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).CreateGlobalReplicationGroupWithContext), varargs...) +} + +// CreateReplicationGroup mocks base method. +func (m *MockElastiCacheAPI) CreateReplicationGroup(arg0 *elasticache.CreateReplicationGroupInput) (*elasticache.CreateReplicationGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateReplicationGroup", arg0) + ret0, _ := ret[0].(*elasticache.CreateReplicationGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateReplicationGroup indicates an expected call of CreateReplicationGroup. +func (mr *MockElastiCacheAPIMockRecorder) CreateReplicationGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateReplicationGroup", reflect.TypeOf((*MockElastiCacheAPI)(nil).CreateReplicationGroup), arg0) +} + +// CreateReplicationGroupRequest mocks base method. +func (m *MockElastiCacheAPI) CreateReplicationGroupRequest(arg0 *elasticache.CreateReplicationGroupInput) (*request.Request, *elasticache.CreateReplicationGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateReplicationGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.CreateReplicationGroupOutput) + return ret0, ret1 +} + +// CreateReplicationGroupRequest indicates an expected call of CreateReplicationGroupRequest. +func (mr *MockElastiCacheAPIMockRecorder) CreateReplicationGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateReplicationGroupRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).CreateReplicationGroupRequest), arg0) +} + +// CreateReplicationGroupWithContext mocks base method. +func (m *MockElastiCacheAPI) CreateReplicationGroupWithContext(arg0 aws.Context, arg1 *elasticache.CreateReplicationGroupInput, arg2 ...request.Option) (*elasticache.CreateReplicationGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateReplicationGroupWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.CreateReplicationGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateReplicationGroupWithContext indicates an expected call of CreateReplicationGroupWithContext. +func (mr *MockElastiCacheAPIMockRecorder) CreateReplicationGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateReplicationGroupWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).CreateReplicationGroupWithContext), varargs...) +} + +// CreateServerlessCache mocks base method. +func (m *MockElastiCacheAPI) CreateServerlessCache(arg0 *elasticache.CreateServerlessCacheInput) (*elasticache.CreateServerlessCacheOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateServerlessCache", arg0) + ret0, _ := ret[0].(*elasticache.CreateServerlessCacheOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateServerlessCache indicates an expected call of CreateServerlessCache. +func (mr *MockElastiCacheAPIMockRecorder) CreateServerlessCache(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateServerlessCache", reflect.TypeOf((*MockElastiCacheAPI)(nil).CreateServerlessCache), arg0) +} + +// CreateServerlessCacheRequest mocks base method. +func (m *MockElastiCacheAPI) CreateServerlessCacheRequest(arg0 *elasticache.CreateServerlessCacheInput) (*request.Request, *elasticache.CreateServerlessCacheOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateServerlessCacheRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.CreateServerlessCacheOutput) + return ret0, ret1 +} + +// CreateServerlessCacheRequest indicates an expected call of CreateServerlessCacheRequest. +func (mr *MockElastiCacheAPIMockRecorder) CreateServerlessCacheRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateServerlessCacheRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).CreateServerlessCacheRequest), arg0) +} + +// CreateServerlessCacheSnapshot mocks base method. +func (m *MockElastiCacheAPI) CreateServerlessCacheSnapshot(arg0 *elasticache.CreateServerlessCacheSnapshotInput) (*elasticache.CreateServerlessCacheSnapshotOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateServerlessCacheSnapshot", arg0) + ret0, _ := ret[0].(*elasticache.CreateServerlessCacheSnapshotOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateServerlessCacheSnapshot indicates an expected call of CreateServerlessCacheSnapshot. +func (mr *MockElastiCacheAPIMockRecorder) CreateServerlessCacheSnapshot(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateServerlessCacheSnapshot", reflect.TypeOf((*MockElastiCacheAPI)(nil).CreateServerlessCacheSnapshot), arg0) +} + +// CreateServerlessCacheSnapshotRequest mocks base method. +func (m *MockElastiCacheAPI) CreateServerlessCacheSnapshotRequest(arg0 *elasticache.CreateServerlessCacheSnapshotInput) (*request.Request, *elasticache.CreateServerlessCacheSnapshotOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateServerlessCacheSnapshotRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.CreateServerlessCacheSnapshotOutput) + return ret0, ret1 +} + +// CreateServerlessCacheSnapshotRequest indicates an expected call of CreateServerlessCacheSnapshotRequest. +func (mr *MockElastiCacheAPIMockRecorder) CreateServerlessCacheSnapshotRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateServerlessCacheSnapshotRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).CreateServerlessCacheSnapshotRequest), arg0) +} + +// CreateServerlessCacheSnapshotWithContext mocks base method. +func (m *MockElastiCacheAPI) CreateServerlessCacheSnapshotWithContext(arg0 aws.Context, arg1 *elasticache.CreateServerlessCacheSnapshotInput, arg2 ...request.Option) (*elasticache.CreateServerlessCacheSnapshotOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateServerlessCacheSnapshotWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.CreateServerlessCacheSnapshotOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateServerlessCacheSnapshotWithContext indicates an expected call of CreateServerlessCacheSnapshotWithContext. +func (mr *MockElastiCacheAPIMockRecorder) CreateServerlessCacheSnapshotWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateServerlessCacheSnapshotWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).CreateServerlessCacheSnapshotWithContext), varargs...) +} + +// CreateServerlessCacheWithContext mocks base method. +func (m *MockElastiCacheAPI) CreateServerlessCacheWithContext(arg0 aws.Context, arg1 *elasticache.CreateServerlessCacheInput, arg2 ...request.Option) (*elasticache.CreateServerlessCacheOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateServerlessCacheWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.CreateServerlessCacheOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateServerlessCacheWithContext indicates an expected call of CreateServerlessCacheWithContext. +func (mr *MockElastiCacheAPIMockRecorder) CreateServerlessCacheWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateServerlessCacheWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).CreateServerlessCacheWithContext), varargs...) +} + +// CreateSnapshot mocks base method. +func (m *MockElastiCacheAPI) CreateSnapshot(arg0 *elasticache.CreateSnapshotInput) (*elasticache.CreateSnapshotOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateSnapshot", arg0) + ret0, _ := ret[0].(*elasticache.CreateSnapshotOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateSnapshot indicates an expected call of CreateSnapshot. +func (mr *MockElastiCacheAPIMockRecorder) CreateSnapshot(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateSnapshot", reflect.TypeOf((*MockElastiCacheAPI)(nil).CreateSnapshot), arg0) +} + +// CreateSnapshotRequest mocks base method. +func (m *MockElastiCacheAPI) CreateSnapshotRequest(arg0 *elasticache.CreateSnapshotInput) (*request.Request, *elasticache.CreateSnapshotOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateSnapshotRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.CreateSnapshotOutput) + return ret0, ret1 +} + +// CreateSnapshotRequest indicates an expected call of CreateSnapshotRequest. +func (mr *MockElastiCacheAPIMockRecorder) CreateSnapshotRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateSnapshotRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).CreateSnapshotRequest), arg0) +} + +// CreateSnapshotWithContext mocks base method. +func (m *MockElastiCacheAPI) CreateSnapshotWithContext(arg0 aws.Context, arg1 *elasticache.CreateSnapshotInput, arg2 ...request.Option) (*elasticache.CreateSnapshotOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateSnapshotWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.CreateSnapshotOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateSnapshotWithContext indicates an expected call of CreateSnapshotWithContext. +func (mr *MockElastiCacheAPIMockRecorder) CreateSnapshotWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateSnapshotWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).CreateSnapshotWithContext), varargs...) +} + +// CreateUser mocks base method. +func (m *MockElastiCacheAPI) CreateUser(arg0 *elasticache.CreateUserInput) (*elasticache.CreateUserOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateUser", arg0) + ret0, _ := ret[0].(*elasticache.CreateUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateUser indicates an expected call of CreateUser. +func (mr *MockElastiCacheAPIMockRecorder) CreateUser(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUser", reflect.TypeOf((*MockElastiCacheAPI)(nil).CreateUser), arg0) +} + +// CreateUserGroup mocks base method. +func (m *MockElastiCacheAPI) CreateUserGroup(arg0 *elasticache.CreateUserGroupInput) (*elasticache.CreateUserGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateUserGroup", arg0) + ret0, _ := ret[0].(*elasticache.CreateUserGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateUserGroup indicates an expected call of CreateUserGroup. +func (mr *MockElastiCacheAPIMockRecorder) CreateUserGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUserGroup", reflect.TypeOf((*MockElastiCacheAPI)(nil).CreateUserGroup), arg0) +} + +// CreateUserGroupRequest mocks base method. +func (m *MockElastiCacheAPI) CreateUserGroupRequest(arg0 *elasticache.CreateUserGroupInput) (*request.Request, *elasticache.CreateUserGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateUserGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.CreateUserGroupOutput) + return ret0, ret1 +} + +// CreateUserGroupRequest indicates an expected call of CreateUserGroupRequest. +func (mr *MockElastiCacheAPIMockRecorder) CreateUserGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUserGroupRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).CreateUserGroupRequest), arg0) +} + +// CreateUserGroupWithContext mocks base method. +func (m *MockElastiCacheAPI) CreateUserGroupWithContext(arg0 aws.Context, arg1 *elasticache.CreateUserGroupInput, arg2 ...request.Option) (*elasticache.CreateUserGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateUserGroupWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.CreateUserGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateUserGroupWithContext indicates an expected call of CreateUserGroupWithContext. +func (mr *MockElastiCacheAPIMockRecorder) CreateUserGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUserGroupWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).CreateUserGroupWithContext), varargs...) +} + +// CreateUserRequest mocks base method. +func (m *MockElastiCacheAPI) CreateUserRequest(arg0 *elasticache.CreateUserInput) (*request.Request, *elasticache.CreateUserOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateUserRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.CreateUserOutput) + return ret0, ret1 +} + +// CreateUserRequest indicates an expected call of CreateUserRequest. +func (mr *MockElastiCacheAPIMockRecorder) CreateUserRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUserRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).CreateUserRequest), arg0) +} + +// CreateUserWithContext mocks base method. +func (m *MockElastiCacheAPI) CreateUserWithContext(arg0 aws.Context, arg1 *elasticache.CreateUserInput, arg2 ...request.Option) (*elasticache.CreateUserOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateUserWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.CreateUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateUserWithContext indicates an expected call of CreateUserWithContext. +func (mr *MockElastiCacheAPIMockRecorder) CreateUserWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUserWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).CreateUserWithContext), varargs...) +} + +// DecreaseNodeGroupsInGlobalReplicationGroup mocks base method. +func (m *MockElastiCacheAPI) DecreaseNodeGroupsInGlobalReplicationGroup(arg0 *elasticache.DecreaseNodeGroupsInGlobalReplicationGroupInput) (*elasticache.DecreaseNodeGroupsInGlobalReplicationGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DecreaseNodeGroupsInGlobalReplicationGroup", arg0) + ret0, _ := ret[0].(*elasticache.DecreaseNodeGroupsInGlobalReplicationGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DecreaseNodeGroupsInGlobalReplicationGroup indicates an expected call of DecreaseNodeGroupsInGlobalReplicationGroup. +func (mr *MockElastiCacheAPIMockRecorder) DecreaseNodeGroupsInGlobalReplicationGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecreaseNodeGroupsInGlobalReplicationGroup", reflect.TypeOf((*MockElastiCacheAPI)(nil).DecreaseNodeGroupsInGlobalReplicationGroup), arg0) +} + +// DecreaseNodeGroupsInGlobalReplicationGroupRequest mocks base method. +func (m *MockElastiCacheAPI) DecreaseNodeGroupsInGlobalReplicationGroupRequest(arg0 *elasticache.DecreaseNodeGroupsInGlobalReplicationGroupInput) (*request.Request, *elasticache.DecreaseNodeGroupsInGlobalReplicationGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DecreaseNodeGroupsInGlobalReplicationGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.DecreaseNodeGroupsInGlobalReplicationGroupOutput) + return ret0, ret1 +} + +// DecreaseNodeGroupsInGlobalReplicationGroupRequest indicates an expected call of DecreaseNodeGroupsInGlobalReplicationGroupRequest. +func (mr *MockElastiCacheAPIMockRecorder) DecreaseNodeGroupsInGlobalReplicationGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecreaseNodeGroupsInGlobalReplicationGroupRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).DecreaseNodeGroupsInGlobalReplicationGroupRequest), arg0) +} + +// DecreaseNodeGroupsInGlobalReplicationGroupWithContext mocks base method. +func (m *MockElastiCacheAPI) DecreaseNodeGroupsInGlobalReplicationGroupWithContext(arg0 aws.Context, arg1 *elasticache.DecreaseNodeGroupsInGlobalReplicationGroupInput, arg2 ...request.Option) (*elasticache.DecreaseNodeGroupsInGlobalReplicationGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DecreaseNodeGroupsInGlobalReplicationGroupWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.DecreaseNodeGroupsInGlobalReplicationGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DecreaseNodeGroupsInGlobalReplicationGroupWithContext indicates an expected call of DecreaseNodeGroupsInGlobalReplicationGroupWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DecreaseNodeGroupsInGlobalReplicationGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecreaseNodeGroupsInGlobalReplicationGroupWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DecreaseNodeGroupsInGlobalReplicationGroupWithContext), varargs...) +} + +// DecreaseReplicaCount mocks base method. +func (m *MockElastiCacheAPI) DecreaseReplicaCount(arg0 *elasticache.DecreaseReplicaCountInput) (*elasticache.DecreaseReplicaCountOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DecreaseReplicaCount", arg0) + ret0, _ := ret[0].(*elasticache.DecreaseReplicaCountOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DecreaseReplicaCount indicates an expected call of DecreaseReplicaCount. +func (mr *MockElastiCacheAPIMockRecorder) DecreaseReplicaCount(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecreaseReplicaCount", reflect.TypeOf((*MockElastiCacheAPI)(nil).DecreaseReplicaCount), arg0) +} + +// DecreaseReplicaCountRequest mocks base method. +func (m *MockElastiCacheAPI) DecreaseReplicaCountRequest(arg0 *elasticache.DecreaseReplicaCountInput) (*request.Request, *elasticache.DecreaseReplicaCountOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DecreaseReplicaCountRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.DecreaseReplicaCountOutput) + return ret0, ret1 +} + +// DecreaseReplicaCountRequest indicates an expected call of DecreaseReplicaCountRequest. +func (mr *MockElastiCacheAPIMockRecorder) DecreaseReplicaCountRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecreaseReplicaCountRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).DecreaseReplicaCountRequest), arg0) +} + +// DecreaseReplicaCountWithContext mocks base method. +func (m *MockElastiCacheAPI) DecreaseReplicaCountWithContext(arg0 aws.Context, arg1 *elasticache.DecreaseReplicaCountInput, arg2 ...request.Option) (*elasticache.DecreaseReplicaCountOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DecreaseReplicaCountWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.DecreaseReplicaCountOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DecreaseReplicaCountWithContext indicates an expected call of DecreaseReplicaCountWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DecreaseReplicaCountWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecreaseReplicaCountWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DecreaseReplicaCountWithContext), varargs...) +} + +// DeleteCacheCluster mocks base method. +func (m *MockElastiCacheAPI) DeleteCacheCluster(arg0 *elasticache.DeleteCacheClusterInput) (*elasticache.DeleteCacheClusterOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteCacheCluster", arg0) + ret0, _ := ret[0].(*elasticache.DeleteCacheClusterOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteCacheCluster indicates an expected call of DeleteCacheCluster. +func (mr *MockElastiCacheAPIMockRecorder) DeleteCacheCluster(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCacheCluster", reflect.TypeOf((*MockElastiCacheAPI)(nil).DeleteCacheCluster), arg0) +} + +// DeleteCacheClusterRequest mocks base method. +func (m *MockElastiCacheAPI) DeleteCacheClusterRequest(arg0 *elasticache.DeleteCacheClusterInput) (*request.Request, *elasticache.DeleteCacheClusterOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteCacheClusterRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.DeleteCacheClusterOutput) + return ret0, ret1 +} + +// DeleteCacheClusterRequest indicates an expected call of DeleteCacheClusterRequest. +func (mr *MockElastiCacheAPIMockRecorder) DeleteCacheClusterRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCacheClusterRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).DeleteCacheClusterRequest), arg0) +} + +// DeleteCacheClusterWithContext mocks base method. +func (m *MockElastiCacheAPI) DeleteCacheClusterWithContext(arg0 aws.Context, arg1 *elasticache.DeleteCacheClusterInput, arg2 ...request.Option) (*elasticache.DeleteCacheClusterOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteCacheClusterWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.DeleteCacheClusterOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteCacheClusterWithContext indicates an expected call of DeleteCacheClusterWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DeleteCacheClusterWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCacheClusterWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DeleteCacheClusterWithContext), varargs...) +} + +// DeleteCacheParameterGroup mocks base method. +func (m *MockElastiCacheAPI) DeleteCacheParameterGroup(arg0 *elasticache.DeleteCacheParameterGroupInput) (*elasticache.DeleteCacheParameterGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteCacheParameterGroup", arg0) + ret0, _ := ret[0].(*elasticache.DeleteCacheParameterGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteCacheParameterGroup indicates an expected call of DeleteCacheParameterGroup. +func (mr *MockElastiCacheAPIMockRecorder) DeleteCacheParameterGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCacheParameterGroup", reflect.TypeOf((*MockElastiCacheAPI)(nil).DeleteCacheParameterGroup), arg0) +} + +// DeleteCacheParameterGroupRequest mocks base method. +func (m *MockElastiCacheAPI) DeleteCacheParameterGroupRequest(arg0 *elasticache.DeleteCacheParameterGroupInput) (*request.Request, *elasticache.DeleteCacheParameterGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteCacheParameterGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.DeleteCacheParameterGroupOutput) + return ret0, ret1 +} + +// DeleteCacheParameterGroupRequest indicates an expected call of DeleteCacheParameterGroupRequest. +func (mr *MockElastiCacheAPIMockRecorder) DeleteCacheParameterGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCacheParameterGroupRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).DeleteCacheParameterGroupRequest), arg0) +} + +// DeleteCacheParameterGroupWithContext mocks base method. +func (m *MockElastiCacheAPI) DeleteCacheParameterGroupWithContext(arg0 aws.Context, arg1 *elasticache.DeleteCacheParameterGroupInput, arg2 ...request.Option) (*elasticache.DeleteCacheParameterGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteCacheParameterGroupWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.DeleteCacheParameterGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteCacheParameterGroupWithContext indicates an expected call of DeleteCacheParameterGroupWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DeleteCacheParameterGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCacheParameterGroupWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DeleteCacheParameterGroupWithContext), varargs...) +} + +// DeleteCacheSecurityGroup mocks base method. +func (m *MockElastiCacheAPI) DeleteCacheSecurityGroup(arg0 *elasticache.DeleteCacheSecurityGroupInput) (*elasticache.DeleteCacheSecurityGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteCacheSecurityGroup", arg0) + ret0, _ := ret[0].(*elasticache.DeleteCacheSecurityGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteCacheSecurityGroup indicates an expected call of DeleteCacheSecurityGroup. +func (mr *MockElastiCacheAPIMockRecorder) DeleteCacheSecurityGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCacheSecurityGroup", reflect.TypeOf((*MockElastiCacheAPI)(nil).DeleteCacheSecurityGroup), arg0) +} + +// DeleteCacheSecurityGroupRequest mocks base method. +func (m *MockElastiCacheAPI) DeleteCacheSecurityGroupRequest(arg0 *elasticache.DeleteCacheSecurityGroupInput) (*request.Request, *elasticache.DeleteCacheSecurityGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteCacheSecurityGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.DeleteCacheSecurityGroupOutput) + return ret0, ret1 +} + +// DeleteCacheSecurityGroupRequest indicates an expected call of DeleteCacheSecurityGroupRequest. +func (mr *MockElastiCacheAPIMockRecorder) DeleteCacheSecurityGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCacheSecurityGroupRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).DeleteCacheSecurityGroupRequest), arg0) +} + +// DeleteCacheSecurityGroupWithContext mocks base method. +func (m *MockElastiCacheAPI) DeleteCacheSecurityGroupWithContext(arg0 aws.Context, arg1 *elasticache.DeleteCacheSecurityGroupInput, arg2 ...request.Option) (*elasticache.DeleteCacheSecurityGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteCacheSecurityGroupWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.DeleteCacheSecurityGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteCacheSecurityGroupWithContext indicates an expected call of DeleteCacheSecurityGroupWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DeleteCacheSecurityGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCacheSecurityGroupWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DeleteCacheSecurityGroupWithContext), varargs...) +} + +// DeleteCacheSubnetGroup mocks base method. +func (m *MockElastiCacheAPI) DeleteCacheSubnetGroup(arg0 *elasticache.DeleteCacheSubnetGroupInput) (*elasticache.DeleteCacheSubnetGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteCacheSubnetGroup", arg0) + ret0, _ := ret[0].(*elasticache.DeleteCacheSubnetGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteCacheSubnetGroup indicates an expected call of DeleteCacheSubnetGroup. +func (mr *MockElastiCacheAPIMockRecorder) DeleteCacheSubnetGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCacheSubnetGroup", reflect.TypeOf((*MockElastiCacheAPI)(nil).DeleteCacheSubnetGroup), arg0) +} + +// DeleteCacheSubnetGroupRequest mocks base method. +func (m *MockElastiCacheAPI) DeleteCacheSubnetGroupRequest(arg0 *elasticache.DeleteCacheSubnetGroupInput) (*request.Request, *elasticache.DeleteCacheSubnetGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteCacheSubnetGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.DeleteCacheSubnetGroupOutput) + return ret0, ret1 +} + +// DeleteCacheSubnetGroupRequest indicates an expected call of DeleteCacheSubnetGroupRequest. +func (mr *MockElastiCacheAPIMockRecorder) DeleteCacheSubnetGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCacheSubnetGroupRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).DeleteCacheSubnetGroupRequest), arg0) +} + +// DeleteCacheSubnetGroupWithContext mocks base method. +func (m *MockElastiCacheAPI) DeleteCacheSubnetGroupWithContext(arg0 aws.Context, arg1 *elasticache.DeleteCacheSubnetGroupInput, arg2 ...request.Option) (*elasticache.DeleteCacheSubnetGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteCacheSubnetGroupWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.DeleteCacheSubnetGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteCacheSubnetGroupWithContext indicates an expected call of DeleteCacheSubnetGroupWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DeleteCacheSubnetGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCacheSubnetGroupWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DeleteCacheSubnetGroupWithContext), varargs...) +} + +// DeleteGlobalReplicationGroup mocks base method. +func (m *MockElastiCacheAPI) DeleteGlobalReplicationGroup(arg0 *elasticache.DeleteGlobalReplicationGroupInput) (*elasticache.DeleteGlobalReplicationGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteGlobalReplicationGroup", arg0) + ret0, _ := ret[0].(*elasticache.DeleteGlobalReplicationGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteGlobalReplicationGroup indicates an expected call of DeleteGlobalReplicationGroup. +func (mr *MockElastiCacheAPIMockRecorder) DeleteGlobalReplicationGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGlobalReplicationGroup", reflect.TypeOf((*MockElastiCacheAPI)(nil).DeleteGlobalReplicationGroup), arg0) +} + +// DeleteGlobalReplicationGroupRequest mocks base method. +func (m *MockElastiCacheAPI) DeleteGlobalReplicationGroupRequest(arg0 *elasticache.DeleteGlobalReplicationGroupInput) (*request.Request, *elasticache.DeleteGlobalReplicationGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteGlobalReplicationGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.DeleteGlobalReplicationGroupOutput) + return ret0, ret1 +} + +// DeleteGlobalReplicationGroupRequest indicates an expected call of DeleteGlobalReplicationGroupRequest. +func (mr *MockElastiCacheAPIMockRecorder) DeleteGlobalReplicationGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGlobalReplicationGroupRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).DeleteGlobalReplicationGroupRequest), arg0) +} + +// DeleteGlobalReplicationGroupWithContext mocks base method. +func (m *MockElastiCacheAPI) DeleteGlobalReplicationGroupWithContext(arg0 aws.Context, arg1 *elasticache.DeleteGlobalReplicationGroupInput, arg2 ...request.Option) (*elasticache.DeleteGlobalReplicationGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteGlobalReplicationGroupWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.DeleteGlobalReplicationGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteGlobalReplicationGroupWithContext indicates an expected call of DeleteGlobalReplicationGroupWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DeleteGlobalReplicationGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGlobalReplicationGroupWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DeleteGlobalReplicationGroupWithContext), varargs...) +} + +// DeleteReplicationGroup mocks base method. +func (m *MockElastiCacheAPI) DeleteReplicationGroup(arg0 *elasticache.DeleteReplicationGroupInput) (*elasticache.DeleteReplicationGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteReplicationGroup", arg0) + ret0, _ := ret[0].(*elasticache.DeleteReplicationGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteReplicationGroup indicates an expected call of DeleteReplicationGroup. +func (mr *MockElastiCacheAPIMockRecorder) DeleteReplicationGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteReplicationGroup", reflect.TypeOf((*MockElastiCacheAPI)(nil).DeleteReplicationGroup), arg0) +} + +// DeleteReplicationGroupRequest mocks base method. +func (m *MockElastiCacheAPI) DeleteReplicationGroupRequest(arg0 *elasticache.DeleteReplicationGroupInput) (*request.Request, *elasticache.DeleteReplicationGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteReplicationGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.DeleteReplicationGroupOutput) + return ret0, ret1 +} + +// DeleteReplicationGroupRequest indicates an expected call of DeleteReplicationGroupRequest. +func (mr *MockElastiCacheAPIMockRecorder) DeleteReplicationGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteReplicationGroupRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).DeleteReplicationGroupRequest), arg0) +} + +// DeleteReplicationGroupWithContext mocks base method. +func (m *MockElastiCacheAPI) DeleteReplicationGroupWithContext(arg0 aws.Context, arg1 *elasticache.DeleteReplicationGroupInput, arg2 ...request.Option) (*elasticache.DeleteReplicationGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteReplicationGroupWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.DeleteReplicationGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteReplicationGroupWithContext indicates an expected call of DeleteReplicationGroupWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DeleteReplicationGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteReplicationGroupWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DeleteReplicationGroupWithContext), varargs...) +} + +// DeleteServerlessCache mocks base method. +func (m *MockElastiCacheAPI) DeleteServerlessCache(arg0 *elasticache.DeleteServerlessCacheInput) (*elasticache.DeleteServerlessCacheOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteServerlessCache", arg0) + ret0, _ := ret[0].(*elasticache.DeleteServerlessCacheOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteServerlessCache indicates an expected call of DeleteServerlessCache. +func (mr *MockElastiCacheAPIMockRecorder) DeleteServerlessCache(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteServerlessCache", reflect.TypeOf((*MockElastiCacheAPI)(nil).DeleteServerlessCache), arg0) +} + +// DeleteServerlessCacheRequest mocks base method. +func (m *MockElastiCacheAPI) DeleteServerlessCacheRequest(arg0 *elasticache.DeleteServerlessCacheInput) (*request.Request, *elasticache.DeleteServerlessCacheOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteServerlessCacheRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.DeleteServerlessCacheOutput) + return ret0, ret1 +} + +// DeleteServerlessCacheRequest indicates an expected call of DeleteServerlessCacheRequest. +func (mr *MockElastiCacheAPIMockRecorder) DeleteServerlessCacheRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteServerlessCacheRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).DeleteServerlessCacheRequest), arg0) +} + +// DeleteServerlessCacheSnapshot mocks base method. +func (m *MockElastiCacheAPI) DeleteServerlessCacheSnapshot(arg0 *elasticache.DeleteServerlessCacheSnapshotInput) (*elasticache.DeleteServerlessCacheSnapshotOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteServerlessCacheSnapshot", arg0) + ret0, _ := ret[0].(*elasticache.DeleteServerlessCacheSnapshotOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteServerlessCacheSnapshot indicates an expected call of DeleteServerlessCacheSnapshot. +func (mr *MockElastiCacheAPIMockRecorder) DeleteServerlessCacheSnapshot(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteServerlessCacheSnapshot", reflect.TypeOf((*MockElastiCacheAPI)(nil).DeleteServerlessCacheSnapshot), arg0) +} + +// DeleteServerlessCacheSnapshotRequest mocks base method. +func (m *MockElastiCacheAPI) DeleteServerlessCacheSnapshotRequest(arg0 *elasticache.DeleteServerlessCacheSnapshotInput) (*request.Request, *elasticache.DeleteServerlessCacheSnapshotOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteServerlessCacheSnapshotRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.DeleteServerlessCacheSnapshotOutput) + return ret0, ret1 +} + +// DeleteServerlessCacheSnapshotRequest indicates an expected call of DeleteServerlessCacheSnapshotRequest. +func (mr *MockElastiCacheAPIMockRecorder) DeleteServerlessCacheSnapshotRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteServerlessCacheSnapshotRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).DeleteServerlessCacheSnapshotRequest), arg0) +} + +// DeleteServerlessCacheSnapshotWithContext mocks base method. +func (m *MockElastiCacheAPI) DeleteServerlessCacheSnapshotWithContext(arg0 aws.Context, arg1 *elasticache.DeleteServerlessCacheSnapshotInput, arg2 ...request.Option) (*elasticache.DeleteServerlessCacheSnapshotOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteServerlessCacheSnapshotWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.DeleteServerlessCacheSnapshotOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteServerlessCacheSnapshotWithContext indicates an expected call of DeleteServerlessCacheSnapshotWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DeleteServerlessCacheSnapshotWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteServerlessCacheSnapshotWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DeleteServerlessCacheSnapshotWithContext), varargs...) +} + +// DeleteServerlessCacheWithContext mocks base method. +func (m *MockElastiCacheAPI) DeleteServerlessCacheWithContext(arg0 aws.Context, arg1 *elasticache.DeleteServerlessCacheInput, arg2 ...request.Option) (*elasticache.DeleteServerlessCacheOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteServerlessCacheWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.DeleteServerlessCacheOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteServerlessCacheWithContext indicates an expected call of DeleteServerlessCacheWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DeleteServerlessCacheWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteServerlessCacheWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DeleteServerlessCacheWithContext), varargs...) +} + +// DeleteSnapshot mocks base method. +func (m *MockElastiCacheAPI) DeleteSnapshot(arg0 *elasticache.DeleteSnapshotInput) (*elasticache.DeleteSnapshotOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteSnapshot", arg0) + ret0, _ := ret[0].(*elasticache.DeleteSnapshotOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteSnapshot indicates an expected call of DeleteSnapshot. +func (mr *MockElastiCacheAPIMockRecorder) DeleteSnapshot(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSnapshot", reflect.TypeOf((*MockElastiCacheAPI)(nil).DeleteSnapshot), arg0) +} + +// DeleteSnapshotRequest mocks base method. +func (m *MockElastiCacheAPI) DeleteSnapshotRequest(arg0 *elasticache.DeleteSnapshotInput) (*request.Request, *elasticache.DeleteSnapshotOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteSnapshotRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.DeleteSnapshotOutput) + return ret0, ret1 +} + +// DeleteSnapshotRequest indicates an expected call of DeleteSnapshotRequest. +func (mr *MockElastiCacheAPIMockRecorder) DeleteSnapshotRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSnapshotRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).DeleteSnapshotRequest), arg0) +} + +// DeleteSnapshotWithContext mocks base method. +func (m *MockElastiCacheAPI) DeleteSnapshotWithContext(arg0 aws.Context, arg1 *elasticache.DeleteSnapshotInput, arg2 ...request.Option) (*elasticache.DeleteSnapshotOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteSnapshotWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.DeleteSnapshotOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteSnapshotWithContext indicates an expected call of DeleteSnapshotWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DeleteSnapshotWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSnapshotWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DeleteSnapshotWithContext), varargs...) +} + +// DeleteUser mocks base method. +func (m *MockElastiCacheAPI) DeleteUser(arg0 *elasticache.DeleteUserInput) (*elasticache.DeleteUserOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteUser", arg0) + ret0, _ := ret[0].(*elasticache.DeleteUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteUser indicates an expected call of DeleteUser. +func (mr *MockElastiCacheAPIMockRecorder) DeleteUser(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUser", reflect.TypeOf((*MockElastiCacheAPI)(nil).DeleteUser), arg0) +} + +// DeleteUserGroup mocks base method. +func (m *MockElastiCacheAPI) DeleteUserGroup(arg0 *elasticache.DeleteUserGroupInput) (*elasticache.DeleteUserGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteUserGroup", arg0) + ret0, _ := ret[0].(*elasticache.DeleteUserGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteUserGroup indicates an expected call of DeleteUserGroup. +func (mr *MockElastiCacheAPIMockRecorder) DeleteUserGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserGroup", reflect.TypeOf((*MockElastiCacheAPI)(nil).DeleteUserGroup), arg0) +} + +// DeleteUserGroupRequest mocks base method. +func (m *MockElastiCacheAPI) DeleteUserGroupRequest(arg0 *elasticache.DeleteUserGroupInput) (*request.Request, *elasticache.DeleteUserGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteUserGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.DeleteUserGroupOutput) + return ret0, ret1 +} + +// DeleteUserGroupRequest indicates an expected call of DeleteUserGroupRequest. +func (mr *MockElastiCacheAPIMockRecorder) DeleteUserGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserGroupRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).DeleteUserGroupRequest), arg0) +} + +// DeleteUserGroupWithContext mocks base method. +func (m *MockElastiCacheAPI) DeleteUserGroupWithContext(arg0 aws.Context, arg1 *elasticache.DeleteUserGroupInput, arg2 ...request.Option) (*elasticache.DeleteUserGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteUserGroupWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.DeleteUserGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteUserGroupWithContext indicates an expected call of DeleteUserGroupWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DeleteUserGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserGroupWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DeleteUserGroupWithContext), varargs...) +} + +// DeleteUserRequest mocks base method. +func (m *MockElastiCacheAPI) DeleteUserRequest(arg0 *elasticache.DeleteUserInput) (*request.Request, *elasticache.DeleteUserOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteUserRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.DeleteUserOutput) + return ret0, ret1 +} + +// DeleteUserRequest indicates an expected call of DeleteUserRequest. +func (mr *MockElastiCacheAPIMockRecorder) DeleteUserRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).DeleteUserRequest), arg0) +} + +// DeleteUserWithContext mocks base method. +func (m *MockElastiCacheAPI) DeleteUserWithContext(arg0 aws.Context, arg1 *elasticache.DeleteUserInput, arg2 ...request.Option) (*elasticache.DeleteUserOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteUserWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.DeleteUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteUserWithContext indicates an expected call of DeleteUserWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DeleteUserWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DeleteUserWithContext), varargs...) +} + +// DescribeCacheClusters mocks base method. +func (m *MockElastiCacheAPI) DescribeCacheClusters(arg0 *elasticache.DescribeCacheClustersInput) (*elasticache.DescribeCacheClustersOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeCacheClusters", arg0) + ret0, _ := ret[0].(*elasticache.DescribeCacheClustersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeCacheClusters indicates an expected call of DescribeCacheClusters. +func (mr *MockElastiCacheAPIMockRecorder) DescribeCacheClusters(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCacheClusters", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeCacheClusters), arg0) +} + +// DescribeCacheClustersPages mocks base method. +func (m *MockElastiCacheAPI) DescribeCacheClustersPages(arg0 *elasticache.DescribeCacheClustersInput, arg1 func(*elasticache.DescribeCacheClustersOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeCacheClustersPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeCacheClustersPages indicates an expected call of DescribeCacheClustersPages. +func (mr *MockElastiCacheAPIMockRecorder) DescribeCacheClustersPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCacheClustersPages", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeCacheClustersPages), arg0, arg1) +} + +// DescribeCacheClustersPagesWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeCacheClustersPagesWithContext(arg0 aws.Context, arg1 *elasticache.DescribeCacheClustersInput, arg2 func(*elasticache.DescribeCacheClustersOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeCacheClustersPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeCacheClustersPagesWithContext indicates an expected call of DescribeCacheClustersPagesWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeCacheClustersPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCacheClustersPagesWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeCacheClustersPagesWithContext), varargs...) +} + +// DescribeCacheClustersRequest mocks base method. +func (m *MockElastiCacheAPI) DescribeCacheClustersRequest(arg0 *elasticache.DescribeCacheClustersInput) (*request.Request, *elasticache.DescribeCacheClustersOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeCacheClustersRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.DescribeCacheClustersOutput) + return ret0, ret1 +} + +// DescribeCacheClustersRequest indicates an expected call of DescribeCacheClustersRequest. +func (mr *MockElastiCacheAPIMockRecorder) DescribeCacheClustersRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCacheClustersRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeCacheClustersRequest), arg0) +} + +// DescribeCacheClustersWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeCacheClustersWithContext(arg0 aws.Context, arg1 *elasticache.DescribeCacheClustersInput, arg2 ...request.Option) (*elasticache.DescribeCacheClustersOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeCacheClustersWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.DescribeCacheClustersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeCacheClustersWithContext indicates an expected call of DescribeCacheClustersWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeCacheClustersWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCacheClustersWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeCacheClustersWithContext), varargs...) +} + +// DescribeCacheEngineVersions mocks base method. +func (m *MockElastiCacheAPI) DescribeCacheEngineVersions(arg0 *elasticache.DescribeCacheEngineVersionsInput) (*elasticache.DescribeCacheEngineVersionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeCacheEngineVersions", arg0) + ret0, _ := ret[0].(*elasticache.DescribeCacheEngineVersionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeCacheEngineVersions indicates an expected call of DescribeCacheEngineVersions. +func (mr *MockElastiCacheAPIMockRecorder) DescribeCacheEngineVersions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCacheEngineVersions", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeCacheEngineVersions), arg0) +} + +// DescribeCacheEngineVersionsPages mocks base method. +func (m *MockElastiCacheAPI) DescribeCacheEngineVersionsPages(arg0 *elasticache.DescribeCacheEngineVersionsInput, arg1 func(*elasticache.DescribeCacheEngineVersionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeCacheEngineVersionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeCacheEngineVersionsPages indicates an expected call of DescribeCacheEngineVersionsPages. +func (mr *MockElastiCacheAPIMockRecorder) DescribeCacheEngineVersionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCacheEngineVersionsPages", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeCacheEngineVersionsPages), arg0, arg1) +} + +// DescribeCacheEngineVersionsPagesWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeCacheEngineVersionsPagesWithContext(arg0 aws.Context, arg1 *elasticache.DescribeCacheEngineVersionsInput, arg2 func(*elasticache.DescribeCacheEngineVersionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeCacheEngineVersionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeCacheEngineVersionsPagesWithContext indicates an expected call of DescribeCacheEngineVersionsPagesWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeCacheEngineVersionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCacheEngineVersionsPagesWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeCacheEngineVersionsPagesWithContext), varargs...) +} + +// DescribeCacheEngineVersionsRequest mocks base method. +func (m *MockElastiCacheAPI) DescribeCacheEngineVersionsRequest(arg0 *elasticache.DescribeCacheEngineVersionsInput) (*request.Request, *elasticache.DescribeCacheEngineVersionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeCacheEngineVersionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.DescribeCacheEngineVersionsOutput) + return ret0, ret1 +} + +// DescribeCacheEngineVersionsRequest indicates an expected call of DescribeCacheEngineVersionsRequest. +func (mr *MockElastiCacheAPIMockRecorder) DescribeCacheEngineVersionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCacheEngineVersionsRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeCacheEngineVersionsRequest), arg0) +} + +// DescribeCacheEngineVersionsWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeCacheEngineVersionsWithContext(arg0 aws.Context, arg1 *elasticache.DescribeCacheEngineVersionsInput, arg2 ...request.Option) (*elasticache.DescribeCacheEngineVersionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeCacheEngineVersionsWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.DescribeCacheEngineVersionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeCacheEngineVersionsWithContext indicates an expected call of DescribeCacheEngineVersionsWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeCacheEngineVersionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCacheEngineVersionsWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeCacheEngineVersionsWithContext), varargs...) +} + +// DescribeCacheParameterGroups mocks base method. +func (m *MockElastiCacheAPI) DescribeCacheParameterGroups(arg0 *elasticache.DescribeCacheParameterGroupsInput) (*elasticache.DescribeCacheParameterGroupsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeCacheParameterGroups", arg0) + ret0, _ := ret[0].(*elasticache.DescribeCacheParameterGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeCacheParameterGroups indicates an expected call of DescribeCacheParameterGroups. +func (mr *MockElastiCacheAPIMockRecorder) DescribeCacheParameterGroups(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCacheParameterGroups", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeCacheParameterGroups), arg0) +} + +// DescribeCacheParameterGroupsPages mocks base method. +func (m *MockElastiCacheAPI) DescribeCacheParameterGroupsPages(arg0 *elasticache.DescribeCacheParameterGroupsInput, arg1 func(*elasticache.DescribeCacheParameterGroupsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeCacheParameterGroupsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeCacheParameterGroupsPages indicates an expected call of DescribeCacheParameterGroupsPages. +func (mr *MockElastiCacheAPIMockRecorder) DescribeCacheParameterGroupsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCacheParameterGroupsPages", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeCacheParameterGroupsPages), arg0, arg1) +} + +// DescribeCacheParameterGroupsPagesWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeCacheParameterGroupsPagesWithContext(arg0 aws.Context, arg1 *elasticache.DescribeCacheParameterGroupsInput, arg2 func(*elasticache.DescribeCacheParameterGroupsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeCacheParameterGroupsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeCacheParameterGroupsPagesWithContext indicates an expected call of DescribeCacheParameterGroupsPagesWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeCacheParameterGroupsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCacheParameterGroupsPagesWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeCacheParameterGroupsPagesWithContext), varargs...) +} + +// DescribeCacheParameterGroupsRequest mocks base method. +func (m *MockElastiCacheAPI) DescribeCacheParameterGroupsRequest(arg0 *elasticache.DescribeCacheParameterGroupsInput) (*request.Request, *elasticache.DescribeCacheParameterGroupsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeCacheParameterGroupsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.DescribeCacheParameterGroupsOutput) + return ret0, ret1 +} + +// DescribeCacheParameterGroupsRequest indicates an expected call of DescribeCacheParameterGroupsRequest. +func (mr *MockElastiCacheAPIMockRecorder) DescribeCacheParameterGroupsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCacheParameterGroupsRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeCacheParameterGroupsRequest), arg0) +} + +// DescribeCacheParameterGroupsWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeCacheParameterGroupsWithContext(arg0 aws.Context, arg1 *elasticache.DescribeCacheParameterGroupsInput, arg2 ...request.Option) (*elasticache.DescribeCacheParameterGroupsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeCacheParameterGroupsWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.DescribeCacheParameterGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeCacheParameterGroupsWithContext indicates an expected call of DescribeCacheParameterGroupsWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeCacheParameterGroupsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCacheParameterGroupsWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeCacheParameterGroupsWithContext), varargs...) +} + +// DescribeCacheParameters mocks base method. +func (m *MockElastiCacheAPI) DescribeCacheParameters(arg0 *elasticache.DescribeCacheParametersInput) (*elasticache.DescribeCacheParametersOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeCacheParameters", arg0) + ret0, _ := ret[0].(*elasticache.DescribeCacheParametersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeCacheParameters indicates an expected call of DescribeCacheParameters. +func (mr *MockElastiCacheAPIMockRecorder) DescribeCacheParameters(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCacheParameters", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeCacheParameters), arg0) +} + +// DescribeCacheParametersPages mocks base method. +func (m *MockElastiCacheAPI) DescribeCacheParametersPages(arg0 *elasticache.DescribeCacheParametersInput, arg1 func(*elasticache.DescribeCacheParametersOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeCacheParametersPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeCacheParametersPages indicates an expected call of DescribeCacheParametersPages. +func (mr *MockElastiCacheAPIMockRecorder) DescribeCacheParametersPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCacheParametersPages", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeCacheParametersPages), arg0, arg1) +} + +// DescribeCacheParametersPagesWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeCacheParametersPagesWithContext(arg0 aws.Context, arg1 *elasticache.DescribeCacheParametersInput, arg2 func(*elasticache.DescribeCacheParametersOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeCacheParametersPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeCacheParametersPagesWithContext indicates an expected call of DescribeCacheParametersPagesWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeCacheParametersPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCacheParametersPagesWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeCacheParametersPagesWithContext), varargs...) +} + +// DescribeCacheParametersRequest mocks base method. +func (m *MockElastiCacheAPI) DescribeCacheParametersRequest(arg0 *elasticache.DescribeCacheParametersInput) (*request.Request, *elasticache.DescribeCacheParametersOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeCacheParametersRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.DescribeCacheParametersOutput) + return ret0, ret1 +} + +// DescribeCacheParametersRequest indicates an expected call of DescribeCacheParametersRequest. +func (mr *MockElastiCacheAPIMockRecorder) DescribeCacheParametersRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCacheParametersRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeCacheParametersRequest), arg0) +} + +// DescribeCacheParametersWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeCacheParametersWithContext(arg0 aws.Context, arg1 *elasticache.DescribeCacheParametersInput, arg2 ...request.Option) (*elasticache.DescribeCacheParametersOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeCacheParametersWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.DescribeCacheParametersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeCacheParametersWithContext indicates an expected call of DescribeCacheParametersWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeCacheParametersWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCacheParametersWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeCacheParametersWithContext), varargs...) +} + +// DescribeCacheSecurityGroups mocks base method. +func (m *MockElastiCacheAPI) DescribeCacheSecurityGroups(arg0 *elasticache.DescribeCacheSecurityGroupsInput) (*elasticache.DescribeCacheSecurityGroupsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeCacheSecurityGroups", arg0) + ret0, _ := ret[0].(*elasticache.DescribeCacheSecurityGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeCacheSecurityGroups indicates an expected call of DescribeCacheSecurityGroups. +func (mr *MockElastiCacheAPIMockRecorder) DescribeCacheSecurityGroups(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCacheSecurityGroups", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeCacheSecurityGroups), arg0) +} + +// DescribeCacheSecurityGroupsPages mocks base method. +func (m *MockElastiCacheAPI) DescribeCacheSecurityGroupsPages(arg0 *elasticache.DescribeCacheSecurityGroupsInput, arg1 func(*elasticache.DescribeCacheSecurityGroupsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeCacheSecurityGroupsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeCacheSecurityGroupsPages indicates an expected call of DescribeCacheSecurityGroupsPages. +func (mr *MockElastiCacheAPIMockRecorder) DescribeCacheSecurityGroupsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCacheSecurityGroupsPages", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeCacheSecurityGroupsPages), arg0, arg1) +} + +// DescribeCacheSecurityGroupsPagesWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeCacheSecurityGroupsPagesWithContext(arg0 aws.Context, arg1 *elasticache.DescribeCacheSecurityGroupsInput, arg2 func(*elasticache.DescribeCacheSecurityGroupsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeCacheSecurityGroupsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeCacheSecurityGroupsPagesWithContext indicates an expected call of DescribeCacheSecurityGroupsPagesWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeCacheSecurityGroupsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCacheSecurityGroupsPagesWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeCacheSecurityGroupsPagesWithContext), varargs...) +} + +// DescribeCacheSecurityGroupsRequest mocks base method. +func (m *MockElastiCacheAPI) DescribeCacheSecurityGroupsRequest(arg0 *elasticache.DescribeCacheSecurityGroupsInput) (*request.Request, *elasticache.DescribeCacheSecurityGroupsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeCacheSecurityGroupsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.DescribeCacheSecurityGroupsOutput) + return ret0, ret1 +} + +// DescribeCacheSecurityGroupsRequest indicates an expected call of DescribeCacheSecurityGroupsRequest. +func (mr *MockElastiCacheAPIMockRecorder) DescribeCacheSecurityGroupsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCacheSecurityGroupsRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeCacheSecurityGroupsRequest), arg0) +} + +// DescribeCacheSecurityGroupsWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeCacheSecurityGroupsWithContext(arg0 aws.Context, arg1 *elasticache.DescribeCacheSecurityGroupsInput, arg2 ...request.Option) (*elasticache.DescribeCacheSecurityGroupsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeCacheSecurityGroupsWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.DescribeCacheSecurityGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeCacheSecurityGroupsWithContext indicates an expected call of DescribeCacheSecurityGroupsWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeCacheSecurityGroupsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCacheSecurityGroupsWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeCacheSecurityGroupsWithContext), varargs...) +} + +// DescribeCacheSubnetGroups mocks base method. +func (m *MockElastiCacheAPI) DescribeCacheSubnetGroups(arg0 *elasticache.DescribeCacheSubnetGroupsInput) (*elasticache.DescribeCacheSubnetGroupsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeCacheSubnetGroups", arg0) + ret0, _ := ret[0].(*elasticache.DescribeCacheSubnetGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeCacheSubnetGroups indicates an expected call of DescribeCacheSubnetGroups. +func (mr *MockElastiCacheAPIMockRecorder) DescribeCacheSubnetGroups(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCacheSubnetGroups", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeCacheSubnetGroups), arg0) +} + +// DescribeCacheSubnetGroupsPages mocks base method. +func (m *MockElastiCacheAPI) DescribeCacheSubnetGroupsPages(arg0 *elasticache.DescribeCacheSubnetGroupsInput, arg1 func(*elasticache.DescribeCacheSubnetGroupsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeCacheSubnetGroupsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeCacheSubnetGroupsPages indicates an expected call of DescribeCacheSubnetGroupsPages. +func (mr *MockElastiCacheAPIMockRecorder) DescribeCacheSubnetGroupsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCacheSubnetGroupsPages", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeCacheSubnetGroupsPages), arg0, arg1) +} + +// DescribeCacheSubnetGroupsPagesWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeCacheSubnetGroupsPagesWithContext(arg0 aws.Context, arg1 *elasticache.DescribeCacheSubnetGroupsInput, arg2 func(*elasticache.DescribeCacheSubnetGroupsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeCacheSubnetGroupsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeCacheSubnetGroupsPagesWithContext indicates an expected call of DescribeCacheSubnetGroupsPagesWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeCacheSubnetGroupsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCacheSubnetGroupsPagesWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeCacheSubnetGroupsPagesWithContext), varargs...) +} + +// DescribeCacheSubnetGroupsRequest mocks base method. +func (m *MockElastiCacheAPI) DescribeCacheSubnetGroupsRequest(arg0 *elasticache.DescribeCacheSubnetGroupsInput) (*request.Request, *elasticache.DescribeCacheSubnetGroupsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeCacheSubnetGroupsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.DescribeCacheSubnetGroupsOutput) + return ret0, ret1 +} + +// DescribeCacheSubnetGroupsRequest indicates an expected call of DescribeCacheSubnetGroupsRequest. +func (mr *MockElastiCacheAPIMockRecorder) DescribeCacheSubnetGroupsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCacheSubnetGroupsRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeCacheSubnetGroupsRequest), arg0) +} + +// DescribeCacheSubnetGroupsWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeCacheSubnetGroupsWithContext(arg0 aws.Context, arg1 *elasticache.DescribeCacheSubnetGroupsInput, arg2 ...request.Option) (*elasticache.DescribeCacheSubnetGroupsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeCacheSubnetGroupsWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.DescribeCacheSubnetGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeCacheSubnetGroupsWithContext indicates an expected call of DescribeCacheSubnetGroupsWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeCacheSubnetGroupsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCacheSubnetGroupsWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeCacheSubnetGroupsWithContext), varargs...) +} + +// DescribeEngineDefaultParameters mocks base method. +func (m *MockElastiCacheAPI) DescribeEngineDefaultParameters(arg0 *elasticache.DescribeEngineDefaultParametersInput) (*elasticache.DescribeEngineDefaultParametersOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeEngineDefaultParameters", arg0) + ret0, _ := ret[0].(*elasticache.DescribeEngineDefaultParametersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeEngineDefaultParameters indicates an expected call of DescribeEngineDefaultParameters. +func (mr *MockElastiCacheAPIMockRecorder) DescribeEngineDefaultParameters(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeEngineDefaultParameters", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeEngineDefaultParameters), arg0) +} + +// DescribeEngineDefaultParametersPages mocks base method. +func (m *MockElastiCacheAPI) DescribeEngineDefaultParametersPages(arg0 *elasticache.DescribeEngineDefaultParametersInput, arg1 func(*elasticache.DescribeEngineDefaultParametersOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeEngineDefaultParametersPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeEngineDefaultParametersPages indicates an expected call of DescribeEngineDefaultParametersPages. +func (mr *MockElastiCacheAPIMockRecorder) DescribeEngineDefaultParametersPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeEngineDefaultParametersPages", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeEngineDefaultParametersPages), arg0, arg1) +} + +// DescribeEngineDefaultParametersPagesWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeEngineDefaultParametersPagesWithContext(arg0 aws.Context, arg1 *elasticache.DescribeEngineDefaultParametersInput, arg2 func(*elasticache.DescribeEngineDefaultParametersOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeEngineDefaultParametersPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeEngineDefaultParametersPagesWithContext indicates an expected call of DescribeEngineDefaultParametersPagesWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeEngineDefaultParametersPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeEngineDefaultParametersPagesWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeEngineDefaultParametersPagesWithContext), varargs...) +} + +// DescribeEngineDefaultParametersRequest mocks base method. +func (m *MockElastiCacheAPI) DescribeEngineDefaultParametersRequest(arg0 *elasticache.DescribeEngineDefaultParametersInput) (*request.Request, *elasticache.DescribeEngineDefaultParametersOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeEngineDefaultParametersRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.DescribeEngineDefaultParametersOutput) + return ret0, ret1 +} + +// DescribeEngineDefaultParametersRequest indicates an expected call of DescribeEngineDefaultParametersRequest. +func (mr *MockElastiCacheAPIMockRecorder) DescribeEngineDefaultParametersRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeEngineDefaultParametersRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeEngineDefaultParametersRequest), arg0) +} + +// DescribeEngineDefaultParametersWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeEngineDefaultParametersWithContext(arg0 aws.Context, arg1 *elasticache.DescribeEngineDefaultParametersInput, arg2 ...request.Option) (*elasticache.DescribeEngineDefaultParametersOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeEngineDefaultParametersWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.DescribeEngineDefaultParametersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeEngineDefaultParametersWithContext indicates an expected call of DescribeEngineDefaultParametersWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeEngineDefaultParametersWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeEngineDefaultParametersWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeEngineDefaultParametersWithContext), varargs...) +} + +// DescribeEvents mocks base method. +func (m *MockElastiCacheAPI) DescribeEvents(arg0 *elasticache.DescribeEventsInput) (*elasticache.DescribeEventsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeEvents", arg0) + ret0, _ := ret[0].(*elasticache.DescribeEventsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeEvents indicates an expected call of DescribeEvents. +func (mr *MockElastiCacheAPIMockRecorder) DescribeEvents(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeEvents", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeEvents), arg0) +} + +// DescribeEventsPages mocks base method. +func (m *MockElastiCacheAPI) DescribeEventsPages(arg0 *elasticache.DescribeEventsInput, arg1 func(*elasticache.DescribeEventsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeEventsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeEventsPages indicates an expected call of DescribeEventsPages. +func (mr *MockElastiCacheAPIMockRecorder) DescribeEventsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeEventsPages", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeEventsPages), arg0, arg1) +} + +// DescribeEventsPagesWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeEventsPagesWithContext(arg0 aws.Context, arg1 *elasticache.DescribeEventsInput, arg2 func(*elasticache.DescribeEventsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeEventsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeEventsPagesWithContext indicates an expected call of DescribeEventsPagesWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeEventsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeEventsPagesWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeEventsPagesWithContext), varargs...) +} + +// DescribeEventsRequest mocks base method. +func (m *MockElastiCacheAPI) DescribeEventsRequest(arg0 *elasticache.DescribeEventsInput) (*request.Request, *elasticache.DescribeEventsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeEventsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.DescribeEventsOutput) + return ret0, ret1 +} + +// DescribeEventsRequest indicates an expected call of DescribeEventsRequest. +func (mr *MockElastiCacheAPIMockRecorder) DescribeEventsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeEventsRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeEventsRequest), arg0) +} + +// DescribeEventsWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeEventsWithContext(arg0 aws.Context, arg1 *elasticache.DescribeEventsInput, arg2 ...request.Option) (*elasticache.DescribeEventsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeEventsWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.DescribeEventsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeEventsWithContext indicates an expected call of DescribeEventsWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeEventsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeEventsWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeEventsWithContext), varargs...) +} + +// DescribeGlobalReplicationGroups mocks base method. +func (m *MockElastiCacheAPI) DescribeGlobalReplicationGroups(arg0 *elasticache.DescribeGlobalReplicationGroupsInput) (*elasticache.DescribeGlobalReplicationGroupsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeGlobalReplicationGroups", arg0) + ret0, _ := ret[0].(*elasticache.DescribeGlobalReplicationGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeGlobalReplicationGroups indicates an expected call of DescribeGlobalReplicationGroups. +func (mr *MockElastiCacheAPIMockRecorder) DescribeGlobalReplicationGroups(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGlobalReplicationGroups", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeGlobalReplicationGroups), arg0) +} + +// DescribeGlobalReplicationGroupsPages mocks base method. +func (m *MockElastiCacheAPI) DescribeGlobalReplicationGroupsPages(arg0 *elasticache.DescribeGlobalReplicationGroupsInput, arg1 func(*elasticache.DescribeGlobalReplicationGroupsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeGlobalReplicationGroupsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeGlobalReplicationGroupsPages indicates an expected call of DescribeGlobalReplicationGroupsPages. +func (mr *MockElastiCacheAPIMockRecorder) DescribeGlobalReplicationGroupsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGlobalReplicationGroupsPages", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeGlobalReplicationGroupsPages), arg0, arg1) +} + +// DescribeGlobalReplicationGroupsPagesWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeGlobalReplicationGroupsPagesWithContext(arg0 aws.Context, arg1 *elasticache.DescribeGlobalReplicationGroupsInput, arg2 func(*elasticache.DescribeGlobalReplicationGroupsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeGlobalReplicationGroupsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeGlobalReplicationGroupsPagesWithContext indicates an expected call of DescribeGlobalReplicationGroupsPagesWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeGlobalReplicationGroupsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGlobalReplicationGroupsPagesWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeGlobalReplicationGroupsPagesWithContext), varargs...) +} + +// DescribeGlobalReplicationGroupsRequest mocks base method. +func (m *MockElastiCacheAPI) DescribeGlobalReplicationGroupsRequest(arg0 *elasticache.DescribeGlobalReplicationGroupsInput) (*request.Request, *elasticache.DescribeGlobalReplicationGroupsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeGlobalReplicationGroupsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.DescribeGlobalReplicationGroupsOutput) + return ret0, ret1 +} + +// DescribeGlobalReplicationGroupsRequest indicates an expected call of DescribeGlobalReplicationGroupsRequest. +func (mr *MockElastiCacheAPIMockRecorder) DescribeGlobalReplicationGroupsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGlobalReplicationGroupsRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeGlobalReplicationGroupsRequest), arg0) +} + +// DescribeGlobalReplicationGroupsWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeGlobalReplicationGroupsWithContext(arg0 aws.Context, arg1 *elasticache.DescribeGlobalReplicationGroupsInput, arg2 ...request.Option) (*elasticache.DescribeGlobalReplicationGroupsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeGlobalReplicationGroupsWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.DescribeGlobalReplicationGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeGlobalReplicationGroupsWithContext indicates an expected call of DescribeGlobalReplicationGroupsWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeGlobalReplicationGroupsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGlobalReplicationGroupsWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeGlobalReplicationGroupsWithContext), varargs...) +} + +// DescribeReplicationGroups mocks base method. +func (m *MockElastiCacheAPI) DescribeReplicationGroups(arg0 *elasticache.DescribeReplicationGroupsInput) (*elasticache.DescribeReplicationGroupsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeReplicationGroups", arg0) + ret0, _ := ret[0].(*elasticache.DescribeReplicationGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeReplicationGroups indicates an expected call of DescribeReplicationGroups. +func (mr *MockElastiCacheAPIMockRecorder) DescribeReplicationGroups(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeReplicationGroups", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeReplicationGroups), arg0) +} + +// DescribeReplicationGroupsPages mocks base method. +func (m *MockElastiCacheAPI) DescribeReplicationGroupsPages(arg0 *elasticache.DescribeReplicationGroupsInput, arg1 func(*elasticache.DescribeReplicationGroupsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeReplicationGroupsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeReplicationGroupsPages indicates an expected call of DescribeReplicationGroupsPages. +func (mr *MockElastiCacheAPIMockRecorder) DescribeReplicationGroupsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeReplicationGroupsPages", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeReplicationGroupsPages), arg0, arg1) +} + +// DescribeReplicationGroupsPagesWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeReplicationGroupsPagesWithContext(arg0 aws.Context, arg1 *elasticache.DescribeReplicationGroupsInput, arg2 func(*elasticache.DescribeReplicationGroupsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeReplicationGroupsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeReplicationGroupsPagesWithContext indicates an expected call of DescribeReplicationGroupsPagesWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeReplicationGroupsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeReplicationGroupsPagesWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeReplicationGroupsPagesWithContext), varargs...) +} + +// DescribeReplicationGroupsRequest mocks base method. +func (m *MockElastiCacheAPI) DescribeReplicationGroupsRequest(arg0 *elasticache.DescribeReplicationGroupsInput) (*request.Request, *elasticache.DescribeReplicationGroupsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeReplicationGroupsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.DescribeReplicationGroupsOutput) + return ret0, ret1 +} + +// DescribeReplicationGroupsRequest indicates an expected call of DescribeReplicationGroupsRequest. +func (mr *MockElastiCacheAPIMockRecorder) DescribeReplicationGroupsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeReplicationGroupsRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeReplicationGroupsRequest), arg0) +} + +// DescribeReplicationGroupsWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeReplicationGroupsWithContext(arg0 aws.Context, arg1 *elasticache.DescribeReplicationGroupsInput, arg2 ...request.Option) (*elasticache.DescribeReplicationGroupsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeReplicationGroupsWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.DescribeReplicationGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeReplicationGroupsWithContext indicates an expected call of DescribeReplicationGroupsWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeReplicationGroupsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeReplicationGroupsWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeReplicationGroupsWithContext), varargs...) +} + +// DescribeReservedCacheNodes mocks base method. +func (m *MockElastiCacheAPI) DescribeReservedCacheNodes(arg0 *elasticache.DescribeReservedCacheNodesInput) (*elasticache.DescribeReservedCacheNodesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeReservedCacheNodes", arg0) + ret0, _ := ret[0].(*elasticache.DescribeReservedCacheNodesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeReservedCacheNodes indicates an expected call of DescribeReservedCacheNodes. +func (mr *MockElastiCacheAPIMockRecorder) DescribeReservedCacheNodes(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeReservedCacheNodes", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeReservedCacheNodes), arg0) +} + +// DescribeReservedCacheNodesOfferings mocks base method. +func (m *MockElastiCacheAPI) DescribeReservedCacheNodesOfferings(arg0 *elasticache.DescribeReservedCacheNodesOfferingsInput) (*elasticache.DescribeReservedCacheNodesOfferingsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeReservedCacheNodesOfferings", arg0) + ret0, _ := ret[0].(*elasticache.DescribeReservedCacheNodesOfferingsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeReservedCacheNodesOfferings indicates an expected call of DescribeReservedCacheNodesOfferings. +func (mr *MockElastiCacheAPIMockRecorder) DescribeReservedCacheNodesOfferings(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeReservedCacheNodesOfferings", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeReservedCacheNodesOfferings), arg0) +} + +// DescribeReservedCacheNodesOfferingsPages mocks base method. +func (m *MockElastiCacheAPI) DescribeReservedCacheNodesOfferingsPages(arg0 *elasticache.DescribeReservedCacheNodesOfferingsInput, arg1 func(*elasticache.DescribeReservedCacheNodesOfferingsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeReservedCacheNodesOfferingsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeReservedCacheNodesOfferingsPages indicates an expected call of DescribeReservedCacheNodesOfferingsPages. +func (mr *MockElastiCacheAPIMockRecorder) DescribeReservedCacheNodesOfferingsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeReservedCacheNodesOfferingsPages", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeReservedCacheNodesOfferingsPages), arg0, arg1) +} + +// DescribeReservedCacheNodesOfferingsPagesWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeReservedCacheNodesOfferingsPagesWithContext(arg0 aws.Context, arg1 *elasticache.DescribeReservedCacheNodesOfferingsInput, arg2 func(*elasticache.DescribeReservedCacheNodesOfferingsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeReservedCacheNodesOfferingsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeReservedCacheNodesOfferingsPagesWithContext indicates an expected call of DescribeReservedCacheNodesOfferingsPagesWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeReservedCacheNodesOfferingsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeReservedCacheNodesOfferingsPagesWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeReservedCacheNodesOfferingsPagesWithContext), varargs...) +} + +// DescribeReservedCacheNodesOfferingsRequest mocks base method. +func (m *MockElastiCacheAPI) DescribeReservedCacheNodesOfferingsRequest(arg0 *elasticache.DescribeReservedCacheNodesOfferingsInput) (*request.Request, *elasticache.DescribeReservedCacheNodesOfferingsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeReservedCacheNodesOfferingsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.DescribeReservedCacheNodesOfferingsOutput) + return ret0, ret1 +} + +// DescribeReservedCacheNodesOfferingsRequest indicates an expected call of DescribeReservedCacheNodesOfferingsRequest. +func (mr *MockElastiCacheAPIMockRecorder) DescribeReservedCacheNodesOfferingsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeReservedCacheNodesOfferingsRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeReservedCacheNodesOfferingsRequest), arg0) +} + +// DescribeReservedCacheNodesOfferingsWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeReservedCacheNodesOfferingsWithContext(arg0 aws.Context, arg1 *elasticache.DescribeReservedCacheNodesOfferingsInput, arg2 ...request.Option) (*elasticache.DescribeReservedCacheNodesOfferingsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeReservedCacheNodesOfferingsWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.DescribeReservedCacheNodesOfferingsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeReservedCacheNodesOfferingsWithContext indicates an expected call of DescribeReservedCacheNodesOfferingsWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeReservedCacheNodesOfferingsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeReservedCacheNodesOfferingsWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeReservedCacheNodesOfferingsWithContext), varargs...) +} + +// DescribeReservedCacheNodesPages mocks base method. +func (m *MockElastiCacheAPI) DescribeReservedCacheNodesPages(arg0 *elasticache.DescribeReservedCacheNodesInput, arg1 func(*elasticache.DescribeReservedCacheNodesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeReservedCacheNodesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeReservedCacheNodesPages indicates an expected call of DescribeReservedCacheNodesPages. +func (mr *MockElastiCacheAPIMockRecorder) DescribeReservedCacheNodesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeReservedCacheNodesPages", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeReservedCacheNodesPages), arg0, arg1) +} + +// DescribeReservedCacheNodesPagesWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeReservedCacheNodesPagesWithContext(arg0 aws.Context, arg1 *elasticache.DescribeReservedCacheNodesInput, arg2 func(*elasticache.DescribeReservedCacheNodesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeReservedCacheNodesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeReservedCacheNodesPagesWithContext indicates an expected call of DescribeReservedCacheNodesPagesWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeReservedCacheNodesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeReservedCacheNodesPagesWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeReservedCacheNodesPagesWithContext), varargs...) +} + +// DescribeReservedCacheNodesRequest mocks base method. +func (m *MockElastiCacheAPI) DescribeReservedCacheNodesRequest(arg0 *elasticache.DescribeReservedCacheNodesInput) (*request.Request, *elasticache.DescribeReservedCacheNodesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeReservedCacheNodesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.DescribeReservedCacheNodesOutput) + return ret0, ret1 +} + +// DescribeReservedCacheNodesRequest indicates an expected call of DescribeReservedCacheNodesRequest. +func (mr *MockElastiCacheAPIMockRecorder) DescribeReservedCacheNodesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeReservedCacheNodesRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeReservedCacheNodesRequest), arg0) +} + +// DescribeReservedCacheNodesWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeReservedCacheNodesWithContext(arg0 aws.Context, arg1 *elasticache.DescribeReservedCacheNodesInput, arg2 ...request.Option) (*elasticache.DescribeReservedCacheNodesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeReservedCacheNodesWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.DescribeReservedCacheNodesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeReservedCacheNodesWithContext indicates an expected call of DescribeReservedCacheNodesWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeReservedCacheNodesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeReservedCacheNodesWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeReservedCacheNodesWithContext), varargs...) +} + +// DescribeServerlessCacheSnapshots mocks base method. +func (m *MockElastiCacheAPI) DescribeServerlessCacheSnapshots(arg0 *elasticache.DescribeServerlessCacheSnapshotsInput) (*elasticache.DescribeServerlessCacheSnapshotsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeServerlessCacheSnapshots", arg0) + ret0, _ := ret[0].(*elasticache.DescribeServerlessCacheSnapshotsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeServerlessCacheSnapshots indicates an expected call of DescribeServerlessCacheSnapshots. +func (mr *MockElastiCacheAPIMockRecorder) DescribeServerlessCacheSnapshots(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeServerlessCacheSnapshots", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeServerlessCacheSnapshots), arg0) +} + +// DescribeServerlessCacheSnapshotsPages mocks base method. +func (m *MockElastiCacheAPI) DescribeServerlessCacheSnapshotsPages(arg0 *elasticache.DescribeServerlessCacheSnapshotsInput, arg1 func(*elasticache.DescribeServerlessCacheSnapshotsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeServerlessCacheSnapshotsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeServerlessCacheSnapshotsPages indicates an expected call of DescribeServerlessCacheSnapshotsPages. +func (mr *MockElastiCacheAPIMockRecorder) DescribeServerlessCacheSnapshotsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeServerlessCacheSnapshotsPages", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeServerlessCacheSnapshotsPages), arg0, arg1) +} + +// DescribeServerlessCacheSnapshotsPagesWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeServerlessCacheSnapshotsPagesWithContext(arg0 aws.Context, arg1 *elasticache.DescribeServerlessCacheSnapshotsInput, arg2 func(*elasticache.DescribeServerlessCacheSnapshotsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeServerlessCacheSnapshotsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeServerlessCacheSnapshotsPagesWithContext indicates an expected call of DescribeServerlessCacheSnapshotsPagesWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeServerlessCacheSnapshotsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeServerlessCacheSnapshotsPagesWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeServerlessCacheSnapshotsPagesWithContext), varargs...) +} + +// DescribeServerlessCacheSnapshotsRequest mocks base method. +func (m *MockElastiCacheAPI) DescribeServerlessCacheSnapshotsRequest(arg0 *elasticache.DescribeServerlessCacheSnapshotsInput) (*request.Request, *elasticache.DescribeServerlessCacheSnapshotsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeServerlessCacheSnapshotsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.DescribeServerlessCacheSnapshotsOutput) + return ret0, ret1 +} + +// DescribeServerlessCacheSnapshotsRequest indicates an expected call of DescribeServerlessCacheSnapshotsRequest. +func (mr *MockElastiCacheAPIMockRecorder) DescribeServerlessCacheSnapshotsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeServerlessCacheSnapshotsRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeServerlessCacheSnapshotsRequest), arg0) +} + +// DescribeServerlessCacheSnapshotsWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeServerlessCacheSnapshotsWithContext(arg0 aws.Context, arg1 *elasticache.DescribeServerlessCacheSnapshotsInput, arg2 ...request.Option) (*elasticache.DescribeServerlessCacheSnapshotsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeServerlessCacheSnapshotsWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.DescribeServerlessCacheSnapshotsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeServerlessCacheSnapshotsWithContext indicates an expected call of DescribeServerlessCacheSnapshotsWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeServerlessCacheSnapshotsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeServerlessCacheSnapshotsWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeServerlessCacheSnapshotsWithContext), varargs...) +} + +// DescribeServerlessCaches mocks base method. +func (m *MockElastiCacheAPI) DescribeServerlessCaches(arg0 *elasticache.DescribeServerlessCachesInput) (*elasticache.DescribeServerlessCachesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeServerlessCaches", arg0) + ret0, _ := ret[0].(*elasticache.DescribeServerlessCachesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeServerlessCaches indicates an expected call of DescribeServerlessCaches. +func (mr *MockElastiCacheAPIMockRecorder) DescribeServerlessCaches(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeServerlessCaches", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeServerlessCaches), arg0) +} + +// DescribeServerlessCachesPages mocks base method. +func (m *MockElastiCacheAPI) DescribeServerlessCachesPages(arg0 *elasticache.DescribeServerlessCachesInput, arg1 func(*elasticache.DescribeServerlessCachesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeServerlessCachesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeServerlessCachesPages indicates an expected call of DescribeServerlessCachesPages. +func (mr *MockElastiCacheAPIMockRecorder) DescribeServerlessCachesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeServerlessCachesPages", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeServerlessCachesPages), arg0, arg1) +} + +// DescribeServerlessCachesPagesWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeServerlessCachesPagesWithContext(arg0 aws.Context, arg1 *elasticache.DescribeServerlessCachesInput, arg2 func(*elasticache.DescribeServerlessCachesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeServerlessCachesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeServerlessCachesPagesWithContext indicates an expected call of DescribeServerlessCachesPagesWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeServerlessCachesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeServerlessCachesPagesWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeServerlessCachesPagesWithContext), varargs...) +} + +// DescribeServerlessCachesRequest mocks base method. +func (m *MockElastiCacheAPI) DescribeServerlessCachesRequest(arg0 *elasticache.DescribeServerlessCachesInput) (*request.Request, *elasticache.DescribeServerlessCachesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeServerlessCachesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.DescribeServerlessCachesOutput) + return ret0, ret1 +} + +// DescribeServerlessCachesRequest indicates an expected call of DescribeServerlessCachesRequest. +func (mr *MockElastiCacheAPIMockRecorder) DescribeServerlessCachesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeServerlessCachesRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeServerlessCachesRequest), arg0) +} + +// DescribeServerlessCachesWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeServerlessCachesWithContext(arg0 aws.Context, arg1 *elasticache.DescribeServerlessCachesInput, arg2 ...request.Option) (*elasticache.DescribeServerlessCachesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeServerlessCachesWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.DescribeServerlessCachesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeServerlessCachesWithContext indicates an expected call of DescribeServerlessCachesWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeServerlessCachesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeServerlessCachesWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeServerlessCachesWithContext), varargs...) +} + +// DescribeServiceUpdates mocks base method. +func (m *MockElastiCacheAPI) DescribeServiceUpdates(arg0 *elasticache.DescribeServiceUpdatesInput) (*elasticache.DescribeServiceUpdatesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeServiceUpdates", arg0) + ret0, _ := ret[0].(*elasticache.DescribeServiceUpdatesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeServiceUpdates indicates an expected call of DescribeServiceUpdates. +func (mr *MockElastiCacheAPIMockRecorder) DescribeServiceUpdates(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeServiceUpdates", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeServiceUpdates), arg0) +} + +// DescribeServiceUpdatesPages mocks base method. +func (m *MockElastiCacheAPI) DescribeServiceUpdatesPages(arg0 *elasticache.DescribeServiceUpdatesInput, arg1 func(*elasticache.DescribeServiceUpdatesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeServiceUpdatesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeServiceUpdatesPages indicates an expected call of DescribeServiceUpdatesPages. +func (mr *MockElastiCacheAPIMockRecorder) DescribeServiceUpdatesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeServiceUpdatesPages", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeServiceUpdatesPages), arg0, arg1) +} + +// DescribeServiceUpdatesPagesWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeServiceUpdatesPagesWithContext(arg0 aws.Context, arg1 *elasticache.DescribeServiceUpdatesInput, arg2 func(*elasticache.DescribeServiceUpdatesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeServiceUpdatesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeServiceUpdatesPagesWithContext indicates an expected call of DescribeServiceUpdatesPagesWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeServiceUpdatesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeServiceUpdatesPagesWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeServiceUpdatesPagesWithContext), varargs...) +} + +// DescribeServiceUpdatesRequest mocks base method. +func (m *MockElastiCacheAPI) DescribeServiceUpdatesRequest(arg0 *elasticache.DescribeServiceUpdatesInput) (*request.Request, *elasticache.DescribeServiceUpdatesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeServiceUpdatesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.DescribeServiceUpdatesOutput) + return ret0, ret1 +} + +// DescribeServiceUpdatesRequest indicates an expected call of DescribeServiceUpdatesRequest. +func (mr *MockElastiCacheAPIMockRecorder) DescribeServiceUpdatesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeServiceUpdatesRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeServiceUpdatesRequest), arg0) +} + +// DescribeServiceUpdatesWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeServiceUpdatesWithContext(arg0 aws.Context, arg1 *elasticache.DescribeServiceUpdatesInput, arg2 ...request.Option) (*elasticache.DescribeServiceUpdatesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeServiceUpdatesWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.DescribeServiceUpdatesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeServiceUpdatesWithContext indicates an expected call of DescribeServiceUpdatesWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeServiceUpdatesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeServiceUpdatesWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeServiceUpdatesWithContext), varargs...) +} + +// DescribeSnapshots mocks base method. +func (m *MockElastiCacheAPI) DescribeSnapshots(arg0 *elasticache.DescribeSnapshotsInput) (*elasticache.DescribeSnapshotsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeSnapshots", arg0) + ret0, _ := ret[0].(*elasticache.DescribeSnapshotsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeSnapshots indicates an expected call of DescribeSnapshots. +func (mr *MockElastiCacheAPIMockRecorder) DescribeSnapshots(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeSnapshots", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeSnapshots), arg0) +} + +// DescribeSnapshotsPages mocks base method. +func (m *MockElastiCacheAPI) DescribeSnapshotsPages(arg0 *elasticache.DescribeSnapshotsInput, arg1 func(*elasticache.DescribeSnapshotsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeSnapshotsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeSnapshotsPages indicates an expected call of DescribeSnapshotsPages. +func (mr *MockElastiCacheAPIMockRecorder) DescribeSnapshotsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeSnapshotsPages", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeSnapshotsPages), arg0, arg1) +} + +// DescribeSnapshotsPagesWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeSnapshotsPagesWithContext(arg0 aws.Context, arg1 *elasticache.DescribeSnapshotsInput, arg2 func(*elasticache.DescribeSnapshotsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeSnapshotsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeSnapshotsPagesWithContext indicates an expected call of DescribeSnapshotsPagesWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeSnapshotsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeSnapshotsPagesWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeSnapshotsPagesWithContext), varargs...) +} + +// DescribeSnapshotsRequest mocks base method. +func (m *MockElastiCacheAPI) DescribeSnapshotsRequest(arg0 *elasticache.DescribeSnapshotsInput) (*request.Request, *elasticache.DescribeSnapshotsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeSnapshotsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.DescribeSnapshotsOutput) + return ret0, ret1 +} + +// DescribeSnapshotsRequest indicates an expected call of DescribeSnapshotsRequest. +func (mr *MockElastiCacheAPIMockRecorder) DescribeSnapshotsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeSnapshotsRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeSnapshotsRequest), arg0) +} + +// DescribeSnapshotsWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeSnapshotsWithContext(arg0 aws.Context, arg1 *elasticache.DescribeSnapshotsInput, arg2 ...request.Option) (*elasticache.DescribeSnapshotsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeSnapshotsWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.DescribeSnapshotsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeSnapshotsWithContext indicates an expected call of DescribeSnapshotsWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeSnapshotsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeSnapshotsWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeSnapshotsWithContext), varargs...) +} + +// DescribeUpdateActions mocks base method. +func (m *MockElastiCacheAPI) DescribeUpdateActions(arg0 *elasticache.DescribeUpdateActionsInput) (*elasticache.DescribeUpdateActionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeUpdateActions", arg0) + ret0, _ := ret[0].(*elasticache.DescribeUpdateActionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeUpdateActions indicates an expected call of DescribeUpdateActions. +func (mr *MockElastiCacheAPIMockRecorder) DescribeUpdateActions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeUpdateActions", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeUpdateActions), arg0) +} + +// DescribeUpdateActionsPages mocks base method. +func (m *MockElastiCacheAPI) DescribeUpdateActionsPages(arg0 *elasticache.DescribeUpdateActionsInput, arg1 func(*elasticache.DescribeUpdateActionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeUpdateActionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeUpdateActionsPages indicates an expected call of DescribeUpdateActionsPages. +func (mr *MockElastiCacheAPIMockRecorder) DescribeUpdateActionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeUpdateActionsPages", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeUpdateActionsPages), arg0, arg1) +} + +// DescribeUpdateActionsPagesWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeUpdateActionsPagesWithContext(arg0 aws.Context, arg1 *elasticache.DescribeUpdateActionsInput, arg2 func(*elasticache.DescribeUpdateActionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeUpdateActionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeUpdateActionsPagesWithContext indicates an expected call of DescribeUpdateActionsPagesWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeUpdateActionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeUpdateActionsPagesWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeUpdateActionsPagesWithContext), varargs...) +} + +// DescribeUpdateActionsRequest mocks base method. +func (m *MockElastiCacheAPI) DescribeUpdateActionsRequest(arg0 *elasticache.DescribeUpdateActionsInput) (*request.Request, *elasticache.DescribeUpdateActionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeUpdateActionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.DescribeUpdateActionsOutput) + return ret0, ret1 +} + +// DescribeUpdateActionsRequest indicates an expected call of DescribeUpdateActionsRequest. +func (mr *MockElastiCacheAPIMockRecorder) DescribeUpdateActionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeUpdateActionsRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeUpdateActionsRequest), arg0) +} + +// DescribeUpdateActionsWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeUpdateActionsWithContext(arg0 aws.Context, arg1 *elasticache.DescribeUpdateActionsInput, arg2 ...request.Option) (*elasticache.DescribeUpdateActionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeUpdateActionsWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.DescribeUpdateActionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeUpdateActionsWithContext indicates an expected call of DescribeUpdateActionsWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeUpdateActionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeUpdateActionsWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeUpdateActionsWithContext), varargs...) +} + +// DescribeUserGroups mocks base method. +func (m *MockElastiCacheAPI) DescribeUserGroups(arg0 *elasticache.DescribeUserGroupsInput) (*elasticache.DescribeUserGroupsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeUserGroups", arg0) + ret0, _ := ret[0].(*elasticache.DescribeUserGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeUserGroups indicates an expected call of DescribeUserGroups. +func (mr *MockElastiCacheAPIMockRecorder) DescribeUserGroups(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeUserGroups", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeUserGroups), arg0) +} + +// DescribeUserGroupsPages mocks base method. +func (m *MockElastiCacheAPI) DescribeUserGroupsPages(arg0 *elasticache.DescribeUserGroupsInput, arg1 func(*elasticache.DescribeUserGroupsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeUserGroupsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeUserGroupsPages indicates an expected call of DescribeUserGroupsPages. +func (mr *MockElastiCacheAPIMockRecorder) DescribeUserGroupsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeUserGroupsPages", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeUserGroupsPages), arg0, arg1) +} + +// DescribeUserGroupsPagesWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeUserGroupsPagesWithContext(arg0 aws.Context, arg1 *elasticache.DescribeUserGroupsInput, arg2 func(*elasticache.DescribeUserGroupsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeUserGroupsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeUserGroupsPagesWithContext indicates an expected call of DescribeUserGroupsPagesWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeUserGroupsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeUserGroupsPagesWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeUserGroupsPagesWithContext), varargs...) +} + +// DescribeUserGroupsRequest mocks base method. +func (m *MockElastiCacheAPI) DescribeUserGroupsRequest(arg0 *elasticache.DescribeUserGroupsInput) (*request.Request, *elasticache.DescribeUserGroupsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeUserGroupsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.DescribeUserGroupsOutput) + return ret0, ret1 +} + +// DescribeUserGroupsRequest indicates an expected call of DescribeUserGroupsRequest. +func (mr *MockElastiCacheAPIMockRecorder) DescribeUserGroupsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeUserGroupsRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeUserGroupsRequest), arg0) +} + +// DescribeUserGroupsWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeUserGroupsWithContext(arg0 aws.Context, arg1 *elasticache.DescribeUserGroupsInput, arg2 ...request.Option) (*elasticache.DescribeUserGroupsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeUserGroupsWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.DescribeUserGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeUserGroupsWithContext indicates an expected call of DescribeUserGroupsWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeUserGroupsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeUserGroupsWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeUserGroupsWithContext), varargs...) +} + +// DescribeUsers mocks base method. +func (m *MockElastiCacheAPI) DescribeUsers(arg0 *elasticache.DescribeUsersInput) (*elasticache.DescribeUsersOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeUsers", arg0) + ret0, _ := ret[0].(*elasticache.DescribeUsersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeUsers indicates an expected call of DescribeUsers. +func (mr *MockElastiCacheAPIMockRecorder) DescribeUsers(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeUsers", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeUsers), arg0) +} + +// DescribeUsersPages mocks base method. +func (m *MockElastiCacheAPI) DescribeUsersPages(arg0 *elasticache.DescribeUsersInput, arg1 func(*elasticache.DescribeUsersOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeUsersPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeUsersPages indicates an expected call of DescribeUsersPages. +func (mr *MockElastiCacheAPIMockRecorder) DescribeUsersPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeUsersPages", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeUsersPages), arg0, arg1) +} + +// DescribeUsersPagesWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeUsersPagesWithContext(arg0 aws.Context, arg1 *elasticache.DescribeUsersInput, arg2 func(*elasticache.DescribeUsersOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeUsersPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeUsersPagesWithContext indicates an expected call of DescribeUsersPagesWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeUsersPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeUsersPagesWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeUsersPagesWithContext), varargs...) +} + +// DescribeUsersRequest mocks base method. +func (m *MockElastiCacheAPI) DescribeUsersRequest(arg0 *elasticache.DescribeUsersInput) (*request.Request, *elasticache.DescribeUsersOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeUsersRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.DescribeUsersOutput) + return ret0, ret1 +} + +// DescribeUsersRequest indicates an expected call of DescribeUsersRequest. +func (mr *MockElastiCacheAPIMockRecorder) DescribeUsersRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeUsersRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeUsersRequest), arg0) +} + +// DescribeUsersWithContext mocks base method. +func (m *MockElastiCacheAPI) DescribeUsersWithContext(arg0 aws.Context, arg1 *elasticache.DescribeUsersInput, arg2 ...request.Option) (*elasticache.DescribeUsersOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeUsersWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.DescribeUsersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeUsersWithContext indicates an expected call of DescribeUsersWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DescribeUsersWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeUsersWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DescribeUsersWithContext), varargs...) +} + +// DisassociateGlobalReplicationGroup mocks base method. +func (m *MockElastiCacheAPI) DisassociateGlobalReplicationGroup(arg0 *elasticache.DisassociateGlobalReplicationGroupInput) (*elasticache.DisassociateGlobalReplicationGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DisassociateGlobalReplicationGroup", arg0) + ret0, _ := ret[0].(*elasticache.DisassociateGlobalReplicationGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DisassociateGlobalReplicationGroup indicates an expected call of DisassociateGlobalReplicationGroup. +func (mr *MockElastiCacheAPIMockRecorder) DisassociateGlobalReplicationGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisassociateGlobalReplicationGroup", reflect.TypeOf((*MockElastiCacheAPI)(nil).DisassociateGlobalReplicationGroup), arg0) +} + +// DisassociateGlobalReplicationGroupRequest mocks base method. +func (m *MockElastiCacheAPI) DisassociateGlobalReplicationGroupRequest(arg0 *elasticache.DisassociateGlobalReplicationGroupInput) (*request.Request, *elasticache.DisassociateGlobalReplicationGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DisassociateGlobalReplicationGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.DisassociateGlobalReplicationGroupOutput) + return ret0, ret1 +} + +// DisassociateGlobalReplicationGroupRequest indicates an expected call of DisassociateGlobalReplicationGroupRequest. +func (mr *MockElastiCacheAPIMockRecorder) DisassociateGlobalReplicationGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisassociateGlobalReplicationGroupRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).DisassociateGlobalReplicationGroupRequest), arg0) +} + +// DisassociateGlobalReplicationGroupWithContext mocks base method. +func (m *MockElastiCacheAPI) DisassociateGlobalReplicationGroupWithContext(arg0 aws.Context, arg1 *elasticache.DisassociateGlobalReplicationGroupInput, arg2 ...request.Option) (*elasticache.DisassociateGlobalReplicationGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DisassociateGlobalReplicationGroupWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.DisassociateGlobalReplicationGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DisassociateGlobalReplicationGroupWithContext indicates an expected call of DisassociateGlobalReplicationGroupWithContext. +func (mr *MockElastiCacheAPIMockRecorder) DisassociateGlobalReplicationGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisassociateGlobalReplicationGroupWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).DisassociateGlobalReplicationGroupWithContext), varargs...) +} + +// ExportServerlessCacheSnapshot mocks base method. +func (m *MockElastiCacheAPI) ExportServerlessCacheSnapshot(arg0 *elasticache.ExportServerlessCacheSnapshotInput) (*elasticache.ExportServerlessCacheSnapshotOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExportServerlessCacheSnapshot", arg0) + ret0, _ := ret[0].(*elasticache.ExportServerlessCacheSnapshotOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExportServerlessCacheSnapshot indicates an expected call of ExportServerlessCacheSnapshot. +func (mr *MockElastiCacheAPIMockRecorder) ExportServerlessCacheSnapshot(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExportServerlessCacheSnapshot", reflect.TypeOf((*MockElastiCacheAPI)(nil).ExportServerlessCacheSnapshot), arg0) +} + +// ExportServerlessCacheSnapshotRequest mocks base method. +func (m *MockElastiCacheAPI) ExportServerlessCacheSnapshotRequest(arg0 *elasticache.ExportServerlessCacheSnapshotInput) (*request.Request, *elasticache.ExportServerlessCacheSnapshotOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExportServerlessCacheSnapshotRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.ExportServerlessCacheSnapshotOutput) + return ret0, ret1 +} + +// ExportServerlessCacheSnapshotRequest indicates an expected call of ExportServerlessCacheSnapshotRequest. +func (mr *MockElastiCacheAPIMockRecorder) ExportServerlessCacheSnapshotRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExportServerlessCacheSnapshotRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).ExportServerlessCacheSnapshotRequest), arg0) +} + +// ExportServerlessCacheSnapshotWithContext mocks base method. +func (m *MockElastiCacheAPI) ExportServerlessCacheSnapshotWithContext(arg0 aws.Context, arg1 *elasticache.ExportServerlessCacheSnapshotInput, arg2 ...request.Option) (*elasticache.ExportServerlessCacheSnapshotOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ExportServerlessCacheSnapshotWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.ExportServerlessCacheSnapshotOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExportServerlessCacheSnapshotWithContext indicates an expected call of ExportServerlessCacheSnapshotWithContext. +func (mr *MockElastiCacheAPIMockRecorder) ExportServerlessCacheSnapshotWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExportServerlessCacheSnapshotWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).ExportServerlessCacheSnapshotWithContext), varargs...) +} + +// FailoverGlobalReplicationGroup mocks base method. +func (m *MockElastiCacheAPI) FailoverGlobalReplicationGroup(arg0 *elasticache.FailoverGlobalReplicationGroupInput) (*elasticache.FailoverGlobalReplicationGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "FailoverGlobalReplicationGroup", arg0) + ret0, _ := ret[0].(*elasticache.FailoverGlobalReplicationGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// FailoverGlobalReplicationGroup indicates an expected call of FailoverGlobalReplicationGroup. +func (mr *MockElastiCacheAPIMockRecorder) FailoverGlobalReplicationGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FailoverGlobalReplicationGroup", reflect.TypeOf((*MockElastiCacheAPI)(nil).FailoverGlobalReplicationGroup), arg0) +} + +// FailoverGlobalReplicationGroupRequest mocks base method. +func (m *MockElastiCacheAPI) FailoverGlobalReplicationGroupRequest(arg0 *elasticache.FailoverGlobalReplicationGroupInput) (*request.Request, *elasticache.FailoverGlobalReplicationGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "FailoverGlobalReplicationGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.FailoverGlobalReplicationGroupOutput) + return ret0, ret1 +} + +// FailoverGlobalReplicationGroupRequest indicates an expected call of FailoverGlobalReplicationGroupRequest. +func (mr *MockElastiCacheAPIMockRecorder) FailoverGlobalReplicationGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FailoverGlobalReplicationGroupRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).FailoverGlobalReplicationGroupRequest), arg0) +} + +// FailoverGlobalReplicationGroupWithContext mocks base method. +func (m *MockElastiCacheAPI) FailoverGlobalReplicationGroupWithContext(arg0 aws.Context, arg1 *elasticache.FailoverGlobalReplicationGroupInput, arg2 ...request.Option) (*elasticache.FailoverGlobalReplicationGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "FailoverGlobalReplicationGroupWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.FailoverGlobalReplicationGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// FailoverGlobalReplicationGroupWithContext indicates an expected call of FailoverGlobalReplicationGroupWithContext. +func (mr *MockElastiCacheAPIMockRecorder) FailoverGlobalReplicationGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FailoverGlobalReplicationGroupWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).FailoverGlobalReplicationGroupWithContext), varargs...) +} + +// IncreaseNodeGroupsInGlobalReplicationGroup mocks base method. +func (m *MockElastiCacheAPI) IncreaseNodeGroupsInGlobalReplicationGroup(arg0 *elasticache.IncreaseNodeGroupsInGlobalReplicationGroupInput) (*elasticache.IncreaseNodeGroupsInGlobalReplicationGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "IncreaseNodeGroupsInGlobalReplicationGroup", arg0) + ret0, _ := ret[0].(*elasticache.IncreaseNodeGroupsInGlobalReplicationGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// IncreaseNodeGroupsInGlobalReplicationGroup indicates an expected call of IncreaseNodeGroupsInGlobalReplicationGroup. +func (mr *MockElastiCacheAPIMockRecorder) IncreaseNodeGroupsInGlobalReplicationGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IncreaseNodeGroupsInGlobalReplicationGroup", reflect.TypeOf((*MockElastiCacheAPI)(nil).IncreaseNodeGroupsInGlobalReplicationGroup), arg0) +} + +// IncreaseNodeGroupsInGlobalReplicationGroupRequest mocks base method. +func (m *MockElastiCacheAPI) IncreaseNodeGroupsInGlobalReplicationGroupRequest(arg0 *elasticache.IncreaseNodeGroupsInGlobalReplicationGroupInput) (*request.Request, *elasticache.IncreaseNodeGroupsInGlobalReplicationGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "IncreaseNodeGroupsInGlobalReplicationGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.IncreaseNodeGroupsInGlobalReplicationGroupOutput) + return ret0, ret1 +} + +// IncreaseNodeGroupsInGlobalReplicationGroupRequest indicates an expected call of IncreaseNodeGroupsInGlobalReplicationGroupRequest. +func (mr *MockElastiCacheAPIMockRecorder) IncreaseNodeGroupsInGlobalReplicationGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IncreaseNodeGroupsInGlobalReplicationGroupRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).IncreaseNodeGroupsInGlobalReplicationGroupRequest), arg0) +} + +// IncreaseNodeGroupsInGlobalReplicationGroupWithContext mocks base method. +func (m *MockElastiCacheAPI) IncreaseNodeGroupsInGlobalReplicationGroupWithContext(arg0 aws.Context, arg1 *elasticache.IncreaseNodeGroupsInGlobalReplicationGroupInput, arg2 ...request.Option) (*elasticache.IncreaseNodeGroupsInGlobalReplicationGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "IncreaseNodeGroupsInGlobalReplicationGroupWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.IncreaseNodeGroupsInGlobalReplicationGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// IncreaseNodeGroupsInGlobalReplicationGroupWithContext indicates an expected call of IncreaseNodeGroupsInGlobalReplicationGroupWithContext. +func (mr *MockElastiCacheAPIMockRecorder) IncreaseNodeGroupsInGlobalReplicationGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IncreaseNodeGroupsInGlobalReplicationGroupWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).IncreaseNodeGroupsInGlobalReplicationGroupWithContext), varargs...) +} + +// IncreaseReplicaCount mocks base method. +func (m *MockElastiCacheAPI) IncreaseReplicaCount(arg0 *elasticache.IncreaseReplicaCountInput) (*elasticache.IncreaseReplicaCountOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "IncreaseReplicaCount", arg0) + ret0, _ := ret[0].(*elasticache.IncreaseReplicaCountOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// IncreaseReplicaCount indicates an expected call of IncreaseReplicaCount. +func (mr *MockElastiCacheAPIMockRecorder) IncreaseReplicaCount(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IncreaseReplicaCount", reflect.TypeOf((*MockElastiCacheAPI)(nil).IncreaseReplicaCount), arg0) +} + +// IncreaseReplicaCountRequest mocks base method. +func (m *MockElastiCacheAPI) IncreaseReplicaCountRequest(arg0 *elasticache.IncreaseReplicaCountInput) (*request.Request, *elasticache.IncreaseReplicaCountOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "IncreaseReplicaCountRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.IncreaseReplicaCountOutput) + return ret0, ret1 +} + +// IncreaseReplicaCountRequest indicates an expected call of IncreaseReplicaCountRequest. +func (mr *MockElastiCacheAPIMockRecorder) IncreaseReplicaCountRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IncreaseReplicaCountRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).IncreaseReplicaCountRequest), arg0) +} + +// IncreaseReplicaCountWithContext mocks base method. +func (m *MockElastiCacheAPI) IncreaseReplicaCountWithContext(arg0 aws.Context, arg1 *elasticache.IncreaseReplicaCountInput, arg2 ...request.Option) (*elasticache.IncreaseReplicaCountOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "IncreaseReplicaCountWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.IncreaseReplicaCountOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// IncreaseReplicaCountWithContext indicates an expected call of IncreaseReplicaCountWithContext. +func (mr *MockElastiCacheAPIMockRecorder) IncreaseReplicaCountWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IncreaseReplicaCountWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).IncreaseReplicaCountWithContext), varargs...) +} + +// ListAllowedNodeTypeModifications mocks base method. +func (m *MockElastiCacheAPI) ListAllowedNodeTypeModifications(arg0 *elasticache.ListAllowedNodeTypeModificationsInput) (*elasticache.ListAllowedNodeTypeModificationsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAllowedNodeTypeModifications", arg0) + ret0, _ := ret[0].(*elasticache.ListAllowedNodeTypeModificationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAllowedNodeTypeModifications indicates an expected call of ListAllowedNodeTypeModifications. +func (mr *MockElastiCacheAPIMockRecorder) ListAllowedNodeTypeModifications(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAllowedNodeTypeModifications", reflect.TypeOf((*MockElastiCacheAPI)(nil).ListAllowedNodeTypeModifications), arg0) +} + +// ListAllowedNodeTypeModificationsRequest mocks base method. +func (m *MockElastiCacheAPI) ListAllowedNodeTypeModificationsRequest(arg0 *elasticache.ListAllowedNodeTypeModificationsInput) (*request.Request, *elasticache.ListAllowedNodeTypeModificationsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAllowedNodeTypeModificationsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.ListAllowedNodeTypeModificationsOutput) + return ret0, ret1 +} + +// ListAllowedNodeTypeModificationsRequest indicates an expected call of ListAllowedNodeTypeModificationsRequest. +func (mr *MockElastiCacheAPIMockRecorder) ListAllowedNodeTypeModificationsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAllowedNodeTypeModificationsRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).ListAllowedNodeTypeModificationsRequest), arg0) +} + +// ListAllowedNodeTypeModificationsWithContext mocks base method. +func (m *MockElastiCacheAPI) ListAllowedNodeTypeModificationsWithContext(arg0 aws.Context, arg1 *elasticache.ListAllowedNodeTypeModificationsInput, arg2 ...request.Option) (*elasticache.ListAllowedNodeTypeModificationsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAllowedNodeTypeModificationsWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.ListAllowedNodeTypeModificationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAllowedNodeTypeModificationsWithContext indicates an expected call of ListAllowedNodeTypeModificationsWithContext. +func (mr *MockElastiCacheAPIMockRecorder) ListAllowedNodeTypeModificationsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAllowedNodeTypeModificationsWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).ListAllowedNodeTypeModificationsWithContext), varargs...) +} + +// ListTagsForResource mocks base method. +func (m *MockElastiCacheAPI) ListTagsForResource(arg0 *elasticache.ListTagsForResourceInput) (*elasticache.TagListMessage, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTagsForResource", arg0) + ret0, _ := ret[0].(*elasticache.TagListMessage) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTagsForResource indicates an expected call of ListTagsForResource. +func (mr *MockElastiCacheAPIMockRecorder) ListTagsForResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsForResource", reflect.TypeOf((*MockElastiCacheAPI)(nil).ListTagsForResource), arg0) +} + +// ListTagsForResourceRequest mocks base method. +func (m *MockElastiCacheAPI) ListTagsForResourceRequest(arg0 *elasticache.ListTagsForResourceInput) (*request.Request, *elasticache.TagListMessage) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTagsForResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.TagListMessage) + return ret0, ret1 +} + +// ListTagsForResourceRequest indicates an expected call of ListTagsForResourceRequest. +func (mr *MockElastiCacheAPIMockRecorder) ListTagsForResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsForResourceRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).ListTagsForResourceRequest), arg0) +} + +// ListTagsForResourceWithContext mocks base method. +func (m *MockElastiCacheAPI) ListTagsForResourceWithContext(arg0 aws.Context, arg1 *elasticache.ListTagsForResourceInput, arg2 ...request.Option) (*elasticache.TagListMessage, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTagsForResourceWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.TagListMessage) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTagsForResourceWithContext indicates an expected call of ListTagsForResourceWithContext. +func (mr *MockElastiCacheAPIMockRecorder) ListTagsForResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsForResourceWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).ListTagsForResourceWithContext), varargs...) +} + +// ModifyCacheCluster mocks base method. +func (m *MockElastiCacheAPI) ModifyCacheCluster(arg0 *elasticache.ModifyCacheClusterInput) (*elasticache.ModifyCacheClusterOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ModifyCacheCluster", arg0) + ret0, _ := ret[0].(*elasticache.ModifyCacheClusterOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ModifyCacheCluster indicates an expected call of ModifyCacheCluster. +func (mr *MockElastiCacheAPIMockRecorder) ModifyCacheCluster(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModifyCacheCluster", reflect.TypeOf((*MockElastiCacheAPI)(nil).ModifyCacheCluster), arg0) +} + +// ModifyCacheClusterRequest mocks base method. +func (m *MockElastiCacheAPI) ModifyCacheClusterRequest(arg0 *elasticache.ModifyCacheClusterInput) (*request.Request, *elasticache.ModifyCacheClusterOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ModifyCacheClusterRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.ModifyCacheClusterOutput) + return ret0, ret1 +} + +// ModifyCacheClusterRequest indicates an expected call of ModifyCacheClusterRequest. +func (mr *MockElastiCacheAPIMockRecorder) ModifyCacheClusterRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModifyCacheClusterRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).ModifyCacheClusterRequest), arg0) +} + +// ModifyCacheClusterWithContext mocks base method. +func (m *MockElastiCacheAPI) ModifyCacheClusterWithContext(arg0 aws.Context, arg1 *elasticache.ModifyCacheClusterInput, arg2 ...request.Option) (*elasticache.ModifyCacheClusterOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ModifyCacheClusterWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.ModifyCacheClusterOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ModifyCacheClusterWithContext indicates an expected call of ModifyCacheClusterWithContext. +func (mr *MockElastiCacheAPIMockRecorder) ModifyCacheClusterWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModifyCacheClusterWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).ModifyCacheClusterWithContext), varargs...) +} + +// ModifyCacheParameterGroup mocks base method. +func (m *MockElastiCacheAPI) ModifyCacheParameterGroup(arg0 *elasticache.ModifyCacheParameterGroupInput) (*elasticache.CacheParameterGroupNameMessage, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ModifyCacheParameterGroup", arg0) + ret0, _ := ret[0].(*elasticache.CacheParameterGroupNameMessage) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ModifyCacheParameterGroup indicates an expected call of ModifyCacheParameterGroup. +func (mr *MockElastiCacheAPIMockRecorder) ModifyCacheParameterGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModifyCacheParameterGroup", reflect.TypeOf((*MockElastiCacheAPI)(nil).ModifyCacheParameterGroup), arg0) +} + +// ModifyCacheParameterGroupRequest mocks base method. +func (m *MockElastiCacheAPI) ModifyCacheParameterGroupRequest(arg0 *elasticache.ModifyCacheParameterGroupInput) (*request.Request, *elasticache.CacheParameterGroupNameMessage) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ModifyCacheParameterGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.CacheParameterGroupNameMessage) + return ret0, ret1 +} + +// ModifyCacheParameterGroupRequest indicates an expected call of ModifyCacheParameterGroupRequest. +func (mr *MockElastiCacheAPIMockRecorder) ModifyCacheParameterGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModifyCacheParameterGroupRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).ModifyCacheParameterGroupRequest), arg0) +} + +// ModifyCacheParameterGroupWithContext mocks base method. +func (m *MockElastiCacheAPI) ModifyCacheParameterGroupWithContext(arg0 aws.Context, arg1 *elasticache.ModifyCacheParameterGroupInput, arg2 ...request.Option) (*elasticache.CacheParameterGroupNameMessage, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ModifyCacheParameterGroupWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.CacheParameterGroupNameMessage) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ModifyCacheParameterGroupWithContext indicates an expected call of ModifyCacheParameterGroupWithContext. +func (mr *MockElastiCacheAPIMockRecorder) ModifyCacheParameterGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModifyCacheParameterGroupWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).ModifyCacheParameterGroupWithContext), varargs...) +} + +// ModifyCacheSubnetGroup mocks base method. +func (m *MockElastiCacheAPI) ModifyCacheSubnetGroup(arg0 *elasticache.ModifyCacheSubnetGroupInput) (*elasticache.ModifyCacheSubnetGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ModifyCacheSubnetGroup", arg0) + ret0, _ := ret[0].(*elasticache.ModifyCacheSubnetGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ModifyCacheSubnetGroup indicates an expected call of ModifyCacheSubnetGroup. +func (mr *MockElastiCacheAPIMockRecorder) ModifyCacheSubnetGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModifyCacheSubnetGroup", reflect.TypeOf((*MockElastiCacheAPI)(nil).ModifyCacheSubnetGroup), arg0) +} + +// ModifyCacheSubnetGroupRequest mocks base method. +func (m *MockElastiCacheAPI) ModifyCacheSubnetGroupRequest(arg0 *elasticache.ModifyCacheSubnetGroupInput) (*request.Request, *elasticache.ModifyCacheSubnetGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ModifyCacheSubnetGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.ModifyCacheSubnetGroupOutput) + return ret0, ret1 +} + +// ModifyCacheSubnetGroupRequest indicates an expected call of ModifyCacheSubnetGroupRequest. +func (mr *MockElastiCacheAPIMockRecorder) ModifyCacheSubnetGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModifyCacheSubnetGroupRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).ModifyCacheSubnetGroupRequest), arg0) +} + +// ModifyCacheSubnetGroupWithContext mocks base method. +func (m *MockElastiCacheAPI) ModifyCacheSubnetGroupWithContext(arg0 aws.Context, arg1 *elasticache.ModifyCacheSubnetGroupInput, arg2 ...request.Option) (*elasticache.ModifyCacheSubnetGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ModifyCacheSubnetGroupWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.ModifyCacheSubnetGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ModifyCacheSubnetGroupWithContext indicates an expected call of ModifyCacheSubnetGroupWithContext. +func (mr *MockElastiCacheAPIMockRecorder) ModifyCacheSubnetGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModifyCacheSubnetGroupWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).ModifyCacheSubnetGroupWithContext), varargs...) +} + +// ModifyGlobalReplicationGroup mocks base method. +func (m *MockElastiCacheAPI) ModifyGlobalReplicationGroup(arg0 *elasticache.ModifyGlobalReplicationGroupInput) (*elasticache.ModifyGlobalReplicationGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ModifyGlobalReplicationGroup", arg0) + ret0, _ := ret[0].(*elasticache.ModifyGlobalReplicationGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ModifyGlobalReplicationGroup indicates an expected call of ModifyGlobalReplicationGroup. +func (mr *MockElastiCacheAPIMockRecorder) ModifyGlobalReplicationGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModifyGlobalReplicationGroup", reflect.TypeOf((*MockElastiCacheAPI)(nil).ModifyGlobalReplicationGroup), arg0) +} + +// ModifyGlobalReplicationGroupRequest mocks base method. +func (m *MockElastiCacheAPI) ModifyGlobalReplicationGroupRequest(arg0 *elasticache.ModifyGlobalReplicationGroupInput) (*request.Request, *elasticache.ModifyGlobalReplicationGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ModifyGlobalReplicationGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.ModifyGlobalReplicationGroupOutput) + return ret0, ret1 +} + +// ModifyGlobalReplicationGroupRequest indicates an expected call of ModifyGlobalReplicationGroupRequest. +func (mr *MockElastiCacheAPIMockRecorder) ModifyGlobalReplicationGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModifyGlobalReplicationGroupRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).ModifyGlobalReplicationGroupRequest), arg0) +} + +// ModifyGlobalReplicationGroupWithContext mocks base method. +func (m *MockElastiCacheAPI) ModifyGlobalReplicationGroupWithContext(arg0 aws.Context, arg1 *elasticache.ModifyGlobalReplicationGroupInput, arg2 ...request.Option) (*elasticache.ModifyGlobalReplicationGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ModifyGlobalReplicationGroupWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.ModifyGlobalReplicationGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ModifyGlobalReplicationGroupWithContext indicates an expected call of ModifyGlobalReplicationGroupWithContext. +func (mr *MockElastiCacheAPIMockRecorder) ModifyGlobalReplicationGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModifyGlobalReplicationGroupWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).ModifyGlobalReplicationGroupWithContext), varargs...) +} + +// ModifyReplicationGroup mocks base method. +func (m *MockElastiCacheAPI) ModifyReplicationGroup(arg0 *elasticache.ModifyReplicationGroupInput) (*elasticache.ModifyReplicationGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ModifyReplicationGroup", arg0) + ret0, _ := ret[0].(*elasticache.ModifyReplicationGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ModifyReplicationGroup indicates an expected call of ModifyReplicationGroup. +func (mr *MockElastiCacheAPIMockRecorder) ModifyReplicationGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModifyReplicationGroup", reflect.TypeOf((*MockElastiCacheAPI)(nil).ModifyReplicationGroup), arg0) +} + +// ModifyReplicationGroupRequest mocks base method. +func (m *MockElastiCacheAPI) ModifyReplicationGroupRequest(arg0 *elasticache.ModifyReplicationGroupInput) (*request.Request, *elasticache.ModifyReplicationGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ModifyReplicationGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.ModifyReplicationGroupOutput) + return ret0, ret1 +} + +// ModifyReplicationGroupRequest indicates an expected call of ModifyReplicationGroupRequest. +func (mr *MockElastiCacheAPIMockRecorder) ModifyReplicationGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModifyReplicationGroupRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).ModifyReplicationGroupRequest), arg0) +} + +// ModifyReplicationGroupShardConfiguration mocks base method. +func (m *MockElastiCacheAPI) ModifyReplicationGroupShardConfiguration(arg0 *elasticache.ModifyReplicationGroupShardConfigurationInput) (*elasticache.ModifyReplicationGroupShardConfigurationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ModifyReplicationGroupShardConfiguration", arg0) + ret0, _ := ret[0].(*elasticache.ModifyReplicationGroupShardConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ModifyReplicationGroupShardConfiguration indicates an expected call of ModifyReplicationGroupShardConfiguration. +func (mr *MockElastiCacheAPIMockRecorder) ModifyReplicationGroupShardConfiguration(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModifyReplicationGroupShardConfiguration", reflect.TypeOf((*MockElastiCacheAPI)(nil).ModifyReplicationGroupShardConfiguration), arg0) +} + +// ModifyReplicationGroupShardConfigurationRequest mocks base method. +func (m *MockElastiCacheAPI) ModifyReplicationGroupShardConfigurationRequest(arg0 *elasticache.ModifyReplicationGroupShardConfigurationInput) (*request.Request, *elasticache.ModifyReplicationGroupShardConfigurationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ModifyReplicationGroupShardConfigurationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.ModifyReplicationGroupShardConfigurationOutput) + return ret0, ret1 +} + +// ModifyReplicationGroupShardConfigurationRequest indicates an expected call of ModifyReplicationGroupShardConfigurationRequest. +func (mr *MockElastiCacheAPIMockRecorder) ModifyReplicationGroupShardConfigurationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModifyReplicationGroupShardConfigurationRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).ModifyReplicationGroupShardConfigurationRequest), arg0) +} + +// ModifyReplicationGroupShardConfigurationWithContext mocks base method. +func (m *MockElastiCacheAPI) ModifyReplicationGroupShardConfigurationWithContext(arg0 aws.Context, arg1 *elasticache.ModifyReplicationGroupShardConfigurationInput, arg2 ...request.Option) (*elasticache.ModifyReplicationGroupShardConfigurationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ModifyReplicationGroupShardConfigurationWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.ModifyReplicationGroupShardConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ModifyReplicationGroupShardConfigurationWithContext indicates an expected call of ModifyReplicationGroupShardConfigurationWithContext. +func (mr *MockElastiCacheAPIMockRecorder) ModifyReplicationGroupShardConfigurationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModifyReplicationGroupShardConfigurationWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).ModifyReplicationGroupShardConfigurationWithContext), varargs...) +} + +// ModifyReplicationGroupWithContext mocks base method. +func (m *MockElastiCacheAPI) ModifyReplicationGroupWithContext(arg0 aws.Context, arg1 *elasticache.ModifyReplicationGroupInput, arg2 ...request.Option) (*elasticache.ModifyReplicationGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ModifyReplicationGroupWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.ModifyReplicationGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ModifyReplicationGroupWithContext indicates an expected call of ModifyReplicationGroupWithContext. +func (mr *MockElastiCacheAPIMockRecorder) ModifyReplicationGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModifyReplicationGroupWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).ModifyReplicationGroupWithContext), varargs...) +} + +// ModifyServerlessCache mocks base method. +func (m *MockElastiCacheAPI) ModifyServerlessCache(arg0 *elasticache.ModifyServerlessCacheInput) (*elasticache.ModifyServerlessCacheOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ModifyServerlessCache", arg0) + ret0, _ := ret[0].(*elasticache.ModifyServerlessCacheOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ModifyServerlessCache indicates an expected call of ModifyServerlessCache. +func (mr *MockElastiCacheAPIMockRecorder) ModifyServerlessCache(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModifyServerlessCache", reflect.TypeOf((*MockElastiCacheAPI)(nil).ModifyServerlessCache), arg0) +} + +// ModifyServerlessCacheRequest mocks base method. +func (m *MockElastiCacheAPI) ModifyServerlessCacheRequest(arg0 *elasticache.ModifyServerlessCacheInput) (*request.Request, *elasticache.ModifyServerlessCacheOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ModifyServerlessCacheRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.ModifyServerlessCacheOutput) + return ret0, ret1 +} + +// ModifyServerlessCacheRequest indicates an expected call of ModifyServerlessCacheRequest. +func (mr *MockElastiCacheAPIMockRecorder) ModifyServerlessCacheRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModifyServerlessCacheRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).ModifyServerlessCacheRequest), arg0) +} + +// ModifyServerlessCacheWithContext mocks base method. +func (m *MockElastiCacheAPI) ModifyServerlessCacheWithContext(arg0 aws.Context, arg1 *elasticache.ModifyServerlessCacheInput, arg2 ...request.Option) (*elasticache.ModifyServerlessCacheOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ModifyServerlessCacheWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.ModifyServerlessCacheOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ModifyServerlessCacheWithContext indicates an expected call of ModifyServerlessCacheWithContext. +func (mr *MockElastiCacheAPIMockRecorder) ModifyServerlessCacheWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModifyServerlessCacheWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).ModifyServerlessCacheWithContext), varargs...) +} + +// ModifyUser mocks base method. +func (m *MockElastiCacheAPI) ModifyUser(arg0 *elasticache.ModifyUserInput) (*elasticache.ModifyUserOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ModifyUser", arg0) + ret0, _ := ret[0].(*elasticache.ModifyUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ModifyUser indicates an expected call of ModifyUser. +func (mr *MockElastiCacheAPIMockRecorder) ModifyUser(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModifyUser", reflect.TypeOf((*MockElastiCacheAPI)(nil).ModifyUser), arg0) +} + +// ModifyUserGroup mocks base method. +func (m *MockElastiCacheAPI) ModifyUserGroup(arg0 *elasticache.ModifyUserGroupInput) (*elasticache.ModifyUserGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ModifyUserGroup", arg0) + ret0, _ := ret[0].(*elasticache.ModifyUserGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ModifyUserGroup indicates an expected call of ModifyUserGroup. +func (mr *MockElastiCacheAPIMockRecorder) ModifyUserGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModifyUserGroup", reflect.TypeOf((*MockElastiCacheAPI)(nil).ModifyUserGroup), arg0) +} + +// ModifyUserGroupRequest mocks base method. +func (m *MockElastiCacheAPI) ModifyUserGroupRequest(arg0 *elasticache.ModifyUserGroupInput) (*request.Request, *elasticache.ModifyUserGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ModifyUserGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.ModifyUserGroupOutput) + return ret0, ret1 +} + +// ModifyUserGroupRequest indicates an expected call of ModifyUserGroupRequest. +func (mr *MockElastiCacheAPIMockRecorder) ModifyUserGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModifyUserGroupRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).ModifyUserGroupRequest), arg0) +} + +// ModifyUserGroupWithContext mocks base method. +func (m *MockElastiCacheAPI) ModifyUserGroupWithContext(arg0 aws.Context, arg1 *elasticache.ModifyUserGroupInput, arg2 ...request.Option) (*elasticache.ModifyUserGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ModifyUserGroupWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.ModifyUserGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ModifyUserGroupWithContext indicates an expected call of ModifyUserGroupWithContext. +func (mr *MockElastiCacheAPIMockRecorder) ModifyUserGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModifyUserGroupWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).ModifyUserGroupWithContext), varargs...) +} + +// ModifyUserRequest mocks base method. +func (m *MockElastiCacheAPI) ModifyUserRequest(arg0 *elasticache.ModifyUserInput) (*request.Request, *elasticache.ModifyUserOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ModifyUserRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.ModifyUserOutput) + return ret0, ret1 +} + +// ModifyUserRequest indicates an expected call of ModifyUserRequest. +func (mr *MockElastiCacheAPIMockRecorder) ModifyUserRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModifyUserRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).ModifyUserRequest), arg0) +} + +// ModifyUserWithContext mocks base method. +func (m *MockElastiCacheAPI) ModifyUserWithContext(arg0 aws.Context, arg1 *elasticache.ModifyUserInput, arg2 ...request.Option) (*elasticache.ModifyUserOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ModifyUserWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.ModifyUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ModifyUserWithContext indicates an expected call of ModifyUserWithContext. +func (mr *MockElastiCacheAPIMockRecorder) ModifyUserWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModifyUserWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).ModifyUserWithContext), varargs...) +} + +// PurchaseReservedCacheNodesOffering mocks base method. +func (m *MockElastiCacheAPI) PurchaseReservedCacheNodesOffering(arg0 *elasticache.PurchaseReservedCacheNodesOfferingInput) (*elasticache.PurchaseReservedCacheNodesOfferingOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PurchaseReservedCacheNodesOffering", arg0) + ret0, _ := ret[0].(*elasticache.PurchaseReservedCacheNodesOfferingOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PurchaseReservedCacheNodesOffering indicates an expected call of PurchaseReservedCacheNodesOffering. +func (mr *MockElastiCacheAPIMockRecorder) PurchaseReservedCacheNodesOffering(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PurchaseReservedCacheNodesOffering", reflect.TypeOf((*MockElastiCacheAPI)(nil).PurchaseReservedCacheNodesOffering), arg0) +} + +// PurchaseReservedCacheNodesOfferingRequest mocks base method. +func (m *MockElastiCacheAPI) PurchaseReservedCacheNodesOfferingRequest(arg0 *elasticache.PurchaseReservedCacheNodesOfferingInput) (*request.Request, *elasticache.PurchaseReservedCacheNodesOfferingOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PurchaseReservedCacheNodesOfferingRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.PurchaseReservedCacheNodesOfferingOutput) + return ret0, ret1 +} + +// PurchaseReservedCacheNodesOfferingRequest indicates an expected call of PurchaseReservedCacheNodesOfferingRequest. +func (mr *MockElastiCacheAPIMockRecorder) PurchaseReservedCacheNodesOfferingRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PurchaseReservedCacheNodesOfferingRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).PurchaseReservedCacheNodesOfferingRequest), arg0) +} + +// PurchaseReservedCacheNodesOfferingWithContext mocks base method. +func (m *MockElastiCacheAPI) PurchaseReservedCacheNodesOfferingWithContext(arg0 aws.Context, arg1 *elasticache.PurchaseReservedCacheNodesOfferingInput, arg2 ...request.Option) (*elasticache.PurchaseReservedCacheNodesOfferingOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PurchaseReservedCacheNodesOfferingWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.PurchaseReservedCacheNodesOfferingOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PurchaseReservedCacheNodesOfferingWithContext indicates an expected call of PurchaseReservedCacheNodesOfferingWithContext. +func (mr *MockElastiCacheAPIMockRecorder) PurchaseReservedCacheNodesOfferingWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PurchaseReservedCacheNodesOfferingWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).PurchaseReservedCacheNodesOfferingWithContext), varargs...) +} + +// RebalanceSlotsInGlobalReplicationGroup mocks base method. +func (m *MockElastiCacheAPI) RebalanceSlotsInGlobalReplicationGroup(arg0 *elasticache.RebalanceSlotsInGlobalReplicationGroupInput) (*elasticache.RebalanceSlotsInGlobalReplicationGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RebalanceSlotsInGlobalReplicationGroup", arg0) + ret0, _ := ret[0].(*elasticache.RebalanceSlotsInGlobalReplicationGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RebalanceSlotsInGlobalReplicationGroup indicates an expected call of RebalanceSlotsInGlobalReplicationGroup. +func (mr *MockElastiCacheAPIMockRecorder) RebalanceSlotsInGlobalReplicationGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RebalanceSlotsInGlobalReplicationGroup", reflect.TypeOf((*MockElastiCacheAPI)(nil).RebalanceSlotsInGlobalReplicationGroup), arg0) +} + +// RebalanceSlotsInGlobalReplicationGroupRequest mocks base method. +func (m *MockElastiCacheAPI) RebalanceSlotsInGlobalReplicationGroupRequest(arg0 *elasticache.RebalanceSlotsInGlobalReplicationGroupInput) (*request.Request, *elasticache.RebalanceSlotsInGlobalReplicationGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RebalanceSlotsInGlobalReplicationGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.RebalanceSlotsInGlobalReplicationGroupOutput) + return ret0, ret1 +} + +// RebalanceSlotsInGlobalReplicationGroupRequest indicates an expected call of RebalanceSlotsInGlobalReplicationGroupRequest. +func (mr *MockElastiCacheAPIMockRecorder) RebalanceSlotsInGlobalReplicationGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RebalanceSlotsInGlobalReplicationGroupRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).RebalanceSlotsInGlobalReplicationGroupRequest), arg0) +} + +// RebalanceSlotsInGlobalReplicationGroupWithContext mocks base method. +func (m *MockElastiCacheAPI) RebalanceSlotsInGlobalReplicationGroupWithContext(arg0 aws.Context, arg1 *elasticache.RebalanceSlotsInGlobalReplicationGroupInput, arg2 ...request.Option) (*elasticache.RebalanceSlotsInGlobalReplicationGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RebalanceSlotsInGlobalReplicationGroupWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.RebalanceSlotsInGlobalReplicationGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RebalanceSlotsInGlobalReplicationGroupWithContext indicates an expected call of RebalanceSlotsInGlobalReplicationGroupWithContext. +func (mr *MockElastiCacheAPIMockRecorder) RebalanceSlotsInGlobalReplicationGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RebalanceSlotsInGlobalReplicationGroupWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).RebalanceSlotsInGlobalReplicationGroupWithContext), varargs...) +} + +// RebootCacheCluster mocks base method. +func (m *MockElastiCacheAPI) RebootCacheCluster(arg0 *elasticache.RebootCacheClusterInput) (*elasticache.RebootCacheClusterOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RebootCacheCluster", arg0) + ret0, _ := ret[0].(*elasticache.RebootCacheClusterOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RebootCacheCluster indicates an expected call of RebootCacheCluster. +func (mr *MockElastiCacheAPIMockRecorder) RebootCacheCluster(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RebootCacheCluster", reflect.TypeOf((*MockElastiCacheAPI)(nil).RebootCacheCluster), arg0) +} + +// RebootCacheClusterRequest mocks base method. +func (m *MockElastiCacheAPI) RebootCacheClusterRequest(arg0 *elasticache.RebootCacheClusterInput) (*request.Request, *elasticache.RebootCacheClusterOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RebootCacheClusterRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.RebootCacheClusterOutput) + return ret0, ret1 +} + +// RebootCacheClusterRequest indicates an expected call of RebootCacheClusterRequest. +func (mr *MockElastiCacheAPIMockRecorder) RebootCacheClusterRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RebootCacheClusterRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).RebootCacheClusterRequest), arg0) +} + +// RebootCacheClusterWithContext mocks base method. +func (m *MockElastiCacheAPI) RebootCacheClusterWithContext(arg0 aws.Context, arg1 *elasticache.RebootCacheClusterInput, arg2 ...request.Option) (*elasticache.RebootCacheClusterOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RebootCacheClusterWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.RebootCacheClusterOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RebootCacheClusterWithContext indicates an expected call of RebootCacheClusterWithContext. +func (mr *MockElastiCacheAPIMockRecorder) RebootCacheClusterWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RebootCacheClusterWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).RebootCacheClusterWithContext), varargs...) +} + +// RemoveTagsFromResource mocks base method. +func (m *MockElastiCacheAPI) RemoveTagsFromResource(arg0 *elasticache.RemoveTagsFromResourceInput) (*elasticache.TagListMessage, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RemoveTagsFromResource", arg0) + ret0, _ := ret[0].(*elasticache.TagListMessage) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RemoveTagsFromResource indicates an expected call of RemoveTagsFromResource. +func (mr *MockElastiCacheAPIMockRecorder) RemoveTagsFromResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveTagsFromResource", reflect.TypeOf((*MockElastiCacheAPI)(nil).RemoveTagsFromResource), arg0) +} + +// RemoveTagsFromResourceRequest mocks base method. +func (m *MockElastiCacheAPI) RemoveTagsFromResourceRequest(arg0 *elasticache.RemoveTagsFromResourceInput) (*request.Request, *elasticache.TagListMessage) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RemoveTagsFromResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.TagListMessage) + return ret0, ret1 +} + +// RemoveTagsFromResourceRequest indicates an expected call of RemoveTagsFromResourceRequest. +func (mr *MockElastiCacheAPIMockRecorder) RemoveTagsFromResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveTagsFromResourceRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).RemoveTagsFromResourceRequest), arg0) +} + +// RemoveTagsFromResourceWithContext mocks base method. +func (m *MockElastiCacheAPI) RemoveTagsFromResourceWithContext(arg0 aws.Context, arg1 *elasticache.RemoveTagsFromResourceInput, arg2 ...request.Option) (*elasticache.TagListMessage, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RemoveTagsFromResourceWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.TagListMessage) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RemoveTagsFromResourceWithContext indicates an expected call of RemoveTagsFromResourceWithContext. +func (mr *MockElastiCacheAPIMockRecorder) RemoveTagsFromResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveTagsFromResourceWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).RemoveTagsFromResourceWithContext), varargs...) +} + +// ResetCacheParameterGroup mocks base method. +func (m *MockElastiCacheAPI) ResetCacheParameterGroup(arg0 *elasticache.ResetCacheParameterGroupInput) (*elasticache.CacheParameterGroupNameMessage, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ResetCacheParameterGroup", arg0) + ret0, _ := ret[0].(*elasticache.CacheParameterGroupNameMessage) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ResetCacheParameterGroup indicates an expected call of ResetCacheParameterGroup. +func (mr *MockElastiCacheAPIMockRecorder) ResetCacheParameterGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResetCacheParameterGroup", reflect.TypeOf((*MockElastiCacheAPI)(nil).ResetCacheParameterGroup), arg0) +} + +// ResetCacheParameterGroupRequest mocks base method. +func (m *MockElastiCacheAPI) ResetCacheParameterGroupRequest(arg0 *elasticache.ResetCacheParameterGroupInput) (*request.Request, *elasticache.CacheParameterGroupNameMessage) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ResetCacheParameterGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.CacheParameterGroupNameMessage) + return ret0, ret1 +} + +// ResetCacheParameterGroupRequest indicates an expected call of ResetCacheParameterGroupRequest. +func (mr *MockElastiCacheAPIMockRecorder) ResetCacheParameterGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResetCacheParameterGroupRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).ResetCacheParameterGroupRequest), arg0) +} + +// ResetCacheParameterGroupWithContext mocks base method. +func (m *MockElastiCacheAPI) ResetCacheParameterGroupWithContext(arg0 aws.Context, arg1 *elasticache.ResetCacheParameterGroupInput, arg2 ...request.Option) (*elasticache.CacheParameterGroupNameMessage, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ResetCacheParameterGroupWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.CacheParameterGroupNameMessage) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ResetCacheParameterGroupWithContext indicates an expected call of ResetCacheParameterGroupWithContext. +func (mr *MockElastiCacheAPIMockRecorder) ResetCacheParameterGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResetCacheParameterGroupWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).ResetCacheParameterGroupWithContext), varargs...) +} + +// RevokeCacheSecurityGroupIngress mocks base method. +func (m *MockElastiCacheAPI) RevokeCacheSecurityGroupIngress(arg0 *elasticache.RevokeCacheSecurityGroupIngressInput) (*elasticache.RevokeCacheSecurityGroupIngressOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RevokeCacheSecurityGroupIngress", arg0) + ret0, _ := ret[0].(*elasticache.RevokeCacheSecurityGroupIngressOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RevokeCacheSecurityGroupIngress indicates an expected call of RevokeCacheSecurityGroupIngress. +func (mr *MockElastiCacheAPIMockRecorder) RevokeCacheSecurityGroupIngress(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevokeCacheSecurityGroupIngress", reflect.TypeOf((*MockElastiCacheAPI)(nil).RevokeCacheSecurityGroupIngress), arg0) +} + +// RevokeCacheSecurityGroupIngressRequest mocks base method. +func (m *MockElastiCacheAPI) RevokeCacheSecurityGroupIngressRequest(arg0 *elasticache.RevokeCacheSecurityGroupIngressInput) (*request.Request, *elasticache.RevokeCacheSecurityGroupIngressOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RevokeCacheSecurityGroupIngressRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.RevokeCacheSecurityGroupIngressOutput) + return ret0, ret1 +} + +// RevokeCacheSecurityGroupIngressRequest indicates an expected call of RevokeCacheSecurityGroupIngressRequest. +func (mr *MockElastiCacheAPIMockRecorder) RevokeCacheSecurityGroupIngressRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevokeCacheSecurityGroupIngressRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).RevokeCacheSecurityGroupIngressRequest), arg0) +} + +// RevokeCacheSecurityGroupIngressWithContext mocks base method. +func (m *MockElastiCacheAPI) RevokeCacheSecurityGroupIngressWithContext(arg0 aws.Context, arg1 *elasticache.RevokeCacheSecurityGroupIngressInput, arg2 ...request.Option) (*elasticache.RevokeCacheSecurityGroupIngressOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RevokeCacheSecurityGroupIngressWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.RevokeCacheSecurityGroupIngressOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RevokeCacheSecurityGroupIngressWithContext indicates an expected call of RevokeCacheSecurityGroupIngressWithContext. +func (mr *MockElastiCacheAPIMockRecorder) RevokeCacheSecurityGroupIngressWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevokeCacheSecurityGroupIngressWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).RevokeCacheSecurityGroupIngressWithContext), varargs...) +} + +// StartMigration mocks base method. +func (m *MockElastiCacheAPI) StartMigration(arg0 *elasticache.StartMigrationInput) (*elasticache.StartMigrationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartMigration", arg0) + ret0, _ := ret[0].(*elasticache.StartMigrationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartMigration indicates an expected call of StartMigration. +func (mr *MockElastiCacheAPIMockRecorder) StartMigration(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartMigration", reflect.TypeOf((*MockElastiCacheAPI)(nil).StartMigration), arg0) +} + +// StartMigrationRequest mocks base method. +func (m *MockElastiCacheAPI) StartMigrationRequest(arg0 *elasticache.StartMigrationInput) (*request.Request, *elasticache.StartMigrationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartMigrationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.StartMigrationOutput) + return ret0, ret1 +} + +// StartMigrationRequest indicates an expected call of StartMigrationRequest. +func (mr *MockElastiCacheAPIMockRecorder) StartMigrationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartMigrationRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).StartMigrationRequest), arg0) +} + +// StartMigrationWithContext mocks base method. +func (m *MockElastiCacheAPI) StartMigrationWithContext(arg0 aws.Context, arg1 *elasticache.StartMigrationInput, arg2 ...request.Option) (*elasticache.StartMigrationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StartMigrationWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.StartMigrationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartMigrationWithContext indicates an expected call of StartMigrationWithContext. +func (mr *MockElastiCacheAPIMockRecorder) StartMigrationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartMigrationWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).StartMigrationWithContext), varargs...) +} + +// TestFailover mocks base method. +func (m *MockElastiCacheAPI) TestFailover(arg0 *elasticache.TestFailoverInput) (*elasticache.TestFailoverOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TestFailover", arg0) + ret0, _ := ret[0].(*elasticache.TestFailoverOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TestFailover indicates an expected call of TestFailover. +func (mr *MockElastiCacheAPIMockRecorder) TestFailover(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TestFailover", reflect.TypeOf((*MockElastiCacheAPI)(nil).TestFailover), arg0) +} + +// TestFailoverRequest mocks base method. +func (m *MockElastiCacheAPI) TestFailoverRequest(arg0 *elasticache.TestFailoverInput) (*request.Request, *elasticache.TestFailoverOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TestFailoverRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.TestFailoverOutput) + return ret0, ret1 +} + +// TestFailoverRequest indicates an expected call of TestFailoverRequest. +func (mr *MockElastiCacheAPIMockRecorder) TestFailoverRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TestFailoverRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).TestFailoverRequest), arg0) +} + +// TestFailoverWithContext mocks base method. +func (m *MockElastiCacheAPI) TestFailoverWithContext(arg0 aws.Context, arg1 *elasticache.TestFailoverInput, arg2 ...request.Option) (*elasticache.TestFailoverOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "TestFailoverWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.TestFailoverOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TestFailoverWithContext indicates an expected call of TestFailoverWithContext. +func (mr *MockElastiCacheAPIMockRecorder) TestFailoverWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TestFailoverWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).TestFailoverWithContext), varargs...) +} + +// TestMigration mocks base method. +func (m *MockElastiCacheAPI) TestMigration(arg0 *elasticache.TestMigrationInput) (*elasticache.TestMigrationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TestMigration", arg0) + ret0, _ := ret[0].(*elasticache.TestMigrationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TestMigration indicates an expected call of TestMigration. +func (mr *MockElastiCacheAPIMockRecorder) TestMigration(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TestMigration", reflect.TypeOf((*MockElastiCacheAPI)(nil).TestMigration), arg0) +} + +// TestMigrationRequest mocks base method. +func (m *MockElastiCacheAPI) TestMigrationRequest(arg0 *elasticache.TestMigrationInput) (*request.Request, *elasticache.TestMigrationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TestMigrationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*elasticache.TestMigrationOutput) + return ret0, ret1 +} + +// TestMigrationRequest indicates an expected call of TestMigrationRequest. +func (mr *MockElastiCacheAPIMockRecorder) TestMigrationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TestMigrationRequest", reflect.TypeOf((*MockElastiCacheAPI)(nil).TestMigrationRequest), arg0) +} + +// TestMigrationWithContext mocks base method. +func (m *MockElastiCacheAPI) TestMigrationWithContext(arg0 aws.Context, arg1 *elasticache.TestMigrationInput, arg2 ...request.Option) (*elasticache.TestMigrationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "TestMigrationWithContext", varargs...) + ret0, _ := ret[0].(*elasticache.TestMigrationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TestMigrationWithContext indicates an expected call of TestMigrationWithContext. +func (mr *MockElastiCacheAPIMockRecorder) TestMigrationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TestMigrationWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).TestMigrationWithContext), varargs...) +} + +// WaitUntilCacheClusterAvailable mocks base method. +func (m *MockElastiCacheAPI) WaitUntilCacheClusterAvailable(arg0 *elasticache.DescribeCacheClustersInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilCacheClusterAvailable", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilCacheClusterAvailable indicates an expected call of WaitUntilCacheClusterAvailable. +func (mr *MockElastiCacheAPIMockRecorder) WaitUntilCacheClusterAvailable(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilCacheClusterAvailable", reflect.TypeOf((*MockElastiCacheAPI)(nil).WaitUntilCacheClusterAvailable), arg0) +} + +// WaitUntilCacheClusterAvailableWithContext mocks base method. +func (m *MockElastiCacheAPI) WaitUntilCacheClusterAvailableWithContext(arg0 aws.Context, arg1 *elasticache.DescribeCacheClustersInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilCacheClusterAvailableWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilCacheClusterAvailableWithContext indicates an expected call of WaitUntilCacheClusterAvailableWithContext. +func (mr *MockElastiCacheAPIMockRecorder) WaitUntilCacheClusterAvailableWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilCacheClusterAvailableWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).WaitUntilCacheClusterAvailableWithContext), varargs...) +} + +// WaitUntilCacheClusterDeleted mocks base method. +func (m *MockElastiCacheAPI) WaitUntilCacheClusterDeleted(arg0 *elasticache.DescribeCacheClustersInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilCacheClusterDeleted", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilCacheClusterDeleted indicates an expected call of WaitUntilCacheClusterDeleted. +func (mr *MockElastiCacheAPIMockRecorder) WaitUntilCacheClusterDeleted(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilCacheClusterDeleted", reflect.TypeOf((*MockElastiCacheAPI)(nil).WaitUntilCacheClusterDeleted), arg0) +} + +// WaitUntilCacheClusterDeletedWithContext mocks base method. +func (m *MockElastiCacheAPI) WaitUntilCacheClusterDeletedWithContext(arg0 aws.Context, arg1 *elasticache.DescribeCacheClustersInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilCacheClusterDeletedWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilCacheClusterDeletedWithContext indicates an expected call of WaitUntilCacheClusterDeletedWithContext. +func (mr *MockElastiCacheAPIMockRecorder) WaitUntilCacheClusterDeletedWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilCacheClusterDeletedWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).WaitUntilCacheClusterDeletedWithContext), varargs...) +} + +// WaitUntilReplicationGroupAvailable mocks base method. +func (m *MockElastiCacheAPI) WaitUntilReplicationGroupAvailable(arg0 *elasticache.DescribeReplicationGroupsInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilReplicationGroupAvailable", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilReplicationGroupAvailable indicates an expected call of WaitUntilReplicationGroupAvailable. +func (mr *MockElastiCacheAPIMockRecorder) WaitUntilReplicationGroupAvailable(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilReplicationGroupAvailable", reflect.TypeOf((*MockElastiCacheAPI)(nil).WaitUntilReplicationGroupAvailable), arg0) +} + +// WaitUntilReplicationGroupAvailableWithContext mocks base method. +func (m *MockElastiCacheAPI) WaitUntilReplicationGroupAvailableWithContext(arg0 aws.Context, arg1 *elasticache.DescribeReplicationGroupsInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilReplicationGroupAvailableWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilReplicationGroupAvailableWithContext indicates an expected call of WaitUntilReplicationGroupAvailableWithContext. +func (mr *MockElastiCacheAPIMockRecorder) WaitUntilReplicationGroupAvailableWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilReplicationGroupAvailableWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).WaitUntilReplicationGroupAvailableWithContext), varargs...) +} + +// WaitUntilReplicationGroupDeleted mocks base method. +func (m *MockElastiCacheAPI) WaitUntilReplicationGroupDeleted(arg0 *elasticache.DescribeReplicationGroupsInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilReplicationGroupDeleted", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilReplicationGroupDeleted indicates an expected call of WaitUntilReplicationGroupDeleted. +func (mr *MockElastiCacheAPIMockRecorder) WaitUntilReplicationGroupDeleted(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilReplicationGroupDeleted", reflect.TypeOf((*MockElastiCacheAPI)(nil).WaitUntilReplicationGroupDeleted), arg0) +} + +// WaitUntilReplicationGroupDeletedWithContext mocks base method. +func (m *MockElastiCacheAPI) WaitUntilReplicationGroupDeletedWithContext(arg0 aws.Context, arg1 *elasticache.DescribeReplicationGroupsInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilReplicationGroupDeletedWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilReplicationGroupDeletedWithContext indicates an expected call of WaitUntilReplicationGroupDeletedWithContext. +func (mr *MockElastiCacheAPIMockRecorder) WaitUntilReplicationGroupDeletedWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilReplicationGroupDeletedWithContext", reflect.TypeOf((*MockElastiCacheAPI)(nil).WaitUntilReplicationGroupDeletedWithContext), varargs...) +} diff --git a/resources/elasticache-memcacheclusters.go b/resources/elasticache-memcacheclusters.go index 844dd9f8..f72fc8ec 100644 --- a/resources/elasticache-memcacheclusters.go +++ b/resources/elasticache-memcacheclusters.go @@ -2,6 +2,9 @@ package resources import ( "context" + "github.com/aws/aws-sdk-go/service/elasticache/elasticacheiface" + "github.com/ekristen/libnuke/pkg/types" + "github.com/sirupsen/logrus" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/elasticache" @@ -27,12 +30,19 @@ func init() { }) } -type ElasticacheCacheClusterLister struct{} +type ElasticacheCacheClusterLister struct { + mockSvc elasticacheiface.ElastiCacheAPI +} func (l *ElasticacheCacheClusterLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) - svc := elasticache.New(opts.Session) + var svc elasticacheiface.ElastiCacheAPI + if l.mockSvc != nil { + svc = l.mockSvc + } else { + svc = elasticache.New(opts.Session) + } params := &elasticache.DescribeCacheClustersInput{MaxRecords: aws.Int64(100)} resp, err := svc.DescribeCacheClusters(params) @@ -42,10 +52,19 @@ func (l *ElasticacheCacheClusterLister) List(_ context.Context, o interface{}) ( var resources []resource.Resource for _, cacheCluster := range resp.CacheClusters { + tags, err := svc.ListTagsForResource(&elasticache.ListTagsForResourceInput{ + ResourceName: cacheCluster.CacheClusterId, + }) + if err != nil { + logrus.WithError(err).Error("unable to retrieve tags") + continue + } + resources = append(resources, &ElasticacheCacheCluster{ svc: svc, clusterID: cacheCluster.CacheClusterId, status: cacheCluster.CacheClusterStatus, + Tags: tags.TagList, }) } @@ -53,9 +72,23 @@ func (l *ElasticacheCacheClusterLister) List(_ context.Context, o interface{}) ( } type ElasticacheCacheCluster struct { - svc *elasticache.ElastiCache + svc elasticacheiface.ElastiCacheAPI clusterID *string status *string + Tags []*elasticache.Tag +} + +func (i *ElasticacheCacheCluster) Properties() types.Properties { + properties := types.NewProperties() + + properties.Set("ClusterID", i.clusterID) + properties.Set("Status", i.status) + + for _, tag := range i.Tags { + properties.SetTag(tag.Key, tag.Value) + } + + return properties } func (i *ElasticacheCacheCluster) Remove(_ context.Context) error { diff --git a/resources/elasticache-memcacheclusters_mock_test.go b/resources/elasticache-memcacheclusters_mock_test.go new file mode 100644 index 00000000..e9685f31 --- /dev/null +++ b/resources/elasticache-memcacheclusters_mock_test.go @@ -0,0 +1,109 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/elasticache" + "github.com/ekristen/aws-nuke/mocks/mock_elasticacheiface" + "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/golang/mock/gomock" + "github.com/stretchr/testify/assert" + "testing" +) + +func Test_Mock_ElastiCache_CacheCluster_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockElastiCache := mock_elasticacheiface.NewMockElastiCacheAPI(ctrl) + + cacheCluster := ElasticacheCacheCluster{ + svc: mockElastiCache, + clusterID: aws.String("foobar"), + } + + mockElastiCache.EXPECT().DeleteCacheCluster(&elasticache.DeleteCacheClusterInput{ + CacheClusterId: aws.String("foobar"), + }).Return(&elasticache.DeleteCacheClusterOutput{}, nil) + + err := cacheCluster.Remove(nil) + a.Nil(err) +} + +func Test_Mock_ElastiCache_CacheCluster_List_NoTags(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockElastiCache := mock_elasticacheiface.NewMockElastiCacheAPI(ctrl) + + cacheClusterLister := ElasticacheCacheClusterLister{ + mockSvc: mockElastiCache, + } + + mockElastiCache.EXPECT().DescribeCacheClusters(gomock.Any()).Return(&elasticache.DescribeCacheClustersOutput{ + CacheClusters: []*elasticache.CacheCluster{ + { + CacheClusterId: aws.String("foobar"), + CacheClusterStatus: aws.String("available"), + }, + }, + }, nil) + + mockElastiCache.EXPECT().ListTagsForResource(&elasticache.ListTagsForResourceInput{ + ResourceName: aws.String("foobar"), + }).Return(&elasticache.TagListMessage{}, nil) + + resources, err := cacheClusterLister.List(nil, &nuke.ListerOpts{}) + a.Nil(err) + a.Len(resources, 1) + + resource := resources[0].(*ElasticacheCacheCluster) + a.Equal("foobar", resource.String()) +} + +func Test_Mock_ElastiCache_CacheCluster_List_WithTags(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockElastiCache := mock_elasticacheiface.NewMockElastiCacheAPI(ctrl) + + cacheClusterLister := ElasticacheCacheClusterLister{ + mockSvc: mockElastiCache, + } + + mockElastiCache.EXPECT().DescribeCacheClusters(gomock.Any()).Return(&elasticache.DescribeCacheClustersOutput{ + CacheClusters: []*elasticache.CacheCluster{ + { + CacheClusterId: aws.String("foobar"), + }, + }, + }, nil) + + mockElastiCache.EXPECT().ListTagsForResource(&elasticache.ListTagsForResourceInput{ + ResourceName: aws.String("foobar"), + }).Return(&elasticache.TagListMessage{ + TagList: []*elasticache.Tag{ + { + Key: aws.String("Name"), + Value: aws.String("foobar"), + }, + { + Key: aws.String("aws-nuke"), + Value: aws.String("test"), + }, + }, + }, nil) + + resources, err := cacheClusterLister.List(nil, &nuke.ListerOpts{}) + a.Nil(err) + a.Len(resources, 1) + + resource := resources[0].(*ElasticacheCacheCluster) + a.Len(resource.Tags, 2) + a.Equal("foobar", resource.String()) + a.Equal("foobar", resource.Properties().Get("tag:Name")) + a.Equal("test", resource.Properties().Get("tag:aws-nuke")) + +} diff --git a/resources/elasticache-mock_test.go b/resources/elasticache-mock_test.go new file mode 100644 index 00000000..f4c58551 --- /dev/null +++ b/resources/elasticache-mock_test.go @@ -0,0 +1,2 @@ +//go:generate ../mocks/generate_mocks.sh elasticache elasticacheiface +package resources diff --git a/resources/elasticache-subnetgroups.go b/resources/elasticache-subnetgroups.go index 7cfd97d9..4ded8ea5 100644 --- a/resources/elasticache-subnetgroups.go +++ b/resources/elasticache-subnetgroups.go @@ -3,6 +3,9 @@ package resources import ( "context" "fmt" + "github.com/aws/aws-sdk-go/service/elasticache/elasticacheiface" + "github.com/ekristen/libnuke/pkg/types" + "github.com/sirupsen/logrus" "strings" "github.com/aws/aws-sdk-go/aws" @@ -24,12 +27,19 @@ func init() { }) } -type ElasticacheSubnetGroupLister struct{} +type ElasticacheSubnetGroupLister struct { + mockSvc elasticacheiface.ElastiCacheAPI +} func (l *ElasticacheSubnetGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) - svc := elasticache.New(opts.Session) + var svc elasticacheiface.ElastiCacheAPI + if l.mockSvc != nil { + svc = l.mockSvc + } else { + svc = elasticache.New(opts.Session) + } params := &elasticache.DescribeCacheSubnetGroupsInput{MaxRecords: aws.Int64(100)} resp, err := svc.DescribeCacheSubnetGroups(params) @@ -39,9 +49,18 @@ func (l *ElasticacheSubnetGroupLister) List(_ context.Context, o interface{}) ([ var resources []resource.Resource for _, subnetGroup := range resp.CacheSubnetGroups { + tags, err := svc.ListTagsForResource(&elasticache.ListTagsForResourceInput{ + ResourceName: subnetGroup.CacheSubnetGroupName, + }) + if err != nil { + logrus.WithError(err).Error("unable to retrieve tags") + continue + } + resources = append(resources, &ElasticacheSubnetGroup{ svc: svc, name: subnetGroup.CacheSubnetGroupName, + Tags: tags.TagList, }) } @@ -49,8 +68,9 @@ func (l *ElasticacheSubnetGroupLister) List(_ context.Context, o interface{}) ([ } type ElasticacheSubnetGroup struct { - svc *elasticache.ElastiCache + svc elasticacheiface.ElastiCacheAPI name *string + Tags []*elasticache.Tag } func (i *ElasticacheSubnetGroup) Filter() error { @@ -60,6 +80,18 @@ func (i *ElasticacheSubnetGroup) Filter() error { return nil } +func (i *ElasticacheSubnetGroup) Properties() types.Properties { + properties := types.NewProperties() + + properties.Set("Name", i.name) + + for _, tag := range i.Tags { + properties.SetTag(tag.Key, tag.Value) + } + + return properties +} + func (i *ElasticacheSubnetGroup) Remove(_ context.Context) error { params := &elasticache.DeleteCacheSubnetGroupInput{ CacheSubnetGroupName: i.name, diff --git a/resources/elasticache-subnetgroups_mock_test.go b/resources/elasticache-subnetgroups_mock_test.go new file mode 100644 index 00000000..039773f7 --- /dev/null +++ b/resources/elasticache-subnetgroups_mock_test.go @@ -0,0 +1,113 @@ +package resources + +import ( + "testing" + + "github.com/golang/mock/gomock" + "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/elasticache" + + "github.com/ekristen/aws-nuke/mocks/mock_elasticacheiface" + "github.com/ekristen/aws-nuke/pkg/nuke" +) + +func Test_Mock_ElastiCache_SubnetGroup_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockElastiCache := mock_elasticacheiface.NewMockElastiCacheAPI(ctrl) + + subnetGroup := ElasticacheSubnetGroup{ + svc: mockElastiCache, + name: aws.String("foobar"), + } + + mockElastiCache.EXPECT().DeleteCacheSubnetGroup(gomock.Any()).Return(&elasticache.DeleteCacheSubnetGroupOutput{}, nil) + + err := subnetGroup.Remove(nil) + a.Nil(err) + a.Equal("foobar", *subnetGroup.name) +} + +func Test_Mock_ElastiCache_SubnetGroup_List_NoTags(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockElastiCache := mock_elasticacheiface.NewMockElastiCacheAPI(ctrl) + + subnetGroupsLister := ElasticacheSubnetGroupLister{ + mockSvc: mockElastiCache, + } + + mockElastiCache.EXPECT().DescribeCacheSubnetGroups(gomock.Any()).Return(&elasticache.DescribeCacheSubnetGroupsOutput{ + CacheSubnetGroups: []*elasticache.CacheSubnetGroup{ + { + CacheSubnetGroupName: aws.String("foobar"), + }, + }, + }, nil) + + mockElastiCache.EXPECT().ListTagsForResource(&elasticache.ListTagsForResourceInput{ + ResourceName: aws.String("foobar"), + }).Return(&elasticache.TagListMessage{}, nil) + + resources, err := subnetGroupsLister.List(nil, &nuke.ListerOpts{}) + a.Nil(err) + a.Len(resources, 1) + + resource := resources[0].(*ElasticacheSubnetGroup) + a.Len(resource.Tags, 0) + + a.Equal("foobar", resource.String()) +} + +func Test_Mock_ElastiCache_SubnetGroup_List_WithTags(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockElastiCache := mock_elasticacheiface.NewMockElastiCacheAPI(ctrl) + + subnetGroupsLister := ElasticacheSubnetGroupLister{ + mockSvc: mockElastiCache, + } + + mockElastiCache.EXPECT().DescribeCacheSubnetGroups(gomock.Any()).Return(&elasticache.DescribeCacheSubnetGroupsOutput{ + CacheSubnetGroups: []*elasticache.CacheSubnetGroup{ + { + CacheSubnetGroupName: aws.String("foobar"), + }, + }, + }, nil) + + mockElastiCache.EXPECT().ListTagsForResource(&elasticache.ListTagsForResourceInput{ + ResourceName: aws.String("foobar"), + }).Return(&elasticache.TagListMessage{ + TagList: []*elasticache.Tag{ + { + Key: aws.String("Name"), + Value: aws.String("foobar"), + }, + { + Key: aws.String("aws-nuke"), + Value: aws.String("test"), + }, + }, + }, nil) + + resources, err := subnetGroupsLister.List(nil, &nuke.ListerOpts{}) + a.Nil(err) + + a.Len(resources, 1) + + resource := resources[0].(*ElasticacheSubnetGroup) + a.Len(resource.Tags, 2) + + a.Equal("foobar", resource.String()) + a.Equal("foobar", resource.Properties().Get("tag:Name")) + a.Equal("test", resource.Properties().Get("tag:aws-nuke")) +} From 53967b20a74f6100d6ea8c9f0ba6783778e7d94d Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 22 Apr 2024 19:02:26 -0600 Subject: [PATCH 278/617] chore: resolve golangci-lint issues --- resources/elasticache-memcacheclusters.go | 5 +++-- .../elasticache-memcacheclusters_mock_test.go | 17 ++++++++++------- resources/elasticache-subnetgroups.go | 7 ++++--- resources/elasticache-subnetgroups_mock_test.go | 11 +++++++---- 4 files changed, 24 insertions(+), 16 deletions(-) diff --git a/resources/elasticache-memcacheclusters.go b/resources/elasticache-memcacheclusters.go index f72fc8ec..ee4c56e8 100644 --- a/resources/elasticache-memcacheclusters.go +++ b/resources/elasticache-memcacheclusters.go @@ -2,15 +2,16 @@ package resources import ( "context" - "github.com/aws/aws-sdk-go/service/elasticache/elasticacheiface" - "github.com/ekristen/libnuke/pkg/types" + "github.com/sirupsen/logrus" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/elasticache" + "github.com/aws/aws-sdk-go/service/elasticache/elasticacheiface" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/pkg/nuke" ) diff --git a/resources/elasticache-memcacheclusters_mock_test.go b/resources/elasticache-memcacheclusters_mock_test.go index e9685f31..bb963c19 100644 --- a/resources/elasticache-memcacheclusters_mock_test.go +++ b/resources/elasticache-memcacheclusters_mock_test.go @@ -1,13 +1,17 @@ package resources import ( + "context" + "testing" + + "github.com/golang/mock/gomock" + "github.com/stretchr/testify/assert" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/elasticache" + "github.com/ekristen/aws-nuke/mocks/mock_elasticacheiface" "github.com/ekristen/aws-nuke/pkg/nuke" - "github.com/golang/mock/gomock" - "github.com/stretchr/testify/assert" - "testing" ) func Test_Mock_ElastiCache_CacheCluster_Remove(t *testing.T) { @@ -26,7 +30,7 @@ func Test_Mock_ElastiCache_CacheCluster_Remove(t *testing.T) { CacheClusterId: aws.String("foobar"), }).Return(&elasticache.DeleteCacheClusterOutput{}, nil) - err := cacheCluster.Remove(nil) + err := cacheCluster.Remove(context.TODO()) a.Nil(err) } @@ -54,7 +58,7 @@ func Test_Mock_ElastiCache_CacheCluster_List_NoTags(t *testing.T) { ResourceName: aws.String("foobar"), }).Return(&elasticache.TagListMessage{}, nil) - resources, err := cacheClusterLister.List(nil, &nuke.ListerOpts{}) + resources, err := cacheClusterLister.List(context.TODO(), &nuke.ListerOpts{}) a.Nil(err) a.Len(resources, 1) @@ -96,7 +100,7 @@ func Test_Mock_ElastiCache_CacheCluster_List_WithTags(t *testing.T) { }, }, nil) - resources, err := cacheClusterLister.List(nil, &nuke.ListerOpts{}) + resources, err := cacheClusterLister.List(context.TODO(), &nuke.ListerOpts{}) a.Nil(err) a.Len(resources, 1) @@ -105,5 +109,4 @@ func Test_Mock_ElastiCache_CacheCluster_List_WithTags(t *testing.T) { a.Equal("foobar", resource.String()) a.Equal("foobar", resource.Properties().Get("tag:Name")) a.Equal("test", resource.Properties().Get("tag:aws-nuke")) - } diff --git a/resources/elasticache-subnetgroups.go b/resources/elasticache-subnetgroups.go index 4ded8ea5..f2a92b73 100644 --- a/resources/elasticache-subnetgroups.go +++ b/resources/elasticache-subnetgroups.go @@ -3,16 +3,17 @@ package resources import ( "context" "fmt" - "github.com/aws/aws-sdk-go/service/elasticache/elasticacheiface" - "github.com/ekristen/libnuke/pkg/types" - "github.com/sirupsen/logrus" "strings" + "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/elasticache" + "github.com/aws/aws-sdk-go/service/elasticache/elasticacheiface" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/pkg/nuke" ) diff --git a/resources/elasticache-subnetgroups_mock_test.go b/resources/elasticache-subnetgroups_mock_test.go index 039773f7..d02d5dbf 100644 --- a/resources/elasticache-subnetgroups_mock_test.go +++ b/resources/elasticache-subnetgroups_mock_test.go @@ -1,6 +1,7 @@ package resources import ( + "context" "testing" "github.com/golang/mock/gomock" @@ -25,9 +26,11 @@ func Test_Mock_ElastiCache_SubnetGroup_Remove(t *testing.T) { name: aws.String("foobar"), } - mockElastiCache.EXPECT().DeleteCacheSubnetGroup(gomock.Any()).Return(&elasticache.DeleteCacheSubnetGroupOutput{}, nil) + mockElastiCache.EXPECT().DeleteCacheSubnetGroup(&elasticache.DeleteCacheSubnetGroupInput{ + CacheSubnetGroupName: aws.String("foobar"), + }).Return(&elasticache.DeleteCacheSubnetGroupOutput{}, nil) - err := subnetGroup.Remove(nil) + err := subnetGroup.Remove(context.TODO()) a.Nil(err) a.Equal("foobar", *subnetGroup.name) } @@ -55,7 +58,7 @@ func Test_Mock_ElastiCache_SubnetGroup_List_NoTags(t *testing.T) { ResourceName: aws.String("foobar"), }).Return(&elasticache.TagListMessage{}, nil) - resources, err := subnetGroupsLister.List(nil, &nuke.ListerOpts{}) + resources, err := subnetGroupsLister.List(context.TODO(), &nuke.ListerOpts{}) a.Nil(err) a.Len(resources, 1) @@ -99,7 +102,7 @@ func Test_Mock_ElastiCache_SubnetGroup_List_WithTags(t *testing.T) { }, }, nil) - resources, err := subnetGroupsLister.List(nil, &nuke.ListerOpts{}) + resources, err := subnetGroupsLister.List(context.TODO(), &nuke.ListerOpts{}) a.Nil(err) a.Len(resources, 1) From 98f6c2443bb5f3bec13901e96de840f8dcea42d6 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 25 Apr 2024 08:54:08 +0000 Subject: [PATCH 279/617] chore(deps): update golangci/golangci-lint-action action to v5 [release skip] (#153) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/golangci-lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 8f4ac75b..20861e7a 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -18,6 +18,6 @@ jobs: go-version: '1.21.x' cache: false - name: golangci-lint - uses: golangci/golangci-lint-action@v4 + uses: golangci/golangci-lint-action@v5 with: args: --timeout=10m \ No newline at end of file From 8be61c16bdf2dd768584a2b8c11652d1328870bf Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 27 Apr 2024 16:50:36 +0000 Subject: [PATCH 280/617] fix(deps): update module github.com/urfave/cli/v2 to v2.27.2 --- go.mod | 6 +++--- go.sum | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index d11608c4..4a570248 100644 --- a/go.mod +++ b/go.mod @@ -12,13 +12,13 @@ require ( github.com/pkg/errors v0.9.1 github.com/sirupsen/logrus v1.9.3 github.com/stretchr/testify v1.9.0 - github.com/urfave/cli/v2 v2.27.1 + github.com/urfave/cli/v2 v2.27.2 golang.org/x/text v0.14.0 gopkg.in/yaml.v3 v3.0.1 ) require ( - github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect + github.com/cpuguy83/go-md2man/v2 v2.0.4 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect github.com/kr/pretty v0.3.1 // indirect @@ -29,7 +29,7 @@ require ( github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/stevenle/topsort v0.2.0 // indirect - github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect + github.com/xrash/smetrics v0.0.0-20240312152122-5f08fbb34913 // indirect golang.org/x/mod v0.9.0 // indirect golang.org/x/net v0.19.0 // indirect golang.org/x/sync v0.6.0 // indirect diff --git a/go.sum b/go.sum index eea477d5..5cae0733 100644 --- a/go.sum +++ b/go.sum @@ -2,6 +2,8 @@ github.com/aws/aws-sdk-go v1.50.24 h1:3o2Pg7mOoVL0jv54vWtuafoZqAeEXLhm1tltWA2GcE github.com/aws/aws-sdk-go v1.50.24/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/cpuguy83/go-md2man/v2 v2.0.4 h1:wfIWP927BUkWJb2NmU/kNDYIBTh/ziUX91+lVfRxZq4= +github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= @@ -56,8 +58,12 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/urfave/cli/v2 v2.27.1 h1:8xSQ6szndafKVRmfyeUMxkNUJQMjL1F2zmsZ+qHpfho= github.com/urfave/cli/v2 v2.27.1/go.mod h1:8qnjx1vcq5s2/wpsqoZFndg2CE5tNFyrTvS6SinrnYQ= +github.com/urfave/cli/v2 v2.27.2 h1:6e0H+AkS+zDckwPCUrZkKX38mRaau4nL2uipkJpbkcI= +github.com/urfave/cli/v2 v2.27.2/go.mod h1:g0+79LmHHATl7DAcHO99smiR/T7uGLw84w8Y42x+4eM= github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 h1:bAn7/zixMGCfxrRTfdpNzjtPYqr8smhKouy9mxVdGPU= github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8= +github.com/xrash/smetrics v0.0.0-20240312152122-5f08fbb34913 h1:+qGGcbkzsfDQNPPe9UDgpxAWQrhbbBXOYJFQDq/dtJw= +github.com/xrash/smetrics v0.0.0-20240312152122-5f08fbb34913/go.mod h1:4aEEwZQutDLsQv2Deui4iYQ6DWTxR14g6m8Wv88+Xqk= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= From 16e062bcff04d837f0092d9d3d1f8afc743d078a Mon Sep 17 00:00:00 2001 From: Nicolas Pellegrin Date: Fri, 3 May 2024 11:10:28 +0200 Subject: [PATCH 281/617] feat(sagemaker-spaces): add support for Sagemaker Spaces --- resources/sagemaker-apps.go | 6 ++- resources/sagemaker-spaces.go | 97 +++++++++++++++++++++++++++++++++++ 2 files changed, 102 insertions(+), 1 deletion(-) create mode 100644 resources/sagemaker-spaces.go diff --git a/resources/sagemaker-apps.go b/resources/sagemaker-apps.go index d510c3fc..9246f147 100644 --- a/resources/sagemaker-apps.go +++ b/resources/sagemaker-apps.go @@ -50,6 +50,7 @@ func (l *SageMakerAppLister) List(_ context.Context, o interface{}) ([]resource. appName: app.AppName, appType: app.AppType, userProfileName: app.UserProfileName, + spaceName: app.SpaceName, status: app.Status, }) } @@ -70,6 +71,7 @@ type SageMakerApp struct { appName *string appType *string userProfileName *string + spaceName *string status *string } @@ -79,6 +81,7 @@ func (f *SageMakerApp) Remove(_ context.Context) error { AppName: f.appName, AppType: f.appType, UserProfileName: f.userProfileName, + SpaceName: f.spaceName, }) return err @@ -94,7 +97,8 @@ func (f *SageMakerApp) Properties() types.Properties { Set("DomainID", f.domainID). Set("AppName", f.appName). Set("AppType", f.appType). - Set("UserProfileName", f.userProfileName) + Set("UserProfileName", f.userProfileName). + Set("SpaceName", f.spaceName) return properties } diff --git a/resources/sagemaker-spaces.go b/resources/sagemaker-spaces.go new file mode 100644 index 00000000..69bd3269 --- /dev/null +++ b/resources/sagemaker-spaces.go @@ -0,0 +1,97 @@ +package resources + +import ( + "context" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/sagemaker" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" +) + +const SageMakerSpaceResource = "SageMakerSpace" + +func init() { + registry.Register(®istry.Registration{ + Name: SageMakerSpaceResource, + Scope: nuke.Account, + Lister: &SageMakerSpaceLister{}, + }) +} + +type SageMakerSpaceLister struct{} + +func (l *SageMakerSpaceLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := sagemaker.New(opts.Session) + resources := make([]resource.Resource, 0) + + params := &sagemaker.ListSpacesInput{ + MaxResults: aws.Int64(30), + } + + for { + resp, err := svc.ListSpaces(params) + if err != nil { + return nil, err + } + + for _, space := range resp.Spaces { + resources = append(resources, &SageMakerSpace{ + svc: svc, + domainID: space.DomainId, + spaceDisplayName: space.SpaceDisplayName, + spaceName: space.SpaceName, + status: space.Status, + lastModifiedTime: space.LastModifiedTime, + }) + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken + } + + return resources, nil +} + +type SageMakerSpace struct { + svc *sagemaker.SageMaker + domainID *string + spaceDisplayName *string + spaceName *string + status *string + lastModifiedTime *time.Time +} + +func (f *SageMakerSpace) Remove(_ context.Context) error { + _, err := f.svc.DeleteSpace(&sagemaker.DeleteSpaceInput{ + DomainId: f.domainID, + SpaceName: f.spaceName, + }) + + return err +} + +func (f *SageMakerSpace) String() string { + return *f.spaceName +} + +func (f *SageMakerSpace) Properties() types.Properties { + properties := types.NewProperties() + properties. + Set("DomainID", f.domainID). + Set("SpaceDisplayName", f.spaceDisplayName). + Set("SpaceName", f.spaceName). + Set("Status", f.status). + Set("LastModifiedTime", f.lastModifiedTime) + return properties +} From 0f82e7ff58d10c4e5bc3d7715231010548d8c4fe Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 3 May 2024 08:51:59 -0600 Subject: [PATCH 282/617] ci: adjust when aws-sdk mock updates runs --- .github/workflows/aws-sdk-mocks.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/aws-sdk-mocks.yml b/.github/workflows/aws-sdk-mocks.yml index 15d1ff32..45c958fc 100644 --- a/.github/workflows/aws-sdk-mocks.yml +++ b/.github/workflows/aws-sdk-mocks.yml @@ -1,11 +1,7 @@ name: aws-sdk-update-mocks on: - pull_request: - types: - - opened - - edited - - synchronize + push: branches: - 'renovate/aws-sdk-go-monorepo' From 18e1a8ce12e7dd0b9d9edb97eb783b5eb5f02d1f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 4 May 2024 17:59:09 +0000 Subject: [PATCH 283/617] fix(deps): update module golang.org/x/text to v0.15.0 --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 4a570248..2c55af9d 100644 --- a/go.mod +++ b/go.mod @@ -13,7 +13,7 @@ require ( github.com/sirupsen/logrus v1.9.3 github.com/stretchr/testify v1.9.0 github.com/urfave/cli/v2 v2.27.2 - golang.org/x/text v0.14.0 + golang.org/x/text v0.15.0 gopkg.in/yaml.v3 v3.0.1 ) diff --git a/go.sum b/go.sum index 5cae0733..004b0edc 100644 --- a/go.sum +++ b/go.sum @@ -94,6 +94,8 @@ golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/text v0.15.0 h1:h1V/4gjBv8v9cjcR6+AR5+/cIYK5N/WAgiv4xlsEtAk= +golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= From a584ad36407b171143ca85fd66caf91ae06e2744 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 7 May 2024 04:43:21 +0000 Subject: [PATCH 284/617] chore(deps): update golangci/golangci-lint-action action to v6 [release skip] (#164) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/golangci-lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 20861e7a..412f53bc 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -18,6 +18,6 @@ jobs: go-version: '1.21.x' cache: false - name: golangci-lint - uses: golangci/golangci-lint-action@v5 + uses: golangci/golangci-lint-action@v6 with: args: --timeout=10m \ No newline at end of file From d2b0614470fc7d88a4fa2665467bc135bfdbda27 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 7 May 2024 17:04:32 -0600 Subject: [PATCH 285/617] ci: use github app to commit changes --- .github/workflows/aws-sdk-mocks.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/aws-sdk-mocks.yml b/.github/workflows/aws-sdk-mocks.yml index 45c958fc..91207434 100644 --- a/.github/workflows/aws-sdk-mocks.yml +++ b/.github/workflows/aws-sdk-mocks.yml @@ -18,14 +18,26 @@ jobs: - uses: actions/setup-go@v5 with: go-version: '1.21.x' + - name: generate-token + id: generate_token + uses: tibdex/github-app-token@v2 + with: + app_id: ${{ secrets.BOT_APP_ID }} + private_key: ${{ secrets.BOT_APP_PRIVATE_KEY }} + revoke: true - name: download go mods run: | go mod download - - run: | + - name: go-generate + run: | go generate ./... - - run: | - git config --global user.name github-actions - git config --global user.email github-actions@github.com + - name: git-commit + run: | + git config --global user.name 'ekristen[bot]' + git config --global user.email erik@ekristen.dev git add . git commit -a -m 'chore: update mocks' - git push + - name: git-push + uses: ad-m/github-push-action@master + with: + github_token: ${{ steps.generate_token.outputs.token }} \ No newline at end of file From 43668dac06eed74bb25c6dae90d7f6bbdcb8a0dc Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 7 May 2024 17:12:47 -0600 Subject: [PATCH 286/617] ci: fix branch for push action --- .github/workflows/aws-sdk-mocks.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/aws-sdk-mocks.yml b/.github/workflows/aws-sdk-mocks.yml index 91207434..44c9e1e9 100644 --- a/.github/workflows/aws-sdk-mocks.yml +++ b/.github/workflows/aws-sdk-mocks.yml @@ -40,4 +40,5 @@ jobs: - name: git-push uses: ad-m/github-push-action@master with: - github_token: ${{ steps.generate_token.outputs.token }} \ No newline at end of file + github_token: ${{ steps.generate_token.outputs.token }} + branch: ${{ github.ref }} \ No newline at end of file From e768e34edb5799c484542cc8ac41478013aa7389 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 7 May 2024 17:28:06 -0600 Subject: [PATCH 287/617] ci: adjust commit email --- .github/workflows/aws-sdk-mocks.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/aws-sdk-mocks.yml b/.github/workflows/aws-sdk-mocks.yml index 44c9e1e9..6f604d2d 100644 --- a/.github/workflows/aws-sdk-mocks.yml +++ b/.github/workflows/aws-sdk-mocks.yml @@ -33,8 +33,8 @@ jobs: go generate ./... - name: git-commit run: | - git config --global user.name 'ekristen[bot]' - git config --global user.email erik@ekristen.dev + git config --global user.name 'ekristen-dev[bot]' + git config --global user.email '50484080+ekristen-dev[bot]@users.noreply.github.com' git add . git commit -a -m 'chore: update mocks' - name: git-push From ed4194c40e5b6e6d7cd99f9fdb094bc56c738240 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 7 May 2024 17:36:01 -0600 Subject: [PATCH 288/617] ci: fix the id for the github app user --- .github/workflows/aws-sdk-mocks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aws-sdk-mocks.yml b/.github/workflows/aws-sdk-mocks.yml index 6f604d2d..0f74b6bb 100644 --- a/.github/workflows/aws-sdk-mocks.yml +++ b/.github/workflows/aws-sdk-mocks.yml @@ -34,7 +34,7 @@ jobs: - name: git-commit run: | git config --global user.name 'ekristen-dev[bot]' - git config --global user.email '50484080+ekristen-dev[bot]@users.noreply.github.com' + git config --global user.email '169176299+ekristen-dev[bot]@users.noreply.github.com' git add . git commit -a -m 'chore: update mocks' - name: git-push From 1071be22e95802c8ba3d0c2086a1d8b74d89154b Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 7 May 2024 17:52:03 -0600 Subject: [PATCH 289/617] ci: change checkout to attempt workflows to be triggered properly --- .github/workflows/aws-sdk-mocks.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/aws-sdk-mocks.yml b/.github/workflows/aws-sdk-mocks.yml index 0f74b6bb..062fe1f5 100644 --- a/.github/workflows/aws-sdk-mocks.yml +++ b/.github/workflows/aws-sdk-mocks.yml @@ -15,6 +15,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + persist-credentials: false + fetch-depth: 0 - uses: actions/setup-go@v5 with: go-version: '1.21.x' From 5312feb3e8b3518b6f87c90cad8116acd5fca0bd Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 7 May 2024 17:53:47 -0600 Subject: [PATCH 290/617] ci(renovate): ignore changes made by ekristen-dev bot --- .github/renovate.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/renovate.json b/.github/renovate.json index a3c4a6f7..c80a9000 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -31,5 +31,8 @@ "datasourceTemplate": "docker" } ], - "gitIgnoredAuthors": ["github-actions@github.com"] + "gitIgnoredAuthors": [ + "github-actions@github.com", + "169176299+ekristen-dev[bot]@users.noreply.github.com" + ] } From 0a7551ead84727aa3c7a8a3dc19e1df7a0f523af Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 7 May 2024 20:34:57 -0600 Subject: [PATCH 291/617] ci: only run if actor was renovate --- .github/workflows/aws-sdk-mocks.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/aws-sdk-mocks.yml b/.github/workflows/aws-sdk-mocks.yml index 062fe1f5..caf2e3bb 100644 --- a/.github/workflows/aws-sdk-mocks.yml +++ b/.github/workflows/aws-sdk-mocks.yml @@ -13,6 +13,7 @@ jobs: go-generate: name: go-generate runs-on: ubuntu-latest + if: github.actor == 'renovate[bot]' steps: - uses: actions/checkout@v4 with: From 9c1df28fcaeb93b8435845773b58d211d3be1bec Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 8 May 2024 02:41:10 +0000 Subject: [PATCH 292/617] fix(deps): update module github.com/aws/aws-sdk-go to v1.52.4 --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 2c55af9d..c2808372 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/ekristen/aws-nuke go 1.21.6 require ( - github.com/aws/aws-sdk-go v1.50.24 + github.com/aws/aws-sdk-go v1.52.4 github.com/ekristen/libnuke v0.12.0 github.com/fatih/color v1.16.0 github.com/golang/mock v1.6.0 diff --git a/go.sum b/go.sum index 004b0edc..39d387bb 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,7 @@ github.com/aws/aws-sdk-go v1.50.24 h1:3o2Pg7mOoVL0jv54vWtuafoZqAeEXLhm1tltWA2GcEw= github.com/aws/aws-sdk-go v1.50.24/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go v1.52.4 h1:9VsBVJ2TKf8xPP3+yIPGSYcEBIEymXsJzQoFgQuyvA0= +github.com/aws/aws-sdk-go v1.52.4/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/cpuguy83/go-md2man/v2 v2.0.4 h1:wfIWP927BUkWJb2NmU/kNDYIBTh/ziUX91+lVfRxZq4= From 34ad259185faa40157f6aa3a82f92ceb1ad8789d Mon Sep 17 00:00:00 2001 From: "ekristen-dev[bot]" <169176299+ekristen-dev[bot]@users.noreply.github.com> Date: Wed, 8 May 2024 02:41:28 +0000 Subject: [PATCH 293/617] chore: update mocks --- mocks/mock_cloudformationiface/mock.go | 52 +++++++++++++++++++++++- mocks/mock_ecsiface/mock.go | 2 +- mocks/mock_elasticacheiface/mock.go | 2 +- mocks/mock_glueiface/mock.go | 2 +- mocks/mock_iamiface/mock.go | 2 +- mocks/mock_sagemakeriface/mock.go | 2 +- mocks/mock_servicediscoveryiface/mock.go | 2 +- mocks/mock_sqsiface/mock.go | 2 +- 8 files changed, 58 insertions(+), 8 deletions(-) diff --git a/mocks/mock_cloudformationiface/mock.go b/mocks/mock_cloudformationiface/mock.go index 1ac65a20..f3dd700c 100644 --- a/mocks/mock_cloudformationiface/mock.go +++ b/mocks/mock_cloudformationiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /Users/ekristen/go/pkg/mod/github.com/aws/aws-sdk-go@v1.50.24/service/cloudformation/cloudformationiface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.52.4/service/cloudformation/cloudformationiface/interface.go // Package mock_cloudformationiface is a generated GoMock package. package mock_cloudformationiface @@ -3265,6 +3265,56 @@ func (mr *MockCloudFormationAPIMockRecorder) ListStackResourcesWithContext(arg0, return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStackResourcesWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStackResourcesWithContext), varargs...) } +// ListStackSetAutoDeploymentTargets mocks base method. +func (m *MockCloudFormationAPI) ListStackSetAutoDeploymentTargets(arg0 *cloudformation.ListStackSetAutoDeploymentTargetsInput) (*cloudformation.ListStackSetAutoDeploymentTargetsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListStackSetAutoDeploymentTargets", arg0) + ret0, _ := ret[0].(*cloudformation.ListStackSetAutoDeploymentTargetsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListStackSetAutoDeploymentTargets indicates an expected call of ListStackSetAutoDeploymentTargets. +func (mr *MockCloudFormationAPIMockRecorder) ListStackSetAutoDeploymentTargets(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStackSetAutoDeploymentTargets", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStackSetAutoDeploymentTargets), arg0) +} + +// ListStackSetAutoDeploymentTargetsRequest mocks base method. +func (m *MockCloudFormationAPI) ListStackSetAutoDeploymentTargetsRequest(arg0 *cloudformation.ListStackSetAutoDeploymentTargetsInput) (*request.Request, *cloudformation.ListStackSetAutoDeploymentTargetsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListStackSetAutoDeploymentTargetsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cloudformation.ListStackSetAutoDeploymentTargetsOutput) + return ret0, ret1 +} + +// ListStackSetAutoDeploymentTargetsRequest indicates an expected call of ListStackSetAutoDeploymentTargetsRequest. +func (mr *MockCloudFormationAPIMockRecorder) ListStackSetAutoDeploymentTargetsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStackSetAutoDeploymentTargetsRequest", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStackSetAutoDeploymentTargetsRequest), arg0) +} + +// ListStackSetAutoDeploymentTargetsWithContext mocks base method. +func (m *MockCloudFormationAPI) ListStackSetAutoDeploymentTargetsWithContext(arg0 aws.Context, arg1 *cloudformation.ListStackSetAutoDeploymentTargetsInput, arg2 ...request.Option) (*cloudformation.ListStackSetAutoDeploymentTargetsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListStackSetAutoDeploymentTargetsWithContext", varargs...) + ret0, _ := ret[0].(*cloudformation.ListStackSetAutoDeploymentTargetsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListStackSetAutoDeploymentTargetsWithContext indicates an expected call of ListStackSetAutoDeploymentTargetsWithContext. +func (mr *MockCloudFormationAPIMockRecorder) ListStackSetAutoDeploymentTargetsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStackSetAutoDeploymentTargetsWithContext", reflect.TypeOf((*MockCloudFormationAPI)(nil).ListStackSetAutoDeploymentTargetsWithContext), varargs...) +} + // ListStackSetOperationResults mocks base method. func (m *MockCloudFormationAPI) ListStackSetOperationResults(arg0 *cloudformation.ListStackSetOperationResultsInput) (*cloudformation.ListStackSetOperationResultsOutput, error) { m.ctrl.T.Helper() diff --git a/mocks/mock_ecsiface/mock.go b/mocks/mock_ecsiface/mock.go index 0c7d72c3..24eea0b6 100644 --- a/mocks/mock_ecsiface/mock.go +++ b/mocks/mock_ecsiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /Users/ekristen/go/pkg/mod/github.com/aws/aws-sdk-go@v1.50.24/service/ecs/ecsiface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.52.4/service/ecs/ecsiface/interface.go // Package mock_ecsiface is a generated GoMock package. package mock_ecsiface diff --git a/mocks/mock_elasticacheiface/mock.go b/mocks/mock_elasticacheiface/mock.go index 007ccd02..48b90bee 100644 --- a/mocks/mock_elasticacheiface/mock.go +++ b/mocks/mock_elasticacheiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /Users/ekristen/go/pkg/mod/github.com/aws/aws-sdk-go@v1.50.24/service/elasticache/elasticacheiface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.52.4/service/elasticache/elasticacheiface/interface.go // Package mock_elasticacheiface is a generated GoMock package. package mock_elasticacheiface diff --git a/mocks/mock_glueiface/mock.go b/mocks/mock_glueiface/mock.go index 6eb44474..81fde4a0 100644 --- a/mocks/mock_glueiface/mock.go +++ b/mocks/mock_glueiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /Users/ekristen/go/pkg/mod/github.com/aws/aws-sdk-go@v1.50.24/service/glue/glueiface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.52.4/service/glue/glueiface/interface.go // Package mock_glueiface is a generated GoMock package. package mock_glueiface diff --git a/mocks/mock_iamiface/mock.go b/mocks/mock_iamiface/mock.go index 96b855e1..fc54afb4 100644 --- a/mocks/mock_iamiface/mock.go +++ b/mocks/mock_iamiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /Users/ekristen/go/pkg/mod/github.com/aws/aws-sdk-go@v1.50.24/service/iam/iamiface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.52.4/service/iam/iamiface/interface.go // Package mock_iamiface is a generated GoMock package. package mock_iamiface diff --git a/mocks/mock_sagemakeriface/mock.go b/mocks/mock_sagemakeriface/mock.go index aa9eac7f..36d3df2a 100644 --- a/mocks/mock_sagemakeriface/mock.go +++ b/mocks/mock_sagemakeriface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /Users/ekristen/go/pkg/mod/github.com/aws/aws-sdk-go@v1.50.24/service/sagemaker/sagemakeriface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.52.4/service/sagemaker/sagemakeriface/interface.go // Package mock_sagemakeriface is a generated GoMock package. package mock_sagemakeriface diff --git a/mocks/mock_servicediscoveryiface/mock.go b/mocks/mock_servicediscoveryiface/mock.go index 732abf2e..c0322ea1 100644 --- a/mocks/mock_servicediscoveryiface/mock.go +++ b/mocks/mock_servicediscoveryiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /Users/ekristen/go/pkg/mod/github.com/aws/aws-sdk-go@v1.50.24/service/servicediscovery/servicediscoveryiface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.52.4/service/servicediscovery/servicediscoveryiface/interface.go // Package mock_servicediscoveryiface is a generated GoMock package. package mock_servicediscoveryiface diff --git a/mocks/mock_sqsiface/mock.go b/mocks/mock_sqsiface/mock.go index 16bf8e29..da8538d1 100644 --- a/mocks/mock_sqsiface/mock.go +++ b/mocks/mock_sqsiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /Users/ekristen/go/pkg/mod/github.com/aws/aws-sdk-go@v1.50.24/service/sqs/sqsiface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.52.4/service/sqs/sqsiface/interface.go // Package mock_sqsiface is a generated GoMock package. package mock_sqsiface From 99db423d49a130ef33787a1e275e22fdc923a355 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 13 May 2024 16:59:41 +0000 Subject: [PATCH 294/617] fix(deps): update module github.com/fatih/color to v1.17.0 --- go.mod | 4 ++-- go.sum | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index c2808372..444be09d 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.21.6 require ( github.com/aws/aws-sdk-go v1.52.4 github.com/ekristen/libnuke v0.12.0 - github.com/fatih/color v1.16.0 + github.com/fatih/color v1.17.0 github.com/golang/mock v1.6.0 github.com/google/uuid v1.6.0 github.com/gotidy/ptr v1.4.0 @@ -33,7 +33,7 @@ require ( golang.org/x/mod v0.9.0 // indirect golang.org/x/net v0.19.0 // indirect golang.org/x/sync v0.6.0 // indirect - golang.org/x/sys v0.16.0 // indirect + golang.org/x/sys v0.18.0 // indirect golang.org/x/tools v0.6.0 // indirect gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/go.sum b/go.sum index 39d387bb..db5cb77f 100644 --- a/go.sum +++ b/go.sum @@ -16,6 +16,8 @@ github.com/ekristen/libnuke v0.12.0 h1:Dsk+ckT9sh9QZTLq5m8kOA1KFJGJxSv0TLnfe3YeL github.com/ekristen/libnuke v0.12.0/go.mod h1:sBdA04l9IMMejQw5gO9k6o/a0GffSYhgZYaUSdRjIac= github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= +github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4= +github.com/fatih/color v1.17.0/go.mod h1:YZ7TlrGPkiz6ku9fK3TLD/pl3CpsiFyu8N92HLgmosI= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= @@ -91,6 +93,8 @@ golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.16.0 h1:xWw16ngr6ZMtmxDyKyIgsE93KNKz5HKmMa3b8ALHidU= golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4= +golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= From af0bf1f1a566a5980db793386ea376f4db31201a Mon Sep 17 00:00:00 2001 From: Benjamin Weimer Date: Wed, 15 May 2024 11:27:08 +0200 Subject: [PATCH 295/617] fix: add CreateTime property to EC2NATGateway and EC2Volume resources --- resources/ec2-nat-gateways.go | 2 ++ resources/ec2-volume.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/resources/ec2-nat-gateways.go b/resources/ec2-nat-gateways.go index 31274802..5d259cf1 100644 --- a/resources/ec2-nat-gateways.go +++ b/resources/ec2-nat-gateways.go @@ -3,6 +3,7 @@ package resources import ( "context" "fmt" + "time" "github.com/gotidy/ptr" @@ -79,6 +80,7 @@ func (n *EC2NATGateway) Remove(_ context.Context) error { func (n *EC2NATGateway) Properties() types.Properties { properties := types.NewProperties() + properties.Set("CreateTime", n.natgw.CreateTime.Format(time.RFC3339)) for _, tagValue := range n.natgw.Tags { properties.SetTag(tagValue.Key, tagValue.Value) } diff --git a/resources/ec2-volume.go b/resources/ec2-volume.go index 038c4928..c4e71285 100644 --- a/resources/ec2-volume.go +++ b/resources/ec2-volume.go @@ -2,6 +2,7 @@ package resources import ( "context" + "time" "github.com/aws/aws-sdk-go/service/ec2" @@ -60,6 +61,7 @@ func (e *EC2Volume) Remove(_ context.Context) error { func (e *EC2Volume) Properties() types.Properties { properties := types.NewProperties() properties.Set("State", e.volume.State) + properties.Set("CreateTime", e.volume.CreateTime.Format(time.RFC3339)) for _, tagValue := range e.volume.Tags { properties.SetTag(tagValue.Key, tagValue.Value) } From 3006d753910de68d81b5946e0dbd56fe21301ee1 Mon Sep 17 00:00:00 2001 From: Sherd White Date: Fri, 3 May 2024 17:12:46 -0500 Subject: [PATCH 296/617] feat: adding support for aws glue blueprints, ml transforms, sessions, and workflows --- resources/glue-blueprints.go | 67 +++++++++++++++++++++++++++++++++ resources/glue-ml-transforms.go | 67 +++++++++++++++++++++++++++++++++ resources/glue-sessions.go | 67 +++++++++++++++++++++++++++++++++ resources/glue-workflows.go | 67 +++++++++++++++++++++++++++++++++ 4 files changed, 268 insertions(+) create mode 100644 resources/glue-blueprints.go create mode 100644 resources/glue-ml-transforms.go create mode 100644 resources/glue-sessions.go create mode 100644 resources/glue-workflows.go diff --git a/resources/glue-blueprints.go b/resources/glue-blueprints.go new file mode 100644 index 00000000..b40ab8df --- /dev/null +++ b/resources/glue-blueprints.go @@ -0,0 +1,67 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/glue" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type GlueBlueprint struct { + svc *glue.Glue + name *string +} + +func init() { + register("GlueBlueprint", ListGlueBlueprints) +} + +func ListGlueBlueprints(sess *session.Session) ([]Resource, error) { + svc := glue.New(sess) + resources := []Resource{} + + params := &glue.ListBlueprintsInput{ + MaxResults: aws.Int64(25), + } + + for { + output, err := svc.ListBlueprints(params) + if err != nil { + return nil, err + } + + for _, blueprint := range output.Blueprints { + resources = append(resources, &GlueBlueprint{ + svc: svc, + name: blueprint, + }) + } + + if output.NextToken == nil { + break + } + + params.NextToken = output.NextToken + } + + return resources, nil +} + +func (f *GlueBlueprint) Remove() error { + _, err := f.svc.DeleteBlueprint(&glue.DeleteBlueprintInput{ + Name: f.name, + }) + + return err +} + +func (f *GlueBlueprint) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("Name", f.name) + + return properties +} + +func (f *GlueBlueprint) String() string { + return *f.name +} diff --git a/resources/glue-ml-transforms.go b/resources/glue-ml-transforms.go new file mode 100644 index 00000000..67fdee30 --- /dev/null +++ b/resources/glue-ml-transforms.go @@ -0,0 +1,67 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/glue" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type GlueMLTransform struct { + svc *glue.Glue + id *string +} + +func init() { + register("GlueMLTransform", ListGlueMLTransforms) +} + +func ListGlueMLTransforms(sess *session.Session) ([]Resource, error) { + svc := glue.New(sess) + resources := []Resource{} + + params := &glue.ListMLTransformsInput{ + MaxResults: aws.Int64(100), + } + + for { + output, err := svc.ListMLTransforms(params) + if err != nil { + return nil, err + } + + for _, transformId := range output.TransformIds { + resources = append(resources, &GlueMLTransform{ + svc: svc, + id: transformId, + }) + } + + if output.NextToken == nil { + break + } + + params.NextToken = output.NextToken + } + + return resources, nil +} + +func (f *GlueMLTransform) Remove() error { + _, err := f.svc.DeleteMLTransform(&glue.DeleteMLTransformInput{ + TransformId: f.id, + }) + + return err +} + +func (f *GlueMLTransform) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("Id", f.id) + + return properties +} + +func (f *GlueMLTransform) String() string { + return *f.id +} diff --git a/resources/glue-sessions.go b/resources/glue-sessions.go new file mode 100644 index 00000000..6dd719ad --- /dev/null +++ b/resources/glue-sessions.go @@ -0,0 +1,67 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/glue" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type GlueSession struct { + svc *glue.Glue + id *string +} + +func init() { + register("GlueSession", ListGlueSessions) +} + +func ListGlueSessions(sess *session.Session) ([]Resource, error) { + svc := glue.New(sess) + resources := []Resource{} + + params := &glue.ListSessionsInput{ + MaxResults: aws.Int64(25), + } + + for { + output, err := svc.ListSessions(params) + if err != nil { + return nil, err + } + + for _, session := range output.Sessions { + resources = append(resources, &GlueSession{ + svc: svc, + id: session.Id, + }) + } + + if output.NextToken == nil { + break + } + + params.NextToken = output.NextToken + } + + return resources, nil +} + +func (f *GlueSession) Remove() error { + _, err := f.svc.DeleteSession(&glue.DeleteSessionInput{ + Id: f.id, + }) + + return err +} + +func (f *GlueSession) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("Id", f.id) + + return properties +} + +func (f *GlueSession) String() string { + return *f.id +} diff --git a/resources/glue-workflows.go b/resources/glue-workflows.go new file mode 100644 index 00000000..b7b5a7ab --- /dev/null +++ b/resources/glue-workflows.go @@ -0,0 +1,67 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/glue" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type GlueWorkflow struct { + svc *glue.Glue + name *string +} + +func init() { + register("GlueWorkflow", ListGlueWorkflows) +} + +func ListGlueWorkflows(sess *session.Session) ([]Resource, error) { + svc := glue.New(sess) + resources := []Resource{} + + params := &glue.ListWorkflowsInput{ + MaxResults: aws.Int64(25), + } + + for { + output, err := svc.ListWorkflows(params) + if err != nil { + return nil, err + } + + for _, workflowName := range output.Workflows { + resources = append(resources, &GlueWorkflow{ + svc: svc, + name: workflowName, + }) + } + + if output.NextToken == nil { + break + } + + params.NextToken = output.NextToken + } + + return resources, nil +} + +func (f *GlueWorkflow) Remove() error { + _, err := f.svc.DeleteWorkflow(&glue.DeleteWorkflowInput{ + Name: f.name, + }) + + return err +} + +func (f *GlueWorkflow) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("Name", f.name) + + return properties +} + +func (f *GlueWorkflow) String() string { + return *f.name +} From a776342d31ca7ae1f26e0977e969d9b671bac391 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 17 May 2024 21:02:19 -0600 Subject: [PATCH 297/617] chore: refactor to libnuke resource format and code standards --- resources/glue-blueprints.go | 31 ++++++++++++++++++++------- resources/glue-ml-transforms.go | 37 ++++++++++++++++++++++++--------- resources/glue-sessions.go | 33 ++++++++++++++++++++++------- resources/glue-workflows.go | 31 ++++++++++++++++++++------- 4 files changed, 100 insertions(+), 32 deletions(-) diff --git a/resources/glue-blueprints.go b/resources/glue-blueprints.go index b40ab8df..f3aa70f5 100644 --- a/resources/glue-blueprints.go +++ b/resources/glue-blueprints.go @@ -1,10 +1,17 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/glue" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type GlueBlueprint struct { @@ -12,13 +19,23 @@ type GlueBlueprint struct { name *string } +const GlueBlueprintResource = "GlueBlueprint" + func init() { - register("GlueBlueprint", ListGlueBlueprints) + registry.Register(®istry.Registration{ + Name: GlueBlueprintResource, + Scope: nuke.Account, + Lister: &GlueBlueprintLister{}, + }) } -func ListGlueBlueprints(sess *session.Session) ([]Resource, error) { - svc := glue.New(sess) - resources := []Resource{} +type GlueBlueprintLister struct{} + +func (l *GlueBlueprintLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := glue.New(opts.Session) + resources := make([]resource.Resource, 0) params := &glue.ListBlueprintsInput{ MaxResults: aws.Int64(25), @@ -47,7 +64,7 @@ func ListGlueBlueprints(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *GlueBlueprint) Remove() error { +func (f *GlueBlueprint) Remove(_ context.Context) error { _, err := f.svc.DeleteBlueprint(&glue.DeleteBlueprintInput{ Name: f.name, }) diff --git a/resources/glue-ml-transforms.go b/resources/glue-ml-transforms.go index 67fdee30..0d3abf08 100644 --- a/resources/glue-ml-transforms.go +++ b/resources/glue-ml-transforms.go @@ -1,10 +1,17 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/glue" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type GlueMLTransform struct { @@ -12,13 +19,23 @@ type GlueMLTransform struct { id *string } +const GlueMLTransformResource = "GlueMLTransform" + func init() { - register("GlueMLTransform", ListGlueMLTransforms) + registry.Register(®istry.Registration{ + Name: GlueMLTransformResource, + Scope: nuke.Account, + Lister: &GlueMLTransformLister{}, + }) } -func ListGlueMLTransforms(sess *session.Session) ([]Resource, error) { - svc := glue.New(sess) - resources := []Resource{} +type GlueMLTransformLister struct{} + +func (l *GlueMLTransformLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := glue.New(opts.Session) + resources := make([]resource.Resource, 0) params := &glue.ListMLTransformsInput{ MaxResults: aws.Int64(100), @@ -30,10 +47,10 @@ func ListGlueMLTransforms(sess *session.Session) ([]Resource, error) { return nil, err } - for _, transformId := range output.TransformIds { + for _, transformID := range output.TransformIds { resources = append(resources, &GlueMLTransform{ svc: svc, - id: transformId, + id: transformID, }) } @@ -47,7 +64,7 @@ func ListGlueMLTransforms(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *GlueMLTransform) Remove() error { +func (f *GlueMLTransform) Remove(_ context.Context) error { _, err := f.svc.DeleteMLTransform(&glue.DeleteMLTransformInput{ TransformId: f.id, }) @@ -57,7 +74,7 @@ func (f *GlueMLTransform) Remove() error { func (f *GlueMLTransform) Properties() types.Properties { properties := types.NewProperties() - properties.Set("Id", f.id) + properties.Set("ID", f.id) return properties } diff --git a/resources/glue-sessions.go b/resources/glue-sessions.go index 6dd719ad..16836916 100644 --- a/resources/glue-sessions.go +++ b/resources/glue-sessions.go @@ -1,10 +1,17 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/glue" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type GlueSession struct { @@ -12,13 +19,23 @@ type GlueSession struct { id *string } +const GlueSessionResource = "GlueSession" + func init() { - register("GlueSession", ListGlueSessions) + registry.Register(®istry.Registration{ + Name: GlueSessionResource, + Scope: nuke.Account, + Lister: &GlueSessionLister{}, + }) } -func ListGlueSessions(sess *session.Session) ([]Resource, error) { - svc := glue.New(sess) - resources := []Resource{} +type GlueSessionLister struct{} + +func (l *GlueSessionLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := glue.New(opts.Session) + resources := make([]resource.Resource, 0) params := &glue.ListSessionsInput{ MaxResults: aws.Int64(25), @@ -47,7 +64,7 @@ func ListGlueSessions(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *GlueSession) Remove() error { +func (f *GlueSession) Remove(_ context.Context) error { _, err := f.svc.DeleteSession(&glue.DeleteSessionInput{ Id: f.id, }) @@ -57,7 +74,7 @@ func (f *GlueSession) Remove() error { func (f *GlueSession) Properties() types.Properties { properties := types.NewProperties() - properties.Set("Id", f.id) + properties.Set("ID", f.id) return properties } diff --git a/resources/glue-workflows.go b/resources/glue-workflows.go index b7b5a7ab..e8298d16 100644 --- a/resources/glue-workflows.go +++ b/resources/glue-workflows.go @@ -1,10 +1,17 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/glue" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" ) type GlueWorkflow struct { @@ -12,13 +19,23 @@ type GlueWorkflow struct { name *string } +const GlueWorkflowResource = "GlueWorkflow" + func init() { - register("GlueWorkflow", ListGlueWorkflows) + registry.Register(®istry.Registration{ + Name: GlueWorkflowResource, + Scope: nuke.Account, + Lister: &GlueWorkflowLister{}, + }) } -func ListGlueWorkflows(sess *session.Session) ([]Resource, error) { - svc := glue.New(sess) - resources := []Resource{} +type GlueWorkflowLister struct{} + +func (l *GlueWorkflowLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := glue.New(opts.Session) + resources := make([]resource.Resource, 0) params := &glue.ListWorkflowsInput{ MaxResults: aws.Int64(25), @@ -47,7 +64,7 @@ func ListGlueWorkflows(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *GlueWorkflow) Remove() error { +func (f *GlueWorkflow) Remove(_ context.Context) error { _, err := f.svc.DeleteWorkflow(&glue.DeleteWorkflowInput{ Name: f.name, }) From 3e4f4ca3989c41dd41aadda8ebf4a661dc910bb5 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 20 May 2024 10:11:44 -0600 Subject: [PATCH 298/617] fix(configservice-configrules): filter out rules created by config-conforms --- resources/configservice-configrules.go | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/resources/configservice-configrules.go b/resources/configservice-configrules.go index 0efe6692..88164a76 100644 --- a/resources/configservice-configrules.go +++ b/resources/configservice-configrules.go @@ -2,7 +2,6 @@ package resources import ( "context" - "fmt" "github.com/aws/aws-sdk-go/aws" @@ -10,6 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/pkg/nuke" ) @@ -69,6 +69,10 @@ func (f *ConfigServiceConfigRule) Filter() error { return fmt.Errorf("cannot remove rule owned by securityhub.amazonaws.com") } + if aws.StringValue(f.createdBy) == "config-conforms.amazonaws.com" { + return fmt.Errorf("cannot remove rule owned by config-conforms.amazonaws.com") + } + return nil } @@ -83,3 +87,9 @@ func (f *ConfigServiceConfigRule) Remove(_ context.Context) error { func (f *ConfigServiceConfigRule) String() string { return *f.configRuleName } + +func (f *ConfigServiceConfigRule) Properties() types.Properties { + props := types.NewProperties() + props.Set("CreatedBy", f.createdBy) + return props +} From 6953a970a10f66773fae7c8e6f8d92bc0bc905d5 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 21 May 2024 09:24:31 -0600 Subject: [PATCH 299/617] feat: support config conformance pack removal --- resources/cloudformation-stack.go | 8 ++ resources/configservice-conformance-pack.go | 82 +++++++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 resources/configservice-conformance-pack.go diff --git a/resources/cloudformation-stack.go b/resources/cloudformation-stack.go index 260b6cd7..9ada8966 100644 --- a/resources/cloudformation-stack.go +++ b/resources/cloudformation-stack.go @@ -3,6 +3,7 @@ package resources import ( "context" "errors" + "fmt" "strings" "time" @@ -74,6 +75,13 @@ type CloudFormationStack struct { settings *settings.Setting } +func (cfs *CloudFormationStack) Filter() error { + if *cfs.stack.Description == "DO NOT MODIFY THIS STACK! This stack is managed by Config Conformance Packs." { + return fmt.Errorf("stack is managed by Config Conformance Packs") + } + return nil +} + func (cfs *CloudFormationStack) Settings(setting *settings.Setting) { cfs.settings = setting } diff --git a/resources/configservice-conformance-pack.go b/resources/configservice-conformance-pack.go new file mode 100644 index 00000000..74a9bf52 --- /dev/null +++ b/resources/configservice-conformance-pack.go @@ -0,0 +1,82 @@ +package resources + +import ( + "context" + + "github.com/aws/aws-sdk-go/service/configservice" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" +) + +const ConfigServiceConformancePackResource = "ConfigServiceConformancePack" + +func init() { + registry.Register(®istry.Registration{ + Name: ConfigServiceConformancePackResource, + Scope: nuke.Account, + Lister: &ConfigServiceConformancePackLister{}, + }) +} + +type ConfigServiceConformancePackLister struct{} + +func (l *ConfigServiceConformancePackLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := configservice.New(opts.Session) + var resources []resource.Resource + + var nextToken *string + + for { + res, err := svc.DescribeConformancePacks(&configservice.DescribeConformancePacksInput{ + NextToken: nextToken, + }) + if err != nil { + return nil, err + } + + for _, p := range res.ConformancePackDetails { + resources = append(resources, &ConfigServiceConformancePack{ + svc: svc, + id: p.ConformancePackId, + name: p.ConformancePackName, + }) + } + + if res.NextToken == nil { + break + } + + nextToken = res.NextToken + } + + return resources, nil +} + +type ConfigServiceConformancePack struct { + svc *configservice.ConfigService + id *string + name *string +} + +func (r *ConfigServiceConformancePack) Remove(_ context.Context) error { + _, err := r.svc.DeleteConformancePack(&configservice.DeleteConformancePackInput{ + ConformancePackName: r.name, + }) + return err +} + +func (r *ConfigServiceConformancePack) Properties() types.Properties { + props := types.NewProperties() + props.Set("ID", r.id) + props.Set("Name", r.name) + return props +} + +func (r *ConfigServiceConformancePack) String() string { + return *r.id +} From d38db80848e9356ff218a71510b81932b300df68 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 21 May 2024 11:39:54 -0600 Subject: [PATCH 300/617] feat: adding codebuild reports and reportgroups --- resources/codebuild-report.go | 72 +++++++++++++++++++++++++++ resources/codebuild-reportgroup.go | 78 ++++++++++++++++++++++++++++++ 2 files changed, 150 insertions(+) create mode 100644 resources/codebuild-report.go create mode 100644 resources/codebuild-reportgroup.go diff --git a/resources/codebuild-report.go b/resources/codebuild-report.go new file mode 100644 index 00000000..950eb435 --- /dev/null +++ b/resources/codebuild-report.go @@ -0,0 +1,72 @@ +package resources + +import ( + "context" + "strings" + + "github.com/aws/aws-sdk-go/service/codebuild" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" +) + +const CodeBuildReportResource = "CodeBuildReport" + +func init() { + registry.Register(®istry.Registration{ + Name: CodeBuildReportResource, + Scope: nuke.Account, + Lister: &CodeBuildReportLister{}, + }) +} + +type CodeBuildReportLister struct{} + +func (l *CodeBuildReportLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := codebuild.New(opts.Session) + var resources []resource.Resource + + res, err := svc.ListReports(&codebuild.ListReportsInput{}) + if err != nil { + return nil, err + } + + for _, arn := range res.Reports { + resources = append(resources, &CodeBuildReport{ + svc: svc, + arn: arn, + }) + } + + return resources, nil +} + +type CodeBuildReport struct { + svc *codebuild.CodeBuild + arn *string +} + +func (r *CodeBuildReport) Name() string { + return strings.Split(*r.arn, "report/")[1] +} + +func (r *CodeBuildReport) Remove(_ context.Context) error { + _, err := r.svc.DeleteReport(&codebuild.DeleteReportInput{ + Arn: r.arn, + }) + return err +} + +func (r *CodeBuildReport) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("Name", r.Name()) + return properties +} + +func (r *CodeBuildReport) String() string { + return r.Name() +} diff --git a/resources/codebuild-reportgroup.go b/resources/codebuild-reportgroup.go new file mode 100644 index 00000000..6bd8834a --- /dev/null +++ b/resources/codebuild-reportgroup.go @@ -0,0 +1,78 @@ +package resources + +import ( + "context" + "strings" + + "github.com/gotidy/ptr" + + "github.com/aws/aws-sdk-go/service/codebuild" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" +) + +const CodeBuildReportGroupResource = "CodeBuildReportGroup" + +func init() { + registry.Register(®istry.Registration{ + Name: CodeBuildReportGroupResource, + Scope: nuke.Account, + Lister: &CodebuildReportGroupLister{}, + DependsOn: []string{ + CodeBuildReportResource, + }, + }) +} + +type CodebuildReportGroupLister struct{} + +func (l *CodebuildReportGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := codebuild.New(opts.Session) + var resources []resource.Resource + + res, err := svc.ListReportGroups(&codebuild.ListReportGroupsInput{}) + if err != nil { + return nil, err + } + + for _, arn := range res.ReportGroups { + resources = append(resources, &CodebuildReportGroup{ + svc: svc, + arn: arn, + }) + } + + return resources, nil +} + +type CodebuildReportGroup struct { + svc *codebuild.CodeBuild + arn *string +} + +func (r *CodebuildReportGroup) Name() string { + return strings.Split(*r.arn, "report-group/")[1] +} + +func (r *CodebuildReportGroup) Remove(_ context.Context) error { + _, err := r.svc.DeleteReportGroup(&codebuild.DeleteReportGroupInput{ + Arn: r.arn, + DeleteReports: ptr.Bool(true), + }) + return err +} + +func (r *CodebuildReportGroup) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("Name", r.Name()) + return properties +} + +func (r *CodebuildReportGroup) String() string { + return r.Name() +} From 7c4506123c40c3a409c98363030fd64e0e7e54c3 Mon Sep 17 00:00:00 2001 From: Daniel Bojczuk Date: Wed, 29 May 2024 11:26:09 +0200 Subject: [PATCH 301/617] docs: replacing service by in the example --- docs/testing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/testing.md b/docs/testing.md index 6a30e5f0..81e8871e 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -31,7 +31,7 @@ Currently, there are only two services mocked out for testing, IAM and CloudForm To add another service to be mocked out, you will need to do the following: 1. Identify the service in the AWS SDK for Go -2. Create a new file in the `resources/` directory called `service_mock_test.go` +2. Create a new file in the `resources/` directory called `_mock_test.go` 3. Add the following code to the file: (replace `` with actual service name) ```go //go:generate ../mocks/generate_mocks.sh iface From 223899adf7f5cf0073e65650bbbf66c5d1cd33f0 Mon Sep 17 00:00:00 2001 From: Daniel Bojczuk Date: Wed, 29 May 2024 15:18:07 +0200 Subject: [PATCH 302/617] feat: adding quicksight subscription resource --- mocks/mock_quicksightiface/mock.go | 9726 +++++++++++++++++ mocks/mock_stsiface/mock.go | 437 + resources/quicksight-subscriptions.go | 157 + .../quicksight-subscriptions_mock_test.go | 314 + 4 files changed, 10634 insertions(+) create mode 100644 mocks/mock_quicksightiface/mock.go create mode 100644 mocks/mock_stsiface/mock.go create mode 100644 resources/quicksight-subscriptions.go create mode 100644 resources/quicksight-subscriptions_mock_test.go diff --git a/mocks/mock_quicksightiface/mock.go b/mocks/mock_quicksightiface/mock.go new file mode 100644 index 00000000..bcee5930 --- /dev/null +++ b/mocks/mock_quicksightiface/mock.go @@ -0,0 +1,9726 @@ +// Code generated by MockGen. DO NOT EDIT. +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.52.4/service/quicksight/quicksightiface/interface.go + +// Package mock_quicksightiface is a generated GoMock package. +package mock_quicksightiface + +import ( + reflect "reflect" + + aws "github.com/aws/aws-sdk-go/aws" + request "github.com/aws/aws-sdk-go/aws/request" + quicksight "github.com/aws/aws-sdk-go/service/quicksight" + gomock "github.com/golang/mock/gomock" +) + +// MockQuickSightAPI is a mock of QuickSightAPI interface. +type MockQuickSightAPI struct { + ctrl *gomock.Controller + recorder *MockQuickSightAPIMockRecorder +} + +// MockQuickSightAPIMockRecorder is the mock recorder for MockQuickSightAPI. +type MockQuickSightAPIMockRecorder struct { + mock *MockQuickSightAPI +} + +// NewMockQuickSightAPI creates a new mock instance. +func NewMockQuickSightAPI(ctrl *gomock.Controller) *MockQuickSightAPI { + mock := &MockQuickSightAPI{ctrl: ctrl} + mock.recorder = &MockQuickSightAPIMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockQuickSightAPI) EXPECT() *MockQuickSightAPIMockRecorder { + return m.recorder +} + +// CancelIngestion mocks base method. +func (m *MockQuickSightAPI) CancelIngestion(arg0 *quicksight.CancelIngestionInput) (*quicksight.CancelIngestionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CancelIngestion", arg0) + ret0, _ := ret[0].(*quicksight.CancelIngestionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CancelIngestion indicates an expected call of CancelIngestion. +func (mr *MockQuickSightAPIMockRecorder) CancelIngestion(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelIngestion", reflect.TypeOf((*MockQuickSightAPI)(nil).CancelIngestion), arg0) +} + +// CancelIngestionRequest mocks base method. +func (m *MockQuickSightAPI) CancelIngestionRequest(arg0 *quicksight.CancelIngestionInput) (*request.Request, *quicksight.CancelIngestionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CancelIngestionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.CancelIngestionOutput) + return ret0, ret1 +} + +// CancelIngestionRequest indicates an expected call of CancelIngestionRequest. +func (mr *MockQuickSightAPIMockRecorder) CancelIngestionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelIngestionRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).CancelIngestionRequest), arg0) +} + +// CancelIngestionWithContext mocks base method. +func (m *MockQuickSightAPI) CancelIngestionWithContext(arg0 aws.Context, arg1 *quicksight.CancelIngestionInput, arg2 ...request.Option) (*quicksight.CancelIngestionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CancelIngestionWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.CancelIngestionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CancelIngestionWithContext indicates an expected call of CancelIngestionWithContext. +func (mr *MockQuickSightAPIMockRecorder) CancelIngestionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelIngestionWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).CancelIngestionWithContext), varargs...) +} + +// CreateAccountCustomization mocks base method. +func (m *MockQuickSightAPI) CreateAccountCustomization(arg0 *quicksight.CreateAccountCustomizationInput) (*quicksight.CreateAccountCustomizationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateAccountCustomization", arg0) + ret0, _ := ret[0].(*quicksight.CreateAccountCustomizationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateAccountCustomization indicates an expected call of CreateAccountCustomization. +func (mr *MockQuickSightAPIMockRecorder) CreateAccountCustomization(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAccountCustomization", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateAccountCustomization), arg0) +} + +// CreateAccountCustomizationRequest mocks base method. +func (m *MockQuickSightAPI) CreateAccountCustomizationRequest(arg0 *quicksight.CreateAccountCustomizationInput) (*request.Request, *quicksight.CreateAccountCustomizationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateAccountCustomizationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.CreateAccountCustomizationOutput) + return ret0, ret1 +} + +// CreateAccountCustomizationRequest indicates an expected call of CreateAccountCustomizationRequest. +func (mr *MockQuickSightAPIMockRecorder) CreateAccountCustomizationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAccountCustomizationRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateAccountCustomizationRequest), arg0) +} + +// CreateAccountCustomizationWithContext mocks base method. +func (m *MockQuickSightAPI) CreateAccountCustomizationWithContext(arg0 aws.Context, arg1 *quicksight.CreateAccountCustomizationInput, arg2 ...request.Option) (*quicksight.CreateAccountCustomizationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateAccountCustomizationWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.CreateAccountCustomizationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateAccountCustomizationWithContext indicates an expected call of CreateAccountCustomizationWithContext. +func (mr *MockQuickSightAPIMockRecorder) CreateAccountCustomizationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAccountCustomizationWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateAccountCustomizationWithContext), varargs...) +} + +// CreateAccountSubscription mocks base method. +func (m *MockQuickSightAPI) CreateAccountSubscription(arg0 *quicksight.CreateAccountSubscriptionInput) (*quicksight.CreateAccountSubscriptionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateAccountSubscription", arg0) + ret0, _ := ret[0].(*quicksight.CreateAccountSubscriptionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateAccountSubscription indicates an expected call of CreateAccountSubscription. +func (mr *MockQuickSightAPIMockRecorder) CreateAccountSubscription(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAccountSubscription", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateAccountSubscription), arg0) +} + +// CreateAccountSubscriptionRequest mocks base method. +func (m *MockQuickSightAPI) CreateAccountSubscriptionRequest(arg0 *quicksight.CreateAccountSubscriptionInput) (*request.Request, *quicksight.CreateAccountSubscriptionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateAccountSubscriptionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.CreateAccountSubscriptionOutput) + return ret0, ret1 +} + +// CreateAccountSubscriptionRequest indicates an expected call of CreateAccountSubscriptionRequest. +func (mr *MockQuickSightAPIMockRecorder) CreateAccountSubscriptionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAccountSubscriptionRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateAccountSubscriptionRequest), arg0) +} + +// CreateAccountSubscriptionWithContext mocks base method. +func (m *MockQuickSightAPI) CreateAccountSubscriptionWithContext(arg0 aws.Context, arg1 *quicksight.CreateAccountSubscriptionInput, arg2 ...request.Option) (*quicksight.CreateAccountSubscriptionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateAccountSubscriptionWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.CreateAccountSubscriptionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateAccountSubscriptionWithContext indicates an expected call of CreateAccountSubscriptionWithContext. +func (mr *MockQuickSightAPIMockRecorder) CreateAccountSubscriptionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAccountSubscriptionWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateAccountSubscriptionWithContext), varargs...) +} + +// CreateAnalysis mocks base method. +func (m *MockQuickSightAPI) CreateAnalysis(arg0 *quicksight.CreateAnalysisInput) (*quicksight.CreateAnalysisOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateAnalysis", arg0) + ret0, _ := ret[0].(*quicksight.CreateAnalysisOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateAnalysis indicates an expected call of CreateAnalysis. +func (mr *MockQuickSightAPIMockRecorder) CreateAnalysis(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAnalysis", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateAnalysis), arg0) +} + +// CreateAnalysisRequest mocks base method. +func (m *MockQuickSightAPI) CreateAnalysisRequest(arg0 *quicksight.CreateAnalysisInput) (*request.Request, *quicksight.CreateAnalysisOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateAnalysisRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.CreateAnalysisOutput) + return ret0, ret1 +} + +// CreateAnalysisRequest indicates an expected call of CreateAnalysisRequest. +func (mr *MockQuickSightAPIMockRecorder) CreateAnalysisRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAnalysisRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateAnalysisRequest), arg0) +} + +// CreateAnalysisWithContext mocks base method. +func (m *MockQuickSightAPI) CreateAnalysisWithContext(arg0 aws.Context, arg1 *quicksight.CreateAnalysisInput, arg2 ...request.Option) (*quicksight.CreateAnalysisOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateAnalysisWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.CreateAnalysisOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateAnalysisWithContext indicates an expected call of CreateAnalysisWithContext. +func (mr *MockQuickSightAPIMockRecorder) CreateAnalysisWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAnalysisWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateAnalysisWithContext), varargs...) +} + +// CreateDashboard mocks base method. +func (m *MockQuickSightAPI) CreateDashboard(arg0 *quicksight.CreateDashboardInput) (*quicksight.CreateDashboardOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateDashboard", arg0) + ret0, _ := ret[0].(*quicksight.CreateDashboardOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateDashboard indicates an expected call of CreateDashboard. +func (mr *MockQuickSightAPIMockRecorder) CreateDashboard(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateDashboard", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateDashboard), arg0) +} + +// CreateDashboardRequest mocks base method. +func (m *MockQuickSightAPI) CreateDashboardRequest(arg0 *quicksight.CreateDashboardInput) (*request.Request, *quicksight.CreateDashboardOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateDashboardRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.CreateDashboardOutput) + return ret0, ret1 +} + +// CreateDashboardRequest indicates an expected call of CreateDashboardRequest. +func (mr *MockQuickSightAPIMockRecorder) CreateDashboardRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateDashboardRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateDashboardRequest), arg0) +} + +// CreateDashboardWithContext mocks base method. +func (m *MockQuickSightAPI) CreateDashboardWithContext(arg0 aws.Context, arg1 *quicksight.CreateDashboardInput, arg2 ...request.Option) (*quicksight.CreateDashboardOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateDashboardWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.CreateDashboardOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateDashboardWithContext indicates an expected call of CreateDashboardWithContext. +func (mr *MockQuickSightAPIMockRecorder) CreateDashboardWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateDashboardWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateDashboardWithContext), varargs...) +} + +// CreateDataSet mocks base method. +func (m *MockQuickSightAPI) CreateDataSet(arg0 *quicksight.CreateDataSetInput) (*quicksight.CreateDataSetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateDataSet", arg0) + ret0, _ := ret[0].(*quicksight.CreateDataSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateDataSet indicates an expected call of CreateDataSet. +func (mr *MockQuickSightAPIMockRecorder) CreateDataSet(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateDataSet", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateDataSet), arg0) +} + +// CreateDataSetRequest mocks base method. +func (m *MockQuickSightAPI) CreateDataSetRequest(arg0 *quicksight.CreateDataSetInput) (*request.Request, *quicksight.CreateDataSetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateDataSetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.CreateDataSetOutput) + return ret0, ret1 +} + +// CreateDataSetRequest indicates an expected call of CreateDataSetRequest. +func (mr *MockQuickSightAPIMockRecorder) CreateDataSetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateDataSetRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateDataSetRequest), arg0) +} + +// CreateDataSetWithContext mocks base method. +func (m *MockQuickSightAPI) CreateDataSetWithContext(arg0 aws.Context, arg1 *quicksight.CreateDataSetInput, arg2 ...request.Option) (*quicksight.CreateDataSetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateDataSetWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.CreateDataSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateDataSetWithContext indicates an expected call of CreateDataSetWithContext. +func (mr *MockQuickSightAPIMockRecorder) CreateDataSetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateDataSetWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateDataSetWithContext), varargs...) +} + +// CreateDataSource mocks base method. +func (m *MockQuickSightAPI) CreateDataSource(arg0 *quicksight.CreateDataSourceInput) (*quicksight.CreateDataSourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateDataSource", arg0) + ret0, _ := ret[0].(*quicksight.CreateDataSourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateDataSource indicates an expected call of CreateDataSource. +func (mr *MockQuickSightAPIMockRecorder) CreateDataSource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateDataSource", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateDataSource), arg0) +} + +// CreateDataSourceRequest mocks base method. +func (m *MockQuickSightAPI) CreateDataSourceRequest(arg0 *quicksight.CreateDataSourceInput) (*request.Request, *quicksight.CreateDataSourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateDataSourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.CreateDataSourceOutput) + return ret0, ret1 +} + +// CreateDataSourceRequest indicates an expected call of CreateDataSourceRequest. +func (mr *MockQuickSightAPIMockRecorder) CreateDataSourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateDataSourceRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateDataSourceRequest), arg0) +} + +// CreateDataSourceWithContext mocks base method. +func (m *MockQuickSightAPI) CreateDataSourceWithContext(arg0 aws.Context, arg1 *quicksight.CreateDataSourceInput, arg2 ...request.Option) (*quicksight.CreateDataSourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateDataSourceWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.CreateDataSourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateDataSourceWithContext indicates an expected call of CreateDataSourceWithContext. +func (mr *MockQuickSightAPIMockRecorder) CreateDataSourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateDataSourceWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateDataSourceWithContext), varargs...) +} + +// CreateFolder mocks base method. +func (m *MockQuickSightAPI) CreateFolder(arg0 *quicksight.CreateFolderInput) (*quicksight.CreateFolderOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateFolder", arg0) + ret0, _ := ret[0].(*quicksight.CreateFolderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateFolder indicates an expected call of CreateFolder. +func (mr *MockQuickSightAPIMockRecorder) CreateFolder(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateFolder", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateFolder), arg0) +} + +// CreateFolderMembership mocks base method. +func (m *MockQuickSightAPI) CreateFolderMembership(arg0 *quicksight.CreateFolderMembershipInput) (*quicksight.CreateFolderMembershipOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateFolderMembership", arg0) + ret0, _ := ret[0].(*quicksight.CreateFolderMembershipOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateFolderMembership indicates an expected call of CreateFolderMembership. +func (mr *MockQuickSightAPIMockRecorder) CreateFolderMembership(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateFolderMembership", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateFolderMembership), arg0) +} + +// CreateFolderMembershipRequest mocks base method. +func (m *MockQuickSightAPI) CreateFolderMembershipRequest(arg0 *quicksight.CreateFolderMembershipInput) (*request.Request, *quicksight.CreateFolderMembershipOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateFolderMembershipRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.CreateFolderMembershipOutput) + return ret0, ret1 +} + +// CreateFolderMembershipRequest indicates an expected call of CreateFolderMembershipRequest. +func (mr *MockQuickSightAPIMockRecorder) CreateFolderMembershipRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateFolderMembershipRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateFolderMembershipRequest), arg0) +} + +// CreateFolderMembershipWithContext mocks base method. +func (m *MockQuickSightAPI) CreateFolderMembershipWithContext(arg0 aws.Context, arg1 *quicksight.CreateFolderMembershipInput, arg2 ...request.Option) (*quicksight.CreateFolderMembershipOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateFolderMembershipWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.CreateFolderMembershipOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateFolderMembershipWithContext indicates an expected call of CreateFolderMembershipWithContext. +func (mr *MockQuickSightAPIMockRecorder) CreateFolderMembershipWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateFolderMembershipWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateFolderMembershipWithContext), varargs...) +} + +// CreateFolderRequest mocks base method. +func (m *MockQuickSightAPI) CreateFolderRequest(arg0 *quicksight.CreateFolderInput) (*request.Request, *quicksight.CreateFolderOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateFolderRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.CreateFolderOutput) + return ret0, ret1 +} + +// CreateFolderRequest indicates an expected call of CreateFolderRequest. +func (mr *MockQuickSightAPIMockRecorder) CreateFolderRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateFolderRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateFolderRequest), arg0) +} + +// CreateFolderWithContext mocks base method. +func (m *MockQuickSightAPI) CreateFolderWithContext(arg0 aws.Context, arg1 *quicksight.CreateFolderInput, arg2 ...request.Option) (*quicksight.CreateFolderOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateFolderWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.CreateFolderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateFolderWithContext indicates an expected call of CreateFolderWithContext. +func (mr *MockQuickSightAPIMockRecorder) CreateFolderWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateFolderWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateFolderWithContext), varargs...) +} + +// CreateGroup mocks base method. +func (m *MockQuickSightAPI) CreateGroup(arg0 *quicksight.CreateGroupInput) (*quicksight.CreateGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateGroup", arg0) + ret0, _ := ret[0].(*quicksight.CreateGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateGroup indicates an expected call of CreateGroup. +func (mr *MockQuickSightAPIMockRecorder) CreateGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGroup", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateGroup), arg0) +} + +// CreateGroupMembership mocks base method. +func (m *MockQuickSightAPI) CreateGroupMembership(arg0 *quicksight.CreateGroupMembershipInput) (*quicksight.CreateGroupMembershipOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateGroupMembership", arg0) + ret0, _ := ret[0].(*quicksight.CreateGroupMembershipOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateGroupMembership indicates an expected call of CreateGroupMembership. +func (mr *MockQuickSightAPIMockRecorder) CreateGroupMembership(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGroupMembership", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateGroupMembership), arg0) +} + +// CreateGroupMembershipRequest mocks base method. +func (m *MockQuickSightAPI) CreateGroupMembershipRequest(arg0 *quicksight.CreateGroupMembershipInput) (*request.Request, *quicksight.CreateGroupMembershipOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateGroupMembershipRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.CreateGroupMembershipOutput) + return ret0, ret1 +} + +// CreateGroupMembershipRequest indicates an expected call of CreateGroupMembershipRequest. +func (mr *MockQuickSightAPIMockRecorder) CreateGroupMembershipRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGroupMembershipRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateGroupMembershipRequest), arg0) +} + +// CreateGroupMembershipWithContext mocks base method. +func (m *MockQuickSightAPI) CreateGroupMembershipWithContext(arg0 aws.Context, arg1 *quicksight.CreateGroupMembershipInput, arg2 ...request.Option) (*quicksight.CreateGroupMembershipOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateGroupMembershipWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.CreateGroupMembershipOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateGroupMembershipWithContext indicates an expected call of CreateGroupMembershipWithContext. +func (mr *MockQuickSightAPIMockRecorder) CreateGroupMembershipWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGroupMembershipWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateGroupMembershipWithContext), varargs...) +} + +// CreateGroupRequest mocks base method. +func (m *MockQuickSightAPI) CreateGroupRequest(arg0 *quicksight.CreateGroupInput) (*request.Request, *quicksight.CreateGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.CreateGroupOutput) + return ret0, ret1 +} + +// CreateGroupRequest indicates an expected call of CreateGroupRequest. +func (mr *MockQuickSightAPIMockRecorder) CreateGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGroupRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateGroupRequest), arg0) +} + +// CreateGroupWithContext mocks base method. +func (m *MockQuickSightAPI) CreateGroupWithContext(arg0 aws.Context, arg1 *quicksight.CreateGroupInput, arg2 ...request.Option) (*quicksight.CreateGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateGroupWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.CreateGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateGroupWithContext indicates an expected call of CreateGroupWithContext. +func (mr *MockQuickSightAPIMockRecorder) CreateGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGroupWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateGroupWithContext), varargs...) +} + +// CreateIAMPolicyAssignment mocks base method. +func (m *MockQuickSightAPI) CreateIAMPolicyAssignment(arg0 *quicksight.CreateIAMPolicyAssignmentInput) (*quicksight.CreateIAMPolicyAssignmentOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateIAMPolicyAssignment", arg0) + ret0, _ := ret[0].(*quicksight.CreateIAMPolicyAssignmentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateIAMPolicyAssignment indicates an expected call of CreateIAMPolicyAssignment. +func (mr *MockQuickSightAPIMockRecorder) CreateIAMPolicyAssignment(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateIAMPolicyAssignment", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateIAMPolicyAssignment), arg0) +} + +// CreateIAMPolicyAssignmentRequest mocks base method. +func (m *MockQuickSightAPI) CreateIAMPolicyAssignmentRequest(arg0 *quicksight.CreateIAMPolicyAssignmentInput) (*request.Request, *quicksight.CreateIAMPolicyAssignmentOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateIAMPolicyAssignmentRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.CreateIAMPolicyAssignmentOutput) + return ret0, ret1 +} + +// CreateIAMPolicyAssignmentRequest indicates an expected call of CreateIAMPolicyAssignmentRequest. +func (mr *MockQuickSightAPIMockRecorder) CreateIAMPolicyAssignmentRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateIAMPolicyAssignmentRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateIAMPolicyAssignmentRequest), arg0) +} + +// CreateIAMPolicyAssignmentWithContext mocks base method. +func (m *MockQuickSightAPI) CreateIAMPolicyAssignmentWithContext(arg0 aws.Context, arg1 *quicksight.CreateIAMPolicyAssignmentInput, arg2 ...request.Option) (*quicksight.CreateIAMPolicyAssignmentOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateIAMPolicyAssignmentWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.CreateIAMPolicyAssignmentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateIAMPolicyAssignmentWithContext indicates an expected call of CreateIAMPolicyAssignmentWithContext. +func (mr *MockQuickSightAPIMockRecorder) CreateIAMPolicyAssignmentWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateIAMPolicyAssignmentWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateIAMPolicyAssignmentWithContext), varargs...) +} + +// CreateIngestion mocks base method. +func (m *MockQuickSightAPI) CreateIngestion(arg0 *quicksight.CreateIngestionInput) (*quicksight.CreateIngestionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateIngestion", arg0) + ret0, _ := ret[0].(*quicksight.CreateIngestionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateIngestion indicates an expected call of CreateIngestion. +func (mr *MockQuickSightAPIMockRecorder) CreateIngestion(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateIngestion", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateIngestion), arg0) +} + +// CreateIngestionRequest mocks base method. +func (m *MockQuickSightAPI) CreateIngestionRequest(arg0 *quicksight.CreateIngestionInput) (*request.Request, *quicksight.CreateIngestionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateIngestionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.CreateIngestionOutput) + return ret0, ret1 +} + +// CreateIngestionRequest indicates an expected call of CreateIngestionRequest. +func (mr *MockQuickSightAPIMockRecorder) CreateIngestionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateIngestionRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateIngestionRequest), arg0) +} + +// CreateIngestionWithContext mocks base method. +func (m *MockQuickSightAPI) CreateIngestionWithContext(arg0 aws.Context, arg1 *quicksight.CreateIngestionInput, arg2 ...request.Option) (*quicksight.CreateIngestionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateIngestionWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.CreateIngestionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateIngestionWithContext indicates an expected call of CreateIngestionWithContext. +func (mr *MockQuickSightAPIMockRecorder) CreateIngestionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateIngestionWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateIngestionWithContext), varargs...) +} + +// CreateNamespace mocks base method. +func (m *MockQuickSightAPI) CreateNamespace(arg0 *quicksight.CreateNamespaceInput) (*quicksight.CreateNamespaceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateNamespace", arg0) + ret0, _ := ret[0].(*quicksight.CreateNamespaceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateNamespace indicates an expected call of CreateNamespace. +func (mr *MockQuickSightAPIMockRecorder) CreateNamespace(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateNamespace", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateNamespace), arg0) +} + +// CreateNamespaceRequest mocks base method. +func (m *MockQuickSightAPI) CreateNamespaceRequest(arg0 *quicksight.CreateNamespaceInput) (*request.Request, *quicksight.CreateNamespaceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateNamespaceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.CreateNamespaceOutput) + return ret0, ret1 +} + +// CreateNamespaceRequest indicates an expected call of CreateNamespaceRequest. +func (mr *MockQuickSightAPIMockRecorder) CreateNamespaceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateNamespaceRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateNamespaceRequest), arg0) +} + +// CreateNamespaceWithContext mocks base method. +func (m *MockQuickSightAPI) CreateNamespaceWithContext(arg0 aws.Context, arg1 *quicksight.CreateNamespaceInput, arg2 ...request.Option) (*quicksight.CreateNamespaceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateNamespaceWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.CreateNamespaceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateNamespaceWithContext indicates an expected call of CreateNamespaceWithContext. +func (mr *MockQuickSightAPIMockRecorder) CreateNamespaceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateNamespaceWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateNamespaceWithContext), varargs...) +} + +// CreateRefreshSchedule mocks base method. +func (m *MockQuickSightAPI) CreateRefreshSchedule(arg0 *quicksight.CreateRefreshScheduleInput) (*quicksight.CreateRefreshScheduleOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateRefreshSchedule", arg0) + ret0, _ := ret[0].(*quicksight.CreateRefreshScheduleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateRefreshSchedule indicates an expected call of CreateRefreshSchedule. +func (mr *MockQuickSightAPIMockRecorder) CreateRefreshSchedule(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRefreshSchedule", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateRefreshSchedule), arg0) +} + +// CreateRefreshScheduleRequest mocks base method. +func (m *MockQuickSightAPI) CreateRefreshScheduleRequest(arg0 *quicksight.CreateRefreshScheduleInput) (*request.Request, *quicksight.CreateRefreshScheduleOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateRefreshScheduleRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.CreateRefreshScheduleOutput) + return ret0, ret1 +} + +// CreateRefreshScheduleRequest indicates an expected call of CreateRefreshScheduleRequest. +func (mr *MockQuickSightAPIMockRecorder) CreateRefreshScheduleRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRefreshScheduleRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateRefreshScheduleRequest), arg0) +} + +// CreateRefreshScheduleWithContext mocks base method. +func (m *MockQuickSightAPI) CreateRefreshScheduleWithContext(arg0 aws.Context, arg1 *quicksight.CreateRefreshScheduleInput, arg2 ...request.Option) (*quicksight.CreateRefreshScheduleOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateRefreshScheduleWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.CreateRefreshScheduleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateRefreshScheduleWithContext indicates an expected call of CreateRefreshScheduleWithContext. +func (mr *MockQuickSightAPIMockRecorder) CreateRefreshScheduleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRefreshScheduleWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateRefreshScheduleWithContext), varargs...) +} + +// CreateRoleMembership mocks base method. +func (m *MockQuickSightAPI) CreateRoleMembership(arg0 *quicksight.CreateRoleMembershipInput) (*quicksight.CreateRoleMembershipOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateRoleMembership", arg0) + ret0, _ := ret[0].(*quicksight.CreateRoleMembershipOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateRoleMembership indicates an expected call of CreateRoleMembership. +func (mr *MockQuickSightAPIMockRecorder) CreateRoleMembership(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRoleMembership", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateRoleMembership), arg0) +} + +// CreateRoleMembershipRequest mocks base method. +func (m *MockQuickSightAPI) CreateRoleMembershipRequest(arg0 *quicksight.CreateRoleMembershipInput) (*request.Request, *quicksight.CreateRoleMembershipOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateRoleMembershipRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.CreateRoleMembershipOutput) + return ret0, ret1 +} + +// CreateRoleMembershipRequest indicates an expected call of CreateRoleMembershipRequest. +func (mr *MockQuickSightAPIMockRecorder) CreateRoleMembershipRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRoleMembershipRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateRoleMembershipRequest), arg0) +} + +// CreateRoleMembershipWithContext mocks base method. +func (m *MockQuickSightAPI) CreateRoleMembershipWithContext(arg0 aws.Context, arg1 *quicksight.CreateRoleMembershipInput, arg2 ...request.Option) (*quicksight.CreateRoleMembershipOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateRoleMembershipWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.CreateRoleMembershipOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateRoleMembershipWithContext indicates an expected call of CreateRoleMembershipWithContext. +func (mr *MockQuickSightAPIMockRecorder) CreateRoleMembershipWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRoleMembershipWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateRoleMembershipWithContext), varargs...) +} + +// CreateTemplate mocks base method. +func (m *MockQuickSightAPI) CreateTemplate(arg0 *quicksight.CreateTemplateInput) (*quicksight.CreateTemplateOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateTemplate", arg0) + ret0, _ := ret[0].(*quicksight.CreateTemplateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateTemplate indicates an expected call of CreateTemplate. +func (mr *MockQuickSightAPIMockRecorder) CreateTemplate(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTemplate", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateTemplate), arg0) +} + +// CreateTemplateAlias mocks base method. +func (m *MockQuickSightAPI) CreateTemplateAlias(arg0 *quicksight.CreateTemplateAliasInput) (*quicksight.CreateTemplateAliasOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateTemplateAlias", arg0) + ret0, _ := ret[0].(*quicksight.CreateTemplateAliasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateTemplateAlias indicates an expected call of CreateTemplateAlias. +func (mr *MockQuickSightAPIMockRecorder) CreateTemplateAlias(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTemplateAlias", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateTemplateAlias), arg0) +} + +// CreateTemplateAliasRequest mocks base method. +func (m *MockQuickSightAPI) CreateTemplateAliasRequest(arg0 *quicksight.CreateTemplateAliasInput) (*request.Request, *quicksight.CreateTemplateAliasOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateTemplateAliasRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.CreateTemplateAliasOutput) + return ret0, ret1 +} + +// CreateTemplateAliasRequest indicates an expected call of CreateTemplateAliasRequest. +func (mr *MockQuickSightAPIMockRecorder) CreateTemplateAliasRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTemplateAliasRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateTemplateAliasRequest), arg0) +} + +// CreateTemplateAliasWithContext mocks base method. +func (m *MockQuickSightAPI) CreateTemplateAliasWithContext(arg0 aws.Context, arg1 *quicksight.CreateTemplateAliasInput, arg2 ...request.Option) (*quicksight.CreateTemplateAliasOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateTemplateAliasWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.CreateTemplateAliasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateTemplateAliasWithContext indicates an expected call of CreateTemplateAliasWithContext. +func (mr *MockQuickSightAPIMockRecorder) CreateTemplateAliasWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTemplateAliasWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateTemplateAliasWithContext), varargs...) +} + +// CreateTemplateRequest mocks base method. +func (m *MockQuickSightAPI) CreateTemplateRequest(arg0 *quicksight.CreateTemplateInput) (*request.Request, *quicksight.CreateTemplateOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateTemplateRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.CreateTemplateOutput) + return ret0, ret1 +} + +// CreateTemplateRequest indicates an expected call of CreateTemplateRequest. +func (mr *MockQuickSightAPIMockRecorder) CreateTemplateRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTemplateRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateTemplateRequest), arg0) +} + +// CreateTemplateWithContext mocks base method. +func (m *MockQuickSightAPI) CreateTemplateWithContext(arg0 aws.Context, arg1 *quicksight.CreateTemplateInput, arg2 ...request.Option) (*quicksight.CreateTemplateOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateTemplateWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.CreateTemplateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateTemplateWithContext indicates an expected call of CreateTemplateWithContext. +func (mr *MockQuickSightAPIMockRecorder) CreateTemplateWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTemplateWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateTemplateWithContext), varargs...) +} + +// CreateTheme mocks base method. +func (m *MockQuickSightAPI) CreateTheme(arg0 *quicksight.CreateThemeInput) (*quicksight.CreateThemeOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateTheme", arg0) + ret0, _ := ret[0].(*quicksight.CreateThemeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateTheme indicates an expected call of CreateTheme. +func (mr *MockQuickSightAPIMockRecorder) CreateTheme(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTheme", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateTheme), arg0) +} + +// CreateThemeAlias mocks base method. +func (m *MockQuickSightAPI) CreateThemeAlias(arg0 *quicksight.CreateThemeAliasInput) (*quicksight.CreateThemeAliasOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateThemeAlias", arg0) + ret0, _ := ret[0].(*quicksight.CreateThemeAliasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateThemeAlias indicates an expected call of CreateThemeAlias. +func (mr *MockQuickSightAPIMockRecorder) CreateThemeAlias(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateThemeAlias", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateThemeAlias), arg0) +} + +// CreateThemeAliasRequest mocks base method. +func (m *MockQuickSightAPI) CreateThemeAliasRequest(arg0 *quicksight.CreateThemeAliasInput) (*request.Request, *quicksight.CreateThemeAliasOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateThemeAliasRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.CreateThemeAliasOutput) + return ret0, ret1 +} + +// CreateThemeAliasRequest indicates an expected call of CreateThemeAliasRequest. +func (mr *MockQuickSightAPIMockRecorder) CreateThemeAliasRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateThemeAliasRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateThemeAliasRequest), arg0) +} + +// CreateThemeAliasWithContext mocks base method. +func (m *MockQuickSightAPI) CreateThemeAliasWithContext(arg0 aws.Context, arg1 *quicksight.CreateThemeAliasInput, arg2 ...request.Option) (*quicksight.CreateThemeAliasOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateThemeAliasWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.CreateThemeAliasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateThemeAliasWithContext indicates an expected call of CreateThemeAliasWithContext. +func (mr *MockQuickSightAPIMockRecorder) CreateThemeAliasWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateThemeAliasWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateThemeAliasWithContext), varargs...) +} + +// CreateThemeRequest mocks base method. +func (m *MockQuickSightAPI) CreateThemeRequest(arg0 *quicksight.CreateThemeInput) (*request.Request, *quicksight.CreateThemeOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateThemeRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.CreateThemeOutput) + return ret0, ret1 +} + +// CreateThemeRequest indicates an expected call of CreateThemeRequest. +func (mr *MockQuickSightAPIMockRecorder) CreateThemeRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateThemeRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateThemeRequest), arg0) +} + +// CreateThemeWithContext mocks base method. +func (m *MockQuickSightAPI) CreateThemeWithContext(arg0 aws.Context, arg1 *quicksight.CreateThemeInput, arg2 ...request.Option) (*quicksight.CreateThemeOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateThemeWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.CreateThemeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateThemeWithContext indicates an expected call of CreateThemeWithContext. +func (mr *MockQuickSightAPIMockRecorder) CreateThemeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateThemeWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateThemeWithContext), varargs...) +} + +// CreateTopic mocks base method. +func (m *MockQuickSightAPI) CreateTopic(arg0 *quicksight.CreateTopicInput) (*quicksight.CreateTopicOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateTopic", arg0) + ret0, _ := ret[0].(*quicksight.CreateTopicOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateTopic indicates an expected call of CreateTopic. +func (mr *MockQuickSightAPIMockRecorder) CreateTopic(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTopic", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateTopic), arg0) +} + +// CreateTopicRefreshSchedule mocks base method. +func (m *MockQuickSightAPI) CreateTopicRefreshSchedule(arg0 *quicksight.CreateTopicRefreshScheduleInput) (*quicksight.CreateTopicRefreshScheduleOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateTopicRefreshSchedule", arg0) + ret0, _ := ret[0].(*quicksight.CreateTopicRefreshScheduleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateTopicRefreshSchedule indicates an expected call of CreateTopicRefreshSchedule. +func (mr *MockQuickSightAPIMockRecorder) CreateTopicRefreshSchedule(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTopicRefreshSchedule", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateTopicRefreshSchedule), arg0) +} + +// CreateTopicRefreshScheduleRequest mocks base method. +func (m *MockQuickSightAPI) CreateTopicRefreshScheduleRequest(arg0 *quicksight.CreateTopicRefreshScheduleInput) (*request.Request, *quicksight.CreateTopicRefreshScheduleOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateTopicRefreshScheduleRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.CreateTopicRefreshScheduleOutput) + return ret0, ret1 +} + +// CreateTopicRefreshScheduleRequest indicates an expected call of CreateTopicRefreshScheduleRequest. +func (mr *MockQuickSightAPIMockRecorder) CreateTopicRefreshScheduleRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTopicRefreshScheduleRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateTopicRefreshScheduleRequest), arg0) +} + +// CreateTopicRefreshScheduleWithContext mocks base method. +func (m *MockQuickSightAPI) CreateTopicRefreshScheduleWithContext(arg0 aws.Context, arg1 *quicksight.CreateTopicRefreshScheduleInput, arg2 ...request.Option) (*quicksight.CreateTopicRefreshScheduleOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateTopicRefreshScheduleWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.CreateTopicRefreshScheduleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateTopicRefreshScheduleWithContext indicates an expected call of CreateTopicRefreshScheduleWithContext. +func (mr *MockQuickSightAPIMockRecorder) CreateTopicRefreshScheduleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTopicRefreshScheduleWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateTopicRefreshScheduleWithContext), varargs...) +} + +// CreateTopicRequest mocks base method. +func (m *MockQuickSightAPI) CreateTopicRequest(arg0 *quicksight.CreateTopicInput) (*request.Request, *quicksight.CreateTopicOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateTopicRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.CreateTopicOutput) + return ret0, ret1 +} + +// CreateTopicRequest indicates an expected call of CreateTopicRequest. +func (mr *MockQuickSightAPIMockRecorder) CreateTopicRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTopicRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateTopicRequest), arg0) +} + +// CreateTopicWithContext mocks base method. +func (m *MockQuickSightAPI) CreateTopicWithContext(arg0 aws.Context, arg1 *quicksight.CreateTopicInput, arg2 ...request.Option) (*quicksight.CreateTopicOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateTopicWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.CreateTopicOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateTopicWithContext indicates an expected call of CreateTopicWithContext. +func (mr *MockQuickSightAPIMockRecorder) CreateTopicWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTopicWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateTopicWithContext), varargs...) +} + +// CreateVPCConnection mocks base method. +func (m *MockQuickSightAPI) CreateVPCConnection(arg0 *quicksight.CreateVPCConnectionInput) (*quicksight.CreateVPCConnectionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateVPCConnection", arg0) + ret0, _ := ret[0].(*quicksight.CreateVPCConnectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateVPCConnection indicates an expected call of CreateVPCConnection. +func (mr *MockQuickSightAPIMockRecorder) CreateVPCConnection(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateVPCConnection", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateVPCConnection), arg0) +} + +// CreateVPCConnectionRequest mocks base method. +func (m *MockQuickSightAPI) CreateVPCConnectionRequest(arg0 *quicksight.CreateVPCConnectionInput) (*request.Request, *quicksight.CreateVPCConnectionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateVPCConnectionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.CreateVPCConnectionOutput) + return ret0, ret1 +} + +// CreateVPCConnectionRequest indicates an expected call of CreateVPCConnectionRequest. +func (mr *MockQuickSightAPIMockRecorder) CreateVPCConnectionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateVPCConnectionRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateVPCConnectionRequest), arg0) +} + +// CreateVPCConnectionWithContext mocks base method. +func (m *MockQuickSightAPI) CreateVPCConnectionWithContext(arg0 aws.Context, arg1 *quicksight.CreateVPCConnectionInput, arg2 ...request.Option) (*quicksight.CreateVPCConnectionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateVPCConnectionWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.CreateVPCConnectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateVPCConnectionWithContext indicates an expected call of CreateVPCConnectionWithContext. +func (mr *MockQuickSightAPIMockRecorder) CreateVPCConnectionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateVPCConnectionWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).CreateVPCConnectionWithContext), varargs...) +} + +// DeleteAccountCustomization mocks base method. +func (m *MockQuickSightAPI) DeleteAccountCustomization(arg0 *quicksight.DeleteAccountCustomizationInput) (*quicksight.DeleteAccountCustomizationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteAccountCustomization", arg0) + ret0, _ := ret[0].(*quicksight.DeleteAccountCustomizationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteAccountCustomization indicates an expected call of DeleteAccountCustomization. +func (mr *MockQuickSightAPIMockRecorder) DeleteAccountCustomization(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAccountCustomization", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteAccountCustomization), arg0) +} + +// DeleteAccountCustomizationRequest mocks base method. +func (m *MockQuickSightAPI) DeleteAccountCustomizationRequest(arg0 *quicksight.DeleteAccountCustomizationInput) (*request.Request, *quicksight.DeleteAccountCustomizationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteAccountCustomizationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DeleteAccountCustomizationOutput) + return ret0, ret1 +} + +// DeleteAccountCustomizationRequest indicates an expected call of DeleteAccountCustomizationRequest. +func (mr *MockQuickSightAPIMockRecorder) DeleteAccountCustomizationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAccountCustomizationRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteAccountCustomizationRequest), arg0) +} + +// DeleteAccountCustomizationWithContext mocks base method. +func (m *MockQuickSightAPI) DeleteAccountCustomizationWithContext(arg0 aws.Context, arg1 *quicksight.DeleteAccountCustomizationInput, arg2 ...request.Option) (*quicksight.DeleteAccountCustomizationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteAccountCustomizationWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DeleteAccountCustomizationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteAccountCustomizationWithContext indicates an expected call of DeleteAccountCustomizationWithContext. +func (mr *MockQuickSightAPIMockRecorder) DeleteAccountCustomizationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAccountCustomizationWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteAccountCustomizationWithContext), varargs...) +} + +// DeleteAccountSubscription mocks base method. +func (m *MockQuickSightAPI) DeleteAccountSubscription(arg0 *quicksight.DeleteAccountSubscriptionInput) (*quicksight.DeleteAccountSubscriptionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteAccountSubscription", arg0) + ret0, _ := ret[0].(*quicksight.DeleteAccountSubscriptionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteAccountSubscription indicates an expected call of DeleteAccountSubscription. +func (mr *MockQuickSightAPIMockRecorder) DeleteAccountSubscription(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAccountSubscription", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteAccountSubscription), arg0) +} + +// DeleteAccountSubscriptionRequest mocks base method. +func (m *MockQuickSightAPI) DeleteAccountSubscriptionRequest(arg0 *quicksight.DeleteAccountSubscriptionInput) (*request.Request, *quicksight.DeleteAccountSubscriptionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteAccountSubscriptionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DeleteAccountSubscriptionOutput) + return ret0, ret1 +} + +// DeleteAccountSubscriptionRequest indicates an expected call of DeleteAccountSubscriptionRequest. +func (mr *MockQuickSightAPIMockRecorder) DeleteAccountSubscriptionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAccountSubscriptionRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteAccountSubscriptionRequest), arg0) +} + +// DeleteAccountSubscriptionWithContext mocks base method. +func (m *MockQuickSightAPI) DeleteAccountSubscriptionWithContext(arg0 aws.Context, arg1 *quicksight.DeleteAccountSubscriptionInput, arg2 ...request.Option) (*quicksight.DeleteAccountSubscriptionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteAccountSubscriptionWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DeleteAccountSubscriptionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteAccountSubscriptionWithContext indicates an expected call of DeleteAccountSubscriptionWithContext. +func (mr *MockQuickSightAPIMockRecorder) DeleteAccountSubscriptionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAccountSubscriptionWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteAccountSubscriptionWithContext), varargs...) +} + +// DeleteAnalysis mocks base method. +func (m *MockQuickSightAPI) DeleteAnalysis(arg0 *quicksight.DeleteAnalysisInput) (*quicksight.DeleteAnalysisOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteAnalysis", arg0) + ret0, _ := ret[0].(*quicksight.DeleteAnalysisOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteAnalysis indicates an expected call of DeleteAnalysis. +func (mr *MockQuickSightAPIMockRecorder) DeleteAnalysis(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAnalysis", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteAnalysis), arg0) +} + +// DeleteAnalysisRequest mocks base method. +func (m *MockQuickSightAPI) DeleteAnalysisRequest(arg0 *quicksight.DeleteAnalysisInput) (*request.Request, *quicksight.DeleteAnalysisOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteAnalysisRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DeleteAnalysisOutput) + return ret0, ret1 +} + +// DeleteAnalysisRequest indicates an expected call of DeleteAnalysisRequest. +func (mr *MockQuickSightAPIMockRecorder) DeleteAnalysisRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAnalysisRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteAnalysisRequest), arg0) +} + +// DeleteAnalysisWithContext mocks base method. +func (m *MockQuickSightAPI) DeleteAnalysisWithContext(arg0 aws.Context, arg1 *quicksight.DeleteAnalysisInput, arg2 ...request.Option) (*quicksight.DeleteAnalysisOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteAnalysisWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DeleteAnalysisOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteAnalysisWithContext indicates an expected call of DeleteAnalysisWithContext. +func (mr *MockQuickSightAPIMockRecorder) DeleteAnalysisWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAnalysisWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteAnalysisWithContext), varargs...) +} + +// DeleteDashboard mocks base method. +func (m *MockQuickSightAPI) DeleteDashboard(arg0 *quicksight.DeleteDashboardInput) (*quicksight.DeleteDashboardOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteDashboard", arg0) + ret0, _ := ret[0].(*quicksight.DeleteDashboardOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteDashboard indicates an expected call of DeleteDashboard. +func (mr *MockQuickSightAPIMockRecorder) DeleteDashboard(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDashboard", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteDashboard), arg0) +} + +// DeleteDashboardRequest mocks base method. +func (m *MockQuickSightAPI) DeleteDashboardRequest(arg0 *quicksight.DeleteDashboardInput) (*request.Request, *quicksight.DeleteDashboardOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteDashboardRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DeleteDashboardOutput) + return ret0, ret1 +} + +// DeleteDashboardRequest indicates an expected call of DeleteDashboardRequest. +func (mr *MockQuickSightAPIMockRecorder) DeleteDashboardRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDashboardRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteDashboardRequest), arg0) +} + +// DeleteDashboardWithContext mocks base method. +func (m *MockQuickSightAPI) DeleteDashboardWithContext(arg0 aws.Context, arg1 *quicksight.DeleteDashboardInput, arg2 ...request.Option) (*quicksight.DeleteDashboardOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteDashboardWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DeleteDashboardOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteDashboardWithContext indicates an expected call of DeleteDashboardWithContext. +func (mr *MockQuickSightAPIMockRecorder) DeleteDashboardWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDashboardWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteDashboardWithContext), varargs...) +} + +// DeleteDataSet mocks base method. +func (m *MockQuickSightAPI) DeleteDataSet(arg0 *quicksight.DeleteDataSetInput) (*quicksight.DeleteDataSetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteDataSet", arg0) + ret0, _ := ret[0].(*quicksight.DeleteDataSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteDataSet indicates an expected call of DeleteDataSet. +func (mr *MockQuickSightAPIMockRecorder) DeleteDataSet(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDataSet", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteDataSet), arg0) +} + +// DeleteDataSetRefreshProperties mocks base method. +func (m *MockQuickSightAPI) DeleteDataSetRefreshProperties(arg0 *quicksight.DeleteDataSetRefreshPropertiesInput) (*quicksight.DeleteDataSetRefreshPropertiesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteDataSetRefreshProperties", arg0) + ret0, _ := ret[0].(*quicksight.DeleteDataSetRefreshPropertiesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteDataSetRefreshProperties indicates an expected call of DeleteDataSetRefreshProperties. +func (mr *MockQuickSightAPIMockRecorder) DeleteDataSetRefreshProperties(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDataSetRefreshProperties", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteDataSetRefreshProperties), arg0) +} + +// DeleteDataSetRefreshPropertiesRequest mocks base method. +func (m *MockQuickSightAPI) DeleteDataSetRefreshPropertiesRequest(arg0 *quicksight.DeleteDataSetRefreshPropertiesInput) (*request.Request, *quicksight.DeleteDataSetRefreshPropertiesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteDataSetRefreshPropertiesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DeleteDataSetRefreshPropertiesOutput) + return ret0, ret1 +} + +// DeleteDataSetRefreshPropertiesRequest indicates an expected call of DeleteDataSetRefreshPropertiesRequest. +func (mr *MockQuickSightAPIMockRecorder) DeleteDataSetRefreshPropertiesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDataSetRefreshPropertiesRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteDataSetRefreshPropertiesRequest), arg0) +} + +// DeleteDataSetRefreshPropertiesWithContext mocks base method. +func (m *MockQuickSightAPI) DeleteDataSetRefreshPropertiesWithContext(arg0 aws.Context, arg1 *quicksight.DeleteDataSetRefreshPropertiesInput, arg2 ...request.Option) (*quicksight.DeleteDataSetRefreshPropertiesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteDataSetRefreshPropertiesWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DeleteDataSetRefreshPropertiesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteDataSetRefreshPropertiesWithContext indicates an expected call of DeleteDataSetRefreshPropertiesWithContext. +func (mr *MockQuickSightAPIMockRecorder) DeleteDataSetRefreshPropertiesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDataSetRefreshPropertiesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteDataSetRefreshPropertiesWithContext), varargs...) +} + +// DeleteDataSetRequest mocks base method. +func (m *MockQuickSightAPI) DeleteDataSetRequest(arg0 *quicksight.DeleteDataSetInput) (*request.Request, *quicksight.DeleteDataSetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteDataSetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DeleteDataSetOutput) + return ret0, ret1 +} + +// DeleteDataSetRequest indicates an expected call of DeleteDataSetRequest. +func (mr *MockQuickSightAPIMockRecorder) DeleteDataSetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDataSetRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteDataSetRequest), arg0) +} + +// DeleteDataSetWithContext mocks base method. +func (m *MockQuickSightAPI) DeleteDataSetWithContext(arg0 aws.Context, arg1 *quicksight.DeleteDataSetInput, arg2 ...request.Option) (*quicksight.DeleteDataSetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteDataSetWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DeleteDataSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteDataSetWithContext indicates an expected call of DeleteDataSetWithContext. +func (mr *MockQuickSightAPIMockRecorder) DeleteDataSetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDataSetWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteDataSetWithContext), varargs...) +} + +// DeleteDataSource mocks base method. +func (m *MockQuickSightAPI) DeleteDataSource(arg0 *quicksight.DeleteDataSourceInput) (*quicksight.DeleteDataSourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteDataSource", arg0) + ret0, _ := ret[0].(*quicksight.DeleteDataSourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteDataSource indicates an expected call of DeleteDataSource. +func (mr *MockQuickSightAPIMockRecorder) DeleteDataSource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDataSource", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteDataSource), arg0) +} + +// DeleteDataSourceRequest mocks base method. +func (m *MockQuickSightAPI) DeleteDataSourceRequest(arg0 *quicksight.DeleteDataSourceInput) (*request.Request, *quicksight.DeleteDataSourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteDataSourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DeleteDataSourceOutput) + return ret0, ret1 +} + +// DeleteDataSourceRequest indicates an expected call of DeleteDataSourceRequest. +func (mr *MockQuickSightAPIMockRecorder) DeleteDataSourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDataSourceRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteDataSourceRequest), arg0) +} + +// DeleteDataSourceWithContext mocks base method. +func (m *MockQuickSightAPI) DeleteDataSourceWithContext(arg0 aws.Context, arg1 *quicksight.DeleteDataSourceInput, arg2 ...request.Option) (*quicksight.DeleteDataSourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteDataSourceWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DeleteDataSourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteDataSourceWithContext indicates an expected call of DeleteDataSourceWithContext. +func (mr *MockQuickSightAPIMockRecorder) DeleteDataSourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDataSourceWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteDataSourceWithContext), varargs...) +} + +// DeleteFolder mocks base method. +func (m *MockQuickSightAPI) DeleteFolder(arg0 *quicksight.DeleteFolderInput) (*quicksight.DeleteFolderOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteFolder", arg0) + ret0, _ := ret[0].(*quicksight.DeleteFolderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteFolder indicates an expected call of DeleteFolder. +func (mr *MockQuickSightAPIMockRecorder) DeleteFolder(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteFolder", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteFolder), arg0) +} + +// DeleteFolderMembership mocks base method. +func (m *MockQuickSightAPI) DeleteFolderMembership(arg0 *quicksight.DeleteFolderMembershipInput) (*quicksight.DeleteFolderMembershipOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteFolderMembership", arg0) + ret0, _ := ret[0].(*quicksight.DeleteFolderMembershipOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteFolderMembership indicates an expected call of DeleteFolderMembership. +func (mr *MockQuickSightAPIMockRecorder) DeleteFolderMembership(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteFolderMembership", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteFolderMembership), arg0) +} + +// DeleteFolderMembershipRequest mocks base method. +func (m *MockQuickSightAPI) DeleteFolderMembershipRequest(arg0 *quicksight.DeleteFolderMembershipInput) (*request.Request, *quicksight.DeleteFolderMembershipOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteFolderMembershipRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DeleteFolderMembershipOutput) + return ret0, ret1 +} + +// DeleteFolderMembershipRequest indicates an expected call of DeleteFolderMembershipRequest. +func (mr *MockQuickSightAPIMockRecorder) DeleteFolderMembershipRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteFolderMembershipRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteFolderMembershipRequest), arg0) +} + +// DeleteFolderMembershipWithContext mocks base method. +func (m *MockQuickSightAPI) DeleteFolderMembershipWithContext(arg0 aws.Context, arg1 *quicksight.DeleteFolderMembershipInput, arg2 ...request.Option) (*quicksight.DeleteFolderMembershipOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteFolderMembershipWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DeleteFolderMembershipOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteFolderMembershipWithContext indicates an expected call of DeleteFolderMembershipWithContext. +func (mr *MockQuickSightAPIMockRecorder) DeleteFolderMembershipWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteFolderMembershipWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteFolderMembershipWithContext), varargs...) +} + +// DeleteFolderRequest mocks base method. +func (m *MockQuickSightAPI) DeleteFolderRequest(arg0 *quicksight.DeleteFolderInput) (*request.Request, *quicksight.DeleteFolderOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteFolderRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DeleteFolderOutput) + return ret0, ret1 +} + +// DeleteFolderRequest indicates an expected call of DeleteFolderRequest. +func (mr *MockQuickSightAPIMockRecorder) DeleteFolderRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteFolderRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteFolderRequest), arg0) +} + +// DeleteFolderWithContext mocks base method. +func (m *MockQuickSightAPI) DeleteFolderWithContext(arg0 aws.Context, arg1 *quicksight.DeleteFolderInput, arg2 ...request.Option) (*quicksight.DeleteFolderOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteFolderWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DeleteFolderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteFolderWithContext indicates an expected call of DeleteFolderWithContext. +func (mr *MockQuickSightAPIMockRecorder) DeleteFolderWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteFolderWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteFolderWithContext), varargs...) +} + +// DeleteGroup mocks base method. +func (m *MockQuickSightAPI) DeleteGroup(arg0 *quicksight.DeleteGroupInput) (*quicksight.DeleteGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteGroup", arg0) + ret0, _ := ret[0].(*quicksight.DeleteGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteGroup indicates an expected call of DeleteGroup. +func (mr *MockQuickSightAPIMockRecorder) DeleteGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGroup", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteGroup), arg0) +} + +// DeleteGroupMembership mocks base method. +func (m *MockQuickSightAPI) DeleteGroupMembership(arg0 *quicksight.DeleteGroupMembershipInput) (*quicksight.DeleteGroupMembershipOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteGroupMembership", arg0) + ret0, _ := ret[0].(*quicksight.DeleteGroupMembershipOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteGroupMembership indicates an expected call of DeleteGroupMembership. +func (mr *MockQuickSightAPIMockRecorder) DeleteGroupMembership(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGroupMembership", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteGroupMembership), arg0) +} + +// DeleteGroupMembershipRequest mocks base method. +func (m *MockQuickSightAPI) DeleteGroupMembershipRequest(arg0 *quicksight.DeleteGroupMembershipInput) (*request.Request, *quicksight.DeleteGroupMembershipOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteGroupMembershipRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DeleteGroupMembershipOutput) + return ret0, ret1 +} + +// DeleteGroupMembershipRequest indicates an expected call of DeleteGroupMembershipRequest. +func (mr *MockQuickSightAPIMockRecorder) DeleteGroupMembershipRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGroupMembershipRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteGroupMembershipRequest), arg0) +} + +// DeleteGroupMembershipWithContext mocks base method. +func (m *MockQuickSightAPI) DeleteGroupMembershipWithContext(arg0 aws.Context, arg1 *quicksight.DeleteGroupMembershipInput, arg2 ...request.Option) (*quicksight.DeleteGroupMembershipOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteGroupMembershipWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DeleteGroupMembershipOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteGroupMembershipWithContext indicates an expected call of DeleteGroupMembershipWithContext. +func (mr *MockQuickSightAPIMockRecorder) DeleteGroupMembershipWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGroupMembershipWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteGroupMembershipWithContext), varargs...) +} + +// DeleteGroupRequest mocks base method. +func (m *MockQuickSightAPI) DeleteGroupRequest(arg0 *quicksight.DeleteGroupInput) (*request.Request, *quicksight.DeleteGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DeleteGroupOutput) + return ret0, ret1 +} + +// DeleteGroupRequest indicates an expected call of DeleteGroupRequest. +func (mr *MockQuickSightAPIMockRecorder) DeleteGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGroupRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteGroupRequest), arg0) +} + +// DeleteGroupWithContext mocks base method. +func (m *MockQuickSightAPI) DeleteGroupWithContext(arg0 aws.Context, arg1 *quicksight.DeleteGroupInput, arg2 ...request.Option) (*quicksight.DeleteGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteGroupWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DeleteGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteGroupWithContext indicates an expected call of DeleteGroupWithContext. +func (mr *MockQuickSightAPIMockRecorder) DeleteGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGroupWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteGroupWithContext), varargs...) +} + +// DeleteIAMPolicyAssignment mocks base method. +func (m *MockQuickSightAPI) DeleteIAMPolicyAssignment(arg0 *quicksight.DeleteIAMPolicyAssignmentInput) (*quicksight.DeleteIAMPolicyAssignmentOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteIAMPolicyAssignment", arg0) + ret0, _ := ret[0].(*quicksight.DeleteIAMPolicyAssignmentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteIAMPolicyAssignment indicates an expected call of DeleteIAMPolicyAssignment. +func (mr *MockQuickSightAPIMockRecorder) DeleteIAMPolicyAssignment(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteIAMPolicyAssignment", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteIAMPolicyAssignment), arg0) +} + +// DeleteIAMPolicyAssignmentRequest mocks base method. +func (m *MockQuickSightAPI) DeleteIAMPolicyAssignmentRequest(arg0 *quicksight.DeleteIAMPolicyAssignmentInput) (*request.Request, *quicksight.DeleteIAMPolicyAssignmentOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteIAMPolicyAssignmentRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DeleteIAMPolicyAssignmentOutput) + return ret0, ret1 +} + +// DeleteIAMPolicyAssignmentRequest indicates an expected call of DeleteIAMPolicyAssignmentRequest. +func (mr *MockQuickSightAPIMockRecorder) DeleteIAMPolicyAssignmentRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteIAMPolicyAssignmentRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteIAMPolicyAssignmentRequest), arg0) +} + +// DeleteIAMPolicyAssignmentWithContext mocks base method. +func (m *MockQuickSightAPI) DeleteIAMPolicyAssignmentWithContext(arg0 aws.Context, arg1 *quicksight.DeleteIAMPolicyAssignmentInput, arg2 ...request.Option) (*quicksight.DeleteIAMPolicyAssignmentOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteIAMPolicyAssignmentWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DeleteIAMPolicyAssignmentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteIAMPolicyAssignmentWithContext indicates an expected call of DeleteIAMPolicyAssignmentWithContext. +func (mr *MockQuickSightAPIMockRecorder) DeleteIAMPolicyAssignmentWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteIAMPolicyAssignmentWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteIAMPolicyAssignmentWithContext), varargs...) +} + +// DeleteIdentityPropagationConfig mocks base method. +func (m *MockQuickSightAPI) DeleteIdentityPropagationConfig(arg0 *quicksight.DeleteIdentityPropagationConfigInput) (*quicksight.DeleteIdentityPropagationConfigOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteIdentityPropagationConfig", arg0) + ret0, _ := ret[0].(*quicksight.DeleteIdentityPropagationConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteIdentityPropagationConfig indicates an expected call of DeleteIdentityPropagationConfig. +func (mr *MockQuickSightAPIMockRecorder) DeleteIdentityPropagationConfig(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteIdentityPropagationConfig", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteIdentityPropagationConfig), arg0) +} + +// DeleteIdentityPropagationConfigRequest mocks base method. +func (m *MockQuickSightAPI) DeleteIdentityPropagationConfigRequest(arg0 *quicksight.DeleteIdentityPropagationConfigInput) (*request.Request, *quicksight.DeleteIdentityPropagationConfigOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteIdentityPropagationConfigRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DeleteIdentityPropagationConfigOutput) + return ret0, ret1 +} + +// DeleteIdentityPropagationConfigRequest indicates an expected call of DeleteIdentityPropagationConfigRequest. +func (mr *MockQuickSightAPIMockRecorder) DeleteIdentityPropagationConfigRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteIdentityPropagationConfigRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteIdentityPropagationConfigRequest), arg0) +} + +// DeleteIdentityPropagationConfigWithContext mocks base method. +func (m *MockQuickSightAPI) DeleteIdentityPropagationConfigWithContext(arg0 aws.Context, arg1 *quicksight.DeleteIdentityPropagationConfigInput, arg2 ...request.Option) (*quicksight.DeleteIdentityPropagationConfigOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteIdentityPropagationConfigWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DeleteIdentityPropagationConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteIdentityPropagationConfigWithContext indicates an expected call of DeleteIdentityPropagationConfigWithContext. +func (mr *MockQuickSightAPIMockRecorder) DeleteIdentityPropagationConfigWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteIdentityPropagationConfigWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteIdentityPropagationConfigWithContext), varargs...) +} + +// DeleteNamespace mocks base method. +func (m *MockQuickSightAPI) DeleteNamespace(arg0 *quicksight.DeleteNamespaceInput) (*quicksight.DeleteNamespaceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteNamespace", arg0) + ret0, _ := ret[0].(*quicksight.DeleteNamespaceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteNamespace indicates an expected call of DeleteNamespace. +func (mr *MockQuickSightAPIMockRecorder) DeleteNamespace(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteNamespace", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteNamespace), arg0) +} + +// DeleteNamespaceRequest mocks base method. +func (m *MockQuickSightAPI) DeleteNamespaceRequest(arg0 *quicksight.DeleteNamespaceInput) (*request.Request, *quicksight.DeleteNamespaceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteNamespaceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DeleteNamespaceOutput) + return ret0, ret1 +} + +// DeleteNamespaceRequest indicates an expected call of DeleteNamespaceRequest. +func (mr *MockQuickSightAPIMockRecorder) DeleteNamespaceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteNamespaceRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteNamespaceRequest), arg0) +} + +// DeleteNamespaceWithContext mocks base method. +func (m *MockQuickSightAPI) DeleteNamespaceWithContext(arg0 aws.Context, arg1 *quicksight.DeleteNamespaceInput, arg2 ...request.Option) (*quicksight.DeleteNamespaceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteNamespaceWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DeleteNamespaceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteNamespaceWithContext indicates an expected call of DeleteNamespaceWithContext. +func (mr *MockQuickSightAPIMockRecorder) DeleteNamespaceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteNamespaceWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteNamespaceWithContext), varargs...) +} + +// DeleteRefreshSchedule mocks base method. +func (m *MockQuickSightAPI) DeleteRefreshSchedule(arg0 *quicksight.DeleteRefreshScheduleInput) (*quicksight.DeleteRefreshScheduleOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteRefreshSchedule", arg0) + ret0, _ := ret[0].(*quicksight.DeleteRefreshScheduleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteRefreshSchedule indicates an expected call of DeleteRefreshSchedule. +func (mr *MockQuickSightAPIMockRecorder) DeleteRefreshSchedule(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRefreshSchedule", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteRefreshSchedule), arg0) +} + +// DeleteRefreshScheduleRequest mocks base method. +func (m *MockQuickSightAPI) DeleteRefreshScheduleRequest(arg0 *quicksight.DeleteRefreshScheduleInput) (*request.Request, *quicksight.DeleteRefreshScheduleOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteRefreshScheduleRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DeleteRefreshScheduleOutput) + return ret0, ret1 +} + +// DeleteRefreshScheduleRequest indicates an expected call of DeleteRefreshScheduleRequest. +func (mr *MockQuickSightAPIMockRecorder) DeleteRefreshScheduleRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRefreshScheduleRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteRefreshScheduleRequest), arg0) +} + +// DeleteRefreshScheduleWithContext mocks base method. +func (m *MockQuickSightAPI) DeleteRefreshScheduleWithContext(arg0 aws.Context, arg1 *quicksight.DeleteRefreshScheduleInput, arg2 ...request.Option) (*quicksight.DeleteRefreshScheduleOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteRefreshScheduleWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DeleteRefreshScheduleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteRefreshScheduleWithContext indicates an expected call of DeleteRefreshScheduleWithContext. +func (mr *MockQuickSightAPIMockRecorder) DeleteRefreshScheduleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRefreshScheduleWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteRefreshScheduleWithContext), varargs...) +} + +// DeleteRoleCustomPermission mocks base method. +func (m *MockQuickSightAPI) DeleteRoleCustomPermission(arg0 *quicksight.DeleteRoleCustomPermissionInput) (*quicksight.DeleteRoleCustomPermissionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteRoleCustomPermission", arg0) + ret0, _ := ret[0].(*quicksight.DeleteRoleCustomPermissionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteRoleCustomPermission indicates an expected call of DeleteRoleCustomPermission. +func (mr *MockQuickSightAPIMockRecorder) DeleteRoleCustomPermission(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRoleCustomPermission", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteRoleCustomPermission), arg0) +} + +// DeleteRoleCustomPermissionRequest mocks base method. +func (m *MockQuickSightAPI) DeleteRoleCustomPermissionRequest(arg0 *quicksight.DeleteRoleCustomPermissionInput) (*request.Request, *quicksight.DeleteRoleCustomPermissionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteRoleCustomPermissionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DeleteRoleCustomPermissionOutput) + return ret0, ret1 +} + +// DeleteRoleCustomPermissionRequest indicates an expected call of DeleteRoleCustomPermissionRequest. +func (mr *MockQuickSightAPIMockRecorder) DeleteRoleCustomPermissionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRoleCustomPermissionRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteRoleCustomPermissionRequest), arg0) +} + +// DeleteRoleCustomPermissionWithContext mocks base method. +func (m *MockQuickSightAPI) DeleteRoleCustomPermissionWithContext(arg0 aws.Context, arg1 *quicksight.DeleteRoleCustomPermissionInput, arg2 ...request.Option) (*quicksight.DeleteRoleCustomPermissionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteRoleCustomPermissionWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DeleteRoleCustomPermissionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteRoleCustomPermissionWithContext indicates an expected call of DeleteRoleCustomPermissionWithContext. +func (mr *MockQuickSightAPIMockRecorder) DeleteRoleCustomPermissionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRoleCustomPermissionWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteRoleCustomPermissionWithContext), varargs...) +} + +// DeleteRoleMembership mocks base method. +func (m *MockQuickSightAPI) DeleteRoleMembership(arg0 *quicksight.DeleteRoleMembershipInput) (*quicksight.DeleteRoleMembershipOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteRoleMembership", arg0) + ret0, _ := ret[0].(*quicksight.DeleteRoleMembershipOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteRoleMembership indicates an expected call of DeleteRoleMembership. +func (mr *MockQuickSightAPIMockRecorder) DeleteRoleMembership(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRoleMembership", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteRoleMembership), arg0) +} + +// DeleteRoleMembershipRequest mocks base method. +func (m *MockQuickSightAPI) DeleteRoleMembershipRequest(arg0 *quicksight.DeleteRoleMembershipInput) (*request.Request, *quicksight.DeleteRoleMembershipOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteRoleMembershipRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DeleteRoleMembershipOutput) + return ret0, ret1 +} + +// DeleteRoleMembershipRequest indicates an expected call of DeleteRoleMembershipRequest. +func (mr *MockQuickSightAPIMockRecorder) DeleteRoleMembershipRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRoleMembershipRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteRoleMembershipRequest), arg0) +} + +// DeleteRoleMembershipWithContext mocks base method. +func (m *MockQuickSightAPI) DeleteRoleMembershipWithContext(arg0 aws.Context, arg1 *quicksight.DeleteRoleMembershipInput, arg2 ...request.Option) (*quicksight.DeleteRoleMembershipOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteRoleMembershipWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DeleteRoleMembershipOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteRoleMembershipWithContext indicates an expected call of DeleteRoleMembershipWithContext. +func (mr *MockQuickSightAPIMockRecorder) DeleteRoleMembershipWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRoleMembershipWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteRoleMembershipWithContext), varargs...) +} + +// DeleteTemplate mocks base method. +func (m *MockQuickSightAPI) DeleteTemplate(arg0 *quicksight.DeleteTemplateInput) (*quicksight.DeleteTemplateOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTemplate", arg0) + ret0, _ := ret[0].(*quicksight.DeleteTemplateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTemplate indicates an expected call of DeleteTemplate. +func (mr *MockQuickSightAPIMockRecorder) DeleteTemplate(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTemplate", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteTemplate), arg0) +} + +// DeleteTemplateAlias mocks base method. +func (m *MockQuickSightAPI) DeleteTemplateAlias(arg0 *quicksight.DeleteTemplateAliasInput) (*quicksight.DeleteTemplateAliasOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTemplateAlias", arg0) + ret0, _ := ret[0].(*quicksight.DeleteTemplateAliasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTemplateAlias indicates an expected call of DeleteTemplateAlias. +func (mr *MockQuickSightAPIMockRecorder) DeleteTemplateAlias(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTemplateAlias", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteTemplateAlias), arg0) +} + +// DeleteTemplateAliasRequest mocks base method. +func (m *MockQuickSightAPI) DeleteTemplateAliasRequest(arg0 *quicksight.DeleteTemplateAliasInput) (*request.Request, *quicksight.DeleteTemplateAliasOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTemplateAliasRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DeleteTemplateAliasOutput) + return ret0, ret1 +} + +// DeleteTemplateAliasRequest indicates an expected call of DeleteTemplateAliasRequest. +func (mr *MockQuickSightAPIMockRecorder) DeleteTemplateAliasRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTemplateAliasRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteTemplateAliasRequest), arg0) +} + +// DeleteTemplateAliasWithContext mocks base method. +func (m *MockQuickSightAPI) DeleteTemplateAliasWithContext(arg0 aws.Context, arg1 *quicksight.DeleteTemplateAliasInput, arg2 ...request.Option) (*quicksight.DeleteTemplateAliasOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteTemplateAliasWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DeleteTemplateAliasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTemplateAliasWithContext indicates an expected call of DeleteTemplateAliasWithContext. +func (mr *MockQuickSightAPIMockRecorder) DeleteTemplateAliasWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTemplateAliasWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteTemplateAliasWithContext), varargs...) +} + +// DeleteTemplateRequest mocks base method. +func (m *MockQuickSightAPI) DeleteTemplateRequest(arg0 *quicksight.DeleteTemplateInput) (*request.Request, *quicksight.DeleteTemplateOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTemplateRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DeleteTemplateOutput) + return ret0, ret1 +} + +// DeleteTemplateRequest indicates an expected call of DeleteTemplateRequest. +func (mr *MockQuickSightAPIMockRecorder) DeleteTemplateRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTemplateRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteTemplateRequest), arg0) +} + +// DeleteTemplateWithContext mocks base method. +func (m *MockQuickSightAPI) DeleteTemplateWithContext(arg0 aws.Context, arg1 *quicksight.DeleteTemplateInput, arg2 ...request.Option) (*quicksight.DeleteTemplateOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteTemplateWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DeleteTemplateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTemplateWithContext indicates an expected call of DeleteTemplateWithContext. +func (mr *MockQuickSightAPIMockRecorder) DeleteTemplateWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTemplateWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteTemplateWithContext), varargs...) +} + +// DeleteTheme mocks base method. +func (m *MockQuickSightAPI) DeleteTheme(arg0 *quicksight.DeleteThemeInput) (*quicksight.DeleteThemeOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTheme", arg0) + ret0, _ := ret[0].(*quicksight.DeleteThemeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTheme indicates an expected call of DeleteTheme. +func (mr *MockQuickSightAPIMockRecorder) DeleteTheme(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTheme", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteTheme), arg0) +} + +// DeleteThemeAlias mocks base method. +func (m *MockQuickSightAPI) DeleteThemeAlias(arg0 *quicksight.DeleteThemeAliasInput) (*quicksight.DeleteThemeAliasOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteThemeAlias", arg0) + ret0, _ := ret[0].(*quicksight.DeleteThemeAliasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteThemeAlias indicates an expected call of DeleteThemeAlias. +func (mr *MockQuickSightAPIMockRecorder) DeleteThemeAlias(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteThemeAlias", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteThemeAlias), arg0) +} + +// DeleteThemeAliasRequest mocks base method. +func (m *MockQuickSightAPI) DeleteThemeAliasRequest(arg0 *quicksight.DeleteThemeAliasInput) (*request.Request, *quicksight.DeleteThemeAliasOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteThemeAliasRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DeleteThemeAliasOutput) + return ret0, ret1 +} + +// DeleteThemeAliasRequest indicates an expected call of DeleteThemeAliasRequest. +func (mr *MockQuickSightAPIMockRecorder) DeleteThemeAliasRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteThemeAliasRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteThemeAliasRequest), arg0) +} + +// DeleteThemeAliasWithContext mocks base method. +func (m *MockQuickSightAPI) DeleteThemeAliasWithContext(arg0 aws.Context, arg1 *quicksight.DeleteThemeAliasInput, arg2 ...request.Option) (*quicksight.DeleteThemeAliasOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteThemeAliasWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DeleteThemeAliasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteThemeAliasWithContext indicates an expected call of DeleteThemeAliasWithContext. +func (mr *MockQuickSightAPIMockRecorder) DeleteThemeAliasWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteThemeAliasWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteThemeAliasWithContext), varargs...) +} + +// DeleteThemeRequest mocks base method. +func (m *MockQuickSightAPI) DeleteThemeRequest(arg0 *quicksight.DeleteThemeInput) (*request.Request, *quicksight.DeleteThemeOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteThemeRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DeleteThemeOutput) + return ret0, ret1 +} + +// DeleteThemeRequest indicates an expected call of DeleteThemeRequest. +func (mr *MockQuickSightAPIMockRecorder) DeleteThemeRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteThemeRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteThemeRequest), arg0) +} + +// DeleteThemeWithContext mocks base method. +func (m *MockQuickSightAPI) DeleteThemeWithContext(arg0 aws.Context, arg1 *quicksight.DeleteThemeInput, arg2 ...request.Option) (*quicksight.DeleteThemeOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteThemeWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DeleteThemeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteThemeWithContext indicates an expected call of DeleteThemeWithContext. +func (mr *MockQuickSightAPIMockRecorder) DeleteThemeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteThemeWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteThemeWithContext), varargs...) +} + +// DeleteTopic mocks base method. +func (m *MockQuickSightAPI) DeleteTopic(arg0 *quicksight.DeleteTopicInput) (*quicksight.DeleteTopicOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTopic", arg0) + ret0, _ := ret[0].(*quicksight.DeleteTopicOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTopic indicates an expected call of DeleteTopic. +func (mr *MockQuickSightAPIMockRecorder) DeleteTopic(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTopic", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteTopic), arg0) +} + +// DeleteTopicRefreshSchedule mocks base method. +func (m *MockQuickSightAPI) DeleteTopicRefreshSchedule(arg0 *quicksight.DeleteTopicRefreshScheduleInput) (*quicksight.DeleteTopicRefreshScheduleOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTopicRefreshSchedule", arg0) + ret0, _ := ret[0].(*quicksight.DeleteTopicRefreshScheduleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTopicRefreshSchedule indicates an expected call of DeleteTopicRefreshSchedule. +func (mr *MockQuickSightAPIMockRecorder) DeleteTopicRefreshSchedule(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTopicRefreshSchedule", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteTopicRefreshSchedule), arg0) +} + +// DeleteTopicRefreshScheduleRequest mocks base method. +func (m *MockQuickSightAPI) DeleteTopicRefreshScheduleRequest(arg0 *quicksight.DeleteTopicRefreshScheduleInput) (*request.Request, *quicksight.DeleteTopicRefreshScheduleOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTopicRefreshScheduleRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DeleteTopicRefreshScheduleOutput) + return ret0, ret1 +} + +// DeleteTopicRefreshScheduleRequest indicates an expected call of DeleteTopicRefreshScheduleRequest. +func (mr *MockQuickSightAPIMockRecorder) DeleteTopicRefreshScheduleRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTopicRefreshScheduleRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteTopicRefreshScheduleRequest), arg0) +} + +// DeleteTopicRefreshScheduleWithContext mocks base method. +func (m *MockQuickSightAPI) DeleteTopicRefreshScheduleWithContext(arg0 aws.Context, arg1 *quicksight.DeleteTopicRefreshScheduleInput, arg2 ...request.Option) (*quicksight.DeleteTopicRefreshScheduleOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteTopicRefreshScheduleWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DeleteTopicRefreshScheduleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTopicRefreshScheduleWithContext indicates an expected call of DeleteTopicRefreshScheduleWithContext. +func (mr *MockQuickSightAPIMockRecorder) DeleteTopicRefreshScheduleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTopicRefreshScheduleWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteTopicRefreshScheduleWithContext), varargs...) +} + +// DeleteTopicRequest mocks base method. +func (m *MockQuickSightAPI) DeleteTopicRequest(arg0 *quicksight.DeleteTopicInput) (*request.Request, *quicksight.DeleteTopicOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTopicRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DeleteTopicOutput) + return ret0, ret1 +} + +// DeleteTopicRequest indicates an expected call of DeleteTopicRequest. +func (mr *MockQuickSightAPIMockRecorder) DeleteTopicRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTopicRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteTopicRequest), arg0) +} + +// DeleteTopicWithContext mocks base method. +func (m *MockQuickSightAPI) DeleteTopicWithContext(arg0 aws.Context, arg1 *quicksight.DeleteTopicInput, arg2 ...request.Option) (*quicksight.DeleteTopicOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteTopicWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DeleteTopicOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTopicWithContext indicates an expected call of DeleteTopicWithContext. +func (mr *MockQuickSightAPIMockRecorder) DeleteTopicWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTopicWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteTopicWithContext), varargs...) +} + +// DeleteUser mocks base method. +func (m *MockQuickSightAPI) DeleteUser(arg0 *quicksight.DeleteUserInput) (*quicksight.DeleteUserOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteUser", arg0) + ret0, _ := ret[0].(*quicksight.DeleteUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteUser indicates an expected call of DeleteUser. +func (mr *MockQuickSightAPIMockRecorder) DeleteUser(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUser", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteUser), arg0) +} + +// DeleteUserByPrincipalId mocks base method. +func (m *MockQuickSightAPI) DeleteUserByPrincipalId(arg0 *quicksight.DeleteUserByPrincipalIdInput) (*quicksight.DeleteUserByPrincipalIdOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteUserByPrincipalId", arg0) + ret0, _ := ret[0].(*quicksight.DeleteUserByPrincipalIdOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteUserByPrincipalId indicates an expected call of DeleteUserByPrincipalId. +func (mr *MockQuickSightAPIMockRecorder) DeleteUserByPrincipalId(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserByPrincipalId", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteUserByPrincipalId), arg0) +} + +// DeleteUserByPrincipalIdRequest mocks base method. +func (m *MockQuickSightAPI) DeleteUserByPrincipalIdRequest(arg0 *quicksight.DeleteUserByPrincipalIdInput) (*request.Request, *quicksight.DeleteUserByPrincipalIdOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteUserByPrincipalIdRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DeleteUserByPrincipalIdOutput) + return ret0, ret1 +} + +// DeleteUserByPrincipalIdRequest indicates an expected call of DeleteUserByPrincipalIdRequest. +func (mr *MockQuickSightAPIMockRecorder) DeleteUserByPrincipalIdRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserByPrincipalIdRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteUserByPrincipalIdRequest), arg0) +} + +// DeleteUserByPrincipalIdWithContext mocks base method. +func (m *MockQuickSightAPI) DeleteUserByPrincipalIdWithContext(arg0 aws.Context, arg1 *quicksight.DeleteUserByPrincipalIdInput, arg2 ...request.Option) (*quicksight.DeleteUserByPrincipalIdOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteUserByPrincipalIdWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DeleteUserByPrincipalIdOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteUserByPrincipalIdWithContext indicates an expected call of DeleteUserByPrincipalIdWithContext. +func (mr *MockQuickSightAPIMockRecorder) DeleteUserByPrincipalIdWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserByPrincipalIdWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteUserByPrincipalIdWithContext), varargs...) +} + +// DeleteUserRequest mocks base method. +func (m *MockQuickSightAPI) DeleteUserRequest(arg0 *quicksight.DeleteUserInput) (*request.Request, *quicksight.DeleteUserOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteUserRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DeleteUserOutput) + return ret0, ret1 +} + +// DeleteUserRequest indicates an expected call of DeleteUserRequest. +func (mr *MockQuickSightAPIMockRecorder) DeleteUserRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteUserRequest), arg0) +} + +// DeleteUserWithContext mocks base method. +func (m *MockQuickSightAPI) DeleteUserWithContext(arg0 aws.Context, arg1 *quicksight.DeleteUserInput, arg2 ...request.Option) (*quicksight.DeleteUserOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteUserWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DeleteUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteUserWithContext indicates an expected call of DeleteUserWithContext. +func (mr *MockQuickSightAPIMockRecorder) DeleteUserWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteUserWithContext), varargs...) +} + +// DeleteVPCConnection mocks base method. +func (m *MockQuickSightAPI) DeleteVPCConnection(arg0 *quicksight.DeleteVPCConnectionInput) (*quicksight.DeleteVPCConnectionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteVPCConnection", arg0) + ret0, _ := ret[0].(*quicksight.DeleteVPCConnectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteVPCConnection indicates an expected call of DeleteVPCConnection. +func (mr *MockQuickSightAPIMockRecorder) DeleteVPCConnection(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVPCConnection", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteVPCConnection), arg0) +} + +// DeleteVPCConnectionRequest mocks base method. +func (m *MockQuickSightAPI) DeleteVPCConnectionRequest(arg0 *quicksight.DeleteVPCConnectionInput) (*request.Request, *quicksight.DeleteVPCConnectionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteVPCConnectionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DeleteVPCConnectionOutput) + return ret0, ret1 +} + +// DeleteVPCConnectionRequest indicates an expected call of DeleteVPCConnectionRequest. +func (mr *MockQuickSightAPIMockRecorder) DeleteVPCConnectionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVPCConnectionRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteVPCConnectionRequest), arg0) +} + +// DeleteVPCConnectionWithContext mocks base method. +func (m *MockQuickSightAPI) DeleteVPCConnectionWithContext(arg0 aws.Context, arg1 *quicksight.DeleteVPCConnectionInput, arg2 ...request.Option) (*quicksight.DeleteVPCConnectionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteVPCConnectionWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DeleteVPCConnectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteVPCConnectionWithContext indicates an expected call of DeleteVPCConnectionWithContext. +func (mr *MockQuickSightAPIMockRecorder) DeleteVPCConnectionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVPCConnectionWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DeleteVPCConnectionWithContext), varargs...) +} + +// DescribeAccountCustomization mocks base method. +func (m *MockQuickSightAPI) DescribeAccountCustomization(arg0 *quicksight.DescribeAccountCustomizationInput) (*quicksight.DescribeAccountCustomizationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAccountCustomization", arg0) + ret0, _ := ret[0].(*quicksight.DescribeAccountCustomizationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAccountCustomization indicates an expected call of DescribeAccountCustomization. +func (mr *MockQuickSightAPIMockRecorder) DescribeAccountCustomization(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAccountCustomization", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeAccountCustomization), arg0) +} + +// DescribeAccountCustomizationRequest mocks base method. +func (m *MockQuickSightAPI) DescribeAccountCustomizationRequest(arg0 *quicksight.DescribeAccountCustomizationInput) (*request.Request, *quicksight.DescribeAccountCustomizationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAccountCustomizationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeAccountCustomizationOutput) + return ret0, ret1 +} + +// DescribeAccountCustomizationRequest indicates an expected call of DescribeAccountCustomizationRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeAccountCustomizationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAccountCustomizationRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeAccountCustomizationRequest), arg0) +} + +// DescribeAccountCustomizationWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeAccountCustomizationWithContext(arg0 aws.Context, arg1 *quicksight.DescribeAccountCustomizationInput, arg2 ...request.Option) (*quicksight.DescribeAccountCustomizationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeAccountCustomizationWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeAccountCustomizationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAccountCustomizationWithContext indicates an expected call of DescribeAccountCustomizationWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeAccountCustomizationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAccountCustomizationWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeAccountCustomizationWithContext), varargs...) +} + +// DescribeAccountSettings mocks base method. +func (m *MockQuickSightAPI) DescribeAccountSettings(arg0 *quicksight.DescribeAccountSettingsInput) (*quicksight.DescribeAccountSettingsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAccountSettings", arg0) + ret0, _ := ret[0].(*quicksight.DescribeAccountSettingsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAccountSettings indicates an expected call of DescribeAccountSettings. +func (mr *MockQuickSightAPIMockRecorder) DescribeAccountSettings(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAccountSettings", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeAccountSettings), arg0) +} + +// DescribeAccountSettingsRequest mocks base method. +func (m *MockQuickSightAPI) DescribeAccountSettingsRequest(arg0 *quicksight.DescribeAccountSettingsInput) (*request.Request, *quicksight.DescribeAccountSettingsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAccountSettingsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeAccountSettingsOutput) + return ret0, ret1 +} + +// DescribeAccountSettingsRequest indicates an expected call of DescribeAccountSettingsRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeAccountSettingsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAccountSettingsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeAccountSettingsRequest), arg0) +} + +// DescribeAccountSettingsWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeAccountSettingsWithContext(arg0 aws.Context, arg1 *quicksight.DescribeAccountSettingsInput, arg2 ...request.Option) (*quicksight.DescribeAccountSettingsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeAccountSettingsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeAccountSettingsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAccountSettingsWithContext indicates an expected call of DescribeAccountSettingsWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeAccountSettingsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAccountSettingsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeAccountSettingsWithContext), varargs...) +} + +// DescribeAccountSubscription mocks base method. +func (m *MockQuickSightAPI) DescribeAccountSubscription(arg0 *quicksight.DescribeAccountSubscriptionInput) (*quicksight.DescribeAccountSubscriptionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAccountSubscription", arg0) + ret0, _ := ret[0].(*quicksight.DescribeAccountSubscriptionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAccountSubscription indicates an expected call of DescribeAccountSubscription. +func (mr *MockQuickSightAPIMockRecorder) DescribeAccountSubscription(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAccountSubscription", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeAccountSubscription), arg0) +} + +// DescribeAccountSubscriptionRequest mocks base method. +func (m *MockQuickSightAPI) DescribeAccountSubscriptionRequest(arg0 *quicksight.DescribeAccountSubscriptionInput) (*request.Request, *quicksight.DescribeAccountSubscriptionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAccountSubscriptionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeAccountSubscriptionOutput) + return ret0, ret1 +} + +// DescribeAccountSubscriptionRequest indicates an expected call of DescribeAccountSubscriptionRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeAccountSubscriptionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAccountSubscriptionRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeAccountSubscriptionRequest), arg0) +} + +// DescribeAccountSubscriptionWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeAccountSubscriptionWithContext(arg0 aws.Context, arg1 *quicksight.DescribeAccountSubscriptionInput, arg2 ...request.Option) (*quicksight.DescribeAccountSubscriptionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeAccountSubscriptionWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeAccountSubscriptionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAccountSubscriptionWithContext indicates an expected call of DescribeAccountSubscriptionWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeAccountSubscriptionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAccountSubscriptionWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeAccountSubscriptionWithContext), varargs...) +} + +// DescribeAnalysis mocks base method. +func (m *MockQuickSightAPI) DescribeAnalysis(arg0 *quicksight.DescribeAnalysisInput) (*quicksight.DescribeAnalysisOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAnalysis", arg0) + ret0, _ := ret[0].(*quicksight.DescribeAnalysisOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAnalysis indicates an expected call of DescribeAnalysis. +func (mr *MockQuickSightAPIMockRecorder) DescribeAnalysis(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAnalysis", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeAnalysis), arg0) +} + +// DescribeAnalysisDefinition mocks base method. +func (m *MockQuickSightAPI) DescribeAnalysisDefinition(arg0 *quicksight.DescribeAnalysisDefinitionInput) (*quicksight.DescribeAnalysisDefinitionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAnalysisDefinition", arg0) + ret0, _ := ret[0].(*quicksight.DescribeAnalysisDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAnalysisDefinition indicates an expected call of DescribeAnalysisDefinition. +func (mr *MockQuickSightAPIMockRecorder) DescribeAnalysisDefinition(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAnalysisDefinition", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeAnalysisDefinition), arg0) +} + +// DescribeAnalysisDefinitionRequest mocks base method. +func (m *MockQuickSightAPI) DescribeAnalysisDefinitionRequest(arg0 *quicksight.DescribeAnalysisDefinitionInput) (*request.Request, *quicksight.DescribeAnalysisDefinitionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAnalysisDefinitionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeAnalysisDefinitionOutput) + return ret0, ret1 +} + +// DescribeAnalysisDefinitionRequest indicates an expected call of DescribeAnalysisDefinitionRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeAnalysisDefinitionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAnalysisDefinitionRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeAnalysisDefinitionRequest), arg0) +} + +// DescribeAnalysisDefinitionWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeAnalysisDefinitionWithContext(arg0 aws.Context, arg1 *quicksight.DescribeAnalysisDefinitionInput, arg2 ...request.Option) (*quicksight.DescribeAnalysisDefinitionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeAnalysisDefinitionWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeAnalysisDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAnalysisDefinitionWithContext indicates an expected call of DescribeAnalysisDefinitionWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeAnalysisDefinitionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAnalysisDefinitionWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeAnalysisDefinitionWithContext), varargs...) +} + +// DescribeAnalysisPermissions mocks base method. +func (m *MockQuickSightAPI) DescribeAnalysisPermissions(arg0 *quicksight.DescribeAnalysisPermissionsInput) (*quicksight.DescribeAnalysisPermissionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAnalysisPermissions", arg0) + ret0, _ := ret[0].(*quicksight.DescribeAnalysisPermissionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAnalysisPermissions indicates an expected call of DescribeAnalysisPermissions. +func (mr *MockQuickSightAPIMockRecorder) DescribeAnalysisPermissions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAnalysisPermissions", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeAnalysisPermissions), arg0) +} + +// DescribeAnalysisPermissionsRequest mocks base method. +func (m *MockQuickSightAPI) DescribeAnalysisPermissionsRequest(arg0 *quicksight.DescribeAnalysisPermissionsInput) (*request.Request, *quicksight.DescribeAnalysisPermissionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAnalysisPermissionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeAnalysisPermissionsOutput) + return ret0, ret1 +} + +// DescribeAnalysisPermissionsRequest indicates an expected call of DescribeAnalysisPermissionsRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeAnalysisPermissionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAnalysisPermissionsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeAnalysisPermissionsRequest), arg0) +} + +// DescribeAnalysisPermissionsWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeAnalysisPermissionsWithContext(arg0 aws.Context, arg1 *quicksight.DescribeAnalysisPermissionsInput, arg2 ...request.Option) (*quicksight.DescribeAnalysisPermissionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeAnalysisPermissionsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeAnalysisPermissionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAnalysisPermissionsWithContext indicates an expected call of DescribeAnalysisPermissionsWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeAnalysisPermissionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAnalysisPermissionsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeAnalysisPermissionsWithContext), varargs...) +} + +// DescribeAnalysisRequest mocks base method. +func (m *MockQuickSightAPI) DescribeAnalysisRequest(arg0 *quicksight.DescribeAnalysisInput) (*request.Request, *quicksight.DescribeAnalysisOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAnalysisRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeAnalysisOutput) + return ret0, ret1 +} + +// DescribeAnalysisRequest indicates an expected call of DescribeAnalysisRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeAnalysisRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAnalysisRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeAnalysisRequest), arg0) +} + +// DescribeAnalysisWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeAnalysisWithContext(arg0 aws.Context, arg1 *quicksight.DescribeAnalysisInput, arg2 ...request.Option) (*quicksight.DescribeAnalysisOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeAnalysisWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeAnalysisOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAnalysisWithContext indicates an expected call of DescribeAnalysisWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeAnalysisWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAnalysisWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeAnalysisWithContext), varargs...) +} + +// DescribeAssetBundleExportJob mocks base method. +func (m *MockQuickSightAPI) DescribeAssetBundleExportJob(arg0 *quicksight.DescribeAssetBundleExportJobInput) (*quicksight.DescribeAssetBundleExportJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAssetBundleExportJob", arg0) + ret0, _ := ret[0].(*quicksight.DescribeAssetBundleExportJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAssetBundleExportJob indicates an expected call of DescribeAssetBundleExportJob. +func (mr *MockQuickSightAPIMockRecorder) DescribeAssetBundleExportJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAssetBundleExportJob", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeAssetBundleExportJob), arg0) +} + +// DescribeAssetBundleExportJobRequest mocks base method. +func (m *MockQuickSightAPI) DescribeAssetBundleExportJobRequest(arg0 *quicksight.DescribeAssetBundleExportJobInput) (*request.Request, *quicksight.DescribeAssetBundleExportJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAssetBundleExportJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeAssetBundleExportJobOutput) + return ret0, ret1 +} + +// DescribeAssetBundleExportJobRequest indicates an expected call of DescribeAssetBundleExportJobRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeAssetBundleExportJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAssetBundleExportJobRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeAssetBundleExportJobRequest), arg0) +} + +// DescribeAssetBundleExportJobWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeAssetBundleExportJobWithContext(arg0 aws.Context, arg1 *quicksight.DescribeAssetBundleExportJobInput, arg2 ...request.Option) (*quicksight.DescribeAssetBundleExportJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeAssetBundleExportJobWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeAssetBundleExportJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAssetBundleExportJobWithContext indicates an expected call of DescribeAssetBundleExportJobWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeAssetBundleExportJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAssetBundleExportJobWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeAssetBundleExportJobWithContext), varargs...) +} + +// DescribeAssetBundleImportJob mocks base method. +func (m *MockQuickSightAPI) DescribeAssetBundleImportJob(arg0 *quicksight.DescribeAssetBundleImportJobInput) (*quicksight.DescribeAssetBundleImportJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAssetBundleImportJob", arg0) + ret0, _ := ret[0].(*quicksight.DescribeAssetBundleImportJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAssetBundleImportJob indicates an expected call of DescribeAssetBundleImportJob. +func (mr *MockQuickSightAPIMockRecorder) DescribeAssetBundleImportJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAssetBundleImportJob", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeAssetBundleImportJob), arg0) +} + +// DescribeAssetBundleImportJobRequest mocks base method. +func (m *MockQuickSightAPI) DescribeAssetBundleImportJobRequest(arg0 *quicksight.DescribeAssetBundleImportJobInput) (*request.Request, *quicksight.DescribeAssetBundleImportJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAssetBundleImportJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeAssetBundleImportJobOutput) + return ret0, ret1 +} + +// DescribeAssetBundleImportJobRequest indicates an expected call of DescribeAssetBundleImportJobRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeAssetBundleImportJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAssetBundleImportJobRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeAssetBundleImportJobRequest), arg0) +} + +// DescribeAssetBundleImportJobWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeAssetBundleImportJobWithContext(arg0 aws.Context, arg1 *quicksight.DescribeAssetBundleImportJobInput, arg2 ...request.Option) (*quicksight.DescribeAssetBundleImportJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeAssetBundleImportJobWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeAssetBundleImportJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAssetBundleImportJobWithContext indicates an expected call of DescribeAssetBundleImportJobWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeAssetBundleImportJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAssetBundleImportJobWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeAssetBundleImportJobWithContext), varargs...) +} + +// DescribeDashboard mocks base method. +func (m *MockQuickSightAPI) DescribeDashboard(arg0 *quicksight.DescribeDashboardInput) (*quicksight.DescribeDashboardOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeDashboard", arg0) + ret0, _ := ret[0].(*quicksight.DescribeDashboardOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeDashboard indicates an expected call of DescribeDashboard. +func (mr *MockQuickSightAPIMockRecorder) DescribeDashboard(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDashboard", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeDashboard), arg0) +} + +// DescribeDashboardDefinition mocks base method. +func (m *MockQuickSightAPI) DescribeDashboardDefinition(arg0 *quicksight.DescribeDashboardDefinitionInput) (*quicksight.DescribeDashboardDefinitionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeDashboardDefinition", arg0) + ret0, _ := ret[0].(*quicksight.DescribeDashboardDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeDashboardDefinition indicates an expected call of DescribeDashboardDefinition. +func (mr *MockQuickSightAPIMockRecorder) DescribeDashboardDefinition(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDashboardDefinition", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeDashboardDefinition), arg0) +} + +// DescribeDashboardDefinitionRequest mocks base method. +func (m *MockQuickSightAPI) DescribeDashboardDefinitionRequest(arg0 *quicksight.DescribeDashboardDefinitionInput) (*request.Request, *quicksight.DescribeDashboardDefinitionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeDashboardDefinitionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeDashboardDefinitionOutput) + return ret0, ret1 +} + +// DescribeDashboardDefinitionRequest indicates an expected call of DescribeDashboardDefinitionRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeDashboardDefinitionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDashboardDefinitionRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeDashboardDefinitionRequest), arg0) +} + +// DescribeDashboardDefinitionWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeDashboardDefinitionWithContext(arg0 aws.Context, arg1 *quicksight.DescribeDashboardDefinitionInput, arg2 ...request.Option) (*quicksight.DescribeDashboardDefinitionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeDashboardDefinitionWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeDashboardDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeDashboardDefinitionWithContext indicates an expected call of DescribeDashboardDefinitionWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeDashboardDefinitionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDashboardDefinitionWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeDashboardDefinitionWithContext), varargs...) +} + +// DescribeDashboardPermissions mocks base method. +func (m *MockQuickSightAPI) DescribeDashboardPermissions(arg0 *quicksight.DescribeDashboardPermissionsInput) (*quicksight.DescribeDashboardPermissionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeDashboardPermissions", arg0) + ret0, _ := ret[0].(*quicksight.DescribeDashboardPermissionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeDashboardPermissions indicates an expected call of DescribeDashboardPermissions. +func (mr *MockQuickSightAPIMockRecorder) DescribeDashboardPermissions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDashboardPermissions", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeDashboardPermissions), arg0) +} + +// DescribeDashboardPermissionsRequest mocks base method. +func (m *MockQuickSightAPI) DescribeDashboardPermissionsRequest(arg0 *quicksight.DescribeDashboardPermissionsInput) (*request.Request, *quicksight.DescribeDashboardPermissionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeDashboardPermissionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeDashboardPermissionsOutput) + return ret0, ret1 +} + +// DescribeDashboardPermissionsRequest indicates an expected call of DescribeDashboardPermissionsRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeDashboardPermissionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDashboardPermissionsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeDashboardPermissionsRequest), arg0) +} + +// DescribeDashboardPermissionsWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeDashboardPermissionsWithContext(arg0 aws.Context, arg1 *quicksight.DescribeDashboardPermissionsInput, arg2 ...request.Option) (*quicksight.DescribeDashboardPermissionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeDashboardPermissionsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeDashboardPermissionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeDashboardPermissionsWithContext indicates an expected call of DescribeDashboardPermissionsWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeDashboardPermissionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDashboardPermissionsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeDashboardPermissionsWithContext), varargs...) +} + +// DescribeDashboardRequest mocks base method. +func (m *MockQuickSightAPI) DescribeDashboardRequest(arg0 *quicksight.DescribeDashboardInput) (*request.Request, *quicksight.DescribeDashboardOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeDashboardRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeDashboardOutput) + return ret0, ret1 +} + +// DescribeDashboardRequest indicates an expected call of DescribeDashboardRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeDashboardRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDashboardRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeDashboardRequest), arg0) +} + +// DescribeDashboardSnapshotJob mocks base method. +func (m *MockQuickSightAPI) DescribeDashboardSnapshotJob(arg0 *quicksight.DescribeDashboardSnapshotJobInput) (*quicksight.DescribeDashboardSnapshotJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeDashboardSnapshotJob", arg0) + ret0, _ := ret[0].(*quicksight.DescribeDashboardSnapshotJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeDashboardSnapshotJob indicates an expected call of DescribeDashboardSnapshotJob. +func (mr *MockQuickSightAPIMockRecorder) DescribeDashboardSnapshotJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDashboardSnapshotJob", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeDashboardSnapshotJob), arg0) +} + +// DescribeDashboardSnapshotJobRequest mocks base method. +func (m *MockQuickSightAPI) DescribeDashboardSnapshotJobRequest(arg0 *quicksight.DescribeDashboardSnapshotJobInput) (*request.Request, *quicksight.DescribeDashboardSnapshotJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeDashboardSnapshotJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeDashboardSnapshotJobOutput) + return ret0, ret1 +} + +// DescribeDashboardSnapshotJobRequest indicates an expected call of DescribeDashboardSnapshotJobRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeDashboardSnapshotJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDashboardSnapshotJobRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeDashboardSnapshotJobRequest), arg0) +} + +// DescribeDashboardSnapshotJobResult mocks base method. +func (m *MockQuickSightAPI) DescribeDashboardSnapshotJobResult(arg0 *quicksight.DescribeDashboardSnapshotJobResultInput) (*quicksight.DescribeDashboardSnapshotJobResultOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeDashboardSnapshotJobResult", arg0) + ret0, _ := ret[0].(*quicksight.DescribeDashboardSnapshotJobResultOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeDashboardSnapshotJobResult indicates an expected call of DescribeDashboardSnapshotJobResult. +func (mr *MockQuickSightAPIMockRecorder) DescribeDashboardSnapshotJobResult(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDashboardSnapshotJobResult", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeDashboardSnapshotJobResult), arg0) +} + +// DescribeDashboardSnapshotJobResultRequest mocks base method. +func (m *MockQuickSightAPI) DescribeDashboardSnapshotJobResultRequest(arg0 *quicksight.DescribeDashboardSnapshotJobResultInput) (*request.Request, *quicksight.DescribeDashboardSnapshotJobResultOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeDashboardSnapshotJobResultRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeDashboardSnapshotJobResultOutput) + return ret0, ret1 +} + +// DescribeDashboardSnapshotJobResultRequest indicates an expected call of DescribeDashboardSnapshotJobResultRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeDashboardSnapshotJobResultRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDashboardSnapshotJobResultRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeDashboardSnapshotJobResultRequest), arg0) +} + +// DescribeDashboardSnapshotJobResultWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeDashboardSnapshotJobResultWithContext(arg0 aws.Context, arg1 *quicksight.DescribeDashboardSnapshotJobResultInput, arg2 ...request.Option) (*quicksight.DescribeDashboardSnapshotJobResultOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeDashboardSnapshotJobResultWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeDashboardSnapshotJobResultOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeDashboardSnapshotJobResultWithContext indicates an expected call of DescribeDashboardSnapshotJobResultWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeDashboardSnapshotJobResultWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDashboardSnapshotJobResultWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeDashboardSnapshotJobResultWithContext), varargs...) +} + +// DescribeDashboardSnapshotJobWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeDashboardSnapshotJobWithContext(arg0 aws.Context, arg1 *quicksight.DescribeDashboardSnapshotJobInput, arg2 ...request.Option) (*quicksight.DescribeDashboardSnapshotJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeDashboardSnapshotJobWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeDashboardSnapshotJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeDashboardSnapshotJobWithContext indicates an expected call of DescribeDashboardSnapshotJobWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeDashboardSnapshotJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDashboardSnapshotJobWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeDashboardSnapshotJobWithContext), varargs...) +} + +// DescribeDashboardWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeDashboardWithContext(arg0 aws.Context, arg1 *quicksight.DescribeDashboardInput, arg2 ...request.Option) (*quicksight.DescribeDashboardOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeDashboardWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeDashboardOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeDashboardWithContext indicates an expected call of DescribeDashboardWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeDashboardWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDashboardWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeDashboardWithContext), varargs...) +} + +// DescribeDataSet mocks base method. +func (m *MockQuickSightAPI) DescribeDataSet(arg0 *quicksight.DescribeDataSetInput) (*quicksight.DescribeDataSetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeDataSet", arg0) + ret0, _ := ret[0].(*quicksight.DescribeDataSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeDataSet indicates an expected call of DescribeDataSet. +func (mr *MockQuickSightAPIMockRecorder) DescribeDataSet(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDataSet", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeDataSet), arg0) +} + +// DescribeDataSetPermissions mocks base method. +func (m *MockQuickSightAPI) DescribeDataSetPermissions(arg0 *quicksight.DescribeDataSetPermissionsInput) (*quicksight.DescribeDataSetPermissionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeDataSetPermissions", arg0) + ret0, _ := ret[0].(*quicksight.DescribeDataSetPermissionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeDataSetPermissions indicates an expected call of DescribeDataSetPermissions. +func (mr *MockQuickSightAPIMockRecorder) DescribeDataSetPermissions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDataSetPermissions", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeDataSetPermissions), arg0) +} + +// DescribeDataSetPermissionsRequest mocks base method. +func (m *MockQuickSightAPI) DescribeDataSetPermissionsRequest(arg0 *quicksight.DescribeDataSetPermissionsInput) (*request.Request, *quicksight.DescribeDataSetPermissionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeDataSetPermissionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeDataSetPermissionsOutput) + return ret0, ret1 +} + +// DescribeDataSetPermissionsRequest indicates an expected call of DescribeDataSetPermissionsRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeDataSetPermissionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDataSetPermissionsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeDataSetPermissionsRequest), arg0) +} + +// DescribeDataSetPermissionsWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeDataSetPermissionsWithContext(arg0 aws.Context, arg1 *quicksight.DescribeDataSetPermissionsInput, arg2 ...request.Option) (*quicksight.DescribeDataSetPermissionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeDataSetPermissionsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeDataSetPermissionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeDataSetPermissionsWithContext indicates an expected call of DescribeDataSetPermissionsWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeDataSetPermissionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDataSetPermissionsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeDataSetPermissionsWithContext), varargs...) +} + +// DescribeDataSetRefreshProperties mocks base method. +func (m *MockQuickSightAPI) DescribeDataSetRefreshProperties(arg0 *quicksight.DescribeDataSetRefreshPropertiesInput) (*quicksight.DescribeDataSetRefreshPropertiesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeDataSetRefreshProperties", arg0) + ret0, _ := ret[0].(*quicksight.DescribeDataSetRefreshPropertiesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeDataSetRefreshProperties indicates an expected call of DescribeDataSetRefreshProperties. +func (mr *MockQuickSightAPIMockRecorder) DescribeDataSetRefreshProperties(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDataSetRefreshProperties", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeDataSetRefreshProperties), arg0) +} + +// DescribeDataSetRefreshPropertiesRequest mocks base method. +func (m *MockQuickSightAPI) DescribeDataSetRefreshPropertiesRequest(arg0 *quicksight.DescribeDataSetRefreshPropertiesInput) (*request.Request, *quicksight.DescribeDataSetRefreshPropertiesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeDataSetRefreshPropertiesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeDataSetRefreshPropertiesOutput) + return ret0, ret1 +} + +// DescribeDataSetRefreshPropertiesRequest indicates an expected call of DescribeDataSetRefreshPropertiesRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeDataSetRefreshPropertiesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDataSetRefreshPropertiesRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeDataSetRefreshPropertiesRequest), arg0) +} + +// DescribeDataSetRefreshPropertiesWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeDataSetRefreshPropertiesWithContext(arg0 aws.Context, arg1 *quicksight.DescribeDataSetRefreshPropertiesInput, arg2 ...request.Option) (*quicksight.DescribeDataSetRefreshPropertiesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeDataSetRefreshPropertiesWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeDataSetRefreshPropertiesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeDataSetRefreshPropertiesWithContext indicates an expected call of DescribeDataSetRefreshPropertiesWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeDataSetRefreshPropertiesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDataSetRefreshPropertiesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeDataSetRefreshPropertiesWithContext), varargs...) +} + +// DescribeDataSetRequest mocks base method. +func (m *MockQuickSightAPI) DescribeDataSetRequest(arg0 *quicksight.DescribeDataSetInput) (*request.Request, *quicksight.DescribeDataSetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeDataSetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeDataSetOutput) + return ret0, ret1 +} + +// DescribeDataSetRequest indicates an expected call of DescribeDataSetRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeDataSetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDataSetRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeDataSetRequest), arg0) +} + +// DescribeDataSetWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeDataSetWithContext(arg0 aws.Context, arg1 *quicksight.DescribeDataSetInput, arg2 ...request.Option) (*quicksight.DescribeDataSetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeDataSetWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeDataSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeDataSetWithContext indicates an expected call of DescribeDataSetWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeDataSetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDataSetWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeDataSetWithContext), varargs...) +} + +// DescribeDataSource mocks base method. +func (m *MockQuickSightAPI) DescribeDataSource(arg0 *quicksight.DescribeDataSourceInput) (*quicksight.DescribeDataSourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeDataSource", arg0) + ret0, _ := ret[0].(*quicksight.DescribeDataSourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeDataSource indicates an expected call of DescribeDataSource. +func (mr *MockQuickSightAPIMockRecorder) DescribeDataSource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDataSource", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeDataSource), arg0) +} + +// DescribeDataSourcePermissions mocks base method. +func (m *MockQuickSightAPI) DescribeDataSourcePermissions(arg0 *quicksight.DescribeDataSourcePermissionsInput) (*quicksight.DescribeDataSourcePermissionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeDataSourcePermissions", arg0) + ret0, _ := ret[0].(*quicksight.DescribeDataSourcePermissionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeDataSourcePermissions indicates an expected call of DescribeDataSourcePermissions. +func (mr *MockQuickSightAPIMockRecorder) DescribeDataSourcePermissions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDataSourcePermissions", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeDataSourcePermissions), arg0) +} + +// DescribeDataSourcePermissionsRequest mocks base method. +func (m *MockQuickSightAPI) DescribeDataSourcePermissionsRequest(arg0 *quicksight.DescribeDataSourcePermissionsInput) (*request.Request, *quicksight.DescribeDataSourcePermissionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeDataSourcePermissionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeDataSourcePermissionsOutput) + return ret0, ret1 +} + +// DescribeDataSourcePermissionsRequest indicates an expected call of DescribeDataSourcePermissionsRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeDataSourcePermissionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDataSourcePermissionsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeDataSourcePermissionsRequest), arg0) +} + +// DescribeDataSourcePermissionsWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeDataSourcePermissionsWithContext(arg0 aws.Context, arg1 *quicksight.DescribeDataSourcePermissionsInput, arg2 ...request.Option) (*quicksight.DescribeDataSourcePermissionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeDataSourcePermissionsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeDataSourcePermissionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeDataSourcePermissionsWithContext indicates an expected call of DescribeDataSourcePermissionsWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeDataSourcePermissionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDataSourcePermissionsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeDataSourcePermissionsWithContext), varargs...) +} + +// DescribeDataSourceRequest mocks base method. +func (m *MockQuickSightAPI) DescribeDataSourceRequest(arg0 *quicksight.DescribeDataSourceInput) (*request.Request, *quicksight.DescribeDataSourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeDataSourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeDataSourceOutput) + return ret0, ret1 +} + +// DescribeDataSourceRequest indicates an expected call of DescribeDataSourceRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeDataSourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDataSourceRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeDataSourceRequest), arg0) +} + +// DescribeDataSourceWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeDataSourceWithContext(arg0 aws.Context, arg1 *quicksight.DescribeDataSourceInput, arg2 ...request.Option) (*quicksight.DescribeDataSourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeDataSourceWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeDataSourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeDataSourceWithContext indicates an expected call of DescribeDataSourceWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeDataSourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeDataSourceWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeDataSourceWithContext), varargs...) +} + +// DescribeFolder mocks base method. +func (m *MockQuickSightAPI) DescribeFolder(arg0 *quicksight.DescribeFolderInput) (*quicksight.DescribeFolderOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeFolder", arg0) + ret0, _ := ret[0].(*quicksight.DescribeFolderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeFolder indicates an expected call of DescribeFolder. +func (mr *MockQuickSightAPIMockRecorder) DescribeFolder(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFolder", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeFolder), arg0) +} + +// DescribeFolderPermissions mocks base method. +func (m *MockQuickSightAPI) DescribeFolderPermissions(arg0 *quicksight.DescribeFolderPermissionsInput) (*quicksight.DescribeFolderPermissionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeFolderPermissions", arg0) + ret0, _ := ret[0].(*quicksight.DescribeFolderPermissionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeFolderPermissions indicates an expected call of DescribeFolderPermissions. +func (mr *MockQuickSightAPIMockRecorder) DescribeFolderPermissions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFolderPermissions", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeFolderPermissions), arg0) +} + +// DescribeFolderPermissionsPages mocks base method. +func (m *MockQuickSightAPI) DescribeFolderPermissionsPages(arg0 *quicksight.DescribeFolderPermissionsInput, arg1 func(*quicksight.DescribeFolderPermissionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeFolderPermissionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeFolderPermissionsPages indicates an expected call of DescribeFolderPermissionsPages. +func (mr *MockQuickSightAPIMockRecorder) DescribeFolderPermissionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFolderPermissionsPages", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeFolderPermissionsPages), arg0, arg1) +} + +// DescribeFolderPermissionsPagesWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeFolderPermissionsPagesWithContext(arg0 aws.Context, arg1 *quicksight.DescribeFolderPermissionsInput, arg2 func(*quicksight.DescribeFolderPermissionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeFolderPermissionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeFolderPermissionsPagesWithContext indicates an expected call of DescribeFolderPermissionsPagesWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeFolderPermissionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFolderPermissionsPagesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeFolderPermissionsPagesWithContext), varargs...) +} + +// DescribeFolderPermissionsRequest mocks base method. +func (m *MockQuickSightAPI) DescribeFolderPermissionsRequest(arg0 *quicksight.DescribeFolderPermissionsInput) (*request.Request, *quicksight.DescribeFolderPermissionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeFolderPermissionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeFolderPermissionsOutput) + return ret0, ret1 +} + +// DescribeFolderPermissionsRequest indicates an expected call of DescribeFolderPermissionsRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeFolderPermissionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFolderPermissionsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeFolderPermissionsRequest), arg0) +} + +// DescribeFolderPermissionsWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeFolderPermissionsWithContext(arg0 aws.Context, arg1 *quicksight.DescribeFolderPermissionsInput, arg2 ...request.Option) (*quicksight.DescribeFolderPermissionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeFolderPermissionsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeFolderPermissionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeFolderPermissionsWithContext indicates an expected call of DescribeFolderPermissionsWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeFolderPermissionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFolderPermissionsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeFolderPermissionsWithContext), varargs...) +} + +// DescribeFolderRequest mocks base method. +func (m *MockQuickSightAPI) DescribeFolderRequest(arg0 *quicksight.DescribeFolderInput) (*request.Request, *quicksight.DescribeFolderOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeFolderRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeFolderOutput) + return ret0, ret1 +} + +// DescribeFolderRequest indicates an expected call of DescribeFolderRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeFolderRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFolderRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeFolderRequest), arg0) +} + +// DescribeFolderResolvedPermissions mocks base method. +func (m *MockQuickSightAPI) DescribeFolderResolvedPermissions(arg0 *quicksight.DescribeFolderResolvedPermissionsInput) (*quicksight.DescribeFolderResolvedPermissionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeFolderResolvedPermissions", arg0) + ret0, _ := ret[0].(*quicksight.DescribeFolderResolvedPermissionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeFolderResolvedPermissions indicates an expected call of DescribeFolderResolvedPermissions. +func (mr *MockQuickSightAPIMockRecorder) DescribeFolderResolvedPermissions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFolderResolvedPermissions", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeFolderResolvedPermissions), arg0) +} + +// DescribeFolderResolvedPermissionsPages mocks base method. +func (m *MockQuickSightAPI) DescribeFolderResolvedPermissionsPages(arg0 *quicksight.DescribeFolderResolvedPermissionsInput, arg1 func(*quicksight.DescribeFolderResolvedPermissionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeFolderResolvedPermissionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeFolderResolvedPermissionsPages indicates an expected call of DescribeFolderResolvedPermissionsPages. +func (mr *MockQuickSightAPIMockRecorder) DescribeFolderResolvedPermissionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFolderResolvedPermissionsPages", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeFolderResolvedPermissionsPages), arg0, arg1) +} + +// DescribeFolderResolvedPermissionsPagesWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeFolderResolvedPermissionsPagesWithContext(arg0 aws.Context, arg1 *quicksight.DescribeFolderResolvedPermissionsInput, arg2 func(*quicksight.DescribeFolderResolvedPermissionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeFolderResolvedPermissionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeFolderResolvedPermissionsPagesWithContext indicates an expected call of DescribeFolderResolvedPermissionsPagesWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeFolderResolvedPermissionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFolderResolvedPermissionsPagesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeFolderResolvedPermissionsPagesWithContext), varargs...) +} + +// DescribeFolderResolvedPermissionsRequest mocks base method. +func (m *MockQuickSightAPI) DescribeFolderResolvedPermissionsRequest(arg0 *quicksight.DescribeFolderResolvedPermissionsInput) (*request.Request, *quicksight.DescribeFolderResolvedPermissionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeFolderResolvedPermissionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeFolderResolvedPermissionsOutput) + return ret0, ret1 +} + +// DescribeFolderResolvedPermissionsRequest indicates an expected call of DescribeFolderResolvedPermissionsRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeFolderResolvedPermissionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFolderResolvedPermissionsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeFolderResolvedPermissionsRequest), arg0) +} + +// DescribeFolderResolvedPermissionsWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeFolderResolvedPermissionsWithContext(arg0 aws.Context, arg1 *quicksight.DescribeFolderResolvedPermissionsInput, arg2 ...request.Option) (*quicksight.DescribeFolderResolvedPermissionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeFolderResolvedPermissionsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeFolderResolvedPermissionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeFolderResolvedPermissionsWithContext indicates an expected call of DescribeFolderResolvedPermissionsWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeFolderResolvedPermissionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFolderResolvedPermissionsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeFolderResolvedPermissionsWithContext), varargs...) +} + +// DescribeFolderWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeFolderWithContext(arg0 aws.Context, arg1 *quicksight.DescribeFolderInput, arg2 ...request.Option) (*quicksight.DescribeFolderOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeFolderWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeFolderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeFolderWithContext indicates an expected call of DescribeFolderWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeFolderWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFolderWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeFolderWithContext), varargs...) +} + +// DescribeGroup mocks base method. +func (m *MockQuickSightAPI) DescribeGroup(arg0 *quicksight.DescribeGroupInput) (*quicksight.DescribeGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeGroup", arg0) + ret0, _ := ret[0].(*quicksight.DescribeGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeGroup indicates an expected call of DescribeGroup. +func (mr *MockQuickSightAPIMockRecorder) DescribeGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGroup", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeGroup), arg0) +} + +// DescribeGroupMembership mocks base method. +func (m *MockQuickSightAPI) DescribeGroupMembership(arg0 *quicksight.DescribeGroupMembershipInput) (*quicksight.DescribeGroupMembershipOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeGroupMembership", arg0) + ret0, _ := ret[0].(*quicksight.DescribeGroupMembershipOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeGroupMembership indicates an expected call of DescribeGroupMembership. +func (mr *MockQuickSightAPIMockRecorder) DescribeGroupMembership(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGroupMembership", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeGroupMembership), arg0) +} + +// DescribeGroupMembershipRequest mocks base method. +func (m *MockQuickSightAPI) DescribeGroupMembershipRequest(arg0 *quicksight.DescribeGroupMembershipInput) (*request.Request, *quicksight.DescribeGroupMembershipOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeGroupMembershipRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeGroupMembershipOutput) + return ret0, ret1 +} + +// DescribeGroupMembershipRequest indicates an expected call of DescribeGroupMembershipRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeGroupMembershipRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGroupMembershipRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeGroupMembershipRequest), arg0) +} + +// DescribeGroupMembershipWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeGroupMembershipWithContext(arg0 aws.Context, arg1 *quicksight.DescribeGroupMembershipInput, arg2 ...request.Option) (*quicksight.DescribeGroupMembershipOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeGroupMembershipWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeGroupMembershipOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeGroupMembershipWithContext indicates an expected call of DescribeGroupMembershipWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeGroupMembershipWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGroupMembershipWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeGroupMembershipWithContext), varargs...) +} + +// DescribeGroupRequest mocks base method. +func (m *MockQuickSightAPI) DescribeGroupRequest(arg0 *quicksight.DescribeGroupInput) (*request.Request, *quicksight.DescribeGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeGroupOutput) + return ret0, ret1 +} + +// DescribeGroupRequest indicates an expected call of DescribeGroupRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGroupRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeGroupRequest), arg0) +} + +// DescribeGroupWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeGroupWithContext(arg0 aws.Context, arg1 *quicksight.DescribeGroupInput, arg2 ...request.Option) (*quicksight.DescribeGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeGroupWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeGroupWithContext indicates an expected call of DescribeGroupWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGroupWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeGroupWithContext), varargs...) +} + +// DescribeIAMPolicyAssignment mocks base method. +func (m *MockQuickSightAPI) DescribeIAMPolicyAssignment(arg0 *quicksight.DescribeIAMPolicyAssignmentInput) (*quicksight.DescribeIAMPolicyAssignmentOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeIAMPolicyAssignment", arg0) + ret0, _ := ret[0].(*quicksight.DescribeIAMPolicyAssignmentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeIAMPolicyAssignment indicates an expected call of DescribeIAMPolicyAssignment. +func (mr *MockQuickSightAPIMockRecorder) DescribeIAMPolicyAssignment(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeIAMPolicyAssignment", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeIAMPolicyAssignment), arg0) +} + +// DescribeIAMPolicyAssignmentRequest mocks base method. +func (m *MockQuickSightAPI) DescribeIAMPolicyAssignmentRequest(arg0 *quicksight.DescribeIAMPolicyAssignmentInput) (*request.Request, *quicksight.DescribeIAMPolicyAssignmentOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeIAMPolicyAssignmentRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeIAMPolicyAssignmentOutput) + return ret0, ret1 +} + +// DescribeIAMPolicyAssignmentRequest indicates an expected call of DescribeIAMPolicyAssignmentRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeIAMPolicyAssignmentRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeIAMPolicyAssignmentRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeIAMPolicyAssignmentRequest), arg0) +} + +// DescribeIAMPolicyAssignmentWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeIAMPolicyAssignmentWithContext(arg0 aws.Context, arg1 *quicksight.DescribeIAMPolicyAssignmentInput, arg2 ...request.Option) (*quicksight.DescribeIAMPolicyAssignmentOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeIAMPolicyAssignmentWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeIAMPolicyAssignmentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeIAMPolicyAssignmentWithContext indicates an expected call of DescribeIAMPolicyAssignmentWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeIAMPolicyAssignmentWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeIAMPolicyAssignmentWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeIAMPolicyAssignmentWithContext), varargs...) +} + +// DescribeIngestion mocks base method. +func (m *MockQuickSightAPI) DescribeIngestion(arg0 *quicksight.DescribeIngestionInput) (*quicksight.DescribeIngestionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeIngestion", arg0) + ret0, _ := ret[0].(*quicksight.DescribeIngestionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeIngestion indicates an expected call of DescribeIngestion. +func (mr *MockQuickSightAPIMockRecorder) DescribeIngestion(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeIngestion", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeIngestion), arg0) +} + +// DescribeIngestionRequest mocks base method. +func (m *MockQuickSightAPI) DescribeIngestionRequest(arg0 *quicksight.DescribeIngestionInput) (*request.Request, *quicksight.DescribeIngestionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeIngestionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeIngestionOutput) + return ret0, ret1 +} + +// DescribeIngestionRequest indicates an expected call of DescribeIngestionRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeIngestionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeIngestionRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeIngestionRequest), arg0) +} + +// DescribeIngestionWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeIngestionWithContext(arg0 aws.Context, arg1 *quicksight.DescribeIngestionInput, arg2 ...request.Option) (*quicksight.DescribeIngestionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeIngestionWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeIngestionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeIngestionWithContext indicates an expected call of DescribeIngestionWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeIngestionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeIngestionWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeIngestionWithContext), varargs...) +} + +// DescribeIpRestriction mocks base method. +func (m *MockQuickSightAPI) DescribeIpRestriction(arg0 *quicksight.DescribeIpRestrictionInput) (*quicksight.DescribeIpRestrictionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeIpRestriction", arg0) + ret0, _ := ret[0].(*quicksight.DescribeIpRestrictionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeIpRestriction indicates an expected call of DescribeIpRestriction. +func (mr *MockQuickSightAPIMockRecorder) DescribeIpRestriction(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeIpRestriction", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeIpRestriction), arg0) +} + +// DescribeIpRestrictionRequest mocks base method. +func (m *MockQuickSightAPI) DescribeIpRestrictionRequest(arg0 *quicksight.DescribeIpRestrictionInput) (*request.Request, *quicksight.DescribeIpRestrictionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeIpRestrictionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeIpRestrictionOutput) + return ret0, ret1 +} + +// DescribeIpRestrictionRequest indicates an expected call of DescribeIpRestrictionRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeIpRestrictionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeIpRestrictionRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeIpRestrictionRequest), arg0) +} + +// DescribeIpRestrictionWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeIpRestrictionWithContext(arg0 aws.Context, arg1 *quicksight.DescribeIpRestrictionInput, arg2 ...request.Option) (*quicksight.DescribeIpRestrictionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeIpRestrictionWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeIpRestrictionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeIpRestrictionWithContext indicates an expected call of DescribeIpRestrictionWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeIpRestrictionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeIpRestrictionWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeIpRestrictionWithContext), varargs...) +} + +// DescribeNamespace mocks base method. +func (m *MockQuickSightAPI) DescribeNamespace(arg0 *quicksight.DescribeNamespaceInput) (*quicksight.DescribeNamespaceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeNamespace", arg0) + ret0, _ := ret[0].(*quicksight.DescribeNamespaceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeNamespace indicates an expected call of DescribeNamespace. +func (mr *MockQuickSightAPIMockRecorder) DescribeNamespace(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeNamespace", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeNamespace), arg0) +} + +// DescribeNamespaceRequest mocks base method. +func (m *MockQuickSightAPI) DescribeNamespaceRequest(arg0 *quicksight.DescribeNamespaceInput) (*request.Request, *quicksight.DescribeNamespaceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeNamespaceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeNamespaceOutput) + return ret0, ret1 +} + +// DescribeNamespaceRequest indicates an expected call of DescribeNamespaceRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeNamespaceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeNamespaceRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeNamespaceRequest), arg0) +} + +// DescribeNamespaceWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeNamespaceWithContext(arg0 aws.Context, arg1 *quicksight.DescribeNamespaceInput, arg2 ...request.Option) (*quicksight.DescribeNamespaceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeNamespaceWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeNamespaceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeNamespaceWithContext indicates an expected call of DescribeNamespaceWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeNamespaceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeNamespaceWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeNamespaceWithContext), varargs...) +} + +// DescribeRefreshSchedule mocks base method. +func (m *MockQuickSightAPI) DescribeRefreshSchedule(arg0 *quicksight.DescribeRefreshScheduleInput) (*quicksight.DescribeRefreshScheduleOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeRefreshSchedule", arg0) + ret0, _ := ret[0].(*quicksight.DescribeRefreshScheduleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeRefreshSchedule indicates an expected call of DescribeRefreshSchedule. +func (mr *MockQuickSightAPIMockRecorder) DescribeRefreshSchedule(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRefreshSchedule", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeRefreshSchedule), arg0) +} + +// DescribeRefreshScheduleRequest mocks base method. +func (m *MockQuickSightAPI) DescribeRefreshScheduleRequest(arg0 *quicksight.DescribeRefreshScheduleInput) (*request.Request, *quicksight.DescribeRefreshScheduleOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeRefreshScheduleRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeRefreshScheduleOutput) + return ret0, ret1 +} + +// DescribeRefreshScheduleRequest indicates an expected call of DescribeRefreshScheduleRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeRefreshScheduleRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRefreshScheduleRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeRefreshScheduleRequest), arg0) +} + +// DescribeRefreshScheduleWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeRefreshScheduleWithContext(arg0 aws.Context, arg1 *quicksight.DescribeRefreshScheduleInput, arg2 ...request.Option) (*quicksight.DescribeRefreshScheduleOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeRefreshScheduleWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeRefreshScheduleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeRefreshScheduleWithContext indicates an expected call of DescribeRefreshScheduleWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeRefreshScheduleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRefreshScheduleWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeRefreshScheduleWithContext), varargs...) +} + +// DescribeRoleCustomPermission mocks base method. +func (m *MockQuickSightAPI) DescribeRoleCustomPermission(arg0 *quicksight.DescribeRoleCustomPermissionInput) (*quicksight.DescribeRoleCustomPermissionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeRoleCustomPermission", arg0) + ret0, _ := ret[0].(*quicksight.DescribeRoleCustomPermissionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeRoleCustomPermission indicates an expected call of DescribeRoleCustomPermission. +func (mr *MockQuickSightAPIMockRecorder) DescribeRoleCustomPermission(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRoleCustomPermission", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeRoleCustomPermission), arg0) +} + +// DescribeRoleCustomPermissionRequest mocks base method. +func (m *MockQuickSightAPI) DescribeRoleCustomPermissionRequest(arg0 *quicksight.DescribeRoleCustomPermissionInput) (*request.Request, *quicksight.DescribeRoleCustomPermissionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeRoleCustomPermissionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeRoleCustomPermissionOutput) + return ret0, ret1 +} + +// DescribeRoleCustomPermissionRequest indicates an expected call of DescribeRoleCustomPermissionRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeRoleCustomPermissionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRoleCustomPermissionRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeRoleCustomPermissionRequest), arg0) +} + +// DescribeRoleCustomPermissionWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeRoleCustomPermissionWithContext(arg0 aws.Context, arg1 *quicksight.DescribeRoleCustomPermissionInput, arg2 ...request.Option) (*quicksight.DescribeRoleCustomPermissionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeRoleCustomPermissionWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeRoleCustomPermissionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeRoleCustomPermissionWithContext indicates an expected call of DescribeRoleCustomPermissionWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeRoleCustomPermissionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRoleCustomPermissionWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeRoleCustomPermissionWithContext), varargs...) +} + +// DescribeTemplate mocks base method. +func (m *MockQuickSightAPI) DescribeTemplate(arg0 *quicksight.DescribeTemplateInput) (*quicksight.DescribeTemplateOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTemplate", arg0) + ret0, _ := ret[0].(*quicksight.DescribeTemplateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTemplate indicates an expected call of DescribeTemplate. +func (mr *MockQuickSightAPIMockRecorder) DescribeTemplate(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTemplate", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeTemplate), arg0) +} + +// DescribeTemplateAlias mocks base method. +func (m *MockQuickSightAPI) DescribeTemplateAlias(arg0 *quicksight.DescribeTemplateAliasInput) (*quicksight.DescribeTemplateAliasOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTemplateAlias", arg0) + ret0, _ := ret[0].(*quicksight.DescribeTemplateAliasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTemplateAlias indicates an expected call of DescribeTemplateAlias. +func (mr *MockQuickSightAPIMockRecorder) DescribeTemplateAlias(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTemplateAlias", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeTemplateAlias), arg0) +} + +// DescribeTemplateAliasRequest mocks base method. +func (m *MockQuickSightAPI) DescribeTemplateAliasRequest(arg0 *quicksight.DescribeTemplateAliasInput) (*request.Request, *quicksight.DescribeTemplateAliasOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTemplateAliasRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeTemplateAliasOutput) + return ret0, ret1 +} + +// DescribeTemplateAliasRequest indicates an expected call of DescribeTemplateAliasRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeTemplateAliasRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTemplateAliasRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeTemplateAliasRequest), arg0) +} + +// DescribeTemplateAliasWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeTemplateAliasWithContext(arg0 aws.Context, arg1 *quicksight.DescribeTemplateAliasInput, arg2 ...request.Option) (*quicksight.DescribeTemplateAliasOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeTemplateAliasWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeTemplateAliasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTemplateAliasWithContext indicates an expected call of DescribeTemplateAliasWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeTemplateAliasWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTemplateAliasWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeTemplateAliasWithContext), varargs...) +} + +// DescribeTemplateDefinition mocks base method. +func (m *MockQuickSightAPI) DescribeTemplateDefinition(arg0 *quicksight.DescribeTemplateDefinitionInput) (*quicksight.DescribeTemplateDefinitionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTemplateDefinition", arg0) + ret0, _ := ret[0].(*quicksight.DescribeTemplateDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTemplateDefinition indicates an expected call of DescribeTemplateDefinition. +func (mr *MockQuickSightAPIMockRecorder) DescribeTemplateDefinition(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTemplateDefinition", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeTemplateDefinition), arg0) +} + +// DescribeTemplateDefinitionRequest mocks base method. +func (m *MockQuickSightAPI) DescribeTemplateDefinitionRequest(arg0 *quicksight.DescribeTemplateDefinitionInput) (*request.Request, *quicksight.DescribeTemplateDefinitionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTemplateDefinitionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeTemplateDefinitionOutput) + return ret0, ret1 +} + +// DescribeTemplateDefinitionRequest indicates an expected call of DescribeTemplateDefinitionRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeTemplateDefinitionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTemplateDefinitionRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeTemplateDefinitionRequest), arg0) +} + +// DescribeTemplateDefinitionWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeTemplateDefinitionWithContext(arg0 aws.Context, arg1 *quicksight.DescribeTemplateDefinitionInput, arg2 ...request.Option) (*quicksight.DescribeTemplateDefinitionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeTemplateDefinitionWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeTemplateDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTemplateDefinitionWithContext indicates an expected call of DescribeTemplateDefinitionWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeTemplateDefinitionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTemplateDefinitionWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeTemplateDefinitionWithContext), varargs...) +} + +// DescribeTemplatePermissions mocks base method. +func (m *MockQuickSightAPI) DescribeTemplatePermissions(arg0 *quicksight.DescribeTemplatePermissionsInput) (*quicksight.DescribeTemplatePermissionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTemplatePermissions", arg0) + ret0, _ := ret[0].(*quicksight.DescribeTemplatePermissionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTemplatePermissions indicates an expected call of DescribeTemplatePermissions. +func (mr *MockQuickSightAPIMockRecorder) DescribeTemplatePermissions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTemplatePermissions", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeTemplatePermissions), arg0) +} + +// DescribeTemplatePermissionsRequest mocks base method. +func (m *MockQuickSightAPI) DescribeTemplatePermissionsRequest(arg0 *quicksight.DescribeTemplatePermissionsInput) (*request.Request, *quicksight.DescribeTemplatePermissionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTemplatePermissionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeTemplatePermissionsOutput) + return ret0, ret1 +} + +// DescribeTemplatePermissionsRequest indicates an expected call of DescribeTemplatePermissionsRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeTemplatePermissionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTemplatePermissionsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeTemplatePermissionsRequest), arg0) +} + +// DescribeTemplatePermissionsWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeTemplatePermissionsWithContext(arg0 aws.Context, arg1 *quicksight.DescribeTemplatePermissionsInput, arg2 ...request.Option) (*quicksight.DescribeTemplatePermissionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeTemplatePermissionsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeTemplatePermissionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTemplatePermissionsWithContext indicates an expected call of DescribeTemplatePermissionsWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeTemplatePermissionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTemplatePermissionsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeTemplatePermissionsWithContext), varargs...) +} + +// DescribeTemplateRequest mocks base method. +func (m *MockQuickSightAPI) DescribeTemplateRequest(arg0 *quicksight.DescribeTemplateInput) (*request.Request, *quicksight.DescribeTemplateOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTemplateRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeTemplateOutput) + return ret0, ret1 +} + +// DescribeTemplateRequest indicates an expected call of DescribeTemplateRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeTemplateRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTemplateRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeTemplateRequest), arg0) +} + +// DescribeTemplateWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeTemplateWithContext(arg0 aws.Context, arg1 *quicksight.DescribeTemplateInput, arg2 ...request.Option) (*quicksight.DescribeTemplateOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeTemplateWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeTemplateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTemplateWithContext indicates an expected call of DescribeTemplateWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeTemplateWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTemplateWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeTemplateWithContext), varargs...) +} + +// DescribeTheme mocks base method. +func (m *MockQuickSightAPI) DescribeTheme(arg0 *quicksight.DescribeThemeInput) (*quicksight.DescribeThemeOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTheme", arg0) + ret0, _ := ret[0].(*quicksight.DescribeThemeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTheme indicates an expected call of DescribeTheme. +func (mr *MockQuickSightAPIMockRecorder) DescribeTheme(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTheme", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeTheme), arg0) +} + +// DescribeThemeAlias mocks base method. +func (m *MockQuickSightAPI) DescribeThemeAlias(arg0 *quicksight.DescribeThemeAliasInput) (*quicksight.DescribeThemeAliasOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeThemeAlias", arg0) + ret0, _ := ret[0].(*quicksight.DescribeThemeAliasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeThemeAlias indicates an expected call of DescribeThemeAlias. +func (mr *MockQuickSightAPIMockRecorder) DescribeThemeAlias(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeThemeAlias", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeThemeAlias), arg0) +} + +// DescribeThemeAliasRequest mocks base method. +func (m *MockQuickSightAPI) DescribeThemeAliasRequest(arg0 *quicksight.DescribeThemeAliasInput) (*request.Request, *quicksight.DescribeThemeAliasOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeThemeAliasRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeThemeAliasOutput) + return ret0, ret1 +} + +// DescribeThemeAliasRequest indicates an expected call of DescribeThemeAliasRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeThemeAliasRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeThemeAliasRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeThemeAliasRequest), arg0) +} + +// DescribeThemeAliasWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeThemeAliasWithContext(arg0 aws.Context, arg1 *quicksight.DescribeThemeAliasInput, arg2 ...request.Option) (*quicksight.DescribeThemeAliasOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeThemeAliasWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeThemeAliasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeThemeAliasWithContext indicates an expected call of DescribeThemeAliasWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeThemeAliasWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeThemeAliasWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeThemeAliasWithContext), varargs...) +} + +// DescribeThemePermissions mocks base method. +func (m *MockQuickSightAPI) DescribeThemePermissions(arg0 *quicksight.DescribeThemePermissionsInput) (*quicksight.DescribeThemePermissionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeThemePermissions", arg0) + ret0, _ := ret[0].(*quicksight.DescribeThemePermissionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeThemePermissions indicates an expected call of DescribeThemePermissions. +func (mr *MockQuickSightAPIMockRecorder) DescribeThemePermissions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeThemePermissions", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeThemePermissions), arg0) +} + +// DescribeThemePermissionsRequest mocks base method. +func (m *MockQuickSightAPI) DescribeThemePermissionsRequest(arg0 *quicksight.DescribeThemePermissionsInput) (*request.Request, *quicksight.DescribeThemePermissionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeThemePermissionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeThemePermissionsOutput) + return ret0, ret1 +} + +// DescribeThemePermissionsRequest indicates an expected call of DescribeThemePermissionsRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeThemePermissionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeThemePermissionsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeThemePermissionsRequest), arg0) +} + +// DescribeThemePermissionsWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeThemePermissionsWithContext(arg0 aws.Context, arg1 *quicksight.DescribeThemePermissionsInput, arg2 ...request.Option) (*quicksight.DescribeThemePermissionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeThemePermissionsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeThemePermissionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeThemePermissionsWithContext indicates an expected call of DescribeThemePermissionsWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeThemePermissionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeThemePermissionsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeThemePermissionsWithContext), varargs...) +} + +// DescribeThemeRequest mocks base method. +func (m *MockQuickSightAPI) DescribeThemeRequest(arg0 *quicksight.DescribeThemeInput) (*request.Request, *quicksight.DescribeThemeOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeThemeRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeThemeOutput) + return ret0, ret1 +} + +// DescribeThemeRequest indicates an expected call of DescribeThemeRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeThemeRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeThemeRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeThemeRequest), arg0) +} + +// DescribeThemeWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeThemeWithContext(arg0 aws.Context, arg1 *quicksight.DescribeThemeInput, arg2 ...request.Option) (*quicksight.DescribeThemeOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeThemeWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeThemeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeThemeWithContext indicates an expected call of DescribeThemeWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeThemeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeThemeWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeThemeWithContext), varargs...) +} + +// DescribeTopic mocks base method. +func (m *MockQuickSightAPI) DescribeTopic(arg0 *quicksight.DescribeTopicInput) (*quicksight.DescribeTopicOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTopic", arg0) + ret0, _ := ret[0].(*quicksight.DescribeTopicOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTopic indicates an expected call of DescribeTopic. +func (mr *MockQuickSightAPIMockRecorder) DescribeTopic(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTopic", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeTopic), arg0) +} + +// DescribeTopicPermissions mocks base method. +func (m *MockQuickSightAPI) DescribeTopicPermissions(arg0 *quicksight.DescribeTopicPermissionsInput) (*quicksight.DescribeTopicPermissionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTopicPermissions", arg0) + ret0, _ := ret[0].(*quicksight.DescribeTopicPermissionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTopicPermissions indicates an expected call of DescribeTopicPermissions. +func (mr *MockQuickSightAPIMockRecorder) DescribeTopicPermissions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTopicPermissions", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeTopicPermissions), arg0) +} + +// DescribeTopicPermissionsRequest mocks base method. +func (m *MockQuickSightAPI) DescribeTopicPermissionsRequest(arg0 *quicksight.DescribeTopicPermissionsInput) (*request.Request, *quicksight.DescribeTopicPermissionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTopicPermissionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeTopicPermissionsOutput) + return ret0, ret1 +} + +// DescribeTopicPermissionsRequest indicates an expected call of DescribeTopicPermissionsRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeTopicPermissionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTopicPermissionsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeTopicPermissionsRequest), arg0) +} + +// DescribeTopicPermissionsWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeTopicPermissionsWithContext(arg0 aws.Context, arg1 *quicksight.DescribeTopicPermissionsInput, arg2 ...request.Option) (*quicksight.DescribeTopicPermissionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeTopicPermissionsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeTopicPermissionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTopicPermissionsWithContext indicates an expected call of DescribeTopicPermissionsWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeTopicPermissionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTopicPermissionsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeTopicPermissionsWithContext), varargs...) +} + +// DescribeTopicRefresh mocks base method. +func (m *MockQuickSightAPI) DescribeTopicRefresh(arg0 *quicksight.DescribeTopicRefreshInput) (*quicksight.DescribeTopicRefreshOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTopicRefresh", arg0) + ret0, _ := ret[0].(*quicksight.DescribeTopicRefreshOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTopicRefresh indicates an expected call of DescribeTopicRefresh. +func (mr *MockQuickSightAPIMockRecorder) DescribeTopicRefresh(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTopicRefresh", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeTopicRefresh), arg0) +} + +// DescribeTopicRefreshRequest mocks base method. +func (m *MockQuickSightAPI) DescribeTopicRefreshRequest(arg0 *quicksight.DescribeTopicRefreshInput) (*request.Request, *quicksight.DescribeTopicRefreshOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTopicRefreshRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeTopicRefreshOutput) + return ret0, ret1 +} + +// DescribeTopicRefreshRequest indicates an expected call of DescribeTopicRefreshRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeTopicRefreshRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTopicRefreshRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeTopicRefreshRequest), arg0) +} + +// DescribeTopicRefreshSchedule mocks base method. +func (m *MockQuickSightAPI) DescribeTopicRefreshSchedule(arg0 *quicksight.DescribeTopicRefreshScheduleInput) (*quicksight.DescribeTopicRefreshScheduleOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTopicRefreshSchedule", arg0) + ret0, _ := ret[0].(*quicksight.DescribeTopicRefreshScheduleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTopicRefreshSchedule indicates an expected call of DescribeTopicRefreshSchedule. +func (mr *MockQuickSightAPIMockRecorder) DescribeTopicRefreshSchedule(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTopicRefreshSchedule", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeTopicRefreshSchedule), arg0) +} + +// DescribeTopicRefreshScheduleRequest mocks base method. +func (m *MockQuickSightAPI) DescribeTopicRefreshScheduleRequest(arg0 *quicksight.DescribeTopicRefreshScheduleInput) (*request.Request, *quicksight.DescribeTopicRefreshScheduleOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTopicRefreshScheduleRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeTopicRefreshScheduleOutput) + return ret0, ret1 +} + +// DescribeTopicRefreshScheduleRequest indicates an expected call of DescribeTopicRefreshScheduleRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeTopicRefreshScheduleRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTopicRefreshScheduleRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeTopicRefreshScheduleRequest), arg0) +} + +// DescribeTopicRefreshScheduleWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeTopicRefreshScheduleWithContext(arg0 aws.Context, arg1 *quicksight.DescribeTopicRefreshScheduleInput, arg2 ...request.Option) (*quicksight.DescribeTopicRefreshScheduleOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeTopicRefreshScheduleWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeTopicRefreshScheduleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTopicRefreshScheduleWithContext indicates an expected call of DescribeTopicRefreshScheduleWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeTopicRefreshScheduleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTopicRefreshScheduleWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeTopicRefreshScheduleWithContext), varargs...) +} + +// DescribeTopicRefreshWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeTopicRefreshWithContext(arg0 aws.Context, arg1 *quicksight.DescribeTopicRefreshInput, arg2 ...request.Option) (*quicksight.DescribeTopicRefreshOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeTopicRefreshWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeTopicRefreshOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTopicRefreshWithContext indicates an expected call of DescribeTopicRefreshWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeTopicRefreshWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTopicRefreshWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeTopicRefreshWithContext), varargs...) +} + +// DescribeTopicRequest mocks base method. +func (m *MockQuickSightAPI) DescribeTopicRequest(arg0 *quicksight.DescribeTopicInput) (*request.Request, *quicksight.DescribeTopicOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTopicRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeTopicOutput) + return ret0, ret1 +} + +// DescribeTopicRequest indicates an expected call of DescribeTopicRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeTopicRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTopicRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeTopicRequest), arg0) +} + +// DescribeTopicWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeTopicWithContext(arg0 aws.Context, arg1 *quicksight.DescribeTopicInput, arg2 ...request.Option) (*quicksight.DescribeTopicOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeTopicWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeTopicOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTopicWithContext indicates an expected call of DescribeTopicWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeTopicWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTopicWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeTopicWithContext), varargs...) +} + +// DescribeUser mocks base method. +func (m *MockQuickSightAPI) DescribeUser(arg0 *quicksight.DescribeUserInput) (*quicksight.DescribeUserOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeUser", arg0) + ret0, _ := ret[0].(*quicksight.DescribeUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeUser indicates an expected call of DescribeUser. +func (mr *MockQuickSightAPIMockRecorder) DescribeUser(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeUser", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeUser), arg0) +} + +// DescribeUserRequest mocks base method. +func (m *MockQuickSightAPI) DescribeUserRequest(arg0 *quicksight.DescribeUserInput) (*request.Request, *quicksight.DescribeUserOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeUserRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeUserOutput) + return ret0, ret1 +} + +// DescribeUserRequest indicates an expected call of DescribeUserRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeUserRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeUserRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeUserRequest), arg0) +} + +// DescribeUserWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeUserWithContext(arg0 aws.Context, arg1 *quicksight.DescribeUserInput, arg2 ...request.Option) (*quicksight.DescribeUserOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeUserWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeUserWithContext indicates an expected call of DescribeUserWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeUserWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeUserWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeUserWithContext), varargs...) +} + +// DescribeVPCConnection mocks base method. +func (m *MockQuickSightAPI) DescribeVPCConnection(arg0 *quicksight.DescribeVPCConnectionInput) (*quicksight.DescribeVPCConnectionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeVPCConnection", arg0) + ret0, _ := ret[0].(*quicksight.DescribeVPCConnectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeVPCConnection indicates an expected call of DescribeVPCConnection. +func (mr *MockQuickSightAPIMockRecorder) DescribeVPCConnection(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeVPCConnection", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeVPCConnection), arg0) +} + +// DescribeVPCConnectionRequest mocks base method. +func (m *MockQuickSightAPI) DescribeVPCConnectionRequest(arg0 *quicksight.DescribeVPCConnectionInput) (*request.Request, *quicksight.DescribeVPCConnectionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeVPCConnectionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeVPCConnectionOutput) + return ret0, ret1 +} + +// DescribeVPCConnectionRequest indicates an expected call of DescribeVPCConnectionRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeVPCConnectionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeVPCConnectionRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeVPCConnectionRequest), arg0) +} + +// DescribeVPCConnectionWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeVPCConnectionWithContext(arg0 aws.Context, arg1 *quicksight.DescribeVPCConnectionInput, arg2 ...request.Option) (*quicksight.DescribeVPCConnectionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeVPCConnectionWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeVPCConnectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeVPCConnectionWithContext indicates an expected call of DescribeVPCConnectionWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeVPCConnectionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeVPCConnectionWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeVPCConnectionWithContext), varargs...) +} + +// GenerateEmbedUrlForAnonymousUser mocks base method. +func (m *MockQuickSightAPI) GenerateEmbedUrlForAnonymousUser(arg0 *quicksight.GenerateEmbedUrlForAnonymousUserInput) (*quicksight.GenerateEmbedUrlForAnonymousUserOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GenerateEmbedUrlForAnonymousUser", arg0) + ret0, _ := ret[0].(*quicksight.GenerateEmbedUrlForAnonymousUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GenerateEmbedUrlForAnonymousUser indicates an expected call of GenerateEmbedUrlForAnonymousUser. +func (mr *MockQuickSightAPIMockRecorder) GenerateEmbedUrlForAnonymousUser(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateEmbedUrlForAnonymousUser", reflect.TypeOf((*MockQuickSightAPI)(nil).GenerateEmbedUrlForAnonymousUser), arg0) +} + +// GenerateEmbedUrlForAnonymousUserRequest mocks base method. +func (m *MockQuickSightAPI) GenerateEmbedUrlForAnonymousUserRequest(arg0 *quicksight.GenerateEmbedUrlForAnonymousUserInput) (*request.Request, *quicksight.GenerateEmbedUrlForAnonymousUserOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GenerateEmbedUrlForAnonymousUserRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.GenerateEmbedUrlForAnonymousUserOutput) + return ret0, ret1 +} + +// GenerateEmbedUrlForAnonymousUserRequest indicates an expected call of GenerateEmbedUrlForAnonymousUserRequest. +func (mr *MockQuickSightAPIMockRecorder) GenerateEmbedUrlForAnonymousUserRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateEmbedUrlForAnonymousUserRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).GenerateEmbedUrlForAnonymousUserRequest), arg0) +} + +// GenerateEmbedUrlForAnonymousUserWithContext mocks base method. +func (m *MockQuickSightAPI) GenerateEmbedUrlForAnonymousUserWithContext(arg0 aws.Context, arg1 *quicksight.GenerateEmbedUrlForAnonymousUserInput, arg2 ...request.Option) (*quicksight.GenerateEmbedUrlForAnonymousUserOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GenerateEmbedUrlForAnonymousUserWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.GenerateEmbedUrlForAnonymousUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GenerateEmbedUrlForAnonymousUserWithContext indicates an expected call of GenerateEmbedUrlForAnonymousUserWithContext. +func (mr *MockQuickSightAPIMockRecorder) GenerateEmbedUrlForAnonymousUserWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateEmbedUrlForAnonymousUserWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).GenerateEmbedUrlForAnonymousUserWithContext), varargs...) +} + +// GenerateEmbedUrlForRegisteredUser mocks base method. +func (m *MockQuickSightAPI) GenerateEmbedUrlForRegisteredUser(arg0 *quicksight.GenerateEmbedUrlForRegisteredUserInput) (*quicksight.GenerateEmbedUrlForRegisteredUserOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GenerateEmbedUrlForRegisteredUser", arg0) + ret0, _ := ret[0].(*quicksight.GenerateEmbedUrlForRegisteredUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GenerateEmbedUrlForRegisteredUser indicates an expected call of GenerateEmbedUrlForRegisteredUser. +func (mr *MockQuickSightAPIMockRecorder) GenerateEmbedUrlForRegisteredUser(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateEmbedUrlForRegisteredUser", reflect.TypeOf((*MockQuickSightAPI)(nil).GenerateEmbedUrlForRegisteredUser), arg0) +} + +// GenerateEmbedUrlForRegisteredUserRequest mocks base method. +func (m *MockQuickSightAPI) GenerateEmbedUrlForRegisteredUserRequest(arg0 *quicksight.GenerateEmbedUrlForRegisteredUserInput) (*request.Request, *quicksight.GenerateEmbedUrlForRegisteredUserOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GenerateEmbedUrlForRegisteredUserRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.GenerateEmbedUrlForRegisteredUserOutput) + return ret0, ret1 +} + +// GenerateEmbedUrlForRegisteredUserRequest indicates an expected call of GenerateEmbedUrlForRegisteredUserRequest. +func (mr *MockQuickSightAPIMockRecorder) GenerateEmbedUrlForRegisteredUserRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateEmbedUrlForRegisteredUserRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).GenerateEmbedUrlForRegisteredUserRequest), arg0) +} + +// GenerateEmbedUrlForRegisteredUserWithContext mocks base method. +func (m *MockQuickSightAPI) GenerateEmbedUrlForRegisteredUserWithContext(arg0 aws.Context, arg1 *quicksight.GenerateEmbedUrlForRegisteredUserInput, arg2 ...request.Option) (*quicksight.GenerateEmbedUrlForRegisteredUserOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GenerateEmbedUrlForRegisteredUserWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.GenerateEmbedUrlForRegisteredUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GenerateEmbedUrlForRegisteredUserWithContext indicates an expected call of GenerateEmbedUrlForRegisteredUserWithContext. +func (mr *MockQuickSightAPIMockRecorder) GenerateEmbedUrlForRegisteredUserWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateEmbedUrlForRegisteredUserWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).GenerateEmbedUrlForRegisteredUserWithContext), varargs...) +} + +// GetDashboardEmbedUrl mocks base method. +func (m *MockQuickSightAPI) GetDashboardEmbedUrl(arg0 *quicksight.GetDashboardEmbedUrlInput) (*quicksight.GetDashboardEmbedUrlOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetDashboardEmbedUrl", arg0) + ret0, _ := ret[0].(*quicksight.GetDashboardEmbedUrlOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetDashboardEmbedUrl indicates an expected call of GetDashboardEmbedUrl. +func (mr *MockQuickSightAPIMockRecorder) GetDashboardEmbedUrl(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDashboardEmbedUrl", reflect.TypeOf((*MockQuickSightAPI)(nil).GetDashboardEmbedUrl), arg0) +} + +// GetDashboardEmbedUrlRequest mocks base method. +func (m *MockQuickSightAPI) GetDashboardEmbedUrlRequest(arg0 *quicksight.GetDashboardEmbedUrlInput) (*request.Request, *quicksight.GetDashboardEmbedUrlOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetDashboardEmbedUrlRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.GetDashboardEmbedUrlOutput) + return ret0, ret1 +} + +// GetDashboardEmbedUrlRequest indicates an expected call of GetDashboardEmbedUrlRequest. +func (mr *MockQuickSightAPIMockRecorder) GetDashboardEmbedUrlRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDashboardEmbedUrlRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).GetDashboardEmbedUrlRequest), arg0) +} + +// GetDashboardEmbedUrlWithContext mocks base method. +func (m *MockQuickSightAPI) GetDashboardEmbedUrlWithContext(arg0 aws.Context, arg1 *quicksight.GetDashboardEmbedUrlInput, arg2 ...request.Option) (*quicksight.GetDashboardEmbedUrlOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetDashboardEmbedUrlWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.GetDashboardEmbedUrlOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetDashboardEmbedUrlWithContext indicates an expected call of GetDashboardEmbedUrlWithContext. +func (mr *MockQuickSightAPIMockRecorder) GetDashboardEmbedUrlWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDashboardEmbedUrlWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).GetDashboardEmbedUrlWithContext), varargs...) +} + +// GetSessionEmbedUrl mocks base method. +func (m *MockQuickSightAPI) GetSessionEmbedUrl(arg0 *quicksight.GetSessionEmbedUrlInput) (*quicksight.GetSessionEmbedUrlOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetSessionEmbedUrl", arg0) + ret0, _ := ret[0].(*quicksight.GetSessionEmbedUrlOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetSessionEmbedUrl indicates an expected call of GetSessionEmbedUrl. +func (mr *MockQuickSightAPIMockRecorder) GetSessionEmbedUrl(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSessionEmbedUrl", reflect.TypeOf((*MockQuickSightAPI)(nil).GetSessionEmbedUrl), arg0) +} + +// GetSessionEmbedUrlRequest mocks base method. +func (m *MockQuickSightAPI) GetSessionEmbedUrlRequest(arg0 *quicksight.GetSessionEmbedUrlInput) (*request.Request, *quicksight.GetSessionEmbedUrlOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetSessionEmbedUrlRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.GetSessionEmbedUrlOutput) + return ret0, ret1 +} + +// GetSessionEmbedUrlRequest indicates an expected call of GetSessionEmbedUrlRequest. +func (mr *MockQuickSightAPIMockRecorder) GetSessionEmbedUrlRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSessionEmbedUrlRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).GetSessionEmbedUrlRequest), arg0) +} + +// GetSessionEmbedUrlWithContext mocks base method. +func (m *MockQuickSightAPI) GetSessionEmbedUrlWithContext(arg0 aws.Context, arg1 *quicksight.GetSessionEmbedUrlInput, arg2 ...request.Option) (*quicksight.GetSessionEmbedUrlOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetSessionEmbedUrlWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.GetSessionEmbedUrlOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetSessionEmbedUrlWithContext indicates an expected call of GetSessionEmbedUrlWithContext. +func (mr *MockQuickSightAPIMockRecorder) GetSessionEmbedUrlWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSessionEmbedUrlWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).GetSessionEmbedUrlWithContext), varargs...) +} + +// ListAnalyses mocks base method. +func (m *MockQuickSightAPI) ListAnalyses(arg0 *quicksight.ListAnalysesInput) (*quicksight.ListAnalysesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAnalyses", arg0) + ret0, _ := ret[0].(*quicksight.ListAnalysesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAnalyses indicates an expected call of ListAnalyses. +func (mr *MockQuickSightAPIMockRecorder) ListAnalyses(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAnalyses", reflect.TypeOf((*MockQuickSightAPI)(nil).ListAnalyses), arg0) +} + +// ListAnalysesPages mocks base method. +func (m *MockQuickSightAPI) ListAnalysesPages(arg0 *quicksight.ListAnalysesInput, arg1 func(*quicksight.ListAnalysesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAnalysesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListAnalysesPages indicates an expected call of ListAnalysesPages. +func (mr *MockQuickSightAPIMockRecorder) ListAnalysesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAnalysesPages", reflect.TypeOf((*MockQuickSightAPI)(nil).ListAnalysesPages), arg0, arg1) +} + +// ListAnalysesPagesWithContext mocks base method. +func (m *MockQuickSightAPI) ListAnalysesPagesWithContext(arg0 aws.Context, arg1 *quicksight.ListAnalysesInput, arg2 func(*quicksight.ListAnalysesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAnalysesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListAnalysesPagesWithContext indicates an expected call of ListAnalysesPagesWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListAnalysesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAnalysesPagesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListAnalysesPagesWithContext), varargs...) +} + +// ListAnalysesRequest mocks base method. +func (m *MockQuickSightAPI) ListAnalysesRequest(arg0 *quicksight.ListAnalysesInput) (*request.Request, *quicksight.ListAnalysesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAnalysesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.ListAnalysesOutput) + return ret0, ret1 +} + +// ListAnalysesRequest indicates an expected call of ListAnalysesRequest. +func (mr *MockQuickSightAPIMockRecorder) ListAnalysesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAnalysesRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).ListAnalysesRequest), arg0) +} + +// ListAnalysesWithContext mocks base method. +func (m *MockQuickSightAPI) ListAnalysesWithContext(arg0 aws.Context, arg1 *quicksight.ListAnalysesInput, arg2 ...request.Option) (*quicksight.ListAnalysesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAnalysesWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.ListAnalysesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAnalysesWithContext indicates an expected call of ListAnalysesWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListAnalysesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAnalysesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListAnalysesWithContext), varargs...) +} + +// ListAssetBundleExportJobs mocks base method. +func (m *MockQuickSightAPI) ListAssetBundleExportJobs(arg0 *quicksight.ListAssetBundleExportJobsInput) (*quicksight.ListAssetBundleExportJobsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAssetBundleExportJobs", arg0) + ret0, _ := ret[0].(*quicksight.ListAssetBundleExportJobsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAssetBundleExportJobs indicates an expected call of ListAssetBundleExportJobs. +func (mr *MockQuickSightAPIMockRecorder) ListAssetBundleExportJobs(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAssetBundleExportJobs", reflect.TypeOf((*MockQuickSightAPI)(nil).ListAssetBundleExportJobs), arg0) +} + +// ListAssetBundleExportJobsPages mocks base method. +func (m *MockQuickSightAPI) ListAssetBundleExportJobsPages(arg0 *quicksight.ListAssetBundleExportJobsInput, arg1 func(*quicksight.ListAssetBundleExportJobsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAssetBundleExportJobsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListAssetBundleExportJobsPages indicates an expected call of ListAssetBundleExportJobsPages. +func (mr *MockQuickSightAPIMockRecorder) ListAssetBundleExportJobsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAssetBundleExportJobsPages", reflect.TypeOf((*MockQuickSightAPI)(nil).ListAssetBundleExportJobsPages), arg0, arg1) +} + +// ListAssetBundleExportJobsPagesWithContext mocks base method. +func (m *MockQuickSightAPI) ListAssetBundleExportJobsPagesWithContext(arg0 aws.Context, arg1 *quicksight.ListAssetBundleExportJobsInput, arg2 func(*quicksight.ListAssetBundleExportJobsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAssetBundleExportJobsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListAssetBundleExportJobsPagesWithContext indicates an expected call of ListAssetBundleExportJobsPagesWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListAssetBundleExportJobsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAssetBundleExportJobsPagesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListAssetBundleExportJobsPagesWithContext), varargs...) +} + +// ListAssetBundleExportJobsRequest mocks base method. +func (m *MockQuickSightAPI) ListAssetBundleExportJobsRequest(arg0 *quicksight.ListAssetBundleExportJobsInput) (*request.Request, *quicksight.ListAssetBundleExportJobsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAssetBundleExportJobsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.ListAssetBundleExportJobsOutput) + return ret0, ret1 +} + +// ListAssetBundleExportJobsRequest indicates an expected call of ListAssetBundleExportJobsRequest. +func (mr *MockQuickSightAPIMockRecorder) ListAssetBundleExportJobsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAssetBundleExportJobsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).ListAssetBundleExportJobsRequest), arg0) +} + +// ListAssetBundleExportJobsWithContext mocks base method. +func (m *MockQuickSightAPI) ListAssetBundleExportJobsWithContext(arg0 aws.Context, arg1 *quicksight.ListAssetBundleExportJobsInput, arg2 ...request.Option) (*quicksight.ListAssetBundleExportJobsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAssetBundleExportJobsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.ListAssetBundleExportJobsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAssetBundleExportJobsWithContext indicates an expected call of ListAssetBundleExportJobsWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListAssetBundleExportJobsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAssetBundleExportJobsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListAssetBundleExportJobsWithContext), varargs...) +} + +// ListAssetBundleImportJobs mocks base method. +func (m *MockQuickSightAPI) ListAssetBundleImportJobs(arg0 *quicksight.ListAssetBundleImportJobsInput) (*quicksight.ListAssetBundleImportJobsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAssetBundleImportJobs", arg0) + ret0, _ := ret[0].(*quicksight.ListAssetBundleImportJobsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAssetBundleImportJobs indicates an expected call of ListAssetBundleImportJobs. +func (mr *MockQuickSightAPIMockRecorder) ListAssetBundleImportJobs(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAssetBundleImportJobs", reflect.TypeOf((*MockQuickSightAPI)(nil).ListAssetBundleImportJobs), arg0) +} + +// ListAssetBundleImportJobsPages mocks base method. +func (m *MockQuickSightAPI) ListAssetBundleImportJobsPages(arg0 *quicksight.ListAssetBundleImportJobsInput, arg1 func(*quicksight.ListAssetBundleImportJobsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAssetBundleImportJobsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListAssetBundleImportJobsPages indicates an expected call of ListAssetBundleImportJobsPages. +func (mr *MockQuickSightAPIMockRecorder) ListAssetBundleImportJobsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAssetBundleImportJobsPages", reflect.TypeOf((*MockQuickSightAPI)(nil).ListAssetBundleImportJobsPages), arg0, arg1) +} + +// ListAssetBundleImportJobsPagesWithContext mocks base method. +func (m *MockQuickSightAPI) ListAssetBundleImportJobsPagesWithContext(arg0 aws.Context, arg1 *quicksight.ListAssetBundleImportJobsInput, arg2 func(*quicksight.ListAssetBundleImportJobsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAssetBundleImportJobsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListAssetBundleImportJobsPagesWithContext indicates an expected call of ListAssetBundleImportJobsPagesWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListAssetBundleImportJobsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAssetBundleImportJobsPagesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListAssetBundleImportJobsPagesWithContext), varargs...) +} + +// ListAssetBundleImportJobsRequest mocks base method. +func (m *MockQuickSightAPI) ListAssetBundleImportJobsRequest(arg0 *quicksight.ListAssetBundleImportJobsInput) (*request.Request, *quicksight.ListAssetBundleImportJobsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAssetBundleImportJobsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.ListAssetBundleImportJobsOutput) + return ret0, ret1 +} + +// ListAssetBundleImportJobsRequest indicates an expected call of ListAssetBundleImportJobsRequest. +func (mr *MockQuickSightAPIMockRecorder) ListAssetBundleImportJobsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAssetBundleImportJobsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).ListAssetBundleImportJobsRequest), arg0) +} + +// ListAssetBundleImportJobsWithContext mocks base method. +func (m *MockQuickSightAPI) ListAssetBundleImportJobsWithContext(arg0 aws.Context, arg1 *quicksight.ListAssetBundleImportJobsInput, arg2 ...request.Option) (*quicksight.ListAssetBundleImportJobsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAssetBundleImportJobsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.ListAssetBundleImportJobsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAssetBundleImportJobsWithContext indicates an expected call of ListAssetBundleImportJobsWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListAssetBundleImportJobsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAssetBundleImportJobsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListAssetBundleImportJobsWithContext), varargs...) +} + +// ListDashboardVersions mocks base method. +func (m *MockQuickSightAPI) ListDashboardVersions(arg0 *quicksight.ListDashboardVersionsInput) (*quicksight.ListDashboardVersionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDashboardVersions", arg0) + ret0, _ := ret[0].(*quicksight.ListDashboardVersionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListDashboardVersions indicates an expected call of ListDashboardVersions. +func (mr *MockQuickSightAPIMockRecorder) ListDashboardVersions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDashboardVersions", reflect.TypeOf((*MockQuickSightAPI)(nil).ListDashboardVersions), arg0) +} + +// ListDashboardVersionsPages mocks base method. +func (m *MockQuickSightAPI) ListDashboardVersionsPages(arg0 *quicksight.ListDashboardVersionsInput, arg1 func(*quicksight.ListDashboardVersionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDashboardVersionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListDashboardVersionsPages indicates an expected call of ListDashboardVersionsPages. +func (mr *MockQuickSightAPIMockRecorder) ListDashboardVersionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDashboardVersionsPages", reflect.TypeOf((*MockQuickSightAPI)(nil).ListDashboardVersionsPages), arg0, arg1) +} + +// ListDashboardVersionsPagesWithContext mocks base method. +func (m *MockQuickSightAPI) ListDashboardVersionsPagesWithContext(arg0 aws.Context, arg1 *quicksight.ListDashboardVersionsInput, arg2 func(*quicksight.ListDashboardVersionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListDashboardVersionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListDashboardVersionsPagesWithContext indicates an expected call of ListDashboardVersionsPagesWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListDashboardVersionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDashboardVersionsPagesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListDashboardVersionsPagesWithContext), varargs...) +} + +// ListDashboardVersionsRequest mocks base method. +func (m *MockQuickSightAPI) ListDashboardVersionsRequest(arg0 *quicksight.ListDashboardVersionsInput) (*request.Request, *quicksight.ListDashboardVersionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDashboardVersionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.ListDashboardVersionsOutput) + return ret0, ret1 +} + +// ListDashboardVersionsRequest indicates an expected call of ListDashboardVersionsRequest. +func (mr *MockQuickSightAPIMockRecorder) ListDashboardVersionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDashboardVersionsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).ListDashboardVersionsRequest), arg0) +} + +// ListDashboardVersionsWithContext mocks base method. +func (m *MockQuickSightAPI) ListDashboardVersionsWithContext(arg0 aws.Context, arg1 *quicksight.ListDashboardVersionsInput, arg2 ...request.Option) (*quicksight.ListDashboardVersionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListDashboardVersionsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.ListDashboardVersionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListDashboardVersionsWithContext indicates an expected call of ListDashboardVersionsWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListDashboardVersionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDashboardVersionsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListDashboardVersionsWithContext), varargs...) +} + +// ListDashboards mocks base method. +func (m *MockQuickSightAPI) ListDashboards(arg0 *quicksight.ListDashboardsInput) (*quicksight.ListDashboardsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDashboards", arg0) + ret0, _ := ret[0].(*quicksight.ListDashboardsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListDashboards indicates an expected call of ListDashboards. +func (mr *MockQuickSightAPIMockRecorder) ListDashboards(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDashboards", reflect.TypeOf((*MockQuickSightAPI)(nil).ListDashboards), arg0) +} + +// ListDashboardsPages mocks base method. +func (m *MockQuickSightAPI) ListDashboardsPages(arg0 *quicksight.ListDashboardsInput, arg1 func(*quicksight.ListDashboardsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDashboardsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListDashboardsPages indicates an expected call of ListDashboardsPages. +func (mr *MockQuickSightAPIMockRecorder) ListDashboardsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDashboardsPages", reflect.TypeOf((*MockQuickSightAPI)(nil).ListDashboardsPages), arg0, arg1) +} + +// ListDashboardsPagesWithContext mocks base method. +func (m *MockQuickSightAPI) ListDashboardsPagesWithContext(arg0 aws.Context, arg1 *quicksight.ListDashboardsInput, arg2 func(*quicksight.ListDashboardsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListDashboardsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListDashboardsPagesWithContext indicates an expected call of ListDashboardsPagesWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListDashboardsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDashboardsPagesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListDashboardsPagesWithContext), varargs...) +} + +// ListDashboardsRequest mocks base method. +func (m *MockQuickSightAPI) ListDashboardsRequest(arg0 *quicksight.ListDashboardsInput) (*request.Request, *quicksight.ListDashboardsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDashboardsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.ListDashboardsOutput) + return ret0, ret1 +} + +// ListDashboardsRequest indicates an expected call of ListDashboardsRequest. +func (mr *MockQuickSightAPIMockRecorder) ListDashboardsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDashboardsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).ListDashboardsRequest), arg0) +} + +// ListDashboardsWithContext mocks base method. +func (m *MockQuickSightAPI) ListDashboardsWithContext(arg0 aws.Context, arg1 *quicksight.ListDashboardsInput, arg2 ...request.Option) (*quicksight.ListDashboardsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListDashboardsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.ListDashboardsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListDashboardsWithContext indicates an expected call of ListDashboardsWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListDashboardsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDashboardsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListDashboardsWithContext), varargs...) +} + +// ListDataSets mocks base method. +func (m *MockQuickSightAPI) ListDataSets(arg0 *quicksight.ListDataSetsInput) (*quicksight.ListDataSetsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDataSets", arg0) + ret0, _ := ret[0].(*quicksight.ListDataSetsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListDataSets indicates an expected call of ListDataSets. +func (mr *MockQuickSightAPIMockRecorder) ListDataSets(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDataSets", reflect.TypeOf((*MockQuickSightAPI)(nil).ListDataSets), arg0) +} + +// ListDataSetsPages mocks base method. +func (m *MockQuickSightAPI) ListDataSetsPages(arg0 *quicksight.ListDataSetsInput, arg1 func(*quicksight.ListDataSetsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDataSetsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListDataSetsPages indicates an expected call of ListDataSetsPages. +func (mr *MockQuickSightAPIMockRecorder) ListDataSetsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDataSetsPages", reflect.TypeOf((*MockQuickSightAPI)(nil).ListDataSetsPages), arg0, arg1) +} + +// ListDataSetsPagesWithContext mocks base method. +func (m *MockQuickSightAPI) ListDataSetsPagesWithContext(arg0 aws.Context, arg1 *quicksight.ListDataSetsInput, arg2 func(*quicksight.ListDataSetsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListDataSetsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListDataSetsPagesWithContext indicates an expected call of ListDataSetsPagesWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListDataSetsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDataSetsPagesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListDataSetsPagesWithContext), varargs...) +} + +// ListDataSetsRequest mocks base method. +func (m *MockQuickSightAPI) ListDataSetsRequest(arg0 *quicksight.ListDataSetsInput) (*request.Request, *quicksight.ListDataSetsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDataSetsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.ListDataSetsOutput) + return ret0, ret1 +} + +// ListDataSetsRequest indicates an expected call of ListDataSetsRequest. +func (mr *MockQuickSightAPIMockRecorder) ListDataSetsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDataSetsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).ListDataSetsRequest), arg0) +} + +// ListDataSetsWithContext mocks base method. +func (m *MockQuickSightAPI) ListDataSetsWithContext(arg0 aws.Context, arg1 *quicksight.ListDataSetsInput, arg2 ...request.Option) (*quicksight.ListDataSetsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListDataSetsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.ListDataSetsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListDataSetsWithContext indicates an expected call of ListDataSetsWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListDataSetsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDataSetsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListDataSetsWithContext), varargs...) +} + +// ListDataSources mocks base method. +func (m *MockQuickSightAPI) ListDataSources(arg0 *quicksight.ListDataSourcesInput) (*quicksight.ListDataSourcesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDataSources", arg0) + ret0, _ := ret[0].(*quicksight.ListDataSourcesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListDataSources indicates an expected call of ListDataSources. +func (mr *MockQuickSightAPIMockRecorder) ListDataSources(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDataSources", reflect.TypeOf((*MockQuickSightAPI)(nil).ListDataSources), arg0) +} + +// ListDataSourcesPages mocks base method. +func (m *MockQuickSightAPI) ListDataSourcesPages(arg0 *quicksight.ListDataSourcesInput, arg1 func(*quicksight.ListDataSourcesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDataSourcesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListDataSourcesPages indicates an expected call of ListDataSourcesPages. +func (mr *MockQuickSightAPIMockRecorder) ListDataSourcesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDataSourcesPages", reflect.TypeOf((*MockQuickSightAPI)(nil).ListDataSourcesPages), arg0, arg1) +} + +// ListDataSourcesPagesWithContext mocks base method. +func (m *MockQuickSightAPI) ListDataSourcesPagesWithContext(arg0 aws.Context, arg1 *quicksight.ListDataSourcesInput, arg2 func(*quicksight.ListDataSourcesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListDataSourcesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListDataSourcesPagesWithContext indicates an expected call of ListDataSourcesPagesWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListDataSourcesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDataSourcesPagesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListDataSourcesPagesWithContext), varargs...) +} + +// ListDataSourcesRequest mocks base method. +func (m *MockQuickSightAPI) ListDataSourcesRequest(arg0 *quicksight.ListDataSourcesInput) (*request.Request, *quicksight.ListDataSourcesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDataSourcesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.ListDataSourcesOutput) + return ret0, ret1 +} + +// ListDataSourcesRequest indicates an expected call of ListDataSourcesRequest. +func (mr *MockQuickSightAPIMockRecorder) ListDataSourcesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDataSourcesRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).ListDataSourcesRequest), arg0) +} + +// ListDataSourcesWithContext mocks base method. +func (m *MockQuickSightAPI) ListDataSourcesWithContext(arg0 aws.Context, arg1 *quicksight.ListDataSourcesInput, arg2 ...request.Option) (*quicksight.ListDataSourcesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListDataSourcesWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.ListDataSourcesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListDataSourcesWithContext indicates an expected call of ListDataSourcesWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListDataSourcesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDataSourcesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListDataSourcesWithContext), varargs...) +} + +// ListFolderMembers mocks base method. +func (m *MockQuickSightAPI) ListFolderMembers(arg0 *quicksight.ListFolderMembersInput) (*quicksight.ListFolderMembersOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListFolderMembers", arg0) + ret0, _ := ret[0].(*quicksight.ListFolderMembersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListFolderMembers indicates an expected call of ListFolderMembers. +func (mr *MockQuickSightAPIMockRecorder) ListFolderMembers(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFolderMembers", reflect.TypeOf((*MockQuickSightAPI)(nil).ListFolderMembers), arg0) +} + +// ListFolderMembersPages mocks base method. +func (m *MockQuickSightAPI) ListFolderMembersPages(arg0 *quicksight.ListFolderMembersInput, arg1 func(*quicksight.ListFolderMembersOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListFolderMembersPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListFolderMembersPages indicates an expected call of ListFolderMembersPages. +func (mr *MockQuickSightAPIMockRecorder) ListFolderMembersPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFolderMembersPages", reflect.TypeOf((*MockQuickSightAPI)(nil).ListFolderMembersPages), arg0, arg1) +} + +// ListFolderMembersPagesWithContext mocks base method. +func (m *MockQuickSightAPI) ListFolderMembersPagesWithContext(arg0 aws.Context, arg1 *quicksight.ListFolderMembersInput, arg2 func(*quicksight.ListFolderMembersOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListFolderMembersPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListFolderMembersPagesWithContext indicates an expected call of ListFolderMembersPagesWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListFolderMembersPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFolderMembersPagesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListFolderMembersPagesWithContext), varargs...) +} + +// ListFolderMembersRequest mocks base method. +func (m *MockQuickSightAPI) ListFolderMembersRequest(arg0 *quicksight.ListFolderMembersInput) (*request.Request, *quicksight.ListFolderMembersOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListFolderMembersRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.ListFolderMembersOutput) + return ret0, ret1 +} + +// ListFolderMembersRequest indicates an expected call of ListFolderMembersRequest. +func (mr *MockQuickSightAPIMockRecorder) ListFolderMembersRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFolderMembersRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).ListFolderMembersRequest), arg0) +} + +// ListFolderMembersWithContext mocks base method. +func (m *MockQuickSightAPI) ListFolderMembersWithContext(arg0 aws.Context, arg1 *quicksight.ListFolderMembersInput, arg2 ...request.Option) (*quicksight.ListFolderMembersOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListFolderMembersWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.ListFolderMembersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListFolderMembersWithContext indicates an expected call of ListFolderMembersWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListFolderMembersWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFolderMembersWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListFolderMembersWithContext), varargs...) +} + +// ListFolders mocks base method. +func (m *MockQuickSightAPI) ListFolders(arg0 *quicksight.ListFoldersInput) (*quicksight.ListFoldersOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListFolders", arg0) + ret0, _ := ret[0].(*quicksight.ListFoldersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListFolders indicates an expected call of ListFolders. +func (mr *MockQuickSightAPIMockRecorder) ListFolders(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFolders", reflect.TypeOf((*MockQuickSightAPI)(nil).ListFolders), arg0) +} + +// ListFoldersPages mocks base method. +func (m *MockQuickSightAPI) ListFoldersPages(arg0 *quicksight.ListFoldersInput, arg1 func(*quicksight.ListFoldersOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListFoldersPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListFoldersPages indicates an expected call of ListFoldersPages. +func (mr *MockQuickSightAPIMockRecorder) ListFoldersPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFoldersPages", reflect.TypeOf((*MockQuickSightAPI)(nil).ListFoldersPages), arg0, arg1) +} + +// ListFoldersPagesWithContext mocks base method. +func (m *MockQuickSightAPI) ListFoldersPagesWithContext(arg0 aws.Context, arg1 *quicksight.ListFoldersInput, arg2 func(*quicksight.ListFoldersOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListFoldersPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListFoldersPagesWithContext indicates an expected call of ListFoldersPagesWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListFoldersPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFoldersPagesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListFoldersPagesWithContext), varargs...) +} + +// ListFoldersRequest mocks base method. +func (m *MockQuickSightAPI) ListFoldersRequest(arg0 *quicksight.ListFoldersInput) (*request.Request, *quicksight.ListFoldersOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListFoldersRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.ListFoldersOutput) + return ret0, ret1 +} + +// ListFoldersRequest indicates an expected call of ListFoldersRequest. +func (mr *MockQuickSightAPIMockRecorder) ListFoldersRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFoldersRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).ListFoldersRequest), arg0) +} + +// ListFoldersWithContext mocks base method. +func (m *MockQuickSightAPI) ListFoldersWithContext(arg0 aws.Context, arg1 *quicksight.ListFoldersInput, arg2 ...request.Option) (*quicksight.ListFoldersOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListFoldersWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.ListFoldersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListFoldersWithContext indicates an expected call of ListFoldersWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListFoldersWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFoldersWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListFoldersWithContext), varargs...) +} + +// ListGroupMemberships mocks base method. +func (m *MockQuickSightAPI) ListGroupMemberships(arg0 *quicksight.ListGroupMembershipsInput) (*quicksight.ListGroupMembershipsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListGroupMemberships", arg0) + ret0, _ := ret[0].(*quicksight.ListGroupMembershipsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListGroupMemberships indicates an expected call of ListGroupMemberships. +func (mr *MockQuickSightAPIMockRecorder) ListGroupMemberships(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGroupMemberships", reflect.TypeOf((*MockQuickSightAPI)(nil).ListGroupMemberships), arg0) +} + +// ListGroupMembershipsPages mocks base method. +func (m *MockQuickSightAPI) ListGroupMembershipsPages(arg0 *quicksight.ListGroupMembershipsInput, arg1 func(*quicksight.ListGroupMembershipsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListGroupMembershipsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListGroupMembershipsPages indicates an expected call of ListGroupMembershipsPages. +func (mr *MockQuickSightAPIMockRecorder) ListGroupMembershipsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGroupMembershipsPages", reflect.TypeOf((*MockQuickSightAPI)(nil).ListGroupMembershipsPages), arg0, arg1) +} + +// ListGroupMembershipsPagesWithContext mocks base method. +func (m *MockQuickSightAPI) ListGroupMembershipsPagesWithContext(arg0 aws.Context, arg1 *quicksight.ListGroupMembershipsInput, arg2 func(*quicksight.ListGroupMembershipsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListGroupMembershipsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListGroupMembershipsPagesWithContext indicates an expected call of ListGroupMembershipsPagesWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListGroupMembershipsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGroupMembershipsPagesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListGroupMembershipsPagesWithContext), varargs...) +} + +// ListGroupMembershipsRequest mocks base method. +func (m *MockQuickSightAPI) ListGroupMembershipsRequest(arg0 *quicksight.ListGroupMembershipsInput) (*request.Request, *quicksight.ListGroupMembershipsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListGroupMembershipsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.ListGroupMembershipsOutput) + return ret0, ret1 +} + +// ListGroupMembershipsRequest indicates an expected call of ListGroupMembershipsRequest. +func (mr *MockQuickSightAPIMockRecorder) ListGroupMembershipsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGroupMembershipsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).ListGroupMembershipsRequest), arg0) +} + +// ListGroupMembershipsWithContext mocks base method. +func (m *MockQuickSightAPI) ListGroupMembershipsWithContext(arg0 aws.Context, arg1 *quicksight.ListGroupMembershipsInput, arg2 ...request.Option) (*quicksight.ListGroupMembershipsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListGroupMembershipsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.ListGroupMembershipsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListGroupMembershipsWithContext indicates an expected call of ListGroupMembershipsWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListGroupMembershipsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGroupMembershipsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListGroupMembershipsWithContext), varargs...) +} + +// ListGroups mocks base method. +func (m *MockQuickSightAPI) ListGroups(arg0 *quicksight.ListGroupsInput) (*quicksight.ListGroupsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListGroups", arg0) + ret0, _ := ret[0].(*quicksight.ListGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListGroups indicates an expected call of ListGroups. +func (mr *MockQuickSightAPIMockRecorder) ListGroups(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGroups", reflect.TypeOf((*MockQuickSightAPI)(nil).ListGroups), arg0) +} + +// ListGroupsPages mocks base method. +func (m *MockQuickSightAPI) ListGroupsPages(arg0 *quicksight.ListGroupsInput, arg1 func(*quicksight.ListGroupsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListGroupsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListGroupsPages indicates an expected call of ListGroupsPages. +func (mr *MockQuickSightAPIMockRecorder) ListGroupsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGroupsPages", reflect.TypeOf((*MockQuickSightAPI)(nil).ListGroupsPages), arg0, arg1) +} + +// ListGroupsPagesWithContext mocks base method. +func (m *MockQuickSightAPI) ListGroupsPagesWithContext(arg0 aws.Context, arg1 *quicksight.ListGroupsInput, arg2 func(*quicksight.ListGroupsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListGroupsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListGroupsPagesWithContext indicates an expected call of ListGroupsPagesWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListGroupsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGroupsPagesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListGroupsPagesWithContext), varargs...) +} + +// ListGroupsRequest mocks base method. +func (m *MockQuickSightAPI) ListGroupsRequest(arg0 *quicksight.ListGroupsInput) (*request.Request, *quicksight.ListGroupsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListGroupsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.ListGroupsOutput) + return ret0, ret1 +} + +// ListGroupsRequest indicates an expected call of ListGroupsRequest. +func (mr *MockQuickSightAPIMockRecorder) ListGroupsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGroupsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).ListGroupsRequest), arg0) +} + +// ListGroupsWithContext mocks base method. +func (m *MockQuickSightAPI) ListGroupsWithContext(arg0 aws.Context, arg1 *quicksight.ListGroupsInput, arg2 ...request.Option) (*quicksight.ListGroupsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListGroupsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.ListGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListGroupsWithContext indicates an expected call of ListGroupsWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListGroupsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGroupsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListGroupsWithContext), varargs...) +} + +// ListIAMPolicyAssignments mocks base method. +func (m *MockQuickSightAPI) ListIAMPolicyAssignments(arg0 *quicksight.ListIAMPolicyAssignmentsInput) (*quicksight.ListIAMPolicyAssignmentsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListIAMPolicyAssignments", arg0) + ret0, _ := ret[0].(*quicksight.ListIAMPolicyAssignmentsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListIAMPolicyAssignments indicates an expected call of ListIAMPolicyAssignments. +func (mr *MockQuickSightAPIMockRecorder) ListIAMPolicyAssignments(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListIAMPolicyAssignments", reflect.TypeOf((*MockQuickSightAPI)(nil).ListIAMPolicyAssignments), arg0) +} + +// ListIAMPolicyAssignmentsForUser mocks base method. +func (m *MockQuickSightAPI) ListIAMPolicyAssignmentsForUser(arg0 *quicksight.ListIAMPolicyAssignmentsForUserInput) (*quicksight.ListIAMPolicyAssignmentsForUserOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListIAMPolicyAssignmentsForUser", arg0) + ret0, _ := ret[0].(*quicksight.ListIAMPolicyAssignmentsForUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListIAMPolicyAssignmentsForUser indicates an expected call of ListIAMPolicyAssignmentsForUser. +func (mr *MockQuickSightAPIMockRecorder) ListIAMPolicyAssignmentsForUser(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListIAMPolicyAssignmentsForUser", reflect.TypeOf((*MockQuickSightAPI)(nil).ListIAMPolicyAssignmentsForUser), arg0) +} + +// ListIAMPolicyAssignmentsForUserPages mocks base method. +func (m *MockQuickSightAPI) ListIAMPolicyAssignmentsForUserPages(arg0 *quicksight.ListIAMPolicyAssignmentsForUserInput, arg1 func(*quicksight.ListIAMPolicyAssignmentsForUserOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListIAMPolicyAssignmentsForUserPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListIAMPolicyAssignmentsForUserPages indicates an expected call of ListIAMPolicyAssignmentsForUserPages. +func (mr *MockQuickSightAPIMockRecorder) ListIAMPolicyAssignmentsForUserPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListIAMPolicyAssignmentsForUserPages", reflect.TypeOf((*MockQuickSightAPI)(nil).ListIAMPolicyAssignmentsForUserPages), arg0, arg1) +} + +// ListIAMPolicyAssignmentsForUserPagesWithContext mocks base method. +func (m *MockQuickSightAPI) ListIAMPolicyAssignmentsForUserPagesWithContext(arg0 aws.Context, arg1 *quicksight.ListIAMPolicyAssignmentsForUserInput, arg2 func(*quicksight.ListIAMPolicyAssignmentsForUserOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListIAMPolicyAssignmentsForUserPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListIAMPolicyAssignmentsForUserPagesWithContext indicates an expected call of ListIAMPolicyAssignmentsForUserPagesWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListIAMPolicyAssignmentsForUserPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListIAMPolicyAssignmentsForUserPagesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListIAMPolicyAssignmentsForUserPagesWithContext), varargs...) +} + +// ListIAMPolicyAssignmentsForUserRequest mocks base method. +func (m *MockQuickSightAPI) ListIAMPolicyAssignmentsForUserRequest(arg0 *quicksight.ListIAMPolicyAssignmentsForUserInput) (*request.Request, *quicksight.ListIAMPolicyAssignmentsForUserOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListIAMPolicyAssignmentsForUserRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.ListIAMPolicyAssignmentsForUserOutput) + return ret0, ret1 +} + +// ListIAMPolicyAssignmentsForUserRequest indicates an expected call of ListIAMPolicyAssignmentsForUserRequest. +func (mr *MockQuickSightAPIMockRecorder) ListIAMPolicyAssignmentsForUserRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListIAMPolicyAssignmentsForUserRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).ListIAMPolicyAssignmentsForUserRequest), arg0) +} + +// ListIAMPolicyAssignmentsForUserWithContext mocks base method. +func (m *MockQuickSightAPI) ListIAMPolicyAssignmentsForUserWithContext(arg0 aws.Context, arg1 *quicksight.ListIAMPolicyAssignmentsForUserInput, arg2 ...request.Option) (*quicksight.ListIAMPolicyAssignmentsForUserOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListIAMPolicyAssignmentsForUserWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.ListIAMPolicyAssignmentsForUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListIAMPolicyAssignmentsForUserWithContext indicates an expected call of ListIAMPolicyAssignmentsForUserWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListIAMPolicyAssignmentsForUserWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListIAMPolicyAssignmentsForUserWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListIAMPolicyAssignmentsForUserWithContext), varargs...) +} + +// ListIAMPolicyAssignmentsPages mocks base method. +func (m *MockQuickSightAPI) ListIAMPolicyAssignmentsPages(arg0 *quicksight.ListIAMPolicyAssignmentsInput, arg1 func(*quicksight.ListIAMPolicyAssignmentsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListIAMPolicyAssignmentsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListIAMPolicyAssignmentsPages indicates an expected call of ListIAMPolicyAssignmentsPages. +func (mr *MockQuickSightAPIMockRecorder) ListIAMPolicyAssignmentsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListIAMPolicyAssignmentsPages", reflect.TypeOf((*MockQuickSightAPI)(nil).ListIAMPolicyAssignmentsPages), arg0, arg1) +} + +// ListIAMPolicyAssignmentsPagesWithContext mocks base method. +func (m *MockQuickSightAPI) ListIAMPolicyAssignmentsPagesWithContext(arg0 aws.Context, arg1 *quicksight.ListIAMPolicyAssignmentsInput, arg2 func(*quicksight.ListIAMPolicyAssignmentsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListIAMPolicyAssignmentsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListIAMPolicyAssignmentsPagesWithContext indicates an expected call of ListIAMPolicyAssignmentsPagesWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListIAMPolicyAssignmentsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListIAMPolicyAssignmentsPagesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListIAMPolicyAssignmentsPagesWithContext), varargs...) +} + +// ListIAMPolicyAssignmentsRequest mocks base method. +func (m *MockQuickSightAPI) ListIAMPolicyAssignmentsRequest(arg0 *quicksight.ListIAMPolicyAssignmentsInput) (*request.Request, *quicksight.ListIAMPolicyAssignmentsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListIAMPolicyAssignmentsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.ListIAMPolicyAssignmentsOutput) + return ret0, ret1 +} + +// ListIAMPolicyAssignmentsRequest indicates an expected call of ListIAMPolicyAssignmentsRequest. +func (mr *MockQuickSightAPIMockRecorder) ListIAMPolicyAssignmentsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListIAMPolicyAssignmentsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).ListIAMPolicyAssignmentsRequest), arg0) +} + +// ListIAMPolicyAssignmentsWithContext mocks base method. +func (m *MockQuickSightAPI) ListIAMPolicyAssignmentsWithContext(arg0 aws.Context, arg1 *quicksight.ListIAMPolicyAssignmentsInput, arg2 ...request.Option) (*quicksight.ListIAMPolicyAssignmentsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListIAMPolicyAssignmentsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.ListIAMPolicyAssignmentsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListIAMPolicyAssignmentsWithContext indicates an expected call of ListIAMPolicyAssignmentsWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListIAMPolicyAssignmentsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListIAMPolicyAssignmentsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListIAMPolicyAssignmentsWithContext), varargs...) +} + +// ListIdentityPropagationConfigs mocks base method. +func (m *MockQuickSightAPI) ListIdentityPropagationConfigs(arg0 *quicksight.ListIdentityPropagationConfigsInput) (*quicksight.ListIdentityPropagationConfigsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListIdentityPropagationConfigs", arg0) + ret0, _ := ret[0].(*quicksight.ListIdentityPropagationConfigsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListIdentityPropagationConfigs indicates an expected call of ListIdentityPropagationConfigs. +func (mr *MockQuickSightAPIMockRecorder) ListIdentityPropagationConfigs(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListIdentityPropagationConfigs", reflect.TypeOf((*MockQuickSightAPI)(nil).ListIdentityPropagationConfigs), arg0) +} + +// ListIdentityPropagationConfigsRequest mocks base method. +func (m *MockQuickSightAPI) ListIdentityPropagationConfigsRequest(arg0 *quicksight.ListIdentityPropagationConfigsInput) (*request.Request, *quicksight.ListIdentityPropagationConfigsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListIdentityPropagationConfigsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.ListIdentityPropagationConfigsOutput) + return ret0, ret1 +} + +// ListIdentityPropagationConfigsRequest indicates an expected call of ListIdentityPropagationConfigsRequest. +func (mr *MockQuickSightAPIMockRecorder) ListIdentityPropagationConfigsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListIdentityPropagationConfigsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).ListIdentityPropagationConfigsRequest), arg0) +} + +// ListIdentityPropagationConfigsWithContext mocks base method. +func (m *MockQuickSightAPI) ListIdentityPropagationConfigsWithContext(arg0 aws.Context, arg1 *quicksight.ListIdentityPropagationConfigsInput, arg2 ...request.Option) (*quicksight.ListIdentityPropagationConfigsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListIdentityPropagationConfigsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.ListIdentityPropagationConfigsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListIdentityPropagationConfigsWithContext indicates an expected call of ListIdentityPropagationConfigsWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListIdentityPropagationConfigsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListIdentityPropagationConfigsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListIdentityPropagationConfigsWithContext), varargs...) +} + +// ListIngestions mocks base method. +func (m *MockQuickSightAPI) ListIngestions(arg0 *quicksight.ListIngestionsInput) (*quicksight.ListIngestionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListIngestions", arg0) + ret0, _ := ret[0].(*quicksight.ListIngestionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListIngestions indicates an expected call of ListIngestions. +func (mr *MockQuickSightAPIMockRecorder) ListIngestions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListIngestions", reflect.TypeOf((*MockQuickSightAPI)(nil).ListIngestions), arg0) +} + +// ListIngestionsPages mocks base method. +func (m *MockQuickSightAPI) ListIngestionsPages(arg0 *quicksight.ListIngestionsInput, arg1 func(*quicksight.ListIngestionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListIngestionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListIngestionsPages indicates an expected call of ListIngestionsPages. +func (mr *MockQuickSightAPIMockRecorder) ListIngestionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListIngestionsPages", reflect.TypeOf((*MockQuickSightAPI)(nil).ListIngestionsPages), arg0, arg1) +} + +// ListIngestionsPagesWithContext mocks base method. +func (m *MockQuickSightAPI) ListIngestionsPagesWithContext(arg0 aws.Context, arg1 *quicksight.ListIngestionsInput, arg2 func(*quicksight.ListIngestionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListIngestionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListIngestionsPagesWithContext indicates an expected call of ListIngestionsPagesWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListIngestionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListIngestionsPagesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListIngestionsPagesWithContext), varargs...) +} + +// ListIngestionsRequest mocks base method. +func (m *MockQuickSightAPI) ListIngestionsRequest(arg0 *quicksight.ListIngestionsInput) (*request.Request, *quicksight.ListIngestionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListIngestionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.ListIngestionsOutput) + return ret0, ret1 +} + +// ListIngestionsRequest indicates an expected call of ListIngestionsRequest. +func (mr *MockQuickSightAPIMockRecorder) ListIngestionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListIngestionsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).ListIngestionsRequest), arg0) +} + +// ListIngestionsWithContext mocks base method. +func (m *MockQuickSightAPI) ListIngestionsWithContext(arg0 aws.Context, arg1 *quicksight.ListIngestionsInput, arg2 ...request.Option) (*quicksight.ListIngestionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListIngestionsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.ListIngestionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListIngestionsWithContext indicates an expected call of ListIngestionsWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListIngestionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListIngestionsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListIngestionsWithContext), varargs...) +} + +// ListNamespaces mocks base method. +func (m *MockQuickSightAPI) ListNamespaces(arg0 *quicksight.ListNamespacesInput) (*quicksight.ListNamespacesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListNamespaces", arg0) + ret0, _ := ret[0].(*quicksight.ListNamespacesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListNamespaces indicates an expected call of ListNamespaces. +func (mr *MockQuickSightAPIMockRecorder) ListNamespaces(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListNamespaces", reflect.TypeOf((*MockQuickSightAPI)(nil).ListNamespaces), arg0) +} + +// ListNamespacesPages mocks base method. +func (m *MockQuickSightAPI) ListNamespacesPages(arg0 *quicksight.ListNamespacesInput, arg1 func(*quicksight.ListNamespacesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListNamespacesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListNamespacesPages indicates an expected call of ListNamespacesPages. +func (mr *MockQuickSightAPIMockRecorder) ListNamespacesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListNamespacesPages", reflect.TypeOf((*MockQuickSightAPI)(nil).ListNamespacesPages), arg0, arg1) +} + +// ListNamespacesPagesWithContext mocks base method. +func (m *MockQuickSightAPI) ListNamespacesPagesWithContext(arg0 aws.Context, arg1 *quicksight.ListNamespacesInput, arg2 func(*quicksight.ListNamespacesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListNamespacesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListNamespacesPagesWithContext indicates an expected call of ListNamespacesPagesWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListNamespacesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListNamespacesPagesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListNamespacesPagesWithContext), varargs...) +} + +// ListNamespacesRequest mocks base method. +func (m *MockQuickSightAPI) ListNamespacesRequest(arg0 *quicksight.ListNamespacesInput) (*request.Request, *quicksight.ListNamespacesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListNamespacesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.ListNamespacesOutput) + return ret0, ret1 +} + +// ListNamespacesRequest indicates an expected call of ListNamespacesRequest. +func (mr *MockQuickSightAPIMockRecorder) ListNamespacesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListNamespacesRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).ListNamespacesRequest), arg0) +} + +// ListNamespacesWithContext mocks base method. +func (m *MockQuickSightAPI) ListNamespacesWithContext(arg0 aws.Context, arg1 *quicksight.ListNamespacesInput, arg2 ...request.Option) (*quicksight.ListNamespacesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListNamespacesWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.ListNamespacesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListNamespacesWithContext indicates an expected call of ListNamespacesWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListNamespacesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListNamespacesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListNamespacesWithContext), varargs...) +} + +// ListRefreshSchedules mocks base method. +func (m *MockQuickSightAPI) ListRefreshSchedules(arg0 *quicksight.ListRefreshSchedulesInput) (*quicksight.ListRefreshSchedulesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListRefreshSchedules", arg0) + ret0, _ := ret[0].(*quicksight.ListRefreshSchedulesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListRefreshSchedules indicates an expected call of ListRefreshSchedules. +func (mr *MockQuickSightAPIMockRecorder) ListRefreshSchedules(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRefreshSchedules", reflect.TypeOf((*MockQuickSightAPI)(nil).ListRefreshSchedules), arg0) +} + +// ListRefreshSchedulesRequest mocks base method. +func (m *MockQuickSightAPI) ListRefreshSchedulesRequest(arg0 *quicksight.ListRefreshSchedulesInput) (*request.Request, *quicksight.ListRefreshSchedulesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListRefreshSchedulesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.ListRefreshSchedulesOutput) + return ret0, ret1 +} + +// ListRefreshSchedulesRequest indicates an expected call of ListRefreshSchedulesRequest. +func (mr *MockQuickSightAPIMockRecorder) ListRefreshSchedulesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRefreshSchedulesRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).ListRefreshSchedulesRequest), arg0) +} + +// ListRefreshSchedulesWithContext mocks base method. +func (m *MockQuickSightAPI) ListRefreshSchedulesWithContext(arg0 aws.Context, arg1 *quicksight.ListRefreshSchedulesInput, arg2 ...request.Option) (*quicksight.ListRefreshSchedulesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListRefreshSchedulesWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.ListRefreshSchedulesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListRefreshSchedulesWithContext indicates an expected call of ListRefreshSchedulesWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListRefreshSchedulesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRefreshSchedulesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListRefreshSchedulesWithContext), varargs...) +} + +// ListRoleMemberships mocks base method. +func (m *MockQuickSightAPI) ListRoleMemberships(arg0 *quicksight.ListRoleMembershipsInput) (*quicksight.ListRoleMembershipsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListRoleMemberships", arg0) + ret0, _ := ret[0].(*quicksight.ListRoleMembershipsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListRoleMemberships indicates an expected call of ListRoleMemberships. +func (mr *MockQuickSightAPIMockRecorder) ListRoleMemberships(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRoleMemberships", reflect.TypeOf((*MockQuickSightAPI)(nil).ListRoleMemberships), arg0) +} + +// ListRoleMembershipsPages mocks base method. +func (m *MockQuickSightAPI) ListRoleMembershipsPages(arg0 *quicksight.ListRoleMembershipsInput, arg1 func(*quicksight.ListRoleMembershipsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListRoleMembershipsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListRoleMembershipsPages indicates an expected call of ListRoleMembershipsPages. +func (mr *MockQuickSightAPIMockRecorder) ListRoleMembershipsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRoleMembershipsPages", reflect.TypeOf((*MockQuickSightAPI)(nil).ListRoleMembershipsPages), arg0, arg1) +} + +// ListRoleMembershipsPagesWithContext mocks base method. +func (m *MockQuickSightAPI) ListRoleMembershipsPagesWithContext(arg0 aws.Context, arg1 *quicksight.ListRoleMembershipsInput, arg2 func(*quicksight.ListRoleMembershipsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListRoleMembershipsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListRoleMembershipsPagesWithContext indicates an expected call of ListRoleMembershipsPagesWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListRoleMembershipsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRoleMembershipsPagesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListRoleMembershipsPagesWithContext), varargs...) +} + +// ListRoleMembershipsRequest mocks base method. +func (m *MockQuickSightAPI) ListRoleMembershipsRequest(arg0 *quicksight.ListRoleMembershipsInput) (*request.Request, *quicksight.ListRoleMembershipsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListRoleMembershipsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.ListRoleMembershipsOutput) + return ret0, ret1 +} + +// ListRoleMembershipsRequest indicates an expected call of ListRoleMembershipsRequest. +func (mr *MockQuickSightAPIMockRecorder) ListRoleMembershipsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRoleMembershipsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).ListRoleMembershipsRequest), arg0) +} + +// ListRoleMembershipsWithContext mocks base method. +func (m *MockQuickSightAPI) ListRoleMembershipsWithContext(arg0 aws.Context, arg1 *quicksight.ListRoleMembershipsInput, arg2 ...request.Option) (*quicksight.ListRoleMembershipsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListRoleMembershipsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.ListRoleMembershipsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListRoleMembershipsWithContext indicates an expected call of ListRoleMembershipsWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListRoleMembershipsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRoleMembershipsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListRoleMembershipsWithContext), varargs...) +} + +// ListTagsForResource mocks base method. +func (m *MockQuickSightAPI) ListTagsForResource(arg0 *quicksight.ListTagsForResourceInput) (*quicksight.ListTagsForResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTagsForResource", arg0) + ret0, _ := ret[0].(*quicksight.ListTagsForResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTagsForResource indicates an expected call of ListTagsForResource. +func (mr *MockQuickSightAPIMockRecorder) ListTagsForResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsForResource", reflect.TypeOf((*MockQuickSightAPI)(nil).ListTagsForResource), arg0) +} + +// ListTagsForResourceRequest mocks base method. +func (m *MockQuickSightAPI) ListTagsForResourceRequest(arg0 *quicksight.ListTagsForResourceInput) (*request.Request, *quicksight.ListTagsForResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTagsForResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.ListTagsForResourceOutput) + return ret0, ret1 +} + +// ListTagsForResourceRequest indicates an expected call of ListTagsForResourceRequest. +func (mr *MockQuickSightAPIMockRecorder) ListTagsForResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsForResourceRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).ListTagsForResourceRequest), arg0) +} + +// ListTagsForResourceWithContext mocks base method. +func (m *MockQuickSightAPI) ListTagsForResourceWithContext(arg0 aws.Context, arg1 *quicksight.ListTagsForResourceInput, arg2 ...request.Option) (*quicksight.ListTagsForResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTagsForResourceWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.ListTagsForResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTagsForResourceWithContext indicates an expected call of ListTagsForResourceWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListTagsForResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsForResourceWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListTagsForResourceWithContext), varargs...) +} + +// ListTemplateAliases mocks base method. +func (m *MockQuickSightAPI) ListTemplateAliases(arg0 *quicksight.ListTemplateAliasesInput) (*quicksight.ListTemplateAliasesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTemplateAliases", arg0) + ret0, _ := ret[0].(*quicksight.ListTemplateAliasesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTemplateAliases indicates an expected call of ListTemplateAliases. +func (mr *MockQuickSightAPIMockRecorder) ListTemplateAliases(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTemplateAliases", reflect.TypeOf((*MockQuickSightAPI)(nil).ListTemplateAliases), arg0) +} + +// ListTemplateAliasesPages mocks base method. +func (m *MockQuickSightAPI) ListTemplateAliasesPages(arg0 *quicksight.ListTemplateAliasesInput, arg1 func(*quicksight.ListTemplateAliasesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTemplateAliasesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTemplateAliasesPages indicates an expected call of ListTemplateAliasesPages. +func (mr *MockQuickSightAPIMockRecorder) ListTemplateAliasesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTemplateAliasesPages", reflect.TypeOf((*MockQuickSightAPI)(nil).ListTemplateAliasesPages), arg0, arg1) +} + +// ListTemplateAliasesPagesWithContext mocks base method. +func (m *MockQuickSightAPI) ListTemplateAliasesPagesWithContext(arg0 aws.Context, arg1 *quicksight.ListTemplateAliasesInput, arg2 func(*quicksight.ListTemplateAliasesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTemplateAliasesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTemplateAliasesPagesWithContext indicates an expected call of ListTemplateAliasesPagesWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListTemplateAliasesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTemplateAliasesPagesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListTemplateAliasesPagesWithContext), varargs...) +} + +// ListTemplateAliasesRequest mocks base method. +func (m *MockQuickSightAPI) ListTemplateAliasesRequest(arg0 *quicksight.ListTemplateAliasesInput) (*request.Request, *quicksight.ListTemplateAliasesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTemplateAliasesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.ListTemplateAliasesOutput) + return ret0, ret1 +} + +// ListTemplateAliasesRequest indicates an expected call of ListTemplateAliasesRequest. +func (mr *MockQuickSightAPIMockRecorder) ListTemplateAliasesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTemplateAliasesRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).ListTemplateAliasesRequest), arg0) +} + +// ListTemplateAliasesWithContext mocks base method. +func (m *MockQuickSightAPI) ListTemplateAliasesWithContext(arg0 aws.Context, arg1 *quicksight.ListTemplateAliasesInput, arg2 ...request.Option) (*quicksight.ListTemplateAliasesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTemplateAliasesWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.ListTemplateAliasesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTemplateAliasesWithContext indicates an expected call of ListTemplateAliasesWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListTemplateAliasesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTemplateAliasesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListTemplateAliasesWithContext), varargs...) +} + +// ListTemplateVersions mocks base method. +func (m *MockQuickSightAPI) ListTemplateVersions(arg0 *quicksight.ListTemplateVersionsInput) (*quicksight.ListTemplateVersionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTemplateVersions", arg0) + ret0, _ := ret[0].(*quicksight.ListTemplateVersionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTemplateVersions indicates an expected call of ListTemplateVersions. +func (mr *MockQuickSightAPIMockRecorder) ListTemplateVersions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTemplateVersions", reflect.TypeOf((*MockQuickSightAPI)(nil).ListTemplateVersions), arg0) +} + +// ListTemplateVersionsPages mocks base method. +func (m *MockQuickSightAPI) ListTemplateVersionsPages(arg0 *quicksight.ListTemplateVersionsInput, arg1 func(*quicksight.ListTemplateVersionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTemplateVersionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTemplateVersionsPages indicates an expected call of ListTemplateVersionsPages. +func (mr *MockQuickSightAPIMockRecorder) ListTemplateVersionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTemplateVersionsPages", reflect.TypeOf((*MockQuickSightAPI)(nil).ListTemplateVersionsPages), arg0, arg1) +} + +// ListTemplateVersionsPagesWithContext mocks base method. +func (m *MockQuickSightAPI) ListTemplateVersionsPagesWithContext(arg0 aws.Context, arg1 *quicksight.ListTemplateVersionsInput, arg2 func(*quicksight.ListTemplateVersionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTemplateVersionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTemplateVersionsPagesWithContext indicates an expected call of ListTemplateVersionsPagesWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListTemplateVersionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTemplateVersionsPagesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListTemplateVersionsPagesWithContext), varargs...) +} + +// ListTemplateVersionsRequest mocks base method. +func (m *MockQuickSightAPI) ListTemplateVersionsRequest(arg0 *quicksight.ListTemplateVersionsInput) (*request.Request, *quicksight.ListTemplateVersionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTemplateVersionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.ListTemplateVersionsOutput) + return ret0, ret1 +} + +// ListTemplateVersionsRequest indicates an expected call of ListTemplateVersionsRequest. +func (mr *MockQuickSightAPIMockRecorder) ListTemplateVersionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTemplateVersionsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).ListTemplateVersionsRequest), arg0) +} + +// ListTemplateVersionsWithContext mocks base method. +func (m *MockQuickSightAPI) ListTemplateVersionsWithContext(arg0 aws.Context, arg1 *quicksight.ListTemplateVersionsInput, arg2 ...request.Option) (*quicksight.ListTemplateVersionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTemplateVersionsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.ListTemplateVersionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTemplateVersionsWithContext indicates an expected call of ListTemplateVersionsWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListTemplateVersionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTemplateVersionsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListTemplateVersionsWithContext), varargs...) +} + +// ListTemplates mocks base method. +func (m *MockQuickSightAPI) ListTemplates(arg0 *quicksight.ListTemplatesInput) (*quicksight.ListTemplatesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTemplates", arg0) + ret0, _ := ret[0].(*quicksight.ListTemplatesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTemplates indicates an expected call of ListTemplates. +func (mr *MockQuickSightAPIMockRecorder) ListTemplates(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTemplates", reflect.TypeOf((*MockQuickSightAPI)(nil).ListTemplates), arg0) +} + +// ListTemplatesPages mocks base method. +func (m *MockQuickSightAPI) ListTemplatesPages(arg0 *quicksight.ListTemplatesInput, arg1 func(*quicksight.ListTemplatesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTemplatesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTemplatesPages indicates an expected call of ListTemplatesPages. +func (mr *MockQuickSightAPIMockRecorder) ListTemplatesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTemplatesPages", reflect.TypeOf((*MockQuickSightAPI)(nil).ListTemplatesPages), arg0, arg1) +} + +// ListTemplatesPagesWithContext mocks base method. +func (m *MockQuickSightAPI) ListTemplatesPagesWithContext(arg0 aws.Context, arg1 *quicksight.ListTemplatesInput, arg2 func(*quicksight.ListTemplatesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTemplatesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTemplatesPagesWithContext indicates an expected call of ListTemplatesPagesWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListTemplatesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTemplatesPagesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListTemplatesPagesWithContext), varargs...) +} + +// ListTemplatesRequest mocks base method. +func (m *MockQuickSightAPI) ListTemplatesRequest(arg0 *quicksight.ListTemplatesInput) (*request.Request, *quicksight.ListTemplatesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTemplatesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.ListTemplatesOutput) + return ret0, ret1 +} + +// ListTemplatesRequest indicates an expected call of ListTemplatesRequest. +func (mr *MockQuickSightAPIMockRecorder) ListTemplatesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTemplatesRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).ListTemplatesRequest), arg0) +} + +// ListTemplatesWithContext mocks base method. +func (m *MockQuickSightAPI) ListTemplatesWithContext(arg0 aws.Context, arg1 *quicksight.ListTemplatesInput, arg2 ...request.Option) (*quicksight.ListTemplatesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTemplatesWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.ListTemplatesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTemplatesWithContext indicates an expected call of ListTemplatesWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListTemplatesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTemplatesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListTemplatesWithContext), varargs...) +} + +// ListThemeAliases mocks base method. +func (m *MockQuickSightAPI) ListThemeAliases(arg0 *quicksight.ListThemeAliasesInput) (*quicksight.ListThemeAliasesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListThemeAliases", arg0) + ret0, _ := ret[0].(*quicksight.ListThemeAliasesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListThemeAliases indicates an expected call of ListThemeAliases. +func (mr *MockQuickSightAPIMockRecorder) ListThemeAliases(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListThemeAliases", reflect.TypeOf((*MockQuickSightAPI)(nil).ListThemeAliases), arg0) +} + +// ListThemeAliasesRequest mocks base method. +func (m *MockQuickSightAPI) ListThemeAliasesRequest(arg0 *quicksight.ListThemeAliasesInput) (*request.Request, *quicksight.ListThemeAliasesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListThemeAliasesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.ListThemeAliasesOutput) + return ret0, ret1 +} + +// ListThemeAliasesRequest indicates an expected call of ListThemeAliasesRequest. +func (mr *MockQuickSightAPIMockRecorder) ListThemeAliasesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListThemeAliasesRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).ListThemeAliasesRequest), arg0) +} + +// ListThemeAliasesWithContext mocks base method. +func (m *MockQuickSightAPI) ListThemeAliasesWithContext(arg0 aws.Context, arg1 *quicksight.ListThemeAliasesInput, arg2 ...request.Option) (*quicksight.ListThemeAliasesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListThemeAliasesWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.ListThemeAliasesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListThemeAliasesWithContext indicates an expected call of ListThemeAliasesWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListThemeAliasesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListThemeAliasesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListThemeAliasesWithContext), varargs...) +} + +// ListThemeVersions mocks base method. +func (m *MockQuickSightAPI) ListThemeVersions(arg0 *quicksight.ListThemeVersionsInput) (*quicksight.ListThemeVersionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListThemeVersions", arg0) + ret0, _ := ret[0].(*quicksight.ListThemeVersionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListThemeVersions indicates an expected call of ListThemeVersions. +func (mr *MockQuickSightAPIMockRecorder) ListThemeVersions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListThemeVersions", reflect.TypeOf((*MockQuickSightAPI)(nil).ListThemeVersions), arg0) +} + +// ListThemeVersionsPages mocks base method. +func (m *MockQuickSightAPI) ListThemeVersionsPages(arg0 *quicksight.ListThemeVersionsInput, arg1 func(*quicksight.ListThemeVersionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListThemeVersionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListThemeVersionsPages indicates an expected call of ListThemeVersionsPages. +func (mr *MockQuickSightAPIMockRecorder) ListThemeVersionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListThemeVersionsPages", reflect.TypeOf((*MockQuickSightAPI)(nil).ListThemeVersionsPages), arg0, arg1) +} + +// ListThemeVersionsPagesWithContext mocks base method. +func (m *MockQuickSightAPI) ListThemeVersionsPagesWithContext(arg0 aws.Context, arg1 *quicksight.ListThemeVersionsInput, arg2 func(*quicksight.ListThemeVersionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListThemeVersionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListThemeVersionsPagesWithContext indicates an expected call of ListThemeVersionsPagesWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListThemeVersionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListThemeVersionsPagesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListThemeVersionsPagesWithContext), varargs...) +} + +// ListThemeVersionsRequest mocks base method. +func (m *MockQuickSightAPI) ListThemeVersionsRequest(arg0 *quicksight.ListThemeVersionsInput) (*request.Request, *quicksight.ListThemeVersionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListThemeVersionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.ListThemeVersionsOutput) + return ret0, ret1 +} + +// ListThemeVersionsRequest indicates an expected call of ListThemeVersionsRequest. +func (mr *MockQuickSightAPIMockRecorder) ListThemeVersionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListThemeVersionsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).ListThemeVersionsRequest), arg0) +} + +// ListThemeVersionsWithContext mocks base method. +func (m *MockQuickSightAPI) ListThemeVersionsWithContext(arg0 aws.Context, arg1 *quicksight.ListThemeVersionsInput, arg2 ...request.Option) (*quicksight.ListThemeVersionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListThemeVersionsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.ListThemeVersionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListThemeVersionsWithContext indicates an expected call of ListThemeVersionsWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListThemeVersionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListThemeVersionsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListThemeVersionsWithContext), varargs...) +} + +// ListThemes mocks base method. +func (m *MockQuickSightAPI) ListThemes(arg0 *quicksight.ListThemesInput) (*quicksight.ListThemesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListThemes", arg0) + ret0, _ := ret[0].(*quicksight.ListThemesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListThemes indicates an expected call of ListThemes. +func (mr *MockQuickSightAPIMockRecorder) ListThemes(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListThemes", reflect.TypeOf((*MockQuickSightAPI)(nil).ListThemes), arg0) +} + +// ListThemesPages mocks base method. +func (m *MockQuickSightAPI) ListThemesPages(arg0 *quicksight.ListThemesInput, arg1 func(*quicksight.ListThemesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListThemesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListThemesPages indicates an expected call of ListThemesPages. +func (mr *MockQuickSightAPIMockRecorder) ListThemesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListThemesPages", reflect.TypeOf((*MockQuickSightAPI)(nil).ListThemesPages), arg0, arg1) +} + +// ListThemesPagesWithContext mocks base method. +func (m *MockQuickSightAPI) ListThemesPagesWithContext(arg0 aws.Context, arg1 *quicksight.ListThemesInput, arg2 func(*quicksight.ListThemesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListThemesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListThemesPagesWithContext indicates an expected call of ListThemesPagesWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListThemesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListThemesPagesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListThemesPagesWithContext), varargs...) +} + +// ListThemesRequest mocks base method. +func (m *MockQuickSightAPI) ListThemesRequest(arg0 *quicksight.ListThemesInput) (*request.Request, *quicksight.ListThemesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListThemesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.ListThemesOutput) + return ret0, ret1 +} + +// ListThemesRequest indicates an expected call of ListThemesRequest. +func (mr *MockQuickSightAPIMockRecorder) ListThemesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListThemesRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).ListThemesRequest), arg0) +} + +// ListThemesWithContext mocks base method. +func (m *MockQuickSightAPI) ListThemesWithContext(arg0 aws.Context, arg1 *quicksight.ListThemesInput, arg2 ...request.Option) (*quicksight.ListThemesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListThemesWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.ListThemesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListThemesWithContext indicates an expected call of ListThemesWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListThemesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListThemesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListThemesWithContext), varargs...) +} + +// ListTopicRefreshSchedules mocks base method. +func (m *MockQuickSightAPI) ListTopicRefreshSchedules(arg0 *quicksight.ListTopicRefreshSchedulesInput) (*quicksight.ListTopicRefreshSchedulesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTopicRefreshSchedules", arg0) + ret0, _ := ret[0].(*quicksight.ListTopicRefreshSchedulesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTopicRefreshSchedules indicates an expected call of ListTopicRefreshSchedules. +func (mr *MockQuickSightAPIMockRecorder) ListTopicRefreshSchedules(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTopicRefreshSchedules", reflect.TypeOf((*MockQuickSightAPI)(nil).ListTopicRefreshSchedules), arg0) +} + +// ListTopicRefreshSchedulesRequest mocks base method. +func (m *MockQuickSightAPI) ListTopicRefreshSchedulesRequest(arg0 *quicksight.ListTopicRefreshSchedulesInput) (*request.Request, *quicksight.ListTopicRefreshSchedulesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTopicRefreshSchedulesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.ListTopicRefreshSchedulesOutput) + return ret0, ret1 +} + +// ListTopicRefreshSchedulesRequest indicates an expected call of ListTopicRefreshSchedulesRequest. +func (mr *MockQuickSightAPIMockRecorder) ListTopicRefreshSchedulesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTopicRefreshSchedulesRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).ListTopicRefreshSchedulesRequest), arg0) +} + +// ListTopicRefreshSchedulesWithContext mocks base method. +func (m *MockQuickSightAPI) ListTopicRefreshSchedulesWithContext(arg0 aws.Context, arg1 *quicksight.ListTopicRefreshSchedulesInput, arg2 ...request.Option) (*quicksight.ListTopicRefreshSchedulesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTopicRefreshSchedulesWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.ListTopicRefreshSchedulesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTopicRefreshSchedulesWithContext indicates an expected call of ListTopicRefreshSchedulesWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListTopicRefreshSchedulesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTopicRefreshSchedulesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListTopicRefreshSchedulesWithContext), varargs...) +} + +// ListTopics mocks base method. +func (m *MockQuickSightAPI) ListTopics(arg0 *quicksight.ListTopicsInput) (*quicksight.ListTopicsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTopics", arg0) + ret0, _ := ret[0].(*quicksight.ListTopicsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTopics indicates an expected call of ListTopics. +func (mr *MockQuickSightAPIMockRecorder) ListTopics(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTopics", reflect.TypeOf((*MockQuickSightAPI)(nil).ListTopics), arg0) +} + +// ListTopicsPages mocks base method. +func (m *MockQuickSightAPI) ListTopicsPages(arg0 *quicksight.ListTopicsInput, arg1 func(*quicksight.ListTopicsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTopicsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTopicsPages indicates an expected call of ListTopicsPages. +func (mr *MockQuickSightAPIMockRecorder) ListTopicsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTopicsPages", reflect.TypeOf((*MockQuickSightAPI)(nil).ListTopicsPages), arg0, arg1) +} + +// ListTopicsPagesWithContext mocks base method. +func (m *MockQuickSightAPI) ListTopicsPagesWithContext(arg0 aws.Context, arg1 *quicksight.ListTopicsInput, arg2 func(*quicksight.ListTopicsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTopicsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTopicsPagesWithContext indicates an expected call of ListTopicsPagesWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListTopicsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTopicsPagesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListTopicsPagesWithContext), varargs...) +} + +// ListTopicsRequest mocks base method. +func (m *MockQuickSightAPI) ListTopicsRequest(arg0 *quicksight.ListTopicsInput) (*request.Request, *quicksight.ListTopicsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTopicsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.ListTopicsOutput) + return ret0, ret1 +} + +// ListTopicsRequest indicates an expected call of ListTopicsRequest. +func (mr *MockQuickSightAPIMockRecorder) ListTopicsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTopicsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).ListTopicsRequest), arg0) +} + +// ListTopicsWithContext mocks base method. +func (m *MockQuickSightAPI) ListTopicsWithContext(arg0 aws.Context, arg1 *quicksight.ListTopicsInput, arg2 ...request.Option) (*quicksight.ListTopicsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTopicsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.ListTopicsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTopicsWithContext indicates an expected call of ListTopicsWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListTopicsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTopicsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListTopicsWithContext), varargs...) +} + +// ListUserGroups mocks base method. +func (m *MockQuickSightAPI) ListUserGroups(arg0 *quicksight.ListUserGroupsInput) (*quicksight.ListUserGroupsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListUserGroups", arg0) + ret0, _ := ret[0].(*quicksight.ListUserGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListUserGroups indicates an expected call of ListUserGroups. +func (mr *MockQuickSightAPIMockRecorder) ListUserGroups(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUserGroups", reflect.TypeOf((*MockQuickSightAPI)(nil).ListUserGroups), arg0) +} + +// ListUserGroupsPages mocks base method. +func (m *MockQuickSightAPI) ListUserGroupsPages(arg0 *quicksight.ListUserGroupsInput, arg1 func(*quicksight.ListUserGroupsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListUserGroupsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListUserGroupsPages indicates an expected call of ListUserGroupsPages. +func (mr *MockQuickSightAPIMockRecorder) ListUserGroupsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUserGroupsPages", reflect.TypeOf((*MockQuickSightAPI)(nil).ListUserGroupsPages), arg0, arg1) +} + +// ListUserGroupsPagesWithContext mocks base method. +func (m *MockQuickSightAPI) ListUserGroupsPagesWithContext(arg0 aws.Context, arg1 *quicksight.ListUserGroupsInput, arg2 func(*quicksight.ListUserGroupsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListUserGroupsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListUserGroupsPagesWithContext indicates an expected call of ListUserGroupsPagesWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListUserGroupsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUserGroupsPagesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListUserGroupsPagesWithContext), varargs...) +} + +// ListUserGroupsRequest mocks base method. +func (m *MockQuickSightAPI) ListUserGroupsRequest(arg0 *quicksight.ListUserGroupsInput) (*request.Request, *quicksight.ListUserGroupsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListUserGroupsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.ListUserGroupsOutput) + return ret0, ret1 +} + +// ListUserGroupsRequest indicates an expected call of ListUserGroupsRequest. +func (mr *MockQuickSightAPIMockRecorder) ListUserGroupsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUserGroupsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).ListUserGroupsRequest), arg0) +} + +// ListUserGroupsWithContext mocks base method. +func (m *MockQuickSightAPI) ListUserGroupsWithContext(arg0 aws.Context, arg1 *quicksight.ListUserGroupsInput, arg2 ...request.Option) (*quicksight.ListUserGroupsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListUserGroupsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.ListUserGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListUserGroupsWithContext indicates an expected call of ListUserGroupsWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListUserGroupsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUserGroupsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListUserGroupsWithContext), varargs...) +} + +// ListUsers mocks base method. +func (m *MockQuickSightAPI) ListUsers(arg0 *quicksight.ListUsersInput) (*quicksight.ListUsersOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListUsers", arg0) + ret0, _ := ret[0].(*quicksight.ListUsersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListUsers indicates an expected call of ListUsers. +func (mr *MockQuickSightAPIMockRecorder) ListUsers(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUsers", reflect.TypeOf((*MockQuickSightAPI)(nil).ListUsers), arg0) +} + +// ListUsersPages mocks base method. +func (m *MockQuickSightAPI) ListUsersPages(arg0 *quicksight.ListUsersInput, arg1 func(*quicksight.ListUsersOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListUsersPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListUsersPages indicates an expected call of ListUsersPages. +func (mr *MockQuickSightAPIMockRecorder) ListUsersPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUsersPages", reflect.TypeOf((*MockQuickSightAPI)(nil).ListUsersPages), arg0, arg1) +} + +// ListUsersPagesWithContext mocks base method. +func (m *MockQuickSightAPI) ListUsersPagesWithContext(arg0 aws.Context, arg1 *quicksight.ListUsersInput, arg2 func(*quicksight.ListUsersOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListUsersPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListUsersPagesWithContext indicates an expected call of ListUsersPagesWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListUsersPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUsersPagesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListUsersPagesWithContext), varargs...) +} + +// ListUsersRequest mocks base method. +func (m *MockQuickSightAPI) ListUsersRequest(arg0 *quicksight.ListUsersInput) (*request.Request, *quicksight.ListUsersOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListUsersRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.ListUsersOutput) + return ret0, ret1 +} + +// ListUsersRequest indicates an expected call of ListUsersRequest. +func (mr *MockQuickSightAPIMockRecorder) ListUsersRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUsersRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).ListUsersRequest), arg0) +} + +// ListUsersWithContext mocks base method. +func (m *MockQuickSightAPI) ListUsersWithContext(arg0 aws.Context, arg1 *quicksight.ListUsersInput, arg2 ...request.Option) (*quicksight.ListUsersOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListUsersWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.ListUsersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListUsersWithContext indicates an expected call of ListUsersWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListUsersWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUsersWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListUsersWithContext), varargs...) +} + +// ListVPCConnections mocks base method. +func (m *MockQuickSightAPI) ListVPCConnections(arg0 *quicksight.ListVPCConnectionsInput) (*quicksight.ListVPCConnectionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListVPCConnections", arg0) + ret0, _ := ret[0].(*quicksight.ListVPCConnectionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListVPCConnections indicates an expected call of ListVPCConnections. +func (mr *MockQuickSightAPIMockRecorder) ListVPCConnections(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListVPCConnections", reflect.TypeOf((*MockQuickSightAPI)(nil).ListVPCConnections), arg0) +} + +// ListVPCConnectionsPages mocks base method. +func (m *MockQuickSightAPI) ListVPCConnectionsPages(arg0 *quicksight.ListVPCConnectionsInput, arg1 func(*quicksight.ListVPCConnectionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListVPCConnectionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListVPCConnectionsPages indicates an expected call of ListVPCConnectionsPages. +func (mr *MockQuickSightAPIMockRecorder) ListVPCConnectionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListVPCConnectionsPages", reflect.TypeOf((*MockQuickSightAPI)(nil).ListVPCConnectionsPages), arg0, arg1) +} + +// ListVPCConnectionsPagesWithContext mocks base method. +func (m *MockQuickSightAPI) ListVPCConnectionsPagesWithContext(arg0 aws.Context, arg1 *quicksight.ListVPCConnectionsInput, arg2 func(*quicksight.ListVPCConnectionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListVPCConnectionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListVPCConnectionsPagesWithContext indicates an expected call of ListVPCConnectionsPagesWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListVPCConnectionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListVPCConnectionsPagesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListVPCConnectionsPagesWithContext), varargs...) +} + +// ListVPCConnectionsRequest mocks base method. +func (m *MockQuickSightAPI) ListVPCConnectionsRequest(arg0 *quicksight.ListVPCConnectionsInput) (*request.Request, *quicksight.ListVPCConnectionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListVPCConnectionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.ListVPCConnectionsOutput) + return ret0, ret1 +} + +// ListVPCConnectionsRequest indicates an expected call of ListVPCConnectionsRequest. +func (mr *MockQuickSightAPIMockRecorder) ListVPCConnectionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListVPCConnectionsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).ListVPCConnectionsRequest), arg0) +} + +// ListVPCConnectionsWithContext mocks base method. +func (m *MockQuickSightAPI) ListVPCConnectionsWithContext(arg0 aws.Context, arg1 *quicksight.ListVPCConnectionsInput, arg2 ...request.Option) (*quicksight.ListVPCConnectionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListVPCConnectionsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.ListVPCConnectionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListVPCConnectionsWithContext indicates an expected call of ListVPCConnectionsWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListVPCConnectionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListVPCConnectionsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListVPCConnectionsWithContext), varargs...) +} + +// PutDataSetRefreshProperties mocks base method. +func (m *MockQuickSightAPI) PutDataSetRefreshProperties(arg0 *quicksight.PutDataSetRefreshPropertiesInput) (*quicksight.PutDataSetRefreshPropertiesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutDataSetRefreshProperties", arg0) + ret0, _ := ret[0].(*quicksight.PutDataSetRefreshPropertiesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutDataSetRefreshProperties indicates an expected call of PutDataSetRefreshProperties. +func (mr *MockQuickSightAPIMockRecorder) PutDataSetRefreshProperties(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutDataSetRefreshProperties", reflect.TypeOf((*MockQuickSightAPI)(nil).PutDataSetRefreshProperties), arg0) +} + +// PutDataSetRefreshPropertiesRequest mocks base method. +func (m *MockQuickSightAPI) PutDataSetRefreshPropertiesRequest(arg0 *quicksight.PutDataSetRefreshPropertiesInput) (*request.Request, *quicksight.PutDataSetRefreshPropertiesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutDataSetRefreshPropertiesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.PutDataSetRefreshPropertiesOutput) + return ret0, ret1 +} + +// PutDataSetRefreshPropertiesRequest indicates an expected call of PutDataSetRefreshPropertiesRequest. +func (mr *MockQuickSightAPIMockRecorder) PutDataSetRefreshPropertiesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutDataSetRefreshPropertiesRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).PutDataSetRefreshPropertiesRequest), arg0) +} + +// PutDataSetRefreshPropertiesWithContext mocks base method. +func (m *MockQuickSightAPI) PutDataSetRefreshPropertiesWithContext(arg0 aws.Context, arg1 *quicksight.PutDataSetRefreshPropertiesInput, arg2 ...request.Option) (*quicksight.PutDataSetRefreshPropertiesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PutDataSetRefreshPropertiesWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.PutDataSetRefreshPropertiesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutDataSetRefreshPropertiesWithContext indicates an expected call of PutDataSetRefreshPropertiesWithContext. +func (mr *MockQuickSightAPIMockRecorder) PutDataSetRefreshPropertiesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutDataSetRefreshPropertiesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).PutDataSetRefreshPropertiesWithContext), varargs...) +} + +// RegisterUser mocks base method. +func (m *MockQuickSightAPI) RegisterUser(arg0 *quicksight.RegisterUserInput) (*quicksight.RegisterUserOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RegisterUser", arg0) + ret0, _ := ret[0].(*quicksight.RegisterUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RegisterUser indicates an expected call of RegisterUser. +func (mr *MockQuickSightAPIMockRecorder) RegisterUser(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterUser", reflect.TypeOf((*MockQuickSightAPI)(nil).RegisterUser), arg0) +} + +// RegisterUserRequest mocks base method. +func (m *MockQuickSightAPI) RegisterUserRequest(arg0 *quicksight.RegisterUserInput) (*request.Request, *quicksight.RegisterUserOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RegisterUserRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.RegisterUserOutput) + return ret0, ret1 +} + +// RegisterUserRequest indicates an expected call of RegisterUserRequest. +func (mr *MockQuickSightAPIMockRecorder) RegisterUserRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterUserRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).RegisterUserRequest), arg0) +} + +// RegisterUserWithContext mocks base method. +func (m *MockQuickSightAPI) RegisterUserWithContext(arg0 aws.Context, arg1 *quicksight.RegisterUserInput, arg2 ...request.Option) (*quicksight.RegisterUserOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RegisterUserWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.RegisterUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RegisterUserWithContext indicates an expected call of RegisterUserWithContext. +func (mr *MockQuickSightAPIMockRecorder) RegisterUserWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterUserWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).RegisterUserWithContext), varargs...) +} + +// RestoreAnalysis mocks base method. +func (m *MockQuickSightAPI) RestoreAnalysis(arg0 *quicksight.RestoreAnalysisInput) (*quicksight.RestoreAnalysisOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RestoreAnalysis", arg0) + ret0, _ := ret[0].(*quicksight.RestoreAnalysisOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RestoreAnalysis indicates an expected call of RestoreAnalysis. +func (mr *MockQuickSightAPIMockRecorder) RestoreAnalysis(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RestoreAnalysis", reflect.TypeOf((*MockQuickSightAPI)(nil).RestoreAnalysis), arg0) +} + +// RestoreAnalysisRequest mocks base method. +func (m *MockQuickSightAPI) RestoreAnalysisRequest(arg0 *quicksight.RestoreAnalysisInput) (*request.Request, *quicksight.RestoreAnalysisOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RestoreAnalysisRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.RestoreAnalysisOutput) + return ret0, ret1 +} + +// RestoreAnalysisRequest indicates an expected call of RestoreAnalysisRequest. +func (mr *MockQuickSightAPIMockRecorder) RestoreAnalysisRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RestoreAnalysisRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).RestoreAnalysisRequest), arg0) +} + +// RestoreAnalysisWithContext mocks base method. +func (m *MockQuickSightAPI) RestoreAnalysisWithContext(arg0 aws.Context, arg1 *quicksight.RestoreAnalysisInput, arg2 ...request.Option) (*quicksight.RestoreAnalysisOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RestoreAnalysisWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.RestoreAnalysisOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RestoreAnalysisWithContext indicates an expected call of RestoreAnalysisWithContext. +func (mr *MockQuickSightAPIMockRecorder) RestoreAnalysisWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RestoreAnalysisWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).RestoreAnalysisWithContext), varargs...) +} + +// SearchAnalyses mocks base method. +func (m *MockQuickSightAPI) SearchAnalyses(arg0 *quicksight.SearchAnalysesInput) (*quicksight.SearchAnalysesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SearchAnalyses", arg0) + ret0, _ := ret[0].(*quicksight.SearchAnalysesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SearchAnalyses indicates an expected call of SearchAnalyses. +func (mr *MockQuickSightAPIMockRecorder) SearchAnalyses(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchAnalyses", reflect.TypeOf((*MockQuickSightAPI)(nil).SearchAnalyses), arg0) +} + +// SearchAnalysesPages mocks base method. +func (m *MockQuickSightAPI) SearchAnalysesPages(arg0 *quicksight.SearchAnalysesInput, arg1 func(*quicksight.SearchAnalysesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SearchAnalysesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// SearchAnalysesPages indicates an expected call of SearchAnalysesPages. +func (mr *MockQuickSightAPIMockRecorder) SearchAnalysesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchAnalysesPages", reflect.TypeOf((*MockQuickSightAPI)(nil).SearchAnalysesPages), arg0, arg1) +} + +// SearchAnalysesPagesWithContext mocks base method. +func (m *MockQuickSightAPI) SearchAnalysesPagesWithContext(arg0 aws.Context, arg1 *quicksight.SearchAnalysesInput, arg2 func(*quicksight.SearchAnalysesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SearchAnalysesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// SearchAnalysesPagesWithContext indicates an expected call of SearchAnalysesPagesWithContext. +func (mr *MockQuickSightAPIMockRecorder) SearchAnalysesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchAnalysesPagesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).SearchAnalysesPagesWithContext), varargs...) +} + +// SearchAnalysesRequest mocks base method. +func (m *MockQuickSightAPI) SearchAnalysesRequest(arg0 *quicksight.SearchAnalysesInput) (*request.Request, *quicksight.SearchAnalysesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SearchAnalysesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.SearchAnalysesOutput) + return ret0, ret1 +} + +// SearchAnalysesRequest indicates an expected call of SearchAnalysesRequest. +func (mr *MockQuickSightAPIMockRecorder) SearchAnalysesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchAnalysesRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).SearchAnalysesRequest), arg0) +} + +// SearchAnalysesWithContext mocks base method. +func (m *MockQuickSightAPI) SearchAnalysesWithContext(arg0 aws.Context, arg1 *quicksight.SearchAnalysesInput, arg2 ...request.Option) (*quicksight.SearchAnalysesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SearchAnalysesWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.SearchAnalysesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SearchAnalysesWithContext indicates an expected call of SearchAnalysesWithContext. +func (mr *MockQuickSightAPIMockRecorder) SearchAnalysesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchAnalysesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).SearchAnalysesWithContext), varargs...) +} + +// SearchDashboards mocks base method. +func (m *MockQuickSightAPI) SearchDashboards(arg0 *quicksight.SearchDashboardsInput) (*quicksight.SearchDashboardsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SearchDashboards", arg0) + ret0, _ := ret[0].(*quicksight.SearchDashboardsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SearchDashboards indicates an expected call of SearchDashboards. +func (mr *MockQuickSightAPIMockRecorder) SearchDashboards(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchDashboards", reflect.TypeOf((*MockQuickSightAPI)(nil).SearchDashboards), arg0) +} + +// SearchDashboardsPages mocks base method. +func (m *MockQuickSightAPI) SearchDashboardsPages(arg0 *quicksight.SearchDashboardsInput, arg1 func(*quicksight.SearchDashboardsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SearchDashboardsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// SearchDashboardsPages indicates an expected call of SearchDashboardsPages. +func (mr *MockQuickSightAPIMockRecorder) SearchDashboardsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchDashboardsPages", reflect.TypeOf((*MockQuickSightAPI)(nil).SearchDashboardsPages), arg0, arg1) +} + +// SearchDashboardsPagesWithContext mocks base method. +func (m *MockQuickSightAPI) SearchDashboardsPagesWithContext(arg0 aws.Context, arg1 *quicksight.SearchDashboardsInput, arg2 func(*quicksight.SearchDashboardsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SearchDashboardsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// SearchDashboardsPagesWithContext indicates an expected call of SearchDashboardsPagesWithContext. +func (mr *MockQuickSightAPIMockRecorder) SearchDashboardsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchDashboardsPagesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).SearchDashboardsPagesWithContext), varargs...) +} + +// SearchDashboardsRequest mocks base method. +func (m *MockQuickSightAPI) SearchDashboardsRequest(arg0 *quicksight.SearchDashboardsInput) (*request.Request, *quicksight.SearchDashboardsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SearchDashboardsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.SearchDashboardsOutput) + return ret0, ret1 +} + +// SearchDashboardsRequest indicates an expected call of SearchDashboardsRequest. +func (mr *MockQuickSightAPIMockRecorder) SearchDashboardsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchDashboardsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).SearchDashboardsRequest), arg0) +} + +// SearchDashboardsWithContext mocks base method. +func (m *MockQuickSightAPI) SearchDashboardsWithContext(arg0 aws.Context, arg1 *quicksight.SearchDashboardsInput, arg2 ...request.Option) (*quicksight.SearchDashboardsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SearchDashboardsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.SearchDashboardsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SearchDashboardsWithContext indicates an expected call of SearchDashboardsWithContext. +func (mr *MockQuickSightAPIMockRecorder) SearchDashboardsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchDashboardsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).SearchDashboardsWithContext), varargs...) +} + +// SearchDataSets mocks base method. +func (m *MockQuickSightAPI) SearchDataSets(arg0 *quicksight.SearchDataSetsInput) (*quicksight.SearchDataSetsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SearchDataSets", arg0) + ret0, _ := ret[0].(*quicksight.SearchDataSetsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SearchDataSets indicates an expected call of SearchDataSets. +func (mr *MockQuickSightAPIMockRecorder) SearchDataSets(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchDataSets", reflect.TypeOf((*MockQuickSightAPI)(nil).SearchDataSets), arg0) +} + +// SearchDataSetsPages mocks base method. +func (m *MockQuickSightAPI) SearchDataSetsPages(arg0 *quicksight.SearchDataSetsInput, arg1 func(*quicksight.SearchDataSetsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SearchDataSetsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// SearchDataSetsPages indicates an expected call of SearchDataSetsPages. +func (mr *MockQuickSightAPIMockRecorder) SearchDataSetsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchDataSetsPages", reflect.TypeOf((*MockQuickSightAPI)(nil).SearchDataSetsPages), arg0, arg1) +} + +// SearchDataSetsPagesWithContext mocks base method. +func (m *MockQuickSightAPI) SearchDataSetsPagesWithContext(arg0 aws.Context, arg1 *quicksight.SearchDataSetsInput, arg2 func(*quicksight.SearchDataSetsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SearchDataSetsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// SearchDataSetsPagesWithContext indicates an expected call of SearchDataSetsPagesWithContext. +func (mr *MockQuickSightAPIMockRecorder) SearchDataSetsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchDataSetsPagesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).SearchDataSetsPagesWithContext), varargs...) +} + +// SearchDataSetsRequest mocks base method. +func (m *MockQuickSightAPI) SearchDataSetsRequest(arg0 *quicksight.SearchDataSetsInput) (*request.Request, *quicksight.SearchDataSetsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SearchDataSetsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.SearchDataSetsOutput) + return ret0, ret1 +} + +// SearchDataSetsRequest indicates an expected call of SearchDataSetsRequest. +func (mr *MockQuickSightAPIMockRecorder) SearchDataSetsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchDataSetsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).SearchDataSetsRequest), arg0) +} + +// SearchDataSetsWithContext mocks base method. +func (m *MockQuickSightAPI) SearchDataSetsWithContext(arg0 aws.Context, arg1 *quicksight.SearchDataSetsInput, arg2 ...request.Option) (*quicksight.SearchDataSetsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SearchDataSetsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.SearchDataSetsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SearchDataSetsWithContext indicates an expected call of SearchDataSetsWithContext. +func (mr *MockQuickSightAPIMockRecorder) SearchDataSetsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchDataSetsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).SearchDataSetsWithContext), varargs...) +} + +// SearchDataSources mocks base method. +func (m *MockQuickSightAPI) SearchDataSources(arg0 *quicksight.SearchDataSourcesInput) (*quicksight.SearchDataSourcesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SearchDataSources", arg0) + ret0, _ := ret[0].(*quicksight.SearchDataSourcesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SearchDataSources indicates an expected call of SearchDataSources. +func (mr *MockQuickSightAPIMockRecorder) SearchDataSources(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchDataSources", reflect.TypeOf((*MockQuickSightAPI)(nil).SearchDataSources), arg0) +} + +// SearchDataSourcesPages mocks base method. +func (m *MockQuickSightAPI) SearchDataSourcesPages(arg0 *quicksight.SearchDataSourcesInput, arg1 func(*quicksight.SearchDataSourcesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SearchDataSourcesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// SearchDataSourcesPages indicates an expected call of SearchDataSourcesPages. +func (mr *MockQuickSightAPIMockRecorder) SearchDataSourcesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchDataSourcesPages", reflect.TypeOf((*MockQuickSightAPI)(nil).SearchDataSourcesPages), arg0, arg1) +} + +// SearchDataSourcesPagesWithContext mocks base method. +func (m *MockQuickSightAPI) SearchDataSourcesPagesWithContext(arg0 aws.Context, arg1 *quicksight.SearchDataSourcesInput, arg2 func(*quicksight.SearchDataSourcesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SearchDataSourcesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// SearchDataSourcesPagesWithContext indicates an expected call of SearchDataSourcesPagesWithContext. +func (mr *MockQuickSightAPIMockRecorder) SearchDataSourcesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchDataSourcesPagesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).SearchDataSourcesPagesWithContext), varargs...) +} + +// SearchDataSourcesRequest mocks base method. +func (m *MockQuickSightAPI) SearchDataSourcesRequest(arg0 *quicksight.SearchDataSourcesInput) (*request.Request, *quicksight.SearchDataSourcesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SearchDataSourcesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.SearchDataSourcesOutput) + return ret0, ret1 +} + +// SearchDataSourcesRequest indicates an expected call of SearchDataSourcesRequest. +func (mr *MockQuickSightAPIMockRecorder) SearchDataSourcesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchDataSourcesRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).SearchDataSourcesRequest), arg0) +} + +// SearchDataSourcesWithContext mocks base method. +func (m *MockQuickSightAPI) SearchDataSourcesWithContext(arg0 aws.Context, arg1 *quicksight.SearchDataSourcesInput, arg2 ...request.Option) (*quicksight.SearchDataSourcesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SearchDataSourcesWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.SearchDataSourcesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SearchDataSourcesWithContext indicates an expected call of SearchDataSourcesWithContext. +func (mr *MockQuickSightAPIMockRecorder) SearchDataSourcesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchDataSourcesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).SearchDataSourcesWithContext), varargs...) +} + +// SearchFolders mocks base method. +func (m *MockQuickSightAPI) SearchFolders(arg0 *quicksight.SearchFoldersInput) (*quicksight.SearchFoldersOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SearchFolders", arg0) + ret0, _ := ret[0].(*quicksight.SearchFoldersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SearchFolders indicates an expected call of SearchFolders. +func (mr *MockQuickSightAPIMockRecorder) SearchFolders(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchFolders", reflect.TypeOf((*MockQuickSightAPI)(nil).SearchFolders), arg0) +} + +// SearchFoldersPages mocks base method. +func (m *MockQuickSightAPI) SearchFoldersPages(arg0 *quicksight.SearchFoldersInput, arg1 func(*quicksight.SearchFoldersOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SearchFoldersPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// SearchFoldersPages indicates an expected call of SearchFoldersPages. +func (mr *MockQuickSightAPIMockRecorder) SearchFoldersPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchFoldersPages", reflect.TypeOf((*MockQuickSightAPI)(nil).SearchFoldersPages), arg0, arg1) +} + +// SearchFoldersPagesWithContext mocks base method. +func (m *MockQuickSightAPI) SearchFoldersPagesWithContext(arg0 aws.Context, arg1 *quicksight.SearchFoldersInput, arg2 func(*quicksight.SearchFoldersOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SearchFoldersPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// SearchFoldersPagesWithContext indicates an expected call of SearchFoldersPagesWithContext. +func (mr *MockQuickSightAPIMockRecorder) SearchFoldersPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchFoldersPagesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).SearchFoldersPagesWithContext), varargs...) +} + +// SearchFoldersRequest mocks base method. +func (m *MockQuickSightAPI) SearchFoldersRequest(arg0 *quicksight.SearchFoldersInput) (*request.Request, *quicksight.SearchFoldersOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SearchFoldersRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.SearchFoldersOutput) + return ret0, ret1 +} + +// SearchFoldersRequest indicates an expected call of SearchFoldersRequest. +func (mr *MockQuickSightAPIMockRecorder) SearchFoldersRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchFoldersRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).SearchFoldersRequest), arg0) +} + +// SearchFoldersWithContext mocks base method. +func (m *MockQuickSightAPI) SearchFoldersWithContext(arg0 aws.Context, arg1 *quicksight.SearchFoldersInput, arg2 ...request.Option) (*quicksight.SearchFoldersOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SearchFoldersWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.SearchFoldersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SearchFoldersWithContext indicates an expected call of SearchFoldersWithContext. +func (mr *MockQuickSightAPIMockRecorder) SearchFoldersWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchFoldersWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).SearchFoldersWithContext), varargs...) +} + +// SearchGroups mocks base method. +func (m *MockQuickSightAPI) SearchGroups(arg0 *quicksight.SearchGroupsInput) (*quicksight.SearchGroupsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SearchGroups", arg0) + ret0, _ := ret[0].(*quicksight.SearchGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SearchGroups indicates an expected call of SearchGroups. +func (mr *MockQuickSightAPIMockRecorder) SearchGroups(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchGroups", reflect.TypeOf((*MockQuickSightAPI)(nil).SearchGroups), arg0) +} + +// SearchGroupsPages mocks base method. +func (m *MockQuickSightAPI) SearchGroupsPages(arg0 *quicksight.SearchGroupsInput, arg1 func(*quicksight.SearchGroupsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SearchGroupsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// SearchGroupsPages indicates an expected call of SearchGroupsPages. +func (mr *MockQuickSightAPIMockRecorder) SearchGroupsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchGroupsPages", reflect.TypeOf((*MockQuickSightAPI)(nil).SearchGroupsPages), arg0, arg1) +} + +// SearchGroupsPagesWithContext mocks base method. +func (m *MockQuickSightAPI) SearchGroupsPagesWithContext(arg0 aws.Context, arg1 *quicksight.SearchGroupsInput, arg2 func(*quicksight.SearchGroupsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SearchGroupsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// SearchGroupsPagesWithContext indicates an expected call of SearchGroupsPagesWithContext. +func (mr *MockQuickSightAPIMockRecorder) SearchGroupsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchGroupsPagesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).SearchGroupsPagesWithContext), varargs...) +} + +// SearchGroupsRequest mocks base method. +func (m *MockQuickSightAPI) SearchGroupsRequest(arg0 *quicksight.SearchGroupsInput) (*request.Request, *quicksight.SearchGroupsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SearchGroupsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.SearchGroupsOutput) + return ret0, ret1 +} + +// SearchGroupsRequest indicates an expected call of SearchGroupsRequest. +func (mr *MockQuickSightAPIMockRecorder) SearchGroupsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchGroupsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).SearchGroupsRequest), arg0) +} + +// SearchGroupsWithContext mocks base method. +func (m *MockQuickSightAPI) SearchGroupsWithContext(arg0 aws.Context, arg1 *quicksight.SearchGroupsInput, arg2 ...request.Option) (*quicksight.SearchGroupsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SearchGroupsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.SearchGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SearchGroupsWithContext indicates an expected call of SearchGroupsWithContext. +func (mr *MockQuickSightAPIMockRecorder) SearchGroupsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchGroupsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).SearchGroupsWithContext), varargs...) +} + +// StartAssetBundleExportJob mocks base method. +func (m *MockQuickSightAPI) StartAssetBundleExportJob(arg0 *quicksight.StartAssetBundleExportJobInput) (*quicksight.StartAssetBundleExportJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartAssetBundleExportJob", arg0) + ret0, _ := ret[0].(*quicksight.StartAssetBundleExportJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartAssetBundleExportJob indicates an expected call of StartAssetBundleExportJob. +func (mr *MockQuickSightAPIMockRecorder) StartAssetBundleExportJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartAssetBundleExportJob", reflect.TypeOf((*MockQuickSightAPI)(nil).StartAssetBundleExportJob), arg0) +} + +// StartAssetBundleExportJobRequest mocks base method. +func (m *MockQuickSightAPI) StartAssetBundleExportJobRequest(arg0 *quicksight.StartAssetBundleExportJobInput) (*request.Request, *quicksight.StartAssetBundleExportJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartAssetBundleExportJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.StartAssetBundleExportJobOutput) + return ret0, ret1 +} + +// StartAssetBundleExportJobRequest indicates an expected call of StartAssetBundleExportJobRequest. +func (mr *MockQuickSightAPIMockRecorder) StartAssetBundleExportJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartAssetBundleExportJobRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).StartAssetBundleExportJobRequest), arg0) +} + +// StartAssetBundleExportJobWithContext mocks base method. +func (m *MockQuickSightAPI) StartAssetBundleExportJobWithContext(arg0 aws.Context, arg1 *quicksight.StartAssetBundleExportJobInput, arg2 ...request.Option) (*quicksight.StartAssetBundleExportJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StartAssetBundleExportJobWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.StartAssetBundleExportJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartAssetBundleExportJobWithContext indicates an expected call of StartAssetBundleExportJobWithContext. +func (mr *MockQuickSightAPIMockRecorder) StartAssetBundleExportJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartAssetBundleExportJobWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).StartAssetBundleExportJobWithContext), varargs...) +} + +// StartAssetBundleImportJob mocks base method. +func (m *MockQuickSightAPI) StartAssetBundleImportJob(arg0 *quicksight.StartAssetBundleImportJobInput) (*quicksight.StartAssetBundleImportJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartAssetBundleImportJob", arg0) + ret0, _ := ret[0].(*quicksight.StartAssetBundleImportJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartAssetBundleImportJob indicates an expected call of StartAssetBundleImportJob. +func (mr *MockQuickSightAPIMockRecorder) StartAssetBundleImportJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartAssetBundleImportJob", reflect.TypeOf((*MockQuickSightAPI)(nil).StartAssetBundleImportJob), arg0) +} + +// StartAssetBundleImportJobRequest mocks base method. +func (m *MockQuickSightAPI) StartAssetBundleImportJobRequest(arg0 *quicksight.StartAssetBundleImportJobInput) (*request.Request, *quicksight.StartAssetBundleImportJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartAssetBundleImportJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.StartAssetBundleImportJobOutput) + return ret0, ret1 +} + +// StartAssetBundleImportJobRequest indicates an expected call of StartAssetBundleImportJobRequest. +func (mr *MockQuickSightAPIMockRecorder) StartAssetBundleImportJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartAssetBundleImportJobRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).StartAssetBundleImportJobRequest), arg0) +} + +// StartAssetBundleImportJobWithContext mocks base method. +func (m *MockQuickSightAPI) StartAssetBundleImportJobWithContext(arg0 aws.Context, arg1 *quicksight.StartAssetBundleImportJobInput, arg2 ...request.Option) (*quicksight.StartAssetBundleImportJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StartAssetBundleImportJobWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.StartAssetBundleImportJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartAssetBundleImportJobWithContext indicates an expected call of StartAssetBundleImportJobWithContext. +func (mr *MockQuickSightAPIMockRecorder) StartAssetBundleImportJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartAssetBundleImportJobWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).StartAssetBundleImportJobWithContext), varargs...) +} + +// StartDashboardSnapshotJob mocks base method. +func (m *MockQuickSightAPI) StartDashboardSnapshotJob(arg0 *quicksight.StartDashboardSnapshotJobInput) (*quicksight.StartDashboardSnapshotJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartDashboardSnapshotJob", arg0) + ret0, _ := ret[0].(*quicksight.StartDashboardSnapshotJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartDashboardSnapshotJob indicates an expected call of StartDashboardSnapshotJob. +func (mr *MockQuickSightAPIMockRecorder) StartDashboardSnapshotJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartDashboardSnapshotJob", reflect.TypeOf((*MockQuickSightAPI)(nil).StartDashboardSnapshotJob), arg0) +} + +// StartDashboardSnapshotJobRequest mocks base method. +func (m *MockQuickSightAPI) StartDashboardSnapshotJobRequest(arg0 *quicksight.StartDashboardSnapshotJobInput) (*request.Request, *quicksight.StartDashboardSnapshotJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartDashboardSnapshotJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.StartDashboardSnapshotJobOutput) + return ret0, ret1 +} + +// StartDashboardSnapshotJobRequest indicates an expected call of StartDashboardSnapshotJobRequest. +func (mr *MockQuickSightAPIMockRecorder) StartDashboardSnapshotJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartDashboardSnapshotJobRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).StartDashboardSnapshotJobRequest), arg0) +} + +// StartDashboardSnapshotJobWithContext mocks base method. +func (m *MockQuickSightAPI) StartDashboardSnapshotJobWithContext(arg0 aws.Context, arg1 *quicksight.StartDashboardSnapshotJobInput, arg2 ...request.Option) (*quicksight.StartDashboardSnapshotJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StartDashboardSnapshotJobWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.StartDashboardSnapshotJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartDashboardSnapshotJobWithContext indicates an expected call of StartDashboardSnapshotJobWithContext. +func (mr *MockQuickSightAPIMockRecorder) StartDashboardSnapshotJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartDashboardSnapshotJobWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).StartDashboardSnapshotJobWithContext), varargs...) +} + +// TagResource mocks base method. +func (m *MockQuickSightAPI) TagResource(arg0 *quicksight.TagResourceInput) (*quicksight.TagResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagResource", arg0) + ret0, _ := ret[0].(*quicksight.TagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagResource indicates an expected call of TagResource. +func (mr *MockQuickSightAPIMockRecorder) TagResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagResource", reflect.TypeOf((*MockQuickSightAPI)(nil).TagResource), arg0) +} + +// TagResourceRequest mocks base method. +func (m *MockQuickSightAPI) TagResourceRequest(arg0 *quicksight.TagResourceInput) (*request.Request, *quicksight.TagResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.TagResourceOutput) + return ret0, ret1 +} + +// TagResourceRequest indicates an expected call of TagResourceRequest. +func (mr *MockQuickSightAPIMockRecorder) TagResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagResourceRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).TagResourceRequest), arg0) +} + +// TagResourceWithContext mocks base method. +func (m *MockQuickSightAPI) TagResourceWithContext(arg0 aws.Context, arg1 *quicksight.TagResourceInput, arg2 ...request.Option) (*quicksight.TagResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "TagResourceWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.TagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagResourceWithContext indicates an expected call of TagResourceWithContext. +func (mr *MockQuickSightAPIMockRecorder) TagResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagResourceWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).TagResourceWithContext), varargs...) +} + +// UntagResource mocks base method. +func (m *MockQuickSightAPI) UntagResource(arg0 *quicksight.UntagResourceInput) (*quicksight.UntagResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagResource", arg0) + ret0, _ := ret[0].(*quicksight.UntagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagResource indicates an expected call of UntagResource. +func (mr *MockQuickSightAPIMockRecorder) UntagResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagResource", reflect.TypeOf((*MockQuickSightAPI)(nil).UntagResource), arg0) +} + +// UntagResourceRequest mocks base method. +func (m *MockQuickSightAPI) UntagResourceRequest(arg0 *quicksight.UntagResourceInput) (*request.Request, *quicksight.UntagResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.UntagResourceOutput) + return ret0, ret1 +} + +// UntagResourceRequest indicates an expected call of UntagResourceRequest. +func (mr *MockQuickSightAPIMockRecorder) UntagResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagResourceRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).UntagResourceRequest), arg0) +} + +// UntagResourceWithContext mocks base method. +func (m *MockQuickSightAPI) UntagResourceWithContext(arg0 aws.Context, arg1 *quicksight.UntagResourceInput, arg2 ...request.Option) (*quicksight.UntagResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UntagResourceWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.UntagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagResourceWithContext indicates an expected call of UntagResourceWithContext. +func (mr *MockQuickSightAPIMockRecorder) UntagResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagResourceWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).UntagResourceWithContext), varargs...) +} + +// UpdateAccountCustomization mocks base method. +func (m *MockQuickSightAPI) UpdateAccountCustomization(arg0 *quicksight.UpdateAccountCustomizationInput) (*quicksight.UpdateAccountCustomizationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateAccountCustomization", arg0) + ret0, _ := ret[0].(*quicksight.UpdateAccountCustomizationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateAccountCustomization indicates an expected call of UpdateAccountCustomization. +func (mr *MockQuickSightAPIMockRecorder) UpdateAccountCustomization(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAccountCustomization", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateAccountCustomization), arg0) +} + +// UpdateAccountCustomizationRequest mocks base method. +func (m *MockQuickSightAPI) UpdateAccountCustomizationRequest(arg0 *quicksight.UpdateAccountCustomizationInput) (*request.Request, *quicksight.UpdateAccountCustomizationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateAccountCustomizationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.UpdateAccountCustomizationOutput) + return ret0, ret1 +} + +// UpdateAccountCustomizationRequest indicates an expected call of UpdateAccountCustomizationRequest. +func (mr *MockQuickSightAPIMockRecorder) UpdateAccountCustomizationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAccountCustomizationRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateAccountCustomizationRequest), arg0) +} + +// UpdateAccountCustomizationWithContext mocks base method. +func (m *MockQuickSightAPI) UpdateAccountCustomizationWithContext(arg0 aws.Context, arg1 *quicksight.UpdateAccountCustomizationInput, arg2 ...request.Option) (*quicksight.UpdateAccountCustomizationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateAccountCustomizationWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.UpdateAccountCustomizationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateAccountCustomizationWithContext indicates an expected call of UpdateAccountCustomizationWithContext. +func (mr *MockQuickSightAPIMockRecorder) UpdateAccountCustomizationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAccountCustomizationWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateAccountCustomizationWithContext), varargs...) +} + +// UpdateAccountSettings mocks base method. +func (m *MockQuickSightAPI) UpdateAccountSettings(arg0 *quicksight.UpdateAccountSettingsInput) (*quicksight.UpdateAccountSettingsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateAccountSettings", arg0) + ret0, _ := ret[0].(*quicksight.UpdateAccountSettingsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateAccountSettings indicates an expected call of UpdateAccountSettings. +func (mr *MockQuickSightAPIMockRecorder) UpdateAccountSettings(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAccountSettings", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateAccountSettings), arg0) +} + +// UpdateAccountSettingsRequest mocks base method. +func (m *MockQuickSightAPI) UpdateAccountSettingsRequest(arg0 *quicksight.UpdateAccountSettingsInput) (*request.Request, *quicksight.UpdateAccountSettingsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateAccountSettingsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.UpdateAccountSettingsOutput) + return ret0, ret1 +} + +// UpdateAccountSettingsRequest indicates an expected call of UpdateAccountSettingsRequest. +func (mr *MockQuickSightAPIMockRecorder) UpdateAccountSettingsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAccountSettingsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateAccountSettingsRequest), arg0) +} + +// UpdateAccountSettingsWithContext mocks base method. +func (m *MockQuickSightAPI) UpdateAccountSettingsWithContext(arg0 aws.Context, arg1 *quicksight.UpdateAccountSettingsInput, arg2 ...request.Option) (*quicksight.UpdateAccountSettingsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateAccountSettingsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.UpdateAccountSettingsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateAccountSettingsWithContext indicates an expected call of UpdateAccountSettingsWithContext. +func (mr *MockQuickSightAPIMockRecorder) UpdateAccountSettingsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAccountSettingsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateAccountSettingsWithContext), varargs...) +} + +// UpdateAnalysis mocks base method. +func (m *MockQuickSightAPI) UpdateAnalysis(arg0 *quicksight.UpdateAnalysisInput) (*quicksight.UpdateAnalysisOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateAnalysis", arg0) + ret0, _ := ret[0].(*quicksight.UpdateAnalysisOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateAnalysis indicates an expected call of UpdateAnalysis. +func (mr *MockQuickSightAPIMockRecorder) UpdateAnalysis(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAnalysis", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateAnalysis), arg0) +} + +// UpdateAnalysisPermissions mocks base method. +func (m *MockQuickSightAPI) UpdateAnalysisPermissions(arg0 *quicksight.UpdateAnalysisPermissionsInput) (*quicksight.UpdateAnalysisPermissionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateAnalysisPermissions", arg0) + ret0, _ := ret[0].(*quicksight.UpdateAnalysisPermissionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateAnalysisPermissions indicates an expected call of UpdateAnalysisPermissions. +func (mr *MockQuickSightAPIMockRecorder) UpdateAnalysisPermissions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAnalysisPermissions", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateAnalysisPermissions), arg0) +} + +// UpdateAnalysisPermissionsRequest mocks base method. +func (m *MockQuickSightAPI) UpdateAnalysisPermissionsRequest(arg0 *quicksight.UpdateAnalysisPermissionsInput) (*request.Request, *quicksight.UpdateAnalysisPermissionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateAnalysisPermissionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.UpdateAnalysisPermissionsOutput) + return ret0, ret1 +} + +// UpdateAnalysisPermissionsRequest indicates an expected call of UpdateAnalysisPermissionsRequest. +func (mr *MockQuickSightAPIMockRecorder) UpdateAnalysisPermissionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAnalysisPermissionsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateAnalysisPermissionsRequest), arg0) +} + +// UpdateAnalysisPermissionsWithContext mocks base method. +func (m *MockQuickSightAPI) UpdateAnalysisPermissionsWithContext(arg0 aws.Context, arg1 *quicksight.UpdateAnalysisPermissionsInput, arg2 ...request.Option) (*quicksight.UpdateAnalysisPermissionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateAnalysisPermissionsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.UpdateAnalysisPermissionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateAnalysisPermissionsWithContext indicates an expected call of UpdateAnalysisPermissionsWithContext. +func (mr *MockQuickSightAPIMockRecorder) UpdateAnalysisPermissionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAnalysisPermissionsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateAnalysisPermissionsWithContext), varargs...) +} + +// UpdateAnalysisRequest mocks base method. +func (m *MockQuickSightAPI) UpdateAnalysisRequest(arg0 *quicksight.UpdateAnalysisInput) (*request.Request, *quicksight.UpdateAnalysisOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateAnalysisRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.UpdateAnalysisOutput) + return ret0, ret1 +} + +// UpdateAnalysisRequest indicates an expected call of UpdateAnalysisRequest. +func (mr *MockQuickSightAPIMockRecorder) UpdateAnalysisRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAnalysisRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateAnalysisRequest), arg0) +} + +// UpdateAnalysisWithContext mocks base method. +func (m *MockQuickSightAPI) UpdateAnalysisWithContext(arg0 aws.Context, arg1 *quicksight.UpdateAnalysisInput, arg2 ...request.Option) (*quicksight.UpdateAnalysisOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateAnalysisWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.UpdateAnalysisOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateAnalysisWithContext indicates an expected call of UpdateAnalysisWithContext. +func (mr *MockQuickSightAPIMockRecorder) UpdateAnalysisWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAnalysisWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateAnalysisWithContext), varargs...) +} + +// UpdateDashboard mocks base method. +func (m *MockQuickSightAPI) UpdateDashboard(arg0 *quicksight.UpdateDashboardInput) (*quicksight.UpdateDashboardOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateDashboard", arg0) + ret0, _ := ret[0].(*quicksight.UpdateDashboardOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateDashboard indicates an expected call of UpdateDashboard. +func (mr *MockQuickSightAPIMockRecorder) UpdateDashboard(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDashboard", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateDashboard), arg0) +} + +// UpdateDashboardLinks mocks base method. +func (m *MockQuickSightAPI) UpdateDashboardLinks(arg0 *quicksight.UpdateDashboardLinksInput) (*quicksight.UpdateDashboardLinksOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateDashboardLinks", arg0) + ret0, _ := ret[0].(*quicksight.UpdateDashboardLinksOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateDashboardLinks indicates an expected call of UpdateDashboardLinks. +func (mr *MockQuickSightAPIMockRecorder) UpdateDashboardLinks(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDashboardLinks", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateDashboardLinks), arg0) +} + +// UpdateDashboardLinksRequest mocks base method. +func (m *MockQuickSightAPI) UpdateDashboardLinksRequest(arg0 *quicksight.UpdateDashboardLinksInput) (*request.Request, *quicksight.UpdateDashboardLinksOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateDashboardLinksRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.UpdateDashboardLinksOutput) + return ret0, ret1 +} + +// UpdateDashboardLinksRequest indicates an expected call of UpdateDashboardLinksRequest. +func (mr *MockQuickSightAPIMockRecorder) UpdateDashboardLinksRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDashboardLinksRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateDashboardLinksRequest), arg0) +} + +// UpdateDashboardLinksWithContext mocks base method. +func (m *MockQuickSightAPI) UpdateDashboardLinksWithContext(arg0 aws.Context, arg1 *quicksight.UpdateDashboardLinksInput, arg2 ...request.Option) (*quicksight.UpdateDashboardLinksOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateDashboardLinksWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.UpdateDashboardLinksOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateDashboardLinksWithContext indicates an expected call of UpdateDashboardLinksWithContext. +func (mr *MockQuickSightAPIMockRecorder) UpdateDashboardLinksWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDashboardLinksWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateDashboardLinksWithContext), varargs...) +} + +// UpdateDashboardPermissions mocks base method. +func (m *MockQuickSightAPI) UpdateDashboardPermissions(arg0 *quicksight.UpdateDashboardPermissionsInput) (*quicksight.UpdateDashboardPermissionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateDashboardPermissions", arg0) + ret0, _ := ret[0].(*quicksight.UpdateDashboardPermissionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateDashboardPermissions indicates an expected call of UpdateDashboardPermissions. +func (mr *MockQuickSightAPIMockRecorder) UpdateDashboardPermissions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDashboardPermissions", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateDashboardPermissions), arg0) +} + +// UpdateDashboardPermissionsRequest mocks base method. +func (m *MockQuickSightAPI) UpdateDashboardPermissionsRequest(arg0 *quicksight.UpdateDashboardPermissionsInput) (*request.Request, *quicksight.UpdateDashboardPermissionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateDashboardPermissionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.UpdateDashboardPermissionsOutput) + return ret0, ret1 +} + +// UpdateDashboardPermissionsRequest indicates an expected call of UpdateDashboardPermissionsRequest. +func (mr *MockQuickSightAPIMockRecorder) UpdateDashboardPermissionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDashboardPermissionsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateDashboardPermissionsRequest), arg0) +} + +// UpdateDashboardPermissionsWithContext mocks base method. +func (m *MockQuickSightAPI) UpdateDashboardPermissionsWithContext(arg0 aws.Context, arg1 *quicksight.UpdateDashboardPermissionsInput, arg2 ...request.Option) (*quicksight.UpdateDashboardPermissionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateDashboardPermissionsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.UpdateDashboardPermissionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateDashboardPermissionsWithContext indicates an expected call of UpdateDashboardPermissionsWithContext. +func (mr *MockQuickSightAPIMockRecorder) UpdateDashboardPermissionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDashboardPermissionsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateDashboardPermissionsWithContext), varargs...) +} + +// UpdateDashboardPublishedVersion mocks base method. +func (m *MockQuickSightAPI) UpdateDashboardPublishedVersion(arg0 *quicksight.UpdateDashboardPublishedVersionInput) (*quicksight.UpdateDashboardPublishedVersionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateDashboardPublishedVersion", arg0) + ret0, _ := ret[0].(*quicksight.UpdateDashboardPublishedVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateDashboardPublishedVersion indicates an expected call of UpdateDashboardPublishedVersion. +func (mr *MockQuickSightAPIMockRecorder) UpdateDashboardPublishedVersion(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDashboardPublishedVersion", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateDashboardPublishedVersion), arg0) +} + +// UpdateDashboardPublishedVersionRequest mocks base method. +func (m *MockQuickSightAPI) UpdateDashboardPublishedVersionRequest(arg0 *quicksight.UpdateDashboardPublishedVersionInput) (*request.Request, *quicksight.UpdateDashboardPublishedVersionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateDashboardPublishedVersionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.UpdateDashboardPublishedVersionOutput) + return ret0, ret1 +} + +// UpdateDashboardPublishedVersionRequest indicates an expected call of UpdateDashboardPublishedVersionRequest. +func (mr *MockQuickSightAPIMockRecorder) UpdateDashboardPublishedVersionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDashboardPublishedVersionRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateDashboardPublishedVersionRequest), arg0) +} + +// UpdateDashboardPublishedVersionWithContext mocks base method. +func (m *MockQuickSightAPI) UpdateDashboardPublishedVersionWithContext(arg0 aws.Context, arg1 *quicksight.UpdateDashboardPublishedVersionInput, arg2 ...request.Option) (*quicksight.UpdateDashboardPublishedVersionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateDashboardPublishedVersionWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.UpdateDashboardPublishedVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateDashboardPublishedVersionWithContext indicates an expected call of UpdateDashboardPublishedVersionWithContext. +func (mr *MockQuickSightAPIMockRecorder) UpdateDashboardPublishedVersionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDashboardPublishedVersionWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateDashboardPublishedVersionWithContext), varargs...) +} + +// UpdateDashboardRequest mocks base method. +func (m *MockQuickSightAPI) UpdateDashboardRequest(arg0 *quicksight.UpdateDashboardInput) (*request.Request, *quicksight.UpdateDashboardOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateDashboardRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.UpdateDashboardOutput) + return ret0, ret1 +} + +// UpdateDashboardRequest indicates an expected call of UpdateDashboardRequest. +func (mr *MockQuickSightAPIMockRecorder) UpdateDashboardRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDashboardRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateDashboardRequest), arg0) +} + +// UpdateDashboardWithContext mocks base method. +func (m *MockQuickSightAPI) UpdateDashboardWithContext(arg0 aws.Context, arg1 *quicksight.UpdateDashboardInput, arg2 ...request.Option) (*quicksight.UpdateDashboardOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateDashboardWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.UpdateDashboardOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateDashboardWithContext indicates an expected call of UpdateDashboardWithContext. +func (mr *MockQuickSightAPIMockRecorder) UpdateDashboardWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDashboardWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateDashboardWithContext), varargs...) +} + +// UpdateDataSet mocks base method. +func (m *MockQuickSightAPI) UpdateDataSet(arg0 *quicksight.UpdateDataSetInput) (*quicksight.UpdateDataSetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateDataSet", arg0) + ret0, _ := ret[0].(*quicksight.UpdateDataSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateDataSet indicates an expected call of UpdateDataSet. +func (mr *MockQuickSightAPIMockRecorder) UpdateDataSet(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDataSet", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateDataSet), arg0) +} + +// UpdateDataSetPermissions mocks base method. +func (m *MockQuickSightAPI) UpdateDataSetPermissions(arg0 *quicksight.UpdateDataSetPermissionsInput) (*quicksight.UpdateDataSetPermissionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateDataSetPermissions", arg0) + ret0, _ := ret[0].(*quicksight.UpdateDataSetPermissionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateDataSetPermissions indicates an expected call of UpdateDataSetPermissions. +func (mr *MockQuickSightAPIMockRecorder) UpdateDataSetPermissions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDataSetPermissions", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateDataSetPermissions), arg0) +} + +// UpdateDataSetPermissionsRequest mocks base method. +func (m *MockQuickSightAPI) UpdateDataSetPermissionsRequest(arg0 *quicksight.UpdateDataSetPermissionsInput) (*request.Request, *quicksight.UpdateDataSetPermissionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateDataSetPermissionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.UpdateDataSetPermissionsOutput) + return ret0, ret1 +} + +// UpdateDataSetPermissionsRequest indicates an expected call of UpdateDataSetPermissionsRequest. +func (mr *MockQuickSightAPIMockRecorder) UpdateDataSetPermissionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDataSetPermissionsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateDataSetPermissionsRequest), arg0) +} + +// UpdateDataSetPermissionsWithContext mocks base method. +func (m *MockQuickSightAPI) UpdateDataSetPermissionsWithContext(arg0 aws.Context, arg1 *quicksight.UpdateDataSetPermissionsInput, arg2 ...request.Option) (*quicksight.UpdateDataSetPermissionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateDataSetPermissionsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.UpdateDataSetPermissionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateDataSetPermissionsWithContext indicates an expected call of UpdateDataSetPermissionsWithContext. +func (mr *MockQuickSightAPIMockRecorder) UpdateDataSetPermissionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDataSetPermissionsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateDataSetPermissionsWithContext), varargs...) +} + +// UpdateDataSetRequest mocks base method. +func (m *MockQuickSightAPI) UpdateDataSetRequest(arg0 *quicksight.UpdateDataSetInput) (*request.Request, *quicksight.UpdateDataSetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateDataSetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.UpdateDataSetOutput) + return ret0, ret1 +} + +// UpdateDataSetRequest indicates an expected call of UpdateDataSetRequest. +func (mr *MockQuickSightAPIMockRecorder) UpdateDataSetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDataSetRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateDataSetRequest), arg0) +} + +// UpdateDataSetWithContext mocks base method. +func (m *MockQuickSightAPI) UpdateDataSetWithContext(arg0 aws.Context, arg1 *quicksight.UpdateDataSetInput, arg2 ...request.Option) (*quicksight.UpdateDataSetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateDataSetWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.UpdateDataSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateDataSetWithContext indicates an expected call of UpdateDataSetWithContext. +func (mr *MockQuickSightAPIMockRecorder) UpdateDataSetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDataSetWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateDataSetWithContext), varargs...) +} + +// UpdateDataSource mocks base method. +func (m *MockQuickSightAPI) UpdateDataSource(arg0 *quicksight.UpdateDataSourceInput) (*quicksight.UpdateDataSourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateDataSource", arg0) + ret0, _ := ret[0].(*quicksight.UpdateDataSourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateDataSource indicates an expected call of UpdateDataSource. +func (mr *MockQuickSightAPIMockRecorder) UpdateDataSource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDataSource", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateDataSource), arg0) +} + +// UpdateDataSourcePermissions mocks base method. +func (m *MockQuickSightAPI) UpdateDataSourcePermissions(arg0 *quicksight.UpdateDataSourcePermissionsInput) (*quicksight.UpdateDataSourcePermissionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateDataSourcePermissions", arg0) + ret0, _ := ret[0].(*quicksight.UpdateDataSourcePermissionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateDataSourcePermissions indicates an expected call of UpdateDataSourcePermissions. +func (mr *MockQuickSightAPIMockRecorder) UpdateDataSourcePermissions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDataSourcePermissions", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateDataSourcePermissions), arg0) +} + +// UpdateDataSourcePermissionsRequest mocks base method. +func (m *MockQuickSightAPI) UpdateDataSourcePermissionsRequest(arg0 *quicksight.UpdateDataSourcePermissionsInput) (*request.Request, *quicksight.UpdateDataSourcePermissionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateDataSourcePermissionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.UpdateDataSourcePermissionsOutput) + return ret0, ret1 +} + +// UpdateDataSourcePermissionsRequest indicates an expected call of UpdateDataSourcePermissionsRequest. +func (mr *MockQuickSightAPIMockRecorder) UpdateDataSourcePermissionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDataSourcePermissionsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateDataSourcePermissionsRequest), arg0) +} + +// UpdateDataSourcePermissionsWithContext mocks base method. +func (m *MockQuickSightAPI) UpdateDataSourcePermissionsWithContext(arg0 aws.Context, arg1 *quicksight.UpdateDataSourcePermissionsInput, arg2 ...request.Option) (*quicksight.UpdateDataSourcePermissionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateDataSourcePermissionsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.UpdateDataSourcePermissionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateDataSourcePermissionsWithContext indicates an expected call of UpdateDataSourcePermissionsWithContext. +func (mr *MockQuickSightAPIMockRecorder) UpdateDataSourcePermissionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDataSourcePermissionsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateDataSourcePermissionsWithContext), varargs...) +} + +// UpdateDataSourceRequest mocks base method. +func (m *MockQuickSightAPI) UpdateDataSourceRequest(arg0 *quicksight.UpdateDataSourceInput) (*request.Request, *quicksight.UpdateDataSourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateDataSourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.UpdateDataSourceOutput) + return ret0, ret1 +} + +// UpdateDataSourceRequest indicates an expected call of UpdateDataSourceRequest. +func (mr *MockQuickSightAPIMockRecorder) UpdateDataSourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDataSourceRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateDataSourceRequest), arg0) +} + +// UpdateDataSourceWithContext mocks base method. +func (m *MockQuickSightAPI) UpdateDataSourceWithContext(arg0 aws.Context, arg1 *quicksight.UpdateDataSourceInput, arg2 ...request.Option) (*quicksight.UpdateDataSourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateDataSourceWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.UpdateDataSourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateDataSourceWithContext indicates an expected call of UpdateDataSourceWithContext. +func (mr *MockQuickSightAPIMockRecorder) UpdateDataSourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDataSourceWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateDataSourceWithContext), varargs...) +} + +// UpdateFolder mocks base method. +func (m *MockQuickSightAPI) UpdateFolder(arg0 *quicksight.UpdateFolderInput) (*quicksight.UpdateFolderOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateFolder", arg0) + ret0, _ := ret[0].(*quicksight.UpdateFolderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateFolder indicates an expected call of UpdateFolder. +func (mr *MockQuickSightAPIMockRecorder) UpdateFolder(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFolder", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateFolder), arg0) +} + +// UpdateFolderPermissions mocks base method. +func (m *MockQuickSightAPI) UpdateFolderPermissions(arg0 *quicksight.UpdateFolderPermissionsInput) (*quicksight.UpdateFolderPermissionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateFolderPermissions", arg0) + ret0, _ := ret[0].(*quicksight.UpdateFolderPermissionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateFolderPermissions indicates an expected call of UpdateFolderPermissions. +func (mr *MockQuickSightAPIMockRecorder) UpdateFolderPermissions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFolderPermissions", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateFolderPermissions), arg0) +} + +// UpdateFolderPermissionsRequest mocks base method. +func (m *MockQuickSightAPI) UpdateFolderPermissionsRequest(arg0 *quicksight.UpdateFolderPermissionsInput) (*request.Request, *quicksight.UpdateFolderPermissionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateFolderPermissionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.UpdateFolderPermissionsOutput) + return ret0, ret1 +} + +// UpdateFolderPermissionsRequest indicates an expected call of UpdateFolderPermissionsRequest. +func (mr *MockQuickSightAPIMockRecorder) UpdateFolderPermissionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFolderPermissionsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateFolderPermissionsRequest), arg0) +} + +// UpdateFolderPermissionsWithContext mocks base method. +func (m *MockQuickSightAPI) UpdateFolderPermissionsWithContext(arg0 aws.Context, arg1 *quicksight.UpdateFolderPermissionsInput, arg2 ...request.Option) (*quicksight.UpdateFolderPermissionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateFolderPermissionsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.UpdateFolderPermissionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateFolderPermissionsWithContext indicates an expected call of UpdateFolderPermissionsWithContext. +func (mr *MockQuickSightAPIMockRecorder) UpdateFolderPermissionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFolderPermissionsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateFolderPermissionsWithContext), varargs...) +} + +// UpdateFolderRequest mocks base method. +func (m *MockQuickSightAPI) UpdateFolderRequest(arg0 *quicksight.UpdateFolderInput) (*request.Request, *quicksight.UpdateFolderOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateFolderRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.UpdateFolderOutput) + return ret0, ret1 +} + +// UpdateFolderRequest indicates an expected call of UpdateFolderRequest. +func (mr *MockQuickSightAPIMockRecorder) UpdateFolderRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFolderRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateFolderRequest), arg0) +} + +// UpdateFolderWithContext mocks base method. +func (m *MockQuickSightAPI) UpdateFolderWithContext(arg0 aws.Context, arg1 *quicksight.UpdateFolderInput, arg2 ...request.Option) (*quicksight.UpdateFolderOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateFolderWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.UpdateFolderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateFolderWithContext indicates an expected call of UpdateFolderWithContext. +func (mr *MockQuickSightAPIMockRecorder) UpdateFolderWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFolderWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateFolderWithContext), varargs...) +} + +// UpdateGroup mocks base method. +func (m *MockQuickSightAPI) UpdateGroup(arg0 *quicksight.UpdateGroupInput) (*quicksight.UpdateGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateGroup", arg0) + ret0, _ := ret[0].(*quicksight.UpdateGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateGroup indicates an expected call of UpdateGroup. +func (mr *MockQuickSightAPIMockRecorder) UpdateGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGroup", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateGroup), arg0) +} + +// UpdateGroupRequest mocks base method. +func (m *MockQuickSightAPI) UpdateGroupRequest(arg0 *quicksight.UpdateGroupInput) (*request.Request, *quicksight.UpdateGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.UpdateGroupOutput) + return ret0, ret1 +} + +// UpdateGroupRequest indicates an expected call of UpdateGroupRequest. +func (mr *MockQuickSightAPIMockRecorder) UpdateGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGroupRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateGroupRequest), arg0) +} + +// UpdateGroupWithContext mocks base method. +func (m *MockQuickSightAPI) UpdateGroupWithContext(arg0 aws.Context, arg1 *quicksight.UpdateGroupInput, arg2 ...request.Option) (*quicksight.UpdateGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateGroupWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.UpdateGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateGroupWithContext indicates an expected call of UpdateGroupWithContext. +func (mr *MockQuickSightAPIMockRecorder) UpdateGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGroupWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateGroupWithContext), varargs...) +} + +// UpdateIAMPolicyAssignment mocks base method. +func (m *MockQuickSightAPI) UpdateIAMPolicyAssignment(arg0 *quicksight.UpdateIAMPolicyAssignmentInput) (*quicksight.UpdateIAMPolicyAssignmentOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateIAMPolicyAssignment", arg0) + ret0, _ := ret[0].(*quicksight.UpdateIAMPolicyAssignmentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateIAMPolicyAssignment indicates an expected call of UpdateIAMPolicyAssignment. +func (mr *MockQuickSightAPIMockRecorder) UpdateIAMPolicyAssignment(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateIAMPolicyAssignment", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateIAMPolicyAssignment), arg0) +} + +// UpdateIAMPolicyAssignmentRequest mocks base method. +func (m *MockQuickSightAPI) UpdateIAMPolicyAssignmentRequest(arg0 *quicksight.UpdateIAMPolicyAssignmentInput) (*request.Request, *quicksight.UpdateIAMPolicyAssignmentOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateIAMPolicyAssignmentRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.UpdateIAMPolicyAssignmentOutput) + return ret0, ret1 +} + +// UpdateIAMPolicyAssignmentRequest indicates an expected call of UpdateIAMPolicyAssignmentRequest. +func (mr *MockQuickSightAPIMockRecorder) UpdateIAMPolicyAssignmentRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateIAMPolicyAssignmentRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateIAMPolicyAssignmentRequest), arg0) +} + +// UpdateIAMPolicyAssignmentWithContext mocks base method. +func (m *MockQuickSightAPI) UpdateIAMPolicyAssignmentWithContext(arg0 aws.Context, arg1 *quicksight.UpdateIAMPolicyAssignmentInput, arg2 ...request.Option) (*quicksight.UpdateIAMPolicyAssignmentOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateIAMPolicyAssignmentWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.UpdateIAMPolicyAssignmentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateIAMPolicyAssignmentWithContext indicates an expected call of UpdateIAMPolicyAssignmentWithContext. +func (mr *MockQuickSightAPIMockRecorder) UpdateIAMPolicyAssignmentWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateIAMPolicyAssignmentWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateIAMPolicyAssignmentWithContext), varargs...) +} + +// UpdateIdentityPropagationConfig mocks base method. +func (m *MockQuickSightAPI) UpdateIdentityPropagationConfig(arg0 *quicksight.UpdateIdentityPropagationConfigInput) (*quicksight.UpdateIdentityPropagationConfigOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateIdentityPropagationConfig", arg0) + ret0, _ := ret[0].(*quicksight.UpdateIdentityPropagationConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateIdentityPropagationConfig indicates an expected call of UpdateIdentityPropagationConfig. +func (mr *MockQuickSightAPIMockRecorder) UpdateIdentityPropagationConfig(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateIdentityPropagationConfig", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateIdentityPropagationConfig), arg0) +} + +// UpdateIdentityPropagationConfigRequest mocks base method. +func (m *MockQuickSightAPI) UpdateIdentityPropagationConfigRequest(arg0 *quicksight.UpdateIdentityPropagationConfigInput) (*request.Request, *quicksight.UpdateIdentityPropagationConfigOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateIdentityPropagationConfigRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.UpdateIdentityPropagationConfigOutput) + return ret0, ret1 +} + +// UpdateIdentityPropagationConfigRequest indicates an expected call of UpdateIdentityPropagationConfigRequest. +func (mr *MockQuickSightAPIMockRecorder) UpdateIdentityPropagationConfigRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateIdentityPropagationConfigRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateIdentityPropagationConfigRequest), arg0) +} + +// UpdateIdentityPropagationConfigWithContext mocks base method. +func (m *MockQuickSightAPI) UpdateIdentityPropagationConfigWithContext(arg0 aws.Context, arg1 *quicksight.UpdateIdentityPropagationConfigInput, arg2 ...request.Option) (*quicksight.UpdateIdentityPropagationConfigOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateIdentityPropagationConfigWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.UpdateIdentityPropagationConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateIdentityPropagationConfigWithContext indicates an expected call of UpdateIdentityPropagationConfigWithContext. +func (mr *MockQuickSightAPIMockRecorder) UpdateIdentityPropagationConfigWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateIdentityPropagationConfigWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateIdentityPropagationConfigWithContext), varargs...) +} + +// UpdateIpRestriction mocks base method. +func (m *MockQuickSightAPI) UpdateIpRestriction(arg0 *quicksight.UpdateIpRestrictionInput) (*quicksight.UpdateIpRestrictionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateIpRestriction", arg0) + ret0, _ := ret[0].(*quicksight.UpdateIpRestrictionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateIpRestriction indicates an expected call of UpdateIpRestriction. +func (mr *MockQuickSightAPIMockRecorder) UpdateIpRestriction(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateIpRestriction", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateIpRestriction), arg0) +} + +// UpdateIpRestrictionRequest mocks base method. +func (m *MockQuickSightAPI) UpdateIpRestrictionRequest(arg0 *quicksight.UpdateIpRestrictionInput) (*request.Request, *quicksight.UpdateIpRestrictionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateIpRestrictionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.UpdateIpRestrictionOutput) + return ret0, ret1 +} + +// UpdateIpRestrictionRequest indicates an expected call of UpdateIpRestrictionRequest. +func (mr *MockQuickSightAPIMockRecorder) UpdateIpRestrictionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateIpRestrictionRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateIpRestrictionRequest), arg0) +} + +// UpdateIpRestrictionWithContext mocks base method. +func (m *MockQuickSightAPI) UpdateIpRestrictionWithContext(arg0 aws.Context, arg1 *quicksight.UpdateIpRestrictionInput, arg2 ...request.Option) (*quicksight.UpdateIpRestrictionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateIpRestrictionWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.UpdateIpRestrictionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateIpRestrictionWithContext indicates an expected call of UpdateIpRestrictionWithContext. +func (mr *MockQuickSightAPIMockRecorder) UpdateIpRestrictionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateIpRestrictionWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateIpRestrictionWithContext), varargs...) +} + +// UpdatePublicSharingSettings mocks base method. +func (m *MockQuickSightAPI) UpdatePublicSharingSettings(arg0 *quicksight.UpdatePublicSharingSettingsInput) (*quicksight.UpdatePublicSharingSettingsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdatePublicSharingSettings", arg0) + ret0, _ := ret[0].(*quicksight.UpdatePublicSharingSettingsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdatePublicSharingSettings indicates an expected call of UpdatePublicSharingSettings. +func (mr *MockQuickSightAPIMockRecorder) UpdatePublicSharingSettings(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePublicSharingSettings", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdatePublicSharingSettings), arg0) +} + +// UpdatePublicSharingSettingsRequest mocks base method. +func (m *MockQuickSightAPI) UpdatePublicSharingSettingsRequest(arg0 *quicksight.UpdatePublicSharingSettingsInput) (*request.Request, *quicksight.UpdatePublicSharingSettingsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdatePublicSharingSettingsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.UpdatePublicSharingSettingsOutput) + return ret0, ret1 +} + +// UpdatePublicSharingSettingsRequest indicates an expected call of UpdatePublicSharingSettingsRequest. +func (mr *MockQuickSightAPIMockRecorder) UpdatePublicSharingSettingsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePublicSharingSettingsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdatePublicSharingSettingsRequest), arg0) +} + +// UpdatePublicSharingSettingsWithContext mocks base method. +func (m *MockQuickSightAPI) UpdatePublicSharingSettingsWithContext(arg0 aws.Context, arg1 *quicksight.UpdatePublicSharingSettingsInput, arg2 ...request.Option) (*quicksight.UpdatePublicSharingSettingsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdatePublicSharingSettingsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.UpdatePublicSharingSettingsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdatePublicSharingSettingsWithContext indicates an expected call of UpdatePublicSharingSettingsWithContext. +func (mr *MockQuickSightAPIMockRecorder) UpdatePublicSharingSettingsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePublicSharingSettingsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdatePublicSharingSettingsWithContext), varargs...) +} + +// UpdateRefreshSchedule mocks base method. +func (m *MockQuickSightAPI) UpdateRefreshSchedule(arg0 *quicksight.UpdateRefreshScheduleInput) (*quicksight.UpdateRefreshScheduleOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateRefreshSchedule", arg0) + ret0, _ := ret[0].(*quicksight.UpdateRefreshScheduleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateRefreshSchedule indicates an expected call of UpdateRefreshSchedule. +func (mr *MockQuickSightAPIMockRecorder) UpdateRefreshSchedule(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRefreshSchedule", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateRefreshSchedule), arg0) +} + +// UpdateRefreshScheduleRequest mocks base method. +func (m *MockQuickSightAPI) UpdateRefreshScheduleRequest(arg0 *quicksight.UpdateRefreshScheduleInput) (*request.Request, *quicksight.UpdateRefreshScheduleOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateRefreshScheduleRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.UpdateRefreshScheduleOutput) + return ret0, ret1 +} + +// UpdateRefreshScheduleRequest indicates an expected call of UpdateRefreshScheduleRequest. +func (mr *MockQuickSightAPIMockRecorder) UpdateRefreshScheduleRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRefreshScheduleRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateRefreshScheduleRequest), arg0) +} + +// UpdateRefreshScheduleWithContext mocks base method. +func (m *MockQuickSightAPI) UpdateRefreshScheduleWithContext(arg0 aws.Context, arg1 *quicksight.UpdateRefreshScheduleInput, arg2 ...request.Option) (*quicksight.UpdateRefreshScheduleOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateRefreshScheduleWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.UpdateRefreshScheduleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateRefreshScheduleWithContext indicates an expected call of UpdateRefreshScheduleWithContext. +func (mr *MockQuickSightAPIMockRecorder) UpdateRefreshScheduleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRefreshScheduleWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateRefreshScheduleWithContext), varargs...) +} + +// UpdateRoleCustomPermission mocks base method. +func (m *MockQuickSightAPI) UpdateRoleCustomPermission(arg0 *quicksight.UpdateRoleCustomPermissionInput) (*quicksight.UpdateRoleCustomPermissionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateRoleCustomPermission", arg0) + ret0, _ := ret[0].(*quicksight.UpdateRoleCustomPermissionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateRoleCustomPermission indicates an expected call of UpdateRoleCustomPermission. +func (mr *MockQuickSightAPIMockRecorder) UpdateRoleCustomPermission(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRoleCustomPermission", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateRoleCustomPermission), arg0) +} + +// UpdateRoleCustomPermissionRequest mocks base method. +func (m *MockQuickSightAPI) UpdateRoleCustomPermissionRequest(arg0 *quicksight.UpdateRoleCustomPermissionInput) (*request.Request, *quicksight.UpdateRoleCustomPermissionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateRoleCustomPermissionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.UpdateRoleCustomPermissionOutput) + return ret0, ret1 +} + +// UpdateRoleCustomPermissionRequest indicates an expected call of UpdateRoleCustomPermissionRequest. +func (mr *MockQuickSightAPIMockRecorder) UpdateRoleCustomPermissionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRoleCustomPermissionRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateRoleCustomPermissionRequest), arg0) +} + +// UpdateRoleCustomPermissionWithContext mocks base method. +func (m *MockQuickSightAPI) UpdateRoleCustomPermissionWithContext(arg0 aws.Context, arg1 *quicksight.UpdateRoleCustomPermissionInput, arg2 ...request.Option) (*quicksight.UpdateRoleCustomPermissionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateRoleCustomPermissionWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.UpdateRoleCustomPermissionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateRoleCustomPermissionWithContext indicates an expected call of UpdateRoleCustomPermissionWithContext. +func (mr *MockQuickSightAPIMockRecorder) UpdateRoleCustomPermissionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRoleCustomPermissionWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateRoleCustomPermissionWithContext), varargs...) +} + +// UpdateSPICECapacityConfiguration mocks base method. +func (m *MockQuickSightAPI) UpdateSPICECapacityConfiguration(arg0 *quicksight.UpdateSPICECapacityConfigurationInput) (*quicksight.UpdateSPICECapacityConfigurationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateSPICECapacityConfiguration", arg0) + ret0, _ := ret[0].(*quicksight.UpdateSPICECapacityConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateSPICECapacityConfiguration indicates an expected call of UpdateSPICECapacityConfiguration. +func (mr *MockQuickSightAPIMockRecorder) UpdateSPICECapacityConfiguration(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSPICECapacityConfiguration", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateSPICECapacityConfiguration), arg0) +} + +// UpdateSPICECapacityConfigurationRequest mocks base method. +func (m *MockQuickSightAPI) UpdateSPICECapacityConfigurationRequest(arg0 *quicksight.UpdateSPICECapacityConfigurationInput) (*request.Request, *quicksight.UpdateSPICECapacityConfigurationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateSPICECapacityConfigurationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.UpdateSPICECapacityConfigurationOutput) + return ret0, ret1 +} + +// UpdateSPICECapacityConfigurationRequest indicates an expected call of UpdateSPICECapacityConfigurationRequest. +func (mr *MockQuickSightAPIMockRecorder) UpdateSPICECapacityConfigurationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSPICECapacityConfigurationRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateSPICECapacityConfigurationRequest), arg0) +} + +// UpdateSPICECapacityConfigurationWithContext mocks base method. +func (m *MockQuickSightAPI) UpdateSPICECapacityConfigurationWithContext(arg0 aws.Context, arg1 *quicksight.UpdateSPICECapacityConfigurationInput, arg2 ...request.Option) (*quicksight.UpdateSPICECapacityConfigurationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateSPICECapacityConfigurationWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.UpdateSPICECapacityConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateSPICECapacityConfigurationWithContext indicates an expected call of UpdateSPICECapacityConfigurationWithContext. +func (mr *MockQuickSightAPIMockRecorder) UpdateSPICECapacityConfigurationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSPICECapacityConfigurationWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateSPICECapacityConfigurationWithContext), varargs...) +} + +// UpdateTemplate mocks base method. +func (m *MockQuickSightAPI) UpdateTemplate(arg0 *quicksight.UpdateTemplateInput) (*quicksight.UpdateTemplateOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTemplate", arg0) + ret0, _ := ret[0].(*quicksight.UpdateTemplateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTemplate indicates an expected call of UpdateTemplate. +func (mr *MockQuickSightAPIMockRecorder) UpdateTemplate(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTemplate", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateTemplate), arg0) +} + +// UpdateTemplateAlias mocks base method. +func (m *MockQuickSightAPI) UpdateTemplateAlias(arg0 *quicksight.UpdateTemplateAliasInput) (*quicksight.UpdateTemplateAliasOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTemplateAlias", arg0) + ret0, _ := ret[0].(*quicksight.UpdateTemplateAliasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTemplateAlias indicates an expected call of UpdateTemplateAlias. +func (mr *MockQuickSightAPIMockRecorder) UpdateTemplateAlias(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTemplateAlias", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateTemplateAlias), arg0) +} + +// UpdateTemplateAliasRequest mocks base method. +func (m *MockQuickSightAPI) UpdateTemplateAliasRequest(arg0 *quicksight.UpdateTemplateAliasInput) (*request.Request, *quicksight.UpdateTemplateAliasOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTemplateAliasRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.UpdateTemplateAliasOutput) + return ret0, ret1 +} + +// UpdateTemplateAliasRequest indicates an expected call of UpdateTemplateAliasRequest. +func (mr *MockQuickSightAPIMockRecorder) UpdateTemplateAliasRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTemplateAliasRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateTemplateAliasRequest), arg0) +} + +// UpdateTemplateAliasWithContext mocks base method. +func (m *MockQuickSightAPI) UpdateTemplateAliasWithContext(arg0 aws.Context, arg1 *quicksight.UpdateTemplateAliasInput, arg2 ...request.Option) (*quicksight.UpdateTemplateAliasOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateTemplateAliasWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.UpdateTemplateAliasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTemplateAliasWithContext indicates an expected call of UpdateTemplateAliasWithContext. +func (mr *MockQuickSightAPIMockRecorder) UpdateTemplateAliasWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTemplateAliasWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateTemplateAliasWithContext), varargs...) +} + +// UpdateTemplatePermissions mocks base method. +func (m *MockQuickSightAPI) UpdateTemplatePermissions(arg0 *quicksight.UpdateTemplatePermissionsInput) (*quicksight.UpdateTemplatePermissionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTemplatePermissions", arg0) + ret0, _ := ret[0].(*quicksight.UpdateTemplatePermissionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTemplatePermissions indicates an expected call of UpdateTemplatePermissions. +func (mr *MockQuickSightAPIMockRecorder) UpdateTemplatePermissions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTemplatePermissions", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateTemplatePermissions), arg0) +} + +// UpdateTemplatePermissionsRequest mocks base method. +func (m *MockQuickSightAPI) UpdateTemplatePermissionsRequest(arg0 *quicksight.UpdateTemplatePermissionsInput) (*request.Request, *quicksight.UpdateTemplatePermissionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTemplatePermissionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.UpdateTemplatePermissionsOutput) + return ret0, ret1 +} + +// UpdateTemplatePermissionsRequest indicates an expected call of UpdateTemplatePermissionsRequest. +func (mr *MockQuickSightAPIMockRecorder) UpdateTemplatePermissionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTemplatePermissionsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateTemplatePermissionsRequest), arg0) +} + +// UpdateTemplatePermissionsWithContext mocks base method. +func (m *MockQuickSightAPI) UpdateTemplatePermissionsWithContext(arg0 aws.Context, arg1 *quicksight.UpdateTemplatePermissionsInput, arg2 ...request.Option) (*quicksight.UpdateTemplatePermissionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateTemplatePermissionsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.UpdateTemplatePermissionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTemplatePermissionsWithContext indicates an expected call of UpdateTemplatePermissionsWithContext. +func (mr *MockQuickSightAPIMockRecorder) UpdateTemplatePermissionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTemplatePermissionsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateTemplatePermissionsWithContext), varargs...) +} + +// UpdateTemplateRequest mocks base method. +func (m *MockQuickSightAPI) UpdateTemplateRequest(arg0 *quicksight.UpdateTemplateInput) (*request.Request, *quicksight.UpdateTemplateOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTemplateRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.UpdateTemplateOutput) + return ret0, ret1 +} + +// UpdateTemplateRequest indicates an expected call of UpdateTemplateRequest. +func (mr *MockQuickSightAPIMockRecorder) UpdateTemplateRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTemplateRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateTemplateRequest), arg0) +} + +// UpdateTemplateWithContext mocks base method. +func (m *MockQuickSightAPI) UpdateTemplateWithContext(arg0 aws.Context, arg1 *quicksight.UpdateTemplateInput, arg2 ...request.Option) (*quicksight.UpdateTemplateOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateTemplateWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.UpdateTemplateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTemplateWithContext indicates an expected call of UpdateTemplateWithContext. +func (mr *MockQuickSightAPIMockRecorder) UpdateTemplateWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTemplateWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateTemplateWithContext), varargs...) +} + +// UpdateTheme mocks base method. +func (m *MockQuickSightAPI) UpdateTheme(arg0 *quicksight.UpdateThemeInput) (*quicksight.UpdateThemeOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTheme", arg0) + ret0, _ := ret[0].(*quicksight.UpdateThemeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTheme indicates an expected call of UpdateTheme. +func (mr *MockQuickSightAPIMockRecorder) UpdateTheme(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTheme", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateTheme), arg0) +} + +// UpdateThemeAlias mocks base method. +func (m *MockQuickSightAPI) UpdateThemeAlias(arg0 *quicksight.UpdateThemeAliasInput) (*quicksight.UpdateThemeAliasOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateThemeAlias", arg0) + ret0, _ := ret[0].(*quicksight.UpdateThemeAliasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateThemeAlias indicates an expected call of UpdateThemeAlias. +func (mr *MockQuickSightAPIMockRecorder) UpdateThemeAlias(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateThemeAlias", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateThemeAlias), arg0) +} + +// UpdateThemeAliasRequest mocks base method. +func (m *MockQuickSightAPI) UpdateThemeAliasRequest(arg0 *quicksight.UpdateThemeAliasInput) (*request.Request, *quicksight.UpdateThemeAliasOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateThemeAliasRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.UpdateThemeAliasOutput) + return ret0, ret1 +} + +// UpdateThemeAliasRequest indicates an expected call of UpdateThemeAliasRequest. +func (mr *MockQuickSightAPIMockRecorder) UpdateThemeAliasRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateThemeAliasRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateThemeAliasRequest), arg0) +} + +// UpdateThemeAliasWithContext mocks base method. +func (m *MockQuickSightAPI) UpdateThemeAliasWithContext(arg0 aws.Context, arg1 *quicksight.UpdateThemeAliasInput, arg2 ...request.Option) (*quicksight.UpdateThemeAliasOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateThemeAliasWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.UpdateThemeAliasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateThemeAliasWithContext indicates an expected call of UpdateThemeAliasWithContext. +func (mr *MockQuickSightAPIMockRecorder) UpdateThemeAliasWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateThemeAliasWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateThemeAliasWithContext), varargs...) +} + +// UpdateThemePermissions mocks base method. +func (m *MockQuickSightAPI) UpdateThemePermissions(arg0 *quicksight.UpdateThemePermissionsInput) (*quicksight.UpdateThemePermissionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateThemePermissions", arg0) + ret0, _ := ret[0].(*quicksight.UpdateThemePermissionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateThemePermissions indicates an expected call of UpdateThemePermissions. +func (mr *MockQuickSightAPIMockRecorder) UpdateThemePermissions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateThemePermissions", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateThemePermissions), arg0) +} + +// UpdateThemePermissionsRequest mocks base method. +func (m *MockQuickSightAPI) UpdateThemePermissionsRequest(arg0 *quicksight.UpdateThemePermissionsInput) (*request.Request, *quicksight.UpdateThemePermissionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateThemePermissionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.UpdateThemePermissionsOutput) + return ret0, ret1 +} + +// UpdateThemePermissionsRequest indicates an expected call of UpdateThemePermissionsRequest. +func (mr *MockQuickSightAPIMockRecorder) UpdateThemePermissionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateThemePermissionsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateThemePermissionsRequest), arg0) +} + +// UpdateThemePermissionsWithContext mocks base method. +func (m *MockQuickSightAPI) UpdateThemePermissionsWithContext(arg0 aws.Context, arg1 *quicksight.UpdateThemePermissionsInput, arg2 ...request.Option) (*quicksight.UpdateThemePermissionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateThemePermissionsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.UpdateThemePermissionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateThemePermissionsWithContext indicates an expected call of UpdateThemePermissionsWithContext. +func (mr *MockQuickSightAPIMockRecorder) UpdateThemePermissionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateThemePermissionsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateThemePermissionsWithContext), varargs...) +} + +// UpdateThemeRequest mocks base method. +func (m *MockQuickSightAPI) UpdateThemeRequest(arg0 *quicksight.UpdateThemeInput) (*request.Request, *quicksight.UpdateThemeOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateThemeRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.UpdateThemeOutput) + return ret0, ret1 +} + +// UpdateThemeRequest indicates an expected call of UpdateThemeRequest. +func (mr *MockQuickSightAPIMockRecorder) UpdateThemeRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateThemeRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateThemeRequest), arg0) +} + +// UpdateThemeWithContext mocks base method. +func (m *MockQuickSightAPI) UpdateThemeWithContext(arg0 aws.Context, arg1 *quicksight.UpdateThemeInput, arg2 ...request.Option) (*quicksight.UpdateThemeOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateThemeWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.UpdateThemeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateThemeWithContext indicates an expected call of UpdateThemeWithContext. +func (mr *MockQuickSightAPIMockRecorder) UpdateThemeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateThemeWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateThemeWithContext), varargs...) +} + +// UpdateTopic mocks base method. +func (m *MockQuickSightAPI) UpdateTopic(arg0 *quicksight.UpdateTopicInput) (*quicksight.UpdateTopicOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTopic", arg0) + ret0, _ := ret[0].(*quicksight.UpdateTopicOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTopic indicates an expected call of UpdateTopic. +func (mr *MockQuickSightAPIMockRecorder) UpdateTopic(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTopic", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateTopic), arg0) +} + +// UpdateTopicPermissions mocks base method. +func (m *MockQuickSightAPI) UpdateTopicPermissions(arg0 *quicksight.UpdateTopicPermissionsInput) (*quicksight.UpdateTopicPermissionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTopicPermissions", arg0) + ret0, _ := ret[0].(*quicksight.UpdateTopicPermissionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTopicPermissions indicates an expected call of UpdateTopicPermissions. +func (mr *MockQuickSightAPIMockRecorder) UpdateTopicPermissions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTopicPermissions", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateTopicPermissions), arg0) +} + +// UpdateTopicPermissionsRequest mocks base method. +func (m *MockQuickSightAPI) UpdateTopicPermissionsRequest(arg0 *quicksight.UpdateTopicPermissionsInput) (*request.Request, *quicksight.UpdateTopicPermissionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTopicPermissionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.UpdateTopicPermissionsOutput) + return ret0, ret1 +} + +// UpdateTopicPermissionsRequest indicates an expected call of UpdateTopicPermissionsRequest. +func (mr *MockQuickSightAPIMockRecorder) UpdateTopicPermissionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTopicPermissionsRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateTopicPermissionsRequest), arg0) +} + +// UpdateTopicPermissionsWithContext mocks base method. +func (m *MockQuickSightAPI) UpdateTopicPermissionsWithContext(arg0 aws.Context, arg1 *quicksight.UpdateTopicPermissionsInput, arg2 ...request.Option) (*quicksight.UpdateTopicPermissionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateTopicPermissionsWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.UpdateTopicPermissionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTopicPermissionsWithContext indicates an expected call of UpdateTopicPermissionsWithContext. +func (mr *MockQuickSightAPIMockRecorder) UpdateTopicPermissionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTopicPermissionsWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateTopicPermissionsWithContext), varargs...) +} + +// UpdateTopicRefreshSchedule mocks base method. +func (m *MockQuickSightAPI) UpdateTopicRefreshSchedule(arg0 *quicksight.UpdateTopicRefreshScheduleInput) (*quicksight.UpdateTopicRefreshScheduleOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTopicRefreshSchedule", arg0) + ret0, _ := ret[0].(*quicksight.UpdateTopicRefreshScheduleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTopicRefreshSchedule indicates an expected call of UpdateTopicRefreshSchedule. +func (mr *MockQuickSightAPIMockRecorder) UpdateTopicRefreshSchedule(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTopicRefreshSchedule", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateTopicRefreshSchedule), arg0) +} + +// UpdateTopicRefreshScheduleRequest mocks base method. +func (m *MockQuickSightAPI) UpdateTopicRefreshScheduleRequest(arg0 *quicksight.UpdateTopicRefreshScheduleInput) (*request.Request, *quicksight.UpdateTopicRefreshScheduleOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTopicRefreshScheduleRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.UpdateTopicRefreshScheduleOutput) + return ret0, ret1 +} + +// UpdateTopicRefreshScheduleRequest indicates an expected call of UpdateTopicRefreshScheduleRequest. +func (mr *MockQuickSightAPIMockRecorder) UpdateTopicRefreshScheduleRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTopicRefreshScheduleRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateTopicRefreshScheduleRequest), arg0) +} + +// UpdateTopicRefreshScheduleWithContext mocks base method. +func (m *MockQuickSightAPI) UpdateTopicRefreshScheduleWithContext(arg0 aws.Context, arg1 *quicksight.UpdateTopicRefreshScheduleInput, arg2 ...request.Option) (*quicksight.UpdateTopicRefreshScheduleOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateTopicRefreshScheduleWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.UpdateTopicRefreshScheduleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTopicRefreshScheduleWithContext indicates an expected call of UpdateTopicRefreshScheduleWithContext. +func (mr *MockQuickSightAPIMockRecorder) UpdateTopicRefreshScheduleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTopicRefreshScheduleWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateTopicRefreshScheduleWithContext), varargs...) +} + +// UpdateTopicRequest mocks base method. +func (m *MockQuickSightAPI) UpdateTopicRequest(arg0 *quicksight.UpdateTopicInput) (*request.Request, *quicksight.UpdateTopicOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTopicRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.UpdateTopicOutput) + return ret0, ret1 +} + +// UpdateTopicRequest indicates an expected call of UpdateTopicRequest. +func (mr *MockQuickSightAPIMockRecorder) UpdateTopicRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTopicRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateTopicRequest), arg0) +} + +// UpdateTopicWithContext mocks base method. +func (m *MockQuickSightAPI) UpdateTopicWithContext(arg0 aws.Context, arg1 *quicksight.UpdateTopicInput, arg2 ...request.Option) (*quicksight.UpdateTopicOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateTopicWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.UpdateTopicOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTopicWithContext indicates an expected call of UpdateTopicWithContext. +func (mr *MockQuickSightAPIMockRecorder) UpdateTopicWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTopicWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateTopicWithContext), varargs...) +} + +// UpdateUser mocks base method. +func (m *MockQuickSightAPI) UpdateUser(arg0 *quicksight.UpdateUserInput) (*quicksight.UpdateUserOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateUser", arg0) + ret0, _ := ret[0].(*quicksight.UpdateUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateUser indicates an expected call of UpdateUser. +func (mr *MockQuickSightAPIMockRecorder) UpdateUser(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUser", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateUser), arg0) +} + +// UpdateUserRequest mocks base method. +func (m *MockQuickSightAPI) UpdateUserRequest(arg0 *quicksight.UpdateUserInput) (*request.Request, *quicksight.UpdateUserOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateUserRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.UpdateUserOutput) + return ret0, ret1 +} + +// UpdateUserRequest indicates an expected call of UpdateUserRequest. +func (mr *MockQuickSightAPIMockRecorder) UpdateUserRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateUserRequest), arg0) +} + +// UpdateUserWithContext mocks base method. +func (m *MockQuickSightAPI) UpdateUserWithContext(arg0 aws.Context, arg1 *quicksight.UpdateUserInput, arg2 ...request.Option) (*quicksight.UpdateUserOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateUserWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.UpdateUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateUserWithContext indicates an expected call of UpdateUserWithContext. +func (mr *MockQuickSightAPIMockRecorder) UpdateUserWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateUserWithContext), varargs...) +} + +// UpdateVPCConnection mocks base method. +func (m *MockQuickSightAPI) UpdateVPCConnection(arg0 *quicksight.UpdateVPCConnectionInput) (*quicksight.UpdateVPCConnectionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateVPCConnection", arg0) + ret0, _ := ret[0].(*quicksight.UpdateVPCConnectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateVPCConnection indicates an expected call of UpdateVPCConnection. +func (mr *MockQuickSightAPIMockRecorder) UpdateVPCConnection(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateVPCConnection", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateVPCConnection), arg0) +} + +// UpdateVPCConnectionRequest mocks base method. +func (m *MockQuickSightAPI) UpdateVPCConnectionRequest(arg0 *quicksight.UpdateVPCConnectionInput) (*request.Request, *quicksight.UpdateVPCConnectionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateVPCConnectionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.UpdateVPCConnectionOutput) + return ret0, ret1 +} + +// UpdateVPCConnectionRequest indicates an expected call of UpdateVPCConnectionRequest. +func (mr *MockQuickSightAPIMockRecorder) UpdateVPCConnectionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateVPCConnectionRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateVPCConnectionRequest), arg0) +} + +// UpdateVPCConnectionWithContext mocks base method. +func (m *MockQuickSightAPI) UpdateVPCConnectionWithContext(arg0 aws.Context, arg1 *quicksight.UpdateVPCConnectionInput, arg2 ...request.Option) (*quicksight.UpdateVPCConnectionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateVPCConnectionWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.UpdateVPCConnectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateVPCConnectionWithContext indicates an expected call of UpdateVPCConnectionWithContext. +func (mr *MockQuickSightAPIMockRecorder) UpdateVPCConnectionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateVPCConnectionWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateVPCConnectionWithContext), varargs...) +} diff --git a/mocks/mock_stsiface/mock.go b/mocks/mock_stsiface/mock.go new file mode 100644 index 00000000..bd55d542 --- /dev/null +++ b/mocks/mock_stsiface/mock.go @@ -0,0 +1,437 @@ +// Code generated by MockGen. DO NOT EDIT. +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.52.4/service/sts/stsiface/interface.go + +// Package mock_stsiface is a generated GoMock package. +package mock_stsiface + +import ( + reflect "reflect" + + aws "github.com/aws/aws-sdk-go/aws" + request "github.com/aws/aws-sdk-go/aws/request" + sts "github.com/aws/aws-sdk-go/service/sts" + gomock "github.com/golang/mock/gomock" +) + +// MockSTSAPI is a mock of STSAPI interface. +type MockSTSAPI struct { + ctrl *gomock.Controller + recorder *MockSTSAPIMockRecorder +} + +// MockSTSAPIMockRecorder is the mock recorder for MockSTSAPI. +type MockSTSAPIMockRecorder struct { + mock *MockSTSAPI +} + +// NewMockSTSAPI creates a new mock instance. +func NewMockSTSAPI(ctrl *gomock.Controller) *MockSTSAPI { + mock := &MockSTSAPI{ctrl: ctrl} + mock.recorder = &MockSTSAPIMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockSTSAPI) EXPECT() *MockSTSAPIMockRecorder { + return m.recorder +} + +// AssumeRole mocks base method. +func (m *MockSTSAPI) AssumeRole(arg0 *sts.AssumeRoleInput) (*sts.AssumeRoleOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AssumeRole", arg0) + ret0, _ := ret[0].(*sts.AssumeRoleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AssumeRole indicates an expected call of AssumeRole. +func (mr *MockSTSAPIMockRecorder) AssumeRole(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssumeRole", reflect.TypeOf((*MockSTSAPI)(nil).AssumeRole), arg0) +} + +// AssumeRoleRequest mocks base method. +func (m *MockSTSAPI) AssumeRoleRequest(arg0 *sts.AssumeRoleInput) (*request.Request, *sts.AssumeRoleOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AssumeRoleRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sts.AssumeRoleOutput) + return ret0, ret1 +} + +// AssumeRoleRequest indicates an expected call of AssumeRoleRequest. +func (mr *MockSTSAPIMockRecorder) AssumeRoleRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssumeRoleRequest", reflect.TypeOf((*MockSTSAPI)(nil).AssumeRoleRequest), arg0) +} + +// AssumeRoleWithContext mocks base method. +func (m *MockSTSAPI) AssumeRoleWithContext(arg0 aws.Context, arg1 *sts.AssumeRoleInput, arg2 ...request.Option) (*sts.AssumeRoleOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AssumeRoleWithContext", varargs...) + ret0, _ := ret[0].(*sts.AssumeRoleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AssumeRoleWithContext indicates an expected call of AssumeRoleWithContext. +func (mr *MockSTSAPIMockRecorder) AssumeRoleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssumeRoleWithContext", reflect.TypeOf((*MockSTSAPI)(nil).AssumeRoleWithContext), varargs...) +} + +// AssumeRoleWithSAML mocks base method. +func (m *MockSTSAPI) AssumeRoleWithSAML(arg0 *sts.AssumeRoleWithSAMLInput) (*sts.AssumeRoleWithSAMLOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AssumeRoleWithSAML", arg0) + ret0, _ := ret[0].(*sts.AssumeRoleWithSAMLOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AssumeRoleWithSAML indicates an expected call of AssumeRoleWithSAML. +func (mr *MockSTSAPIMockRecorder) AssumeRoleWithSAML(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssumeRoleWithSAML", reflect.TypeOf((*MockSTSAPI)(nil).AssumeRoleWithSAML), arg0) +} + +// AssumeRoleWithSAMLRequest mocks base method. +func (m *MockSTSAPI) AssumeRoleWithSAMLRequest(arg0 *sts.AssumeRoleWithSAMLInput) (*request.Request, *sts.AssumeRoleWithSAMLOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AssumeRoleWithSAMLRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sts.AssumeRoleWithSAMLOutput) + return ret0, ret1 +} + +// AssumeRoleWithSAMLRequest indicates an expected call of AssumeRoleWithSAMLRequest. +func (mr *MockSTSAPIMockRecorder) AssumeRoleWithSAMLRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssumeRoleWithSAMLRequest", reflect.TypeOf((*MockSTSAPI)(nil).AssumeRoleWithSAMLRequest), arg0) +} + +// AssumeRoleWithSAMLWithContext mocks base method. +func (m *MockSTSAPI) AssumeRoleWithSAMLWithContext(arg0 aws.Context, arg1 *sts.AssumeRoleWithSAMLInput, arg2 ...request.Option) (*sts.AssumeRoleWithSAMLOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AssumeRoleWithSAMLWithContext", varargs...) + ret0, _ := ret[0].(*sts.AssumeRoleWithSAMLOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AssumeRoleWithSAMLWithContext indicates an expected call of AssumeRoleWithSAMLWithContext. +func (mr *MockSTSAPIMockRecorder) AssumeRoleWithSAMLWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssumeRoleWithSAMLWithContext", reflect.TypeOf((*MockSTSAPI)(nil).AssumeRoleWithSAMLWithContext), varargs...) +} + +// AssumeRoleWithWebIdentity mocks base method. +func (m *MockSTSAPI) AssumeRoleWithWebIdentity(arg0 *sts.AssumeRoleWithWebIdentityInput) (*sts.AssumeRoleWithWebIdentityOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AssumeRoleWithWebIdentity", arg0) + ret0, _ := ret[0].(*sts.AssumeRoleWithWebIdentityOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AssumeRoleWithWebIdentity indicates an expected call of AssumeRoleWithWebIdentity. +func (mr *MockSTSAPIMockRecorder) AssumeRoleWithWebIdentity(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssumeRoleWithWebIdentity", reflect.TypeOf((*MockSTSAPI)(nil).AssumeRoleWithWebIdentity), arg0) +} + +// AssumeRoleWithWebIdentityRequest mocks base method. +func (m *MockSTSAPI) AssumeRoleWithWebIdentityRequest(arg0 *sts.AssumeRoleWithWebIdentityInput) (*request.Request, *sts.AssumeRoleWithWebIdentityOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AssumeRoleWithWebIdentityRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sts.AssumeRoleWithWebIdentityOutput) + return ret0, ret1 +} + +// AssumeRoleWithWebIdentityRequest indicates an expected call of AssumeRoleWithWebIdentityRequest. +func (mr *MockSTSAPIMockRecorder) AssumeRoleWithWebIdentityRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssumeRoleWithWebIdentityRequest", reflect.TypeOf((*MockSTSAPI)(nil).AssumeRoleWithWebIdentityRequest), arg0) +} + +// AssumeRoleWithWebIdentityWithContext mocks base method. +func (m *MockSTSAPI) AssumeRoleWithWebIdentityWithContext(arg0 aws.Context, arg1 *sts.AssumeRoleWithWebIdentityInput, arg2 ...request.Option) (*sts.AssumeRoleWithWebIdentityOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AssumeRoleWithWebIdentityWithContext", varargs...) + ret0, _ := ret[0].(*sts.AssumeRoleWithWebIdentityOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AssumeRoleWithWebIdentityWithContext indicates an expected call of AssumeRoleWithWebIdentityWithContext. +func (mr *MockSTSAPIMockRecorder) AssumeRoleWithWebIdentityWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssumeRoleWithWebIdentityWithContext", reflect.TypeOf((*MockSTSAPI)(nil).AssumeRoleWithWebIdentityWithContext), varargs...) +} + +// DecodeAuthorizationMessage mocks base method. +func (m *MockSTSAPI) DecodeAuthorizationMessage(arg0 *sts.DecodeAuthorizationMessageInput) (*sts.DecodeAuthorizationMessageOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DecodeAuthorizationMessage", arg0) + ret0, _ := ret[0].(*sts.DecodeAuthorizationMessageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DecodeAuthorizationMessage indicates an expected call of DecodeAuthorizationMessage. +func (mr *MockSTSAPIMockRecorder) DecodeAuthorizationMessage(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecodeAuthorizationMessage", reflect.TypeOf((*MockSTSAPI)(nil).DecodeAuthorizationMessage), arg0) +} + +// DecodeAuthorizationMessageRequest mocks base method. +func (m *MockSTSAPI) DecodeAuthorizationMessageRequest(arg0 *sts.DecodeAuthorizationMessageInput) (*request.Request, *sts.DecodeAuthorizationMessageOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DecodeAuthorizationMessageRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sts.DecodeAuthorizationMessageOutput) + return ret0, ret1 +} + +// DecodeAuthorizationMessageRequest indicates an expected call of DecodeAuthorizationMessageRequest. +func (mr *MockSTSAPIMockRecorder) DecodeAuthorizationMessageRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecodeAuthorizationMessageRequest", reflect.TypeOf((*MockSTSAPI)(nil).DecodeAuthorizationMessageRequest), arg0) +} + +// DecodeAuthorizationMessageWithContext mocks base method. +func (m *MockSTSAPI) DecodeAuthorizationMessageWithContext(arg0 aws.Context, arg1 *sts.DecodeAuthorizationMessageInput, arg2 ...request.Option) (*sts.DecodeAuthorizationMessageOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DecodeAuthorizationMessageWithContext", varargs...) + ret0, _ := ret[0].(*sts.DecodeAuthorizationMessageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DecodeAuthorizationMessageWithContext indicates an expected call of DecodeAuthorizationMessageWithContext. +func (mr *MockSTSAPIMockRecorder) DecodeAuthorizationMessageWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecodeAuthorizationMessageWithContext", reflect.TypeOf((*MockSTSAPI)(nil).DecodeAuthorizationMessageWithContext), varargs...) +} + +// GetAccessKeyInfo mocks base method. +func (m *MockSTSAPI) GetAccessKeyInfo(arg0 *sts.GetAccessKeyInfoInput) (*sts.GetAccessKeyInfoOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetAccessKeyInfo", arg0) + ret0, _ := ret[0].(*sts.GetAccessKeyInfoOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetAccessKeyInfo indicates an expected call of GetAccessKeyInfo. +func (mr *MockSTSAPIMockRecorder) GetAccessKeyInfo(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccessKeyInfo", reflect.TypeOf((*MockSTSAPI)(nil).GetAccessKeyInfo), arg0) +} + +// GetAccessKeyInfoRequest mocks base method. +func (m *MockSTSAPI) GetAccessKeyInfoRequest(arg0 *sts.GetAccessKeyInfoInput) (*request.Request, *sts.GetAccessKeyInfoOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetAccessKeyInfoRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sts.GetAccessKeyInfoOutput) + return ret0, ret1 +} + +// GetAccessKeyInfoRequest indicates an expected call of GetAccessKeyInfoRequest. +func (mr *MockSTSAPIMockRecorder) GetAccessKeyInfoRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccessKeyInfoRequest", reflect.TypeOf((*MockSTSAPI)(nil).GetAccessKeyInfoRequest), arg0) +} + +// GetAccessKeyInfoWithContext mocks base method. +func (m *MockSTSAPI) GetAccessKeyInfoWithContext(arg0 aws.Context, arg1 *sts.GetAccessKeyInfoInput, arg2 ...request.Option) (*sts.GetAccessKeyInfoOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetAccessKeyInfoWithContext", varargs...) + ret0, _ := ret[0].(*sts.GetAccessKeyInfoOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetAccessKeyInfoWithContext indicates an expected call of GetAccessKeyInfoWithContext. +func (mr *MockSTSAPIMockRecorder) GetAccessKeyInfoWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccessKeyInfoWithContext", reflect.TypeOf((*MockSTSAPI)(nil).GetAccessKeyInfoWithContext), varargs...) +} + +// GetCallerIdentity mocks base method. +func (m *MockSTSAPI) GetCallerIdentity(arg0 *sts.GetCallerIdentityInput) (*sts.GetCallerIdentityOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetCallerIdentity", arg0) + ret0, _ := ret[0].(*sts.GetCallerIdentityOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetCallerIdentity indicates an expected call of GetCallerIdentity. +func (mr *MockSTSAPIMockRecorder) GetCallerIdentity(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCallerIdentity", reflect.TypeOf((*MockSTSAPI)(nil).GetCallerIdentity), arg0) +} + +// GetCallerIdentityRequest mocks base method. +func (m *MockSTSAPI) GetCallerIdentityRequest(arg0 *sts.GetCallerIdentityInput) (*request.Request, *sts.GetCallerIdentityOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetCallerIdentityRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sts.GetCallerIdentityOutput) + return ret0, ret1 +} + +// GetCallerIdentityRequest indicates an expected call of GetCallerIdentityRequest. +func (mr *MockSTSAPIMockRecorder) GetCallerIdentityRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCallerIdentityRequest", reflect.TypeOf((*MockSTSAPI)(nil).GetCallerIdentityRequest), arg0) +} + +// GetCallerIdentityWithContext mocks base method. +func (m *MockSTSAPI) GetCallerIdentityWithContext(arg0 aws.Context, arg1 *sts.GetCallerIdentityInput, arg2 ...request.Option) (*sts.GetCallerIdentityOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetCallerIdentityWithContext", varargs...) + ret0, _ := ret[0].(*sts.GetCallerIdentityOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetCallerIdentityWithContext indicates an expected call of GetCallerIdentityWithContext. +func (mr *MockSTSAPIMockRecorder) GetCallerIdentityWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCallerIdentityWithContext", reflect.TypeOf((*MockSTSAPI)(nil).GetCallerIdentityWithContext), varargs...) +} + +// GetFederationToken mocks base method. +func (m *MockSTSAPI) GetFederationToken(arg0 *sts.GetFederationTokenInput) (*sts.GetFederationTokenOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetFederationToken", arg0) + ret0, _ := ret[0].(*sts.GetFederationTokenOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetFederationToken indicates an expected call of GetFederationToken. +func (mr *MockSTSAPIMockRecorder) GetFederationToken(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFederationToken", reflect.TypeOf((*MockSTSAPI)(nil).GetFederationToken), arg0) +} + +// GetFederationTokenRequest mocks base method. +func (m *MockSTSAPI) GetFederationTokenRequest(arg0 *sts.GetFederationTokenInput) (*request.Request, *sts.GetFederationTokenOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetFederationTokenRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sts.GetFederationTokenOutput) + return ret0, ret1 +} + +// GetFederationTokenRequest indicates an expected call of GetFederationTokenRequest. +func (mr *MockSTSAPIMockRecorder) GetFederationTokenRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFederationTokenRequest", reflect.TypeOf((*MockSTSAPI)(nil).GetFederationTokenRequest), arg0) +} + +// GetFederationTokenWithContext mocks base method. +func (m *MockSTSAPI) GetFederationTokenWithContext(arg0 aws.Context, arg1 *sts.GetFederationTokenInput, arg2 ...request.Option) (*sts.GetFederationTokenOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetFederationTokenWithContext", varargs...) + ret0, _ := ret[0].(*sts.GetFederationTokenOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetFederationTokenWithContext indicates an expected call of GetFederationTokenWithContext. +func (mr *MockSTSAPIMockRecorder) GetFederationTokenWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFederationTokenWithContext", reflect.TypeOf((*MockSTSAPI)(nil).GetFederationTokenWithContext), varargs...) +} + +// GetSessionToken mocks base method. +func (m *MockSTSAPI) GetSessionToken(arg0 *sts.GetSessionTokenInput) (*sts.GetSessionTokenOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetSessionToken", arg0) + ret0, _ := ret[0].(*sts.GetSessionTokenOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetSessionToken indicates an expected call of GetSessionToken. +func (mr *MockSTSAPIMockRecorder) GetSessionToken(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSessionToken", reflect.TypeOf((*MockSTSAPI)(nil).GetSessionToken), arg0) +} + +// GetSessionTokenRequest mocks base method. +func (m *MockSTSAPI) GetSessionTokenRequest(arg0 *sts.GetSessionTokenInput) (*request.Request, *sts.GetSessionTokenOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetSessionTokenRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sts.GetSessionTokenOutput) + return ret0, ret1 +} + +// GetSessionTokenRequest indicates an expected call of GetSessionTokenRequest. +func (mr *MockSTSAPIMockRecorder) GetSessionTokenRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSessionTokenRequest", reflect.TypeOf((*MockSTSAPI)(nil).GetSessionTokenRequest), arg0) +} + +// GetSessionTokenWithContext mocks base method. +func (m *MockSTSAPI) GetSessionTokenWithContext(arg0 aws.Context, arg1 *sts.GetSessionTokenInput, arg2 ...request.Option) (*sts.GetSessionTokenOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetSessionTokenWithContext", varargs...) + ret0, _ := ret[0].(*sts.GetSessionTokenOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetSessionTokenWithContext indicates an expected call of GetSessionTokenWithContext. +func (mr *MockSTSAPIMockRecorder) GetSessionTokenWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSessionTokenWithContext", reflect.TypeOf((*MockSTSAPI)(nil).GetSessionTokenWithContext), varargs...) +} diff --git a/resources/quicksight-subscriptions.go b/resources/quicksight-subscriptions.go new file mode 100644 index 00000000..1721bc84 --- /dev/null +++ b/resources/quicksight-subscriptions.go @@ -0,0 +1,157 @@ +package resources + +import ( + "context" + "errors" + "fmt" + + "github.com/aws/aws-sdk-go/service/quicksight" + "github.com/aws/aws-sdk-go/service/quicksight/quicksightiface" + "github.com/aws/aws-sdk-go/service/sts" + "github.com/aws/aws-sdk-go/service/sts/stsiface" + + "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" +) + +const quickSightSubscriptionResource = "QuicksightSubscription" +const subscriptionNameWhenNotAvailable = "NOT_AVAILABLE" + +func init() { + registry.Register(®istry.Registration{ + Name: quickSightSubscriptionResource, + Scope: nuke.Account, + Lister: &QuickSightSubscriptionLister{}, + }) +} + +type QuickSightSubscriptionLister struct{ + stsService stsiface.STSAPI + quicksightService quicksightiface.QuickSightAPI +} + +type QuicksightSubscription struct { + svc quicksightiface.QuickSightAPI + accountId *string + name *string + notificationEmail *string + edition *string + status *string +} + +func (listener *QuickSightSubscriptionLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + var stsSvc stsiface.STSAPI + if listener.stsService != nil { + stsSvc = listener.stsService + } else { + stsSvc = sts.New(opts.Session) + } + + var quicksightSvc quicksightiface.QuickSightAPI + if listener.quicksightService != nil { + quicksightSvc = listener.quicksightService + } else { + quicksightSvc = quicksight.New(opts.Session) + } + + callerID, err := stsSvc.GetCallerIdentity(&sts.GetCallerIdentityInput{}) + if err != nil { + return nil, err + } + accountId := callerID.Account + + var resources []resource.Resource + + describeSubscriptionOutput, err := quicksightSvc.DescribeAccountSubscription(&quicksight.DescribeAccountSubscriptionInput{ + AwsAccountId: accountId, + }) + + if err != nil { + var resoureceNotFoundException *quicksight.ResourceNotFoundException + if !errors.As(err, &resoureceNotFoundException) { + return nil, err + } + return resources, nil + } + + //The account name is only available some time later after the Subscription creation. + subscriptionName := subscriptionNameWhenNotAvailable + if describeSubscriptionOutput.AccountInfo.AccountName != nil { + subscriptionName = *describeSubscriptionOutput.AccountInfo.AccountName + } + + resources = append(resources, &QuicksightSubscription{ + svc: quicksightSvc, + accountId: accountId, + name: &subscriptionName, + notificationEmail: describeSubscriptionOutput.AccountInfo.NotificationEmail, + edition: describeSubscriptionOutput.AccountInfo.Edition, + status: describeSubscriptionOutput.AccountInfo.AccountSubscriptionStatus, + }) + + return resources, nil +} + +func (subscription *QuicksightSubscription) Remove(_ context.Context) error { + terminateProtectionEnabled := false + + describeSettingsOutput, err := subscription.svc.DescribeAccountSettings(&quicksight.DescribeAccountSettingsInput{ + AwsAccountId: subscription.accountId, + }) + if err != nil { + return err + } + + if *describeSettingsOutput.AccountSettings.TerminationProtectionEnabled { + updateSettingsInput := quicksight.UpdateAccountSettingsInput{ + AwsAccountId: subscription.accountId, + DefaultNamespace: describeSettingsOutput.AccountSettings.DefaultNamespace, + NotificationEmail: describeSettingsOutput.AccountSettings.NotificationEmail, + TerminationProtectionEnabled: &terminateProtectionEnabled, + } + + _, err = subscription.svc.UpdateAccountSettings(&updateSettingsInput) + if err != nil { + return err + } + } + + _, err = subscription.svc.DeleteAccountSubscription(&quicksight.DeleteAccountSubscriptionInput{ + AwsAccountId: subscription.accountId, + }) + if err != nil { + return err + } + + return nil +} + +func (subscription *QuicksightSubscription) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("Edition", subscription.edition). + Set("NotificationEmail", subscription.notificationEmail). + Set("Name", subscription.name). + Set("Status", subscription.status) + + return properties +} + +func (subscription *QuicksightSubscription) String() string { + return *subscription.name +} + +func (subscription *QuicksightSubscription) Filter() error { + if *subscription.status != "ACCOUNT_CREATED" { + return fmt.Errorf("subscription is not active") + } + + //Since the subscription name is an important value to identify the resource, it will wait till it is available + if *subscription.name == subscriptionNameWhenNotAvailable { + return fmt.Errorf("subscription name is not available yet") + } + return nil +} diff --git a/resources/quicksight-subscriptions_mock_test.go b/resources/quicksight-subscriptions_mock_test.go new file mode 100644 index 00000000..a2e63535 --- /dev/null +++ b/resources/quicksight-subscriptions_mock_test.go @@ -0,0 +1,314 @@ +//go:generate ../mocks/generate_mocks.sh quicksight quicksightiface +//go:generate ../mocks/generate_mocks.sh sts stsiface + +package resources + +import ( + "context" + "errors" + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/quicksight" + "github.com/aws/aws-sdk-go/service/sts" + "github.com/ekristen/aws-nuke/mocks/mock_quicksightiface" + "github.com/ekristen/aws-nuke/mocks/mock_stsiface" + "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/golang/mock/gomock" + "github.com/stretchr/testify/assert" +) + + + +func Test_Mock_QuicksightSubscription_List_ValidSubscription(t *testing.T) { + assert := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + accountID := "123456789012" + quickSightAccountInfo := quicksight.AccountInfo { + AccountName: aws.String("AccountName"), + NotificationEmail: aws.String("notification@email.com"), + Edition: aws.String("Edition"), + AccountSubscriptionStatus: aws.String("ACCOUNT_CREATED"), + } + mockQuickSightAPI := mock_quicksightiface.NewMockQuickSightAPI(ctrl) + mockSTSAPI := mock_stsiface.NewMockSTSAPI(ctrl) + + + mockSTSAPI.EXPECT().GetCallerIdentity(&sts.GetCallerIdentityInput{}).Return(&sts.GetCallerIdentityOutput{ + Account: &accountID, + }, nil) + + mockQuickSightAPI.EXPECT().DescribeAccountSubscription(&quicksight.DescribeAccountSubscriptionInput{ + AwsAccountId: &accountID, + }).Return(&quicksight.DescribeAccountSubscriptionOutput{ + AccountInfo: &quickSightAccountInfo, + }, nil) + + quicksightSubscriptionListener := QuickSightSubscriptionLister{ + quicksightService: mockQuickSightAPI, + stsService: mockSTSAPI, + } + + resources, err := quicksightSubscriptionListener.List(context.TODO(), &nuke.ListerOpts{}) + assert.Nil(err) + + resource := resources[0].(*QuicksightSubscription) + assert.Equal(*resource.accountId, accountID) + assert.Equal(resource.edition, quickSightAccountInfo.Edition) + assert.Equal(resource.name, quickSightAccountInfo.AccountName) + assert.Equal(resource.notificationEmail, quickSightAccountInfo.NotificationEmail) + assert.Equal(resource.status, quickSightAccountInfo.AccountSubscriptionStatus) +} + +func Test_Mock_QuicksightSubscription_List_SubscriptionNotFound(t *testing.T) { + assert := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + accountID := "123456789012" + quickSightSubscriptionNotFoundError := &quicksight.ResourceNotFoundException{ + Message_: aws.String("Resource not found"), + } + + mockQuickSightAPI := mock_quicksightiface.NewMockQuickSightAPI(ctrl) + mockSTSAPI := mock_stsiface.NewMockSTSAPI(ctrl) + + + mockSTSAPI.EXPECT().GetCallerIdentity(&sts.GetCallerIdentityInput{}).Return(&sts.GetCallerIdentityOutput{ + Account: &accountID, + }, nil) + + mockQuickSightAPI.EXPECT().DescribeAccountSubscription(&quicksight.DescribeAccountSubscriptionInput{ + AwsAccountId: &accountID, + }).Return(nil, quickSightSubscriptionNotFoundError) + + quicksightSubscriptionListener := QuickSightSubscriptionLister{ + quicksightService: mockQuickSightAPI, + stsService: mockSTSAPI, + } + + resources, err := quicksightSubscriptionListener.List(context.TODO(), &nuke.ListerOpts{}) + assert.Nil(err) + assert.Equal(0, len(resources)) +} + +func Test_Mock_QuicksightSubscription_List_ErrorOnSTS(t *testing.T) { + assert := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockQuickSightAPI := mock_quicksightiface.NewMockQuickSightAPI(ctrl) + mockSTSAPI := mock_stsiface.NewMockSTSAPI(ctrl) + + mockSTSAPI.EXPECT().GetCallerIdentity(&sts.GetCallerIdentityInput{}).Return(nil, errors.New("MOCK_ERROR")) + + + quicksightSubscriptionListener := QuickSightSubscriptionLister{ + quicksightService: mockQuickSightAPI, + stsService: mockSTSAPI, + } + + resources, err := quicksightSubscriptionListener.List(context.TODO(), &nuke.ListerOpts{}) + assert.EqualError(err,"MOCK_ERROR") + assert.Nil(resources) +} + +func Test_Mock_QuicksightSubscription_List_ErrorOnQuicksight(t *testing.T) { + assert := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + accountID := "123456789012" + + mockQuickSightAPI := mock_quicksightiface.NewMockQuickSightAPI(ctrl) + mockSTSAPI := mock_stsiface.NewMockSTSAPI(ctrl) + + + mockSTSAPI.EXPECT().GetCallerIdentity(&sts.GetCallerIdentityInput{}).Return(&sts.GetCallerIdentityOutput{ + Account: &accountID, + }, nil) + + mockQuickSightAPI.EXPECT().DescribeAccountSubscription(&quicksight.DescribeAccountSubscriptionInput{ + AwsAccountId: &accountID, + }).Return(nil, errors.New("MOCK_ERROR")) + + quicksightSubscriptionListener := QuickSightSubscriptionLister{ + quicksightService: mockQuickSightAPI, + stsService: mockSTSAPI, + } + + resources, err := quicksightSubscriptionListener.List(context.TODO(), &nuke.ListerOpts{}) + assert.EqualError(err,"MOCK_ERROR") + assert.Nil(resources) +} + +func Test_Mock_QuicksightSubscription_Remove(t *testing.T) { + assert := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + accountID := "123456789012" + subscriptionName := aws.String("Name") + subscriptionDefaultNamespace := aws.String("Default") + subscriptionNotificationEmail := aws.String("notification@email.com") + subscriptionEdition := aws.String("Edition") + subscriptionStatus := aws.String("ACCOUNT_CREATED") + + + mockQuickSightAPI := mock_quicksightiface.NewMockQuickSightAPI(ctrl) + + mockQuickSightAPI.EXPECT().DescribeAccountSettings(&quicksight.DescribeAccountSettingsInput{ + AwsAccountId: &accountID, + }).Return(&quicksight.DescribeAccountSettingsOutput{ + AccountSettings: &quicksight.AccountSettings{ + DefaultNamespace: subscriptionDefaultNamespace, + NotificationEmail: subscriptionNotificationEmail, + TerminationProtectionEnabled: aws.Bool(true), + }, + }, nil) + + mockQuickSightAPI.EXPECT().UpdateAccountSettings(&quicksight.UpdateAccountSettingsInput{ + AwsAccountId: &accountID, + DefaultNamespace: subscriptionDefaultNamespace, + NotificationEmail: subscriptionNotificationEmail, + TerminationProtectionEnabled: aws.Bool(false), + }).Return(&quicksight.UpdateAccountSettingsOutput{}, nil).Times(1) + + mockQuickSightAPI.EXPECT().DeleteAccountSubscription(&quicksight.DeleteAccountSubscriptionInput{ + AwsAccountId: &accountID, + }).Return(&quicksight.DeleteAccountSubscriptionOutput{}, nil).Times(1) + + quicksightSubscription := QuicksightSubscription{ + svc: mockQuickSightAPI, + accountId: &accountID, + name: subscriptionName, + notificationEmail: subscriptionNotificationEmail, + edition: subscriptionEdition, + status: subscriptionStatus, + } + + err := quicksightSubscription.Remove(context.TODO()) + + assert.Nil(err) +} + +func Test_Mock_QuicksightSubscription_NoTerminationUpdatedNeeded(t *testing.T) { + assert := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + accountID := "123456789012" + subscriptionName := aws.String("Name") + subscriptionDefaultNamespace := aws.String("Default") + subscriptionNotificationEmail := aws.String("notification@email.com") + subscriptionEdition := aws.String("Edition") + subscriptionStatus := aws.String("ACCOUNT_CREATED") + + + mockQuickSightAPI := mock_quicksightiface.NewMockQuickSightAPI(ctrl) + + mockQuickSightAPI.EXPECT().DescribeAccountSettings(&quicksight.DescribeAccountSettingsInput{ + AwsAccountId: &accountID, + }).Return(&quicksight.DescribeAccountSettingsOutput{ + AccountSettings: &quicksight.AccountSettings{ + DefaultNamespace: subscriptionDefaultNamespace, + NotificationEmail: subscriptionNotificationEmail, + TerminationProtectionEnabled: aws.Bool(false), + }, + }, nil) + + mockQuickSightAPI.EXPECT().UpdateAccountSettings(&quicksight.UpdateAccountSettingsInput{ + AwsAccountId: &accountID, + DefaultNamespace: subscriptionDefaultNamespace, + NotificationEmail: subscriptionNotificationEmail, + TerminationProtectionEnabled: aws.Bool(false), + }).Return(&quicksight.UpdateAccountSettingsOutput{}, nil).Times(0) + + mockQuickSightAPI.EXPECT().DeleteAccountSubscription(&quicksight.DeleteAccountSubscriptionInput{ + AwsAccountId: &accountID, + }).Return(&quicksight.DeleteAccountSubscriptionOutput{}, nil).Times(1) + + quicksightSubscription := QuicksightSubscription{ + svc: mockQuickSightAPI, + accountId: &accountID, + name: subscriptionName, + notificationEmail: subscriptionNotificationEmail, + edition: subscriptionEdition, + status: subscriptionStatus, + } + + err := quicksightSubscription.Remove(context.TODO()) + + assert.Nil(err) +} + +func Test_Mock_QuicksightSubscription_Filter(t *testing.T) { + assert := assert.New(t) + + accountID := "123456789012" + subscriptionName := aws.String("Name") + subscriptionNotificationEmail := aws.String("notification@email.com") + subscriptionEdition := aws.String("Edition") + subscriptionStatus := aws.String("ACCOUNT_CREATED") + + + quicksightSubscription := QuicksightSubscription{ + accountId: &accountID, + name: subscriptionName, + notificationEmail: subscriptionNotificationEmail, + edition: subscriptionEdition, + status: subscriptionStatus, + } + + err := quicksightSubscription.Filter() + + assert.Nil(err) +} + +func Test_Mock_QuicksightSubscription_Filter_Status(t *testing.T) { + assert := assert.New(t) + + accountID := "123456789012" + subscriptionName := aws.String("Name") + subscriptionNotificationEmail := aws.String("notification@email.com") + subscriptionEdition := aws.String("Edition") + subscriptionStatus := aws.String("UNSUBSCRIBED") + + + quicksightSubscription := QuicksightSubscription{ + accountId: &accountID, + name: subscriptionName, + notificationEmail: subscriptionNotificationEmail, + edition: subscriptionEdition, + status: subscriptionStatus, + } + + err := quicksightSubscription.Filter() + + assert.EqualError(err,"subscription is not active") +} + +func Test_Mock_QuicksightSubscription_Filter_Name(t *testing.T) { + assert := assert.New(t) + + accountID := "123456789012" + subscriptionName := aws.String("NOT_AVAILABLE") + subscriptionNotificationEmail := aws.String("notification@email.com") + subscriptionEdition := aws.String("Edition") + subscriptionStatus := aws.String("ACCOUNT_CREATED") + + + quicksightSubscription := QuicksightSubscription{ + accountId: &accountID, + name: subscriptionName, + notificationEmail: subscriptionNotificationEmail, + edition: subscriptionEdition, + status: subscriptionStatus, + } + + err := quicksightSubscription.Filter() + + assert.EqualError(err,"subscription name is not available yet") +} \ No newline at end of file From 26f9f486f616aa367e9a1c01f51bca612866bb98 Mon Sep 17 00:00:00 2001 From: Daniel Bojczuk Date: Wed, 29 May 2024 15:54:56 +0200 Subject: [PATCH 303/617] style: fixing code style --- resources/quicksight-subscriptions.go | 12 +- .../quicksight-subscriptions_mock_test.go | 121 ++++++++---------- 2 files changed, 61 insertions(+), 72 deletions(-) diff --git a/resources/quicksight-subscriptions.go b/resources/quicksight-subscriptions.go index 1721bc84..2327175c 100644 --- a/resources/quicksight-subscriptions.go +++ b/resources/quicksight-subscriptions.go @@ -27,15 +27,15 @@ func init() { }) } -type QuickSightSubscriptionLister struct{ - stsService stsiface.STSAPI +type QuickSightSubscriptionLister struct { + stsService stsiface.STSAPI quicksightService quicksightiface.QuickSightAPI } type QuicksightSubscription struct { svc quicksightiface.QuickSightAPI accountId *string - name *string + name *string notificationEmail *string edition *string status *string @@ -43,7 +43,7 @@ type QuicksightSubscription struct { func (listener *QuickSightSubscriptionLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) - + var stsSvc stsiface.STSAPI if listener.stsService != nil { stsSvc = listener.stsService @@ -57,7 +57,7 @@ func (listener *QuickSightSubscriptionLister) List(_ context.Context, o interfac } else { quicksightSvc = quicksight.New(opts.Session) } - + callerID, err := stsSvc.GetCallerIdentity(&sts.GetCallerIdentityInput{}) if err != nil { return nil, err @@ -87,7 +87,7 @@ func (listener *QuickSightSubscriptionLister) List(_ context.Context, o interfac resources = append(resources, &QuicksightSubscription{ svc: quicksightSvc, accountId: accountId, - name: &subscriptionName, + name: &subscriptionName, notificationEmail: describeSubscriptionOutput.AccountInfo.NotificationEmail, edition: describeSubscriptionOutput.AccountInfo.Edition, status: describeSubscriptionOutput.AccountInfo.AccountSubscriptionStatus, diff --git a/resources/quicksight-subscriptions_mock_test.go b/resources/quicksight-subscriptions_mock_test.go index a2e63535..ab492702 100644 --- a/resources/quicksight-subscriptions_mock_test.go +++ b/resources/quicksight-subscriptions_mock_test.go @@ -18,24 +18,21 @@ import ( "github.com/stretchr/testify/assert" ) - - func Test_Mock_QuicksightSubscription_List_ValidSubscription(t *testing.T) { assert := assert.New(t) ctrl := gomock.NewController(t) defer ctrl.Finish() accountID := "123456789012" - quickSightAccountInfo := quicksight.AccountInfo { - AccountName: aws.String("AccountName"), - NotificationEmail: aws.String("notification@email.com"), - Edition: aws.String("Edition"), - AccountSubscriptionStatus: aws.String("ACCOUNT_CREATED"), - } + quickSightAccountInfo := quicksight.AccountInfo{ + AccountName: aws.String("AccountName"), + NotificationEmail: aws.String("notification@email.com"), + Edition: aws.String("Edition"), + AccountSubscriptionStatus: aws.String("ACCOUNT_CREATED"), + } mockQuickSightAPI := mock_quicksightiface.NewMockQuickSightAPI(ctrl) mockSTSAPI := mock_stsiface.NewMockSTSAPI(ctrl) - mockSTSAPI.EXPECT().GetCallerIdentity(&sts.GetCallerIdentityInput{}).Return(&sts.GetCallerIdentityOutput{ Account: &accountID, }, nil) @@ -48,7 +45,7 @@ func Test_Mock_QuicksightSubscription_List_ValidSubscription(t *testing.T) { quicksightSubscriptionListener := QuickSightSubscriptionLister{ quicksightService: mockQuickSightAPI, - stsService: mockSTSAPI, + stsService: mockSTSAPI, } resources, err := quicksightSubscriptionListener.List(context.TODO(), &nuke.ListerOpts{}) @@ -75,7 +72,6 @@ func Test_Mock_QuicksightSubscription_List_SubscriptionNotFound(t *testing.T) { mockQuickSightAPI := mock_quicksightiface.NewMockQuickSightAPI(ctrl) mockSTSAPI := mock_stsiface.NewMockSTSAPI(ctrl) - mockSTSAPI.EXPECT().GetCallerIdentity(&sts.GetCallerIdentityInput{}).Return(&sts.GetCallerIdentityOutput{ Account: &accountID, }, nil) @@ -86,7 +82,7 @@ func Test_Mock_QuicksightSubscription_List_SubscriptionNotFound(t *testing.T) { quicksightSubscriptionListener := QuickSightSubscriptionLister{ quicksightService: mockQuickSightAPI, - stsService: mockSTSAPI, + stsService: mockSTSAPI, } resources, err := quicksightSubscriptionListener.List(context.TODO(), &nuke.ListerOpts{}) @@ -101,17 +97,16 @@ func Test_Mock_QuicksightSubscription_List_ErrorOnSTS(t *testing.T) { mockQuickSightAPI := mock_quicksightiface.NewMockQuickSightAPI(ctrl) mockSTSAPI := mock_stsiface.NewMockSTSAPI(ctrl) - - mockSTSAPI.EXPECT().GetCallerIdentity(&sts.GetCallerIdentityInput{}).Return(nil, errors.New("MOCK_ERROR")) + mockSTSAPI.EXPECT().GetCallerIdentity(&sts.GetCallerIdentityInput{}).Return(nil, errors.New("MOCK_ERROR")) quicksightSubscriptionListener := QuickSightSubscriptionLister{ quicksightService: mockQuickSightAPI, - stsService: mockSTSAPI, + stsService: mockSTSAPI, } resources, err := quicksightSubscriptionListener.List(context.TODO(), &nuke.ListerOpts{}) - assert.EqualError(err,"MOCK_ERROR") + assert.EqualError(err, "MOCK_ERROR") assert.Nil(resources) } @@ -125,7 +120,6 @@ func Test_Mock_QuicksightSubscription_List_ErrorOnQuicksight(t *testing.T) { mockQuickSightAPI := mock_quicksightiface.NewMockQuickSightAPI(ctrl) mockSTSAPI := mock_stsiface.NewMockSTSAPI(ctrl) - mockSTSAPI.EXPECT().GetCallerIdentity(&sts.GetCallerIdentityInput{}).Return(&sts.GetCallerIdentityOutput{ Account: &accountID, }, nil) @@ -136,11 +130,11 @@ func Test_Mock_QuicksightSubscription_List_ErrorOnQuicksight(t *testing.T) { quicksightSubscriptionListener := QuickSightSubscriptionLister{ quicksightService: mockQuickSightAPI, - stsService: mockSTSAPI, + stsService: mockSTSAPI, } resources, err := quicksightSubscriptionListener.List(context.TODO(), &nuke.ListerOpts{}) - assert.EqualError(err,"MOCK_ERROR") + assert.EqualError(err, "MOCK_ERROR") assert.Nil(resources) } @@ -156,24 +150,23 @@ func Test_Mock_QuicksightSubscription_Remove(t *testing.T) { subscriptionEdition := aws.String("Edition") subscriptionStatus := aws.String("ACCOUNT_CREATED") - mockQuickSightAPI := mock_quicksightiface.NewMockQuickSightAPI(ctrl) mockQuickSightAPI.EXPECT().DescribeAccountSettings(&quicksight.DescribeAccountSettingsInput{ AwsAccountId: &accountID, }).Return(&quicksight.DescribeAccountSettingsOutput{ AccountSettings: &quicksight.AccountSettings{ - DefaultNamespace: subscriptionDefaultNamespace, - NotificationEmail: subscriptionNotificationEmail, + DefaultNamespace: subscriptionDefaultNamespace, + NotificationEmail: subscriptionNotificationEmail, TerminationProtectionEnabled: aws.Bool(true), }, }, nil) mockQuickSightAPI.EXPECT().UpdateAccountSettings(&quicksight.UpdateAccountSettingsInput{ - AwsAccountId: &accountID, - DefaultNamespace: subscriptionDefaultNamespace, - NotificationEmail: subscriptionNotificationEmail, - TerminationProtectionEnabled: aws.Bool(false), + AwsAccountId: &accountID, + DefaultNamespace: subscriptionDefaultNamespace, + NotificationEmail: subscriptionNotificationEmail, + TerminationProtectionEnabled: aws.Bool(false), }).Return(&quicksight.UpdateAccountSettingsOutput{}, nil).Times(1) mockQuickSightAPI.EXPECT().DeleteAccountSubscription(&quicksight.DeleteAccountSubscriptionInput{ @@ -181,16 +174,16 @@ func Test_Mock_QuicksightSubscription_Remove(t *testing.T) { }).Return(&quicksight.DeleteAccountSubscriptionOutput{}, nil).Times(1) quicksightSubscription := QuicksightSubscription{ - svc: mockQuickSightAPI, - accountId: &accountID, - name: subscriptionName, + svc: mockQuickSightAPI, + accountId: &accountID, + name: subscriptionName, notificationEmail: subscriptionNotificationEmail, - edition: subscriptionEdition, - status: subscriptionStatus, + edition: subscriptionEdition, + status: subscriptionStatus, } err := quicksightSubscription.Remove(context.TODO()) - + assert.Nil(err) } @@ -206,24 +199,23 @@ func Test_Mock_QuicksightSubscription_NoTerminationUpdatedNeeded(t *testing.T) { subscriptionEdition := aws.String("Edition") subscriptionStatus := aws.String("ACCOUNT_CREATED") - mockQuickSightAPI := mock_quicksightiface.NewMockQuickSightAPI(ctrl) mockQuickSightAPI.EXPECT().DescribeAccountSettings(&quicksight.DescribeAccountSettingsInput{ AwsAccountId: &accountID, }).Return(&quicksight.DescribeAccountSettingsOutput{ AccountSettings: &quicksight.AccountSettings{ - DefaultNamespace: subscriptionDefaultNamespace, - NotificationEmail: subscriptionNotificationEmail, + DefaultNamespace: subscriptionDefaultNamespace, + NotificationEmail: subscriptionNotificationEmail, TerminationProtectionEnabled: aws.Bool(false), }, }, nil) mockQuickSightAPI.EXPECT().UpdateAccountSettings(&quicksight.UpdateAccountSettingsInput{ - AwsAccountId: &accountID, - DefaultNamespace: subscriptionDefaultNamespace, - NotificationEmail: subscriptionNotificationEmail, - TerminationProtectionEnabled: aws.Bool(false), + AwsAccountId: &accountID, + DefaultNamespace: subscriptionDefaultNamespace, + NotificationEmail: subscriptionNotificationEmail, + TerminationProtectionEnabled: aws.Bool(false), }).Return(&quicksight.UpdateAccountSettingsOutput{}, nil).Times(0) mockQuickSightAPI.EXPECT().DeleteAccountSubscription(&quicksight.DeleteAccountSubscriptionInput{ @@ -231,16 +223,16 @@ func Test_Mock_QuicksightSubscription_NoTerminationUpdatedNeeded(t *testing.T) { }).Return(&quicksight.DeleteAccountSubscriptionOutput{}, nil).Times(1) quicksightSubscription := QuicksightSubscription{ - svc: mockQuickSightAPI, - accountId: &accountID, - name: subscriptionName, + svc: mockQuickSightAPI, + accountId: &accountID, + name: subscriptionName, notificationEmail: subscriptionNotificationEmail, - edition: subscriptionEdition, - status: subscriptionStatus, + edition: subscriptionEdition, + status: subscriptionStatus, } err := quicksightSubscription.Remove(context.TODO()) - + assert.Nil(err) } @@ -253,17 +245,16 @@ func Test_Mock_QuicksightSubscription_Filter(t *testing.T) { subscriptionEdition := aws.String("Edition") subscriptionStatus := aws.String("ACCOUNT_CREATED") - quicksightSubscription := QuicksightSubscription{ - accountId: &accountID, - name: subscriptionName, + accountId: &accountID, + name: subscriptionName, notificationEmail: subscriptionNotificationEmail, - edition: subscriptionEdition, - status: subscriptionStatus, + edition: subscriptionEdition, + status: subscriptionStatus, } err := quicksightSubscription.Filter() - + assert.Nil(err) } @@ -276,18 +267,17 @@ func Test_Mock_QuicksightSubscription_Filter_Status(t *testing.T) { subscriptionEdition := aws.String("Edition") subscriptionStatus := aws.String("UNSUBSCRIBED") - quicksightSubscription := QuicksightSubscription{ - accountId: &accountID, - name: subscriptionName, + accountId: &accountID, + name: subscriptionName, notificationEmail: subscriptionNotificationEmail, - edition: subscriptionEdition, - status: subscriptionStatus, + edition: subscriptionEdition, + status: subscriptionStatus, } err := quicksightSubscription.Filter() - - assert.EqualError(err,"subscription is not active") + + assert.EqualError(err, "subscription is not active") } func Test_Mock_QuicksightSubscription_Filter_Name(t *testing.T) { @@ -299,16 +289,15 @@ func Test_Mock_QuicksightSubscription_Filter_Name(t *testing.T) { subscriptionEdition := aws.String("Edition") subscriptionStatus := aws.String("ACCOUNT_CREATED") - quicksightSubscription := QuicksightSubscription{ - accountId: &accountID, - name: subscriptionName, + accountId: &accountID, + name: subscriptionName, notificationEmail: subscriptionNotificationEmail, - edition: subscriptionEdition, - status: subscriptionStatus, + edition: subscriptionEdition, + status: subscriptionStatus, } err := quicksightSubscription.Filter() - - assert.EqualError(err,"subscription name is not available yet") -} \ No newline at end of file + + assert.EqualError(err, "subscription name is not available yet") +} From b3cbb0cc8580455afd75206a38dfc09c84579e68 Mon Sep 17 00:00:00 2001 From: Daniel Bojczuk <39830414+danielbojczuk@users.noreply.github.com> Date: Thu, 30 May 2024 19:36:08 +0200 Subject: [PATCH 304/617] style: apply suggestions from code review Co-authored-by: Erik Kristensen --- resources/quicksight-subscriptions.go | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/resources/quicksight-subscriptions.go b/resources/quicksight-subscriptions.go index 2327175c..df918de7 100644 --- a/resources/quicksight-subscriptions.go +++ b/resources/quicksight-subscriptions.go @@ -16,12 +16,12 @@ import ( "github.com/ekristen/libnuke/pkg/types" ) -const quickSightSubscriptionResource = "QuicksightSubscription" +const QuickSightSubscriptionResource = "QuickSightSubscription" const subscriptionNameWhenNotAvailable = "NOT_AVAILABLE" func init() { registry.Register(®istry.Registration{ - Name: quickSightSubscriptionResource, + Name: QuickSightSubscriptionResource, Scope: nuke.Account, Lister: &QuickSightSubscriptionLister{}, }) @@ -41,19 +41,19 @@ type QuicksightSubscription struct { status *string } -func (listener *QuickSightSubscriptionLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { +func (l *QuickSightSubscriptionLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) var stsSvc stsiface.STSAPI - if listener.stsService != nil { - stsSvc = listener.stsService + if l.stsService != nil { + stsSvc = l.stsService } else { stsSvc = sts.New(opts.Session) } var quicksightSvc quicksightiface.QuickSightAPI - if listener.quicksightService != nil { - quicksightSvc = listener.quicksightService + if l.quicksightService != nil { + quicksightSvc = l.quicksightService } else { quicksightSvc = quicksight.New(opts.Session) } @@ -96,7 +96,7 @@ func (listener *QuickSightSubscriptionLister) List(_ context.Context, o interfac return resources, nil } -func (subscription *QuicksightSubscription) Remove(_ context.Context) error { +func (s *QuicksightSubscription) Remove(_ context.Context) error { terminateProtectionEnabled := false describeSettingsOutput, err := subscription.svc.DescribeAccountSettings(&quicksight.DescribeAccountSettingsInput{ @@ -130,7 +130,7 @@ func (subscription *QuicksightSubscription) Remove(_ context.Context) error { return nil } -func (subscription *QuicksightSubscription) Properties() types.Properties { +func (r *QuicksightSubscription) Properties() types.Properties { properties := types.NewProperties() properties.Set("Edition", subscription.edition). Set("NotificationEmail", subscription.notificationEmail). @@ -140,17 +140,17 @@ func (subscription *QuicksightSubscription) Properties() types.Properties { return properties } -func (subscription *QuicksightSubscription) String() string { +func (r *QuicksightSubscription) String() string { return *subscription.name } -func (subscription *QuicksightSubscription) Filter() error { - if *subscription.status != "ACCOUNT_CREATED" { +func (r *QuicksightSubscription) Filter() error { + if *r.status != "ACCOUNT_CREATED" { return fmt.Errorf("subscription is not active") } //Since the subscription name is an important value to identify the resource, it will wait till it is available - if *subscription.name == subscriptionNameWhenNotAvailable { + if *r.name == subscriptionNameWhenNotAvailable { return fmt.Errorf("subscription name is not available yet") } return nil From 6c404bdee40c16632c616613577cbc2ddecf11e8 Mon Sep 17 00:00:00 2001 From: Daniel Bojczuk Date: Fri, 31 May 2024 11:35:28 +0200 Subject: [PATCH 305/617] feat: adding termination protection setting style: fixing lint issues style: apply suggestions from code review Co-authored-by: Erik Kristensen style: apply suggestions from code review style: Apply suggestions from code review Co-authored-by: Erik Kristensen --- resources/quicksight-subscriptions.go | 89 ++++++----- .../quicksight-subscriptions_mock_test.go | 144 ++++++++++++------ 2 files changed, 152 insertions(+), 81 deletions(-) diff --git a/resources/quicksight-subscriptions.go b/resources/quicksight-subscriptions.go index df918de7..0f809a8d 100644 --- a/resources/quicksight-subscriptions.go +++ b/resources/quicksight-subscriptions.go @@ -13,6 +13,7 @@ import ( "github.com/ekristen/aws-nuke/pkg/nuke" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + libsettings "github.com/ekristen/libnuke/pkg/settings" "github.com/ekristen/libnuke/pkg/types" ) @@ -32,13 +33,14 @@ type QuickSightSubscriptionLister struct { quicksightService quicksightiface.QuickSightAPI } -type QuicksightSubscription struct { +type QuickSightSubscription struct { svc quicksightiface.QuickSightAPI - accountId *string + accountID *string name *string notificationEmail *string edition *string status *string + settings *libsettings.Setting } func (l *QuickSightSubscriptionLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { @@ -62,12 +64,12 @@ func (l *QuickSightSubscriptionLister) List(_ context.Context, o interface{}) ([ if err != nil { return nil, err } - accountId := callerID.Account + accountID := callerID.Account var resources []resource.Resource describeSubscriptionOutput, err := quicksightSvc.DescribeAccountSubscription(&quicksight.DescribeAccountSubscriptionInput{ - AwsAccountId: accountId, + AwsAccountId: accountID, }) if err != nil { @@ -78,15 +80,15 @@ func (l *QuickSightSubscriptionLister) List(_ context.Context, o interface{}) ([ return resources, nil } - //The account name is only available some time later after the Subscription creation. + // The account name is only available some time later after the Subscription creation. subscriptionName := subscriptionNameWhenNotAvailable if describeSubscriptionOutput.AccountInfo.AccountName != nil { subscriptionName = *describeSubscriptionOutput.AccountInfo.AccountName } - resources = append(resources, &QuicksightSubscription{ + resources = append(resources, &QuickSightSubscription{ svc: quicksightSvc, - accountId: accountId, + accountID: accountID, name: &subscriptionName, notificationEmail: describeSubscriptionOutput.AccountInfo.NotificationEmail, edition: describeSubscriptionOutput.AccountInfo.Edition, @@ -96,32 +98,16 @@ func (l *QuickSightSubscriptionLister) List(_ context.Context, o interface{}) ([ return resources, nil } -func (s *QuicksightSubscription) Remove(_ context.Context) error { - terminateProtectionEnabled := false - - describeSettingsOutput, err := subscription.svc.DescribeAccountSettings(&quicksight.DescribeAccountSettingsInput{ - AwsAccountId: subscription.accountId, - }) - if err != nil { - return err - } - - if *describeSettingsOutput.AccountSettings.TerminationProtectionEnabled { - updateSettingsInput := quicksight.UpdateAccountSettingsInput{ - AwsAccountId: subscription.accountId, - DefaultNamespace: describeSettingsOutput.AccountSettings.DefaultNamespace, - NotificationEmail: describeSettingsOutput.AccountSettings.NotificationEmail, - TerminationProtectionEnabled: &terminateProtectionEnabled, - } - - _, err = subscription.svc.UpdateAccountSettings(&updateSettingsInput) +func (r *QuickSightSubscription) Remove(_ context.Context) error { + if r.settings != nil && r.settings.Get("DisableTerminationProtection").(bool) { + err := r.DisableTerminationProtection() if err != nil { return err } } - _, err = subscription.svc.DeleteAccountSubscription(&quicksight.DeleteAccountSubscriptionInput{ - AwsAccountId: subscription.accountId, + _, err := r.svc.DeleteAccountSubscription(&quicksight.DeleteAccountSubscriptionInput{ + AwsAccountId: r.accountID, }) if err != nil { return err @@ -130,28 +116,57 @@ func (s *QuicksightSubscription) Remove(_ context.Context) error { return nil } -func (r *QuicksightSubscription) Properties() types.Properties { +func (r *QuickSightSubscription) Properties() types.Properties { properties := types.NewProperties() - properties.Set("Edition", subscription.edition). - Set("NotificationEmail", subscription.notificationEmail). - Set("Name", subscription.name). - Set("Status", subscription.status) + properties.Set("Edition", r.edition). + Set("NotificationEmail", r.notificationEmail). + Set("Name", r.name). + Set("Status", r.status) return properties } -func (r *QuicksightSubscription) String() string { - return *subscription.name +func (r *QuickSightSubscription) String() string { + return *r.name } -func (r *QuicksightSubscription) Filter() error { +func (r *QuickSightSubscription) Filter() error { if *r.status != "ACCOUNT_CREATED" { return fmt.Errorf("subscription is not active") } - //Since the subscription name is an important value to identify the resource, it will wait till it is available + // Since the subscription name is an important value to identify the resource, it will wait till it is available if *r.name == subscriptionNameWhenNotAvailable { return fmt.Errorf("subscription name is not available yet") } return nil } + +func (r *QuickSightSubscription) Settings(setting *libsettings.Setting) { + r.settings = setting +} + +func (r *QuickSightSubscription) DisableTerminationProtection() error { + terminateProtectionEnabled := false + describeSettingsOutput, err := r.svc.DescribeAccountSettings(&quicksight.DescribeAccountSettingsInput{ + AwsAccountId: r.accountID, + }) + if err != nil { + return err + } + + if *describeSettingsOutput.AccountSettings.TerminationProtectionEnabled { + updateSettingsInput := quicksight.UpdateAccountSettingsInput{ + AwsAccountId: r.accountID, + DefaultNamespace: describeSettingsOutput.AccountSettings.DefaultNamespace, + NotificationEmail: describeSettingsOutput.AccountSettings.NotificationEmail, + TerminationProtectionEnabled: &terminateProtectionEnabled, + } + + _, err = r.svc.UpdateAccountSettings(&updateSettingsInput) + if err != nil { + return err + } + } + return nil +} diff --git a/resources/quicksight-subscriptions_mock_test.go b/resources/quicksight-subscriptions_mock_test.go index ab492702..2b917cc3 100644 --- a/resources/quicksight-subscriptions_mock_test.go +++ b/resources/quicksight-subscriptions_mock_test.go @@ -14,12 +14,13 @@ import ( "github.com/ekristen/aws-nuke/mocks/mock_quicksightiface" "github.com/ekristen/aws-nuke/mocks/mock_stsiface" "github.com/ekristen/aws-nuke/pkg/nuke" + libsettings "github.com/ekristen/libnuke/pkg/settings" "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" ) func Test_Mock_QuicksightSubscription_List_ValidSubscription(t *testing.T) { - assert := assert.New(t) + assertions := assert.New(t) ctrl := gomock.NewController(t) defer ctrl.Finish() @@ -49,18 +50,18 @@ func Test_Mock_QuicksightSubscription_List_ValidSubscription(t *testing.T) { } resources, err := quicksightSubscriptionListener.List(context.TODO(), &nuke.ListerOpts{}) - assert.Nil(err) - - resource := resources[0].(*QuicksightSubscription) - assert.Equal(*resource.accountId, accountID) - assert.Equal(resource.edition, quickSightAccountInfo.Edition) - assert.Equal(resource.name, quickSightAccountInfo.AccountName) - assert.Equal(resource.notificationEmail, quickSightAccountInfo.NotificationEmail) - assert.Equal(resource.status, quickSightAccountInfo.AccountSubscriptionStatus) + assertions.Nil(err) + + resource := resources[0].(*QuickSightSubscription) + assertions.Equal(*resource.accountID, accountID) + assertions.Equal(resource.edition, quickSightAccountInfo.Edition) + assertions.Equal(resource.name, quickSightAccountInfo.AccountName) + assertions.Equal(resource.notificationEmail, quickSightAccountInfo.NotificationEmail) + assertions.Equal(resource.status, quickSightAccountInfo.AccountSubscriptionStatus) } func Test_Mock_QuicksightSubscription_List_SubscriptionNotFound(t *testing.T) { - assert := assert.New(t) + assertions := assert.New(t) ctrl := gomock.NewController(t) defer ctrl.Finish() @@ -86,12 +87,12 @@ func Test_Mock_QuicksightSubscription_List_SubscriptionNotFound(t *testing.T) { } resources, err := quicksightSubscriptionListener.List(context.TODO(), &nuke.ListerOpts{}) - assert.Nil(err) - assert.Equal(0, len(resources)) + assertions.Nil(err) + assertions.Equal(0, len(resources)) } func Test_Mock_QuicksightSubscription_List_ErrorOnSTS(t *testing.T) { - assert := assert.New(t) + assertions := assert.New(t) ctrl := gomock.NewController(t) defer ctrl.Finish() @@ -106,12 +107,12 @@ func Test_Mock_QuicksightSubscription_List_ErrorOnSTS(t *testing.T) { } resources, err := quicksightSubscriptionListener.List(context.TODO(), &nuke.ListerOpts{}) - assert.EqualError(err, "MOCK_ERROR") - assert.Nil(resources) + assertions.EqualError(err, "MOCK_ERROR") + assertions.Nil(resources) } func Test_Mock_QuicksightSubscription_List_ErrorOnQuicksight(t *testing.T) { - assert := assert.New(t) + assertions := assert.New(t) ctrl := gomock.NewController(t) defer ctrl.Finish() @@ -134,12 +135,12 @@ func Test_Mock_QuicksightSubscription_List_ErrorOnQuicksight(t *testing.T) { } resources, err := quicksightSubscriptionListener.List(context.TODO(), &nuke.ListerOpts{}) - assert.EqualError(err, "MOCK_ERROR") - assert.Nil(resources) + assertions.EqualError(err, "MOCK_ERROR") + assertions.Nil(resources) } -func Test_Mock_QuicksightSubscription_Remove(t *testing.T) { - assert := assert.New(t) +func Test_Mock_QuicksightSubscription_Remove_No_Settings(t *testing.T) { + assertions := assert.New(t) ctrl := gomock.NewController(t) defer ctrl.Finish() @@ -160,22 +161,22 @@ func Test_Mock_QuicksightSubscription_Remove(t *testing.T) { NotificationEmail: subscriptionNotificationEmail, TerminationProtectionEnabled: aws.Bool(true), }, - }, nil) + }, nil).Times(0) mockQuickSightAPI.EXPECT().UpdateAccountSettings(&quicksight.UpdateAccountSettingsInput{ AwsAccountId: &accountID, DefaultNamespace: subscriptionDefaultNamespace, NotificationEmail: subscriptionNotificationEmail, TerminationProtectionEnabled: aws.Bool(false), - }).Return(&quicksight.UpdateAccountSettingsOutput{}, nil).Times(1) + }).Return(&quicksight.UpdateAccountSettingsOutput{}, nil).Times(0) mockQuickSightAPI.EXPECT().DeleteAccountSubscription(&quicksight.DeleteAccountSubscriptionInput{ AwsAccountId: &accountID, }).Return(&quicksight.DeleteAccountSubscriptionOutput{}, nil).Times(1) - quicksightSubscription := QuicksightSubscription{ + quicksightSubscription := QuickSightSubscription{ svc: mockQuickSightAPI, - accountId: &accountID, + accountID: &accountID, name: subscriptionName, notificationEmail: subscriptionNotificationEmail, edition: subscriptionEdition, @@ -184,11 +185,11 @@ func Test_Mock_QuicksightSubscription_Remove(t *testing.T) { err := quicksightSubscription.Remove(context.TODO()) - assert.Nil(err) + assertions.Nil(err) } -func Test_Mock_QuicksightSubscription_NoTerminationUpdatedNeeded(t *testing.T) { - assert := assert.New(t) +func Test_Mock_QuicksightSubscription_Remove_TerminationSetting_Is_False(t *testing.T) { + assertions := assert.New(t) ctrl := gomock.NewController(t) defer ctrl.Finish() @@ -198,6 +199,8 @@ func Test_Mock_QuicksightSubscription_NoTerminationUpdatedNeeded(t *testing.T) { subscriptionNotificationEmail := aws.String("notification@email.com") subscriptionEdition := aws.String("Edition") subscriptionStatus := aws.String("ACCOUNT_CREATED") + settings := libsettings.Setting{} + settings.Set("DisableTerminationProtection", false) mockQuickSightAPI := mock_quicksightiface.NewMockQuickSightAPI(ctrl) @@ -207,9 +210,9 @@ func Test_Mock_QuicksightSubscription_NoTerminationUpdatedNeeded(t *testing.T) { AccountSettings: &quicksight.AccountSettings{ DefaultNamespace: subscriptionDefaultNamespace, NotificationEmail: subscriptionNotificationEmail, - TerminationProtectionEnabled: aws.Bool(false), + TerminationProtectionEnabled: aws.Bool(true), }, - }, nil) + }, nil).Times(0) mockQuickSightAPI.EXPECT().UpdateAccountSettings(&quicksight.UpdateAccountSettingsInput{ AwsAccountId: &accountID, @@ -222,22 +225,75 @@ func Test_Mock_QuicksightSubscription_NoTerminationUpdatedNeeded(t *testing.T) { AwsAccountId: &accountID, }).Return(&quicksight.DeleteAccountSubscriptionOutput{}, nil).Times(1) - quicksightSubscription := QuicksightSubscription{ + quicksightSubscription := QuickSightSubscription{ + svc: mockQuickSightAPI, + accountID: &accountID, + name: subscriptionName, + notificationEmail: subscriptionNotificationEmail, + edition: subscriptionEdition, + status: subscriptionStatus, + settings: &settings, + } + + err := quicksightSubscription.Remove(context.TODO()) + + assertions.Nil(err) +} + +func Test_Mock_QuicksightSubscription_Remove_TerminationSetting_Is_True(t *testing.T) { + assertions := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + accountID := "123456789012" + subscriptionName := aws.String("Name") + subscriptionDefaultNamespace := aws.String("Default") + subscriptionNotificationEmail := aws.String("notification@email.com") + subscriptionEdition := aws.String("Edition") + subscriptionStatus := aws.String("ACCOUNT_CREATED") + settings := libsettings.Setting{} + settings.Set("DisableTerminationProtection", true) + + mockQuickSightAPI := mock_quicksightiface.NewMockQuickSightAPI(ctrl) + + mockQuickSightAPI.EXPECT().DescribeAccountSettings(&quicksight.DescribeAccountSettingsInput{ + AwsAccountId: &accountID, + }).Return(&quicksight.DescribeAccountSettingsOutput{ + AccountSettings: &quicksight.AccountSettings{ + DefaultNamespace: subscriptionDefaultNamespace, + NotificationEmail: subscriptionNotificationEmail, + TerminationProtectionEnabled: aws.Bool(true), + }, + }, nil).Times(1) + + mockQuickSightAPI.EXPECT().UpdateAccountSettings(&quicksight.UpdateAccountSettingsInput{ + AwsAccountId: &accountID, + DefaultNamespace: subscriptionDefaultNamespace, + NotificationEmail: subscriptionNotificationEmail, + TerminationProtectionEnabled: aws.Bool(false), + }).Return(&quicksight.UpdateAccountSettingsOutput{}, nil).Times(1) + + mockQuickSightAPI.EXPECT().DeleteAccountSubscription(&quicksight.DeleteAccountSubscriptionInput{ + AwsAccountId: &accountID, + }).Return(&quicksight.DeleteAccountSubscriptionOutput{}, nil).Times(1) + + quicksightSubscription := QuickSightSubscription{ svc: mockQuickSightAPI, - accountId: &accountID, + accountID: &accountID, name: subscriptionName, notificationEmail: subscriptionNotificationEmail, edition: subscriptionEdition, status: subscriptionStatus, + settings: &settings, } err := quicksightSubscription.Remove(context.TODO()) - assert.Nil(err) + assertions.Nil(err) } func Test_Mock_QuicksightSubscription_Filter(t *testing.T) { - assert := assert.New(t) + assertions := assert.New(t) accountID := "123456789012" subscriptionName := aws.String("Name") @@ -245,8 +301,8 @@ func Test_Mock_QuicksightSubscription_Filter(t *testing.T) { subscriptionEdition := aws.String("Edition") subscriptionStatus := aws.String("ACCOUNT_CREATED") - quicksightSubscription := QuicksightSubscription{ - accountId: &accountID, + quicksightSubscription := QuickSightSubscription{ + accountID: &accountID, name: subscriptionName, notificationEmail: subscriptionNotificationEmail, edition: subscriptionEdition, @@ -255,11 +311,11 @@ func Test_Mock_QuicksightSubscription_Filter(t *testing.T) { err := quicksightSubscription.Filter() - assert.Nil(err) + assertions.Nil(err) } func Test_Mock_QuicksightSubscription_Filter_Status(t *testing.T) { - assert := assert.New(t) + assertions := assert.New(t) accountID := "123456789012" subscriptionName := aws.String("Name") @@ -267,8 +323,8 @@ func Test_Mock_QuicksightSubscription_Filter_Status(t *testing.T) { subscriptionEdition := aws.String("Edition") subscriptionStatus := aws.String("UNSUBSCRIBED") - quicksightSubscription := QuicksightSubscription{ - accountId: &accountID, + quicksightSubscription := QuickSightSubscription{ + accountID: &accountID, name: subscriptionName, notificationEmail: subscriptionNotificationEmail, edition: subscriptionEdition, @@ -277,11 +333,11 @@ func Test_Mock_QuicksightSubscription_Filter_Status(t *testing.T) { err := quicksightSubscription.Filter() - assert.EqualError(err, "subscription is not active") + assertions.EqualError(err, "subscription is not active") } func Test_Mock_QuicksightSubscription_Filter_Name(t *testing.T) { - assert := assert.New(t) + assertions := assert.New(t) accountID := "123456789012" subscriptionName := aws.String("NOT_AVAILABLE") @@ -289,8 +345,8 @@ func Test_Mock_QuicksightSubscription_Filter_Name(t *testing.T) { subscriptionEdition := aws.String("Edition") subscriptionStatus := aws.String("ACCOUNT_CREATED") - quicksightSubscription := QuicksightSubscription{ - accountId: &accountID, + quicksightSubscription := QuickSightSubscription{ + accountID: &accountID, name: subscriptionName, notificationEmail: subscriptionNotificationEmail, edition: subscriptionEdition, @@ -299,5 +355,5 @@ func Test_Mock_QuicksightSubscription_Filter_Name(t *testing.T) { err := quicksightSubscription.Filter() - assert.EqualError(err, "subscription name is not available yet") + assertions.EqualError(err, "subscription name is not available yet") } From 554c6760867ab12b843fd8025fb54e113fda1cc4 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 4 Jun 2024 17:23:37 +0000 Subject: [PATCH 306/617] fix(deps): update module golang.org/x/text to v0.16.0 --- go.mod | 12 ++++++------ go.sum | 9 +++++++++ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 444be09d..6b805500 100644 --- a/go.mod +++ b/go.mod @@ -13,7 +13,7 @@ require ( github.com/sirupsen/logrus v1.9.3 github.com/stretchr/testify v1.9.0 github.com/urfave/cli/v2 v2.27.2 - golang.org/x/text v0.15.0 + golang.org/x/text v0.16.0 gopkg.in/yaml.v3 v3.0.1 ) @@ -30,11 +30,11 @@ require ( github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/stevenle/topsort v0.2.0 // indirect github.com/xrash/smetrics v0.0.0-20240312152122-5f08fbb34913 // indirect - golang.org/x/mod v0.9.0 // indirect - golang.org/x/net v0.19.0 // indirect - golang.org/x/sync v0.6.0 // indirect - golang.org/x/sys v0.18.0 // indirect - golang.org/x/tools v0.6.0 // indirect + golang.org/x/mod v0.17.0 // indirect + golang.org/x/net v0.25.0 // indirect + golang.org/x/sync v0.7.0 // indirect + golang.org/x/sys v0.20.0 // indirect + golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect gopkg.in/yaml.v2 v2.4.0 // indirect ) diff --git a/go.sum b/go.sum index db5cb77f..e4d2c7c3 100644 --- a/go.sum +++ b/go.sum @@ -74,15 +74,19 @@ golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8U golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.9.0 h1:KENHtAZL2y3NLMYZeHY9DW8HW8V+kQyJsY/V9JlKvCs= golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c= golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U= +golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ= golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= +golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -95,6 +99,8 @@ golang.org/x/sys v0.16.0 h1:xWw16ngr6ZMtmxDyKyIgsE93KNKz5HKmMa3b8ALHidU= golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4= golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y= +golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= @@ -102,11 +108,14 @@ golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/text v0.15.0 h1:h1V/4gjBv8v9cjcR6+AR5+/cIYK5N/WAgiv4xlsEtAk= golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= +golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.6.0 h1:BOw41kyTf3PuCW1pVQf8+Cyg8pMlkYB1oo9iJ6D/lKM= golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= +golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= From a68d1a7bc75f72f2f2aca0b9398d268fad8dadab Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 5 Jun 2024 07:48:32 +0000 Subject: [PATCH 307/617] chore(deps): update goreleaser/goreleaser-action action to v6 [release skip] (#182) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/goreleaser.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 0ebc826c..cb8a34c1 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -81,7 +81,7 @@ jobs: QUILL_SIGN_PASSWORD: ${{ secrets.OP_QUILL_SIGN_PASSWORD }} QUILL_SIGN_P12: ${{ secrets.OP_QUILL_SIGN_P12 }} - name: run goreleaser - uses: goreleaser/goreleaser-action@v5 + uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser version: latest From e948db1cdaa480c4aab4449312a307a1e7df5e2c Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 5 Jun 2024 07:19:49 -0600 Subject: [PATCH 308/617] fix(cloudformation-stack): protect against nil pointer --- resources/cloudformation-stack.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/cloudformation-stack.go b/resources/cloudformation-stack.go index 9ada8966..bc6b1835 100644 --- a/resources/cloudformation-stack.go +++ b/resources/cloudformation-stack.go @@ -7,6 +7,7 @@ import ( "strings" "time" + "github.com/gotidy/ptr" "github.com/sirupsen/logrus" "github.com/aws/aws-sdk-go/aws" @@ -76,7 +77,7 @@ type CloudFormationStack struct { } func (cfs *CloudFormationStack) Filter() error { - if *cfs.stack.Description == "DO NOT MODIFY THIS STACK! This stack is managed by Config Conformance Packs." { + if ptr.ToString(cfs.stack.Description) == "DO NOT MODIFY THIS STACK! This stack is managed by Config Conformance Packs." { return fmt.Errorf("stack is managed by Config Conformance Packs") } return nil From 0e45dbf82a2f4d9cd8c3d3fad7af7a9560fa618d Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 5 Jun 2024 07:38:45 -0600 Subject: [PATCH 309/617] =?UTF-8?q?Revert=20"chore(deps):=20update=20gorel?= =?UTF-8?q?easer/goreleaser-action=20action=20to=20v6=20[releas=E2=80=A6"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit a68d1a7bc75f72f2f2aca0b9398d268fad8dadab. --- .github/workflows/goreleaser.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index cb8a34c1..0ebc826c 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -81,7 +81,7 @@ jobs: QUILL_SIGN_PASSWORD: ${{ secrets.OP_QUILL_SIGN_PASSWORD }} QUILL_SIGN_P12: ${{ secrets.OP_QUILL_SIGN_P12 }} - name: run goreleaser - uses: goreleaser/goreleaser-action@v6 + uses: goreleaser/goreleaser-action@v5 with: distribution: goreleaser version: latest From 283a3f6e4a83f266872306c125f7bab7f81623c0 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 5 Jun 2024 13:48:49 +0000 Subject: [PATCH 310/617] chore(deps): update goreleaser/goreleaser-action action to v6 [release skip] --- .github/workflows/goreleaser.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 0ebc826c..cb8a34c1 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -81,7 +81,7 @@ jobs: QUILL_SIGN_PASSWORD: ${{ secrets.OP_QUILL_SIGN_PASSWORD }} QUILL_SIGN_P12: ${{ secrets.OP_QUILL_SIGN_P12 }} - name: run goreleaser - uses: goreleaser/goreleaser-action@v5 + uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser version: latest From 025949096e0458584973f58f58c3db0ce6e69514 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 6 Jun 2024 17:32:53 -0600 Subject: [PATCH 311/617] docs: linting for coming out of beta --- CONTRIBUTING.md | 8 ++++---- README.md | 4 ++-- docs/cli-examples.md | 11 +++++++---- docs/warning.md | 6 +++++- 4 files changed, 18 insertions(+), 11 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8b776724..be84f5d0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -11,7 +11,7 @@ can only act retroactive on changes of AWS services. Otherwise, it would be a fu If a resource is not yet supported by *aws-nuke*, you have two options to resolve this: -* File [an issue](https://github.com/rebuy-de/aws-nuke/issues/new) and describe which resource is missing. This way someone can take care of it. +* File [an issue](https://github.com/ekristen/aws-nuke/issues/new) and describe which resource is missing. This way someone can take care of it. * Add the resource yourself and open a Pull Request. Please follow the guidelines below to see how to create such a resource. @@ -26,15 +26,15 @@ Please check the following points before creating a bug issue: there are a lot of dependency errors in the first one. The iterations are separated by lines starting with `Removal requested:` and only the errors in the last block indicate actual errors. -File [an issue](https://github.com/rebuy-de/aws-nuke/issues/new) and describe as accurately as possible how to generate the resource on AWS that cause the +File [an issue](https://github.com/ekristen/aws-nuke/issues/new) and describe as accurately as possible how to generate the resource on AWS that cause the errors in *aws-nuke*. Ideally this is provided in a reproducible way like a Terraform template or AWS CLI commands. ### I Have Ideas to Improve *aws-nuke* You should take these steps if you have an idea how to improve *aws-nuke*: -1. Check the [issues page](https://github.com/rebuy-de/aws-nuke/issues), whether someone already had the same or a similar idea. -2. Also check the [closed issues](https://github.com/rebuy-de/aws-nuke/issues?utf8=%E2%9C%93&q=is%3Aissue), because this might have already been implemented, but not yet released. Also, +1. Check the [issues page](https://github.com/ekristen/aws-nuke/issues), whether someone already had the same or a similar idea. +2. Also check the [closed issues](https://github.com/ekristen/aws-nuke/issues?utf8=%E2%9C%93&q=is%3Aissue), because this might have already been implemented, but not yet released. Also, the idea might not be viable for obvious reasons. 3. Join the discussion, if there is already a related issue. If this is not the case, open a new issue and describe your idea. Afterward, we can discuss this idea and form a proposal. diff --git a/README.md b/README.md index e7b91452..8a4fa480 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ below for more. This is not a comprehensive list, but here are some of the highlights: -* New Feature: Signed Darwin Binaries for MacOS +* New Feature: Signed Darwin Binaries for macOS * New Feature: Published Homebrew Tap (ekristen/tap/aws-nuke@3) * New Feature: Global Filters * New Feature: Run Against All Enabled Regions @@ -70,7 +70,7 @@ proper unit tests for it. ## Attribution, License, and Copyright -The rewrite of this tool to use [libnuke](https://github.com/ekristen/libnuke) would not have been posssible without the +The rewrite of this tool to use [libnuke](https://github.com/ekristen/libnuke) would not have been possible without the hard work that came before me on the original tool by the team and contributors over at [rebuy-de](https://github.com/rebuy-de) and their original work on [rebuy-de/aws-nuke](https://github.com/rebuy-de/aws-nuke). diff --git a/docs/cli-examples.md b/docs/cli-examples.md index 88584c57..5be14338 100644 --- a/docs/cli-examples.md +++ b/docs/cli-examples.md @@ -3,7 +3,7 @@ ## Basic usage ```bash -aws-nuke --config config.yml +aws-nuke run --config config.yml ``` ## Using a profile @@ -12,10 +12,13 @@ aws-nuke --config config.yml This assumes you have configured your AWS credentials file with a profile named `my-profile`. ```bash -aws-nuke --config config.yml --profile my-profile +aws-nuke run --config config.yml --profile my-profile ``` -## Using the force flags +## Using the prompt flags + +!!! note + This used be called the `--force` flag. It has been renamed to `--no-prompt` to better reflect its purpose. !!! danger Running without prompts can be dangerous. Make sure you understand what you are doing before using these flags. @@ -24,5 +27,5 @@ The following is an example of how you automate the command to run without any p for running in a CI/CD pipeline. ```bash -aws-nuke --config config.yml --force --force-delay 5 +aws-nuke run --config config.yml --no-prompt --prompt-delay 5 ``` \ No newline at end of file diff --git a/docs/warning.md b/docs/warning.md index 679d8457..a3ca6ce4 100644 --- a/docs/warning.md +++ b/docs/warning.md @@ -24,6 +24,11 @@ To reduce the blast radius of accidents, there are some safety precautions: 4. The account alias must not contain the string `prod`. This string is hardcoded, and it is recommended to add it to every actual production account (e.g. `mycompany-production-ecr`). + + !!! note "ProTip" + This can be disabled by adding `--no-alias-check` to the command line and + [modifying the config accordingly](features/bypass-alias-check.md). + 5. The config file contains a blocklist field. If the Account ID of the account you want to nuke is part of this blocklist, **aws-nuke** will abort. It is recommended, that you add every production account to this blocklist. 6. To ensure you don't just ignore the blocklisting feature, the blocklist must contain at least one Account ID. @@ -34,4 +39,3 @@ To reduce the blast radius of accidents, there are some safety precautions: keep up to date. Feel free to create an issue, if you have any ideas to improve the safety procedures. - From 981c6f2a5e51a0778a1481bd464542cbf16b3584 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 7 Jun 2024 14:10:35 -0600 Subject: [PATCH 312/617] fix: add missing settings and settings reference --- pkg/config/config.go | 2 +- pkg/config/config_test.go | 2 +- resources/cloudformation-stack.go | 3 +++ resources/rds-instances.go | 3 +++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index ba291dc1..88452dee 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -151,7 +151,7 @@ func (c *Config) ResolveDeprecatedFeatureFlags() { }) } if c.FeatureFlags.DisableDeletionProtection.CloudformationStack { - c.Settings.Set("CloudformationStack", &settings.Setting{ + c.Settings.Set("CloudFormationStack", &settings.Setting{ "DisableDeletionProtection": true, }) } diff --git a/pkg/config/config_test.go b/pkg/config/config_test.go index d74bf968..26ae03df 100644 --- a/pkg/config/config_test.go +++ b/pkg/config/config_test.go @@ -370,7 +370,7 @@ func TestConfig_DeprecatedFeatureFlags(t *testing.T) { assert.NotNil(t, rdsInstanceSettings) assert.Equal(t, true, rdsInstanceSettings.Get("DisableDeletionProtection")) - cloudformationStackSettings := c.Settings.Get("CloudformationStack") + cloudformationStackSettings := c.Settings.Get("CloudFormationStack") assert.NotNil(t, cloudformationStackSettings) assert.Equal(t, true, cloudformationStackSettings.Get("DisableDeletionProtection")) } diff --git a/resources/cloudformation-stack.go b/resources/cloudformation-stack.go index 9ada8966..73b7d4a9 100644 --- a/resources/cloudformation-stack.go +++ b/resources/cloudformation-stack.go @@ -32,6 +32,9 @@ func init() { Name: CloudFormationStackResource, Scope: nuke.Account, Lister: &CloudFormationStackLister{}, + Settings: []string{ + "DisableDeletionProtection", + }, }) } diff --git a/resources/rds-instances.go b/resources/rds-instances.go index 7f37d693..a1fa2e3c 100644 --- a/resources/rds-instances.go +++ b/resources/rds-instances.go @@ -22,6 +22,9 @@ func init() { Name: RDSInstanceResource, Scope: nuke.Account, Lister: &RDSInstanceLister{}, + Settings: []string{ + "DisableDeletionProtection", + }, }) } From 17bacf6d39c5621e6fd11ad448a848f097bc8788 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 9 Jun 2024 00:29:37 +0000 Subject: [PATCH 313/617] fix(deps): update module github.com/ekristen/libnuke to v0.15.0 --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 6b805500..0932b407 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.21.6 require ( github.com/aws/aws-sdk-go v1.52.4 - github.com/ekristen/libnuke v0.12.0 + github.com/ekristen/libnuke v0.15.0 github.com/fatih/color v1.17.0 github.com/golang/mock v1.6.0 github.com/google/uuid v1.6.0 diff --git a/go.sum b/go.sum index e4d2c7c3..8ec27fba 100644 --- a/go.sum +++ b/go.sum @@ -14,6 +14,8 @@ github.com/ekristen/libnuke v0.11.0 h1:SdSaAVnuAdGDqNlV82uAa+2FD9NeQyH96rIMduheh github.com/ekristen/libnuke v0.11.0/go.mod h1:sBdA04l9IMMejQw5gO9k6o/a0GffSYhgZYaUSdRjIac= github.com/ekristen/libnuke v0.12.0 h1:Dsk+ckT9sh9QZTLq5m8kOA1KFJGJxSv0TLnfe3YeL1o= github.com/ekristen/libnuke v0.12.0/go.mod h1:sBdA04l9IMMejQw5gO9k6o/a0GffSYhgZYaUSdRjIac= +github.com/ekristen/libnuke v0.15.0 h1:YiQo8E32cZucz1UI14OPikSRl1UoyIp02rntrVeX30U= +github.com/ekristen/libnuke v0.15.0/go.mod h1:riI1tjCf6r+et/9oUBd1vQeFmn2Sn6UeFUR0nWkMeYw= github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4= From 4e953a507f8a0fdb7228f0879df04b915ba73572 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sat, 8 Jun 2024 18:36:02 -0600 Subject: [PATCH 314/617] test(config): fix tests for libnuke@0.15.0 --- pkg/config/config_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg/config/config_test.go b/pkg/config/config_test.go index 26ae03df..eaa229a3 100644 --- a/pkg/config/config_test.go +++ b/pkg/config/config_test.go @@ -82,8 +82,9 @@ func TestConfig_LoadExample(t *testing.T) { Filters: filter.Filters{ "S3Bucket": { filter.Filter{ - Type: filter.Glob, - Value: "my-statebucket-*", + Type: filter.Glob, + Value: "my-statebucket-*", + Values: []string{}, }, }, }, @@ -279,7 +280,7 @@ func TestConfig_FilterMerge(t *testing.T) { expect := filter.Filters{ "S3Bucket": []filter.Filter{ { - Type: "glob", Value: "my-statebucket-*", + Type: "glob", Value: "my-statebucket-*", Values: []string{}, }, }, "IAMRole": []filter.Filter{ From 862ae4e2370942e3beb2f984aeec2e18d1ac8160 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 9 Jun 2024 00:41:47 +0000 Subject: [PATCH 315/617] fix(deps): update module github.com/aws/aws-sdk-go to v1.53.19 --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 0932b407..ca67b603 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/ekristen/aws-nuke go 1.21.6 require ( - github.com/aws/aws-sdk-go v1.52.4 + github.com/aws/aws-sdk-go v1.53.19 github.com/ekristen/libnuke v0.15.0 github.com/fatih/color v1.17.0 github.com/golang/mock v1.6.0 diff --git a/go.sum b/go.sum index 8ec27fba..2802a0bc 100644 --- a/go.sum +++ b/go.sum @@ -2,6 +2,8 @@ github.com/aws/aws-sdk-go v1.50.24 h1:3o2Pg7mOoVL0jv54vWtuafoZqAeEXLhm1tltWA2GcE github.com/aws/aws-sdk-go v1.50.24/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/aws/aws-sdk-go v1.52.4 h1:9VsBVJ2TKf8xPP3+yIPGSYcEBIEymXsJzQoFgQuyvA0= github.com/aws/aws-sdk-go v1.52.4/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go v1.53.19 h1:WEuWc918RXlIaPCyU11F7hH9H1ItK+8m2c/uoQNRUok= +github.com/aws/aws-sdk-go v1.53.19/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/cpuguy83/go-md2man/v2 v2.0.4 h1:wfIWP927BUkWJb2NmU/kNDYIBTh/ziUX91+lVfRxZq4= From d040c4ec6dfb334ccf7a229ec7f2bce1482bde75 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 7 Jun 2024 21:42:50 -0600 Subject: [PATCH 316/617] feat(ec2-image): include disabled and deprecated images --- resources/ec2-image.go | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/resources/ec2-image.go b/resources/ec2-image.go index 665ac1de..cefcd4fa 100644 --- a/resources/ec2-image.go +++ b/resources/ec2-image.go @@ -33,6 +33,8 @@ func (l *EC2ImageLister) List(_ context.Context, o interface{}) ([]resource.Reso Owners: []*string{ aws.String("self"), }, + IncludeDeprecated: aws.Bool(true), + IncludeDisabled: aws.Bool(true), } resp, err := svc.DescribeImages(params) if err != nil { @@ -42,11 +44,13 @@ func (l *EC2ImageLister) List(_ context.Context, o interface{}) ([]resource.Reso resources := make([]resource.Resource, 0) for _, out := range resp.Images { resources = append(resources, &EC2Image{ - svc: svc, - creationDate: *out.CreationDate, - id: *out.ImageId, - name: *out.Name, - tags: out.Tags, + svc: svc, + creationDate: *out.CreationDate, + id: *out.ImageId, + name: *out.Name, + tags: out.Tags, + state: out.State, + deprecatedTime: out.DeprecationTime, }) } @@ -54,11 +58,14 @@ func (l *EC2ImageLister) List(_ context.Context, o interface{}) ([]resource.Reso } type EC2Image struct { - svc *ec2.EC2 - creationDate string - id string - name string - tags []*ec2.Tag + svc *ec2.EC2 + creationDate string + id string + name string + tags []*ec2.Tag + state *string + deprecated *bool + deprecatedTime *string } func (e *EC2Image) Remove(_ context.Context) error { @@ -73,6 +80,9 @@ func (e *EC2Image) Properties() types.Properties { properties.Set("CreationDate", e.creationDate) properties.Set("Name", e.name) + properties.Set("State", e.state) + properties.Set("Deprecated", e.deprecated) + properties.Set("DeprecatedTime", e.deprecatedTime) for _, tagValue := range e.tags { properties.SetTag(tagValue.Key, tagValue.Value) From 2b56ad94140f2dbfc47252e373eb225a4beebc51 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sat, 8 Jun 2024 11:12:34 -0600 Subject: [PATCH 317/617] feat(ec2-image): add disable deregistration protection setting, better filters --- resources/ec2-image.go | 102 +++++++++++++++++++++++++++++++++-------- 1 file changed, 82 insertions(+), 20 deletions(-) diff --git a/resources/ec2-image.go b/resources/ec2-image.go index cefcd4fa..58e60039 100644 --- a/resources/ec2-image.go +++ b/resources/ec2-image.go @@ -2,12 +2,16 @@ package resources import ( "context" + "fmt" + + "github.com/gotidy/ptr" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ec2" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/settings" "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -15,17 +19,27 @@ import ( const EC2ImageResource = "EC2Image" +const IncludeDeprecatedSetting = "IncludeDeprecated" +const IncludeDisabledSetting = "IncludeDisabled" +const DisableDeregistrationProtectionSetting = "DisableDeregistrationProtection" + func init() { registry.Register(®istry.Registration{ Name: EC2ImageResource, Scope: nuke.Account, Lister: &EC2ImageLister{}, + Settings: []string{ + DisableDeregistrationProtectionSetting, + IncludeDeprecatedSetting, + IncludeDisabledSetting, + }, }) } type EC2ImageLister struct{} func (l *EC2ImageLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + resources := make([]resource.Resource, 0) opts := o.(*nuke.ListerOpts) svc := ec2.New(opts.Session) @@ -33,24 +47,25 @@ func (l *EC2ImageLister) List(_ context.Context, o interface{}) ([]resource.Reso Owners: []*string{ aws.String("self"), }, - IncludeDeprecated: aws.Bool(true), - IncludeDisabled: aws.Bool(true), + IncludeDeprecated: ptr.Bool(true), + IncludeDisabled: ptr.Bool(true), } resp, err := svc.DescribeImages(params) if err != nil { return nil, err } - resources := make([]resource.Resource, 0) for _, out := range resp.Images { resources = append(resources, &EC2Image{ - svc: svc, - creationDate: *out.CreationDate, - id: *out.ImageId, - name: *out.Name, - tags: out.Tags, - state: out.State, - deprecatedTime: out.DeprecationTime, + svc: svc, + id: out.ImageId, + name: out.Name, + tags: out.Tags, + state: out.State, + creationDate: out.CreationDate, + deprecated: ptr.Bool(out.DeprecationTime != nil), + deprecatedTime: out.DeprecationTime, + deregistrationProtection: out.DeregistrationProtection, }) } @@ -58,23 +73,65 @@ func (l *EC2ImageLister) List(_ context.Context, o interface{}) ([]resource.Reso } type EC2Image struct { - svc *ec2.EC2 - creationDate string - id string - name string - tags []*ec2.Tag - state *string - deprecated *bool - deprecatedTime *string + svc *ec2.EC2 + settings *settings.Setting + + id *string + name *string + tags []*ec2.Tag + state *string + deprecated *bool + deprecatedTime *string + creationDate *string + deregistrationProtection *string +} + +func (e *EC2Image) Filter() error { + if *e.state == "pending" { + return fmt.Errorf("ineligible state for removal") + } + + if *e.deregistrationProtection != "disabled" { + if e.settings.Get(DisableDeregistrationProtectionSetting) == nil || + (e.settings.Get(DisableDeregistrationProtectionSetting) != nil && + !e.settings.Get(DisableDeregistrationProtectionSetting).(bool)) { + return fmt.Errorf("deregistration protection is enabled") + } + } + + if !e.settings.Get(IncludeDeprecatedSetting).(bool) && e.deprecated != nil && *e.deprecated { + return fmt.Errorf("excluded by %s setting being false", IncludeDeprecatedSetting) + } + + if !e.settings.Get(IncludeDisabledSetting).(bool) && e.state != nil && *e.state == "disabled" { + return fmt.Errorf("excluded by %s setting being false", IncludeDisabledSetting) + } + + return nil } func (e *EC2Image) Remove(_ context.Context) error { + if err := e.removeDeregistrationProtection(); err != nil { + return err + } + _, err := e.svc.DeregisterImage(&ec2.DeregisterImageInput{ - ImageId: &e.id, + ImageId: e.id, }) + return err } +func (e *EC2Image) removeDeregistrationProtection() error { + res, _ := e.svc.DisableImageDeregistrationProtectionRequest(&ec2.DisableImageDeregistrationProtectionInput{ + ImageId: e.id, + }) + if res.Error != nil { + return res.Error + } + return nil +} + func (e *EC2Image) Properties() types.Properties { properties := types.NewProperties() @@ -83,6 +140,7 @@ func (e *EC2Image) Properties() types.Properties { properties.Set("State", e.state) properties.Set("Deprecated", e.deprecated) properties.Set("DeprecatedTime", e.deprecatedTime) + properties.Set("DeregistrationProtection", e.deregistrationProtection) for _, tagValue := range e.tags { properties.SetTag(tagValue.Key, tagValue.Value) @@ -91,5 +149,9 @@ func (e *EC2Image) Properties() types.Properties { } func (e *EC2Image) String() string { - return e.id + return *e.id +} + +func (e *EC2Image) Settings(settings *settings.Setting) { + e.settings = settings } From 646d2e63bc531b72560be79377c7d79a63b6bc39 Mon Sep 17 00:00:00 2001 From: "ekristen-dev[bot]" <169176299+ekristen-dev[bot]@users.noreply.github.com> Date: Sun, 9 Jun 2024 00:42:22 +0000 Subject: [PATCH 318/617] chore: update mocks --- go.sum | 2 + mocks/mock_cloudformationiface/mock.go | 2 +- mocks/mock_ecsiface/mock.go | 2 +- mocks/mock_elasticacheiface/mock.go | 2 +- mocks/mock_glueiface/mock.go | 2 +- mocks/mock_iamiface/mock.go | 2 +- mocks/mock_quicksightiface/mock.go | 102 ++++++++++++++++++++++- mocks/mock_sagemakeriface/mock.go | 2 +- mocks/mock_servicediscoveryiface/mock.go | 2 +- mocks/mock_sqsiface/mock.go | 2 +- mocks/mock_stsiface/mock.go | 2 +- 11 files changed, 112 insertions(+), 10 deletions(-) diff --git a/go.sum b/go.sum index 2802a0bc..53db64d4 100644 --- a/go.sum +++ b/go.sum @@ -78,6 +78,7 @@ golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8U golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.9.0 h1:KENHtAZL2y3NLMYZeHY9DW8HW8V+kQyJsY/V9JlKvCs= golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/mod v0.17.0 h1:zY54UmvipHiNd+pm+m0x9KhZ9hl1/7QNMyxXbc6ICqA= golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -119,6 +120,7 @@ golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtn golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.6.0 h1:BOw41kyTf3PuCW1pVQf8+Cyg8pMlkYB1oo9iJ6D/lKM= golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= +golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d h1:vU5i/LfpvrRCpgM/VPfJLg5KjxD3E+hfT1SH+d9zLwg= golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/mocks/mock_cloudformationiface/mock.go b/mocks/mock_cloudformationiface/mock.go index f3dd700c..60ec679c 100644 --- a/mocks/mock_cloudformationiface/mock.go +++ b/mocks/mock_cloudformationiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.52.4/service/cloudformation/cloudformationiface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.53.19/service/cloudformation/cloudformationiface/interface.go // Package mock_cloudformationiface is a generated GoMock package. package mock_cloudformationiface diff --git a/mocks/mock_ecsiface/mock.go b/mocks/mock_ecsiface/mock.go index 24eea0b6..2da7671f 100644 --- a/mocks/mock_ecsiface/mock.go +++ b/mocks/mock_ecsiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.52.4/service/ecs/ecsiface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.53.19/service/ecs/ecsiface/interface.go // Package mock_ecsiface is a generated GoMock package. package mock_ecsiface diff --git a/mocks/mock_elasticacheiface/mock.go b/mocks/mock_elasticacheiface/mock.go index 48b90bee..cd245857 100644 --- a/mocks/mock_elasticacheiface/mock.go +++ b/mocks/mock_elasticacheiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.52.4/service/elasticache/elasticacheiface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.53.19/service/elasticache/elasticacheiface/interface.go // Package mock_elasticacheiface is a generated GoMock package. package mock_elasticacheiface diff --git a/mocks/mock_glueiface/mock.go b/mocks/mock_glueiface/mock.go index 81fde4a0..67f5870f 100644 --- a/mocks/mock_glueiface/mock.go +++ b/mocks/mock_glueiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.52.4/service/glue/glueiface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.53.19/service/glue/glueiface/interface.go // Package mock_glueiface is a generated GoMock package. package mock_glueiface diff --git a/mocks/mock_iamiface/mock.go b/mocks/mock_iamiface/mock.go index fc54afb4..198aedc9 100644 --- a/mocks/mock_iamiface/mock.go +++ b/mocks/mock_iamiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.52.4/service/iam/iamiface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.53.19/service/iam/iamiface/interface.go // Package mock_iamiface is a generated GoMock package. package mock_iamiface diff --git a/mocks/mock_quicksightiface/mock.go b/mocks/mock_quicksightiface/mock.go index bcee5930..c0812c01 100644 --- a/mocks/mock_quicksightiface/mock.go +++ b/mocks/mock_quicksightiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.52.4/service/quicksight/quicksightiface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.53.19/service/quicksight/quicksightiface/interface.go // Package mock_quicksightiface is a generated GoMock package. package mock_quicksightiface @@ -3852,6 +3852,56 @@ func (mr *MockQuickSightAPIMockRecorder) DescribeIpRestrictionWithContext(arg0, return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeIpRestrictionWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeIpRestrictionWithContext), varargs...) } +// DescribeKeyRegistration mocks base method. +func (m *MockQuickSightAPI) DescribeKeyRegistration(arg0 *quicksight.DescribeKeyRegistrationInput) (*quicksight.DescribeKeyRegistrationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeKeyRegistration", arg0) + ret0, _ := ret[0].(*quicksight.DescribeKeyRegistrationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeKeyRegistration indicates an expected call of DescribeKeyRegistration. +func (mr *MockQuickSightAPIMockRecorder) DescribeKeyRegistration(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeKeyRegistration", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeKeyRegistration), arg0) +} + +// DescribeKeyRegistrationRequest mocks base method. +func (m *MockQuickSightAPI) DescribeKeyRegistrationRequest(arg0 *quicksight.DescribeKeyRegistrationInput) (*request.Request, *quicksight.DescribeKeyRegistrationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeKeyRegistrationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.DescribeKeyRegistrationOutput) + return ret0, ret1 +} + +// DescribeKeyRegistrationRequest indicates an expected call of DescribeKeyRegistrationRequest. +func (mr *MockQuickSightAPIMockRecorder) DescribeKeyRegistrationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeKeyRegistrationRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeKeyRegistrationRequest), arg0) +} + +// DescribeKeyRegistrationWithContext mocks base method. +func (m *MockQuickSightAPI) DescribeKeyRegistrationWithContext(arg0 aws.Context, arg1 *quicksight.DescribeKeyRegistrationInput, arg2 ...request.Option) (*quicksight.DescribeKeyRegistrationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeKeyRegistrationWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.DescribeKeyRegistrationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeKeyRegistrationWithContext indicates an expected call of DescribeKeyRegistrationWithContext. +func (mr *MockQuickSightAPIMockRecorder) DescribeKeyRegistrationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeKeyRegistrationWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).DescribeKeyRegistrationWithContext), varargs...) +} + // DescribeNamespace mocks base method. func (m *MockQuickSightAPI) DescribeNamespace(arg0 *quicksight.DescribeNamespaceInput) (*quicksight.DescribeNamespaceOutput, error) { m.ctrl.T.Helper() @@ -8975,6 +9025,56 @@ func (mr *MockQuickSightAPIMockRecorder) UpdateIpRestrictionWithContext(arg0, ar return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateIpRestrictionWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateIpRestrictionWithContext), varargs...) } +// UpdateKeyRegistration mocks base method. +func (m *MockQuickSightAPI) UpdateKeyRegistration(arg0 *quicksight.UpdateKeyRegistrationInput) (*quicksight.UpdateKeyRegistrationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateKeyRegistration", arg0) + ret0, _ := ret[0].(*quicksight.UpdateKeyRegistrationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateKeyRegistration indicates an expected call of UpdateKeyRegistration. +func (mr *MockQuickSightAPIMockRecorder) UpdateKeyRegistration(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateKeyRegistration", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateKeyRegistration), arg0) +} + +// UpdateKeyRegistrationRequest mocks base method. +func (m *MockQuickSightAPI) UpdateKeyRegistrationRequest(arg0 *quicksight.UpdateKeyRegistrationInput) (*request.Request, *quicksight.UpdateKeyRegistrationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateKeyRegistrationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.UpdateKeyRegistrationOutput) + return ret0, ret1 +} + +// UpdateKeyRegistrationRequest indicates an expected call of UpdateKeyRegistrationRequest. +func (mr *MockQuickSightAPIMockRecorder) UpdateKeyRegistrationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateKeyRegistrationRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateKeyRegistrationRequest), arg0) +} + +// UpdateKeyRegistrationWithContext mocks base method. +func (m *MockQuickSightAPI) UpdateKeyRegistrationWithContext(arg0 aws.Context, arg1 *quicksight.UpdateKeyRegistrationInput, arg2 ...request.Option) (*quicksight.UpdateKeyRegistrationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateKeyRegistrationWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.UpdateKeyRegistrationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateKeyRegistrationWithContext indicates an expected call of UpdateKeyRegistrationWithContext. +func (mr *MockQuickSightAPIMockRecorder) UpdateKeyRegistrationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateKeyRegistrationWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).UpdateKeyRegistrationWithContext), varargs...) +} + // UpdatePublicSharingSettings mocks base method. func (m *MockQuickSightAPI) UpdatePublicSharingSettings(arg0 *quicksight.UpdatePublicSharingSettingsInput) (*quicksight.UpdatePublicSharingSettingsOutput, error) { m.ctrl.T.Helper() diff --git a/mocks/mock_sagemakeriface/mock.go b/mocks/mock_sagemakeriface/mock.go index 36d3df2a..d178555d 100644 --- a/mocks/mock_sagemakeriface/mock.go +++ b/mocks/mock_sagemakeriface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.52.4/service/sagemaker/sagemakeriface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.53.19/service/sagemaker/sagemakeriface/interface.go // Package mock_sagemakeriface is a generated GoMock package. package mock_sagemakeriface diff --git a/mocks/mock_servicediscoveryiface/mock.go b/mocks/mock_servicediscoveryiface/mock.go index c0322ea1..e24d0319 100644 --- a/mocks/mock_servicediscoveryiface/mock.go +++ b/mocks/mock_servicediscoveryiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.52.4/service/servicediscovery/servicediscoveryiface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.53.19/service/servicediscovery/servicediscoveryiface/interface.go // Package mock_servicediscoveryiface is a generated GoMock package. package mock_servicediscoveryiface diff --git a/mocks/mock_sqsiface/mock.go b/mocks/mock_sqsiface/mock.go index da8538d1..28ea27c9 100644 --- a/mocks/mock_sqsiface/mock.go +++ b/mocks/mock_sqsiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.52.4/service/sqs/sqsiface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.53.19/service/sqs/sqsiface/interface.go // Package mock_sqsiface is a generated GoMock package. package mock_sqsiface diff --git a/mocks/mock_stsiface/mock.go b/mocks/mock_stsiface/mock.go index bd55d542..0839c579 100644 --- a/mocks/mock_stsiface/mock.go +++ b/mocks/mock_stsiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.52.4/service/sts/stsiface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.53.19/service/sts/stsiface/interface.go // Package mock_stsiface is a generated GoMock package. package mock_stsiface From 8401aaba6d44851737b11953128cc89d7197d182 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sat, 8 Jun 2024 18:55:56 -0600 Subject: [PATCH 319/617] fix(ec2-image): disable image deregistration protection --- resources/ec2-image.go | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/resources/ec2-image.go b/resources/ec2-image.go index 58e60039..3c610e33 100644 --- a/resources/ec2-image.go +++ b/resources/ec2-image.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/libnuke/pkg/settings" + libsettings "github.com/ekristen/libnuke/pkg/settings" "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/pkg/nuke" @@ -74,7 +74,7 @@ func (l *EC2ImageLister) List(_ context.Context, o interface{}) ([]resource.Reso type EC2Image struct { svc *ec2.EC2 - settings *settings.Setting + settings *libsettings.Setting id *string name *string @@ -91,7 +91,7 @@ func (e *EC2Image) Filter() error { return fmt.Errorf("ineligible state for removal") } - if *e.deregistrationProtection != "disabled" { + if *e.deregistrationProtection != ec2.ImageStateDisabled { if e.settings.Get(DisableDeregistrationProtectionSetting) == nil || (e.settings.Get(DisableDeregistrationProtectionSetting) != nil && !e.settings.Get(DisableDeregistrationProtectionSetting).(bool)) { @@ -103,7 +103,7 @@ func (e *EC2Image) Filter() error { return fmt.Errorf("excluded by %s setting being false", IncludeDeprecatedSetting) } - if !e.settings.Get(IncludeDisabledSetting).(bool) && e.state != nil && *e.state == "disabled" { + if !e.settings.Get(IncludeDisabledSetting).(bool) && e.state != nil && *e.state == ec2.ImageStateDisabled { return fmt.Errorf("excluded by %s setting being false", IncludeDisabledSetting) } @@ -123,13 +123,18 @@ func (e *EC2Image) Remove(_ context.Context) error { } func (e *EC2Image) removeDeregistrationProtection() error { - res, _ := e.svc.DisableImageDeregistrationProtectionRequest(&ec2.DisableImageDeregistrationProtectionInput{ + if *e.deregistrationProtection == ec2.ImageStateDisabled { + return nil + } + + if !e.settings.Get(DisableDeregistrationProtectionSetting).(bool) { + return nil + } + + _, err := e.svc.DisableImageDeregistrationProtection(&ec2.DisableImageDeregistrationProtectionInput{ ImageId: e.id, }) - if res.Error != nil { - return res.Error - } - return nil + return err } func (e *EC2Image) Properties() types.Properties { @@ -152,6 +157,6 @@ func (e *EC2Image) String() string { return *e.id } -func (e *EC2Image) Settings(settings *settings.Setting) { +func (e *EC2Image) Settings(settings *libsettings.Setting) { e.settings = settings } From 0b26c14bb9df7ea93ac9736c571f33bde3fff5c1 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sat, 8 Jun 2024 19:16:32 -0600 Subject: [PATCH 320/617] fix(ec2-image): improve handling of deregistration cooldown --- resources/ec2-image.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/resources/ec2-image.go b/resources/ec2-image.go index 3c610e33..9e0db2c5 100644 --- a/resources/ec2-image.go +++ b/resources/ec2-image.go @@ -3,6 +3,7 @@ package resources import ( "context" "fmt" + "strings" "github.com/gotidy/ptr" @@ -56,12 +57,18 @@ func (l *EC2ImageLister) List(_ context.Context, o interface{}) ([]resource.Reso } for _, out := range resp.Images { + visibility := "Private" + if ptr.ToBool(out.Public) { + visibility = "Public" + } + resources = append(resources, &EC2Image{ svc: svc, id: out.ImageId, name: out.Name, tags: out.Tags, state: out.State, + visibility: ptr.String(visibility), creationDate: out.CreationDate, deprecated: ptr.Bool(out.DeprecationTime != nil), deprecatedTime: out.DeprecationTime, @@ -80,6 +87,7 @@ type EC2Image struct { name *string tags []*ec2.Tag state *string + visibility *string deprecated *bool deprecatedTime *string creationDate *string @@ -91,6 +99,11 @@ func (e *EC2Image) Filter() error { return fmt.Errorf("ineligible state for removal") } + if strings.HasPrefix(*e.deregistrationProtection, "disabled after") { + return fmt.Errorf("would remove after %s due to deregistration protection cooldown", + strings.ReplaceAll(*e.deregistrationProtection, "disabled after ", "")) + } + if *e.deregistrationProtection != ec2.ImageStateDisabled { if e.settings.Get(DisableDeregistrationProtectionSetting) == nil || (e.settings.Get(DisableDeregistrationProtectionSetting) != nil && @@ -115,6 +128,10 @@ func (e *EC2Image) Remove(_ context.Context) error { return err } + if *e.deregistrationProtection == "enabled-with-cooldown" { + return nil + } + _, err := e.svc.DeregisterImage(&ec2.DeregisterImageInput{ ImageId: e.id, }) @@ -143,6 +160,7 @@ func (e *EC2Image) Properties() types.Properties { properties.Set("CreationDate", e.creationDate) properties.Set("Name", e.name) properties.Set("State", e.state) + properties.Set("Visibility", e.visibility) properties.Set("Deprecated", e.deprecated) properties.Set("DeprecatedTime", e.deprecatedTime) properties.Set("DeregistrationProtection", e.deregistrationProtection) From 3aa7cc277084d27329c7fc6192d1fbc8caee7577 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 10 Jun 2024 12:26:45 -0600 Subject: [PATCH 321/617] feat(secretsmanager-secret): properly support deleting secret replicas --- resources/secretsmanager-secret.go | 134 ++++++++++++++++++++++++++++ resources/secretsmanager-secrets.go | 87 ------------------ 2 files changed, 134 insertions(+), 87 deletions(-) create mode 100644 resources/secretsmanager-secret.go delete mode 100644 resources/secretsmanager-secrets.go diff --git a/resources/secretsmanager-secret.go b/resources/secretsmanager-secret.go new file mode 100644 index 00000000..3f1aa1ce --- /dev/null +++ b/resources/secretsmanager-secret.go @@ -0,0 +1,134 @@ +package resources + +import ( + "context" + "strings" + + "github.com/gotidy/ptr" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/secretsmanager" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" +) + +const SecretsManagerSecretResource = "SecretsManagerSecret" + +func init() { + registry.Register(®istry.Registration{ + Name: SecretsManagerSecretResource, + Scope: nuke.Account, + Lister: &SecretsManagerSecretLister{}, + }) +} + +type SecretsManagerSecretLister struct{} + +func (l *SecretsManagerSecretLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := secretsmanager.New(opts.Session) + resources := make([]resource.Resource, 0) + + params := &secretsmanager.ListSecretsInput{ + MaxResults: aws.Int64(100), + } + + for { + output, err := svc.ListSecrets(params) + if err != nil { + return nil, err + } + + for _, secret := range output.SecretList { + replica := false + var primarySvc *secretsmanager.SecretsManager + if opts.Region.Name != *secret.PrimaryRegion { + replica = true + + primaryCfg := opts.Session.Copy(&aws.Config{ + Region: aws.String(*secret.PrimaryRegion), + }) + + primarySvc = secretsmanager.New(primaryCfg) + } + + resources = append(resources, &SecretsManagerSecret{ + svc: svc, + primarySvc: primarySvc, + region: ptr.String(opts.Region.Name), + ARN: secret.ARN, + Name: secret.Name, + PrimaryRegion: secret.PrimaryRegion, + Replica: replica, + tags: secret.Tags, + }) + } + + if output.NextToken == nil { + break + } + + params.NextToken = output.NextToken + } + + return resources, nil +} + +type SecretsManagerSecret struct { + svc *secretsmanager.SecretsManager + primarySvc *secretsmanager.SecretsManager + region *string + ARN *string + Name *string + PrimaryRegion *string + Replica bool + ReplicaRegions []*string + tags []*secretsmanager.Tag +} + +// ParentARN returns the ARN of the parent secret by doing a string replace of the region. For example, if the region +// is us-west-2 and the primary region is us-east-1, the ARN will be replaced with us-east-1. This will allow for the +// RemoveRegionsFromReplication call to work properly. +func (f *SecretsManagerSecret) ParentARN() *string { + return ptr.String(strings.ReplaceAll(*f.ARN, *f.region, *f.PrimaryRegion)) +} + +func (f *SecretsManagerSecret) Remove(_ context.Context) error { + if f.Replica { + _, err := f.primarySvc.RemoveRegionsFromReplication(&secretsmanager.RemoveRegionsFromReplicationInput{ + SecretId: f.ParentARN(), + RemoveReplicaRegions: []*string{f.region}, + }) + + return err + } + + _, err := f.svc.DeleteSecret(&secretsmanager.DeleteSecretInput{ + SecretId: f.ARN, + ForceDeleteWithoutRecovery: aws.Bool(true), + }) + + return err +} + +func (f *SecretsManagerSecret) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("PrimaryRegion", f.PrimaryRegion) + properties.Set("Replica", f.Replica) + properties.Set("Name", f.Name) + properties.Set("ARN", f.ARN) + for _, tagValue := range f.tags { + properties.SetTag(tagValue.Key, tagValue.Value) + } + return properties +} + +// TODO(v4): change the return value to the name of the resource instead of the ARN +func (f *SecretsManagerSecret) String() string { + return *f.ARN +} diff --git a/resources/secretsmanager-secrets.go b/resources/secretsmanager-secrets.go deleted file mode 100644 index b3d8df3f..00000000 --- a/resources/secretsmanager-secrets.go +++ /dev/null @@ -1,87 +0,0 @@ -package resources - -import ( - "context" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/secretsmanager" - - "github.com/ekristen/libnuke/pkg/registry" - "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/libnuke/pkg/types" - - "github.com/ekristen/aws-nuke/pkg/nuke" -) - -const SecretsManagerSecretResource = "SecretsManagerSecret" - -func init() { - registry.Register(®istry.Registration{ - Name: SecretsManagerSecretResource, - Scope: nuke.Account, - Lister: &SecretsManagerSecretLister{}, - }) -} - -type SecretsManagerSecretLister struct{} - -func (l *SecretsManagerSecretLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { - opts := o.(*nuke.ListerOpts) - - svc := secretsmanager.New(opts.Session) - resources := make([]resource.Resource, 0) - - params := &secretsmanager.ListSecretsInput{ - MaxResults: aws.Int64(100), - } - - for { - output, err := svc.ListSecrets(params) - if err != nil { - return nil, err - } - - for _, secrets := range output.SecretList { - resources = append(resources, &SecretsManagerSecret{ - svc: svc, - ARN: secrets.ARN, - tags: secrets.Tags, - }) - } - - if output.NextToken == nil { - break - } - - params.NextToken = output.NextToken - } - - return resources, nil -} - -type SecretsManagerSecret struct { - svc *secretsmanager.SecretsManager - ARN *string - tags []*secretsmanager.Tag -} - -func (f *SecretsManagerSecret) Remove(_ context.Context) error { - _, err := f.svc.DeleteSecret(&secretsmanager.DeleteSecretInput{ - SecretId: f.ARN, - ForceDeleteWithoutRecovery: aws.Bool(true), - }) - - return err -} - -func (f *SecretsManagerSecret) Properties() types.Properties { - properties := types.NewProperties() - for _, tagValue := range f.tags { - properties.SetTag(tagValue.Key, tagValue.Value) - } - return properties -} - -func (f *SecretsManagerSecret) String() string { - return *f.ARN -} From ca1a302be0d387234c7e71ab46dce5db4cab3a6b Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 10 Jun 2024 12:29:25 -0600 Subject: [PATCH 322/617] refactor(secretsmanager-secret): code standards rename receivers --- resources/secretsmanager-secret.go | 34 +++++++++++++++--------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/resources/secretsmanager-secret.go b/resources/secretsmanager-secret.go index 3f1aa1ce..e2bb8eb7 100644 --- a/resources/secretsmanager-secret.go +++ b/resources/secretsmanager-secret.go @@ -94,41 +94,41 @@ type SecretsManagerSecret struct { // ParentARN returns the ARN of the parent secret by doing a string replace of the region. For example, if the region // is us-west-2 and the primary region is us-east-1, the ARN will be replaced with us-east-1. This will allow for the // RemoveRegionsFromReplication call to work properly. -func (f *SecretsManagerSecret) ParentARN() *string { - return ptr.String(strings.ReplaceAll(*f.ARN, *f.region, *f.PrimaryRegion)) +func (r *SecretsManagerSecret) ParentARN() *string { + return ptr.String(strings.ReplaceAll(*r.ARN, *r.region, *r.PrimaryRegion)) } -func (f *SecretsManagerSecret) Remove(_ context.Context) error { - if f.Replica { - _, err := f.primarySvc.RemoveRegionsFromReplication(&secretsmanager.RemoveRegionsFromReplicationInput{ - SecretId: f.ParentARN(), - RemoveReplicaRegions: []*string{f.region}, +func (r *SecretsManagerSecret) Remove(_ context.Context) error { + if r.Replica { + _, err := r.primarySvc.RemoveRegionsFromReplication(&secretsmanager.RemoveRegionsFromReplicationInput{ + SecretId: r.ParentARN(), + RemoveReplicaRegions: []*string{r.region}, }) return err } - _, err := f.svc.DeleteSecret(&secretsmanager.DeleteSecretInput{ - SecretId: f.ARN, + _, err := r.svc.DeleteSecret(&secretsmanager.DeleteSecretInput{ + SecretId: r.ARN, ForceDeleteWithoutRecovery: aws.Bool(true), }) return err } -func (f *SecretsManagerSecret) Properties() types.Properties { +func (r *SecretsManagerSecret) Properties() types.Properties { properties := types.NewProperties() - properties.Set("PrimaryRegion", f.PrimaryRegion) - properties.Set("Replica", f.Replica) - properties.Set("Name", f.Name) - properties.Set("ARN", f.ARN) - for _, tagValue := range f.tags { + properties.Set("PrimaryRegion", r.PrimaryRegion) + properties.Set("Replica", r.Replica) + properties.Set("Name", r.Name) + properties.Set("ARN", r.ARN) + for _, tagValue := range r.tags { properties.SetTag(tagValue.Key, tagValue.Value) } return properties } // TODO(v4): change the return value to the name of the resource instead of the ARN -func (f *SecretsManagerSecret) String() string { - return *f.ARN +func (r *SecretsManagerSecret) String() string { + return *r.ARN } From d379d60d0d4b3dadc22ddb00bf81a74b746a0c7f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 10 Jun 2024 20:53:49 +0000 Subject: [PATCH 323/617] fix(deps): update module github.com/ekristen/libnuke to v0.15.1 --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index ca67b603..e6236076 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.21.6 require ( github.com/aws/aws-sdk-go v1.53.19 - github.com/ekristen/libnuke v0.15.0 + github.com/ekristen/libnuke v0.15.1 github.com/fatih/color v1.17.0 github.com/golang/mock v1.6.0 github.com/google/uuid v1.6.0 diff --git a/go.sum b/go.sum index 53db64d4..abd697ba 100644 --- a/go.sum +++ b/go.sum @@ -18,6 +18,8 @@ github.com/ekristen/libnuke v0.12.0 h1:Dsk+ckT9sh9QZTLq5m8kOA1KFJGJxSv0TLnfe3YeL github.com/ekristen/libnuke v0.12.0/go.mod h1:sBdA04l9IMMejQw5gO9k6o/a0GffSYhgZYaUSdRjIac= github.com/ekristen/libnuke v0.15.0 h1:YiQo8E32cZucz1UI14OPikSRl1UoyIp02rntrVeX30U= github.com/ekristen/libnuke v0.15.0/go.mod h1:riI1tjCf6r+et/9oUBd1vQeFmn2Sn6UeFUR0nWkMeYw= +github.com/ekristen/libnuke v0.15.1 h1:qOfGxnFYuCGaFW4g+J6QHvphhkHoeb0i5Z7VuaIOGSQ= +github.com/ekristen/libnuke v0.15.1/go.mod h1:riI1tjCf6r+et/9oUBd1vQeFmn2Sn6UeFUR0nWkMeYw= github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4= From 5573a13954072653e64946d0cb8e13a6c0eda2b9 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 11 Jun 2024 16:31:22 -0600 Subject: [PATCH 324/617] docs: funding information [release skip] --- .github/FUNDING.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 00000000..26ac7176 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +github: ekristen From 1e017a32a80c8ed088bc73948e60c4bb4a958358 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 20 Jun 2024 20:28:17 -0600 Subject: [PATCH 325/617] fix: trim path --- .goreleaser.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index ed023659..096b1442 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -24,6 +24,8 @@ builds: goarch: arm - goos: darwin goarch: arm + flags: + - -trimpath ldflags: - -s - -w From 7d9456b1b7af064b250df5a6e4b0dcc128962a4d Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 20 Jun 2024 20:28:32 -0600 Subject: [PATCH 326/617] docs: add downloads badge to readme --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 8a4fa480..8110bbd1 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,10 @@ [![release](https://img.shields.io/github/release/ekristen/aws-nuke.svg)](https://github.com/ekristen/aws-nuke/releases) [![Go Report Card](https://goreportcard.com/badge/github.com/ekristen/aws-nuke)](https://goreportcard.com/report/github.com/ekristen/aws-nuke) [![Maintainability](https://api.codeclimate.com/v1/badges/bf05fb12c69f1ea7f257/maintainability)](https://codeclimate.com/github/ekristen/aws-nuke/maintainability) +![GitHub Downloads (all assets, all releases)](https://img.shields.io/github/downloads/ekristen/aws-nuke/total) +![GitHub Downloads (all assets, latest release)](https://img.shields.io/github/downloads/ekristen/aws-nuke/latest/total) + + ## Overview From 2e83c1e59e1fa79f54e669ca26eadf2426ff84e4 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 20 Jun 2024 20:29:11 -0600 Subject: [PATCH 327/617] fix: pass logger to libnuke so warnings are displayed around resources --- pkg/commands/nuke/nuke.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/commands/nuke/nuke.go b/pkg/commands/nuke/nuke.go index 7c746d31..56106069 100644 --- a/pkg/commands/nuke/nuke.go +++ b/pkg/commands/nuke/nuke.go @@ -113,6 +113,7 @@ func execute(c *cli.Context) error { //nolint:funlen,gocyclo n := libnuke.New(params, filters, parsedConfig.Settings) n.SetRunSleep(5 * time.Second) + n.SetLogger(logrus.WithField("component", "libnuke")) n.RegisterVersion(fmt.Sprintf("> %s", common.AppVersion.String())) // Register our custom validate handler that validates the account and AWS nuke unique alias checks From 0ed44788276ae492c265ddf4b00be7548ddecf36 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 20 Jun 2024 20:36:33 -0600 Subject: [PATCH 328/617] feat: rev module to v3 for proper import in other tools --- go.mod | 2 +- main.go | 12 ++++++------ pkg/awsutil/account.go | 2 +- pkg/awsutil/session.go | 2 +- pkg/awsutil/util_test.go | 2 +- pkg/commands/account/account.go | 10 +++++----- pkg/commands/config/config.go | 10 +++++----- pkg/commands/list/list.go | 6 +++--- pkg/commands/nuke/nuke.go | 10 +++++----- pkg/nuke/prompt.go | 2 +- resources/accessanalyzer-analyzers.go | 2 +- resources/accessanalyzer-archiverules.go | 2 +- resources/acm-certificates.go | 2 +- resources/acmpca-certificateauthorities.go | 2 +- resources/acmpca-certificateauthoritystates.go | 2 +- resources/apigateway-apikeys.go | 2 +- resources/apigateway-clientcertificates.go | 2 +- resources/apigateway-domainnames.go | 2 +- resources/apigateway-restapis.go | 2 +- resources/apigateway-usageplans.go | 2 +- resources/apigateway-vpclinks.go | 2 +- resources/apigatewayv2-apis.go | 2 +- resources/apigatewayv2-vpc-links.go | 2 +- resources/appconfig-applications.go | 2 +- resources/appconfig-configurationprofiles.go | 2 +- resources/appconfig-deploymentstrategies.go | 2 +- resources/appconfig-environments.go | 2 +- resources/appconfig-hostedconfigurationversions.go | 2 +- resources/applicationautoscaling-scalable-targets.go | 2 +- resources/appmesh-gatewayroute.go | 2 +- resources/appmesh-mesh.go | 2 +- resources/appmesh-route.go | 2 +- resources/appmesh-virtualgateway.go | 2 +- resources/appmesh-virtualnode.go | 2 +- resources/appmesh-virtualrouter.go | 2 +- resources/appmesh-virtualservice.go | 2 +- resources/apprunner-connection.go | 2 +- resources/apprunner-service.go | 2 +- resources/appstream-directoryconfigs.go | 2 +- resources/appstream-fleets.go | 2 +- resources/appstream-fleetstates.go | 2 +- resources/appstream-imagebuilders.go | 2 +- resources/appstream-imagebuilderwaiters.go | 2 +- resources/appstream-images.go | 2 +- resources/appstream-stack-fleet-attachments.go | 2 +- resources/appstream-stacks.go | 2 +- resources/appsync-graphqlapis.go | 2 +- resources/athena-named-queries.go | 2 +- resources/athena-work-groups.go | 2 +- resources/autoscaling-groups.go | 2 +- resources/autoscaling-launch-configurations.go | 2 +- resources/autoscaling-lifecycle-hooks.go | 2 +- resources/autoscalingplans-scalingplans.go | 2 +- resources/backup-plans.go | 2 +- resources/backup-recovery-points.go | 2 +- resources/backup-selections.go | 2 +- resources/backup-vaults-access-policies.go | 2 +- resources/backup-vaults.go | 2 +- resources/batch-compute-environment-states.go | 2 +- resources/batch-compute-environments.go | 2 +- resources/batch-job-queue-states.go | 2 +- resources/batch-job-queues.go | 2 +- resources/billing-costandusagereports.go | 2 +- resources/budgets.go | 2 +- resources/cloud9-environments.go | 2 +- resources/cloudcontrol.go | 2 +- resources/clouddirectory-directories.go | 2 +- resources/clouddirectory-schemas.go | 2 +- resources/cloudformation-stack.go | 2 +- resources/cloudformation-stack_test.go | 2 +- resources/cloudformation-stackset.go | 2 +- resources/cloudformation-stackset_test.go | 2 +- resources/cloudformation-type.go | 2 +- resources/cloudformation-type_test.go | 2 +- resources/cloudfront-cache-policy.go | 2 +- resources/cloudfront-distribution-deployments.go | 2 +- resources/cloudfront-distributions.go | 2 +- resources/cloudfront-function.go | 2 +- resources/cloudfront-key-groups.go | 2 +- resources/cloudfront-origin-access-control.go | 2 +- resources/cloudfront-origin-access-identities.go | 2 +- resources/cloudfront-origin-request-policy.go | 2 +- resources/cloudfront-public-keys.go | 2 +- resources/cloudfront-response-headers-policies.go | 2 +- resources/cloudhsmv2-cluster.go | 2 +- resources/cloudhsmv2-clusterhsms.go | 2 +- resources/cloudsearch-domains.go | 2 +- resources/cloudtrail-trails.go | 2 +- resources/cloudwatch-alarms.go | 2 +- resources/cloudwatch-dashboards.go | 2 +- resources/cloudwatch-rum.go | 2 +- resources/cloudwatchevents-buses.go | 4 ++-- resources/cloudwatchevents-rules.go | 2 +- resources/cloudwatchevents-targets.go | 2 +- resources/cloudwatchlogs-destinations.go | 2 +- resources/cloudwatchlogs-loggroups.go | 2 +- resources/cloudwatchlogs-resourcepolicy.go | 2 +- resources/codeartifact-domains.go | 2 +- resources/codeartifact-repositories.go | 2 +- resources/codebuild-projects.go | 2 +- resources/codebuild-report.go | 2 +- resources/codebuild-reportgroup.go | 2 +- resources/codecommit-repositories.go | 2 +- resources/codedeploy-applications.go | 2 +- resources/codepipeline-pipelines.go | 2 +- resources/codestar-connections.go | 2 +- resources/codestar-notifications.go | 2 +- resources/codestar-projects.go | 2 +- resources/cognito-identity-pools.go | 2 +- resources/cognito-identity-providers.go | 2 +- resources/cognito-userpool-clients.go | 2 +- resources/cognito-userpool-domains.go | 2 +- resources/cognito-userpools.go | 2 +- resources/comprehend-document-classifier.go | 2 +- .../comprehend-dominant-language-detection-job.go | 2 +- resources/comprehend-endpoint.go | 2 +- resources/comprehend-entities-detection-job.go | 2 +- resources/comprehend-entity-recognizer.go | 2 +- resources/comprehend-events-detection-job.go | 2 +- resources/comprehend-key-phrases-detection-job.go | 2 +- resources/comprehend-pii-entities-detection-job.go | 2 +- resources/comprehend-sentiment-detection-job.go | 2 +- .../comprehend-targeted-sentiment-detection-job.go | 2 +- resources/configservice-configrules.go | 2 +- resources/configservice-configurationrecorders.go | 2 +- resources/configservice-conformance-pack.go | 2 +- resources/configservice-deliverychannels.go | 2 +- resources/databasemigrationservice-certificates.go | 2 +- resources/databasemigrationservice-endpoints.go | 2 +- .../databasemigrationservice-eventsubscriptions.go | 2 +- .../databasemigrationservice-replicationinstances.go | 2 +- .../databasemigrationservice-replicationtasks.go | 2 +- resources/databasemigrationservice-subnetgroups.go | 2 +- resources/datapipeline-pipelines.go | 2 +- resources/dax-clusters.go | 2 +- resources/dax-parametergroups.go | 2 +- resources/dax-subnetgroups.go | 2 +- resources/devicefarm-projects.go | 2 +- resources/directoryservice-directories.go | 2 +- resources/dynamodb-items.go | 2 +- resources/dynamodb-tables.go | 2 +- resources/ec2-client-vpn-endpoint-attachment.go | 2 +- resources/ec2-client-vpn-endpoint.go | 2 +- resources/ec2-customer-gateway.go | 4 ++-- resources/ec2-default-security-group-rules.go | 2 +- resources/ec2-dhcp-options.go | 2 +- resources/ec2-egress-only-internet-gateways.go | 2 +- resources/ec2-eip.go | 2 +- resources/ec2-host.go | 2 +- resources/ec2-image.go | 2 +- resources/ec2-instance-connect-endpoint.go | 2 +- resources/ec2-instance.go | 4 ++-- resources/ec2-internet-gateway-attachments.go | 2 +- resources/ec2-internet-gateways.go | 2 +- resources/ec2-key-pairs.go | 2 +- resources/ec2-launch-templates.go | 2 +- resources/ec2-nat-gateways.go | 4 ++-- resources/ec2-network-acls.go | 2 +- resources/ec2-network-interfaces.go | 2 +- resources/ec2-placement-groups.go | 4 ++-- resources/ec2-route-tables.go | 2 +- resources/ec2-security-groups.go | 2 +- resources/ec2-snapshots.go | 2 +- resources/ec2-spot-fleet-requests.go | 2 +- resources/ec2-subnets.go | 2 +- resources/ec2-tgw-attachments.go | 4 ++-- resources/ec2-tgw.go | 4 ++-- resources/ec2-volume.go | 2 +- resources/ec2-vpc-endpoint-connections.go | 4 ++-- resources/ec2-vpc-endpoint-service-configurations.go | 2 +- resources/ec2-vpc-endpoint.go | 2 +- resources/ec2-vpc-peering-connections.go | 4 ++-- resources/ec2-vpc.go | 2 +- resources/ec2-vpn-connections.go | 4 ++-- resources/ec2-vpn-gateway-attachments.go | 2 +- resources/ec2-vpn-gateways.go | 2 +- resources/ecr-public-repository.go | 2 +- resources/ecr-repository.go | 2 +- resources/ecs-clusterinstances.go | 2 +- resources/ecs-clusters.go | 2 +- resources/ecs-clusters_mock_test.go | 4 ++-- resources/ecs-services.go | 2 +- resources/ecs-taskdefinitions.go | 2 +- resources/ecs-tasks.go | 2 +- resources/efs-filesystem.go | 2 +- resources/efs-mount-targets.go | 2 +- resources/eks-clusters.go | 2 +- resources/eks-fargate.go | 2 +- resources/eks-nodegroups.go | 2 +- resources/elasticache-cacheparametergroups.go | 2 +- resources/elasticache-memcacheclusters.go | 2 +- resources/elasticache-memcacheclusters_mock_test.go | 4 ++-- resources/elasticache-replicationgroups.go | 2 +- resources/elasticache-subnetgroups.go | 2 +- resources/elasticache-subnetgroups_mock_test.go | 4 ++-- resources/elasticache-usergroups.go | 2 +- resources/elasticache-users.go | 2 +- resources/elasticbeanstalk-applications.go | 2 +- resources/elasticbeanstalk-environments.go | 2 +- resources/elasticsearchservice-domain.go | 2 +- resources/elastictranscoder-pipelines.go | 2 +- resources/elb-elb.go | 2 +- resources/elbv2-alb.go | 2 +- resources/elbv2-listenerrule.go | 2 +- resources/elbv2-targetgroup.go | 2 +- resources/emr-clusters.go | 2 +- resources/emr-securityconfigurations.go | 2 +- resources/firehose-deliverystreams.go | 2 +- resources/fms-notification-channels.go | 2 +- resources/fms-policies.go | 2 +- resources/fsx-backups.go | 2 +- resources/fsx-filesystems.go | 2 +- resources/ga-accelerators.go | 2 +- resources/ga-endpoints.go | 2 +- resources/ga-listeners.go | 2 +- resources/glue-classifiers.go | 2 +- resources/glue-connections.go | 2 +- resources/glue-crawlers.go | 2 +- resources/glue-databases.go | 2 +- resources/glue-devendpoints.go | 2 +- resources/glue-jobs.go | 2 +- resources/glue-securityconfiguration.go | 2 +- resources/glue-securityconfiguration_mock_test.go | 4 ++-- resources/glue-triggers.go | 2 +- resources/gluedatabrew-datasets.go | 2 +- resources/gluedatabrew-jobs.go | 2 +- resources/gluedatabrew-projects.go | 2 +- resources/gluedatabrew-recipe.go | 2 +- resources/gluedatabrew-rulesets.go | 2 +- resources/gluedatabrew-schedules.go | 2 +- resources/guardduty.go | 2 +- resources/iam-account-setting-password-policy.go | 2 +- resources/iam-group-policies.go | 2 +- resources/iam-group-policies_mock_test.go | 2 +- resources/iam-group-policy-attachments.go | 2 +- resources/iam-group-policy-attachments_mock_test.go | 2 +- resources/iam-groups.go | 2 +- resources/iam-groups_mock_test.go | 2 +- resources/iam-instance-profile-role_mock_test.go | 2 +- resources/iam-instance-profile-roles.go | 2 +- resources/iam-instance-profiles.go | 2 +- resources/iam-instance-profiles_mock_test.go | 2 +- resources/iam-login-profiles.go | 2 +- resources/iam-login-profiles_mock_test.go | 2 +- resources/iam-open-id-connect-provider.go | 2 +- resources/iam-open-id-connect-provider_mock_test.go | 2 +- resources/iam-policies.go | 2 +- resources/iam-policies_mock_test.go | 2 +- resources/iam-role-policy-attachments.go | 2 +- resources/iam-role-policy-attachments_mock_test.go | 2 +- resources/iam-role-policy.go | 2 +- resources/iam-role-policy_mock_test.go | 2 +- resources/iam-roles.go | 2 +- resources/iam-roles_mock_test.go | 2 +- resources/iam-rolesanywhere-crls.go | 2 +- resources/iam-rolesanywhere-profiles.go | 2 +- resources/iam-rolesanywhere-trust-anchors.go | 2 +- resources/iam-saml-provider.go | 2 +- resources/iam-saml-provider_mock_test.go | 2 +- resources/iam-server-certificate.go | 2 +- resources/iam-server-certificate_mock_test.go | 2 +- resources/iam-service-specific-credentials.go | 2 +- .../iam-service-specific-credentials_mock_test.go | 2 +- resources/iam-signing-certificate.go | 2 +- resources/iam-signing-certificate_mock_test.go | 2 +- resources/iam-user-access-key.go | 2 +- resources/iam-user-access-key_mock_test.go | 2 +- resources/iam-user-group-attachments.go | 2 +- resources/iam-user-group-attachments_mock_test.go | 2 +- resources/iam-user-https-git-credential.go | 2 +- resources/iam-user-policy-attachment.go | 2 +- resources/iam-user-policy-attachment_mock_test.go | 2 +- resources/iam-user-policy.go | 2 +- resources/iam-user-policy_mock_test.go | 2 +- resources/iam-user-ssh-keys.go | 2 +- resources/iam-user-ssh-keys_mock_test.go | 2 +- resources/iam-users.go | 2 +- resources/iam-users_mock_test.go | 2 +- resources/iam-virtual-mfa-devices.go | 2 +- resources/iam-virtual-mfa-devices_mock_test.go | 2 +- resources/imagebuilder-components.go | 2 +- .../imagebuilder-distribution-configurations.go | 2 +- resources/imagebuilder-images.go | 2 +- .../imagebuilder-infrastructure-configurations.go | 2 +- resources/imagebuilder-pipelines.go | 2 +- resources/imagebuilder-recipes.go | 2 +- resources/inspector-assessment-runs.go | 2 +- resources/inspector-assessment-targets.go | 2 +- resources/inspector-assessment-templates.go | 2 +- resources/inspector2.go | 2 +- resources/iot-authorizers.go | 2 +- resources/iot-cacertificates.go | 2 +- resources/iot-certificates.go | 2 +- resources/iot-jobs.go | 2 +- resources/iot-otaupdates.go | 2 +- resources/iot-policies.go | 2 +- resources/iot-rolealiases.go | 2 +- resources/iot-streams.go | 2 +- resources/iot-thinggroups.go | 2 +- resources/iot-things.go | 2 +- resources/iot-thingtypes.go | 2 +- resources/iot-thingtypestates.go | 2 +- resources/iot-topicrules.go | 2 +- resources/kendra-indexes.go | 2 +- resources/kinesis-streams.go | 2 +- resources/kinesisanalytics-streams.go | 2 +- resources/kinesisvideo-streams.go | 2 +- resources/kms-aliases.go | 2 +- resources/kms-keys.go | 2 +- resources/lambda-event-source-mapping.go | 2 +- resources/lambda-functions.go | 2 +- resources/lambda-layers.go | 2 +- resources/lex-bot.go | 2 +- resources/lex-intent.go | 2 +- resources/lex-model-building-service-bot-alias.go | 2 +- resources/lex-slot-types.go | 2 +- resources/lightsail-disks.go | 2 +- resources/lightsail-domains.go | 2 +- resources/lightsail-instances.go | 2 +- resources/lightsail-keypairs.go | 2 +- resources/lightsail-loadbalancers.go | 2 +- resources/lightsail-staticips.go | 2 +- resources/machinelearning-batchpredictions.go | 2 +- resources/machinelearning-datasources.go | 2 +- resources/machinelearning-evaluations.go | 2 +- resources/machinelearning-mlmodels.go | 2 +- resources/macie2.go | 2 +- resources/managedblockchain-member.go | 2 +- resources/managedgrafana-workspaces.go | 2 +- resources/mediaconvert-jobtemplates.go | 2 +- resources/mediaconvert-presets.go | 2 +- resources/mediaconvert-queues.go | 2 +- resources/medialive-channels.go | 2 +- resources/medialive-inputs.go | 2 +- resources/medialive-inputsecuritygroups.go | 2 +- resources/mediapackage-channels.go | 2 +- resources/mediapackage-originendpoints.go | 2 +- resources/mediastore-containers.go | 2 +- resources/mediastoredata-items.go | 2 +- resources/mediatailor-configurations.go | 2 +- resources/memorydb-acl.go | 2 +- resources/memorydb-cluster.go | 2 +- resources/memorydb-parametergroups.go | 2 +- resources/memorydb-subnetgroups.go | 2 +- resources/memorydb-user.go | 2 +- resources/mgn-jobs.go | 2 +- resources/mgn-source-servers.go | 2 +- resources/mobile-projects.go | 2 +- resources/mq-broker.go | 2 +- resources/msk-cluster.go | 2 +- resources/msk-configuration.go | 2 +- resources/neptune-clusters.go | 2 +- resources/neptune-instances.go | 2 +- resources/neptune-snapshots.go | 2 +- resources/networkmanager-connect-peers.go | 4 ++-- resources/networkmanager-core-network.go | 4 ++-- resources/networkmanager-global-network.go | 4 ++-- resources/networkmanager-network-attachments.go | 4 ++-- resources/opensearchservice-domain.go | 2 +- resources/opensearchservice-packages.go | 2 +- resources/opensearchservice-vpcendpoints.go | 2 +- resources/opsworks-apps.go | 2 +- resources/opsworks-instances.go | 2 +- resources/opsworks-layers.go | 2 +- resources/opsworks-userprofiles.go | 2 +- resources/opsworkscm-backups.go | 2 +- resources/opsworkscm-servers.go | 2 +- resources/opsworkscm-serverstates.go | 2 +- resources/prometheusservice-workspace.go | 2 +- resources/qldb-ledger.go | 2 +- resources/quicksight-subscriptions.go | 2 +- resources/quicksight-subscriptions_mock_test.go | 6 +++--- resources/rds-cluster-snapshots.go | 2 +- resources/rds-clusters.go | 2 +- resources/rds-dbclusterparametergroups.go | 2 +- resources/rds-dbparametergroups.go | 2 +- resources/rds-event-subscriptions.go | 2 +- resources/rds-instances.go | 2 +- resources/rds-optiongroups.go | 2 +- resources/rds-proxies.go | 2 +- resources/rds-snapshots.go | 2 +- resources/rds-subnets.go | 2 +- resources/redshift-clusters.go | 2 +- resources/redshift-parametergroups.go | 2 +- resources/redshift-scheduled-action.go | 2 +- resources/redshift-snapshots.go | 2 +- resources/redshift-subnetgroups.go | 2 +- resources/redshiftserverless-namespaces.go | 2 +- resources/redshiftserverless-snapshots.go | 2 +- resources/redshiftserverless-workgroups.go | 2 +- resources/rekognition-collection.go | 2 +- resources/resource-explorer2-indexes.go | 2 +- resources/resource-explorer2-views.go | 2 +- resources/resourcegroups-groups.go | 2 +- resources/robomaker-robot-applications.go | 2 +- resources/robomaker-simulation-applications.go | 2 +- resources/robomaker-simulation-jobs.go | 2 +- resources/route53-health-checks.go | 2 +- resources/route53-hosted-zones.go | 2 +- resources/route53-resolver-endpoints.go | 2 +- resources/route53-resolver-rules.go | 2 +- resources/route53-resource-records.go | 2 +- resources/route53-traffic-policies.go | 2 +- resources/s3-access-points.go | 2 +- resources/s3-buckets.go | 2 +- resources/s3-multipart-uploads.go | 2 +- resources/s3-objects.go | 2 +- resources/sagemaker-apps.go | 2 +- resources/sagemaker-domain.go | 2 +- resources/sagemaker-domain_test.go | 4 ++-- resources/sagemaker-endpointconfigs.go | 2 +- resources/sagemaker-endpoints.go | 2 +- resources/sagemaker-models.go | 2 +- .../sagemaker-notebook-instancelifecycleconfigs.go | 2 +- resources/sagemaker-notebook-instances.go | 2 +- resources/sagemaker-notebook-instancestates.go | 2 +- resources/sagemaker-spaces.go | 2 +- resources/sagemaker-userprofiles.go | 2 +- resources/sagemaker-userprofiles_mock_test.go | 4 ++-- resources/secretsmanager-secret.go | 2 +- resources/securityhub-hub.go | 4 ++-- ...rvicecatalog-portfolio-constraints-attachments.go | 4 ++-- ...servicecatalog-portfolio-principal-attachments.go | 2 +- .../servicecatalog-portfolio-product-attachments.go | 2 +- .../servicecatalog-portfolio-share-attachments.go | 2 +- ...rvicecatalog-portfolio-tagoptions-attachements.go | 4 ++-- resources/servicecatalog-portfolios.go | 2 +- resources/servicecatalog-products.go | 2 +- resources/servicecatalog-provisionedproducts.go | 2 +- resources/servicecatalog-tagoptions.go | 4 ++-- resources/servicediscovery-instances.go | 2 +- resources/servicediscovery-namespaces.go | 2 +- resources/servicediscovery-namespaces_mock_test.go | 4 ++-- resources/servicediscovery-services.go | 2 +- resources/ses-configurationsets.go | 2 +- resources/ses-identities.go | 2 +- resources/ses-receiptfilters.go | 4 ++-- resources/ses-receiptrulesets.go | 4 ++-- resources/ses-templates.go | 2 +- resources/sfn-statemachines.go | 2 +- resources/signer-signingjobs.go | 2 +- resources/simpledb-domains.go | 2 +- resources/sns-endpoints.go | 2 +- resources/sns-platformapplications.go | 2 +- resources/sns-subscriptions.go | 2 +- resources/sns-topics.go | 2 +- resources/sqs-queues.go | 2 +- resources/sqs-queues_mock_test.go | 4 ++-- resources/ssm-activations.go | 2 +- resources/ssm-associations.go | 2 +- resources/ssm-documents.go | 2 +- resources/ssm-maintenancewindows.go | 2 +- resources/ssm-parameters.go | 2 +- resources/ssm-patchbaselines.go | 2 +- resources/ssm-resourcedatasyncs.go | 2 +- resources/storagegateway-fileshares.go | 2 +- resources/storagegateway-gateways.go | 2 +- resources/storagegateway-tapes.go | 2 +- resources/storagegateway-volumes.go | 2 +- resources/transfer-server-user.go | 2 +- resources/transfer-server.go | 2 +- resources/waf-rules.go | 2 +- resources/waf-webacl-rule-attachments.go | 2 +- resources/waf-webacls.go | 2 +- resources/wafregional-byte-match-set-tuples.go | 2 +- resources/wafregional-byte-match-sets.go | 2 +- resources/wafregional-ip-set-ips.go | 2 +- resources/wafregional-ip-sets.go | 2 +- resources/wafregional-rate-based-rule-predicates.go | 2 +- resources/wafregional-rate-based-rules.go | 2 +- resources/wafregional-regex-match-sets.go | 2 +- resources/wafregional-regex-match-tuples.go | 2 +- resources/wafregional-regex-pattern-sets.go | 2 +- resources/wafregional-regex-pattern-tuples.go | 2 +- resources/wafregional-rule-predicates.go | 2 +- resources/wafregional-rulegroup.go | 2 +- resources/wafregional-rules.go | 2 +- resources/wafregional-webacl-rule-attachments.go | 2 +- resources/wafregional-webacls.go | 2 +- resources/wafv2-ipsets.go | 2 +- resources/wafv2-regex-pattern-sets.go | 2 +- resources/wafv2-rulegroup.go | 2 +- resources/wafv2-webacls.go | 2 +- resources/workspaces-workspaces.go | 2 +- resources/xray-group.go | 2 +- resources/xray-sampling-rule.go | 2 +- 486 files changed, 535 insertions(+), 535 deletions(-) diff --git a/go.mod b/go.mod index e6236076..ba62e563 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/ekristen/aws-nuke +module github.com/ekristen/aws-nuke/v3 go 1.21.6 diff --git a/main.go b/main.go index bf012bb4..91a931d2 100644 --- a/main.go +++ b/main.go @@ -6,14 +6,14 @@ import ( "github.com/sirupsen/logrus" "github.com/urfave/cli/v2" - "github.com/ekristen/aws-nuke/pkg/common" + "github.com/ekristen/aws-nuke/v3/pkg/common" - _ "github.com/ekristen/aws-nuke/pkg/commands/account" - _ "github.com/ekristen/aws-nuke/pkg/commands/config" - _ "github.com/ekristen/aws-nuke/pkg/commands/list" - _ "github.com/ekristen/aws-nuke/pkg/commands/nuke" + _ "github.com/ekristen/aws-nuke/v3/pkg/commands/account" + _ "github.com/ekristen/aws-nuke/v3/pkg/commands/config" + _ "github.com/ekristen/aws-nuke/v3/pkg/commands/list" + _ "github.com/ekristen/aws-nuke/v3/pkg/commands/nuke" - _ "github.com/ekristen/aws-nuke/resources" + _ "github.com/ekristen/aws-nuke/v3/resources" ) func main() { diff --git a/pkg/awsutil/account.go b/pkg/awsutil/account.go index db2790f9..e3cf330f 100644 --- a/pkg/awsutil/account.go +++ b/pkg/awsutil/account.go @@ -12,7 +12,7 @@ import ( "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/sts" - "github.com/ekristen/aws-nuke/pkg/config" + "github.com/ekristen/aws-nuke/v3/pkg/config" ) type Account struct { diff --git a/pkg/awsutil/session.go b/pkg/awsutil/session.go index e7a530dd..d44421af 100644 --- a/pkg/awsutil/session.go +++ b/pkg/awsutil/session.go @@ -17,7 +17,7 @@ import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/s3control" - "github.com/ekristen/aws-nuke/pkg/config" + "github.com/ekristen/aws-nuke/v3/pkg/config" liberrors "github.com/ekristen/libnuke/pkg/errors" ) diff --git a/pkg/awsutil/util_test.go b/pkg/awsutil/util_test.go index 7dc03551..07fbc5b2 100644 --- a/pkg/awsutil/util_test.go +++ b/pkg/awsutil/util_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/ekristen/aws-nuke/pkg/awsutil" + "github.com/ekristen/aws-nuke/v3/pkg/awsutil" ) func TestSecretRegex(t *testing.T) { diff --git a/pkg/commands/account/account.go b/pkg/commands/account/account.go index 081e36eb..bd4385de 100644 --- a/pkg/commands/account/account.go +++ b/pkg/commands/account/account.go @@ -11,11 +11,11 @@ import ( libconfig "github.com/ekristen/libnuke/pkg/config" "github.com/ekristen/libnuke/pkg/registry" - "github.com/ekristen/aws-nuke/pkg/awsutil" - "github.com/ekristen/aws-nuke/pkg/commands/global" - "github.com/ekristen/aws-nuke/pkg/commands/nuke" - "github.com/ekristen/aws-nuke/pkg/common" - "github.com/ekristen/aws-nuke/pkg/config" + "github.com/ekristen/aws-nuke/v3/pkg/awsutil" + "github.com/ekristen/aws-nuke/v3/pkg/commands/global" + "github.com/ekristen/aws-nuke/v3/pkg/commands/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/common" + "github.com/ekristen/aws-nuke/v3/pkg/config" ) func execute(c *cli.Context) error { diff --git a/pkg/commands/config/config.go b/pkg/commands/config/config.go index a7de048d..b2721fab 100644 --- a/pkg/commands/config/config.go +++ b/pkg/commands/config/config.go @@ -11,11 +11,11 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/awsutil" - "github.com/ekristen/aws-nuke/pkg/commands/global" - "github.com/ekristen/aws-nuke/pkg/commands/nuke" - "github.com/ekristen/aws-nuke/pkg/common" - "github.com/ekristen/aws-nuke/pkg/config" + "github.com/ekristen/aws-nuke/v3/pkg/awsutil" + "github.com/ekristen/aws-nuke/v3/pkg/commands/global" + "github.com/ekristen/aws-nuke/v3/pkg/commands/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/common" + "github.com/ekristen/aws-nuke/v3/pkg/config" ) func execute(c *cli.Context) error { //nolint:funlen,gocyclo diff --git a/pkg/commands/list/list.go b/pkg/commands/list/list.go index cb802644..7f4a580b 100644 --- a/pkg/commands/list/list.go +++ b/pkg/commands/list/list.go @@ -7,10 +7,10 @@ import ( "github.com/fatih/color" "github.com/urfave/cli/v2" - "github.com/ekristen/aws-nuke/pkg/commands/global" - "github.com/ekristen/aws-nuke/pkg/common" + "github.com/ekristen/aws-nuke/v3/pkg/commands/global" + "github.com/ekristen/aws-nuke/v3/pkg/common" - _ "github.com/ekristen/aws-nuke/resources" + _ "github.com/ekristen/aws-nuke/v3/resources" "github.com/ekristen/libnuke/pkg/registry" ) diff --git a/pkg/commands/nuke/nuke.go b/pkg/commands/nuke/nuke.go index 56106069..3a4f6237 100644 --- a/pkg/commands/nuke/nuke.go +++ b/pkg/commands/nuke/nuke.go @@ -18,11 +18,11 @@ import ( "github.com/ekristen/libnuke/pkg/scanner" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/awsutil" - "github.com/ekristen/aws-nuke/pkg/commands/global" - "github.com/ekristen/aws-nuke/pkg/common" - "github.com/ekristen/aws-nuke/pkg/config" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/awsutil" + "github.com/ekristen/aws-nuke/v3/pkg/commands/global" + "github.com/ekristen/aws-nuke/v3/pkg/common" + "github.com/ekristen/aws-nuke/v3/pkg/config" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) // ConfigureCreds is a helper function to configure the awsutil.Credentials object from the cli.Context diff --git a/pkg/nuke/prompt.go b/pkg/nuke/prompt.go index e64abed2..d4dc1265 100644 --- a/pkg/nuke/prompt.go +++ b/pkg/nuke/prompt.go @@ -7,7 +7,7 @@ import ( libnuke "github.com/ekristen/libnuke/pkg/nuke" "github.com/ekristen/libnuke/pkg/utils" - "github.com/ekristen/aws-nuke/pkg/awsutil" + "github.com/ekristen/aws-nuke/v3/pkg/awsutil" ) // Prompt struct provides a way to provide a custom prompt to the libnuke library this allows diff --git a/resources/accessanalyzer-analyzers.go b/resources/accessanalyzer-analyzers.go index 4dd59b4b..824f7070 100644 --- a/resources/accessanalyzer-analyzers.go +++ b/resources/accessanalyzer-analyzers.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const AccessAnalyzerResource = "AccessAnalyzer" diff --git a/resources/accessanalyzer-archiverules.go b/resources/accessanalyzer-archiverules.go index 90b9b051..ca083b56 100644 --- a/resources/accessanalyzer-archiverules.go +++ b/resources/accessanalyzer-archiverules.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const AccessAnalyzerArchiveRuleResource = "ArchiveRule" diff --git a/resources/acm-certificates.go b/resources/acm-certificates.go index 8d74f310..1abc54fb 100644 --- a/resources/acm-certificates.go +++ b/resources/acm-certificates.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ACMCertificateResource = "ACMCertificate" diff --git a/resources/acmpca-certificateauthorities.go b/resources/acmpca-certificateauthorities.go index 1f09a736..50eb7d5d 100644 --- a/resources/acmpca-certificateauthorities.go +++ b/resources/acmpca-certificateauthorities.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ACMPCACertificateAuthorityResource = "ACMPCACertificateAuthority" diff --git a/resources/acmpca-certificateauthoritystates.go b/resources/acmpca-certificateauthoritystates.go index 53fa812c..c15d9c5c 100644 --- a/resources/acmpca-certificateauthoritystates.go +++ b/resources/acmpca-certificateauthoritystates.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ACMPCACertificateAuthorityStateResource = "ACMPCACertificateAuthorityState" diff --git a/resources/apigateway-apikeys.go b/resources/apigateway-apikeys.go index 650144f1..b4233e2e 100644 --- a/resources/apigateway-apikeys.go +++ b/resources/apigateway-apikeys.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const APIGatewayAPIKeyResource = "APIGatewayAPIKey" diff --git a/resources/apigateway-clientcertificates.go b/resources/apigateway-clientcertificates.go index c8bd1430..18c8391a 100644 --- a/resources/apigateway-clientcertificates.go +++ b/resources/apigateway-clientcertificates.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const APIGatewayClientCertificateResource = "APIGatewayClientCertificate" diff --git a/resources/apigateway-domainnames.go b/resources/apigateway-domainnames.go index 7e8e96db..3a899ee1 100644 --- a/resources/apigateway-domainnames.go +++ b/resources/apigateway-domainnames.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const APIGatewayDomainNameResource = "APIGatewayDomainName" diff --git a/resources/apigateway-restapis.go b/resources/apigateway-restapis.go index 02c74269..5c2973a0 100644 --- a/resources/apigateway-restapis.go +++ b/resources/apigateway-restapis.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const APIGatewayRestAPIResource = "APIGatewayRestAPI" diff --git a/resources/apigateway-usageplans.go b/resources/apigateway-usageplans.go index 71d8b45e..c66c847b 100644 --- a/resources/apigateway-usageplans.go +++ b/resources/apigateway-usageplans.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const APIGatewayUsagePlanResource = "APIGatewayUsagePlan" diff --git a/resources/apigateway-vpclinks.go b/resources/apigateway-vpclinks.go index af01c50d..c976e921 100644 --- a/resources/apigateway-vpclinks.go +++ b/resources/apigateway-vpclinks.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const APIGatewayVpcLinkResource = "APIGatewayVpcLink" diff --git a/resources/apigatewayv2-apis.go b/resources/apigatewayv2-apis.go index 8210a5cc..8d5fdb98 100644 --- a/resources/apigatewayv2-apis.go +++ b/resources/apigatewayv2-apis.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const APIGatewayV2APIResource = "APIGatewayV2API" diff --git a/resources/apigatewayv2-vpc-links.go b/resources/apigatewayv2-vpc-links.go index ad1f1a94..f0bb2ea3 100644 --- a/resources/apigatewayv2-vpc-links.go +++ b/resources/apigatewayv2-vpc-links.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const APIGatewayV2VpcLinkResource = "APIGatewayV2VpcLink" diff --git a/resources/appconfig-applications.go b/resources/appconfig-applications.go index b58167bd..bdbd3d00 100644 --- a/resources/appconfig-applications.go +++ b/resources/appconfig-applications.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type AppConfigApplication struct { diff --git a/resources/appconfig-configurationprofiles.go b/resources/appconfig-configurationprofiles.go index 3f517929..7781d989 100644 --- a/resources/appconfig-configurationprofiles.go +++ b/resources/appconfig-configurationprofiles.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type AppConfigConfigurationProfile struct { diff --git a/resources/appconfig-deploymentstrategies.go b/resources/appconfig-deploymentstrategies.go index 94330148..2fd27686 100644 --- a/resources/appconfig-deploymentstrategies.go +++ b/resources/appconfig-deploymentstrategies.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type AppConfigDeploymentStrategy struct { diff --git a/resources/appconfig-environments.go b/resources/appconfig-environments.go index 080aacb6..c49e07c7 100644 --- a/resources/appconfig-environments.go +++ b/resources/appconfig-environments.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type AppConfigEnvironment struct { diff --git a/resources/appconfig-hostedconfigurationversions.go b/resources/appconfig-hostedconfigurationversions.go index f8dffa77..acfa0831 100644 --- a/resources/appconfig-hostedconfigurationversions.go +++ b/resources/appconfig-hostedconfigurationversions.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type AppConfigHostedConfigurationVersion struct { diff --git a/resources/applicationautoscaling-scalable-targets.go b/resources/applicationautoscaling-scalable-targets.go index 5400a01f..2e762b6e 100644 --- a/resources/applicationautoscaling-scalable-targets.go +++ b/resources/applicationautoscaling-scalable-targets.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ApplicationAutoScalingScalableTargetResource = "ApplicationAutoScalingScalableTarget" diff --git a/resources/appmesh-gatewayroute.go b/resources/appmesh-gatewayroute.go index 917803a6..1e05e106 100644 --- a/resources/appmesh-gatewayroute.go +++ b/resources/appmesh-gatewayroute.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const AppMeshGatewayRouteResource = "AppMeshGatewayRoute" diff --git a/resources/appmesh-mesh.go b/resources/appmesh-mesh.go index 42488a94..11919c9f 100644 --- a/resources/appmesh-mesh.go +++ b/resources/appmesh-mesh.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const AppMeshMeshResource = "AppMeshMesh" diff --git a/resources/appmesh-route.go b/resources/appmesh-route.go index 3eea7f63..b7657b25 100644 --- a/resources/appmesh-route.go +++ b/resources/appmesh-route.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const AppMeshRouteResource = "AppMeshRoute" diff --git a/resources/appmesh-virtualgateway.go b/resources/appmesh-virtualgateway.go index ded86668..d10d3e53 100644 --- a/resources/appmesh-virtualgateway.go +++ b/resources/appmesh-virtualgateway.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const AppMeshVirtualGatewayResource = "AppMeshVirtualGateway" diff --git a/resources/appmesh-virtualnode.go b/resources/appmesh-virtualnode.go index 5c8a6296..7b487fc5 100644 --- a/resources/appmesh-virtualnode.go +++ b/resources/appmesh-virtualnode.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const AppMeshVirtualNodeResource = "AppMeshVirtualNode" diff --git a/resources/appmesh-virtualrouter.go b/resources/appmesh-virtualrouter.go index df408da6..f1703294 100644 --- a/resources/appmesh-virtualrouter.go +++ b/resources/appmesh-virtualrouter.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type AppMeshVirtualRouter struct { diff --git a/resources/appmesh-virtualservice.go b/resources/appmesh-virtualservice.go index 54c11bde..8f60438b 100644 --- a/resources/appmesh-virtualservice.go +++ b/resources/appmesh-virtualservice.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type AppMeshVirtualService struct { diff --git a/resources/apprunner-connection.go b/resources/apprunner-connection.go index 9bb3b640..6a650655 100644 --- a/resources/apprunner-connection.go +++ b/resources/apprunner-connection.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type AppRunnerConnection struct { diff --git a/resources/apprunner-service.go b/resources/apprunner-service.go index ed35f1fe..7fa37ef5 100644 --- a/resources/apprunner-service.go +++ b/resources/apprunner-service.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type AppRunnerService struct { diff --git a/resources/appstream-directoryconfigs.go b/resources/appstream-directoryconfigs.go index 1b98f103..74a102c2 100644 --- a/resources/appstream-directoryconfigs.go +++ b/resources/appstream-directoryconfigs.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type AppStreamDirectoryConfig struct { diff --git a/resources/appstream-fleets.go b/resources/appstream-fleets.go index 4e8fef39..eecd715d 100644 --- a/resources/appstream-fleets.go +++ b/resources/appstream-fleets.go @@ -5,7 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/appstream" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" ) diff --git a/resources/appstream-fleetstates.go b/resources/appstream-fleetstates.go index 018d3131..272637a7 100644 --- a/resources/appstream-fleetstates.go +++ b/resources/appstream-fleetstates.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type AppStreamFleetState struct { diff --git a/resources/appstream-imagebuilders.go b/resources/appstream-imagebuilders.go index 4c2f9239..a14e91ce 100644 --- a/resources/appstream-imagebuilders.go +++ b/resources/appstream-imagebuilders.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type AppStreamImageBuilder struct { diff --git a/resources/appstream-imagebuilderwaiters.go b/resources/appstream-imagebuilderwaiters.go index 2edf3d38..15f91499 100644 --- a/resources/appstream-imagebuilderwaiters.go +++ b/resources/appstream-imagebuilderwaiters.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type AppStreamImageBuilderWaiter struct { diff --git a/resources/appstream-images.go b/resources/appstream-images.go index 8eb8460c..7741a245 100644 --- a/resources/appstream-images.go +++ b/resources/appstream-images.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type AppStreamImage struct { diff --git a/resources/appstream-stack-fleet-attachments.go b/resources/appstream-stack-fleet-attachments.go index bb439238..ceb50afd 100644 --- a/resources/appstream-stack-fleet-attachments.go +++ b/resources/appstream-stack-fleet-attachments.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type AppStreamStackFleetAttachment struct { diff --git a/resources/appstream-stacks.go b/resources/appstream-stacks.go index 2298b467..4c9b9947 100644 --- a/resources/appstream-stacks.go +++ b/resources/appstream-stacks.go @@ -5,7 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/appstream" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" ) diff --git a/resources/appsync-graphqlapis.go b/resources/appsync-graphqlapis.go index 1aee67ba..090567f5 100644 --- a/resources/appsync-graphqlapis.go +++ b/resources/appsync-graphqlapis.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const AppSyncGraphqlAPIResource = "AppSyncGraphqlAPI" diff --git a/resources/athena-named-queries.go b/resources/athena-named-queries.go index 8198563e..b0b1a065 100644 --- a/resources/athena-named-queries.go +++ b/resources/athena-named-queries.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const AthenaNamedQueryResource = "AthenaNamedQuery" diff --git a/resources/athena-work-groups.go b/resources/athena-work-groups.go index 026d4ac1..58c5675d 100644 --- a/resources/athena-work-groups.go +++ b/resources/athena-work-groups.go @@ -16,7 +16,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const AthenaWorkGroupResource = "AthenaWorkGroup" diff --git a/resources/autoscaling-groups.go b/resources/autoscaling-groups.go index 41b7a468..25eec09f 100644 --- a/resources/autoscaling-groups.go +++ b/resources/autoscaling-groups.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const AutoScalingGroupResource = "AutoScalingGroup" diff --git a/resources/autoscaling-launch-configurations.go b/resources/autoscaling-launch-configurations.go index 2ba7b736..ba3891d5 100644 --- a/resources/autoscaling-launch-configurations.go +++ b/resources/autoscaling-launch-configurations.go @@ -8,7 +8,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) // TODO: review if this should be prefixed with Autoscaling diff --git a/resources/autoscaling-lifecycle-hooks.go b/resources/autoscaling-lifecycle-hooks.go index fd6153d0..e0a69800 100644 --- a/resources/autoscaling-lifecycle-hooks.go +++ b/resources/autoscaling-lifecycle-hooks.go @@ -8,7 +8,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) // TODO: review if this should be prefixed with Autoscaling diff --git a/resources/autoscalingplans-scalingplans.go b/resources/autoscalingplans-scalingplans.go index aa86ccc9..f30c15e2 100644 --- a/resources/autoscalingplans-scalingplans.go +++ b/resources/autoscalingplans-scalingplans.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const AutoScalingPlansScalingPlanResource = "AutoScalingPlansScalingPlan" diff --git a/resources/backup-plans.go b/resources/backup-plans.go index 06a40dfa..c695ab57 100644 --- a/resources/backup-plans.go +++ b/resources/backup-plans.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type BackupPlan struct { diff --git a/resources/backup-recovery-points.go b/resources/backup-recovery-points.go index 8f7df854..ff4faf7f 100644 --- a/resources/backup-recovery-points.go +++ b/resources/backup-recovery-points.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type BackupRecoveryPoint struct { diff --git a/resources/backup-selections.go b/resources/backup-selections.go index 2f4d2153..446b39a9 100644 --- a/resources/backup-selections.go +++ b/resources/backup-selections.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type BackupSelection struct { diff --git a/resources/backup-vaults-access-policies.go b/resources/backup-vaults-access-policies.go index 19e6bbb8..bff37090 100644 --- a/resources/backup-vaults-access-policies.go +++ b/resources/backup-vaults-access-policies.go @@ -3,7 +3,7 @@ package resources import ( "context" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" diff --git a/resources/backup-vaults.go b/resources/backup-vaults.go index 89e3d295..52b7beec 100644 --- a/resources/backup-vaults.go +++ b/resources/backup-vaults.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type BackupVault struct { diff --git a/resources/batch-compute-environment-states.go b/resources/batch-compute-environment-states.go index a9c16b74..1008a898 100644 --- a/resources/batch-compute-environment-states.go +++ b/resources/batch-compute-environment-states.go @@ -13,7 +13,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const BatchComputeEnvironmentStateResource = "BatchComputeEnvironmentState" diff --git a/resources/batch-compute-environments.go b/resources/batch-compute-environments.go index a4bcfdb2..c4133f28 100644 --- a/resources/batch-compute-environments.go +++ b/resources/batch-compute-environments.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const BatchComputeEnvironmentResource = "BatchComputeEnvironment" diff --git a/resources/batch-job-queue-states.go b/resources/batch-job-queue-states.go index a2b37899..efacbf82 100644 --- a/resources/batch-job-queue-states.go +++ b/resources/batch-job-queue-states.go @@ -13,7 +13,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type BatchJobQueueState struct { diff --git a/resources/batch-job-queues.go b/resources/batch-job-queues.go index 85d77176..084da6c2 100644 --- a/resources/batch-job-queues.go +++ b/resources/batch-job-queues.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const BatchJobQueueResource = "BatchJobQueue" diff --git a/resources/billing-costandusagereports.go b/resources/billing-costandusagereports.go index d219e638..e9b5b834 100644 --- a/resources/billing-costandusagereports.go +++ b/resources/billing-costandusagereports.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const BillingCostandUsageReportResource = "BillingCostandUsageReport" diff --git a/resources/budgets.go b/resources/budgets.go index e0fc4cbb..d83349a5 100644 --- a/resources/budgets.go +++ b/resources/budgets.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const BudgetResource = "Budget" diff --git a/resources/cloud9-environments.go b/resources/cloud9-environments.go index fc33e4e9..3b9ec512 100644 --- a/resources/cloud9-environments.go +++ b/resources/cloud9-environments.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type Cloud9Environment struct { diff --git a/resources/cloudcontrol.go b/resources/cloudcontrol.go index 6a647fbd..ac7b6292 100644 --- a/resources/cloudcontrol.go +++ b/resources/cloudcontrol.go @@ -18,7 +18,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) func init() { diff --git a/resources/clouddirectory-directories.go b/resources/clouddirectory-directories.go index b215657c..ec94490b 100644 --- a/resources/clouddirectory-directories.go +++ b/resources/clouddirectory-directories.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CloudDirectoryDirectoryResource = "CloudDirectoryDirectory" diff --git a/resources/clouddirectory-schemas.go b/resources/clouddirectory-schemas.go index 021494ad..bdb75c71 100644 --- a/resources/clouddirectory-schemas.go +++ b/resources/clouddirectory-schemas.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CloudDirectorySchemaResource = "CloudDirectorySchema" diff --git a/resources/cloudformation-stack.go b/resources/cloudformation-stack.go index 57ce1220..d7a53510 100644 --- a/resources/cloudformation-stack.go +++ b/resources/cloudformation-stack.go @@ -21,7 +21,7 @@ import ( "github.com/ekristen/libnuke/pkg/settings" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CloudformationMaxDeleteAttempt = 3 diff --git a/resources/cloudformation-stack_test.go b/resources/cloudformation-stack_test.go index e0800729..9b7bc82a 100644 --- a/resources/cloudformation-stack_test.go +++ b/resources/cloudformation-stack_test.go @@ -14,7 +14,7 @@ import ( libsettings "github.com/ekristen/libnuke/pkg/settings" - "github.com/ekristen/aws-nuke/mocks/mock_cloudformationiface" + "github.com/ekristen/aws-nuke/v3/mocks/mock_cloudformationiface" ) func TestCloudformationStack_Remove_StackAlreadyDeleted(t *testing.T) { diff --git a/resources/cloudformation-stackset.go b/resources/cloudformation-stackset.go index 5ceb3df7..c38b4193 100644 --- a/resources/cloudformation-stackset.go +++ b/resources/cloudformation-stackset.go @@ -16,7 +16,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CloudFormationStackSetResource = "CloudFormationStackSet" diff --git a/resources/cloudformation-stackset_test.go b/resources/cloudformation-stackset_test.go index 554eb76b..53165b77 100644 --- a/resources/cloudformation-stackset_test.go +++ b/resources/cloudformation-stackset_test.go @@ -10,7 +10,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/cloudformation" - "github.com/ekristen/aws-nuke/mocks/mock_cloudformationiface" + "github.com/ekristen/aws-nuke/v3/mocks/mock_cloudformationiface" ) func TestCloudformationStackSet_Remove(t *testing.T) { diff --git a/resources/cloudformation-type.go b/resources/cloudformation-type.go index 9e6136b4..9ad78867 100644 --- a/resources/cloudformation-type.go +++ b/resources/cloudformation-type.go @@ -14,7 +14,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CloudFormationTypeResource = "CloudFormationType" diff --git a/resources/cloudformation-type_test.go b/resources/cloudformation-type_test.go index 67b6ded0..3c4d6099 100644 --- a/resources/cloudformation-type_test.go +++ b/resources/cloudformation-type_test.go @@ -9,7 +9,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/cloudformation" - "github.com/ekristen/aws-nuke/mocks/mock_cloudformationiface" + "github.com/ekristen/aws-nuke/v3/mocks/mock_cloudformationiface" ) func TestCloudformationType_Remove(t *testing.T) { diff --git a/resources/cloudfront-cache-policy.go b/resources/cloudfront-cache-policy.go index fcb70121..c819e178 100644 --- a/resources/cloudfront-cache-policy.go +++ b/resources/cloudfront-cache-policy.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type CloudFrontCachePolicy struct { diff --git a/resources/cloudfront-distribution-deployments.go b/resources/cloudfront-distribution-deployments.go index f77a7219..820bb2ae 100644 --- a/resources/cloudfront-distribution-deployments.go +++ b/resources/cloudfront-distribution-deployments.go @@ -9,7 +9,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/cloudfront" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" ) diff --git a/resources/cloudfront-distributions.go b/resources/cloudfront-distributions.go index 1bc3ff93..8c0e000c 100644 --- a/resources/cloudfront-distributions.go +++ b/resources/cloudfront-distributions.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CloudFrontDistributionResource = "CloudFrontDistribution" diff --git a/resources/cloudfront-function.go b/resources/cloudfront-function.go index 5682a36d..cf6b56a8 100644 --- a/resources/cloudfront-function.go +++ b/resources/cloudfront-function.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CloudFrontFunctionResource = "CloudFrontFunction" diff --git a/resources/cloudfront-key-groups.go b/resources/cloudfront-key-groups.go index f7cd402d..d28c3bf8 100644 --- a/resources/cloudfront-key-groups.go +++ b/resources/cloudfront-key-groups.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type CloudFrontKeyGroup struct { diff --git a/resources/cloudfront-origin-access-control.go b/resources/cloudfront-origin-access-control.go index 3f8567fc..cf63303f 100644 --- a/resources/cloudfront-origin-access-control.go +++ b/resources/cloudfront-origin-access-control.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CloudFrontOriginAccessControlResource = "CloudFrontOriginAccessControl" diff --git a/resources/cloudfront-origin-access-identities.go b/resources/cloudfront-origin-access-identities.go index 396213e8..e4fceb2b 100644 --- a/resources/cloudfront-origin-access-identities.go +++ b/resources/cloudfront-origin-access-identities.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CloudFrontOriginAccessIdentityResource = "CloudFrontOriginAccessIdentity" diff --git a/resources/cloudfront-origin-request-policy.go b/resources/cloudfront-origin-request-policy.go index 591ff7f5..39f54942 100644 --- a/resources/cloudfront-origin-request-policy.go +++ b/resources/cloudfront-origin-request-policy.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type CloudFrontOriginRequestPolicy struct { diff --git a/resources/cloudfront-public-keys.go b/resources/cloudfront-public-keys.go index 19ea3ff7..66255cb9 100644 --- a/resources/cloudfront-public-keys.go +++ b/resources/cloudfront-public-keys.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type CloudFrontPublicKey struct { diff --git a/resources/cloudfront-response-headers-policies.go b/resources/cloudfront-response-headers-policies.go index c7d178f4..7cb02ea1 100644 --- a/resources/cloudfront-response-headers-policies.go +++ b/resources/cloudfront-response-headers-policies.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CloudFrontResponseHeadersPolicyResource = "CloudFrontResponseHeadersPolicy" diff --git a/resources/cloudhsmv2-cluster.go b/resources/cloudhsmv2-cluster.go index 6d8a5c41..a1f1449c 100644 --- a/resources/cloudhsmv2-cluster.go +++ b/resources/cloudhsmv2-cluster.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CloudHSMV2ClusterResource = "CloudHSMV2Cluster" diff --git a/resources/cloudhsmv2-clusterhsms.go b/resources/cloudhsmv2-clusterhsms.go index 4ee6ecf8..34a3b647 100644 --- a/resources/cloudhsmv2-clusterhsms.go +++ b/resources/cloudhsmv2-clusterhsms.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CloudHSMV2ClusterHSMResource = "CloudHSMV2ClusterHSM" diff --git a/resources/cloudsearch-domains.go b/resources/cloudsearch-domains.go index 9d38781e..5b1170b9 100644 --- a/resources/cloudsearch-domains.go +++ b/resources/cloudsearch-domains.go @@ -8,7 +8,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CloudSearchDomainResource = "CloudSearchDomain" diff --git a/resources/cloudtrail-trails.go b/resources/cloudtrail-trails.go index ebd68dfc..8dd452e1 100644 --- a/resources/cloudtrail-trails.go +++ b/resources/cloudtrail-trails.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CloudTrailTrailResource = "CloudTrailTrail" diff --git a/resources/cloudwatch-alarms.go b/resources/cloudwatch-alarms.go index cb39a41f..0b38de43 100644 --- a/resources/cloudwatch-alarms.go +++ b/resources/cloudwatch-alarms.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CloudWatchAlarmResource = "CloudWatchAlarm" diff --git a/resources/cloudwatch-dashboards.go b/resources/cloudwatch-dashboards.go index 7fd731a6..63a3fc25 100644 --- a/resources/cloudwatch-dashboards.go +++ b/resources/cloudwatch-dashboards.go @@ -8,7 +8,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CloudWatchDashboardResource = "CloudWatchDashboard" diff --git a/resources/cloudwatch-rum.go b/resources/cloudwatch-rum.go index 80c4b8d9..6765286c 100644 --- a/resources/cloudwatch-rum.go +++ b/resources/cloudwatch-rum.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CloudWatchRUMAppResource = "CloudWatchRUMApp" diff --git a/resources/cloudwatchevents-buses.go b/resources/cloudwatchevents-buses.go index b9ef9e28..1d446ce9 100644 --- a/resources/cloudwatchevents-buses.go +++ b/resources/cloudwatchevents-buses.go @@ -10,8 +10,8 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/awsutil" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/awsutil" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CloudWatchEventsBusesResource = "CloudWatchEventsBuses" diff --git a/resources/cloudwatchevents-rules.go b/resources/cloudwatchevents-rules.go index 97980715..6813acf5 100644 --- a/resources/cloudwatchevents-rules.go +++ b/resources/cloudwatchevents-rules.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CloudWatchEventsRuleResource = "CloudWatchEventsRule" diff --git a/resources/cloudwatchevents-targets.go b/resources/cloudwatchevents-targets.go index dc8f2dae..09367767 100644 --- a/resources/cloudwatchevents-targets.go +++ b/resources/cloudwatchevents-targets.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CloudWatchEventsTargetResource = "CloudWatchEventsTarget" diff --git a/resources/cloudwatchlogs-destinations.go b/resources/cloudwatchlogs-destinations.go index e9383bc4..3a6be473 100644 --- a/resources/cloudwatchlogs-destinations.go +++ b/resources/cloudwatchlogs-destinations.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CloudWatchLogsDestinationResource = "CloudWatchLogsDestination" diff --git a/resources/cloudwatchlogs-loggroups.go b/resources/cloudwatchlogs-loggroups.go index 3840218d..143f79c7 100644 --- a/resources/cloudwatchlogs-loggroups.go +++ b/resources/cloudwatchlogs-loggroups.go @@ -13,7 +13,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CloudWatchLogsLogGroupResource = "CloudWatchLogsLogGroup" diff --git a/resources/cloudwatchlogs-resourcepolicy.go b/resources/cloudwatchlogs-resourcepolicy.go index 5547ccb1..1914d9f0 100644 --- a/resources/cloudwatchlogs-resourcepolicy.go +++ b/resources/cloudwatchlogs-resourcepolicy.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CloudWatchLogsResourcePolicyResource = "CloudWatchLogsResourcePolicy" diff --git a/resources/codeartifact-domains.go b/resources/codeartifact-domains.go index 96643a2f..687ba3f2 100644 --- a/resources/codeartifact-domains.go +++ b/resources/codeartifact-domains.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CodeArtifactDomainResource = "CodeArtifactDomain" diff --git a/resources/codeartifact-repositories.go b/resources/codeartifact-repositories.go index 3ceb9e1c..b0db8a4e 100644 --- a/resources/codeartifact-repositories.go +++ b/resources/codeartifact-repositories.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CodeArtifactRepositoryResource = "CodeArtifactRepository" diff --git a/resources/codebuild-projects.go b/resources/codebuild-projects.go index 2cbb235a..68c0624d 100644 --- a/resources/codebuild-projects.go +++ b/resources/codebuild-projects.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CodeBuildProjectResource = "CodeBuildProject" diff --git a/resources/codebuild-report.go b/resources/codebuild-report.go index 950eb435..98cb18a5 100644 --- a/resources/codebuild-report.go +++ b/resources/codebuild-report.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CodeBuildReportResource = "CodeBuildReport" diff --git a/resources/codebuild-reportgroup.go b/resources/codebuild-reportgroup.go index 6bd8834a..921cfd56 100644 --- a/resources/codebuild-reportgroup.go +++ b/resources/codebuild-reportgroup.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CodeBuildReportGroupResource = "CodeBuildReportGroup" diff --git a/resources/codecommit-repositories.go b/resources/codecommit-repositories.go index bfdcc617..01ddf186 100644 --- a/resources/codecommit-repositories.go +++ b/resources/codecommit-repositories.go @@ -8,7 +8,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CodeCommitRepositoryResource = "CodeCommitRepository" diff --git a/resources/codedeploy-applications.go b/resources/codedeploy-applications.go index 461789d7..528099d0 100644 --- a/resources/codedeploy-applications.go +++ b/resources/codedeploy-applications.go @@ -8,7 +8,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CodeDeployApplicationResource = "CodeDeployApplication" diff --git a/resources/codepipeline-pipelines.go b/resources/codepipeline-pipelines.go index 3b7f44ed..8370814a 100644 --- a/resources/codepipeline-pipelines.go +++ b/resources/codepipeline-pipelines.go @@ -8,7 +8,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CodePipelinePipelineResource = "CodePipelinePipeline" diff --git a/resources/codestar-connections.go b/resources/codestar-connections.go index 5a063354..f94d551a 100644 --- a/resources/codestar-connections.go +++ b/resources/codestar-connections.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CodeStarConnectionResource = "CodeStarConnection" diff --git a/resources/codestar-notifications.go b/resources/codestar-notifications.go index 254354d3..827f51c6 100644 --- a/resources/codestar-notifications.go +++ b/resources/codestar-notifications.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CodeStarNotificationRuleResource = "CodeStarNotificationRule" diff --git a/resources/codestar-projects.go b/resources/codestar-projects.go index 03765948..618496d5 100644 --- a/resources/codestar-projects.go +++ b/resources/codestar-projects.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CodeStarProjectResource = "CodeStarProject" diff --git a/resources/cognito-identity-pools.go b/resources/cognito-identity-pools.go index 6772d5a5..7161c95d 100644 --- a/resources/cognito-identity-pools.go +++ b/resources/cognito-identity-pools.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type CognitoIdentityPool struct { diff --git a/resources/cognito-identity-providers.go b/resources/cognito-identity-providers.go index b0aeed0b..01ea2bc4 100644 --- a/resources/cognito-identity-providers.go +++ b/resources/cognito-identity-providers.go @@ -15,7 +15,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CognitoIdentityProviderResource = "CognitoIdentityProvider" diff --git a/resources/cognito-userpool-clients.go b/resources/cognito-userpool-clients.go index 84978918..2a25a694 100644 --- a/resources/cognito-userpool-clients.go +++ b/resources/cognito-userpool-clients.go @@ -13,7 +13,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CognitoUserPoolClientResource = "CognitoUserPoolClient" diff --git a/resources/cognito-userpool-domains.go b/resources/cognito-userpool-domains.go index fc6263ce..ae071fea 100644 --- a/resources/cognito-userpool-domains.go +++ b/resources/cognito-userpool-domains.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CognitoUserPoolDomainResource = "CognitoUserPoolDomain" diff --git a/resources/cognito-userpools.go b/resources/cognito-userpools.go index 0c1ebb2e..5b728f84 100644 --- a/resources/cognito-userpools.go +++ b/resources/cognito-userpools.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const CognitoUserPoolResource = "CognitoUserPool" diff --git a/resources/comprehend-document-classifier.go b/resources/comprehend-document-classifier.go index a11be980..81f528bb 100644 --- a/resources/comprehend-document-classifier.go +++ b/resources/comprehend-document-classifier.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ComprehendDocumentClassifierResource = "ComprehendDocumentClassifier" diff --git a/resources/comprehend-dominant-language-detection-job.go b/resources/comprehend-dominant-language-detection-job.go index 6a5f1d82..785a4472 100644 --- a/resources/comprehend-dominant-language-detection-job.go +++ b/resources/comprehend-dominant-language-detection-job.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ComprehendDominantLanguageDetectionJobResource = "ComprehendDominantLanguageDetectionJob" diff --git a/resources/comprehend-endpoint.go b/resources/comprehend-endpoint.go index 24e858ff..65594b4e 100644 --- a/resources/comprehend-endpoint.go +++ b/resources/comprehend-endpoint.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ComprehendEndpointResource = "ComprehendEndpoint" diff --git a/resources/comprehend-entities-detection-job.go b/resources/comprehend-entities-detection-job.go index 4609ca94..e534cd58 100644 --- a/resources/comprehend-entities-detection-job.go +++ b/resources/comprehend-entities-detection-job.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ComprehendEntitiesDetectionJobResource = "ComprehendEntitiesDetectionJob" diff --git a/resources/comprehend-entity-recognizer.go b/resources/comprehend-entity-recognizer.go index b6bb0cbd..f3375b5b 100644 --- a/resources/comprehend-entity-recognizer.go +++ b/resources/comprehend-entity-recognizer.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ComprehendEntityRecognizerResource = "ComprehendEntityRecognizer" diff --git a/resources/comprehend-events-detection-job.go b/resources/comprehend-events-detection-job.go index c48716be..dab999e7 100644 --- a/resources/comprehend-events-detection-job.go +++ b/resources/comprehend-events-detection-job.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ComprehendEventsDetectionJobResource = "ComprehendEventsDetectionJob" diff --git a/resources/comprehend-key-phrases-detection-job.go b/resources/comprehend-key-phrases-detection-job.go index 3cdac038..0d452392 100644 --- a/resources/comprehend-key-phrases-detection-job.go +++ b/resources/comprehend-key-phrases-detection-job.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ComprehendKeyPhrasesDetectionJobResource = "ComprehendKeyPhrasesDetectionJob" diff --git a/resources/comprehend-pii-entities-detection-job.go b/resources/comprehend-pii-entities-detection-job.go index 7848e374..4e9e0b52 100644 --- a/resources/comprehend-pii-entities-detection-job.go +++ b/resources/comprehend-pii-entities-detection-job.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ComprehendPiiEntitiesDetectionJobResource = "ComprehendPiiEntitiesDetectionJob" diff --git a/resources/comprehend-sentiment-detection-job.go b/resources/comprehend-sentiment-detection-job.go index e4be9d48..0e328ac3 100644 --- a/resources/comprehend-sentiment-detection-job.go +++ b/resources/comprehend-sentiment-detection-job.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ComprehendSentimentDetectionJobResource = "ComprehendSentimentDetectionJob" diff --git a/resources/comprehend-targeted-sentiment-detection-job.go b/resources/comprehend-targeted-sentiment-detection-job.go index c760e1ff..1a1f9301 100644 --- a/resources/comprehend-targeted-sentiment-detection-job.go +++ b/resources/comprehend-targeted-sentiment-detection-job.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ComprehendTargetedSentimentDetectionJobResource = "ComprehendTargetedSentimentDetectionJob" diff --git a/resources/configservice-configrules.go b/resources/configservice-configrules.go index 88164a76..965c2c02 100644 --- a/resources/configservice-configrules.go +++ b/resources/configservice-configrules.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ConfigServiceConfigRuleResource = "ConfigServiceConfigRule" diff --git a/resources/configservice-configurationrecorders.go b/resources/configservice-configurationrecorders.go index 80ce5cec..4739795f 100644 --- a/resources/configservice-configurationrecorders.go +++ b/resources/configservice-configurationrecorders.go @@ -8,7 +8,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ConfigServiceConfigurationRecorderResource = "ConfigServiceConfigurationRecorder" diff --git a/resources/configservice-conformance-pack.go b/resources/configservice-conformance-pack.go index 74a9bf52..11a6d5f4 100644 --- a/resources/configservice-conformance-pack.go +++ b/resources/configservice-conformance-pack.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ConfigServiceConformancePackResource = "ConfigServiceConformancePack" diff --git a/resources/configservice-deliverychannels.go b/resources/configservice-deliverychannels.go index db4663a3..8f12ad0d 100644 --- a/resources/configservice-deliverychannels.go +++ b/resources/configservice-deliverychannels.go @@ -8,7 +8,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ConfigServiceDeliveryChannelResource = "ConfigServiceDeliveryChannel" diff --git a/resources/databasemigrationservice-certificates.go b/resources/databasemigrationservice-certificates.go index 5acc7b3e..4e6d5995 100644 --- a/resources/databasemigrationservice-certificates.go +++ b/resources/databasemigrationservice-certificates.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const DatabaseMigrationServiceCertificateResource = "DatabaseMigrationServiceCertificate" diff --git a/resources/databasemigrationservice-endpoints.go b/resources/databasemigrationservice-endpoints.go index d0c2813e..ef649b7c 100644 --- a/resources/databasemigrationservice-endpoints.go +++ b/resources/databasemigrationservice-endpoints.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const DatabaseMigrationServiceEndpointResource = "DatabaseMigrationServiceEndpoint" diff --git a/resources/databasemigrationservice-eventsubscriptions.go b/resources/databasemigrationservice-eventsubscriptions.go index 576c4ef8..0eb10d5d 100644 --- a/resources/databasemigrationservice-eventsubscriptions.go +++ b/resources/databasemigrationservice-eventsubscriptions.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const DatabaseMigrationServiceEventSubscriptionResource = "DatabaseMigrationServiceEventSubscription" diff --git a/resources/databasemigrationservice-replicationinstances.go b/resources/databasemigrationservice-replicationinstances.go index 60dcfe75..5746ec04 100644 --- a/resources/databasemigrationservice-replicationinstances.go +++ b/resources/databasemigrationservice-replicationinstances.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const DatabaseMigrationServiceReplicationInstanceResource = "DatabaseMigrationServiceReplicationInstance" diff --git a/resources/databasemigrationservice-replicationtasks.go b/resources/databasemigrationservice-replicationtasks.go index 5cdebe5a..5021048c 100644 --- a/resources/databasemigrationservice-replicationtasks.go +++ b/resources/databasemigrationservice-replicationtasks.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const DatabaseMigrationServiceReplicationTaskResource = "DatabaseMigrationServiceReplicationTask" diff --git a/resources/databasemigrationservice-subnetgroups.go b/resources/databasemigrationservice-subnetgroups.go index 326f4659..90315495 100644 --- a/resources/databasemigrationservice-subnetgroups.go +++ b/resources/databasemigrationservice-subnetgroups.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const DatabaseMigrationServiceSubnetGroupResource = "DatabaseMigrationServiceSubnetGroup" diff --git a/resources/datapipeline-pipelines.go b/resources/datapipeline-pipelines.go index 06b2fcc2..b730d956 100644 --- a/resources/datapipeline-pipelines.go +++ b/resources/datapipeline-pipelines.go @@ -8,7 +8,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const DataPipelinePipelineResource = "DataPipelinePipeline" diff --git a/resources/dax-clusters.go b/resources/dax-clusters.go index ed616a66..1a8c6dc3 100644 --- a/resources/dax-clusters.go +++ b/resources/dax-clusters.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const DAXClusterResource = "DAXCluster" diff --git a/resources/dax-parametergroups.go b/resources/dax-parametergroups.go index 5448f70b..89fb3fed 100644 --- a/resources/dax-parametergroups.go +++ b/resources/dax-parametergroups.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type DAXParameterGroup struct { diff --git a/resources/dax-subnetgroups.go b/resources/dax-subnetgroups.go index 7dc1a2c7..c4021359 100644 --- a/resources/dax-subnetgroups.go +++ b/resources/dax-subnetgroups.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const DAXSubnetGroupResource = "DAXSubnetGroup" diff --git a/resources/devicefarm-projects.go b/resources/devicefarm-projects.go index 6de198d5..79293b9c 100644 --- a/resources/devicefarm-projects.go +++ b/resources/devicefarm-projects.go @@ -8,7 +8,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const DeviceFarmProjectResource = "DeviceFarmProject" diff --git a/resources/directoryservice-directories.go b/resources/directoryservice-directories.go index 935b082e..bcf44d51 100644 --- a/resources/directoryservice-directories.go +++ b/resources/directoryservice-directories.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const DirectoryServiceDirectoryResource = "DirectoryServiceDirectory" diff --git a/resources/dynamodb-items.go b/resources/dynamodb-items.go index 3ff48214..ed58d681 100644 --- a/resources/dynamodb-items.go +++ b/resources/dynamodb-items.go @@ -15,7 +15,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const DynamoDBTableItemResource = "DynamoDBTableItem" diff --git a/resources/dynamodb-tables.go b/resources/dynamodb-tables.go index e89c6fb9..0527d6b5 100644 --- a/resources/dynamodb-tables.go +++ b/resources/dynamodb-tables.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const DynamoDBTableResource = "DynamoDBTable" diff --git a/resources/ec2-client-vpn-endpoint-attachment.go b/resources/ec2-client-vpn-endpoint-attachment.go index f8f50f6c..307583e4 100644 --- a/resources/ec2-client-vpn-endpoint-attachment.go +++ b/resources/ec2-client-vpn-endpoint-attachment.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EC2ClientVpnEndpointAttachmentResource = "EC2ClientVpnEndpointAttachment" diff --git a/resources/ec2-client-vpn-endpoint.go b/resources/ec2-client-vpn-endpoint.go index d0ad5d1a..05bcddcc 100644 --- a/resources/ec2-client-vpn-endpoint.go +++ b/resources/ec2-client-vpn-endpoint.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EC2ClientVpnEndpointResource = "EC2ClientVpnEndpoint" diff --git a/resources/ec2-customer-gateway.go b/resources/ec2-customer-gateway.go index ce7949b6..092d60ba 100644 --- a/resources/ec2-customer-gateway.go +++ b/resources/ec2-customer-gateway.go @@ -9,8 +9,8 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/awsutil" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/awsutil" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EC2CustomerGatewayResource = "EC2CustomerGateway" diff --git a/resources/ec2-default-security-group-rules.go b/resources/ec2-default-security-group-rules.go index cdec1d35..f72d2645 100644 --- a/resources/ec2-default-security-group-rules.go +++ b/resources/ec2-default-security-group-rules.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EC2DefaultSecurityGroupRuleResource = "EC2DefaultSecurityGroupRule" diff --git a/resources/ec2-dhcp-options.go b/resources/ec2-dhcp-options.go index 0541f3b4..19f9a86e 100644 --- a/resources/ec2-dhcp-options.go +++ b/resources/ec2-dhcp-options.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EC2DHCPOptionResource = "EC2DHCPOption" diff --git a/resources/ec2-egress-only-internet-gateways.go b/resources/ec2-egress-only-internet-gateways.go index 98a82570..bb63c97f 100644 --- a/resources/ec2-egress-only-internet-gateways.go +++ b/resources/ec2-egress-only-internet-gateways.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EC2EgressOnlyInternetGatewayResource = "EC2EgressOnlyInternetGateway" diff --git a/resources/ec2-eip.go b/resources/ec2-eip.go index f51af49d..6cf050a3 100644 --- a/resources/ec2-eip.go +++ b/resources/ec2-eip.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EC2AddressResource = "EC2Address" diff --git a/resources/ec2-host.go b/resources/ec2-host.go index 712a1e6b..e99cfb21 100644 --- a/resources/ec2-host.go +++ b/resources/ec2-host.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EC2HostResource = "EC2Host" diff --git a/resources/ec2-image.go b/resources/ec2-image.go index 9e0db2c5..3412ee7c 100644 --- a/resources/ec2-image.go +++ b/resources/ec2-image.go @@ -15,7 +15,7 @@ import ( libsettings "github.com/ekristen/libnuke/pkg/settings" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EC2ImageResource = "EC2Image" diff --git a/resources/ec2-instance-connect-endpoint.go b/resources/ec2-instance-connect-endpoint.go index 5513f824..9c37028d 100644 --- a/resources/ec2-instance-connect-endpoint.go +++ b/resources/ec2-instance-connect-endpoint.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EC2InstanceConnectEndpointResource = "EC2InstanceConnectEndpoint" diff --git a/resources/ec2-instance.go b/resources/ec2-instance.go index 8ed4774b..6f48e6ac 100644 --- a/resources/ec2-instance.go +++ b/resources/ec2-instance.go @@ -15,8 +15,8 @@ import ( libsettings "github.com/ekristen/libnuke/pkg/settings" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/awsutil" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/awsutil" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EC2InstanceResource = "EC2Instance" diff --git a/resources/ec2-internet-gateway-attachments.go b/resources/ec2-internet-gateway-attachments.go index 38e62e45..f8bfc719 100644 --- a/resources/ec2-internet-gateway-attachments.go +++ b/resources/ec2-internet-gateway-attachments.go @@ -13,7 +13,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EC2InternetGatewayAttachmentResource = "EC2InternetGatewayAttachment" diff --git a/resources/ec2-internet-gateways.go b/resources/ec2-internet-gateways.go index ba92ad9f..1d58789f 100644 --- a/resources/ec2-internet-gateways.go +++ b/resources/ec2-internet-gateways.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EC2InternetGatewayResource = "EC2InternetGateway" diff --git a/resources/ec2-key-pairs.go b/resources/ec2-key-pairs.go index 88a19c00..cdf71565 100644 --- a/resources/ec2-key-pairs.go +++ b/resources/ec2-key-pairs.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EC2KeyPairResource = "EC2KeyPair" diff --git a/resources/ec2-launch-templates.go b/resources/ec2-launch-templates.go index 4c732f25..f97bc44e 100644 --- a/resources/ec2-launch-templates.go +++ b/resources/ec2-launch-templates.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EC2LaunchTemplateResource = "EC2LaunchTemplate" diff --git a/resources/ec2-nat-gateways.go b/resources/ec2-nat-gateways.go index 5d259cf1..a82bab1d 100644 --- a/resources/ec2-nat-gateways.go +++ b/resources/ec2-nat-gateways.go @@ -13,8 +13,8 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/awsutil" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/awsutil" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EC2NATGatewayResource = "EC2NATGateway" diff --git a/resources/ec2-network-acls.go b/resources/ec2-network-acls.go index 627c3007..89616a2f 100644 --- a/resources/ec2-network-acls.go +++ b/resources/ec2-network-acls.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EC2NetworkACLResource = "EC2NetworkACL" diff --git a/resources/ec2-network-interfaces.go b/resources/ec2-network-interfaces.go index e4025003..def2bd84 100644 --- a/resources/ec2-network-interfaces.go +++ b/resources/ec2-network-interfaces.go @@ -13,7 +13,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EC2NetworkInterfaceResource = "EC2NetworkInterface" diff --git a/resources/ec2-placement-groups.go b/resources/ec2-placement-groups.go index 19e24c81..0f3dfb11 100644 --- a/resources/ec2-placement-groups.go +++ b/resources/ec2-placement-groups.go @@ -9,8 +9,8 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/awsutil" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/awsutil" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EC2PlacementGroupResource = "EC2PlacementGroup" diff --git a/resources/ec2-route-tables.go b/resources/ec2-route-tables.go index 39b2850c..36673a7a 100644 --- a/resources/ec2-route-tables.go +++ b/resources/ec2-route-tables.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EC2RouteTableResource = "EC2RouteTable" diff --git a/resources/ec2-security-groups.go b/resources/ec2-security-groups.go index 727886e8..fedfe23b 100644 --- a/resources/ec2-security-groups.go +++ b/resources/ec2-security-groups.go @@ -9,7 +9,7 @@ import ( "github.com/aws/aws-sdk-go/service/ec2" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" diff --git a/resources/ec2-snapshots.go b/resources/ec2-snapshots.go index b1f5f10c..5c726db2 100644 --- a/resources/ec2-snapshots.go +++ b/resources/ec2-snapshots.go @@ -13,7 +13,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EC2SnapshotResource = "EC2Snapshot" diff --git a/resources/ec2-spot-fleet-requests.go b/resources/ec2-spot-fleet-requests.go index e68f6f74..5479f57d 100644 --- a/resources/ec2-spot-fleet-requests.go +++ b/resources/ec2-spot-fleet-requests.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EC2SpotFleetRequestResource = "EC2SpotFleetRequest" diff --git a/resources/ec2-subnets.go b/resources/ec2-subnets.go index 0794f4fe..03060f25 100644 --- a/resources/ec2-subnets.go +++ b/resources/ec2-subnets.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EC2SubnetResource = "EC2Subnet" diff --git a/resources/ec2-tgw-attachments.go b/resources/ec2-tgw-attachments.go index e47abf60..4a3d4796 100644 --- a/resources/ec2-tgw-attachments.go +++ b/resources/ec2-tgw-attachments.go @@ -10,8 +10,8 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/awsutil" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/awsutil" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EC2TGWAttachmentResource = "EC2TGWAttachment" diff --git a/resources/ec2-tgw.go b/resources/ec2-tgw.go index 53183c12..11f603ef 100644 --- a/resources/ec2-tgw.go +++ b/resources/ec2-tgw.go @@ -10,8 +10,8 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/awsutil" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/awsutil" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EC2TGWResource = "EC2TGW" diff --git a/resources/ec2-volume.go b/resources/ec2-volume.go index c4e71285..2dcdd194 100644 --- a/resources/ec2-volume.go +++ b/resources/ec2-volume.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EC2VolumeResource = "EC2Volume" diff --git a/resources/ec2-vpc-endpoint-connections.go b/resources/ec2-vpc-endpoint-connections.go index 436775c1..9942588a 100644 --- a/resources/ec2-vpc-endpoint-connections.go +++ b/resources/ec2-vpc-endpoint-connections.go @@ -11,8 +11,8 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/awsutil" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/awsutil" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EC2VPCEndpointConnectionResource = "EC2VPCEndpointConnection" //nolint:gosec,nolintlint diff --git a/resources/ec2-vpc-endpoint-service-configurations.go b/resources/ec2-vpc-endpoint-service-configurations.go index 8767791a..b90301f9 100644 --- a/resources/ec2-vpc-endpoint-service-configurations.go +++ b/resources/ec2-vpc-endpoint-service-configurations.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EC2VPCEndpointServiceConfigurationResource = "EC2VPCEndpointServiceConfiguration" diff --git a/resources/ec2-vpc-endpoint.go b/resources/ec2-vpc-endpoint.go index b8c6bbdb..e5f083ec 100644 --- a/resources/ec2-vpc-endpoint.go +++ b/resources/ec2-vpc-endpoint.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EC2VPCEndpointResource = "EC2VPCEndpoint" diff --git a/resources/ec2-vpc-peering-connections.go b/resources/ec2-vpc-peering-connections.go index 33b70958..eb4fe52b 100644 --- a/resources/ec2-vpc-peering-connections.go +++ b/resources/ec2-vpc-peering-connections.go @@ -9,8 +9,8 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/awsutil" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/awsutil" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EC2VPCPeeringConnectionResource = "EC2VPCPeeringConnection" diff --git a/resources/ec2-vpc.go b/resources/ec2-vpc.go index ecaf3857..79abd4bf 100644 --- a/resources/ec2-vpc.go +++ b/resources/ec2-vpc.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EC2VPCResource = "EC2VPC" diff --git a/resources/ec2-vpn-connections.go b/resources/ec2-vpn-connections.go index f0fca44d..35b7364c 100644 --- a/resources/ec2-vpn-connections.go +++ b/resources/ec2-vpn-connections.go @@ -12,8 +12,8 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/awsutil" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/awsutil" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EC2VPNConnectionResource = "EC2VPNConnection" diff --git a/resources/ec2-vpn-gateway-attachments.go b/resources/ec2-vpn-gateway-attachments.go index c99f6b5f..e67de385 100644 --- a/resources/ec2-vpn-gateway-attachments.go +++ b/resources/ec2-vpn-gateway-attachments.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EC2VPNGatewayAttachmentResource = "EC2VPNGatewayAttachment" diff --git a/resources/ec2-vpn-gateways.go b/resources/ec2-vpn-gateways.go index 0c040c4c..0470679a 100644 --- a/resources/ec2-vpn-gateways.go +++ b/resources/ec2-vpn-gateways.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EC2VPNGatewayResource = "EC2VPNGateway" diff --git a/resources/ecr-public-repository.go b/resources/ecr-public-repository.go index 100ff2db..7c47a464 100644 --- a/resources/ecr-public-repository.go +++ b/resources/ecr-public-repository.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ECRPublicRepositoryResource = "ECRPublicRepository" diff --git a/resources/ecr-repository.go b/resources/ecr-repository.go index 042c4c66..21a509a5 100644 --- a/resources/ecr-repository.go +++ b/resources/ecr-repository.go @@ -13,7 +13,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ECRRepositoryResource = "ECRRepository" diff --git a/resources/ecs-clusterinstances.go b/resources/ecs-clusterinstances.go index 2b47cd03..038a5fa0 100644 --- a/resources/ecs-clusterinstances.go +++ b/resources/ecs-clusterinstances.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ECSClusterInstanceResource = "ECSClusterInstance" diff --git a/resources/ecs-clusters.go b/resources/ecs-clusters.go index 417db445..a3a1b1b8 100644 --- a/resources/ecs-clusters.go +++ b/resources/ecs-clusters.go @@ -14,7 +14,7 @@ import ( "github.com/ekristen/libnuke/pkg/slices" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ECSClusterResource = "ECSCluster" diff --git a/resources/ecs-clusters_mock_test.go b/resources/ecs-clusters_mock_test.go index 65b1d5eb..eb38dd81 100644 --- a/resources/ecs-clusters_mock_test.go +++ b/resources/ecs-clusters_mock_test.go @@ -11,9 +11,9 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ecs" - "github.com/ekristen/aws-nuke/mocks/mock_ecsiface" + "github.com/ekristen/aws-nuke/v3/mocks/mock_ecsiface" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) func Test_Mock_ECSCluster_List(t *testing.T) { diff --git a/resources/ecs-services.go b/resources/ecs-services.go index c1dc3ad8..d15ab5db 100644 --- a/resources/ecs-services.go +++ b/resources/ecs-services.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ECSServiceResource = "ECSService" diff --git a/resources/ecs-taskdefinitions.go b/resources/ecs-taskdefinitions.go index 305d03da..a0d29088 100644 --- a/resources/ecs-taskdefinitions.go +++ b/resources/ecs-taskdefinitions.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ECSTaskDefinitionResource = "ECSTaskDefinition" diff --git a/resources/ecs-tasks.go b/resources/ecs-tasks.go index da2e0d62..0bd31ae8 100644 --- a/resources/ecs-tasks.go +++ b/resources/ecs-tasks.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ECSTaskResource = "ECSTask" diff --git a/resources/efs-filesystem.go b/resources/efs-filesystem.go index 1fe906f5..669e84b1 100644 --- a/resources/efs-filesystem.go +++ b/resources/efs-filesystem.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EFSFileSystemResource = "EFSFileSystem" diff --git a/resources/efs-mount-targets.go b/resources/efs-mount-targets.go index e8fdee36..11b39de6 100644 --- a/resources/efs-mount-targets.go +++ b/resources/efs-mount-targets.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EFSMountTargetResource = "EFSMountTarget" diff --git a/resources/eks-clusters.go b/resources/eks-clusters.go index c2cabdb0..d191aa14 100644 --- a/resources/eks-clusters.go +++ b/resources/eks-clusters.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EKSClusterResource = "EKSCluster" diff --git a/resources/eks-fargate.go b/resources/eks-fargate.go index 3f899c71..489397a4 100644 --- a/resources/eks-fargate.go +++ b/resources/eks-fargate.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EKSFargateProfileResource = "EKSFargateProfile" diff --git a/resources/eks-nodegroups.go b/resources/eks-nodegroups.go index c8f89c4c..03297ce8 100644 --- a/resources/eks-nodegroups.go +++ b/resources/eks-nodegroups.go @@ -13,7 +13,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EKSNodegroupResource = "EKSNodegroup" diff --git a/resources/elasticache-cacheparametergroups.go b/resources/elasticache-cacheparametergroups.go index 4330f8e4..8ada942a 100644 --- a/resources/elasticache-cacheparametergroups.go +++ b/resources/elasticache-cacheparametergroups.go @@ -13,7 +13,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ElasticacheCacheParameterGroupResource = "ElasticacheCacheParameterGroup" diff --git a/resources/elasticache-memcacheclusters.go b/resources/elasticache-memcacheclusters.go index ee4c56e8..1256a801 100644 --- a/resources/elasticache-memcacheclusters.go +++ b/resources/elasticache-memcacheclusters.go @@ -13,7 +13,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ElasticacheCacheClusterResource = "ElasticacheCacheCluster" diff --git a/resources/elasticache-memcacheclusters_mock_test.go b/resources/elasticache-memcacheclusters_mock_test.go index bb963c19..12c1d765 100644 --- a/resources/elasticache-memcacheclusters_mock_test.go +++ b/resources/elasticache-memcacheclusters_mock_test.go @@ -10,8 +10,8 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/elasticache" - "github.com/ekristen/aws-nuke/mocks/mock_elasticacheiface" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/mocks/mock_elasticacheiface" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) func Test_Mock_ElastiCache_CacheCluster_Remove(t *testing.T) { diff --git a/resources/elasticache-replicationgroups.go b/resources/elasticache-replicationgroups.go index 479a1c34..8be22140 100644 --- a/resources/elasticache-replicationgroups.go +++ b/resources/elasticache-replicationgroups.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ElasticacheReplicationGroupResource = "ElasticacheReplicationGroup" diff --git a/resources/elasticache-subnetgroups.go b/resources/elasticache-subnetgroups.go index f2a92b73..1b2544ce 100644 --- a/resources/elasticache-subnetgroups.go +++ b/resources/elasticache-subnetgroups.go @@ -15,7 +15,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ElasticacheSubnetGroupResource = "ElasticacheSubnetGroup" diff --git a/resources/elasticache-subnetgroups_mock_test.go b/resources/elasticache-subnetgroups_mock_test.go index d02d5dbf..36f61f34 100644 --- a/resources/elasticache-subnetgroups_mock_test.go +++ b/resources/elasticache-subnetgroups_mock_test.go @@ -10,8 +10,8 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/elasticache" - "github.com/ekristen/aws-nuke/mocks/mock_elasticacheiface" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/mocks/mock_elasticacheiface" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) func Test_Mock_ElastiCache_SubnetGroup_Remove(t *testing.T) { diff --git a/resources/elasticache-usergroups.go b/resources/elasticache-usergroups.go index a15bff5d..5c7fb3b0 100644 --- a/resources/elasticache-usergroups.go +++ b/resources/elasticache-usergroups.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type ElasticacheUserGroup struct { diff --git a/resources/elasticache-users.go b/resources/elasticache-users.go index 883f3c85..1e432b5d 100644 --- a/resources/elasticache-users.go +++ b/resources/elasticache-users.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type ElasticacheUser struct { diff --git a/resources/elasticbeanstalk-applications.go b/resources/elasticbeanstalk-applications.go index af927213..27d0b580 100644 --- a/resources/elasticbeanstalk-applications.go +++ b/resources/elasticbeanstalk-applications.go @@ -8,7 +8,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ElasticBeanstalkApplicationResource = "ElasticBeanstalkApplication" diff --git a/resources/elasticbeanstalk-environments.go b/resources/elasticbeanstalk-environments.go index e92dd941..38532aee 100644 --- a/resources/elasticbeanstalk-environments.go +++ b/resources/elasticbeanstalk-environments.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ElasticBeanstalkEnvironmentResource = "ElasticBeanstalkEnvironment" diff --git a/resources/elasticsearchservice-domain.go b/resources/elasticsearchservice-domain.go index 21d4f93d..8a710547 100644 --- a/resources/elasticsearchservice-domain.go +++ b/resources/elasticsearchservice-domain.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ESDomainResource = "ESDomain" diff --git a/resources/elastictranscoder-pipelines.go b/resources/elastictranscoder-pipelines.go index 553b35d7..655756c2 100644 --- a/resources/elastictranscoder-pipelines.go +++ b/resources/elastictranscoder-pipelines.go @@ -8,7 +8,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ElasticTranscoderPipelineResource = "ElasticTranscoderPipeline" diff --git a/resources/elb-elb.go b/resources/elb-elb.go index 15390936..7bc4db38 100644 --- a/resources/elb-elb.go +++ b/resources/elb-elb.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ELBResource = "ELB" diff --git a/resources/elbv2-alb.go b/resources/elbv2-alb.go index c666f138..8e03c579 100644 --- a/resources/elbv2-alb.go +++ b/resources/elbv2-alb.go @@ -14,7 +14,7 @@ import ( libsettings "github.com/ekristen/libnuke/pkg/settings" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type ELBv2LoadBalancer struct { diff --git a/resources/elbv2-listenerrule.go b/resources/elbv2-listenerrule.go index 5f01fd3f..60b3e00e 100644 --- a/resources/elbv2-listenerrule.go +++ b/resources/elbv2-listenerrule.go @@ -13,7 +13,7 @@ import ( "github.com/ekristen/libnuke/pkg/slices" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) var elbv2ListenerRulePageSize int64 = 400 // AWS has a limit of 100 rules per listener diff --git a/resources/elbv2-targetgroup.go b/resources/elbv2-targetgroup.go index 18127b3d..57d168ba 100644 --- a/resources/elbv2-targetgroup.go +++ b/resources/elbv2-targetgroup.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ELBv2TargetGroupResource = "ELBv2TargetGroup" diff --git a/resources/emr-clusters.go b/resources/emr-clusters.go index 04c42870..00c800bc 100644 --- a/resources/emr-clusters.go +++ b/resources/emr-clusters.go @@ -13,7 +13,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EMRClusterResource = "EMRCluster" diff --git a/resources/emr-securityconfigurations.go b/resources/emr-securityconfigurations.go index c344e0fc..b9ccd2fa 100644 --- a/resources/emr-securityconfigurations.go +++ b/resources/emr-securityconfigurations.go @@ -8,7 +8,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const EMRSecurityConfigurationResource = "EMRSecurityConfiguration" diff --git a/resources/firehose-deliverystreams.go b/resources/firehose-deliverystreams.go index e5467388..f3133aaf 100644 --- a/resources/firehose-deliverystreams.go +++ b/resources/firehose-deliverystreams.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const FirehoseDeliveryStreamResource = "FirehoseDeliveryStream" diff --git a/resources/fms-notification-channels.go b/resources/fms-notification-channels.go index c50bea06..2d45cce9 100644 --- a/resources/fms-notification-channels.go +++ b/resources/fms-notification-channels.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const FMSNotificationChannelResource = "FMSNotificationChannel" diff --git a/resources/fms-policies.go b/resources/fms-policies.go index f178b8dd..fdf6802e 100644 --- a/resources/fms-policies.go +++ b/resources/fms-policies.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const FMSPolicyResource = "FMSPolicy" diff --git a/resources/fsx-backups.go b/resources/fsx-backups.go index 87858c50..7503206f 100644 --- a/resources/fsx-backups.go +++ b/resources/fsx-backups.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const FSxBackupResource = "FSxBackup" diff --git a/resources/fsx-filesystems.go b/resources/fsx-filesystems.go index 81ac7a94..5dcb572a 100644 --- a/resources/fsx-filesystems.go +++ b/resources/fsx-filesystems.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const FSxFileSystemResource = "FSxFileSystem" diff --git a/resources/ga-accelerators.go b/resources/ga-accelerators.go index 15dfcc7c..d36581e4 100644 --- a/resources/ga-accelerators.go +++ b/resources/ga-accelerators.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) // GlobalAccelerator model diff --git a/resources/ga-endpoints.go b/resources/ga-endpoints.go index c74dd1c5..a9d44651 100644 --- a/resources/ga-endpoints.go +++ b/resources/ga-endpoints.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const GlobalAcceleratorEndpointGroupResource = "GlobalAcceleratorEndpointGroup" diff --git a/resources/ga-listeners.go b/resources/ga-listeners.go index e3f11d02..beef6e57 100644 --- a/resources/ga-listeners.go +++ b/resources/ga-listeners.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const GlobalAcceleratorListenerResource = "GlobalAcceleratorListener" diff --git a/resources/glue-classifiers.go b/resources/glue-classifiers.go index 26d75c20..b629126c 100644 --- a/resources/glue-classifiers.go +++ b/resources/glue-classifiers.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const GlueClassifierResource = "GlueClassifier" diff --git a/resources/glue-connections.go b/resources/glue-connections.go index af1695f5..992cc3b0 100644 --- a/resources/glue-connections.go +++ b/resources/glue-connections.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const GlueConnectionResource = "GlueConnection" diff --git a/resources/glue-crawlers.go b/resources/glue-crawlers.go index 25337a1a..ace255e9 100644 --- a/resources/glue-crawlers.go +++ b/resources/glue-crawlers.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const GlueCrawlerResource = "GlueCrawler" diff --git a/resources/glue-databases.go b/resources/glue-databases.go index 5e4cb2c7..ef6f558a 100644 --- a/resources/glue-databases.go +++ b/resources/glue-databases.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const GlueDatabaseResource = "GlueDatabase" diff --git a/resources/glue-devendpoints.go b/resources/glue-devendpoints.go index cd2fbfb5..42919c62 100644 --- a/resources/glue-devendpoints.go +++ b/resources/glue-devendpoints.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const GlueDevEndpointResource = "GlueDevEndpoint" diff --git a/resources/glue-jobs.go b/resources/glue-jobs.go index 15e42e2a..87a0c1d1 100644 --- a/resources/glue-jobs.go +++ b/resources/glue-jobs.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const GlueJobResource = "GlueJob" diff --git a/resources/glue-securityconfiguration.go b/resources/glue-securityconfiguration.go index 44821d1f..ca95afb3 100644 --- a/resources/glue-securityconfiguration.go +++ b/resources/glue-securityconfiguration.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const GlueSecurityConfigurationResource = "GlueSecurityConfiguration" diff --git a/resources/glue-securityconfiguration_mock_test.go b/resources/glue-securityconfiguration_mock_test.go index 1c8920a0..d252fdea 100644 --- a/resources/glue-securityconfiguration_mock_test.go +++ b/resources/glue-securityconfiguration_mock_test.go @@ -10,8 +10,8 @@ import ( "github.com/aws/aws-sdk-go/service/glue" - "github.com/ekristen/aws-nuke/mocks/mock_glueiface" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/mocks/mock_glueiface" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) func Test_Mock_GlueSecurityConfiguration_Remove(t *testing.T) { diff --git a/resources/glue-triggers.go b/resources/glue-triggers.go index 72750623..8dc274f9 100644 --- a/resources/glue-triggers.go +++ b/resources/glue-triggers.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const GlueTriggerResource = "GlueTrigger" diff --git a/resources/gluedatabrew-datasets.go b/resources/gluedatabrew-datasets.go index cc9c81e7..c1280d26 100644 --- a/resources/gluedatabrew-datasets.go +++ b/resources/gluedatabrew-datasets.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const GlueDataBrewDatasetsResource = "GlueDataBrewDatasets" diff --git a/resources/gluedatabrew-jobs.go b/resources/gluedatabrew-jobs.go index be956fd3..51959250 100644 --- a/resources/gluedatabrew-jobs.go +++ b/resources/gluedatabrew-jobs.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const GlueDataBrewJobsResource = "GlueDataBrewJobs" diff --git a/resources/gluedatabrew-projects.go b/resources/gluedatabrew-projects.go index f9f915e7..18741b9b 100644 --- a/resources/gluedatabrew-projects.go +++ b/resources/gluedatabrew-projects.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const GlueDataBrewProjectsResource = "GlueDataBrewProjects" diff --git a/resources/gluedatabrew-recipe.go b/resources/gluedatabrew-recipe.go index 0d95a9d3..3bc6b6c4 100644 --- a/resources/gluedatabrew-recipe.go +++ b/resources/gluedatabrew-recipe.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const GlueDataBrewRecipeResource = "GlueDataBrewRecipe" diff --git a/resources/gluedatabrew-rulesets.go b/resources/gluedatabrew-rulesets.go index 88133d84..cf1584d1 100644 --- a/resources/gluedatabrew-rulesets.go +++ b/resources/gluedatabrew-rulesets.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const GlueDataBrewRulesetsResource = "GlueDataBrewRulesets" diff --git a/resources/gluedatabrew-schedules.go b/resources/gluedatabrew-schedules.go index baff0806..2442f32f 100644 --- a/resources/gluedatabrew-schedules.go +++ b/resources/gluedatabrew-schedules.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const GlueDataBrewSchedulesResource = "GlueDataBrewSchedules" diff --git a/resources/guardduty.go b/resources/guardduty.go index 48e99dbe..b76abb23 100644 --- a/resources/guardduty.go +++ b/resources/guardduty.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const GuardDutyDetectorResource = "GuardDutyDetector" diff --git a/resources/iam-account-setting-password-policy.go b/resources/iam-account-setting-password-policy.go index 9866e86c..661bc187 100644 --- a/resources/iam-account-setting-password-policy.go +++ b/resources/iam-account-setting-password-policy.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IAMAccountSettingPasswordPolicyResource = "IAMAccountSettingPasswordPolicy" diff --git a/resources/iam-group-policies.go b/resources/iam-group-policies.go index 1bbc43e1..68cb1c40 100644 --- a/resources/iam-group-policies.go +++ b/resources/iam-group-policies.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IAMGroupPolicyResource = "IAMGroupPolicy" diff --git a/resources/iam-group-policies_mock_test.go b/resources/iam-group-policies_mock_test.go index eee966a7..995dfd74 100644 --- a/resources/iam-group-policies_mock_test.go +++ b/resources/iam-group-policies_mock_test.go @@ -10,7 +10,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iam" - "github.com/ekristen/aws-nuke/mocks/mock_iamiface" + "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" ) func Test_Mock_IAMGroupPolicy_Remove(t *testing.T) { diff --git a/resources/iam-group-policy-attachments.go b/resources/iam-group-policy-attachments.go index c2932d43..e5dbd4b0 100644 --- a/resources/iam-group-policy-attachments.go +++ b/resources/iam-group-policy-attachments.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IAMGroupPolicyAttachmentResource = "IAMGroupPolicyAttachment" diff --git a/resources/iam-group-policy-attachments_mock_test.go b/resources/iam-group-policy-attachments_mock_test.go index 145344a2..e56fede7 100644 --- a/resources/iam-group-policy-attachments_mock_test.go +++ b/resources/iam-group-policy-attachments_mock_test.go @@ -10,7 +10,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iam" - "github.com/ekristen/aws-nuke/mocks/mock_iamiface" + "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" ) func Test_Mock_IAMGroupPolicyAttachment_Remove(t *testing.T) { diff --git a/resources/iam-groups.go b/resources/iam-groups.go index 05e8ec0c..be436fe4 100644 --- a/resources/iam-groups.go +++ b/resources/iam-groups.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IAMGroupResource = "IAMGroup" diff --git a/resources/iam-groups_mock_test.go b/resources/iam-groups_mock_test.go index 83a2b362..09bcc4e2 100644 --- a/resources/iam-groups_mock_test.go +++ b/resources/iam-groups_mock_test.go @@ -10,7 +10,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iam" - "github.com/ekristen/aws-nuke/mocks/mock_iamiface" + "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" ) func Test_Mock_IAMGroup_Remove(t *testing.T) { diff --git a/resources/iam-instance-profile-role_mock_test.go b/resources/iam-instance-profile-role_mock_test.go index 897f993a..53a1a1f5 100644 --- a/resources/iam-instance-profile-role_mock_test.go +++ b/resources/iam-instance-profile-role_mock_test.go @@ -10,7 +10,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iam" - "github.com/ekristen/aws-nuke/mocks/mock_iamiface" + "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" ) func Test_Mock_IAMInstanceProfileRole_Remove(t *testing.T) { diff --git a/resources/iam-instance-profile-roles.go b/resources/iam-instance-profile-roles.go index 1a523b92..18407e13 100644 --- a/resources/iam-instance-profile-roles.go +++ b/resources/iam-instance-profile-roles.go @@ -16,7 +16,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IAMInstanceProfileRoleResource = "IAMInstanceProfileRole" diff --git a/resources/iam-instance-profiles.go b/resources/iam-instance-profiles.go index 223cedc4..33ef7827 100644 --- a/resources/iam-instance-profiles.go +++ b/resources/iam-instance-profiles.go @@ -13,7 +13,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IAMInstanceProfileResource = "IAMInstanceProfile" diff --git a/resources/iam-instance-profiles_mock_test.go b/resources/iam-instance-profiles_mock_test.go index 263f36d1..0ab45bd9 100644 --- a/resources/iam-instance-profiles_mock_test.go +++ b/resources/iam-instance-profiles_mock_test.go @@ -11,7 +11,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iam" - "github.com/ekristen/aws-nuke/mocks/mock_iamiface" + "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" ) func Test_Mock_IAMInstanceProfile_Remove(t *testing.T) { diff --git a/resources/iam-login-profiles.go b/resources/iam-login-profiles.go index 51afa75c..36bfee6c 100644 --- a/resources/iam-login-profiles.go +++ b/resources/iam-login-profiles.go @@ -16,7 +16,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IAMLoginProfileResource = "IAMLoginProfile" diff --git a/resources/iam-login-profiles_mock_test.go b/resources/iam-login-profiles_mock_test.go index db6d0161..27a6feaf 100644 --- a/resources/iam-login-profiles_mock_test.go +++ b/resources/iam-login-profiles_mock_test.go @@ -10,7 +10,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iam" - "github.com/ekristen/aws-nuke/mocks/mock_iamiface" + "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" ) func Test_Mock_IAMLoginProfile_Remove(t *testing.T) { diff --git a/resources/iam-open-id-connect-provider.go b/resources/iam-open-id-connect-provider.go index 264aac20..94ee3872 100644 --- a/resources/iam-open-id-connect-provider.go +++ b/resources/iam-open-id-connect-provider.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IAMOpenIDConnectProviderResource = "IAMOpenIDConnectProvider" diff --git a/resources/iam-open-id-connect-provider_mock_test.go b/resources/iam-open-id-connect-provider_mock_test.go index 5ffff0bb..445e2c2c 100644 --- a/resources/iam-open-id-connect-provider_mock_test.go +++ b/resources/iam-open-id-connect-provider_mock_test.go @@ -10,7 +10,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iam" - "github.com/ekristen/aws-nuke/mocks/mock_iamiface" + "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" ) func Test_Mock_IAMOpenIDConnectProvider_Remove(t *testing.T) { diff --git a/resources/iam-policies.go b/resources/iam-policies.go index 30222a3e..c5e7ea3e 100644 --- a/resources/iam-policies.go +++ b/resources/iam-policies.go @@ -13,7 +13,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IAMPolicyResource = "IAMPolicy" diff --git a/resources/iam-policies_mock_test.go b/resources/iam-policies_mock_test.go index 51a73cfc..095e4075 100644 --- a/resources/iam-policies_mock_test.go +++ b/resources/iam-policies_mock_test.go @@ -10,7 +10,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iam" - "github.com/ekristen/aws-nuke/mocks/mock_iamiface" + "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" ) func Test_Mock_IAMPolicy_Remove(t *testing.T) { diff --git a/resources/iam-role-policy-attachments.go b/resources/iam-role-policy-attachments.go index 937bbf9c..7be09ef5 100644 --- a/resources/iam-role-policy-attachments.go +++ b/resources/iam-role-policy-attachments.go @@ -16,7 +16,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IAMRolePolicyAttachmentResource = "IAMRolePolicyAttachment" diff --git a/resources/iam-role-policy-attachments_mock_test.go b/resources/iam-role-policy-attachments_mock_test.go index ecba6f42..d88f4725 100644 --- a/resources/iam-role-policy-attachments_mock_test.go +++ b/resources/iam-role-policy-attachments_mock_test.go @@ -10,7 +10,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iam" - "github.com/ekristen/aws-nuke/mocks/mock_iamiface" + "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" ) func Test_Mock_IAMRolePolicyAttachment_Remove(t *testing.T) { diff --git a/resources/iam-role-policy.go b/resources/iam-role-policy.go index 505e9145..0d80e7e3 100644 --- a/resources/iam-role-policy.go +++ b/resources/iam-role-policy.go @@ -15,7 +15,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IAMRolePolicyResource = "IAMRolePolicy" diff --git a/resources/iam-role-policy_mock_test.go b/resources/iam-role-policy_mock_test.go index e7657629..0746363a 100644 --- a/resources/iam-role-policy_mock_test.go +++ b/resources/iam-role-policy_mock_test.go @@ -10,7 +10,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iam" - "github.com/ekristen/aws-nuke/mocks/mock_iamiface" + "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" ) func Test_Mock_IAMRolePolicy_Remove(t *testing.T) { diff --git a/resources/iam-roles.go b/resources/iam-roles.go index 618c50b7..dc318a8b 100644 --- a/resources/iam-roles.go +++ b/resources/iam-roles.go @@ -17,7 +17,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IAMRoleResource = "IAMRole" diff --git a/resources/iam-roles_mock_test.go b/resources/iam-roles_mock_test.go index 9a69e647..d54377a6 100644 --- a/resources/iam-roles_mock_test.go +++ b/resources/iam-roles_mock_test.go @@ -10,7 +10,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iam" - "github.com/ekristen/aws-nuke/mocks/mock_iamiface" + "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" ) func Test_Mock_IAMRole_Remove(t *testing.T) { diff --git a/resources/iam-rolesanywhere-crls.go b/resources/iam-rolesanywhere-crls.go index 16ebda3c..d12fa867 100644 --- a/resources/iam-rolesanywhere-crls.go +++ b/resources/iam-rolesanywhere-crls.go @@ -7,7 +7,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" "github.com/aws/aws-sdk-go/service/rolesanywhere" ) diff --git a/resources/iam-rolesanywhere-profiles.go b/resources/iam-rolesanywhere-profiles.go index 042ab7a9..205ba75e 100644 --- a/resources/iam-rolesanywhere-profiles.go +++ b/resources/iam-rolesanywhere-profiles.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type IAMRolesAnywhereProfile struct { diff --git a/resources/iam-rolesanywhere-trust-anchors.go b/resources/iam-rolesanywhere-trust-anchors.go index f31a56b1..56c96df7 100644 --- a/resources/iam-rolesanywhere-trust-anchors.go +++ b/resources/iam-rolesanywhere-trust-anchors.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type IAMRolesAnywhereTrustAnchor struct { diff --git a/resources/iam-saml-provider.go b/resources/iam-saml-provider.go index ba50f9a4..cf1d8efb 100644 --- a/resources/iam-saml-provider.go +++ b/resources/iam-saml-provider.go @@ -5,7 +5,7 @@ import ( "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" ) diff --git a/resources/iam-saml-provider_mock_test.go b/resources/iam-saml-provider_mock_test.go index f4853c3e..45a48e40 100644 --- a/resources/iam-saml-provider_mock_test.go +++ b/resources/iam-saml-provider_mock_test.go @@ -9,7 +9,7 @@ import ( "github.com/aws/aws-sdk-go/service/iam" - "github.com/ekristen/aws-nuke/mocks/mock_iamiface" + "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" ) func Test_Mock_IAMSAMLProvider_Remove(t *testing.T) { diff --git a/resources/iam-server-certificate.go b/resources/iam-server-certificate.go index 9d102f22..6e66d57e 100644 --- a/resources/iam-server-certificate.go +++ b/resources/iam-server-certificate.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IAMServerCertificateResource = "IAMServerCertificate" diff --git a/resources/iam-server-certificate_mock_test.go b/resources/iam-server-certificate_mock_test.go index ae35a6cb..a186a04a 100644 --- a/resources/iam-server-certificate_mock_test.go +++ b/resources/iam-server-certificate_mock_test.go @@ -9,7 +9,7 @@ import ( "github.com/aws/aws-sdk-go/service/iam" - "github.com/ekristen/aws-nuke/mocks/mock_iamiface" + "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" ) func Test_Mock_IAMServerCertificate_Remove(t *testing.T) { diff --git a/resources/iam-service-specific-credentials.go b/resources/iam-service-specific-credentials.go index 5e7368c2..bddd16ea 100644 --- a/resources/iam-service-specific-credentials.go +++ b/resources/iam-service-specific-credentials.go @@ -13,7 +13,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IAMServiceSpecificCredentialResource = "IAMServiceSpecificCredential" diff --git a/resources/iam-service-specific-credentials_mock_test.go b/resources/iam-service-specific-credentials_mock_test.go index 83276c84..6a852200 100644 --- a/resources/iam-service-specific-credentials_mock_test.go +++ b/resources/iam-service-specific-credentials_mock_test.go @@ -10,7 +10,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iam" - "github.com/ekristen/aws-nuke/mocks/mock_iamiface" + "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" ) func Test_Mock_IAMServiceSpecificCredential_Remove(t *testing.T) { diff --git a/resources/iam-signing-certificate.go b/resources/iam-signing-certificate.go index 4091923d..fbf44218 100644 --- a/resources/iam-signing-certificate.go +++ b/resources/iam-signing-certificate.go @@ -15,7 +15,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IAMSigningCertificateResource = "IAMSigningCertificate" diff --git a/resources/iam-signing-certificate_mock_test.go b/resources/iam-signing-certificate_mock_test.go index 7d7cb49c..61148611 100644 --- a/resources/iam-signing-certificate_mock_test.go +++ b/resources/iam-signing-certificate_mock_test.go @@ -10,7 +10,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iam" - "github.com/ekristen/aws-nuke/mocks/mock_iamiface" + "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" ) func Test_Mock_IAMSigningCertificate_Remove(t *testing.T) { diff --git a/resources/iam-user-access-key.go b/resources/iam-user-access-key.go index bf30abd7..d590d8ab 100644 --- a/resources/iam-user-access-key.go +++ b/resources/iam-user-access-key.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IAMUserAccessKeyResource = "IAMUserAccessKey" diff --git a/resources/iam-user-access-key_mock_test.go b/resources/iam-user-access-key_mock_test.go index 7ab8e583..44891341 100644 --- a/resources/iam-user-access-key_mock_test.go +++ b/resources/iam-user-access-key_mock_test.go @@ -10,7 +10,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iam" - "github.com/ekristen/aws-nuke/mocks/mock_iamiface" + "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" ) func Test_Mock_IAMUserAccessKey_Remove(t *testing.T) { diff --git a/resources/iam-user-group-attachments.go b/resources/iam-user-group-attachments.go index 03ff5e0c..5c1a8d86 100644 --- a/resources/iam-user-group-attachments.go +++ b/resources/iam-user-group-attachments.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IAMUserGroupAttachmentResource = "IAMUserGroupAttachment" diff --git a/resources/iam-user-group-attachments_mock_test.go b/resources/iam-user-group-attachments_mock_test.go index 06e7d592..769b85cd 100644 --- a/resources/iam-user-group-attachments_mock_test.go +++ b/resources/iam-user-group-attachments_mock_test.go @@ -10,7 +10,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iam" - "github.com/ekristen/aws-nuke/mocks/mock_iamiface" + "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" ) func Test_Mock_IAMUserGroup_Remove(t *testing.T) { diff --git a/resources/iam-user-https-git-credential.go b/resources/iam-user-https-git-credential.go index e2a2b52b..c4270a7b 100644 --- a/resources/iam-user-https-git-credential.go +++ b/resources/iam-user-https-git-credential.go @@ -13,7 +13,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IAMUserHTTPSGitCredentialResource = "IAMUserHTTPSGitCredential" //nolint:gosec diff --git a/resources/iam-user-policy-attachment.go b/resources/iam-user-policy-attachment.go index c363a13f..d1fe5d2f 100644 --- a/resources/iam-user-policy-attachment.go +++ b/resources/iam-user-policy-attachment.go @@ -14,7 +14,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IAMUserPolicyAttachmentResource = "IAMUserPolicyAttachment" diff --git a/resources/iam-user-policy-attachment_mock_test.go b/resources/iam-user-policy-attachment_mock_test.go index c4014005..b7fe00c9 100644 --- a/resources/iam-user-policy-attachment_mock_test.go +++ b/resources/iam-user-policy-attachment_mock_test.go @@ -11,7 +11,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iam" - "github.com/ekristen/aws-nuke/mocks/mock_iamiface" + "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" ) func Test_Mock_IAMUserPolicyAttachment_Remove(t *testing.T) { diff --git a/resources/iam-user-policy.go b/resources/iam-user-policy.go index f565d173..6851b5c8 100644 --- a/resources/iam-user-policy.go +++ b/resources/iam-user-policy.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IAMUserPolicyResource = "IAMUserPolicy" diff --git a/resources/iam-user-policy_mock_test.go b/resources/iam-user-policy_mock_test.go index 302ebbe3..98861a3f 100644 --- a/resources/iam-user-policy_mock_test.go +++ b/resources/iam-user-policy_mock_test.go @@ -10,7 +10,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iam" - "github.com/ekristen/aws-nuke/mocks/mock_iamiface" + "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" ) func Test_Mock_IAMUserPolicy_Remove(t *testing.T) { diff --git a/resources/iam-user-ssh-keys.go b/resources/iam-user-ssh-keys.go index 28b441fd..8b896c6e 100644 --- a/resources/iam-user-ssh-keys.go +++ b/resources/iam-user-ssh-keys.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IAMUserSSHPublicKeyResource = "IAMUserSSHPublicKey" diff --git a/resources/iam-user-ssh-keys_mock_test.go b/resources/iam-user-ssh-keys_mock_test.go index 4af5b6ea..11b8c1de 100644 --- a/resources/iam-user-ssh-keys_mock_test.go +++ b/resources/iam-user-ssh-keys_mock_test.go @@ -10,7 +10,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iam" - "github.com/ekristen/aws-nuke/mocks/mock_iamiface" + "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" ) func Test_Mock_IAMUserSSHKeys_Remove(t *testing.T) { diff --git a/resources/iam-users.go b/resources/iam-users.go index 87a27152..17c7d7c0 100644 --- a/resources/iam-users.go +++ b/resources/iam-users.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IAMUserResource = "IAMUser" diff --git a/resources/iam-users_mock_test.go b/resources/iam-users_mock_test.go index 6652c9bf..c3fd406b 100644 --- a/resources/iam-users_mock_test.go +++ b/resources/iam-users_mock_test.go @@ -11,7 +11,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iam" - "github.com/ekristen/aws-nuke/mocks/mock_iamiface" + "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" ) func Test_Mock_IAMUser_Remove(t *testing.T) { diff --git a/resources/iam-virtual-mfa-devices.go b/resources/iam-virtual-mfa-devices.go index ad1efd25..2c4ef33b 100644 --- a/resources/iam-virtual-mfa-devices.go +++ b/resources/iam-virtual-mfa-devices.go @@ -12,7 +12,7 @@ import ( "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" ) diff --git a/resources/iam-virtual-mfa-devices_mock_test.go b/resources/iam-virtual-mfa-devices_mock_test.go index 706218bd..1b06df4b 100644 --- a/resources/iam-virtual-mfa-devices_mock_test.go +++ b/resources/iam-virtual-mfa-devices_mock_test.go @@ -10,7 +10,7 @@ import ( "github.com/aws/aws-sdk-go/service/iam" - "github.com/ekristen/aws-nuke/mocks/mock_iamiface" + "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" ) func Test_Mock_IAMVirtualMFADevice_Remove(t *testing.T) { diff --git a/resources/imagebuilder-components.go b/resources/imagebuilder-components.go index 1f801691..0233d547 100644 --- a/resources/imagebuilder-components.go +++ b/resources/imagebuilder-components.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ImageBuilderComponentResource = "ImageBuilderComponent" diff --git a/resources/imagebuilder-distribution-configurations.go b/resources/imagebuilder-distribution-configurations.go index b1b08ac9..84f80915 100644 --- a/resources/imagebuilder-distribution-configurations.go +++ b/resources/imagebuilder-distribution-configurations.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ImageBuilderDistributionConfigurationResource = "ImageBuilderDistributionConfiguration" diff --git a/resources/imagebuilder-images.go b/resources/imagebuilder-images.go index 586a9c9b..e8ea5a44 100644 --- a/resources/imagebuilder-images.go +++ b/resources/imagebuilder-images.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ImageBuilderImageResource = "ImageBuilderImage" diff --git a/resources/imagebuilder-infrastructure-configurations.go b/resources/imagebuilder-infrastructure-configurations.go index b0c3ef24..2ec9d1c4 100644 --- a/resources/imagebuilder-infrastructure-configurations.go +++ b/resources/imagebuilder-infrastructure-configurations.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ImageBuilderInfrastructureConfigurationResource = "ImageBuilderInfrastructureConfiguration" diff --git a/resources/imagebuilder-pipelines.go b/resources/imagebuilder-pipelines.go index 3fe8b339..ef1775c2 100644 --- a/resources/imagebuilder-pipelines.go +++ b/resources/imagebuilder-pipelines.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ImageBuilderPipelineResource = "ImageBuilderPipeline" diff --git a/resources/imagebuilder-recipes.go b/resources/imagebuilder-recipes.go index 79986594..48f2140d 100644 --- a/resources/imagebuilder-recipes.go +++ b/resources/imagebuilder-recipes.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ImageBuilderRecipeResource = "ImageBuilderRecipe" diff --git a/resources/inspector-assessment-runs.go b/resources/inspector-assessment-runs.go index 7330d472..c434abce 100644 --- a/resources/inspector-assessment-runs.go +++ b/resources/inspector-assessment-runs.go @@ -8,7 +8,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const InspectorAssessmentRunResource = "InspectorAssessmentRun" diff --git a/resources/inspector-assessment-targets.go b/resources/inspector-assessment-targets.go index d22fe817..97f17aea 100644 --- a/resources/inspector-assessment-targets.go +++ b/resources/inspector-assessment-targets.go @@ -8,7 +8,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const InspectorAssessmentTargetResource = "InspectorAssessmentTarget" diff --git a/resources/inspector-assessment-templates.go b/resources/inspector-assessment-templates.go index 67c50837..1eec0cb9 100644 --- a/resources/inspector-assessment-templates.go +++ b/resources/inspector-assessment-templates.go @@ -8,7 +8,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const InspectorAssessmentTemplateResource = "InspectorAssessmentTemplate" diff --git a/resources/inspector2.go b/resources/inspector2.go index d59ef0b7..89818b88 100644 --- a/resources/inspector2.go +++ b/resources/inspector2.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const Inspector2Resource = "Inspector2" diff --git a/resources/iot-authorizers.go b/resources/iot-authorizers.go index 02cf03cd..d3fd31cd 100644 --- a/resources/iot-authorizers.go +++ b/resources/iot-authorizers.go @@ -8,7 +8,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IoTAuthorizerResource = "IoTAuthorizer" diff --git a/resources/iot-cacertificates.go b/resources/iot-cacertificates.go index 82058fb0..4f2dc3e7 100644 --- a/resources/iot-cacertificates.go +++ b/resources/iot-cacertificates.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IoTCACertificateResource = "IoTCACertificate" diff --git a/resources/iot-certificates.go b/resources/iot-certificates.go index 94ee7aaa..29fa7f00 100644 --- a/resources/iot-certificates.go +++ b/resources/iot-certificates.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IoTCertificateResource = "IoTCertificate" diff --git a/resources/iot-jobs.go b/resources/iot-jobs.go index a9e0f79a..635aeaca 100644 --- a/resources/iot-jobs.go +++ b/resources/iot-jobs.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IoTJobResource = "IoTJob" diff --git a/resources/iot-otaupdates.go b/resources/iot-otaupdates.go index ff364ba4..27c29d89 100644 --- a/resources/iot-otaupdates.go +++ b/resources/iot-otaupdates.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IoTOTAUpdateResource = "IoTOTAUpdate" diff --git a/resources/iot-policies.go b/resources/iot-policies.go index fa2def41..7afd4486 100644 --- a/resources/iot-policies.go +++ b/resources/iot-policies.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IoTPolicyResource = "IoTPolicy" diff --git a/resources/iot-rolealiases.go b/resources/iot-rolealiases.go index 0e283c7a..b6cd0cc1 100644 --- a/resources/iot-rolealiases.go +++ b/resources/iot-rolealiases.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IoTRoleAliasResource = "IoTRoleAlias" diff --git a/resources/iot-streams.go b/resources/iot-streams.go index 3cc39abe..726d7365 100644 --- a/resources/iot-streams.go +++ b/resources/iot-streams.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IoTStreamResource = "IoTStream" diff --git a/resources/iot-thinggroups.go b/resources/iot-thinggroups.go index 70594131..64b3b2f8 100644 --- a/resources/iot-thinggroups.go +++ b/resources/iot-thinggroups.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IoTThingGroupResource = "IoTThingGroup" diff --git a/resources/iot-things.go b/resources/iot-things.go index 61430316..2699fa1d 100644 --- a/resources/iot-things.go +++ b/resources/iot-things.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IoTThingResource = "IoTThing" diff --git a/resources/iot-thingtypes.go b/resources/iot-thingtypes.go index 46eda75d..0cb1ab48 100644 --- a/resources/iot-thingtypes.go +++ b/resources/iot-thingtypes.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IoTThingTypeResource = "IoTThingType" diff --git a/resources/iot-thingtypestates.go b/resources/iot-thingtypestates.go index 4012fb30..707a3eef 100644 --- a/resources/iot-thingtypestates.go +++ b/resources/iot-thingtypestates.go @@ -13,7 +13,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IoTThingTypeStateResource = "IoTThingTypeState" diff --git a/resources/iot-topicrules.go b/resources/iot-topicrules.go index 3842fb20..db99963b 100644 --- a/resources/iot-topicrules.go +++ b/resources/iot-topicrules.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IoTTopicRuleResource = "IoTTopicRule" diff --git a/resources/kendra-indexes.go b/resources/kendra-indexes.go index cf86143a..28897d7e 100644 --- a/resources/kendra-indexes.go +++ b/resources/kendra-indexes.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const KendraIndexResource = "KendraIndex" diff --git a/resources/kinesis-streams.go b/resources/kinesis-streams.go index 2f1c6bdf..d87c8d10 100644 --- a/resources/kinesis-streams.go +++ b/resources/kinesis-streams.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const KinesisStreamResource = "KinesisStream" diff --git a/resources/kinesisanalytics-streams.go b/resources/kinesisanalytics-streams.go index f6685ec4..2f6d46e9 100644 --- a/resources/kinesisanalytics-streams.go +++ b/resources/kinesisanalytics-streams.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const KinesisAnalyticsApplicationResource = "KinesisAnalyticsApplication" diff --git a/resources/kinesisvideo-streams.go b/resources/kinesisvideo-streams.go index aec12fb4..ae09b600 100644 --- a/resources/kinesisvideo-streams.go +++ b/resources/kinesisvideo-streams.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const KinesisVideoProjectResource = "KinesisVideoProject" diff --git a/resources/kms-aliases.go b/resources/kms-aliases.go index b8ac8078..715d9a03 100644 --- a/resources/kms-aliases.go +++ b/resources/kms-aliases.go @@ -14,7 +14,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const KMSAliasResource = "KMSAlias" diff --git a/resources/kms-keys.go b/resources/kms-keys.go index 64647ca5..b77e6bce 100644 --- a/resources/kms-keys.go +++ b/resources/kms-keys.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const KMSKeyResource = "KMSKey" diff --git a/resources/lambda-event-source-mapping.go b/resources/lambda-event-source-mapping.go index 8b5bd162..54aeecca 100644 --- a/resources/lambda-event-source-mapping.go +++ b/resources/lambda-event-source-mapping.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const LambdaEventSourceMappingResource = "LambdaEventSourceMapping" diff --git a/resources/lambda-functions.go b/resources/lambda-functions.go index c35dfc80..b4e669bd 100644 --- a/resources/lambda-functions.go +++ b/resources/lambda-functions.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const LambdaFunctionResource = "LambdaFunction" diff --git a/resources/lambda-layers.go b/resources/lambda-layers.go index 85513ddb..2174f0a8 100644 --- a/resources/lambda-layers.go +++ b/resources/lambda-layers.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const LambdaLayerResource = "LambdaLayer" diff --git a/resources/lex-bot.go b/resources/lex-bot.go index f7e36f54..56929396 100644 --- a/resources/lex-bot.go +++ b/resources/lex-bot.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const LexBotResource = "LexBot" diff --git a/resources/lex-intent.go b/resources/lex-intent.go index 783331f7..7f2d684f 100644 --- a/resources/lex-intent.go +++ b/resources/lex-intent.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const LexIntentResource = "LexIntent" diff --git a/resources/lex-model-building-service-bot-alias.go b/resources/lex-model-building-service-bot-alias.go index 4253f501..5dcfaeaf 100644 --- a/resources/lex-model-building-service-bot-alias.go +++ b/resources/lex-model-building-service-bot-alias.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const LexModelBuildingServiceBotAliasResource = "LexModelBuildingServiceBotAlias" diff --git a/resources/lex-slot-types.go b/resources/lex-slot-types.go index ffd0c543..2540b0f2 100644 --- a/resources/lex-slot-types.go +++ b/resources/lex-slot-types.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const LexSlotTypeResource = "LexSlotType" diff --git a/resources/lightsail-disks.go b/resources/lightsail-disks.go index c52b2cb8..c7bc3d88 100644 --- a/resources/lightsail-disks.go +++ b/resources/lightsail-disks.go @@ -8,7 +8,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const LightsailDiskResource = "LightsailDisk" diff --git a/resources/lightsail-domains.go b/resources/lightsail-domains.go index 0101d863..c255bb58 100644 --- a/resources/lightsail-domains.go +++ b/resources/lightsail-domains.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) // TODO: implement region hints when we know certain things will never be in other regions diff --git a/resources/lightsail-instances.go b/resources/lightsail-instances.go index 03f4a669..285e1687 100644 --- a/resources/lightsail-instances.go +++ b/resources/lightsail-instances.go @@ -11,7 +11,7 @@ import ( libsettings "github.com/ekristen/libnuke/pkg/settings" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const LightsailInstanceResource = "LightsailInstance" diff --git a/resources/lightsail-keypairs.go b/resources/lightsail-keypairs.go index 5b363d0b..44e3fde8 100644 --- a/resources/lightsail-keypairs.go +++ b/resources/lightsail-keypairs.go @@ -8,7 +8,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const LightsailKeyPairResource = "LightsailKeyPair" diff --git a/resources/lightsail-loadbalancers.go b/resources/lightsail-loadbalancers.go index 9aab4bfc..96bb3b10 100644 --- a/resources/lightsail-loadbalancers.go +++ b/resources/lightsail-loadbalancers.go @@ -8,7 +8,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const LightsailLoadBalancerResource = "LightsailLoadBalancer" diff --git a/resources/lightsail-staticips.go b/resources/lightsail-staticips.go index b4b79479..5c537c18 100644 --- a/resources/lightsail-staticips.go +++ b/resources/lightsail-staticips.go @@ -8,7 +8,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const LightsailStaticIPResource = "LightsailStaticIP" diff --git a/resources/machinelearning-batchpredictions.go b/resources/machinelearning-batchpredictions.go index c657c9d9..0421d93f 100644 --- a/resources/machinelearning-batchpredictions.go +++ b/resources/machinelearning-batchpredictions.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const MachineLearningBranchPredictionResource = "MachineLearningBranchPrediction" diff --git a/resources/machinelearning-datasources.go b/resources/machinelearning-datasources.go index e097abfd..f4feb152 100644 --- a/resources/machinelearning-datasources.go +++ b/resources/machinelearning-datasources.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const MachineLearningDataSourceResource = "MachineLearningDataSource" diff --git a/resources/machinelearning-evaluations.go b/resources/machinelearning-evaluations.go index 1a19fbd6..f0c60298 100644 --- a/resources/machinelearning-evaluations.go +++ b/resources/machinelearning-evaluations.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const MachineLearningEvaluationResource = "MachineLearningEvaluation" diff --git a/resources/machinelearning-mlmodels.go b/resources/machinelearning-mlmodels.go index 225b7cdb..5e1e68e7 100644 --- a/resources/machinelearning-mlmodels.go +++ b/resources/machinelearning-mlmodels.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const MachineLearningMLModelResource = "MachineLearningMLModel" diff --git a/resources/macie2.go b/resources/macie2.go index cc8d6899..3c3999ac 100644 --- a/resources/macie2.go +++ b/resources/macie2.go @@ -8,7 +8,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const MacieResource = "Macie" diff --git a/resources/managedblockchain-member.go b/resources/managedblockchain-member.go index ecb92d95..01d6a486 100644 --- a/resources/managedblockchain-member.go +++ b/resources/managedblockchain-member.go @@ -14,7 +14,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ManagedBlockchainMemberResource = "ManagedBlockchainMember" diff --git a/resources/managedgrafana-workspaces.go b/resources/managedgrafana-workspaces.go index 5ed47a87..c2b55c2a 100644 --- a/resources/managedgrafana-workspaces.go +++ b/resources/managedgrafana-workspaces.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const AMGWorkspaceResource = "AMGWorkspace" diff --git a/resources/mediaconvert-jobtemplates.go b/resources/mediaconvert-jobtemplates.go index 879930f3..9a80e99a 100644 --- a/resources/mediaconvert-jobtemplates.go +++ b/resources/mediaconvert-jobtemplates.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const MediaConvertJobTemplateResource = "MediaConvertJobTemplate" diff --git a/resources/mediaconvert-presets.go b/resources/mediaconvert-presets.go index 2ff3b8a2..755012fc 100644 --- a/resources/mediaconvert-presets.go +++ b/resources/mediaconvert-presets.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const MediaConvertPresetResource = "MediaConvertPreset" diff --git a/resources/mediaconvert-queues.go b/resources/mediaconvert-queues.go index 17c266dd..48dfffe8 100644 --- a/resources/mediaconvert-queues.go +++ b/resources/mediaconvert-queues.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const MediaConvertQueueResource = "MediaConvertQueue" diff --git a/resources/medialive-channels.go b/resources/medialive-channels.go index e042466d..46887e53 100644 --- a/resources/medialive-channels.go +++ b/resources/medialive-channels.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const MediaLiveChannelResource = "MediaLiveChannel" diff --git a/resources/medialive-inputs.go b/resources/medialive-inputs.go index 3285532e..cea02773 100644 --- a/resources/medialive-inputs.go +++ b/resources/medialive-inputs.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const MediaLiveInputResource = "MediaLiveInput" diff --git a/resources/medialive-inputsecuritygroups.go b/resources/medialive-inputsecuritygroups.go index 72aa6585..f4b19fc0 100644 --- a/resources/medialive-inputsecuritygroups.go +++ b/resources/medialive-inputsecuritygroups.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const MediaLiveInputSecurityGroupResource = "MediaLiveInputSecurityGroup" diff --git a/resources/mediapackage-channels.go b/resources/mediapackage-channels.go index 6015a125..7827a613 100644 --- a/resources/mediapackage-channels.go +++ b/resources/mediapackage-channels.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const MediaPackageChannelResource = "MediaPackageChannel" diff --git a/resources/mediapackage-originendpoints.go b/resources/mediapackage-originendpoints.go index c51acde1..d7f2507e 100644 --- a/resources/mediapackage-originendpoints.go +++ b/resources/mediapackage-originendpoints.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const MediaPackageOriginEndpointResource = "MediaPackageOriginEndpoint" diff --git a/resources/mediastore-containers.go b/resources/mediastore-containers.go index 3bb3bad6..22d913e8 100644 --- a/resources/mediastore-containers.go +++ b/resources/mediastore-containers.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const MediaStoreContainerResource = "MediaStoreContainer" diff --git a/resources/mediastoredata-items.go b/resources/mediastoredata-items.go index c965c1fe..3d4c2a3a 100644 --- a/resources/mediastoredata-items.go +++ b/resources/mediastoredata-items.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const MediaStoreDataItemsResource = "MediaStoreDataItems" diff --git a/resources/mediatailor-configurations.go b/resources/mediatailor-configurations.go index debd202a..9908ef80 100644 --- a/resources/mediatailor-configurations.go +++ b/resources/mediatailor-configurations.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const MediaTailorConfigurationResource = "MediaTailorConfiguration" diff --git a/resources/memorydb-acl.go b/resources/memorydb-acl.go index af3fe1f5..557cc76c 100644 --- a/resources/memorydb-acl.go +++ b/resources/memorydb-acl.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type MemoryDBACL struct { diff --git a/resources/memorydb-cluster.go b/resources/memorydb-cluster.go index 210728ba..a42bbfc7 100644 --- a/resources/memorydb-cluster.go +++ b/resources/memorydb-cluster.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type MemoryDBCluster struct { diff --git a/resources/memorydb-parametergroups.go b/resources/memorydb-parametergroups.go index d3929f83..df9e2f82 100644 --- a/resources/memorydb-parametergroups.go +++ b/resources/memorydb-parametergroups.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type MemoryDBParameterGroup struct { diff --git a/resources/memorydb-subnetgroups.go b/resources/memorydb-subnetgroups.go index 99fecb43..dee28bbc 100644 --- a/resources/memorydb-subnetgroups.go +++ b/resources/memorydb-subnetgroups.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type MemoryDBSubnetGroup struct { diff --git a/resources/memorydb-user.go b/resources/memorydb-user.go index 56231f66..41ea3c57 100644 --- a/resources/memorydb-user.go +++ b/resources/memorydb-user.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type MemoryDBUser struct { diff --git a/resources/mgn-jobs.go b/resources/mgn-jobs.go index 65b41ef8..052cf4b6 100644 --- a/resources/mgn-jobs.go +++ b/resources/mgn-jobs.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const MGNJobResource = "MGNJob" diff --git a/resources/mgn-source-servers.go b/resources/mgn-source-servers.go index 39d1413f..936846db 100644 --- a/resources/mgn-source-servers.go +++ b/resources/mgn-source-servers.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const MGNSourceServerResource = "MGNSourceServer" diff --git a/resources/mobile-projects.go b/resources/mobile-projects.go index 2ab5ff67..207e1d57 100644 --- a/resources/mobile-projects.go +++ b/resources/mobile-projects.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const MobileProjectResource = "MobileProject" diff --git a/resources/mq-broker.go b/resources/mq-broker.go index 8881793f..b803a22b 100644 --- a/resources/mq-broker.go +++ b/resources/mq-broker.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const MQBrokerResource = "MQBroker" diff --git a/resources/msk-cluster.go b/resources/msk-cluster.go index 4b201511..80764617 100644 --- a/resources/msk-cluster.go +++ b/resources/msk-cluster.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const MSKClusterResource = "MSKCluster" diff --git a/resources/msk-configuration.go b/resources/msk-configuration.go index 4b459e29..4e3eeee2 100644 --- a/resources/msk-configuration.go +++ b/resources/msk-configuration.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const MSKConfigurationResource = "MSKConfiguration" diff --git a/resources/neptune-clusters.go b/resources/neptune-clusters.go index ef8b7da3..8b65b1ea 100644 --- a/resources/neptune-clusters.go +++ b/resources/neptune-clusters.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const NeptuneClusterResource = "NeptuneCluster" diff --git a/resources/neptune-instances.go b/resources/neptune-instances.go index d64276d4..8bf1ba01 100644 --- a/resources/neptune-instances.go +++ b/resources/neptune-instances.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const NeptuneInstanceResource = "NeptuneInstance" diff --git a/resources/neptune-snapshots.go b/resources/neptune-snapshots.go index e367d916..6ba89c87 100644 --- a/resources/neptune-snapshots.go +++ b/resources/neptune-snapshots.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const NeptuneSnapshotResource = "NeptuneSnapshot" diff --git a/resources/networkmanager-connect-peers.go b/resources/networkmanager-connect-peers.go index 0dc6b2fa..67a9f2f6 100644 --- a/resources/networkmanager-connect-peers.go +++ b/resources/networkmanager-connect-peers.go @@ -13,8 +13,8 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/awsutil" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/awsutil" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type NetworkManagerConnectPeer struct { diff --git a/resources/networkmanager-core-network.go b/resources/networkmanager-core-network.go index 81b24f48..f65fefb6 100644 --- a/resources/networkmanager-core-network.go +++ b/resources/networkmanager-core-network.go @@ -13,8 +13,8 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/awsutil" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/awsutil" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type NetworkManagerCoreNetwork struct { diff --git a/resources/networkmanager-global-network.go b/resources/networkmanager-global-network.go index 69b3d59f..f7b1f76c 100644 --- a/resources/networkmanager-global-network.go +++ b/resources/networkmanager-global-network.go @@ -14,8 +14,8 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/awsutil" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/awsutil" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type NetworkManagerGlobalNetwork struct { diff --git a/resources/networkmanager-network-attachments.go b/resources/networkmanager-network-attachments.go index 4176b7bb..3303aea3 100644 --- a/resources/networkmanager-network-attachments.go +++ b/resources/networkmanager-network-attachments.go @@ -13,8 +13,8 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/awsutil" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/awsutil" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type NetworkManagerNetworkAttachment struct { diff --git a/resources/opensearchservice-domain.go b/resources/opensearchservice-domain.go index 7eeb2b3f..ad98a782 100644 --- a/resources/opensearchservice-domain.go +++ b/resources/opensearchservice-domain.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const OSDomainResource = "OSDomain" diff --git a/resources/opensearchservice-packages.go b/resources/opensearchservice-packages.go index 6a933e50..f0bdb9cc 100644 --- a/resources/opensearchservice-packages.go +++ b/resources/opensearchservice-packages.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const OSPackageResource = "OSPackage" diff --git a/resources/opensearchservice-vpcendpoints.go b/resources/opensearchservice-vpcendpoints.go index 18508287..c5330cb7 100644 --- a/resources/opensearchservice-vpcendpoints.go +++ b/resources/opensearchservice-vpcendpoints.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const OSVPCEndpointResource = "OSVPCEndpoint" diff --git a/resources/opsworks-apps.go b/resources/opsworks-apps.go index 90bef41d..9e164249 100644 --- a/resources/opsworks-apps.go +++ b/resources/opsworks-apps.go @@ -8,7 +8,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const OpsWorksAppResource = "OpsWorksApp" diff --git a/resources/opsworks-instances.go b/resources/opsworks-instances.go index 55d78ce3..edfe05b5 100644 --- a/resources/opsworks-instances.go +++ b/resources/opsworks-instances.go @@ -8,7 +8,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const OpsWorksInstanceResource = "OpsWorksInstance" diff --git a/resources/opsworks-layers.go b/resources/opsworks-layers.go index e0396c97..a9f3734c 100644 --- a/resources/opsworks-layers.go +++ b/resources/opsworks-layers.go @@ -8,7 +8,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const OpsWorksLayerResource = "OpsWorksLayer" diff --git a/resources/opsworks-userprofiles.go b/resources/opsworks-userprofiles.go index dcbf52a6..9af377a5 100644 --- a/resources/opsworks-userprofiles.go +++ b/resources/opsworks-userprofiles.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const OpsWorksUserProfileResource = "OpsWorksUserProfile" diff --git a/resources/opsworkscm-backups.go b/resources/opsworkscm-backups.go index b853d034..7df81e65 100644 --- a/resources/opsworkscm-backups.go +++ b/resources/opsworkscm-backups.go @@ -8,7 +8,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const OpsWorksCMBackupResource = "OpsWorksCMBackup" diff --git a/resources/opsworkscm-servers.go b/resources/opsworkscm-servers.go index 1aabd87c..765aecb3 100644 --- a/resources/opsworkscm-servers.go +++ b/resources/opsworkscm-servers.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const OpsWorksCMServerResource = "OpsWorksCMServer" diff --git a/resources/opsworkscm-serverstates.go b/resources/opsworkscm-serverstates.go index cefca634..9dcc84bd 100644 --- a/resources/opsworkscm-serverstates.go +++ b/resources/opsworkscm-serverstates.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const OpsWorksCMServerStateResource = "OpsWorksCMServerState" diff --git a/resources/prometheusservice-workspace.go b/resources/prometheusservice-workspace.go index 83443ba7..b3d93631 100644 --- a/resources/prometheusservice-workspace.go +++ b/resources/prometheusservice-workspace.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const AMPWorkspaceResource = "AMPWorkspace" diff --git a/resources/qldb-ledger.go b/resources/qldb-ledger.go index 0727ec88..78ed326b 100644 --- a/resources/qldb-ledger.go +++ b/resources/qldb-ledger.go @@ -12,7 +12,7 @@ import ( libsettings "github.com/ekristen/libnuke/pkg/settings" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const QLDBLedgerResource = "QLDBLedger" diff --git a/resources/quicksight-subscriptions.go b/resources/quicksight-subscriptions.go index 0f809a8d..7b48d308 100644 --- a/resources/quicksight-subscriptions.go +++ b/resources/quicksight-subscriptions.go @@ -10,7 +10,7 @@ import ( "github.com/aws/aws-sdk-go/service/sts" "github.com/aws/aws-sdk-go/service/sts/stsiface" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" libsettings "github.com/ekristen/libnuke/pkg/settings" diff --git a/resources/quicksight-subscriptions_mock_test.go b/resources/quicksight-subscriptions_mock_test.go index 2b917cc3..1644d837 100644 --- a/resources/quicksight-subscriptions_mock_test.go +++ b/resources/quicksight-subscriptions_mock_test.go @@ -11,9 +11,9 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/quicksight" "github.com/aws/aws-sdk-go/service/sts" - "github.com/ekristen/aws-nuke/mocks/mock_quicksightiface" - "github.com/ekristen/aws-nuke/mocks/mock_stsiface" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/mocks/mock_quicksightiface" + "github.com/ekristen/aws-nuke/v3/mocks/mock_stsiface" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" libsettings "github.com/ekristen/libnuke/pkg/settings" "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" diff --git a/resources/rds-cluster-snapshots.go b/resources/rds-cluster-snapshots.go index 9a0a3e73..c3ba5b9d 100644 --- a/resources/rds-cluster-snapshots.go +++ b/resources/rds-cluster-snapshots.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const RDSClusterSnapshotResource = "RDSClusterSnapshot" diff --git a/resources/rds-clusters.go b/resources/rds-clusters.go index 04c844fb..f402d926 100644 --- a/resources/rds-clusters.go +++ b/resources/rds-clusters.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const RDSDBClusterResource = "RDSDBCluster" diff --git a/resources/rds-dbclusterparametergroups.go b/resources/rds-dbclusterparametergroups.go index 5e8ecb4d..288fcb50 100644 --- a/resources/rds-dbclusterparametergroups.go +++ b/resources/rds-dbclusterparametergroups.go @@ -13,7 +13,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const RDSDBClusterParameterGroupResource = "RDSDBClusterParameterGroup" diff --git a/resources/rds-dbparametergroups.go b/resources/rds-dbparametergroups.go index edba7f2f..101bd351 100644 --- a/resources/rds-dbparametergroups.go +++ b/resources/rds-dbparametergroups.go @@ -13,7 +13,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const RDSDBParameterGroupResource = "RDSDBParameterGroup" diff --git a/resources/rds-event-subscriptions.go b/resources/rds-event-subscriptions.go index ed2336eb..a0b9e3b5 100644 --- a/resources/rds-event-subscriptions.go +++ b/resources/rds-event-subscriptions.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const RDSEventSubscriptionResource = "RDSEventSubscription" diff --git a/resources/rds-instances.go b/resources/rds-instances.go index a1fa2e3c..19b27f31 100644 --- a/resources/rds-instances.go +++ b/resources/rds-instances.go @@ -12,7 +12,7 @@ import ( libsettings "github.com/ekristen/libnuke/pkg/settings" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const RDSInstanceResource = "RDSInstance" diff --git a/resources/rds-optiongroups.go b/resources/rds-optiongroups.go index 709b7ff0..567b6784 100644 --- a/resources/rds-optiongroups.go +++ b/resources/rds-optiongroups.go @@ -13,7 +13,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const RDSOptionGroupResource = "RDSOptionGroup" diff --git a/resources/rds-proxies.go b/resources/rds-proxies.go index 331db133..455f924f 100644 --- a/resources/rds-proxies.go +++ b/resources/rds-proxies.go @@ -4,7 +4,7 @@ import ( "context" "github.com/aws/aws-sdk-go/service/rds" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" diff --git a/resources/rds-snapshots.go b/resources/rds-snapshots.go index 0cfdb48d..f16d1eaa 100644 --- a/resources/rds-snapshots.go +++ b/resources/rds-snapshots.go @@ -13,7 +13,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const RDSSnapshotResource = "RDSSnapshot" diff --git a/resources/rds-subnets.go b/resources/rds-subnets.go index c54faa46..320ee6e4 100644 --- a/resources/rds-subnets.go +++ b/resources/rds-subnets.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const RDSDBSubnetGroupResource = "RDSDBSubnetGroup" diff --git a/resources/redshift-clusters.go b/resources/redshift-clusters.go index 7b3f4e45..1e0872dd 100644 --- a/resources/redshift-clusters.go +++ b/resources/redshift-clusters.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const RedshiftClusterResource = "RedshiftCluster" diff --git a/resources/redshift-parametergroups.go b/resources/redshift-parametergroups.go index e043373e..9dbda4c5 100644 --- a/resources/redshift-parametergroups.go +++ b/resources/redshift-parametergroups.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const RedshiftParameterGroupResource = "RedshiftParameterGroup" diff --git a/resources/redshift-scheduled-action.go b/resources/redshift-scheduled-action.go index 19390087..8fe8655d 100644 --- a/resources/redshift-scheduled-action.go +++ b/resources/redshift-scheduled-action.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const RedshiftScheduledActionResource = "RedshiftScheduledAction" diff --git a/resources/redshift-snapshots.go b/resources/redshift-snapshots.go index 478f033a..88c7736a 100644 --- a/resources/redshift-snapshots.go +++ b/resources/redshift-snapshots.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const RedshiftSnapshotResource = "RedshiftSnapshot" diff --git a/resources/redshift-subnetgroups.go b/resources/redshift-subnetgroups.go index af9b8396..a7072366 100644 --- a/resources/redshift-subnetgroups.go +++ b/resources/redshift-subnetgroups.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const RedshiftSubnetGroupResource = "RedshiftSubnetGroup" diff --git a/resources/redshiftserverless-namespaces.go b/resources/redshiftserverless-namespaces.go index f4b46035..6ee06495 100644 --- a/resources/redshiftserverless-namespaces.go +++ b/resources/redshiftserverless-namespaces.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type RedshiftServerlessNamespace struct { diff --git a/resources/redshiftserverless-snapshots.go b/resources/redshiftserverless-snapshots.go index d3976e2c..70fab8ba 100644 --- a/resources/redshiftserverless-snapshots.go +++ b/resources/redshiftserverless-snapshots.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type RedshiftServerlessSnapshot struct { diff --git a/resources/redshiftserverless-workgroups.go b/resources/redshiftserverless-workgroups.go index 234d71c0..89166747 100644 --- a/resources/redshiftserverless-workgroups.go +++ b/resources/redshiftserverless-workgroups.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type RedshiftServerlessWorkgroup struct { diff --git a/resources/rekognition-collection.go b/resources/rekognition-collection.go index 875cd62f..f160d089 100644 --- a/resources/rekognition-collection.go +++ b/resources/rekognition-collection.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const RekognitionCollectionResource = "RekognitionCollection" diff --git a/resources/resource-explorer2-indexes.go b/resources/resource-explorer2-indexes.go index 14e4264b..242a3b72 100644 --- a/resources/resource-explorer2-indexes.go +++ b/resources/resource-explorer2-indexes.go @@ -5,7 +5,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/resourceexplorer2" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" ) diff --git a/resources/resource-explorer2-views.go b/resources/resource-explorer2-views.go index 8a7c3173..842636d7 100644 --- a/resources/resource-explorer2-views.go +++ b/resources/resource-explorer2-views.go @@ -5,7 +5,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/resourceexplorer2" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" ) diff --git a/resources/resourcegroups-groups.go b/resources/resourcegroups-groups.go index 2bacb96d..106161aa 100644 --- a/resources/resourcegroups-groups.go +++ b/resources/resourcegroups-groups.go @@ -5,7 +5,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/resourcegroups" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" ) diff --git a/resources/robomaker-robot-applications.go b/resources/robomaker-robot-applications.go index 32e6cd4f..635471d7 100644 --- a/resources/robomaker-robot-applications.go +++ b/resources/robomaker-robot-applications.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const RoboMakerRobotApplicationResource = "RoboMakerRobotApplication" diff --git a/resources/robomaker-simulation-applications.go b/resources/robomaker-simulation-applications.go index bf6e23d7..287c2664 100644 --- a/resources/robomaker-simulation-applications.go +++ b/resources/robomaker-simulation-applications.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const RoboMakerSimulationApplicationResource = "RoboMakerSimulationApplication" diff --git a/resources/robomaker-simulation-jobs.go b/resources/robomaker-simulation-jobs.go index e78ebd5a..820103f3 100644 --- a/resources/robomaker-simulation-jobs.go +++ b/resources/robomaker-simulation-jobs.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const RoboMakerSimulationJobResource = "RoboMakerSimulationJob" diff --git a/resources/route53-health-checks.go b/resources/route53-health-checks.go index 0d7f338e..761370a4 100644 --- a/resources/route53-health-checks.go +++ b/resources/route53-health-checks.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const Route53HealthCheckResource = "Route53HealthCheck" diff --git a/resources/route53-hosted-zones.go b/resources/route53-hosted-zones.go index 938352d9..33c62bec 100644 --- a/resources/route53-hosted-zones.go +++ b/resources/route53-hosted-zones.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const Route53HostedZoneResource = "Route53HostedZone" diff --git a/resources/route53-resolver-endpoints.go b/resources/route53-resolver-endpoints.go index 43f62df0..5500b0d4 100644 --- a/resources/route53-resolver-endpoints.go +++ b/resources/route53-resolver-endpoints.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const Route53ResolverEndpointResource = "Route53ResolverEndpoint" diff --git a/resources/route53-resolver-rules.go b/resources/route53-resolver-rules.go index 9b28914c..4f6d7ab0 100644 --- a/resources/route53-resolver-rules.go +++ b/resources/route53-resolver-rules.go @@ -13,7 +13,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const Route53ResolverRuleResource = "Route53ResolverRule" diff --git a/resources/route53-resource-records.go b/resources/route53-resource-records.go index 49bd6f1b..f450b723 100644 --- a/resources/route53-resource-records.go +++ b/resources/route53-resource-records.go @@ -13,7 +13,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const Route53ResourceRecordSetResource = "Route53ResourceRecordSet" diff --git a/resources/route53-traffic-policies.go b/resources/route53-traffic-policies.go index 0e874234..24171855 100644 --- a/resources/route53-traffic-policies.go +++ b/resources/route53-traffic-policies.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const Route53TrafficPolicyResource = "Route53TrafficPolicy" diff --git a/resources/s3-access-points.go b/resources/s3-access-points.go index df3aae5c..54009ac0 100644 --- a/resources/s3-access-points.go +++ b/resources/s3-access-points.go @@ -13,7 +13,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const S3AccessPointResource = "S3AccessPoint" diff --git a/resources/s3-buckets.go b/resources/s3-buckets.go index 431872e1..c2c8b5a9 100644 --- a/resources/s3-buckets.go +++ b/resources/s3-buckets.go @@ -20,7 +20,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const S3BucketResource = "S3Bucket" diff --git a/resources/s3-multipart-uploads.go b/resources/s3-multipart-uploads.go index d5b9a437..d44f8a53 100644 --- a/resources/s3-multipart-uploads.go +++ b/resources/s3-multipart-uploads.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const S3MultipartUploadResource = "S3MultipartUpload" diff --git a/resources/s3-objects.go b/resources/s3-objects.go index 4c854f96..1817f821 100644 --- a/resources/s3-objects.go +++ b/resources/s3-objects.go @@ -15,7 +15,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const S3ObjectResource = "S3Object" diff --git a/resources/sagemaker-apps.go b/resources/sagemaker-apps.go index 9246f147..6712ca19 100644 --- a/resources/sagemaker-apps.go +++ b/resources/sagemaker-apps.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const SageMakerAppResource = "SageMakerApp" diff --git a/resources/sagemaker-domain.go b/resources/sagemaker-domain.go index e4d20edd..9b443805 100644 --- a/resources/sagemaker-domain.go +++ b/resources/sagemaker-domain.go @@ -15,7 +15,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const SageMakerDomainResource = "SageMakerDomain" diff --git a/resources/sagemaker-domain_test.go b/resources/sagemaker-domain_test.go index 90dea84b..ef41badf 100644 --- a/resources/sagemaker-domain_test.go +++ b/resources/sagemaker-domain_test.go @@ -13,8 +13,8 @@ import ( "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/mocks/mock_sagemakeriface" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/mocks/mock_sagemakeriface" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) // TestSageMakerDomain_List is a unit test function to test the list of SageMakerDomain via mocked interface diff --git a/resources/sagemaker-endpointconfigs.go b/resources/sagemaker-endpointconfigs.go index 7ab25ffc..e7dd8efe 100644 --- a/resources/sagemaker-endpointconfigs.go +++ b/resources/sagemaker-endpointconfigs.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const SageMakerEndpointConfigResource = "SageMakerEndpointConfig" diff --git a/resources/sagemaker-endpoints.go b/resources/sagemaker-endpoints.go index c31c0a9a..8210e7bb 100644 --- a/resources/sagemaker-endpoints.go +++ b/resources/sagemaker-endpoints.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const SageMakerEndpointResource = "SageMakerEndpoint" diff --git a/resources/sagemaker-models.go b/resources/sagemaker-models.go index 40cf80d3..dc0af1db 100644 --- a/resources/sagemaker-models.go +++ b/resources/sagemaker-models.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const SageMakerModelResource = "SageMakerModel" diff --git a/resources/sagemaker-notebook-instancelifecycleconfigs.go b/resources/sagemaker-notebook-instancelifecycleconfigs.go index a689a744..6c47cca1 100644 --- a/resources/sagemaker-notebook-instancelifecycleconfigs.go +++ b/resources/sagemaker-notebook-instancelifecycleconfigs.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const SageMakerNotebookInstanceLifecycleConfigResource = "SageMakerNotebookInstanceLifecycleConfig" diff --git a/resources/sagemaker-notebook-instances.go b/resources/sagemaker-notebook-instances.go index a5733936..a366b9c3 100644 --- a/resources/sagemaker-notebook-instances.go +++ b/resources/sagemaker-notebook-instances.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const SageMakerNotebookInstanceResource = "SageMakerNotebookInstance" diff --git a/resources/sagemaker-notebook-instancestates.go b/resources/sagemaker-notebook-instancestates.go index a9fd031b..59740038 100644 --- a/resources/sagemaker-notebook-instancestates.go +++ b/resources/sagemaker-notebook-instancestates.go @@ -13,7 +13,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const SageMakerNotebookInstanceStateResource = "SageMakerNotebookInstanceState" diff --git a/resources/sagemaker-spaces.go b/resources/sagemaker-spaces.go index 69bd3269..9f9bbc6b 100644 --- a/resources/sagemaker-spaces.go +++ b/resources/sagemaker-spaces.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const SageMakerSpaceResource = "SageMakerSpace" diff --git a/resources/sagemaker-userprofiles.go b/resources/sagemaker-userprofiles.go index c34063fd..cdaee12a 100644 --- a/resources/sagemaker-userprofiles.go +++ b/resources/sagemaker-userprofiles.go @@ -14,7 +14,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const SageMakerUserProfilesResource = "SageMakerUserProfiles" diff --git a/resources/sagemaker-userprofiles_mock_test.go b/resources/sagemaker-userprofiles_mock_test.go index a9fb2a1d..afa55942 100644 --- a/resources/sagemaker-userprofiles_mock_test.go +++ b/resources/sagemaker-userprofiles_mock_test.go @@ -11,9 +11,9 @@ import ( "github.com/aws/aws-sdk-go/service/sagemaker" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" - "github.com/ekristen/aws-nuke/mocks/mock_sagemakeriface" + "github.com/ekristen/aws-nuke/v3/mocks/mock_sagemakeriface" ) func Test_Mock_SageMakerUserProfiles_List(t *testing.T) { diff --git a/resources/secretsmanager-secret.go b/resources/secretsmanager-secret.go index e2bb8eb7..9817bc71 100644 --- a/resources/secretsmanager-secret.go +++ b/resources/secretsmanager-secret.go @@ -13,7 +13,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const SecretsManagerSecretResource = "SecretsManagerSecret" diff --git a/resources/securityhub-hub.go b/resources/securityhub-hub.go index 61cb40e5..8fa67cbb 100644 --- a/resources/securityhub-hub.go +++ b/resources/securityhub-hub.go @@ -9,8 +9,8 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/awsutil" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/awsutil" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const SecurityHubResource = "SecurityHub" diff --git a/resources/servicecatalog-portfolio-constraints-attachments.go b/resources/servicecatalog-portfolio-constraints-attachments.go index 7dca458a..3c86d53c 100644 --- a/resources/servicecatalog-portfolio-constraints-attachments.go +++ b/resources/servicecatalog-portfolio-constraints-attachments.go @@ -14,8 +14,8 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/awsutil" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/awsutil" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ServiceCatalogConstraintPortfolioAttachmentResource = "ServiceCatalogConstraintPortfolioAttachment" diff --git a/resources/servicecatalog-portfolio-principal-attachments.go b/resources/servicecatalog-portfolio-principal-attachments.go index 8d4989cf..17f1710d 100644 --- a/resources/servicecatalog-portfolio-principal-attachments.go +++ b/resources/servicecatalog-portfolio-principal-attachments.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ServiceCatalogPrincipalPortfolioAttachmentResource = "ServiceCatalogPrincipalPortfolioAttachment" diff --git a/resources/servicecatalog-portfolio-product-attachments.go b/resources/servicecatalog-portfolio-product-attachments.go index d097a268..b8117df4 100644 --- a/resources/servicecatalog-portfolio-product-attachments.go +++ b/resources/servicecatalog-portfolio-product-attachments.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ServiceCatalogPortfolioProductAttachmentResource = "ServiceCatalogPortfolioProductAttachment" diff --git a/resources/servicecatalog-portfolio-share-attachments.go b/resources/servicecatalog-portfolio-share-attachments.go index bb262d28..b90bd95f 100644 --- a/resources/servicecatalog-portfolio-share-attachments.go +++ b/resources/servicecatalog-portfolio-share-attachments.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ServiceCatalogPortfolioShareAttachmentResource = "ServiceCatalogPortfolioShareAttachment" diff --git a/resources/servicecatalog-portfolio-tagoptions-attachements.go b/resources/servicecatalog-portfolio-tagoptions-attachements.go index 0fea75d1..f190e0eb 100644 --- a/resources/servicecatalog-portfolio-tagoptions-attachements.go +++ b/resources/servicecatalog-portfolio-tagoptions-attachements.go @@ -14,8 +14,8 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/awsutil" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/awsutil" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ServiceCatalogTagOptionPortfolioAttachmentResource = "ServiceCatalogTagOptionPortfolioAttachment" diff --git a/resources/servicecatalog-portfolios.go b/resources/servicecatalog-portfolios.go index de7f6b16..fea1ab42 100644 --- a/resources/servicecatalog-portfolios.go +++ b/resources/servicecatalog-portfolios.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ServiceCatalogPortfolioResource = "ServiceCatalogPortfolio" diff --git a/resources/servicecatalog-products.go b/resources/servicecatalog-products.go index 47dcd6b3..37a8b2bc 100644 --- a/resources/servicecatalog-products.go +++ b/resources/servicecatalog-products.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ServiceCatalogProductResource = "ServiceCatalogProduct" diff --git a/resources/servicecatalog-provisionedproducts.go b/resources/servicecatalog-provisionedproducts.go index 5cac6920..b8128b28 100644 --- a/resources/servicecatalog-provisionedproducts.go +++ b/resources/servicecatalog-provisionedproducts.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ServiceCatalogProvisionedProductResource = "ServiceCatalogProvisionedProduct" diff --git a/resources/servicecatalog-tagoptions.go b/resources/servicecatalog-tagoptions.go index 1893fb13..db2b205c 100644 --- a/resources/servicecatalog-tagoptions.go +++ b/resources/servicecatalog-tagoptions.go @@ -12,8 +12,8 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/awsutil" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/awsutil" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ServiceCatalogTagOptionResource = "ServiceCatalogTagOption" diff --git a/resources/servicediscovery-instances.go b/resources/servicediscovery-instances.go index 11383a67..0d9e613c 100644 --- a/resources/servicediscovery-instances.go +++ b/resources/servicediscovery-instances.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ServiceDiscoveryInstanceResource = "ServiceDiscoveryInstance" diff --git a/resources/servicediscovery-namespaces.go b/resources/servicediscovery-namespaces.go index cdb46d05..98ab4eff 100644 --- a/resources/servicediscovery-namespaces.go +++ b/resources/servicediscovery-namespaces.go @@ -13,7 +13,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ServiceDiscoveryNamespaceResource = "ServiceDiscoveryNamespace" diff --git a/resources/servicediscovery-namespaces_mock_test.go b/resources/servicediscovery-namespaces_mock_test.go index 4ebfda6f..7d8b13a6 100644 --- a/resources/servicediscovery-namespaces_mock_test.go +++ b/resources/servicediscovery-namespaces_mock_test.go @@ -11,9 +11,9 @@ import ( "github.com/aws/aws-sdk-go/service/servicediscovery" - "github.com/ekristen/aws-nuke/mocks/mock_servicediscoveryiface" + "github.com/ekristen/aws-nuke/v3/mocks/mock_servicediscoveryiface" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) func Test_Mock_ServiceDiscoveryNamespace_List(t *testing.T) { diff --git a/resources/servicediscovery-services.go b/resources/servicediscovery-services.go index b3d9ca19..79b02331 100644 --- a/resources/servicediscovery-services.go +++ b/resources/servicediscovery-services.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ServiceDiscoveryServiceResource = "ServiceDiscoveryService" diff --git a/resources/ses-configurationsets.go b/resources/ses-configurationsets.go index e253d9a6..330c43c5 100644 --- a/resources/ses-configurationsets.go +++ b/resources/ses-configurationsets.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const SESConfigurationSetResource = "SESConfigurationSet" diff --git a/resources/ses-identities.go b/resources/ses-identities.go index 589693ee..b9472d10 100644 --- a/resources/ses-identities.go +++ b/resources/ses-identities.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const SESIdentityResource = "SESIdentity" diff --git a/resources/ses-receiptfilters.go b/resources/ses-receiptfilters.go index 983b653f..443db5c0 100644 --- a/resources/ses-receiptfilters.go +++ b/resources/ses-receiptfilters.go @@ -11,8 +11,8 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/awsutil" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/awsutil" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const SESReceiptFilterResource = "SESReceiptFilter" diff --git a/resources/ses-receiptrulesets.go b/resources/ses-receiptrulesets.go index 52918d33..ed66e88b 100644 --- a/resources/ses-receiptrulesets.go +++ b/resources/ses-receiptrulesets.go @@ -12,8 +12,8 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/awsutil" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/awsutil" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const SESReceiptRuleSetResource = "SESReceiptRuleSet" diff --git a/resources/ses-templates.go b/resources/ses-templates.go index 628f5ed4..990dc7f9 100644 --- a/resources/ses-templates.go +++ b/resources/ses-templates.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const SESTemplateResource = "SESTemplate" diff --git a/resources/sfn-statemachines.go b/resources/sfn-statemachines.go index 397c2c56..34bb8cb7 100644 --- a/resources/sfn-statemachines.go +++ b/resources/sfn-statemachines.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const SFNStateMachineResource = "SFNStateMachine" diff --git a/resources/signer-signingjobs.go b/resources/signer-signingjobs.go index be49b1ce..7872f1eb 100644 --- a/resources/signer-signingjobs.go +++ b/resources/signer-signingjobs.go @@ -13,7 +13,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const SignerSigningJobResource = "SignerSigningJob" diff --git a/resources/simpledb-domains.go b/resources/simpledb-domains.go index 68ee7626..64d61b39 100644 --- a/resources/simpledb-domains.go +++ b/resources/simpledb-domains.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const SimpleDBDomainResource = "SimpleDBDomain" diff --git a/resources/sns-endpoints.go b/resources/sns-endpoints.go index 8e9a7d9a..95526ee2 100644 --- a/resources/sns-endpoints.go +++ b/resources/sns-endpoints.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const SNSEndpointResource = "SNSEndpoint" diff --git a/resources/sns-platformapplications.go b/resources/sns-platformapplications.go index 3c82eb7a..5deac077 100644 --- a/resources/sns-platformapplications.go +++ b/resources/sns-platformapplications.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const SNSPlatformApplicationResource = "SNSPlatformApplication" diff --git a/resources/sns-subscriptions.go b/resources/sns-subscriptions.go index f1f5ac68..73c397a1 100644 --- a/resources/sns-subscriptions.go +++ b/resources/sns-subscriptions.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const SNSSubscriptionResource = "SNSSubscription" diff --git a/resources/sns-topics.go b/resources/sns-topics.go index 6169540e..ace56c33 100644 --- a/resources/sns-topics.go +++ b/resources/sns-topics.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const SNSTopicResource = "SNSTopic" diff --git a/resources/sqs-queues.go b/resources/sqs-queues.go index 6f341513..d054bd6a 100644 --- a/resources/sqs-queues.go +++ b/resources/sqs-queues.go @@ -14,7 +14,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const SQSQueueResource = "SQSQueue" diff --git a/resources/sqs-queues_mock_test.go b/resources/sqs-queues_mock_test.go index fff06521..dc0372a9 100644 --- a/resources/sqs-queues_mock_test.go +++ b/resources/sqs-queues_mock_test.go @@ -10,9 +10,9 @@ import ( "github.com/aws/aws-sdk-go/service/sqs" - "github.com/ekristen/aws-nuke/mocks/mock_sqsiface" + "github.com/ekristen/aws-nuke/v3/mocks/mock_sqsiface" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) func Test_Mock_SQSQueues_List(t *testing.T) { diff --git a/resources/ssm-activations.go b/resources/ssm-activations.go index ada54582..f6b185d1 100644 --- a/resources/ssm-activations.go +++ b/resources/ssm-activations.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const SSMActivationResource = "SSMActivation" diff --git a/resources/ssm-associations.go b/resources/ssm-associations.go index fb3aa81c..eb823d07 100644 --- a/resources/ssm-associations.go +++ b/resources/ssm-associations.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const SSMAssociationResource = "SSMAssociation" diff --git a/resources/ssm-documents.go b/resources/ssm-documents.go index 5ebebbb9..285d162b 100644 --- a/resources/ssm-documents.go +++ b/resources/ssm-documents.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const SSMDocumentResource = "SSMDocument" diff --git a/resources/ssm-maintenancewindows.go b/resources/ssm-maintenancewindows.go index bdba1f05..e6a864b1 100644 --- a/resources/ssm-maintenancewindows.go +++ b/resources/ssm-maintenancewindows.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const SSMMaintenanceWindowResource = "SSMMaintenanceWindow" diff --git a/resources/ssm-parameters.go b/resources/ssm-parameters.go index 874cf7a5..2b167c14 100644 --- a/resources/ssm-parameters.go +++ b/resources/ssm-parameters.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const SSMParameterResource = "SSMParameter" diff --git a/resources/ssm-patchbaselines.go b/resources/ssm-patchbaselines.go index 9741af4a..3c3a3763 100644 --- a/resources/ssm-patchbaselines.go +++ b/resources/ssm-patchbaselines.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const SSMPatchBaselineResource = "SSMPatchBaseline" diff --git a/resources/ssm-resourcedatasyncs.go b/resources/ssm-resourcedatasyncs.go index 671b70a4..7a32ead4 100644 --- a/resources/ssm-resourcedatasyncs.go +++ b/resources/ssm-resourcedatasyncs.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const SSMResourceDataSyncResource = "SSMResourceDataSync" diff --git a/resources/storagegateway-fileshares.go b/resources/storagegateway-fileshares.go index 46b4bcd1..60ce3357 100644 --- a/resources/storagegateway-fileshares.go +++ b/resources/storagegateway-fileshares.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const StorageGatewayFileShareResource = "StorageGatewayFileShare" diff --git a/resources/storagegateway-gateways.go b/resources/storagegateway-gateways.go index 8f66da68..23fdbed7 100644 --- a/resources/storagegateway-gateways.go +++ b/resources/storagegateway-gateways.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const StorageGatewayGatewayResource = "StorageGatewayGateway" diff --git a/resources/storagegateway-tapes.go b/resources/storagegateway-tapes.go index 5016e8c6..76077cb8 100644 --- a/resources/storagegateway-tapes.go +++ b/resources/storagegateway-tapes.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const StorageGatewayTapeResource = "StorageGatewayTape" diff --git a/resources/storagegateway-volumes.go b/resources/storagegateway-volumes.go index 2e96b83b..4f292640 100644 --- a/resources/storagegateway-volumes.go +++ b/resources/storagegateway-volumes.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const StorageGatewayVolumeResource = "StorageGatewayVolume" diff --git a/resources/transfer-server-user.go b/resources/transfer-server-user.go index 1664ee80..263d0c2a 100644 --- a/resources/transfer-server-user.go +++ b/resources/transfer-server-user.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const TransferServerUserResource = "TransferServerUser" diff --git a/resources/transfer-server.go b/resources/transfer-server.go index 8e5240e6..e4fe9008 100644 --- a/resources/transfer-server.go +++ b/resources/transfer-server.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const TransferServerResource = "TransferServer" diff --git a/resources/waf-rules.go b/resources/waf-rules.go index cb38b908..47d98cd3 100644 --- a/resources/waf-rules.go +++ b/resources/waf-rules.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const WAFRuleResource = "WAFRule" diff --git a/resources/waf-webacl-rule-attachments.go b/resources/waf-webacl-rule-attachments.go index b5bd57c9..e7ae98e1 100644 --- a/resources/waf-webacl-rule-attachments.go +++ b/resources/waf-webacl-rule-attachments.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const WAFWebACLRuleAttachmentResource = "WAFWebACLRuleAttachment" diff --git a/resources/waf-webacls.go b/resources/waf-webacls.go index 3f0c50b1..7c821217 100644 --- a/resources/waf-webacls.go +++ b/resources/waf-webacls.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const WAFWebACLResource = "WAFWebACL" diff --git a/resources/wafregional-byte-match-set-tuples.go b/resources/wafregional-byte-match-set-tuples.go index c5220ed2..c633416d 100644 --- a/resources/wafregional-byte-match-set-tuples.go +++ b/resources/wafregional-byte-match-set-tuples.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const WAFRegionalByteMatchSetIPResource = "WAFRegionalByteMatchSetIP" diff --git a/resources/wafregional-byte-match-sets.go b/resources/wafregional-byte-match-sets.go index 50308454..a78fbb6a 100644 --- a/resources/wafregional-byte-match-sets.go +++ b/resources/wafregional-byte-match-sets.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const WAFRegionalByteMatchSetResource = "WAFRegionalByteMatchSet" diff --git a/resources/wafregional-ip-set-ips.go b/resources/wafregional-ip-set-ips.go index 29905078..58a21b8d 100644 --- a/resources/wafregional-ip-set-ips.go +++ b/resources/wafregional-ip-set-ips.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const WAFRegionalIPSetIPResource = "WAFRegionalIPSetIP" diff --git a/resources/wafregional-ip-sets.go b/resources/wafregional-ip-sets.go index 798bbf13..83ef767f 100644 --- a/resources/wafregional-ip-sets.go +++ b/resources/wafregional-ip-sets.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const WAFRegionalIPSetResource = "WAFRegionalIPSet" diff --git a/resources/wafregional-rate-based-rule-predicates.go b/resources/wafregional-rate-based-rule-predicates.go index 649be642..d9df4d85 100644 --- a/resources/wafregional-rate-based-rule-predicates.go +++ b/resources/wafregional-rate-based-rule-predicates.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const WAFRegionalRateBasedRulePredicateResource = "WAFRegionalRateBasedRulePredicate" diff --git a/resources/wafregional-rate-based-rules.go b/resources/wafregional-rate-based-rules.go index dcf5baf8..532a3375 100644 --- a/resources/wafregional-rate-based-rules.go +++ b/resources/wafregional-rate-based-rules.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const WAFRegionalRateBasedRuleResource = "WAFRegionalRateBasedRule" diff --git a/resources/wafregional-regex-match-sets.go b/resources/wafregional-regex-match-sets.go index b18ce802..3849220e 100644 --- a/resources/wafregional-regex-match-sets.go +++ b/resources/wafregional-regex-match-sets.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const WAFRegionalRegexMatchSetResource = "WAFRegionalRegexMatchSet" //nolint:gosec,nolintlint diff --git a/resources/wafregional-regex-match-tuples.go b/resources/wafregional-regex-match-tuples.go index b365cd0e..ee509483 100644 --- a/resources/wafregional-regex-match-tuples.go +++ b/resources/wafregional-regex-match-tuples.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const WAFRegionalRegexMatchTupleResource = "WAFRegionalRegexMatchTuple" diff --git a/resources/wafregional-regex-pattern-sets.go b/resources/wafregional-regex-pattern-sets.go index d94313de..0cc193dd 100644 --- a/resources/wafregional-regex-pattern-sets.go +++ b/resources/wafregional-regex-pattern-sets.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const WAFRegionalRegexPatternSetResource = "WAFRegionalRegexPatternSet" diff --git a/resources/wafregional-regex-pattern-tuples.go b/resources/wafregional-regex-pattern-tuples.go index b5870c79..204c570f 100644 --- a/resources/wafregional-regex-pattern-tuples.go +++ b/resources/wafregional-regex-pattern-tuples.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const WAFRegionalRegexPatternStringResource = "WAFRegionalRegexPatternString" diff --git a/resources/wafregional-rule-predicates.go b/resources/wafregional-rule-predicates.go index ad8cc64f..746f8eda 100644 --- a/resources/wafregional-rule-predicates.go +++ b/resources/wafregional-rule-predicates.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const WAFRegionalRulePredicateResource = "WAFRegionalRulePredicate" diff --git a/resources/wafregional-rulegroup.go b/resources/wafregional-rulegroup.go index 21adf5bf..596e459a 100644 --- a/resources/wafregional-rulegroup.go +++ b/resources/wafregional-rulegroup.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const WAFRegionalRuleGroupResource = "WAFRegionalRuleGroup" diff --git a/resources/wafregional-rules.go b/resources/wafregional-rules.go index b8137330..b1cb87a9 100644 --- a/resources/wafregional-rules.go +++ b/resources/wafregional-rules.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const WAFRegionalRuleResource = "WAFRegionalRule" diff --git a/resources/wafregional-webacl-rule-attachments.go b/resources/wafregional-webacl-rule-attachments.go index 379ba6e0..adef3f32 100644 --- a/resources/wafregional-webacl-rule-attachments.go +++ b/resources/wafregional-webacl-rule-attachments.go @@ -12,7 +12,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const WAFRegionalWebACLRuleAttachmentResource = "WAFRegionalWebACLRuleAttachment" diff --git a/resources/wafregional-webacls.go b/resources/wafregional-webacls.go index 16e2b865..09293fa6 100644 --- a/resources/wafregional-webacls.go +++ b/resources/wafregional-webacls.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type WAFRegionalWebACL struct { diff --git a/resources/wafv2-ipsets.go b/resources/wafv2-ipsets.go index 03310e04..07080fb5 100644 --- a/resources/wafv2-ipsets.go +++ b/resources/wafv2-ipsets.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const WAFv2IPSetResource = "WAFv2IPSet" diff --git a/resources/wafv2-regex-pattern-sets.go b/resources/wafv2-regex-pattern-sets.go index cf3b5543..0f0d7f9e 100644 --- a/resources/wafv2-regex-pattern-sets.go +++ b/resources/wafv2-regex-pattern-sets.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const WAFv2RegexPatternSetResource = "WAFv2RegexPatternSet" diff --git a/resources/wafv2-rulegroup.go b/resources/wafv2-rulegroup.go index 03e3d4a0..ab1551de 100644 --- a/resources/wafv2-rulegroup.go +++ b/resources/wafv2-rulegroup.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const WAFv2RuleGroupResource = "WAFv2RuleGroup" diff --git a/resources/wafv2-webacls.go b/resources/wafv2-webacls.go index a47b1bf3..8aaed46e 100644 --- a/resources/wafv2-webacls.go +++ b/resources/wafv2-webacls.go @@ -10,7 +10,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const WAFv2WebACLResource = "WAFv2WebACL" diff --git a/resources/workspaces-workspaces.go b/resources/workspaces-workspaces.go index fb613e98..5fbc2511 100644 --- a/resources/workspaces-workspaces.go +++ b/resources/workspaces-workspaces.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const WorkSpacesWorkspaceResource = "WorkSpacesWorkspace" diff --git a/resources/xray-group.go b/resources/xray-group.go index 4fd295bd..442a38d0 100644 --- a/resources/xray-group.go +++ b/resources/xray-group.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const XRayGroupResource = "XRayGroup" diff --git a/resources/xray-sampling-rule.go b/resources/xray-sampling-rule.go index 3d6870ac..551e2b1b 100644 --- a/resources/xray-sampling-rule.go +++ b/resources/xray-sampling-rule.go @@ -9,7 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const XRaySamplingRuleResource = "XRaySamplingRule" From c850156f2169f2c2be0cc5de1aa15a5f4e0dbf3c Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 21 Jun 2024 17:14:04 -0600 Subject: [PATCH 329/617] fix(deps): update module github.com/ekristen/libnuke to v0.17.0 --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index ba62e563..9f6a02e7 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.21.6 require ( github.com/aws/aws-sdk-go v1.53.19 - github.com/ekristen/libnuke v0.15.1 + github.com/ekristen/libnuke v0.17.0 github.com/fatih/color v1.17.0 github.com/golang/mock v1.6.0 github.com/google/uuid v1.6.0 diff --git a/go.sum b/go.sum index abd697ba..d0b369fa 100644 --- a/go.sum +++ b/go.sum @@ -20,6 +20,8 @@ github.com/ekristen/libnuke v0.15.0 h1:YiQo8E32cZucz1UI14OPikSRl1UoyIp02rntrVeX3 github.com/ekristen/libnuke v0.15.0/go.mod h1:riI1tjCf6r+et/9oUBd1vQeFmn2Sn6UeFUR0nWkMeYw= github.com/ekristen/libnuke v0.15.1 h1:qOfGxnFYuCGaFW4g+J6QHvphhkHoeb0i5Z7VuaIOGSQ= github.com/ekristen/libnuke v0.15.1/go.mod h1:riI1tjCf6r+et/9oUBd1vQeFmn2Sn6UeFUR0nWkMeYw= +github.com/ekristen/libnuke v0.17.0 h1:DrTHsRh7eHBIbCKwrzpTzAdngDUAnnq61J/1I3+kDTM= +github.com/ekristen/libnuke v0.17.0/go.mod h1:riI1tjCf6r+et/9oUBd1vQeFmn2Sn6UeFUR0nWkMeYw= github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4= From e6543698b0d0d0699a206da1fcaa3e04d56d1d70 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 21 Jun 2024 17:14:45 -0600 Subject: [PATCH 330/617] refactor: use setting get bool instead of get to avoid nil pointer --- resources/cloudformation-stack.go | 2 +- resources/ec2-image.go | 16 ++++++++-------- resources/ec2-instance.go | 4 ++-- resources/elbv2-alb.go | 2 +- resources/lightsail-instances.go | 5 +++-- resources/qldb-ledger.go | 2 +- resources/quicksight-subscriptions.go | 2 +- resources/rds-instances.go | 2 +- 8 files changed, 18 insertions(+), 17 deletions(-) diff --git a/resources/cloudformation-stack.go b/resources/cloudformation-stack.go index d7a53510..cdbc7559 100644 --- a/resources/cloudformation-stack.go +++ b/resources/cloudformation-stack.go @@ -106,7 +106,7 @@ func (cfs *CloudFormationStack) removeWithAttempts(attempt int) error { if ok && awsErr.Code() == "ValidationError" && awsErr.Message() == "Stack ["+*cfs.stack.StackName+"] cannot be deleted while TerminationProtection is enabled" { // check if the setting for the resource is set to allow deletion protection to be disabled - if cfs.settings.Get("DisableDeletionProtection").(bool) { + if cfs.settings.GetBool("DisableDeletionProtection") { logrus.Infof("CloudFormationStack stackName=%s attempt=%d maxAttempts=%d updating termination protection", *cfs.stack.StackName, attempt, cfs.maxDeleteAttempts) _, err = cfs.svc.UpdateTerminationProtection(&cloudformation.UpdateTerminationProtectionInput{ diff --git a/resources/ec2-image.go b/resources/ec2-image.go index 3412ee7c..1b477500 100644 --- a/resources/ec2-image.go +++ b/resources/ec2-image.go @@ -95,7 +95,7 @@ type EC2Image struct { } func (e *EC2Image) Filter() error { - if *e.state == "pending" { + if ptr.ToString(e.state) == "pending" { return fmt.Errorf("ineligible state for removal") } @@ -104,19 +104,19 @@ func (e *EC2Image) Filter() error { strings.ReplaceAll(*e.deregistrationProtection, "disabled after ", "")) } - if *e.deregistrationProtection != ec2.ImageStateDisabled { - if e.settings.Get(DisableDeregistrationProtectionSetting) == nil || - (e.settings.Get(DisableDeregistrationProtectionSetting) != nil && - !e.settings.Get(DisableDeregistrationProtectionSetting).(bool)) { + if ptr.ToString(e.deregistrationProtection) != ec2.ImageStateDisabled { + if !e.settings.GetBool(DisableDeregistrationProtectionSetting) || !e.settings.GetBool(DisableDeregistrationProtectionSetting) { return fmt.Errorf("deregistration protection is enabled") } } - if !e.settings.Get(IncludeDeprecatedSetting).(bool) && e.deprecated != nil && *e.deprecated { + // TODO(v4): enable by default + if !e.settings.GetBool(IncludeDeprecatedSetting) && ptr.ToBool(e.deprecated) { return fmt.Errorf("excluded by %s setting being false", IncludeDeprecatedSetting) } - if !e.settings.Get(IncludeDisabledSetting).(bool) && e.state != nil && *e.state == ec2.ImageStateDisabled { + // TODO(v4): enable by default + if !e.settings.GetBool(IncludeDisabledSetting) && ptr.ToString(e.state) == ec2.ImageStateDisabled { return fmt.Errorf("excluded by %s setting being false", IncludeDisabledSetting) } @@ -144,7 +144,7 @@ func (e *EC2Image) removeDeregistrationProtection() error { return nil } - if !e.settings.Get(DisableDeregistrationProtectionSetting).(bool) { + if !e.settings.GetBool(DisableDeregistrationProtectionSetting) { return nil } diff --git a/resources/ec2-instance.go b/resources/ec2-instance.go index 6f48e6ac..a054f9fb 100644 --- a/resources/ec2-instance.go +++ b/resources/ec2-instance.go @@ -102,7 +102,7 @@ func (i *EC2Instance) Remove(_ context.Context) error { if ok && awsErr.Code() == awsutil.ErrCodeOperationNotPermitted && awsErr.Message() == "The instance '"+*i.instance.InstanceId+"' may not be "+ "terminated. Modify its 'disableApiTermination' instance attribute and "+ - "try again." && i.settings.Get("DisableDeletionProtection").(bool) { + "try again." && i.settings.GetBool("DisableDeletionProtection") { termErr := i.DisableTerminationProtection() if termErr != nil { return termErr @@ -119,7 +119,7 @@ func (i *EC2Instance) Remove(_ context.Context) error { if ok && awsErr.Code() == "OperationNotPermitted" && awsErr.Message() == "The instance '"+*i.instance.InstanceId+"' may not be "+ "terminated. Modify its 'disableApiStop' instance attribute and try "+ - "again." && i.settings.Get("DisableStopProtection").(bool) { + "again." && i.settings.GetBool("DisableStopProtection") { stopErr := i.DisableStopProtection() if stopErr != nil { return stopErr diff --git a/resources/elbv2-alb.go b/resources/elbv2-alb.go index 8e03c579..bc495d1b 100644 --- a/resources/elbv2-alb.go +++ b/resources/elbv2-alb.go @@ -97,7 +97,7 @@ func (e *ELBv2LoadBalancer) Remove(_ context.Context) error { } if _, err := e.svc.DeleteLoadBalancer(params); err != nil { - if e.settings.Get("DisableDeletionProtection").(bool) { + if e.settings.GetBool("DisableDeletionProtection") { var awsErr awserr.Error ok := errors.As(err, &awsErr) if ok && awsErr.Code() == "OperationNotPermitted" && diff --git a/resources/lightsail-instances.go b/resources/lightsail-instances.go index 285e1687..e1bd40e1 100644 --- a/resources/lightsail-instances.go +++ b/resources/lightsail-instances.go @@ -3,7 +3,8 @@ package resources import ( "context" - "github.com/aws/aws-sdk-go/aws" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/service/lightsail" "github.com/ekristen/libnuke/pkg/registry" @@ -73,7 +74,7 @@ func (f *LightsailInstance) Settings(setting *libsettings.Setting) { func (f *LightsailInstance) Remove(_ context.Context) error { _, err := f.svc.DeleteInstance(&lightsail.DeleteInstanceInput{ InstanceName: f.instanceName, - ForceDeleteAddOns: aws.Bool(f.settings.Get("ForceDeleteAddOns").(bool)), + ForceDeleteAddOns: ptr.Bool(f.settings.GetBool("ForceDeleteAddOns")), }) return err diff --git a/resources/qldb-ledger.go b/resources/qldb-ledger.go index 78ed326b..c1ae7966 100644 --- a/resources/qldb-ledger.go +++ b/resources/qldb-ledger.go @@ -74,7 +74,7 @@ func (l *QLDBLedger) Settings(setting *libsettings.Setting) { } func (l *QLDBLedger) Remove(_ context.Context) error { - if aws.BoolValue(l.ledger.DeletionProtection) && l.settings.Get("DisableDeletionProtection").(bool) { + if aws.BoolValue(l.ledger.DeletionProtection) && l.settings.GetBool("DisableDeletionProtection") { modifyParams := &qldb.UpdateLedgerInput{ DeletionProtection: aws.Bool(false), Name: l.ledger.Name, diff --git a/resources/quicksight-subscriptions.go b/resources/quicksight-subscriptions.go index 7b48d308..be8a614c 100644 --- a/resources/quicksight-subscriptions.go +++ b/resources/quicksight-subscriptions.go @@ -99,7 +99,7 @@ func (l *QuickSightSubscriptionLister) List(_ context.Context, o interface{}) ([ } func (r *QuickSightSubscription) Remove(_ context.Context) error { - if r.settings != nil && r.settings.Get("DisableTerminationProtection").(bool) { + if r.settings != nil && r.settings.GetBool("DisableTerminationProtection") { err := r.DisableTerminationProtection() if err != nil { return err diff --git a/resources/rds-instances.go b/resources/rds-instances.go index 19b27f31..599d1c3b 100644 --- a/resources/rds-instances.go +++ b/resources/rds-instances.go @@ -74,7 +74,7 @@ func (i *RDSInstance) Settings(settings *libsettings.Setting) { } func (i *RDSInstance) Remove(_ context.Context) error { - if aws.BoolValue(i.instance.DeletionProtection) && i.settings.Get("DisableDeletionProtection").(bool) { + if aws.BoolValue(i.instance.DeletionProtection) && i.settings.GetBool("DisableDeletionProtection") { modifyParams := &rds.ModifyDBInstanceInput{ DBInstanceIdentifier: i.instance.DBInstanceIdentifier, DeletionProtection: aws.Bool(false), From 254c3c273e071e7972ba9fb16bf899e6a8a609c4 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 21 Jun 2024 17:50:22 -0600 Subject: [PATCH 331/617] fix(deps): update module github.com/ekristen/libnuke to v0.17.1 --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 9f6a02e7..d7acde27 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.21.6 require ( github.com/aws/aws-sdk-go v1.53.19 - github.com/ekristen/libnuke v0.17.0 + github.com/ekristen/libnuke v0.17.1 github.com/fatih/color v1.17.0 github.com/golang/mock v1.6.0 github.com/google/uuid v1.6.0 diff --git a/go.sum b/go.sum index d0b369fa..f699f3c4 100644 --- a/go.sum +++ b/go.sum @@ -22,6 +22,8 @@ github.com/ekristen/libnuke v0.15.1 h1:qOfGxnFYuCGaFW4g+J6QHvphhkHoeb0i5Z7VuaIOG github.com/ekristen/libnuke v0.15.1/go.mod h1:riI1tjCf6r+et/9oUBd1vQeFmn2Sn6UeFUR0nWkMeYw= github.com/ekristen/libnuke v0.17.0 h1:DrTHsRh7eHBIbCKwrzpTzAdngDUAnnq61J/1I3+kDTM= github.com/ekristen/libnuke v0.17.0/go.mod h1:riI1tjCf6r+et/9oUBd1vQeFmn2Sn6UeFUR0nWkMeYw= +github.com/ekristen/libnuke v0.17.1 h1:bEroAfJ18eEKq+1B6n1QSJi9NvwIu9RFUxwOrjwn1xI= +github.com/ekristen/libnuke v0.17.1/go.mod h1:riI1tjCf6r+et/9oUBd1vQeFmn2Sn6UeFUR0nWkMeYw= github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4= From 8a0bfaa1a2ee860bbd0490e25e12cc589c20a09b Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 21 Jun 2024 18:01:02 -0600 Subject: [PATCH 332/617] fix: if logic around deregistration protection --- resources/ec2-image.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/resources/ec2-image.go b/resources/ec2-image.go index 1b477500..b44bc491 100644 --- a/resources/ec2-image.go +++ b/resources/ec2-image.go @@ -104,10 +104,9 @@ func (e *EC2Image) Filter() error { strings.ReplaceAll(*e.deregistrationProtection, "disabled after ", "")) } - if ptr.ToString(e.deregistrationProtection) != ec2.ImageStateDisabled { - if !e.settings.GetBool(DisableDeregistrationProtectionSetting) || !e.settings.GetBool(DisableDeregistrationProtectionSetting) { - return fmt.Errorf("deregistration protection is enabled") - } + if ptr.ToString(e.deregistrationProtection) != ec2.ImageStateDisabled && + !e.settings.GetBool(DisableDeregistrationProtectionSetting) { + return fmt.Errorf("deregistration protection is enabled") } // TODO(v4): enable by default From c7cf88577d806f7d5d55193eeb8427284c588b44 Mon Sep 17 00:00:00 2001 From: Sunny Date: Mon, 24 Jun 2024 15:19:33 +0000 Subject: [PATCH 333/617] fix: set config logger Config logger ensures that logs during config loading get printed. --- pkg/commands/nuke/nuke.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/commands/nuke/nuke.go b/pkg/commands/nuke/nuke.go index 3a4f6237..b0d17340 100644 --- a/pkg/commands/nuke/nuke.go +++ b/pkg/commands/nuke/nuke.go @@ -73,6 +73,7 @@ func execute(c *cli.Context) error { //nolint:funlen,gocyclo parsedConfig, err := config.New(libconfig.Options{ Path: c.Path("config"), Deprecations: registry.GetDeprecatedResourceTypeMapping(), + Log: logrus.WithField("component", "config"), }) if err != nil { logrus.Errorf("Failed to parse config file %s", c.Path("config")) From ddbbdcd7163073ff924baf16d95c633ccb8c4841 Mon Sep 17 00:00:00 2001 From: Sunny Date: Tue, 25 Jun 2024 19:36:39 +0000 Subject: [PATCH 334/617] docs: fix go import indentations in example Fix the Go import indentations in the example code snippet of the CONTRIBUTING doc. --- CONTRIBUTING.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index be84f5d0..c2104661 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -111,15 +111,15 @@ use `go fmt` before committing any change. package example import ( - "context" + "context" + + "github.com/sirupsen/logrus" - "github.com/sirupsen/logrus" - "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/s3" - + "github.com/ekristen/libnuke/pkg/settings" - + "github.com/ekristen/aws-nuke/pkg/types" ) ``` From 30e1dbe96c86fab592b4e9f9ba394d780bafc6d9 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sat, 6 Jul 2024 10:11:47 -0600 Subject: [PATCH 335/617] feat(kms-alias): support pagination --- resources/kms-aliases.go | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/resources/kms-aliases.go b/resources/kms-aliases.go index 715d9a03..c9ee72f0 100644 --- a/resources/kms-aliases.go +++ b/resources/kms-aliases.go @@ -6,8 +6,6 @@ import ( "fmt" "strings" - "github.com/gotidy/ptr" - "github.com/aws/aws-sdk-go/service/kms" "github.com/ekristen/libnuke/pkg/registry" @@ -34,29 +32,30 @@ func (l *KMSAliasLister) List(_ context.Context, o interface{}) ([]resource.Reso svc := kms.New(opts.Session) - resp, err := svc.ListAliases(nil) + resources := make([]resource.Resource, 0) + err := svc.ListAliasesPages(nil, func(page *kms.ListAliasesOutput, lastPage bool) bool { + for _, alias := range page.Aliases { + resources = append(resources, &KMSAlias{ + svc: svc, + name: alias.AliasName, + }) + } + return true + }) if err != nil { return nil, err } - resources := make([]resource.Resource, 0) - for _, alias := range resp.Aliases { - resources = append(resources, &KMSAlias{ - svc: svc, - name: ptr.ToString(alias.AliasName), - }) - } - return resources, nil } type KMSAlias struct { svc *kms.KMS - name string + name *string } func (e *KMSAlias) Filter() error { - if strings.HasPrefix(e.name, "alias/aws/") { + if strings.HasPrefix(*e.name, "alias/aws/") { return fmt.Errorf("cannot delete AWS alias") } return nil @@ -64,13 +63,13 @@ func (e *KMSAlias) Filter() error { func (e *KMSAlias) Remove(_ context.Context) error { _, err := e.svc.DeleteAlias(&kms.DeleteAliasInput{ - AliasName: &e.name, + AliasName: e.name, }) return err } func (e *KMSAlias) String() string { - return e.name + return *e.name } func (e *KMSAlias) Properties() types.Properties { From 90fc02d4e29ce5daf09f178ecef8903745ccf8b0 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 8 Jul 2024 10:40:39 -0600 Subject: [PATCH 336/617] test(sagemaker): fix reference to proper service name --- resources/sagemaker_mock_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/sagemaker_mock_test.go b/resources/sagemaker_mock_test.go index b62f76f6..3ce5f6dc 100644 --- a/resources/sagemaker_mock_test.go +++ b/resources/sagemaker_mock_test.go @@ -1,4 +1,4 @@ //go:generate ../mocks/generate_mocks.sh sagemaker sagemakeriface package resources -// Note: empty on purpose, this file exist purely to generate mocks for the CloudFormation service +// Note: empty on purpose, this file exist purely to generate mocks for the SageMaker service From 5423856ad37eab81363b8b58cfe639630d6554da Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 8 Jul 2024 10:41:14 -0600 Subject: [PATCH 337/617] fix(secretsmanager-secret): prevent nil pointer on listing secrets --- resources/secretsmanager-secret.go | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/resources/secretsmanager-secret.go b/resources/secretsmanager-secret.go index 9817bc71..16bee586 100644 --- a/resources/secretsmanager-secret.go +++ b/resources/secretsmanager-secret.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/secretsmanager" + "github.com/aws/aws-sdk-go/service/secretsmanager/secretsmanageriface" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" @@ -26,12 +27,20 @@ func init() { }) } -type SecretsManagerSecretLister struct{} +type SecretsManagerSecretLister struct { + mockSvc secretsmanageriface.SecretsManagerAPI +} func (l *SecretsManagerSecretLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) - svc := secretsmanager.New(opts.Session) + var svc secretsmanageriface.SecretsManagerAPI + if l.mockSvc != nil { + svc = l.mockSvc + } else { + svc = secretsmanager.New(opts.Session) + } + resources := make([]resource.Resource, 0) params := &secretsmanager.ListSecretsInput{ @@ -47,11 +56,14 @@ func (l *SecretsManagerSecretLister) List(_ context.Context, o interface{}) ([]r for _, secret := range output.SecretList { replica := false var primarySvc *secretsmanager.SecretsManager - if opts.Region.Name != *secret.PrimaryRegion { + + // Note: if primary region is not set, then the secret is not a replica + primaryRegion := ptr.ToString(secret.PrimaryRegion) + if primaryRegion != "" && opts.Region.Name != primaryRegion { replica = true primaryCfg := opts.Session.Copy(&aws.Config{ - Region: aws.String(*secret.PrimaryRegion), + Region: secret.PrimaryRegion, }) primarySvc = secretsmanager.New(primaryCfg) @@ -80,8 +92,8 @@ func (l *SecretsManagerSecretLister) List(_ context.Context, o interface{}) ([]r } type SecretsManagerSecret struct { - svc *secretsmanager.SecretsManager - primarySvc *secretsmanager.SecretsManager + svc secretsmanageriface.SecretsManagerAPI + primarySvc secretsmanageriface.SecretsManagerAPI region *string ARN *string Name *string From e6f4b6551ba203e34de715b587aa133a163f1cca Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 8 Jul 2024 10:42:11 -0600 Subject: [PATCH 338/617] test(secretsmanager-secret): add tests for lister and remove for primary and replica --- mocks/mock_secretsmanageriface/mock.go | 1286 ++++++++++++++++++ resources/secretsmanager-secret_mock_test.go | 116 ++ resources/secretsmanager_mock_test.go | 4 + 3 files changed, 1406 insertions(+) create mode 100644 mocks/mock_secretsmanageriface/mock.go create mode 100644 resources/secretsmanager-secret_mock_test.go create mode 100644 resources/secretsmanager_mock_test.go diff --git a/mocks/mock_secretsmanageriface/mock.go b/mocks/mock_secretsmanageriface/mock.go new file mode 100644 index 00000000..a983f438 --- /dev/null +++ b/mocks/mock_secretsmanageriface/mock.go @@ -0,0 +1,1286 @@ +// Code generated by MockGen. DO NOT EDIT. +// Source: /Users/ekristen/go/pkg/mod/github.com/aws/aws-sdk-go@v1.53.19/service/secretsmanager/secretsmanageriface/interface.go + +// Package mock_secretsmanageriface is a generated GoMock package. +package mock_secretsmanageriface + +import ( + reflect "reflect" + + aws "github.com/aws/aws-sdk-go/aws" + request "github.com/aws/aws-sdk-go/aws/request" + secretsmanager "github.com/aws/aws-sdk-go/service/secretsmanager" + gomock "github.com/golang/mock/gomock" +) + +// MockSecretsManagerAPI is a mock of SecretsManagerAPI interface. +type MockSecretsManagerAPI struct { + ctrl *gomock.Controller + recorder *MockSecretsManagerAPIMockRecorder +} + +// MockSecretsManagerAPIMockRecorder is the mock recorder for MockSecretsManagerAPI. +type MockSecretsManagerAPIMockRecorder struct { + mock *MockSecretsManagerAPI +} + +// NewMockSecretsManagerAPI creates a new mock instance. +func NewMockSecretsManagerAPI(ctrl *gomock.Controller) *MockSecretsManagerAPI { + mock := &MockSecretsManagerAPI{ctrl: ctrl} + mock.recorder = &MockSecretsManagerAPIMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockSecretsManagerAPI) EXPECT() *MockSecretsManagerAPIMockRecorder { + return m.recorder +} + +// BatchGetSecretValue mocks base method. +func (m *MockSecretsManagerAPI) BatchGetSecretValue(arg0 *secretsmanager.BatchGetSecretValueInput) (*secretsmanager.BatchGetSecretValueOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchGetSecretValue", arg0) + ret0, _ := ret[0].(*secretsmanager.BatchGetSecretValueOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchGetSecretValue indicates an expected call of BatchGetSecretValue. +func (mr *MockSecretsManagerAPIMockRecorder) BatchGetSecretValue(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetSecretValue", reflect.TypeOf((*MockSecretsManagerAPI)(nil).BatchGetSecretValue), arg0) +} + +// BatchGetSecretValuePages mocks base method. +func (m *MockSecretsManagerAPI) BatchGetSecretValuePages(arg0 *secretsmanager.BatchGetSecretValueInput, arg1 func(*secretsmanager.BatchGetSecretValueOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchGetSecretValuePages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// BatchGetSecretValuePages indicates an expected call of BatchGetSecretValuePages. +func (mr *MockSecretsManagerAPIMockRecorder) BatchGetSecretValuePages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetSecretValuePages", reflect.TypeOf((*MockSecretsManagerAPI)(nil).BatchGetSecretValuePages), arg0, arg1) +} + +// BatchGetSecretValuePagesWithContext mocks base method. +func (m *MockSecretsManagerAPI) BatchGetSecretValuePagesWithContext(arg0 aws.Context, arg1 *secretsmanager.BatchGetSecretValueInput, arg2 func(*secretsmanager.BatchGetSecretValueOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "BatchGetSecretValuePagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// BatchGetSecretValuePagesWithContext indicates an expected call of BatchGetSecretValuePagesWithContext. +func (mr *MockSecretsManagerAPIMockRecorder) BatchGetSecretValuePagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetSecretValuePagesWithContext", reflect.TypeOf((*MockSecretsManagerAPI)(nil).BatchGetSecretValuePagesWithContext), varargs...) +} + +// BatchGetSecretValueRequest mocks base method. +func (m *MockSecretsManagerAPI) BatchGetSecretValueRequest(arg0 *secretsmanager.BatchGetSecretValueInput) (*request.Request, *secretsmanager.BatchGetSecretValueOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchGetSecretValueRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*secretsmanager.BatchGetSecretValueOutput) + return ret0, ret1 +} + +// BatchGetSecretValueRequest indicates an expected call of BatchGetSecretValueRequest. +func (mr *MockSecretsManagerAPIMockRecorder) BatchGetSecretValueRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetSecretValueRequest", reflect.TypeOf((*MockSecretsManagerAPI)(nil).BatchGetSecretValueRequest), arg0) +} + +// BatchGetSecretValueWithContext mocks base method. +func (m *MockSecretsManagerAPI) BatchGetSecretValueWithContext(arg0 aws.Context, arg1 *secretsmanager.BatchGetSecretValueInput, arg2 ...request.Option) (*secretsmanager.BatchGetSecretValueOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "BatchGetSecretValueWithContext", varargs...) + ret0, _ := ret[0].(*secretsmanager.BatchGetSecretValueOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchGetSecretValueWithContext indicates an expected call of BatchGetSecretValueWithContext. +func (mr *MockSecretsManagerAPIMockRecorder) BatchGetSecretValueWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetSecretValueWithContext", reflect.TypeOf((*MockSecretsManagerAPI)(nil).BatchGetSecretValueWithContext), varargs...) +} + +// CancelRotateSecret mocks base method. +func (m *MockSecretsManagerAPI) CancelRotateSecret(arg0 *secretsmanager.CancelRotateSecretInput) (*secretsmanager.CancelRotateSecretOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CancelRotateSecret", arg0) + ret0, _ := ret[0].(*secretsmanager.CancelRotateSecretOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CancelRotateSecret indicates an expected call of CancelRotateSecret. +func (mr *MockSecretsManagerAPIMockRecorder) CancelRotateSecret(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelRotateSecret", reflect.TypeOf((*MockSecretsManagerAPI)(nil).CancelRotateSecret), arg0) +} + +// CancelRotateSecretRequest mocks base method. +func (m *MockSecretsManagerAPI) CancelRotateSecretRequest(arg0 *secretsmanager.CancelRotateSecretInput) (*request.Request, *secretsmanager.CancelRotateSecretOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CancelRotateSecretRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*secretsmanager.CancelRotateSecretOutput) + return ret0, ret1 +} + +// CancelRotateSecretRequest indicates an expected call of CancelRotateSecretRequest. +func (mr *MockSecretsManagerAPIMockRecorder) CancelRotateSecretRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelRotateSecretRequest", reflect.TypeOf((*MockSecretsManagerAPI)(nil).CancelRotateSecretRequest), arg0) +} + +// CancelRotateSecretWithContext mocks base method. +func (m *MockSecretsManagerAPI) CancelRotateSecretWithContext(arg0 aws.Context, arg1 *secretsmanager.CancelRotateSecretInput, arg2 ...request.Option) (*secretsmanager.CancelRotateSecretOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CancelRotateSecretWithContext", varargs...) + ret0, _ := ret[0].(*secretsmanager.CancelRotateSecretOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CancelRotateSecretWithContext indicates an expected call of CancelRotateSecretWithContext. +func (mr *MockSecretsManagerAPIMockRecorder) CancelRotateSecretWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelRotateSecretWithContext", reflect.TypeOf((*MockSecretsManagerAPI)(nil).CancelRotateSecretWithContext), varargs...) +} + +// CreateSecret mocks base method. +func (m *MockSecretsManagerAPI) CreateSecret(arg0 *secretsmanager.CreateSecretInput) (*secretsmanager.CreateSecretOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateSecret", arg0) + ret0, _ := ret[0].(*secretsmanager.CreateSecretOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateSecret indicates an expected call of CreateSecret. +func (mr *MockSecretsManagerAPIMockRecorder) CreateSecret(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateSecret", reflect.TypeOf((*MockSecretsManagerAPI)(nil).CreateSecret), arg0) +} + +// CreateSecretRequest mocks base method. +func (m *MockSecretsManagerAPI) CreateSecretRequest(arg0 *secretsmanager.CreateSecretInput) (*request.Request, *secretsmanager.CreateSecretOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateSecretRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*secretsmanager.CreateSecretOutput) + return ret0, ret1 +} + +// CreateSecretRequest indicates an expected call of CreateSecretRequest. +func (mr *MockSecretsManagerAPIMockRecorder) CreateSecretRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateSecretRequest", reflect.TypeOf((*MockSecretsManagerAPI)(nil).CreateSecretRequest), arg0) +} + +// CreateSecretWithContext mocks base method. +func (m *MockSecretsManagerAPI) CreateSecretWithContext(arg0 aws.Context, arg1 *secretsmanager.CreateSecretInput, arg2 ...request.Option) (*secretsmanager.CreateSecretOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateSecretWithContext", varargs...) + ret0, _ := ret[0].(*secretsmanager.CreateSecretOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateSecretWithContext indicates an expected call of CreateSecretWithContext. +func (mr *MockSecretsManagerAPIMockRecorder) CreateSecretWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateSecretWithContext", reflect.TypeOf((*MockSecretsManagerAPI)(nil).CreateSecretWithContext), varargs...) +} + +// DeleteResourcePolicy mocks base method. +func (m *MockSecretsManagerAPI) DeleteResourcePolicy(arg0 *secretsmanager.DeleteResourcePolicyInput) (*secretsmanager.DeleteResourcePolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteResourcePolicy", arg0) + ret0, _ := ret[0].(*secretsmanager.DeleteResourcePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteResourcePolicy indicates an expected call of DeleteResourcePolicy. +func (mr *MockSecretsManagerAPIMockRecorder) DeleteResourcePolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteResourcePolicy", reflect.TypeOf((*MockSecretsManagerAPI)(nil).DeleteResourcePolicy), arg0) +} + +// DeleteResourcePolicyRequest mocks base method. +func (m *MockSecretsManagerAPI) DeleteResourcePolicyRequest(arg0 *secretsmanager.DeleteResourcePolicyInput) (*request.Request, *secretsmanager.DeleteResourcePolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteResourcePolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*secretsmanager.DeleteResourcePolicyOutput) + return ret0, ret1 +} + +// DeleteResourcePolicyRequest indicates an expected call of DeleteResourcePolicyRequest. +func (mr *MockSecretsManagerAPIMockRecorder) DeleteResourcePolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteResourcePolicyRequest", reflect.TypeOf((*MockSecretsManagerAPI)(nil).DeleteResourcePolicyRequest), arg0) +} + +// DeleteResourcePolicyWithContext mocks base method. +func (m *MockSecretsManagerAPI) DeleteResourcePolicyWithContext(arg0 aws.Context, arg1 *secretsmanager.DeleteResourcePolicyInput, arg2 ...request.Option) (*secretsmanager.DeleteResourcePolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteResourcePolicyWithContext", varargs...) + ret0, _ := ret[0].(*secretsmanager.DeleteResourcePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteResourcePolicyWithContext indicates an expected call of DeleteResourcePolicyWithContext. +func (mr *MockSecretsManagerAPIMockRecorder) DeleteResourcePolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteResourcePolicyWithContext", reflect.TypeOf((*MockSecretsManagerAPI)(nil).DeleteResourcePolicyWithContext), varargs...) +} + +// DeleteSecret mocks base method. +func (m *MockSecretsManagerAPI) DeleteSecret(arg0 *secretsmanager.DeleteSecretInput) (*secretsmanager.DeleteSecretOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteSecret", arg0) + ret0, _ := ret[0].(*secretsmanager.DeleteSecretOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteSecret indicates an expected call of DeleteSecret. +func (mr *MockSecretsManagerAPIMockRecorder) DeleteSecret(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSecret", reflect.TypeOf((*MockSecretsManagerAPI)(nil).DeleteSecret), arg0) +} + +// DeleteSecretRequest mocks base method. +func (m *MockSecretsManagerAPI) DeleteSecretRequest(arg0 *secretsmanager.DeleteSecretInput) (*request.Request, *secretsmanager.DeleteSecretOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteSecretRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*secretsmanager.DeleteSecretOutput) + return ret0, ret1 +} + +// DeleteSecretRequest indicates an expected call of DeleteSecretRequest. +func (mr *MockSecretsManagerAPIMockRecorder) DeleteSecretRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSecretRequest", reflect.TypeOf((*MockSecretsManagerAPI)(nil).DeleteSecretRequest), arg0) +} + +// DeleteSecretWithContext mocks base method. +func (m *MockSecretsManagerAPI) DeleteSecretWithContext(arg0 aws.Context, arg1 *secretsmanager.DeleteSecretInput, arg2 ...request.Option) (*secretsmanager.DeleteSecretOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteSecretWithContext", varargs...) + ret0, _ := ret[0].(*secretsmanager.DeleteSecretOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteSecretWithContext indicates an expected call of DeleteSecretWithContext. +func (mr *MockSecretsManagerAPIMockRecorder) DeleteSecretWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSecretWithContext", reflect.TypeOf((*MockSecretsManagerAPI)(nil).DeleteSecretWithContext), varargs...) +} + +// DescribeSecret mocks base method. +func (m *MockSecretsManagerAPI) DescribeSecret(arg0 *secretsmanager.DescribeSecretInput) (*secretsmanager.DescribeSecretOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeSecret", arg0) + ret0, _ := ret[0].(*secretsmanager.DescribeSecretOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeSecret indicates an expected call of DescribeSecret. +func (mr *MockSecretsManagerAPIMockRecorder) DescribeSecret(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeSecret", reflect.TypeOf((*MockSecretsManagerAPI)(nil).DescribeSecret), arg0) +} + +// DescribeSecretRequest mocks base method. +func (m *MockSecretsManagerAPI) DescribeSecretRequest(arg0 *secretsmanager.DescribeSecretInput) (*request.Request, *secretsmanager.DescribeSecretOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeSecretRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*secretsmanager.DescribeSecretOutput) + return ret0, ret1 +} + +// DescribeSecretRequest indicates an expected call of DescribeSecretRequest. +func (mr *MockSecretsManagerAPIMockRecorder) DescribeSecretRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeSecretRequest", reflect.TypeOf((*MockSecretsManagerAPI)(nil).DescribeSecretRequest), arg0) +} + +// DescribeSecretWithContext mocks base method. +func (m *MockSecretsManagerAPI) DescribeSecretWithContext(arg0 aws.Context, arg1 *secretsmanager.DescribeSecretInput, arg2 ...request.Option) (*secretsmanager.DescribeSecretOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeSecretWithContext", varargs...) + ret0, _ := ret[0].(*secretsmanager.DescribeSecretOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeSecretWithContext indicates an expected call of DescribeSecretWithContext. +func (mr *MockSecretsManagerAPIMockRecorder) DescribeSecretWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeSecretWithContext", reflect.TypeOf((*MockSecretsManagerAPI)(nil).DescribeSecretWithContext), varargs...) +} + +// GetRandomPassword mocks base method. +func (m *MockSecretsManagerAPI) GetRandomPassword(arg0 *secretsmanager.GetRandomPasswordInput) (*secretsmanager.GetRandomPasswordOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetRandomPassword", arg0) + ret0, _ := ret[0].(*secretsmanager.GetRandomPasswordOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetRandomPassword indicates an expected call of GetRandomPassword. +func (mr *MockSecretsManagerAPIMockRecorder) GetRandomPassword(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRandomPassword", reflect.TypeOf((*MockSecretsManagerAPI)(nil).GetRandomPassword), arg0) +} + +// GetRandomPasswordRequest mocks base method. +func (m *MockSecretsManagerAPI) GetRandomPasswordRequest(arg0 *secretsmanager.GetRandomPasswordInput) (*request.Request, *secretsmanager.GetRandomPasswordOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetRandomPasswordRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*secretsmanager.GetRandomPasswordOutput) + return ret0, ret1 +} + +// GetRandomPasswordRequest indicates an expected call of GetRandomPasswordRequest. +func (mr *MockSecretsManagerAPIMockRecorder) GetRandomPasswordRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRandomPasswordRequest", reflect.TypeOf((*MockSecretsManagerAPI)(nil).GetRandomPasswordRequest), arg0) +} + +// GetRandomPasswordWithContext mocks base method. +func (m *MockSecretsManagerAPI) GetRandomPasswordWithContext(arg0 aws.Context, arg1 *secretsmanager.GetRandomPasswordInput, arg2 ...request.Option) (*secretsmanager.GetRandomPasswordOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetRandomPasswordWithContext", varargs...) + ret0, _ := ret[0].(*secretsmanager.GetRandomPasswordOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetRandomPasswordWithContext indicates an expected call of GetRandomPasswordWithContext. +func (mr *MockSecretsManagerAPIMockRecorder) GetRandomPasswordWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRandomPasswordWithContext", reflect.TypeOf((*MockSecretsManagerAPI)(nil).GetRandomPasswordWithContext), varargs...) +} + +// GetResourcePolicy mocks base method. +func (m *MockSecretsManagerAPI) GetResourcePolicy(arg0 *secretsmanager.GetResourcePolicyInput) (*secretsmanager.GetResourcePolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetResourcePolicy", arg0) + ret0, _ := ret[0].(*secretsmanager.GetResourcePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetResourcePolicy indicates an expected call of GetResourcePolicy. +func (mr *MockSecretsManagerAPIMockRecorder) GetResourcePolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResourcePolicy", reflect.TypeOf((*MockSecretsManagerAPI)(nil).GetResourcePolicy), arg0) +} + +// GetResourcePolicyRequest mocks base method. +func (m *MockSecretsManagerAPI) GetResourcePolicyRequest(arg0 *secretsmanager.GetResourcePolicyInput) (*request.Request, *secretsmanager.GetResourcePolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetResourcePolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*secretsmanager.GetResourcePolicyOutput) + return ret0, ret1 +} + +// GetResourcePolicyRequest indicates an expected call of GetResourcePolicyRequest. +func (mr *MockSecretsManagerAPIMockRecorder) GetResourcePolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResourcePolicyRequest", reflect.TypeOf((*MockSecretsManagerAPI)(nil).GetResourcePolicyRequest), arg0) +} + +// GetResourcePolicyWithContext mocks base method. +func (m *MockSecretsManagerAPI) GetResourcePolicyWithContext(arg0 aws.Context, arg1 *secretsmanager.GetResourcePolicyInput, arg2 ...request.Option) (*secretsmanager.GetResourcePolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetResourcePolicyWithContext", varargs...) + ret0, _ := ret[0].(*secretsmanager.GetResourcePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetResourcePolicyWithContext indicates an expected call of GetResourcePolicyWithContext. +func (mr *MockSecretsManagerAPIMockRecorder) GetResourcePolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResourcePolicyWithContext", reflect.TypeOf((*MockSecretsManagerAPI)(nil).GetResourcePolicyWithContext), varargs...) +} + +// GetSecretValue mocks base method. +func (m *MockSecretsManagerAPI) GetSecretValue(arg0 *secretsmanager.GetSecretValueInput) (*secretsmanager.GetSecretValueOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetSecretValue", arg0) + ret0, _ := ret[0].(*secretsmanager.GetSecretValueOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetSecretValue indicates an expected call of GetSecretValue. +func (mr *MockSecretsManagerAPIMockRecorder) GetSecretValue(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSecretValue", reflect.TypeOf((*MockSecretsManagerAPI)(nil).GetSecretValue), arg0) +} + +// GetSecretValueRequest mocks base method. +func (m *MockSecretsManagerAPI) GetSecretValueRequest(arg0 *secretsmanager.GetSecretValueInput) (*request.Request, *secretsmanager.GetSecretValueOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetSecretValueRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*secretsmanager.GetSecretValueOutput) + return ret0, ret1 +} + +// GetSecretValueRequest indicates an expected call of GetSecretValueRequest. +func (mr *MockSecretsManagerAPIMockRecorder) GetSecretValueRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSecretValueRequest", reflect.TypeOf((*MockSecretsManagerAPI)(nil).GetSecretValueRequest), arg0) +} + +// GetSecretValueWithContext mocks base method. +func (m *MockSecretsManagerAPI) GetSecretValueWithContext(arg0 aws.Context, arg1 *secretsmanager.GetSecretValueInput, arg2 ...request.Option) (*secretsmanager.GetSecretValueOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetSecretValueWithContext", varargs...) + ret0, _ := ret[0].(*secretsmanager.GetSecretValueOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetSecretValueWithContext indicates an expected call of GetSecretValueWithContext. +func (mr *MockSecretsManagerAPIMockRecorder) GetSecretValueWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSecretValueWithContext", reflect.TypeOf((*MockSecretsManagerAPI)(nil).GetSecretValueWithContext), varargs...) +} + +// ListSecretVersionIds mocks base method. +func (m *MockSecretsManagerAPI) ListSecretVersionIds(arg0 *secretsmanager.ListSecretVersionIdsInput) (*secretsmanager.ListSecretVersionIdsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListSecretVersionIds", arg0) + ret0, _ := ret[0].(*secretsmanager.ListSecretVersionIdsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListSecretVersionIds indicates an expected call of ListSecretVersionIds. +func (mr *MockSecretsManagerAPIMockRecorder) ListSecretVersionIds(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSecretVersionIds", reflect.TypeOf((*MockSecretsManagerAPI)(nil).ListSecretVersionIds), arg0) +} + +// ListSecretVersionIdsPages mocks base method. +func (m *MockSecretsManagerAPI) ListSecretVersionIdsPages(arg0 *secretsmanager.ListSecretVersionIdsInput, arg1 func(*secretsmanager.ListSecretVersionIdsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListSecretVersionIdsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListSecretVersionIdsPages indicates an expected call of ListSecretVersionIdsPages. +func (mr *MockSecretsManagerAPIMockRecorder) ListSecretVersionIdsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSecretVersionIdsPages", reflect.TypeOf((*MockSecretsManagerAPI)(nil).ListSecretVersionIdsPages), arg0, arg1) +} + +// ListSecretVersionIdsPagesWithContext mocks base method. +func (m *MockSecretsManagerAPI) ListSecretVersionIdsPagesWithContext(arg0 aws.Context, arg1 *secretsmanager.ListSecretVersionIdsInput, arg2 func(*secretsmanager.ListSecretVersionIdsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListSecretVersionIdsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListSecretVersionIdsPagesWithContext indicates an expected call of ListSecretVersionIdsPagesWithContext. +func (mr *MockSecretsManagerAPIMockRecorder) ListSecretVersionIdsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSecretVersionIdsPagesWithContext", reflect.TypeOf((*MockSecretsManagerAPI)(nil).ListSecretVersionIdsPagesWithContext), varargs...) +} + +// ListSecretVersionIdsRequest mocks base method. +func (m *MockSecretsManagerAPI) ListSecretVersionIdsRequest(arg0 *secretsmanager.ListSecretVersionIdsInput) (*request.Request, *secretsmanager.ListSecretVersionIdsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListSecretVersionIdsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*secretsmanager.ListSecretVersionIdsOutput) + return ret0, ret1 +} + +// ListSecretVersionIdsRequest indicates an expected call of ListSecretVersionIdsRequest. +func (mr *MockSecretsManagerAPIMockRecorder) ListSecretVersionIdsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSecretVersionIdsRequest", reflect.TypeOf((*MockSecretsManagerAPI)(nil).ListSecretVersionIdsRequest), arg0) +} + +// ListSecretVersionIdsWithContext mocks base method. +func (m *MockSecretsManagerAPI) ListSecretVersionIdsWithContext(arg0 aws.Context, arg1 *secretsmanager.ListSecretVersionIdsInput, arg2 ...request.Option) (*secretsmanager.ListSecretVersionIdsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListSecretVersionIdsWithContext", varargs...) + ret0, _ := ret[0].(*secretsmanager.ListSecretVersionIdsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListSecretVersionIdsWithContext indicates an expected call of ListSecretVersionIdsWithContext. +func (mr *MockSecretsManagerAPIMockRecorder) ListSecretVersionIdsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSecretVersionIdsWithContext", reflect.TypeOf((*MockSecretsManagerAPI)(nil).ListSecretVersionIdsWithContext), varargs...) +} + +// ListSecrets mocks base method. +func (m *MockSecretsManagerAPI) ListSecrets(arg0 *secretsmanager.ListSecretsInput) (*secretsmanager.ListSecretsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListSecrets", arg0) + ret0, _ := ret[0].(*secretsmanager.ListSecretsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListSecrets indicates an expected call of ListSecrets. +func (mr *MockSecretsManagerAPIMockRecorder) ListSecrets(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSecrets", reflect.TypeOf((*MockSecretsManagerAPI)(nil).ListSecrets), arg0) +} + +// ListSecretsPages mocks base method. +func (m *MockSecretsManagerAPI) ListSecretsPages(arg0 *secretsmanager.ListSecretsInput, arg1 func(*secretsmanager.ListSecretsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListSecretsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListSecretsPages indicates an expected call of ListSecretsPages. +func (mr *MockSecretsManagerAPIMockRecorder) ListSecretsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSecretsPages", reflect.TypeOf((*MockSecretsManagerAPI)(nil).ListSecretsPages), arg0, arg1) +} + +// ListSecretsPagesWithContext mocks base method. +func (m *MockSecretsManagerAPI) ListSecretsPagesWithContext(arg0 aws.Context, arg1 *secretsmanager.ListSecretsInput, arg2 func(*secretsmanager.ListSecretsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListSecretsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListSecretsPagesWithContext indicates an expected call of ListSecretsPagesWithContext. +func (mr *MockSecretsManagerAPIMockRecorder) ListSecretsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSecretsPagesWithContext", reflect.TypeOf((*MockSecretsManagerAPI)(nil).ListSecretsPagesWithContext), varargs...) +} + +// ListSecretsRequest mocks base method. +func (m *MockSecretsManagerAPI) ListSecretsRequest(arg0 *secretsmanager.ListSecretsInput) (*request.Request, *secretsmanager.ListSecretsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListSecretsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*secretsmanager.ListSecretsOutput) + return ret0, ret1 +} + +// ListSecretsRequest indicates an expected call of ListSecretsRequest. +func (mr *MockSecretsManagerAPIMockRecorder) ListSecretsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSecretsRequest", reflect.TypeOf((*MockSecretsManagerAPI)(nil).ListSecretsRequest), arg0) +} + +// ListSecretsWithContext mocks base method. +func (m *MockSecretsManagerAPI) ListSecretsWithContext(arg0 aws.Context, arg1 *secretsmanager.ListSecretsInput, arg2 ...request.Option) (*secretsmanager.ListSecretsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListSecretsWithContext", varargs...) + ret0, _ := ret[0].(*secretsmanager.ListSecretsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListSecretsWithContext indicates an expected call of ListSecretsWithContext. +func (mr *MockSecretsManagerAPIMockRecorder) ListSecretsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSecretsWithContext", reflect.TypeOf((*MockSecretsManagerAPI)(nil).ListSecretsWithContext), varargs...) +} + +// PutResourcePolicy mocks base method. +func (m *MockSecretsManagerAPI) PutResourcePolicy(arg0 *secretsmanager.PutResourcePolicyInput) (*secretsmanager.PutResourcePolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutResourcePolicy", arg0) + ret0, _ := ret[0].(*secretsmanager.PutResourcePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutResourcePolicy indicates an expected call of PutResourcePolicy. +func (mr *MockSecretsManagerAPIMockRecorder) PutResourcePolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutResourcePolicy", reflect.TypeOf((*MockSecretsManagerAPI)(nil).PutResourcePolicy), arg0) +} + +// PutResourcePolicyRequest mocks base method. +func (m *MockSecretsManagerAPI) PutResourcePolicyRequest(arg0 *secretsmanager.PutResourcePolicyInput) (*request.Request, *secretsmanager.PutResourcePolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutResourcePolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*secretsmanager.PutResourcePolicyOutput) + return ret0, ret1 +} + +// PutResourcePolicyRequest indicates an expected call of PutResourcePolicyRequest. +func (mr *MockSecretsManagerAPIMockRecorder) PutResourcePolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutResourcePolicyRequest", reflect.TypeOf((*MockSecretsManagerAPI)(nil).PutResourcePolicyRequest), arg0) +} + +// PutResourcePolicyWithContext mocks base method. +func (m *MockSecretsManagerAPI) PutResourcePolicyWithContext(arg0 aws.Context, arg1 *secretsmanager.PutResourcePolicyInput, arg2 ...request.Option) (*secretsmanager.PutResourcePolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PutResourcePolicyWithContext", varargs...) + ret0, _ := ret[0].(*secretsmanager.PutResourcePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutResourcePolicyWithContext indicates an expected call of PutResourcePolicyWithContext. +func (mr *MockSecretsManagerAPIMockRecorder) PutResourcePolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutResourcePolicyWithContext", reflect.TypeOf((*MockSecretsManagerAPI)(nil).PutResourcePolicyWithContext), varargs...) +} + +// PutSecretValue mocks base method. +func (m *MockSecretsManagerAPI) PutSecretValue(arg0 *secretsmanager.PutSecretValueInput) (*secretsmanager.PutSecretValueOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutSecretValue", arg0) + ret0, _ := ret[0].(*secretsmanager.PutSecretValueOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutSecretValue indicates an expected call of PutSecretValue. +func (mr *MockSecretsManagerAPIMockRecorder) PutSecretValue(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutSecretValue", reflect.TypeOf((*MockSecretsManagerAPI)(nil).PutSecretValue), arg0) +} + +// PutSecretValueRequest mocks base method. +func (m *MockSecretsManagerAPI) PutSecretValueRequest(arg0 *secretsmanager.PutSecretValueInput) (*request.Request, *secretsmanager.PutSecretValueOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutSecretValueRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*secretsmanager.PutSecretValueOutput) + return ret0, ret1 +} + +// PutSecretValueRequest indicates an expected call of PutSecretValueRequest. +func (mr *MockSecretsManagerAPIMockRecorder) PutSecretValueRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutSecretValueRequest", reflect.TypeOf((*MockSecretsManagerAPI)(nil).PutSecretValueRequest), arg0) +} + +// PutSecretValueWithContext mocks base method. +func (m *MockSecretsManagerAPI) PutSecretValueWithContext(arg0 aws.Context, arg1 *secretsmanager.PutSecretValueInput, arg2 ...request.Option) (*secretsmanager.PutSecretValueOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PutSecretValueWithContext", varargs...) + ret0, _ := ret[0].(*secretsmanager.PutSecretValueOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutSecretValueWithContext indicates an expected call of PutSecretValueWithContext. +func (mr *MockSecretsManagerAPIMockRecorder) PutSecretValueWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutSecretValueWithContext", reflect.TypeOf((*MockSecretsManagerAPI)(nil).PutSecretValueWithContext), varargs...) +} + +// RemoveRegionsFromReplication mocks base method. +func (m *MockSecretsManagerAPI) RemoveRegionsFromReplication(arg0 *secretsmanager.RemoveRegionsFromReplicationInput) (*secretsmanager.RemoveRegionsFromReplicationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RemoveRegionsFromReplication", arg0) + ret0, _ := ret[0].(*secretsmanager.RemoveRegionsFromReplicationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RemoveRegionsFromReplication indicates an expected call of RemoveRegionsFromReplication. +func (mr *MockSecretsManagerAPIMockRecorder) RemoveRegionsFromReplication(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveRegionsFromReplication", reflect.TypeOf((*MockSecretsManagerAPI)(nil).RemoveRegionsFromReplication), arg0) +} + +// RemoveRegionsFromReplicationRequest mocks base method. +func (m *MockSecretsManagerAPI) RemoveRegionsFromReplicationRequest(arg0 *secretsmanager.RemoveRegionsFromReplicationInput) (*request.Request, *secretsmanager.RemoveRegionsFromReplicationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RemoveRegionsFromReplicationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*secretsmanager.RemoveRegionsFromReplicationOutput) + return ret0, ret1 +} + +// RemoveRegionsFromReplicationRequest indicates an expected call of RemoveRegionsFromReplicationRequest. +func (mr *MockSecretsManagerAPIMockRecorder) RemoveRegionsFromReplicationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveRegionsFromReplicationRequest", reflect.TypeOf((*MockSecretsManagerAPI)(nil).RemoveRegionsFromReplicationRequest), arg0) +} + +// RemoveRegionsFromReplicationWithContext mocks base method. +func (m *MockSecretsManagerAPI) RemoveRegionsFromReplicationWithContext(arg0 aws.Context, arg1 *secretsmanager.RemoveRegionsFromReplicationInput, arg2 ...request.Option) (*secretsmanager.RemoveRegionsFromReplicationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RemoveRegionsFromReplicationWithContext", varargs...) + ret0, _ := ret[0].(*secretsmanager.RemoveRegionsFromReplicationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RemoveRegionsFromReplicationWithContext indicates an expected call of RemoveRegionsFromReplicationWithContext. +func (mr *MockSecretsManagerAPIMockRecorder) RemoveRegionsFromReplicationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveRegionsFromReplicationWithContext", reflect.TypeOf((*MockSecretsManagerAPI)(nil).RemoveRegionsFromReplicationWithContext), varargs...) +} + +// ReplicateSecretToRegions mocks base method. +func (m *MockSecretsManagerAPI) ReplicateSecretToRegions(arg0 *secretsmanager.ReplicateSecretToRegionsInput) (*secretsmanager.ReplicateSecretToRegionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ReplicateSecretToRegions", arg0) + ret0, _ := ret[0].(*secretsmanager.ReplicateSecretToRegionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ReplicateSecretToRegions indicates an expected call of ReplicateSecretToRegions. +func (mr *MockSecretsManagerAPIMockRecorder) ReplicateSecretToRegions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReplicateSecretToRegions", reflect.TypeOf((*MockSecretsManagerAPI)(nil).ReplicateSecretToRegions), arg0) +} + +// ReplicateSecretToRegionsRequest mocks base method. +func (m *MockSecretsManagerAPI) ReplicateSecretToRegionsRequest(arg0 *secretsmanager.ReplicateSecretToRegionsInput) (*request.Request, *secretsmanager.ReplicateSecretToRegionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ReplicateSecretToRegionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*secretsmanager.ReplicateSecretToRegionsOutput) + return ret0, ret1 +} + +// ReplicateSecretToRegionsRequest indicates an expected call of ReplicateSecretToRegionsRequest. +func (mr *MockSecretsManagerAPIMockRecorder) ReplicateSecretToRegionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReplicateSecretToRegionsRequest", reflect.TypeOf((*MockSecretsManagerAPI)(nil).ReplicateSecretToRegionsRequest), arg0) +} + +// ReplicateSecretToRegionsWithContext mocks base method. +func (m *MockSecretsManagerAPI) ReplicateSecretToRegionsWithContext(arg0 aws.Context, arg1 *secretsmanager.ReplicateSecretToRegionsInput, arg2 ...request.Option) (*secretsmanager.ReplicateSecretToRegionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ReplicateSecretToRegionsWithContext", varargs...) + ret0, _ := ret[0].(*secretsmanager.ReplicateSecretToRegionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ReplicateSecretToRegionsWithContext indicates an expected call of ReplicateSecretToRegionsWithContext. +func (mr *MockSecretsManagerAPIMockRecorder) ReplicateSecretToRegionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReplicateSecretToRegionsWithContext", reflect.TypeOf((*MockSecretsManagerAPI)(nil).ReplicateSecretToRegionsWithContext), varargs...) +} + +// RestoreSecret mocks base method. +func (m *MockSecretsManagerAPI) RestoreSecret(arg0 *secretsmanager.RestoreSecretInput) (*secretsmanager.RestoreSecretOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RestoreSecret", arg0) + ret0, _ := ret[0].(*secretsmanager.RestoreSecretOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RestoreSecret indicates an expected call of RestoreSecret. +func (mr *MockSecretsManagerAPIMockRecorder) RestoreSecret(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RestoreSecret", reflect.TypeOf((*MockSecretsManagerAPI)(nil).RestoreSecret), arg0) +} + +// RestoreSecretRequest mocks base method. +func (m *MockSecretsManagerAPI) RestoreSecretRequest(arg0 *secretsmanager.RestoreSecretInput) (*request.Request, *secretsmanager.RestoreSecretOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RestoreSecretRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*secretsmanager.RestoreSecretOutput) + return ret0, ret1 +} + +// RestoreSecretRequest indicates an expected call of RestoreSecretRequest. +func (mr *MockSecretsManagerAPIMockRecorder) RestoreSecretRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RestoreSecretRequest", reflect.TypeOf((*MockSecretsManagerAPI)(nil).RestoreSecretRequest), arg0) +} + +// RestoreSecretWithContext mocks base method. +func (m *MockSecretsManagerAPI) RestoreSecretWithContext(arg0 aws.Context, arg1 *secretsmanager.RestoreSecretInput, arg2 ...request.Option) (*secretsmanager.RestoreSecretOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RestoreSecretWithContext", varargs...) + ret0, _ := ret[0].(*secretsmanager.RestoreSecretOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RestoreSecretWithContext indicates an expected call of RestoreSecretWithContext. +func (mr *MockSecretsManagerAPIMockRecorder) RestoreSecretWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RestoreSecretWithContext", reflect.TypeOf((*MockSecretsManagerAPI)(nil).RestoreSecretWithContext), varargs...) +} + +// RotateSecret mocks base method. +func (m *MockSecretsManagerAPI) RotateSecret(arg0 *secretsmanager.RotateSecretInput) (*secretsmanager.RotateSecretOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RotateSecret", arg0) + ret0, _ := ret[0].(*secretsmanager.RotateSecretOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RotateSecret indicates an expected call of RotateSecret. +func (mr *MockSecretsManagerAPIMockRecorder) RotateSecret(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RotateSecret", reflect.TypeOf((*MockSecretsManagerAPI)(nil).RotateSecret), arg0) +} + +// RotateSecretRequest mocks base method. +func (m *MockSecretsManagerAPI) RotateSecretRequest(arg0 *secretsmanager.RotateSecretInput) (*request.Request, *secretsmanager.RotateSecretOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RotateSecretRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*secretsmanager.RotateSecretOutput) + return ret0, ret1 +} + +// RotateSecretRequest indicates an expected call of RotateSecretRequest. +func (mr *MockSecretsManagerAPIMockRecorder) RotateSecretRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RotateSecretRequest", reflect.TypeOf((*MockSecretsManagerAPI)(nil).RotateSecretRequest), arg0) +} + +// RotateSecretWithContext mocks base method. +func (m *MockSecretsManagerAPI) RotateSecretWithContext(arg0 aws.Context, arg1 *secretsmanager.RotateSecretInput, arg2 ...request.Option) (*secretsmanager.RotateSecretOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RotateSecretWithContext", varargs...) + ret0, _ := ret[0].(*secretsmanager.RotateSecretOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RotateSecretWithContext indicates an expected call of RotateSecretWithContext. +func (mr *MockSecretsManagerAPIMockRecorder) RotateSecretWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RotateSecretWithContext", reflect.TypeOf((*MockSecretsManagerAPI)(nil).RotateSecretWithContext), varargs...) +} + +// StopReplicationToReplica mocks base method. +func (m *MockSecretsManagerAPI) StopReplicationToReplica(arg0 *secretsmanager.StopReplicationToReplicaInput) (*secretsmanager.StopReplicationToReplicaOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopReplicationToReplica", arg0) + ret0, _ := ret[0].(*secretsmanager.StopReplicationToReplicaOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopReplicationToReplica indicates an expected call of StopReplicationToReplica. +func (mr *MockSecretsManagerAPIMockRecorder) StopReplicationToReplica(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopReplicationToReplica", reflect.TypeOf((*MockSecretsManagerAPI)(nil).StopReplicationToReplica), arg0) +} + +// StopReplicationToReplicaRequest mocks base method. +func (m *MockSecretsManagerAPI) StopReplicationToReplicaRequest(arg0 *secretsmanager.StopReplicationToReplicaInput) (*request.Request, *secretsmanager.StopReplicationToReplicaOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopReplicationToReplicaRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*secretsmanager.StopReplicationToReplicaOutput) + return ret0, ret1 +} + +// StopReplicationToReplicaRequest indicates an expected call of StopReplicationToReplicaRequest. +func (mr *MockSecretsManagerAPIMockRecorder) StopReplicationToReplicaRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopReplicationToReplicaRequest", reflect.TypeOf((*MockSecretsManagerAPI)(nil).StopReplicationToReplicaRequest), arg0) +} + +// StopReplicationToReplicaWithContext mocks base method. +func (m *MockSecretsManagerAPI) StopReplicationToReplicaWithContext(arg0 aws.Context, arg1 *secretsmanager.StopReplicationToReplicaInput, arg2 ...request.Option) (*secretsmanager.StopReplicationToReplicaOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StopReplicationToReplicaWithContext", varargs...) + ret0, _ := ret[0].(*secretsmanager.StopReplicationToReplicaOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopReplicationToReplicaWithContext indicates an expected call of StopReplicationToReplicaWithContext. +func (mr *MockSecretsManagerAPIMockRecorder) StopReplicationToReplicaWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopReplicationToReplicaWithContext", reflect.TypeOf((*MockSecretsManagerAPI)(nil).StopReplicationToReplicaWithContext), varargs...) +} + +// TagResource mocks base method. +func (m *MockSecretsManagerAPI) TagResource(arg0 *secretsmanager.TagResourceInput) (*secretsmanager.TagResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagResource", arg0) + ret0, _ := ret[0].(*secretsmanager.TagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagResource indicates an expected call of TagResource. +func (mr *MockSecretsManagerAPIMockRecorder) TagResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagResource", reflect.TypeOf((*MockSecretsManagerAPI)(nil).TagResource), arg0) +} + +// TagResourceRequest mocks base method. +func (m *MockSecretsManagerAPI) TagResourceRequest(arg0 *secretsmanager.TagResourceInput) (*request.Request, *secretsmanager.TagResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*secretsmanager.TagResourceOutput) + return ret0, ret1 +} + +// TagResourceRequest indicates an expected call of TagResourceRequest. +func (mr *MockSecretsManagerAPIMockRecorder) TagResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagResourceRequest", reflect.TypeOf((*MockSecretsManagerAPI)(nil).TagResourceRequest), arg0) +} + +// TagResourceWithContext mocks base method. +func (m *MockSecretsManagerAPI) TagResourceWithContext(arg0 aws.Context, arg1 *secretsmanager.TagResourceInput, arg2 ...request.Option) (*secretsmanager.TagResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "TagResourceWithContext", varargs...) + ret0, _ := ret[0].(*secretsmanager.TagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagResourceWithContext indicates an expected call of TagResourceWithContext. +func (mr *MockSecretsManagerAPIMockRecorder) TagResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagResourceWithContext", reflect.TypeOf((*MockSecretsManagerAPI)(nil).TagResourceWithContext), varargs...) +} + +// UntagResource mocks base method. +func (m *MockSecretsManagerAPI) UntagResource(arg0 *secretsmanager.UntagResourceInput) (*secretsmanager.UntagResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagResource", arg0) + ret0, _ := ret[0].(*secretsmanager.UntagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagResource indicates an expected call of UntagResource. +func (mr *MockSecretsManagerAPIMockRecorder) UntagResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagResource", reflect.TypeOf((*MockSecretsManagerAPI)(nil).UntagResource), arg0) +} + +// UntagResourceRequest mocks base method. +func (m *MockSecretsManagerAPI) UntagResourceRequest(arg0 *secretsmanager.UntagResourceInput) (*request.Request, *secretsmanager.UntagResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*secretsmanager.UntagResourceOutput) + return ret0, ret1 +} + +// UntagResourceRequest indicates an expected call of UntagResourceRequest. +func (mr *MockSecretsManagerAPIMockRecorder) UntagResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagResourceRequest", reflect.TypeOf((*MockSecretsManagerAPI)(nil).UntagResourceRequest), arg0) +} + +// UntagResourceWithContext mocks base method. +func (m *MockSecretsManagerAPI) UntagResourceWithContext(arg0 aws.Context, arg1 *secretsmanager.UntagResourceInput, arg2 ...request.Option) (*secretsmanager.UntagResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UntagResourceWithContext", varargs...) + ret0, _ := ret[0].(*secretsmanager.UntagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagResourceWithContext indicates an expected call of UntagResourceWithContext. +func (mr *MockSecretsManagerAPIMockRecorder) UntagResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagResourceWithContext", reflect.TypeOf((*MockSecretsManagerAPI)(nil).UntagResourceWithContext), varargs...) +} + +// UpdateSecret mocks base method. +func (m *MockSecretsManagerAPI) UpdateSecret(arg0 *secretsmanager.UpdateSecretInput) (*secretsmanager.UpdateSecretOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateSecret", arg0) + ret0, _ := ret[0].(*secretsmanager.UpdateSecretOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateSecret indicates an expected call of UpdateSecret. +func (mr *MockSecretsManagerAPIMockRecorder) UpdateSecret(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSecret", reflect.TypeOf((*MockSecretsManagerAPI)(nil).UpdateSecret), arg0) +} + +// UpdateSecretRequest mocks base method. +func (m *MockSecretsManagerAPI) UpdateSecretRequest(arg0 *secretsmanager.UpdateSecretInput) (*request.Request, *secretsmanager.UpdateSecretOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateSecretRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*secretsmanager.UpdateSecretOutput) + return ret0, ret1 +} + +// UpdateSecretRequest indicates an expected call of UpdateSecretRequest. +func (mr *MockSecretsManagerAPIMockRecorder) UpdateSecretRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSecretRequest", reflect.TypeOf((*MockSecretsManagerAPI)(nil).UpdateSecretRequest), arg0) +} + +// UpdateSecretVersionStage mocks base method. +func (m *MockSecretsManagerAPI) UpdateSecretVersionStage(arg0 *secretsmanager.UpdateSecretVersionStageInput) (*secretsmanager.UpdateSecretVersionStageOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateSecretVersionStage", arg0) + ret0, _ := ret[0].(*secretsmanager.UpdateSecretVersionStageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateSecretVersionStage indicates an expected call of UpdateSecretVersionStage. +func (mr *MockSecretsManagerAPIMockRecorder) UpdateSecretVersionStage(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSecretVersionStage", reflect.TypeOf((*MockSecretsManagerAPI)(nil).UpdateSecretVersionStage), arg0) +} + +// UpdateSecretVersionStageRequest mocks base method. +func (m *MockSecretsManagerAPI) UpdateSecretVersionStageRequest(arg0 *secretsmanager.UpdateSecretVersionStageInput) (*request.Request, *secretsmanager.UpdateSecretVersionStageOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateSecretVersionStageRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*secretsmanager.UpdateSecretVersionStageOutput) + return ret0, ret1 +} + +// UpdateSecretVersionStageRequest indicates an expected call of UpdateSecretVersionStageRequest. +func (mr *MockSecretsManagerAPIMockRecorder) UpdateSecretVersionStageRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSecretVersionStageRequest", reflect.TypeOf((*MockSecretsManagerAPI)(nil).UpdateSecretVersionStageRequest), arg0) +} + +// UpdateSecretVersionStageWithContext mocks base method. +func (m *MockSecretsManagerAPI) UpdateSecretVersionStageWithContext(arg0 aws.Context, arg1 *secretsmanager.UpdateSecretVersionStageInput, arg2 ...request.Option) (*secretsmanager.UpdateSecretVersionStageOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateSecretVersionStageWithContext", varargs...) + ret0, _ := ret[0].(*secretsmanager.UpdateSecretVersionStageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateSecretVersionStageWithContext indicates an expected call of UpdateSecretVersionStageWithContext. +func (mr *MockSecretsManagerAPIMockRecorder) UpdateSecretVersionStageWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSecretVersionStageWithContext", reflect.TypeOf((*MockSecretsManagerAPI)(nil).UpdateSecretVersionStageWithContext), varargs...) +} + +// UpdateSecretWithContext mocks base method. +func (m *MockSecretsManagerAPI) UpdateSecretWithContext(arg0 aws.Context, arg1 *secretsmanager.UpdateSecretInput, arg2 ...request.Option) (*secretsmanager.UpdateSecretOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateSecretWithContext", varargs...) + ret0, _ := ret[0].(*secretsmanager.UpdateSecretOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateSecretWithContext indicates an expected call of UpdateSecretWithContext. +func (mr *MockSecretsManagerAPIMockRecorder) UpdateSecretWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSecretWithContext", reflect.TypeOf((*MockSecretsManagerAPI)(nil).UpdateSecretWithContext), varargs...) +} + +// ValidateResourcePolicy mocks base method. +func (m *MockSecretsManagerAPI) ValidateResourcePolicy(arg0 *secretsmanager.ValidateResourcePolicyInput) (*secretsmanager.ValidateResourcePolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ValidateResourcePolicy", arg0) + ret0, _ := ret[0].(*secretsmanager.ValidateResourcePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ValidateResourcePolicy indicates an expected call of ValidateResourcePolicy. +func (mr *MockSecretsManagerAPIMockRecorder) ValidateResourcePolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateResourcePolicy", reflect.TypeOf((*MockSecretsManagerAPI)(nil).ValidateResourcePolicy), arg0) +} + +// ValidateResourcePolicyRequest mocks base method. +func (m *MockSecretsManagerAPI) ValidateResourcePolicyRequest(arg0 *secretsmanager.ValidateResourcePolicyInput) (*request.Request, *secretsmanager.ValidateResourcePolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ValidateResourcePolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*secretsmanager.ValidateResourcePolicyOutput) + return ret0, ret1 +} + +// ValidateResourcePolicyRequest indicates an expected call of ValidateResourcePolicyRequest. +func (mr *MockSecretsManagerAPIMockRecorder) ValidateResourcePolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateResourcePolicyRequest", reflect.TypeOf((*MockSecretsManagerAPI)(nil).ValidateResourcePolicyRequest), arg0) +} + +// ValidateResourcePolicyWithContext mocks base method. +func (m *MockSecretsManagerAPI) ValidateResourcePolicyWithContext(arg0 aws.Context, arg1 *secretsmanager.ValidateResourcePolicyInput, arg2 ...request.Option) (*secretsmanager.ValidateResourcePolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ValidateResourcePolicyWithContext", varargs...) + ret0, _ := ret[0].(*secretsmanager.ValidateResourcePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ValidateResourcePolicyWithContext indicates an expected call of ValidateResourcePolicyWithContext. +func (mr *MockSecretsManagerAPIMockRecorder) ValidateResourcePolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateResourcePolicyWithContext", reflect.TypeOf((*MockSecretsManagerAPI)(nil).ValidateResourcePolicyWithContext), varargs...) +} diff --git a/resources/secretsmanager-secret_mock_test.go b/resources/secretsmanager-secret_mock_test.go new file mode 100644 index 00000000..81ce13ea --- /dev/null +++ b/resources/secretsmanager-secret_mock_test.go @@ -0,0 +1,116 @@ +package resources + +import ( + "context" + "testing" + + "github.com/golang/mock/gomock" + "github.com/gotidy/ptr" + "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/secretsmanager" + + "github.com/ekristen/aws-nuke/v3/mocks/mock_secretsmanageriface" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +func Test_Mock_SecretsManager_List(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockSvc := mock_secretsmanageriface.NewMockSecretsManagerAPI(ctrl) + + lister := SecretsManagerSecretLister{ + mockSvc: mockSvc, + } + + mockSvc.EXPECT().ListSecrets(gomock.Any()).Return(&secretsmanager.ListSecretsOutput{ + SecretList: []*secretsmanager.SecretListEntry{ + { + Name: ptr.String("foo"), + ARN: ptr.String("arn:foo"), + Tags: []*secretsmanager.Tag{ + { + Key: ptr.String("foo"), + Value: ptr.String("bar"), + }, + }, + }, + { + Name: ptr.String("bar"), + ARN: ptr.String("arn:bar"), + PrimaryRegion: ptr.String("us-west-2"), + }, + }, + }, nil) + + resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ + Region: &nuke.Region{ + Name: "us-east-2", + }, + Session: session.Must(session.NewSession(&aws.Config{})), + }) + a.Nil(err) + a.Len(resources, 2) + + resource1 := resources[0].(*SecretsManagerSecret) + a.Equal("foo", resource1.Properties().Get("Name")) + a.Equal("arn:foo", resource1.Properties().Get("ARN")) + a.Equal("bar", resource1.Properties().Get("tag:foo")) + + resource2 := resources[1].(*SecretsManagerSecret) + a.Equal("bar", resource2.Properties().Get("Name")) + a.Equal("arn:bar", resource2.Properties().Get("ARN")) + a.Equal("us-west-2", resource2.Properties().Get("PrimaryRegion")) +} + +func Test_Mock_SecretsManager_Secret_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockSvc := mock_secretsmanageriface.NewMockSecretsManagerAPI(ctrl) + + resource := SecretsManagerSecret{ + svc: mockSvc, + ARN: ptr.String("arn:foo"), + Name: ptr.String("foo"), + } + + mockSvc.EXPECT().DeleteSecret(gomock.Eq(&secretsmanager.DeleteSecretInput{ + SecretId: ptr.String("arn:foo"), + ForceDeleteWithoutRecovery: ptr.Bool(true), + })).Return(&secretsmanager.DeleteSecretOutput{}, nil) + + err := resource.Remove(context.TODO()) + a.Nil(err) +} + +func Test_Mock_SecretsManager_Secret_RemoveReplica(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockSvc := mock_secretsmanageriface.NewMockSecretsManagerAPI(ctrl) + + resource := SecretsManagerSecret{ + svc: mockSvc, + primarySvc: mockSvc, + region: ptr.String("us-east-1"), // region this replica is in + ARN: ptr.String("arn:foo"), + Name: ptr.String("foo"), + PrimaryRegion: ptr.String("us-west-2"), + Replica: true, + } + + mockSvc.EXPECT().RemoveRegionsFromReplication(gomock.Eq(&secretsmanager.RemoveRegionsFromReplicationInput{ + SecretId: ptr.String("arn:foo"), + RemoveReplicaRegions: []*string{ptr.String("us-east-1")}, + })).Return(&secretsmanager.RemoveRegionsFromReplicationOutput{}, nil) + + err := resource.Remove(context.TODO()) + a.Nil(err) +} diff --git a/resources/secretsmanager_mock_test.go b/resources/secretsmanager_mock_test.go new file mode 100644 index 00000000..af379b34 --- /dev/null +++ b/resources/secretsmanager_mock_test.go @@ -0,0 +1,4 @@ +//go:generate ../mocks/generate_mocks.sh secretsmanager secretsmanageriface +package resources + +// Note: empty on purpose, this file exist purely to generate mocks for the Secrets Manager service From 5056d4349ffb40bcc1ad5e36f4e7425a029e80b4 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 8 Jul 2024 12:34:54 -0600 Subject: [PATCH 339/617] fix(elasticache-memcachecluster): use arn instead of clusterid for tag lookup --- resources/elasticache-memcacheclusters.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/elasticache-memcacheclusters.go b/resources/elasticache-memcacheclusters.go index 1256a801..8cbf537a 100644 --- a/resources/elasticache-memcacheclusters.go +++ b/resources/elasticache-memcacheclusters.go @@ -54,7 +54,7 @@ func (l *ElasticacheCacheClusterLister) List(_ context.Context, o interface{}) ( var resources []resource.Resource for _, cacheCluster := range resp.CacheClusters { tags, err := svc.ListTagsForResource(&elasticache.ListTagsForResourceInput{ - ResourceName: cacheCluster.CacheClusterId, + ResourceName: cacheCluster.ARN, }) if err != nil { logrus.WithError(err).Error("unable to retrieve tags") From cde05d3bb82f43a81c6ad8d8bb3f85cf2687189a Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 8 Jul 2024 12:35:15 -0600 Subject: [PATCH 340/617] fix(elasticache-subnetgroup): use arn instead of clusterid for tag lookup --- resources/elasticache-subnetgroups.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/elasticache-subnetgroups.go b/resources/elasticache-subnetgroups.go index 1b2544ce..b9430c9b 100644 --- a/resources/elasticache-subnetgroups.go +++ b/resources/elasticache-subnetgroups.go @@ -51,7 +51,7 @@ func (l *ElasticacheSubnetGroupLister) List(_ context.Context, o interface{}) ([ var resources []resource.Resource for _, subnetGroup := range resp.CacheSubnetGroups { tags, err := svc.ListTagsForResource(&elasticache.ListTagsForResourceInput{ - ResourceName: subnetGroup.CacheSubnetGroupName, + ResourceName: subnetGroup.ARN, }) if err != nil { logrus.WithError(err).Error("unable to retrieve tags") From c47107255c6d1f791cca3ccdce686687cb5e2b99 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 8 Jul 2024 12:38:53 -0600 Subject: [PATCH 341/617] test(elasticcache-memcachecluster): add mock tests to account for invalid arn --- pkg/testsuite/logrus.go | 39 ++++++++++++++ .../elasticache-memcacheclusters_mock_test.go | 54 ++++++++++++++++++- 2 files changed, 91 insertions(+), 2 deletions(-) create mode 100644 pkg/testsuite/logrus.go diff --git a/pkg/testsuite/logrus.go b/pkg/testsuite/logrus.go new file mode 100644 index 00000000..a6209f6a --- /dev/null +++ b/pkg/testsuite/logrus.go @@ -0,0 +1,39 @@ +package testsuite + +import ( + "testing" + + "github.com/sirupsen/logrus" +) + +type GlobalHook struct { + T *testing.T + TF func(t *testing.T, e *logrus.Entry) +} + +func (h *GlobalHook) Levels() []logrus.Level { + return logrus.AllLevels +} + +func (h *GlobalHook) Fire(e *logrus.Entry) error { + if h.TF != nil { + h.TF(h.T, e) + } + + return nil +} + +func (h *GlobalHook) Cleanup() { + logrus.StandardLogger().ReplaceHooks(make(logrus.LevelHooks)) +} + +// NewGlobalHook creates a new GlobalHook for logrus testing +func NewGlobalHook(t *testing.T, tf func(t *testing.T, e *logrus.Entry)) *GlobalHook { + gh := &GlobalHook{ + T: t, + TF: tf, + } + logrus.SetReportCaller(true) + logrus.AddHook(gh) + return gh +} diff --git a/resources/elasticache-memcacheclusters_mock_test.go b/resources/elasticache-memcacheclusters_mock_test.go index 12c1d765..04a3021b 100644 --- a/resources/elasticache-memcacheclusters_mock_test.go +++ b/resources/elasticache-memcacheclusters_mock_test.go @@ -2,16 +2,20 @@ package resources import ( "context" + "strings" "testing" "github.com/golang/mock/gomock" + "github.com/sirupsen/logrus" "github.com/stretchr/testify/assert" "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/service/elasticache" "github.com/ekristen/aws-nuke/v3/mocks/mock_elasticacheiface" "github.com/ekristen/aws-nuke/v3/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/testsuite" ) func Test_Mock_ElastiCache_CacheCluster_Remove(t *testing.T) { @@ -48,6 +52,7 @@ func Test_Mock_ElastiCache_CacheCluster_List_NoTags(t *testing.T) { mockElastiCache.EXPECT().DescribeCacheClusters(gomock.Any()).Return(&elasticache.DescribeCacheClustersOutput{ CacheClusters: []*elasticache.CacheCluster{ { + ARN: aws.String("arn:aws:elasticache:us-west-2:123456789012:cluster:foobar"), CacheClusterId: aws.String("foobar"), CacheClusterStatus: aws.String("available"), }, @@ -55,7 +60,7 @@ func Test_Mock_ElastiCache_CacheCluster_List_NoTags(t *testing.T) { }, nil) mockElastiCache.EXPECT().ListTagsForResource(&elasticache.ListTagsForResourceInput{ - ResourceName: aws.String("foobar"), + ResourceName: aws.String("arn:aws:elasticache:us-west-2:123456789012:cluster:foobar"), }).Return(&elasticache.TagListMessage{}, nil) resources, err := cacheClusterLister.List(context.TODO(), &nuke.ListerOpts{}) @@ -80,13 +85,14 @@ func Test_Mock_ElastiCache_CacheCluster_List_WithTags(t *testing.T) { mockElastiCache.EXPECT().DescribeCacheClusters(gomock.Any()).Return(&elasticache.DescribeCacheClustersOutput{ CacheClusters: []*elasticache.CacheCluster{ { + ARN: aws.String("arn:aws:elasticache:us-west-2:123456789012:cluster:foobar"), CacheClusterId: aws.String("foobar"), }, }, }, nil) mockElastiCache.EXPECT().ListTagsForResource(&elasticache.ListTagsForResourceInput{ - ResourceName: aws.String("foobar"), + ResourceName: aws.String("arn:aws:elasticache:us-west-2:123456789012:cluster:foobar"), }).Return(&elasticache.TagListMessage{ TagList: []*elasticache.Tag{ { @@ -110,3 +116,47 @@ func Test_Mock_ElastiCache_CacheCluster_List_WithTags(t *testing.T) { a.Equal("foobar", resource.Properties().Get("tag:Name")) a.Equal("test", resource.Properties().Get("tag:aws-nuke")) } + +func Test_Mock_ElastiCache_CacheCluster_List_TagsInvalidARN(t *testing.T) { + called := false + + th := testsuite.NewGlobalHook(t, func(t *testing.T, e *logrus.Entry) { + if !strings.HasSuffix(e.Caller.Function, "resources.(*ElasticacheCacheClusterLister).List") { + return + } + + assert.Equal(t, "unable to retrieve tags", e.Message) + + called = true + }) + defer th.Cleanup() + + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockElastiCache := mock_elasticacheiface.NewMockElastiCacheAPI(ctrl) + + cacheClusterLister := ElasticacheCacheClusterLister{ + mockSvc: mockElastiCache, + } + + mockElastiCache.EXPECT().DescribeCacheClusters(gomock.Any()).Return(&elasticache.DescribeCacheClustersOutput{ + CacheClusters: []*elasticache.CacheCluster{ + { + ARN: aws.String("foobar:invalid:arn"), + CacheClusterId: aws.String("foobar"), + }, + }, + }, nil) + + mockElastiCache.EXPECT().ListTagsForResource(&elasticache.ListTagsForResourceInput{ + ResourceName: aws.String("foobar:invalid:arn"), + }).Return(nil, awserr.New(elasticache.ErrCodeInvalidARNFault, elasticache.ErrCodeInvalidARNFault, nil)) + + resources, err := cacheClusterLister.List(context.TODO(), &nuke.ListerOpts{}) + a.Nil(err) + a.Len(resources, 0) + + a.True(called, "expected global hook called and log message to be found") +} From bc30720f4b9420e021116f35b13796636d9470bf Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 8 Jul 2024 12:42:30 -0600 Subject: [PATCH 342/617] test(elasticache-subnetgroup): fix tests to use arn for mocked calls --- resources/elasticache-subnetgroups_mock_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/elasticache-subnetgroups_mock_test.go b/resources/elasticache-subnetgroups_mock_test.go index 36f61f34..86b85c03 100644 --- a/resources/elasticache-subnetgroups_mock_test.go +++ b/resources/elasticache-subnetgroups_mock_test.go @@ -49,13 +49,14 @@ func Test_Mock_ElastiCache_SubnetGroup_List_NoTags(t *testing.T) { mockElastiCache.EXPECT().DescribeCacheSubnetGroups(gomock.Any()).Return(&elasticache.DescribeCacheSubnetGroupsOutput{ CacheSubnetGroups: []*elasticache.CacheSubnetGroup{ { + ARN: aws.String("arn:aws:elasticache:us-west-2:123456789012:subnet-group:foobar"), CacheSubnetGroupName: aws.String("foobar"), }, }, }, nil) mockElastiCache.EXPECT().ListTagsForResource(&elasticache.ListTagsForResourceInput{ - ResourceName: aws.String("foobar"), + ResourceName: aws.String("arn:aws:elasticache:us-west-2:123456789012:subnet-group:foobar"), }).Return(&elasticache.TagListMessage{}, nil) resources, err := subnetGroupsLister.List(context.TODO(), &nuke.ListerOpts{}) @@ -82,13 +83,14 @@ func Test_Mock_ElastiCache_SubnetGroup_List_WithTags(t *testing.T) { mockElastiCache.EXPECT().DescribeCacheSubnetGroups(gomock.Any()).Return(&elasticache.DescribeCacheSubnetGroupsOutput{ CacheSubnetGroups: []*elasticache.CacheSubnetGroup{ { + ARN: aws.String("arn:aws:elasticache:us-west-2:123456789012:subnet-group:foobar"), CacheSubnetGroupName: aws.String("foobar"), }, }, }, nil) mockElastiCache.EXPECT().ListTagsForResource(&elasticache.ListTagsForResourceInput{ - ResourceName: aws.String("foobar"), + ResourceName: aws.String("arn:aws:elasticache:us-west-2:123456789012:subnet-group:foobar"), }).Return(&elasticache.TagListMessage{ TagList: []*elasticache.Tag{ { From 83dc68e80321d4a83e143c77e92f9a7978324b2c Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 9 Jul 2024 16:23:15 -0600 Subject: [PATCH 343/617] feat(autoscaling-launch-configuration): standardize, add properties, make ready for tests --- resources/autoscaling-launch-configuration.go | 91 +++++++++++++++++++ .../autoscaling-launch-configurations.go | 73 --------------- 2 files changed, 91 insertions(+), 73 deletions(-) create mode 100644 resources/autoscaling-launch-configuration.go delete mode 100644 resources/autoscaling-launch-configurations.go diff --git a/resources/autoscaling-launch-configuration.go b/resources/autoscaling-launch-configuration.go new file mode 100644 index 00000000..494e70bb --- /dev/null +++ b/resources/autoscaling-launch-configuration.go @@ -0,0 +1,91 @@ +package resources + +import ( + "context" + "time" + + "github.com/aws/aws-sdk-go/service/autoscaling" + "github.com/aws/aws-sdk-go/service/autoscaling/autoscalingiface" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +const AutoScalingLaunchConfigurationResource = "AutoScalingLaunchConfiguration" + +func init() { + registry.Register(®istry.Registration{ + Name: AutoScalingLaunchConfigurationResource, + Scope: nuke.Account, + Lister: &AutoScalingLaunchConfigurationLister{}, + DeprecatedAliases: []string{ + "LaunchConfiguration", + }, + }) +} + +type AutoScalingLaunchConfigurationLister struct { + mockSvc autoscalingiface.AutoScalingAPI +} + +func (l *AutoScalingLaunchConfigurationLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + resources := make([]resource.Resource, 0) + + var svc autoscalingiface.AutoScalingAPI + if l.mockSvc != nil { + svc = l.mockSvc + } else { + svc = autoscaling.New(opts.Session) + } + + params := &autoscaling.DescribeLaunchConfigurationsInput{} + err := svc.DescribeLaunchConfigurationsPages(params, + func(page *autoscaling.DescribeLaunchConfigurationsOutput, lastPage bool) bool { + for _, launchConfig := range page.LaunchConfigurations { + resources = append(resources, &AutoScalingLaunchConfiguration{ + svc: svc, + Name: launchConfig.LaunchConfigurationName, + CreatedTime: launchConfig.CreatedTime, + }) + } + return !lastPage + }) + + if err != nil { + return nil, err + } + + return resources, nil +} + +type AutoScalingLaunchConfiguration struct { + svc autoscalingiface.AutoScalingAPI + Name *string + CreatedTime *time.Time +} + +func (r *AutoScalingLaunchConfiguration) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + +func (r *AutoScalingLaunchConfiguration) Remove(_ context.Context) error { + params := &autoscaling.DeleteLaunchConfigurationInput{ + LaunchConfigurationName: r.Name, + } + + _, err := r.svc.DeleteLaunchConfiguration(params) + if err != nil { + return err + } + + return nil +} + +func (r *AutoScalingLaunchConfiguration) String() string { + return *r.Name +} diff --git a/resources/autoscaling-launch-configurations.go b/resources/autoscaling-launch-configurations.go deleted file mode 100644 index ba3891d5..00000000 --- a/resources/autoscaling-launch-configurations.go +++ /dev/null @@ -1,73 +0,0 @@ -package resources - -import ( - "context" - - "github.com/aws/aws-sdk-go/service/autoscaling" - - "github.com/ekristen/libnuke/pkg/registry" - "github.com/ekristen/libnuke/pkg/resource" - - "github.com/ekristen/aws-nuke/v3/pkg/nuke" -) - -// TODO: review if this should be prefixed with Autoscaling - -const LaunchConfigurationResource = "LaunchConfiguration" - -func init() { - registry.Register(®istry.Registration{ - Name: LaunchConfigurationResource, - Scope: nuke.Account, - Lister: &LaunchConfigurationLister{}, - }) -} - -type LaunchConfigurationLister struct{} - -func (l *LaunchConfigurationLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { - opts := o.(*nuke.ListerOpts) - - resources := make([]resource.Resource, 0) - svc := autoscaling.New(opts.Session) - - params := &autoscaling.DescribeLaunchConfigurationsInput{} - err := svc.DescribeLaunchConfigurationsPages(params, - func(page *autoscaling.DescribeLaunchConfigurationsOutput, lastPage bool) bool { - for _, launchConfig := range page.LaunchConfigurations { - resources = append(resources, &LaunchConfiguration{ - svc: svc, - name: launchConfig.LaunchConfigurationName, - }) - } - return !lastPage - }) - - if err != nil { - return nil, err - } - - return resources, nil -} - -type LaunchConfiguration struct { - svc *autoscaling.AutoScaling - name *string -} - -func (c *LaunchConfiguration) Remove(_ context.Context) error { - params := &autoscaling.DeleteLaunchConfigurationInput{ - LaunchConfigurationName: c.name, - } - - _, err := c.svc.DeleteLaunchConfiguration(params) - if err != nil { - return err - } - - return nil -} - -func (c *LaunchConfiguration) String() string { - return *c.name -} From 6e6f92dcb7b3686c019910c8dfafb4a85462e904 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 9 Jul 2024 16:23:37 -0600 Subject: [PATCH 344/617] feat(autoscaling-lifecycle-hook): standardize, add properties, make ready for tests --- resources/autoscaling-lifecycle-hook.go | 95 ++++++++++++++++++++++++ resources/autoscaling-lifecycle-hooks.go | 81 -------------------- 2 files changed, 95 insertions(+), 81 deletions(-) create mode 100644 resources/autoscaling-lifecycle-hook.go delete mode 100644 resources/autoscaling-lifecycle-hooks.go diff --git a/resources/autoscaling-lifecycle-hook.go b/resources/autoscaling-lifecycle-hook.go new file mode 100644 index 00000000..6d03348e --- /dev/null +++ b/resources/autoscaling-lifecycle-hook.go @@ -0,0 +1,95 @@ +package resources + +import ( + "context" + + "github.com/aws/aws-sdk-go/service/autoscaling" + "github.com/aws/aws-sdk-go/service/autoscaling/autoscalingiface" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +const AutoScalingLifecycleHookResource = "AutoScalingLifecycleHook" + +func init() { + registry.Register(®istry.Registration{ + Name: AutoScalingLifecycleHookResource, + Scope: nuke.Account, + Lister: &AutoScalingLifecycleHookLister{}, + DeprecatedAliases: []string{ + "LifecycleHook", + }, + }) +} + +type AutoScalingLifecycleHookLister struct { + mockSvc autoscalingiface.AutoScalingAPI +} + +func (l *AutoScalingLifecycleHookLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + var svc autoscalingiface.AutoScalingAPI + if l.mockSvc != nil { + svc = l.mockSvc + } else { + svc = autoscaling.New(opts.Session) + } + + asgResp, err := svc.DescribeAutoScalingGroups(&autoscaling.DescribeAutoScalingGroupsInput{}) + if err != nil { + return nil, err + } + + resources := make([]resource.Resource, 0) + for _, asg := range asgResp.AutoScalingGroups { + lchResp, err := svc.DescribeLifecycleHooks(&autoscaling.DescribeLifecycleHooksInput{ + AutoScalingGroupName: asg.AutoScalingGroupName, + }) + if err != nil { + return nil, err + } + + for _, lch := range lchResp.LifecycleHooks { + resources = append(resources, &AutoScalingLifecycleHook{ + svc: svc, + Name: lch.LifecycleHookName, + GroupName: lch.AutoScalingGroupName, + }) + } + } + + return resources, nil +} + +type AutoScalingLifecycleHook struct { + svc autoscalingiface.AutoScalingAPI + Name *string + GroupName *string +} + +func (r *AutoScalingLifecycleHook) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + +func (r *AutoScalingLifecycleHook) Remove(_ context.Context) error { + params := &autoscaling.DeleteLifecycleHookInput{ + AutoScalingGroupName: r.GroupName, + LifecycleHookName: r.Name, + } + + _, err := r.svc.DeleteLifecycleHook(params) + if err != nil { + return err + } + + return nil +} + +func (r *AutoScalingLifecycleHook) String() string { + return *r.Name +} diff --git a/resources/autoscaling-lifecycle-hooks.go b/resources/autoscaling-lifecycle-hooks.go deleted file mode 100644 index e0a69800..00000000 --- a/resources/autoscaling-lifecycle-hooks.go +++ /dev/null @@ -1,81 +0,0 @@ -package resources - -import ( - "context" - - "github.com/aws/aws-sdk-go/service/autoscaling" - - "github.com/ekristen/libnuke/pkg/registry" - "github.com/ekristen/libnuke/pkg/resource" - - "github.com/ekristen/aws-nuke/v3/pkg/nuke" -) - -// TODO: review if this should be prefixed with Autoscaling - -const LifecycleHookResource = "LifecycleHook" - -func init() { - registry.Register(®istry.Registration{ - Name: LifecycleHookResource, - Scope: nuke.Account, - Lister: &LifecycleHookLister{}, - }) -} - -type LifecycleHookLister struct{} - -func (l *LifecycleHookLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { - opts := o.(*nuke.ListerOpts) - - svc := autoscaling.New(opts.Session) - - asgResp, err := svc.DescribeAutoScalingGroups(&autoscaling.DescribeAutoScalingGroupsInput{}) - if err != nil { - return nil, err - } - - resources := make([]resource.Resource, 0) - for _, asg := range asgResp.AutoScalingGroups { - lchResp, err := svc.DescribeLifecycleHooks(&autoscaling.DescribeLifecycleHooksInput{ - AutoScalingGroupName: asg.AutoScalingGroupName, - }) - if err != nil { - return nil, err - } - - for _, lch := range lchResp.LifecycleHooks { - resources = append(resources, &LifecycleHook{ - svc: svc, - lifecycleHookName: lch.LifecycleHookName, - autoScalingGroupName: lch.AutoScalingGroupName, - }) - } - } - - return resources, nil -} - -type LifecycleHook struct { - svc *autoscaling.AutoScaling - lifecycleHookName *string - autoScalingGroupName *string -} - -func (lch *LifecycleHook) Remove(_ context.Context) error { - params := &autoscaling.DeleteLifecycleHookInput{ - AutoScalingGroupName: lch.autoScalingGroupName, - LifecycleHookName: lch.lifecycleHookName, - } - - _, err := lch.svc.DeleteLifecycleHook(params) - if err != nil { - return err - } - - return nil -} - -func (lch *LifecycleHook) String() string { - return *lch.lifecycleHookName -} From 2971b6b5e228b92d33ed1d53caf2ee6775ce7134 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 9 Jul 2024 16:24:33 -0600 Subject: [PATCH 345/617] test(autoscaling): add mock tests for lifecycle hook and launch configuration --- mocks/mock_autoscalingiface/mock.go | 3815 +++++++++++++++++ ...scaling-launch-configurations_mock_test.go | 91 + .../autoscaling-lifecycle-hooks_mock_test.go | 95 + resources/autoscaling_mock_test.go | 4 + 4 files changed, 4005 insertions(+) create mode 100644 mocks/mock_autoscalingiface/mock.go create mode 100644 resources/autoscaling-launch-configurations_mock_test.go create mode 100644 resources/autoscaling-lifecycle-hooks_mock_test.go create mode 100644 resources/autoscaling_mock_test.go diff --git a/mocks/mock_autoscalingiface/mock.go b/mocks/mock_autoscalingiface/mock.go new file mode 100644 index 00000000..c422a5b9 --- /dev/null +++ b/mocks/mock_autoscalingiface/mock.go @@ -0,0 +1,3815 @@ +// Code generated by MockGen. DO NOT EDIT. +// Source: /Users/ekristen/go/pkg/mod/github.com/aws/aws-sdk-go@v1.53.19/service/autoscaling/autoscalingiface/interface.go + +// Package mock_autoscalingiface is a generated GoMock package. +package mock_autoscalingiface + +import ( + reflect "reflect" + + aws "github.com/aws/aws-sdk-go/aws" + request "github.com/aws/aws-sdk-go/aws/request" + autoscaling "github.com/aws/aws-sdk-go/service/autoscaling" + gomock "github.com/golang/mock/gomock" +) + +// MockAutoScalingAPI is a mock of AutoScalingAPI interface. +type MockAutoScalingAPI struct { + ctrl *gomock.Controller + recorder *MockAutoScalingAPIMockRecorder +} + +// MockAutoScalingAPIMockRecorder is the mock recorder for MockAutoScalingAPI. +type MockAutoScalingAPIMockRecorder struct { + mock *MockAutoScalingAPI +} + +// NewMockAutoScalingAPI creates a new mock instance. +func NewMockAutoScalingAPI(ctrl *gomock.Controller) *MockAutoScalingAPI { + mock := &MockAutoScalingAPI{ctrl: ctrl} + mock.recorder = &MockAutoScalingAPIMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockAutoScalingAPI) EXPECT() *MockAutoScalingAPIMockRecorder { + return m.recorder +} + +// AttachInstances mocks base method. +func (m *MockAutoScalingAPI) AttachInstances(arg0 *autoscaling.AttachInstancesInput) (*autoscaling.AttachInstancesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AttachInstances", arg0) + ret0, _ := ret[0].(*autoscaling.AttachInstancesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AttachInstances indicates an expected call of AttachInstances. +func (mr *MockAutoScalingAPIMockRecorder) AttachInstances(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AttachInstances", reflect.TypeOf((*MockAutoScalingAPI)(nil).AttachInstances), arg0) +} + +// AttachInstancesRequest mocks base method. +func (m *MockAutoScalingAPI) AttachInstancesRequest(arg0 *autoscaling.AttachInstancesInput) (*request.Request, *autoscaling.AttachInstancesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AttachInstancesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.AttachInstancesOutput) + return ret0, ret1 +} + +// AttachInstancesRequest indicates an expected call of AttachInstancesRequest. +func (mr *MockAutoScalingAPIMockRecorder) AttachInstancesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AttachInstancesRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).AttachInstancesRequest), arg0) +} + +// AttachInstancesWithContext mocks base method. +func (m *MockAutoScalingAPI) AttachInstancesWithContext(arg0 aws.Context, arg1 *autoscaling.AttachInstancesInput, arg2 ...request.Option) (*autoscaling.AttachInstancesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AttachInstancesWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.AttachInstancesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AttachInstancesWithContext indicates an expected call of AttachInstancesWithContext. +func (mr *MockAutoScalingAPIMockRecorder) AttachInstancesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AttachInstancesWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).AttachInstancesWithContext), varargs...) +} + +// AttachLoadBalancerTargetGroups mocks base method. +func (m *MockAutoScalingAPI) AttachLoadBalancerTargetGroups(arg0 *autoscaling.AttachLoadBalancerTargetGroupsInput) (*autoscaling.AttachLoadBalancerTargetGroupsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AttachLoadBalancerTargetGroups", arg0) + ret0, _ := ret[0].(*autoscaling.AttachLoadBalancerTargetGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AttachLoadBalancerTargetGroups indicates an expected call of AttachLoadBalancerTargetGroups. +func (mr *MockAutoScalingAPIMockRecorder) AttachLoadBalancerTargetGroups(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AttachLoadBalancerTargetGroups", reflect.TypeOf((*MockAutoScalingAPI)(nil).AttachLoadBalancerTargetGroups), arg0) +} + +// AttachLoadBalancerTargetGroupsRequest mocks base method. +func (m *MockAutoScalingAPI) AttachLoadBalancerTargetGroupsRequest(arg0 *autoscaling.AttachLoadBalancerTargetGroupsInput) (*request.Request, *autoscaling.AttachLoadBalancerTargetGroupsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AttachLoadBalancerTargetGroupsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.AttachLoadBalancerTargetGroupsOutput) + return ret0, ret1 +} + +// AttachLoadBalancerTargetGroupsRequest indicates an expected call of AttachLoadBalancerTargetGroupsRequest. +func (mr *MockAutoScalingAPIMockRecorder) AttachLoadBalancerTargetGroupsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AttachLoadBalancerTargetGroupsRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).AttachLoadBalancerTargetGroupsRequest), arg0) +} + +// AttachLoadBalancerTargetGroupsWithContext mocks base method. +func (m *MockAutoScalingAPI) AttachLoadBalancerTargetGroupsWithContext(arg0 aws.Context, arg1 *autoscaling.AttachLoadBalancerTargetGroupsInput, arg2 ...request.Option) (*autoscaling.AttachLoadBalancerTargetGroupsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AttachLoadBalancerTargetGroupsWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.AttachLoadBalancerTargetGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AttachLoadBalancerTargetGroupsWithContext indicates an expected call of AttachLoadBalancerTargetGroupsWithContext. +func (mr *MockAutoScalingAPIMockRecorder) AttachLoadBalancerTargetGroupsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AttachLoadBalancerTargetGroupsWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).AttachLoadBalancerTargetGroupsWithContext), varargs...) +} + +// AttachLoadBalancers mocks base method. +func (m *MockAutoScalingAPI) AttachLoadBalancers(arg0 *autoscaling.AttachLoadBalancersInput) (*autoscaling.AttachLoadBalancersOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AttachLoadBalancers", arg0) + ret0, _ := ret[0].(*autoscaling.AttachLoadBalancersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AttachLoadBalancers indicates an expected call of AttachLoadBalancers. +func (mr *MockAutoScalingAPIMockRecorder) AttachLoadBalancers(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AttachLoadBalancers", reflect.TypeOf((*MockAutoScalingAPI)(nil).AttachLoadBalancers), arg0) +} + +// AttachLoadBalancersRequest mocks base method. +func (m *MockAutoScalingAPI) AttachLoadBalancersRequest(arg0 *autoscaling.AttachLoadBalancersInput) (*request.Request, *autoscaling.AttachLoadBalancersOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AttachLoadBalancersRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.AttachLoadBalancersOutput) + return ret0, ret1 +} + +// AttachLoadBalancersRequest indicates an expected call of AttachLoadBalancersRequest. +func (mr *MockAutoScalingAPIMockRecorder) AttachLoadBalancersRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AttachLoadBalancersRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).AttachLoadBalancersRequest), arg0) +} + +// AttachLoadBalancersWithContext mocks base method. +func (m *MockAutoScalingAPI) AttachLoadBalancersWithContext(arg0 aws.Context, arg1 *autoscaling.AttachLoadBalancersInput, arg2 ...request.Option) (*autoscaling.AttachLoadBalancersOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AttachLoadBalancersWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.AttachLoadBalancersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AttachLoadBalancersWithContext indicates an expected call of AttachLoadBalancersWithContext. +func (mr *MockAutoScalingAPIMockRecorder) AttachLoadBalancersWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AttachLoadBalancersWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).AttachLoadBalancersWithContext), varargs...) +} + +// AttachTrafficSources mocks base method. +func (m *MockAutoScalingAPI) AttachTrafficSources(arg0 *autoscaling.AttachTrafficSourcesInput) (*autoscaling.AttachTrafficSourcesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AttachTrafficSources", arg0) + ret0, _ := ret[0].(*autoscaling.AttachTrafficSourcesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AttachTrafficSources indicates an expected call of AttachTrafficSources. +func (mr *MockAutoScalingAPIMockRecorder) AttachTrafficSources(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AttachTrafficSources", reflect.TypeOf((*MockAutoScalingAPI)(nil).AttachTrafficSources), arg0) +} + +// AttachTrafficSourcesRequest mocks base method. +func (m *MockAutoScalingAPI) AttachTrafficSourcesRequest(arg0 *autoscaling.AttachTrafficSourcesInput) (*request.Request, *autoscaling.AttachTrafficSourcesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AttachTrafficSourcesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.AttachTrafficSourcesOutput) + return ret0, ret1 +} + +// AttachTrafficSourcesRequest indicates an expected call of AttachTrafficSourcesRequest. +func (mr *MockAutoScalingAPIMockRecorder) AttachTrafficSourcesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AttachTrafficSourcesRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).AttachTrafficSourcesRequest), arg0) +} + +// AttachTrafficSourcesWithContext mocks base method. +func (m *MockAutoScalingAPI) AttachTrafficSourcesWithContext(arg0 aws.Context, arg1 *autoscaling.AttachTrafficSourcesInput, arg2 ...request.Option) (*autoscaling.AttachTrafficSourcesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AttachTrafficSourcesWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.AttachTrafficSourcesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AttachTrafficSourcesWithContext indicates an expected call of AttachTrafficSourcesWithContext. +func (mr *MockAutoScalingAPIMockRecorder) AttachTrafficSourcesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AttachTrafficSourcesWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).AttachTrafficSourcesWithContext), varargs...) +} + +// BatchDeleteScheduledAction mocks base method. +func (m *MockAutoScalingAPI) BatchDeleteScheduledAction(arg0 *autoscaling.BatchDeleteScheduledActionInput) (*autoscaling.BatchDeleteScheduledActionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchDeleteScheduledAction", arg0) + ret0, _ := ret[0].(*autoscaling.BatchDeleteScheduledActionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchDeleteScheduledAction indicates an expected call of BatchDeleteScheduledAction. +func (mr *MockAutoScalingAPIMockRecorder) BatchDeleteScheduledAction(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchDeleteScheduledAction", reflect.TypeOf((*MockAutoScalingAPI)(nil).BatchDeleteScheduledAction), arg0) +} + +// BatchDeleteScheduledActionRequest mocks base method. +func (m *MockAutoScalingAPI) BatchDeleteScheduledActionRequest(arg0 *autoscaling.BatchDeleteScheduledActionInput) (*request.Request, *autoscaling.BatchDeleteScheduledActionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchDeleteScheduledActionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.BatchDeleteScheduledActionOutput) + return ret0, ret1 +} + +// BatchDeleteScheduledActionRequest indicates an expected call of BatchDeleteScheduledActionRequest. +func (mr *MockAutoScalingAPIMockRecorder) BatchDeleteScheduledActionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchDeleteScheduledActionRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).BatchDeleteScheduledActionRequest), arg0) +} + +// BatchDeleteScheduledActionWithContext mocks base method. +func (m *MockAutoScalingAPI) BatchDeleteScheduledActionWithContext(arg0 aws.Context, arg1 *autoscaling.BatchDeleteScheduledActionInput, arg2 ...request.Option) (*autoscaling.BatchDeleteScheduledActionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "BatchDeleteScheduledActionWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.BatchDeleteScheduledActionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchDeleteScheduledActionWithContext indicates an expected call of BatchDeleteScheduledActionWithContext. +func (mr *MockAutoScalingAPIMockRecorder) BatchDeleteScheduledActionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchDeleteScheduledActionWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).BatchDeleteScheduledActionWithContext), varargs...) +} + +// BatchPutScheduledUpdateGroupAction mocks base method. +func (m *MockAutoScalingAPI) BatchPutScheduledUpdateGroupAction(arg0 *autoscaling.BatchPutScheduledUpdateGroupActionInput) (*autoscaling.BatchPutScheduledUpdateGroupActionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchPutScheduledUpdateGroupAction", arg0) + ret0, _ := ret[0].(*autoscaling.BatchPutScheduledUpdateGroupActionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchPutScheduledUpdateGroupAction indicates an expected call of BatchPutScheduledUpdateGroupAction. +func (mr *MockAutoScalingAPIMockRecorder) BatchPutScheduledUpdateGroupAction(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchPutScheduledUpdateGroupAction", reflect.TypeOf((*MockAutoScalingAPI)(nil).BatchPutScheduledUpdateGroupAction), arg0) +} + +// BatchPutScheduledUpdateGroupActionRequest mocks base method. +func (m *MockAutoScalingAPI) BatchPutScheduledUpdateGroupActionRequest(arg0 *autoscaling.BatchPutScheduledUpdateGroupActionInput) (*request.Request, *autoscaling.BatchPutScheduledUpdateGroupActionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchPutScheduledUpdateGroupActionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.BatchPutScheduledUpdateGroupActionOutput) + return ret0, ret1 +} + +// BatchPutScheduledUpdateGroupActionRequest indicates an expected call of BatchPutScheduledUpdateGroupActionRequest. +func (mr *MockAutoScalingAPIMockRecorder) BatchPutScheduledUpdateGroupActionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchPutScheduledUpdateGroupActionRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).BatchPutScheduledUpdateGroupActionRequest), arg0) +} + +// BatchPutScheduledUpdateGroupActionWithContext mocks base method. +func (m *MockAutoScalingAPI) BatchPutScheduledUpdateGroupActionWithContext(arg0 aws.Context, arg1 *autoscaling.BatchPutScheduledUpdateGroupActionInput, arg2 ...request.Option) (*autoscaling.BatchPutScheduledUpdateGroupActionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "BatchPutScheduledUpdateGroupActionWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.BatchPutScheduledUpdateGroupActionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchPutScheduledUpdateGroupActionWithContext indicates an expected call of BatchPutScheduledUpdateGroupActionWithContext. +func (mr *MockAutoScalingAPIMockRecorder) BatchPutScheduledUpdateGroupActionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchPutScheduledUpdateGroupActionWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).BatchPutScheduledUpdateGroupActionWithContext), varargs...) +} + +// CancelInstanceRefresh mocks base method. +func (m *MockAutoScalingAPI) CancelInstanceRefresh(arg0 *autoscaling.CancelInstanceRefreshInput) (*autoscaling.CancelInstanceRefreshOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CancelInstanceRefresh", arg0) + ret0, _ := ret[0].(*autoscaling.CancelInstanceRefreshOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CancelInstanceRefresh indicates an expected call of CancelInstanceRefresh. +func (mr *MockAutoScalingAPIMockRecorder) CancelInstanceRefresh(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelInstanceRefresh", reflect.TypeOf((*MockAutoScalingAPI)(nil).CancelInstanceRefresh), arg0) +} + +// CancelInstanceRefreshRequest mocks base method. +func (m *MockAutoScalingAPI) CancelInstanceRefreshRequest(arg0 *autoscaling.CancelInstanceRefreshInput) (*request.Request, *autoscaling.CancelInstanceRefreshOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CancelInstanceRefreshRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.CancelInstanceRefreshOutput) + return ret0, ret1 +} + +// CancelInstanceRefreshRequest indicates an expected call of CancelInstanceRefreshRequest. +func (mr *MockAutoScalingAPIMockRecorder) CancelInstanceRefreshRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelInstanceRefreshRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).CancelInstanceRefreshRequest), arg0) +} + +// CancelInstanceRefreshWithContext mocks base method. +func (m *MockAutoScalingAPI) CancelInstanceRefreshWithContext(arg0 aws.Context, arg1 *autoscaling.CancelInstanceRefreshInput, arg2 ...request.Option) (*autoscaling.CancelInstanceRefreshOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CancelInstanceRefreshWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.CancelInstanceRefreshOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CancelInstanceRefreshWithContext indicates an expected call of CancelInstanceRefreshWithContext. +func (mr *MockAutoScalingAPIMockRecorder) CancelInstanceRefreshWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelInstanceRefreshWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).CancelInstanceRefreshWithContext), varargs...) +} + +// CompleteLifecycleAction mocks base method. +func (m *MockAutoScalingAPI) CompleteLifecycleAction(arg0 *autoscaling.CompleteLifecycleActionInput) (*autoscaling.CompleteLifecycleActionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CompleteLifecycleAction", arg0) + ret0, _ := ret[0].(*autoscaling.CompleteLifecycleActionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CompleteLifecycleAction indicates an expected call of CompleteLifecycleAction. +func (mr *MockAutoScalingAPIMockRecorder) CompleteLifecycleAction(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CompleteLifecycleAction", reflect.TypeOf((*MockAutoScalingAPI)(nil).CompleteLifecycleAction), arg0) +} + +// CompleteLifecycleActionRequest mocks base method. +func (m *MockAutoScalingAPI) CompleteLifecycleActionRequest(arg0 *autoscaling.CompleteLifecycleActionInput) (*request.Request, *autoscaling.CompleteLifecycleActionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CompleteLifecycleActionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.CompleteLifecycleActionOutput) + return ret0, ret1 +} + +// CompleteLifecycleActionRequest indicates an expected call of CompleteLifecycleActionRequest. +func (mr *MockAutoScalingAPIMockRecorder) CompleteLifecycleActionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CompleteLifecycleActionRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).CompleteLifecycleActionRequest), arg0) +} + +// CompleteLifecycleActionWithContext mocks base method. +func (m *MockAutoScalingAPI) CompleteLifecycleActionWithContext(arg0 aws.Context, arg1 *autoscaling.CompleteLifecycleActionInput, arg2 ...request.Option) (*autoscaling.CompleteLifecycleActionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CompleteLifecycleActionWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.CompleteLifecycleActionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CompleteLifecycleActionWithContext indicates an expected call of CompleteLifecycleActionWithContext. +func (mr *MockAutoScalingAPIMockRecorder) CompleteLifecycleActionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CompleteLifecycleActionWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).CompleteLifecycleActionWithContext), varargs...) +} + +// CreateAutoScalingGroup mocks base method. +func (m *MockAutoScalingAPI) CreateAutoScalingGroup(arg0 *autoscaling.CreateAutoScalingGroupInput) (*autoscaling.CreateAutoScalingGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateAutoScalingGroup", arg0) + ret0, _ := ret[0].(*autoscaling.CreateAutoScalingGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateAutoScalingGroup indicates an expected call of CreateAutoScalingGroup. +func (mr *MockAutoScalingAPIMockRecorder) CreateAutoScalingGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAutoScalingGroup", reflect.TypeOf((*MockAutoScalingAPI)(nil).CreateAutoScalingGroup), arg0) +} + +// CreateAutoScalingGroupRequest mocks base method. +func (m *MockAutoScalingAPI) CreateAutoScalingGroupRequest(arg0 *autoscaling.CreateAutoScalingGroupInput) (*request.Request, *autoscaling.CreateAutoScalingGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateAutoScalingGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.CreateAutoScalingGroupOutput) + return ret0, ret1 +} + +// CreateAutoScalingGroupRequest indicates an expected call of CreateAutoScalingGroupRequest. +func (mr *MockAutoScalingAPIMockRecorder) CreateAutoScalingGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAutoScalingGroupRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).CreateAutoScalingGroupRequest), arg0) +} + +// CreateAutoScalingGroupWithContext mocks base method. +func (m *MockAutoScalingAPI) CreateAutoScalingGroupWithContext(arg0 aws.Context, arg1 *autoscaling.CreateAutoScalingGroupInput, arg2 ...request.Option) (*autoscaling.CreateAutoScalingGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateAutoScalingGroupWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.CreateAutoScalingGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateAutoScalingGroupWithContext indicates an expected call of CreateAutoScalingGroupWithContext. +func (mr *MockAutoScalingAPIMockRecorder) CreateAutoScalingGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAutoScalingGroupWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).CreateAutoScalingGroupWithContext), varargs...) +} + +// CreateLaunchConfiguration mocks base method. +func (m *MockAutoScalingAPI) CreateLaunchConfiguration(arg0 *autoscaling.CreateLaunchConfigurationInput) (*autoscaling.CreateLaunchConfigurationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateLaunchConfiguration", arg0) + ret0, _ := ret[0].(*autoscaling.CreateLaunchConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateLaunchConfiguration indicates an expected call of CreateLaunchConfiguration. +func (mr *MockAutoScalingAPIMockRecorder) CreateLaunchConfiguration(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateLaunchConfiguration", reflect.TypeOf((*MockAutoScalingAPI)(nil).CreateLaunchConfiguration), arg0) +} + +// CreateLaunchConfigurationRequest mocks base method. +func (m *MockAutoScalingAPI) CreateLaunchConfigurationRequest(arg0 *autoscaling.CreateLaunchConfigurationInput) (*request.Request, *autoscaling.CreateLaunchConfigurationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateLaunchConfigurationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.CreateLaunchConfigurationOutput) + return ret0, ret1 +} + +// CreateLaunchConfigurationRequest indicates an expected call of CreateLaunchConfigurationRequest. +func (mr *MockAutoScalingAPIMockRecorder) CreateLaunchConfigurationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateLaunchConfigurationRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).CreateLaunchConfigurationRequest), arg0) +} + +// CreateLaunchConfigurationWithContext mocks base method. +func (m *MockAutoScalingAPI) CreateLaunchConfigurationWithContext(arg0 aws.Context, arg1 *autoscaling.CreateLaunchConfigurationInput, arg2 ...request.Option) (*autoscaling.CreateLaunchConfigurationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateLaunchConfigurationWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.CreateLaunchConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateLaunchConfigurationWithContext indicates an expected call of CreateLaunchConfigurationWithContext. +func (mr *MockAutoScalingAPIMockRecorder) CreateLaunchConfigurationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateLaunchConfigurationWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).CreateLaunchConfigurationWithContext), varargs...) +} + +// CreateOrUpdateTags mocks base method. +func (m *MockAutoScalingAPI) CreateOrUpdateTags(arg0 *autoscaling.CreateOrUpdateTagsInput) (*autoscaling.CreateOrUpdateTagsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateOrUpdateTags", arg0) + ret0, _ := ret[0].(*autoscaling.CreateOrUpdateTagsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateOrUpdateTags indicates an expected call of CreateOrUpdateTags. +func (mr *MockAutoScalingAPIMockRecorder) CreateOrUpdateTags(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrUpdateTags", reflect.TypeOf((*MockAutoScalingAPI)(nil).CreateOrUpdateTags), arg0) +} + +// CreateOrUpdateTagsRequest mocks base method. +func (m *MockAutoScalingAPI) CreateOrUpdateTagsRequest(arg0 *autoscaling.CreateOrUpdateTagsInput) (*request.Request, *autoscaling.CreateOrUpdateTagsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateOrUpdateTagsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.CreateOrUpdateTagsOutput) + return ret0, ret1 +} + +// CreateOrUpdateTagsRequest indicates an expected call of CreateOrUpdateTagsRequest. +func (mr *MockAutoScalingAPIMockRecorder) CreateOrUpdateTagsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrUpdateTagsRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).CreateOrUpdateTagsRequest), arg0) +} + +// CreateOrUpdateTagsWithContext mocks base method. +func (m *MockAutoScalingAPI) CreateOrUpdateTagsWithContext(arg0 aws.Context, arg1 *autoscaling.CreateOrUpdateTagsInput, arg2 ...request.Option) (*autoscaling.CreateOrUpdateTagsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateOrUpdateTagsWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.CreateOrUpdateTagsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateOrUpdateTagsWithContext indicates an expected call of CreateOrUpdateTagsWithContext. +func (mr *MockAutoScalingAPIMockRecorder) CreateOrUpdateTagsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrUpdateTagsWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).CreateOrUpdateTagsWithContext), varargs...) +} + +// DeleteAutoScalingGroup mocks base method. +func (m *MockAutoScalingAPI) DeleteAutoScalingGroup(arg0 *autoscaling.DeleteAutoScalingGroupInput) (*autoscaling.DeleteAutoScalingGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteAutoScalingGroup", arg0) + ret0, _ := ret[0].(*autoscaling.DeleteAutoScalingGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteAutoScalingGroup indicates an expected call of DeleteAutoScalingGroup. +func (mr *MockAutoScalingAPIMockRecorder) DeleteAutoScalingGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAutoScalingGroup", reflect.TypeOf((*MockAutoScalingAPI)(nil).DeleteAutoScalingGroup), arg0) +} + +// DeleteAutoScalingGroupRequest mocks base method. +func (m *MockAutoScalingAPI) DeleteAutoScalingGroupRequest(arg0 *autoscaling.DeleteAutoScalingGroupInput) (*request.Request, *autoscaling.DeleteAutoScalingGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteAutoScalingGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.DeleteAutoScalingGroupOutput) + return ret0, ret1 +} + +// DeleteAutoScalingGroupRequest indicates an expected call of DeleteAutoScalingGroupRequest. +func (mr *MockAutoScalingAPIMockRecorder) DeleteAutoScalingGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAutoScalingGroupRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).DeleteAutoScalingGroupRequest), arg0) +} + +// DeleteAutoScalingGroupWithContext mocks base method. +func (m *MockAutoScalingAPI) DeleteAutoScalingGroupWithContext(arg0 aws.Context, arg1 *autoscaling.DeleteAutoScalingGroupInput, arg2 ...request.Option) (*autoscaling.DeleteAutoScalingGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteAutoScalingGroupWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.DeleteAutoScalingGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteAutoScalingGroupWithContext indicates an expected call of DeleteAutoScalingGroupWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DeleteAutoScalingGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAutoScalingGroupWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DeleteAutoScalingGroupWithContext), varargs...) +} + +// DeleteLaunchConfiguration mocks base method. +func (m *MockAutoScalingAPI) DeleteLaunchConfiguration(arg0 *autoscaling.DeleteLaunchConfigurationInput) (*autoscaling.DeleteLaunchConfigurationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteLaunchConfiguration", arg0) + ret0, _ := ret[0].(*autoscaling.DeleteLaunchConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteLaunchConfiguration indicates an expected call of DeleteLaunchConfiguration. +func (mr *MockAutoScalingAPIMockRecorder) DeleteLaunchConfiguration(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteLaunchConfiguration", reflect.TypeOf((*MockAutoScalingAPI)(nil).DeleteLaunchConfiguration), arg0) +} + +// DeleteLaunchConfigurationRequest mocks base method. +func (m *MockAutoScalingAPI) DeleteLaunchConfigurationRequest(arg0 *autoscaling.DeleteLaunchConfigurationInput) (*request.Request, *autoscaling.DeleteLaunchConfigurationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteLaunchConfigurationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.DeleteLaunchConfigurationOutput) + return ret0, ret1 +} + +// DeleteLaunchConfigurationRequest indicates an expected call of DeleteLaunchConfigurationRequest. +func (mr *MockAutoScalingAPIMockRecorder) DeleteLaunchConfigurationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteLaunchConfigurationRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).DeleteLaunchConfigurationRequest), arg0) +} + +// DeleteLaunchConfigurationWithContext mocks base method. +func (m *MockAutoScalingAPI) DeleteLaunchConfigurationWithContext(arg0 aws.Context, arg1 *autoscaling.DeleteLaunchConfigurationInput, arg2 ...request.Option) (*autoscaling.DeleteLaunchConfigurationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteLaunchConfigurationWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.DeleteLaunchConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteLaunchConfigurationWithContext indicates an expected call of DeleteLaunchConfigurationWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DeleteLaunchConfigurationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteLaunchConfigurationWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DeleteLaunchConfigurationWithContext), varargs...) +} + +// DeleteLifecycleHook mocks base method. +func (m *MockAutoScalingAPI) DeleteLifecycleHook(arg0 *autoscaling.DeleteLifecycleHookInput) (*autoscaling.DeleteLifecycleHookOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteLifecycleHook", arg0) + ret0, _ := ret[0].(*autoscaling.DeleteLifecycleHookOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteLifecycleHook indicates an expected call of DeleteLifecycleHook. +func (mr *MockAutoScalingAPIMockRecorder) DeleteLifecycleHook(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteLifecycleHook", reflect.TypeOf((*MockAutoScalingAPI)(nil).DeleteLifecycleHook), arg0) +} + +// DeleteLifecycleHookRequest mocks base method. +func (m *MockAutoScalingAPI) DeleteLifecycleHookRequest(arg0 *autoscaling.DeleteLifecycleHookInput) (*request.Request, *autoscaling.DeleteLifecycleHookOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteLifecycleHookRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.DeleteLifecycleHookOutput) + return ret0, ret1 +} + +// DeleteLifecycleHookRequest indicates an expected call of DeleteLifecycleHookRequest. +func (mr *MockAutoScalingAPIMockRecorder) DeleteLifecycleHookRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteLifecycleHookRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).DeleteLifecycleHookRequest), arg0) +} + +// DeleteLifecycleHookWithContext mocks base method. +func (m *MockAutoScalingAPI) DeleteLifecycleHookWithContext(arg0 aws.Context, arg1 *autoscaling.DeleteLifecycleHookInput, arg2 ...request.Option) (*autoscaling.DeleteLifecycleHookOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteLifecycleHookWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.DeleteLifecycleHookOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteLifecycleHookWithContext indicates an expected call of DeleteLifecycleHookWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DeleteLifecycleHookWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteLifecycleHookWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DeleteLifecycleHookWithContext), varargs...) +} + +// DeleteNotificationConfiguration mocks base method. +func (m *MockAutoScalingAPI) DeleteNotificationConfiguration(arg0 *autoscaling.DeleteNotificationConfigurationInput) (*autoscaling.DeleteNotificationConfigurationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteNotificationConfiguration", arg0) + ret0, _ := ret[0].(*autoscaling.DeleteNotificationConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteNotificationConfiguration indicates an expected call of DeleteNotificationConfiguration. +func (mr *MockAutoScalingAPIMockRecorder) DeleteNotificationConfiguration(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteNotificationConfiguration", reflect.TypeOf((*MockAutoScalingAPI)(nil).DeleteNotificationConfiguration), arg0) +} + +// DeleteNotificationConfigurationRequest mocks base method. +func (m *MockAutoScalingAPI) DeleteNotificationConfigurationRequest(arg0 *autoscaling.DeleteNotificationConfigurationInput) (*request.Request, *autoscaling.DeleteNotificationConfigurationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteNotificationConfigurationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.DeleteNotificationConfigurationOutput) + return ret0, ret1 +} + +// DeleteNotificationConfigurationRequest indicates an expected call of DeleteNotificationConfigurationRequest. +func (mr *MockAutoScalingAPIMockRecorder) DeleteNotificationConfigurationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteNotificationConfigurationRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).DeleteNotificationConfigurationRequest), arg0) +} + +// DeleteNotificationConfigurationWithContext mocks base method. +func (m *MockAutoScalingAPI) DeleteNotificationConfigurationWithContext(arg0 aws.Context, arg1 *autoscaling.DeleteNotificationConfigurationInput, arg2 ...request.Option) (*autoscaling.DeleteNotificationConfigurationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteNotificationConfigurationWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.DeleteNotificationConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteNotificationConfigurationWithContext indicates an expected call of DeleteNotificationConfigurationWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DeleteNotificationConfigurationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteNotificationConfigurationWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DeleteNotificationConfigurationWithContext), varargs...) +} + +// DeletePolicy mocks base method. +func (m *MockAutoScalingAPI) DeletePolicy(arg0 *autoscaling.DeletePolicyInput) (*autoscaling.DeletePolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeletePolicy", arg0) + ret0, _ := ret[0].(*autoscaling.DeletePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeletePolicy indicates an expected call of DeletePolicy. +func (mr *MockAutoScalingAPIMockRecorder) DeletePolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePolicy", reflect.TypeOf((*MockAutoScalingAPI)(nil).DeletePolicy), arg0) +} + +// DeletePolicyRequest mocks base method. +func (m *MockAutoScalingAPI) DeletePolicyRequest(arg0 *autoscaling.DeletePolicyInput) (*request.Request, *autoscaling.DeletePolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeletePolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.DeletePolicyOutput) + return ret0, ret1 +} + +// DeletePolicyRequest indicates an expected call of DeletePolicyRequest. +func (mr *MockAutoScalingAPIMockRecorder) DeletePolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePolicyRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).DeletePolicyRequest), arg0) +} + +// DeletePolicyWithContext mocks base method. +func (m *MockAutoScalingAPI) DeletePolicyWithContext(arg0 aws.Context, arg1 *autoscaling.DeletePolicyInput, arg2 ...request.Option) (*autoscaling.DeletePolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeletePolicyWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.DeletePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeletePolicyWithContext indicates an expected call of DeletePolicyWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DeletePolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePolicyWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DeletePolicyWithContext), varargs...) +} + +// DeleteScheduledAction mocks base method. +func (m *MockAutoScalingAPI) DeleteScheduledAction(arg0 *autoscaling.DeleteScheduledActionInput) (*autoscaling.DeleteScheduledActionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteScheduledAction", arg0) + ret0, _ := ret[0].(*autoscaling.DeleteScheduledActionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteScheduledAction indicates an expected call of DeleteScheduledAction. +func (mr *MockAutoScalingAPIMockRecorder) DeleteScheduledAction(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteScheduledAction", reflect.TypeOf((*MockAutoScalingAPI)(nil).DeleteScheduledAction), arg0) +} + +// DeleteScheduledActionRequest mocks base method. +func (m *MockAutoScalingAPI) DeleteScheduledActionRequest(arg0 *autoscaling.DeleteScheduledActionInput) (*request.Request, *autoscaling.DeleteScheduledActionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteScheduledActionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.DeleteScheduledActionOutput) + return ret0, ret1 +} + +// DeleteScheduledActionRequest indicates an expected call of DeleteScheduledActionRequest. +func (mr *MockAutoScalingAPIMockRecorder) DeleteScheduledActionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteScheduledActionRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).DeleteScheduledActionRequest), arg0) +} + +// DeleteScheduledActionWithContext mocks base method. +func (m *MockAutoScalingAPI) DeleteScheduledActionWithContext(arg0 aws.Context, arg1 *autoscaling.DeleteScheduledActionInput, arg2 ...request.Option) (*autoscaling.DeleteScheduledActionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteScheduledActionWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.DeleteScheduledActionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteScheduledActionWithContext indicates an expected call of DeleteScheduledActionWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DeleteScheduledActionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteScheduledActionWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DeleteScheduledActionWithContext), varargs...) +} + +// DeleteTags mocks base method. +func (m *MockAutoScalingAPI) DeleteTags(arg0 *autoscaling.DeleteTagsInput) (*autoscaling.DeleteTagsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTags", arg0) + ret0, _ := ret[0].(*autoscaling.DeleteTagsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTags indicates an expected call of DeleteTags. +func (mr *MockAutoScalingAPIMockRecorder) DeleteTags(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTags", reflect.TypeOf((*MockAutoScalingAPI)(nil).DeleteTags), arg0) +} + +// DeleteTagsRequest mocks base method. +func (m *MockAutoScalingAPI) DeleteTagsRequest(arg0 *autoscaling.DeleteTagsInput) (*request.Request, *autoscaling.DeleteTagsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTagsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.DeleteTagsOutput) + return ret0, ret1 +} + +// DeleteTagsRequest indicates an expected call of DeleteTagsRequest. +func (mr *MockAutoScalingAPIMockRecorder) DeleteTagsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTagsRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).DeleteTagsRequest), arg0) +} + +// DeleteTagsWithContext mocks base method. +func (m *MockAutoScalingAPI) DeleteTagsWithContext(arg0 aws.Context, arg1 *autoscaling.DeleteTagsInput, arg2 ...request.Option) (*autoscaling.DeleteTagsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteTagsWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.DeleteTagsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTagsWithContext indicates an expected call of DeleteTagsWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DeleteTagsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTagsWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DeleteTagsWithContext), varargs...) +} + +// DeleteWarmPool mocks base method. +func (m *MockAutoScalingAPI) DeleteWarmPool(arg0 *autoscaling.DeleteWarmPoolInput) (*autoscaling.DeleteWarmPoolOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteWarmPool", arg0) + ret0, _ := ret[0].(*autoscaling.DeleteWarmPoolOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteWarmPool indicates an expected call of DeleteWarmPool. +func (mr *MockAutoScalingAPIMockRecorder) DeleteWarmPool(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteWarmPool", reflect.TypeOf((*MockAutoScalingAPI)(nil).DeleteWarmPool), arg0) +} + +// DeleteWarmPoolRequest mocks base method. +func (m *MockAutoScalingAPI) DeleteWarmPoolRequest(arg0 *autoscaling.DeleteWarmPoolInput) (*request.Request, *autoscaling.DeleteWarmPoolOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteWarmPoolRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.DeleteWarmPoolOutput) + return ret0, ret1 +} + +// DeleteWarmPoolRequest indicates an expected call of DeleteWarmPoolRequest. +func (mr *MockAutoScalingAPIMockRecorder) DeleteWarmPoolRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteWarmPoolRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).DeleteWarmPoolRequest), arg0) +} + +// DeleteWarmPoolWithContext mocks base method. +func (m *MockAutoScalingAPI) DeleteWarmPoolWithContext(arg0 aws.Context, arg1 *autoscaling.DeleteWarmPoolInput, arg2 ...request.Option) (*autoscaling.DeleteWarmPoolOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteWarmPoolWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.DeleteWarmPoolOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteWarmPoolWithContext indicates an expected call of DeleteWarmPoolWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DeleteWarmPoolWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteWarmPoolWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DeleteWarmPoolWithContext), varargs...) +} + +// DescribeAccountLimits mocks base method. +func (m *MockAutoScalingAPI) DescribeAccountLimits(arg0 *autoscaling.DescribeAccountLimitsInput) (*autoscaling.DescribeAccountLimitsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAccountLimits", arg0) + ret0, _ := ret[0].(*autoscaling.DescribeAccountLimitsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAccountLimits indicates an expected call of DescribeAccountLimits. +func (mr *MockAutoScalingAPIMockRecorder) DescribeAccountLimits(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAccountLimits", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeAccountLimits), arg0) +} + +// DescribeAccountLimitsRequest mocks base method. +func (m *MockAutoScalingAPI) DescribeAccountLimitsRequest(arg0 *autoscaling.DescribeAccountLimitsInput) (*request.Request, *autoscaling.DescribeAccountLimitsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAccountLimitsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.DescribeAccountLimitsOutput) + return ret0, ret1 +} + +// DescribeAccountLimitsRequest indicates an expected call of DescribeAccountLimitsRequest. +func (mr *MockAutoScalingAPIMockRecorder) DescribeAccountLimitsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAccountLimitsRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeAccountLimitsRequest), arg0) +} + +// DescribeAccountLimitsWithContext mocks base method. +func (m *MockAutoScalingAPI) DescribeAccountLimitsWithContext(arg0 aws.Context, arg1 *autoscaling.DescribeAccountLimitsInput, arg2 ...request.Option) (*autoscaling.DescribeAccountLimitsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeAccountLimitsWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.DescribeAccountLimitsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAccountLimitsWithContext indicates an expected call of DescribeAccountLimitsWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DescribeAccountLimitsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAccountLimitsWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeAccountLimitsWithContext), varargs...) +} + +// DescribeAdjustmentTypes mocks base method. +func (m *MockAutoScalingAPI) DescribeAdjustmentTypes(arg0 *autoscaling.DescribeAdjustmentTypesInput) (*autoscaling.DescribeAdjustmentTypesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAdjustmentTypes", arg0) + ret0, _ := ret[0].(*autoscaling.DescribeAdjustmentTypesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAdjustmentTypes indicates an expected call of DescribeAdjustmentTypes. +func (mr *MockAutoScalingAPIMockRecorder) DescribeAdjustmentTypes(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAdjustmentTypes", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeAdjustmentTypes), arg0) +} + +// DescribeAdjustmentTypesRequest mocks base method. +func (m *MockAutoScalingAPI) DescribeAdjustmentTypesRequest(arg0 *autoscaling.DescribeAdjustmentTypesInput) (*request.Request, *autoscaling.DescribeAdjustmentTypesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAdjustmentTypesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.DescribeAdjustmentTypesOutput) + return ret0, ret1 +} + +// DescribeAdjustmentTypesRequest indicates an expected call of DescribeAdjustmentTypesRequest. +func (mr *MockAutoScalingAPIMockRecorder) DescribeAdjustmentTypesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAdjustmentTypesRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeAdjustmentTypesRequest), arg0) +} + +// DescribeAdjustmentTypesWithContext mocks base method. +func (m *MockAutoScalingAPI) DescribeAdjustmentTypesWithContext(arg0 aws.Context, arg1 *autoscaling.DescribeAdjustmentTypesInput, arg2 ...request.Option) (*autoscaling.DescribeAdjustmentTypesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeAdjustmentTypesWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.DescribeAdjustmentTypesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAdjustmentTypesWithContext indicates an expected call of DescribeAdjustmentTypesWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DescribeAdjustmentTypesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAdjustmentTypesWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeAdjustmentTypesWithContext), varargs...) +} + +// DescribeAutoScalingGroups mocks base method. +func (m *MockAutoScalingAPI) DescribeAutoScalingGroups(arg0 *autoscaling.DescribeAutoScalingGroupsInput) (*autoscaling.DescribeAutoScalingGroupsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAutoScalingGroups", arg0) + ret0, _ := ret[0].(*autoscaling.DescribeAutoScalingGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAutoScalingGroups indicates an expected call of DescribeAutoScalingGroups. +func (mr *MockAutoScalingAPIMockRecorder) DescribeAutoScalingGroups(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAutoScalingGroups", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeAutoScalingGroups), arg0) +} + +// DescribeAutoScalingGroupsPages mocks base method. +func (m *MockAutoScalingAPI) DescribeAutoScalingGroupsPages(arg0 *autoscaling.DescribeAutoScalingGroupsInput, arg1 func(*autoscaling.DescribeAutoScalingGroupsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAutoScalingGroupsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeAutoScalingGroupsPages indicates an expected call of DescribeAutoScalingGroupsPages. +func (mr *MockAutoScalingAPIMockRecorder) DescribeAutoScalingGroupsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAutoScalingGroupsPages", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeAutoScalingGroupsPages), arg0, arg1) +} + +// DescribeAutoScalingGroupsPagesWithContext mocks base method. +func (m *MockAutoScalingAPI) DescribeAutoScalingGroupsPagesWithContext(arg0 aws.Context, arg1 *autoscaling.DescribeAutoScalingGroupsInput, arg2 func(*autoscaling.DescribeAutoScalingGroupsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeAutoScalingGroupsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeAutoScalingGroupsPagesWithContext indicates an expected call of DescribeAutoScalingGroupsPagesWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DescribeAutoScalingGroupsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAutoScalingGroupsPagesWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeAutoScalingGroupsPagesWithContext), varargs...) +} + +// DescribeAutoScalingGroupsRequest mocks base method. +func (m *MockAutoScalingAPI) DescribeAutoScalingGroupsRequest(arg0 *autoscaling.DescribeAutoScalingGroupsInput) (*request.Request, *autoscaling.DescribeAutoScalingGroupsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAutoScalingGroupsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.DescribeAutoScalingGroupsOutput) + return ret0, ret1 +} + +// DescribeAutoScalingGroupsRequest indicates an expected call of DescribeAutoScalingGroupsRequest. +func (mr *MockAutoScalingAPIMockRecorder) DescribeAutoScalingGroupsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAutoScalingGroupsRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeAutoScalingGroupsRequest), arg0) +} + +// DescribeAutoScalingGroupsWithContext mocks base method. +func (m *MockAutoScalingAPI) DescribeAutoScalingGroupsWithContext(arg0 aws.Context, arg1 *autoscaling.DescribeAutoScalingGroupsInput, arg2 ...request.Option) (*autoscaling.DescribeAutoScalingGroupsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeAutoScalingGroupsWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.DescribeAutoScalingGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAutoScalingGroupsWithContext indicates an expected call of DescribeAutoScalingGroupsWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DescribeAutoScalingGroupsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAutoScalingGroupsWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeAutoScalingGroupsWithContext), varargs...) +} + +// DescribeAutoScalingInstances mocks base method. +func (m *MockAutoScalingAPI) DescribeAutoScalingInstances(arg0 *autoscaling.DescribeAutoScalingInstancesInput) (*autoscaling.DescribeAutoScalingInstancesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAutoScalingInstances", arg0) + ret0, _ := ret[0].(*autoscaling.DescribeAutoScalingInstancesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAutoScalingInstances indicates an expected call of DescribeAutoScalingInstances. +func (mr *MockAutoScalingAPIMockRecorder) DescribeAutoScalingInstances(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAutoScalingInstances", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeAutoScalingInstances), arg0) +} + +// DescribeAutoScalingInstancesPages mocks base method. +func (m *MockAutoScalingAPI) DescribeAutoScalingInstancesPages(arg0 *autoscaling.DescribeAutoScalingInstancesInput, arg1 func(*autoscaling.DescribeAutoScalingInstancesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAutoScalingInstancesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeAutoScalingInstancesPages indicates an expected call of DescribeAutoScalingInstancesPages. +func (mr *MockAutoScalingAPIMockRecorder) DescribeAutoScalingInstancesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAutoScalingInstancesPages", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeAutoScalingInstancesPages), arg0, arg1) +} + +// DescribeAutoScalingInstancesPagesWithContext mocks base method. +func (m *MockAutoScalingAPI) DescribeAutoScalingInstancesPagesWithContext(arg0 aws.Context, arg1 *autoscaling.DescribeAutoScalingInstancesInput, arg2 func(*autoscaling.DescribeAutoScalingInstancesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeAutoScalingInstancesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeAutoScalingInstancesPagesWithContext indicates an expected call of DescribeAutoScalingInstancesPagesWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DescribeAutoScalingInstancesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAutoScalingInstancesPagesWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeAutoScalingInstancesPagesWithContext), varargs...) +} + +// DescribeAutoScalingInstancesRequest mocks base method. +func (m *MockAutoScalingAPI) DescribeAutoScalingInstancesRequest(arg0 *autoscaling.DescribeAutoScalingInstancesInput) (*request.Request, *autoscaling.DescribeAutoScalingInstancesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAutoScalingInstancesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.DescribeAutoScalingInstancesOutput) + return ret0, ret1 +} + +// DescribeAutoScalingInstancesRequest indicates an expected call of DescribeAutoScalingInstancesRequest. +func (mr *MockAutoScalingAPIMockRecorder) DescribeAutoScalingInstancesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAutoScalingInstancesRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeAutoScalingInstancesRequest), arg0) +} + +// DescribeAutoScalingInstancesWithContext mocks base method. +func (m *MockAutoScalingAPI) DescribeAutoScalingInstancesWithContext(arg0 aws.Context, arg1 *autoscaling.DescribeAutoScalingInstancesInput, arg2 ...request.Option) (*autoscaling.DescribeAutoScalingInstancesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeAutoScalingInstancesWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.DescribeAutoScalingInstancesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAutoScalingInstancesWithContext indicates an expected call of DescribeAutoScalingInstancesWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DescribeAutoScalingInstancesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAutoScalingInstancesWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeAutoScalingInstancesWithContext), varargs...) +} + +// DescribeAutoScalingNotificationTypes mocks base method. +func (m *MockAutoScalingAPI) DescribeAutoScalingNotificationTypes(arg0 *autoscaling.DescribeAutoScalingNotificationTypesInput) (*autoscaling.DescribeAutoScalingNotificationTypesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAutoScalingNotificationTypes", arg0) + ret0, _ := ret[0].(*autoscaling.DescribeAutoScalingNotificationTypesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAutoScalingNotificationTypes indicates an expected call of DescribeAutoScalingNotificationTypes. +func (mr *MockAutoScalingAPIMockRecorder) DescribeAutoScalingNotificationTypes(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAutoScalingNotificationTypes", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeAutoScalingNotificationTypes), arg0) +} + +// DescribeAutoScalingNotificationTypesRequest mocks base method. +func (m *MockAutoScalingAPI) DescribeAutoScalingNotificationTypesRequest(arg0 *autoscaling.DescribeAutoScalingNotificationTypesInput) (*request.Request, *autoscaling.DescribeAutoScalingNotificationTypesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAutoScalingNotificationTypesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.DescribeAutoScalingNotificationTypesOutput) + return ret0, ret1 +} + +// DescribeAutoScalingNotificationTypesRequest indicates an expected call of DescribeAutoScalingNotificationTypesRequest. +func (mr *MockAutoScalingAPIMockRecorder) DescribeAutoScalingNotificationTypesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAutoScalingNotificationTypesRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeAutoScalingNotificationTypesRequest), arg0) +} + +// DescribeAutoScalingNotificationTypesWithContext mocks base method. +func (m *MockAutoScalingAPI) DescribeAutoScalingNotificationTypesWithContext(arg0 aws.Context, arg1 *autoscaling.DescribeAutoScalingNotificationTypesInput, arg2 ...request.Option) (*autoscaling.DescribeAutoScalingNotificationTypesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeAutoScalingNotificationTypesWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.DescribeAutoScalingNotificationTypesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAutoScalingNotificationTypesWithContext indicates an expected call of DescribeAutoScalingNotificationTypesWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DescribeAutoScalingNotificationTypesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAutoScalingNotificationTypesWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeAutoScalingNotificationTypesWithContext), varargs...) +} + +// DescribeInstanceRefreshes mocks base method. +func (m *MockAutoScalingAPI) DescribeInstanceRefreshes(arg0 *autoscaling.DescribeInstanceRefreshesInput) (*autoscaling.DescribeInstanceRefreshesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeInstanceRefreshes", arg0) + ret0, _ := ret[0].(*autoscaling.DescribeInstanceRefreshesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeInstanceRefreshes indicates an expected call of DescribeInstanceRefreshes. +func (mr *MockAutoScalingAPIMockRecorder) DescribeInstanceRefreshes(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeInstanceRefreshes", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeInstanceRefreshes), arg0) +} + +// DescribeInstanceRefreshesPages mocks base method. +func (m *MockAutoScalingAPI) DescribeInstanceRefreshesPages(arg0 *autoscaling.DescribeInstanceRefreshesInput, arg1 func(*autoscaling.DescribeInstanceRefreshesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeInstanceRefreshesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeInstanceRefreshesPages indicates an expected call of DescribeInstanceRefreshesPages. +func (mr *MockAutoScalingAPIMockRecorder) DescribeInstanceRefreshesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeInstanceRefreshesPages", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeInstanceRefreshesPages), arg0, arg1) +} + +// DescribeInstanceRefreshesPagesWithContext mocks base method. +func (m *MockAutoScalingAPI) DescribeInstanceRefreshesPagesWithContext(arg0 aws.Context, arg1 *autoscaling.DescribeInstanceRefreshesInput, arg2 func(*autoscaling.DescribeInstanceRefreshesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeInstanceRefreshesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeInstanceRefreshesPagesWithContext indicates an expected call of DescribeInstanceRefreshesPagesWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DescribeInstanceRefreshesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeInstanceRefreshesPagesWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeInstanceRefreshesPagesWithContext), varargs...) +} + +// DescribeInstanceRefreshesRequest mocks base method. +func (m *MockAutoScalingAPI) DescribeInstanceRefreshesRequest(arg0 *autoscaling.DescribeInstanceRefreshesInput) (*request.Request, *autoscaling.DescribeInstanceRefreshesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeInstanceRefreshesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.DescribeInstanceRefreshesOutput) + return ret0, ret1 +} + +// DescribeInstanceRefreshesRequest indicates an expected call of DescribeInstanceRefreshesRequest. +func (mr *MockAutoScalingAPIMockRecorder) DescribeInstanceRefreshesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeInstanceRefreshesRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeInstanceRefreshesRequest), arg0) +} + +// DescribeInstanceRefreshesWithContext mocks base method. +func (m *MockAutoScalingAPI) DescribeInstanceRefreshesWithContext(arg0 aws.Context, arg1 *autoscaling.DescribeInstanceRefreshesInput, arg2 ...request.Option) (*autoscaling.DescribeInstanceRefreshesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeInstanceRefreshesWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.DescribeInstanceRefreshesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeInstanceRefreshesWithContext indicates an expected call of DescribeInstanceRefreshesWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DescribeInstanceRefreshesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeInstanceRefreshesWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeInstanceRefreshesWithContext), varargs...) +} + +// DescribeLaunchConfigurations mocks base method. +func (m *MockAutoScalingAPI) DescribeLaunchConfigurations(arg0 *autoscaling.DescribeLaunchConfigurationsInput) (*autoscaling.DescribeLaunchConfigurationsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeLaunchConfigurations", arg0) + ret0, _ := ret[0].(*autoscaling.DescribeLaunchConfigurationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeLaunchConfigurations indicates an expected call of DescribeLaunchConfigurations. +func (mr *MockAutoScalingAPIMockRecorder) DescribeLaunchConfigurations(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeLaunchConfigurations", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeLaunchConfigurations), arg0) +} + +// DescribeLaunchConfigurationsPages mocks base method. +func (m *MockAutoScalingAPI) DescribeLaunchConfigurationsPages(arg0 *autoscaling.DescribeLaunchConfigurationsInput, arg1 func(*autoscaling.DescribeLaunchConfigurationsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeLaunchConfigurationsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeLaunchConfigurationsPages indicates an expected call of DescribeLaunchConfigurationsPages. +func (mr *MockAutoScalingAPIMockRecorder) DescribeLaunchConfigurationsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeLaunchConfigurationsPages", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeLaunchConfigurationsPages), arg0, arg1) +} + +// DescribeLaunchConfigurationsPagesWithContext mocks base method. +func (m *MockAutoScalingAPI) DescribeLaunchConfigurationsPagesWithContext(arg0 aws.Context, arg1 *autoscaling.DescribeLaunchConfigurationsInput, arg2 func(*autoscaling.DescribeLaunchConfigurationsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeLaunchConfigurationsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeLaunchConfigurationsPagesWithContext indicates an expected call of DescribeLaunchConfigurationsPagesWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DescribeLaunchConfigurationsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeLaunchConfigurationsPagesWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeLaunchConfigurationsPagesWithContext), varargs...) +} + +// DescribeLaunchConfigurationsRequest mocks base method. +func (m *MockAutoScalingAPI) DescribeLaunchConfigurationsRequest(arg0 *autoscaling.DescribeLaunchConfigurationsInput) (*request.Request, *autoscaling.DescribeLaunchConfigurationsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeLaunchConfigurationsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.DescribeLaunchConfigurationsOutput) + return ret0, ret1 +} + +// DescribeLaunchConfigurationsRequest indicates an expected call of DescribeLaunchConfigurationsRequest. +func (mr *MockAutoScalingAPIMockRecorder) DescribeLaunchConfigurationsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeLaunchConfigurationsRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeLaunchConfigurationsRequest), arg0) +} + +// DescribeLaunchConfigurationsWithContext mocks base method. +func (m *MockAutoScalingAPI) DescribeLaunchConfigurationsWithContext(arg0 aws.Context, arg1 *autoscaling.DescribeLaunchConfigurationsInput, arg2 ...request.Option) (*autoscaling.DescribeLaunchConfigurationsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeLaunchConfigurationsWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.DescribeLaunchConfigurationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeLaunchConfigurationsWithContext indicates an expected call of DescribeLaunchConfigurationsWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DescribeLaunchConfigurationsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeLaunchConfigurationsWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeLaunchConfigurationsWithContext), varargs...) +} + +// DescribeLifecycleHookTypes mocks base method. +func (m *MockAutoScalingAPI) DescribeLifecycleHookTypes(arg0 *autoscaling.DescribeLifecycleHookTypesInput) (*autoscaling.DescribeLifecycleHookTypesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeLifecycleHookTypes", arg0) + ret0, _ := ret[0].(*autoscaling.DescribeLifecycleHookTypesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeLifecycleHookTypes indicates an expected call of DescribeLifecycleHookTypes. +func (mr *MockAutoScalingAPIMockRecorder) DescribeLifecycleHookTypes(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeLifecycleHookTypes", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeLifecycleHookTypes), arg0) +} + +// DescribeLifecycleHookTypesRequest mocks base method. +func (m *MockAutoScalingAPI) DescribeLifecycleHookTypesRequest(arg0 *autoscaling.DescribeLifecycleHookTypesInput) (*request.Request, *autoscaling.DescribeLifecycleHookTypesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeLifecycleHookTypesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.DescribeLifecycleHookTypesOutput) + return ret0, ret1 +} + +// DescribeLifecycleHookTypesRequest indicates an expected call of DescribeLifecycleHookTypesRequest. +func (mr *MockAutoScalingAPIMockRecorder) DescribeLifecycleHookTypesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeLifecycleHookTypesRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeLifecycleHookTypesRequest), arg0) +} + +// DescribeLifecycleHookTypesWithContext mocks base method. +func (m *MockAutoScalingAPI) DescribeLifecycleHookTypesWithContext(arg0 aws.Context, arg1 *autoscaling.DescribeLifecycleHookTypesInput, arg2 ...request.Option) (*autoscaling.DescribeLifecycleHookTypesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeLifecycleHookTypesWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.DescribeLifecycleHookTypesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeLifecycleHookTypesWithContext indicates an expected call of DescribeLifecycleHookTypesWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DescribeLifecycleHookTypesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeLifecycleHookTypesWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeLifecycleHookTypesWithContext), varargs...) +} + +// DescribeLifecycleHooks mocks base method. +func (m *MockAutoScalingAPI) DescribeLifecycleHooks(arg0 *autoscaling.DescribeLifecycleHooksInput) (*autoscaling.DescribeLifecycleHooksOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeLifecycleHooks", arg0) + ret0, _ := ret[0].(*autoscaling.DescribeLifecycleHooksOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeLifecycleHooks indicates an expected call of DescribeLifecycleHooks. +func (mr *MockAutoScalingAPIMockRecorder) DescribeLifecycleHooks(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeLifecycleHooks", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeLifecycleHooks), arg0) +} + +// DescribeLifecycleHooksRequest mocks base method. +func (m *MockAutoScalingAPI) DescribeLifecycleHooksRequest(arg0 *autoscaling.DescribeLifecycleHooksInput) (*request.Request, *autoscaling.DescribeLifecycleHooksOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeLifecycleHooksRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.DescribeLifecycleHooksOutput) + return ret0, ret1 +} + +// DescribeLifecycleHooksRequest indicates an expected call of DescribeLifecycleHooksRequest. +func (mr *MockAutoScalingAPIMockRecorder) DescribeLifecycleHooksRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeLifecycleHooksRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeLifecycleHooksRequest), arg0) +} + +// DescribeLifecycleHooksWithContext mocks base method. +func (m *MockAutoScalingAPI) DescribeLifecycleHooksWithContext(arg0 aws.Context, arg1 *autoscaling.DescribeLifecycleHooksInput, arg2 ...request.Option) (*autoscaling.DescribeLifecycleHooksOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeLifecycleHooksWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.DescribeLifecycleHooksOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeLifecycleHooksWithContext indicates an expected call of DescribeLifecycleHooksWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DescribeLifecycleHooksWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeLifecycleHooksWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeLifecycleHooksWithContext), varargs...) +} + +// DescribeLoadBalancerTargetGroups mocks base method. +func (m *MockAutoScalingAPI) DescribeLoadBalancerTargetGroups(arg0 *autoscaling.DescribeLoadBalancerTargetGroupsInput) (*autoscaling.DescribeLoadBalancerTargetGroupsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeLoadBalancerTargetGroups", arg0) + ret0, _ := ret[0].(*autoscaling.DescribeLoadBalancerTargetGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeLoadBalancerTargetGroups indicates an expected call of DescribeLoadBalancerTargetGroups. +func (mr *MockAutoScalingAPIMockRecorder) DescribeLoadBalancerTargetGroups(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeLoadBalancerTargetGroups", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeLoadBalancerTargetGroups), arg0) +} + +// DescribeLoadBalancerTargetGroupsPages mocks base method. +func (m *MockAutoScalingAPI) DescribeLoadBalancerTargetGroupsPages(arg0 *autoscaling.DescribeLoadBalancerTargetGroupsInput, arg1 func(*autoscaling.DescribeLoadBalancerTargetGroupsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeLoadBalancerTargetGroupsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeLoadBalancerTargetGroupsPages indicates an expected call of DescribeLoadBalancerTargetGroupsPages. +func (mr *MockAutoScalingAPIMockRecorder) DescribeLoadBalancerTargetGroupsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeLoadBalancerTargetGroupsPages", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeLoadBalancerTargetGroupsPages), arg0, arg1) +} + +// DescribeLoadBalancerTargetGroupsPagesWithContext mocks base method. +func (m *MockAutoScalingAPI) DescribeLoadBalancerTargetGroupsPagesWithContext(arg0 aws.Context, arg1 *autoscaling.DescribeLoadBalancerTargetGroupsInput, arg2 func(*autoscaling.DescribeLoadBalancerTargetGroupsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeLoadBalancerTargetGroupsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeLoadBalancerTargetGroupsPagesWithContext indicates an expected call of DescribeLoadBalancerTargetGroupsPagesWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DescribeLoadBalancerTargetGroupsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeLoadBalancerTargetGroupsPagesWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeLoadBalancerTargetGroupsPagesWithContext), varargs...) +} + +// DescribeLoadBalancerTargetGroupsRequest mocks base method. +func (m *MockAutoScalingAPI) DescribeLoadBalancerTargetGroupsRequest(arg0 *autoscaling.DescribeLoadBalancerTargetGroupsInput) (*request.Request, *autoscaling.DescribeLoadBalancerTargetGroupsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeLoadBalancerTargetGroupsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.DescribeLoadBalancerTargetGroupsOutput) + return ret0, ret1 +} + +// DescribeLoadBalancerTargetGroupsRequest indicates an expected call of DescribeLoadBalancerTargetGroupsRequest. +func (mr *MockAutoScalingAPIMockRecorder) DescribeLoadBalancerTargetGroupsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeLoadBalancerTargetGroupsRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeLoadBalancerTargetGroupsRequest), arg0) +} + +// DescribeLoadBalancerTargetGroupsWithContext mocks base method. +func (m *MockAutoScalingAPI) DescribeLoadBalancerTargetGroupsWithContext(arg0 aws.Context, arg1 *autoscaling.DescribeLoadBalancerTargetGroupsInput, arg2 ...request.Option) (*autoscaling.DescribeLoadBalancerTargetGroupsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeLoadBalancerTargetGroupsWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.DescribeLoadBalancerTargetGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeLoadBalancerTargetGroupsWithContext indicates an expected call of DescribeLoadBalancerTargetGroupsWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DescribeLoadBalancerTargetGroupsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeLoadBalancerTargetGroupsWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeLoadBalancerTargetGroupsWithContext), varargs...) +} + +// DescribeLoadBalancers mocks base method. +func (m *MockAutoScalingAPI) DescribeLoadBalancers(arg0 *autoscaling.DescribeLoadBalancersInput) (*autoscaling.DescribeLoadBalancersOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeLoadBalancers", arg0) + ret0, _ := ret[0].(*autoscaling.DescribeLoadBalancersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeLoadBalancers indicates an expected call of DescribeLoadBalancers. +func (mr *MockAutoScalingAPIMockRecorder) DescribeLoadBalancers(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeLoadBalancers", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeLoadBalancers), arg0) +} + +// DescribeLoadBalancersPages mocks base method. +func (m *MockAutoScalingAPI) DescribeLoadBalancersPages(arg0 *autoscaling.DescribeLoadBalancersInput, arg1 func(*autoscaling.DescribeLoadBalancersOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeLoadBalancersPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeLoadBalancersPages indicates an expected call of DescribeLoadBalancersPages. +func (mr *MockAutoScalingAPIMockRecorder) DescribeLoadBalancersPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeLoadBalancersPages", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeLoadBalancersPages), arg0, arg1) +} + +// DescribeLoadBalancersPagesWithContext mocks base method. +func (m *MockAutoScalingAPI) DescribeLoadBalancersPagesWithContext(arg0 aws.Context, arg1 *autoscaling.DescribeLoadBalancersInput, arg2 func(*autoscaling.DescribeLoadBalancersOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeLoadBalancersPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeLoadBalancersPagesWithContext indicates an expected call of DescribeLoadBalancersPagesWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DescribeLoadBalancersPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeLoadBalancersPagesWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeLoadBalancersPagesWithContext), varargs...) +} + +// DescribeLoadBalancersRequest mocks base method. +func (m *MockAutoScalingAPI) DescribeLoadBalancersRequest(arg0 *autoscaling.DescribeLoadBalancersInput) (*request.Request, *autoscaling.DescribeLoadBalancersOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeLoadBalancersRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.DescribeLoadBalancersOutput) + return ret0, ret1 +} + +// DescribeLoadBalancersRequest indicates an expected call of DescribeLoadBalancersRequest. +func (mr *MockAutoScalingAPIMockRecorder) DescribeLoadBalancersRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeLoadBalancersRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeLoadBalancersRequest), arg0) +} + +// DescribeLoadBalancersWithContext mocks base method. +func (m *MockAutoScalingAPI) DescribeLoadBalancersWithContext(arg0 aws.Context, arg1 *autoscaling.DescribeLoadBalancersInput, arg2 ...request.Option) (*autoscaling.DescribeLoadBalancersOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeLoadBalancersWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.DescribeLoadBalancersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeLoadBalancersWithContext indicates an expected call of DescribeLoadBalancersWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DescribeLoadBalancersWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeLoadBalancersWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeLoadBalancersWithContext), varargs...) +} + +// DescribeMetricCollectionTypes mocks base method. +func (m *MockAutoScalingAPI) DescribeMetricCollectionTypes(arg0 *autoscaling.DescribeMetricCollectionTypesInput) (*autoscaling.DescribeMetricCollectionTypesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeMetricCollectionTypes", arg0) + ret0, _ := ret[0].(*autoscaling.DescribeMetricCollectionTypesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeMetricCollectionTypes indicates an expected call of DescribeMetricCollectionTypes. +func (mr *MockAutoScalingAPIMockRecorder) DescribeMetricCollectionTypes(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeMetricCollectionTypes", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeMetricCollectionTypes), arg0) +} + +// DescribeMetricCollectionTypesRequest mocks base method. +func (m *MockAutoScalingAPI) DescribeMetricCollectionTypesRequest(arg0 *autoscaling.DescribeMetricCollectionTypesInput) (*request.Request, *autoscaling.DescribeMetricCollectionTypesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeMetricCollectionTypesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.DescribeMetricCollectionTypesOutput) + return ret0, ret1 +} + +// DescribeMetricCollectionTypesRequest indicates an expected call of DescribeMetricCollectionTypesRequest. +func (mr *MockAutoScalingAPIMockRecorder) DescribeMetricCollectionTypesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeMetricCollectionTypesRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeMetricCollectionTypesRequest), arg0) +} + +// DescribeMetricCollectionTypesWithContext mocks base method. +func (m *MockAutoScalingAPI) DescribeMetricCollectionTypesWithContext(arg0 aws.Context, arg1 *autoscaling.DescribeMetricCollectionTypesInput, arg2 ...request.Option) (*autoscaling.DescribeMetricCollectionTypesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeMetricCollectionTypesWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.DescribeMetricCollectionTypesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeMetricCollectionTypesWithContext indicates an expected call of DescribeMetricCollectionTypesWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DescribeMetricCollectionTypesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeMetricCollectionTypesWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeMetricCollectionTypesWithContext), varargs...) +} + +// DescribeNotificationConfigurations mocks base method. +func (m *MockAutoScalingAPI) DescribeNotificationConfigurations(arg0 *autoscaling.DescribeNotificationConfigurationsInput) (*autoscaling.DescribeNotificationConfigurationsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeNotificationConfigurations", arg0) + ret0, _ := ret[0].(*autoscaling.DescribeNotificationConfigurationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeNotificationConfigurations indicates an expected call of DescribeNotificationConfigurations. +func (mr *MockAutoScalingAPIMockRecorder) DescribeNotificationConfigurations(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeNotificationConfigurations", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeNotificationConfigurations), arg0) +} + +// DescribeNotificationConfigurationsPages mocks base method. +func (m *MockAutoScalingAPI) DescribeNotificationConfigurationsPages(arg0 *autoscaling.DescribeNotificationConfigurationsInput, arg1 func(*autoscaling.DescribeNotificationConfigurationsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeNotificationConfigurationsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeNotificationConfigurationsPages indicates an expected call of DescribeNotificationConfigurationsPages. +func (mr *MockAutoScalingAPIMockRecorder) DescribeNotificationConfigurationsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeNotificationConfigurationsPages", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeNotificationConfigurationsPages), arg0, arg1) +} + +// DescribeNotificationConfigurationsPagesWithContext mocks base method. +func (m *MockAutoScalingAPI) DescribeNotificationConfigurationsPagesWithContext(arg0 aws.Context, arg1 *autoscaling.DescribeNotificationConfigurationsInput, arg2 func(*autoscaling.DescribeNotificationConfigurationsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeNotificationConfigurationsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeNotificationConfigurationsPagesWithContext indicates an expected call of DescribeNotificationConfigurationsPagesWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DescribeNotificationConfigurationsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeNotificationConfigurationsPagesWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeNotificationConfigurationsPagesWithContext), varargs...) +} + +// DescribeNotificationConfigurationsRequest mocks base method. +func (m *MockAutoScalingAPI) DescribeNotificationConfigurationsRequest(arg0 *autoscaling.DescribeNotificationConfigurationsInput) (*request.Request, *autoscaling.DescribeNotificationConfigurationsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeNotificationConfigurationsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.DescribeNotificationConfigurationsOutput) + return ret0, ret1 +} + +// DescribeNotificationConfigurationsRequest indicates an expected call of DescribeNotificationConfigurationsRequest. +func (mr *MockAutoScalingAPIMockRecorder) DescribeNotificationConfigurationsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeNotificationConfigurationsRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeNotificationConfigurationsRequest), arg0) +} + +// DescribeNotificationConfigurationsWithContext mocks base method. +func (m *MockAutoScalingAPI) DescribeNotificationConfigurationsWithContext(arg0 aws.Context, arg1 *autoscaling.DescribeNotificationConfigurationsInput, arg2 ...request.Option) (*autoscaling.DescribeNotificationConfigurationsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeNotificationConfigurationsWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.DescribeNotificationConfigurationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeNotificationConfigurationsWithContext indicates an expected call of DescribeNotificationConfigurationsWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DescribeNotificationConfigurationsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeNotificationConfigurationsWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeNotificationConfigurationsWithContext), varargs...) +} + +// DescribePolicies mocks base method. +func (m *MockAutoScalingAPI) DescribePolicies(arg0 *autoscaling.DescribePoliciesInput) (*autoscaling.DescribePoliciesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribePolicies", arg0) + ret0, _ := ret[0].(*autoscaling.DescribePoliciesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribePolicies indicates an expected call of DescribePolicies. +func (mr *MockAutoScalingAPIMockRecorder) DescribePolicies(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribePolicies", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribePolicies), arg0) +} + +// DescribePoliciesPages mocks base method. +func (m *MockAutoScalingAPI) DescribePoliciesPages(arg0 *autoscaling.DescribePoliciesInput, arg1 func(*autoscaling.DescribePoliciesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribePoliciesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribePoliciesPages indicates an expected call of DescribePoliciesPages. +func (mr *MockAutoScalingAPIMockRecorder) DescribePoliciesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribePoliciesPages", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribePoliciesPages), arg0, arg1) +} + +// DescribePoliciesPagesWithContext mocks base method. +func (m *MockAutoScalingAPI) DescribePoliciesPagesWithContext(arg0 aws.Context, arg1 *autoscaling.DescribePoliciesInput, arg2 func(*autoscaling.DescribePoliciesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribePoliciesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribePoliciesPagesWithContext indicates an expected call of DescribePoliciesPagesWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DescribePoliciesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribePoliciesPagesWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribePoliciesPagesWithContext), varargs...) +} + +// DescribePoliciesRequest mocks base method. +func (m *MockAutoScalingAPI) DescribePoliciesRequest(arg0 *autoscaling.DescribePoliciesInput) (*request.Request, *autoscaling.DescribePoliciesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribePoliciesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.DescribePoliciesOutput) + return ret0, ret1 +} + +// DescribePoliciesRequest indicates an expected call of DescribePoliciesRequest. +func (mr *MockAutoScalingAPIMockRecorder) DescribePoliciesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribePoliciesRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribePoliciesRequest), arg0) +} + +// DescribePoliciesWithContext mocks base method. +func (m *MockAutoScalingAPI) DescribePoliciesWithContext(arg0 aws.Context, arg1 *autoscaling.DescribePoliciesInput, arg2 ...request.Option) (*autoscaling.DescribePoliciesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribePoliciesWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.DescribePoliciesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribePoliciesWithContext indicates an expected call of DescribePoliciesWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DescribePoliciesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribePoliciesWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribePoliciesWithContext), varargs...) +} + +// DescribeScalingActivities mocks base method. +func (m *MockAutoScalingAPI) DescribeScalingActivities(arg0 *autoscaling.DescribeScalingActivitiesInput) (*autoscaling.DescribeScalingActivitiesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeScalingActivities", arg0) + ret0, _ := ret[0].(*autoscaling.DescribeScalingActivitiesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeScalingActivities indicates an expected call of DescribeScalingActivities. +func (mr *MockAutoScalingAPIMockRecorder) DescribeScalingActivities(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeScalingActivities", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeScalingActivities), arg0) +} + +// DescribeScalingActivitiesPages mocks base method. +func (m *MockAutoScalingAPI) DescribeScalingActivitiesPages(arg0 *autoscaling.DescribeScalingActivitiesInput, arg1 func(*autoscaling.DescribeScalingActivitiesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeScalingActivitiesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeScalingActivitiesPages indicates an expected call of DescribeScalingActivitiesPages. +func (mr *MockAutoScalingAPIMockRecorder) DescribeScalingActivitiesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeScalingActivitiesPages", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeScalingActivitiesPages), arg0, arg1) +} + +// DescribeScalingActivitiesPagesWithContext mocks base method. +func (m *MockAutoScalingAPI) DescribeScalingActivitiesPagesWithContext(arg0 aws.Context, arg1 *autoscaling.DescribeScalingActivitiesInput, arg2 func(*autoscaling.DescribeScalingActivitiesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeScalingActivitiesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeScalingActivitiesPagesWithContext indicates an expected call of DescribeScalingActivitiesPagesWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DescribeScalingActivitiesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeScalingActivitiesPagesWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeScalingActivitiesPagesWithContext), varargs...) +} + +// DescribeScalingActivitiesRequest mocks base method. +func (m *MockAutoScalingAPI) DescribeScalingActivitiesRequest(arg0 *autoscaling.DescribeScalingActivitiesInput) (*request.Request, *autoscaling.DescribeScalingActivitiesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeScalingActivitiesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.DescribeScalingActivitiesOutput) + return ret0, ret1 +} + +// DescribeScalingActivitiesRequest indicates an expected call of DescribeScalingActivitiesRequest. +func (mr *MockAutoScalingAPIMockRecorder) DescribeScalingActivitiesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeScalingActivitiesRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeScalingActivitiesRequest), arg0) +} + +// DescribeScalingActivitiesWithContext mocks base method. +func (m *MockAutoScalingAPI) DescribeScalingActivitiesWithContext(arg0 aws.Context, arg1 *autoscaling.DescribeScalingActivitiesInput, arg2 ...request.Option) (*autoscaling.DescribeScalingActivitiesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeScalingActivitiesWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.DescribeScalingActivitiesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeScalingActivitiesWithContext indicates an expected call of DescribeScalingActivitiesWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DescribeScalingActivitiesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeScalingActivitiesWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeScalingActivitiesWithContext), varargs...) +} + +// DescribeScalingProcessTypes mocks base method. +func (m *MockAutoScalingAPI) DescribeScalingProcessTypes(arg0 *autoscaling.DescribeScalingProcessTypesInput) (*autoscaling.DescribeScalingProcessTypesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeScalingProcessTypes", arg0) + ret0, _ := ret[0].(*autoscaling.DescribeScalingProcessTypesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeScalingProcessTypes indicates an expected call of DescribeScalingProcessTypes. +func (mr *MockAutoScalingAPIMockRecorder) DescribeScalingProcessTypes(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeScalingProcessTypes", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeScalingProcessTypes), arg0) +} + +// DescribeScalingProcessTypesRequest mocks base method. +func (m *MockAutoScalingAPI) DescribeScalingProcessTypesRequest(arg0 *autoscaling.DescribeScalingProcessTypesInput) (*request.Request, *autoscaling.DescribeScalingProcessTypesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeScalingProcessTypesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.DescribeScalingProcessTypesOutput) + return ret0, ret1 +} + +// DescribeScalingProcessTypesRequest indicates an expected call of DescribeScalingProcessTypesRequest. +func (mr *MockAutoScalingAPIMockRecorder) DescribeScalingProcessTypesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeScalingProcessTypesRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeScalingProcessTypesRequest), arg0) +} + +// DescribeScalingProcessTypesWithContext mocks base method. +func (m *MockAutoScalingAPI) DescribeScalingProcessTypesWithContext(arg0 aws.Context, arg1 *autoscaling.DescribeScalingProcessTypesInput, arg2 ...request.Option) (*autoscaling.DescribeScalingProcessTypesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeScalingProcessTypesWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.DescribeScalingProcessTypesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeScalingProcessTypesWithContext indicates an expected call of DescribeScalingProcessTypesWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DescribeScalingProcessTypesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeScalingProcessTypesWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeScalingProcessTypesWithContext), varargs...) +} + +// DescribeScheduledActions mocks base method. +func (m *MockAutoScalingAPI) DescribeScheduledActions(arg0 *autoscaling.DescribeScheduledActionsInput) (*autoscaling.DescribeScheduledActionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeScheduledActions", arg0) + ret0, _ := ret[0].(*autoscaling.DescribeScheduledActionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeScheduledActions indicates an expected call of DescribeScheduledActions. +func (mr *MockAutoScalingAPIMockRecorder) DescribeScheduledActions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeScheduledActions", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeScheduledActions), arg0) +} + +// DescribeScheduledActionsPages mocks base method. +func (m *MockAutoScalingAPI) DescribeScheduledActionsPages(arg0 *autoscaling.DescribeScheduledActionsInput, arg1 func(*autoscaling.DescribeScheduledActionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeScheduledActionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeScheduledActionsPages indicates an expected call of DescribeScheduledActionsPages. +func (mr *MockAutoScalingAPIMockRecorder) DescribeScheduledActionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeScheduledActionsPages", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeScheduledActionsPages), arg0, arg1) +} + +// DescribeScheduledActionsPagesWithContext mocks base method. +func (m *MockAutoScalingAPI) DescribeScheduledActionsPagesWithContext(arg0 aws.Context, arg1 *autoscaling.DescribeScheduledActionsInput, arg2 func(*autoscaling.DescribeScheduledActionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeScheduledActionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeScheduledActionsPagesWithContext indicates an expected call of DescribeScheduledActionsPagesWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DescribeScheduledActionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeScheduledActionsPagesWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeScheduledActionsPagesWithContext), varargs...) +} + +// DescribeScheduledActionsRequest mocks base method. +func (m *MockAutoScalingAPI) DescribeScheduledActionsRequest(arg0 *autoscaling.DescribeScheduledActionsInput) (*request.Request, *autoscaling.DescribeScheduledActionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeScheduledActionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.DescribeScheduledActionsOutput) + return ret0, ret1 +} + +// DescribeScheduledActionsRequest indicates an expected call of DescribeScheduledActionsRequest. +func (mr *MockAutoScalingAPIMockRecorder) DescribeScheduledActionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeScheduledActionsRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeScheduledActionsRequest), arg0) +} + +// DescribeScheduledActionsWithContext mocks base method. +func (m *MockAutoScalingAPI) DescribeScheduledActionsWithContext(arg0 aws.Context, arg1 *autoscaling.DescribeScheduledActionsInput, arg2 ...request.Option) (*autoscaling.DescribeScheduledActionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeScheduledActionsWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.DescribeScheduledActionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeScheduledActionsWithContext indicates an expected call of DescribeScheduledActionsWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DescribeScheduledActionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeScheduledActionsWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeScheduledActionsWithContext), varargs...) +} + +// DescribeTags mocks base method. +func (m *MockAutoScalingAPI) DescribeTags(arg0 *autoscaling.DescribeTagsInput) (*autoscaling.DescribeTagsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTags", arg0) + ret0, _ := ret[0].(*autoscaling.DescribeTagsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTags indicates an expected call of DescribeTags. +func (mr *MockAutoScalingAPIMockRecorder) DescribeTags(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTags", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeTags), arg0) +} + +// DescribeTagsPages mocks base method. +func (m *MockAutoScalingAPI) DescribeTagsPages(arg0 *autoscaling.DescribeTagsInput, arg1 func(*autoscaling.DescribeTagsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTagsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeTagsPages indicates an expected call of DescribeTagsPages. +func (mr *MockAutoScalingAPIMockRecorder) DescribeTagsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTagsPages", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeTagsPages), arg0, arg1) +} + +// DescribeTagsPagesWithContext mocks base method. +func (m *MockAutoScalingAPI) DescribeTagsPagesWithContext(arg0 aws.Context, arg1 *autoscaling.DescribeTagsInput, arg2 func(*autoscaling.DescribeTagsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeTagsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeTagsPagesWithContext indicates an expected call of DescribeTagsPagesWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DescribeTagsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTagsPagesWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeTagsPagesWithContext), varargs...) +} + +// DescribeTagsRequest mocks base method. +func (m *MockAutoScalingAPI) DescribeTagsRequest(arg0 *autoscaling.DescribeTagsInput) (*request.Request, *autoscaling.DescribeTagsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTagsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.DescribeTagsOutput) + return ret0, ret1 +} + +// DescribeTagsRequest indicates an expected call of DescribeTagsRequest. +func (mr *MockAutoScalingAPIMockRecorder) DescribeTagsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTagsRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeTagsRequest), arg0) +} + +// DescribeTagsWithContext mocks base method. +func (m *MockAutoScalingAPI) DescribeTagsWithContext(arg0 aws.Context, arg1 *autoscaling.DescribeTagsInput, arg2 ...request.Option) (*autoscaling.DescribeTagsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeTagsWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.DescribeTagsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTagsWithContext indicates an expected call of DescribeTagsWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DescribeTagsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTagsWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeTagsWithContext), varargs...) +} + +// DescribeTerminationPolicyTypes mocks base method. +func (m *MockAutoScalingAPI) DescribeTerminationPolicyTypes(arg0 *autoscaling.DescribeTerminationPolicyTypesInput) (*autoscaling.DescribeTerminationPolicyTypesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTerminationPolicyTypes", arg0) + ret0, _ := ret[0].(*autoscaling.DescribeTerminationPolicyTypesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTerminationPolicyTypes indicates an expected call of DescribeTerminationPolicyTypes. +func (mr *MockAutoScalingAPIMockRecorder) DescribeTerminationPolicyTypes(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTerminationPolicyTypes", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeTerminationPolicyTypes), arg0) +} + +// DescribeTerminationPolicyTypesRequest mocks base method. +func (m *MockAutoScalingAPI) DescribeTerminationPolicyTypesRequest(arg0 *autoscaling.DescribeTerminationPolicyTypesInput) (*request.Request, *autoscaling.DescribeTerminationPolicyTypesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTerminationPolicyTypesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.DescribeTerminationPolicyTypesOutput) + return ret0, ret1 +} + +// DescribeTerminationPolicyTypesRequest indicates an expected call of DescribeTerminationPolicyTypesRequest. +func (mr *MockAutoScalingAPIMockRecorder) DescribeTerminationPolicyTypesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTerminationPolicyTypesRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeTerminationPolicyTypesRequest), arg0) +} + +// DescribeTerminationPolicyTypesWithContext mocks base method. +func (m *MockAutoScalingAPI) DescribeTerminationPolicyTypesWithContext(arg0 aws.Context, arg1 *autoscaling.DescribeTerminationPolicyTypesInput, arg2 ...request.Option) (*autoscaling.DescribeTerminationPolicyTypesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeTerminationPolicyTypesWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.DescribeTerminationPolicyTypesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTerminationPolicyTypesWithContext indicates an expected call of DescribeTerminationPolicyTypesWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DescribeTerminationPolicyTypesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTerminationPolicyTypesWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeTerminationPolicyTypesWithContext), varargs...) +} + +// DescribeTrafficSources mocks base method. +func (m *MockAutoScalingAPI) DescribeTrafficSources(arg0 *autoscaling.DescribeTrafficSourcesInput) (*autoscaling.DescribeTrafficSourcesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTrafficSources", arg0) + ret0, _ := ret[0].(*autoscaling.DescribeTrafficSourcesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTrafficSources indicates an expected call of DescribeTrafficSources. +func (mr *MockAutoScalingAPIMockRecorder) DescribeTrafficSources(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTrafficSources", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeTrafficSources), arg0) +} + +// DescribeTrafficSourcesPages mocks base method. +func (m *MockAutoScalingAPI) DescribeTrafficSourcesPages(arg0 *autoscaling.DescribeTrafficSourcesInput, arg1 func(*autoscaling.DescribeTrafficSourcesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTrafficSourcesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeTrafficSourcesPages indicates an expected call of DescribeTrafficSourcesPages. +func (mr *MockAutoScalingAPIMockRecorder) DescribeTrafficSourcesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTrafficSourcesPages", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeTrafficSourcesPages), arg0, arg1) +} + +// DescribeTrafficSourcesPagesWithContext mocks base method. +func (m *MockAutoScalingAPI) DescribeTrafficSourcesPagesWithContext(arg0 aws.Context, arg1 *autoscaling.DescribeTrafficSourcesInput, arg2 func(*autoscaling.DescribeTrafficSourcesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeTrafficSourcesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeTrafficSourcesPagesWithContext indicates an expected call of DescribeTrafficSourcesPagesWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DescribeTrafficSourcesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTrafficSourcesPagesWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeTrafficSourcesPagesWithContext), varargs...) +} + +// DescribeTrafficSourcesRequest mocks base method. +func (m *MockAutoScalingAPI) DescribeTrafficSourcesRequest(arg0 *autoscaling.DescribeTrafficSourcesInput) (*request.Request, *autoscaling.DescribeTrafficSourcesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTrafficSourcesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.DescribeTrafficSourcesOutput) + return ret0, ret1 +} + +// DescribeTrafficSourcesRequest indicates an expected call of DescribeTrafficSourcesRequest. +func (mr *MockAutoScalingAPIMockRecorder) DescribeTrafficSourcesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTrafficSourcesRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeTrafficSourcesRequest), arg0) +} + +// DescribeTrafficSourcesWithContext mocks base method. +func (m *MockAutoScalingAPI) DescribeTrafficSourcesWithContext(arg0 aws.Context, arg1 *autoscaling.DescribeTrafficSourcesInput, arg2 ...request.Option) (*autoscaling.DescribeTrafficSourcesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeTrafficSourcesWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.DescribeTrafficSourcesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTrafficSourcesWithContext indicates an expected call of DescribeTrafficSourcesWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DescribeTrafficSourcesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTrafficSourcesWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeTrafficSourcesWithContext), varargs...) +} + +// DescribeWarmPool mocks base method. +func (m *MockAutoScalingAPI) DescribeWarmPool(arg0 *autoscaling.DescribeWarmPoolInput) (*autoscaling.DescribeWarmPoolOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeWarmPool", arg0) + ret0, _ := ret[0].(*autoscaling.DescribeWarmPoolOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeWarmPool indicates an expected call of DescribeWarmPool. +func (mr *MockAutoScalingAPIMockRecorder) DescribeWarmPool(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeWarmPool", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeWarmPool), arg0) +} + +// DescribeWarmPoolPages mocks base method. +func (m *MockAutoScalingAPI) DescribeWarmPoolPages(arg0 *autoscaling.DescribeWarmPoolInput, arg1 func(*autoscaling.DescribeWarmPoolOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeWarmPoolPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeWarmPoolPages indicates an expected call of DescribeWarmPoolPages. +func (mr *MockAutoScalingAPIMockRecorder) DescribeWarmPoolPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeWarmPoolPages", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeWarmPoolPages), arg0, arg1) +} + +// DescribeWarmPoolPagesWithContext mocks base method. +func (m *MockAutoScalingAPI) DescribeWarmPoolPagesWithContext(arg0 aws.Context, arg1 *autoscaling.DescribeWarmPoolInput, arg2 func(*autoscaling.DescribeWarmPoolOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeWarmPoolPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeWarmPoolPagesWithContext indicates an expected call of DescribeWarmPoolPagesWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DescribeWarmPoolPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeWarmPoolPagesWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeWarmPoolPagesWithContext), varargs...) +} + +// DescribeWarmPoolRequest mocks base method. +func (m *MockAutoScalingAPI) DescribeWarmPoolRequest(arg0 *autoscaling.DescribeWarmPoolInput) (*request.Request, *autoscaling.DescribeWarmPoolOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeWarmPoolRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.DescribeWarmPoolOutput) + return ret0, ret1 +} + +// DescribeWarmPoolRequest indicates an expected call of DescribeWarmPoolRequest. +func (mr *MockAutoScalingAPIMockRecorder) DescribeWarmPoolRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeWarmPoolRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeWarmPoolRequest), arg0) +} + +// DescribeWarmPoolWithContext mocks base method. +func (m *MockAutoScalingAPI) DescribeWarmPoolWithContext(arg0 aws.Context, arg1 *autoscaling.DescribeWarmPoolInput, arg2 ...request.Option) (*autoscaling.DescribeWarmPoolOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeWarmPoolWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.DescribeWarmPoolOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeWarmPoolWithContext indicates an expected call of DescribeWarmPoolWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DescribeWarmPoolWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeWarmPoolWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DescribeWarmPoolWithContext), varargs...) +} + +// DetachInstances mocks base method. +func (m *MockAutoScalingAPI) DetachInstances(arg0 *autoscaling.DetachInstancesInput) (*autoscaling.DetachInstancesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DetachInstances", arg0) + ret0, _ := ret[0].(*autoscaling.DetachInstancesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DetachInstances indicates an expected call of DetachInstances. +func (mr *MockAutoScalingAPIMockRecorder) DetachInstances(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetachInstances", reflect.TypeOf((*MockAutoScalingAPI)(nil).DetachInstances), arg0) +} + +// DetachInstancesRequest mocks base method. +func (m *MockAutoScalingAPI) DetachInstancesRequest(arg0 *autoscaling.DetachInstancesInput) (*request.Request, *autoscaling.DetachInstancesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DetachInstancesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.DetachInstancesOutput) + return ret0, ret1 +} + +// DetachInstancesRequest indicates an expected call of DetachInstancesRequest. +func (mr *MockAutoScalingAPIMockRecorder) DetachInstancesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetachInstancesRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).DetachInstancesRequest), arg0) +} + +// DetachInstancesWithContext mocks base method. +func (m *MockAutoScalingAPI) DetachInstancesWithContext(arg0 aws.Context, arg1 *autoscaling.DetachInstancesInput, arg2 ...request.Option) (*autoscaling.DetachInstancesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DetachInstancesWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.DetachInstancesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DetachInstancesWithContext indicates an expected call of DetachInstancesWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DetachInstancesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetachInstancesWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DetachInstancesWithContext), varargs...) +} + +// DetachLoadBalancerTargetGroups mocks base method. +func (m *MockAutoScalingAPI) DetachLoadBalancerTargetGroups(arg0 *autoscaling.DetachLoadBalancerTargetGroupsInput) (*autoscaling.DetachLoadBalancerTargetGroupsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DetachLoadBalancerTargetGroups", arg0) + ret0, _ := ret[0].(*autoscaling.DetachLoadBalancerTargetGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DetachLoadBalancerTargetGroups indicates an expected call of DetachLoadBalancerTargetGroups. +func (mr *MockAutoScalingAPIMockRecorder) DetachLoadBalancerTargetGroups(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetachLoadBalancerTargetGroups", reflect.TypeOf((*MockAutoScalingAPI)(nil).DetachLoadBalancerTargetGroups), arg0) +} + +// DetachLoadBalancerTargetGroupsRequest mocks base method. +func (m *MockAutoScalingAPI) DetachLoadBalancerTargetGroupsRequest(arg0 *autoscaling.DetachLoadBalancerTargetGroupsInput) (*request.Request, *autoscaling.DetachLoadBalancerTargetGroupsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DetachLoadBalancerTargetGroupsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.DetachLoadBalancerTargetGroupsOutput) + return ret0, ret1 +} + +// DetachLoadBalancerTargetGroupsRequest indicates an expected call of DetachLoadBalancerTargetGroupsRequest. +func (mr *MockAutoScalingAPIMockRecorder) DetachLoadBalancerTargetGroupsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetachLoadBalancerTargetGroupsRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).DetachLoadBalancerTargetGroupsRequest), arg0) +} + +// DetachLoadBalancerTargetGroupsWithContext mocks base method. +func (m *MockAutoScalingAPI) DetachLoadBalancerTargetGroupsWithContext(arg0 aws.Context, arg1 *autoscaling.DetachLoadBalancerTargetGroupsInput, arg2 ...request.Option) (*autoscaling.DetachLoadBalancerTargetGroupsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DetachLoadBalancerTargetGroupsWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.DetachLoadBalancerTargetGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DetachLoadBalancerTargetGroupsWithContext indicates an expected call of DetachLoadBalancerTargetGroupsWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DetachLoadBalancerTargetGroupsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetachLoadBalancerTargetGroupsWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DetachLoadBalancerTargetGroupsWithContext), varargs...) +} + +// DetachLoadBalancers mocks base method. +func (m *MockAutoScalingAPI) DetachLoadBalancers(arg0 *autoscaling.DetachLoadBalancersInput) (*autoscaling.DetachLoadBalancersOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DetachLoadBalancers", arg0) + ret0, _ := ret[0].(*autoscaling.DetachLoadBalancersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DetachLoadBalancers indicates an expected call of DetachLoadBalancers. +func (mr *MockAutoScalingAPIMockRecorder) DetachLoadBalancers(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetachLoadBalancers", reflect.TypeOf((*MockAutoScalingAPI)(nil).DetachLoadBalancers), arg0) +} + +// DetachLoadBalancersRequest mocks base method. +func (m *MockAutoScalingAPI) DetachLoadBalancersRequest(arg0 *autoscaling.DetachLoadBalancersInput) (*request.Request, *autoscaling.DetachLoadBalancersOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DetachLoadBalancersRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.DetachLoadBalancersOutput) + return ret0, ret1 +} + +// DetachLoadBalancersRequest indicates an expected call of DetachLoadBalancersRequest. +func (mr *MockAutoScalingAPIMockRecorder) DetachLoadBalancersRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetachLoadBalancersRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).DetachLoadBalancersRequest), arg0) +} + +// DetachLoadBalancersWithContext mocks base method. +func (m *MockAutoScalingAPI) DetachLoadBalancersWithContext(arg0 aws.Context, arg1 *autoscaling.DetachLoadBalancersInput, arg2 ...request.Option) (*autoscaling.DetachLoadBalancersOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DetachLoadBalancersWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.DetachLoadBalancersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DetachLoadBalancersWithContext indicates an expected call of DetachLoadBalancersWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DetachLoadBalancersWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetachLoadBalancersWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DetachLoadBalancersWithContext), varargs...) +} + +// DetachTrafficSources mocks base method. +func (m *MockAutoScalingAPI) DetachTrafficSources(arg0 *autoscaling.DetachTrafficSourcesInput) (*autoscaling.DetachTrafficSourcesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DetachTrafficSources", arg0) + ret0, _ := ret[0].(*autoscaling.DetachTrafficSourcesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DetachTrafficSources indicates an expected call of DetachTrafficSources. +func (mr *MockAutoScalingAPIMockRecorder) DetachTrafficSources(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetachTrafficSources", reflect.TypeOf((*MockAutoScalingAPI)(nil).DetachTrafficSources), arg0) +} + +// DetachTrafficSourcesRequest mocks base method. +func (m *MockAutoScalingAPI) DetachTrafficSourcesRequest(arg0 *autoscaling.DetachTrafficSourcesInput) (*request.Request, *autoscaling.DetachTrafficSourcesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DetachTrafficSourcesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.DetachTrafficSourcesOutput) + return ret0, ret1 +} + +// DetachTrafficSourcesRequest indicates an expected call of DetachTrafficSourcesRequest. +func (mr *MockAutoScalingAPIMockRecorder) DetachTrafficSourcesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetachTrafficSourcesRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).DetachTrafficSourcesRequest), arg0) +} + +// DetachTrafficSourcesWithContext mocks base method. +func (m *MockAutoScalingAPI) DetachTrafficSourcesWithContext(arg0 aws.Context, arg1 *autoscaling.DetachTrafficSourcesInput, arg2 ...request.Option) (*autoscaling.DetachTrafficSourcesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DetachTrafficSourcesWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.DetachTrafficSourcesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DetachTrafficSourcesWithContext indicates an expected call of DetachTrafficSourcesWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DetachTrafficSourcesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetachTrafficSourcesWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DetachTrafficSourcesWithContext), varargs...) +} + +// DisableMetricsCollection mocks base method. +func (m *MockAutoScalingAPI) DisableMetricsCollection(arg0 *autoscaling.DisableMetricsCollectionInput) (*autoscaling.DisableMetricsCollectionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DisableMetricsCollection", arg0) + ret0, _ := ret[0].(*autoscaling.DisableMetricsCollectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DisableMetricsCollection indicates an expected call of DisableMetricsCollection. +func (mr *MockAutoScalingAPIMockRecorder) DisableMetricsCollection(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisableMetricsCollection", reflect.TypeOf((*MockAutoScalingAPI)(nil).DisableMetricsCollection), arg0) +} + +// DisableMetricsCollectionRequest mocks base method. +func (m *MockAutoScalingAPI) DisableMetricsCollectionRequest(arg0 *autoscaling.DisableMetricsCollectionInput) (*request.Request, *autoscaling.DisableMetricsCollectionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DisableMetricsCollectionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.DisableMetricsCollectionOutput) + return ret0, ret1 +} + +// DisableMetricsCollectionRequest indicates an expected call of DisableMetricsCollectionRequest. +func (mr *MockAutoScalingAPIMockRecorder) DisableMetricsCollectionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisableMetricsCollectionRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).DisableMetricsCollectionRequest), arg0) +} + +// DisableMetricsCollectionWithContext mocks base method. +func (m *MockAutoScalingAPI) DisableMetricsCollectionWithContext(arg0 aws.Context, arg1 *autoscaling.DisableMetricsCollectionInput, arg2 ...request.Option) (*autoscaling.DisableMetricsCollectionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DisableMetricsCollectionWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.DisableMetricsCollectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DisableMetricsCollectionWithContext indicates an expected call of DisableMetricsCollectionWithContext. +func (mr *MockAutoScalingAPIMockRecorder) DisableMetricsCollectionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisableMetricsCollectionWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).DisableMetricsCollectionWithContext), varargs...) +} + +// EnableMetricsCollection mocks base method. +func (m *MockAutoScalingAPI) EnableMetricsCollection(arg0 *autoscaling.EnableMetricsCollectionInput) (*autoscaling.EnableMetricsCollectionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "EnableMetricsCollection", arg0) + ret0, _ := ret[0].(*autoscaling.EnableMetricsCollectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// EnableMetricsCollection indicates an expected call of EnableMetricsCollection. +func (mr *MockAutoScalingAPIMockRecorder) EnableMetricsCollection(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnableMetricsCollection", reflect.TypeOf((*MockAutoScalingAPI)(nil).EnableMetricsCollection), arg0) +} + +// EnableMetricsCollectionRequest mocks base method. +func (m *MockAutoScalingAPI) EnableMetricsCollectionRequest(arg0 *autoscaling.EnableMetricsCollectionInput) (*request.Request, *autoscaling.EnableMetricsCollectionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "EnableMetricsCollectionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.EnableMetricsCollectionOutput) + return ret0, ret1 +} + +// EnableMetricsCollectionRequest indicates an expected call of EnableMetricsCollectionRequest. +func (mr *MockAutoScalingAPIMockRecorder) EnableMetricsCollectionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnableMetricsCollectionRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).EnableMetricsCollectionRequest), arg0) +} + +// EnableMetricsCollectionWithContext mocks base method. +func (m *MockAutoScalingAPI) EnableMetricsCollectionWithContext(arg0 aws.Context, arg1 *autoscaling.EnableMetricsCollectionInput, arg2 ...request.Option) (*autoscaling.EnableMetricsCollectionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "EnableMetricsCollectionWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.EnableMetricsCollectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// EnableMetricsCollectionWithContext indicates an expected call of EnableMetricsCollectionWithContext. +func (mr *MockAutoScalingAPIMockRecorder) EnableMetricsCollectionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnableMetricsCollectionWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).EnableMetricsCollectionWithContext), varargs...) +} + +// EnterStandby mocks base method. +func (m *MockAutoScalingAPI) EnterStandby(arg0 *autoscaling.EnterStandbyInput) (*autoscaling.EnterStandbyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "EnterStandby", arg0) + ret0, _ := ret[0].(*autoscaling.EnterStandbyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// EnterStandby indicates an expected call of EnterStandby. +func (mr *MockAutoScalingAPIMockRecorder) EnterStandby(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnterStandby", reflect.TypeOf((*MockAutoScalingAPI)(nil).EnterStandby), arg0) +} + +// EnterStandbyRequest mocks base method. +func (m *MockAutoScalingAPI) EnterStandbyRequest(arg0 *autoscaling.EnterStandbyInput) (*request.Request, *autoscaling.EnterStandbyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "EnterStandbyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.EnterStandbyOutput) + return ret0, ret1 +} + +// EnterStandbyRequest indicates an expected call of EnterStandbyRequest. +func (mr *MockAutoScalingAPIMockRecorder) EnterStandbyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnterStandbyRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).EnterStandbyRequest), arg0) +} + +// EnterStandbyWithContext mocks base method. +func (m *MockAutoScalingAPI) EnterStandbyWithContext(arg0 aws.Context, arg1 *autoscaling.EnterStandbyInput, arg2 ...request.Option) (*autoscaling.EnterStandbyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "EnterStandbyWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.EnterStandbyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// EnterStandbyWithContext indicates an expected call of EnterStandbyWithContext. +func (mr *MockAutoScalingAPIMockRecorder) EnterStandbyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnterStandbyWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).EnterStandbyWithContext), varargs...) +} + +// ExecutePolicy mocks base method. +func (m *MockAutoScalingAPI) ExecutePolicy(arg0 *autoscaling.ExecutePolicyInput) (*autoscaling.ExecutePolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExecutePolicy", arg0) + ret0, _ := ret[0].(*autoscaling.ExecutePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExecutePolicy indicates an expected call of ExecutePolicy. +func (mr *MockAutoScalingAPIMockRecorder) ExecutePolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecutePolicy", reflect.TypeOf((*MockAutoScalingAPI)(nil).ExecutePolicy), arg0) +} + +// ExecutePolicyRequest mocks base method. +func (m *MockAutoScalingAPI) ExecutePolicyRequest(arg0 *autoscaling.ExecutePolicyInput) (*request.Request, *autoscaling.ExecutePolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExecutePolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.ExecutePolicyOutput) + return ret0, ret1 +} + +// ExecutePolicyRequest indicates an expected call of ExecutePolicyRequest. +func (mr *MockAutoScalingAPIMockRecorder) ExecutePolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecutePolicyRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).ExecutePolicyRequest), arg0) +} + +// ExecutePolicyWithContext mocks base method. +func (m *MockAutoScalingAPI) ExecutePolicyWithContext(arg0 aws.Context, arg1 *autoscaling.ExecutePolicyInput, arg2 ...request.Option) (*autoscaling.ExecutePolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ExecutePolicyWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.ExecutePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExecutePolicyWithContext indicates an expected call of ExecutePolicyWithContext. +func (mr *MockAutoScalingAPIMockRecorder) ExecutePolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecutePolicyWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).ExecutePolicyWithContext), varargs...) +} + +// ExitStandby mocks base method. +func (m *MockAutoScalingAPI) ExitStandby(arg0 *autoscaling.ExitStandbyInput) (*autoscaling.ExitStandbyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExitStandby", arg0) + ret0, _ := ret[0].(*autoscaling.ExitStandbyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExitStandby indicates an expected call of ExitStandby. +func (mr *MockAutoScalingAPIMockRecorder) ExitStandby(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExitStandby", reflect.TypeOf((*MockAutoScalingAPI)(nil).ExitStandby), arg0) +} + +// ExitStandbyRequest mocks base method. +func (m *MockAutoScalingAPI) ExitStandbyRequest(arg0 *autoscaling.ExitStandbyInput) (*request.Request, *autoscaling.ExitStandbyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExitStandbyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.ExitStandbyOutput) + return ret0, ret1 +} + +// ExitStandbyRequest indicates an expected call of ExitStandbyRequest. +func (mr *MockAutoScalingAPIMockRecorder) ExitStandbyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExitStandbyRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).ExitStandbyRequest), arg0) +} + +// ExitStandbyWithContext mocks base method. +func (m *MockAutoScalingAPI) ExitStandbyWithContext(arg0 aws.Context, arg1 *autoscaling.ExitStandbyInput, arg2 ...request.Option) (*autoscaling.ExitStandbyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ExitStandbyWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.ExitStandbyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExitStandbyWithContext indicates an expected call of ExitStandbyWithContext. +func (mr *MockAutoScalingAPIMockRecorder) ExitStandbyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExitStandbyWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).ExitStandbyWithContext), varargs...) +} + +// GetPredictiveScalingForecast mocks base method. +func (m *MockAutoScalingAPI) GetPredictiveScalingForecast(arg0 *autoscaling.GetPredictiveScalingForecastInput) (*autoscaling.GetPredictiveScalingForecastOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetPredictiveScalingForecast", arg0) + ret0, _ := ret[0].(*autoscaling.GetPredictiveScalingForecastOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetPredictiveScalingForecast indicates an expected call of GetPredictiveScalingForecast. +func (mr *MockAutoScalingAPIMockRecorder) GetPredictiveScalingForecast(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPredictiveScalingForecast", reflect.TypeOf((*MockAutoScalingAPI)(nil).GetPredictiveScalingForecast), arg0) +} + +// GetPredictiveScalingForecastRequest mocks base method. +func (m *MockAutoScalingAPI) GetPredictiveScalingForecastRequest(arg0 *autoscaling.GetPredictiveScalingForecastInput) (*request.Request, *autoscaling.GetPredictiveScalingForecastOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetPredictiveScalingForecastRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.GetPredictiveScalingForecastOutput) + return ret0, ret1 +} + +// GetPredictiveScalingForecastRequest indicates an expected call of GetPredictiveScalingForecastRequest. +func (mr *MockAutoScalingAPIMockRecorder) GetPredictiveScalingForecastRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPredictiveScalingForecastRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).GetPredictiveScalingForecastRequest), arg0) +} + +// GetPredictiveScalingForecastWithContext mocks base method. +func (m *MockAutoScalingAPI) GetPredictiveScalingForecastWithContext(arg0 aws.Context, arg1 *autoscaling.GetPredictiveScalingForecastInput, arg2 ...request.Option) (*autoscaling.GetPredictiveScalingForecastOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetPredictiveScalingForecastWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.GetPredictiveScalingForecastOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetPredictiveScalingForecastWithContext indicates an expected call of GetPredictiveScalingForecastWithContext. +func (mr *MockAutoScalingAPIMockRecorder) GetPredictiveScalingForecastWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPredictiveScalingForecastWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).GetPredictiveScalingForecastWithContext), varargs...) +} + +// PutLifecycleHook mocks base method. +func (m *MockAutoScalingAPI) PutLifecycleHook(arg0 *autoscaling.PutLifecycleHookInput) (*autoscaling.PutLifecycleHookOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutLifecycleHook", arg0) + ret0, _ := ret[0].(*autoscaling.PutLifecycleHookOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutLifecycleHook indicates an expected call of PutLifecycleHook. +func (mr *MockAutoScalingAPIMockRecorder) PutLifecycleHook(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutLifecycleHook", reflect.TypeOf((*MockAutoScalingAPI)(nil).PutLifecycleHook), arg0) +} + +// PutLifecycleHookRequest mocks base method. +func (m *MockAutoScalingAPI) PutLifecycleHookRequest(arg0 *autoscaling.PutLifecycleHookInput) (*request.Request, *autoscaling.PutLifecycleHookOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutLifecycleHookRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.PutLifecycleHookOutput) + return ret0, ret1 +} + +// PutLifecycleHookRequest indicates an expected call of PutLifecycleHookRequest. +func (mr *MockAutoScalingAPIMockRecorder) PutLifecycleHookRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutLifecycleHookRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).PutLifecycleHookRequest), arg0) +} + +// PutLifecycleHookWithContext mocks base method. +func (m *MockAutoScalingAPI) PutLifecycleHookWithContext(arg0 aws.Context, arg1 *autoscaling.PutLifecycleHookInput, arg2 ...request.Option) (*autoscaling.PutLifecycleHookOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PutLifecycleHookWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.PutLifecycleHookOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutLifecycleHookWithContext indicates an expected call of PutLifecycleHookWithContext. +func (mr *MockAutoScalingAPIMockRecorder) PutLifecycleHookWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutLifecycleHookWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).PutLifecycleHookWithContext), varargs...) +} + +// PutNotificationConfiguration mocks base method. +func (m *MockAutoScalingAPI) PutNotificationConfiguration(arg0 *autoscaling.PutNotificationConfigurationInput) (*autoscaling.PutNotificationConfigurationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutNotificationConfiguration", arg0) + ret0, _ := ret[0].(*autoscaling.PutNotificationConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutNotificationConfiguration indicates an expected call of PutNotificationConfiguration. +func (mr *MockAutoScalingAPIMockRecorder) PutNotificationConfiguration(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutNotificationConfiguration", reflect.TypeOf((*MockAutoScalingAPI)(nil).PutNotificationConfiguration), arg0) +} + +// PutNotificationConfigurationRequest mocks base method. +func (m *MockAutoScalingAPI) PutNotificationConfigurationRequest(arg0 *autoscaling.PutNotificationConfigurationInput) (*request.Request, *autoscaling.PutNotificationConfigurationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutNotificationConfigurationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.PutNotificationConfigurationOutput) + return ret0, ret1 +} + +// PutNotificationConfigurationRequest indicates an expected call of PutNotificationConfigurationRequest. +func (mr *MockAutoScalingAPIMockRecorder) PutNotificationConfigurationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutNotificationConfigurationRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).PutNotificationConfigurationRequest), arg0) +} + +// PutNotificationConfigurationWithContext mocks base method. +func (m *MockAutoScalingAPI) PutNotificationConfigurationWithContext(arg0 aws.Context, arg1 *autoscaling.PutNotificationConfigurationInput, arg2 ...request.Option) (*autoscaling.PutNotificationConfigurationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PutNotificationConfigurationWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.PutNotificationConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutNotificationConfigurationWithContext indicates an expected call of PutNotificationConfigurationWithContext. +func (mr *MockAutoScalingAPIMockRecorder) PutNotificationConfigurationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutNotificationConfigurationWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).PutNotificationConfigurationWithContext), varargs...) +} + +// PutScalingPolicy mocks base method. +func (m *MockAutoScalingAPI) PutScalingPolicy(arg0 *autoscaling.PutScalingPolicyInput) (*autoscaling.PutScalingPolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutScalingPolicy", arg0) + ret0, _ := ret[0].(*autoscaling.PutScalingPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutScalingPolicy indicates an expected call of PutScalingPolicy. +func (mr *MockAutoScalingAPIMockRecorder) PutScalingPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutScalingPolicy", reflect.TypeOf((*MockAutoScalingAPI)(nil).PutScalingPolicy), arg0) +} + +// PutScalingPolicyRequest mocks base method. +func (m *MockAutoScalingAPI) PutScalingPolicyRequest(arg0 *autoscaling.PutScalingPolicyInput) (*request.Request, *autoscaling.PutScalingPolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutScalingPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.PutScalingPolicyOutput) + return ret0, ret1 +} + +// PutScalingPolicyRequest indicates an expected call of PutScalingPolicyRequest. +func (mr *MockAutoScalingAPIMockRecorder) PutScalingPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutScalingPolicyRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).PutScalingPolicyRequest), arg0) +} + +// PutScalingPolicyWithContext mocks base method. +func (m *MockAutoScalingAPI) PutScalingPolicyWithContext(arg0 aws.Context, arg1 *autoscaling.PutScalingPolicyInput, arg2 ...request.Option) (*autoscaling.PutScalingPolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PutScalingPolicyWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.PutScalingPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutScalingPolicyWithContext indicates an expected call of PutScalingPolicyWithContext. +func (mr *MockAutoScalingAPIMockRecorder) PutScalingPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutScalingPolicyWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).PutScalingPolicyWithContext), varargs...) +} + +// PutScheduledUpdateGroupAction mocks base method. +func (m *MockAutoScalingAPI) PutScheduledUpdateGroupAction(arg0 *autoscaling.PutScheduledUpdateGroupActionInput) (*autoscaling.PutScheduledUpdateGroupActionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutScheduledUpdateGroupAction", arg0) + ret0, _ := ret[0].(*autoscaling.PutScheduledUpdateGroupActionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutScheduledUpdateGroupAction indicates an expected call of PutScheduledUpdateGroupAction. +func (mr *MockAutoScalingAPIMockRecorder) PutScheduledUpdateGroupAction(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutScheduledUpdateGroupAction", reflect.TypeOf((*MockAutoScalingAPI)(nil).PutScheduledUpdateGroupAction), arg0) +} + +// PutScheduledUpdateGroupActionRequest mocks base method. +func (m *MockAutoScalingAPI) PutScheduledUpdateGroupActionRequest(arg0 *autoscaling.PutScheduledUpdateGroupActionInput) (*request.Request, *autoscaling.PutScheduledUpdateGroupActionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutScheduledUpdateGroupActionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.PutScheduledUpdateGroupActionOutput) + return ret0, ret1 +} + +// PutScheduledUpdateGroupActionRequest indicates an expected call of PutScheduledUpdateGroupActionRequest. +func (mr *MockAutoScalingAPIMockRecorder) PutScheduledUpdateGroupActionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutScheduledUpdateGroupActionRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).PutScheduledUpdateGroupActionRequest), arg0) +} + +// PutScheduledUpdateGroupActionWithContext mocks base method. +func (m *MockAutoScalingAPI) PutScheduledUpdateGroupActionWithContext(arg0 aws.Context, arg1 *autoscaling.PutScheduledUpdateGroupActionInput, arg2 ...request.Option) (*autoscaling.PutScheduledUpdateGroupActionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PutScheduledUpdateGroupActionWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.PutScheduledUpdateGroupActionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutScheduledUpdateGroupActionWithContext indicates an expected call of PutScheduledUpdateGroupActionWithContext. +func (mr *MockAutoScalingAPIMockRecorder) PutScheduledUpdateGroupActionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutScheduledUpdateGroupActionWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).PutScheduledUpdateGroupActionWithContext), varargs...) +} + +// PutWarmPool mocks base method. +func (m *MockAutoScalingAPI) PutWarmPool(arg0 *autoscaling.PutWarmPoolInput) (*autoscaling.PutWarmPoolOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutWarmPool", arg0) + ret0, _ := ret[0].(*autoscaling.PutWarmPoolOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutWarmPool indicates an expected call of PutWarmPool. +func (mr *MockAutoScalingAPIMockRecorder) PutWarmPool(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutWarmPool", reflect.TypeOf((*MockAutoScalingAPI)(nil).PutWarmPool), arg0) +} + +// PutWarmPoolRequest mocks base method. +func (m *MockAutoScalingAPI) PutWarmPoolRequest(arg0 *autoscaling.PutWarmPoolInput) (*request.Request, *autoscaling.PutWarmPoolOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutWarmPoolRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.PutWarmPoolOutput) + return ret0, ret1 +} + +// PutWarmPoolRequest indicates an expected call of PutWarmPoolRequest. +func (mr *MockAutoScalingAPIMockRecorder) PutWarmPoolRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutWarmPoolRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).PutWarmPoolRequest), arg0) +} + +// PutWarmPoolWithContext mocks base method. +func (m *MockAutoScalingAPI) PutWarmPoolWithContext(arg0 aws.Context, arg1 *autoscaling.PutWarmPoolInput, arg2 ...request.Option) (*autoscaling.PutWarmPoolOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PutWarmPoolWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.PutWarmPoolOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutWarmPoolWithContext indicates an expected call of PutWarmPoolWithContext. +func (mr *MockAutoScalingAPIMockRecorder) PutWarmPoolWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutWarmPoolWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).PutWarmPoolWithContext), varargs...) +} + +// RecordLifecycleActionHeartbeat mocks base method. +func (m *MockAutoScalingAPI) RecordLifecycleActionHeartbeat(arg0 *autoscaling.RecordLifecycleActionHeartbeatInput) (*autoscaling.RecordLifecycleActionHeartbeatOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RecordLifecycleActionHeartbeat", arg0) + ret0, _ := ret[0].(*autoscaling.RecordLifecycleActionHeartbeatOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RecordLifecycleActionHeartbeat indicates an expected call of RecordLifecycleActionHeartbeat. +func (mr *MockAutoScalingAPIMockRecorder) RecordLifecycleActionHeartbeat(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecordLifecycleActionHeartbeat", reflect.TypeOf((*MockAutoScalingAPI)(nil).RecordLifecycleActionHeartbeat), arg0) +} + +// RecordLifecycleActionHeartbeatRequest mocks base method. +func (m *MockAutoScalingAPI) RecordLifecycleActionHeartbeatRequest(arg0 *autoscaling.RecordLifecycleActionHeartbeatInput) (*request.Request, *autoscaling.RecordLifecycleActionHeartbeatOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RecordLifecycleActionHeartbeatRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.RecordLifecycleActionHeartbeatOutput) + return ret0, ret1 +} + +// RecordLifecycleActionHeartbeatRequest indicates an expected call of RecordLifecycleActionHeartbeatRequest. +func (mr *MockAutoScalingAPIMockRecorder) RecordLifecycleActionHeartbeatRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecordLifecycleActionHeartbeatRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).RecordLifecycleActionHeartbeatRequest), arg0) +} + +// RecordLifecycleActionHeartbeatWithContext mocks base method. +func (m *MockAutoScalingAPI) RecordLifecycleActionHeartbeatWithContext(arg0 aws.Context, arg1 *autoscaling.RecordLifecycleActionHeartbeatInput, arg2 ...request.Option) (*autoscaling.RecordLifecycleActionHeartbeatOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RecordLifecycleActionHeartbeatWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.RecordLifecycleActionHeartbeatOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RecordLifecycleActionHeartbeatWithContext indicates an expected call of RecordLifecycleActionHeartbeatWithContext. +func (mr *MockAutoScalingAPIMockRecorder) RecordLifecycleActionHeartbeatWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecordLifecycleActionHeartbeatWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).RecordLifecycleActionHeartbeatWithContext), varargs...) +} + +// ResumeProcesses mocks base method. +func (m *MockAutoScalingAPI) ResumeProcesses(arg0 *autoscaling.ScalingProcessQuery) (*autoscaling.ResumeProcessesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ResumeProcesses", arg0) + ret0, _ := ret[0].(*autoscaling.ResumeProcessesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ResumeProcesses indicates an expected call of ResumeProcesses. +func (mr *MockAutoScalingAPIMockRecorder) ResumeProcesses(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResumeProcesses", reflect.TypeOf((*MockAutoScalingAPI)(nil).ResumeProcesses), arg0) +} + +// ResumeProcessesRequest mocks base method. +func (m *MockAutoScalingAPI) ResumeProcessesRequest(arg0 *autoscaling.ScalingProcessQuery) (*request.Request, *autoscaling.ResumeProcessesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ResumeProcessesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.ResumeProcessesOutput) + return ret0, ret1 +} + +// ResumeProcessesRequest indicates an expected call of ResumeProcessesRequest. +func (mr *MockAutoScalingAPIMockRecorder) ResumeProcessesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResumeProcessesRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).ResumeProcessesRequest), arg0) +} + +// ResumeProcessesWithContext mocks base method. +func (m *MockAutoScalingAPI) ResumeProcessesWithContext(arg0 aws.Context, arg1 *autoscaling.ScalingProcessQuery, arg2 ...request.Option) (*autoscaling.ResumeProcessesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ResumeProcessesWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.ResumeProcessesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ResumeProcessesWithContext indicates an expected call of ResumeProcessesWithContext. +func (mr *MockAutoScalingAPIMockRecorder) ResumeProcessesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResumeProcessesWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).ResumeProcessesWithContext), varargs...) +} + +// RollbackInstanceRefresh mocks base method. +func (m *MockAutoScalingAPI) RollbackInstanceRefresh(arg0 *autoscaling.RollbackInstanceRefreshInput) (*autoscaling.RollbackInstanceRefreshOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RollbackInstanceRefresh", arg0) + ret0, _ := ret[0].(*autoscaling.RollbackInstanceRefreshOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RollbackInstanceRefresh indicates an expected call of RollbackInstanceRefresh. +func (mr *MockAutoScalingAPIMockRecorder) RollbackInstanceRefresh(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RollbackInstanceRefresh", reflect.TypeOf((*MockAutoScalingAPI)(nil).RollbackInstanceRefresh), arg0) +} + +// RollbackInstanceRefreshRequest mocks base method. +func (m *MockAutoScalingAPI) RollbackInstanceRefreshRequest(arg0 *autoscaling.RollbackInstanceRefreshInput) (*request.Request, *autoscaling.RollbackInstanceRefreshOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RollbackInstanceRefreshRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.RollbackInstanceRefreshOutput) + return ret0, ret1 +} + +// RollbackInstanceRefreshRequest indicates an expected call of RollbackInstanceRefreshRequest. +func (mr *MockAutoScalingAPIMockRecorder) RollbackInstanceRefreshRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RollbackInstanceRefreshRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).RollbackInstanceRefreshRequest), arg0) +} + +// RollbackInstanceRefreshWithContext mocks base method. +func (m *MockAutoScalingAPI) RollbackInstanceRefreshWithContext(arg0 aws.Context, arg1 *autoscaling.RollbackInstanceRefreshInput, arg2 ...request.Option) (*autoscaling.RollbackInstanceRefreshOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RollbackInstanceRefreshWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.RollbackInstanceRefreshOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RollbackInstanceRefreshWithContext indicates an expected call of RollbackInstanceRefreshWithContext. +func (mr *MockAutoScalingAPIMockRecorder) RollbackInstanceRefreshWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RollbackInstanceRefreshWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).RollbackInstanceRefreshWithContext), varargs...) +} + +// SetDesiredCapacity mocks base method. +func (m *MockAutoScalingAPI) SetDesiredCapacity(arg0 *autoscaling.SetDesiredCapacityInput) (*autoscaling.SetDesiredCapacityOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetDesiredCapacity", arg0) + ret0, _ := ret[0].(*autoscaling.SetDesiredCapacityOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetDesiredCapacity indicates an expected call of SetDesiredCapacity. +func (mr *MockAutoScalingAPIMockRecorder) SetDesiredCapacity(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDesiredCapacity", reflect.TypeOf((*MockAutoScalingAPI)(nil).SetDesiredCapacity), arg0) +} + +// SetDesiredCapacityRequest mocks base method. +func (m *MockAutoScalingAPI) SetDesiredCapacityRequest(arg0 *autoscaling.SetDesiredCapacityInput) (*request.Request, *autoscaling.SetDesiredCapacityOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetDesiredCapacityRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.SetDesiredCapacityOutput) + return ret0, ret1 +} + +// SetDesiredCapacityRequest indicates an expected call of SetDesiredCapacityRequest. +func (mr *MockAutoScalingAPIMockRecorder) SetDesiredCapacityRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDesiredCapacityRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).SetDesiredCapacityRequest), arg0) +} + +// SetDesiredCapacityWithContext mocks base method. +func (m *MockAutoScalingAPI) SetDesiredCapacityWithContext(arg0 aws.Context, arg1 *autoscaling.SetDesiredCapacityInput, arg2 ...request.Option) (*autoscaling.SetDesiredCapacityOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SetDesiredCapacityWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.SetDesiredCapacityOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetDesiredCapacityWithContext indicates an expected call of SetDesiredCapacityWithContext. +func (mr *MockAutoScalingAPIMockRecorder) SetDesiredCapacityWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDesiredCapacityWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).SetDesiredCapacityWithContext), varargs...) +} + +// SetInstanceHealth mocks base method. +func (m *MockAutoScalingAPI) SetInstanceHealth(arg0 *autoscaling.SetInstanceHealthInput) (*autoscaling.SetInstanceHealthOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetInstanceHealth", arg0) + ret0, _ := ret[0].(*autoscaling.SetInstanceHealthOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetInstanceHealth indicates an expected call of SetInstanceHealth. +func (mr *MockAutoScalingAPIMockRecorder) SetInstanceHealth(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetInstanceHealth", reflect.TypeOf((*MockAutoScalingAPI)(nil).SetInstanceHealth), arg0) +} + +// SetInstanceHealthRequest mocks base method. +func (m *MockAutoScalingAPI) SetInstanceHealthRequest(arg0 *autoscaling.SetInstanceHealthInput) (*request.Request, *autoscaling.SetInstanceHealthOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetInstanceHealthRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.SetInstanceHealthOutput) + return ret0, ret1 +} + +// SetInstanceHealthRequest indicates an expected call of SetInstanceHealthRequest. +func (mr *MockAutoScalingAPIMockRecorder) SetInstanceHealthRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetInstanceHealthRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).SetInstanceHealthRequest), arg0) +} + +// SetInstanceHealthWithContext mocks base method. +func (m *MockAutoScalingAPI) SetInstanceHealthWithContext(arg0 aws.Context, arg1 *autoscaling.SetInstanceHealthInput, arg2 ...request.Option) (*autoscaling.SetInstanceHealthOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SetInstanceHealthWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.SetInstanceHealthOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetInstanceHealthWithContext indicates an expected call of SetInstanceHealthWithContext. +func (mr *MockAutoScalingAPIMockRecorder) SetInstanceHealthWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetInstanceHealthWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).SetInstanceHealthWithContext), varargs...) +} + +// SetInstanceProtection mocks base method. +func (m *MockAutoScalingAPI) SetInstanceProtection(arg0 *autoscaling.SetInstanceProtectionInput) (*autoscaling.SetInstanceProtectionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetInstanceProtection", arg0) + ret0, _ := ret[0].(*autoscaling.SetInstanceProtectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetInstanceProtection indicates an expected call of SetInstanceProtection. +func (mr *MockAutoScalingAPIMockRecorder) SetInstanceProtection(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetInstanceProtection", reflect.TypeOf((*MockAutoScalingAPI)(nil).SetInstanceProtection), arg0) +} + +// SetInstanceProtectionRequest mocks base method. +func (m *MockAutoScalingAPI) SetInstanceProtectionRequest(arg0 *autoscaling.SetInstanceProtectionInput) (*request.Request, *autoscaling.SetInstanceProtectionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetInstanceProtectionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.SetInstanceProtectionOutput) + return ret0, ret1 +} + +// SetInstanceProtectionRequest indicates an expected call of SetInstanceProtectionRequest. +func (mr *MockAutoScalingAPIMockRecorder) SetInstanceProtectionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetInstanceProtectionRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).SetInstanceProtectionRequest), arg0) +} + +// SetInstanceProtectionWithContext mocks base method. +func (m *MockAutoScalingAPI) SetInstanceProtectionWithContext(arg0 aws.Context, arg1 *autoscaling.SetInstanceProtectionInput, arg2 ...request.Option) (*autoscaling.SetInstanceProtectionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SetInstanceProtectionWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.SetInstanceProtectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetInstanceProtectionWithContext indicates an expected call of SetInstanceProtectionWithContext. +func (mr *MockAutoScalingAPIMockRecorder) SetInstanceProtectionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetInstanceProtectionWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).SetInstanceProtectionWithContext), varargs...) +} + +// StartInstanceRefresh mocks base method. +func (m *MockAutoScalingAPI) StartInstanceRefresh(arg0 *autoscaling.StartInstanceRefreshInput) (*autoscaling.StartInstanceRefreshOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartInstanceRefresh", arg0) + ret0, _ := ret[0].(*autoscaling.StartInstanceRefreshOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartInstanceRefresh indicates an expected call of StartInstanceRefresh. +func (mr *MockAutoScalingAPIMockRecorder) StartInstanceRefresh(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartInstanceRefresh", reflect.TypeOf((*MockAutoScalingAPI)(nil).StartInstanceRefresh), arg0) +} + +// StartInstanceRefreshRequest mocks base method. +func (m *MockAutoScalingAPI) StartInstanceRefreshRequest(arg0 *autoscaling.StartInstanceRefreshInput) (*request.Request, *autoscaling.StartInstanceRefreshOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartInstanceRefreshRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.StartInstanceRefreshOutput) + return ret0, ret1 +} + +// StartInstanceRefreshRequest indicates an expected call of StartInstanceRefreshRequest. +func (mr *MockAutoScalingAPIMockRecorder) StartInstanceRefreshRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartInstanceRefreshRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).StartInstanceRefreshRequest), arg0) +} + +// StartInstanceRefreshWithContext mocks base method. +func (m *MockAutoScalingAPI) StartInstanceRefreshWithContext(arg0 aws.Context, arg1 *autoscaling.StartInstanceRefreshInput, arg2 ...request.Option) (*autoscaling.StartInstanceRefreshOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StartInstanceRefreshWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.StartInstanceRefreshOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartInstanceRefreshWithContext indicates an expected call of StartInstanceRefreshWithContext. +func (mr *MockAutoScalingAPIMockRecorder) StartInstanceRefreshWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartInstanceRefreshWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).StartInstanceRefreshWithContext), varargs...) +} + +// SuspendProcesses mocks base method. +func (m *MockAutoScalingAPI) SuspendProcesses(arg0 *autoscaling.ScalingProcessQuery) (*autoscaling.SuspendProcessesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SuspendProcesses", arg0) + ret0, _ := ret[0].(*autoscaling.SuspendProcessesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SuspendProcesses indicates an expected call of SuspendProcesses. +func (mr *MockAutoScalingAPIMockRecorder) SuspendProcesses(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SuspendProcesses", reflect.TypeOf((*MockAutoScalingAPI)(nil).SuspendProcesses), arg0) +} + +// SuspendProcessesRequest mocks base method. +func (m *MockAutoScalingAPI) SuspendProcessesRequest(arg0 *autoscaling.ScalingProcessQuery) (*request.Request, *autoscaling.SuspendProcessesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SuspendProcessesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.SuspendProcessesOutput) + return ret0, ret1 +} + +// SuspendProcessesRequest indicates an expected call of SuspendProcessesRequest. +func (mr *MockAutoScalingAPIMockRecorder) SuspendProcessesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SuspendProcessesRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).SuspendProcessesRequest), arg0) +} + +// SuspendProcessesWithContext mocks base method. +func (m *MockAutoScalingAPI) SuspendProcessesWithContext(arg0 aws.Context, arg1 *autoscaling.ScalingProcessQuery, arg2 ...request.Option) (*autoscaling.SuspendProcessesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SuspendProcessesWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.SuspendProcessesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SuspendProcessesWithContext indicates an expected call of SuspendProcessesWithContext. +func (mr *MockAutoScalingAPIMockRecorder) SuspendProcessesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SuspendProcessesWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).SuspendProcessesWithContext), varargs...) +} + +// TerminateInstanceInAutoScalingGroup mocks base method. +func (m *MockAutoScalingAPI) TerminateInstanceInAutoScalingGroup(arg0 *autoscaling.TerminateInstanceInAutoScalingGroupInput) (*autoscaling.TerminateInstanceInAutoScalingGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TerminateInstanceInAutoScalingGroup", arg0) + ret0, _ := ret[0].(*autoscaling.TerminateInstanceInAutoScalingGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TerminateInstanceInAutoScalingGroup indicates an expected call of TerminateInstanceInAutoScalingGroup. +func (mr *MockAutoScalingAPIMockRecorder) TerminateInstanceInAutoScalingGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TerminateInstanceInAutoScalingGroup", reflect.TypeOf((*MockAutoScalingAPI)(nil).TerminateInstanceInAutoScalingGroup), arg0) +} + +// TerminateInstanceInAutoScalingGroupRequest mocks base method. +func (m *MockAutoScalingAPI) TerminateInstanceInAutoScalingGroupRequest(arg0 *autoscaling.TerminateInstanceInAutoScalingGroupInput) (*request.Request, *autoscaling.TerminateInstanceInAutoScalingGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TerminateInstanceInAutoScalingGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.TerminateInstanceInAutoScalingGroupOutput) + return ret0, ret1 +} + +// TerminateInstanceInAutoScalingGroupRequest indicates an expected call of TerminateInstanceInAutoScalingGroupRequest. +func (mr *MockAutoScalingAPIMockRecorder) TerminateInstanceInAutoScalingGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TerminateInstanceInAutoScalingGroupRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).TerminateInstanceInAutoScalingGroupRequest), arg0) +} + +// TerminateInstanceInAutoScalingGroupWithContext mocks base method. +func (m *MockAutoScalingAPI) TerminateInstanceInAutoScalingGroupWithContext(arg0 aws.Context, arg1 *autoscaling.TerminateInstanceInAutoScalingGroupInput, arg2 ...request.Option) (*autoscaling.TerminateInstanceInAutoScalingGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "TerminateInstanceInAutoScalingGroupWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.TerminateInstanceInAutoScalingGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TerminateInstanceInAutoScalingGroupWithContext indicates an expected call of TerminateInstanceInAutoScalingGroupWithContext. +func (mr *MockAutoScalingAPIMockRecorder) TerminateInstanceInAutoScalingGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TerminateInstanceInAutoScalingGroupWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).TerminateInstanceInAutoScalingGroupWithContext), varargs...) +} + +// UpdateAutoScalingGroup mocks base method. +func (m *MockAutoScalingAPI) UpdateAutoScalingGroup(arg0 *autoscaling.UpdateAutoScalingGroupInput) (*autoscaling.UpdateAutoScalingGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateAutoScalingGroup", arg0) + ret0, _ := ret[0].(*autoscaling.UpdateAutoScalingGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateAutoScalingGroup indicates an expected call of UpdateAutoScalingGroup. +func (mr *MockAutoScalingAPIMockRecorder) UpdateAutoScalingGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAutoScalingGroup", reflect.TypeOf((*MockAutoScalingAPI)(nil).UpdateAutoScalingGroup), arg0) +} + +// UpdateAutoScalingGroupRequest mocks base method. +func (m *MockAutoScalingAPI) UpdateAutoScalingGroupRequest(arg0 *autoscaling.UpdateAutoScalingGroupInput) (*request.Request, *autoscaling.UpdateAutoScalingGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateAutoScalingGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*autoscaling.UpdateAutoScalingGroupOutput) + return ret0, ret1 +} + +// UpdateAutoScalingGroupRequest indicates an expected call of UpdateAutoScalingGroupRequest. +func (mr *MockAutoScalingAPIMockRecorder) UpdateAutoScalingGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAutoScalingGroupRequest", reflect.TypeOf((*MockAutoScalingAPI)(nil).UpdateAutoScalingGroupRequest), arg0) +} + +// UpdateAutoScalingGroupWithContext mocks base method. +func (m *MockAutoScalingAPI) UpdateAutoScalingGroupWithContext(arg0 aws.Context, arg1 *autoscaling.UpdateAutoScalingGroupInput, arg2 ...request.Option) (*autoscaling.UpdateAutoScalingGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateAutoScalingGroupWithContext", varargs...) + ret0, _ := ret[0].(*autoscaling.UpdateAutoScalingGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateAutoScalingGroupWithContext indicates an expected call of UpdateAutoScalingGroupWithContext. +func (mr *MockAutoScalingAPIMockRecorder) UpdateAutoScalingGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAutoScalingGroupWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).UpdateAutoScalingGroupWithContext), varargs...) +} + +// WaitUntilGroupExists mocks base method. +func (m *MockAutoScalingAPI) WaitUntilGroupExists(arg0 *autoscaling.DescribeAutoScalingGroupsInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilGroupExists", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilGroupExists indicates an expected call of WaitUntilGroupExists. +func (mr *MockAutoScalingAPIMockRecorder) WaitUntilGroupExists(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilGroupExists", reflect.TypeOf((*MockAutoScalingAPI)(nil).WaitUntilGroupExists), arg0) +} + +// WaitUntilGroupExistsWithContext mocks base method. +func (m *MockAutoScalingAPI) WaitUntilGroupExistsWithContext(arg0 aws.Context, arg1 *autoscaling.DescribeAutoScalingGroupsInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilGroupExistsWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilGroupExistsWithContext indicates an expected call of WaitUntilGroupExistsWithContext. +func (mr *MockAutoScalingAPIMockRecorder) WaitUntilGroupExistsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilGroupExistsWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).WaitUntilGroupExistsWithContext), varargs...) +} + +// WaitUntilGroupInService mocks base method. +func (m *MockAutoScalingAPI) WaitUntilGroupInService(arg0 *autoscaling.DescribeAutoScalingGroupsInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilGroupInService", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilGroupInService indicates an expected call of WaitUntilGroupInService. +func (mr *MockAutoScalingAPIMockRecorder) WaitUntilGroupInService(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilGroupInService", reflect.TypeOf((*MockAutoScalingAPI)(nil).WaitUntilGroupInService), arg0) +} + +// WaitUntilGroupInServiceWithContext mocks base method. +func (m *MockAutoScalingAPI) WaitUntilGroupInServiceWithContext(arg0 aws.Context, arg1 *autoscaling.DescribeAutoScalingGroupsInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilGroupInServiceWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilGroupInServiceWithContext indicates an expected call of WaitUntilGroupInServiceWithContext. +func (mr *MockAutoScalingAPIMockRecorder) WaitUntilGroupInServiceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilGroupInServiceWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).WaitUntilGroupInServiceWithContext), varargs...) +} + +// WaitUntilGroupNotExists mocks base method. +func (m *MockAutoScalingAPI) WaitUntilGroupNotExists(arg0 *autoscaling.DescribeAutoScalingGroupsInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilGroupNotExists", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilGroupNotExists indicates an expected call of WaitUntilGroupNotExists. +func (mr *MockAutoScalingAPIMockRecorder) WaitUntilGroupNotExists(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilGroupNotExists", reflect.TypeOf((*MockAutoScalingAPI)(nil).WaitUntilGroupNotExists), arg0) +} + +// WaitUntilGroupNotExistsWithContext mocks base method. +func (m *MockAutoScalingAPI) WaitUntilGroupNotExistsWithContext(arg0 aws.Context, arg1 *autoscaling.DescribeAutoScalingGroupsInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilGroupNotExistsWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilGroupNotExistsWithContext indicates an expected call of WaitUntilGroupNotExistsWithContext. +func (mr *MockAutoScalingAPIMockRecorder) WaitUntilGroupNotExistsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilGroupNotExistsWithContext", reflect.TypeOf((*MockAutoScalingAPI)(nil).WaitUntilGroupNotExistsWithContext), varargs...) +} diff --git a/resources/autoscaling-launch-configurations_mock_test.go b/resources/autoscaling-launch-configurations_mock_test.go new file mode 100644 index 00000000..7698437f --- /dev/null +++ b/resources/autoscaling-launch-configurations_mock_test.go @@ -0,0 +1,91 @@ +package resources + +import ( + "context" + "testing" + "time" + + "github.com/golang/mock/gomock" + "github.com/gotidy/ptr" + "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/autoscaling" + + "github.com/ekristen/aws-nuke/v3/mocks/mock_autoscalingiface" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +func Test_Mock_AutoScalingLaunchConfiguration_List(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockSvc := mock_autoscalingiface.NewMockAutoScalingAPI(ctrl) + + mockSvc.EXPECT(). + DescribeLaunchConfigurationsPages(gomock.Eq(&autoscaling.DescribeLaunchConfigurationsInput{}), gomock.Any()). + Do(func(input *autoscaling.DescribeLaunchConfigurationsInput, + fn func(res *autoscaling.DescribeLaunchConfigurationsOutput, lastPage bool) bool) { + fn(&autoscaling.DescribeLaunchConfigurationsOutput{ + LaunchConfigurations: []*autoscaling.LaunchConfiguration{ + { + LaunchConfigurationName: ptr.String("foo"), + CreatedTime: ptr.Time(time.Now()), + }, + }, + }, true) + }). + Return(nil) + + lister := AutoScalingLaunchConfigurationLister{ + mockSvc: mockSvc, + } + + resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ + Region: &nuke.Region{ + Name: "us-east-2", + }, + Session: session.Must(session.NewSession()), + }) + + a.Nil(err) + a.Len(resources, 1) +} + +func Test_Mock_AutoScalingLaunchConfiguration_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockSvc := mock_autoscalingiface.NewMockAutoScalingAPI(ctrl) + + mockSvc.EXPECT().DeleteLaunchConfiguration(gomock.Eq(&autoscaling.DeleteLaunchConfigurationInput{ + LaunchConfigurationName: ptr.String("foo"), + })).Return(&autoscaling.DeleteLaunchConfigurationOutput{}, nil) + + resource := AutoScalingLaunchConfiguration{ + svc: mockSvc, + Name: ptr.String("foo"), + } + + err := resource.Remove(context.TODO()) + a.Nil(err) +} + +func Test_Mock_AutoScalingLaunchConfiguration_Properties(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockSvc := mock_autoscalingiface.NewMockAutoScalingAPI(ctrl) + + resource := AutoScalingLaunchConfiguration{ + svc: mockSvc, + Name: ptr.String("foo"), + } + + properties := resource.Properties() + + a.Equal("foo", properties.Get("Name")) +} diff --git a/resources/autoscaling-lifecycle-hooks_mock_test.go b/resources/autoscaling-lifecycle-hooks_mock_test.go new file mode 100644 index 00000000..6b791c17 --- /dev/null +++ b/resources/autoscaling-lifecycle-hooks_mock_test.go @@ -0,0 +1,95 @@ +package resources + +import ( + "context" + "testing" + + "github.com/golang/mock/gomock" + "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/autoscaling" + + "github.com/ekristen/aws-nuke/v3/mocks/mock_autoscalingiface" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +func Test_Mock_AutoScalingLifeCycleHook_List(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockSvc := mock_autoscalingiface.NewMockAutoScalingAPI(ctrl) + + mockSvc.EXPECT().DescribeAutoScalingGroups(gomock.Eq(&autoscaling.DescribeAutoScalingGroupsInput{})). + Return(&autoscaling.DescribeAutoScalingGroupsOutput{ + AutoScalingGroups: []*autoscaling.Group{ + { + AutoScalingGroupName: aws.String("foobar-group"), + }, + }, + }, nil) + + mockSvc.EXPECT().DescribeLifecycleHooks(gomock.Eq(&autoscaling.DescribeLifecycleHooksInput{ + AutoScalingGroupName: aws.String("foobar-group"), + })). + Return(&autoscaling.DescribeLifecycleHooksOutput{ + LifecycleHooks: []*autoscaling.LifecycleHook{ + { + LifecycleHookName: aws.String("foobar-hook"), + AutoScalingGroupName: aws.String("foobar-group"), + }, + }, + }, nil) + + lister := AutoScalingLifecycleHookLister{ + mockSvc: mockSvc, + } + + resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ + Region: &nuke.Region{ + Name: "us-east-2", + }, + Session: session.Must(session.NewSession(&aws.Config{})), + }) + + a.NoError(err) + a.Len(resources, 1) +} + +func Test_Mock_AutoScalingLifeCycleHook_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockSvc := mock_autoscalingiface.NewMockAutoScalingAPI(ctrl) + + mockSvc.EXPECT().DeleteLifecycleHook(gomock.Eq(&autoscaling.DeleteLifecycleHookInput{ + AutoScalingGroupName: aws.String("foobar-group"), + LifecycleHookName: aws.String("foobar-hook"), + })).Return(&autoscaling.DeleteLifecycleHookOutput{}, nil) + + resource := AutoScalingLifecycleHook{ + svc: mockSvc, + Name: aws.String("foobar-hook"), + GroupName: aws.String("foobar-group"), + } + + err := resource.Remove(context.TODO()) + a.NoError(err) +} + +func Test_Mock_AutoScalingLifeCycleHook_Properties(t *testing.T) { + a := assert.New(t) + + resource := AutoScalingLifecycleHook{ + Name: aws.String("foobar-hook"), + GroupName: aws.String("foobar-group"), + } + + props := resource.Properties() + + a.Equal("foobar-hook", props.Get("Name")) + a.Equal("foobar-group", props.Get("GroupName")) +} diff --git a/resources/autoscaling_mock_test.go b/resources/autoscaling_mock_test.go new file mode 100644 index 00000000..98b308d3 --- /dev/null +++ b/resources/autoscaling_mock_test.go @@ -0,0 +1,4 @@ +//go:generate ../mocks/generate_mocks.sh autoscaling autoscalingiface +package resources + +// Note: empty on purpose, this file exist purely to generate mocks for the AutoScaling service From 731ba2c40c7f4b39da9da12bb2e26714daf0bedf Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 9 Jul 2024 16:52:11 -0600 Subject: [PATCH 346/617] chore(deps): update docker/dockerfile docker tag to v1.8 (#195) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4f3828dd..381684b3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -# syntax=docker/dockerfile:1.7-labs +# syntax=docker/dockerfile:1.8-labs FROM alpine:3.19.1 as base RUN apk add --no-cache ca-certificates RUN adduser -D aws-nuke From 4d910b93e297fbb355e89b1169305fa97be6d8b0 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 9 Jul 2024 22:52:39 +0000 Subject: [PATCH 347/617] chore(deps): update alpine docker tag to v3.20.1 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 381684b3..72dd4c6e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # syntax=docker/dockerfile:1.8-labs -FROM alpine:3.19.1 as base +FROM alpine:3.20.1 as base RUN apk add --no-cache ca-certificates RUN adduser -D aws-nuke From ac2c8dd2248936f39fa10f02f45b5bad81fccf8d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 10 Jul 2024 01:14:04 +0000 Subject: [PATCH 348/617] fix(deps): update module github.com/ekristen/libnuke to v0.18.0 --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index d7acde27..964fb3bc 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.21.6 require ( github.com/aws/aws-sdk-go v1.53.19 - github.com/ekristen/libnuke v0.17.1 + github.com/ekristen/libnuke v0.18.0 github.com/fatih/color v1.17.0 github.com/golang/mock v1.6.0 github.com/google/uuid v1.6.0 diff --git a/go.sum b/go.sum index f699f3c4..c360b654 100644 --- a/go.sum +++ b/go.sum @@ -24,6 +24,8 @@ github.com/ekristen/libnuke v0.17.0 h1:DrTHsRh7eHBIbCKwrzpTzAdngDUAnnq61J/1I3+kD github.com/ekristen/libnuke v0.17.0/go.mod h1:riI1tjCf6r+et/9oUBd1vQeFmn2Sn6UeFUR0nWkMeYw= github.com/ekristen/libnuke v0.17.1 h1:bEroAfJ18eEKq+1B6n1QSJi9NvwIu9RFUxwOrjwn1xI= github.com/ekristen/libnuke v0.17.1/go.mod h1:riI1tjCf6r+et/9oUBd1vQeFmn2Sn6UeFUR0nWkMeYw= +github.com/ekristen/libnuke v0.18.0 h1:sF533oSET50FjgIkYV72rvgNzCzUR/AH2tQeKVim31g= +github.com/ekristen/libnuke v0.18.0/go.mod h1:riI1tjCf6r+et/9oUBd1vQeFmn2Sn6UeFUR0nWkMeYw= github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4= From bc0bba353f7fbcda9d69128d10cc77e154ce91a9 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 10 Jul 2024 15:11:53 -0600 Subject: [PATCH 349/617] feat(iam-user): support removing permission boundary from user --- resources/iam-service-specific-credentials.go | 26 +-- ...-service-specific-credentials_mock_test.go | 14 +- resources/iam-user.go | 156 ++++++++++++++++++ resources/iam-user_mock_test.go | 81 +++++++++ .../{iam-users_test.go => iam-user_test.go} | 0 resources/iam-users.go | 109 ------------ resources/iam-users_mock_test.go | 35 ---- 7 files changed, 258 insertions(+), 163 deletions(-) create mode 100644 resources/iam-user.go create mode 100644 resources/iam-user_mock_test.go rename resources/{iam-users_test.go => iam-user_test.go} (100%) delete mode 100644 resources/iam-users.go delete mode 100644 resources/iam-users_mock_test.go diff --git a/resources/iam-service-specific-credentials.go b/resources/iam-service-specific-credentials.go index bddd16ea..ca813f97 100644 --- a/resources/iam-service-specific-credentials.go +++ b/resources/iam-service-specific-credentials.go @@ -33,7 +33,7 @@ func (l *IAMServiceSpecificCredentialLister) List(ctx context.Context, o interfa svc := iam.New(opts.Session) - userLister := &IAMUsersLister{} + userLister := &IAMUserLister{} users, usersErr := userLister.List(ctx, o) if usersErr != nil { return nil, usersErr @@ -47,7 +47,7 @@ func (l *IAMServiceSpecificCredentialLister) List(ctx context.Context, o interfa continue } params := &iam.ListServiceSpecificCredentialsInput{ - UserName: &user.name, + UserName: user.name, } serviceCredentials, err := svc.ListServiceSpecificCredentials(params) if err != nil { @@ -57,9 +57,9 @@ func (l *IAMServiceSpecificCredentialLister) List(ctx context.Context, o interfa for _, credential := range serviceCredentials.ServiceSpecificCredentials { resources = append(resources, &IAMServiceSpecificCredential{ svc: svc, - name: *credential.ServiceUserName, - serviceName: *credential.ServiceName, - id: *credential.ServiceSpecificCredentialId, + name: credential.ServiceUserName, + serviceName: credential.ServiceName, + id: credential.ServiceSpecificCredentialId, userName: user.name, }) } @@ -70,16 +70,16 @@ func (l *IAMServiceSpecificCredentialLister) List(ctx context.Context, o interfa type IAMServiceSpecificCredential struct { svc iamiface.IAMAPI - name string - serviceName string - id string - userName string + name *string + serviceName *string + id *string + userName *string } func (e *IAMServiceSpecificCredential) Remove(_ context.Context) error { params := &iam.DeleteServiceSpecificCredentialInput{ - ServiceSpecificCredentialId: &e.id, - UserName: &e.userName, + ServiceSpecificCredentialId: e.id, + UserName: e.userName, } _, err := e.svc.DeleteServiceSpecificCredential(params) if err != nil { @@ -92,9 +92,11 @@ func (e *IAMServiceSpecificCredential) Properties() types.Properties { properties := types.NewProperties() properties.Set("ServiceName", e.serviceName) properties.Set("ID", e.id) + properties.Set("Name", e.name) + properties.Set("UserName", e.userName) return properties } func (e *IAMServiceSpecificCredential) String() string { - return fmt.Sprintf("%s -> %s", e.userName, e.name) + return fmt.Sprintf("%s -> %s", *e.userName, *e.name) } diff --git a/resources/iam-service-specific-credentials_mock_test.go b/resources/iam-service-specific-credentials_mock_test.go index 6a852200..9daa44c2 100644 --- a/resources/iam-service-specific-credentials_mock_test.go +++ b/resources/iam-service-specific-credentials_mock_test.go @@ -5,9 +5,9 @@ import ( "testing" "github.com/golang/mock/gomock" + "github.com/gotidy/ptr" "github.com/stretchr/testify/assert" - "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iam" "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" @@ -22,15 +22,15 @@ func Test_Mock_IAMServiceSpecificCredential_Remove(t *testing.T) { iamServiceSpecificCredential := IAMServiceSpecificCredential{ svc: mockIAM, - name: "user:foobar", - serviceName: "service:foobar", - id: "user:service:foobar", - userName: "user:foobar", + name: ptr.String("user:foobar"), + serviceName: ptr.String("service:foobar"), + id: ptr.String("user:service:foobar"), + userName: ptr.String("user:foobar"), } mockIAM.EXPECT().DeleteServiceSpecificCredential(gomock.Eq(&iam.DeleteServiceSpecificCredentialInput{ - UserName: aws.String(iamServiceSpecificCredential.userName), - ServiceSpecificCredentialId: aws.String(iamServiceSpecificCredential.id), + UserName: iamServiceSpecificCredential.userName, + ServiceSpecificCredentialId: iamServiceSpecificCredential.id, })).Return(&iam.DeleteServiceSpecificCredentialOutput{}, nil) err := iamServiceSpecificCredential.Remove(context.TODO()) diff --git a/resources/iam-user.go b/resources/iam-user.go new file mode 100644 index 00000000..6e7e6578 --- /dev/null +++ b/resources/iam-user.go @@ -0,0 +1,156 @@ +package resources + +import ( + "context" + + "github.com/sirupsen/logrus" + + "github.com/aws/aws-sdk-go/service/iam" + "github.com/aws/aws-sdk-go/service/iam/iamiface" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +const IAMUserResource = "IAMUser" + +func init() { + registry.Register(®istry.Registration{ + Name: IAMUserResource, + Scope: nuke.Account, + Lister: &IAMUserLister{}, + DependsOn: []string{ + IAMUserAccessKeyResource, + IAMUserHTTPSGitCredentialResource, + IAMUserGroupAttachmentResource, + IAMUserPolicyAttachmentResource, + IAMVirtualMFADeviceResource, + }, + DeprecatedAliases: []string{ + "IamUser", // TODO(v4): remove + }, + }) +} + +type IAMUser struct { + svc iamiface.IAMAPI + id *string + name *string + hasPermissionBoundary bool + tags []*iam.Tag +} + +func (r *IAMUser) Remove(_ context.Context) error { + if r.hasPermissionBoundary { + _, err := r.svc.DeleteUserPermissionsBoundary(&iam.DeleteUserPermissionsBoundaryInput{ + UserName: r.name, + }) + if err != nil { + return err + } + } + + _, err := r.svc.DeleteUser(&iam.DeleteUserInput{ + UserName: r.name, + }) + if err != nil { + return err + } + + return nil +} + +func (r *IAMUser) String() string { + return *r.name +} + +func (r *IAMUser) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("UserID", r.id) + properties.Set("Name", r.name) + properties.Set("HasPermissionBoundary", r.hasPermissionBoundary) + + for _, tag := range r.tags { + properties.SetTag(tag.Key, tag.Value) + } + + return properties +} + +// -------------- + +// GetIAMUser retries and returns just the *iam.User from the response +func GetIAMUser(svc iamiface.IAMAPI, userName *string) (*iam.User, error) { + resp, err := svc.GetUser(&iam.GetUserInput{ + UserName: userName, + }) + if err != nil { + return nil, err + } + + return resp.User, err +} + +// ListIAMUsers retrieves a base list of users +func ListIAMUsers(svc iamiface.IAMAPI) ([]*iam.User, error) { + var users []*iam.User + if err := svc.ListUsersPages(nil, func(page *iam.ListUsersOutput, lastPage bool) bool { + users = append(users, page.Users...) + return true + }); err != nil { + return nil, err + } + + return users, nil +} + +// -------------- + +type IAMUserLister struct { + mockSvc iamiface.IAMAPI +} + +func (l *IAMUserLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + var resources []resource.Resource + + var svc iamiface.IAMAPI + if l.mockSvc != nil { + svc = l.mockSvc + } else { + svc = iam.New(opts.Session) + } + + allUsers, err := ListIAMUsers(svc) + if err != nil { + return resources, err + } + + for _, out := range allUsers { + // Note: we have to do a GetIAMUser because the listing of users does not include all the information we need + user, getErr := GetIAMUser(svc, out.UserName) + if getErr != nil { + logrus.Errorf("failed to get user %s: %v", *out.UserName, err) + continue + } + + resourceUser := &IAMUser{ + svc: svc, + id: user.UserId, + name: user.UserName, + tags: user.Tags, + } + + if user.PermissionsBoundary != nil && user.PermissionsBoundary.PermissionsBoundaryArn != nil { + resourceUser.hasPermissionBoundary = true + } + + resources = append(resources, resourceUser) + } + + return resources, nil +} diff --git a/resources/iam-user_mock_test.go b/resources/iam-user_mock_test.go new file mode 100644 index 00000000..cab06925 --- /dev/null +++ b/resources/iam-user_mock_test.go @@ -0,0 +1,81 @@ +package resources + +import ( + "context" + "testing" + + "github.com/golang/mock/gomock" + "github.com/gotidy/ptr" + "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/iam" + + "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +func Test_Mock_IAMUser_List(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + mockIAM.EXPECT().GetUser(&iam.GetUserInput{ + UserName: ptr.String("foo"), + }).Return(&iam.GetUserOutput{ + User: &iam.User{ + UserName: ptr.String("foo"), + }, + }, nil) + + mockIAM.EXPECT().ListUsersPages(gomock.Any(), gomock.Any()). + Do(func(_ *iam.ListUsersInput, fn func(page *iam.ListUsersOutput, lastPage bool) bool) { + fn(&iam.ListUsersOutput{ + Users: []*iam.User{ + { + UserName: ptr.String("foo"), + }, + }, + }, true) + }).Return(nil) + + lister := IAMUserLister{ + mockSvc: mockIAM, + } + + resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ + Region: &nuke.Region{ + Name: "us-east-2", + }, + Session: session.Must(session.NewSession()), + }) + a.NoError(err) + a.Len(resources, 1) +} + +func Test_Mock_IAMUser_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + mockIAM.EXPECT().DeleteUserPermissionsBoundary(&iam.DeleteUserPermissionsBoundaryInput{ + UserName: ptr.String("foobar"), + }).Return(&iam.DeleteUserPermissionsBoundaryOutput{}, nil) + + mockIAM.EXPECT().DeleteUser(gomock.Eq(&iam.DeleteUserInput{ + UserName: ptr.String("foobar"), + })).Return(&iam.DeleteUserOutput{}, nil) + + iamUser := IAMUser{ + svc: mockIAM, + name: ptr.String("foobar"), + hasPermissionBoundary: true, + } + + err := iamUser.Remove(context.TODO()) + a.Nil(err) +} diff --git a/resources/iam-users_test.go b/resources/iam-user_test.go similarity index 100% rename from resources/iam-users_test.go rename to resources/iam-user_test.go diff --git a/resources/iam-users.go b/resources/iam-users.go deleted file mode 100644 index 17c7d7c0..00000000 --- a/resources/iam-users.go +++ /dev/null @@ -1,109 +0,0 @@ -package resources - -import ( - "context" - - "github.com/sirupsen/logrus" - - "github.com/aws/aws-sdk-go/service/iam" - "github.com/aws/aws-sdk-go/service/iam/iamiface" - - "github.com/ekristen/libnuke/pkg/registry" - "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/libnuke/pkg/types" - - "github.com/ekristen/aws-nuke/v3/pkg/nuke" -) - -const IAMUserResource = "IAMUser" - -func init() { - registry.Register(®istry.Registration{ - Name: IAMUserResource, - Scope: nuke.Account, - Lister: &IAMUsersLister{}, - DependsOn: []string{ - IAMUserAccessKeyResource, - IAMUserHTTPSGitCredentialResource, - IAMUserGroupAttachmentResource, - IAMUserPolicyAttachmentResource, - IAMVirtualMFADeviceResource, - }, - DeprecatedAliases: []string{ - "IamUser", - }, - }) -} - -type IAMUser struct { - svc iamiface.IAMAPI - name string - tags []*iam.Tag -} - -func (e *IAMUser) Remove(_ context.Context) error { - _, err := e.svc.DeleteUser(&iam.DeleteUserInput{ - UserName: &e.name, - }) - if err != nil { - return err - } - - return nil -} - -func (e *IAMUser) String() string { - return e.name -} - -func (e *IAMUser) Properties() types.Properties { - properties := types.NewProperties() - properties.Set("Name", e.name) - - for _, tag := range e.tags { - properties.SetTag(tag.Key, tag.Value) - } - - return properties -} - -// -------------- - -func GetIAMUser(svc *iam.IAM, userName *string) (*iam.User, error) { - params := &iam.GetUserInput{ - UserName: userName, - } - resp, err := svc.GetUser(params) - return resp.User, err -} - -// -------------- - -type IAMUsersLister struct{} - -func (l *IAMUsersLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { - opts := o.(*nuke.ListerOpts) - svc := iam.New(opts.Session) - - var resources []resource.Resource - - if err := svc.ListUsersPages(nil, func(page *iam.ListUsersOutput, lastPage bool) bool { - for _, out := range page.Users { - user, err := GetIAMUser(svc, out.UserName) - if err != nil { - logrus.Errorf("Failed to get user %s: %v", *out.UserName, err) - continue - } - resources = append(resources, &IAMUser{ - svc: svc, - name: *out.UserName, - tags: user.Tags, - }) - } - return true - }); err != nil { - return nil, err - } - - return resources, nil -} diff --git a/resources/iam-users_mock_test.go b/resources/iam-users_mock_test.go deleted file mode 100644 index c3fd406b..00000000 --- a/resources/iam-users_mock_test.go +++ /dev/null @@ -1,35 +0,0 @@ -package resources - -import ( - "context" - - "testing" - - "github.com/golang/mock/gomock" - "github.com/stretchr/testify/assert" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/iam" - - "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" -) - -func Test_Mock_IAMUser_Remove(t *testing.T) { - a := assert.New(t) - ctrl := gomock.NewController(t) - defer ctrl.Finish() - - mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) - - iamUser := IAMUser{ - svc: mockIAM, - name: "foobar", - } - - mockIAM.EXPECT().DeleteUser(gomock.Eq(&iam.DeleteUserInput{ - UserName: aws.String(iamUser.name), - })).Return(&iam.DeleteUserOutput{}, nil) - - err := iamUser.Remove(context.TODO()) - a.Nil(err) -} From 8e4f66ef3da2ac698b694396e6aaa426238c436c Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 10 Jul 2024 15:13:41 -0600 Subject: [PATCH 350/617] refactor(iam-virtual-mfa-device): rename to singular, rename all pointers to standard --- ...a-devices.go => iam-virtual-mfa-device.go} | 23 +++++++++---------- ...go => iam-virtual-mfa-device_mock_test.go} | 0 2 files changed, 11 insertions(+), 12 deletions(-) rename resources/{iam-virtual-mfa-devices.go => iam-virtual-mfa-device.go} (73%) rename resources/{iam-virtual-mfa-devices_mock_test.go => iam-virtual-mfa-device_mock_test.go} (100%) diff --git a/resources/iam-virtual-mfa-devices.go b/resources/iam-virtual-mfa-device.go similarity index 73% rename from resources/iam-virtual-mfa-devices.go rename to resources/iam-virtual-mfa-device.go index 2c4ef33b..ec27267d 100644 --- a/resources/iam-virtual-mfa-devices.go +++ b/resources/iam-virtual-mfa-device.go @@ -33,7 +33,6 @@ func (l *IAMVirtualMFADeviceLister) List(_ context.Context, o interface{}) ([]re opts := o.(*nuke.ListerOpts) svc := iam.New(opts.Session) - resp, err := svc.ListVirtualMFADevices(&iam.ListVirtualMFADevicesInput{}) if err != nil { return nil, err @@ -61,12 +60,12 @@ type IAMVirtualMFADevice struct { serialNumber *string } -func (v *IAMVirtualMFADevice) Filter() error { +func (r *IAMVirtualMFADevice) Filter() error { isRoot := false - if ptr.ToString(v.userARN) == fmt.Sprintf("arn:aws:iam::%s:root", ptr.ToString(v.userID)) { + if ptr.ToString(r.userARN) == fmt.Sprintf("arn:aws:iam::%s:root", ptr.ToString(r.userID)) { isRoot = true } - if strings.HasSuffix(ptr.ToString(v.serialNumber), "/root-account-mfa-device") { + if strings.HasSuffix(ptr.ToString(r.serialNumber), "/root-account-mfa-device") { isRoot = true } @@ -77,16 +76,16 @@ func (v *IAMVirtualMFADevice) Filter() error { return nil } -func (v *IAMVirtualMFADevice) Remove(_ context.Context) error { - if _, err := v.svc.DeactivateMFADevice(&iam.DeactivateMFADeviceInput{ - UserName: v.userName, - SerialNumber: v.serialNumber, +func (r *IAMVirtualMFADevice) Remove(_ context.Context) error { + if _, err := r.svc.DeactivateMFADevice(&iam.DeactivateMFADeviceInput{ + UserName: r.userName, + SerialNumber: r.serialNumber, }); err != nil { return err } - if _, err := v.svc.DeleteVirtualMFADevice(&iam.DeleteVirtualMFADeviceInput{ - SerialNumber: v.serialNumber, + if _, err := r.svc.DeleteVirtualMFADevice(&iam.DeleteVirtualMFADeviceInput{ + SerialNumber: r.serialNumber, }); err != nil { return err } @@ -94,6 +93,6 @@ func (v *IAMVirtualMFADevice) Remove(_ context.Context) error { return nil } -func (v *IAMVirtualMFADevice) String() string { - return ptr.ToString(v.serialNumber) +func (r *IAMVirtualMFADevice) String() string { + return ptr.ToString(r.serialNumber) } diff --git a/resources/iam-virtual-mfa-devices_mock_test.go b/resources/iam-virtual-mfa-device_mock_test.go similarity index 100% rename from resources/iam-virtual-mfa-devices_mock_test.go rename to resources/iam-virtual-mfa-device_mock_test.go From 3a3aae37a82f06f3ea97a23d7acec1839466edda Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 10 Jul 2024 15:14:15 -0600 Subject: [PATCH 351/617] feat(iam-user-mfa-device): new resource for user specific mfa devices vs account devices --- resources/iam-user-mfa-device.go | 98 ++++++++++++++++++++++ resources/iam-user-mfa-device_mock_test.go | 83 ++++++++++++++++++ 2 files changed, 181 insertions(+) create mode 100644 resources/iam-user-mfa-device.go create mode 100644 resources/iam-user-mfa-device_mock_test.go diff --git a/resources/iam-user-mfa-device.go b/resources/iam-user-mfa-device.go new file mode 100644 index 00000000..f9285096 --- /dev/null +++ b/resources/iam-user-mfa-device.go @@ -0,0 +1,98 @@ +package resources + +import ( + "context" + "fmt" + "strings" + "time" + + "github.com/gotidy/ptr" + + "github.com/aws/aws-sdk-go/service/iam" + "github.com/aws/aws-sdk-go/service/iam/iamiface" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +const IAMUserMFADeviceResource = "IAMUserMFADevice" + +func init() { + registry.Register(®istry.Registration{ + Name: IAMUserMFADeviceResource, + Scope: nuke.Account, + Lister: &IAMUserMFADeviceLister{}, + }) +} + +type IAMUserMFADeviceLister struct { + mockSvc iamiface.IAMAPI +} + +func (l *IAMUserMFADeviceLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + var resources []resource.Resource + + var svc iamiface.IAMAPI + if l.mockSvc != nil { + svc = l.mockSvc + } else { + svc = iam.New(opts.Session) + } + + allUsers, err := ListIAMUsers(svc) + if err != nil { + return nil, err + } + + for _, user := range allUsers { + res, listErr := svc.ListMFADevices(&iam.ListMFADevicesInput{ + UserName: user.UserName, + }) + if listErr != nil { + return nil, listErr + } + + for _, p := range res.MFADevices { + nameParts := strings.Split(*p.SerialNumber, "/") + name := nameParts[len(nameParts)-1] + + resources = append(resources, &IAMUserMFADevice{ + svc: svc, + Name: ptr.String(name), + UserName: p.UserName, + SerialNumber: p.SerialNumber, + EnableDate: p.EnableDate, + }) + } + } + + return resources, nil +} + +type IAMUserMFADevice struct { + svc iamiface.IAMAPI + Name *string + UserName *string + SerialNumber *string + EnableDate *time.Time +} + +func (r *IAMUserMFADevice) Remove(_ context.Context) error { + _, err := r.svc.DeactivateMFADevice(&iam.DeactivateMFADeviceInput{ + UserName: r.UserName, + SerialNumber: r.SerialNumber, + }) + return err +} + +func (r *IAMUserMFADevice) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + +func (r *IAMUserMFADevice) String() string { + return fmt.Sprintf("%s -> %s", *r.UserName, *r.Name) +} diff --git a/resources/iam-user-mfa-device_mock_test.go b/resources/iam-user-mfa-device_mock_test.go new file mode 100644 index 00000000..cd9f63a9 --- /dev/null +++ b/resources/iam-user-mfa-device_mock_test.go @@ -0,0 +1,83 @@ +package resources + +import ( + "context" + "testing" + "time" + + "github.com/golang/mock/gomock" + "github.com/gotidy/ptr" + "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/iam" + + "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +func Test_Mock_IAMUserMFADevice_List(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + mockIAM.EXPECT().ListUsersPages(gomock.Any(), gomock.Any()). + Do(func(_ *iam.ListUsersInput, fn func(page *iam.ListUsersOutput, lastPage bool) bool) { + fn(&iam.ListUsersOutput{ + Users: []*iam.User{ + { + UserName: ptr.String("foo"), + }, + }, + }, true) + }).Return(nil) + + mockIAM.EXPECT().ListMFADevices(&iam.ListMFADevicesInput{ + UserName: ptr.String("foo"), + }).Return(&iam.ListMFADevicesOutput{ + MFADevices: []*iam.MFADevice{ + { + UserName: ptr.String("foo"), + SerialNumber: ptr.String("bar"), + EnableDate: ptr.Time(time.Now()), + }, + }, + }, nil) + + lister := IAMUserMFADeviceLister{ + mockSvc: mockIAM, + } + + resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ + Region: &nuke.Region{ + Name: "us-east-2", + }, + Session: session.Must(session.NewSession()), + }) + a.NoError(err) + a.Len(resources, 1) +} + +func Test_Mock_IAMUserMFADevice_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + mockIAM.EXPECT().DeactivateMFADevice(&iam.DeactivateMFADeviceInput{ + UserName: ptr.String("foo"), + SerialNumber: ptr.String("bar"), + }) + + resource := &IAMUserMFADevice{ + svc: mockIAM, + UserName: ptr.String("foo"), + SerialNumber: ptr.String("bar"), + } + + err := resource.Remove(context.TODO()) + a.NoError(err) +} From 1f7682fbcfa0da727d83fd623ce1b12d2ee33d62 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 10 Jul 2024 21:25:11 +0000 Subject: [PATCH 352/617] fix(deps): update module github.com/aws/aws-sdk-go to v1.54.18 --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 964fb3bc..63b26a34 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/ekristen/aws-nuke/v3 go 1.21.6 require ( - github.com/aws/aws-sdk-go v1.53.19 + github.com/aws/aws-sdk-go v1.54.18 github.com/ekristen/libnuke v0.18.0 github.com/fatih/color v1.17.0 github.com/golang/mock v1.6.0 diff --git a/go.sum b/go.sum index c360b654..e384cc44 100644 --- a/go.sum +++ b/go.sum @@ -4,6 +4,8 @@ github.com/aws/aws-sdk-go v1.52.4 h1:9VsBVJ2TKf8xPP3+yIPGSYcEBIEymXsJzQoFgQuyvA0 github.com/aws/aws-sdk-go v1.52.4/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/aws/aws-sdk-go v1.53.19 h1:WEuWc918RXlIaPCyU11F7hH9H1ItK+8m2c/uoQNRUok= github.com/aws/aws-sdk-go v1.53.19/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go v1.54.18 h1:t8DGtN8A2wEiazoJxeDbfPsbxCKtjoRLuO7jBSgJzo4= +github.com/aws/aws-sdk-go v1.54.18/go.mod h1:eRwEWoyTWFMVYVQzKMNHWP5/RV4xIUGMQfXQHfHkpNU= github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/cpuguy83/go-md2man/v2 v2.0.4 h1:wfIWP927BUkWJb2NmU/kNDYIBTh/ziUX91+lVfRxZq4= From 029f92ba6fc1674da467ed9cc5841be83c32f728 Mon Sep 17 00:00:00 2001 From: "ekristen-dev[bot]" <169176299+ekristen-dev[bot]@users.noreply.github.com> Date: Wed, 10 Jul 2024 21:25:47 +0000 Subject: [PATCH 353/617] chore: update mocks --- mocks/mock_autoscalingiface/mock.go | 2 +- mocks/mock_cloudformationiface/mock.go | 2 +- mocks/mock_ecsiface/mock.go | 2 +- mocks/mock_elasticacheiface/mock.go | 2 +- mocks/mock_glueiface/mock.go | 285 +++++++- mocks/mock_iamiface/mock.go | 2 +- mocks/mock_quicksightiface/mock.go | 2 +- mocks/mock_sagemakeriface/mock.go | 818 ++++++++++++++++++++++- mocks/mock_secretsmanageriface/mock.go | 2 +- mocks/mock_servicediscoveryiface/mock.go | 2 +- mocks/mock_sqsiface/mock.go | 2 +- mocks/mock_stsiface/mock.go | 2 +- 12 files changed, 1111 insertions(+), 12 deletions(-) diff --git a/mocks/mock_autoscalingiface/mock.go b/mocks/mock_autoscalingiface/mock.go index c422a5b9..357e9907 100644 --- a/mocks/mock_autoscalingiface/mock.go +++ b/mocks/mock_autoscalingiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /Users/ekristen/go/pkg/mod/github.com/aws/aws-sdk-go@v1.53.19/service/autoscaling/autoscalingiface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.18/service/autoscaling/autoscalingiface/interface.go // Package mock_autoscalingiface is a generated GoMock package. package mock_autoscalingiface diff --git a/mocks/mock_cloudformationiface/mock.go b/mocks/mock_cloudformationiface/mock.go index 60ec679c..8c4f0083 100644 --- a/mocks/mock_cloudformationiface/mock.go +++ b/mocks/mock_cloudformationiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.53.19/service/cloudformation/cloudformationiface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.18/service/cloudformation/cloudformationiface/interface.go // Package mock_cloudformationiface is a generated GoMock package. package mock_cloudformationiface diff --git a/mocks/mock_ecsiface/mock.go b/mocks/mock_ecsiface/mock.go index 2da7671f..351d9b34 100644 --- a/mocks/mock_ecsiface/mock.go +++ b/mocks/mock_ecsiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.53.19/service/ecs/ecsiface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.18/service/ecs/ecsiface/interface.go // Package mock_ecsiface is a generated GoMock package. package mock_ecsiface diff --git a/mocks/mock_elasticacheiface/mock.go b/mocks/mock_elasticacheiface/mock.go index cd245857..161deb80 100644 --- a/mocks/mock_elasticacheiface/mock.go +++ b/mocks/mock_elasticacheiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.53.19/service/elasticache/elasticacheiface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.18/service/elasticache/elasticacheiface/interface.go // Package mock_elasticacheiface is a generated GoMock package. package mock_elasticacheiface diff --git a/mocks/mock_glueiface/mock.go b/mocks/mock_glueiface/mock.go index 67f5870f..ad219a94 100644 --- a/mocks/mock_glueiface/mock.go +++ b/mocks/mock_glueiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.53.19/service/glue/glueiface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.18/service/glue/glueiface/interface.go // Package mock_glueiface is a generated GoMock package. package mock_glueiface @@ -2136,6 +2136,56 @@ func (mr *MockGlueAPIMockRecorder) CreateTriggerWithContext(arg0, arg1 interface return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTriggerWithContext", reflect.TypeOf((*MockGlueAPI)(nil).CreateTriggerWithContext), varargs...) } +// CreateUsageProfile mocks base method. +func (m *MockGlueAPI) CreateUsageProfile(arg0 *glue.CreateUsageProfileInput) (*glue.CreateUsageProfileOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateUsageProfile", arg0) + ret0, _ := ret[0].(*glue.CreateUsageProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateUsageProfile indicates an expected call of CreateUsageProfile. +func (mr *MockGlueAPIMockRecorder) CreateUsageProfile(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUsageProfile", reflect.TypeOf((*MockGlueAPI)(nil).CreateUsageProfile), arg0) +} + +// CreateUsageProfileRequest mocks base method. +func (m *MockGlueAPI) CreateUsageProfileRequest(arg0 *glue.CreateUsageProfileInput) (*request.Request, *glue.CreateUsageProfileOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateUsageProfileRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.CreateUsageProfileOutput) + return ret0, ret1 +} + +// CreateUsageProfileRequest indicates an expected call of CreateUsageProfileRequest. +func (mr *MockGlueAPIMockRecorder) CreateUsageProfileRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUsageProfileRequest", reflect.TypeOf((*MockGlueAPI)(nil).CreateUsageProfileRequest), arg0) +} + +// CreateUsageProfileWithContext mocks base method. +func (m *MockGlueAPI) CreateUsageProfileWithContext(arg0 aws.Context, arg1 *glue.CreateUsageProfileInput, arg2 ...request.Option) (*glue.CreateUsageProfileOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateUsageProfileWithContext", varargs...) + ret0, _ := ret[0].(*glue.CreateUsageProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateUsageProfileWithContext indicates an expected call of CreateUsageProfileWithContext. +func (mr *MockGlueAPIMockRecorder) CreateUsageProfileWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUsageProfileWithContext", reflect.TypeOf((*MockGlueAPI)(nil).CreateUsageProfileWithContext), varargs...) +} + // CreateUserDefinedFunction mocks base method. func (m *MockGlueAPI) CreateUserDefinedFunction(arg0 *glue.CreateUserDefinedFunctionInput) (*glue.CreateUserDefinedFunctionOutput, error) { m.ctrl.T.Helper() @@ -3436,6 +3486,56 @@ func (mr *MockGlueAPIMockRecorder) DeleteTriggerWithContext(arg0, arg1 interface return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTriggerWithContext", reflect.TypeOf((*MockGlueAPI)(nil).DeleteTriggerWithContext), varargs...) } +// DeleteUsageProfile mocks base method. +func (m *MockGlueAPI) DeleteUsageProfile(arg0 *glue.DeleteUsageProfileInput) (*glue.DeleteUsageProfileOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteUsageProfile", arg0) + ret0, _ := ret[0].(*glue.DeleteUsageProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteUsageProfile indicates an expected call of DeleteUsageProfile. +func (mr *MockGlueAPIMockRecorder) DeleteUsageProfile(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUsageProfile", reflect.TypeOf((*MockGlueAPI)(nil).DeleteUsageProfile), arg0) +} + +// DeleteUsageProfileRequest mocks base method. +func (m *MockGlueAPI) DeleteUsageProfileRequest(arg0 *glue.DeleteUsageProfileInput) (*request.Request, *glue.DeleteUsageProfileOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteUsageProfileRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.DeleteUsageProfileOutput) + return ret0, ret1 +} + +// DeleteUsageProfileRequest indicates an expected call of DeleteUsageProfileRequest. +func (mr *MockGlueAPIMockRecorder) DeleteUsageProfileRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUsageProfileRequest", reflect.TypeOf((*MockGlueAPI)(nil).DeleteUsageProfileRequest), arg0) +} + +// DeleteUsageProfileWithContext mocks base method. +func (m *MockGlueAPI) DeleteUsageProfileWithContext(arg0 aws.Context, arg1 *glue.DeleteUsageProfileInput, arg2 ...request.Option) (*glue.DeleteUsageProfileOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteUsageProfileWithContext", varargs...) + ret0, _ := ret[0].(*glue.DeleteUsageProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteUsageProfileWithContext indicates an expected call of DeleteUsageProfileWithContext. +func (mr *MockGlueAPIMockRecorder) DeleteUsageProfileWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUsageProfileWithContext", reflect.TypeOf((*MockGlueAPI)(nil).DeleteUsageProfileWithContext), varargs...) +} + // DeleteUserDefinedFunction mocks base method. func (m *MockGlueAPI) DeleteUserDefinedFunction(arg0 *glue.DeleteUserDefinedFunctionInput) (*glue.DeleteUserDefinedFunctionOutput, error) { m.ctrl.T.Helper() @@ -7296,6 +7396,56 @@ func (mr *MockGlueAPIMockRecorder) GetUnfilteredTableMetadataWithContext(arg0, a return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUnfilteredTableMetadataWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetUnfilteredTableMetadataWithContext), varargs...) } +// GetUsageProfile mocks base method. +func (m *MockGlueAPI) GetUsageProfile(arg0 *glue.GetUsageProfileInput) (*glue.GetUsageProfileOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetUsageProfile", arg0) + ret0, _ := ret[0].(*glue.GetUsageProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetUsageProfile indicates an expected call of GetUsageProfile. +func (mr *MockGlueAPIMockRecorder) GetUsageProfile(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUsageProfile", reflect.TypeOf((*MockGlueAPI)(nil).GetUsageProfile), arg0) +} + +// GetUsageProfileRequest mocks base method. +func (m *MockGlueAPI) GetUsageProfileRequest(arg0 *glue.GetUsageProfileInput) (*request.Request, *glue.GetUsageProfileOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetUsageProfileRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.GetUsageProfileOutput) + return ret0, ret1 +} + +// GetUsageProfileRequest indicates an expected call of GetUsageProfileRequest. +func (mr *MockGlueAPIMockRecorder) GetUsageProfileRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUsageProfileRequest", reflect.TypeOf((*MockGlueAPI)(nil).GetUsageProfileRequest), arg0) +} + +// GetUsageProfileWithContext mocks base method. +func (m *MockGlueAPI) GetUsageProfileWithContext(arg0 aws.Context, arg1 *glue.GetUsageProfileInput, arg2 ...request.Option) (*glue.GetUsageProfileOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetUsageProfileWithContext", varargs...) + ret0, _ := ret[0].(*glue.GetUsageProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetUsageProfileWithContext indicates an expected call of GetUsageProfileWithContext. +func (mr *MockGlueAPIMockRecorder) GetUsageProfileWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUsageProfileWithContext", reflect.TypeOf((*MockGlueAPI)(nil).GetUsageProfileWithContext), varargs...) +} + // GetUserDefinedFunction mocks base method. func (m *MockGlueAPI) GetUserDefinedFunction(arg0 *glue.GetUserDefinedFunctionInput) (*glue.GetUserDefinedFunctionOutput, error) { m.ctrl.T.Helper() @@ -9223,6 +9373,89 @@ func (mr *MockGlueAPIMockRecorder) ListTriggersWithContext(arg0, arg1 interface{ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTriggersWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListTriggersWithContext), varargs...) } +// ListUsageProfiles mocks base method. +func (m *MockGlueAPI) ListUsageProfiles(arg0 *glue.ListUsageProfilesInput) (*glue.ListUsageProfilesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListUsageProfiles", arg0) + ret0, _ := ret[0].(*glue.ListUsageProfilesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListUsageProfiles indicates an expected call of ListUsageProfiles. +func (mr *MockGlueAPIMockRecorder) ListUsageProfiles(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUsageProfiles", reflect.TypeOf((*MockGlueAPI)(nil).ListUsageProfiles), arg0) +} + +// ListUsageProfilesPages mocks base method. +func (m *MockGlueAPI) ListUsageProfilesPages(arg0 *glue.ListUsageProfilesInput, arg1 func(*glue.ListUsageProfilesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListUsageProfilesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListUsageProfilesPages indicates an expected call of ListUsageProfilesPages. +func (mr *MockGlueAPIMockRecorder) ListUsageProfilesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUsageProfilesPages", reflect.TypeOf((*MockGlueAPI)(nil).ListUsageProfilesPages), arg0, arg1) +} + +// ListUsageProfilesPagesWithContext mocks base method. +func (m *MockGlueAPI) ListUsageProfilesPagesWithContext(arg0 aws.Context, arg1 *glue.ListUsageProfilesInput, arg2 func(*glue.ListUsageProfilesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListUsageProfilesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListUsageProfilesPagesWithContext indicates an expected call of ListUsageProfilesPagesWithContext. +func (mr *MockGlueAPIMockRecorder) ListUsageProfilesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUsageProfilesPagesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListUsageProfilesPagesWithContext), varargs...) +} + +// ListUsageProfilesRequest mocks base method. +func (m *MockGlueAPI) ListUsageProfilesRequest(arg0 *glue.ListUsageProfilesInput) (*request.Request, *glue.ListUsageProfilesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListUsageProfilesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.ListUsageProfilesOutput) + return ret0, ret1 +} + +// ListUsageProfilesRequest indicates an expected call of ListUsageProfilesRequest. +func (mr *MockGlueAPIMockRecorder) ListUsageProfilesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUsageProfilesRequest", reflect.TypeOf((*MockGlueAPI)(nil).ListUsageProfilesRequest), arg0) +} + +// ListUsageProfilesWithContext mocks base method. +func (m *MockGlueAPI) ListUsageProfilesWithContext(arg0 aws.Context, arg1 *glue.ListUsageProfilesInput, arg2 ...request.Option) (*glue.ListUsageProfilesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListUsageProfilesWithContext", varargs...) + ret0, _ := ret[0].(*glue.ListUsageProfilesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListUsageProfilesWithContext indicates an expected call of ListUsageProfilesWithContext. +func (mr *MockGlueAPIMockRecorder) ListUsageProfilesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUsageProfilesWithContext", reflect.TypeOf((*MockGlueAPI)(nil).ListUsageProfilesWithContext), varargs...) +} + // ListWorkflows mocks base method. func (m *MockGlueAPI) ListWorkflows(arg0 *glue.ListWorkflowsInput) (*glue.ListWorkflowsOutput, error) { m.ctrl.T.Helper() @@ -11939,6 +12172,56 @@ func (mr *MockGlueAPIMockRecorder) UpdateTriggerWithContext(arg0, arg1 interface return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTriggerWithContext", reflect.TypeOf((*MockGlueAPI)(nil).UpdateTriggerWithContext), varargs...) } +// UpdateUsageProfile mocks base method. +func (m *MockGlueAPI) UpdateUsageProfile(arg0 *glue.UpdateUsageProfileInput) (*glue.UpdateUsageProfileOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateUsageProfile", arg0) + ret0, _ := ret[0].(*glue.UpdateUsageProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateUsageProfile indicates an expected call of UpdateUsageProfile. +func (mr *MockGlueAPIMockRecorder) UpdateUsageProfile(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUsageProfile", reflect.TypeOf((*MockGlueAPI)(nil).UpdateUsageProfile), arg0) +} + +// UpdateUsageProfileRequest mocks base method. +func (m *MockGlueAPI) UpdateUsageProfileRequest(arg0 *glue.UpdateUsageProfileInput) (*request.Request, *glue.UpdateUsageProfileOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateUsageProfileRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*glue.UpdateUsageProfileOutput) + return ret0, ret1 +} + +// UpdateUsageProfileRequest indicates an expected call of UpdateUsageProfileRequest. +func (mr *MockGlueAPIMockRecorder) UpdateUsageProfileRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUsageProfileRequest", reflect.TypeOf((*MockGlueAPI)(nil).UpdateUsageProfileRequest), arg0) +} + +// UpdateUsageProfileWithContext mocks base method. +func (m *MockGlueAPI) UpdateUsageProfileWithContext(arg0 aws.Context, arg1 *glue.UpdateUsageProfileInput, arg2 ...request.Option) (*glue.UpdateUsageProfileOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateUsageProfileWithContext", varargs...) + ret0, _ := ret[0].(*glue.UpdateUsageProfileOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateUsageProfileWithContext indicates an expected call of UpdateUsageProfileWithContext. +func (mr *MockGlueAPIMockRecorder) UpdateUsageProfileWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUsageProfileWithContext", reflect.TypeOf((*MockGlueAPI)(nil).UpdateUsageProfileWithContext), varargs...) +} + // UpdateUserDefinedFunction mocks base method. func (m *MockGlueAPI) UpdateUserDefinedFunction(arg0 *glue.UpdateUserDefinedFunctionInput) (*glue.UpdateUserDefinedFunctionOutput, error) { m.ctrl.T.Helper() diff --git a/mocks/mock_iamiface/mock.go b/mocks/mock_iamiface/mock.go index 198aedc9..5b70196d 100644 --- a/mocks/mock_iamiface/mock.go +++ b/mocks/mock_iamiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.53.19/service/iam/iamiface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.18/service/iam/iamiface/interface.go // Package mock_iamiface is a generated GoMock package. package mock_iamiface diff --git a/mocks/mock_quicksightiface/mock.go b/mocks/mock_quicksightiface/mock.go index c0812c01..5634a2a8 100644 --- a/mocks/mock_quicksightiface/mock.go +++ b/mocks/mock_quicksightiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.53.19/service/quicksight/quicksightiface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.18/service/quicksight/quicksightiface/interface.go // Package mock_quicksightiface is a generated GoMock package. package mock_quicksightiface diff --git a/mocks/mock_sagemakeriface/mock.go b/mocks/mock_sagemakeriface/mock.go index d178555d..31c63dea 100644 --- a/mocks/mock_sagemakeriface/mock.go +++ b/mocks/mock_sagemakeriface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.53.19/service/sagemaker/sagemakeriface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.18/service/sagemaker/sagemakeriface/interface.go // Package mock_sagemakeriface is a generated GoMock package. package mock_sagemakeriface @@ -1351,6 +1351,56 @@ func (mr *MockSageMakerAPIMockRecorder) CreateHub(arg0 interface{}) *gomock.Call return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateHub", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateHub), arg0) } +// CreateHubContentReference mocks base method. +func (m *MockSageMakerAPI) CreateHubContentReference(arg0 *sagemaker.CreateHubContentReferenceInput) (*sagemaker.CreateHubContentReferenceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateHubContentReference", arg0) + ret0, _ := ret[0].(*sagemaker.CreateHubContentReferenceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateHubContentReference indicates an expected call of CreateHubContentReference. +func (mr *MockSageMakerAPIMockRecorder) CreateHubContentReference(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateHubContentReference", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateHubContentReference), arg0) +} + +// CreateHubContentReferenceRequest mocks base method. +func (m *MockSageMakerAPI) CreateHubContentReferenceRequest(arg0 *sagemaker.CreateHubContentReferenceInput) (*request.Request, *sagemaker.CreateHubContentReferenceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateHubContentReferenceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateHubContentReferenceOutput) + return ret0, ret1 +} + +// CreateHubContentReferenceRequest indicates an expected call of CreateHubContentReferenceRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateHubContentReferenceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateHubContentReferenceRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateHubContentReferenceRequest), arg0) +} + +// CreateHubContentReferenceWithContext mocks base method. +func (m *MockSageMakerAPI) CreateHubContentReferenceWithContext(arg0 aws.Context, arg1 *sagemaker.CreateHubContentReferenceInput, arg2 ...request.Option) (*sagemaker.CreateHubContentReferenceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateHubContentReferenceWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateHubContentReferenceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateHubContentReferenceWithContext indicates an expected call of CreateHubContentReferenceWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateHubContentReferenceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateHubContentReferenceWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateHubContentReferenceWithContext), varargs...) +} + // CreateHubRequest mocks base method. func (m *MockSageMakerAPI) CreateHubRequest(arg0 *sagemaker.CreateHubInput) (*request.Request, *sagemaker.CreateHubOutput) { m.ctrl.T.Helper() @@ -1786,6 +1836,56 @@ func (mr *MockSageMakerAPIMockRecorder) CreateLabelingJobWithContext(arg0, arg1 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateLabelingJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateLabelingJobWithContext), varargs...) } +// CreateMlflowTrackingServer mocks base method. +func (m *MockSageMakerAPI) CreateMlflowTrackingServer(arg0 *sagemaker.CreateMlflowTrackingServerInput) (*sagemaker.CreateMlflowTrackingServerOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateMlflowTrackingServer", arg0) + ret0, _ := ret[0].(*sagemaker.CreateMlflowTrackingServerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateMlflowTrackingServer indicates an expected call of CreateMlflowTrackingServer. +func (mr *MockSageMakerAPIMockRecorder) CreateMlflowTrackingServer(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateMlflowTrackingServer", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateMlflowTrackingServer), arg0) +} + +// CreateMlflowTrackingServerRequest mocks base method. +func (m *MockSageMakerAPI) CreateMlflowTrackingServerRequest(arg0 *sagemaker.CreateMlflowTrackingServerInput) (*request.Request, *sagemaker.CreateMlflowTrackingServerOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateMlflowTrackingServerRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateMlflowTrackingServerOutput) + return ret0, ret1 +} + +// CreateMlflowTrackingServerRequest indicates an expected call of CreateMlflowTrackingServerRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateMlflowTrackingServerRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateMlflowTrackingServerRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateMlflowTrackingServerRequest), arg0) +} + +// CreateMlflowTrackingServerWithContext mocks base method. +func (m *MockSageMakerAPI) CreateMlflowTrackingServerWithContext(arg0 aws.Context, arg1 *sagemaker.CreateMlflowTrackingServerInput, arg2 ...request.Option) (*sagemaker.CreateMlflowTrackingServerOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateMlflowTrackingServerWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateMlflowTrackingServerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateMlflowTrackingServerWithContext indicates an expected call of CreateMlflowTrackingServerWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateMlflowTrackingServerWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateMlflowTrackingServerWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateMlflowTrackingServerWithContext), varargs...) +} + // CreateModel mocks base method. func (m *MockSageMakerAPI) CreateModel(arg0 *sagemaker.CreateModelInput) (*sagemaker.CreateModelOutput, error) { m.ctrl.T.Helper() @@ -2336,6 +2436,56 @@ func (mr *MockSageMakerAPIMockRecorder) CreateNotebookInstanceWithContext(arg0, return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateNotebookInstanceWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateNotebookInstanceWithContext), varargs...) } +// CreateOptimizationJob mocks base method. +func (m *MockSageMakerAPI) CreateOptimizationJob(arg0 *sagemaker.CreateOptimizationJobInput) (*sagemaker.CreateOptimizationJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateOptimizationJob", arg0) + ret0, _ := ret[0].(*sagemaker.CreateOptimizationJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateOptimizationJob indicates an expected call of CreateOptimizationJob. +func (mr *MockSageMakerAPIMockRecorder) CreateOptimizationJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOptimizationJob", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateOptimizationJob), arg0) +} + +// CreateOptimizationJobRequest mocks base method. +func (m *MockSageMakerAPI) CreateOptimizationJobRequest(arg0 *sagemaker.CreateOptimizationJobInput) (*request.Request, *sagemaker.CreateOptimizationJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateOptimizationJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreateOptimizationJobOutput) + return ret0, ret1 +} + +// CreateOptimizationJobRequest indicates an expected call of CreateOptimizationJobRequest. +func (mr *MockSageMakerAPIMockRecorder) CreateOptimizationJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOptimizationJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateOptimizationJobRequest), arg0) +} + +// CreateOptimizationJobWithContext mocks base method. +func (m *MockSageMakerAPI) CreateOptimizationJobWithContext(arg0 aws.Context, arg1 *sagemaker.CreateOptimizationJobInput, arg2 ...request.Option) (*sagemaker.CreateOptimizationJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateOptimizationJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreateOptimizationJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateOptimizationJobWithContext indicates an expected call of CreateOptimizationJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreateOptimizationJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOptimizationJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreateOptimizationJobWithContext), varargs...) +} + // CreatePipeline mocks base method. func (m *MockSageMakerAPI) CreatePipeline(arg0 *sagemaker.CreatePipelineInput) (*sagemaker.CreatePipelineOutput, error) { m.ctrl.T.Helper() @@ -2436,6 +2586,56 @@ func (mr *MockSageMakerAPIMockRecorder) CreatePresignedDomainUrlWithContext(arg0 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePresignedDomainUrlWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreatePresignedDomainUrlWithContext), varargs...) } +// CreatePresignedMlflowTrackingServerUrl mocks base method. +func (m *MockSageMakerAPI) CreatePresignedMlflowTrackingServerUrl(arg0 *sagemaker.CreatePresignedMlflowTrackingServerUrlInput) (*sagemaker.CreatePresignedMlflowTrackingServerUrlOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreatePresignedMlflowTrackingServerUrl", arg0) + ret0, _ := ret[0].(*sagemaker.CreatePresignedMlflowTrackingServerUrlOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreatePresignedMlflowTrackingServerUrl indicates an expected call of CreatePresignedMlflowTrackingServerUrl. +func (mr *MockSageMakerAPIMockRecorder) CreatePresignedMlflowTrackingServerUrl(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePresignedMlflowTrackingServerUrl", reflect.TypeOf((*MockSageMakerAPI)(nil).CreatePresignedMlflowTrackingServerUrl), arg0) +} + +// CreatePresignedMlflowTrackingServerUrlRequest mocks base method. +func (m *MockSageMakerAPI) CreatePresignedMlflowTrackingServerUrlRequest(arg0 *sagemaker.CreatePresignedMlflowTrackingServerUrlInput) (*request.Request, *sagemaker.CreatePresignedMlflowTrackingServerUrlOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreatePresignedMlflowTrackingServerUrlRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.CreatePresignedMlflowTrackingServerUrlOutput) + return ret0, ret1 +} + +// CreatePresignedMlflowTrackingServerUrlRequest indicates an expected call of CreatePresignedMlflowTrackingServerUrlRequest. +func (mr *MockSageMakerAPIMockRecorder) CreatePresignedMlflowTrackingServerUrlRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePresignedMlflowTrackingServerUrlRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).CreatePresignedMlflowTrackingServerUrlRequest), arg0) +} + +// CreatePresignedMlflowTrackingServerUrlWithContext mocks base method. +func (m *MockSageMakerAPI) CreatePresignedMlflowTrackingServerUrlWithContext(arg0 aws.Context, arg1 *sagemaker.CreatePresignedMlflowTrackingServerUrlInput, arg2 ...request.Option) (*sagemaker.CreatePresignedMlflowTrackingServerUrlOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreatePresignedMlflowTrackingServerUrlWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.CreatePresignedMlflowTrackingServerUrlOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreatePresignedMlflowTrackingServerUrlWithContext indicates an expected call of CreatePresignedMlflowTrackingServerUrlWithContext. +func (mr *MockSageMakerAPIMockRecorder) CreatePresignedMlflowTrackingServerUrlWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePresignedMlflowTrackingServerUrlWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).CreatePresignedMlflowTrackingServerUrlWithContext), varargs...) +} + // CreatePresignedNotebookInstanceUrl mocks base method. func (m *MockSageMakerAPI) CreatePresignedNotebookInstanceUrl(arg0 *sagemaker.CreatePresignedNotebookInstanceUrlInput) (*sagemaker.CreatePresignedNotebookInstanceUrlOutput, error) { m.ctrl.T.Helper() @@ -4066,6 +4266,56 @@ func (mr *MockSageMakerAPIMockRecorder) DeleteHubContent(arg0 interface{}) *gomo return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteHubContent", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteHubContent), arg0) } +// DeleteHubContentReference mocks base method. +func (m *MockSageMakerAPI) DeleteHubContentReference(arg0 *sagemaker.DeleteHubContentReferenceInput) (*sagemaker.DeleteHubContentReferenceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteHubContentReference", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteHubContentReferenceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteHubContentReference indicates an expected call of DeleteHubContentReference. +func (mr *MockSageMakerAPIMockRecorder) DeleteHubContentReference(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteHubContentReference", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteHubContentReference), arg0) +} + +// DeleteHubContentReferenceRequest mocks base method. +func (m *MockSageMakerAPI) DeleteHubContentReferenceRequest(arg0 *sagemaker.DeleteHubContentReferenceInput) (*request.Request, *sagemaker.DeleteHubContentReferenceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteHubContentReferenceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteHubContentReferenceOutput) + return ret0, ret1 +} + +// DeleteHubContentReferenceRequest indicates an expected call of DeleteHubContentReferenceRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteHubContentReferenceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteHubContentReferenceRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteHubContentReferenceRequest), arg0) +} + +// DeleteHubContentReferenceWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteHubContentReferenceWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteHubContentReferenceInput, arg2 ...request.Option) (*sagemaker.DeleteHubContentReferenceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteHubContentReferenceWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteHubContentReferenceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteHubContentReferenceWithContext indicates an expected call of DeleteHubContentReferenceWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteHubContentReferenceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteHubContentReferenceWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteHubContentReferenceWithContext), varargs...) +} + // DeleteHubContentRequest mocks base method. func (m *MockSageMakerAPI) DeleteHubContentRequest(arg0 *sagemaker.DeleteHubContentInput) (*request.Request, *sagemaker.DeleteHubContentOutput) { m.ctrl.T.Helper() @@ -4436,6 +4686,56 @@ func (mr *MockSageMakerAPIMockRecorder) DeleteInferenceExperimentWithContext(arg return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteInferenceExperimentWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteInferenceExperimentWithContext), varargs...) } +// DeleteMlflowTrackingServer mocks base method. +func (m *MockSageMakerAPI) DeleteMlflowTrackingServer(arg0 *sagemaker.DeleteMlflowTrackingServerInput) (*sagemaker.DeleteMlflowTrackingServerOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteMlflowTrackingServer", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteMlflowTrackingServerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteMlflowTrackingServer indicates an expected call of DeleteMlflowTrackingServer. +func (mr *MockSageMakerAPIMockRecorder) DeleteMlflowTrackingServer(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMlflowTrackingServer", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteMlflowTrackingServer), arg0) +} + +// DeleteMlflowTrackingServerRequest mocks base method. +func (m *MockSageMakerAPI) DeleteMlflowTrackingServerRequest(arg0 *sagemaker.DeleteMlflowTrackingServerInput) (*request.Request, *sagemaker.DeleteMlflowTrackingServerOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteMlflowTrackingServerRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteMlflowTrackingServerOutput) + return ret0, ret1 +} + +// DeleteMlflowTrackingServerRequest indicates an expected call of DeleteMlflowTrackingServerRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteMlflowTrackingServerRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMlflowTrackingServerRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteMlflowTrackingServerRequest), arg0) +} + +// DeleteMlflowTrackingServerWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteMlflowTrackingServerWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteMlflowTrackingServerInput, arg2 ...request.Option) (*sagemaker.DeleteMlflowTrackingServerOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteMlflowTrackingServerWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteMlflowTrackingServerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteMlflowTrackingServerWithContext indicates an expected call of DeleteMlflowTrackingServerWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteMlflowTrackingServerWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMlflowTrackingServerWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteMlflowTrackingServerWithContext), varargs...) +} + // DeleteModel mocks base method. func (m *MockSageMakerAPI) DeleteModel(arg0 *sagemaker.DeleteModelInput) (*sagemaker.DeleteModelOutput, error) { m.ctrl.T.Helper() @@ -4986,6 +5286,56 @@ func (mr *MockSageMakerAPIMockRecorder) DeleteNotebookInstanceWithContext(arg0, return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteNotebookInstanceWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteNotebookInstanceWithContext), varargs...) } +// DeleteOptimizationJob mocks base method. +func (m *MockSageMakerAPI) DeleteOptimizationJob(arg0 *sagemaker.DeleteOptimizationJobInput) (*sagemaker.DeleteOptimizationJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteOptimizationJob", arg0) + ret0, _ := ret[0].(*sagemaker.DeleteOptimizationJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteOptimizationJob indicates an expected call of DeleteOptimizationJob. +func (mr *MockSageMakerAPIMockRecorder) DeleteOptimizationJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOptimizationJob", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteOptimizationJob), arg0) +} + +// DeleteOptimizationJobRequest mocks base method. +func (m *MockSageMakerAPI) DeleteOptimizationJobRequest(arg0 *sagemaker.DeleteOptimizationJobInput) (*request.Request, *sagemaker.DeleteOptimizationJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteOptimizationJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DeleteOptimizationJobOutput) + return ret0, ret1 +} + +// DeleteOptimizationJobRequest indicates an expected call of DeleteOptimizationJobRequest. +func (mr *MockSageMakerAPIMockRecorder) DeleteOptimizationJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOptimizationJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteOptimizationJobRequest), arg0) +} + +// DeleteOptimizationJobWithContext mocks base method. +func (m *MockSageMakerAPI) DeleteOptimizationJobWithContext(arg0 aws.Context, arg1 *sagemaker.DeleteOptimizationJobInput, arg2 ...request.Option) (*sagemaker.DeleteOptimizationJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteOptimizationJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DeleteOptimizationJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteOptimizationJobWithContext indicates an expected call of DeleteOptimizationJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) DeleteOptimizationJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOptimizationJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DeleteOptimizationJobWithContext), varargs...) +} + // DeletePipeline mocks base method. func (m *MockSageMakerAPI) DeletePipeline(arg0 *sagemaker.DeletePipelineInput) (*sagemaker.DeletePipelineOutput, error) { m.ctrl.T.Helper() @@ -7286,6 +7636,56 @@ func (mr *MockSageMakerAPIMockRecorder) DescribeLineageGroupWithContext(arg0, ar return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeLineageGroupWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeLineageGroupWithContext), varargs...) } +// DescribeMlflowTrackingServer mocks base method. +func (m *MockSageMakerAPI) DescribeMlflowTrackingServer(arg0 *sagemaker.DescribeMlflowTrackingServerInput) (*sagemaker.DescribeMlflowTrackingServerOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeMlflowTrackingServer", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeMlflowTrackingServerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeMlflowTrackingServer indicates an expected call of DescribeMlflowTrackingServer. +func (mr *MockSageMakerAPIMockRecorder) DescribeMlflowTrackingServer(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeMlflowTrackingServer", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeMlflowTrackingServer), arg0) +} + +// DescribeMlflowTrackingServerRequest mocks base method. +func (m *MockSageMakerAPI) DescribeMlflowTrackingServerRequest(arg0 *sagemaker.DescribeMlflowTrackingServerInput) (*request.Request, *sagemaker.DescribeMlflowTrackingServerOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeMlflowTrackingServerRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeMlflowTrackingServerOutput) + return ret0, ret1 +} + +// DescribeMlflowTrackingServerRequest indicates an expected call of DescribeMlflowTrackingServerRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeMlflowTrackingServerRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeMlflowTrackingServerRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeMlflowTrackingServerRequest), arg0) +} + +// DescribeMlflowTrackingServerWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeMlflowTrackingServerWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeMlflowTrackingServerInput, arg2 ...request.Option) (*sagemaker.DescribeMlflowTrackingServerOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeMlflowTrackingServerWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeMlflowTrackingServerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeMlflowTrackingServerWithContext indicates an expected call of DescribeMlflowTrackingServerWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeMlflowTrackingServerWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeMlflowTrackingServerWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeMlflowTrackingServerWithContext), varargs...) +} + // DescribeModel mocks base method. func (m *MockSageMakerAPI) DescribeModel(arg0 *sagemaker.DescribeModelInput) (*sagemaker.DescribeModelOutput, error) { m.ctrl.T.Helper() @@ -7836,6 +8236,56 @@ func (mr *MockSageMakerAPIMockRecorder) DescribeNotebookInstanceWithContext(arg0 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeNotebookInstanceWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeNotebookInstanceWithContext), varargs...) } +// DescribeOptimizationJob mocks base method. +func (m *MockSageMakerAPI) DescribeOptimizationJob(arg0 *sagemaker.DescribeOptimizationJobInput) (*sagemaker.DescribeOptimizationJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeOptimizationJob", arg0) + ret0, _ := ret[0].(*sagemaker.DescribeOptimizationJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeOptimizationJob indicates an expected call of DescribeOptimizationJob. +func (mr *MockSageMakerAPIMockRecorder) DescribeOptimizationJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeOptimizationJob", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeOptimizationJob), arg0) +} + +// DescribeOptimizationJobRequest mocks base method. +func (m *MockSageMakerAPI) DescribeOptimizationJobRequest(arg0 *sagemaker.DescribeOptimizationJobInput) (*request.Request, *sagemaker.DescribeOptimizationJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeOptimizationJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.DescribeOptimizationJobOutput) + return ret0, ret1 +} + +// DescribeOptimizationJobRequest indicates an expected call of DescribeOptimizationJobRequest. +func (mr *MockSageMakerAPIMockRecorder) DescribeOptimizationJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeOptimizationJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeOptimizationJobRequest), arg0) +} + +// DescribeOptimizationJobWithContext mocks base method. +func (m *MockSageMakerAPI) DescribeOptimizationJobWithContext(arg0 aws.Context, arg1 *sagemaker.DescribeOptimizationJobInput, arg2 ...request.Option) (*sagemaker.DescribeOptimizationJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeOptimizationJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.DescribeOptimizationJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeOptimizationJobWithContext indicates an expected call of DescribeOptimizationJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) DescribeOptimizationJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeOptimizationJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).DescribeOptimizationJobWithContext), varargs...) +} + // DescribePipeline mocks base method. func (m *MockSageMakerAPI) DescribePipeline(arg0 *sagemaker.DescribePipelineInput) (*sagemaker.DescribePipelineOutput, error) { m.ctrl.T.Helper() @@ -12224,6 +12674,89 @@ func (mr *MockSageMakerAPIMockRecorder) ListLineageGroupsWithContext(arg0, arg1 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListLineageGroupsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListLineageGroupsWithContext), varargs...) } +// ListMlflowTrackingServers mocks base method. +func (m *MockSageMakerAPI) ListMlflowTrackingServers(arg0 *sagemaker.ListMlflowTrackingServersInput) (*sagemaker.ListMlflowTrackingServersOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListMlflowTrackingServers", arg0) + ret0, _ := ret[0].(*sagemaker.ListMlflowTrackingServersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListMlflowTrackingServers indicates an expected call of ListMlflowTrackingServers. +func (mr *MockSageMakerAPIMockRecorder) ListMlflowTrackingServers(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMlflowTrackingServers", reflect.TypeOf((*MockSageMakerAPI)(nil).ListMlflowTrackingServers), arg0) +} + +// ListMlflowTrackingServersPages mocks base method. +func (m *MockSageMakerAPI) ListMlflowTrackingServersPages(arg0 *sagemaker.ListMlflowTrackingServersInput, arg1 func(*sagemaker.ListMlflowTrackingServersOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListMlflowTrackingServersPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListMlflowTrackingServersPages indicates an expected call of ListMlflowTrackingServersPages. +func (mr *MockSageMakerAPIMockRecorder) ListMlflowTrackingServersPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMlflowTrackingServersPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListMlflowTrackingServersPages), arg0, arg1) +} + +// ListMlflowTrackingServersPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListMlflowTrackingServersPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListMlflowTrackingServersInput, arg2 func(*sagemaker.ListMlflowTrackingServersOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListMlflowTrackingServersPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListMlflowTrackingServersPagesWithContext indicates an expected call of ListMlflowTrackingServersPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListMlflowTrackingServersPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMlflowTrackingServersPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListMlflowTrackingServersPagesWithContext), varargs...) +} + +// ListMlflowTrackingServersRequest mocks base method. +func (m *MockSageMakerAPI) ListMlflowTrackingServersRequest(arg0 *sagemaker.ListMlflowTrackingServersInput) (*request.Request, *sagemaker.ListMlflowTrackingServersOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListMlflowTrackingServersRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListMlflowTrackingServersOutput) + return ret0, ret1 +} + +// ListMlflowTrackingServersRequest indicates an expected call of ListMlflowTrackingServersRequest. +func (mr *MockSageMakerAPIMockRecorder) ListMlflowTrackingServersRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMlflowTrackingServersRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListMlflowTrackingServersRequest), arg0) +} + +// ListMlflowTrackingServersWithContext mocks base method. +func (m *MockSageMakerAPI) ListMlflowTrackingServersWithContext(arg0 aws.Context, arg1 *sagemaker.ListMlflowTrackingServersInput, arg2 ...request.Option) (*sagemaker.ListMlflowTrackingServersOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListMlflowTrackingServersWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListMlflowTrackingServersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListMlflowTrackingServersWithContext indicates an expected call of ListMlflowTrackingServersWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListMlflowTrackingServersWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListMlflowTrackingServersWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListMlflowTrackingServersWithContext), varargs...) +} + // ListModelBiasJobDefinitions mocks base method. func (m *MockSageMakerAPI) ListModelBiasJobDefinitions(arg0 *sagemaker.ListModelBiasJobDefinitionsInput) (*sagemaker.ListModelBiasJobDefinitionsOutput, error) { m.ctrl.T.Helper() @@ -13552,6 +14085,89 @@ func (mr *MockSageMakerAPIMockRecorder) ListNotebookInstancesWithContext(arg0, a return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListNotebookInstancesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListNotebookInstancesWithContext), varargs...) } +// ListOptimizationJobs mocks base method. +func (m *MockSageMakerAPI) ListOptimizationJobs(arg0 *sagemaker.ListOptimizationJobsInput) (*sagemaker.ListOptimizationJobsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListOptimizationJobs", arg0) + ret0, _ := ret[0].(*sagemaker.ListOptimizationJobsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListOptimizationJobs indicates an expected call of ListOptimizationJobs. +func (mr *MockSageMakerAPIMockRecorder) ListOptimizationJobs(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOptimizationJobs", reflect.TypeOf((*MockSageMakerAPI)(nil).ListOptimizationJobs), arg0) +} + +// ListOptimizationJobsPages mocks base method. +func (m *MockSageMakerAPI) ListOptimizationJobsPages(arg0 *sagemaker.ListOptimizationJobsInput, arg1 func(*sagemaker.ListOptimizationJobsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListOptimizationJobsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListOptimizationJobsPages indicates an expected call of ListOptimizationJobsPages. +func (mr *MockSageMakerAPIMockRecorder) ListOptimizationJobsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOptimizationJobsPages", reflect.TypeOf((*MockSageMakerAPI)(nil).ListOptimizationJobsPages), arg0, arg1) +} + +// ListOptimizationJobsPagesWithContext mocks base method. +func (m *MockSageMakerAPI) ListOptimizationJobsPagesWithContext(arg0 aws.Context, arg1 *sagemaker.ListOptimizationJobsInput, arg2 func(*sagemaker.ListOptimizationJobsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListOptimizationJobsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListOptimizationJobsPagesWithContext indicates an expected call of ListOptimizationJobsPagesWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListOptimizationJobsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOptimizationJobsPagesWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListOptimizationJobsPagesWithContext), varargs...) +} + +// ListOptimizationJobsRequest mocks base method. +func (m *MockSageMakerAPI) ListOptimizationJobsRequest(arg0 *sagemaker.ListOptimizationJobsInput) (*request.Request, *sagemaker.ListOptimizationJobsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListOptimizationJobsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.ListOptimizationJobsOutput) + return ret0, ret1 +} + +// ListOptimizationJobsRequest indicates an expected call of ListOptimizationJobsRequest. +func (mr *MockSageMakerAPIMockRecorder) ListOptimizationJobsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOptimizationJobsRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).ListOptimizationJobsRequest), arg0) +} + +// ListOptimizationJobsWithContext mocks base method. +func (m *MockSageMakerAPI) ListOptimizationJobsWithContext(arg0 aws.Context, arg1 *sagemaker.ListOptimizationJobsInput, arg2 ...request.Option) (*sagemaker.ListOptimizationJobsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListOptimizationJobsWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.ListOptimizationJobsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListOptimizationJobsWithContext indicates an expected call of ListOptimizationJobsWithContext. +func (mr *MockSageMakerAPIMockRecorder) ListOptimizationJobsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOptimizationJobsWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).ListOptimizationJobsWithContext), varargs...) +} + // ListPipelineExecutionSteps mocks base method. func (m *MockSageMakerAPI) ListPipelineExecutionSteps(arg0 *sagemaker.ListPipelineExecutionStepsInput) (*sagemaker.ListPipelineExecutionStepsOutput, error) { m.ctrl.T.Helper() @@ -15778,6 +16394,56 @@ func (mr *MockSageMakerAPIMockRecorder) StartInferenceExperimentWithContext(arg0 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartInferenceExperimentWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).StartInferenceExperimentWithContext), varargs...) } +// StartMlflowTrackingServer mocks base method. +func (m *MockSageMakerAPI) StartMlflowTrackingServer(arg0 *sagemaker.StartMlflowTrackingServerInput) (*sagemaker.StartMlflowTrackingServerOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartMlflowTrackingServer", arg0) + ret0, _ := ret[0].(*sagemaker.StartMlflowTrackingServerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartMlflowTrackingServer indicates an expected call of StartMlflowTrackingServer. +func (mr *MockSageMakerAPIMockRecorder) StartMlflowTrackingServer(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartMlflowTrackingServer", reflect.TypeOf((*MockSageMakerAPI)(nil).StartMlflowTrackingServer), arg0) +} + +// StartMlflowTrackingServerRequest mocks base method. +func (m *MockSageMakerAPI) StartMlflowTrackingServerRequest(arg0 *sagemaker.StartMlflowTrackingServerInput) (*request.Request, *sagemaker.StartMlflowTrackingServerOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartMlflowTrackingServerRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.StartMlflowTrackingServerOutput) + return ret0, ret1 +} + +// StartMlflowTrackingServerRequest indicates an expected call of StartMlflowTrackingServerRequest. +func (mr *MockSageMakerAPIMockRecorder) StartMlflowTrackingServerRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartMlflowTrackingServerRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).StartMlflowTrackingServerRequest), arg0) +} + +// StartMlflowTrackingServerWithContext mocks base method. +func (m *MockSageMakerAPI) StartMlflowTrackingServerWithContext(arg0 aws.Context, arg1 *sagemaker.StartMlflowTrackingServerInput, arg2 ...request.Option) (*sagemaker.StartMlflowTrackingServerOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StartMlflowTrackingServerWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.StartMlflowTrackingServerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartMlflowTrackingServerWithContext indicates an expected call of StartMlflowTrackingServerWithContext. +func (mr *MockSageMakerAPIMockRecorder) StartMlflowTrackingServerWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartMlflowTrackingServerWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).StartMlflowTrackingServerWithContext), varargs...) +} + // StartMonitoringSchedule mocks base method. func (m *MockSageMakerAPI) StartMonitoringSchedule(arg0 *sagemaker.StartMonitoringScheduleInput) (*sagemaker.StartMonitoringScheduleOutput, error) { m.ctrl.T.Helper() @@ -16328,6 +16994,56 @@ func (mr *MockSageMakerAPIMockRecorder) StopLabelingJobWithContext(arg0, arg1 in return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopLabelingJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).StopLabelingJobWithContext), varargs...) } +// StopMlflowTrackingServer mocks base method. +func (m *MockSageMakerAPI) StopMlflowTrackingServer(arg0 *sagemaker.StopMlflowTrackingServerInput) (*sagemaker.StopMlflowTrackingServerOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopMlflowTrackingServer", arg0) + ret0, _ := ret[0].(*sagemaker.StopMlflowTrackingServerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopMlflowTrackingServer indicates an expected call of StopMlflowTrackingServer. +func (mr *MockSageMakerAPIMockRecorder) StopMlflowTrackingServer(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopMlflowTrackingServer", reflect.TypeOf((*MockSageMakerAPI)(nil).StopMlflowTrackingServer), arg0) +} + +// StopMlflowTrackingServerRequest mocks base method. +func (m *MockSageMakerAPI) StopMlflowTrackingServerRequest(arg0 *sagemaker.StopMlflowTrackingServerInput) (*request.Request, *sagemaker.StopMlflowTrackingServerOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopMlflowTrackingServerRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.StopMlflowTrackingServerOutput) + return ret0, ret1 +} + +// StopMlflowTrackingServerRequest indicates an expected call of StopMlflowTrackingServerRequest. +func (mr *MockSageMakerAPIMockRecorder) StopMlflowTrackingServerRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopMlflowTrackingServerRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).StopMlflowTrackingServerRequest), arg0) +} + +// StopMlflowTrackingServerWithContext mocks base method. +func (m *MockSageMakerAPI) StopMlflowTrackingServerWithContext(arg0 aws.Context, arg1 *sagemaker.StopMlflowTrackingServerInput, arg2 ...request.Option) (*sagemaker.StopMlflowTrackingServerOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StopMlflowTrackingServerWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.StopMlflowTrackingServerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopMlflowTrackingServerWithContext indicates an expected call of StopMlflowTrackingServerWithContext. +func (mr *MockSageMakerAPIMockRecorder) StopMlflowTrackingServerWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopMlflowTrackingServerWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).StopMlflowTrackingServerWithContext), varargs...) +} + // StopMonitoringSchedule mocks base method. func (m *MockSageMakerAPI) StopMonitoringSchedule(arg0 *sagemaker.StopMonitoringScheduleInput) (*sagemaker.StopMonitoringScheduleOutput, error) { m.ctrl.T.Helper() @@ -16428,6 +17144,56 @@ func (mr *MockSageMakerAPIMockRecorder) StopNotebookInstanceWithContext(arg0, ar return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopNotebookInstanceWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).StopNotebookInstanceWithContext), varargs...) } +// StopOptimizationJob mocks base method. +func (m *MockSageMakerAPI) StopOptimizationJob(arg0 *sagemaker.StopOptimizationJobInput) (*sagemaker.StopOptimizationJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopOptimizationJob", arg0) + ret0, _ := ret[0].(*sagemaker.StopOptimizationJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopOptimizationJob indicates an expected call of StopOptimizationJob. +func (mr *MockSageMakerAPIMockRecorder) StopOptimizationJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopOptimizationJob", reflect.TypeOf((*MockSageMakerAPI)(nil).StopOptimizationJob), arg0) +} + +// StopOptimizationJobRequest mocks base method. +func (m *MockSageMakerAPI) StopOptimizationJobRequest(arg0 *sagemaker.StopOptimizationJobInput) (*request.Request, *sagemaker.StopOptimizationJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopOptimizationJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.StopOptimizationJobOutput) + return ret0, ret1 +} + +// StopOptimizationJobRequest indicates an expected call of StopOptimizationJobRequest. +func (mr *MockSageMakerAPIMockRecorder) StopOptimizationJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopOptimizationJobRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).StopOptimizationJobRequest), arg0) +} + +// StopOptimizationJobWithContext mocks base method. +func (m *MockSageMakerAPI) StopOptimizationJobWithContext(arg0 aws.Context, arg1 *sagemaker.StopOptimizationJobInput, arg2 ...request.Option) (*sagemaker.StopOptimizationJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StopOptimizationJobWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.StopOptimizationJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopOptimizationJobWithContext indicates an expected call of StopOptimizationJobWithContext. +func (mr *MockSageMakerAPIMockRecorder) StopOptimizationJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopOptimizationJobWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).StopOptimizationJobWithContext), varargs...) +} + // StopPipelineExecution mocks base method. func (m *MockSageMakerAPI) StopPipelineExecution(arg0 *sagemaker.StopPipelineExecutionInput) (*sagemaker.StopPipelineExecutionOutput, error) { m.ctrl.T.Helper() @@ -17678,6 +18444,56 @@ func (mr *MockSageMakerAPIMockRecorder) UpdateInferenceExperimentWithContext(arg return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateInferenceExperimentWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateInferenceExperimentWithContext), varargs...) } +// UpdateMlflowTrackingServer mocks base method. +func (m *MockSageMakerAPI) UpdateMlflowTrackingServer(arg0 *sagemaker.UpdateMlflowTrackingServerInput) (*sagemaker.UpdateMlflowTrackingServerOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateMlflowTrackingServer", arg0) + ret0, _ := ret[0].(*sagemaker.UpdateMlflowTrackingServerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateMlflowTrackingServer indicates an expected call of UpdateMlflowTrackingServer. +func (mr *MockSageMakerAPIMockRecorder) UpdateMlflowTrackingServer(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMlflowTrackingServer", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateMlflowTrackingServer), arg0) +} + +// UpdateMlflowTrackingServerRequest mocks base method. +func (m *MockSageMakerAPI) UpdateMlflowTrackingServerRequest(arg0 *sagemaker.UpdateMlflowTrackingServerInput) (*request.Request, *sagemaker.UpdateMlflowTrackingServerOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateMlflowTrackingServerRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*sagemaker.UpdateMlflowTrackingServerOutput) + return ret0, ret1 +} + +// UpdateMlflowTrackingServerRequest indicates an expected call of UpdateMlflowTrackingServerRequest. +func (mr *MockSageMakerAPIMockRecorder) UpdateMlflowTrackingServerRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMlflowTrackingServerRequest", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateMlflowTrackingServerRequest), arg0) +} + +// UpdateMlflowTrackingServerWithContext mocks base method. +func (m *MockSageMakerAPI) UpdateMlflowTrackingServerWithContext(arg0 aws.Context, arg1 *sagemaker.UpdateMlflowTrackingServerInput, arg2 ...request.Option) (*sagemaker.UpdateMlflowTrackingServerOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateMlflowTrackingServerWithContext", varargs...) + ret0, _ := ret[0].(*sagemaker.UpdateMlflowTrackingServerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateMlflowTrackingServerWithContext indicates an expected call of UpdateMlflowTrackingServerWithContext. +func (mr *MockSageMakerAPIMockRecorder) UpdateMlflowTrackingServerWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMlflowTrackingServerWithContext", reflect.TypeOf((*MockSageMakerAPI)(nil).UpdateMlflowTrackingServerWithContext), varargs...) +} + // UpdateModelCard mocks base method. func (m *MockSageMakerAPI) UpdateModelCard(arg0 *sagemaker.UpdateModelCardInput) (*sagemaker.UpdateModelCardOutput, error) { m.ctrl.T.Helper() diff --git a/mocks/mock_secretsmanageriface/mock.go b/mocks/mock_secretsmanageriface/mock.go index a983f438..21b42a1d 100644 --- a/mocks/mock_secretsmanageriface/mock.go +++ b/mocks/mock_secretsmanageriface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /Users/ekristen/go/pkg/mod/github.com/aws/aws-sdk-go@v1.53.19/service/secretsmanager/secretsmanageriface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.18/service/secretsmanager/secretsmanageriface/interface.go // Package mock_secretsmanageriface is a generated GoMock package. package mock_secretsmanageriface diff --git a/mocks/mock_servicediscoveryiface/mock.go b/mocks/mock_servicediscoveryiface/mock.go index e24d0319..33714433 100644 --- a/mocks/mock_servicediscoveryiface/mock.go +++ b/mocks/mock_servicediscoveryiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.53.19/service/servicediscovery/servicediscoveryiface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.18/service/servicediscovery/servicediscoveryiface/interface.go // Package mock_servicediscoveryiface is a generated GoMock package. package mock_servicediscoveryiface diff --git a/mocks/mock_sqsiface/mock.go b/mocks/mock_sqsiface/mock.go index 28ea27c9..25f56b25 100644 --- a/mocks/mock_sqsiface/mock.go +++ b/mocks/mock_sqsiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.53.19/service/sqs/sqsiface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.18/service/sqs/sqsiface/interface.go // Package mock_sqsiface is a generated GoMock package. package mock_sqsiface diff --git a/mocks/mock_stsiface/mock.go b/mocks/mock_stsiface/mock.go index 0839c579..3d37968b 100644 --- a/mocks/mock_stsiface/mock.go +++ b/mocks/mock_stsiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.53.19/service/sts/stsiface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.18/service/sts/stsiface/interface.go // Package mock_stsiface is a generated GoMock package. package mock_stsiface From 23e3da3291c57d9538fd706f52c8460dd81095ce Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 12 Jul 2024 21:05:11 +0000 Subject: [PATCH 354/617] fix(deps): update module github.com/aws/aws-sdk-go to v1.54.19 --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 63b26a34..511cfd8a 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/ekristen/aws-nuke/v3 go 1.21.6 require ( - github.com/aws/aws-sdk-go v1.54.18 + github.com/aws/aws-sdk-go v1.54.19 github.com/ekristen/libnuke v0.18.0 github.com/fatih/color v1.17.0 github.com/golang/mock v1.6.0 diff --git a/go.sum b/go.sum index e384cc44..41a29193 100644 --- a/go.sum +++ b/go.sum @@ -6,6 +6,8 @@ github.com/aws/aws-sdk-go v1.53.19 h1:WEuWc918RXlIaPCyU11F7hH9H1ItK+8m2c/uoQNRUo github.com/aws/aws-sdk-go v1.53.19/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/aws/aws-sdk-go v1.54.18 h1:t8DGtN8A2wEiazoJxeDbfPsbxCKtjoRLuO7jBSgJzo4= github.com/aws/aws-sdk-go v1.54.18/go.mod h1:eRwEWoyTWFMVYVQzKMNHWP5/RV4xIUGMQfXQHfHkpNU= +github.com/aws/aws-sdk-go v1.54.19 h1:tyWV+07jagrNiCcGRzRhdtVjQs7Vy41NwsuOcl0IbVI= +github.com/aws/aws-sdk-go v1.54.19/go.mod h1:eRwEWoyTWFMVYVQzKMNHWP5/RV4xIUGMQfXQHfHkpNU= github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/cpuguy83/go-md2man/v2 v2.0.4 h1:wfIWP927BUkWJb2NmU/kNDYIBTh/ziUX91+lVfRxZq4= From 7c1a9ff583cacab43c43c9e696d2f987fa60ce7c Mon Sep 17 00:00:00 2001 From: "ekristen-dev[bot]" <169176299+ekristen-dev[bot]@users.noreply.github.com> Date: Fri, 12 Jul 2024 21:05:52 +0000 Subject: [PATCH 355/617] chore: update mocks --- mocks/mock_autoscalingiface/mock.go | 2 +- mocks/mock_cloudformationiface/mock.go | 2 +- mocks/mock_ecsiface/mock.go | 2 +- mocks/mock_elasticacheiface/mock.go | 2 +- mocks/mock_glueiface/mock.go | 2 +- mocks/mock_iamiface/mock.go | 2 +- mocks/mock_quicksightiface/mock.go | 152 ++++++++++++++++++++++- mocks/mock_sagemakeriface/mock.go | 2 +- mocks/mock_secretsmanageriface/mock.go | 2 +- mocks/mock_servicediscoveryiface/mock.go | 2 +- mocks/mock_sqsiface/mock.go | 2 +- mocks/mock_stsiface/mock.go | 2 +- 12 files changed, 162 insertions(+), 12 deletions(-) diff --git a/mocks/mock_autoscalingiface/mock.go b/mocks/mock_autoscalingiface/mock.go index 357e9907..ff258ab8 100644 --- a/mocks/mock_autoscalingiface/mock.go +++ b/mocks/mock_autoscalingiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.18/service/autoscaling/autoscalingiface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.19/service/autoscaling/autoscalingiface/interface.go // Package mock_autoscalingiface is a generated GoMock package. package mock_autoscalingiface diff --git a/mocks/mock_cloudformationiface/mock.go b/mocks/mock_cloudformationiface/mock.go index 8c4f0083..e3c8cb00 100644 --- a/mocks/mock_cloudformationiface/mock.go +++ b/mocks/mock_cloudformationiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.18/service/cloudformation/cloudformationiface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.19/service/cloudformation/cloudformationiface/interface.go // Package mock_cloudformationiface is a generated GoMock package. package mock_cloudformationiface diff --git a/mocks/mock_ecsiface/mock.go b/mocks/mock_ecsiface/mock.go index 351d9b34..59ee7ad3 100644 --- a/mocks/mock_ecsiface/mock.go +++ b/mocks/mock_ecsiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.18/service/ecs/ecsiface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.19/service/ecs/ecsiface/interface.go // Package mock_ecsiface is a generated GoMock package. package mock_ecsiface diff --git a/mocks/mock_elasticacheiface/mock.go b/mocks/mock_elasticacheiface/mock.go index 161deb80..b94990b7 100644 --- a/mocks/mock_elasticacheiface/mock.go +++ b/mocks/mock_elasticacheiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.18/service/elasticache/elasticacheiface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.19/service/elasticache/elasticacheiface/interface.go // Package mock_elasticacheiface is a generated GoMock package. package mock_elasticacheiface diff --git a/mocks/mock_glueiface/mock.go b/mocks/mock_glueiface/mock.go index ad219a94..72bd32ec 100644 --- a/mocks/mock_glueiface/mock.go +++ b/mocks/mock_glueiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.18/service/glue/glueiface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.19/service/glue/glueiface/interface.go // Package mock_glueiface is a generated GoMock package. package mock_glueiface diff --git a/mocks/mock_iamiface/mock.go b/mocks/mock_iamiface/mock.go index 5b70196d..4d2c24bf 100644 --- a/mocks/mock_iamiface/mock.go +++ b/mocks/mock_iamiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.18/service/iam/iamiface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.19/service/iam/iamiface/interface.go // Package mock_iamiface is a generated GoMock package. package mock_iamiface diff --git a/mocks/mock_quicksightiface/mock.go b/mocks/mock_quicksightiface/mock.go index 5634a2a8..d8b805d8 100644 --- a/mocks/mock_quicksightiface/mock.go +++ b/mocks/mock_quicksightiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.18/service/quicksight/quicksightiface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.19/service/quicksight/quicksightiface/interface.go // Package mock_quicksightiface is a generated GoMock package. package mock_quicksightiface @@ -36,6 +36,106 @@ func (m *MockQuickSightAPI) EXPECT() *MockQuickSightAPIMockRecorder { return m.recorder } +// BatchCreateTopicReviewedAnswer mocks base method. +func (m *MockQuickSightAPI) BatchCreateTopicReviewedAnswer(arg0 *quicksight.BatchCreateTopicReviewedAnswerInput) (*quicksight.BatchCreateTopicReviewedAnswerOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchCreateTopicReviewedAnswer", arg0) + ret0, _ := ret[0].(*quicksight.BatchCreateTopicReviewedAnswerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchCreateTopicReviewedAnswer indicates an expected call of BatchCreateTopicReviewedAnswer. +func (mr *MockQuickSightAPIMockRecorder) BatchCreateTopicReviewedAnswer(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchCreateTopicReviewedAnswer", reflect.TypeOf((*MockQuickSightAPI)(nil).BatchCreateTopicReviewedAnswer), arg0) +} + +// BatchCreateTopicReviewedAnswerRequest mocks base method. +func (m *MockQuickSightAPI) BatchCreateTopicReviewedAnswerRequest(arg0 *quicksight.BatchCreateTopicReviewedAnswerInput) (*request.Request, *quicksight.BatchCreateTopicReviewedAnswerOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchCreateTopicReviewedAnswerRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.BatchCreateTopicReviewedAnswerOutput) + return ret0, ret1 +} + +// BatchCreateTopicReviewedAnswerRequest indicates an expected call of BatchCreateTopicReviewedAnswerRequest. +func (mr *MockQuickSightAPIMockRecorder) BatchCreateTopicReviewedAnswerRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchCreateTopicReviewedAnswerRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).BatchCreateTopicReviewedAnswerRequest), arg0) +} + +// BatchCreateTopicReviewedAnswerWithContext mocks base method. +func (m *MockQuickSightAPI) BatchCreateTopicReviewedAnswerWithContext(arg0 aws.Context, arg1 *quicksight.BatchCreateTopicReviewedAnswerInput, arg2 ...request.Option) (*quicksight.BatchCreateTopicReviewedAnswerOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "BatchCreateTopicReviewedAnswerWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.BatchCreateTopicReviewedAnswerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchCreateTopicReviewedAnswerWithContext indicates an expected call of BatchCreateTopicReviewedAnswerWithContext. +func (mr *MockQuickSightAPIMockRecorder) BatchCreateTopicReviewedAnswerWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchCreateTopicReviewedAnswerWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).BatchCreateTopicReviewedAnswerWithContext), varargs...) +} + +// BatchDeleteTopicReviewedAnswer mocks base method. +func (m *MockQuickSightAPI) BatchDeleteTopicReviewedAnswer(arg0 *quicksight.BatchDeleteTopicReviewedAnswerInput) (*quicksight.BatchDeleteTopicReviewedAnswerOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchDeleteTopicReviewedAnswer", arg0) + ret0, _ := ret[0].(*quicksight.BatchDeleteTopicReviewedAnswerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchDeleteTopicReviewedAnswer indicates an expected call of BatchDeleteTopicReviewedAnswer. +func (mr *MockQuickSightAPIMockRecorder) BatchDeleteTopicReviewedAnswer(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchDeleteTopicReviewedAnswer", reflect.TypeOf((*MockQuickSightAPI)(nil).BatchDeleteTopicReviewedAnswer), arg0) +} + +// BatchDeleteTopicReviewedAnswerRequest mocks base method. +func (m *MockQuickSightAPI) BatchDeleteTopicReviewedAnswerRequest(arg0 *quicksight.BatchDeleteTopicReviewedAnswerInput) (*request.Request, *quicksight.BatchDeleteTopicReviewedAnswerOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchDeleteTopicReviewedAnswerRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.BatchDeleteTopicReviewedAnswerOutput) + return ret0, ret1 +} + +// BatchDeleteTopicReviewedAnswerRequest indicates an expected call of BatchDeleteTopicReviewedAnswerRequest. +func (mr *MockQuickSightAPIMockRecorder) BatchDeleteTopicReviewedAnswerRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchDeleteTopicReviewedAnswerRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).BatchDeleteTopicReviewedAnswerRequest), arg0) +} + +// BatchDeleteTopicReviewedAnswerWithContext mocks base method. +func (m *MockQuickSightAPI) BatchDeleteTopicReviewedAnswerWithContext(arg0 aws.Context, arg1 *quicksight.BatchDeleteTopicReviewedAnswerInput, arg2 ...request.Option) (*quicksight.BatchDeleteTopicReviewedAnswerOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "BatchDeleteTopicReviewedAnswerWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.BatchDeleteTopicReviewedAnswerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchDeleteTopicReviewedAnswerWithContext indicates an expected call of BatchDeleteTopicReviewedAnswerWithContext. +func (mr *MockQuickSightAPIMockRecorder) BatchDeleteTopicReviewedAnswerWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchDeleteTopicReviewedAnswerWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).BatchDeleteTopicReviewedAnswerWithContext), varargs...) +} + // CancelIngestion mocks base method. func (m *MockQuickSightAPI) CancelIngestion(arg0 *quicksight.CancelIngestionInput) (*quicksight.CancelIngestionOutput, error) { m.ctrl.T.Helper() @@ -6895,6 +6995,56 @@ func (mr *MockQuickSightAPIMockRecorder) ListTopicRefreshSchedulesWithContext(ar return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTopicRefreshSchedulesWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListTopicRefreshSchedulesWithContext), varargs...) } +// ListTopicReviewedAnswers mocks base method. +func (m *MockQuickSightAPI) ListTopicReviewedAnswers(arg0 *quicksight.ListTopicReviewedAnswersInput) (*quicksight.ListTopicReviewedAnswersOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTopicReviewedAnswers", arg0) + ret0, _ := ret[0].(*quicksight.ListTopicReviewedAnswersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTopicReviewedAnswers indicates an expected call of ListTopicReviewedAnswers. +func (mr *MockQuickSightAPIMockRecorder) ListTopicReviewedAnswers(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTopicReviewedAnswers", reflect.TypeOf((*MockQuickSightAPI)(nil).ListTopicReviewedAnswers), arg0) +} + +// ListTopicReviewedAnswersRequest mocks base method. +func (m *MockQuickSightAPI) ListTopicReviewedAnswersRequest(arg0 *quicksight.ListTopicReviewedAnswersInput) (*request.Request, *quicksight.ListTopicReviewedAnswersOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTopicReviewedAnswersRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*quicksight.ListTopicReviewedAnswersOutput) + return ret0, ret1 +} + +// ListTopicReviewedAnswersRequest indicates an expected call of ListTopicReviewedAnswersRequest. +func (mr *MockQuickSightAPIMockRecorder) ListTopicReviewedAnswersRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTopicReviewedAnswersRequest", reflect.TypeOf((*MockQuickSightAPI)(nil).ListTopicReviewedAnswersRequest), arg0) +} + +// ListTopicReviewedAnswersWithContext mocks base method. +func (m *MockQuickSightAPI) ListTopicReviewedAnswersWithContext(arg0 aws.Context, arg1 *quicksight.ListTopicReviewedAnswersInput, arg2 ...request.Option) (*quicksight.ListTopicReviewedAnswersOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTopicReviewedAnswersWithContext", varargs...) + ret0, _ := ret[0].(*quicksight.ListTopicReviewedAnswersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTopicReviewedAnswersWithContext indicates an expected call of ListTopicReviewedAnswersWithContext. +func (mr *MockQuickSightAPIMockRecorder) ListTopicReviewedAnswersWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTopicReviewedAnswersWithContext", reflect.TypeOf((*MockQuickSightAPI)(nil).ListTopicReviewedAnswersWithContext), varargs...) +} + // ListTopics mocks base method. func (m *MockQuickSightAPI) ListTopics(arg0 *quicksight.ListTopicsInput) (*quicksight.ListTopicsOutput, error) { m.ctrl.T.Helper() diff --git a/mocks/mock_sagemakeriface/mock.go b/mocks/mock_sagemakeriface/mock.go index 31c63dea..b0e6dee3 100644 --- a/mocks/mock_sagemakeriface/mock.go +++ b/mocks/mock_sagemakeriface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.18/service/sagemaker/sagemakeriface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.19/service/sagemaker/sagemakeriface/interface.go // Package mock_sagemakeriface is a generated GoMock package. package mock_sagemakeriface diff --git a/mocks/mock_secretsmanageriface/mock.go b/mocks/mock_secretsmanageriface/mock.go index 21b42a1d..52fded1f 100644 --- a/mocks/mock_secretsmanageriface/mock.go +++ b/mocks/mock_secretsmanageriface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.18/service/secretsmanager/secretsmanageriface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.19/service/secretsmanager/secretsmanageriface/interface.go // Package mock_secretsmanageriface is a generated GoMock package. package mock_secretsmanageriface diff --git a/mocks/mock_servicediscoveryiface/mock.go b/mocks/mock_servicediscoveryiface/mock.go index 33714433..30c6b6fc 100644 --- a/mocks/mock_servicediscoveryiface/mock.go +++ b/mocks/mock_servicediscoveryiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.18/service/servicediscovery/servicediscoveryiface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.19/service/servicediscovery/servicediscoveryiface/interface.go // Package mock_servicediscoveryiface is a generated GoMock package. package mock_servicediscoveryiface diff --git a/mocks/mock_sqsiface/mock.go b/mocks/mock_sqsiface/mock.go index 25f56b25..cb78567c 100644 --- a/mocks/mock_sqsiface/mock.go +++ b/mocks/mock_sqsiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.18/service/sqs/sqsiface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.19/service/sqs/sqsiface/interface.go // Package mock_sqsiface is a generated GoMock package. package mock_sqsiface diff --git a/mocks/mock_stsiface/mock.go b/mocks/mock_stsiface/mock.go index 3d37968b..be8ed9dc 100644 --- a/mocks/mock_stsiface/mock.go +++ b/mocks/mock_stsiface/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.18/service/sts/stsiface/interface.go +// Source: /home/runner/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.19/service/sts/stsiface/interface.go // Package mock_stsiface is a generated GoMock package. package mock_stsiface From 73fa38bd079e3835642ba90026d8f72352e29def Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 14 Jul 2024 10:14:02 -0600 Subject: [PATCH 356/617] chore(deps): update docker/dockerfile docker tag to v1.9 (#217) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 72dd4c6e..ff075c59 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -# syntax=docker/dockerfile:1.8-labs +# syntax=docker/dockerfile:1.9-labs FROM alpine:3.20.1 as base RUN apk add --no-cache ca-certificates RUN adduser -D aws-nuke From 3c87567a9e2c7928dbf439126be4a9f52a42ccdb Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sat, 20 Jul 2024 09:43:17 -0600 Subject: [PATCH 357/617] fix(rds-snapshot): protect against nil pointer --- resources/rds-snapshots.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/resources/rds-snapshots.go b/resources/rds-snapshots.go index f16d1eaa..d3c87cd0 100644 --- a/resources/rds-snapshots.go +++ b/resources/rds-snapshots.go @@ -99,8 +99,11 @@ func (i *RDSSnapshot) Properties() types.Properties { Set("Identifier", i.snapshot.DBSnapshotIdentifier). Set("SnapshotType", i.snapshot.SnapshotType). Set("Status", i.snapshot.Status). - Set("AvailabilityZone", i.snapshot.AvailabilityZone). - Set("CreatedTime", i.snapshot.SnapshotCreateTime.Format(time.RFC3339)) + Set("AvailabilityZone", i.snapshot.AvailabilityZone) + + if i.snapshot != nil && i.snapshot.SnapshotCreateTime != nil { + properties.Set("CreatedTime", i.snapshot.SnapshotCreateTime.Format(time.RFC3339)) + } for _, tag := range i.tags { properties.SetTag(tag.Key, tag.Value) From 0d26c397d1f4b8c545d4380686c07ed25c85eb4f Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sun, 21 Jul 2024 20:07:11 -0600 Subject: [PATCH 358/617] feat(ecs-task): support resource tags --- resources/{ecs-tasks.go => ecs-task.go} | 37 ++++++++-- resources/ecs-task_mock_test.go | 93 +++++++++++++++++++++++++ 2 files changed, 126 insertions(+), 4 deletions(-) rename resources/{ecs-tasks.go => ecs-task.go} (78%) create mode 100644 resources/ecs-task_mock_test.go diff --git a/resources/ecs-tasks.go b/resources/ecs-task.go similarity index 78% rename from resources/ecs-tasks.go rename to resources/ecs-task.go index 0bd31ae8..77399fc2 100644 --- a/resources/ecs-tasks.go +++ b/resources/ecs-task.go @@ -3,8 +3,11 @@ package resources import ( "context" + "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ecs" + "github.com/aws/aws-sdk-go/service/ecs/ecsiface" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" @@ -23,13 +26,22 @@ func init() { }) } -type ECSTaskLister struct{} +type ECSTaskLister struct { + mockSvc ecsiface.ECSAPI +} func (l *ECSTaskLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) - svc := ecs.New(opts.Session) resources := make([]resource.Resource, 0) + + var svc ecsiface.ECSAPI + if l.mockSvc != nil { + svc = l.mockSvc + } else { + svc = ecs.New(opts.Session) + } + var clusters []*string clusterParams := &ecs.ListClustersInput{ @@ -65,11 +77,24 @@ func (l *ECSTaskLister) List(_ context.Context, o interface{}) ([]resource.Resou } for _, taskArn := range output.TaskArns { - resources = append(resources, &ECSTask{ + ecsTask := &ECSTask{ svc: svc, taskARN: taskArn, clusterARN: clusterArn, + } + + tags, err := svc.ListTagsForResource(&ecs.ListTagsForResourceInput{ + ResourceArn: taskArn, }) + if err != nil { + logrus.WithError(err).Error("unable to get tags for resource") + } + + if tags != nil { + ecsTask.tags = tags.Tags + } + + resources = append(resources, ecsTask) } if output.NextToken == nil { @@ -83,9 +108,10 @@ func (l *ECSTaskLister) List(_ context.Context, o interface{}) ([]resource.Resou } type ECSTask struct { - svc *ecs.ECS + svc ecsiface.ECSAPI taskARN *string clusterARN *string + tags []*ecs.Tag } func (t *ECSTask) Filter() error { @@ -96,6 +122,9 @@ func (t *ECSTask) Properties() types.Properties { properties := types.NewProperties() properties.Set("TaskARN", t.taskARN) properties.Set("ClusterARN", t.clusterARN) + for _, tag := range t.tags { + properties.SetTag(tag.Key, tag.Value) + } return properties } diff --git a/resources/ecs-task_mock_test.go b/resources/ecs-task_mock_test.go new file mode 100644 index 00000000..1097ddea --- /dev/null +++ b/resources/ecs-task_mock_test.go @@ -0,0 +1,93 @@ +package resources + +import ( + "context" + "testing" + + "github.com/golang/mock/gomock" + "github.com/gotidy/ptr" + "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/ecs" + + "github.com/ekristen/aws-nuke/v3/mocks/mock_ecsiface" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +func Test_Mock_ECSTask_List(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockECS := mock_ecsiface.NewMockECSAPI(ctrl) + + mockECS.EXPECT().ListClusters(&ecs.ListClustersInput{ + MaxResults: aws.Int64(100), + }).Return(&ecs.ListClustersOutput{ + ClusterArns: []*string{ + aws.String("foobar"), + }, + }, nil) + + mockECS.EXPECT().ListTasks(&ecs.ListTasksInput{ + Cluster: aws.String("foobar"), + MaxResults: aws.Int64(10), + DesiredStatus: aws.String("RUNNING"), + }).Return(&ecs.ListTasksOutput{ + TaskArns: []*string{ + aws.String("arn:aws:ecs:us-west-2:123456789012:task/12345678-1234-1234-1234-123456789012"), + }, + }, nil) + + mockECS.EXPECT().ListTagsForResource(&ecs.ListTagsForResourceInput{ + ResourceArn: aws.String("arn:aws:ecs:us-west-2:123456789012:task/12345678-1234-1234-1234-123456789012"), + }).Return(&ecs.ListTagsForResourceOutput{ + Tags: []*ecs.Tag{ + { + Key: ptr.String("Name"), + Value: ptr.String("foobar"), + }, + }, + }, nil) + + ecsTaskLister := ECSTaskLister{ + mockSvc: mockECS, + } + + resources, err := ecsTaskLister.List(context.TODO(), &nuke.ListerOpts{}) + a.Nil(err) + a.Len(resources, 1) +} + +func Test_Mock_ECSTask_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockECS := mock_ecsiface.NewMockECSAPI(ctrl) + + ecsTask := ECSTask{ + svc: mockECS, + taskARN: ptr.String("arn:aws:ecs:us-west-2:123456789012:task/12345678-1234-1234-1234-123456789012"), + clusterARN: ptr.String("arn:aws:ecs:us-west-2:123456789012:cluster/12345678-1234-1234-1234-123456789012"), + tags: []*ecs.Tag{ + { + Key: ptr.String("Name"), + Value: ptr.String("foobar"), + }, + }, + } + + a.Equal(*ecsTask.taskARN, ecsTask.Properties().Get("TaskARN")) + a.Equal("foobar", ecsTask.Properties().Get("tag:Name")) + + mockECS.EXPECT().StopTask(gomock.Eq(&ecs.StopTaskInput{ + Cluster: ecsTask.clusterARN, + Task: ecsTask.taskARN, + Reason: aws.String("Task stopped via AWS Nuke"), + })).Return(&ecs.StopTaskOutput{}, nil) + + err := ecsTask.Remove(context.TODO()) + a.Nil(err) +} From b70284829f45d6090f3269ec968a70df7b6b06ab Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 22 Jul 2024 22:07:16 +0000 Subject: [PATCH 359/617] chore(deps): update alpine docker tag to v3.20.2 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ff075c59..d0795a03 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # syntax=docker/dockerfile:1.9-labs -FROM alpine:3.20.1 as base +FROM alpine:3.20.2 as base RUN apk add --no-cache ca-certificates RUN adduser -D aws-nuke From dcafe549aa6441eea5b2c3ea1c8d07b7f9430bc9 Mon Sep 17 00:00:00 2001 From: Chase Freeman Date: Mon, 22 Jul 2024 17:16:17 -0500 Subject: [PATCH 360/617] feat(apigateway): add created date to apigateways --- resources/apigateway-restapis.go | 76 +++++++++++++++++--------------- resources/apigatewayv2-apis.go | 6 ++- 2 files changed, 46 insertions(+), 36 deletions(-) diff --git a/resources/apigateway-restapis.go b/resources/apigateway-restapis.go index 5c2973a0..4ba6df55 100644 --- a/resources/apigateway-restapis.go +++ b/resources/apigateway-restapis.go @@ -2,9 +2,10 @@ package resources import ( "context" + "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/apigateway" + "github.com/aws/aws-sdk-go/service/apigatewayv2" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" @@ -13,82 +14,87 @@ import ( "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) -const APIGatewayRestAPIResource = "APIGatewayRestAPI" +const APIGatewayV2APIResource = "APIGatewayV2API" func init() { registry.Register(®istry.Registration{ - Name: APIGatewayRestAPIResource, + Name: APIGatewayV2APIResource, Scope: nuke.Account, - Lister: &APIGatewayRestAPILister{}, + Lister: &APIGatewayV2APILister{}, }) } -type APIGatewayRestAPILister struct{} +type APIGatewayV2APILister struct{} -type APIGatewayRestAPI struct { - svc *apigateway.APIGateway - restAPIID *string - name *string - version *string - tags map[string]*string -} - -func (l *APIGatewayRestAPILister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { +func (l *APIGatewayV2APILister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) - svc := apigateway.New(opts.Session) - + svc := apigatewayv2.New(opts.Session) var resources []resource.Resource - params := &apigateway.GetRestApisInput{ - Limit: aws.Int64(100), + params := &apigatewayv2.GetApisInput{ + MaxResults: aws.String("100"), } for { - output, err := svc.GetRestApis(params) + output, err := svc.GetApis(params) if err != nil { return nil, err } for _, item := range output.Items { - resources = append(resources, &APIGatewayRestAPI{ - svc: svc, - restAPIID: item.Id, - name: item.Name, - version: item.Version, - tags: item.Tags, + resources = append(resources, &APIGatewayV2API{ + svc: svc, + v2APIID: item.ApiId, + name: item.Name, + protocolType: item.ProtocolType, + version: item.Version, + createdDate: item.CreatedDate, + tags: item.Tags, }) } - if output.Position == nil { + if output.NextToken == nil { break } - params.Position = output.Position + params.NextToken = output.NextToken } return resources, nil } -func (f *APIGatewayRestAPI) Remove(_ context.Context) error { - _, err := f.svc.DeleteRestApi(&apigateway.DeleteRestApiInput{ - RestApiId: f.restAPIID, +type APIGatewayV2API struct { + svc *apigatewayv2.ApiGatewayV2 + v2APIID *string + name *string + protocolType *string + version *string + createdDate *time.Time + tags map[string]*string +} + +func (f *APIGatewayV2API) Remove(_ context.Context) error { + _, err := f.svc.DeleteApi(&apigatewayv2.DeleteApiInput{ + ApiId: f.v2APIID, }) return err } -func (f *APIGatewayRestAPI) String() string { - return *f.restAPIID +func (f *APIGatewayV2API) String() string { + return *f.v2APIID } -func (f *APIGatewayRestAPI) Properties() types.Properties { +func (f *APIGatewayV2API) Properties() types.Properties { properties := types.NewProperties() for key, tag := range f.tags { properties.SetTag(&key, tag) } properties. - Set("APIID", f.restAPIID). + Set("APIID", f.v2APIID). Set("Name", f.name). - Set("Version", f.version) + Set("ProtocolType", f.protocolType). + Set("Version", f.version). + Set("CreatedDate", f.createdDate.Format(time.RFC3339)) return properties } diff --git a/resources/apigatewayv2-apis.go b/resources/apigatewayv2-apis.go index 8d5fdb98..4ba6df55 100644 --- a/resources/apigatewayv2-apis.go +++ b/resources/apigatewayv2-apis.go @@ -2,6 +2,7 @@ package resources import ( "context" + "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/apigatewayv2" @@ -47,6 +48,7 @@ func (l *APIGatewayV2APILister) List(_ context.Context, o interface{}) ([]resour name: item.Name, protocolType: item.ProtocolType, version: item.Version, + createdDate: item.CreatedDate, tags: item.Tags, }) } @@ -67,6 +69,7 @@ type APIGatewayV2API struct { name *string protocolType *string version *string + createdDate *time.Time tags map[string]*string } @@ -91,6 +94,7 @@ func (f *APIGatewayV2API) Properties() types.Properties { Set("APIID", f.v2APIID). Set("Name", f.name). Set("ProtocolType", f.protocolType). - Set("Version", f.version) + Set("Version", f.version). + Set("CreatedDate", f.createdDate.Format(time.RFC3339)) return properties } From 5902f1a290089cf8e8649667919181cbb50da301 Mon Sep 17 00:00:00 2001 From: Chase Freeman Date: Mon, 22 Jul 2024 17:22:39 -0500 Subject: [PATCH 361/617] feat(apigateway): fix creationdate --- resources/apigateway-restapis.go | 84 +++++++++++++------------------- resources/apigatewayv2-apis.go | 51 ++++++++----------- 2 files changed, 53 insertions(+), 82 deletions(-) diff --git a/resources/apigateway-restapis.go b/resources/apigateway-restapis.go index 4ba6df55..0aa8e69b 100644 --- a/resources/apigateway-restapis.go +++ b/resources/apigateway-restapis.go @@ -1,99 +1,83 @@ package resources import ( - "context" "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/apigatewayv2" - - "github.com/ekristen/libnuke/pkg/registry" - "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/libnuke/pkg/types" - - "github.com/ekristen/aws-nuke/v3/pkg/nuke" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/apigateway" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" ) -const APIGatewayV2APIResource = "APIGatewayV2API" +type APIGatewayRestAPI struct { + svc *apigateway.APIGateway + restAPIID *string + name *string + version *string + createdDate *time.Time + tags map[string]*string +} func init() { - registry.Register(®istry.Registration{ - Name: APIGatewayV2APIResource, - Scope: nuke.Account, - Lister: &APIGatewayV2APILister{}, - }) + register("APIGatewayRestAPI", ListAPIGatewayRestApis) } -type APIGatewayV2APILister struct{} - -func (l *APIGatewayV2APILister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { - opts := o.(*nuke.ListerOpts) - svc := apigatewayv2.New(opts.Session) - var resources []resource.Resource +func ListAPIGatewayRestApis(sess *session.Session) ([]Resource, error) { + svc := apigateway.New(sess) + resources := []Resource{} - params := &apigatewayv2.GetApisInput{ - MaxResults: aws.String("100"), + params := &apigateway.GetRestApisInput{ + Limit: aws.Int64(100), } for { - output, err := svc.GetApis(params) + output, err := svc.GetRestApis(params) if err != nil { return nil, err } for _, item := range output.Items { - resources = append(resources, &APIGatewayV2API{ - svc: svc, - v2APIID: item.ApiId, - name: item.Name, - protocolType: item.ProtocolType, - version: item.Version, - createdDate: item.CreatedDate, - tags: item.Tags, + resources = append(resources, &APIGatewayRestAPI{ + svc: svc, + restAPIID: item.Id, + name: item.Name, + version: item.Version, + createdDate: item.CreatedDate, + tags: item.Tags, }) } - if output.NextToken == nil { + if output.Position == nil { break } - params.NextToken = output.NextToken + params.Position = output.Position } return resources, nil } -type APIGatewayV2API struct { - svc *apigatewayv2.ApiGatewayV2 - v2APIID *string - name *string - protocolType *string - version *string - createdDate *time.Time - tags map[string]*string -} +func (f *APIGatewayRestAPI) Remove() error { -func (f *APIGatewayV2API) Remove(_ context.Context) error { - _, err := f.svc.DeleteApi(&apigatewayv2.DeleteApiInput{ - ApiId: f.v2APIID, + _, err := f.svc.DeleteRestApi(&apigateway.DeleteRestApiInput{ + RestApiId: f.restAPIID, }) return err } -func (f *APIGatewayV2API) String() string { - return *f.v2APIID +func (f *APIGatewayRestAPI) String() string { + return *f.restAPIID } -func (f *APIGatewayV2API) Properties() types.Properties { +func (f *APIGatewayRestAPI) Properties() types.Properties { properties := types.NewProperties() for key, tag := range f.tags { properties.SetTag(&key, tag) } properties. - Set("APIID", f.v2APIID). + Set("APIID", f.restAPIID). Set("Name", f.name). - Set("ProtocolType", f.protocolType). Set("Version", f.version). Set("CreatedDate", f.createdDate.Format(time.RFC3339)) return properties diff --git a/resources/apigatewayv2-apis.go b/resources/apigatewayv2-apis.go index 4ba6df55..b1dfc4dc 100644 --- a/resources/apigatewayv2-apis.go +++ b/resources/apigatewayv2-apis.go @@ -1,35 +1,31 @@ package resources import ( - "context" "time" "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/apigatewayv2" - - "github.com/ekristen/libnuke/pkg/registry" - "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/libnuke/pkg/types" - - "github.com/ekristen/aws-nuke/v3/pkg/nuke" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" ) -const APIGatewayV2APIResource = "APIGatewayV2API" +type APIGatewayV2API struct { + svc *apigatewayv2.ApiGatewayV2 + v2APIID *string + name *string + protocolType *string + version *string + createdDate *time.Time + tags map[string]*string +} func init() { - registry.Register(®istry.Registration{ - Name: APIGatewayV2APIResource, - Scope: nuke.Account, - Lister: &APIGatewayV2APILister{}, - }) + register("APIGatewayV2API", ListAPIGatewayV2APIs) } -type APIGatewayV2APILister struct{} - -func (l *APIGatewayV2APILister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { - opts := o.(*nuke.ListerOpts) - svc := apigatewayv2.New(opts.Session) - var resources []resource.Resource +func ListAPIGatewayV2APIs(sess *session.Session) ([]Resource, error) { + svc := apigatewayv2.New(sess) + resources := []Resource{} params := &apigatewayv2.GetApisInput{ MaxResults: aws.String("100"), @@ -63,17 +59,8 @@ func (l *APIGatewayV2APILister) List(_ context.Context, o interface{}) ([]resour return resources, nil } -type APIGatewayV2API struct { - svc *apigatewayv2.ApiGatewayV2 - v2APIID *string - name *string - protocolType *string - version *string - createdDate *time.Time - tags map[string]*string -} +func (f *APIGatewayV2API) Remove() error { -func (f *APIGatewayV2API) Remove(_ context.Context) error { _, err := f.svc.DeleteApi(&apigatewayv2.DeleteApiInput{ ApiId: f.v2APIID, }) @@ -94,7 +81,7 @@ func (f *APIGatewayV2API) Properties() types.Properties { Set("APIID", f.v2APIID). Set("Name", f.name). Set("ProtocolType", f.protocolType). - Set("Version", f.version). - Set("CreatedDate", f.createdDate.Format(time.RFC3339)) + Set("Version", f.version) + Set("CreatedDate", f.createdDate.Format(time.RFC3339)). return properties -} +} \ No newline at end of file From d8e22791df8135430be5d81ed1147e1c1a8e6a5d Mon Sep 17 00:00:00 2001 From: Chase Freeman Date: Mon, 22 Jul 2024 17:25:00 -0500 Subject: [PATCH 362/617] feat(apigateway): fix --- resources/apigateway-restapis.go | 34 ++++++++++++++------- resources/apigatewayv2-apis.go | 51 ++++++++++++++++++++------------ 2 files changed, 56 insertions(+), 29 deletions(-) diff --git a/resources/apigateway-restapis.go b/resources/apigateway-restapis.go index 0aa8e69b..9be96efd 100644 --- a/resources/apigateway-restapis.go +++ b/resources/apigateway-restapis.go @@ -1,14 +1,31 @@ package resources import ( + "context" "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/apigateway" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) +const APIGatewayRestAPIResource = "APIGatewayRestAPI" + +func init() { + registry.Register(®istry.Registration{ + Name: APIGatewayRestAPIResource, + Scope: nuke.Account, + Lister: &APIGatewayRestAPILister{}, + }) +} + +type APIGatewayRestAPILister struct{} + type APIGatewayRestAPI struct { svc *apigateway.APIGateway restAPIID *string @@ -18,13 +35,11 @@ type APIGatewayRestAPI struct { tags map[string]*string } -func init() { - register("APIGatewayRestAPI", ListAPIGatewayRestApis) -} +func (l *APIGatewayRestAPILister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := apigateway.New(opts.Session) -func ListAPIGatewayRestApis(sess *session.Session) ([]Resource, error) { - svc := apigateway.New(sess) - resources := []Resource{} + var resources []resource.Resource params := &apigateway.GetRestApisInput{ Limit: aws.Int64(100), @@ -57,8 +72,7 @@ func ListAPIGatewayRestApis(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *APIGatewayRestAPI) Remove() error { - +func (f *APIGatewayRestAPI) Remove(_ context.Context) error { _, err := f.svc.DeleteRestApi(&apigateway.DeleteRestApiInput{ RestApiId: f.restAPIID, }) diff --git a/resources/apigatewayv2-apis.go b/resources/apigatewayv2-apis.go index b1dfc4dc..4ba6df55 100644 --- a/resources/apigatewayv2-apis.go +++ b/resources/apigatewayv2-apis.go @@ -1,31 +1,35 @@ package resources import ( + "context" "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/apigatewayv2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) -type APIGatewayV2API struct { - svc *apigatewayv2.ApiGatewayV2 - v2APIID *string - name *string - protocolType *string - version *string - createdDate *time.Time - tags map[string]*string -} +const APIGatewayV2APIResource = "APIGatewayV2API" func init() { - register("APIGatewayV2API", ListAPIGatewayV2APIs) + registry.Register(®istry.Registration{ + Name: APIGatewayV2APIResource, + Scope: nuke.Account, + Lister: &APIGatewayV2APILister{}, + }) } -func ListAPIGatewayV2APIs(sess *session.Session) ([]Resource, error) { - svc := apigatewayv2.New(sess) - resources := []Resource{} +type APIGatewayV2APILister struct{} + +func (l *APIGatewayV2APILister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := apigatewayv2.New(opts.Session) + var resources []resource.Resource params := &apigatewayv2.GetApisInput{ MaxResults: aws.String("100"), @@ -59,8 +63,17 @@ func ListAPIGatewayV2APIs(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *APIGatewayV2API) Remove() error { +type APIGatewayV2API struct { + svc *apigatewayv2.ApiGatewayV2 + v2APIID *string + name *string + protocolType *string + version *string + createdDate *time.Time + tags map[string]*string +} +func (f *APIGatewayV2API) Remove(_ context.Context) error { _, err := f.svc.DeleteApi(&apigatewayv2.DeleteApiInput{ ApiId: f.v2APIID, }) @@ -81,7 +94,7 @@ func (f *APIGatewayV2API) Properties() types.Properties { Set("APIID", f.v2APIID). Set("Name", f.name). Set("ProtocolType", f.protocolType). - Set("Version", f.version) - Set("CreatedDate", f.createdDate.Format(time.RFC3339)). + Set("Version", f.version). + Set("CreatedDate", f.createdDate.Format(time.RFC3339)) return properties -} \ No newline at end of file +} From 082c4711888b181306f1c3d859b05525054abaf9 Mon Sep 17 00:00:00 2001 From: Chase Freeman Date: Tue, 23 Jul 2024 21:49:34 -0500 Subject: [PATCH 363/617] feat(iam): add creation dates for iam users and iam access keys (#1) * feat(iam): add createdate for access keys * feat(iam): add createdate for access keys * feat(iam): add createdate to iam user --- resources/iam-user-access-key.go | 4 ++++ resources/iam-user.go | 12 ++++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/resources/iam-user-access-key.go b/resources/iam-user-access-key.go index d590d8ab..968fc291 100644 --- a/resources/iam-user-access-key.go +++ b/resources/iam-user-access-key.go @@ -4,6 +4,7 @@ import ( "context" "fmt" + "time" "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" @@ -33,6 +34,7 @@ type IAMUserAccessKey struct { accessKeyID string userName string status string + createDate *time.Time userTags []*iam.Tag } @@ -53,6 +55,7 @@ func (e *IAMUserAccessKey) Properties() types.Properties { properties := types.NewProperties() properties.Set("UserName", e.userName) properties.Set("AccessKeyID", e.accessKeyID) + properties.Set("CreateDate", e.createDate.Format(time.RFC3339)) for _, tag := range e.userTags { properties.SetTag(tag.Key, tag.Value) @@ -99,6 +102,7 @@ func (l *IAMUserAccessKeyLister) List(_ context.Context, o interface{}) ([]resou accessKeyID: *meta.AccessKeyId, userName: *meta.UserName, status: *meta.Status, + createDate: meta.CreateDate, userTags: userTags.Tags, }) } diff --git a/resources/iam-user.go b/resources/iam-user.go index 6e7e6578..33a07f83 100644 --- a/resources/iam-user.go +++ b/resources/iam-user.go @@ -2,6 +2,7 @@ package resources import ( "context" + "time" "github.com/sirupsen/logrus" @@ -40,6 +41,7 @@ type IAMUser struct { id *string name *string hasPermissionBoundary bool + createDate *time.Time tags []*iam.Tag } @@ -72,6 +74,7 @@ func (r *IAMUser) Properties() types.Properties { properties.Set("UserID", r.id) properties.Set("Name", r.name) properties.Set("HasPermissionBoundary", r.hasPermissionBoundary) + properties.Set("CreateDate", r.createDate.Format(time.RFC3339)) for _, tag := range r.tags { properties.SetTag(tag.Key, tag.Value) @@ -139,10 +142,11 @@ func (l *IAMUserLister) List(_ context.Context, o interface{}) ([]resource.Resou } resourceUser := &IAMUser{ - svc: svc, - id: user.UserId, - name: user.UserName, - tags: user.Tags, + svc: svc, + id: user.UserId, + name: user.UserName, + createDate: user.CreateDate, + tags: user.Tags, } if user.PermissionsBoundary != nil && user.PermissionsBoundary.PermissionsBoundaryArn != nil { From 6e327992e307650a3bb5e732dbfcb37f236bf212 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 24 Jul 2024 22:35:24 +0000 Subject: [PATCH 364/617] fix(deps): update module github.com/urfave/cli/v2 to v2.27.3 --- go.mod | 4 ++-- go.sum | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 511cfd8a..ad5f32fd 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( github.com/pkg/errors v0.9.1 github.com/sirupsen/logrus v1.9.3 github.com/stretchr/testify v1.9.0 - github.com/urfave/cli/v2 v2.27.2 + github.com/urfave/cli/v2 v2.27.3 golang.org/x/text v0.16.0 gopkg.in/yaml.v3 v3.0.1 ) @@ -29,7 +29,7 @@ require ( github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/stevenle/topsort v0.2.0 // indirect - github.com/xrash/smetrics v0.0.0-20240312152122-5f08fbb34913 // indirect + github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect golang.org/x/mod v0.17.0 // indirect golang.org/x/net v0.25.0 // indirect golang.org/x/sync v0.7.0 // indirect diff --git a/go.sum b/go.sum index 41a29193..231ec787 100644 --- a/go.sum +++ b/go.sum @@ -80,10 +80,14 @@ github.com/urfave/cli/v2 v2.27.1 h1:8xSQ6szndafKVRmfyeUMxkNUJQMjL1F2zmsZ+qHpfho= github.com/urfave/cli/v2 v2.27.1/go.mod h1:8qnjx1vcq5s2/wpsqoZFndg2CE5tNFyrTvS6SinrnYQ= github.com/urfave/cli/v2 v2.27.2 h1:6e0H+AkS+zDckwPCUrZkKX38mRaau4nL2uipkJpbkcI= github.com/urfave/cli/v2 v2.27.2/go.mod h1:g0+79LmHHATl7DAcHO99smiR/T7uGLw84w8Y42x+4eM= +github.com/urfave/cli/v2 v2.27.3 h1:/POWahRmdh7uztQ3CYnaDddk0Rm90PyOgIxgW2rr41M= +github.com/urfave/cli/v2 v2.27.3/go.mod h1:m4QzxcD2qpra4z7WhzEGn74WZLViBnMpb1ToCAKdGRQ= github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 h1:bAn7/zixMGCfxrRTfdpNzjtPYqr8smhKouy9mxVdGPU= github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8= github.com/xrash/smetrics v0.0.0-20240312152122-5f08fbb34913 h1:+qGGcbkzsfDQNPPe9UDgpxAWQrhbbBXOYJFQDq/dtJw= github.com/xrash/smetrics v0.0.0-20240312152122-5f08fbb34913/go.mod h1:4aEEwZQutDLsQv2Deui4iYQ6DWTxR14g6m8Wv88+Xqk= +github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 h1:gEOO8jv9F4OT7lGCjxCBTO/36wtF6j2nSip77qHd4x4= +github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1/go.mod h1:Ohn+xnUBiLI6FVj/9LpzZWtj1/D6lUovWYBkxHVV3aM= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= From 8da99839ab57143e18fe3e7d6fedfcbff70a7eff Mon Sep 17 00:00:00 2001 From: "Gabriela S. Soria" Date: Sat, 6 Jul 2024 01:18:51 +0000 Subject: [PATCH 365/617] feat(dynamodb): add resource for dynamodb backups Signed-off-by: Gabriela S. Soria --- resources/dynamodb-backups.go | 73 +++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 resources/dynamodb-backups.go diff --git a/resources/dynamodb-backups.go b/resources/dynamodb-backups.go new file mode 100644 index 00000000..540046a4 --- /dev/null +++ b/resources/dynamodb-backups.go @@ -0,0 +1,73 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/dynamodb" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type DynamoDBBackup struct { + svc *dynamodb.DynamoDB + id string +} + +func init() { + register("DynamoDBBackup", ListDynamoDBBackups) +} + +func ListDynamoDBBackups(sess *session.Session) ([]Resource, error) { + svc := dynamodb.New(sess) + + resources := make([]Resource, 0) + + var lastEvaluatedBackupArn *string + + for { + backupsResp, err := svc.ListBackups(&dynamodb.ListBackupsInput{ + ExclusiveStartBackupArn: lastEvaluatedBackupArn, + }) + if err != nil { + return nil, err + } + + for _, backup := range backupsResp.BackupSummaries { + resources = append(resources, &DynamoDBBackup{ + svc: svc, + id: *backup.BackupArn, + }) + } + + if backupsResp.LastEvaluatedBackupArn == nil { + break + } + + lastEvaluatedBackupArn = backupsResp.LastEvaluatedBackupArn + } + + return resources, nil +} + +func (i *DynamoDBBackup) Remove() error { + params := &dynamodb.DeleteBackupInput{ + BackupArn: aws.String(i.id), + } + + _, err := i.svc.DeleteBackup(params) + if err != nil { + return err + } + + return nil +} + +func (i *DynamoDBBackup) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("Identifier", i.id) + + return properties +} + +func (i *DynamoDBBackup) String() string { + return i.id +} From 04d263d4569f4ad942b94a13167aa995532eb428 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 24 Jul 2024 17:21:21 -0600 Subject: [PATCH 366/617] refactor(dynamodb-backup): refactor to libnuke format and tweak properties --- resources/dynamodb-backup.go | 101 ++++++++++++++++++++++++++++++++++ resources/dynamodb-backups.go | 73 ------------------------ 2 files changed, 101 insertions(+), 73 deletions(-) create mode 100644 resources/dynamodb-backup.go delete mode 100644 resources/dynamodb-backups.go diff --git a/resources/dynamodb-backup.go b/resources/dynamodb-backup.go new file mode 100644 index 00000000..2f08a681 --- /dev/null +++ b/resources/dynamodb-backup.go @@ -0,0 +1,101 @@ +package resources + +import ( + "context" + "github.com/aws/aws-sdk-go/service/dynamodb/dynamodbiface" + "github.com/gotidy/ptr" + "time" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/aws/aws-sdk-go/service/dynamodb" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +const DynamoDBBackupResource = "DynamoDBBackup" + +func init() { + registry.Register(®istry.Registration{ + Name: DynamoDBBackupResource, + Scope: nuke.Account, + Lister: &DynamoDBBackupLister{}, + }) +} + +type DynamoDBBackupLister struct { + mockSvc dynamodbiface.DynamoDBAPI +} + +func (l *DynamoDBBackupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + var svc dynamodbiface.DynamoDBAPI + if l.mockSvc != nil { + svc = l.mockSvc + } else { + svc = dynamodb.New(opts.Session) + } + + resources := make([]resource.Resource, 0) + + var lastEvaluatedBackupArn *string + + for { + backupsResp, err := svc.ListBackups(&dynamodb.ListBackupsInput{ + ExclusiveStartBackupArn: lastEvaluatedBackupArn, + }) + if err != nil { + return nil, err + } + + for _, backup := range backupsResp.BackupSummaries { + resources = append(resources, &DynamoDBBackup{ + svc: svc, + arn: backup.BackupArn, + Name: backup.BackupName, + CreateDate: backup.BackupCreationDateTime, + TableName: backup.TableName, + }) + } + + if backupsResp.LastEvaluatedBackupArn == nil { + break + } + + lastEvaluatedBackupArn = backupsResp.LastEvaluatedBackupArn + } + + return resources, nil +} + +type DynamoDBBackup struct { + svc dynamodbiface.DynamoDBAPI + arn *string + Name *string + CreateDate *time.Time + TableName *string +} + +func (r *DynamoDBBackup) Remove(_ context.Context) error { + params := &dynamodb.DeleteBackupInput{ + BackupArn: r.arn, + } + + _, err := r.svc.DeleteBackup(params) + if err != nil { + return err + } + + return nil +} + +func (r *DynamoDBBackup) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + +func (r *DynamoDBBackup) String() string { + return ptr.ToString(r.Name) +} diff --git a/resources/dynamodb-backups.go b/resources/dynamodb-backups.go deleted file mode 100644 index 540046a4..00000000 --- a/resources/dynamodb-backups.go +++ /dev/null @@ -1,73 +0,0 @@ -package resources - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/dynamodb" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" -) - -type DynamoDBBackup struct { - svc *dynamodb.DynamoDB - id string -} - -func init() { - register("DynamoDBBackup", ListDynamoDBBackups) -} - -func ListDynamoDBBackups(sess *session.Session) ([]Resource, error) { - svc := dynamodb.New(sess) - - resources := make([]Resource, 0) - - var lastEvaluatedBackupArn *string - - for { - backupsResp, err := svc.ListBackups(&dynamodb.ListBackupsInput{ - ExclusiveStartBackupArn: lastEvaluatedBackupArn, - }) - if err != nil { - return nil, err - } - - for _, backup := range backupsResp.BackupSummaries { - resources = append(resources, &DynamoDBBackup{ - svc: svc, - id: *backup.BackupArn, - }) - } - - if backupsResp.LastEvaluatedBackupArn == nil { - break - } - - lastEvaluatedBackupArn = backupsResp.LastEvaluatedBackupArn - } - - return resources, nil -} - -func (i *DynamoDBBackup) Remove() error { - params := &dynamodb.DeleteBackupInput{ - BackupArn: aws.String(i.id), - } - - _, err := i.svc.DeleteBackup(params) - if err != nil { - return err - } - - return nil -} - -func (i *DynamoDBBackup) Properties() types.Properties { - properties := types.NewProperties() - properties.Set("Identifier", i.id) - - return properties -} - -func (i *DynamoDBBackup) String() string { - return i.id -} From d24126fe82dc28b4f9915fe8551edc67d37e5073 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 24 Jul 2024 17:21:45 -0600 Subject: [PATCH 367/617] test(dynamodb-backup): adding tests for dynamodb backups --- mocks/mock_dynamodbiface/mock.go | 3184 ++++++++++++++++++++++++ resources/dynamodb-backup_mock_test.go | 81 + resources/dynamodb_mock_test.go | 2 + 3 files changed, 3267 insertions(+) create mode 100644 mocks/mock_dynamodbiface/mock.go create mode 100644 resources/dynamodb-backup_mock_test.go create mode 100644 resources/dynamodb_mock_test.go diff --git a/mocks/mock_dynamodbiface/mock.go b/mocks/mock_dynamodbiface/mock.go new file mode 100644 index 00000000..8bfe43cf --- /dev/null +++ b/mocks/mock_dynamodbiface/mock.go @@ -0,0 +1,3184 @@ +// Code generated by MockGen. DO NOT EDIT. +// Source: /Users/ekristen/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.19/service/dynamodb/dynamodbiface/interface.go + +// Package mock_dynamodbiface is a generated GoMock package. +package mock_dynamodbiface + +import ( + reflect "reflect" + + aws "github.com/aws/aws-sdk-go/aws" + request "github.com/aws/aws-sdk-go/aws/request" + dynamodb "github.com/aws/aws-sdk-go/service/dynamodb" + gomock "github.com/golang/mock/gomock" +) + +// MockDynamoDBAPI is a mock of DynamoDBAPI interface. +type MockDynamoDBAPI struct { + ctrl *gomock.Controller + recorder *MockDynamoDBAPIMockRecorder +} + +// MockDynamoDBAPIMockRecorder is the mock recorder for MockDynamoDBAPI. +type MockDynamoDBAPIMockRecorder struct { + mock *MockDynamoDBAPI +} + +// NewMockDynamoDBAPI creates a new mock instance. +func NewMockDynamoDBAPI(ctrl *gomock.Controller) *MockDynamoDBAPI { + mock := &MockDynamoDBAPI{ctrl: ctrl} + mock.recorder = &MockDynamoDBAPIMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockDynamoDBAPI) EXPECT() *MockDynamoDBAPIMockRecorder { + return m.recorder +} + +// BatchExecuteStatement mocks base method. +func (m *MockDynamoDBAPI) BatchExecuteStatement(arg0 *dynamodb.BatchExecuteStatementInput) (*dynamodb.BatchExecuteStatementOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchExecuteStatement", arg0) + ret0, _ := ret[0].(*dynamodb.BatchExecuteStatementOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchExecuteStatement indicates an expected call of BatchExecuteStatement. +func (mr *MockDynamoDBAPIMockRecorder) BatchExecuteStatement(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchExecuteStatement", reflect.TypeOf((*MockDynamoDBAPI)(nil).BatchExecuteStatement), arg0) +} + +// BatchExecuteStatementRequest mocks base method. +func (m *MockDynamoDBAPI) BatchExecuteStatementRequest(arg0 *dynamodb.BatchExecuteStatementInput) (*request.Request, *dynamodb.BatchExecuteStatementOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchExecuteStatementRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.BatchExecuteStatementOutput) + return ret0, ret1 +} + +// BatchExecuteStatementRequest indicates an expected call of BatchExecuteStatementRequest. +func (mr *MockDynamoDBAPIMockRecorder) BatchExecuteStatementRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchExecuteStatementRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).BatchExecuteStatementRequest), arg0) +} + +// BatchExecuteStatementWithContext mocks base method. +func (m *MockDynamoDBAPI) BatchExecuteStatementWithContext(arg0 aws.Context, arg1 *dynamodb.BatchExecuteStatementInput, arg2 ...request.Option) (*dynamodb.BatchExecuteStatementOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "BatchExecuteStatementWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.BatchExecuteStatementOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchExecuteStatementWithContext indicates an expected call of BatchExecuteStatementWithContext. +func (mr *MockDynamoDBAPIMockRecorder) BatchExecuteStatementWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchExecuteStatementWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).BatchExecuteStatementWithContext), varargs...) +} + +// BatchGetItem mocks base method. +func (m *MockDynamoDBAPI) BatchGetItem(arg0 *dynamodb.BatchGetItemInput) (*dynamodb.BatchGetItemOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchGetItem", arg0) + ret0, _ := ret[0].(*dynamodb.BatchGetItemOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchGetItem indicates an expected call of BatchGetItem. +func (mr *MockDynamoDBAPIMockRecorder) BatchGetItem(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetItem", reflect.TypeOf((*MockDynamoDBAPI)(nil).BatchGetItem), arg0) +} + +// BatchGetItemPages mocks base method. +func (m *MockDynamoDBAPI) BatchGetItemPages(arg0 *dynamodb.BatchGetItemInput, arg1 func(*dynamodb.BatchGetItemOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchGetItemPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// BatchGetItemPages indicates an expected call of BatchGetItemPages. +func (mr *MockDynamoDBAPIMockRecorder) BatchGetItemPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetItemPages", reflect.TypeOf((*MockDynamoDBAPI)(nil).BatchGetItemPages), arg0, arg1) +} + +// BatchGetItemPagesWithContext mocks base method. +func (m *MockDynamoDBAPI) BatchGetItemPagesWithContext(arg0 aws.Context, arg1 *dynamodb.BatchGetItemInput, arg2 func(*dynamodb.BatchGetItemOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "BatchGetItemPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// BatchGetItemPagesWithContext indicates an expected call of BatchGetItemPagesWithContext. +func (mr *MockDynamoDBAPIMockRecorder) BatchGetItemPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetItemPagesWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).BatchGetItemPagesWithContext), varargs...) +} + +// BatchGetItemRequest mocks base method. +func (m *MockDynamoDBAPI) BatchGetItemRequest(arg0 *dynamodb.BatchGetItemInput) (*request.Request, *dynamodb.BatchGetItemOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchGetItemRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.BatchGetItemOutput) + return ret0, ret1 +} + +// BatchGetItemRequest indicates an expected call of BatchGetItemRequest. +func (mr *MockDynamoDBAPIMockRecorder) BatchGetItemRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetItemRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).BatchGetItemRequest), arg0) +} + +// BatchGetItemWithContext mocks base method. +func (m *MockDynamoDBAPI) BatchGetItemWithContext(arg0 aws.Context, arg1 *dynamodb.BatchGetItemInput, arg2 ...request.Option) (*dynamodb.BatchGetItemOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "BatchGetItemWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.BatchGetItemOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchGetItemWithContext indicates an expected call of BatchGetItemWithContext. +func (mr *MockDynamoDBAPIMockRecorder) BatchGetItemWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetItemWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).BatchGetItemWithContext), varargs...) +} + +// BatchWriteItem mocks base method. +func (m *MockDynamoDBAPI) BatchWriteItem(arg0 *dynamodb.BatchWriteItemInput) (*dynamodb.BatchWriteItemOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchWriteItem", arg0) + ret0, _ := ret[0].(*dynamodb.BatchWriteItemOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchWriteItem indicates an expected call of BatchWriteItem. +func (mr *MockDynamoDBAPIMockRecorder) BatchWriteItem(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchWriteItem", reflect.TypeOf((*MockDynamoDBAPI)(nil).BatchWriteItem), arg0) +} + +// BatchWriteItemRequest mocks base method. +func (m *MockDynamoDBAPI) BatchWriteItemRequest(arg0 *dynamodb.BatchWriteItemInput) (*request.Request, *dynamodb.BatchWriteItemOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BatchWriteItemRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.BatchWriteItemOutput) + return ret0, ret1 +} + +// BatchWriteItemRequest indicates an expected call of BatchWriteItemRequest. +func (mr *MockDynamoDBAPIMockRecorder) BatchWriteItemRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchWriteItemRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).BatchWriteItemRequest), arg0) +} + +// BatchWriteItemWithContext mocks base method. +func (m *MockDynamoDBAPI) BatchWriteItemWithContext(arg0 aws.Context, arg1 *dynamodb.BatchWriteItemInput, arg2 ...request.Option) (*dynamodb.BatchWriteItemOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "BatchWriteItemWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.BatchWriteItemOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BatchWriteItemWithContext indicates an expected call of BatchWriteItemWithContext. +func (mr *MockDynamoDBAPIMockRecorder) BatchWriteItemWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchWriteItemWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).BatchWriteItemWithContext), varargs...) +} + +// CreateBackup mocks base method. +func (m *MockDynamoDBAPI) CreateBackup(arg0 *dynamodb.CreateBackupInput) (*dynamodb.CreateBackupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateBackup", arg0) + ret0, _ := ret[0].(*dynamodb.CreateBackupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateBackup indicates an expected call of CreateBackup. +func (mr *MockDynamoDBAPIMockRecorder) CreateBackup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateBackup", reflect.TypeOf((*MockDynamoDBAPI)(nil).CreateBackup), arg0) +} + +// CreateBackupRequest mocks base method. +func (m *MockDynamoDBAPI) CreateBackupRequest(arg0 *dynamodb.CreateBackupInput) (*request.Request, *dynamodb.CreateBackupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateBackupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.CreateBackupOutput) + return ret0, ret1 +} + +// CreateBackupRequest indicates an expected call of CreateBackupRequest. +func (mr *MockDynamoDBAPIMockRecorder) CreateBackupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateBackupRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).CreateBackupRequest), arg0) +} + +// CreateBackupWithContext mocks base method. +func (m *MockDynamoDBAPI) CreateBackupWithContext(arg0 aws.Context, arg1 *dynamodb.CreateBackupInput, arg2 ...request.Option) (*dynamodb.CreateBackupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateBackupWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.CreateBackupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateBackupWithContext indicates an expected call of CreateBackupWithContext. +func (mr *MockDynamoDBAPIMockRecorder) CreateBackupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateBackupWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).CreateBackupWithContext), varargs...) +} + +// CreateGlobalTable mocks base method. +func (m *MockDynamoDBAPI) CreateGlobalTable(arg0 *dynamodb.CreateGlobalTableInput) (*dynamodb.CreateGlobalTableOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateGlobalTable", arg0) + ret0, _ := ret[0].(*dynamodb.CreateGlobalTableOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateGlobalTable indicates an expected call of CreateGlobalTable. +func (mr *MockDynamoDBAPIMockRecorder) CreateGlobalTable(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGlobalTable", reflect.TypeOf((*MockDynamoDBAPI)(nil).CreateGlobalTable), arg0) +} + +// CreateGlobalTableRequest mocks base method. +func (m *MockDynamoDBAPI) CreateGlobalTableRequest(arg0 *dynamodb.CreateGlobalTableInput) (*request.Request, *dynamodb.CreateGlobalTableOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateGlobalTableRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.CreateGlobalTableOutput) + return ret0, ret1 +} + +// CreateGlobalTableRequest indicates an expected call of CreateGlobalTableRequest. +func (mr *MockDynamoDBAPIMockRecorder) CreateGlobalTableRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGlobalTableRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).CreateGlobalTableRequest), arg0) +} + +// CreateGlobalTableWithContext mocks base method. +func (m *MockDynamoDBAPI) CreateGlobalTableWithContext(arg0 aws.Context, arg1 *dynamodb.CreateGlobalTableInput, arg2 ...request.Option) (*dynamodb.CreateGlobalTableOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateGlobalTableWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.CreateGlobalTableOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateGlobalTableWithContext indicates an expected call of CreateGlobalTableWithContext. +func (mr *MockDynamoDBAPIMockRecorder) CreateGlobalTableWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGlobalTableWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).CreateGlobalTableWithContext), varargs...) +} + +// CreateTable mocks base method. +func (m *MockDynamoDBAPI) CreateTable(arg0 *dynamodb.CreateTableInput) (*dynamodb.CreateTableOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateTable", arg0) + ret0, _ := ret[0].(*dynamodb.CreateTableOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateTable indicates an expected call of CreateTable. +func (mr *MockDynamoDBAPIMockRecorder) CreateTable(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTable", reflect.TypeOf((*MockDynamoDBAPI)(nil).CreateTable), arg0) +} + +// CreateTableRequest mocks base method. +func (m *MockDynamoDBAPI) CreateTableRequest(arg0 *dynamodb.CreateTableInput) (*request.Request, *dynamodb.CreateTableOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateTableRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.CreateTableOutput) + return ret0, ret1 +} + +// CreateTableRequest indicates an expected call of CreateTableRequest. +func (mr *MockDynamoDBAPIMockRecorder) CreateTableRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTableRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).CreateTableRequest), arg0) +} + +// CreateTableWithContext mocks base method. +func (m *MockDynamoDBAPI) CreateTableWithContext(arg0 aws.Context, arg1 *dynamodb.CreateTableInput, arg2 ...request.Option) (*dynamodb.CreateTableOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateTableWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.CreateTableOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateTableWithContext indicates an expected call of CreateTableWithContext. +func (mr *MockDynamoDBAPIMockRecorder) CreateTableWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTableWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).CreateTableWithContext), varargs...) +} + +// DeleteBackup mocks base method. +func (m *MockDynamoDBAPI) DeleteBackup(arg0 *dynamodb.DeleteBackupInput) (*dynamodb.DeleteBackupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteBackup", arg0) + ret0, _ := ret[0].(*dynamodb.DeleteBackupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteBackup indicates an expected call of DeleteBackup. +func (mr *MockDynamoDBAPIMockRecorder) DeleteBackup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteBackup", reflect.TypeOf((*MockDynamoDBAPI)(nil).DeleteBackup), arg0) +} + +// DeleteBackupRequest mocks base method. +func (m *MockDynamoDBAPI) DeleteBackupRequest(arg0 *dynamodb.DeleteBackupInput) (*request.Request, *dynamodb.DeleteBackupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteBackupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.DeleteBackupOutput) + return ret0, ret1 +} + +// DeleteBackupRequest indicates an expected call of DeleteBackupRequest. +func (mr *MockDynamoDBAPIMockRecorder) DeleteBackupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteBackupRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).DeleteBackupRequest), arg0) +} + +// DeleteBackupWithContext mocks base method. +func (m *MockDynamoDBAPI) DeleteBackupWithContext(arg0 aws.Context, arg1 *dynamodb.DeleteBackupInput, arg2 ...request.Option) (*dynamodb.DeleteBackupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteBackupWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.DeleteBackupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteBackupWithContext indicates an expected call of DeleteBackupWithContext. +func (mr *MockDynamoDBAPIMockRecorder) DeleteBackupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteBackupWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).DeleteBackupWithContext), varargs...) +} + +// DeleteItem mocks base method. +func (m *MockDynamoDBAPI) DeleteItem(arg0 *dynamodb.DeleteItemInput) (*dynamodb.DeleteItemOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteItem", arg0) + ret0, _ := ret[0].(*dynamodb.DeleteItemOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteItem indicates an expected call of DeleteItem. +func (mr *MockDynamoDBAPIMockRecorder) DeleteItem(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteItem", reflect.TypeOf((*MockDynamoDBAPI)(nil).DeleteItem), arg0) +} + +// DeleteItemRequest mocks base method. +func (m *MockDynamoDBAPI) DeleteItemRequest(arg0 *dynamodb.DeleteItemInput) (*request.Request, *dynamodb.DeleteItemOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteItemRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.DeleteItemOutput) + return ret0, ret1 +} + +// DeleteItemRequest indicates an expected call of DeleteItemRequest. +func (mr *MockDynamoDBAPIMockRecorder) DeleteItemRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteItemRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).DeleteItemRequest), arg0) +} + +// DeleteItemWithContext mocks base method. +func (m *MockDynamoDBAPI) DeleteItemWithContext(arg0 aws.Context, arg1 *dynamodb.DeleteItemInput, arg2 ...request.Option) (*dynamodb.DeleteItemOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteItemWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.DeleteItemOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteItemWithContext indicates an expected call of DeleteItemWithContext. +func (mr *MockDynamoDBAPIMockRecorder) DeleteItemWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteItemWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).DeleteItemWithContext), varargs...) +} + +// DeleteResourcePolicy mocks base method. +func (m *MockDynamoDBAPI) DeleteResourcePolicy(arg0 *dynamodb.DeleteResourcePolicyInput) (*dynamodb.DeleteResourcePolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteResourcePolicy", arg0) + ret0, _ := ret[0].(*dynamodb.DeleteResourcePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteResourcePolicy indicates an expected call of DeleteResourcePolicy. +func (mr *MockDynamoDBAPIMockRecorder) DeleteResourcePolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteResourcePolicy", reflect.TypeOf((*MockDynamoDBAPI)(nil).DeleteResourcePolicy), arg0) +} + +// DeleteResourcePolicyRequest mocks base method. +func (m *MockDynamoDBAPI) DeleteResourcePolicyRequest(arg0 *dynamodb.DeleteResourcePolicyInput) (*request.Request, *dynamodb.DeleteResourcePolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteResourcePolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.DeleteResourcePolicyOutput) + return ret0, ret1 +} + +// DeleteResourcePolicyRequest indicates an expected call of DeleteResourcePolicyRequest. +func (mr *MockDynamoDBAPIMockRecorder) DeleteResourcePolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteResourcePolicyRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).DeleteResourcePolicyRequest), arg0) +} + +// DeleteResourcePolicyWithContext mocks base method. +func (m *MockDynamoDBAPI) DeleteResourcePolicyWithContext(arg0 aws.Context, arg1 *dynamodb.DeleteResourcePolicyInput, arg2 ...request.Option) (*dynamodb.DeleteResourcePolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteResourcePolicyWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.DeleteResourcePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteResourcePolicyWithContext indicates an expected call of DeleteResourcePolicyWithContext. +func (mr *MockDynamoDBAPIMockRecorder) DeleteResourcePolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteResourcePolicyWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).DeleteResourcePolicyWithContext), varargs...) +} + +// DeleteTable mocks base method. +func (m *MockDynamoDBAPI) DeleteTable(arg0 *dynamodb.DeleteTableInput) (*dynamodb.DeleteTableOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTable", arg0) + ret0, _ := ret[0].(*dynamodb.DeleteTableOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTable indicates an expected call of DeleteTable. +func (mr *MockDynamoDBAPIMockRecorder) DeleteTable(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTable", reflect.TypeOf((*MockDynamoDBAPI)(nil).DeleteTable), arg0) +} + +// DeleteTableRequest mocks base method. +func (m *MockDynamoDBAPI) DeleteTableRequest(arg0 *dynamodb.DeleteTableInput) (*request.Request, *dynamodb.DeleteTableOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTableRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.DeleteTableOutput) + return ret0, ret1 +} + +// DeleteTableRequest indicates an expected call of DeleteTableRequest. +func (mr *MockDynamoDBAPIMockRecorder) DeleteTableRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTableRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).DeleteTableRequest), arg0) +} + +// DeleteTableWithContext mocks base method. +func (m *MockDynamoDBAPI) DeleteTableWithContext(arg0 aws.Context, arg1 *dynamodb.DeleteTableInput, arg2 ...request.Option) (*dynamodb.DeleteTableOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteTableWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.DeleteTableOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTableWithContext indicates an expected call of DeleteTableWithContext. +func (mr *MockDynamoDBAPIMockRecorder) DeleteTableWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTableWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).DeleteTableWithContext), varargs...) +} + +// DescribeBackup mocks base method. +func (m *MockDynamoDBAPI) DescribeBackup(arg0 *dynamodb.DescribeBackupInput) (*dynamodb.DescribeBackupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeBackup", arg0) + ret0, _ := ret[0].(*dynamodb.DescribeBackupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeBackup indicates an expected call of DescribeBackup. +func (mr *MockDynamoDBAPIMockRecorder) DescribeBackup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBackup", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeBackup), arg0) +} + +// DescribeBackupRequest mocks base method. +func (m *MockDynamoDBAPI) DescribeBackupRequest(arg0 *dynamodb.DescribeBackupInput) (*request.Request, *dynamodb.DescribeBackupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeBackupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.DescribeBackupOutput) + return ret0, ret1 +} + +// DescribeBackupRequest indicates an expected call of DescribeBackupRequest. +func (mr *MockDynamoDBAPIMockRecorder) DescribeBackupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBackupRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeBackupRequest), arg0) +} + +// DescribeBackupWithContext mocks base method. +func (m *MockDynamoDBAPI) DescribeBackupWithContext(arg0 aws.Context, arg1 *dynamodb.DescribeBackupInput, arg2 ...request.Option) (*dynamodb.DescribeBackupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeBackupWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.DescribeBackupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeBackupWithContext indicates an expected call of DescribeBackupWithContext. +func (mr *MockDynamoDBAPIMockRecorder) DescribeBackupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBackupWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeBackupWithContext), varargs...) +} + +// DescribeContinuousBackups mocks base method. +func (m *MockDynamoDBAPI) DescribeContinuousBackups(arg0 *dynamodb.DescribeContinuousBackupsInput) (*dynamodb.DescribeContinuousBackupsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeContinuousBackups", arg0) + ret0, _ := ret[0].(*dynamodb.DescribeContinuousBackupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeContinuousBackups indicates an expected call of DescribeContinuousBackups. +func (mr *MockDynamoDBAPIMockRecorder) DescribeContinuousBackups(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeContinuousBackups", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeContinuousBackups), arg0) +} + +// DescribeContinuousBackupsRequest mocks base method. +func (m *MockDynamoDBAPI) DescribeContinuousBackupsRequest(arg0 *dynamodb.DescribeContinuousBackupsInput) (*request.Request, *dynamodb.DescribeContinuousBackupsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeContinuousBackupsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.DescribeContinuousBackupsOutput) + return ret0, ret1 +} + +// DescribeContinuousBackupsRequest indicates an expected call of DescribeContinuousBackupsRequest. +func (mr *MockDynamoDBAPIMockRecorder) DescribeContinuousBackupsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeContinuousBackupsRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeContinuousBackupsRequest), arg0) +} + +// DescribeContinuousBackupsWithContext mocks base method. +func (m *MockDynamoDBAPI) DescribeContinuousBackupsWithContext(arg0 aws.Context, arg1 *dynamodb.DescribeContinuousBackupsInput, arg2 ...request.Option) (*dynamodb.DescribeContinuousBackupsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeContinuousBackupsWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.DescribeContinuousBackupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeContinuousBackupsWithContext indicates an expected call of DescribeContinuousBackupsWithContext. +func (mr *MockDynamoDBAPIMockRecorder) DescribeContinuousBackupsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeContinuousBackupsWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeContinuousBackupsWithContext), varargs...) +} + +// DescribeContributorInsights mocks base method. +func (m *MockDynamoDBAPI) DescribeContributorInsights(arg0 *dynamodb.DescribeContributorInsightsInput) (*dynamodb.DescribeContributorInsightsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeContributorInsights", arg0) + ret0, _ := ret[0].(*dynamodb.DescribeContributorInsightsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeContributorInsights indicates an expected call of DescribeContributorInsights. +func (mr *MockDynamoDBAPIMockRecorder) DescribeContributorInsights(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeContributorInsights", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeContributorInsights), arg0) +} + +// DescribeContributorInsightsRequest mocks base method. +func (m *MockDynamoDBAPI) DescribeContributorInsightsRequest(arg0 *dynamodb.DescribeContributorInsightsInput) (*request.Request, *dynamodb.DescribeContributorInsightsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeContributorInsightsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.DescribeContributorInsightsOutput) + return ret0, ret1 +} + +// DescribeContributorInsightsRequest indicates an expected call of DescribeContributorInsightsRequest. +func (mr *MockDynamoDBAPIMockRecorder) DescribeContributorInsightsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeContributorInsightsRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeContributorInsightsRequest), arg0) +} + +// DescribeContributorInsightsWithContext mocks base method. +func (m *MockDynamoDBAPI) DescribeContributorInsightsWithContext(arg0 aws.Context, arg1 *dynamodb.DescribeContributorInsightsInput, arg2 ...request.Option) (*dynamodb.DescribeContributorInsightsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeContributorInsightsWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.DescribeContributorInsightsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeContributorInsightsWithContext indicates an expected call of DescribeContributorInsightsWithContext. +func (mr *MockDynamoDBAPIMockRecorder) DescribeContributorInsightsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeContributorInsightsWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeContributorInsightsWithContext), varargs...) +} + +// DescribeEndpoints mocks base method. +func (m *MockDynamoDBAPI) DescribeEndpoints(arg0 *dynamodb.DescribeEndpointsInput) (*dynamodb.DescribeEndpointsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeEndpoints", arg0) + ret0, _ := ret[0].(*dynamodb.DescribeEndpointsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeEndpoints indicates an expected call of DescribeEndpoints. +func (mr *MockDynamoDBAPIMockRecorder) DescribeEndpoints(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeEndpoints", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeEndpoints), arg0) +} + +// DescribeEndpointsRequest mocks base method. +func (m *MockDynamoDBAPI) DescribeEndpointsRequest(arg0 *dynamodb.DescribeEndpointsInput) (*request.Request, *dynamodb.DescribeEndpointsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeEndpointsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.DescribeEndpointsOutput) + return ret0, ret1 +} + +// DescribeEndpointsRequest indicates an expected call of DescribeEndpointsRequest. +func (mr *MockDynamoDBAPIMockRecorder) DescribeEndpointsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeEndpointsRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeEndpointsRequest), arg0) +} + +// DescribeEndpointsWithContext mocks base method. +func (m *MockDynamoDBAPI) DescribeEndpointsWithContext(arg0 aws.Context, arg1 *dynamodb.DescribeEndpointsInput, arg2 ...request.Option) (*dynamodb.DescribeEndpointsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeEndpointsWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.DescribeEndpointsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeEndpointsWithContext indicates an expected call of DescribeEndpointsWithContext. +func (mr *MockDynamoDBAPIMockRecorder) DescribeEndpointsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeEndpointsWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeEndpointsWithContext), varargs...) +} + +// DescribeExport mocks base method. +func (m *MockDynamoDBAPI) DescribeExport(arg0 *dynamodb.DescribeExportInput) (*dynamodb.DescribeExportOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeExport", arg0) + ret0, _ := ret[0].(*dynamodb.DescribeExportOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeExport indicates an expected call of DescribeExport. +func (mr *MockDynamoDBAPIMockRecorder) DescribeExport(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeExport", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeExport), arg0) +} + +// DescribeExportRequest mocks base method. +func (m *MockDynamoDBAPI) DescribeExportRequest(arg0 *dynamodb.DescribeExportInput) (*request.Request, *dynamodb.DescribeExportOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeExportRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.DescribeExportOutput) + return ret0, ret1 +} + +// DescribeExportRequest indicates an expected call of DescribeExportRequest. +func (mr *MockDynamoDBAPIMockRecorder) DescribeExportRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeExportRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeExportRequest), arg0) +} + +// DescribeExportWithContext mocks base method. +func (m *MockDynamoDBAPI) DescribeExportWithContext(arg0 aws.Context, arg1 *dynamodb.DescribeExportInput, arg2 ...request.Option) (*dynamodb.DescribeExportOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeExportWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.DescribeExportOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeExportWithContext indicates an expected call of DescribeExportWithContext. +func (mr *MockDynamoDBAPIMockRecorder) DescribeExportWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeExportWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeExportWithContext), varargs...) +} + +// DescribeGlobalTable mocks base method. +func (m *MockDynamoDBAPI) DescribeGlobalTable(arg0 *dynamodb.DescribeGlobalTableInput) (*dynamodb.DescribeGlobalTableOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeGlobalTable", arg0) + ret0, _ := ret[0].(*dynamodb.DescribeGlobalTableOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeGlobalTable indicates an expected call of DescribeGlobalTable. +func (mr *MockDynamoDBAPIMockRecorder) DescribeGlobalTable(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGlobalTable", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeGlobalTable), arg0) +} + +// DescribeGlobalTableRequest mocks base method. +func (m *MockDynamoDBAPI) DescribeGlobalTableRequest(arg0 *dynamodb.DescribeGlobalTableInput) (*request.Request, *dynamodb.DescribeGlobalTableOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeGlobalTableRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.DescribeGlobalTableOutput) + return ret0, ret1 +} + +// DescribeGlobalTableRequest indicates an expected call of DescribeGlobalTableRequest. +func (mr *MockDynamoDBAPIMockRecorder) DescribeGlobalTableRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGlobalTableRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeGlobalTableRequest), arg0) +} + +// DescribeGlobalTableSettings mocks base method. +func (m *MockDynamoDBAPI) DescribeGlobalTableSettings(arg0 *dynamodb.DescribeGlobalTableSettingsInput) (*dynamodb.DescribeGlobalTableSettingsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeGlobalTableSettings", arg0) + ret0, _ := ret[0].(*dynamodb.DescribeGlobalTableSettingsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeGlobalTableSettings indicates an expected call of DescribeGlobalTableSettings. +func (mr *MockDynamoDBAPIMockRecorder) DescribeGlobalTableSettings(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGlobalTableSettings", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeGlobalTableSettings), arg0) +} + +// DescribeGlobalTableSettingsRequest mocks base method. +func (m *MockDynamoDBAPI) DescribeGlobalTableSettingsRequest(arg0 *dynamodb.DescribeGlobalTableSettingsInput) (*request.Request, *dynamodb.DescribeGlobalTableSettingsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeGlobalTableSettingsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.DescribeGlobalTableSettingsOutput) + return ret0, ret1 +} + +// DescribeGlobalTableSettingsRequest indicates an expected call of DescribeGlobalTableSettingsRequest. +func (mr *MockDynamoDBAPIMockRecorder) DescribeGlobalTableSettingsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGlobalTableSettingsRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeGlobalTableSettingsRequest), arg0) +} + +// DescribeGlobalTableSettingsWithContext mocks base method. +func (m *MockDynamoDBAPI) DescribeGlobalTableSettingsWithContext(arg0 aws.Context, arg1 *dynamodb.DescribeGlobalTableSettingsInput, arg2 ...request.Option) (*dynamodb.DescribeGlobalTableSettingsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeGlobalTableSettingsWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.DescribeGlobalTableSettingsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeGlobalTableSettingsWithContext indicates an expected call of DescribeGlobalTableSettingsWithContext. +func (mr *MockDynamoDBAPIMockRecorder) DescribeGlobalTableSettingsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGlobalTableSettingsWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeGlobalTableSettingsWithContext), varargs...) +} + +// DescribeGlobalTableWithContext mocks base method. +func (m *MockDynamoDBAPI) DescribeGlobalTableWithContext(arg0 aws.Context, arg1 *dynamodb.DescribeGlobalTableInput, arg2 ...request.Option) (*dynamodb.DescribeGlobalTableOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeGlobalTableWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.DescribeGlobalTableOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeGlobalTableWithContext indicates an expected call of DescribeGlobalTableWithContext. +func (mr *MockDynamoDBAPIMockRecorder) DescribeGlobalTableWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGlobalTableWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeGlobalTableWithContext), varargs...) +} + +// DescribeImport mocks base method. +func (m *MockDynamoDBAPI) DescribeImport(arg0 *dynamodb.DescribeImportInput) (*dynamodb.DescribeImportOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeImport", arg0) + ret0, _ := ret[0].(*dynamodb.DescribeImportOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeImport indicates an expected call of DescribeImport. +func (mr *MockDynamoDBAPIMockRecorder) DescribeImport(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeImport", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeImport), arg0) +} + +// DescribeImportRequest mocks base method. +func (m *MockDynamoDBAPI) DescribeImportRequest(arg0 *dynamodb.DescribeImportInput) (*request.Request, *dynamodb.DescribeImportOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeImportRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.DescribeImportOutput) + return ret0, ret1 +} + +// DescribeImportRequest indicates an expected call of DescribeImportRequest. +func (mr *MockDynamoDBAPIMockRecorder) DescribeImportRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeImportRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeImportRequest), arg0) +} + +// DescribeImportWithContext mocks base method. +func (m *MockDynamoDBAPI) DescribeImportWithContext(arg0 aws.Context, arg1 *dynamodb.DescribeImportInput, arg2 ...request.Option) (*dynamodb.DescribeImportOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeImportWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.DescribeImportOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeImportWithContext indicates an expected call of DescribeImportWithContext. +func (mr *MockDynamoDBAPIMockRecorder) DescribeImportWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeImportWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeImportWithContext), varargs...) +} + +// DescribeKinesisStreamingDestination mocks base method. +func (m *MockDynamoDBAPI) DescribeKinesisStreamingDestination(arg0 *dynamodb.DescribeKinesisStreamingDestinationInput) (*dynamodb.DescribeKinesisStreamingDestinationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeKinesisStreamingDestination", arg0) + ret0, _ := ret[0].(*dynamodb.DescribeKinesisStreamingDestinationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeKinesisStreamingDestination indicates an expected call of DescribeKinesisStreamingDestination. +func (mr *MockDynamoDBAPIMockRecorder) DescribeKinesisStreamingDestination(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeKinesisStreamingDestination", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeKinesisStreamingDestination), arg0) +} + +// DescribeKinesisStreamingDestinationRequest mocks base method. +func (m *MockDynamoDBAPI) DescribeKinesisStreamingDestinationRequest(arg0 *dynamodb.DescribeKinesisStreamingDestinationInput) (*request.Request, *dynamodb.DescribeKinesisStreamingDestinationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeKinesisStreamingDestinationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.DescribeKinesisStreamingDestinationOutput) + return ret0, ret1 +} + +// DescribeKinesisStreamingDestinationRequest indicates an expected call of DescribeKinesisStreamingDestinationRequest. +func (mr *MockDynamoDBAPIMockRecorder) DescribeKinesisStreamingDestinationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeKinesisStreamingDestinationRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeKinesisStreamingDestinationRequest), arg0) +} + +// DescribeKinesisStreamingDestinationWithContext mocks base method. +func (m *MockDynamoDBAPI) DescribeKinesisStreamingDestinationWithContext(arg0 aws.Context, arg1 *dynamodb.DescribeKinesisStreamingDestinationInput, arg2 ...request.Option) (*dynamodb.DescribeKinesisStreamingDestinationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeKinesisStreamingDestinationWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.DescribeKinesisStreamingDestinationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeKinesisStreamingDestinationWithContext indicates an expected call of DescribeKinesisStreamingDestinationWithContext. +func (mr *MockDynamoDBAPIMockRecorder) DescribeKinesisStreamingDestinationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeKinesisStreamingDestinationWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeKinesisStreamingDestinationWithContext), varargs...) +} + +// DescribeLimits mocks base method. +func (m *MockDynamoDBAPI) DescribeLimits(arg0 *dynamodb.DescribeLimitsInput) (*dynamodb.DescribeLimitsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeLimits", arg0) + ret0, _ := ret[0].(*dynamodb.DescribeLimitsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeLimits indicates an expected call of DescribeLimits. +func (mr *MockDynamoDBAPIMockRecorder) DescribeLimits(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeLimits", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeLimits), arg0) +} + +// DescribeLimitsRequest mocks base method. +func (m *MockDynamoDBAPI) DescribeLimitsRequest(arg0 *dynamodb.DescribeLimitsInput) (*request.Request, *dynamodb.DescribeLimitsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeLimitsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.DescribeLimitsOutput) + return ret0, ret1 +} + +// DescribeLimitsRequest indicates an expected call of DescribeLimitsRequest. +func (mr *MockDynamoDBAPIMockRecorder) DescribeLimitsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeLimitsRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeLimitsRequest), arg0) +} + +// DescribeLimitsWithContext mocks base method. +func (m *MockDynamoDBAPI) DescribeLimitsWithContext(arg0 aws.Context, arg1 *dynamodb.DescribeLimitsInput, arg2 ...request.Option) (*dynamodb.DescribeLimitsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeLimitsWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.DescribeLimitsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeLimitsWithContext indicates an expected call of DescribeLimitsWithContext. +func (mr *MockDynamoDBAPIMockRecorder) DescribeLimitsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeLimitsWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeLimitsWithContext), varargs...) +} + +// DescribeTable mocks base method. +func (m *MockDynamoDBAPI) DescribeTable(arg0 *dynamodb.DescribeTableInput) (*dynamodb.DescribeTableOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTable", arg0) + ret0, _ := ret[0].(*dynamodb.DescribeTableOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTable indicates an expected call of DescribeTable. +func (mr *MockDynamoDBAPIMockRecorder) DescribeTable(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTable", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeTable), arg0) +} + +// DescribeTableReplicaAutoScaling mocks base method. +func (m *MockDynamoDBAPI) DescribeTableReplicaAutoScaling(arg0 *dynamodb.DescribeTableReplicaAutoScalingInput) (*dynamodb.DescribeTableReplicaAutoScalingOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTableReplicaAutoScaling", arg0) + ret0, _ := ret[0].(*dynamodb.DescribeTableReplicaAutoScalingOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTableReplicaAutoScaling indicates an expected call of DescribeTableReplicaAutoScaling. +func (mr *MockDynamoDBAPIMockRecorder) DescribeTableReplicaAutoScaling(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTableReplicaAutoScaling", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeTableReplicaAutoScaling), arg0) +} + +// DescribeTableReplicaAutoScalingRequest mocks base method. +func (m *MockDynamoDBAPI) DescribeTableReplicaAutoScalingRequest(arg0 *dynamodb.DescribeTableReplicaAutoScalingInput) (*request.Request, *dynamodb.DescribeTableReplicaAutoScalingOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTableReplicaAutoScalingRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.DescribeTableReplicaAutoScalingOutput) + return ret0, ret1 +} + +// DescribeTableReplicaAutoScalingRequest indicates an expected call of DescribeTableReplicaAutoScalingRequest. +func (mr *MockDynamoDBAPIMockRecorder) DescribeTableReplicaAutoScalingRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTableReplicaAutoScalingRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeTableReplicaAutoScalingRequest), arg0) +} + +// DescribeTableReplicaAutoScalingWithContext mocks base method. +func (m *MockDynamoDBAPI) DescribeTableReplicaAutoScalingWithContext(arg0 aws.Context, arg1 *dynamodb.DescribeTableReplicaAutoScalingInput, arg2 ...request.Option) (*dynamodb.DescribeTableReplicaAutoScalingOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeTableReplicaAutoScalingWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.DescribeTableReplicaAutoScalingOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTableReplicaAutoScalingWithContext indicates an expected call of DescribeTableReplicaAutoScalingWithContext. +func (mr *MockDynamoDBAPIMockRecorder) DescribeTableReplicaAutoScalingWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTableReplicaAutoScalingWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeTableReplicaAutoScalingWithContext), varargs...) +} + +// DescribeTableRequest mocks base method. +func (m *MockDynamoDBAPI) DescribeTableRequest(arg0 *dynamodb.DescribeTableInput) (*request.Request, *dynamodb.DescribeTableOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTableRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.DescribeTableOutput) + return ret0, ret1 +} + +// DescribeTableRequest indicates an expected call of DescribeTableRequest. +func (mr *MockDynamoDBAPIMockRecorder) DescribeTableRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTableRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeTableRequest), arg0) +} + +// DescribeTableWithContext mocks base method. +func (m *MockDynamoDBAPI) DescribeTableWithContext(arg0 aws.Context, arg1 *dynamodb.DescribeTableInput, arg2 ...request.Option) (*dynamodb.DescribeTableOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeTableWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.DescribeTableOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTableWithContext indicates an expected call of DescribeTableWithContext. +func (mr *MockDynamoDBAPIMockRecorder) DescribeTableWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTableWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeTableWithContext), varargs...) +} + +// DescribeTimeToLive mocks base method. +func (m *MockDynamoDBAPI) DescribeTimeToLive(arg0 *dynamodb.DescribeTimeToLiveInput) (*dynamodb.DescribeTimeToLiveOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTimeToLive", arg0) + ret0, _ := ret[0].(*dynamodb.DescribeTimeToLiveOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTimeToLive indicates an expected call of DescribeTimeToLive. +func (mr *MockDynamoDBAPIMockRecorder) DescribeTimeToLive(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTimeToLive", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeTimeToLive), arg0) +} + +// DescribeTimeToLiveRequest mocks base method. +func (m *MockDynamoDBAPI) DescribeTimeToLiveRequest(arg0 *dynamodb.DescribeTimeToLiveInput) (*request.Request, *dynamodb.DescribeTimeToLiveOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeTimeToLiveRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.DescribeTimeToLiveOutput) + return ret0, ret1 +} + +// DescribeTimeToLiveRequest indicates an expected call of DescribeTimeToLiveRequest. +func (mr *MockDynamoDBAPIMockRecorder) DescribeTimeToLiveRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTimeToLiveRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeTimeToLiveRequest), arg0) +} + +// DescribeTimeToLiveWithContext mocks base method. +func (m *MockDynamoDBAPI) DescribeTimeToLiveWithContext(arg0 aws.Context, arg1 *dynamodb.DescribeTimeToLiveInput, arg2 ...request.Option) (*dynamodb.DescribeTimeToLiveOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeTimeToLiveWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.DescribeTimeToLiveOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeTimeToLiveWithContext indicates an expected call of DescribeTimeToLiveWithContext. +func (mr *MockDynamoDBAPIMockRecorder) DescribeTimeToLiveWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTimeToLiveWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).DescribeTimeToLiveWithContext), varargs...) +} + +// DisableKinesisStreamingDestination mocks base method. +func (m *MockDynamoDBAPI) DisableKinesisStreamingDestination(arg0 *dynamodb.DisableKinesisStreamingDestinationInput) (*dynamodb.DisableKinesisStreamingDestinationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DisableKinesisStreamingDestination", arg0) + ret0, _ := ret[0].(*dynamodb.DisableKinesisStreamingDestinationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DisableKinesisStreamingDestination indicates an expected call of DisableKinesisStreamingDestination. +func (mr *MockDynamoDBAPIMockRecorder) DisableKinesisStreamingDestination(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisableKinesisStreamingDestination", reflect.TypeOf((*MockDynamoDBAPI)(nil).DisableKinesisStreamingDestination), arg0) +} + +// DisableKinesisStreamingDestinationRequest mocks base method. +func (m *MockDynamoDBAPI) DisableKinesisStreamingDestinationRequest(arg0 *dynamodb.DisableKinesisStreamingDestinationInput) (*request.Request, *dynamodb.DisableKinesisStreamingDestinationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DisableKinesisStreamingDestinationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.DisableKinesisStreamingDestinationOutput) + return ret0, ret1 +} + +// DisableKinesisStreamingDestinationRequest indicates an expected call of DisableKinesisStreamingDestinationRequest. +func (mr *MockDynamoDBAPIMockRecorder) DisableKinesisStreamingDestinationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisableKinesisStreamingDestinationRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).DisableKinesisStreamingDestinationRequest), arg0) +} + +// DisableKinesisStreamingDestinationWithContext mocks base method. +func (m *MockDynamoDBAPI) DisableKinesisStreamingDestinationWithContext(arg0 aws.Context, arg1 *dynamodb.DisableKinesisStreamingDestinationInput, arg2 ...request.Option) (*dynamodb.DisableKinesisStreamingDestinationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DisableKinesisStreamingDestinationWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.DisableKinesisStreamingDestinationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DisableKinesisStreamingDestinationWithContext indicates an expected call of DisableKinesisStreamingDestinationWithContext. +func (mr *MockDynamoDBAPIMockRecorder) DisableKinesisStreamingDestinationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisableKinesisStreamingDestinationWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).DisableKinesisStreamingDestinationWithContext), varargs...) +} + +// EnableKinesisStreamingDestination mocks base method. +func (m *MockDynamoDBAPI) EnableKinesisStreamingDestination(arg0 *dynamodb.EnableKinesisStreamingDestinationInput) (*dynamodb.EnableKinesisStreamingDestinationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "EnableKinesisStreamingDestination", arg0) + ret0, _ := ret[0].(*dynamodb.EnableKinesisStreamingDestinationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// EnableKinesisStreamingDestination indicates an expected call of EnableKinesisStreamingDestination. +func (mr *MockDynamoDBAPIMockRecorder) EnableKinesisStreamingDestination(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnableKinesisStreamingDestination", reflect.TypeOf((*MockDynamoDBAPI)(nil).EnableKinesisStreamingDestination), arg0) +} + +// EnableKinesisStreamingDestinationRequest mocks base method. +func (m *MockDynamoDBAPI) EnableKinesisStreamingDestinationRequest(arg0 *dynamodb.EnableKinesisStreamingDestinationInput) (*request.Request, *dynamodb.EnableKinesisStreamingDestinationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "EnableKinesisStreamingDestinationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.EnableKinesisStreamingDestinationOutput) + return ret0, ret1 +} + +// EnableKinesisStreamingDestinationRequest indicates an expected call of EnableKinesisStreamingDestinationRequest. +func (mr *MockDynamoDBAPIMockRecorder) EnableKinesisStreamingDestinationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnableKinesisStreamingDestinationRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).EnableKinesisStreamingDestinationRequest), arg0) +} + +// EnableKinesisStreamingDestinationWithContext mocks base method. +func (m *MockDynamoDBAPI) EnableKinesisStreamingDestinationWithContext(arg0 aws.Context, arg1 *dynamodb.EnableKinesisStreamingDestinationInput, arg2 ...request.Option) (*dynamodb.EnableKinesisStreamingDestinationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "EnableKinesisStreamingDestinationWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.EnableKinesisStreamingDestinationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// EnableKinesisStreamingDestinationWithContext indicates an expected call of EnableKinesisStreamingDestinationWithContext. +func (mr *MockDynamoDBAPIMockRecorder) EnableKinesisStreamingDestinationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnableKinesisStreamingDestinationWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).EnableKinesisStreamingDestinationWithContext), varargs...) +} + +// ExecuteStatement mocks base method. +func (m *MockDynamoDBAPI) ExecuteStatement(arg0 *dynamodb.ExecuteStatementInput) (*dynamodb.ExecuteStatementOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExecuteStatement", arg0) + ret0, _ := ret[0].(*dynamodb.ExecuteStatementOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExecuteStatement indicates an expected call of ExecuteStatement. +func (mr *MockDynamoDBAPIMockRecorder) ExecuteStatement(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecuteStatement", reflect.TypeOf((*MockDynamoDBAPI)(nil).ExecuteStatement), arg0) +} + +// ExecuteStatementRequest mocks base method. +func (m *MockDynamoDBAPI) ExecuteStatementRequest(arg0 *dynamodb.ExecuteStatementInput) (*request.Request, *dynamodb.ExecuteStatementOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExecuteStatementRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.ExecuteStatementOutput) + return ret0, ret1 +} + +// ExecuteStatementRequest indicates an expected call of ExecuteStatementRequest. +func (mr *MockDynamoDBAPIMockRecorder) ExecuteStatementRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecuteStatementRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).ExecuteStatementRequest), arg0) +} + +// ExecuteStatementWithContext mocks base method. +func (m *MockDynamoDBAPI) ExecuteStatementWithContext(arg0 aws.Context, arg1 *dynamodb.ExecuteStatementInput, arg2 ...request.Option) (*dynamodb.ExecuteStatementOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ExecuteStatementWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.ExecuteStatementOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExecuteStatementWithContext indicates an expected call of ExecuteStatementWithContext. +func (mr *MockDynamoDBAPIMockRecorder) ExecuteStatementWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecuteStatementWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).ExecuteStatementWithContext), varargs...) +} + +// ExecuteTransaction mocks base method. +func (m *MockDynamoDBAPI) ExecuteTransaction(arg0 *dynamodb.ExecuteTransactionInput) (*dynamodb.ExecuteTransactionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExecuteTransaction", arg0) + ret0, _ := ret[0].(*dynamodb.ExecuteTransactionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExecuteTransaction indicates an expected call of ExecuteTransaction. +func (mr *MockDynamoDBAPIMockRecorder) ExecuteTransaction(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecuteTransaction", reflect.TypeOf((*MockDynamoDBAPI)(nil).ExecuteTransaction), arg0) +} + +// ExecuteTransactionRequest mocks base method. +func (m *MockDynamoDBAPI) ExecuteTransactionRequest(arg0 *dynamodb.ExecuteTransactionInput) (*request.Request, *dynamodb.ExecuteTransactionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExecuteTransactionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.ExecuteTransactionOutput) + return ret0, ret1 +} + +// ExecuteTransactionRequest indicates an expected call of ExecuteTransactionRequest. +func (mr *MockDynamoDBAPIMockRecorder) ExecuteTransactionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecuteTransactionRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).ExecuteTransactionRequest), arg0) +} + +// ExecuteTransactionWithContext mocks base method. +func (m *MockDynamoDBAPI) ExecuteTransactionWithContext(arg0 aws.Context, arg1 *dynamodb.ExecuteTransactionInput, arg2 ...request.Option) (*dynamodb.ExecuteTransactionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ExecuteTransactionWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.ExecuteTransactionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExecuteTransactionWithContext indicates an expected call of ExecuteTransactionWithContext. +func (mr *MockDynamoDBAPIMockRecorder) ExecuteTransactionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecuteTransactionWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).ExecuteTransactionWithContext), varargs...) +} + +// ExportTableToPointInTime mocks base method. +func (m *MockDynamoDBAPI) ExportTableToPointInTime(arg0 *dynamodb.ExportTableToPointInTimeInput) (*dynamodb.ExportTableToPointInTimeOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExportTableToPointInTime", arg0) + ret0, _ := ret[0].(*dynamodb.ExportTableToPointInTimeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExportTableToPointInTime indicates an expected call of ExportTableToPointInTime. +func (mr *MockDynamoDBAPIMockRecorder) ExportTableToPointInTime(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExportTableToPointInTime", reflect.TypeOf((*MockDynamoDBAPI)(nil).ExportTableToPointInTime), arg0) +} + +// ExportTableToPointInTimeRequest mocks base method. +func (m *MockDynamoDBAPI) ExportTableToPointInTimeRequest(arg0 *dynamodb.ExportTableToPointInTimeInput) (*request.Request, *dynamodb.ExportTableToPointInTimeOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExportTableToPointInTimeRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.ExportTableToPointInTimeOutput) + return ret0, ret1 +} + +// ExportTableToPointInTimeRequest indicates an expected call of ExportTableToPointInTimeRequest. +func (mr *MockDynamoDBAPIMockRecorder) ExportTableToPointInTimeRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExportTableToPointInTimeRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).ExportTableToPointInTimeRequest), arg0) +} + +// ExportTableToPointInTimeWithContext mocks base method. +func (m *MockDynamoDBAPI) ExportTableToPointInTimeWithContext(arg0 aws.Context, arg1 *dynamodb.ExportTableToPointInTimeInput, arg2 ...request.Option) (*dynamodb.ExportTableToPointInTimeOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ExportTableToPointInTimeWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.ExportTableToPointInTimeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExportTableToPointInTimeWithContext indicates an expected call of ExportTableToPointInTimeWithContext. +func (mr *MockDynamoDBAPIMockRecorder) ExportTableToPointInTimeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExportTableToPointInTimeWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).ExportTableToPointInTimeWithContext), varargs...) +} + +// GetItem mocks base method. +func (m *MockDynamoDBAPI) GetItem(arg0 *dynamodb.GetItemInput) (*dynamodb.GetItemOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetItem", arg0) + ret0, _ := ret[0].(*dynamodb.GetItemOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetItem indicates an expected call of GetItem. +func (mr *MockDynamoDBAPIMockRecorder) GetItem(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetItem", reflect.TypeOf((*MockDynamoDBAPI)(nil).GetItem), arg0) +} + +// GetItemRequest mocks base method. +func (m *MockDynamoDBAPI) GetItemRequest(arg0 *dynamodb.GetItemInput) (*request.Request, *dynamodb.GetItemOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetItemRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.GetItemOutput) + return ret0, ret1 +} + +// GetItemRequest indicates an expected call of GetItemRequest. +func (mr *MockDynamoDBAPIMockRecorder) GetItemRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetItemRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).GetItemRequest), arg0) +} + +// GetItemWithContext mocks base method. +func (m *MockDynamoDBAPI) GetItemWithContext(arg0 aws.Context, arg1 *dynamodb.GetItemInput, arg2 ...request.Option) (*dynamodb.GetItemOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetItemWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.GetItemOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetItemWithContext indicates an expected call of GetItemWithContext. +func (mr *MockDynamoDBAPIMockRecorder) GetItemWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetItemWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).GetItemWithContext), varargs...) +} + +// GetResourcePolicy mocks base method. +func (m *MockDynamoDBAPI) GetResourcePolicy(arg0 *dynamodb.GetResourcePolicyInput) (*dynamodb.GetResourcePolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetResourcePolicy", arg0) + ret0, _ := ret[0].(*dynamodb.GetResourcePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetResourcePolicy indicates an expected call of GetResourcePolicy. +func (mr *MockDynamoDBAPIMockRecorder) GetResourcePolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResourcePolicy", reflect.TypeOf((*MockDynamoDBAPI)(nil).GetResourcePolicy), arg0) +} + +// GetResourcePolicyRequest mocks base method. +func (m *MockDynamoDBAPI) GetResourcePolicyRequest(arg0 *dynamodb.GetResourcePolicyInput) (*request.Request, *dynamodb.GetResourcePolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetResourcePolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.GetResourcePolicyOutput) + return ret0, ret1 +} + +// GetResourcePolicyRequest indicates an expected call of GetResourcePolicyRequest. +func (mr *MockDynamoDBAPIMockRecorder) GetResourcePolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResourcePolicyRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).GetResourcePolicyRequest), arg0) +} + +// GetResourcePolicyWithContext mocks base method. +func (m *MockDynamoDBAPI) GetResourcePolicyWithContext(arg0 aws.Context, arg1 *dynamodb.GetResourcePolicyInput, arg2 ...request.Option) (*dynamodb.GetResourcePolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetResourcePolicyWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.GetResourcePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetResourcePolicyWithContext indicates an expected call of GetResourcePolicyWithContext. +func (mr *MockDynamoDBAPIMockRecorder) GetResourcePolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResourcePolicyWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).GetResourcePolicyWithContext), varargs...) +} + +// ImportTable mocks base method. +func (m *MockDynamoDBAPI) ImportTable(arg0 *dynamodb.ImportTableInput) (*dynamodb.ImportTableOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ImportTable", arg0) + ret0, _ := ret[0].(*dynamodb.ImportTableOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ImportTable indicates an expected call of ImportTable. +func (mr *MockDynamoDBAPIMockRecorder) ImportTable(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImportTable", reflect.TypeOf((*MockDynamoDBAPI)(nil).ImportTable), arg0) +} + +// ImportTableRequest mocks base method. +func (m *MockDynamoDBAPI) ImportTableRequest(arg0 *dynamodb.ImportTableInput) (*request.Request, *dynamodb.ImportTableOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ImportTableRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.ImportTableOutput) + return ret0, ret1 +} + +// ImportTableRequest indicates an expected call of ImportTableRequest. +func (mr *MockDynamoDBAPIMockRecorder) ImportTableRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImportTableRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).ImportTableRequest), arg0) +} + +// ImportTableWithContext mocks base method. +func (m *MockDynamoDBAPI) ImportTableWithContext(arg0 aws.Context, arg1 *dynamodb.ImportTableInput, arg2 ...request.Option) (*dynamodb.ImportTableOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ImportTableWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.ImportTableOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ImportTableWithContext indicates an expected call of ImportTableWithContext. +func (mr *MockDynamoDBAPIMockRecorder) ImportTableWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImportTableWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).ImportTableWithContext), varargs...) +} + +// ListBackups mocks base method. +func (m *MockDynamoDBAPI) ListBackups(arg0 *dynamodb.ListBackupsInput) (*dynamodb.ListBackupsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListBackups", arg0) + ret0, _ := ret[0].(*dynamodb.ListBackupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListBackups indicates an expected call of ListBackups. +func (mr *MockDynamoDBAPIMockRecorder) ListBackups(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListBackups", reflect.TypeOf((*MockDynamoDBAPI)(nil).ListBackups), arg0) +} + +// ListBackupsRequest mocks base method. +func (m *MockDynamoDBAPI) ListBackupsRequest(arg0 *dynamodb.ListBackupsInput) (*request.Request, *dynamodb.ListBackupsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListBackupsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.ListBackupsOutput) + return ret0, ret1 +} + +// ListBackupsRequest indicates an expected call of ListBackupsRequest. +func (mr *MockDynamoDBAPIMockRecorder) ListBackupsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListBackupsRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).ListBackupsRequest), arg0) +} + +// ListBackupsWithContext mocks base method. +func (m *MockDynamoDBAPI) ListBackupsWithContext(arg0 aws.Context, arg1 *dynamodb.ListBackupsInput, arg2 ...request.Option) (*dynamodb.ListBackupsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListBackupsWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.ListBackupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListBackupsWithContext indicates an expected call of ListBackupsWithContext. +func (mr *MockDynamoDBAPIMockRecorder) ListBackupsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListBackupsWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).ListBackupsWithContext), varargs...) +} + +// ListContributorInsights mocks base method. +func (m *MockDynamoDBAPI) ListContributorInsights(arg0 *dynamodb.ListContributorInsightsInput) (*dynamodb.ListContributorInsightsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListContributorInsights", arg0) + ret0, _ := ret[0].(*dynamodb.ListContributorInsightsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListContributorInsights indicates an expected call of ListContributorInsights. +func (mr *MockDynamoDBAPIMockRecorder) ListContributorInsights(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListContributorInsights", reflect.TypeOf((*MockDynamoDBAPI)(nil).ListContributorInsights), arg0) +} + +// ListContributorInsightsPages mocks base method. +func (m *MockDynamoDBAPI) ListContributorInsightsPages(arg0 *dynamodb.ListContributorInsightsInput, arg1 func(*dynamodb.ListContributorInsightsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListContributorInsightsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListContributorInsightsPages indicates an expected call of ListContributorInsightsPages. +func (mr *MockDynamoDBAPIMockRecorder) ListContributorInsightsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListContributorInsightsPages", reflect.TypeOf((*MockDynamoDBAPI)(nil).ListContributorInsightsPages), arg0, arg1) +} + +// ListContributorInsightsPagesWithContext mocks base method. +func (m *MockDynamoDBAPI) ListContributorInsightsPagesWithContext(arg0 aws.Context, arg1 *dynamodb.ListContributorInsightsInput, arg2 func(*dynamodb.ListContributorInsightsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListContributorInsightsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListContributorInsightsPagesWithContext indicates an expected call of ListContributorInsightsPagesWithContext. +func (mr *MockDynamoDBAPIMockRecorder) ListContributorInsightsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListContributorInsightsPagesWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).ListContributorInsightsPagesWithContext), varargs...) +} + +// ListContributorInsightsRequest mocks base method. +func (m *MockDynamoDBAPI) ListContributorInsightsRequest(arg0 *dynamodb.ListContributorInsightsInput) (*request.Request, *dynamodb.ListContributorInsightsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListContributorInsightsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.ListContributorInsightsOutput) + return ret0, ret1 +} + +// ListContributorInsightsRequest indicates an expected call of ListContributorInsightsRequest. +func (mr *MockDynamoDBAPIMockRecorder) ListContributorInsightsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListContributorInsightsRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).ListContributorInsightsRequest), arg0) +} + +// ListContributorInsightsWithContext mocks base method. +func (m *MockDynamoDBAPI) ListContributorInsightsWithContext(arg0 aws.Context, arg1 *dynamodb.ListContributorInsightsInput, arg2 ...request.Option) (*dynamodb.ListContributorInsightsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListContributorInsightsWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.ListContributorInsightsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListContributorInsightsWithContext indicates an expected call of ListContributorInsightsWithContext. +func (mr *MockDynamoDBAPIMockRecorder) ListContributorInsightsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListContributorInsightsWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).ListContributorInsightsWithContext), varargs...) +} + +// ListExports mocks base method. +func (m *MockDynamoDBAPI) ListExports(arg0 *dynamodb.ListExportsInput) (*dynamodb.ListExportsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListExports", arg0) + ret0, _ := ret[0].(*dynamodb.ListExportsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListExports indicates an expected call of ListExports. +func (mr *MockDynamoDBAPIMockRecorder) ListExports(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListExports", reflect.TypeOf((*MockDynamoDBAPI)(nil).ListExports), arg0) +} + +// ListExportsPages mocks base method. +func (m *MockDynamoDBAPI) ListExportsPages(arg0 *dynamodb.ListExportsInput, arg1 func(*dynamodb.ListExportsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListExportsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListExportsPages indicates an expected call of ListExportsPages. +func (mr *MockDynamoDBAPIMockRecorder) ListExportsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListExportsPages", reflect.TypeOf((*MockDynamoDBAPI)(nil).ListExportsPages), arg0, arg1) +} + +// ListExportsPagesWithContext mocks base method. +func (m *MockDynamoDBAPI) ListExportsPagesWithContext(arg0 aws.Context, arg1 *dynamodb.ListExportsInput, arg2 func(*dynamodb.ListExportsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListExportsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListExportsPagesWithContext indicates an expected call of ListExportsPagesWithContext. +func (mr *MockDynamoDBAPIMockRecorder) ListExportsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListExportsPagesWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).ListExportsPagesWithContext), varargs...) +} + +// ListExportsRequest mocks base method. +func (m *MockDynamoDBAPI) ListExportsRequest(arg0 *dynamodb.ListExportsInput) (*request.Request, *dynamodb.ListExportsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListExportsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.ListExportsOutput) + return ret0, ret1 +} + +// ListExportsRequest indicates an expected call of ListExportsRequest. +func (mr *MockDynamoDBAPIMockRecorder) ListExportsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListExportsRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).ListExportsRequest), arg0) +} + +// ListExportsWithContext mocks base method. +func (m *MockDynamoDBAPI) ListExportsWithContext(arg0 aws.Context, arg1 *dynamodb.ListExportsInput, arg2 ...request.Option) (*dynamodb.ListExportsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListExportsWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.ListExportsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListExportsWithContext indicates an expected call of ListExportsWithContext. +func (mr *MockDynamoDBAPIMockRecorder) ListExportsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListExportsWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).ListExportsWithContext), varargs...) +} + +// ListGlobalTables mocks base method. +func (m *MockDynamoDBAPI) ListGlobalTables(arg0 *dynamodb.ListGlobalTablesInput) (*dynamodb.ListGlobalTablesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListGlobalTables", arg0) + ret0, _ := ret[0].(*dynamodb.ListGlobalTablesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListGlobalTables indicates an expected call of ListGlobalTables. +func (mr *MockDynamoDBAPIMockRecorder) ListGlobalTables(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGlobalTables", reflect.TypeOf((*MockDynamoDBAPI)(nil).ListGlobalTables), arg0) +} + +// ListGlobalTablesRequest mocks base method. +func (m *MockDynamoDBAPI) ListGlobalTablesRequest(arg0 *dynamodb.ListGlobalTablesInput) (*request.Request, *dynamodb.ListGlobalTablesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListGlobalTablesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.ListGlobalTablesOutput) + return ret0, ret1 +} + +// ListGlobalTablesRequest indicates an expected call of ListGlobalTablesRequest. +func (mr *MockDynamoDBAPIMockRecorder) ListGlobalTablesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGlobalTablesRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).ListGlobalTablesRequest), arg0) +} + +// ListGlobalTablesWithContext mocks base method. +func (m *MockDynamoDBAPI) ListGlobalTablesWithContext(arg0 aws.Context, arg1 *dynamodb.ListGlobalTablesInput, arg2 ...request.Option) (*dynamodb.ListGlobalTablesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListGlobalTablesWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.ListGlobalTablesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListGlobalTablesWithContext indicates an expected call of ListGlobalTablesWithContext. +func (mr *MockDynamoDBAPIMockRecorder) ListGlobalTablesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGlobalTablesWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).ListGlobalTablesWithContext), varargs...) +} + +// ListImports mocks base method. +func (m *MockDynamoDBAPI) ListImports(arg0 *dynamodb.ListImportsInput) (*dynamodb.ListImportsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListImports", arg0) + ret0, _ := ret[0].(*dynamodb.ListImportsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListImports indicates an expected call of ListImports. +func (mr *MockDynamoDBAPIMockRecorder) ListImports(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListImports", reflect.TypeOf((*MockDynamoDBAPI)(nil).ListImports), arg0) +} + +// ListImportsPages mocks base method. +func (m *MockDynamoDBAPI) ListImportsPages(arg0 *dynamodb.ListImportsInput, arg1 func(*dynamodb.ListImportsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListImportsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListImportsPages indicates an expected call of ListImportsPages. +func (mr *MockDynamoDBAPIMockRecorder) ListImportsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListImportsPages", reflect.TypeOf((*MockDynamoDBAPI)(nil).ListImportsPages), arg0, arg1) +} + +// ListImportsPagesWithContext mocks base method. +func (m *MockDynamoDBAPI) ListImportsPagesWithContext(arg0 aws.Context, arg1 *dynamodb.ListImportsInput, arg2 func(*dynamodb.ListImportsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListImportsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListImportsPagesWithContext indicates an expected call of ListImportsPagesWithContext. +func (mr *MockDynamoDBAPIMockRecorder) ListImportsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListImportsPagesWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).ListImportsPagesWithContext), varargs...) +} + +// ListImportsRequest mocks base method. +func (m *MockDynamoDBAPI) ListImportsRequest(arg0 *dynamodb.ListImportsInput) (*request.Request, *dynamodb.ListImportsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListImportsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.ListImportsOutput) + return ret0, ret1 +} + +// ListImportsRequest indicates an expected call of ListImportsRequest. +func (mr *MockDynamoDBAPIMockRecorder) ListImportsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListImportsRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).ListImportsRequest), arg0) +} + +// ListImportsWithContext mocks base method. +func (m *MockDynamoDBAPI) ListImportsWithContext(arg0 aws.Context, arg1 *dynamodb.ListImportsInput, arg2 ...request.Option) (*dynamodb.ListImportsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListImportsWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.ListImportsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListImportsWithContext indicates an expected call of ListImportsWithContext. +func (mr *MockDynamoDBAPIMockRecorder) ListImportsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListImportsWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).ListImportsWithContext), varargs...) +} + +// ListTables mocks base method. +func (m *MockDynamoDBAPI) ListTables(arg0 *dynamodb.ListTablesInput) (*dynamodb.ListTablesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTables", arg0) + ret0, _ := ret[0].(*dynamodb.ListTablesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTables indicates an expected call of ListTables. +func (mr *MockDynamoDBAPIMockRecorder) ListTables(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTables", reflect.TypeOf((*MockDynamoDBAPI)(nil).ListTables), arg0) +} + +// ListTablesPages mocks base method. +func (m *MockDynamoDBAPI) ListTablesPages(arg0 *dynamodb.ListTablesInput, arg1 func(*dynamodb.ListTablesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTablesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTablesPages indicates an expected call of ListTablesPages. +func (mr *MockDynamoDBAPIMockRecorder) ListTablesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTablesPages", reflect.TypeOf((*MockDynamoDBAPI)(nil).ListTablesPages), arg0, arg1) +} + +// ListTablesPagesWithContext mocks base method. +func (m *MockDynamoDBAPI) ListTablesPagesWithContext(arg0 aws.Context, arg1 *dynamodb.ListTablesInput, arg2 func(*dynamodb.ListTablesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTablesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTablesPagesWithContext indicates an expected call of ListTablesPagesWithContext. +func (mr *MockDynamoDBAPIMockRecorder) ListTablesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTablesPagesWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).ListTablesPagesWithContext), varargs...) +} + +// ListTablesRequest mocks base method. +func (m *MockDynamoDBAPI) ListTablesRequest(arg0 *dynamodb.ListTablesInput) (*request.Request, *dynamodb.ListTablesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTablesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.ListTablesOutput) + return ret0, ret1 +} + +// ListTablesRequest indicates an expected call of ListTablesRequest. +func (mr *MockDynamoDBAPIMockRecorder) ListTablesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTablesRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).ListTablesRequest), arg0) +} + +// ListTablesWithContext mocks base method. +func (m *MockDynamoDBAPI) ListTablesWithContext(arg0 aws.Context, arg1 *dynamodb.ListTablesInput, arg2 ...request.Option) (*dynamodb.ListTablesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTablesWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.ListTablesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTablesWithContext indicates an expected call of ListTablesWithContext. +func (mr *MockDynamoDBAPIMockRecorder) ListTablesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTablesWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).ListTablesWithContext), varargs...) +} + +// ListTagsOfResource mocks base method. +func (m *MockDynamoDBAPI) ListTagsOfResource(arg0 *dynamodb.ListTagsOfResourceInput) (*dynamodb.ListTagsOfResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTagsOfResource", arg0) + ret0, _ := ret[0].(*dynamodb.ListTagsOfResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTagsOfResource indicates an expected call of ListTagsOfResource. +func (mr *MockDynamoDBAPIMockRecorder) ListTagsOfResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsOfResource", reflect.TypeOf((*MockDynamoDBAPI)(nil).ListTagsOfResource), arg0) +} + +// ListTagsOfResourceRequest mocks base method. +func (m *MockDynamoDBAPI) ListTagsOfResourceRequest(arg0 *dynamodb.ListTagsOfResourceInput) (*request.Request, *dynamodb.ListTagsOfResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTagsOfResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.ListTagsOfResourceOutput) + return ret0, ret1 +} + +// ListTagsOfResourceRequest indicates an expected call of ListTagsOfResourceRequest. +func (mr *MockDynamoDBAPIMockRecorder) ListTagsOfResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsOfResourceRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).ListTagsOfResourceRequest), arg0) +} + +// ListTagsOfResourceWithContext mocks base method. +func (m *MockDynamoDBAPI) ListTagsOfResourceWithContext(arg0 aws.Context, arg1 *dynamodb.ListTagsOfResourceInput, arg2 ...request.Option) (*dynamodb.ListTagsOfResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTagsOfResourceWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.ListTagsOfResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTagsOfResourceWithContext indicates an expected call of ListTagsOfResourceWithContext. +func (mr *MockDynamoDBAPIMockRecorder) ListTagsOfResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsOfResourceWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).ListTagsOfResourceWithContext), varargs...) +} + +// PutItem mocks base method. +func (m *MockDynamoDBAPI) PutItem(arg0 *dynamodb.PutItemInput) (*dynamodb.PutItemOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutItem", arg0) + ret0, _ := ret[0].(*dynamodb.PutItemOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutItem indicates an expected call of PutItem. +func (mr *MockDynamoDBAPIMockRecorder) PutItem(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutItem", reflect.TypeOf((*MockDynamoDBAPI)(nil).PutItem), arg0) +} + +// PutItemRequest mocks base method. +func (m *MockDynamoDBAPI) PutItemRequest(arg0 *dynamodb.PutItemInput) (*request.Request, *dynamodb.PutItemOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutItemRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.PutItemOutput) + return ret0, ret1 +} + +// PutItemRequest indicates an expected call of PutItemRequest. +func (mr *MockDynamoDBAPIMockRecorder) PutItemRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutItemRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).PutItemRequest), arg0) +} + +// PutItemWithContext mocks base method. +func (m *MockDynamoDBAPI) PutItemWithContext(arg0 aws.Context, arg1 *dynamodb.PutItemInput, arg2 ...request.Option) (*dynamodb.PutItemOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PutItemWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.PutItemOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutItemWithContext indicates an expected call of PutItemWithContext. +func (mr *MockDynamoDBAPIMockRecorder) PutItemWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutItemWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).PutItemWithContext), varargs...) +} + +// PutResourcePolicy mocks base method. +func (m *MockDynamoDBAPI) PutResourcePolicy(arg0 *dynamodb.PutResourcePolicyInput) (*dynamodb.PutResourcePolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutResourcePolicy", arg0) + ret0, _ := ret[0].(*dynamodb.PutResourcePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutResourcePolicy indicates an expected call of PutResourcePolicy. +func (mr *MockDynamoDBAPIMockRecorder) PutResourcePolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutResourcePolicy", reflect.TypeOf((*MockDynamoDBAPI)(nil).PutResourcePolicy), arg0) +} + +// PutResourcePolicyRequest mocks base method. +func (m *MockDynamoDBAPI) PutResourcePolicyRequest(arg0 *dynamodb.PutResourcePolicyInput) (*request.Request, *dynamodb.PutResourcePolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutResourcePolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.PutResourcePolicyOutput) + return ret0, ret1 +} + +// PutResourcePolicyRequest indicates an expected call of PutResourcePolicyRequest. +func (mr *MockDynamoDBAPIMockRecorder) PutResourcePolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutResourcePolicyRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).PutResourcePolicyRequest), arg0) +} + +// PutResourcePolicyWithContext mocks base method. +func (m *MockDynamoDBAPI) PutResourcePolicyWithContext(arg0 aws.Context, arg1 *dynamodb.PutResourcePolicyInput, arg2 ...request.Option) (*dynamodb.PutResourcePolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PutResourcePolicyWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.PutResourcePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutResourcePolicyWithContext indicates an expected call of PutResourcePolicyWithContext. +func (mr *MockDynamoDBAPIMockRecorder) PutResourcePolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutResourcePolicyWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).PutResourcePolicyWithContext), varargs...) +} + +// Query mocks base method. +func (m *MockDynamoDBAPI) Query(arg0 *dynamodb.QueryInput) (*dynamodb.QueryOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Query", arg0) + ret0, _ := ret[0].(*dynamodb.QueryOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// Query indicates an expected call of Query. +func (mr *MockDynamoDBAPIMockRecorder) Query(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Query", reflect.TypeOf((*MockDynamoDBAPI)(nil).Query), arg0) +} + +// QueryPages mocks base method. +func (m *MockDynamoDBAPI) QueryPages(arg0 *dynamodb.QueryInput, arg1 func(*dynamodb.QueryOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "QueryPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// QueryPages indicates an expected call of QueryPages. +func (mr *MockDynamoDBAPIMockRecorder) QueryPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryPages", reflect.TypeOf((*MockDynamoDBAPI)(nil).QueryPages), arg0, arg1) +} + +// QueryPagesWithContext mocks base method. +func (m *MockDynamoDBAPI) QueryPagesWithContext(arg0 aws.Context, arg1 *dynamodb.QueryInput, arg2 func(*dynamodb.QueryOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "QueryPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// QueryPagesWithContext indicates an expected call of QueryPagesWithContext. +func (mr *MockDynamoDBAPIMockRecorder) QueryPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryPagesWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).QueryPagesWithContext), varargs...) +} + +// QueryRequest mocks base method. +func (m *MockDynamoDBAPI) QueryRequest(arg0 *dynamodb.QueryInput) (*request.Request, *dynamodb.QueryOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "QueryRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.QueryOutput) + return ret0, ret1 +} + +// QueryRequest indicates an expected call of QueryRequest. +func (mr *MockDynamoDBAPIMockRecorder) QueryRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).QueryRequest), arg0) +} + +// QueryWithContext mocks base method. +func (m *MockDynamoDBAPI) QueryWithContext(arg0 aws.Context, arg1 *dynamodb.QueryInput, arg2 ...request.Option) (*dynamodb.QueryOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "QueryWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.QueryOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// QueryWithContext indicates an expected call of QueryWithContext. +func (mr *MockDynamoDBAPIMockRecorder) QueryWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).QueryWithContext), varargs...) +} + +// RestoreTableFromBackup mocks base method. +func (m *MockDynamoDBAPI) RestoreTableFromBackup(arg0 *dynamodb.RestoreTableFromBackupInput) (*dynamodb.RestoreTableFromBackupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RestoreTableFromBackup", arg0) + ret0, _ := ret[0].(*dynamodb.RestoreTableFromBackupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RestoreTableFromBackup indicates an expected call of RestoreTableFromBackup. +func (mr *MockDynamoDBAPIMockRecorder) RestoreTableFromBackup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RestoreTableFromBackup", reflect.TypeOf((*MockDynamoDBAPI)(nil).RestoreTableFromBackup), arg0) +} + +// RestoreTableFromBackupRequest mocks base method. +func (m *MockDynamoDBAPI) RestoreTableFromBackupRequest(arg0 *dynamodb.RestoreTableFromBackupInput) (*request.Request, *dynamodb.RestoreTableFromBackupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RestoreTableFromBackupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.RestoreTableFromBackupOutput) + return ret0, ret1 +} + +// RestoreTableFromBackupRequest indicates an expected call of RestoreTableFromBackupRequest. +func (mr *MockDynamoDBAPIMockRecorder) RestoreTableFromBackupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RestoreTableFromBackupRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).RestoreTableFromBackupRequest), arg0) +} + +// RestoreTableFromBackupWithContext mocks base method. +func (m *MockDynamoDBAPI) RestoreTableFromBackupWithContext(arg0 aws.Context, arg1 *dynamodb.RestoreTableFromBackupInput, arg2 ...request.Option) (*dynamodb.RestoreTableFromBackupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RestoreTableFromBackupWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.RestoreTableFromBackupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RestoreTableFromBackupWithContext indicates an expected call of RestoreTableFromBackupWithContext. +func (mr *MockDynamoDBAPIMockRecorder) RestoreTableFromBackupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RestoreTableFromBackupWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).RestoreTableFromBackupWithContext), varargs...) +} + +// RestoreTableToPointInTime mocks base method. +func (m *MockDynamoDBAPI) RestoreTableToPointInTime(arg0 *dynamodb.RestoreTableToPointInTimeInput) (*dynamodb.RestoreTableToPointInTimeOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RestoreTableToPointInTime", arg0) + ret0, _ := ret[0].(*dynamodb.RestoreTableToPointInTimeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RestoreTableToPointInTime indicates an expected call of RestoreTableToPointInTime. +func (mr *MockDynamoDBAPIMockRecorder) RestoreTableToPointInTime(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RestoreTableToPointInTime", reflect.TypeOf((*MockDynamoDBAPI)(nil).RestoreTableToPointInTime), arg0) +} + +// RestoreTableToPointInTimeRequest mocks base method. +func (m *MockDynamoDBAPI) RestoreTableToPointInTimeRequest(arg0 *dynamodb.RestoreTableToPointInTimeInput) (*request.Request, *dynamodb.RestoreTableToPointInTimeOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RestoreTableToPointInTimeRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.RestoreTableToPointInTimeOutput) + return ret0, ret1 +} + +// RestoreTableToPointInTimeRequest indicates an expected call of RestoreTableToPointInTimeRequest. +func (mr *MockDynamoDBAPIMockRecorder) RestoreTableToPointInTimeRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RestoreTableToPointInTimeRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).RestoreTableToPointInTimeRequest), arg0) +} + +// RestoreTableToPointInTimeWithContext mocks base method. +func (m *MockDynamoDBAPI) RestoreTableToPointInTimeWithContext(arg0 aws.Context, arg1 *dynamodb.RestoreTableToPointInTimeInput, arg2 ...request.Option) (*dynamodb.RestoreTableToPointInTimeOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RestoreTableToPointInTimeWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.RestoreTableToPointInTimeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RestoreTableToPointInTimeWithContext indicates an expected call of RestoreTableToPointInTimeWithContext. +func (mr *MockDynamoDBAPIMockRecorder) RestoreTableToPointInTimeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RestoreTableToPointInTimeWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).RestoreTableToPointInTimeWithContext), varargs...) +} + +// Scan mocks base method. +func (m *MockDynamoDBAPI) Scan(arg0 *dynamodb.ScanInput) (*dynamodb.ScanOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Scan", arg0) + ret0, _ := ret[0].(*dynamodb.ScanOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// Scan indicates an expected call of Scan. +func (mr *MockDynamoDBAPIMockRecorder) Scan(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Scan", reflect.TypeOf((*MockDynamoDBAPI)(nil).Scan), arg0) +} + +// ScanPages mocks base method. +func (m *MockDynamoDBAPI) ScanPages(arg0 *dynamodb.ScanInput, arg1 func(*dynamodb.ScanOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ScanPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ScanPages indicates an expected call of ScanPages. +func (mr *MockDynamoDBAPIMockRecorder) ScanPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScanPages", reflect.TypeOf((*MockDynamoDBAPI)(nil).ScanPages), arg0, arg1) +} + +// ScanPagesWithContext mocks base method. +func (m *MockDynamoDBAPI) ScanPagesWithContext(arg0 aws.Context, arg1 *dynamodb.ScanInput, arg2 func(*dynamodb.ScanOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ScanPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ScanPagesWithContext indicates an expected call of ScanPagesWithContext. +func (mr *MockDynamoDBAPIMockRecorder) ScanPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScanPagesWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).ScanPagesWithContext), varargs...) +} + +// ScanRequest mocks base method. +func (m *MockDynamoDBAPI) ScanRequest(arg0 *dynamodb.ScanInput) (*request.Request, *dynamodb.ScanOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ScanRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.ScanOutput) + return ret0, ret1 +} + +// ScanRequest indicates an expected call of ScanRequest. +func (mr *MockDynamoDBAPIMockRecorder) ScanRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScanRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).ScanRequest), arg0) +} + +// ScanWithContext mocks base method. +func (m *MockDynamoDBAPI) ScanWithContext(arg0 aws.Context, arg1 *dynamodb.ScanInput, arg2 ...request.Option) (*dynamodb.ScanOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ScanWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.ScanOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ScanWithContext indicates an expected call of ScanWithContext. +func (mr *MockDynamoDBAPIMockRecorder) ScanWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScanWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).ScanWithContext), varargs...) +} + +// TagResource mocks base method. +func (m *MockDynamoDBAPI) TagResource(arg0 *dynamodb.TagResourceInput) (*dynamodb.TagResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagResource", arg0) + ret0, _ := ret[0].(*dynamodb.TagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagResource indicates an expected call of TagResource. +func (mr *MockDynamoDBAPIMockRecorder) TagResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagResource", reflect.TypeOf((*MockDynamoDBAPI)(nil).TagResource), arg0) +} + +// TagResourceRequest mocks base method. +func (m *MockDynamoDBAPI) TagResourceRequest(arg0 *dynamodb.TagResourceInput) (*request.Request, *dynamodb.TagResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.TagResourceOutput) + return ret0, ret1 +} + +// TagResourceRequest indicates an expected call of TagResourceRequest. +func (mr *MockDynamoDBAPIMockRecorder) TagResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagResourceRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).TagResourceRequest), arg0) +} + +// TagResourceWithContext mocks base method. +func (m *MockDynamoDBAPI) TagResourceWithContext(arg0 aws.Context, arg1 *dynamodb.TagResourceInput, arg2 ...request.Option) (*dynamodb.TagResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "TagResourceWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.TagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagResourceWithContext indicates an expected call of TagResourceWithContext. +func (mr *MockDynamoDBAPIMockRecorder) TagResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagResourceWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).TagResourceWithContext), varargs...) +} + +// TransactGetItems mocks base method. +func (m *MockDynamoDBAPI) TransactGetItems(arg0 *dynamodb.TransactGetItemsInput) (*dynamodb.TransactGetItemsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TransactGetItems", arg0) + ret0, _ := ret[0].(*dynamodb.TransactGetItemsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TransactGetItems indicates an expected call of TransactGetItems. +func (mr *MockDynamoDBAPIMockRecorder) TransactGetItems(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TransactGetItems", reflect.TypeOf((*MockDynamoDBAPI)(nil).TransactGetItems), arg0) +} + +// TransactGetItemsRequest mocks base method. +func (m *MockDynamoDBAPI) TransactGetItemsRequest(arg0 *dynamodb.TransactGetItemsInput) (*request.Request, *dynamodb.TransactGetItemsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TransactGetItemsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.TransactGetItemsOutput) + return ret0, ret1 +} + +// TransactGetItemsRequest indicates an expected call of TransactGetItemsRequest. +func (mr *MockDynamoDBAPIMockRecorder) TransactGetItemsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TransactGetItemsRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).TransactGetItemsRequest), arg0) +} + +// TransactGetItemsWithContext mocks base method. +func (m *MockDynamoDBAPI) TransactGetItemsWithContext(arg0 aws.Context, arg1 *dynamodb.TransactGetItemsInput, arg2 ...request.Option) (*dynamodb.TransactGetItemsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "TransactGetItemsWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.TransactGetItemsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TransactGetItemsWithContext indicates an expected call of TransactGetItemsWithContext. +func (mr *MockDynamoDBAPIMockRecorder) TransactGetItemsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TransactGetItemsWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).TransactGetItemsWithContext), varargs...) +} + +// TransactWriteItems mocks base method. +func (m *MockDynamoDBAPI) TransactWriteItems(arg0 *dynamodb.TransactWriteItemsInput) (*dynamodb.TransactWriteItemsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TransactWriteItems", arg0) + ret0, _ := ret[0].(*dynamodb.TransactWriteItemsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TransactWriteItems indicates an expected call of TransactWriteItems. +func (mr *MockDynamoDBAPIMockRecorder) TransactWriteItems(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TransactWriteItems", reflect.TypeOf((*MockDynamoDBAPI)(nil).TransactWriteItems), arg0) +} + +// TransactWriteItemsRequest mocks base method. +func (m *MockDynamoDBAPI) TransactWriteItemsRequest(arg0 *dynamodb.TransactWriteItemsInput) (*request.Request, *dynamodb.TransactWriteItemsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TransactWriteItemsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.TransactWriteItemsOutput) + return ret0, ret1 +} + +// TransactWriteItemsRequest indicates an expected call of TransactWriteItemsRequest. +func (mr *MockDynamoDBAPIMockRecorder) TransactWriteItemsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TransactWriteItemsRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).TransactWriteItemsRequest), arg0) +} + +// TransactWriteItemsWithContext mocks base method. +func (m *MockDynamoDBAPI) TransactWriteItemsWithContext(arg0 aws.Context, arg1 *dynamodb.TransactWriteItemsInput, arg2 ...request.Option) (*dynamodb.TransactWriteItemsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "TransactWriteItemsWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.TransactWriteItemsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TransactWriteItemsWithContext indicates an expected call of TransactWriteItemsWithContext. +func (mr *MockDynamoDBAPIMockRecorder) TransactWriteItemsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TransactWriteItemsWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).TransactWriteItemsWithContext), varargs...) +} + +// UntagResource mocks base method. +func (m *MockDynamoDBAPI) UntagResource(arg0 *dynamodb.UntagResourceInput) (*dynamodb.UntagResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagResource", arg0) + ret0, _ := ret[0].(*dynamodb.UntagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagResource indicates an expected call of UntagResource. +func (mr *MockDynamoDBAPIMockRecorder) UntagResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagResource", reflect.TypeOf((*MockDynamoDBAPI)(nil).UntagResource), arg0) +} + +// UntagResourceRequest mocks base method. +func (m *MockDynamoDBAPI) UntagResourceRequest(arg0 *dynamodb.UntagResourceInput) (*request.Request, *dynamodb.UntagResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.UntagResourceOutput) + return ret0, ret1 +} + +// UntagResourceRequest indicates an expected call of UntagResourceRequest. +func (mr *MockDynamoDBAPIMockRecorder) UntagResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagResourceRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).UntagResourceRequest), arg0) +} + +// UntagResourceWithContext mocks base method. +func (m *MockDynamoDBAPI) UntagResourceWithContext(arg0 aws.Context, arg1 *dynamodb.UntagResourceInput, arg2 ...request.Option) (*dynamodb.UntagResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UntagResourceWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.UntagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagResourceWithContext indicates an expected call of UntagResourceWithContext. +func (mr *MockDynamoDBAPIMockRecorder) UntagResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagResourceWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).UntagResourceWithContext), varargs...) +} + +// UpdateContinuousBackups mocks base method. +func (m *MockDynamoDBAPI) UpdateContinuousBackups(arg0 *dynamodb.UpdateContinuousBackupsInput) (*dynamodb.UpdateContinuousBackupsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateContinuousBackups", arg0) + ret0, _ := ret[0].(*dynamodb.UpdateContinuousBackupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateContinuousBackups indicates an expected call of UpdateContinuousBackups. +func (mr *MockDynamoDBAPIMockRecorder) UpdateContinuousBackups(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateContinuousBackups", reflect.TypeOf((*MockDynamoDBAPI)(nil).UpdateContinuousBackups), arg0) +} + +// UpdateContinuousBackupsRequest mocks base method. +func (m *MockDynamoDBAPI) UpdateContinuousBackupsRequest(arg0 *dynamodb.UpdateContinuousBackupsInput) (*request.Request, *dynamodb.UpdateContinuousBackupsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateContinuousBackupsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.UpdateContinuousBackupsOutput) + return ret0, ret1 +} + +// UpdateContinuousBackupsRequest indicates an expected call of UpdateContinuousBackupsRequest. +func (mr *MockDynamoDBAPIMockRecorder) UpdateContinuousBackupsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateContinuousBackupsRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).UpdateContinuousBackupsRequest), arg0) +} + +// UpdateContinuousBackupsWithContext mocks base method. +func (m *MockDynamoDBAPI) UpdateContinuousBackupsWithContext(arg0 aws.Context, arg1 *dynamodb.UpdateContinuousBackupsInput, arg2 ...request.Option) (*dynamodb.UpdateContinuousBackupsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateContinuousBackupsWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.UpdateContinuousBackupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateContinuousBackupsWithContext indicates an expected call of UpdateContinuousBackupsWithContext. +func (mr *MockDynamoDBAPIMockRecorder) UpdateContinuousBackupsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateContinuousBackupsWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).UpdateContinuousBackupsWithContext), varargs...) +} + +// UpdateContributorInsights mocks base method. +func (m *MockDynamoDBAPI) UpdateContributorInsights(arg0 *dynamodb.UpdateContributorInsightsInput) (*dynamodb.UpdateContributorInsightsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateContributorInsights", arg0) + ret0, _ := ret[0].(*dynamodb.UpdateContributorInsightsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateContributorInsights indicates an expected call of UpdateContributorInsights. +func (mr *MockDynamoDBAPIMockRecorder) UpdateContributorInsights(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateContributorInsights", reflect.TypeOf((*MockDynamoDBAPI)(nil).UpdateContributorInsights), arg0) +} + +// UpdateContributorInsightsRequest mocks base method. +func (m *MockDynamoDBAPI) UpdateContributorInsightsRequest(arg0 *dynamodb.UpdateContributorInsightsInput) (*request.Request, *dynamodb.UpdateContributorInsightsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateContributorInsightsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.UpdateContributorInsightsOutput) + return ret0, ret1 +} + +// UpdateContributorInsightsRequest indicates an expected call of UpdateContributorInsightsRequest. +func (mr *MockDynamoDBAPIMockRecorder) UpdateContributorInsightsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateContributorInsightsRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).UpdateContributorInsightsRequest), arg0) +} + +// UpdateContributorInsightsWithContext mocks base method. +func (m *MockDynamoDBAPI) UpdateContributorInsightsWithContext(arg0 aws.Context, arg1 *dynamodb.UpdateContributorInsightsInput, arg2 ...request.Option) (*dynamodb.UpdateContributorInsightsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateContributorInsightsWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.UpdateContributorInsightsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateContributorInsightsWithContext indicates an expected call of UpdateContributorInsightsWithContext. +func (mr *MockDynamoDBAPIMockRecorder) UpdateContributorInsightsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateContributorInsightsWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).UpdateContributorInsightsWithContext), varargs...) +} + +// UpdateGlobalTable mocks base method. +func (m *MockDynamoDBAPI) UpdateGlobalTable(arg0 *dynamodb.UpdateGlobalTableInput) (*dynamodb.UpdateGlobalTableOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateGlobalTable", arg0) + ret0, _ := ret[0].(*dynamodb.UpdateGlobalTableOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateGlobalTable indicates an expected call of UpdateGlobalTable. +func (mr *MockDynamoDBAPIMockRecorder) UpdateGlobalTable(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGlobalTable", reflect.TypeOf((*MockDynamoDBAPI)(nil).UpdateGlobalTable), arg0) +} + +// UpdateGlobalTableRequest mocks base method. +func (m *MockDynamoDBAPI) UpdateGlobalTableRequest(arg0 *dynamodb.UpdateGlobalTableInput) (*request.Request, *dynamodb.UpdateGlobalTableOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateGlobalTableRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.UpdateGlobalTableOutput) + return ret0, ret1 +} + +// UpdateGlobalTableRequest indicates an expected call of UpdateGlobalTableRequest. +func (mr *MockDynamoDBAPIMockRecorder) UpdateGlobalTableRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGlobalTableRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).UpdateGlobalTableRequest), arg0) +} + +// UpdateGlobalTableSettings mocks base method. +func (m *MockDynamoDBAPI) UpdateGlobalTableSettings(arg0 *dynamodb.UpdateGlobalTableSettingsInput) (*dynamodb.UpdateGlobalTableSettingsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateGlobalTableSettings", arg0) + ret0, _ := ret[0].(*dynamodb.UpdateGlobalTableSettingsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateGlobalTableSettings indicates an expected call of UpdateGlobalTableSettings. +func (mr *MockDynamoDBAPIMockRecorder) UpdateGlobalTableSettings(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGlobalTableSettings", reflect.TypeOf((*MockDynamoDBAPI)(nil).UpdateGlobalTableSettings), arg0) +} + +// UpdateGlobalTableSettingsRequest mocks base method. +func (m *MockDynamoDBAPI) UpdateGlobalTableSettingsRequest(arg0 *dynamodb.UpdateGlobalTableSettingsInput) (*request.Request, *dynamodb.UpdateGlobalTableSettingsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateGlobalTableSettingsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.UpdateGlobalTableSettingsOutput) + return ret0, ret1 +} + +// UpdateGlobalTableSettingsRequest indicates an expected call of UpdateGlobalTableSettingsRequest. +func (mr *MockDynamoDBAPIMockRecorder) UpdateGlobalTableSettingsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGlobalTableSettingsRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).UpdateGlobalTableSettingsRequest), arg0) +} + +// UpdateGlobalTableSettingsWithContext mocks base method. +func (m *MockDynamoDBAPI) UpdateGlobalTableSettingsWithContext(arg0 aws.Context, arg1 *dynamodb.UpdateGlobalTableSettingsInput, arg2 ...request.Option) (*dynamodb.UpdateGlobalTableSettingsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateGlobalTableSettingsWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.UpdateGlobalTableSettingsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateGlobalTableSettingsWithContext indicates an expected call of UpdateGlobalTableSettingsWithContext. +func (mr *MockDynamoDBAPIMockRecorder) UpdateGlobalTableSettingsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGlobalTableSettingsWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).UpdateGlobalTableSettingsWithContext), varargs...) +} + +// UpdateGlobalTableWithContext mocks base method. +func (m *MockDynamoDBAPI) UpdateGlobalTableWithContext(arg0 aws.Context, arg1 *dynamodb.UpdateGlobalTableInput, arg2 ...request.Option) (*dynamodb.UpdateGlobalTableOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateGlobalTableWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.UpdateGlobalTableOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateGlobalTableWithContext indicates an expected call of UpdateGlobalTableWithContext. +func (mr *MockDynamoDBAPIMockRecorder) UpdateGlobalTableWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGlobalTableWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).UpdateGlobalTableWithContext), varargs...) +} + +// UpdateItem mocks base method. +func (m *MockDynamoDBAPI) UpdateItem(arg0 *dynamodb.UpdateItemInput) (*dynamodb.UpdateItemOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateItem", arg0) + ret0, _ := ret[0].(*dynamodb.UpdateItemOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateItem indicates an expected call of UpdateItem. +func (mr *MockDynamoDBAPIMockRecorder) UpdateItem(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateItem", reflect.TypeOf((*MockDynamoDBAPI)(nil).UpdateItem), arg0) +} + +// UpdateItemRequest mocks base method. +func (m *MockDynamoDBAPI) UpdateItemRequest(arg0 *dynamodb.UpdateItemInput) (*request.Request, *dynamodb.UpdateItemOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateItemRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.UpdateItemOutput) + return ret0, ret1 +} + +// UpdateItemRequest indicates an expected call of UpdateItemRequest. +func (mr *MockDynamoDBAPIMockRecorder) UpdateItemRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateItemRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).UpdateItemRequest), arg0) +} + +// UpdateItemWithContext mocks base method. +func (m *MockDynamoDBAPI) UpdateItemWithContext(arg0 aws.Context, arg1 *dynamodb.UpdateItemInput, arg2 ...request.Option) (*dynamodb.UpdateItemOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateItemWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.UpdateItemOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateItemWithContext indicates an expected call of UpdateItemWithContext. +func (mr *MockDynamoDBAPIMockRecorder) UpdateItemWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateItemWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).UpdateItemWithContext), varargs...) +} + +// UpdateKinesisStreamingDestination mocks base method. +func (m *MockDynamoDBAPI) UpdateKinesisStreamingDestination(arg0 *dynamodb.UpdateKinesisStreamingDestinationInput) (*dynamodb.UpdateKinesisStreamingDestinationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateKinesisStreamingDestination", arg0) + ret0, _ := ret[0].(*dynamodb.UpdateKinesisStreamingDestinationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateKinesisStreamingDestination indicates an expected call of UpdateKinesisStreamingDestination. +func (mr *MockDynamoDBAPIMockRecorder) UpdateKinesisStreamingDestination(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateKinesisStreamingDestination", reflect.TypeOf((*MockDynamoDBAPI)(nil).UpdateKinesisStreamingDestination), arg0) +} + +// UpdateKinesisStreamingDestinationRequest mocks base method. +func (m *MockDynamoDBAPI) UpdateKinesisStreamingDestinationRequest(arg0 *dynamodb.UpdateKinesisStreamingDestinationInput) (*request.Request, *dynamodb.UpdateKinesisStreamingDestinationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateKinesisStreamingDestinationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.UpdateKinesisStreamingDestinationOutput) + return ret0, ret1 +} + +// UpdateKinesisStreamingDestinationRequest indicates an expected call of UpdateKinesisStreamingDestinationRequest. +func (mr *MockDynamoDBAPIMockRecorder) UpdateKinesisStreamingDestinationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateKinesisStreamingDestinationRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).UpdateKinesisStreamingDestinationRequest), arg0) +} + +// UpdateKinesisStreamingDestinationWithContext mocks base method. +func (m *MockDynamoDBAPI) UpdateKinesisStreamingDestinationWithContext(arg0 aws.Context, arg1 *dynamodb.UpdateKinesisStreamingDestinationInput, arg2 ...request.Option) (*dynamodb.UpdateKinesisStreamingDestinationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateKinesisStreamingDestinationWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.UpdateKinesisStreamingDestinationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateKinesisStreamingDestinationWithContext indicates an expected call of UpdateKinesisStreamingDestinationWithContext. +func (mr *MockDynamoDBAPIMockRecorder) UpdateKinesisStreamingDestinationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateKinesisStreamingDestinationWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).UpdateKinesisStreamingDestinationWithContext), varargs...) +} + +// UpdateTable mocks base method. +func (m *MockDynamoDBAPI) UpdateTable(arg0 *dynamodb.UpdateTableInput) (*dynamodb.UpdateTableOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTable", arg0) + ret0, _ := ret[0].(*dynamodb.UpdateTableOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTable indicates an expected call of UpdateTable. +func (mr *MockDynamoDBAPIMockRecorder) UpdateTable(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTable", reflect.TypeOf((*MockDynamoDBAPI)(nil).UpdateTable), arg0) +} + +// UpdateTableReplicaAutoScaling mocks base method. +func (m *MockDynamoDBAPI) UpdateTableReplicaAutoScaling(arg0 *dynamodb.UpdateTableReplicaAutoScalingInput) (*dynamodb.UpdateTableReplicaAutoScalingOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTableReplicaAutoScaling", arg0) + ret0, _ := ret[0].(*dynamodb.UpdateTableReplicaAutoScalingOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTableReplicaAutoScaling indicates an expected call of UpdateTableReplicaAutoScaling. +func (mr *MockDynamoDBAPIMockRecorder) UpdateTableReplicaAutoScaling(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTableReplicaAutoScaling", reflect.TypeOf((*MockDynamoDBAPI)(nil).UpdateTableReplicaAutoScaling), arg0) +} + +// UpdateTableReplicaAutoScalingRequest mocks base method. +func (m *MockDynamoDBAPI) UpdateTableReplicaAutoScalingRequest(arg0 *dynamodb.UpdateTableReplicaAutoScalingInput) (*request.Request, *dynamodb.UpdateTableReplicaAutoScalingOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTableReplicaAutoScalingRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.UpdateTableReplicaAutoScalingOutput) + return ret0, ret1 +} + +// UpdateTableReplicaAutoScalingRequest indicates an expected call of UpdateTableReplicaAutoScalingRequest. +func (mr *MockDynamoDBAPIMockRecorder) UpdateTableReplicaAutoScalingRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTableReplicaAutoScalingRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).UpdateTableReplicaAutoScalingRequest), arg0) +} + +// UpdateTableReplicaAutoScalingWithContext mocks base method. +func (m *MockDynamoDBAPI) UpdateTableReplicaAutoScalingWithContext(arg0 aws.Context, arg1 *dynamodb.UpdateTableReplicaAutoScalingInput, arg2 ...request.Option) (*dynamodb.UpdateTableReplicaAutoScalingOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateTableReplicaAutoScalingWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.UpdateTableReplicaAutoScalingOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTableReplicaAutoScalingWithContext indicates an expected call of UpdateTableReplicaAutoScalingWithContext. +func (mr *MockDynamoDBAPIMockRecorder) UpdateTableReplicaAutoScalingWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTableReplicaAutoScalingWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).UpdateTableReplicaAutoScalingWithContext), varargs...) +} + +// UpdateTableRequest mocks base method. +func (m *MockDynamoDBAPI) UpdateTableRequest(arg0 *dynamodb.UpdateTableInput) (*request.Request, *dynamodb.UpdateTableOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTableRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.UpdateTableOutput) + return ret0, ret1 +} + +// UpdateTableRequest indicates an expected call of UpdateTableRequest. +func (mr *MockDynamoDBAPIMockRecorder) UpdateTableRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTableRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).UpdateTableRequest), arg0) +} + +// UpdateTableWithContext mocks base method. +func (m *MockDynamoDBAPI) UpdateTableWithContext(arg0 aws.Context, arg1 *dynamodb.UpdateTableInput, arg2 ...request.Option) (*dynamodb.UpdateTableOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateTableWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.UpdateTableOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTableWithContext indicates an expected call of UpdateTableWithContext. +func (mr *MockDynamoDBAPIMockRecorder) UpdateTableWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTableWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).UpdateTableWithContext), varargs...) +} + +// UpdateTimeToLive mocks base method. +func (m *MockDynamoDBAPI) UpdateTimeToLive(arg0 *dynamodb.UpdateTimeToLiveInput) (*dynamodb.UpdateTimeToLiveOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTimeToLive", arg0) + ret0, _ := ret[0].(*dynamodb.UpdateTimeToLiveOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTimeToLive indicates an expected call of UpdateTimeToLive. +func (mr *MockDynamoDBAPIMockRecorder) UpdateTimeToLive(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTimeToLive", reflect.TypeOf((*MockDynamoDBAPI)(nil).UpdateTimeToLive), arg0) +} + +// UpdateTimeToLiveRequest mocks base method. +func (m *MockDynamoDBAPI) UpdateTimeToLiveRequest(arg0 *dynamodb.UpdateTimeToLiveInput) (*request.Request, *dynamodb.UpdateTimeToLiveOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTimeToLiveRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*dynamodb.UpdateTimeToLiveOutput) + return ret0, ret1 +} + +// UpdateTimeToLiveRequest indicates an expected call of UpdateTimeToLiveRequest. +func (mr *MockDynamoDBAPIMockRecorder) UpdateTimeToLiveRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTimeToLiveRequest", reflect.TypeOf((*MockDynamoDBAPI)(nil).UpdateTimeToLiveRequest), arg0) +} + +// UpdateTimeToLiveWithContext mocks base method. +func (m *MockDynamoDBAPI) UpdateTimeToLiveWithContext(arg0 aws.Context, arg1 *dynamodb.UpdateTimeToLiveInput, arg2 ...request.Option) (*dynamodb.UpdateTimeToLiveOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateTimeToLiveWithContext", varargs...) + ret0, _ := ret[0].(*dynamodb.UpdateTimeToLiveOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTimeToLiveWithContext indicates an expected call of UpdateTimeToLiveWithContext. +func (mr *MockDynamoDBAPIMockRecorder) UpdateTimeToLiveWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTimeToLiveWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).UpdateTimeToLiveWithContext), varargs...) +} + +// WaitUntilTableExists mocks base method. +func (m *MockDynamoDBAPI) WaitUntilTableExists(arg0 *dynamodb.DescribeTableInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilTableExists", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilTableExists indicates an expected call of WaitUntilTableExists. +func (mr *MockDynamoDBAPIMockRecorder) WaitUntilTableExists(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilTableExists", reflect.TypeOf((*MockDynamoDBAPI)(nil).WaitUntilTableExists), arg0) +} + +// WaitUntilTableExistsWithContext mocks base method. +func (m *MockDynamoDBAPI) WaitUntilTableExistsWithContext(arg0 aws.Context, arg1 *dynamodb.DescribeTableInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilTableExistsWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilTableExistsWithContext indicates an expected call of WaitUntilTableExistsWithContext. +func (mr *MockDynamoDBAPIMockRecorder) WaitUntilTableExistsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilTableExistsWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).WaitUntilTableExistsWithContext), varargs...) +} + +// WaitUntilTableNotExists mocks base method. +func (m *MockDynamoDBAPI) WaitUntilTableNotExists(arg0 *dynamodb.DescribeTableInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilTableNotExists", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilTableNotExists indicates an expected call of WaitUntilTableNotExists. +func (mr *MockDynamoDBAPIMockRecorder) WaitUntilTableNotExists(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilTableNotExists", reflect.TypeOf((*MockDynamoDBAPI)(nil).WaitUntilTableNotExists), arg0) +} + +// WaitUntilTableNotExistsWithContext mocks base method. +func (m *MockDynamoDBAPI) WaitUntilTableNotExistsWithContext(arg0 aws.Context, arg1 *dynamodb.DescribeTableInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilTableNotExistsWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilTableNotExistsWithContext indicates an expected call of WaitUntilTableNotExistsWithContext. +func (mr *MockDynamoDBAPIMockRecorder) WaitUntilTableNotExistsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilTableNotExistsWithContext", reflect.TypeOf((*MockDynamoDBAPI)(nil).WaitUntilTableNotExistsWithContext), varargs...) +} diff --git a/resources/dynamodb-backup_mock_test.go b/resources/dynamodb-backup_mock_test.go new file mode 100644 index 00000000..dfcb0c59 --- /dev/null +++ b/resources/dynamodb-backup_mock_test.go @@ -0,0 +1,81 @@ +package resources + +import ( + "context" + "testing" + "time" + + "github.com/golang/mock/gomock" + "github.com/gotidy/ptr" + "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/dynamodb" + + "github.com/ekristen/aws-nuke/v3/mocks/mock_dynamodbiface" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +func Test_Mock_DynamoDBBackup_List(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockSvc := mock_dynamodbiface.NewMockDynamoDBAPI(ctrl) + + mockSvc.EXPECT().ListBackups(&dynamodb.ListBackupsInput{ + ExclusiveStartBackupArn: nil, + }).Return(&dynamodb.ListBackupsOutput{ + BackupSummaries: []*dynamodb.BackupSummary{ + { + BackupArn: ptr.String("arn:aws:dynamodb:us-west-2:123456789012:table/ExampleTable/backup/1234567890123"), + BackupName: ptr.String("ExampleBackup"), + BackupCreationDateTime: ptr.Time(time.Now()), + TableName: ptr.String("ExampleTable"), + TableArn: ptr.String("arn:aws:dynamodb:us-west-2:123456789012:table/ExampleTable"), + }, + }, + }, nil) + + lister := &DynamoDBBackupLister{ + mockSvc: mockSvc, + } + + resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ + Region: &nuke.Region{ + Name: "us-east-2", + }, + Session: session.Must(session.NewSession()), + }) + a.Nil(err) + a.Len(resources, 1) +} + +func Test_Mock_DynamoDBBackup_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockSvc := mock_dynamodbiface.NewMockDynamoDBAPI(ctrl) + + mockSvc.EXPECT().DeleteBackup(&dynamodb.DeleteBackupInput{ + BackupArn: ptr.String("arn:aws:dynamodb:us-west-2:123456789012:table/ExampleTable/backup/1234567890123"), + }).Return(&dynamodb.DeleteBackupOutput{}, nil) + + now := time.Now() + + resource := &DynamoDBBackup{ + svc: mockSvc, + arn: ptr.String("arn:aws:dynamodb:us-west-2:123456789012:table/ExampleTable/backup/1234567890123"), + Name: ptr.String("ExampleBackup"), + CreateDate: ptr.Time(now), + TableName: ptr.String("ExampleTable"), + } + + a.Equal(now.Format(time.RFC3339), resource.Properties().Get("CreateDate")) + a.Equal("ExampleBackup", resource.Properties().Get("Name")) + a.Equal("ExampleTable", resource.Properties().Get("TableName")) + + err := resource.Remove(context.TODO()) + a.Nil(err) +} diff --git a/resources/dynamodb_mock_test.go b/resources/dynamodb_mock_test.go new file mode 100644 index 00000000..299889fe --- /dev/null +++ b/resources/dynamodb_mock_test.go @@ -0,0 +1,2 @@ +//go:generate ../mocks/generate_mocks.sh dynamodb dynamodbiface +package resources From b3bcab270ad7f6d8f87b435597d986dd27efd869 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 24 Jul 2024 17:25:19 -0600 Subject: [PATCH 368/617] style(dynamodb-backup): fix import organization --- resources/dynamodb-backup.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/dynamodb-backup.go b/resources/dynamodb-backup.go index 2f08a681..1161e939 100644 --- a/resources/dynamodb-backup.go +++ b/resources/dynamodb-backup.go @@ -2,15 +2,16 @@ package resources import ( "context" - "github.com/aws/aws-sdk-go/service/dynamodb/dynamodbiface" - "github.com/gotidy/ptr" "time" + "github.com/gotidy/ptr" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" "github.com/aws/aws-sdk-go/service/dynamodb" + "github.com/aws/aws-sdk-go/service/dynamodb/dynamodbiface" "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) From f54f3f23d718a835c6ac3e00fc80737fd3bef9d8 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 24 Jul 2024 20:38:00 -0600 Subject: [PATCH 369/617] feat(dynamodb-table): support disabling deletion protection --- resources/dynamodb-items.go | 10 ++-- resources/dynamodb-tables.go | 103 ++++++++++++++++++++++------------- 2 files changed, 71 insertions(+), 42 deletions(-) diff --git a/resources/dynamodb-items.go b/resources/dynamodb-items.go index ed58d681..dd439a49 100644 --- a/resources/dynamodb-items.go +++ b/resources/dynamodb-items.go @@ -51,7 +51,7 @@ func (l *DynamoDBTableItemLister) List(ctx context.Context, o interface{}) ([]re } describeParams := &dynamodb.DescribeTableInput{ - TableName: &dynamoTable.id, + TableName: dynamoTable.Name, } descResp, descErr := svc.DescribeTable(describeParams) @@ -61,7 +61,7 @@ func (l *DynamoDBTableItemLister) List(ctx context.Context, o interface{}) ([]re keyName := descResp.Table.KeySchema[0].AttributeName params := &dynamodb.ScanInput{ - TableName: &dynamoTable.id, + TableName: dynamoTable.Name, ProjectionExpression: aws.String("#key"), ExpressionAttributeNames: map[string]*string{ "#key": keyName, @@ -77,8 +77,8 @@ func (l *DynamoDBTableItemLister) List(ctx context.Context, o interface{}) ([]re var keyValue string for _, value := range itemMap { - value := strings.TrimSpace(value.String()) - keyValue = string([]rune(value)[8:(len([]rune(value)) - 3)]) + trimmedValue := strings.TrimSpace(value.String()) + keyValue = string([]rune(trimmedValue)[8:(len([]rune(trimmedValue)) - 3)]) } resources = append(resources, &DynamoDBTableItem{ @@ -105,7 +105,7 @@ type DynamoDBTableItem struct { func (i *DynamoDBTableItem) Remove(_ context.Context) error { params := &dynamodb.DeleteItemInput{ Key: i.id, - TableName: &i.table.id, + TableName: i.table.Name, } _, err := i.svc.DeleteItem(params) diff --git a/resources/dynamodb-tables.go b/resources/dynamodb-tables.go index 0527d6b5..b34248ba 100644 --- a/resources/dynamodb-tables.go +++ b/resources/dynamodb-tables.go @@ -2,8 +2,11 @@ package resources import ( "context" + "github.com/aws/aws-sdk-go/service/dynamodb/dynamodbiface" + "github.com/ekristen/libnuke/pkg/settings" + "github.com/gotidy/ptr" + "github.com/sirupsen/logrus" - "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/dynamodb" "github.com/ekristen/libnuke/pkg/registry" @@ -20,36 +23,58 @@ func init() { Name: DynamoDBTableResource, Scope: nuke.Account, Lister: &DynamoDBTableLister{}, + Settings: []string{ + "DisableDeletionProtection", + }, DependsOn: []string{ DynamoDBTableItemResource, }, }) } -type DynamoDBTableLister struct{} +type DynamoDBTableLister struct { + mockSvc dynamodbiface.DynamoDBAPI +} func (l *DynamoDBTableLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) + resources := make([]resource.Resource, 0) - svc := dynamodb.New(opts.Session) + var svc dynamodbiface.DynamoDBAPI + if l.mockSvc != nil { + svc = l.mockSvc + } else { + svc = dynamodb.New(opts.Session) + } resp, err := svc.ListTables(&dynamodb.ListTablesInput{}) if err != nil { return nil, err } - resources := make([]resource.Resource, 0) for _, tableName := range resp.TableNames { - tags, err := GetTableTags(svc, tableName) + table, err := svc.DescribeTable(&dynamodb.DescribeTableInput{ + TableName: tableName, + }) + if err != nil { + logrus.WithError(err).Warn("unable to describe table") + continue + } + tags, err := svc.ListTagsOfResource(&dynamodb.ListTagsOfResourceInput{ + ResourceArn: table.Table.TableArn, + }) if err != nil { + logrus.WithError(err).Warn("unable to list tags of resource") continue } resources = append(resources, &DynamoDBTable{ - svc: svc, - id: *tableName, - tags: tags, + svc: svc, + id: tableName, + protection: table.Table.DeletionProtectionEnabled, + Name: tableName, + Tags: tags.Tags, }) } @@ -57,17 +82,24 @@ func (l *DynamoDBTableLister) List(_ context.Context, o interface{}) ([]resource } type DynamoDBTable struct { - svc *dynamodb.DynamoDB - id string - tags []*dynamodb.Tag + svc dynamodbiface.DynamoDBAPI + settings *settings.Setting + id *string `property:"Identifier"` // TODO(v4): remove this + protection *bool + Name *string + Tags []*dynamodb.Tag } -func (i *DynamoDBTable) Remove(_ context.Context) error { +func (r *DynamoDBTable) Remove(_ context.Context) error { + if err := r.DisableDeletionProtection(); err != nil { + return err + } + params := &dynamodb.DeleteTableInput{ - TableName: aws.String(i.id), + TableName: r.Name, } - _, err := i.svc.DeleteTable(params) + _, err := r.svc.DeleteTable(params) if err != nil { return err } @@ -75,37 +107,34 @@ func (i *DynamoDBTable) Remove(_ context.Context) error { return nil } -func GetTableTags(svc *dynamodb.DynamoDB, tableName *string) ([]*dynamodb.Tag, error) { - result, err := svc.DescribeTable(&dynamodb.DescribeTableInput{ - TableName: aws.String(*tableName), - }) - - if err != nil { - return make([]*dynamodb.Tag, 0), err +func (r *DynamoDBTable) DisableDeletionProtection() error { + if !r.settings.GetBool("DisableDeletionProtection") { + return nil } - tags, err := svc.ListTagsOfResource(&dynamodb.ListTagsOfResourceInput{ - ResourceArn: result.Table.TableArn, - }) + if ptr.ToBool(r.protection) { + params := &dynamodb.UpdateTableInput{ + TableName: r.Name, + DeletionProtectionEnabled: ptr.Bool(false), + } - if err != nil { - return make([]*dynamodb.Tag, 0), err + _, err := r.svc.UpdateTable(params) + if err != nil { + return err + } } - return tags.Tags, nil + return nil } -func (i *DynamoDBTable) Properties() types.Properties { - properties := types.NewProperties() - properties.Set("Identifier", i.id) - - for _, tag := range i.tags { - properties.SetTag(tag.Key, tag.Value) - } +func (r *DynamoDBTable) Settings(setting *settings.Setting) { + r.settings = setting +} - return properties +func (r *DynamoDBTable) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) } -func (i *DynamoDBTable) String() string { - return i.id +func (r *DynamoDBTable) String() string { + return ptr.ToString(r.Name) } From c71803a02bc36f7d6183b03d16df209f101fa244 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 24 Jul 2024 20:38:55 -0600 Subject: [PATCH 370/617] test(dynamodb-table): add tests for lister, remove, and deletion protection --- resources/dynamodb-tables_mock_test.go | 168 +++++++++++++++++++++++++ 1 file changed, 168 insertions(+) create mode 100644 resources/dynamodb-tables_mock_test.go diff --git a/resources/dynamodb-tables_mock_test.go b/resources/dynamodb-tables_mock_test.go new file mode 100644 index 00000000..2ec251f3 --- /dev/null +++ b/resources/dynamodb-tables_mock_test.go @@ -0,0 +1,168 @@ +package resources + +import ( + "context" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/dynamodb" + "github.com/ekristen/aws-nuke/v3/mocks/mock_dynamodbiface" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" + libsettings "github.com/ekristen/libnuke/pkg/settings" + "github.com/golang/mock/gomock" + "github.com/gotidy/ptr" + "github.com/stretchr/testify/assert" + "testing" +) + +func Test_Mock_DynamoDBTable_List(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockSvc := mock_dynamodbiface.NewMockDynamoDBAPI(ctrl) + + mockSvc.EXPECT().ListTables(&dynamodb.ListTablesInput{}).Return(&dynamodb.ListTablesOutput{ + TableNames: []*string{ + ptr.String("ExampleTable"), + }, + }, nil) + + mockSvc.EXPECT().DescribeTable(&dynamodb.DescribeTableInput{ + TableName: ptr.String("ExampleTable"), + }).Return(&dynamodb.DescribeTableOutput{ + Table: &dynamodb.TableDescription{ + TableArn: ptr.String("arn:aws:dynamodb:us-west-2:123456789012:table/ExampleTable"), + }, + }, nil) + + mockSvc.EXPECT().ListTagsOfResource(&dynamodb.ListTagsOfResourceInput{ + ResourceArn: ptr.String("arn:aws:dynamodb:us-west-2:123456789012:table/ExampleTable"), + }).Return(&dynamodb.ListTagsOfResourceOutput{ + Tags: []*dynamodb.Tag{ + { + Key: ptr.String("Name"), + Value: ptr.String("ExampleTable"), + }, + }, + }, nil) + + lister := &DynamoDBTableLister{ + mockSvc: mockSvc, + } + + resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ + Region: &nuke.Region{ + Name: "us-east-2", + }, + Session: session.Must(session.NewSession()), + }) + a.NoError(err) + a.Len(resources, 1) +} + +func Test_Mock_DynamoDBTable_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockSvc := mock_dynamodbiface.NewMockDynamoDBAPI(ctrl) + + mockSvc.EXPECT().DeleteTable(&dynamodb.DeleteTableInput{ + TableName: ptr.String("ExampleTable"), + }) + + settings := &libsettings.Setting{} + settings.Set("DisableDeletionProtection", false) + + resource := &DynamoDBTable{ + svc: mockSvc, + settings: settings, + id: ptr.String("ExampleTable"), + protection: ptr.Bool(false), + Name: ptr.String("ExampleTable"), + Tags: []*dynamodb.Tag{ + { + Key: ptr.String("Name"), + Value: ptr.String("ExampleTable"), + }, + }, + } + + err := resource.Remove(context.TODO()) + a.Nil(err) +} + +func Test_Mock_DynamoDBTable_Remove_DeletionProtection(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockSvc := mock_dynamodbiface.NewMockDynamoDBAPI(ctrl) + + mockSvc.EXPECT().DeleteTable(&dynamodb.DeleteTableInput{ + TableName: ptr.String("ExampleTable"), + }).Return(nil, + awserr.New("ValidationException", + "Resource cannot be deleted as it is currently protected against deletion. "+ + "Disable deletion protection first.", nil)) + + settings := &libsettings.Setting{} + settings.Set("DisableDeletionProtection", false) + + resource := &DynamoDBTable{ + svc: mockSvc, + settings: settings, + id: ptr.String("ExampleTable"), + protection: ptr.Bool(true), + Name: ptr.String("ExampleTable"), + Tags: []*dynamodb.Tag{ + { + Key: ptr.String("Name"), + Value: ptr.String("ExampleTable"), + }, + }, + } + + err := resource.Remove(context.TODO()) + a.Error(err) +} + +func Test_Mock_DynamoDBTable_Remove_DeletionProtection_Disable(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockSvc := mock_dynamodbiface.NewMockDynamoDBAPI(ctrl) + + mockSvc.EXPECT().UpdateTable(&dynamodb.UpdateTableInput{ + TableName: ptr.String("ExampleTable"), + DeletionProtectionEnabled: ptr.Bool(false), + }).Return(&dynamodb.UpdateTableOutput{}, nil) + + mockSvc.EXPECT().DeleteTable(&dynamodb.DeleteTableInput{ + TableName: ptr.String("ExampleTable"), + }).Return(nil, + awserr.New("ValidationException", + "Resource cannot be deleted as it is currently protected against deletion. "+ + "Disable deletion protection first.", nil)) + + settings := &libsettings.Setting{} + settings.Set("DisableDeletionProtection", true) + + resource := &DynamoDBTable{ + svc: mockSvc, + settings: settings, + id: ptr.String("ExampleTable"), + protection: ptr.Bool(true), + Name: ptr.String("ExampleTable"), + Tags: []*dynamodb.Tag{ + { + Key: ptr.String("Name"), + Value: ptr.String("ExampleTable"), + }, + }, + } + + err := resource.Remove(context.TODO()) + a.Error(err) +} From 692d4ccd13985abc680047c6c0b2dc5f7019cb21 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 24 Jul 2024 20:39:40 -0600 Subject: [PATCH 371/617] style(dynamodb): rename to singular version --- resources/{dynamodb-items.go => dynamodb-item.go} | 0 resources/{dynamodb-tables.go => dynamodb-table.go} | 0 .../{dynamodb-tables_mock_test.go => dynamodb-table_mock_test.go} | 0 3 files changed, 0 insertions(+), 0 deletions(-) rename resources/{dynamodb-items.go => dynamodb-item.go} (100%) rename resources/{dynamodb-tables.go => dynamodb-table.go} (100%) rename resources/{dynamodb-tables_mock_test.go => dynamodb-table_mock_test.go} (100%) diff --git a/resources/dynamodb-items.go b/resources/dynamodb-item.go similarity index 100% rename from resources/dynamodb-items.go rename to resources/dynamodb-item.go diff --git a/resources/dynamodb-tables.go b/resources/dynamodb-table.go similarity index 100% rename from resources/dynamodb-tables.go rename to resources/dynamodb-table.go diff --git a/resources/dynamodb-tables_mock_test.go b/resources/dynamodb-table_mock_test.go similarity index 100% rename from resources/dynamodb-tables_mock_test.go rename to resources/dynamodb-table_mock_test.go From 460f59ddd0e57509e4720fd2db09b902791f387c Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 24 Jul 2024 20:43:26 -0600 Subject: [PATCH 372/617] style(dynamodb-table): fix import order and organization --- resources/dynamodb-table.go | 5 +++-- resources/dynamodb-table_mock_test.go | 14 +++++++++----- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/resources/dynamodb-table.go b/resources/dynamodb-table.go index b34248ba..665c55f9 100644 --- a/resources/dynamodb-table.go +++ b/resources/dynamodb-table.go @@ -2,15 +2,16 @@ package resources import ( "context" - "github.com/aws/aws-sdk-go/service/dynamodb/dynamodbiface" - "github.com/ekristen/libnuke/pkg/settings" + "github.com/gotidy/ptr" "github.com/sirupsen/logrus" "github.com/aws/aws-sdk-go/service/dynamodb" + "github.com/aws/aws-sdk-go/service/dynamodb/dynamodbiface" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/settings" "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/v3/pkg/nuke" diff --git a/resources/dynamodb-table_mock_test.go b/resources/dynamodb-table_mock_test.go index 2ec251f3..24fff0b6 100644 --- a/resources/dynamodb-table_mock_test.go +++ b/resources/dynamodb-table_mock_test.go @@ -2,16 +2,20 @@ package resources import ( "context" + "testing" + + "github.com/golang/mock/gomock" + "github.com/gotidy/ptr" + "github.com/stretchr/testify/assert" + "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/dynamodb" + + libsettings "github.com/ekristen/libnuke/pkg/settings" + "github.com/ekristen/aws-nuke/v3/mocks/mock_dynamodbiface" "github.com/ekristen/aws-nuke/v3/pkg/nuke" - libsettings "github.com/ekristen/libnuke/pkg/settings" - "github.com/golang/mock/gomock" - "github.com/gotidy/ptr" - "github.com/stretchr/testify/assert" - "testing" ) func Test_Mock_DynamoDBTable_List(t *testing.T) { From 29e0c1b758cd61c1bd233613a95a9a5172b1ad19 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 25 Jul 2024 07:33:03 -0600 Subject: [PATCH 373/617] ci(renovate): split aws-sdk-go minor versions --- .github/renovate.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/renovate.json b/.github/renovate.json index c80a9000..29b3b822 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -20,6 +20,10 @@ "automergeStrategy": "squash", "labels": ["bot"], "commitMessageSuffix": " [release skip]" + }, + { + "matchPackagePatterns": "aws-sdk-go", + "separateMinorPatch": true } ], "customManagers": [ From bf8c1a18459f21488e9b900cf796a340bc375a78 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 25 Jul 2024 13:37:38 +0000 Subject: [PATCH 374/617] fix(deps): update module github.com/aws/aws-sdk-go to v1.54.20 --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index ad5f32fd..1564defb 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/ekristen/aws-nuke/v3 go 1.21.6 require ( - github.com/aws/aws-sdk-go v1.54.19 + github.com/aws/aws-sdk-go v1.54.20 github.com/ekristen/libnuke v0.18.0 github.com/fatih/color v1.17.0 github.com/golang/mock v1.6.0 diff --git a/go.sum b/go.sum index 231ec787..2d87bfad 100644 --- a/go.sum +++ b/go.sum @@ -8,6 +8,8 @@ github.com/aws/aws-sdk-go v1.54.18 h1:t8DGtN8A2wEiazoJxeDbfPsbxCKtjoRLuO7jBSgJzo github.com/aws/aws-sdk-go v1.54.18/go.mod h1:eRwEWoyTWFMVYVQzKMNHWP5/RV4xIUGMQfXQHfHkpNU= github.com/aws/aws-sdk-go v1.54.19 h1:tyWV+07jagrNiCcGRzRhdtVjQs7Vy41NwsuOcl0IbVI= github.com/aws/aws-sdk-go v1.54.19/go.mod h1:eRwEWoyTWFMVYVQzKMNHWP5/RV4xIUGMQfXQHfHkpNU= +github.com/aws/aws-sdk-go v1.54.20 h1:FZ2UcXya7bUkvkpf7TaPmiL7EubK0go1nlXGLRwEsoo= +github.com/aws/aws-sdk-go v1.54.20/go.mod h1:eRwEWoyTWFMVYVQzKMNHWP5/RV4xIUGMQfXQHfHkpNU= github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/cpuguy83/go-md2man/v2 v2.0.4 h1:wfIWP927BUkWJb2NmU/kNDYIBTh/ziUX91+lVfRxZq4= From 84a4a41026c209de660649ee2356ac687e5a07aa Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 6 Aug 2024 17:05:58 -0600 Subject: [PATCH 375/617] fix(iot-authorizer): set to inactive before removing --- resources/iot-authorizers.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/resources/iot-authorizers.go b/resources/iot-authorizers.go index d3fd31cd..e3a67882 100644 --- a/resources/iot-authorizers.go +++ b/resources/iot-authorizers.go @@ -3,6 +3,8 @@ package resources import ( "context" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/service/iot" "github.com/ekristen/libnuke/pkg/registry" @@ -52,6 +54,13 @@ type IoTAuthorizer struct { } func (f *IoTAuthorizer) Remove(_ context.Context) error { + if _, err := f.svc.UpdateAuthorizer(&iot.UpdateAuthorizerInput{ + AuthorizerName: f.name, + Status: ptr.String(iot.AuthorizerStatusInactive), + }); err != nil { + return err + } + _, err := f.svc.DeleteAuthorizer(&iot.DeleteAuthorizerInput{ AuthorizerName: f.name, }) From 8003b5fa2e5e0fcb81a6437244b819e5f6bf4e61 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 11 Aug 2024 19:45:36 +0000 Subject: [PATCH 376/617] fix(deps): update module github.com/urfave/cli/v2 to v2.27.4 --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index ad5f32fd..8c55a666 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( github.com/pkg/errors v0.9.1 github.com/sirupsen/logrus v1.9.3 github.com/stretchr/testify v1.9.0 - github.com/urfave/cli/v2 v2.27.3 + github.com/urfave/cli/v2 v2.27.4 golang.org/x/text v0.16.0 gopkg.in/yaml.v3 v3.0.1 ) diff --git a/go.sum b/go.sum index 231ec787..238cda27 100644 --- a/go.sum +++ b/go.sum @@ -82,6 +82,8 @@ github.com/urfave/cli/v2 v2.27.2 h1:6e0H+AkS+zDckwPCUrZkKX38mRaau4nL2uipkJpbkcI= github.com/urfave/cli/v2 v2.27.2/go.mod h1:g0+79LmHHATl7DAcHO99smiR/T7uGLw84w8Y42x+4eM= github.com/urfave/cli/v2 v2.27.3 h1:/POWahRmdh7uztQ3CYnaDddk0Rm90PyOgIxgW2rr41M= github.com/urfave/cli/v2 v2.27.3/go.mod h1:m4QzxcD2qpra4z7WhzEGn74WZLViBnMpb1ToCAKdGRQ= +github.com/urfave/cli/v2 v2.27.4 h1:o1owoI+02Eb+K107p27wEX9Bb8eqIoZCfLXloLUSWJ8= +github.com/urfave/cli/v2 v2.27.4/go.mod h1:m4QzxcD2qpra4z7WhzEGn74WZLViBnMpb1ToCAKdGRQ= github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 h1:bAn7/zixMGCfxrRTfdpNzjtPYqr8smhKouy9mxVdGPU= github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8= github.com/xrash/smetrics v0.0.0-20240312152122-5f08fbb34913 h1:+qGGcbkzsfDQNPPe9UDgpxAWQrhbbBXOYJFQDq/dtJw= From b3efdff21a6d885ae9d4a492defa864853ef28b8 Mon Sep 17 00:00:00 2001 From: Sherd White Date: Wed, 7 Aug 2024 10:29:31 -0500 Subject: [PATCH 377/617] feat: elastictranscoder preset support This PR adds support for ElasticTranscoder Preset Support. --- resources/elastictranscoder-preset.go | 74 +++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 resources/elastictranscoder-preset.go diff --git a/resources/elastictranscoder-preset.go b/resources/elastictranscoder-preset.go new file mode 100644 index 00000000..da9356c6 --- /dev/null +++ b/resources/elastictranscoder-preset.go @@ -0,0 +1,74 @@ +package resources + +import ( + "fmt" + "strings" + + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/elastictranscoder" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type ElasticTranscoderPreset struct { + svc *elastictranscoder.ElasticTranscoder + presetID *string +} + +func init() { + register("ElasticTranscoderPreset", ListElasticTranscoderPresets) +} + +func ListElasticTranscoderPresets(sess *session.Session) ([]Resource, error) { + svc := elastictranscoder.New(sess) + resources := []Resource{} + + params := &elastictranscoder.ListPresetsInput{} + + for { + resp, err := svc.ListPresets(params) + if err != nil { + return nil, err + } + + for _, preset := range resp.Presets { + resources = append(resources, &ElasticTranscoderPreset{ + svc: svc, + presetID: preset.Id, + }) + } + + if resp.NextPageToken == nil { + break + } + + params.PageToken = resp.NextPageToken + } + + return resources, nil +} + +func (f *ElasticTranscoderPreset) Filter() error { + if strings.HasPrefix(*f.presetID, "1351620000001") { + return fmt.Errorf("cannot delete elastic transcoder system presets") + } + return nil +} + +func (f *ElasticTranscoderPreset) Remove() error { + + _, err := f.svc.DeletePreset(&elastictranscoder.DeletePresetInput{ + Id: f.presetID, + }) + + return err +} + +func (f *ElasticTranscoderPreset) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("PresetID", f.presetID) + return properties +} + +func (f *ElasticTranscoderPreset) String() string { + return *f.presetID +} From b24e83251a0e884bbe7fa9c63f90a3f3b84dc4f2 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 15 Aug 2024 08:22:30 -0600 Subject: [PATCH 378/617] refactor(elastictranscoder-preset): convert to libnuke/aws-nuke@3 format --- resources/elastictranscoder-preset.go | 50 +++++++++++++++++---------- 1 file changed, 31 insertions(+), 19 deletions(-) diff --git a/resources/elastictranscoder-preset.go b/resources/elastictranscoder-preset.go index da9356c6..75af9bad 100644 --- a/resources/elastictranscoder-preset.go +++ b/resources/elastictranscoder-preset.go @@ -1,26 +1,36 @@ package resources import ( + "context" "fmt" "strings" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/elastictranscoder" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) -type ElasticTranscoderPreset struct { - svc *elastictranscoder.ElasticTranscoder - presetID *string -} +const ElasticTranscoderPresetResource = "ElasticTranscoderPreset" func init() { - register("ElasticTranscoderPreset", ListElasticTranscoderPresets) + registry.Register(®istry.Registration{ + Name: ElasticTranscoderPresetResource, + Scope: nuke.Account, + Lister: &ElasticTranscoderPresetLister{}, + }) } -func ListElasticTranscoderPresets(sess *session.Session) ([]Resource, error) { - svc := elastictranscoder.New(sess) - resources := []Resource{} +type ElasticTranscoderPresetLister struct{} + +func (l *ElasticTranscoderPresetLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := elastictranscoder.New(opts.Session) + resources := make([]resource.Resource, 0) params := &elastictranscoder.ListPresetsInput{} @@ -33,7 +43,7 @@ func ListElasticTranscoderPresets(sess *session.Session) ([]Resource, error) { for _, preset := range resp.Presets { resources = append(resources, &ElasticTranscoderPreset{ svc: svc, - presetID: preset.Id, + PresetID: preset.Id, }) } @@ -47,28 +57,30 @@ func ListElasticTranscoderPresets(sess *session.Session) ([]Resource, error) { return resources, nil } +type ElasticTranscoderPreset struct { + svc *elastictranscoder.ElasticTranscoder + PresetID *string +} + func (f *ElasticTranscoderPreset) Filter() error { - if strings.HasPrefix(*f.presetID, "1351620000001") { + if strings.HasPrefix(*f.PresetID, "1351620000001") { return fmt.Errorf("cannot delete elastic transcoder system presets") } return nil } -func (f *ElasticTranscoderPreset) Remove() error { - +func (f *ElasticTranscoderPreset) Remove(_ context.Context) error { _, err := f.svc.DeletePreset(&elastictranscoder.DeletePresetInput{ - Id: f.presetID, + Id: f.PresetID, }) return err } func (f *ElasticTranscoderPreset) Properties() types.Properties { - properties := types.NewProperties() - properties.Set("PresetID", f.presetID) - return properties + return types.NewPropertiesFromStruct(f) } func (f *ElasticTranscoderPreset) String() string { - return *f.presetID + return *f.PresetID } From 76c0acb6a2d4aa5d8c52424e93228a325aac8524 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 15 Aug 2024 09:09:44 -0600 Subject: [PATCH 379/617] refactor(elastictranscoder-preset): cleanup and func pointer standardization --- resources/elastictranscoder-preset.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/resources/elastictranscoder-preset.go b/resources/elastictranscoder-preset.go index 75af9bad..61553b05 100644 --- a/resources/elastictranscoder-preset.go +++ b/resources/elastictranscoder-preset.go @@ -62,25 +62,25 @@ type ElasticTranscoderPreset struct { PresetID *string } -func (f *ElasticTranscoderPreset) Filter() error { - if strings.HasPrefix(*f.PresetID, "1351620000001") { +func (r *ElasticTranscoderPreset) Filter() error { + if strings.HasPrefix(*r.PresetID, "1351620000001") { return fmt.Errorf("cannot delete elastic transcoder system presets") } return nil } -func (f *ElasticTranscoderPreset) Remove(_ context.Context) error { - _, err := f.svc.DeletePreset(&elastictranscoder.DeletePresetInput{ - Id: f.PresetID, +func (r *ElasticTranscoderPreset) Remove(_ context.Context) error { + _, err := r.svc.DeletePreset(&elastictranscoder.DeletePresetInput{ + Id: r.PresetID, }) return err } -func (f *ElasticTranscoderPreset) Properties() types.Properties { - return types.NewPropertiesFromStruct(f) +func (r *ElasticTranscoderPreset) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) } -func (f *ElasticTranscoderPreset) String() string { - return *f.PresetID +func (r *ElasticTranscoderPreset) String() string { + return *r.PresetID } From 37e4d1faff739b53952775fc2d3191bede1447d5 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 20 Aug 2024 09:38:14 -0600 Subject: [PATCH 380/617] feat(s3-bucket): support bypassing governance mode with custom batch delete --- pkg/awsmod/batch.go | 445 ++++++++++++++++++++++++++++++++++++++++ resources/s3-buckets.go | 153 +++++++++++--- 2 files changed, 568 insertions(+), 30 deletions(-) create mode 100644 pkg/awsmod/batch.go diff --git a/pkg/awsmod/batch.go b/pkg/awsmod/batch.go new file mode 100644 index 00000000..dc05ef59 --- /dev/null +++ b/pkg/awsmod/batch.go @@ -0,0 +1,445 @@ +package awsmod + +import ( + "bytes" + "fmt" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/client" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/s3" + "github.com/aws/aws-sdk-go/service/s3/s3iface" +) + +const ( + // DefaultBatchSize is the batch size we initialize when constructing a batch delete client. + // This value is used when calling DeleteObjects. This represents how many objects to delete + // per DeleteObjects call. + DefaultBatchSize = 100 +) + +// BatchError will contain the key and bucket of the object that failed to +// either upload or download. +type BatchError struct { + Errors Errors + code string + message string +} + +// Errors is a typed alias for a slice of errors to satisfy the error +// interface. +type Errors []Error + +func (errs Errors) Error() string { + buf := bytes.NewBuffer(nil) + for i, err := range errs { + buf.WriteString(err.Error()) + if i+1 < len(errs) { + buf.WriteString("\n") + } + } + return buf.String() +} + +// Error will contain the original error, bucket, and key of the operation that failed +// during batch operations. +type Error struct { + OrigErr error + Bucket *string + Key *string +} + +func newError(err error, bucket, key *string) Error { + return Error{ + err, + bucket, + key, + } +} + +func (err *Error) Error() string { + origErr := "" + if err.OrigErr != nil { + origErr = ":\n" + err.OrigErr.Error() + } + return fmt.Sprintf("failed to perform batch operation on %q to %q%s", + aws.StringValue(err.Key), + aws.StringValue(err.Bucket), + origErr, + ) +} + +// NewBatchError will return a BatchError that satisfies the awserr.Error interface. +func NewBatchError(code, message string, err []Error) awserr.Error { + return &BatchError{ + Errors: err, + code: code, + message: message, + } +} + +// Code will return the code associated with the batch error. +func (err *BatchError) Code() string { + return err.code +} + +// Message will return the message associated with the batch error. +func (err *BatchError) Message() string { + return err.message +} + +func (err *BatchError) Error() string { + return awserr.SprintError(err.Code(), err.Message(), "", err.Errors) +} + +// OrigErr will return the original error. Which, in this case, will always be nil +// for batched operations. +func (err *BatchError) OrigErr() error { + return err.Errors +} + +// BatchDeleteIterator is an interface that uses the scanner pattern to +// iterate through what needs to be deleted. +type BatchDeleteIterator interface { + Next() bool + Err() error + DeleteObject() BatchDeleteObject +} + +// DeleteListIterator is an alternative iterator for the BatchDelete client. This will +// iterate through a list of objects and delete the objects. +// +// Example: +// +// iter := &s3manager.DeleteListIterator{ +// Client: svc, +// Input: &s3.ListObjectsInput{ +// Bucket: aws.String("bucket"), +// MaxKeys: aws.Int64(5), +// }, +// Paginator: request.Pagination{ +// NewRequest: func() (*request.Request, error) { +// var inCpy *ListObjectsInput +// if input != nil { +// tmp := *input +// inCpy = &tmp +// } +// req, _ := c.ListObjectsRequest(inCpy) +// return req, nil +// }, +// }, +// } +// +// batcher := s3manager.NewBatchDeleteWithClient(svc) +// if err := batcher.Delete(aws.BackgroundContext(), iter); err != nil { +// return err +// } +type DeleteListIterator struct { + Bucket *string + Paginator request.Pagination + objects []*s3.Object +} + +// NewDeleteListIterator will return a new DeleteListIterator. +func NewDeleteListIterator(svc s3iface.S3API, input *s3.ListObjectsInput, opts ...func(*DeleteListIterator)) BatchDeleteIterator { + iter := &DeleteListIterator{ + Bucket: input.Bucket, + Paginator: request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *s3.ListObjectsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := svc.ListObjectsRequest(inCpy) + return req, nil + }, + }, + } + + for _, opt := range opts { + opt(iter) + } + return iter +} + +// Next will use the S3API client to iterate through a list of objects. +func (iter *DeleteListIterator) Next() bool { + if len(iter.objects) > 0 { + iter.objects = iter.objects[1:] + } + + if len(iter.objects) == 0 && iter.Paginator.Next() { + iter.objects = iter.Paginator.Page().(*s3.ListObjectsOutput).Contents + } + + return len(iter.objects) > 0 +} + +// Err will return the last known error from Next. +func (iter *DeleteListIterator) Err() error { + return iter.Paginator.Err() +} + +// DeleteObject will return the current object to be deleted. +func (iter *DeleteListIterator) DeleteObject() BatchDeleteObject { + return BatchDeleteObject{ + Object: &s3.DeleteObjectInput{ + Bucket: iter.Bucket, + Key: iter.objects[0].Key, + }, + } +} + +// BatchDelete will use the s3 package's service client to perform a batch +// delete. +type BatchDelete struct { + Client s3iface.S3API + BatchSize int +} + +// NewBatchDeleteWithClient will return a new delete client that can delete a batched amount of +// objects. +// +// Example: +// +// batcher := s3manager.NewBatchDeleteWithClient(client, size) +// +// objects := []BatchDeleteObject{ +// { +// Object: &s3.DeleteObjectInput { +// Key: aws.String("key"), +// Bucket: aws.String("bucket"), +// }, +// }, +// } +// +// if err := batcher.Delete(aws.BackgroundContext(), &s3manager.DeleteObjectsIterator{ +// Objects: objects, +// }); err != nil { +// return err +// } +func NewBatchDeleteWithClient(client s3iface.S3API, options ...func(*BatchDelete)) *BatchDelete { + svc := &BatchDelete{ + Client: client, + BatchSize: DefaultBatchSize, + } + + for _, opt := range options { + opt(svc) + } + + return svc +} + +// NewBatchDelete will return a new delete client that can delete a batched amount of +// objects. +// +// Example: +// +// batcher := s3manager.NewBatchDelete(sess, size) +// +// objects := []BatchDeleteObject{ +// { +// Object: &s3.DeleteObjectInput { +// Key: aws.String("key"), +// Bucket: aws.String("bucket"), +// }, +// }, +// } +// +// if err := batcher.Delete(aws.BackgroundContext(), &s3manager.DeleteObjectsIterator{ +// Objects: objects, +// }); err != nil { +// return err +// } +func NewBatchDelete(c client.ConfigProvider, options ...func(*BatchDelete)) *BatchDelete { + client := s3.New(c) + return NewBatchDeleteWithClient(client, options...) +} + +// BatchDeleteObject is a wrapper object for calling the batch delete operation. +type BatchDeleteObject struct { + Object *s3.DeleteObjectInput + // After will run after each iteration during the batch process. This function will + // be executed whether the request was successful. + After func() error +} + +// DeleteObjectsIterator is an interface that uses the scanner pattern to iterate +// through a series of objects to be deleted. +type DeleteObjectsIterator struct { + Objects []BatchDeleteObject + index int + inc bool +} + +// Next will increment the default iterators index and ensure that there +// is another object to iterator to. +func (iter *DeleteObjectsIterator) Next() bool { + if iter.inc { + iter.index++ + } else { + iter.inc = true + } + return iter.index < len(iter.Objects) +} + +// Err will return an error. Since this is just used to satisfy the BatchDeleteIterator interface +// this will only return nil. +func (iter *DeleteObjectsIterator) Err() error { + return nil +} + +// DeleteObject will return the BatchDeleteObject at the current batched index. +func (iter *DeleteObjectsIterator) DeleteObject() BatchDeleteObject { + object := iter.Objects[iter.index] + return object +} + +// Delete will use the iterator to queue up objects that need to be deleted. +// Once the batch size is met, this will call the deleteBatch function. +func (d *BatchDelete) Delete(ctx aws.Context, iter BatchDeleteIterator, opts ...func(input *s3.DeleteObjectsInput)) error { + var errs []Error + var objects []BatchDeleteObject + var input *s3.DeleteObjectsInput + + for iter.Next() { + o := iter.DeleteObject() + + if input == nil { + input = initDeleteObjectsInput(o.Object) + } + + for _, opt := range opts { + opt(input) + } + + parity := hasParity(input, o) + if parity { + input.Delete.Objects = append(input.Delete.Objects, &s3.ObjectIdentifier{ + Key: o.Object.Key, + VersionId: o.Object.VersionId, + }) + objects = append(objects, o) + } + + if len(input.Delete.Objects) == d.BatchSize || !parity { + if err := deleteBatch(ctx, d, input, objects); err != nil { + errs = append(errs, err...) + } + + objects = objects[:0] + input = nil + + if !parity { + objects = append(objects, o) + input = initDeleteObjectsInput(o.Object) + + for _, opt := range opts { + opt(input) + } + + input.Delete.Objects = append(input.Delete.Objects, &s3.ObjectIdentifier{ + Key: o.Object.Key, + VersionId: o.Object.VersionId, + }) + } + } + } + + // iter.Next() could return false (above) plus populate iter.Err() + if iter.Err() != nil { + errs = append(errs, newError(iter.Err(), nil, nil)) + } + + if input != nil && len(input.Delete.Objects) > 0 { + if err := deleteBatch(ctx, d, input, objects); err != nil { + errs = append(errs, err...) + } + } + + if len(errs) > 0 { + return NewBatchError("BatchedDeleteIncomplete", "some objects have failed to be deleted.", errs) + } + return nil +} + +func initDeleteObjectsInput(o *s3.DeleteObjectInput) *s3.DeleteObjectsInput { + return &s3.DeleteObjectsInput{ + Bucket: o.Bucket, + MFA: o.MFA, + RequestPayer: o.RequestPayer, + Delete: &s3.Delete{}, + } +} + +const ( + // ErrDeleteBatchFailCode represents an error code which will be returned + // only when DeleteObjects.Errors has an error that does not contain a code. + ErrDeleteBatchFailCode = "DeleteBatchError" + errDefaultDeleteBatchMessage = "failed to delete" +) + +// deleteBatch will delete a batch of items in the objects parameters. +func deleteBatch(ctx aws.Context, d *BatchDelete, input *s3.DeleteObjectsInput, objects []BatchDeleteObject) []Error { + var errs []Error + + if result, err := d.Client.DeleteObjectsWithContext(ctx, input); err != nil { + for i := 0; i < len(input.Delete.Objects); i++ { + errs = append(errs, newError(err, input.Bucket, input.Delete.Objects[i].Key)) + } + } else if len(result.Errors) > 0 { + for i := 0; i < len(result.Errors); i++ { + code := ErrDeleteBatchFailCode + msg := errDefaultDeleteBatchMessage + if result.Errors[i].Message != nil { + msg = *result.Errors[i].Message + } + if result.Errors[i].Code != nil { + code = *result.Errors[i].Code + } + + errs = append(errs, newError(awserr.New(code, msg, err), input.Bucket, result.Errors[i].Key)) + } + } + for _, object := range objects { + if object.After == nil { + continue + } + if err := object.After(); err != nil { + errs = append(errs, newError(err, object.Object.Bucket, object.Object.Key)) + } + } + + return errs +} + +func hasParity(o1 *s3.DeleteObjectsInput, o2 BatchDeleteObject) bool { + if o1.Bucket != nil && o2.Object.Bucket != nil { + if *o1.Bucket != *o2.Object.Bucket { + return false + } + } else if o1.Bucket != o2.Object.Bucket { + return false + } + + if o1.MFA != nil && o2.Object.MFA != nil { + if *o1.MFA != *o2.Object.MFA { + return false + } + } else if o1.MFA != o2.Object.MFA { + return false + } + + if o1.RequestPayer != nil && o2.Object.RequestPayer != nil { + if *o1.RequestPayer != *o2.Object.RequestPayer { + return false + } + } else if o1.RequestPayer != o2.Object.RequestPayer { + return false + } + + return true +} diff --git a/resources/s3-buckets.go b/resources/s3-buckets.go index c2c8b5a9..67b7c0c1 100644 --- a/resources/s3-buckets.go +++ b/resources/s3-buckets.go @@ -3,6 +3,8 @@ package resources import ( "context" "fmt" + "github.com/ekristen/aws-nuke/v3/pkg/awsmod" + libsettings "github.com/ekristen/libnuke/pkg/settings" "time" "github.com/gotidy/ptr" @@ -14,8 +16,6 @@ import ( "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/service/s3" "github.com/aws/aws-sdk-go/service/s3/s3iface" - "github.com/aws/aws-sdk-go/service/s3/s3manager" - "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -34,6 +34,9 @@ func init() { S3ObjectResource, }, AlternativeResource: "AWS::S3::Bucket", + Settings: []string{ + "BypassGovernanceRetention", + }, }) } @@ -50,30 +53,27 @@ func (l *S3BucketLister) List(_ context.Context, o interface{}) ([]resource.Reso resources := make([]resource.Resource, 0) for _, bucket := range buckets { + newBucket := &S3Bucket{ + svc: svc, + name: aws.StringValue(bucket.Name), + creationDate: aws.TimeValue(bucket.CreationDate), + tags: make([]*s3.Tag, 0), + } + tags, err := svc.GetBucketTagging(&s3.GetBucketTaggingInput{ Bucket: bucket.Name, }) - if err != nil { if aerr, ok := err.(awserr.Error); ok { if aerr.Code() == "NoSuchTagSet" { - resources = append(resources, &S3Bucket{ - svc: svc, - name: aws.StringValue(bucket.Name), - creationDate: aws.TimeValue(bucket.CreationDate), - tags: make([]*s3.Tag, 0), - }) + resources = append(resources, newBucket) } } continue } - resources = append(resources, &S3Bucket{ - svc: svc, - name: aws.StringValue(bucket.Name), - creationDate: aws.TimeValue(bucket.CreationDate), - tags: tags.TagSet, - }) + newBucket.tags = tags.TagSet + resources = append(resources, newBucket) } return resources, nil @@ -88,7 +88,6 @@ func DescribeS3Buckets(svc *s3.S3) ([]s3.Bucket, error) { buckets := make([]s3.Bucket, 0) for _, out := range resp.Buckets { bucketLocationResponse, err := svc.GetBucketLocation(&s3.GetBucketLocationInput{Bucket: out.Name}) - if err != nil { continue } @@ -113,6 +112,7 @@ func DescribeS3Buckets(svc *s3.S3) ([]s3.Bucket, error) { type S3Bucket struct { svc *s3.S3 + settings *libsettings.Setting name string creationDate time.Time tags []*s3.Tag @@ -156,8 +156,13 @@ func (e *S3Bucket) RemoveAllVersions(ctx context.Context) error { Bucket: &e.name, } - iterator := newS3DeleteVersionListIterator(e.svc, params) - return s3manager.NewBatchDeleteWithClient(e.svc).Delete(ctx, iterator) + var opts []func(input *s3.DeleteObjectsInput) + if e.settings.GetBool("BypassGovernanceRetention") { + opts = append(opts, bypassGovernanceRetention) + } + + iterator := newS3DeleteVersionListIterator(e.svc, params, e.settings.GetBool("BypassGovernanceRetention")) + return awsmod.NewBatchDeleteWithClient(e.svc).Delete(ctx, iterator, opts...) } func (e *S3Bucket) RemoveAllObjects(ctx context.Context) error { @@ -165,8 +170,17 @@ func (e *S3Bucket) RemoveAllObjects(ctx context.Context) error { Bucket: &e.name, } - iterator := s3manager.NewDeleteListIterator(e.svc, params) - return s3manager.NewBatchDeleteWithClient(e.svc).Delete(ctx, iterator) + var opts []func(input *s3.DeleteObjectsInput) + if e.settings.GetBool("BypassGovernanceRetention") { + opts = append(opts, bypassGovernanceRetention) + } + + iterator := newS3ObjectDeleteListIterator(e.svc, params, e.settings.GetBool("BypassGovernanceRetention")) + return awsmod.NewBatchDeleteWithClient(e.svc).Delete(ctx, iterator, opts...) +} + +func (e *S3Bucket) Settings(settings *libsettings.Setting) { + e.settings = settings } func (e *S3Bucket) Properties() types.Properties { @@ -185,17 +199,23 @@ func (e *S3Bucket) String() string { return fmt.Sprintf("s3://%s", e.name) } +func bypassGovernanceRetention(input *s3.DeleteObjectsInput) { + input.BypassGovernanceRetention = ptr.Bool(true) +} + type s3DeleteVersionListIterator struct { - Bucket *string - Paginator request.Pagination - objects []*s3.ObjectVersion - lastNotify time.Time + Bucket *string + Paginator request.Pagination + objects []*s3.ObjectVersion + lastNotify time.Time + BypassGovernanceRetention *bool } func newS3DeleteVersionListIterator( svc s3iface.S3API, input *s3.ListObjectVersionsInput, - opts ...func(*s3DeleteVersionListIterator)) s3manager.BatchDeleteIterator { + bypass bool, + opts ...func(*s3DeleteVersionListIterator)) awsmod.BatchDeleteIterator { iter := &s3DeleteVersionListIterator{ Bucket: input.Bucket, Paginator: request.Pagination{ @@ -209,6 +229,7 @@ func newS3DeleteVersionListIterator( return req, nil }, }, + BypassGovernanceRetention: ptr.Bool(bypass), } for _, opt := range opts { @@ -252,12 +273,84 @@ func (iter *s3DeleteVersionListIterator) Err() error { } // DeleteObject will return the current object to be deleted. -func (iter *s3DeleteVersionListIterator) DeleteObject() s3manager.BatchDeleteObject { - return s3manager.BatchDeleteObject{ +func (iter *s3DeleteVersionListIterator) DeleteObject() awsmod.BatchDeleteObject { + return awsmod.BatchDeleteObject{ + Object: &s3.DeleteObjectInput{ + Bucket: iter.Bucket, + Key: iter.objects[0].Key, + VersionId: iter.objects[0].VersionId, + BypassGovernanceRetention: iter.BypassGovernanceRetention, + }, + } +} + +type s3ObjectDeleteListIterator struct { + Bucket *string + Paginator request.Pagination + objects []*s3.Object + lastNotify time.Time + BypassGovernanceRetention bool +} + +func newS3ObjectDeleteListIterator( + svc s3iface.S3API, + input *s3.ListObjectsInput, + bypass bool, + opts ...func(*s3ObjectDeleteListIterator)) awsmod.BatchDeleteIterator { + iter := &s3ObjectDeleteListIterator{ + Bucket: input.Bucket, + Paginator: request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *s3.ListObjectsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := svc.ListObjectsRequest(inCpy) + return req, nil + }, + }, + BypassGovernanceRetention: bypass, + } + + for _, opt := range opts { + opt(iter) + } + return iter +} + +// Next will use the S3API client to iterate through a list of objects. +func (iter *s3ObjectDeleteListIterator) Next() bool { + if len(iter.objects) > 0 { + iter.objects = iter.objects[1:] + } + + if len(iter.objects) == 0 && iter.Paginator.Next() { + iter.objects = iter.Paginator.Page().(*s3.ListObjectsOutput).Contents + } + + if len(iter.objects) > 500 && (iter.lastNotify.IsZero() || time.Since(iter.lastNotify) > 120*time.Second) { + logrus.Infof( + "S3Bucket: %s - empty bucket operation in progress, this could take a while, please be patient", + *iter.Bucket) + iter.lastNotify = time.Now().UTC() + } + + return len(iter.objects) > 0 +} + +// Err will return the last known error from Next. +func (iter *s3ObjectDeleteListIterator) Err() error { + return iter.Paginator.Err() +} + +// DeleteObject will return the current object to be deleted. +func (iter *s3ObjectDeleteListIterator) DeleteObject() awsmod.BatchDeleteObject { + return awsmod.BatchDeleteObject{ Object: &s3.DeleteObjectInput{ - Bucket: iter.Bucket, - Key: iter.objects[0].Key, - VersionId: iter.objects[0].VersionId, + Bucket: iter.Bucket, + Key: iter.objects[0].Key, + BypassGovernanceRetention: ptr.Bool(iter.BypassGovernanceRetention), }, } } From ecf3d562e4eb35dc745c742f87e6dc0538e74e0c Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 20 Aug 2024 09:38:41 -0600 Subject: [PATCH 381/617] test(iam-user): fix pointer string in integration test --- resources/iam-user_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/iam-user_test.go b/resources/iam-user_test.go index d159851c..9a9ccd03 100644 --- a/resources/iam-user_test.go +++ b/resources/iam-user_test.go @@ -35,7 +35,7 @@ func Test_IAMUser_Remove(t *testing.T) { iamUser := IAMUser{ svc: svc, - name: "test-user", + name: aws.String("test-user"), tags: createInput.Tags, } From ab8152a88ac664f57a321e960cd0cebb81c79538 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 20 Aug 2024 09:39:05 -0600 Subject: [PATCH 382/617] test(s3-bucket): add integration test for object lock configuration --- resources/s3-bucket_test.go | 163 ++++++++++++++++++++++++++++++++++++ 1 file changed, 163 insertions(+) create mode 100644 resources/s3-bucket_test.go diff --git a/resources/s3-bucket_test.go b/resources/s3-bucket_test.go new file mode 100644 index 00000000..e22f7aa9 --- /dev/null +++ b/resources/s3-bucket_test.go @@ -0,0 +1,163 @@ +//go:build integration + +package resources + +import ( + "context" + "fmt" + "strings" + "testing" + "time" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/suite" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/s3" + + libsettings "github.com/ekristen/libnuke/pkg/settings" + + "github.com/ekristen/aws-nuke/v3/pkg/awsmod" +) + +type TestS3BucketObjectLockSuite struct { + suite.Suite + bucket string + svc *s3.S3 +} + +func (suite *TestS3BucketObjectLockSuite) SetupSuite() { + var err error + + suite.bucket = fmt.Sprintf("aws-nuke-testing-bucket-%d", time.Now().UnixNano()) + + sess, err := session.NewSession(&aws.Config{ + Region: aws.String("us-west-2")}, + ) + if err != nil { + suite.T().Fatalf("failed to create session, %v", err) + } + + // Create S3 service client + suite.svc = s3.New(sess) + + // Create the bucket + _, err = suite.svc.CreateBucket(&s3.CreateBucketInput{ + Bucket: aws.String(suite.bucket), + }) + if err != nil { + suite.T().Fatalf("failed to create bucket, %v", err) + } + + // enable versioning + _, err = suite.svc.PutBucketVersioning(&s3.PutBucketVersioningInput{ + Bucket: aws.String(suite.bucket), + VersioningConfiguration: &s3.VersioningConfiguration{ + Status: aws.String("Enabled"), + }, + }) + if err != nil { + suite.T().Fatalf("failed to enable versioning, %v", err) + } + + // Set the object lock configuration to governance mode + _, err = suite.svc.PutObjectLockConfiguration(&s3.PutObjectLockConfigurationInput{ + Bucket: aws.String(suite.bucket), + ObjectLockConfiguration: &s3.ObjectLockConfiguration{ + ObjectLockEnabled: aws.String("Enabled"), + Rule: &s3.ObjectLockRule{ + DefaultRetention: &s3.DefaultRetention{ + Mode: aws.String("GOVERNANCE"), + Days: aws.Int64(1), + }, + }, + }, + }) + if err != nil { + suite.T().Fatalf("failed to set object lock configuration, %v", err) + } + + // Create an object in the bucket + _, err = suite.svc.PutObject(&s3.PutObjectInput{ + Bucket: aws.String(suite.bucket), + Key: aws.String("test-object"), + Body: aws.ReadSeekCloser(strings.NewReader("test content")), + }) + if err != nil { + suite.T().Fatalf("failed to create object, %v", err) + } +} + +func (suite *TestS3BucketObjectLockSuite) TearDownSuite() { + iterator := newS3DeleteVersionListIterator(suite.svc, &s3.ListObjectVersionsInput{ + Bucket: &suite.bucket, + }, true) + if err := awsmod.NewBatchDeleteWithClient(suite.svc).Delete(context.TODO(), iterator, bypassGovernanceRetention); err != nil { + if !strings.Contains(err.Error(), "NoSuchBucket") { + suite.T().Fatalf("failed to delete objects, %v", err) + } + } + + iterator2 := newS3ObjectDeleteListIterator(suite.svc, &s3.ListObjectsInput{ + Bucket: &suite.bucket, + }, true) + if err := awsmod.NewBatchDeleteWithClient(suite.svc).Delete(context.TODO(), iterator2, bypassGovernanceRetention); err != nil { + if !strings.Contains(err.Error(), "NoSuchBucket") { + suite.T().Fatalf("failed to delete objects, %v", err) + } + } + + _, err := suite.svc.DeleteBucket(&s3.DeleteBucketInput{ + Bucket: aws.String(suite.bucket), + }) + if err != nil { + if !strings.Contains(err.Error(), "NoSuchBucket") { + suite.T().Fatalf("failed to delete bucket, %v", err) + } + } +} + +func (suite *TestS3BucketObjectLockSuite) TestS3BucketObjectLock() { + // Verify the object lock configuration + result, err := suite.svc.GetObjectLockConfiguration(&s3.GetObjectLockConfigurationInput{ + Bucket: aws.String(suite.bucket), + }) + if err != nil { + suite.T().Fatalf("failed to get object lock configuration, %v", err) + } + + assert.Equal(suite.T(), "Enabled", *result.ObjectLockConfiguration.ObjectLockEnabled) + assert.Equal(suite.T(), "GOVERNANCE", *result.ObjectLockConfiguration.Rule.DefaultRetention.Mode) + assert.Equal(suite.T(), int64(1), *result.ObjectLockConfiguration.Rule.DefaultRetention.Days) +} + +func (suite *TestS3BucketObjectLockSuite) TestS3BucketRemove() { + // Create the S3Bucket object + bucket := &S3Bucket{ + svc: suite.svc, + name: suite.bucket, + settings: &libsettings.Setting{}, + } + + err := bucket.Remove(context.TODO()) + assert.Error(suite.T(), err) +} + +func (suite *TestS3BucketObjectLockSuite) TestS3BucketRemoveWithBypass() { + // Create the S3Bucket object + bucket := &S3Bucket{ + svc: suite.svc, + name: suite.bucket, + settings: &libsettings.Setting{ + "BypassGovernanceRetention": true, + }, + } + + err := bucket.Remove(context.TODO()) + assert.Nil(suite.T(), err) +} + +func TestS3BucketObjectLock(t *testing.T) { + suite.Run(t, new(TestS3BucketObjectLockSuite)) +} From e2459bb07138da995dfd92b942fd12e18673116b Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 20 Aug 2024 09:44:05 -0600 Subject: [PATCH 383/617] refactor(s3-bucket): standardization of filename and pointer names --- resources/{s3-buckets.go => s3-bucket.go} | 60 ++++++++++++----------- 1 file changed, 31 insertions(+), 29 deletions(-) rename resources/{s3-buckets.go => s3-bucket.go} (85%) diff --git a/resources/s3-buckets.go b/resources/s3-bucket.go similarity index 85% rename from resources/s3-buckets.go rename to resources/s3-bucket.go index 67b7c0c1..36bca976 100644 --- a/resources/s3-buckets.go +++ b/resources/s3-bucket.go @@ -2,6 +2,7 @@ package resources import ( "context" + "errors" "fmt" "github.com/ekristen/aws-nuke/v3/pkg/awsmod" libsettings "github.com/ekristen/libnuke/pkg/settings" @@ -64,7 +65,8 @@ func (l *S3BucketLister) List(_ context.Context, o interface{}) ([]resource.Reso Bucket: bucket.Name, }) if err != nil { - if aerr, ok := err.(awserr.Error); ok { + var aerr awserr.Error + if errors.As(err, &aerr) { if aerr.Code() == "NoSuchTagSet" { resources = append(resources, newBucket) } @@ -102,7 +104,7 @@ func DescribeS3Buckets(svc *s3.S3) ([]s3.Bucket, error) { region = endpoints.UsEast1RegionID } - if location == region && out != nil { + if location == region { buckets = append(buckets, *out) } } @@ -118,85 +120,85 @@ type S3Bucket struct { tags []*s3.Tag } -func (e *S3Bucket) Remove(ctx context.Context) error { - _, err := e.svc.DeleteBucketPolicy(&s3.DeleteBucketPolicyInput{ - Bucket: &e.name, +func (r *S3Bucket) Remove(ctx context.Context) error { + _, err := r.svc.DeleteBucketPolicy(&s3.DeleteBucketPolicyInput{ + Bucket: &r.name, }) if err != nil { return err } - _, err = e.svc.PutBucketLogging(&s3.PutBucketLoggingInput{ - Bucket: &e.name, + _, err = r.svc.PutBucketLogging(&s3.PutBucketLoggingInput{ + Bucket: &r.name, BucketLoggingStatus: &s3.BucketLoggingStatus{}, }) if err != nil { return err } - err = e.RemoveAllVersions(ctx) + err = r.RemoveAllVersions(ctx) if err != nil { return err } - err = e.RemoveAllObjects(ctx) + err = r.RemoveAllObjects(ctx) if err != nil { return err } - _, err = e.svc.DeleteBucket(&s3.DeleteBucketInput{ - Bucket: &e.name, + _, err = r.svc.DeleteBucket(&s3.DeleteBucketInput{ + Bucket: &r.name, }) return err } -func (e *S3Bucket) RemoveAllVersions(ctx context.Context) error { +func (r *S3Bucket) RemoveAllVersions(ctx context.Context) error { params := &s3.ListObjectVersionsInput{ - Bucket: &e.name, + Bucket: &r.name, } var opts []func(input *s3.DeleteObjectsInput) - if e.settings.GetBool("BypassGovernanceRetention") { + if r.settings.GetBool("BypassGovernanceRetention") { opts = append(opts, bypassGovernanceRetention) } - iterator := newS3DeleteVersionListIterator(e.svc, params, e.settings.GetBool("BypassGovernanceRetention")) - return awsmod.NewBatchDeleteWithClient(e.svc).Delete(ctx, iterator, opts...) + iterator := newS3DeleteVersionListIterator(r.svc, params, r.settings.GetBool("BypassGovernanceRetention")) + return awsmod.NewBatchDeleteWithClient(r.svc).Delete(ctx, iterator, opts...) } -func (e *S3Bucket) RemoveAllObjects(ctx context.Context) error { +func (r *S3Bucket) RemoveAllObjects(ctx context.Context) error { params := &s3.ListObjectsInput{ - Bucket: &e.name, + Bucket: &r.name, } var opts []func(input *s3.DeleteObjectsInput) - if e.settings.GetBool("BypassGovernanceRetention") { + if r.settings.GetBool("BypassGovernanceRetention") { opts = append(opts, bypassGovernanceRetention) } - iterator := newS3ObjectDeleteListIterator(e.svc, params, e.settings.GetBool("BypassGovernanceRetention")) - return awsmod.NewBatchDeleteWithClient(e.svc).Delete(ctx, iterator, opts...) + iterator := newS3ObjectDeleteListIterator(r.svc, params, r.settings.GetBool("BypassGovernanceRetention")) + return awsmod.NewBatchDeleteWithClient(r.svc).Delete(ctx, iterator, opts...) } -func (e *S3Bucket) Settings(settings *libsettings.Setting) { - e.settings = settings +func (r *S3Bucket) Settings(settings *libsettings.Setting) { + r.settings = settings } -func (e *S3Bucket) Properties() types.Properties { +func (r *S3Bucket) Properties() types.Properties { properties := types.NewProperties(). - Set("Name", e.name). - Set("CreationDate", e.creationDate.Format(time.RFC3339)) + Set("Name", r.name). + Set("CreationDate", r.creationDate.Format(time.RFC3339)) - for _, tag := range e.tags { + for _, tag := range r.tags { properties.SetTag(tag.Key, tag.Value) } return properties } -func (e *S3Bucket) String() string { - return fmt.Sprintf("s3://%s", e.name) +func (r *S3Bucket) String() string { + return fmt.Sprintf("s3://%s", r.name) } func bypassGovernanceRetention(input *s3.DeleteObjectsInput) { From 56567710c9e62fb4e7d02a9328c6e93d0594d8cf Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 20 Aug 2024 09:46:02 -0600 Subject: [PATCH 384/617] chore: golangci-lint cleanup --- pkg/awsmod/batch.go | 8 ++++---- resources/s3-bucket.go | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/pkg/awsmod/batch.go b/pkg/awsmod/batch.go index dc05ef59..6b57f853 100644 --- a/pkg/awsmod/batch.go +++ b/pkg/awsmod/batch.go @@ -220,9 +220,9 @@ type BatchDelete struct { // }); err != nil { // return err // } -func NewBatchDeleteWithClient(client s3iface.S3API, options ...func(*BatchDelete)) *BatchDelete { +func NewBatchDeleteWithClient(s3client s3iface.S3API, options ...func(*BatchDelete)) *BatchDelete { svc := &BatchDelete{ - Client: client, + Client: s3client, BatchSize: DefaultBatchSize, } @@ -255,8 +255,8 @@ func NewBatchDeleteWithClient(client s3iface.S3API, options ...func(*BatchDelete // return err // } func NewBatchDelete(c client.ConfigProvider, options ...func(*BatchDelete)) *BatchDelete { - client := s3.New(c) - return NewBatchDeleteWithClient(client, options...) + s3client := s3.New(c) + return NewBatchDeleteWithClient(s3client, options...) } // BatchDeleteObject is a wrapper object for calling the batch delete operation. diff --git a/resources/s3-bucket.go b/resources/s3-bucket.go index 36bca976..090ca9b5 100644 --- a/resources/s3-bucket.go +++ b/resources/s3-bucket.go @@ -4,8 +4,6 @@ import ( "context" "errors" "fmt" - "github.com/ekristen/aws-nuke/v3/pkg/awsmod" - libsettings "github.com/ekristen/libnuke/pkg/settings" "time" "github.com/gotidy/ptr" @@ -17,10 +15,13 @@ import ( "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/service/s3" "github.com/aws/aws-sdk-go/service/s3/s3iface" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + libsettings "github.com/ekristen/libnuke/pkg/settings" "github.com/ekristen/libnuke/pkg/types" + "github.com/ekristen/aws-nuke/v3/pkg/awsmod" "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) From 645101dc75757a9c91d4d7eab61d0f6996225b1d Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 20 Aug 2024 10:03:03 -0600 Subject: [PATCH 385/617] fix: bad import ref for aws-nuke --- resources/glue-blueprints.go | 2 +- resources/glue-ml-transforms.go | 2 +- resources/glue-sessions.go | 2 +- resources/glue-workflows.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/glue-blueprints.go b/resources/glue-blueprints.go index f3aa70f5..9e6ebe85 100644 --- a/resources/glue-blueprints.go +++ b/resources/glue-blueprints.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type GlueBlueprint struct { diff --git a/resources/glue-ml-transforms.go b/resources/glue-ml-transforms.go index 0d3abf08..d2495494 100644 --- a/resources/glue-ml-transforms.go +++ b/resources/glue-ml-transforms.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type GlueMLTransform struct { diff --git a/resources/glue-sessions.go b/resources/glue-sessions.go index 16836916..9dbf7206 100644 --- a/resources/glue-sessions.go +++ b/resources/glue-sessions.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type GlueSession struct { diff --git a/resources/glue-workflows.go b/resources/glue-workflows.go index e8298d16..1d74d38a 100644 --- a/resources/glue-workflows.go +++ b/resources/glue-workflows.go @@ -11,7 +11,7 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type GlueWorkflow struct { From 588c428722e49ee1a6231bd92522445497851e40 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 20 Aug 2024 16:08:29 +0000 Subject: [PATCH 386/617] fix(deps): update module golang.org/x/text to v0.17.0 --- go.mod | 4 ++-- go.sum | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 47bc3c5b..8a7922d9 100644 --- a/go.mod +++ b/go.mod @@ -13,7 +13,7 @@ require ( github.com/sirupsen/logrus v1.9.3 github.com/stretchr/testify v1.9.0 github.com/urfave/cli/v2 v2.27.4 - golang.org/x/text v0.16.0 + golang.org/x/text v0.17.0 gopkg.in/yaml.v3 v3.0.1 ) @@ -32,7 +32,7 @@ require ( github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect golang.org/x/mod v0.17.0 // indirect golang.org/x/net v0.25.0 // indirect - golang.org/x/sync v0.7.0 // indirect + golang.org/x/sync v0.8.0 // indirect golang.org/x/sys v0.20.0 // indirect golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect diff --git a/go.sum b/go.sum index 59141c35..17af0e14 100644 --- a/go.sum +++ b/go.sum @@ -112,6 +112,8 @@ golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ= golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= +golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -135,6 +137,8 @@ golang.org/x/text v0.15.0 h1:h1V/4gjBv8v9cjcR6+AR5+/cIYK5N/WAgiv4xlsEtAk= golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= +golang.org/x/text v0.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc= +golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= From 8c15d7e99ec797814e85f60632560aa68f068b2e Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 15 Aug 2024 09:24:10 -0600 Subject: [PATCH 387/617] feat(cloudwatchlogs-loggroup): honor api rate limits --- go.mod | 11 +++-- go.sum | 63 +++------------------------ resources/cloudwatchlogs-loggroups.go | 14 +++++- 3 files changed, 24 insertions(+), 64 deletions(-) diff --git a/go.mod b/go.mod index 8a7922d9..52f927b8 100644 --- a/go.mod +++ b/go.mod @@ -12,12 +12,14 @@ require ( github.com/pkg/errors v0.9.1 github.com/sirupsen/logrus v1.9.3 github.com/stretchr/testify v1.9.0 - github.com/urfave/cli/v2 v2.27.4 - golang.org/x/text v0.17.0 + github.com/urfave/cli/v2 v2.27.3 + go.uber.org/ratelimit v0.3.1 + golang.org/x/text v0.16.0 gopkg.in/yaml.v3 v3.0.1 ) require ( + github.com/benbjohnson/clock v1.3.0 // indirect github.com/cpuguy83/go-md2man/v2 v2.0.4 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect @@ -30,11 +32,8 @@ require ( github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/stevenle/topsort v0.2.0 // indirect github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect - golang.org/x/mod v0.17.0 // indirect - golang.org/x/net v0.25.0 // indirect - golang.org/x/sync v0.8.0 // indirect + golang.org/x/sync v0.7.0 // indirect golang.org/x/sys v0.20.0 // indirect - golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect gopkg.in/yaml.v2 v2.4.0 // indirect ) diff --git a/go.sum b/go.sum index 17af0e14..e89ec640 100644 --- a/go.sum +++ b/go.sum @@ -1,39 +1,15 @@ -github.com/aws/aws-sdk-go v1.50.24 h1:3o2Pg7mOoVL0jv54vWtuafoZqAeEXLhm1tltWA2GcEw= -github.com/aws/aws-sdk-go v1.50.24/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= -github.com/aws/aws-sdk-go v1.52.4 h1:9VsBVJ2TKf8xPP3+yIPGSYcEBIEymXsJzQoFgQuyvA0= -github.com/aws/aws-sdk-go v1.52.4/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= -github.com/aws/aws-sdk-go v1.53.19 h1:WEuWc918RXlIaPCyU11F7hH9H1ItK+8m2c/uoQNRUok= -github.com/aws/aws-sdk-go v1.53.19/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= -github.com/aws/aws-sdk-go v1.54.18 h1:t8DGtN8A2wEiazoJxeDbfPsbxCKtjoRLuO7jBSgJzo4= -github.com/aws/aws-sdk-go v1.54.18/go.mod h1:eRwEWoyTWFMVYVQzKMNHWP5/RV4xIUGMQfXQHfHkpNU= github.com/aws/aws-sdk-go v1.54.19 h1:tyWV+07jagrNiCcGRzRhdtVjQs7Vy41NwsuOcl0IbVI= github.com/aws/aws-sdk-go v1.54.19/go.mod h1:eRwEWoyTWFMVYVQzKMNHWP5/RV4xIUGMQfXQHfHkpNU= -github.com/aws/aws-sdk-go v1.54.20 h1:FZ2UcXya7bUkvkpf7TaPmiL7EubK0go1nlXGLRwEsoo= -github.com/aws/aws-sdk-go v1.54.20/go.mod h1:eRwEWoyTWFMVYVQzKMNHWP5/RV4xIUGMQfXQHfHkpNU= -github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w= -github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/benbjohnson/clock v1.3.0 h1:ip6w0uFQkncKQ979AypyG0ER7mqUSBdKLOgAle/AT8A= +github.com/benbjohnson/clock v1.3.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/cpuguy83/go-md2man/v2 v2.0.4 h1:wfIWP927BUkWJb2NmU/kNDYIBTh/ziUX91+lVfRxZq4= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/ekristen/libnuke v0.11.0 h1:SdSaAVnuAdGDqNlV82uAa+2FD9NeQyH96rIMduheh6o= -github.com/ekristen/libnuke v0.11.0/go.mod h1:sBdA04l9IMMejQw5gO9k6o/a0GffSYhgZYaUSdRjIac= -github.com/ekristen/libnuke v0.12.0 h1:Dsk+ckT9sh9QZTLq5m8kOA1KFJGJxSv0TLnfe3YeL1o= -github.com/ekristen/libnuke v0.12.0/go.mod h1:sBdA04l9IMMejQw5gO9k6o/a0GffSYhgZYaUSdRjIac= -github.com/ekristen/libnuke v0.15.0 h1:YiQo8E32cZucz1UI14OPikSRl1UoyIp02rntrVeX30U= -github.com/ekristen/libnuke v0.15.0/go.mod h1:riI1tjCf6r+et/9oUBd1vQeFmn2Sn6UeFUR0nWkMeYw= -github.com/ekristen/libnuke v0.15.1 h1:qOfGxnFYuCGaFW4g+J6QHvphhkHoeb0i5Z7VuaIOGSQ= -github.com/ekristen/libnuke v0.15.1/go.mod h1:riI1tjCf6r+et/9oUBd1vQeFmn2Sn6UeFUR0nWkMeYw= -github.com/ekristen/libnuke v0.17.0 h1:DrTHsRh7eHBIbCKwrzpTzAdngDUAnnq61J/1I3+kDTM= -github.com/ekristen/libnuke v0.17.0/go.mod h1:riI1tjCf6r+et/9oUBd1vQeFmn2Sn6UeFUR0nWkMeYw= -github.com/ekristen/libnuke v0.17.1 h1:bEroAfJ18eEKq+1B6n1QSJi9NvwIu9RFUxwOrjwn1xI= -github.com/ekristen/libnuke v0.17.1/go.mod h1:riI1tjCf6r+et/9oUBd1vQeFmn2Sn6UeFUR0nWkMeYw= github.com/ekristen/libnuke v0.18.0 h1:sF533oSET50FjgIkYV72rvgNzCzUR/AH2tQeKVim31g= github.com/ekristen/libnuke v0.18.0/go.mod h1:riI1tjCf6r+et/9oUBd1vQeFmn2Sn6UeFUR0nWkMeYw= -github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= -github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4= github.com/fatih/color v1.17.0/go.mod h1:YZ7TlrGPkiz6ku9fK3TLD/pl3CpsiFyu8N92HLgmosI= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= @@ -78,38 +54,23 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -github.com/urfave/cli/v2 v2.27.1 h1:8xSQ6szndafKVRmfyeUMxkNUJQMjL1F2zmsZ+qHpfho= -github.com/urfave/cli/v2 v2.27.1/go.mod h1:8qnjx1vcq5s2/wpsqoZFndg2CE5tNFyrTvS6SinrnYQ= -github.com/urfave/cli/v2 v2.27.2 h1:6e0H+AkS+zDckwPCUrZkKX38mRaau4nL2uipkJpbkcI= -github.com/urfave/cli/v2 v2.27.2/go.mod h1:g0+79LmHHATl7DAcHO99smiR/T7uGLw84w8Y42x+4eM= github.com/urfave/cli/v2 v2.27.3 h1:/POWahRmdh7uztQ3CYnaDddk0Rm90PyOgIxgW2rr41M= github.com/urfave/cli/v2 v2.27.3/go.mod h1:m4QzxcD2qpra4z7WhzEGn74WZLViBnMpb1ToCAKdGRQ= -github.com/urfave/cli/v2 v2.27.4 h1:o1owoI+02Eb+K107p27wEX9Bb8eqIoZCfLXloLUSWJ8= -github.com/urfave/cli/v2 v2.27.4/go.mod h1:m4QzxcD2qpra4z7WhzEGn74WZLViBnMpb1ToCAKdGRQ= -github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 h1:bAn7/zixMGCfxrRTfdpNzjtPYqr8smhKouy9mxVdGPU= -github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8= -github.com/xrash/smetrics v0.0.0-20240312152122-5f08fbb34913 h1:+qGGcbkzsfDQNPPe9UDgpxAWQrhbbBXOYJFQDq/dtJw= -github.com/xrash/smetrics v0.0.0-20240312152122-5f08fbb34913/go.mod h1:4aEEwZQutDLsQv2Deui4iYQ6DWTxR14g6m8Wv88+Xqk= github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 h1:gEOO8jv9F4OT7lGCjxCBTO/36wtF6j2nSip77qHd4x4= github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1/go.mod h1:Ohn+xnUBiLI6FVj/9LpzZWtj1/D6lUovWYBkxHVV3aM= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +go.uber.org/atomic v1.7.0 h1:ADUqmZGgLDDfbSL9ZmPxKTybcoEYHgpYfELNoN+7hsw= +go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= +go.uber.org/ratelimit v0.3.1 h1:K4qVE+byfv/B3tC+4nYWP7v/6SimcO7HzHekoMNBma0= +go.uber.org/ratelimit v0.3.1/go.mod h1:6euWsTB6U/Nb3X++xEUXA8ciPJvr19Q/0h1+oDcJhRk= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.9.0 h1:KENHtAZL2y3NLMYZeHY9DW8HW8V+kQyJsY/V9JlKvCs= -golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/mod v0.17.0 h1:zY54UmvipHiNd+pm+m0x9KhZ9hl1/7QNMyxXbc6ICqA= -golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c= -golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U= -golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ= -golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= @@ -122,19 +83,11 @@ golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.16.0 h1:xWw16ngr6ZMtmxDyKyIgsE93KNKz5HKmMa3b8ALHidU= -golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4= -golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y= golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= -golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= -golang.org/x/text v0.15.0 h1:h1V/4gjBv8v9cjcR6+AR5+/cIYK5N/WAgiv4xlsEtAk= -golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= golang.org/x/text v0.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc= @@ -142,10 +95,6 @@ golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.6.0 h1:BOw41kyTf3PuCW1pVQf8+Cyg8pMlkYB1oo9iJ6D/lKM= -golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= -golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d h1:vU5i/LfpvrRCpgM/VPfJLg5KjxD3E+hfT1SH+d9zLwg= -golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/resources/cloudwatchlogs-loggroups.go b/resources/cloudwatchlogs-loggroups.go index 143f79c7..27345913 100644 --- a/resources/cloudwatchlogs-loggroups.go +++ b/resources/cloudwatchlogs-loggroups.go @@ -2,10 +2,11 @@ package resources import ( "context" - "strings" "time" + "go.uber.org/ratelimit" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/cloudwatchlogs" @@ -37,17 +38,27 @@ func (l *CloudWatchLogsLogGroupLister) List(_ context.Context, o interface{}) ([ svc := cloudwatchlogs.New(opts.Session) resources := make([]resource.Resource, 0) + // Note: these can be modified by the customer and account, and we could query them but for now we hard code + // them to the bottom, because really it's per-second, and we should be fine querying at this rate for clearing + // Ref: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/cloudwatch_limits_cwl.html + groupRl := ratelimit.New(10) + streamRl := ratelimit.New(15) + params := &cloudwatchlogs.DescribeLogGroupsInput{ Limit: aws.Int64(50), } for { + groupRl.Take() // Wait for DescribeLogGroup rate limiter + output, err := svc.DescribeLogGroups(params) if err != nil { return nil, err } for _, logGroup := range output.LogGroups { + streamRl.Take() // Wait for DescribeLogStream rate limiter + arn := strings.TrimSuffix(*logGroup.Arn, ":*") tagResp, err := svc.ListTagsForResource( &cloudwatchlogs.ListTagsForResourceInput{ @@ -67,6 +78,7 @@ func (l *CloudWatchLogsLogGroupLister) List(_ context.Context, o interface{}) ([ if err != nil { return nil, err } + var lastEvent time.Time if len(lsResp.LogStreams) > 0 && lsResp.LogStreams[0].LastIngestionTime != nil { lastEvent = time.Unix(*lsResp.LogStreams[0].LastIngestionTime/1000, 0) From 305efd81655064465fd3f5d626fbf94aca7c7c8b Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 20 Aug 2024 10:08:51 -0600 Subject: [PATCH 388/617] chore: go mod tidy --- go.sum | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/go.sum b/go.sum index e89ec640..bbcd0203 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -github.com/aws/aws-sdk-go v1.54.19 h1:tyWV+07jagrNiCcGRzRhdtVjQs7Vy41NwsuOcl0IbVI= -github.com/aws/aws-sdk-go v1.54.19/go.mod h1:eRwEWoyTWFMVYVQzKMNHWP5/RV4xIUGMQfXQHfHkpNU= +github.com/aws/aws-sdk-go v1.54.20 h1:FZ2UcXya7bUkvkpf7TaPmiL7EubK0go1nlXGLRwEsoo= +github.com/aws/aws-sdk-go v1.54.20/go.mod h1:eRwEWoyTWFMVYVQzKMNHWP5/RV4xIUGMQfXQHfHkpNU= github.com/benbjohnson/clock v1.3.0 h1:ip6w0uFQkncKQ979AypyG0ER7mqUSBdKLOgAle/AT8A= github.com/benbjohnson/clock v1.3.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/cpuguy83/go-md2man/v2 v2.0.4 h1:wfIWP927BUkWJb2NmU/kNDYIBTh/ziUX91+lVfRxZq4= From 133898ab9ff674eea17641e2f7304373824e7969 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 20 Aug 2024 16:24:30 +0000 Subject: [PATCH 389/617] fix(deps): update module github.com/urfave/cli/v2 to v2.27.4 --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 52f927b8..4828cb0d 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( github.com/pkg/errors v0.9.1 github.com/sirupsen/logrus v1.9.3 github.com/stretchr/testify v1.9.0 - github.com/urfave/cli/v2 v2.27.3 + github.com/urfave/cli/v2 v2.27.4 go.uber.org/ratelimit v0.3.1 golang.org/x/text v0.16.0 gopkg.in/yaml.v3 v3.0.1 diff --git a/go.sum b/go.sum index bbcd0203..ab6c4b36 100644 --- a/go.sum +++ b/go.sum @@ -56,6 +56,8 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/urfave/cli/v2 v2.27.3 h1:/POWahRmdh7uztQ3CYnaDddk0Rm90PyOgIxgW2rr41M= github.com/urfave/cli/v2 v2.27.3/go.mod h1:m4QzxcD2qpra4z7WhzEGn74WZLViBnMpb1ToCAKdGRQ= +github.com/urfave/cli/v2 v2.27.4 h1:o1owoI+02Eb+K107p27wEX9Bb8eqIoZCfLXloLUSWJ8= +github.com/urfave/cli/v2 v2.27.4/go.mod h1:m4QzxcD2qpra4z7WhzEGn74WZLViBnMpb1ToCAKdGRQ= github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 h1:gEOO8jv9F4OT7lGCjxCBTO/36wtF6j2nSip77qHd4x4= github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1/go.mod h1:Ohn+xnUBiLI6FVj/9LpzZWtj1/D6lUovWYBkxHVV3aM= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= From e2c122b7fd58ff509332c51d29280211e69a3c51 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 20 Aug 2024 16:24:56 +0000 Subject: [PATCH 390/617] fix(deps): update module golang.org/x/text to v0.17.0 --- go.mod | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 52f927b8..01001d8b 100644 --- a/go.mod +++ b/go.mod @@ -14,7 +14,7 @@ require ( github.com/stretchr/testify v1.9.0 github.com/urfave/cli/v2 v2.27.3 go.uber.org/ratelimit v0.3.1 - golang.org/x/text v0.16.0 + golang.org/x/text v0.17.0 gopkg.in/yaml.v3 v3.0.1 ) @@ -32,7 +32,7 @@ require ( github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/stevenle/topsort v0.2.0 // indirect github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect - golang.org/x/sync v0.7.0 // indirect + golang.org/x/sync v0.8.0 // indirect golang.org/x/sys v0.20.0 // indirect gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect gopkg.in/yaml.v2 v2.4.0 // indirect From 1ed4258fb2b79ddbc319d3854e92ce3a6709419e Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 20 Aug 2024 10:25:42 -0600 Subject: [PATCH 391/617] chore(ci): switch to goreleaser v2 config syntax --- .goreleaser.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index ed023659..673b2484 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,3 +1,4 @@ +version: 2 dist: releases release: github: @@ -123,4 +124,4 @@ checksum: snapshot: name_template: '{{ trimprefix .Summary "v" }}' changelog: - skip: true + disable: true From 91ada91d6fea0bea5ae57a8818d0bd402baed35a Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 20 Aug 2024 17:05:32 -0600 Subject: [PATCH 392/617] feat(s3-bucket): support legal hold removal on objects --- resources/s3-bucket.go | 61 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 60 insertions(+), 1 deletion(-) diff --git a/resources/s3-bucket.go b/resources/s3-bucket.go index 090ca9b5..cf9efe50 100644 --- a/resources/s3-bucket.go +++ b/resources/s3-bucket.go @@ -38,6 +38,7 @@ func init() { AlternativeResource: "AWS::S3::Bucket", Settings: []string{ "BypassGovernanceRetention", + "RemoveObjectLegalHold", }, }) } @@ -62,6 +63,17 @@ func (l *S3BucketLister) List(_ context.Context, o interface{}) ([]resource.Reso tags: make([]*s3.Tag, 0), } + lockCfg, err := svc.GetObjectLockConfiguration(&s3.GetObjectLockConfigurationInput{ + Bucket: &newBucket.name, + }) + if err != nil { + logrus.WithError(err).Warn("failed to get object lock configuration") + } + + if lockCfg != nil && lockCfg.ObjectLockConfiguration != nil { + newBucket.ObjectLock = lockCfg.ObjectLockConfiguration.ObjectLockEnabled + } + tags, err := svc.GetBucketTagging(&s3.GetBucketTaggingInput{ Bucket: bucket.Name, }) @@ -119,6 +131,7 @@ type S3Bucket struct { name string creationDate time.Time tags []*s3.Tag + ObjectLock *string } func (r *S3Bucket) Remove(ctx context.Context) error { @@ -137,6 +150,11 @@ func (r *S3Bucket) Remove(ctx context.Context) error { return err } + err = r.RemoveAllLegalHolds(ctx) + if err != nil { + return err + } + err = r.RemoveAllVersions(ctx) if err != nil { return err @@ -154,6 +172,46 @@ func (r *S3Bucket) Remove(ctx context.Context) error { return err } +func (r *S3Bucket) RemoveAllLegalHolds(_ context.Context) error { + if !r.settings.GetBool("RemoveObjectLegalHold") { + return nil + } + + if r.ObjectLock == nil || ptr.ToString(r.ObjectLock) != "Enabled" { + return nil + } + + params := &s3.ListObjectsV2Input{ + Bucket: &r.name, + } + + for { + res, err := r.svc.ListObjectsV2(params) + if err != nil { + return err + } + + params.ContinuationToken = res.NextContinuationToken + + for _, obj := range res.Contents { + _, err := r.svc.PutObjectLegalHold(&s3.PutObjectLegalHoldInput{ + Bucket: &r.name, + Key: obj.Key, + LegalHold: &s3.ObjectLockLegalHold{Status: aws.String("OFF")}, + }) + if err != nil { + return err + } + } + + if res.NextContinuationToken == nil { + break + } + } + + return nil +} + func (r *S3Bucket) RemoveAllVersions(ctx context.Context) error { params := &s3.ListObjectVersionsInput{ Bucket: &r.name, @@ -189,7 +247,8 @@ func (r *S3Bucket) Settings(settings *libsettings.Setting) { func (r *S3Bucket) Properties() types.Properties { properties := types.NewProperties(). Set("Name", r.name). - Set("CreationDate", r.creationDate.Format(time.RFC3339)) + Set("CreationDate", r.creationDate.Format(time.RFC3339)). + Set("ObjectLock", r.ObjectLock) for _, tag := range r.tags { properties.SetTag(tag.Key, tag.Value) From 2d74ac169bb8308b48f65ae3f7e89885106a6d4f Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 20 Aug 2024 17:05:55 -0600 Subject: [PATCH 393/617] docs(s3-bucket): add documentation --- docs/resources/s3-bucket.md | 35 +++++++++++++++++++++++++++++++++++ mkdocs.yml | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 docs/resources/s3-bucket.md diff --git a/docs/resources/s3-bucket.md b/docs/resources/s3-bucket.md new file mode 100644 index 00000000..fc4ffd2c --- /dev/null +++ b/docs/resources/s3-bucket.md @@ -0,0 +1,35 @@ +# S3 Bucket + +This will remove all S3 buckets from an AWS account. The following actions are performed, some with control settings. + +- Remove Bucket Policy +- Remove Logging Configuration +- Remove All Legal Holds + - This only happens if the `RemoveObjectLegalHold` setting is set to `true` +- Remove All Versions + - This will include bypassing any Object Lock governance retention settings if the `BypassGovernanceRetention` + setting is set to `true` +- Remove All Objects + - This will include bypassing any Object Lock governance retention settings if the `BypassGovernanceRetention` + setting is set to `true` + +## Settings + +- `BypassGovernanceRetention` +- `RemoveObjectLegalHold` + +### BypassGovernanceRetention + +Specifies whether an S3 Object Lock should bypass Governance-mode restrictions to process object retention configuration +changes or deletion. Default is `false`. + +### BypassLegalHold + +!!! warning + This will result in additional S3 API calls. The entire bucket has to be enumerated for all the objects, every + object then is the result of an API call to remove the legal hold. Regardless if a legal hold existed or not. This + is because it would require an additional API call to check if a legal hold exists on an object. + +Specifies whether S3 Object Lock should remove any legal hold configuration from objects in the S3 bucket. +Default is `false`. + diff --git a/mkdocs.yml b/mkdocs.yml index 5d19d8df..4594c274 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -89,6 +89,8 @@ nav: - Presets: config-presets.md - Custom Endpoints: config-custom-endpoints.md - Migration Guide: config-migration.md + - Resources: + S3 Bucket: resources/s3-bucket.md - Development: - Overview: development.md - Contributing: contributing.md From 8631b050c2f5cd05fe7517e0867df4c5bdcf874a Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 21 Aug 2024 09:10:29 -0600 Subject: [PATCH 394/617] fix(s3-bucket): only warn if unknown error with get object lock config --- resources/s3-bucket.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/resources/s3-bucket.go b/resources/s3-bucket.go index cf9efe50..127786bc 100644 --- a/resources/s3-bucket.go +++ b/resources/s3-bucket.go @@ -67,7 +67,13 @@ func (l *S3BucketLister) List(_ context.Context, o interface{}) ([]resource.Reso Bucket: &newBucket.name, }) if err != nil { - logrus.WithError(err).Warn("failed to get object lock configuration") + // check if aws error is NoSuchObjectLockConfiguration + var aerr awserr.Error + if errors.As(err, &aerr) { + if aerr.Code() != "ObjectLockConfigurationNotFoundError" { + logrus.WithError(err).Warn("unknown failure during get object lock configuration") + } + } } if lockCfg != nil && lockCfg.ObjectLockConfiguration != nil { From 62e59af8d7441449fe48af6de71a874c1b33e1fd Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 21 Aug 2024 09:24:54 -0600 Subject: [PATCH 395/617] fix(applicationautoscaling-scalabale-target): exclude namespace workspaces - no longer supported --- resources/applicationautoscaling-scalable-targets.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/resources/applicationautoscaling-scalable-targets.go b/resources/applicationautoscaling-scalable-targets.go index 2e762b6e..49627b09 100644 --- a/resources/applicationautoscaling-scalable-targets.go +++ b/resources/applicationautoscaling-scalable-targets.go @@ -2,6 +2,7 @@ package resources import ( "context" + "slices" "github.com/gotidy/ptr" @@ -32,9 +33,16 @@ func (l *ApplicationAutoScalingScalableTargetLister) List(_ context.Context, o i namespaces := applicationautoscaling.ServiceNamespace_Values() + // Note: Workspaces is not a valid namespace for DescribeScalableTargets anymore according to the API + invalidNamespaces := []string{applicationautoscaling.ServiceNamespaceWorkspaces} + params := &applicationautoscaling.DescribeScalableTargetsInput{} resources := make([]resource.Resource, 0) for _, namespace := range namespaces { + if slices.Contains(invalidNamespaces, namespace) { + continue + } + for { params.ServiceNamespace = ptr.String(namespace) resp, err := svc.DescribeScalableTargets(params) From 52943cb996d4e1c68d0303c808607e3790386ba0 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 21 Aug 2024 10:12:11 -0600 Subject: [PATCH 396/617] feat(sns-subscription): add properties --- ...s-subscriptions.go => sns-subscription.go} | 30 +++++++++++-------- 1 file changed, 18 insertions(+), 12 deletions(-) rename resources/{sns-subscriptions.go => sns-subscription.go} (66%) diff --git a/resources/sns-subscriptions.go b/resources/sns-subscription.go similarity index 66% rename from resources/sns-subscriptions.go rename to resources/sns-subscription.go index 73c397a1..654223d2 100644 --- a/resources/sns-subscriptions.go +++ b/resources/sns-subscription.go @@ -2,13 +2,13 @@ package resources import ( "context" - "fmt" "github.com/aws/aws-sdk-go/service/sns" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) @@ -42,9 +42,10 @@ func (l *SNSSubscriptionLister) List(_ context.Context, o interface{}) ([]resour for _, subscription := range resp.Subscriptions { if *subscription.SubscriptionArn != "PendingConfirmation" { resources = append(resources, &SNSSubscription{ - svc: svc, - id: subscription.SubscriptionArn, - name: subscription.Owner, + svc: svc, + ARN: subscription.SubscriptionArn, + Owner: subscription.Owner, + TopicARN: subscription.TopicArn, }) } } @@ -60,18 +61,23 @@ func (l *SNSSubscriptionLister) List(_ context.Context, o interface{}) ([]resour } type SNSSubscription struct { - svc *sns.SNS - id *string - name *string + svc *sns.SNS + ARN *string + Owner *string + TopicARN *string } -func (subs *SNSSubscription) Remove(_ context.Context) error { - _, err := subs.svc.Unsubscribe(&sns.UnsubscribeInput{ - SubscriptionArn: subs.id, +func (r *SNSSubscription) Remove(_ context.Context) error { + _, err := r.svc.Unsubscribe(&sns.UnsubscribeInput{ + SubscriptionArn: r.ARN, }) return err } -func (subs *SNSSubscription) String() string { - return fmt.Sprintf("Owner: %s ARN: %s", *subs.name, *subs.id) +func (r *SNSSubscription) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + +func (r *SNSSubscription) String() string { + return fmt.Sprintf("Owner: %s ARN: %s", *r.Owner, *r.ARN) } From 71f38218bb7735383ff63d0d51e26938e15f61b9 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 21 Aug 2024 10:15:02 -0600 Subject: [PATCH 397/617] feat(configservice-configurationrecorder): add properties --- ...=> configservice-configurationrecorder.go} | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) rename resources/{configservice-configurationrecorders.go => configservice-configurationrecorder.go} (71%) diff --git a/resources/configservice-configurationrecorders.go b/resources/configservice-configurationrecorder.go similarity index 71% rename from resources/configservice-configurationrecorders.go rename to resources/configservice-configurationrecorder.go index 4739795f..0eb32f37 100644 --- a/resources/configservice-configurationrecorders.go +++ b/resources/configservice-configurationrecorder.go @@ -7,6 +7,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) @@ -37,8 +38,8 @@ func (l *ConfigServiceConfigurationRecorderLister) List(_ context.Context, o int resources := make([]resource.Resource, 0) for _, configurationRecorder := range resp.ConfigurationRecorders { resources = append(resources, &ConfigServiceConfigurationRecorder{ - svc: svc, - configurationRecorderName: configurationRecorder.Name, + svc: svc, + Name: configurationRecorder.Name, }) } @@ -46,18 +47,22 @@ func (l *ConfigServiceConfigurationRecorderLister) List(_ context.Context, o int } type ConfigServiceConfigurationRecorder struct { - svc *configservice.ConfigService - configurationRecorderName *string + svc *configservice.ConfigService + Name *string } -func (f *ConfigServiceConfigurationRecorder) Remove(_ context.Context) error { - _, err := f.svc.DeleteConfigurationRecorder(&configservice.DeleteConfigurationRecorderInput{ - ConfigurationRecorderName: f.configurationRecorderName, +func (r *ConfigServiceConfigurationRecorder) Remove(_ context.Context) error { + _, err := r.svc.DeleteConfigurationRecorder(&configservice.DeleteConfigurationRecorderInput{ + ConfigurationRecorderName: r.Name, }) return err } -func (f *ConfigServiceConfigurationRecorder) String() string { - return *f.configurationRecorderName +func (r *ConfigServiceConfigurationRecorder) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + +func (r *ConfigServiceConfigurationRecorder) String() string { + return *r.Name } From 8d42bb3b4ac21f37000a5e1d5ea142e26d0278ae Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 21 Aug 2024 10:22:03 -0600 Subject: [PATCH 398/617] feat(configservice-deliverychannel): add properties --- ...ls.go => configservice-deliverychannel.go} | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) rename resources/{configservice-deliverychannels.go => configservice-deliverychannel.go} (70%) diff --git a/resources/configservice-deliverychannels.go b/resources/configservice-deliverychannel.go similarity index 70% rename from resources/configservice-deliverychannels.go rename to resources/configservice-deliverychannel.go index 8f12ad0d..1ba6c998 100644 --- a/resources/configservice-deliverychannels.go +++ b/resources/configservice-deliverychannel.go @@ -7,6 +7,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) @@ -25,7 +26,7 @@ type ConfigServiceDeliveryChannelLister struct{} func (l *ConfigServiceDeliveryChannelLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) - + resources := make([]resource.Resource, 0) svc := configservice.New(opts.Session) params := &configservice.DescribeDeliveryChannelsInput{} @@ -34,11 +35,10 @@ func (l *ConfigServiceDeliveryChannelLister) List(_ context.Context, o interface return nil, err } - resources := make([]resource.Resource, 0) for _, deliveryChannel := range resp.DeliveryChannels { resources = append(resources, &ConfigServiceDeliveryChannel{ - svc: svc, - deliveryChannelName: deliveryChannel.Name, + svc: svc, + Name: deliveryChannel.Name, }) } @@ -46,18 +46,22 @@ func (l *ConfigServiceDeliveryChannelLister) List(_ context.Context, o interface } type ConfigServiceDeliveryChannel struct { - svc *configservice.ConfigService - deliveryChannelName *string + svc *configservice.ConfigService + Name *string } -func (f *ConfigServiceDeliveryChannel) Remove(_ context.Context) error { - _, err := f.svc.DeleteDeliveryChannel(&configservice.DeleteDeliveryChannelInput{ - DeliveryChannelName: f.deliveryChannelName, +func (r *ConfigServiceDeliveryChannel) Remove(_ context.Context) error { + _, err := r.svc.DeleteDeliveryChannel(&configservice.DeleteDeliveryChannelInput{ + DeliveryChannelName: r.Name, }) return err } -func (f *ConfigServiceDeliveryChannel) String() string { - return *f.deliveryChannelName +func (r *ConfigServiceDeliveryChannel) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + +func (r *ConfigServiceDeliveryChannel) String() string { + return *r.Name } From e37c75886a66a60daaba2500c2e009b451a1a108 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 21 Aug 2024 10:32:04 -0600 Subject: [PATCH 399/617] feat(cloudwatchevents-rule): add properties --- ...ents-rules.go => cloudwatchevents-rule.go} | 34 ++++++++++++------- 1 file changed, 21 insertions(+), 13 deletions(-) rename resources/{cloudwatchevents-rules.go => cloudwatchevents-rule.go} (65%) diff --git a/resources/cloudwatchevents-rules.go b/resources/cloudwatchevents-rule.go similarity index 65% rename from resources/cloudwatchevents-rules.go rename to resources/cloudwatchevents-rule.go index 6813acf5..8ff7fceb 100644 --- a/resources/cloudwatchevents-rules.go +++ b/resources/cloudwatchevents-rule.go @@ -2,7 +2,6 @@ package resources import ( "context" - "fmt" "github.com/aws/aws-sdk-go/aws" @@ -10,6 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) @@ -47,9 +47,11 @@ func (l *CloudWatchEventsRuleLister) List(_ context.Context, o interface{}) ([]r for _, rule := range resp.Rules { resources = append(resources, &CloudWatchEventsRule{ - svc: svc, - name: rule.Name, - busName: bus.Name, + svc: svc, + Name: rule.Name, + ARN: rule.Arn, + State: rule.State, + EventBusName: bus.Name, }) } } @@ -57,21 +59,27 @@ func (l *CloudWatchEventsRuleLister) List(_ context.Context, o interface{}) ([]r } type CloudWatchEventsRule struct { - svc *cloudwatchevents.CloudWatchEvents - name *string - busName *string + svc *cloudwatchevents.CloudWatchEvents + Name *string + ARN *string + State *string + EventBusName *string } -func (rule *CloudWatchEventsRule) Remove(_ context.Context) error { - _, err := rule.svc.DeleteRule(&cloudwatchevents.DeleteRuleInput{ - Name: rule.name, - EventBusName: rule.busName, +func (r *CloudWatchEventsRule) Remove(_ context.Context) error { + _, err := r.svc.DeleteRule(&cloudwatchevents.DeleteRuleInput{ + Name: r.Name, + EventBusName: r.EventBusName, Force: aws.Bool(true), }) return err } -func (rule *CloudWatchEventsRule) String() string { +func (r *CloudWatchEventsRule) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + +func (r *CloudWatchEventsRule) String() string { // TODO: remove Rule:, mark as breaking change for filters - return fmt.Sprintf("Rule: %s", *rule.name) + return fmt.Sprintf("Rule: %s", *r.Name) } From 2afcb5844187eb5096c79d3bd1083a06726b4e4a Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 21 Aug 2024 10:33:59 -0600 Subject: [PATCH 400/617] feat(iam-saml-provider): add properties --- resources/iam-saml-provider.go | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/resources/iam-saml-provider.go b/resources/iam-saml-provider.go index cf1d8efb..86cacbf7 100644 --- a/resources/iam-saml-provider.go +++ b/resources/iam-saml-provider.go @@ -2,12 +2,16 @@ package resources import ( "context" + "time" "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" - "github.com/ekristen/aws-nuke/v3/pkg/nuke" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IAMSAMLProviderResource = "IAMSAMLProvider" @@ -36,8 +40,9 @@ func (l *IAMSAMLProviderLister) List(_ context.Context, o interface{}) ([]resour for _, out := range resp.SAMLProviderList { resources = append(resources, &IAMSAMLProvider{ - svc: svc, - arn: *out.Arn, + svc: svc, + ARN: out.Arn, + CreateDate: out.CreateDate, }) } @@ -45,13 +50,14 @@ func (l *IAMSAMLProviderLister) List(_ context.Context, o interface{}) ([]resour } type IAMSAMLProvider struct { - svc iamiface.IAMAPI - arn string + svc iamiface.IAMAPI + ARN *string + CreateDate *time.Time } -func (e *IAMSAMLProvider) Remove(_ context.Context) error { - _, err := e.svc.DeleteSAMLProvider(&iam.DeleteSAMLProviderInput{ - SAMLProviderArn: &e.arn, +func (r *IAMSAMLProvider) Remove(_ context.Context) error { + _, err := r.svc.DeleteSAMLProvider(&iam.DeleteSAMLProviderInput{ + SAMLProviderArn: r.ARN, }) if err != nil { return err @@ -60,6 +66,10 @@ func (e *IAMSAMLProvider) Remove(_ context.Context) error { return nil } -func (e *IAMSAMLProvider) String() string { - return e.arn +func (r *IAMSAMLProvider) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + +func (r *IAMSAMLProvider) String() string { + return *r.ARN } From cbf45e76f2bbaaed5e2b5734a28e90c52ea284b8 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 21 Aug 2024 11:00:31 -0600 Subject: [PATCH 401/617] feat(cloudfront-distribution-deployment): add properties --- ... => cloudfront-distribution-deployment.go} | 58 +++++++++++-------- 1 file changed, 33 insertions(+), 25 deletions(-) rename resources/{cloudfront-distribution-deployments.go => cloudfront-distribution-deployment.go} (65%) diff --git a/resources/cloudfront-distribution-deployments.go b/resources/cloudfront-distribution-deployment.go similarity index 65% rename from resources/cloudfront-distribution-deployments.go rename to resources/cloudfront-distribution-deployment.go index 820bb2ae..c3f4e010 100644 --- a/resources/cloudfront-distribution-deployments.go +++ b/resources/cloudfront-distribution-deployment.go @@ -5,22 +5,17 @@ import ( "fmt" "github.com/gotidy/ptr" + "github.com/sirupsen/logrus" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/cloudfront" - "github.com/ekristen/aws-nuke/v3/pkg/nuke" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" -) + "github.com/ekristen/libnuke/pkg/types" -type CloudFrontDistributionDeployment struct { - svc *cloudfront.CloudFront - distributionID *string - eTag *string - distributionConfig *cloudfront.DistributionConfig - status string -} + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) const CloudFrontDistributionDeploymentResource = "CloudFrontDistributionDeployment" @@ -61,44 +56,57 @@ func (l *CloudFrontDistributionDeploymentLister) List(_ context.Context, o inter } for _, distribution := range distributions { - params := &cloudfront.GetDistributionInput{ + resp, err := svc.GetDistribution(&cloudfront.GetDistributionInput{ Id: distribution.Id, - } - resp, err := svc.GetDistribution(params) + }) if err != nil { - return nil, err + logrus.WithError(err).Error("unable to get distribution, skipping") + continue } + resources = append(resources, &CloudFrontDistributionDeployment{ svc: svc, - distributionID: resp.Distribution.Id, + ID: resp.Distribution.Id, eTag: resp.ETag, distributionConfig: resp.Distribution.DistributionConfig, - status: ptr.ToString(resp.Distribution.Status), + Status: resp.Distribution.Status, }) } return resources, nil } -func (f *CloudFrontDistributionDeployment) Remove(_ context.Context) error { - f.distributionConfig.Enabled = aws.Bool(false) +type CloudFrontDistributionDeployment struct { + svc *cloudfront.CloudFront + ID *string + Status *string + eTag *string + distributionConfig *cloudfront.DistributionConfig +} + +func (r *CloudFrontDistributionDeployment) Remove(_ context.Context) error { + r.distributionConfig.Enabled = aws.Bool(false) - _, err := f.svc.UpdateDistribution(&cloudfront.UpdateDistributionInput{ - Id: f.distributionID, - DistributionConfig: f.distributionConfig, - IfMatch: f.eTag, + _, err := r.svc.UpdateDistribution(&cloudfront.UpdateDistributionInput{ + Id: r.ID, + DistributionConfig: r.distributionConfig, + IfMatch: r.eTag, }) return err } -func (f *CloudFrontDistributionDeployment) Filter() error { - if !ptr.ToBool(f.distributionConfig.Enabled) && f.status != "InProgress" { +func (r *CloudFrontDistributionDeployment) Filter() error { + if !ptr.ToBool(r.distributionConfig.Enabled) && ptr.ToString(r.Status) != "InProgress" { return fmt.Errorf("already disabled") } return nil } -func (f *CloudFrontDistributionDeployment) String() string { - return *f.distributionID +func (r *CloudFrontDistributionDeployment) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + +func (r *CloudFrontDistributionDeployment) String() string { + return *r.ID } From 03b5894852e6da0eabe8dbba33c30a82e19cb15b Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 21 Aug 2024 11:04:46 -0600 Subject: [PATCH 402/617] test(iam-saml-provider): fix tests after struct changes --- resources/iam-saml-provider_mock_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/iam-saml-provider_mock_test.go b/resources/iam-saml-provider_mock_test.go index 45a48e40..bae5eb56 100644 --- a/resources/iam-saml-provider_mock_test.go +++ b/resources/iam-saml-provider_mock_test.go @@ -4,6 +4,8 @@ import ( "context" "testing" + "github.com/gotidy/ptr" + "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" @@ -21,11 +23,11 @@ func Test_Mock_IAMSAMLProvider_Remove(t *testing.T) { iamSAMLProvider := IAMSAMLProvider{ svc: mockIAM, - arn: "arn:mock-saml-provider-foobar", + ARN: ptr.String("arn:mock-saml-provider-foobar"), } mockIAM.EXPECT().DeleteSAMLProvider(gomock.Eq(&iam.DeleteSAMLProviderInput{ - SAMLProviderArn: &iamSAMLProvider.arn, + SAMLProviderArn: iamSAMLProvider.ARN, })).Return(&iam.DeleteSAMLProviderOutput{}, nil) err := iamSAMLProvider.Remove(context.TODO()) From 714cad6e391e05affe2be88297734c5d5df59775 Mon Sep 17 00:00:00 2001 From: Jacob Peterson <14127217+Petersoj@users.noreply.github.com> Date: Wed, 21 Aug 2024 11:53:27 -0700 Subject: [PATCH 403/617] fix(elasticache): use ID instead of name for default user filter --- resources/elasticache-users.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/elasticache-users.go b/resources/elasticache-users.go index 1e432b5d..87f0ccb4 100644 --- a/resources/elasticache-users.go +++ b/resources/elasticache-users.go @@ -5,6 +5,8 @@ import ( "fmt" "strings" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/elasticache" @@ -71,7 +73,7 @@ func (l *ElasticacheUserLister) List(_ context.Context, o interface{}) ([]resour } func (i *ElasticacheUser) Filter() error { - if strings.HasPrefix(*i.userName, "default") { + if ptr.ToString(i.userID) == "default" { return fmt.Errorf("cannot delete default user") } return nil From 1620200ab9dc7eda4e6ea02bbd80739afebb83d4 Mon Sep 17 00:00:00 2001 From: Jacob Peterson <14127217+Petersoj@users.noreply.github.com> Date: Wed, 21 Aug 2024 12:00:16 -0700 Subject: [PATCH 404/617] fix(elasticache): remove unused import --- resources/elasticache-users.go | 1 - 1 file changed, 1 deletion(-) diff --git a/resources/elasticache-users.go b/resources/elasticache-users.go index 87f0ccb4..5552eb9e 100644 --- a/resources/elasticache-users.go +++ b/resources/elasticache-users.go @@ -3,7 +3,6 @@ package resources import ( "context" "fmt" - "strings" "github.com/gotidy/ptr" From 3a6a18266426a55755644bb714e132e9a57909ab Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 21 Aug 2024 13:46:17 -0600 Subject: [PATCH 405/617] feat(dax-subnet-group): add properties --- ...ax-subnetgroups.go => dax-subnet-group.go} | 28 +++++++++++-------- 1 file changed, 16 insertions(+), 12 deletions(-) rename resources/{dax-subnetgroups.go => dax-subnet-group.go} (70%) diff --git a/resources/dax-subnetgroups.go b/resources/dax-subnet-group.go similarity index 70% rename from resources/dax-subnetgroups.go rename to resources/dax-subnet-group.go index c4021359..374384ce 100644 --- a/resources/dax-subnetgroups.go +++ b/resources/dax-subnet-group.go @@ -2,7 +2,6 @@ package resources import ( "context" - "fmt" "github.com/aws/aws-sdk-go/aws" @@ -10,6 +9,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) @@ -44,8 +44,8 @@ func (l *DAXSubnetGroupLister) List(_ context.Context, o interface{}) ([]resourc for _, subnet := range output.SubnetGroups { resources = append(resources, &DAXSubnetGroup{ - svc: svc, - subnetGroupName: subnet.SubnetGroupName, + svc: svc, + Name: subnet.SubnetGroupName, }) } @@ -60,25 +60,29 @@ func (l *DAXSubnetGroupLister) List(_ context.Context, o interface{}) ([]resourc } type DAXSubnetGroup struct { - svc *dax.DAX - subnetGroupName *string + svc *dax.DAX + Name *string } -func (f *DAXSubnetGroup) Filter() error { - if *f.subnetGroupName == "default" { +func (r *DAXSubnetGroup) Filter() error { + if *r.Name == "default" { //nolint:goconst return fmt.Errorf("cannot delete default DAX Subnet group") } return nil } -func (f *DAXSubnetGroup) Remove(_ context.Context) error { - _, err := f.svc.DeleteSubnetGroup(&dax.DeleteSubnetGroupInput{ - SubnetGroupName: f.subnetGroupName, +func (r *DAXSubnetGroup) Remove(_ context.Context) error { + _, err := r.svc.DeleteSubnetGroup(&dax.DeleteSubnetGroupInput{ + SubnetGroupName: r.Name, }) return err } -func (f *DAXSubnetGroup) String() string { - return *f.subnetGroupName +func (r *DAXSubnetGroup) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + +func (r *DAXSubnetGroup) String() string { + return *r.Name } From 1a104e338aac2c143ffb9b69de0b563e6c8fd477 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 21 Aug 2024 13:51:01 -0600 Subject: [PATCH 406/617] feat(dax-parameter-group): add properties and filter --- ...ametergroups.go => dax-parameter-group.go} | 46 +++++++++++-------- 1 file changed, 28 insertions(+), 18 deletions(-) rename resources/{dax-parametergroups.go => dax-parameter-group.go} (62%) diff --git a/resources/dax-parametergroups.go b/resources/dax-parameter-group.go similarity index 62% rename from resources/dax-parametergroups.go rename to resources/dax-parameter-group.go index 89fb3fed..d0c03f75 100644 --- a/resources/dax-parametergroups.go +++ b/resources/dax-parameter-group.go @@ -2,7 +2,7 @@ package resources import ( "context" - + "fmt" "strings" "github.com/aws/aws-sdk-go/aws" @@ -10,15 +10,11 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) -type DAXParameterGroup struct { - svc *dax.DAX - parameterGroupName *string -} - const DAXParameterGroupResource = "DAXParameterGroup" func init() { @@ -48,13 +44,10 @@ func (l *DAXParameterGroupLister) List(_ context.Context, o interface{}) ([]reso } for _, parameterGroup := range output.ParameterGroups { - // ensure default is not deleted - if !strings.Contains(*parameterGroup.ParameterGroupName, "default") { - resources = append(resources, &DAXParameterGroup{ - svc: svc, - parameterGroupName: parameterGroup.ParameterGroupName, - }) - } + resources = append(resources, &DAXParameterGroup{ + svc: svc, + Name: parameterGroup.ParameterGroupName, + }) } if output.NextToken == nil { @@ -67,14 +60,31 @@ func (l *DAXParameterGroupLister) List(_ context.Context, o interface{}) ([]reso return resources, nil } -func (f *DAXParameterGroup) Remove(_ context.Context) error { - _, err := f.svc.DeleteParameterGroup(&dax.DeleteParameterGroupInput{ - ParameterGroupName: f.parameterGroupName, +type DAXParameterGroup struct { + svc *dax.DAX + Name *string +} + +func (r *DAXParameterGroup) Filter() error { + if strings.Contains(*r.Name, "default") { //nolint:goconst + return fmt.Errorf("unable to delete default") + } + + return nil +} + +func (r *DAXParameterGroup) Remove(_ context.Context) error { + _, err := r.svc.DeleteParameterGroup(&dax.DeleteParameterGroupInput{ + ParameterGroupName: r.Name, }) return err } -func (f *DAXParameterGroup) String() string { - return *f.parameterGroupName +func (r *DAXParameterGroup) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + +func (r *DAXParameterGroup) String() string { + return *r.Name } From 03ad6bcaeb863429b3de60a420b2778316d423bd Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 21 Aug 2024 13:51:22 -0600 Subject: [PATCH 407/617] feat(dax-cluster): add properties --- resources/{dax-clusters.go => dax-cluster.go} | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) rename resources/{dax-clusters.go => dax-cluster.go} (74%) diff --git a/resources/dax-clusters.go b/resources/dax-cluster.go similarity index 74% rename from resources/dax-clusters.go rename to resources/dax-cluster.go index 1a8c6dc3..6a9ab96b 100644 --- a/resources/dax-clusters.go +++ b/resources/dax-cluster.go @@ -8,6 +8,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) @@ -46,8 +47,8 @@ func (l *DAXClusterLister) List(_ context.Context, o interface{}) ([]resource.Re for _, cluster := range output.Clusters { resources = append(resources, &DAXCluster{ - svc: svc, - clusterName: cluster.ClusterName, + svc: svc, + Name: cluster.ClusterName, }) } @@ -62,18 +63,22 @@ func (l *DAXClusterLister) List(_ context.Context, o interface{}) ([]resource.Re } type DAXCluster struct { - svc *dax.DAX - clusterName *string + svc *dax.DAX + Name *string } -func (f *DAXCluster) Remove(_ context.Context) error { - _, err := f.svc.DeleteCluster(&dax.DeleteClusterInput{ - ClusterName: f.clusterName, +func (r *DAXCluster) Remove(_ context.Context) error { + _, err := r.svc.DeleteCluster(&dax.DeleteClusterInput{ + ClusterName: r.Name, }) return err } -func (f *DAXCluster) String() string { - return *f.clusterName +func (r *DAXCluster) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + +func (r *DAXCluster) String() string { + return *r.Name } From 17f634b2b1e78df9ae743478010bae53e57bcf96 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 21 Aug 2024 13:56:30 -0600 Subject: [PATCH 408/617] chore: fix nolint statements --- resources/dax-parameter-group.go | 2 +- resources/dax-subnet-group.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/dax-parameter-group.go b/resources/dax-parameter-group.go index d0c03f75..ce833a16 100644 --- a/resources/dax-parameter-group.go +++ b/resources/dax-parameter-group.go @@ -66,7 +66,7 @@ type DAXParameterGroup struct { } func (r *DAXParameterGroup) Filter() error { - if strings.Contains(*r.Name, "default") { //nolint:goconst + if strings.Contains(*r.Name, "default") { //nolint:goconst,nolintlint return fmt.Errorf("unable to delete default") } diff --git a/resources/dax-subnet-group.go b/resources/dax-subnet-group.go index 374384ce..704a63fc 100644 --- a/resources/dax-subnet-group.go +++ b/resources/dax-subnet-group.go @@ -65,7 +65,7 @@ type DAXSubnetGroup struct { } func (r *DAXSubnetGroup) Filter() error { - if *r.Name == "default" { //nolint:goconst + if *r.Name == "default" { //nolint:goconst,nolintlint return fmt.Errorf("cannot delete default DAX Subnet group") } return nil From 679bc5e5c8c9d3b9352768481b285e3be4d5314d Mon Sep 17 00:00:00 2001 From: Jacob Peterson <14127217+Petersoj@users.noreply.github.com> Date: Fri, 23 Aug 2024 21:16:23 -0700 Subject: [PATCH 409/617] feat(elasticache): add ElastiCache Serverless nuking --- resources/elasticache-memcacheclusters.go | 63 +++++++++++++++++------ 1 file changed, 47 insertions(+), 16 deletions(-) diff --git a/resources/elasticache-memcacheclusters.go b/resources/elasticache-memcacheclusters.go index 8cbf537a..3316c398 100644 --- a/resources/elasticache-memcacheclusters.go +++ b/resources/elasticache-memcacheclusters.go @@ -62,10 +62,26 @@ func (l *ElasticacheCacheClusterLister) List(_ context.Context, o interface{}) ( } resources = append(resources, &ElasticacheCacheCluster{ - svc: svc, - clusterID: cacheCluster.CacheClusterId, - status: cacheCluster.CacheClusterStatus, - Tags: tags.TagList, + svc: svc, + clusterID: cacheCluster.CacheClusterId, + status: cacheCluster.CacheClusterStatus, + Tags: tags.TagList, + serverless: false, + }) + } + + serverlessParams := &elasticache.DescribeServerlessCachesInput{MaxResults: aws.Int64(100)} + serverlessResp, serverlessErr := svc.DescribeServerlessCaches(serverlessParams) + if serverlessErr != nil { + return nil, serverlessErr + } + + for _, serverlessCache := range serverlessResp.ServerlessCaches { + resources = append(resources, &ElasticacheCacheCluster{ + svc: svc, + clusterID: serverlessCache.ServerlessCacheName, + status: serverlessCache.Status, + serverless: true, }) } @@ -73,10 +89,11 @@ func (l *ElasticacheCacheClusterLister) List(_ context.Context, o interface{}) ( } type ElasticacheCacheCluster struct { - svc elasticacheiface.ElastiCacheAPI - clusterID *string - status *string - Tags []*elasticache.Tag + svc elasticacheiface.ElastiCacheAPI + clusterID *string + status *string + Tags []*elasticache.Tag + serverless bool } func (i *ElasticacheCacheCluster) Properties() types.Properties { @@ -85,22 +102,36 @@ func (i *ElasticacheCacheCluster) Properties() types.Properties { properties.Set("ClusterID", i.clusterID) properties.Set("Status", i.status) - for _, tag := range i.Tags { - properties.SetTag(tag.Key, tag.Value) + if i.Tags != nil { + for _, tag := range i.Tags { + properties.SetTag(tag.Key, tag.Value) + } } return properties } func (i *ElasticacheCacheCluster) Remove(_ context.Context) error { - params := &elasticache.DeleteCacheClusterInput{ - CacheClusterId: i.clusterID, - } + if !i.serverless { + params := &elasticache.DeleteCacheClusterInput{ + CacheClusterId: i.clusterID, + } - _, err := i.svc.DeleteCacheCluster(params) - if err != nil { - return err + _, err := i.svc.DeleteCacheCluster(params) + if err != nil { + return err + } + } else { + params := &elasticache.DeleteServerlessCacheInput{ + ServerlessCacheName: i.clusterID, + } + + _, serverlessErr := i.svc.DeleteServerlessCache(params) + if serverlessErr != nil { + return serverlessErr + } } + return nil } From 33d991ee4854a4bdb02676bf5d6b5056011df6a8 Mon Sep 17 00:00:00 2001 From: Jacob Peterson <14127217+Petersoj@users.noreply.github.com> Date: Sat, 24 Aug 2024 10:09:27 -0700 Subject: [PATCH 410/617] fix(elasticache): tests with serverless feat --- .../elasticache-memcacheclusters_mock_test.go | 42 ++++++++++++++++--- 1 file changed, 37 insertions(+), 5 deletions(-) diff --git a/resources/elasticache-memcacheclusters_mock_test.go b/resources/elasticache-memcacheclusters_mock_test.go index 04a3021b..de6fd8f0 100644 --- a/resources/elasticache-memcacheclusters_mock_test.go +++ b/resources/elasticache-memcacheclusters_mock_test.go @@ -26,8 +26,9 @@ func Test_Mock_ElastiCache_CacheCluster_Remove(t *testing.T) { mockElastiCache := mock_elasticacheiface.NewMockElastiCacheAPI(ctrl) cacheCluster := ElasticacheCacheCluster{ - svc: mockElastiCache, - clusterID: aws.String("foobar"), + svc: mockElastiCache, + clusterID: aws.String("foobar"), + serverless: false, } mockElastiCache.EXPECT().DeleteCacheCluster(&elasticache.DeleteCacheClusterInput{ @@ -58,6 +59,15 @@ func Test_Mock_ElastiCache_CacheCluster_List_NoTags(t *testing.T) { }, }, }, nil) + mockElastiCache.EXPECT().DescribeServerlessCaches(gomock.Any()).Return(&elasticache.DescribeServerlessCachesOutput{ + ServerlessCaches: []*elasticache.ServerlessCache{ + { + ARN: aws.String("arn:aws:elasticache:us-west-2:123456789012:serverless:foobar"), + ServerlessCacheName: aws.String("serverless"), + Status: aws.String("available"), + }, + }, + }, nil) mockElastiCache.EXPECT().ListTagsForResource(&elasticache.ListTagsForResourceInput{ ResourceName: aws.String("arn:aws:elasticache:us-west-2:123456789012:cluster:foobar"), @@ -65,10 +75,12 @@ func Test_Mock_ElastiCache_CacheCluster_List_NoTags(t *testing.T) { resources, err := cacheClusterLister.List(context.TODO(), &nuke.ListerOpts{}) a.Nil(err) - a.Len(resources, 1) + a.Len(resources, 2) resource := resources[0].(*ElasticacheCacheCluster) a.Equal("foobar", resource.String()) + serverlessResource := resources[1].(*ElasticacheCacheCluster) + a.Equal("serverless", serverlessResource.String()) } func Test_Mock_ElastiCache_CacheCluster_List_WithTags(t *testing.T) { @@ -90,6 +102,14 @@ func Test_Mock_ElastiCache_CacheCluster_List_WithTags(t *testing.T) { }, }, }, nil) + mockElastiCache.EXPECT().DescribeServerlessCaches(gomock.Any()).Return(&elasticache.DescribeServerlessCachesOutput{ + ServerlessCaches: []*elasticache.ServerlessCache{ + { + ARN: aws.String("arn:aws:elasticache:us-west-2:123456789012:serverless:foobar"), + ServerlessCacheName: aws.String("serverless"), + }, + }, + }, nil) mockElastiCache.EXPECT().ListTagsForResource(&elasticache.ListTagsForResourceInput{ ResourceName: aws.String("arn:aws:elasticache:us-west-2:123456789012:cluster:foobar"), @@ -108,13 +128,17 @@ func Test_Mock_ElastiCache_CacheCluster_List_WithTags(t *testing.T) { resources, err := cacheClusterLister.List(context.TODO(), &nuke.ListerOpts{}) a.Nil(err) - a.Len(resources, 1) + a.Len(resources, 2) resource := resources[0].(*ElasticacheCacheCluster) a.Len(resource.Tags, 2) a.Equal("foobar", resource.String()) a.Equal("foobar", resource.Properties().Get("tag:Name")) a.Equal("test", resource.Properties().Get("tag:aws-nuke")) + + serverlessResource := resources[1].(*ElasticacheCacheCluster) + a.Nil(serverlessResource.Tags) + a.Equal("serverless", serverlessResource.String()) } func Test_Mock_ElastiCache_CacheCluster_List_TagsInvalidARN(t *testing.T) { @@ -149,6 +173,14 @@ func Test_Mock_ElastiCache_CacheCluster_List_TagsInvalidARN(t *testing.T) { }, }, }, nil) + mockElastiCache.EXPECT().DescribeServerlessCaches(gomock.Any()).Return(&elasticache.DescribeServerlessCachesOutput{ + ServerlessCaches: []*elasticache.ServerlessCache{ + { + ARN: aws.String("arn:aws:elasticache:us-west-2:123456789012:serverless:foobar"), + ServerlessCacheName: aws.String("serverless"), + }, + }, + }, nil) mockElastiCache.EXPECT().ListTagsForResource(&elasticache.ListTagsForResourceInput{ ResourceName: aws.String("foobar:invalid:arn"), @@ -156,7 +188,7 @@ func Test_Mock_ElastiCache_CacheCluster_List_TagsInvalidARN(t *testing.T) { resources, err := cacheClusterLister.List(context.TODO(), &nuke.ListerOpts{}) a.Nil(err) - a.Len(resources, 0) + a.Len(resources, 1) a.True(called, "expected global hook called and log message to be found") } From 9b2d0f07bacf857d9e85098e1cba947faa5abcd0 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sat, 24 Aug 2024 11:10:33 -0600 Subject: [PATCH 411/617] feat(run): add flag to control the run loop sleep delay --- pkg/commands/nuke/nuke.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkg/commands/nuke/nuke.go b/pkg/commands/nuke/nuke.go index b0d17340..6f72416c 100644 --- a/pkg/commands/nuke/nuke.go +++ b/pkg/commands/nuke/nuke.go @@ -113,7 +113,7 @@ func execute(c *cli.Context) error { //nolint:funlen,gocyclo // Instantiate libnuke n := libnuke.New(params, filters, parsedConfig.Settings) - n.SetRunSleep(5 * time.Second) + n.SetRunSleep(c.Duration("sleep-delay")) n.SetLogger(logrus.WithField("component", "libnuke")) n.RegisterVersion(fmt.Sprintf("> %s", common.AppVersion.String())) @@ -251,6 +251,12 @@ func init() { //nolint:funlen Name: "max-wait-retries", Usage: "maximum number of retries to wait for dependencies to be removed", }, + &cli.DurationFlag{ + Name: "run-sleep-delay", + EnvVars: []string{"AWS_NUKE_RUN_SLEEP_DELAY"}, + Usage: "time to sleep between run/loops of resource deletions, default is 5 seconds", + Value: 5 * time.Second, + }, &cli.BoolFlag{ Name: "no-alias-check", Usage: "disable aws account alias check - requires entry in config as well", From 1859607832c391c1fbc8cf8a5ea037a858534210 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 27 Aug 2024 13:31:13 -0600 Subject: [PATCH 412/617] feat(configservice-configrule): remove remediation config if it exists --- resources/configservice-configrules.go | 55 +++++++++++++++++++------- 1 file changed, 40 insertions(+), 15 deletions(-) diff --git a/resources/configservice-configrules.go b/resources/configservice-configrules.go index 965c2c02..a90ada34 100644 --- a/resources/configservice-configrules.go +++ b/resources/configservice-configrules.go @@ -3,9 +3,10 @@ package resources import ( "context" "fmt" - "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/configservice" + "github.com/gotidy/ptr" + "github.com/sirupsen/logrus" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" @@ -41,11 +42,27 @@ func (l *ConfigServiceConfigRuleLister) List(_ context.Context, o interface{}) ( } for _, configRule := range output.ConfigRules { - resources = append(resources, &ConfigServiceConfigRule{ - svc: svc, - configRuleName: configRule.ConfigRuleName, - createdBy: configRule.CreatedBy, + remConfig, err := svc.DescribeRemediationConfigurations(&configservice.DescribeRemediationConfigurationsInput{ + ConfigRuleNames: []*string{configRule.ConfigRuleName}, }) + if err != nil { + logrus. + WithField("name", configRule.ConfigRuleName). + WithError(err). + Warn("unable to describe remediation configurations") + } + + newResource := &ConfigServiceConfigRule{ + svc: svc, + Name: configRule.ConfigRuleName, + CreatedBy: configRule.CreatedBy, + } + + if remConfig != nil && len(remConfig.RemediationConfigurations) > 0 { + newResource.HasRemediationConfig = ptr.Bool(true) + } + + resources = append(resources, newResource) } if output.NextToken == nil { @@ -59,17 +76,19 @@ func (l *ConfigServiceConfigRuleLister) List(_ context.Context, o interface{}) ( } type ConfigServiceConfigRule struct { - svc *configservice.ConfigService - configRuleName *string - createdBy *string + svc *configservice.ConfigService + Name *string + Scope *string + HasRemediationConfig *bool + CreatedBy *string } func (f *ConfigServiceConfigRule) Filter() error { - if aws.StringValue(f.createdBy) == "securityhub.amazonaws.com" { + if aws.StringValue(f.CreatedBy) == "securityhub.amazonaws.com" { return fmt.Errorf("cannot remove rule owned by securityhub.amazonaws.com") } - if aws.StringValue(f.createdBy) == "config-conforms.amazonaws.com" { + if aws.StringValue(f.CreatedBy) == "config-conforms.amazonaws.com" { return fmt.Errorf("cannot remove rule owned by config-conforms.amazonaws.com") } @@ -77,19 +96,25 @@ func (f *ConfigServiceConfigRule) Filter() error { } func (f *ConfigServiceConfigRule) Remove(_ context.Context) error { + if ptr.ToBool(f.HasRemediationConfig) { + if _, err := f.svc.DeleteRemediationConfiguration(&configservice.DeleteRemediationConfigurationInput{ + ConfigRuleName: f.Name, + }); err != nil { + return err + } + } + _, err := f.svc.DeleteConfigRule(&configservice.DeleteConfigRuleInput{ - ConfigRuleName: f.configRuleName, + ConfigRuleName: f.Name, }) return err } func (f *ConfigServiceConfigRule) String() string { - return *f.configRuleName + return *f.Name } func (f *ConfigServiceConfigRule) Properties() types.Properties { - props := types.NewProperties() - props.Set("CreatedBy", f.createdBy) - return props + return types.NewPropertiesFromStruct(f) } From 6d306337ddfc45e47d8a47b9e5b8e6689396f0ec Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 27 Aug 2024 13:32:48 -0600 Subject: [PATCH 413/617] refactor(configservice-configrule): standardize naming conventions --- ...igrules.go => configservice-configrule.go} | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) rename resources/{configservice-configrules.go => configservice-configrule.go} (78%) diff --git a/resources/configservice-configrules.go b/resources/configservice-configrule.go similarity index 78% rename from resources/configservice-configrules.go rename to resources/configservice-configrule.go index a90ada34..0dfb572f 100644 --- a/resources/configservice-configrules.go +++ b/resources/configservice-configrule.go @@ -83,38 +83,38 @@ type ConfigServiceConfigRule struct { CreatedBy *string } -func (f *ConfigServiceConfigRule) Filter() error { - if aws.StringValue(f.CreatedBy) == "securityhub.amazonaws.com" { +func (r *ConfigServiceConfigRule) Filter() error { + if aws.StringValue(r.CreatedBy) == "securityhub.amazonaws.com" { return fmt.Errorf("cannot remove rule owned by securityhub.amazonaws.com") } - if aws.StringValue(f.CreatedBy) == "config-conforms.amazonaws.com" { + if aws.StringValue(r.CreatedBy) == "config-conforms.amazonaws.com" { return fmt.Errorf("cannot remove rule owned by config-conforms.amazonaws.com") } return nil } -func (f *ConfigServiceConfigRule) Remove(_ context.Context) error { - if ptr.ToBool(f.HasRemediationConfig) { - if _, err := f.svc.DeleteRemediationConfiguration(&configservice.DeleteRemediationConfigurationInput{ - ConfigRuleName: f.Name, +func (r *ConfigServiceConfigRule) Remove(_ context.Context) error { + if ptr.ToBool(r.HasRemediationConfig) { + if _, err := r.svc.DeleteRemediationConfiguration(&configservice.DeleteRemediationConfigurationInput{ + ConfigRuleName: r.Name, }); err != nil { return err } } - _, err := f.svc.DeleteConfigRule(&configservice.DeleteConfigRuleInput{ - ConfigRuleName: f.Name, + _, err := r.svc.DeleteConfigRule(&configservice.DeleteConfigRuleInput{ + ConfigRuleName: r.Name, }) return err } -func (f *ConfigServiceConfigRule) String() string { - return *f.Name +func (r *ConfigServiceConfigRule) String() string { + return *r.Name } -func (f *ConfigServiceConfigRule) Properties() types.Properties { - return types.NewPropertiesFromStruct(f) +func (r *ConfigServiceConfigRule) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) } From 72e93457c31deaa5ff28f5a8428d0e0ae75290e4 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 27 Aug 2024 13:45:56 -0600 Subject: [PATCH 414/617] chore(configservice-configrule): fix lint violations --- resources/configservice-configrule.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/configservice-configrule.go b/resources/configservice-configrule.go index 0dfb572f..748ad163 100644 --- a/resources/configservice-configrule.go +++ b/resources/configservice-configrule.go @@ -3,11 +3,13 @@ package resources import ( "context" "fmt" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/configservice" + "github.com/gotidy/ptr" "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/configservice" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" From c2e8c16a088ba1a013cba93cbe5374a4eabd2905 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 27 Aug 2024 16:28:31 -0600 Subject: [PATCH 415/617] test(kms): adding mocks for kms service --- go.mod | 2 + go.sum | 4 + mocks/mock_kmsiface/mock.go | 2951 +++++++++++++++++++++++++++++++++++ 3 files changed, 2957 insertions(+) create mode 100644 mocks/mock_kmsiface/mock.go diff --git a/go.mod b/go.mod index afb913dc..011251ac 100644 --- a/go.mod +++ b/go.mod @@ -32,8 +32,10 @@ require ( github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/stevenle/topsort v0.2.0 // indirect github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect + golang.org/x/mod v0.17.0 // indirect golang.org/x/sync v0.8.0 // indirect golang.org/x/sys v0.20.0 // indirect + golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect gopkg.in/yaml.v2 v2.4.0 // indirect ) diff --git a/go.sum b/go.sum index ab6c4b36..bf39ecd1 100644 --- a/go.sum +++ b/go.sum @@ -68,6 +68,8 @@ go.uber.org/ratelimit v0.3.1/go.mod h1:6euWsTB6U/Nb3X++xEUXA8ciPJvr19Q/0h1+oDcJh golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.17.0 h1:zY54UmvipHiNd+pm+m0x9KhZ9hl1/7QNMyxXbc6ICqA= +golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= @@ -97,6 +99,8 @@ golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d h1:vU5i/LfpvrRCpgM/VPfJLg5KjxD3E+hfT1SH+d9zLwg= +golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/mocks/mock_kmsiface/mock.go b/mocks/mock_kmsiface/mock.go new file mode 100644 index 00000000..7cb010c1 --- /dev/null +++ b/mocks/mock_kmsiface/mock.go @@ -0,0 +1,2951 @@ +// Code generated by MockGen. DO NOT EDIT. +// Source: /Users/ekristen/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.20/service/kms/kmsiface/interface.go + +// Package mock_kmsiface is a generated GoMock package. +package mock_kmsiface + +import ( + reflect "reflect" + + aws "github.com/aws/aws-sdk-go/aws" + request "github.com/aws/aws-sdk-go/aws/request" + kms "github.com/aws/aws-sdk-go/service/kms" + gomock "github.com/golang/mock/gomock" +) + +// MockKMSAPI is a mock of KMSAPI interface. +type MockKMSAPI struct { + ctrl *gomock.Controller + recorder *MockKMSAPIMockRecorder +} + +// MockKMSAPIMockRecorder is the mock recorder for MockKMSAPI. +type MockKMSAPIMockRecorder struct { + mock *MockKMSAPI +} + +// NewMockKMSAPI creates a new mock instance. +func NewMockKMSAPI(ctrl *gomock.Controller) *MockKMSAPI { + mock := &MockKMSAPI{ctrl: ctrl} + mock.recorder = &MockKMSAPIMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockKMSAPI) EXPECT() *MockKMSAPIMockRecorder { + return m.recorder +} + +// CancelKeyDeletion mocks base method. +func (m *MockKMSAPI) CancelKeyDeletion(arg0 *kms.CancelKeyDeletionInput) (*kms.CancelKeyDeletionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CancelKeyDeletion", arg0) + ret0, _ := ret[0].(*kms.CancelKeyDeletionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CancelKeyDeletion indicates an expected call of CancelKeyDeletion. +func (mr *MockKMSAPIMockRecorder) CancelKeyDeletion(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelKeyDeletion", reflect.TypeOf((*MockKMSAPI)(nil).CancelKeyDeletion), arg0) +} + +// CancelKeyDeletionRequest mocks base method. +func (m *MockKMSAPI) CancelKeyDeletionRequest(arg0 *kms.CancelKeyDeletionInput) (*request.Request, *kms.CancelKeyDeletionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CancelKeyDeletionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.CancelKeyDeletionOutput) + return ret0, ret1 +} + +// CancelKeyDeletionRequest indicates an expected call of CancelKeyDeletionRequest. +func (mr *MockKMSAPIMockRecorder) CancelKeyDeletionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelKeyDeletionRequest", reflect.TypeOf((*MockKMSAPI)(nil).CancelKeyDeletionRequest), arg0) +} + +// CancelKeyDeletionWithContext mocks base method. +func (m *MockKMSAPI) CancelKeyDeletionWithContext(arg0 aws.Context, arg1 *kms.CancelKeyDeletionInput, arg2 ...request.Option) (*kms.CancelKeyDeletionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CancelKeyDeletionWithContext", varargs...) + ret0, _ := ret[0].(*kms.CancelKeyDeletionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CancelKeyDeletionWithContext indicates an expected call of CancelKeyDeletionWithContext. +func (mr *MockKMSAPIMockRecorder) CancelKeyDeletionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelKeyDeletionWithContext", reflect.TypeOf((*MockKMSAPI)(nil).CancelKeyDeletionWithContext), varargs...) +} + +// ConnectCustomKeyStore mocks base method. +func (m *MockKMSAPI) ConnectCustomKeyStore(arg0 *kms.ConnectCustomKeyStoreInput) (*kms.ConnectCustomKeyStoreOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ConnectCustomKeyStore", arg0) + ret0, _ := ret[0].(*kms.ConnectCustomKeyStoreOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ConnectCustomKeyStore indicates an expected call of ConnectCustomKeyStore. +func (mr *MockKMSAPIMockRecorder) ConnectCustomKeyStore(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConnectCustomKeyStore", reflect.TypeOf((*MockKMSAPI)(nil).ConnectCustomKeyStore), arg0) +} + +// ConnectCustomKeyStoreRequest mocks base method. +func (m *MockKMSAPI) ConnectCustomKeyStoreRequest(arg0 *kms.ConnectCustomKeyStoreInput) (*request.Request, *kms.ConnectCustomKeyStoreOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ConnectCustomKeyStoreRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.ConnectCustomKeyStoreOutput) + return ret0, ret1 +} + +// ConnectCustomKeyStoreRequest indicates an expected call of ConnectCustomKeyStoreRequest. +func (mr *MockKMSAPIMockRecorder) ConnectCustomKeyStoreRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConnectCustomKeyStoreRequest", reflect.TypeOf((*MockKMSAPI)(nil).ConnectCustomKeyStoreRequest), arg0) +} + +// ConnectCustomKeyStoreWithContext mocks base method. +func (m *MockKMSAPI) ConnectCustomKeyStoreWithContext(arg0 aws.Context, arg1 *kms.ConnectCustomKeyStoreInput, arg2 ...request.Option) (*kms.ConnectCustomKeyStoreOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ConnectCustomKeyStoreWithContext", varargs...) + ret0, _ := ret[0].(*kms.ConnectCustomKeyStoreOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ConnectCustomKeyStoreWithContext indicates an expected call of ConnectCustomKeyStoreWithContext. +func (mr *MockKMSAPIMockRecorder) ConnectCustomKeyStoreWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConnectCustomKeyStoreWithContext", reflect.TypeOf((*MockKMSAPI)(nil).ConnectCustomKeyStoreWithContext), varargs...) +} + +// CreateAlias mocks base method. +func (m *MockKMSAPI) CreateAlias(arg0 *kms.CreateAliasInput) (*kms.CreateAliasOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateAlias", arg0) + ret0, _ := ret[0].(*kms.CreateAliasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateAlias indicates an expected call of CreateAlias. +func (mr *MockKMSAPIMockRecorder) CreateAlias(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAlias", reflect.TypeOf((*MockKMSAPI)(nil).CreateAlias), arg0) +} + +// CreateAliasRequest mocks base method. +func (m *MockKMSAPI) CreateAliasRequest(arg0 *kms.CreateAliasInput) (*request.Request, *kms.CreateAliasOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateAliasRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.CreateAliasOutput) + return ret0, ret1 +} + +// CreateAliasRequest indicates an expected call of CreateAliasRequest. +func (mr *MockKMSAPIMockRecorder) CreateAliasRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAliasRequest", reflect.TypeOf((*MockKMSAPI)(nil).CreateAliasRequest), arg0) +} + +// CreateAliasWithContext mocks base method. +func (m *MockKMSAPI) CreateAliasWithContext(arg0 aws.Context, arg1 *kms.CreateAliasInput, arg2 ...request.Option) (*kms.CreateAliasOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateAliasWithContext", varargs...) + ret0, _ := ret[0].(*kms.CreateAliasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateAliasWithContext indicates an expected call of CreateAliasWithContext. +func (mr *MockKMSAPIMockRecorder) CreateAliasWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAliasWithContext", reflect.TypeOf((*MockKMSAPI)(nil).CreateAliasWithContext), varargs...) +} + +// CreateCustomKeyStore mocks base method. +func (m *MockKMSAPI) CreateCustomKeyStore(arg0 *kms.CreateCustomKeyStoreInput) (*kms.CreateCustomKeyStoreOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateCustomKeyStore", arg0) + ret0, _ := ret[0].(*kms.CreateCustomKeyStoreOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateCustomKeyStore indicates an expected call of CreateCustomKeyStore. +func (mr *MockKMSAPIMockRecorder) CreateCustomKeyStore(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCustomKeyStore", reflect.TypeOf((*MockKMSAPI)(nil).CreateCustomKeyStore), arg0) +} + +// CreateCustomKeyStoreRequest mocks base method. +func (m *MockKMSAPI) CreateCustomKeyStoreRequest(arg0 *kms.CreateCustomKeyStoreInput) (*request.Request, *kms.CreateCustomKeyStoreOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateCustomKeyStoreRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.CreateCustomKeyStoreOutput) + return ret0, ret1 +} + +// CreateCustomKeyStoreRequest indicates an expected call of CreateCustomKeyStoreRequest. +func (mr *MockKMSAPIMockRecorder) CreateCustomKeyStoreRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCustomKeyStoreRequest", reflect.TypeOf((*MockKMSAPI)(nil).CreateCustomKeyStoreRequest), arg0) +} + +// CreateCustomKeyStoreWithContext mocks base method. +func (m *MockKMSAPI) CreateCustomKeyStoreWithContext(arg0 aws.Context, arg1 *kms.CreateCustomKeyStoreInput, arg2 ...request.Option) (*kms.CreateCustomKeyStoreOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateCustomKeyStoreWithContext", varargs...) + ret0, _ := ret[0].(*kms.CreateCustomKeyStoreOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateCustomKeyStoreWithContext indicates an expected call of CreateCustomKeyStoreWithContext. +func (mr *MockKMSAPIMockRecorder) CreateCustomKeyStoreWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCustomKeyStoreWithContext", reflect.TypeOf((*MockKMSAPI)(nil).CreateCustomKeyStoreWithContext), varargs...) +} + +// CreateGrant mocks base method. +func (m *MockKMSAPI) CreateGrant(arg0 *kms.CreateGrantInput) (*kms.CreateGrantOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateGrant", arg0) + ret0, _ := ret[0].(*kms.CreateGrantOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateGrant indicates an expected call of CreateGrant. +func (mr *MockKMSAPIMockRecorder) CreateGrant(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGrant", reflect.TypeOf((*MockKMSAPI)(nil).CreateGrant), arg0) +} + +// CreateGrantRequest mocks base method. +func (m *MockKMSAPI) CreateGrantRequest(arg0 *kms.CreateGrantInput) (*request.Request, *kms.CreateGrantOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateGrantRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.CreateGrantOutput) + return ret0, ret1 +} + +// CreateGrantRequest indicates an expected call of CreateGrantRequest. +func (mr *MockKMSAPIMockRecorder) CreateGrantRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGrantRequest", reflect.TypeOf((*MockKMSAPI)(nil).CreateGrantRequest), arg0) +} + +// CreateGrantWithContext mocks base method. +func (m *MockKMSAPI) CreateGrantWithContext(arg0 aws.Context, arg1 *kms.CreateGrantInput, arg2 ...request.Option) (*kms.CreateGrantOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateGrantWithContext", varargs...) + ret0, _ := ret[0].(*kms.CreateGrantOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateGrantWithContext indicates an expected call of CreateGrantWithContext. +func (mr *MockKMSAPIMockRecorder) CreateGrantWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGrantWithContext", reflect.TypeOf((*MockKMSAPI)(nil).CreateGrantWithContext), varargs...) +} + +// CreateKey mocks base method. +func (m *MockKMSAPI) CreateKey(arg0 *kms.CreateKeyInput) (*kms.CreateKeyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateKey", arg0) + ret0, _ := ret[0].(*kms.CreateKeyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateKey indicates an expected call of CreateKey. +func (mr *MockKMSAPIMockRecorder) CreateKey(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateKey", reflect.TypeOf((*MockKMSAPI)(nil).CreateKey), arg0) +} + +// CreateKeyRequest mocks base method. +func (m *MockKMSAPI) CreateKeyRequest(arg0 *kms.CreateKeyInput) (*request.Request, *kms.CreateKeyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateKeyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.CreateKeyOutput) + return ret0, ret1 +} + +// CreateKeyRequest indicates an expected call of CreateKeyRequest. +func (mr *MockKMSAPIMockRecorder) CreateKeyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateKeyRequest", reflect.TypeOf((*MockKMSAPI)(nil).CreateKeyRequest), arg0) +} + +// CreateKeyWithContext mocks base method. +func (m *MockKMSAPI) CreateKeyWithContext(arg0 aws.Context, arg1 *kms.CreateKeyInput, arg2 ...request.Option) (*kms.CreateKeyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateKeyWithContext", varargs...) + ret0, _ := ret[0].(*kms.CreateKeyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateKeyWithContext indicates an expected call of CreateKeyWithContext. +func (mr *MockKMSAPIMockRecorder) CreateKeyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateKeyWithContext", reflect.TypeOf((*MockKMSAPI)(nil).CreateKeyWithContext), varargs...) +} + +// Decrypt mocks base method. +func (m *MockKMSAPI) Decrypt(arg0 *kms.DecryptInput) (*kms.DecryptOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Decrypt", arg0) + ret0, _ := ret[0].(*kms.DecryptOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// Decrypt indicates an expected call of Decrypt. +func (mr *MockKMSAPIMockRecorder) Decrypt(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Decrypt", reflect.TypeOf((*MockKMSAPI)(nil).Decrypt), arg0) +} + +// DecryptRequest mocks base method. +func (m *MockKMSAPI) DecryptRequest(arg0 *kms.DecryptInput) (*request.Request, *kms.DecryptOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DecryptRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.DecryptOutput) + return ret0, ret1 +} + +// DecryptRequest indicates an expected call of DecryptRequest. +func (mr *MockKMSAPIMockRecorder) DecryptRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecryptRequest", reflect.TypeOf((*MockKMSAPI)(nil).DecryptRequest), arg0) +} + +// DecryptWithContext mocks base method. +func (m *MockKMSAPI) DecryptWithContext(arg0 aws.Context, arg1 *kms.DecryptInput, arg2 ...request.Option) (*kms.DecryptOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DecryptWithContext", varargs...) + ret0, _ := ret[0].(*kms.DecryptOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DecryptWithContext indicates an expected call of DecryptWithContext. +func (mr *MockKMSAPIMockRecorder) DecryptWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecryptWithContext", reflect.TypeOf((*MockKMSAPI)(nil).DecryptWithContext), varargs...) +} + +// DeleteAlias mocks base method. +func (m *MockKMSAPI) DeleteAlias(arg0 *kms.DeleteAliasInput) (*kms.DeleteAliasOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteAlias", arg0) + ret0, _ := ret[0].(*kms.DeleteAliasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteAlias indicates an expected call of DeleteAlias. +func (mr *MockKMSAPIMockRecorder) DeleteAlias(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAlias", reflect.TypeOf((*MockKMSAPI)(nil).DeleteAlias), arg0) +} + +// DeleteAliasRequest mocks base method. +func (m *MockKMSAPI) DeleteAliasRequest(arg0 *kms.DeleteAliasInput) (*request.Request, *kms.DeleteAliasOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteAliasRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.DeleteAliasOutput) + return ret0, ret1 +} + +// DeleteAliasRequest indicates an expected call of DeleteAliasRequest. +func (mr *MockKMSAPIMockRecorder) DeleteAliasRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAliasRequest", reflect.TypeOf((*MockKMSAPI)(nil).DeleteAliasRequest), arg0) +} + +// DeleteAliasWithContext mocks base method. +func (m *MockKMSAPI) DeleteAliasWithContext(arg0 aws.Context, arg1 *kms.DeleteAliasInput, arg2 ...request.Option) (*kms.DeleteAliasOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteAliasWithContext", varargs...) + ret0, _ := ret[0].(*kms.DeleteAliasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteAliasWithContext indicates an expected call of DeleteAliasWithContext. +func (mr *MockKMSAPIMockRecorder) DeleteAliasWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAliasWithContext", reflect.TypeOf((*MockKMSAPI)(nil).DeleteAliasWithContext), varargs...) +} + +// DeleteCustomKeyStore mocks base method. +func (m *MockKMSAPI) DeleteCustomKeyStore(arg0 *kms.DeleteCustomKeyStoreInput) (*kms.DeleteCustomKeyStoreOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteCustomKeyStore", arg0) + ret0, _ := ret[0].(*kms.DeleteCustomKeyStoreOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteCustomKeyStore indicates an expected call of DeleteCustomKeyStore. +func (mr *MockKMSAPIMockRecorder) DeleteCustomKeyStore(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCustomKeyStore", reflect.TypeOf((*MockKMSAPI)(nil).DeleteCustomKeyStore), arg0) +} + +// DeleteCustomKeyStoreRequest mocks base method. +func (m *MockKMSAPI) DeleteCustomKeyStoreRequest(arg0 *kms.DeleteCustomKeyStoreInput) (*request.Request, *kms.DeleteCustomKeyStoreOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteCustomKeyStoreRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.DeleteCustomKeyStoreOutput) + return ret0, ret1 +} + +// DeleteCustomKeyStoreRequest indicates an expected call of DeleteCustomKeyStoreRequest. +func (mr *MockKMSAPIMockRecorder) DeleteCustomKeyStoreRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCustomKeyStoreRequest", reflect.TypeOf((*MockKMSAPI)(nil).DeleteCustomKeyStoreRequest), arg0) +} + +// DeleteCustomKeyStoreWithContext mocks base method. +func (m *MockKMSAPI) DeleteCustomKeyStoreWithContext(arg0 aws.Context, arg1 *kms.DeleteCustomKeyStoreInput, arg2 ...request.Option) (*kms.DeleteCustomKeyStoreOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteCustomKeyStoreWithContext", varargs...) + ret0, _ := ret[0].(*kms.DeleteCustomKeyStoreOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteCustomKeyStoreWithContext indicates an expected call of DeleteCustomKeyStoreWithContext. +func (mr *MockKMSAPIMockRecorder) DeleteCustomKeyStoreWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCustomKeyStoreWithContext", reflect.TypeOf((*MockKMSAPI)(nil).DeleteCustomKeyStoreWithContext), varargs...) +} + +// DeleteImportedKeyMaterial mocks base method. +func (m *MockKMSAPI) DeleteImportedKeyMaterial(arg0 *kms.DeleteImportedKeyMaterialInput) (*kms.DeleteImportedKeyMaterialOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteImportedKeyMaterial", arg0) + ret0, _ := ret[0].(*kms.DeleteImportedKeyMaterialOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteImportedKeyMaterial indicates an expected call of DeleteImportedKeyMaterial. +func (mr *MockKMSAPIMockRecorder) DeleteImportedKeyMaterial(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteImportedKeyMaterial", reflect.TypeOf((*MockKMSAPI)(nil).DeleteImportedKeyMaterial), arg0) +} + +// DeleteImportedKeyMaterialRequest mocks base method. +func (m *MockKMSAPI) DeleteImportedKeyMaterialRequest(arg0 *kms.DeleteImportedKeyMaterialInput) (*request.Request, *kms.DeleteImportedKeyMaterialOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteImportedKeyMaterialRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.DeleteImportedKeyMaterialOutput) + return ret0, ret1 +} + +// DeleteImportedKeyMaterialRequest indicates an expected call of DeleteImportedKeyMaterialRequest. +func (mr *MockKMSAPIMockRecorder) DeleteImportedKeyMaterialRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteImportedKeyMaterialRequest", reflect.TypeOf((*MockKMSAPI)(nil).DeleteImportedKeyMaterialRequest), arg0) +} + +// DeleteImportedKeyMaterialWithContext mocks base method. +func (m *MockKMSAPI) DeleteImportedKeyMaterialWithContext(arg0 aws.Context, arg1 *kms.DeleteImportedKeyMaterialInput, arg2 ...request.Option) (*kms.DeleteImportedKeyMaterialOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteImportedKeyMaterialWithContext", varargs...) + ret0, _ := ret[0].(*kms.DeleteImportedKeyMaterialOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteImportedKeyMaterialWithContext indicates an expected call of DeleteImportedKeyMaterialWithContext. +func (mr *MockKMSAPIMockRecorder) DeleteImportedKeyMaterialWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteImportedKeyMaterialWithContext", reflect.TypeOf((*MockKMSAPI)(nil).DeleteImportedKeyMaterialWithContext), varargs...) +} + +// DeriveSharedSecret mocks base method. +func (m *MockKMSAPI) DeriveSharedSecret(arg0 *kms.DeriveSharedSecretInput) (*kms.DeriveSharedSecretOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeriveSharedSecret", arg0) + ret0, _ := ret[0].(*kms.DeriveSharedSecretOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeriveSharedSecret indicates an expected call of DeriveSharedSecret. +func (mr *MockKMSAPIMockRecorder) DeriveSharedSecret(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeriveSharedSecret", reflect.TypeOf((*MockKMSAPI)(nil).DeriveSharedSecret), arg0) +} + +// DeriveSharedSecretRequest mocks base method. +func (m *MockKMSAPI) DeriveSharedSecretRequest(arg0 *kms.DeriveSharedSecretInput) (*request.Request, *kms.DeriveSharedSecretOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeriveSharedSecretRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.DeriveSharedSecretOutput) + return ret0, ret1 +} + +// DeriveSharedSecretRequest indicates an expected call of DeriveSharedSecretRequest. +func (mr *MockKMSAPIMockRecorder) DeriveSharedSecretRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeriveSharedSecretRequest", reflect.TypeOf((*MockKMSAPI)(nil).DeriveSharedSecretRequest), arg0) +} + +// DeriveSharedSecretWithContext mocks base method. +func (m *MockKMSAPI) DeriveSharedSecretWithContext(arg0 aws.Context, arg1 *kms.DeriveSharedSecretInput, arg2 ...request.Option) (*kms.DeriveSharedSecretOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeriveSharedSecretWithContext", varargs...) + ret0, _ := ret[0].(*kms.DeriveSharedSecretOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeriveSharedSecretWithContext indicates an expected call of DeriveSharedSecretWithContext. +func (mr *MockKMSAPIMockRecorder) DeriveSharedSecretWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeriveSharedSecretWithContext", reflect.TypeOf((*MockKMSAPI)(nil).DeriveSharedSecretWithContext), varargs...) +} + +// DescribeCustomKeyStores mocks base method. +func (m *MockKMSAPI) DescribeCustomKeyStores(arg0 *kms.DescribeCustomKeyStoresInput) (*kms.DescribeCustomKeyStoresOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeCustomKeyStores", arg0) + ret0, _ := ret[0].(*kms.DescribeCustomKeyStoresOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeCustomKeyStores indicates an expected call of DescribeCustomKeyStores. +func (mr *MockKMSAPIMockRecorder) DescribeCustomKeyStores(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCustomKeyStores", reflect.TypeOf((*MockKMSAPI)(nil).DescribeCustomKeyStores), arg0) +} + +// DescribeCustomKeyStoresPages mocks base method. +func (m *MockKMSAPI) DescribeCustomKeyStoresPages(arg0 *kms.DescribeCustomKeyStoresInput, arg1 func(*kms.DescribeCustomKeyStoresOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeCustomKeyStoresPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeCustomKeyStoresPages indicates an expected call of DescribeCustomKeyStoresPages. +func (mr *MockKMSAPIMockRecorder) DescribeCustomKeyStoresPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCustomKeyStoresPages", reflect.TypeOf((*MockKMSAPI)(nil).DescribeCustomKeyStoresPages), arg0, arg1) +} + +// DescribeCustomKeyStoresPagesWithContext mocks base method. +func (m *MockKMSAPI) DescribeCustomKeyStoresPagesWithContext(arg0 aws.Context, arg1 *kms.DescribeCustomKeyStoresInput, arg2 func(*kms.DescribeCustomKeyStoresOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeCustomKeyStoresPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeCustomKeyStoresPagesWithContext indicates an expected call of DescribeCustomKeyStoresPagesWithContext. +func (mr *MockKMSAPIMockRecorder) DescribeCustomKeyStoresPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCustomKeyStoresPagesWithContext", reflect.TypeOf((*MockKMSAPI)(nil).DescribeCustomKeyStoresPagesWithContext), varargs...) +} + +// DescribeCustomKeyStoresRequest mocks base method. +func (m *MockKMSAPI) DescribeCustomKeyStoresRequest(arg0 *kms.DescribeCustomKeyStoresInput) (*request.Request, *kms.DescribeCustomKeyStoresOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeCustomKeyStoresRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.DescribeCustomKeyStoresOutput) + return ret0, ret1 +} + +// DescribeCustomKeyStoresRequest indicates an expected call of DescribeCustomKeyStoresRequest. +func (mr *MockKMSAPIMockRecorder) DescribeCustomKeyStoresRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCustomKeyStoresRequest", reflect.TypeOf((*MockKMSAPI)(nil).DescribeCustomKeyStoresRequest), arg0) +} + +// DescribeCustomKeyStoresWithContext mocks base method. +func (m *MockKMSAPI) DescribeCustomKeyStoresWithContext(arg0 aws.Context, arg1 *kms.DescribeCustomKeyStoresInput, arg2 ...request.Option) (*kms.DescribeCustomKeyStoresOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeCustomKeyStoresWithContext", varargs...) + ret0, _ := ret[0].(*kms.DescribeCustomKeyStoresOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeCustomKeyStoresWithContext indicates an expected call of DescribeCustomKeyStoresWithContext. +func (mr *MockKMSAPIMockRecorder) DescribeCustomKeyStoresWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCustomKeyStoresWithContext", reflect.TypeOf((*MockKMSAPI)(nil).DescribeCustomKeyStoresWithContext), varargs...) +} + +// DescribeKey mocks base method. +func (m *MockKMSAPI) DescribeKey(arg0 *kms.DescribeKeyInput) (*kms.DescribeKeyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeKey", arg0) + ret0, _ := ret[0].(*kms.DescribeKeyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeKey indicates an expected call of DescribeKey. +func (mr *MockKMSAPIMockRecorder) DescribeKey(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeKey", reflect.TypeOf((*MockKMSAPI)(nil).DescribeKey), arg0) +} + +// DescribeKeyRequest mocks base method. +func (m *MockKMSAPI) DescribeKeyRequest(arg0 *kms.DescribeKeyInput) (*request.Request, *kms.DescribeKeyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeKeyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.DescribeKeyOutput) + return ret0, ret1 +} + +// DescribeKeyRequest indicates an expected call of DescribeKeyRequest. +func (mr *MockKMSAPIMockRecorder) DescribeKeyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeKeyRequest", reflect.TypeOf((*MockKMSAPI)(nil).DescribeKeyRequest), arg0) +} + +// DescribeKeyWithContext mocks base method. +func (m *MockKMSAPI) DescribeKeyWithContext(arg0 aws.Context, arg1 *kms.DescribeKeyInput, arg2 ...request.Option) (*kms.DescribeKeyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeKeyWithContext", varargs...) + ret0, _ := ret[0].(*kms.DescribeKeyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeKeyWithContext indicates an expected call of DescribeKeyWithContext. +func (mr *MockKMSAPIMockRecorder) DescribeKeyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeKeyWithContext", reflect.TypeOf((*MockKMSAPI)(nil).DescribeKeyWithContext), varargs...) +} + +// DisableKey mocks base method. +func (m *MockKMSAPI) DisableKey(arg0 *kms.DisableKeyInput) (*kms.DisableKeyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DisableKey", arg0) + ret0, _ := ret[0].(*kms.DisableKeyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DisableKey indicates an expected call of DisableKey. +func (mr *MockKMSAPIMockRecorder) DisableKey(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisableKey", reflect.TypeOf((*MockKMSAPI)(nil).DisableKey), arg0) +} + +// DisableKeyRequest mocks base method. +func (m *MockKMSAPI) DisableKeyRequest(arg0 *kms.DisableKeyInput) (*request.Request, *kms.DisableKeyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DisableKeyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.DisableKeyOutput) + return ret0, ret1 +} + +// DisableKeyRequest indicates an expected call of DisableKeyRequest. +func (mr *MockKMSAPIMockRecorder) DisableKeyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisableKeyRequest", reflect.TypeOf((*MockKMSAPI)(nil).DisableKeyRequest), arg0) +} + +// DisableKeyRotation mocks base method. +func (m *MockKMSAPI) DisableKeyRotation(arg0 *kms.DisableKeyRotationInput) (*kms.DisableKeyRotationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DisableKeyRotation", arg0) + ret0, _ := ret[0].(*kms.DisableKeyRotationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DisableKeyRotation indicates an expected call of DisableKeyRotation. +func (mr *MockKMSAPIMockRecorder) DisableKeyRotation(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisableKeyRotation", reflect.TypeOf((*MockKMSAPI)(nil).DisableKeyRotation), arg0) +} + +// DisableKeyRotationRequest mocks base method. +func (m *MockKMSAPI) DisableKeyRotationRequest(arg0 *kms.DisableKeyRotationInput) (*request.Request, *kms.DisableKeyRotationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DisableKeyRotationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.DisableKeyRotationOutput) + return ret0, ret1 +} + +// DisableKeyRotationRequest indicates an expected call of DisableKeyRotationRequest. +func (mr *MockKMSAPIMockRecorder) DisableKeyRotationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisableKeyRotationRequest", reflect.TypeOf((*MockKMSAPI)(nil).DisableKeyRotationRequest), arg0) +} + +// DisableKeyRotationWithContext mocks base method. +func (m *MockKMSAPI) DisableKeyRotationWithContext(arg0 aws.Context, arg1 *kms.DisableKeyRotationInput, arg2 ...request.Option) (*kms.DisableKeyRotationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DisableKeyRotationWithContext", varargs...) + ret0, _ := ret[0].(*kms.DisableKeyRotationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DisableKeyRotationWithContext indicates an expected call of DisableKeyRotationWithContext. +func (mr *MockKMSAPIMockRecorder) DisableKeyRotationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisableKeyRotationWithContext", reflect.TypeOf((*MockKMSAPI)(nil).DisableKeyRotationWithContext), varargs...) +} + +// DisableKeyWithContext mocks base method. +func (m *MockKMSAPI) DisableKeyWithContext(arg0 aws.Context, arg1 *kms.DisableKeyInput, arg2 ...request.Option) (*kms.DisableKeyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DisableKeyWithContext", varargs...) + ret0, _ := ret[0].(*kms.DisableKeyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DisableKeyWithContext indicates an expected call of DisableKeyWithContext. +func (mr *MockKMSAPIMockRecorder) DisableKeyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisableKeyWithContext", reflect.TypeOf((*MockKMSAPI)(nil).DisableKeyWithContext), varargs...) +} + +// DisconnectCustomKeyStore mocks base method. +func (m *MockKMSAPI) DisconnectCustomKeyStore(arg0 *kms.DisconnectCustomKeyStoreInput) (*kms.DisconnectCustomKeyStoreOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DisconnectCustomKeyStore", arg0) + ret0, _ := ret[0].(*kms.DisconnectCustomKeyStoreOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DisconnectCustomKeyStore indicates an expected call of DisconnectCustomKeyStore. +func (mr *MockKMSAPIMockRecorder) DisconnectCustomKeyStore(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisconnectCustomKeyStore", reflect.TypeOf((*MockKMSAPI)(nil).DisconnectCustomKeyStore), arg0) +} + +// DisconnectCustomKeyStoreRequest mocks base method. +func (m *MockKMSAPI) DisconnectCustomKeyStoreRequest(arg0 *kms.DisconnectCustomKeyStoreInput) (*request.Request, *kms.DisconnectCustomKeyStoreOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DisconnectCustomKeyStoreRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.DisconnectCustomKeyStoreOutput) + return ret0, ret1 +} + +// DisconnectCustomKeyStoreRequest indicates an expected call of DisconnectCustomKeyStoreRequest. +func (mr *MockKMSAPIMockRecorder) DisconnectCustomKeyStoreRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisconnectCustomKeyStoreRequest", reflect.TypeOf((*MockKMSAPI)(nil).DisconnectCustomKeyStoreRequest), arg0) +} + +// DisconnectCustomKeyStoreWithContext mocks base method. +func (m *MockKMSAPI) DisconnectCustomKeyStoreWithContext(arg0 aws.Context, arg1 *kms.DisconnectCustomKeyStoreInput, arg2 ...request.Option) (*kms.DisconnectCustomKeyStoreOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DisconnectCustomKeyStoreWithContext", varargs...) + ret0, _ := ret[0].(*kms.DisconnectCustomKeyStoreOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DisconnectCustomKeyStoreWithContext indicates an expected call of DisconnectCustomKeyStoreWithContext. +func (mr *MockKMSAPIMockRecorder) DisconnectCustomKeyStoreWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisconnectCustomKeyStoreWithContext", reflect.TypeOf((*MockKMSAPI)(nil).DisconnectCustomKeyStoreWithContext), varargs...) +} + +// EnableKey mocks base method. +func (m *MockKMSAPI) EnableKey(arg0 *kms.EnableKeyInput) (*kms.EnableKeyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "EnableKey", arg0) + ret0, _ := ret[0].(*kms.EnableKeyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// EnableKey indicates an expected call of EnableKey. +func (mr *MockKMSAPIMockRecorder) EnableKey(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnableKey", reflect.TypeOf((*MockKMSAPI)(nil).EnableKey), arg0) +} + +// EnableKeyRequest mocks base method. +func (m *MockKMSAPI) EnableKeyRequest(arg0 *kms.EnableKeyInput) (*request.Request, *kms.EnableKeyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "EnableKeyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.EnableKeyOutput) + return ret0, ret1 +} + +// EnableKeyRequest indicates an expected call of EnableKeyRequest. +func (mr *MockKMSAPIMockRecorder) EnableKeyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnableKeyRequest", reflect.TypeOf((*MockKMSAPI)(nil).EnableKeyRequest), arg0) +} + +// EnableKeyRotation mocks base method. +func (m *MockKMSAPI) EnableKeyRotation(arg0 *kms.EnableKeyRotationInput) (*kms.EnableKeyRotationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "EnableKeyRotation", arg0) + ret0, _ := ret[0].(*kms.EnableKeyRotationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// EnableKeyRotation indicates an expected call of EnableKeyRotation. +func (mr *MockKMSAPIMockRecorder) EnableKeyRotation(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnableKeyRotation", reflect.TypeOf((*MockKMSAPI)(nil).EnableKeyRotation), arg0) +} + +// EnableKeyRotationRequest mocks base method. +func (m *MockKMSAPI) EnableKeyRotationRequest(arg0 *kms.EnableKeyRotationInput) (*request.Request, *kms.EnableKeyRotationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "EnableKeyRotationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.EnableKeyRotationOutput) + return ret0, ret1 +} + +// EnableKeyRotationRequest indicates an expected call of EnableKeyRotationRequest. +func (mr *MockKMSAPIMockRecorder) EnableKeyRotationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnableKeyRotationRequest", reflect.TypeOf((*MockKMSAPI)(nil).EnableKeyRotationRequest), arg0) +} + +// EnableKeyRotationWithContext mocks base method. +func (m *MockKMSAPI) EnableKeyRotationWithContext(arg0 aws.Context, arg1 *kms.EnableKeyRotationInput, arg2 ...request.Option) (*kms.EnableKeyRotationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "EnableKeyRotationWithContext", varargs...) + ret0, _ := ret[0].(*kms.EnableKeyRotationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// EnableKeyRotationWithContext indicates an expected call of EnableKeyRotationWithContext. +func (mr *MockKMSAPIMockRecorder) EnableKeyRotationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnableKeyRotationWithContext", reflect.TypeOf((*MockKMSAPI)(nil).EnableKeyRotationWithContext), varargs...) +} + +// EnableKeyWithContext mocks base method. +func (m *MockKMSAPI) EnableKeyWithContext(arg0 aws.Context, arg1 *kms.EnableKeyInput, arg2 ...request.Option) (*kms.EnableKeyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "EnableKeyWithContext", varargs...) + ret0, _ := ret[0].(*kms.EnableKeyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// EnableKeyWithContext indicates an expected call of EnableKeyWithContext. +func (mr *MockKMSAPIMockRecorder) EnableKeyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnableKeyWithContext", reflect.TypeOf((*MockKMSAPI)(nil).EnableKeyWithContext), varargs...) +} + +// Encrypt mocks base method. +func (m *MockKMSAPI) Encrypt(arg0 *kms.EncryptInput) (*kms.EncryptOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Encrypt", arg0) + ret0, _ := ret[0].(*kms.EncryptOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// Encrypt indicates an expected call of Encrypt. +func (mr *MockKMSAPIMockRecorder) Encrypt(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Encrypt", reflect.TypeOf((*MockKMSAPI)(nil).Encrypt), arg0) +} + +// EncryptRequest mocks base method. +func (m *MockKMSAPI) EncryptRequest(arg0 *kms.EncryptInput) (*request.Request, *kms.EncryptOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "EncryptRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.EncryptOutput) + return ret0, ret1 +} + +// EncryptRequest indicates an expected call of EncryptRequest. +func (mr *MockKMSAPIMockRecorder) EncryptRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EncryptRequest", reflect.TypeOf((*MockKMSAPI)(nil).EncryptRequest), arg0) +} + +// EncryptWithContext mocks base method. +func (m *MockKMSAPI) EncryptWithContext(arg0 aws.Context, arg1 *kms.EncryptInput, arg2 ...request.Option) (*kms.EncryptOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "EncryptWithContext", varargs...) + ret0, _ := ret[0].(*kms.EncryptOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// EncryptWithContext indicates an expected call of EncryptWithContext. +func (mr *MockKMSAPIMockRecorder) EncryptWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EncryptWithContext", reflect.TypeOf((*MockKMSAPI)(nil).EncryptWithContext), varargs...) +} + +// GenerateDataKey mocks base method. +func (m *MockKMSAPI) GenerateDataKey(arg0 *kms.GenerateDataKeyInput) (*kms.GenerateDataKeyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GenerateDataKey", arg0) + ret0, _ := ret[0].(*kms.GenerateDataKeyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GenerateDataKey indicates an expected call of GenerateDataKey. +func (mr *MockKMSAPIMockRecorder) GenerateDataKey(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateDataKey", reflect.TypeOf((*MockKMSAPI)(nil).GenerateDataKey), arg0) +} + +// GenerateDataKeyPair mocks base method. +func (m *MockKMSAPI) GenerateDataKeyPair(arg0 *kms.GenerateDataKeyPairInput) (*kms.GenerateDataKeyPairOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GenerateDataKeyPair", arg0) + ret0, _ := ret[0].(*kms.GenerateDataKeyPairOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GenerateDataKeyPair indicates an expected call of GenerateDataKeyPair. +func (mr *MockKMSAPIMockRecorder) GenerateDataKeyPair(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateDataKeyPair", reflect.TypeOf((*MockKMSAPI)(nil).GenerateDataKeyPair), arg0) +} + +// GenerateDataKeyPairRequest mocks base method. +func (m *MockKMSAPI) GenerateDataKeyPairRequest(arg0 *kms.GenerateDataKeyPairInput) (*request.Request, *kms.GenerateDataKeyPairOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GenerateDataKeyPairRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.GenerateDataKeyPairOutput) + return ret0, ret1 +} + +// GenerateDataKeyPairRequest indicates an expected call of GenerateDataKeyPairRequest. +func (mr *MockKMSAPIMockRecorder) GenerateDataKeyPairRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateDataKeyPairRequest", reflect.TypeOf((*MockKMSAPI)(nil).GenerateDataKeyPairRequest), arg0) +} + +// GenerateDataKeyPairWithContext mocks base method. +func (m *MockKMSAPI) GenerateDataKeyPairWithContext(arg0 aws.Context, arg1 *kms.GenerateDataKeyPairInput, arg2 ...request.Option) (*kms.GenerateDataKeyPairOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GenerateDataKeyPairWithContext", varargs...) + ret0, _ := ret[0].(*kms.GenerateDataKeyPairOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GenerateDataKeyPairWithContext indicates an expected call of GenerateDataKeyPairWithContext. +func (mr *MockKMSAPIMockRecorder) GenerateDataKeyPairWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateDataKeyPairWithContext", reflect.TypeOf((*MockKMSAPI)(nil).GenerateDataKeyPairWithContext), varargs...) +} + +// GenerateDataKeyPairWithoutPlaintext mocks base method. +func (m *MockKMSAPI) GenerateDataKeyPairWithoutPlaintext(arg0 *kms.GenerateDataKeyPairWithoutPlaintextInput) (*kms.GenerateDataKeyPairWithoutPlaintextOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GenerateDataKeyPairWithoutPlaintext", arg0) + ret0, _ := ret[0].(*kms.GenerateDataKeyPairWithoutPlaintextOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GenerateDataKeyPairWithoutPlaintext indicates an expected call of GenerateDataKeyPairWithoutPlaintext. +func (mr *MockKMSAPIMockRecorder) GenerateDataKeyPairWithoutPlaintext(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateDataKeyPairWithoutPlaintext", reflect.TypeOf((*MockKMSAPI)(nil).GenerateDataKeyPairWithoutPlaintext), arg0) +} + +// GenerateDataKeyPairWithoutPlaintextRequest mocks base method. +func (m *MockKMSAPI) GenerateDataKeyPairWithoutPlaintextRequest(arg0 *kms.GenerateDataKeyPairWithoutPlaintextInput) (*request.Request, *kms.GenerateDataKeyPairWithoutPlaintextOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GenerateDataKeyPairWithoutPlaintextRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.GenerateDataKeyPairWithoutPlaintextOutput) + return ret0, ret1 +} + +// GenerateDataKeyPairWithoutPlaintextRequest indicates an expected call of GenerateDataKeyPairWithoutPlaintextRequest. +func (mr *MockKMSAPIMockRecorder) GenerateDataKeyPairWithoutPlaintextRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateDataKeyPairWithoutPlaintextRequest", reflect.TypeOf((*MockKMSAPI)(nil).GenerateDataKeyPairWithoutPlaintextRequest), arg0) +} + +// GenerateDataKeyPairWithoutPlaintextWithContext mocks base method. +func (m *MockKMSAPI) GenerateDataKeyPairWithoutPlaintextWithContext(arg0 aws.Context, arg1 *kms.GenerateDataKeyPairWithoutPlaintextInput, arg2 ...request.Option) (*kms.GenerateDataKeyPairWithoutPlaintextOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GenerateDataKeyPairWithoutPlaintextWithContext", varargs...) + ret0, _ := ret[0].(*kms.GenerateDataKeyPairWithoutPlaintextOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GenerateDataKeyPairWithoutPlaintextWithContext indicates an expected call of GenerateDataKeyPairWithoutPlaintextWithContext. +func (mr *MockKMSAPIMockRecorder) GenerateDataKeyPairWithoutPlaintextWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateDataKeyPairWithoutPlaintextWithContext", reflect.TypeOf((*MockKMSAPI)(nil).GenerateDataKeyPairWithoutPlaintextWithContext), varargs...) +} + +// GenerateDataKeyRequest mocks base method. +func (m *MockKMSAPI) GenerateDataKeyRequest(arg0 *kms.GenerateDataKeyInput) (*request.Request, *kms.GenerateDataKeyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GenerateDataKeyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.GenerateDataKeyOutput) + return ret0, ret1 +} + +// GenerateDataKeyRequest indicates an expected call of GenerateDataKeyRequest. +func (mr *MockKMSAPIMockRecorder) GenerateDataKeyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateDataKeyRequest", reflect.TypeOf((*MockKMSAPI)(nil).GenerateDataKeyRequest), arg0) +} + +// GenerateDataKeyWithContext mocks base method. +func (m *MockKMSAPI) GenerateDataKeyWithContext(arg0 aws.Context, arg1 *kms.GenerateDataKeyInput, arg2 ...request.Option) (*kms.GenerateDataKeyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GenerateDataKeyWithContext", varargs...) + ret0, _ := ret[0].(*kms.GenerateDataKeyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GenerateDataKeyWithContext indicates an expected call of GenerateDataKeyWithContext. +func (mr *MockKMSAPIMockRecorder) GenerateDataKeyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateDataKeyWithContext", reflect.TypeOf((*MockKMSAPI)(nil).GenerateDataKeyWithContext), varargs...) +} + +// GenerateDataKeyWithoutPlaintext mocks base method. +func (m *MockKMSAPI) GenerateDataKeyWithoutPlaintext(arg0 *kms.GenerateDataKeyWithoutPlaintextInput) (*kms.GenerateDataKeyWithoutPlaintextOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GenerateDataKeyWithoutPlaintext", arg0) + ret0, _ := ret[0].(*kms.GenerateDataKeyWithoutPlaintextOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GenerateDataKeyWithoutPlaintext indicates an expected call of GenerateDataKeyWithoutPlaintext. +func (mr *MockKMSAPIMockRecorder) GenerateDataKeyWithoutPlaintext(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateDataKeyWithoutPlaintext", reflect.TypeOf((*MockKMSAPI)(nil).GenerateDataKeyWithoutPlaintext), arg0) +} + +// GenerateDataKeyWithoutPlaintextRequest mocks base method. +func (m *MockKMSAPI) GenerateDataKeyWithoutPlaintextRequest(arg0 *kms.GenerateDataKeyWithoutPlaintextInput) (*request.Request, *kms.GenerateDataKeyWithoutPlaintextOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GenerateDataKeyWithoutPlaintextRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.GenerateDataKeyWithoutPlaintextOutput) + return ret0, ret1 +} + +// GenerateDataKeyWithoutPlaintextRequest indicates an expected call of GenerateDataKeyWithoutPlaintextRequest. +func (mr *MockKMSAPIMockRecorder) GenerateDataKeyWithoutPlaintextRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateDataKeyWithoutPlaintextRequest", reflect.TypeOf((*MockKMSAPI)(nil).GenerateDataKeyWithoutPlaintextRequest), arg0) +} + +// GenerateDataKeyWithoutPlaintextWithContext mocks base method. +func (m *MockKMSAPI) GenerateDataKeyWithoutPlaintextWithContext(arg0 aws.Context, arg1 *kms.GenerateDataKeyWithoutPlaintextInput, arg2 ...request.Option) (*kms.GenerateDataKeyWithoutPlaintextOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GenerateDataKeyWithoutPlaintextWithContext", varargs...) + ret0, _ := ret[0].(*kms.GenerateDataKeyWithoutPlaintextOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GenerateDataKeyWithoutPlaintextWithContext indicates an expected call of GenerateDataKeyWithoutPlaintextWithContext. +func (mr *MockKMSAPIMockRecorder) GenerateDataKeyWithoutPlaintextWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateDataKeyWithoutPlaintextWithContext", reflect.TypeOf((*MockKMSAPI)(nil).GenerateDataKeyWithoutPlaintextWithContext), varargs...) +} + +// GenerateMac mocks base method. +func (m *MockKMSAPI) GenerateMac(arg0 *kms.GenerateMacInput) (*kms.GenerateMacOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GenerateMac", arg0) + ret0, _ := ret[0].(*kms.GenerateMacOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GenerateMac indicates an expected call of GenerateMac. +func (mr *MockKMSAPIMockRecorder) GenerateMac(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateMac", reflect.TypeOf((*MockKMSAPI)(nil).GenerateMac), arg0) +} + +// GenerateMacRequest mocks base method. +func (m *MockKMSAPI) GenerateMacRequest(arg0 *kms.GenerateMacInput) (*request.Request, *kms.GenerateMacOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GenerateMacRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.GenerateMacOutput) + return ret0, ret1 +} + +// GenerateMacRequest indicates an expected call of GenerateMacRequest. +func (mr *MockKMSAPIMockRecorder) GenerateMacRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateMacRequest", reflect.TypeOf((*MockKMSAPI)(nil).GenerateMacRequest), arg0) +} + +// GenerateMacWithContext mocks base method. +func (m *MockKMSAPI) GenerateMacWithContext(arg0 aws.Context, arg1 *kms.GenerateMacInput, arg2 ...request.Option) (*kms.GenerateMacOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GenerateMacWithContext", varargs...) + ret0, _ := ret[0].(*kms.GenerateMacOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GenerateMacWithContext indicates an expected call of GenerateMacWithContext. +func (mr *MockKMSAPIMockRecorder) GenerateMacWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateMacWithContext", reflect.TypeOf((*MockKMSAPI)(nil).GenerateMacWithContext), varargs...) +} + +// GenerateRandom mocks base method. +func (m *MockKMSAPI) GenerateRandom(arg0 *kms.GenerateRandomInput) (*kms.GenerateRandomOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GenerateRandom", arg0) + ret0, _ := ret[0].(*kms.GenerateRandomOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GenerateRandom indicates an expected call of GenerateRandom. +func (mr *MockKMSAPIMockRecorder) GenerateRandom(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateRandom", reflect.TypeOf((*MockKMSAPI)(nil).GenerateRandom), arg0) +} + +// GenerateRandomRequest mocks base method. +func (m *MockKMSAPI) GenerateRandomRequest(arg0 *kms.GenerateRandomInput) (*request.Request, *kms.GenerateRandomOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GenerateRandomRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.GenerateRandomOutput) + return ret0, ret1 +} + +// GenerateRandomRequest indicates an expected call of GenerateRandomRequest. +func (mr *MockKMSAPIMockRecorder) GenerateRandomRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateRandomRequest", reflect.TypeOf((*MockKMSAPI)(nil).GenerateRandomRequest), arg0) +} + +// GenerateRandomWithContext mocks base method. +func (m *MockKMSAPI) GenerateRandomWithContext(arg0 aws.Context, arg1 *kms.GenerateRandomInput, arg2 ...request.Option) (*kms.GenerateRandomOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GenerateRandomWithContext", varargs...) + ret0, _ := ret[0].(*kms.GenerateRandomOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GenerateRandomWithContext indicates an expected call of GenerateRandomWithContext. +func (mr *MockKMSAPIMockRecorder) GenerateRandomWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateRandomWithContext", reflect.TypeOf((*MockKMSAPI)(nil).GenerateRandomWithContext), varargs...) +} + +// GetKeyPolicy mocks base method. +func (m *MockKMSAPI) GetKeyPolicy(arg0 *kms.GetKeyPolicyInput) (*kms.GetKeyPolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetKeyPolicy", arg0) + ret0, _ := ret[0].(*kms.GetKeyPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetKeyPolicy indicates an expected call of GetKeyPolicy. +func (mr *MockKMSAPIMockRecorder) GetKeyPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetKeyPolicy", reflect.TypeOf((*MockKMSAPI)(nil).GetKeyPolicy), arg0) +} + +// GetKeyPolicyRequest mocks base method. +func (m *MockKMSAPI) GetKeyPolicyRequest(arg0 *kms.GetKeyPolicyInput) (*request.Request, *kms.GetKeyPolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetKeyPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.GetKeyPolicyOutput) + return ret0, ret1 +} + +// GetKeyPolicyRequest indicates an expected call of GetKeyPolicyRequest. +func (mr *MockKMSAPIMockRecorder) GetKeyPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetKeyPolicyRequest", reflect.TypeOf((*MockKMSAPI)(nil).GetKeyPolicyRequest), arg0) +} + +// GetKeyPolicyWithContext mocks base method. +func (m *MockKMSAPI) GetKeyPolicyWithContext(arg0 aws.Context, arg1 *kms.GetKeyPolicyInput, arg2 ...request.Option) (*kms.GetKeyPolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetKeyPolicyWithContext", varargs...) + ret0, _ := ret[0].(*kms.GetKeyPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetKeyPolicyWithContext indicates an expected call of GetKeyPolicyWithContext. +func (mr *MockKMSAPIMockRecorder) GetKeyPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetKeyPolicyWithContext", reflect.TypeOf((*MockKMSAPI)(nil).GetKeyPolicyWithContext), varargs...) +} + +// GetKeyRotationStatus mocks base method. +func (m *MockKMSAPI) GetKeyRotationStatus(arg0 *kms.GetKeyRotationStatusInput) (*kms.GetKeyRotationStatusOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetKeyRotationStatus", arg0) + ret0, _ := ret[0].(*kms.GetKeyRotationStatusOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetKeyRotationStatus indicates an expected call of GetKeyRotationStatus. +func (mr *MockKMSAPIMockRecorder) GetKeyRotationStatus(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetKeyRotationStatus", reflect.TypeOf((*MockKMSAPI)(nil).GetKeyRotationStatus), arg0) +} + +// GetKeyRotationStatusRequest mocks base method. +func (m *MockKMSAPI) GetKeyRotationStatusRequest(arg0 *kms.GetKeyRotationStatusInput) (*request.Request, *kms.GetKeyRotationStatusOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetKeyRotationStatusRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.GetKeyRotationStatusOutput) + return ret0, ret1 +} + +// GetKeyRotationStatusRequest indicates an expected call of GetKeyRotationStatusRequest. +func (mr *MockKMSAPIMockRecorder) GetKeyRotationStatusRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetKeyRotationStatusRequest", reflect.TypeOf((*MockKMSAPI)(nil).GetKeyRotationStatusRequest), arg0) +} + +// GetKeyRotationStatusWithContext mocks base method. +func (m *MockKMSAPI) GetKeyRotationStatusWithContext(arg0 aws.Context, arg1 *kms.GetKeyRotationStatusInput, arg2 ...request.Option) (*kms.GetKeyRotationStatusOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetKeyRotationStatusWithContext", varargs...) + ret0, _ := ret[0].(*kms.GetKeyRotationStatusOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetKeyRotationStatusWithContext indicates an expected call of GetKeyRotationStatusWithContext. +func (mr *MockKMSAPIMockRecorder) GetKeyRotationStatusWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetKeyRotationStatusWithContext", reflect.TypeOf((*MockKMSAPI)(nil).GetKeyRotationStatusWithContext), varargs...) +} + +// GetParametersForImport mocks base method. +func (m *MockKMSAPI) GetParametersForImport(arg0 *kms.GetParametersForImportInput) (*kms.GetParametersForImportOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetParametersForImport", arg0) + ret0, _ := ret[0].(*kms.GetParametersForImportOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetParametersForImport indicates an expected call of GetParametersForImport. +func (mr *MockKMSAPIMockRecorder) GetParametersForImport(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetParametersForImport", reflect.TypeOf((*MockKMSAPI)(nil).GetParametersForImport), arg0) +} + +// GetParametersForImportRequest mocks base method. +func (m *MockKMSAPI) GetParametersForImportRequest(arg0 *kms.GetParametersForImportInput) (*request.Request, *kms.GetParametersForImportOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetParametersForImportRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.GetParametersForImportOutput) + return ret0, ret1 +} + +// GetParametersForImportRequest indicates an expected call of GetParametersForImportRequest. +func (mr *MockKMSAPIMockRecorder) GetParametersForImportRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetParametersForImportRequest", reflect.TypeOf((*MockKMSAPI)(nil).GetParametersForImportRequest), arg0) +} + +// GetParametersForImportWithContext mocks base method. +func (m *MockKMSAPI) GetParametersForImportWithContext(arg0 aws.Context, arg1 *kms.GetParametersForImportInput, arg2 ...request.Option) (*kms.GetParametersForImportOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetParametersForImportWithContext", varargs...) + ret0, _ := ret[0].(*kms.GetParametersForImportOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetParametersForImportWithContext indicates an expected call of GetParametersForImportWithContext. +func (mr *MockKMSAPIMockRecorder) GetParametersForImportWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetParametersForImportWithContext", reflect.TypeOf((*MockKMSAPI)(nil).GetParametersForImportWithContext), varargs...) +} + +// GetPublicKey mocks base method. +func (m *MockKMSAPI) GetPublicKey(arg0 *kms.GetPublicKeyInput) (*kms.GetPublicKeyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetPublicKey", arg0) + ret0, _ := ret[0].(*kms.GetPublicKeyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetPublicKey indicates an expected call of GetPublicKey. +func (mr *MockKMSAPIMockRecorder) GetPublicKey(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPublicKey", reflect.TypeOf((*MockKMSAPI)(nil).GetPublicKey), arg0) +} + +// GetPublicKeyRequest mocks base method. +func (m *MockKMSAPI) GetPublicKeyRequest(arg0 *kms.GetPublicKeyInput) (*request.Request, *kms.GetPublicKeyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetPublicKeyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.GetPublicKeyOutput) + return ret0, ret1 +} + +// GetPublicKeyRequest indicates an expected call of GetPublicKeyRequest. +func (mr *MockKMSAPIMockRecorder) GetPublicKeyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPublicKeyRequest", reflect.TypeOf((*MockKMSAPI)(nil).GetPublicKeyRequest), arg0) +} + +// GetPublicKeyWithContext mocks base method. +func (m *MockKMSAPI) GetPublicKeyWithContext(arg0 aws.Context, arg1 *kms.GetPublicKeyInput, arg2 ...request.Option) (*kms.GetPublicKeyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetPublicKeyWithContext", varargs...) + ret0, _ := ret[0].(*kms.GetPublicKeyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetPublicKeyWithContext indicates an expected call of GetPublicKeyWithContext. +func (mr *MockKMSAPIMockRecorder) GetPublicKeyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPublicKeyWithContext", reflect.TypeOf((*MockKMSAPI)(nil).GetPublicKeyWithContext), varargs...) +} + +// ImportKeyMaterial mocks base method. +func (m *MockKMSAPI) ImportKeyMaterial(arg0 *kms.ImportKeyMaterialInput) (*kms.ImportKeyMaterialOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ImportKeyMaterial", arg0) + ret0, _ := ret[0].(*kms.ImportKeyMaterialOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ImportKeyMaterial indicates an expected call of ImportKeyMaterial. +func (mr *MockKMSAPIMockRecorder) ImportKeyMaterial(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImportKeyMaterial", reflect.TypeOf((*MockKMSAPI)(nil).ImportKeyMaterial), arg0) +} + +// ImportKeyMaterialRequest mocks base method. +func (m *MockKMSAPI) ImportKeyMaterialRequest(arg0 *kms.ImportKeyMaterialInput) (*request.Request, *kms.ImportKeyMaterialOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ImportKeyMaterialRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.ImportKeyMaterialOutput) + return ret0, ret1 +} + +// ImportKeyMaterialRequest indicates an expected call of ImportKeyMaterialRequest. +func (mr *MockKMSAPIMockRecorder) ImportKeyMaterialRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImportKeyMaterialRequest", reflect.TypeOf((*MockKMSAPI)(nil).ImportKeyMaterialRequest), arg0) +} + +// ImportKeyMaterialWithContext mocks base method. +func (m *MockKMSAPI) ImportKeyMaterialWithContext(arg0 aws.Context, arg1 *kms.ImportKeyMaterialInput, arg2 ...request.Option) (*kms.ImportKeyMaterialOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ImportKeyMaterialWithContext", varargs...) + ret0, _ := ret[0].(*kms.ImportKeyMaterialOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ImportKeyMaterialWithContext indicates an expected call of ImportKeyMaterialWithContext. +func (mr *MockKMSAPIMockRecorder) ImportKeyMaterialWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImportKeyMaterialWithContext", reflect.TypeOf((*MockKMSAPI)(nil).ImportKeyMaterialWithContext), varargs...) +} + +// ListAliases mocks base method. +func (m *MockKMSAPI) ListAliases(arg0 *kms.ListAliasesInput) (*kms.ListAliasesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAliases", arg0) + ret0, _ := ret[0].(*kms.ListAliasesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAliases indicates an expected call of ListAliases. +func (mr *MockKMSAPIMockRecorder) ListAliases(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAliases", reflect.TypeOf((*MockKMSAPI)(nil).ListAliases), arg0) +} + +// ListAliasesPages mocks base method. +func (m *MockKMSAPI) ListAliasesPages(arg0 *kms.ListAliasesInput, arg1 func(*kms.ListAliasesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAliasesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListAliasesPages indicates an expected call of ListAliasesPages. +func (mr *MockKMSAPIMockRecorder) ListAliasesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAliasesPages", reflect.TypeOf((*MockKMSAPI)(nil).ListAliasesPages), arg0, arg1) +} + +// ListAliasesPagesWithContext mocks base method. +func (m *MockKMSAPI) ListAliasesPagesWithContext(arg0 aws.Context, arg1 *kms.ListAliasesInput, arg2 func(*kms.ListAliasesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAliasesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListAliasesPagesWithContext indicates an expected call of ListAliasesPagesWithContext. +func (mr *MockKMSAPIMockRecorder) ListAliasesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAliasesPagesWithContext", reflect.TypeOf((*MockKMSAPI)(nil).ListAliasesPagesWithContext), varargs...) +} + +// ListAliasesRequest mocks base method. +func (m *MockKMSAPI) ListAliasesRequest(arg0 *kms.ListAliasesInput) (*request.Request, *kms.ListAliasesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAliasesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.ListAliasesOutput) + return ret0, ret1 +} + +// ListAliasesRequest indicates an expected call of ListAliasesRequest. +func (mr *MockKMSAPIMockRecorder) ListAliasesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAliasesRequest", reflect.TypeOf((*MockKMSAPI)(nil).ListAliasesRequest), arg0) +} + +// ListAliasesWithContext mocks base method. +func (m *MockKMSAPI) ListAliasesWithContext(arg0 aws.Context, arg1 *kms.ListAliasesInput, arg2 ...request.Option) (*kms.ListAliasesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAliasesWithContext", varargs...) + ret0, _ := ret[0].(*kms.ListAliasesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAliasesWithContext indicates an expected call of ListAliasesWithContext. +func (mr *MockKMSAPIMockRecorder) ListAliasesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAliasesWithContext", reflect.TypeOf((*MockKMSAPI)(nil).ListAliasesWithContext), varargs...) +} + +// ListGrants mocks base method. +func (m *MockKMSAPI) ListGrants(arg0 *kms.ListGrantsInput) (*kms.ListGrantsResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListGrants", arg0) + ret0, _ := ret[0].(*kms.ListGrantsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListGrants indicates an expected call of ListGrants. +func (mr *MockKMSAPIMockRecorder) ListGrants(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGrants", reflect.TypeOf((*MockKMSAPI)(nil).ListGrants), arg0) +} + +// ListGrantsPages mocks base method. +func (m *MockKMSAPI) ListGrantsPages(arg0 *kms.ListGrantsInput, arg1 func(*kms.ListGrantsResponse, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListGrantsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListGrantsPages indicates an expected call of ListGrantsPages. +func (mr *MockKMSAPIMockRecorder) ListGrantsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGrantsPages", reflect.TypeOf((*MockKMSAPI)(nil).ListGrantsPages), arg0, arg1) +} + +// ListGrantsPagesWithContext mocks base method. +func (m *MockKMSAPI) ListGrantsPagesWithContext(arg0 aws.Context, arg1 *kms.ListGrantsInput, arg2 func(*kms.ListGrantsResponse, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListGrantsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListGrantsPagesWithContext indicates an expected call of ListGrantsPagesWithContext. +func (mr *MockKMSAPIMockRecorder) ListGrantsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGrantsPagesWithContext", reflect.TypeOf((*MockKMSAPI)(nil).ListGrantsPagesWithContext), varargs...) +} + +// ListGrantsRequest mocks base method. +func (m *MockKMSAPI) ListGrantsRequest(arg0 *kms.ListGrantsInput) (*request.Request, *kms.ListGrantsResponse) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListGrantsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.ListGrantsResponse) + return ret0, ret1 +} + +// ListGrantsRequest indicates an expected call of ListGrantsRequest. +func (mr *MockKMSAPIMockRecorder) ListGrantsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGrantsRequest", reflect.TypeOf((*MockKMSAPI)(nil).ListGrantsRequest), arg0) +} + +// ListGrantsWithContext mocks base method. +func (m *MockKMSAPI) ListGrantsWithContext(arg0 aws.Context, arg1 *kms.ListGrantsInput, arg2 ...request.Option) (*kms.ListGrantsResponse, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListGrantsWithContext", varargs...) + ret0, _ := ret[0].(*kms.ListGrantsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListGrantsWithContext indicates an expected call of ListGrantsWithContext. +func (mr *MockKMSAPIMockRecorder) ListGrantsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGrantsWithContext", reflect.TypeOf((*MockKMSAPI)(nil).ListGrantsWithContext), varargs...) +} + +// ListKeyPolicies mocks base method. +func (m *MockKMSAPI) ListKeyPolicies(arg0 *kms.ListKeyPoliciesInput) (*kms.ListKeyPoliciesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListKeyPolicies", arg0) + ret0, _ := ret[0].(*kms.ListKeyPoliciesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListKeyPolicies indicates an expected call of ListKeyPolicies. +func (mr *MockKMSAPIMockRecorder) ListKeyPolicies(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListKeyPolicies", reflect.TypeOf((*MockKMSAPI)(nil).ListKeyPolicies), arg0) +} + +// ListKeyPoliciesPages mocks base method. +func (m *MockKMSAPI) ListKeyPoliciesPages(arg0 *kms.ListKeyPoliciesInput, arg1 func(*kms.ListKeyPoliciesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListKeyPoliciesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListKeyPoliciesPages indicates an expected call of ListKeyPoliciesPages. +func (mr *MockKMSAPIMockRecorder) ListKeyPoliciesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListKeyPoliciesPages", reflect.TypeOf((*MockKMSAPI)(nil).ListKeyPoliciesPages), arg0, arg1) +} + +// ListKeyPoliciesPagesWithContext mocks base method. +func (m *MockKMSAPI) ListKeyPoliciesPagesWithContext(arg0 aws.Context, arg1 *kms.ListKeyPoliciesInput, arg2 func(*kms.ListKeyPoliciesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListKeyPoliciesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListKeyPoliciesPagesWithContext indicates an expected call of ListKeyPoliciesPagesWithContext. +func (mr *MockKMSAPIMockRecorder) ListKeyPoliciesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListKeyPoliciesPagesWithContext", reflect.TypeOf((*MockKMSAPI)(nil).ListKeyPoliciesPagesWithContext), varargs...) +} + +// ListKeyPoliciesRequest mocks base method. +func (m *MockKMSAPI) ListKeyPoliciesRequest(arg0 *kms.ListKeyPoliciesInput) (*request.Request, *kms.ListKeyPoliciesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListKeyPoliciesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.ListKeyPoliciesOutput) + return ret0, ret1 +} + +// ListKeyPoliciesRequest indicates an expected call of ListKeyPoliciesRequest. +func (mr *MockKMSAPIMockRecorder) ListKeyPoliciesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListKeyPoliciesRequest", reflect.TypeOf((*MockKMSAPI)(nil).ListKeyPoliciesRequest), arg0) +} + +// ListKeyPoliciesWithContext mocks base method. +func (m *MockKMSAPI) ListKeyPoliciesWithContext(arg0 aws.Context, arg1 *kms.ListKeyPoliciesInput, arg2 ...request.Option) (*kms.ListKeyPoliciesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListKeyPoliciesWithContext", varargs...) + ret0, _ := ret[0].(*kms.ListKeyPoliciesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListKeyPoliciesWithContext indicates an expected call of ListKeyPoliciesWithContext. +func (mr *MockKMSAPIMockRecorder) ListKeyPoliciesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListKeyPoliciesWithContext", reflect.TypeOf((*MockKMSAPI)(nil).ListKeyPoliciesWithContext), varargs...) +} + +// ListKeyRotations mocks base method. +func (m *MockKMSAPI) ListKeyRotations(arg0 *kms.ListKeyRotationsInput) (*kms.ListKeyRotationsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListKeyRotations", arg0) + ret0, _ := ret[0].(*kms.ListKeyRotationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListKeyRotations indicates an expected call of ListKeyRotations. +func (mr *MockKMSAPIMockRecorder) ListKeyRotations(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListKeyRotations", reflect.TypeOf((*MockKMSAPI)(nil).ListKeyRotations), arg0) +} + +// ListKeyRotationsPages mocks base method. +func (m *MockKMSAPI) ListKeyRotationsPages(arg0 *kms.ListKeyRotationsInput, arg1 func(*kms.ListKeyRotationsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListKeyRotationsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListKeyRotationsPages indicates an expected call of ListKeyRotationsPages. +func (mr *MockKMSAPIMockRecorder) ListKeyRotationsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListKeyRotationsPages", reflect.TypeOf((*MockKMSAPI)(nil).ListKeyRotationsPages), arg0, arg1) +} + +// ListKeyRotationsPagesWithContext mocks base method. +func (m *MockKMSAPI) ListKeyRotationsPagesWithContext(arg0 aws.Context, arg1 *kms.ListKeyRotationsInput, arg2 func(*kms.ListKeyRotationsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListKeyRotationsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListKeyRotationsPagesWithContext indicates an expected call of ListKeyRotationsPagesWithContext. +func (mr *MockKMSAPIMockRecorder) ListKeyRotationsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListKeyRotationsPagesWithContext", reflect.TypeOf((*MockKMSAPI)(nil).ListKeyRotationsPagesWithContext), varargs...) +} + +// ListKeyRotationsRequest mocks base method. +func (m *MockKMSAPI) ListKeyRotationsRequest(arg0 *kms.ListKeyRotationsInput) (*request.Request, *kms.ListKeyRotationsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListKeyRotationsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.ListKeyRotationsOutput) + return ret0, ret1 +} + +// ListKeyRotationsRequest indicates an expected call of ListKeyRotationsRequest. +func (mr *MockKMSAPIMockRecorder) ListKeyRotationsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListKeyRotationsRequest", reflect.TypeOf((*MockKMSAPI)(nil).ListKeyRotationsRequest), arg0) +} + +// ListKeyRotationsWithContext mocks base method. +func (m *MockKMSAPI) ListKeyRotationsWithContext(arg0 aws.Context, arg1 *kms.ListKeyRotationsInput, arg2 ...request.Option) (*kms.ListKeyRotationsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListKeyRotationsWithContext", varargs...) + ret0, _ := ret[0].(*kms.ListKeyRotationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListKeyRotationsWithContext indicates an expected call of ListKeyRotationsWithContext. +func (mr *MockKMSAPIMockRecorder) ListKeyRotationsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListKeyRotationsWithContext", reflect.TypeOf((*MockKMSAPI)(nil).ListKeyRotationsWithContext), varargs...) +} + +// ListKeys mocks base method. +func (m *MockKMSAPI) ListKeys(arg0 *kms.ListKeysInput) (*kms.ListKeysOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListKeys", arg0) + ret0, _ := ret[0].(*kms.ListKeysOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListKeys indicates an expected call of ListKeys. +func (mr *MockKMSAPIMockRecorder) ListKeys(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListKeys", reflect.TypeOf((*MockKMSAPI)(nil).ListKeys), arg0) +} + +// ListKeysPages mocks base method. +func (m *MockKMSAPI) ListKeysPages(arg0 *kms.ListKeysInput, arg1 func(*kms.ListKeysOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListKeysPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListKeysPages indicates an expected call of ListKeysPages. +func (mr *MockKMSAPIMockRecorder) ListKeysPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListKeysPages", reflect.TypeOf((*MockKMSAPI)(nil).ListKeysPages), arg0, arg1) +} + +// ListKeysPagesWithContext mocks base method. +func (m *MockKMSAPI) ListKeysPagesWithContext(arg0 aws.Context, arg1 *kms.ListKeysInput, arg2 func(*kms.ListKeysOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListKeysPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListKeysPagesWithContext indicates an expected call of ListKeysPagesWithContext. +func (mr *MockKMSAPIMockRecorder) ListKeysPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListKeysPagesWithContext", reflect.TypeOf((*MockKMSAPI)(nil).ListKeysPagesWithContext), varargs...) +} + +// ListKeysRequest mocks base method. +func (m *MockKMSAPI) ListKeysRequest(arg0 *kms.ListKeysInput) (*request.Request, *kms.ListKeysOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListKeysRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.ListKeysOutput) + return ret0, ret1 +} + +// ListKeysRequest indicates an expected call of ListKeysRequest. +func (mr *MockKMSAPIMockRecorder) ListKeysRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListKeysRequest", reflect.TypeOf((*MockKMSAPI)(nil).ListKeysRequest), arg0) +} + +// ListKeysWithContext mocks base method. +func (m *MockKMSAPI) ListKeysWithContext(arg0 aws.Context, arg1 *kms.ListKeysInput, arg2 ...request.Option) (*kms.ListKeysOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListKeysWithContext", varargs...) + ret0, _ := ret[0].(*kms.ListKeysOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListKeysWithContext indicates an expected call of ListKeysWithContext. +func (mr *MockKMSAPIMockRecorder) ListKeysWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListKeysWithContext", reflect.TypeOf((*MockKMSAPI)(nil).ListKeysWithContext), varargs...) +} + +// ListResourceTags mocks base method. +func (m *MockKMSAPI) ListResourceTags(arg0 *kms.ListResourceTagsInput) (*kms.ListResourceTagsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResourceTags", arg0) + ret0, _ := ret[0].(*kms.ListResourceTagsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListResourceTags indicates an expected call of ListResourceTags. +func (mr *MockKMSAPIMockRecorder) ListResourceTags(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceTags", reflect.TypeOf((*MockKMSAPI)(nil).ListResourceTags), arg0) +} + +// ListResourceTagsPages mocks base method. +func (m *MockKMSAPI) ListResourceTagsPages(arg0 *kms.ListResourceTagsInput, arg1 func(*kms.ListResourceTagsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResourceTagsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListResourceTagsPages indicates an expected call of ListResourceTagsPages. +func (mr *MockKMSAPIMockRecorder) ListResourceTagsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceTagsPages", reflect.TypeOf((*MockKMSAPI)(nil).ListResourceTagsPages), arg0, arg1) +} + +// ListResourceTagsPagesWithContext mocks base method. +func (m *MockKMSAPI) ListResourceTagsPagesWithContext(arg0 aws.Context, arg1 *kms.ListResourceTagsInput, arg2 func(*kms.ListResourceTagsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListResourceTagsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListResourceTagsPagesWithContext indicates an expected call of ListResourceTagsPagesWithContext. +func (mr *MockKMSAPIMockRecorder) ListResourceTagsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceTagsPagesWithContext", reflect.TypeOf((*MockKMSAPI)(nil).ListResourceTagsPagesWithContext), varargs...) +} + +// ListResourceTagsRequest mocks base method. +func (m *MockKMSAPI) ListResourceTagsRequest(arg0 *kms.ListResourceTagsInput) (*request.Request, *kms.ListResourceTagsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResourceTagsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.ListResourceTagsOutput) + return ret0, ret1 +} + +// ListResourceTagsRequest indicates an expected call of ListResourceTagsRequest. +func (mr *MockKMSAPIMockRecorder) ListResourceTagsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceTagsRequest", reflect.TypeOf((*MockKMSAPI)(nil).ListResourceTagsRequest), arg0) +} + +// ListResourceTagsWithContext mocks base method. +func (m *MockKMSAPI) ListResourceTagsWithContext(arg0 aws.Context, arg1 *kms.ListResourceTagsInput, arg2 ...request.Option) (*kms.ListResourceTagsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListResourceTagsWithContext", varargs...) + ret0, _ := ret[0].(*kms.ListResourceTagsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListResourceTagsWithContext indicates an expected call of ListResourceTagsWithContext. +func (mr *MockKMSAPIMockRecorder) ListResourceTagsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceTagsWithContext", reflect.TypeOf((*MockKMSAPI)(nil).ListResourceTagsWithContext), varargs...) +} + +// ListRetirableGrants mocks base method. +func (m *MockKMSAPI) ListRetirableGrants(arg0 *kms.ListRetirableGrantsInput) (*kms.ListGrantsResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListRetirableGrants", arg0) + ret0, _ := ret[0].(*kms.ListGrantsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListRetirableGrants indicates an expected call of ListRetirableGrants. +func (mr *MockKMSAPIMockRecorder) ListRetirableGrants(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRetirableGrants", reflect.TypeOf((*MockKMSAPI)(nil).ListRetirableGrants), arg0) +} + +// ListRetirableGrantsPages mocks base method. +func (m *MockKMSAPI) ListRetirableGrantsPages(arg0 *kms.ListRetirableGrantsInput, arg1 func(*kms.ListGrantsResponse, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListRetirableGrantsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListRetirableGrantsPages indicates an expected call of ListRetirableGrantsPages. +func (mr *MockKMSAPIMockRecorder) ListRetirableGrantsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRetirableGrantsPages", reflect.TypeOf((*MockKMSAPI)(nil).ListRetirableGrantsPages), arg0, arg1) +} + +// ListRetirableGrantsPagesWithContext mocks base method. +func (m *MockKMSAPI) ListRetirableGrantsPagesWithContext(arg0 aws.Context, arg1 *kms.ListRetirableGrantsInput, arg2 func(*kms.ListGrantsResponse, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListRetirableGrantsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListRetirableGrantsPagesWithContext indicates an expected call of ListRetirableGrantsPagesWithContext. +func (mr *MockKMSAPIMockRecorder) ListRetirableGrantsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRetirableGrantsPagesWithContext", reflect.TypeOf((*MockKMSAPI)(nil).ListRetirableGrantsPagesWithContext), varargs...) +} + +// ListRetirableGrantsRequest mocks base method. +func (m *MockKMSAPI) ListRetirableGrantsRequest(arg0 *kms.ListRetirableGrantsInput) (*request.Request, *kms.ListGrantsResponse) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListRetirableGrantsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.ListGrantsResponse) + return ret0, ret1 +} + +// ListRetirableGrantsRequest indicates an expected call of ListRetirableGrantsRequest. +func (mr *MockKMSAPIMockRecorder) ListRetirableGrantsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRetirableGrantsRequest", reflect.TypeOf((*MockKMSAPI)(nil).ListRetirableGrantsRequest), arg0) +} + +// ListRetirableGrantsWithContext mocks base method. +func (m *MockKMSAPI) ListRetirableGrantsWithContext(arg0 aws.Context, arg1 *kms.ListRetirableGrantsInput, arg2 ...request.Option) (*kms.ListGrantsResponse, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListRetirableGrantsWithContext", varargs...) + ret0, _ := ret[0].(*kms.ListGrantsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListRetirableGrantsWithContext indicates an expected call of ListRetirableGrantsWithContext. +func (mr *MockKMSAPIMockRecorder) ListRetirableGrantsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRetirableGrantsWithContext", reflect.TypeOf((*MockKMSAPI)(nil).ListRetirableGrantsWithContext), varargs...) +} + +// PutKeyPolicy mocks base method. +func (m *MockKMSAPI) PutKeyPolicy(arg0 *kms.PutKeyPolicyInput) (*kms.PutKeyPolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutKeyPolicy", arg0) + ret0, _ := ret[0].(*kms.PutKeyPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutKeyPolicy indicates an expected call of PutKeyPolicy. +func (mr *MockKMSAPIMockRecorder) PutKeyPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutKeyPolicy", reflect.TypeOf((*MockKMSAPI)(nil).PutKeyPolicy), arg0) +} + +// PutKeyPolicyRequest mocks base method. +func (m *MockKMSAPI) PutKeyPolicyRequest(arg0 *kms.PutKeyPolicyInput) (*request.Request, *kms.PutKeyPolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutKeyPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.PutKeyPolicyOutput) + return ret0, ret1 +} + +// PutKeyPolicyRequest indicates an expected call of PutKeyPolicyRequest. +func (mr *MockKMSAPIMockRecorder) PutKeyPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutKeyPolicyRequest", reflect.TypeOf((*MockKMSAPI)(nil).PutKeyPolicyRequest), arg0) +} + +// PutKeyPolicyWithContext mocks base method. +func (m *MockKMSAPI) PutKeyPolicyWithContext(arg0 aws.Context, arg1 *kms.PutKeyPolicyInput, arg2 ...request.Option) (*kms.PutKeyPolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PutKeyPolicyWithContext", varargs...) + ret0, _ := ret[0].(*kms.PutKeyPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutKeyPolicyWithContext indicates an expected call of PutKeyPolicyWithContext. +func (mr *MockKMSAPIMockRecorder) PutKeyPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutKeyPolicyWithContext", reflect.TypeOf((*MockKMSAPI)(nil).PutKeyPolicyWithContext), varargs...) +} + +// ReEncrypt mocks base method. +func (m *MockKMSAPI) ReEncrypt(arg0 *kms.ReEncryptInput) (*kms.ReEncryptOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ReEncrypt", arg0) + ret0, _ := ret[0].(*kms.ReEncryptOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ReEncrypt indicates an expected call of ReEncrypt. +func (mr *MockKMSAPIMockRecorder) ReEncrypt(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReEncrypt", reflect.TypeOf((*MockKMSAPI)(nil).ReEncrypt), arg0) +} + +// ReEncryptRequest mocks base method. +func (m *MockKMSAPI) ReEncryptRequest(arg0 *kms.ReEncryptInput) (*request.Request, *kms.ReEncryptOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ReEncryptRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.ReEncryptOutput) + return ret0, ret1 +} + +// ReEncryptRequest indicates an expected call of ReEncryptRequest. +func (mr *MockKMSAPIMockRecorder) ReEncryptRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReEncryptRequest", reflect.TypeOf((*MockKMSAPI)(nil).ReEncryptRequest), arg0) +} + +// ReEncryptWithContext mocks base method. +func (m *MockKMSAPI) ReEncryptWithContext(arg0 aws.Context, arg1 *kms.ReEncryptInput, arg2 ...request.Option) (*kms.ReEncryptOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ReEncryptWithContext", varargs...) + ret0, _ := ret[0].(*kms.ReEncryptOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ReEncryptWithContext indicates an expected call of ReEncryptWithContext. +func (mr *MockKMSAPIMockRecorder) ReEncryptWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReEncryptWithContext", reflect.TypeOf((*MockKMSAPI)(nil).ReEncryptWithContext), varargs...) +} + +// ReplicateKey mocks base method. +func (m *MockKMSAPI) ReplicateKey(arg0 *kms.ReplicateKeyInput) (*kms.ReplicateKeyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ReplicateKey", arg0) + ret0, _ := ret[0].(*kms.ReplicateKeyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ReplicateKey indicates an expected call of ReplicateKey. +func (mr *MockKMSAPIMockRecorder) ReplicateKey(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReplicateKey", reflect.TypeOf((*MockKMSAPI)(nil).ReplicateKey), arg0) +} + +// ReplicateKeyRequest mocks base method. +func (m *MockKMSAPI) ReplicateKeyRequest(arg0 *kms.ReplicateKeyInput) (*request.Request, *kms.ReplicateKeyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ReplicateKeyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.ReplicateKeyOutput) + return ret0, ret1 +} + +// ReplicateKeyRequest indicates an expected call of ReplicateKeyRequest. +func (mr *MockKMSAPIMockRecorder) ReplicateKeyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReplicateKeyRequest", reflect.TypeOf((*MockKMSAPI)(nil).ReplicateKeyRequest), arg0) +} + +// ReplicateKeyWithContext mocks base method. +func (m *MockKMSAPI) ReplicateKeyWithContext(arg0 aws.Context, arg1 *kms.ReplicateKeyInput, arg2 ...request.Option) (*kms.ReplicateKeyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ReplicateKeyWithContext", varargs...) + ret0, _ := ret[0].(*kms.ReplicateKeyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ReplicateKeyWithContext indicates an expected call of ReplicateKeyWithContext. +func (mr *MockKMSAPIMockRecorder) ReplicateKeyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReplicateKeyWithContext", reflect.TypeOf((*MockKMSAPI)(nil).ReplicateKeyWithContext), varargs...) +} + +// RetireGrant mocks base method. +func (m *MockKMSAPI) RetireGrant(arg0 *kms.RetireGrantInput) (*kms.RetireGrantOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RetireGrant", arg0) + ret0, _ := ret[0].(*kms.RetireGrantOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RetireGrant indicates an expected call of RetireGrant. +func (mr *MockKMSAPIMockRecorder) RetireGrant(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RetireGrant", reflect.TypeOf((*MockKMSAPI)(nil).RetireGrant), arg0) +} + +// RetireGrantRequest mocks base method. +func (m *MockKMSAPI) RetireGrantRequest(arg0 *kms.RetireGrantInput) (*request.Request, *kms.RetireGrantOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RetireGrantRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.RetireGrantOutput) + return ret0, ret1 +} + +// RetireGrantRequest indicates an expected call of RetireGrantRequest. +func (mr *MockKMSAPIMockRecorder) RetireGrantRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RetireGrantRequest", reflect.TypeOf((*MockKMSAPI)(nil).RetireGrantRequest), arg0) +} + +// RetireGrantWithContext mocks base method. +func (m *MockKMSAPI) RetireGrantWithContext(arg0 aws.Context, arg1 *kms.RetireGrantInput, arg2 ...request.Option) (*kms.RetireGrantOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RetireGrantWithContext", varargs...) + ret0, _ := ret[0].(*kms.RetireGrantOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RetireGrantWithContext indicates an expected call of RetireGrantWithContext. +func (mr *MockKMSAPIMockRecorder) RetireGrantWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RetireGrantWithContext", reflect.TypeOf((*MockKMSAPI)(nil).RetireGrantWithContext), varargs...) +} + +// RevokeGrant mocks base method. +func (m *MockKMSAPI) RevokeGrant(arg0 *kms.RevokeGrantInput) (*kms.RevokeGrantOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RevokeGrant", arg0) + ret0, _ := ret[0].(*kms.RevokeGrantOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RevokeGrant indicates an expected call of RevokeGrant. +func (mr *MockKMSAPIMockRecorder) RevokeGrant(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevokeGrant", reflect.TypeOf((*MockKMSAPI)(nil).RevokeGrant), arg0) +} + +// RevokeGrantRequest mocks base method. +func (m *MockKMSAPI) RevokeGrantRequest(arg0 *kms.RevokeGrantInput) (*request.Request, *kms.RevokeGrantOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RevokeGrantRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.RevokeGrantOutput) + return ret0, ret1 +} + +// RevokeGrantRequest indicates an expected call of RevokeGrantRequest. +func (mr *MockKMSAPIMockRecorder) RevokeGrantRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevokeGrantRequest", reflect.TypeOf((*MockKMSAPI)(nil).RevokeGrantRequest), arg0) +} + +// RevokeGrantWithContext mocks base method. +func (m *MockKMSAPI) RevokeGrantWithContext(arg0 aws.Context, arg1 *kms.RevokeGrantInput, arg2 ...request.Option) (*kms.RevokeGrantOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RevokeGrantWithContext", varargs...) + ret0, _ := ret[0].(*kms.RevokeGrantOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RevokeGrantWithContext indicates an expected call of RevokeGrantWithContext. +func (mr *MockKMSAPIMockRecorder) RevokeGrantWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevokeGrantWithContext", reflect.TypeOf((*MockKMSAPI)(nil).RevokeGrantWithContext), varargs...) +} + +// RotateKeyOnDemand mocks base method. +func (m *MockKMSAPI) RotateKeyOnDemand(arg0 *kms.RotateKeyOnDemandInput) (*kms.RotateKeyOnDemandOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RotateKeyOnDemand", arg0) + ret0, _ := ret[0].(*kms.RotateKeyOnDemandOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RotateKeyOnDemand indicates an expected call of RotateKeyOnDemand. +func (mr *MockKMSAPIMockRecorder) RotateKeyOnDemand(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RotateKeyOnDemand", reflect.TypeOf((*MockKMSAPI)(nil).RotateKeyOnDemand), arg0) +} + +// RotateKeyOnDemandRequest mocks base method. +func (m *MockKMSAPI) RotateKeyOnDemandRequest(arg0 *kms.RotateKeyOnDemandInput) (*request.Request, *kms.RotateKeyOnDemandOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RotateKeyOnDemandRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.RotateKeyOnDemandOutput) + return ret0, ret1 +} + +// RotateKeyOnDemandRequest indicates an expected call of RotateKeyOnDemandRequest. +func (mr *MockKMSAPIMockRecorder) RotateKeyOnDemandRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RotateKeyOnDemandRequest", reflect.TypeOf((*MockKMSAPI)(nil).RotateKeyOnDemandRequest), arg0) +} + +// RotateKeyOnDemandWithContext mocks base method. +func (m *MockKMSAPI) RotateKeyOnDemandWithContext(arg0 aws.Context, arg1 *kms.RotateKeyOnDemandInput, arg2 ...request.Option) (*kms.RotateKeyOnDemandOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RotateKeyOnDemandWithContext", varargs...) + ret0, _ := ret[0].(*kms.RotateKeyOnDemandOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RotateKeyOnDemandWithContext indicates an expected call of RotateKeyOnDemandWithContext. +func (mr *MockKMSAPIMockRecorder) RotateKeyOnDemandWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RotateKeyOnDemandWithContext", reflect.TypeOf((*MockKMSAPI)(nil).RotateKeyOnDemandWithContext), varargs...) +} + +// ScheduleKeyDeletion mocks base method. +func (m *MockKMSAPI) ScheduleKeyDeletion(arg0 *kms.ScheduleKeyDeletionInput) (*kms.ScheduleKeyDeletionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ScheduleKeyDeletion", arg0) + ret0, _ := ret[0].(*kms.ScheduleKeyDeletionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ScheduleKeyDeletion indicates an expected call of ScheduleKeyDeletion. +func (mr *MockKMSAPIMockRecorder) ScheduleKeyDeletion(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScheduleKeyDeletion", reflect.TypeOf((*MockKMSAPI)(nil).ScheduleKeyDeletion), arg0) +} + +// ScheduleKeyDeletionRequest mocks base method. +func (m *MockKMSAPI) ScheduleKeyDeletionRequest(arg0 *kms.ScheduleKeyDeletionInput) (*request.Request, *kms.ScheduleKeyDeletionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ScheduleKeyDeletionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.ScheduleKeyDeletionOutput) + return ret0, ret1 +} + +// ScheduleKeyDeletionRequest indicates an expected call of ScheduleKeyDeletionRequest. +func (mr *MockKMSAPIMockRecorder) ScheduleKeyDeletionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScheduleKeyDeletionRequest", reflect.TypeOf((*MockKMSAPI)(nil).ScheduleKeyDeletionRequest), arg0) +} + +// ScheduleKeyDeletionWithContext mocks base method. +func (m *MockKMSAPI) ScheduleKeyDeletionWithContext(arg0 aws.Context, arg1 *kms.ScheduleKeyDeletionInput, arg2 ...request.Option) (*kms.ScheduleKeyDeletionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ScheduleKeyDeletionWithContext", varargs...) + ret0, _ := ret[0].(*kms.ScheduleKeyDeletionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ScheduleKeyDeletionWithContext indicates an expected call of ScheduleKeyDeletionWithContext. +func (mr *MockKMSAPIMockRecorder) ScheduleKeyDeletionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScheduleKeyDeletionWithContext", reflect.TypeOf((*MockKMSAPI)(nil).ScheduleKeyDeletionWithContext), varargs...) +} + +// Sign mocks base method. +func (m *MockKMSAPI) Sign(arg0 *kms.SignInput) (*kms.SignOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Sign", arg0) + ret0, _ := ret[0].(*kms.SignOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// Sign indicates an expected call of Sign. +func (mr *MockKMSAPIMockRecorder) Sign(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Sign", reflect.TypeOf((*MockKMSAPI)(nil).Sign), arg0) +} + +// SignRequest mocks base method. +func (m *MockKMSAPI) SignRequest(arg0 *kms.SignInput) (*request.Request, *kms.SignOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SignRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.SignOutput) + return ret0, ret1 +} + +// SignRequest indicates an expected call of SignRequest. +func (mr *MockKMSAPIMockRecorder) SignRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SignRequest", reflect.TypeOf((*MockKMSAPI)(nil).SignRequest), arg0) +} + +// SignWithContext mocks base method. +func (m *MockKMSAPI) SignWithContext(arg0 aws.Context, arg1 *kms.SignInput, arg2 ...request.Option) (*kms.SignOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SignWithContext", varargs...) + ret0, _ := ret[0].(*kms.SignOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SignWithContext indicates an expected call of SignWithContext. +func (mr *MockKMSAPIMockRecorder) SignWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SignWithContext", reflect.TypeOf((*MockKMSAPI)(nil).SignWithContext), varargs...) +} + +// TagResource mocks base method. +func (m *MockKMSAPI) TagResource(arg0 *kms.TagResourceInput) (*kms.TagResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagResource", arg0) + ret0, _ := ret[0].(*kms.TagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagResource indicates an expected call of TagResource. +func (mr *MockKMSAPIMockRecorder) TagResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagResource", reflect.TypeOf((*MockKMSAPI)(nil).TagResource), arg0) +} + +// TagResourceRequest mocks base method. +func (m *MockKMSAPI) TagResourceRequest(arg0 *kms.TagResourceInput) (*request.Request, *kms.TagResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.TagResourceOutput) + return ret0, ret1 +} + +// TagResourceRequest indicates an expected call of TagResourceRequest. +func (mr *MockKMSAPIMockRecorder) TagResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagResourceRequest", reflect.TypeOf((*MockKMSAPI)(nil).TagResourceRequest), arg0) +} + +// TagResourceWithContext mocks base method. +func (m *MockKMSAPI) TagResourceWithContext(arg0 aws.Context, arg1 *kms.TagResourceInput, arg2 ...request.Option) (*kms.TagResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "TagResourceWithContext", varargs...) + ret0, _ := ret[0].(*kms.TagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagResourceWithContext indicates an expected call of TagResourceWithContext. +func (mr *MockKMSAPIMockRecorder) TagResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagResourceWithContext", reflect.TypeOf((*MockKMSAPI)(nil).TagResourceWithContext), varargs...) +} + +// UntagResource mocks base method. +func (m *MockKMSAPI) UntagResource(arg0 *kms.UntagResourceInput) (*kms.UntagResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagResource", arg0) + ret0, _ := ret[0].(*kms.UntagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagResource indicates an expected call of UntagResource. +func (mr *MockKMSAPIMockRecorder) UntagResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagResource", reflect.TypeOf((*MockKMSAPI)(nil).UntagResource), arg0) +} + +// UntagResourceRequest mocks base method. +func (m *MockKMSAPI) UntagResourceRequest(arg0 *kms.UntagResourceInput) (*request.Request, *kms.UntagResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.UntagResourceOutput) + return ret0, ret1 +} + +// UntagResourceRequest indicates an expected call of UntagResourceRequest. +func (mr *MockKMSAPIMockRecorder) UntagResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagResourceRequest", reflect.TypeOf((*MockKMSAPI)(nil).UntagResourceRequest), arg0) +} + +// UntagResourceWithContext mocks base method. +func (m *MockKMSAPI) UntagResourceWithContext(arg0 aws.Context, arg1 *kms.UntagResourceInput, arg2 ...request.Option) (*kms.UntagResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UntagResourceWithContext", varargs...) + ret0, _ := ret[0].(*kms.UntagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagResourceWithContext indicates an expected call of UntagResourceWithContext. +func (mr *MockKMSAPIMockRecorder) UntagResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagResourceWithContext", reflect.TypeOf((*MockKMSAPI)(nil).UntagResourceWithContext), varargs...) +} + +// UpdateAlias mocks base method. +func (m *MockKMSAPI) UpdateAlias(arg0 *kms.UpdateAliasInput) (*kms.UpdateAliasOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateAlias", arg0) + ret0, _ := ret[0].(*kms.UpdateAliasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateAlias indicates an expected call of UpdateAlias. +func (mr *MockKMSAPIMockRecorder) UpdateAlias(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAlias", reflect.TypeOf((*MockKMSAPI)(nil).UpdateAlias), arg0) +} + +// UpdateAliasRequest mocks base method. +func (m *MockKMSAPI) UpdateAliasRequest(arg0 *kms.UpdateAliasInput) (*request.Request, *kms.UpdateAliasOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateAliasRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.UpdateAliasOutput) + return ret0, ret1 +} + +// UpdateAliasRequest indicates an expected call of UpdateAliasRequest. +func (mr *MockKMSAPIMockRecorder) UpdateAliasRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAliasRequest", reflect.TypeOf((*MockKMSAPI)(nil).UpdateAliasRequest), arg0) +} + +// UpdateAliasWithContext mocks base method. +func (m *MockKMSAPI) UpdateAliasWithContext(arg0 aws.Context, arg1 *kms.UpdateAliasInput, arg2 ...request.Option) (*kms.UpdateAliasOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateAliasWithContext", varargs...) + ret0, _ := ret[0].(*kms.UpdateAliasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateAliasWithContext indicates an expected call of UpdateAliasWithContext. +func (mr *MockKMSAPIMockRecorder) UpdateAliasWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAliasWithContext", reflect.TypeOf((*MockKMSAPI)(nil).UpdateAliasWithContext), varargs...) +} + +// UpdateCustomKeyStore mocks base method. +func (m *MockKMSAPI) UpdateCustomKeyStore(arg0 *kms.UpdateCustomKeyStoreInput) (*kms.UpdateCustomKeyStoreOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateCustomKeyStore", arg0) + ret0, _ := ret[0].(*kms.UpdateCustomKeyStoreOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateCustomKeyStore indicates an expected call of UpdateCustomKeyStore. +func (mr *MockKMSAPIMockRecorder) UpdateCustomKeyStore(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateCustomKeyStore", reflect.TypeOf((*MockKMSAPI)(nil).UpdateCustomKeyStore), arg0) +} + +// UpdateCustomKeyStoreRequest mocks base method. +func (m *MockKMSAPI) UpdateCustomKeyStoreRequest(arg0 *kms.UpdateCustomKeyStoreInput) (*request.Request, *kms.UpdateCustomKeyStoreOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateCustomKeyStoreRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.UpdateCustomKeyStoreOutput) + return ret0, ret1 +} + +// UpdateCustomKeyStoreRequest indicates an expected call of UpdateCustomKeyStoreRequest. +func (mr *MockKMSAPIMockRecorder) UpdateCustomKeyStoreRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateCustomKeyStoreRequest", reflect.TypeOf((*MockKMSAPI)(nil).UpdateCustomKeyStoreRequest), arg0) +} + +// UpdateCustomKeyStoreWithContext mocks base method. +func (m *MockKMSAPI) UpdateCustomKeyStoreWithContext(arg0 aws.Context, arg1 *kms.UpdateCustomKeyStoreInput, arg2 ...request.Option) (*kms.UpdateCustomKeyStoreOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateCustomKeyStoreWithContext", varargs...) + ret0, _ := ret[0].(*kms.UpdateCustomKeyStoreOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateCustomKeyStoreWithContext indicates an expected call of UpdateCustomKeyStoreWithContext. +func (mr *MockKMSAPIMockRecorder) UpdateCustomKeyStoreWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateCustomKeyStoreWithContext", reflect.TypeOf((*MockKMSAPI)(nil).UpdateCustomKeyStoreWithContext), varargs...) +} + +// UpdateKeyDescription mocks base method. +func (m *MockKMSAPI) UpdateKeyDescription(arg0 *kms.UpdateKeyDescriptionInput) (*kms.UpdateKeyDescriptionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateKeyDescription", arg0) + ret0, _ := ret[0].(*kms.UpdateKeyDescriptionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateKeyDescription indicates an expected call of UpdateKeyDescription. +func (mr *MockKMSAPIMockRecorder) UpdateKeyDescription(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateKeyDescription", reflect.TypeOf((*MockKMSAPI)(nil).UpdateKeyDescription), arg0) +} + +// UpdateKeyDescriptionRequest mocks base method. +func (m *MockKMSAPI) UpdateKeyDescriptionRequest(arg0 *kms.UpdateKeyDescriptionInput) (*request.Request, *kms.UpdateKeyDescriptionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateKeyDescriptionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.UpdateKeyDescriptionOutput) + return ret0, ret1 +} + +// UpdateKeyDescriptionRequest indicates an expected call of UpdateKeyDescriptionRequest. +func (mr *MockKMSAPIMockRecorder) UpdateKeyDescriptionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateKeyDescriptionRequest", reflect.TypeOf((*MockKMSAPI)(nil).UpdateKeyDescriptionRequest), arg0) +} + +// UpdateKeyDescriptionWithContext mocks base method. +func (m *MockKMSAPI) UpdateKeyDescriptionWithContext(arg0 aws.Context, arg1 *kms.UpdateKeyDescriptionInput, arg2 ...request.Option) (*kms.UpdateKeyDescriptionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateKeyDescriptionWithContext", varargs...) + ret0, _ := ret[0].(*kms.UpdateKeyDescriptionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateKeyDescriptionWithContext indicates an expected call of UpdateKeyDescriptionWithContext. +func (mr *MockKMSAPIMockRecorder) UpdateKeyDescriptionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateKeyDescriptionWithContext", reflect.TypeOf((*MockKMSAPI)(nil).UpdateKeyDescriptionWithContext), varargs...) +} + +// UpdatePrimaryRegion mocks base method. +func (m *MockKMSAPI) UpdatePrimaryRegion(arg0 *kms.UpdatePrimaryRegionInput) (*kms.UpdatePrimaryRegionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdatePrimaryRegion", arg0) + ret0, _ := ret[0].(*kms.UpdatePrimaryRegionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdatePrimaryRegion indicates an expected call of UpdatePrimaryRegion. +func (mr *MockKMSAPIMockRecorder) UpdatePrimaryRegion(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePrimaryRegion", reflect.TypeOf((*MockKMSAPI)(nil).UpdatePrimaryRegion), arg0) +} + +// UpdatePrimaryRegionRequest mocks base method. +func (m *MockKMSAPI) UpdatePrimaryRegionRequest(arg0 *kms.UpdatePrimaryRegionInput) (*request.Request, *kms.UpdatePrimaryRegionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdatePrimaryRegionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.UpdatePrimaryRegionOutput) + return ret0, ret1 +} + +// UpdatePrimaryRegionRequest indicates an expected call of UpdatePrimaryRegionRequest. +func (mr *MockKMSAPIMockRecorder) UpdatePrimaryRegionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePrimaryRegionRequest", reflect.TypeOf((*MockKMSAPI)(nil).UpdatePrimaryRegionRequest), arg0) +} + +// UpdatePrimaryRegionWithContext mocks base method. +func (m *MockKMSAPI) UpdatePrimaryRegionWithContext(arg0 aws.Context, arg1 *kms.UpdatePrimaryRegionInput, arg2 ...request.Option) (*kms.UpdatePrimaryRegionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdatePrimaryRegionWithContext", varargs...) + ret0, _ := ret[0].(*kms.UpdatePrimaryRegionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdatePrimaryRegionWithContext indicates an expected call of UpdatePrimaryRegionWithContext. +func (mr *MockKMSAPIMockRecorder) UpdatePrimaryRegionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePrimaryRegionWithContext", reflect.TypeOf((*MockKMSAPI)(nil).UpdatePrimaryRegionWithContext), varargs...) +} + +// Verify mocks base method. +func (m *MockKMSAPI) Verify(arg0 *kms.VerifyInput) (*kms.VerifyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Verify", arg0) + ret0, _ := ret[0].(*kms.VerifyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// Verify indicates an expected call of Verify. +func (mr *MockKMSAPIMockRecorder) Verify(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Verify", reflect.TypeOf((*MockKMSAPI)(nil).Verify), arg0) +} + +// VerifyMac mocks base method. +func (m *MockKMSAPI) VerifyMac(arg0 *kms.VerifyMacInput) (*kms.VerifyMacOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "VerifyMac", arg0) + ret0, _ := ret[0].(*kms.VerifyMacOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// VerifyMac indicates an expected call of VerifyMac. +func (mr *MockKMSAPIMockRecorder) VerifyMac(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyMac", reflect.TypeOf((*MockKMSAPI)(nil).VerifyMac), arg0) +} + +// VerifyMacRequest mocks base method. +func (m *MockKMSAPI) VerifyMacRequest(arg0 *kms.VerifyMacInput) (*request.Request, *kms.VerifyMacOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "VerifyMacRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.VerifyMacOutput) + return ret0, ret1 +} + +// VerifyMacRequest indicates an expected call of VerifyMacRequest. +func (mr *MockKMSAPIMockRecorder) VerifyMacRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyMacRequest", reflect.TypeOf((*MockKMSAPI)(nil).VerifyMacRequest), arg0) +} + +// VerifyMacWithContext mocks base method. +func (m *MockKMSAPI) VerifyMacWithContext(arg0 aws.Context, arg1 *kms.VerifyMacInput, arg2 ...request.Option) (*kms.VerifyMacOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "VerifyMacWithContext", varargs...) + ret0, _ := ret[0].(*kms.VerifyMacOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// VerifyMacWithContext indicates an expected call of VerifyMacWithContext. +func (mr *MockKMSAPIMockRecorder) VerifyMacWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyMacWithContext", reflect.TypeOf((*MockKMSAPI)(nil).VerifyMacWithContext), varargs...) +} + +// VerifyRequest mocks base method. +func (m *MockKMSAPI) VerifyRequest(arg0 *kms.VerifyInput) (*request.Request, *kms.VerifyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "VerifyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*kms.VerifyOutput) + return ret0, ret1 +} + +// VerifyRequest indicates an expected call of VerifyRequest. +func (mr *MockKMSAPIMockRecorder) VerifyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyRequest", reflect.TypeOf((*MockKMSAPI)(nil).VerifyRequest), arg0) +} + +// VerifyWithContext mocks base method. +func (m *MockKMSAPI) VerifyWithContext(arg0 aws.Context, arg1 *kms.VerifyInput, arg2 ...request.Option) (*kms.VerifyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "VerifyWithContext", varargs...) + ret0, _ := ret[0].(*kms.VerifyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// VerifyWithContext indicates an expected call of VerifyWithContext. +func (mr *MockKMSAPIMockRecorder) VerifyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyWithContext", reflect.TypeOf((*MockKMSAPI)(nil).VerifyWithContext), varargs...) +} From 50a7a92354259cfd6e17da649c504824187c6092 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 27 Aug 2024 16:30:38 -0600 Subject: [PATCH 416/617] fix(kms-key): continue processing keys if error encountered --- resources/kms-keys.go | 100 ++++++++++++++++++++++-------------------- 1 file changed, 53 insertions(+), 47 deletions(-) diff --git a/resources/kms-keys.go b/resources/kms-keys.go index b77e6bce..adba6096 100644 --- a/resources/kms-keys.go +++ b/resources/kms-keys.go @@ -2,11 +2,16 @@ package resources import ( "context" - + "errors" "fmt" + "github.com/gotidy/ptr" + "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/service/kms" + "github.com/aws/aws-sdk-go/service/kms/kmsiface" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" @@ -28,49 +33,58 @@ func init() { }) } -type KMSKeyLister struct{} +type KMSKeyLister struct { + mockSvc kmsiface.KMSAPI +} func (l *KMSKeyLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) - - svc := kms.New(opts.Session) resources := make([]resource.Resource, 0) - var innerErr error - if err := svc.ListKeysPages(nil, func(resp *kms.ListKeysOutput, lastPage bool) bool { - for _, key := range resp.Keys { + var svc kmsiface.KMSAPI + if l.mockSvc != nil { + svc = l.mockSvc + } else { + svc = kms.New(opts.Session) + } + + inaccessibleKeys := false + + if err := svc.ListKeysPages(nil, func(keysOut *kms.ListKeysOutput, lastPage bool) bool { + for _, key := range keysOut.Keys { resp, err := svc.DescribeKey(&kms.DescribeKeyInput{ KeyId: key.KeyId, }) if err != nil { - innerErr = err - return false - } - - if *resp.KeyMetadata.KeyManager == kms.KeyManagerTypeAws { - continue - } - - if *resp.KeyMetadata.KeyState == kms.KeyStatePendingDeletion { + var awsError awserr.Error + if errors.As(err, &awsError) { + if awsError.Code() == "AccessDeniedException" { + inaccessibleKeys = true + logrus.WithError(err).Debug("unable to describe key") + continue + } + } + + logrus.WithError(err).Error("unable to describe key") continue } kmsKey := &KMSKey{ svc: svc, - id: *resp.KeyMetadata.KeyId, - state: *resp.KeyMetadata.KeyState, - manager: resp.KeyMetadata.KeyManager, + ID: resp.KeyMetadata.KeyId, + State: resp.KeyMetadata.KeyState, + Manager: resp.KeyMetadata.KeyManager, } tags, err := svc.ListResourceTags(&kms.ListResourceTagsInput{ KeyId: key.KeyId, }) if err != nil { - innerErr = err - return false + logrus.WithError(err).Error("unable to list tags") + } else { + kmsKey.Tags = tags.Tags } - kmsKey.tags = tags.Tags resources = append(resources, kmsKey) } @@ -79,53 +93,45 @@ func (l *KMSKeyLister) List(_ context.Context, o interface{}) ([]resource.Resour return nil, err } - if innerErr != nil { - return nil, innerErr + if inaccessibleKeys { + logrus.Warn("one or more KMS keys were inaccessible, debug logging will contain more information") } return resources, nil } type KMSKey struct { - svc *kms.KMS - id string - state string - manager *string - tags []*kms.Tag + svc kmsiface.KMSAPI + ID *string + State *string + Manager *string + Tags []*kms.Tag } -func (e *KMSKey) Filter() error { - if e.state == "PendingDeletion" { +func (r *KMSKey) Filter() error { + if ptr.ToString(r.State) == kms.KeyStatePendingDeletion { return fmt.Errorf("is already in PendingDeletion state") } - if e.manager != nil && *e.manager == kms.KeyManagerTypeAws { + if ptr.ToString(r.Manager) == kms.KeyManagerTypeAws { return fmt.Errorf("cannot delete AWS managed key") } return nil } -func (e *KMSKey) Remove(_ context.Context) error { - _, err := e.svc.ScheduleKeyDeletion(&kms.ScheduleKeyDeletionInput{ - KeyId: &e.id, +func (r *KMSKey) Remove(_ context.Context) error { + _, err := r.svc.ScheduleKeyDeletion(&kms.ScheduleKeyDeletionInput{ + KeyId: r.ID, PendingWindowInDays: aws.Int64(7), }) return err } -func (e *KMSKey) String() string { - return e.id +func (r *KMSKey) String() string { + return *r.ID } -func (e *KMSKey) Properties() types.Properties { - properties := types.NewProperties() - properties. - Set("ID", e.id) - - for _, tag := range e.tags { - properties.SetTag(tag.TagKey, tag.TagValue) - } - - return properties +func (r *KMSKey) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) } From 0c43949c1779310799164fe107c4482214e8e57d Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 27 Aug 2024 16:31:15 -0600 Subject: [PATCH 417/617] test(kms-key): add mocked test coverage --- resources/kms-keys_mock_test.go | 223 ++++++++++++++++++++++++++++++++ resources/kms-keys_test.go | 4 +- resources/kms_mock_test.go | 4 + 3 files changed, 229 insertions(+), 2 deletions(-) create mode 100644 resources/kms-keys_mock_test.go create mode 100644 resources/kms_mock_test.go diff --git a/resources/kms-keys_mock_test.go b/resources/kms-keys_mock_test.go new file mode 100644 index 00000000..04b11f3e --- /dev/null +++ b/resources/kms-keys_mock_test.go @@ -0,0 +1,223 @@ +package resources + +import ( + "context" + "testing" + + "github.com/golang/mock/gomock" + "github.com/gotidy/ptr" + "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/kms" + + "github.com/ekristen/aws-nuke/v3/mocks/mock_kmsiface" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +func Test_Mock_KMSKey_List(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockKMS := mock_kmsiface.NewMockKMSAPI(ctrl) + + mockKMS.EXPECT().ListKeysPages(gomock.Any(), gomock.Any()).DoAndReturn( + func(input *kms.ListKeysInput, fn func(*kms.ListKeysOutput, bool) bool) error { + fn(&kms.ListKeysOutput{ + Keys: []*kms.KeyListEntry{ + {KeyId: aws.String("test-key-id")}, + }, + }, true) + return nil + }, + ) + + mockKMS.EXPECT().DescribeKey(gomock.Any()).DoAndReturn( + func(input *kms.DescribeKeyInput) (*kms.DescribeKeyOutput, error) { + return &kms.DescribeKeyOutput{ + KeyMetadata: &kms.KeyMetadata{ + KeyId: aws.String("test-key-id"), + Arn: aws.String("arn:aws:kms:us-east-2:123456789012:key/test-key-id"), + KeyManager: aws.String(kms.KeyManagerTypeCustomer), + KeyState: aws.String(kms.KeyStateEnabled), + }, + }, nil + }, + ) + + mockKMS.EXPECT().ListResourceTags(gomock.Any()).DoAndReturn( + func(input *kms.ListResourceTagsInput) (*kms.ListResourceTagsOutput, error) { + return &kms.ListResourceTagsOutput{ + Tags: []*kms.Tag{ + {TagKey: aws.String("Environment"), TagValue: aws.String("Test")}, + }, + }, nil + }, + ) + + lister := KMSKeyLister{ + mockSvc: mockKMS, + } + + resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ + Region: &nuke.Region{ + Name: "us-east-2", + }, + Session: session.Must(session.NewSession()), + }) + a.NoError(err) + a.Len(resources, 1) +} + +func Test_Mock_KMSKey_List_WithAccessDenied(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockKMS := mock_kmsiface.NewMockKMSAPI(ctrl) + + // Mock the ListKeysPages method to return two keys + mockKMS.EXPECT().ListKeysPages(gomock.Any(), gomock.Any()).DoAndReturn( + func(input *kms.ListKeysInput, fn func(*kms.ListKeysOutput, bool) bool) error { + fn(&kms.ListKeysOutput{ + Keys: []*kms.KeyListEntry{ + {KeyId: aws.String("test-key-id-1")}, + {KeyId: aws.String("test-key-id-2")}, + }, + }, true) + return nil + }, + ) + + // Mock DescribeKey for the first key to return a valid response + mockKMS.EXPECT().DescribeKey(&kms.DescribeKeyInput{ + KeyId: aws.String("test-key-id-1"), + }).DoAndReturn( + func(input *kms.DescribeKeyInput) (*kms.DescribeKeyOutput, error) { + return &kms.DescribeKeyOutput{ + KeyMetadata: &kms.KeyMetadata{ + KeyId: aws.String("test-key-id-1"), + Arn: aws.String("arn:aws:kms:us-east-2:123456789012:key/test-key-id-1"), + KeyManager: aws.String(kms.KeyManagerTypeCustomer), + KeyState: aws.String(kms.KeyStateEnabled), + }, + }, nil + }, + ) + + // Mock DescribeKey for the second key to return AccessDeniedException + mockKMS.EXPECT().DescribeKey(&kms.DescribeKeyInput{ + KeyId: aws.String("test-key-id-2"), + }).DoAndReturn( + func(input *kms.DescribeKeyInput) (*kms.DescribeKeyOutput, error) { + return nil, awserr.New("AccessDeniedException", "no resource-based policy allows the kms:DescribeKey action", nil) + }, + ) + + // Mock ListResourceTags for the first key + mockKMS.EXPECT().ListResourceTags(&kms.ListResourceTagsInput{ + KeyId: aws.String("test-key-id-1"), + }).DoAndReturn( + func(input *kms.ListResourceTagsInput) (*kms.ListResourceTagsOutput, error) { + return &kms.ListResourceTagsOutput{ + Tags: []*kms.Tag{ + {TagKey: aws.String("Environment"), TagValue: aws.String("Test")}, + }, + }, nil + }, + ) + + lister := KMSKeyLister{ + mockSvc: mockKMS, + } + + resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ + Region: &nuke.Region{ + Name: "us-east-2", + }, + Session: session.Must(session.NewSession()), + }) + a.NoError(err) + a.Len(resources, 1) +} + +func Test_Mock_KMSKey_Filter(t *testing.T) { + cases := []struct { + name string + state string + manager string + error string + }{ + { + name: "aws-managed-key", + state: kms.KeyStateEnabled, + manager: kms.KeyManagerTypeAws, + error: "cannot delete AWS managed key", + }, + { + name: "pending-deletion-key", + state: kms.KeyStatePendingDeletion, + manager: kms.KeyManagerTypeCustomer, + error: "is already in PendingDeletion state", + }, + { + name: "enabled-key", + state: kms.KeyStateEnabled, + manager: kms.KeyManagerTypeCustomer, + error: "", + }, + } + + for _, tc := range cases { + kmsKey := KMSKey{ + ID: ptr.String("test-key-id"), + State: ptr.String(tc.state), + Manager: ptr.String(tc.manager), + } + + err := kmsKey.Filter() + if tc.error == "" { + assert.NoError(t, err) + } else { + assert.ErrorContains(t, err, tc.error) + } + } +} + +func Test_Mock_KMSKey_Properties(t *testing.T) { + kmsKey := KMSKey{ + ID: ptr.String("test-key-id"), + State: ptr.String(kms.KeyStateEnabled), + Manager: ptr.String(kms.KeyManagerTypeCustomer), + } + + assert.Equal(t, "test-key-id", kmsKey.String()) + assert.Equal(t, kms.KeyStateEnabled, kmsKey.Properties().Get("State")) + assert.Equal(t, kms.KeyManagerTypeCustomer, kmsKey.Properties().Get("Manager")) +} + +func Test_Mock_KMSKey_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockKMS := mock_kmsiface.NewMockKMSAPI(ctrl) + + mockKMS.EXPECT().ScheduleKeyDeletion(&kms.ScheduleKeyDeletionInput{ + KeyId: aws.String("test-key-id"), + PendingWindowInDays: aws.Int64(7), + }).Return(&kms.ScheduleKeyDeletionOutput{}, nil) + + kmsKey := KMSKey{ + svc: mockKMS, + ID: ptr.String("test-key-id"), + State: ptr.String(kms.KeyStateEnabled), + Manager: ptr.String(kms.KeyManagerTypeCustomer), + } + + err := kmsKey.Remove(context.TODO()) + a.NoError(err) +} diff --git a/resources/kms-keys_test.go b/resources/kms-keys_test.go index b26f83c0..7522d521 100644 --- a/resources/kms-keys_test.go +++ b/resources/kms-keys_test.go @@ -51,14 +51,14 @@ func Test_KMSKey_Remove(t *testing.T) { kmsKey := KMSKey{ svc: svc, - id: *out.KeyMetadata.KeyId, + ID: out.KeyMetadata.KeyId, } removeError := kmsKey.Remove(context.TODO()) assert.NoError(t, removeError) _, err = svc.DescribeKey(&kms.DescribeKeyInput{ - KeyId: aws.String(kmsKey.id), + KeyId: kmsKey.ID, }) var awsError awserr.Error if errors.As(err, &awsError) { diff --git a/resources/kms_mock_test.go b/resources/kms_mock_test.go new file mode 100644 index 00000000..a5216b1a --- /dev/null +++ b/resources/kms_mock_test.go @@ -0,0 +1,4 @@ +//go:generate ../mocks/generate_mocks.sh kms kmsiface +package resources + +// Note: empty on purpose, this file exist purely to generate mocks for the KMS service From fa0d31630a8be49d98cfbd5e58b2d76681161828 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 27 Aug 2024 16:31:50 -0600 Subject: [PATCH 418/617] refactor(kms-alias): pointer standarization --- resources/kms-aliases.go | 43 +++++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/resources/kms-aliases.go b/resources/kms-aliases.go index c9ee72f0..1a8d2d29 100644 --- a/resources/kms-aliases.go +++ b/resources/kms-aliases.go @@ -2,11 +2,11 @@ package resources import ( "context" - "fmt" "strings" "github.com/aws/aws-sdk-go/service/kms" + "github.com/aws/aws-sdk-go/service/kms/kmsiface" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" @@ -25,19 +25,26 @@ func init() { }) } -type KMSAliasLister struct{} +type KMSAliasLister struct { + mockSvc kmsiface.KMSAPI +} func (l *KMSAliasLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) + resources := make([]resource.Resource, 0) - svc := kms.New(opts.Session) + var svc kmsiface.KMSAPI + if l.mockSvc != nil { + svc = l.mockSvc + } else { + svc = kms.New(opts.Session) + } - resources := make([]resource.Resource, 0) err := svc.ListAliasesPages(nil, func(page *kms.ListAliasesOutput, lastPage bool) bool { for _, alias := range page.Aliases { resources = append(resources, &KMSAlias{ svc: svc, - name: alias.AliasName, + Name: alias.AliasName, }) } return true @@ -50,32 +57,28 @@ func (l *KMSAliasLister) List(_ context.Context, o interface{}) ([]resource.Reso } type KMSAlias struct { - svc *kms.KMS - name *string + svc kmsiface.KMSAPI + Name *string } -func (e *KMSAlias) Filter() error { - if strings.HasPrefix(*e.name, "alias/aws/") { +func (r *KMSAlias) Filter() error { + if strings.HasPrefix(*r.Name, "alias/aws/") { return fmt.Errorf("cannot delete AWS alias") } return nil } -func (e *KMSAlias) Remove(_ context.Context) error { - _, err := e.svc.DeleteAlias(&kms.DeleteAliasInput{ - AliasName: e.name, +func (r *KMSAlias) Remove(_ context.Context) error { + _, err := r.svc.DeleteAlias(&kms.DeleteAliasInput{ + AliasName: r.Name, }) return err } -func (e *KMSAlias) String() string { - return *e.name +func (r *KMSAlias) String() string { + return *r.Name } -func (e *KMSAlias) Properties() types.Properties { - properties := types.NewProperties() - properties. - Set("Name", e.name) - - return properties +func (r *KMSAlias) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) } From ce415ea8b34d80930ca6b876b8516f3faa7b2bb7 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 27 Aug 2024 16:32:02 -0600 Subject: [PATCH 419/617] test(kms-alias): add mocked test coverage --- resources/kms-aliases_mock_test.go | 125 +++++++++++++++++++++++++++++ 1 file changed, 125 insertions(+) create mode 100644 resources/kms-aliases_mock_test.go diff --git a/resources/kms-aliases_mock_test.go b/resources/kms-aliases_mock_test.go new file mode 100644 index 00000000..bcd43675 --- /dev/null +++ b/resources/kms-aliases_mock_test.go @@ -0,0 +1,125 @@ +package resources + +import ( + "context" + "testing" + + "github.com/golang/mock/gomock" + "github.com/gotidy/ptr" + "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/kms" + + "github.com/ekristen/aws-nuke/v3/mocks/mock_kmsiface" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +func Test_Mock_KMSAlias_List(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockKMS := mock_kmsiface.NewMockKMSAPI(ctrl) + + mockKMS.EXPECT().ListAliasesPages(gomock.Any(), gomock.Any()).DoAndReturn( + func(input *kms.ListAliasesInput, fn func(*kms.ListAliasesOutput, bool) bool) error { + fn(&kms.ListAliasesOutput{ + Aliases: []*kms.AliasListEntry{ + {AliasName: aws.String("alias/test-alias-1")}, + {AliasName: aws.String("alias/test-alias-2")}, + }, + }, true) + return nil + }, + ) + + lister := KMSAliasLister{ + mockSvc: mockKMS, + } + + resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ + Region: &nuke.Region{ + Name: "us-east-2", + }, + Session: session.Must(session.NewSession()), + }) + a.NoError(err) + a.Len(resources, 2) +} + +func Test_Mock_KMSAlias_List_Error(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockKMS := mock_kmsiface.NewMockKMSAPI(ctrl) + + mockKMS.EXPECT(). + ListAliasesPages(gomock.Any(), gomock.Any()). + Return(awserr.New("BadRequest", "400 Bad Request", nil)) + + lister := KMSAliasLister{ + mockSvc: mockKMS, + } + + resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ + Region: &nuke.Region{ + Name: "us-east-2", + }, + Session: session.Must(session.NewSession()), + }) + a.Error(err) + a.Nil(resources) + a.EqualError(err, "BadRequest: 400 Bad Request") +} + +func Test_KMSAlias_Filter(t *testing.T) { + a := assert.New(t) + + alias := &KMSAlias{ + Name: ptr.String("alias/aws/test-alias"), + } + + err := alias.Filter() + a.Error(err) + a.EqualError(err, "cannot delete AWS alias") + + alias.Name = ptr.String("alias/custom/test-alias") + err = alias.Filter() + a.NoError(err) +} + +func Test_KMSAlias_Properties(t *testing.T) { + a := assert.New(t) + + alias := &KMSAlias{ + Name: ptr.String("alias/custom/test-alias"), + } + + a.Equal("alias/custom/test-alias", alias.String()) + a.Equal("alias/custom/test-alias", alias.Properties().Get("Name")) +} + +func Test_Mock_KMSAlias_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockKMS := mock_kmsiface.NewMockKMSAPI(ctrl) + + // Mock the DeleteAlias method + mockKMS.EXPECT().DeleteAlias(&kms.DeleteAliasInput{ + AliasName: ptr.String("alias/test-alias-1"), + }).Return(&kms.DeleteAliasOutput{}, nil) + + alias := &KMSAlias{ + svc: mockKMS, + Name: ptr.String("alias/test-alias-1"), + } + + err := alias.Remove(context.TODO()) + a.NoError(err) +} From 186439ebff38efd87b84605faeb8691d43a35567 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 27 Aug 2024 16:32:50 -0600 Subject: [PATCH 420/617] refactor(kms): naming standardization --- resources/{kms-aliases.go => kms-alias.go} | 0 resources/{kms-aliases_mock_test.go => kms-alias_mock_test.go} | 0 resources/{kms-keys.go => kms-key.go} | 0 resources/{kms-keys_mock_test.go => kms-key_mock_test.go} | 0 resources/{kms-keys_test.go => kms-key_test.go} | 0 5 files changed, 0 insertions(+), 0 deletions(-) rename resources/{kms-aliases.go => kms-alias.go} (100%) rename resources/{kms-aliases_mock_test.go => kms-alias_mock_test.go} (100%) rename resources/{kms-keys.go => kms-key.go} (100%) rename resources/{kms-keys_mock_test.go => kms-key_mock_test.go} (100%) rename resources/{kms-keys_test.go => kms-key_test.go} (100%) diff --git a/resources/kms-aliases.go b/resources/kms-alias.go similarity index 100% rename from resources/kms-aliases.go rename to resources/kms-alias.go diff --git a/resources/kms-aliases_mock_test.go b/resources/kms-alias_mock_test.go similarity index 100% rename from resources/kms-aliases_mock_test.go rename to resources/kms-alias_mock_test.go diff --git a/resources/kms-keys.go b/resources/kms-key.go similarity index 100% rename from resources/kms-keys.go rename to resources/kms-key.go diff --git a/resources/kms-keys_mock_test.go b/resources/kms-key_mock_test.go similarity index 100% rename from resources/kms-keys_mock_test.go rename to resources/kms-key_mock_test.go diff --git a/resources/kms-keys_test.go b/resources/kms-key_test.go similarity index 100% rename from resources/kms-keys_test.go rename to resources/kms-key_test.go From 1ae8d79e834ea1730e41c16cf31fc9753a664a1c Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 27 Aug 2024 17:00:20 -0600 Subject: [PATCH 421/617] fix(kms-key): only get tags if customer managed key --- resources/kms-key.go | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/resources/kms-key.go b/resources/kms-key.go index adba6096..043824e5 100644 --- a/resources/kms-key.go +++ b/resources/kms-key.go @@ -60,7 +60,7 @@ func (l *KMSKeyLister) List(_ context.Context, o interface{}) ([]resource.Resour if errors.As(err, &awsError) { if awsError.Code() == "AccessDeniedException" { inaccessibleKeys = true - logrus.WithError(err).Debug("unable to describe key") + logrus.WithField("arn", key.KeyArn).WithError(err).Debug("unable to describe key") continue } } @@ -76,13 +76,26 @@ func (l *KMSKeyLister) List(_ context.Context, o interface{}) ([]resource.Resour Manager: resp.KeyMetadata.KeyManager, } - tags, err := svc.ListResourceTags(&kms.ListResourceTagsInput{ - KeyId: key.KeyId, - }) - if err != nil { - logrus.WithError(err).Error("unable to list tags") - } else { - kmsKey.Tags = tags.Tags + // Note: we check for customer managed keys here because we can't list tags for AWS managed keys + // This way AWS managed keys still show up but get filtered out by the Filter method + if ptr.ToString(resp.KeyMetadata.KeyManager) == kms.KeyManagerTypeCustomer { + tags, err := svc.ListResourceTags(&kms.ListResourceTagsInput{ + KeyId: key.KeyId, + }) + if err != nil { + var awsError awserr.Error + if errors.As(err, &awsError) { + if awsError.Code() == "AccessDeniedException" { + inaccessibleKeys = true + logrus.WithError(err).Debug("unable to list tags") + continue + } else { + logrus.WithError(err).Error("unable to list tags") + } + } + } else { + kmsKey.Tags = tags.Tags + } } resources = append(resources, kmsKey) From b24d0f2045d516d646b9af07f9dfdb562e950054 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 27 Aug 2024 17:29:38 -0600 Subject: [PATCH 422/617] fix(iam-virtual-mfa-device): handle unassigned mfa devices --- resources/iam-virtual-mfa-device.go | 61 ++++++++++++++++++----------- 1 file changed, 39 insertions(+), 22 deletions(-) diff --git a/resources/iam-virtual-mfa-device.go b/resources/iam-virtual-mfa-device.go index ec27267d..1d0d2a71 100644 --- a/resources/iam-virtual-mfa-device.go +++ b/resources/iam-virtual-mfa-device.go @@ -2,19 +2,21 @@ package resources import ( "context" - "errors" "fmt" "strings" "github.com/gotidy/ptr" + "github.com/sirupsen/logrus" "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" - "github.com/ekristen/aws-nuke/v3/pkg/nuke" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const IAMVirtualMFADeviceResource = "IAMVirtualMFADevice" @@ -27,25 +29,32 @@ func init() { }) } -type IAMVirtualMFADeviceLister struct{} +type IAMVirtualMFADeviceLister struct { + mockSvc iamiface.IAMAPI +} func (l *IAMVirtualMFADeviceLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) + resources := make([]resource.Resource, 0) + + var svc iamiface.IAMAPI + if l.mockSvc != nil { + svc = l.mockSvc + } else { + svc = iam.New(opts.Session) + } - svc := iam.New(opts.Session) resp, err := svc.ListVirtualMFADevices(&iam.ListVirtualMFADevicesInput{}) if err != nil { return nil, err } - resources := make([]resource.Resource, 0) for _, out := range resp.VirtualMFADevices { resources = append(resources, &IAMVirtualMFADevice{ svc: svc, - userID: out.User.UserId, - userARN: out.User.Arn, - userName: out.User.UserName, - serialNumber: out.SerialNumber, + user: out.User, + SerialNumber: out.SerialNumber, + Assigned: ptr.Bool(out.User != nil), }) } @@ -54,18 +63,19 @@ func (l *IAMVirtualMFADeviceLister) List(_ context.Context, o interface{}) ([]re type IAMVirtualMFADevice struct { svc iamiface.IAMAPI - userID *string - userARN *string - userName *string - serialNumber *string + user *iam.User + Assigned *bool + SerialNumber *string } func (r *IAMVirtualMFADevice) Filter() error { isRoot := false - if ptr.ToString(r.userARN) == fmt.Sprintf("arn:aws:iam::%s:root", ptr.ToString(r.userID)) { + if r.user != nil && ptr.ToString(r.user.Arn) == fmt.Sprintf("arn:aws:iam::%s:root", ptr.ToString(r.user.UserId)) { + logrus.Debug("user is not nil, arn is root, assuming root") isRoot = true } - if strings.HasSuffix(ptr.ToString(r.serialNumber), "/root-account-mfa-device") { + if !isRoot && strings.HasSuffix(ptr.ToString(r.SerialNumber), "/root-account-mfa-device") { + logrus.Debug("serial number is root, assuming root") isRoot = true } @@ -77,15 +87,18 @@ func (r *IAMVirtualMFADevice) Filter() error { } func (r *IAMVirtualMFADevice) Remove(_ context.Context) error { - if _, err := r.svc.DeactivateMFADevice(&iam.DeactivateMFADeviceInput{ - UserName: r.userName, - SerialNumber: r.serialNumber, - }); err != nil { - return err + // Note: if the user is not nil, we need to deactivate the MFA device first + if r.user != nil { + if _, err := r.svc.DeactivateMFADevice(&iam.DeactivateMFADeviceInput{ + UserName: r.user.UserName, + SerialNumber: r.SerialNumber, + }); err != nil { + return err + } } if _, err := r.svc.DeleteVirtualMFADevice(&iam.DeleteVirtualMFADeviceInput{ - SerialNumber: r.serialNumber, + SerialNumber: r.SerialNumber, }); err != nil { return err } @@ -94,5 +107,9 @@ func (r *IAMVirtualMFADevice) Remove(_ context.Context) error { } func (r *IAMVirtualMFADevice) String() string { - return ptr.ToString(r.serialNumber) + return ptr.ToString(r.SerialNumber) +} + +func (r *IAMVirtualMFADevice) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) } From 5f59c969f768587b252820017fa3e83a802007a2 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 27 Aug 2024 17:29:58 -0600 Subject: [PATCH 423/617] test(iam-virtual-mfa-device): increase test coverage for unassigned --- resources/iam-virtual-mfa-device_mock_test.go | 107 +++++++++++++++++- 1 file changed, 101 insertions(+), 6 deletions(-) diff --git a/resources/iam-virtual-mfa-device_mock_test.go b/resources/iam-virtual-mfa-device_mock_test.go index 1b06df4b..880b51b6 100644 --- a/resources/iam-virtual-mfa-device_mock_test.go +++ b/resources/iam-virtual-mfa-device_mock_test.go @@ -8,11 +8,103 @@ import ( "github.com/gotidy/ptr" "github.com/stretchr/testify/assert" + "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) +func Test_Mock_IAMVirtualMFADevice_List(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + mockIAM.EXPECT().ListVirtualMFADevices(gomock.Any()).Return(&iam.ListVirtualMFADevicesOutput{ + VirtualMFADevices: []*iam.VirtualMFADevice{ + { + SerialNumber: ptr.String("serial:device1"), + User: &iam.User{ + UserName: ptr.String("user1"), + Arn: ptr.String("arn:aws:iam::123456789012:user/user1"), + }, + }, + { + SerialNumber: ptr.String("arn:aws:iam::077097111583:mfa/Authenticator"), + User: &iam.User{ + UserName: ptr.String("user1"), + UserId: ptr.String("0000000000000"), + Arn: ptr.String("arn:aws:iam::123456789012:user/user1"), + }, + }, + { + SerialNumber: ptr.String("serial:device2"), + User: nil, + }, + }, + }, nil) + + lister := &IAMVirtualMFADeviceLister{ + mockSvc: mockIAM, + } + + resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ + Region: &nuke.Region{ + Name: "us-east-2", + }, + Session: session.Must(session.NewSession()), + }) + a.Nil(err) + a.Len(resources, 3) +} + +func Test_IAMVirtualMFADevice_Properties(t *testing.T) { + a := assert.New(t) + + iamVirtualMFADevice := IAMVirtualMFADevice{ + user: &iam.User{ + UserName: ptr.String("foobar"), + Arn: ptr.String("arn:aws:iam::123456789012:user/foobar"), + }, + SerialNumber: ptr.String("serial:foobar"), + Assigned: ptr.Bool(true), + } + + properties := iamVirtualMFADevice.Properties() + a.Equal("serial:foobar", properties.Get("SerialNumber")) + a.Equal("true", properties.Get("Assigned")) + a.Equal("serial:foobar", iamVirtualMFADevice.String()) +} + +func Test_IAMVirtualMFADevice_Filter(t *testing.T) { + a := assert.New(t) + + rootMFADevice := &IAMVirtualMFADevice{ + user: &iam.User{ + UserId: ptr.String("0000000000000"), + Arn: ptr.String("arn:aws:iam::0000000000000:root"), + }, + SerialNumber: ptr.String("arn:aws:iam::0000000000000:mfa/root-account-mfa-device"), + } + + err := rootMFADevice.Filter() + a.NotNil(err) + a.EqualError(err, "cannot delete root mfa device") + + nonRootMFADevice := &IAMVirtualMFADevice{ + user: &iam.User{ + UserId: ptr.String("123456789012"), + Arn: ptr.String("arn:aws:iam::123456789012:user/user1"), + }, + SerialNumber: ptr.String("arn:aws:iam::123456789012:mfa/user1"), + } + + err = nonRootMFADevice.Filter() + a.Nil(err) +} + func Test_Mock_IAMVirtualMFADevice_Remove(t *testing.T) { a := assert.New(t) ctrl := gomock.NewController(t) @@ -21,18 +113,21 @@ func Test_Mock_IAMVirtualMFADevice_Remove(t *testing.T) { mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) iamVirtualMFADevice := IAMVirtualMFADevice{ - svc: mockIAM, - userName: ptr.String("user:foobar"), - serialNumber: ptr.String("serial:foobar"), + svc: mockIAM, + user: &iam.User{ + UserName: ptr.String("foobar"), + Arn: ptr.String("arn:aws:iam::123456789012:user/foobar"), + }, + SerialNumber: ptr.String("serial:foobar"), } mockIAM.EXPECT().DeactivateMFADevice(gomock.Eq(&iam.DeactivateMFADeviceInput{ - UserName: iamVirtualMFADevice.userName, - SerialNumber: iamVirtualMFADevice.serialNumber, + UserName: iamVirtualMFADevice.user.UserName, + SerialNumber: iamVirtualMFADevice.SerialNumber, })).Return(&iam.DeactivateMFADeviceOutput{}, nil) mockIAM.EXPECT().DeleteVirtualMFADevice(gomock.Eq(&iam.DeleteVirtualMFADeviceInput{ - SerialNumber: iamVirtualMFADevice.serialNumber, + SerialNumber: iamVirtualMFADevice.SerialNumber, })).Return(&iam.DeleteVirtualMFADeviceOutput{}, nil) err := iamVirtualMFADevice.Remove(context.TODO()) From 25d9ffae816bec572d15c630b0a7fe0114c28562 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 28 Aug 2024 14:08:09 -0600 Subject: [PATCH 424/617] feat(ec2-key-pair): add key type and create time properties --- .../{ec2-key-pairs.go => ec2-key-pair.go} | 38 +++++++++---------- 1 file changed, 18 insertions(+), 20 deletions(-) rename resources/{ec2-key-pairs.go => ec2-key-pair.go} (66%) diff --git a/resources/ec2-key-pairs.go b/resources/ec2-key-pair.go similarity index 66% rename from resources/ec2-key-pairs.go rename to resources/ec2-key-pair.go index cdf71565..3d46c0c2 100644 --- a/resources/ec2-key-pairs.go +++ b/resources/ec2-key-pair.go @@ -2,6 +2,7 @@ package resources import ( "context" + "time" "github.com/aws/aws-sdk-go/service/ec2" @@ -37,9 +38,11 @@ func (l *EC2KeyPairLister) List(_ context.Context, o interface{}) ([]resource.Re resources := make([]resource.Resource, 0) for _, out := range resp.KeyPairs { resources = append(resources, &EC2KeyPair{ - svc: svc, - name: *out.KeyName, - tags: out.Tags, + svc: svc, + Name: out.KeyName, + Tags: out.Tags, + KeyType: out.KeyType, + CreateTime: out.CreateTime, }) } @@ -47,17 +50,19 @@ func (l *EC2KeyPairLister) List(_ context.Context, o interface{}) ([]resource.Re } type EC2KeyPair struct { - svc *ec2.EC2 - name string - tags []*ec2.Tag + svc *ec2.EC2 + Name *string + Tags []*ec2.Tag + KeyType *string + CreateTime *time.Time } -func (e *EC2KeyPair) Remove(_ context.Context) error { +func (r *EC2KeyPair) Remove(_ context.Context) error { params := &ec2.DeleteKeyPairInput{ - KeyName: &e.name, + KeyName: r.Name, } - _, err := e.svc.DeleteKeyPair(params) + _, err := r.svc.DeleteKeyPair(params) if err != nil { return err } @@ -65,17 +70,10 @@ func (e *EC2KeyPair) Remove(_ context.Context) error { return nil } -func (e *EC2KeyPair) Properties() types.Properties { - properties := types.NewProperties() - properties.Set("Name", e.name) - - for _, tag := range e.tags { - properties.SetTag(tag.Key, tag.Value) - } - - return properties +func (r *EC2KeyPair) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) } -func (e *EC2KeyPair) String() string { - return e.name +func (r *EC2KeyPair) String() string { + return *r.Name } From 632c9ca6d3638ad60c42334e6c7b544e0e01790b Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 28 Aug 2024 16:14:08 -0600 Subject: [PATCH 425/617] fix(s3-bucket): only bypass governance if object lock enabled --- resources/s3-bucket.go | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/resources/s3-bucket.go b/resources/s3-bucket.go index 127786bc..b1d44570 100644 --- a/resources/s3-bucket.go +++ b/resources/s3-bucket.go @@ -223,12 +223,15 @@ func (r *S3Bucket) RemoveAllVersions(ctx context.Context) error { Bucket: &r.name, } + var setBypass bool var opts []func(input *s3.DeleteObjectsInput) - if r.settings.GetBool("BypassGovernanceRetention") { + if ptr.ToString(r.ObjectLock) == s3.ObjectLockEnabledEnabled && + r.settings.GetBool("BypassGovernanceRetention") { + setBypass = true opts = append(opts, bypassGovernanceRetention) } - iterator := newS3DeleteVersionListIterator(r.svc, params, r.settings.GetBool("BypassGovernanceRetention")) + iterator := newS3DeleteVersionListIterator(r.svc, params, setBypass) return awsmod.NewBatchDeleteWithClient(r.svc).Delete(ctx, iterator, opts...) } @@ -237,12 +240,15 @@ func (r *S3Bucket) RemoveAllObjects(ctx context.Context) error { Bucket: &r.name, } + var setBypass bool var opts []func(input *s3.DeleteObjectsInput) - if r.settings.GetBool("BypassGovernanceRetention") { + if ptr.ToString(r.ObjectLock) == s3.ObjectLockEnabledEnabled && + r.settings.GetBool("BypassGovernanceRetention") { + setBypass = true opts = append(opts, bypassGovernanceRetention) } - iterator := newS3ObjectDeleteListIterator(r.svc, params, r.settings.GetBool("BypassGovernanceRetention")) + iterator := newS3ObjectDeleteListIterator(r.svc, params, setBypass) return awsmod.NewBatchDeleteWithClient(r.svc).Delete(ctx, iterator, opts...) } From ab429a124175e6fce946b01b7014f58488cbf0f9 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 29 Aug 2024 10:45:00 -0600 Subject: [PATCH 426/617] feat(resource): add event bridge scheduler schedule resource --- resources/scheduler-schedule.go | 75 +++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 resources/scheduler-schedule.go diff --git a/resources/scheduler-schedule.go b/resources/scheduler-schedule.go new file mode 100644 index 00000000..0a467704 --- /dev/null +++ b/resources/scheduler-schedule.go @@ -0,0 +1,75 @@ +package resources + +import ( + "context" + "time" + + "github.com/aws/aws-sdk-go/service/scheduler" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +const SchedulerScheduleResource = "SchedulerSchedule" + +func init() { + registry.Register(®istry.Registration{ + Name: SchedulerScheduleResource, + Scope: nuke.Account, + Lister: &SchedulerScheduleLister{}, + }) +} + +type SchedulerScheduleLister struct{} + +func (l *SchedulerScheduleLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := scheduler.New(opts.Session) + var resources []resource.Resource + + res, err := svc.ListSchedules(&scheduler.ListSchedulesInput{}) + if err != nil { + return nil, err + } + + for _, p := range res.Schedules { + resources = append(resources, &SchedulerSchedule{ + svc: svc, + Name: p.Name, + State: p.State, + GroupName: p.GroupName, + CreationDate: p.CreationDate, + ModifiedDate: p.LastModificationDate, + }) + } + + return resources, nil +} + +type SchedulerSchedule struct { + svc *scheduler.Scheduler + Name *string + State *string + GroupName *string + CreationDate *time.Time + ModifiedDate *time.Time +} + +func (r *SchedulerSchedule) Remove(_ context.Context) error { + _, err := r.svc.DeleteSchedule(&scheduler.DeleteScheduleInput{ + Name: r.Name, + GroupName: r.GroupName, + }) + return err +} + +func (r *SchedulerSchedule) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + +func (r *SchedulerSchedule) String() string { + return *r.Name +} From b203abfae0c975359225ca869babda58341f756c Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 29 Aug 2024 10:53:01 -0600 Subject: [PATCH 427/617] chore(tool/create-resource): fix import paths --- tools/create-resource/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/create-resource/main.go b/tools/create-resource/main.go index 87cef9fa..574a9e7e 100644 --- a/tools/create-resource/main.go +++ b/tools/create-resource/main.go @@ -20,10 +20,10 @@ import ( "github.com/aws/aws-sdk-go/service/{{.Service}}" "github.com/ekristen/libnuke/pkg/resource" -"github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const {{.Combined}}Resource = "{{.Combined}}" From 3852d8a05a533ca9a865b00386e46d63726b5a84 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sat, 31 Aug 2024 14:00:41 -0600 Subject: [PATCH 428/617] feat(resourcegroups-group): add filter for managed, add properties --- ...oups-groups.go => resourcegroups-group.go} | 52 +++++++++++++++---- 1 file changed, 42 insertions(+), 10 deletions(-) rename resources/{resourcegroups-groups.go => resourcegroups-group.go} (50%) diff --git a/resources/resourcegroups-groups.go b/resources/resourcegroups-group.go similarity index 50% rename from resources/resourcegroups-groups.go rename to resources/resourcegroups-group.go index 106161aa..077f4884 100644 --- a/resources/resourcegroups-groups.go +++ b/resources/resourcegroups-group.go @@ -2,6 +2,10 @@ package resources import ( "context" + "fmt" + "github.com/ekristen/libnuke/pkg/types" + "github.com/gotidy/ptr" + "github.com/sirupsen/logrus" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/resourcegroups" @@ -38,10 +42,23 @@ func (l *ResourceGroupGroupLister) List(_ context.Context, o interface{}) ([]res } for _, group := range output.GroupIdentifiers { - resources = append(resources, &ResourceGroupGroup{ - svc: svc, - groupName: group.GroupName, + tags, err := svc.GetTags(&resourcegroups.GetTagsInput{ + Arn: group.GroupArn, }) + if err != nil { + logrus.WithError(err).Error("unable to get tags for resource group") + } + + newResource := &ResourceGroupGroup{ + svc: svc, + Name: group.GroupName, + } + + if tags != nil { + newResource.Tags = tags.Tags + } + + resources = append(resources, newResource) } if output.NextToken == nil { @@ -55,18 +72,33 @@ func (l *ResourceGroupGroupLister) List(_ context.Context, o interface{}) ([]res } type ResourceGroupGroup struct { - svc *resourcegroups.ResourceGroups - groupName *string + svc *resourcegroups.ResourceGroups + Name *string + Tags map[string]*string +} + +func (r *ResourceGroupGroup) Filter() error { + for k, v := range r.Tags { + if k == "EnableAWSServiceCatalogAppRegistry" && ptr.ToString(v) == "true" { + return fmt.Errorf("cannot delete AWS managed resource group") + } + } + + return nil +} + +func (r *ResourceGroupGroup) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) } -func (f *ResourceGroupGroup) Remove(_ context.Context) error { - _, err := f.svc.DeleteGroup(&resourcegroups.DeleteGroupInput{ - Group: f.groupName, +func (r *ResourceGroupGroup) Remove(_ context.Context) error { + _, err := r.svc.DeleteGroup(&resourcegroups.DeleteGroupInput{ + Group: r.Name, }) return err } -func (f *ResourceGroupGroup) String() string { - return *f.groupName +func (r *ResourceGroupGroup) String() string { + return *r.Name } From 0d3e253d1904a49977fb459621bf558bb0f9e27f Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sat, 31 Aug 2024 14:31:24 -0600 Subject: [PATCH 429/617] feat(resource): add appregistry application resource --- resources/appregistry-application.go | 88 ++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 resources/appregistry-application.go diff --git a/resources/appregistry-application.go b/resources/appregistry-application.go new file mode 100644 index 00000000..2c72228c --- /dev/null +++ b/resources/appregistry-application.go @@ -0,0 +1,88 @@ +package resources + +import ( + "context" + "github.com/sirupsen/logrus" + + "github.com/aws/aws-sdk-go/service/appregistry" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +const AppRegistryApplicationResource = "AppRegistryApplication" + +func init() { + registry.Register(®istry.Registration{ + Name: AppRegistryApplicationResource, + Scope: nuke.Account, + Lister: &AppRegistryApplicationLister{}, + }) +} + +type AppRegistryApplicationLister struct{} + +func (l *AppRegistryApplicationLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := appregistry.New(opts.Session) + var resources []resource.Resource + + res, err := svc.ListApplications(&appregistry.ListApplicationsInput{}) + if err != nil { + return nil, err + } + + for _, p := range res.Applications { + tags, err := svc.ListTagsForResource(&appregistry.ListTagsForResourceInput{ + ResourceArn: p.Arn, + }) + if err != nil { + logrus.WithError(err).Error("unable to get tags for AppRegistry Application") + } + + newResource := &AppRegistryApplication{ + svc: svc, + ID: p.Id, + } + + if tags != nil { + for key, val := range tags.Tags { + if key == "aws:servicecatalog:applicationName" { + newResource.Name = val + break + } + } + + newResource.Tags = tags.Tags + } + + resources = append(resources, newResource) + } + + return resources, nil +} + +type AppRegistryApplication struct { + svc *appregistry.AppRegistry + ID *string + Name *string + Tags map[string]*string +} + +func (r *AppRegistryApplication) Remove(_ context.Context) error { + _, err := r.svc.DeleteApplication(&appregistry.DeleteApplicationInput{ + Application: r.ID, + }) + return err +} + +func (r *AppRegistryApplication) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + +func (r *AppRegistryApplication) String() string { + return *r.Name +} From 8933e444afe11e9b1ab2bc6f1757c1278f8145f3 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sat, 31 Aug 2024 14:35:53 -0600 Subject: [PATCH 430/617] chore: fix nolint statements --- resources/appregistry-application.go | 1 + resources/resourcegroups-group.go | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/resources/appregistry-application.go b/resources/appregistry-application.go index 2c72228c..9a3ae246 100644 --- a/resources/appregistry-application.go +++ b/resources/appregistry-application.go @@ -2,6 +2,7 @@ package resources import ( "context" + "github.com/sirupsen/logrus" "github.com/aws/aws-sdk-go/service/appregistry" diff --git a/resources/resourcegroups-group.go b/resources/resourcegroups-group.go index 077f4884..2fdec358 100644 --- a/resources/resourcegroups-group.go +++ b/resources/resourcegroups-group.go @@ -3,15 +3,18 @@ package resources import ( "context" "fmt" - "github.com/ekristen/libnuke/pkg/types" + "github.com/gotidy/ptr" "github.com/sirupsen/logrus" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/resourcegroups" - "github.com/ekristen/aws-nuke/v3/pkg/nuke" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const ResourceGroupGroupResource = "ResourceGroupGroup" From 5c65554645229ab0798d1aaf39c76c51e8cc3a1d Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sat, 31 Aug 2024 16:56:20 -0600 Subject: [PATCH 431/617] fix(elasticache-cachecluster): standardization, querying tags, properties --- ...lusters.go => elasticache-cachecluster.go} | 103 +++++++++--------- ... => elasticache-cachecluster_mock_test.go} | 83 +++++++++----- 2 files changed, 107 insertions(+), 79 deletions(-) rename resources/{elasticache-memcacheclusters.go => elasticache-cachecluster.go} (54%) rename resources/{elasticache-memcacheclusters_mock_test.go => elasticache-cachecluster_mock_test.go} (68%) diff --git a/resources/elasticache-memcacheclusters.go b/resources/elasticache-cachecluster.go similarity index 54% rename from resources/elasticache-memcacheclusters.go rename to resources/elasticache-cachecluster.go index 3316c398..bf05486d 100644 --- a/resources/elasticache-memcacheclusters.go +++ b/resources/elasticache-cachecluster.go @@ -3,9 +3,9 @@ package resources import ( "context" + "github.com/gotidy/ptr" "github.com/sirupsen/logrus" - "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/elasticache" "github.com/aws/aws-sdk-go/service/elasticache/elasticacheiface" @@ -45,7 +45,7 @@ func (l *ElasticacheCacheClusterLister) List(_ context.Context, o interface{}) ( svc = elasticache.New(opts.Session) } - params := &elasticache.DescribeCacheClustersInput{MaxRecords: aws.Int64(100)} + params := &elasticache.DescribeCacheClustersInput{MaxRecords: ptr.Int64(100)} resp, err := svc.DescribeCacheClusters(params) if err != nil { return nil, err @@ -53,88 +53,87 @@ func (l *ElasticacheCacheClusterLister) List(_ context.Context, o interface{}) ( var resources []resource.Resource for _, cacheCluster := range resp.CacheClusters { - tags, err := svc.ListTagsForResource(&elasticache.ListTagsForResourceInput{ - ResourceName: cacheCluster.ARN, - }) + tags, err := l.getResourceTags(svc, cacheCluster.ARN) if err != nil { logrus.WithError(err).Error("unable to retrieve tags") - continue } resources = append(resources, &ElasticacheCacheCluster{ - svc: svc, - clusterID: cacheCluster.CacheClusterId, - status: cacheCluster.CacheClusterStatus, - Tags: tags.TagList, - serverless: false, + svc: svc, + ClusterID: cacheCluster.CacheClusterId, + Status: cacheCluster.CacheClusterStatus, + Tags: tags, }) } - serverlessParams := &elasticache.DescribeServerlessCachesInput{MaxResults: aws.Int64(100)} + serverlessParams := &elasticache.DescribeServerlessCachesInput{MaxResults: ptr.Int64(100)} serverlessResp, serverlessErr := svc.DescribeServerlessCaches(serverlessParams) if serverlessErr != nil { return nil, serverlessErr } for _, serverlessCache := range serverlessResp.ServerlessCaches { + var tags []*elasticache.Tag + + if ptr.ToString(serverlessCache.Status) == "available" || + ptr.ToString(serverlessCache.Status) == "modifying" { + tags, err = l.getResourceTags(svc, serverlessCache.ARN) + if err != nil { + logrus.WithError(err).Error("unable to retrieve tags") + } + } + resources = append(resources, &ElasticacheCacheCluster{ svc: svc, - clusterID: serverlessCache.ServerlessCacheName, - status: serverlessCache.Status, - serverless: true, + Serverless: true, + ClusterID: serverlessCache.ServerlessCacheName, + Status: serverlessCache.Status, + Tags: tags, }) } return resources, nil } +func (l *ElasticacheCacheClusterLister) getResourceTags(svc elasticacheiface.ElastiCacheAPI, arn *string) ([]*elasticache.Tag, error) { + tags, err := svc.ListTagsForResource(&elasticache.ListTagsForResourceInput{ + ResourceName: arn, + }) + if err != nil { + return []*elasticache.Tag{}, err + } + + return tags.TagList, nil +} + type ElasticacheCacheCluster struct { svc elasticacheiface.ElastiCacheAPI - clusterID *string - status *string + ClusterID *string + Status *string + Serverless bool Tags []*elasticache.Tag - serverless bool } -func (i *ElasticacheCacheCluster) Properties() types.Properties { - properties := types.NewProperties() - - properties.Set("ClusterID", i.clusterID) - properties.Set("Status", i.status) +func (r *ElasticacheCacheCluster) Remove(_ context.Context) error { + if r.Serverless { + _, err := r.svc.DeleteServerlessCache(&elasticache.DeleteServerlessCacheInput{ + ServerlessCacheName: r.ClusterID, + }) - if i.Tags != nil { - for _, tag := range i.Tags { - properties.SetTag(tag.Key, tag.Value) - } + return err } - return properties -} - -func (i *ElasticacheCacheCluster) Remove(_ context.Context) error { - if !i.serverless { - params := &elasticache.DeleteCacheClusterInput{ - CacheClusterId: i.clusterID, - } - - _, err := i.svc.DeleteCacheCluster(params) - if err != nil { - return err - } - } else { - params := &elasticache.DeleteServerlessCacheInput{ - ServerlessCacheName: i.clusterID, - } + _, err := r.svc.DeleteCacheCluster(&elasticache.DeleteCacheClusterInput{ + CacheClusterId: r.ClusterID, + }) - _, serverlessErr := i.svc.DeleteServerlessCache(params) - if serverlessErr != nil { - return serverlessErr - } - } + return err +} - return nil +func (r *ElasticacheCacheCluster) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) } -func (i *ElasticacheCacheCluster) String() string { - return *i.clusterID +func (r *ElasticacheCacheCluster) String() string { + return *r.ClusterID } diff --git a/resources/elasticache-memcacheclusters_mock_test.go b/resources/elasticache-cachecluster_mock_test.go similarity index 68% rename from resources/elasticache-memcacheclusters_mock_test.go rename to resources/elasticache-cachecluster_mock_test.go index de6fd8f0..17142914 100644 --- a/resources/elasticache-memcacheclusters_mock_test.go +++ b/resources/elasticache-cachecluster_mock_test.go @@ -6,10 +6,10 @@ import ( "testing" "github.com/golang/mock/gomock" + "github.com/gotidy/ptr" "github.com/sirupsen/logrus" "github.com/stretchr/testify/assert" - "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/service/elasticache" @@ -26,19 +26,39 @@ func Test_Mock_ElastiCache_CacheCluster_Remove(t *testing.T) { mockElastiCache := mock_elasticacheiface.NewMockElastiCacheAPI(ctrl) cacheCluster := ElasticacheCacheCluster{ - svc: mockElastiCache, - clusterID: aws.String("foobar"), - serverless: false, + svc: mockElastiCache, + ClusterID: ptr.String("foobar"), } mockElastiCache.EXPECT().DeleteCacheCluster(&elasticache.DeleteCacheClusterInput{ - CacheClusterId: aws.String("foobar"), + CacheClusterId: ptr.String("foobar"), }).Return(&elasticache.DeleteCacheClusterOutput{}, nil) err := cacheCluster.Remove(context.TODO()) a.Nil(err) } +func Test_Mock_ElastiCache_CacheCluster_Remove_Serverless(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockElastiCache := mock_elasticacheiface.NewMockElastiCacheAPI(ctrl) + + cacheCluster := ElasticacheCacheCluster{ + svc: mockElastiCache, + ClusterID: ptr.String("foobar"), + Serverless: true, + } + + mockElastiCache.EXPECT().DeleteServerlessCache(&elasticache.DeleteServerlessCacheInput{ + ServerlessCacheName: ptr.String("foobar"), + }).Return(&elasticache.DeleteServerlessCacheOutput{}, nil) + + err := cacheCluster.Remove(context.TODO()) + a.Nil(err) +} + func Test_Mock_ElastiCache_CacheCluster_List_NoTags(t *testing.T) { a := assert.New(t) ctrl := gomock.NewController(t) @@ -53,24 +73,28 @@ func Test_Mock_ElastiCache_CacheCluster_List_NoTags(t *testing.T) { mockElastiCache.EXPECT().DescribeCacheClusters(gomock.Any()).Return(&elasticache.DescribeCacheClustersOutput{ CacheClusters: []*elasticache.CacheCluster{ { - ARN: aws.String("arn:aws:elasticache:us-west-2:123456789012:cluster:foobar"), - CacheClusterId: aws.String("foobar"), - CacheClusterStatus: aws.String("available"), + ARN: ptr.String("arn:aws:elasticache:us-west-2:123456789012:cluster:foobar"), + CacheClusterId: ptr.String("foobar"), + CacheClusterStatus: ptr.String("available"), }, }, }, nil) mockElastiCache.EXPECT().DescribeServerlessCaches(gomock.Any()).Return(&elasticache.DescribeServerlessCachesOutput{ ServerlessCaches: []*elasticache.ServerlessCache{ { - ARN: aws.String("arn:aws:elasticache:us-west-2:123456789012:serverless:foobar"), - ServerlessCacheName: aws.String("serverless"), - Status: aws.String("available"), + ARN: ptr.String("arn:aws:elasticache:us-west-2:123456789012:serverless:foobar"), + ServerlessCacheName: ptr.String("serverless"), + Status: ptr.String("available"), }, }, }, nil) mockElastiCache.EXPECT().ListTagsForResource(&elasticache.ListTagsForResourceInput{ - ResourceName: aws.String("arn:aws:elasticache:us-west-2:123456789012:cluster:foobar"), + ResourceName: ptr.String("arn:aws:elasticache:us-west-2:123456789012:cluster:foobar"), + }).Return(&elasticache.TagListMessage{}, nil) + + mockElastiCache.EXPECT().ListTagsForResource(&elasticache.ListTagsForResourceInput{ + ResourceName: ptr.String("arn:aws:elasticache:us-west-2:123456789012:serverless:foobar"), }).Return(&elasticache.TagListMessage{}, nil) resources, err := cacheClusterLister.List(context.TODO(), &nuke.ListerOpts{}) @@ -97,31 +121,31 @@ func Test_Mock_ElastiCache_CacheCluster_List_WithTags(t *testing.T) { mockElastiCache.EXPECT().DescribeCacheClusters(gomock.Any()).Return(&elasticache.DescribeCacheClustersOutput{ CacheClusters: []*elasticache.CacheCluster{ { - ARN: aws.String("arn:aws:elasticache:us-west-2:123456789012:cluster:foobar"), - CacheClusterId: aws.String("foobar"), + ARN: ptr.String("arn:aws:elasticache:us-west-2:123456789012:cluster:foobar"), + CacheClusterId: ptr.String("foobar"), }, }, }, nil) mockElastiCache.EXPECT().DescribeServerlessCaches(gomock.Any()).Return(&elasticache.DescribeServerlessCachesOutput{ ServerlessCaches: []*elasticache.ServerlessCache{ { - ARN: aws.String("arn:aws:elasticache:us-west-2:123456789012:serverless:foobar"), - ServerlessCacheName: aws.String("serverless"), + ARN: ptr.String("arn:aws:elasticache:us-west-2:123456789012:serverless:foobar"), + ServerlessCacheName: ptr.String("serverless"), }, }, }, nil) mockElastiCache.EXPECT().ListTagsForResource(&elasticache.ListTagsForResourceInput{ - ResourceName: aws.String("arn:aws:elasticache:us-west-2:123456789012:cluster:foobar"), + ResourceName: ptr.String("arn:aws:elasticache:us-west-2:123456789012:cluster:foobar"), }).Return(&elasticache.TagListMessage{ TagList: []*elasticache.Tag{ { - Key: aws.String("Name"), - Value: aws.String("foobar"), + Key: ptr.String("Name"), + Value: ptr.String("foobar"), }, { - Key: aws.String("aws-nuke"), - Value: aws.String("test"), + Key: ptr.String("aws-nuke"), + Value: ptr.String("test"), }, }, }, nil) @@ -168,27 +192,32 @@ func Test_Mock_ElastiCache_CacheCluster_List_TagsInvalidARN(t *testing.T) { mockElastiCache.EXPECT().DescribeCacheClusters(gomock.Any()).Return(&elasticache.DescribeCacheClustersOutput{ CacheClusters: []*elasticache.CacheCluster{ { - ARN: aws.String("foobar:invalid:arn"), - CacheClusterId: aws.String("foobar"), + ARN: ptr.String("foobar:invalid:arn"), + CacheClusterId: ptr.String("foobar"), }, }, }, nil) mockElastiCache.EXPECT().DescribeServerlessCaches(gomock.Any()).Return(&elasticache.DescribeServerlessCachesOutput{ ServerlessCaches: []*elasticache.ServerlessCache{ { - ARN: aws.String("arn:aws:elasticache:us-west-2:123456789012:serverless:foobar"), - ServerlessCacheName: aws.String("serverless"), + ARN: ptr.String("foobar:invalid:arn"), + ServerlessCacheName: ptr.String("serverless"), + Status: ptr.String("available"), }, }, }, nil) mockElastiCache.EXPECT().ListTagsForResource(&elasticache.ListTagsForResourceInput{ - ResourceName: aws.String("foobar:invalid:arn"), + ResourceName: ptr.String("foobar:invalid:arn"), + }).Return(nil, awserr.New(elasticache.ErrCodeInvalidARNFault, elasticache.ErrCodeInvalidARNFault, nil)) + + mockElastiCache.EXPECT().ListTagsForResource(&elasticache.ListTagsForResourceInput{ + ResourceName: ptr.String("foobar:invalid:arn"), }).Return(nil, awserr.New(elasticache.ErrCodeInvalidARNFault, elasticache.ErrCodeInvalidARNFault, nil)) resources, err := cacheClusterLister.List(context.TODO(), &nuke.ListerOpts{}) a.Nil(err) - a.Len(resources, 1) + a.Len(resources, 2) a.True(called, "expected global hook called and log message to be found") } From 8656c4eb4f6ec249c041af8da49bdd3ef4451d39 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sat, 31 Aug 2024 17:04:31 -0600 Subject: [PATCH 432/617] fix(scheduler-schedule): add missing client token to request --- resources/scheduler-schedule.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/resources/scheduler-schedule.go b/resources/scheduler-schedule.go index 0a467704..34ef2040 100644 --- a/resources/scheduler-schedule.go +++ b/resources/scheduler-schedule.go @@ -4,6 +4,9 @@ import ( "context" "time" + "github.com/google/uuid" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/service/scheduler" "github.com/ekristen/libnuke/pkg/registry" @@ -60,8 +63,9 @@ type SchedulerSchedule struct { func (r *SchedulerSchedule) Remove(_ context.Context) error { _, err := r.svc.DeleteSchedule(&scheduler.DeleteScheduleInput{ - Name: r.Name, - GroupName: r.GroupName, + Name: r.Name, + GroupName: r.GroupName, + ClientToken: ptr.String(uuid.Must(uuid.NewUUID()).String()), }) return err } From de8c87eb8fd802d5b2d7d0c1fbd973226152ca1b Mon Sep 17 00:00:00 2001 From: Sherd White Date: Wed, 7 Aug 2024 10:07:18 -0500 Subject: [PATCH 433/617] feat(resource): adding support for cloudwatch insight rules and anomaly detectors This PR adds support for AWS CloudWatch insight rules and anomaly detectors. --- resources/cloudwatch-anomaly-detectors.go | 66 +++++++++++++++++++++++ resources/cloudwatch-insight-rules.go | 66 +++++++++++++++++++++++ 2 files changed, 132 insertions(+) create mode 100644 resources/cloudwatch-anomaly-detectors.go create mode 100644 resources/cloudwatch-insight-rules.go diff --git a/resources/cloudwatch-anomaly-detectors.go b/resources/cloudwatch-anomaly-detectors.go new file mode 100644 index 00000000..d39543df --- /dev/null +++ b/resources/cloudwatch-anomaly-detectors.go @@ -0,0 +1,66 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/cloudwatch" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type CloudWatchAnomalyDetector struct { + svc *cloudwatch.CloudWatch + detector *cloudwatch.AnomalyDetector +} + +func init() { + register("CloudWatchAnomalyDetector", ListCloudWatchAnomalyDetectors) +} + +func ListCloudWatchAnomalyDetectors(sess *session.Session) ([]Resource, error) { + svc := cloudwatch.New(sess) + resources := []Resource{} + + params := &cloudwatch.DescribeAnomalyDetectorsInput{ + MaxResults: aws.Int64(25), + } + + for { + output, err := svc.DescribeAnomalyDetectors(params) + if err != nil { + return nil, err + } + + for _, detector := range output.AnomalyDetectors { + resources = append(resources, &CloudWatchAnomalyDetector{ + svc: svc, + detector: detector, + }) + } + + if output.NextToken == nil { + break + } + + params.NextToken = output.NextToken + } + + return resources, nil +} + +func (f *CloudWatchAnomalyDetector) Remove() error { + _, err := f.svc.DeleteAnomalyDetector(&cloudwatch.DeleteAnomalyDetectorInput{ + SingleMetricAnomalyDetector: f.detector.SingleMetricAnomalyDetector, + }) + + return err +} + +func (f *CloudWatchAnomalyDetector) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("MetricName", f.detector.SingleMetricAnomalyDetector.MetricName) + return properties +} + +func (f *CloudWatchAnomalyDetector) String() string { + return *f.detector.SingleMetricAnomalyDetector.MetricName +} diff --git a/resources/cloudwatch-insight-rules.go b/resources/cloudwatch-insight-rules.go new file mode 100644 index 00000000..3b1519b9 --- /dev/null +++ b/resources/cloudwatch-insight-rules.go @@ -0,0 +1,66 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/cloudwatch" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type CloudWatchInsightRule struct { + svc *cloudwatch.CloudWatch + name *string +} + +func init() { + register("CloudWatchInsightRule", ListCloudWatchInsightRules) +} + +func ListCloudWatchInsightRules(sess *session.Session) ([]Resource, error) { + svc := cloudwatch.New(sess) + resources := []Resource{} + + params := &cloudwatch.DescribeInsightRulesInput{ + MaxResults: aws.Int64(25), + } + + for { + output, err := svc.DescribeInsightRules(params) + if err != nil { + return nil, err + } + + for _, rules := range output.InsightRules { + resources = append(resources, &CloudWatchInsightRule{ + svc: svc, + name: rules.Name, + }) + } + + if output.NextToken == nil { + break + } + + params.NextToken = output.NextToken + } + + return resources, nil +} + +func (f *CloudWatchInsightRule) Remove() error { + _, err := f.svc.DeleteInsightRules(&cloudwatch.DeleteInsightRulesInput{ + RuleNames: []*string{f.name}, + }) + + return err +} + +func (f *CloudWatchInsightRule) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("Name", f.name) + return properties +} + +func (f *CloudWatchInsightRule) String() string { + return *f.name +} From 036d6ad565a49b829734d541dd3e024b3be1dc6e Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sat, 31 Aug 2024 17:22:43 -0600 Subject: [PATCH 434/617] refactor(cloudwatch-anomaly-detector): rearrange struct location, rename pointers to standard --- resources/cloudwatch-anomaly-detector.go | 83 +++++++++++++++++++++++ resources/cloudwatch-anomaly-detectors.go | 66 ------------------ 2 files changed, 83 insertions(+), 66 deletions(-) create mode 100644 resources/cloudwatch-anomaly-detector.go delete mode 100644 resources/cloudwatch-anomaly-detectors.go diff --git a/resources/cloudwatch-anomaly-detector.go b/resources/cloudwatch-anomaly-detector.go new file mode 100644 index 00000000..10ce57dd --- /dev/null +++ b/resources/cloudwatch-anomaly-detector.go @@ -0,0 +1,83 @@ +package resources + +import ( + "context" + + "github.com/aws/aws-sdk-go/aws" + + "github.com/aws/aws-sdk-go/service/cloudwatch" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +const CloudWatchAnomalyDetectorResource = "CloudWatchAnomalyDetector" + +func init() { + registry.Register(®istry.Registration{ + Name: CloudWatchAnomalyDetectorResource, + Scope: nuke.Account, + Lister: &CloudWatchAnomalyDetectorLister{}, + }) +} + +type CloudWatchAnomalyDetectorLister struct{} + +func (l *CloudWatchAnomalyDetectorLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := cloudwatch.New(opts.Session) + resources := make([]resource.Resource, 0) + + params := &cloudwatch.DescribeAnomalyDetectorsInput{ + MaxResults: aws.Int64(25), + } + + for { + output, err := svc.DescribeAnomalyDetectors(params) + if err != nil { + return nil, err + } + + for _, detector := range output.AnomalyDetectors { + resources = append(resources, &CloudWatchAnomalyDetector{ + svc: svc, + detector: detector, + }) + } + + if output.NextToken == nil { + break + } + + params.NextToken = output.NextToken + } + + return resources, nil +} + +type CloudWatchAnomalyDetector struct { + svc *cloudwatch.CloudWatch + detector *cloudwatch.AnomalyDetector +} + +func (r *CloudWatchAnomalyDetector) Remove(_ context.Context) error { + _, err := r.svc.DeleteAnomalyDetector(&cloudwatch.DeleteAnomalyDetectorInput{ + SingleMetricAnomalyDetector: r.detector.SingleMetricAnomalyDetector, + }) + + return err +} + +func (r *CloudWatchAnomalyDetector) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("MetricName", r.detector.SingleMetricAnomalyDetector.MetricName) + return properties +} + +func (r *CloudWatchAnomalyDetector) String() string { + return *r.detector.SingleMetricAnomalyDetector.MetricName +} diff --git a/resources/cloudwatch-anomaly-detectors.go b/resources/cloudwatch-anomaly-detectors.go deleted file mode 100644 index d39543df..00000000 --- a/resources/cloudwatch-anomaly-detectors.go +++ /dev/null @@ -1,66 +0,0 @@ -package resources - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/cloudwatch" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" -) - -type CloudWatchAnomalyDetector struct { - svc *cloudwatch.CloudWatch - detector *cloudwatch.AnomalyDetector -} - -func init() { - register("CloudWatchAnomalyDetector", ListCloudWatchAnomalyDetectors) -} - -func ListCloudWatchAnomalyDetectors(sess *session.Session) ([]Resource, error) { - svc := cloudwatch.New(sess) - resources := []Resource{} - - params := &cloudwatch.DescribeAnomalyDetectorsInput{ - MaxResults: aws.Int64(25), - } - - for { - output, err := svc.DescribeAnomalyDetectors(params) - if err != nil { - return nil, err - } - - for _, detector := range output.AnomalyDetectors { - resources = append(resources, &CloudWatchAnomalyDetector{ - svc: svc, - detector: detector, - }) - } - - if output.NextToken == nil { - break - } - - params.NextToken = output.NextToken - } - - return resources, nil -} - -func (f *CloudWatchAnomalyDetector) Remove() error { - _, err := f.svc.DeleteAnomalyDetector(&cloudwatch.DeleteAnomalyDetectorInput{ - SingleMetricAnomalyDetector: f.detector.SingleMetricAnomalyDetector, - }) - - return err -} - -func (f *CloudWatchAnomalyDetector) Properties() types.Properties { - properties := types.NewProperties() - properties.Set("MetricName", f.detector.SingleMetricAnomalyDetector.MetricName) - return properties -} - -func (f *CloudWatchAnomalyDetector) String() string { - return *f.detector.SingleMetricAnomalyDetector.MetricName -} From 6a68144fb5b97d4b2de01588c461be73ad423b94 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sat, 31 Aug 2024 17:22:53 -0600 Subject: [PATCH 435/617] refactor(cloudwatch-insight-rule): rearrange struct location, rename pointers to standard --- ...ht-rules.go => cloudwatch-insight-rule.go} | 39 +++++++++++++------ 1 file changed, 28 insertions(+), 11 deletions(-) rename resources/{cloudwatch-insight-rules.go => cloudwatch-insight-rule.go} (57%) diff --git a/resources/cloudwatch-insight-rules.go b/resources/cloudwatch-insight-rule.go similarity index 57% rename from resources/cloudwatch-insight-rules.go rename to resources/cloudwatch-insight-rule.go index 3b1519b9..b2662b10 100644 --- a/resources/cloudwatch-insight-rules.go +++ b/resources/cloudwatch-insight-rule.go @@ -1,24 +1,36 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/cloudwatch" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) -type CloudWatchInsightRule struct { - svc *cloudwatch.CloudWatch - name *string -} +const CloudWatchInsightRuleResource = "CloudWatchInsightRule" func init() { - register("CloudWatchInsightRule", ListCloudWatchInsightRules) + registry.Register(®istry.Registration{ + Name: CloudWatchInsightRuleResource, + Scope: nuke.Account, + Lister: &CloudWatchInsightRuleLister{}, + }) } -func ListCloudWatchInsightRules(sess *session.Session) ([]Resource, error) { - svc := cloudwatch.New(sess) - resources := []Resource{} +type CloudWatchInsightRuleLister struct{} + +func (l *CloudWatchInsightRuleLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := cloudwatch.New(opts.Session) + resources := make([]resource.Resource, 0) params := &cloudwatch.DescribeInsightRulesInput{ MaxResults: aws.Int64(25), @@ -47,7 +59,12 @@ func ListCloudWatchInsightRules(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *CloudWatchInsightRule) Remove() error { +type CloudWatchInsightRule struct { + svc *cloudwatch.CloudWatch + name *string +} + +func (f *CloudWatchInsightRule) Remove(_ context.Context) error { _, err := f.svc.DeleteInsightRules(&cloudwatch.DeleteInsightRulesInput{ RuleNames: []*string{f.name}, }) From c1268f8ea6b1398a425aea79b99d01af31209be0 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sat, 31 Aug 2024 17:27:04 -0600 Subject: [PATCH 436/617] refactor(cloudwatch-anomaly-detector): adjust properties --- resources/cloudwatch-anomaly-detector.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/resources/cloudwatch-anomaly-detector.go b/resources/cloudwatch-anomaly-detector.go index 10ce57dd..491736c7 100644 --- a/resources/cloudwatch-anomaly-detector.go +++ b/resources/cloudwatch-anomaly-detector.go @@ -44,8 +44,9 @@ func (l *CloudWatchAnomalyDetectorLister) List(_ context.Context, o interface{}) for _, detector := range output.AnomalyDetectors { resources = append(resources, &CloudWatchAnomalyDetector{ - svc: svc, - detector: detector, + svc: svc, + detector: detector.SingleMetricAnomalyDetector, + MetricName: detector.SingleMetricAnomalyDetector.MetricName, }) } @@ -60,24 +61,23 @@ func (l *CloudWatchAnomalyDetectorLister) List(_ context.Context, o interface{}) } type CloudWatchAnomalyDetector struct { - svc *cloudwatch.CloudWatch - detector *cloudwatch.AnomalyDetector + svc *cloudwatch.CloudWatch + detector *cloudwatch.SingleMetricAnomalyDetector + MetricName *string } func (r *CloudWatchAnomalyDetector) Remove(_ context.Context) error { _, err := r.svc.DeleteAnomalyDetector(&cloudwatch.DeleteAnomalyDetectorInput{ - SingleMetricAnomalyDetector: r.detector.SingleMetricAnomalyDetector, + SingleMetricAnomalyDetector: r.detector, }) return err } func (r *CloudWatchAnomalyDetector) Properties() types.Properties { - properties := types.NewProperties() - properties.Set("MetricName", r.detector.SingleMetricAnomalyDetector.MetricName) - return properties + return types.NewPropertiesFromStruct(r) } func (r *CloudWatchAnomalyDetector) String() string { - return *r.detector.SingleMetricAnomalyDetector.MetricName + return *r.MetricName } From 6a9f1576192b95eeb48dee6e1964f836cda03c4e Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sat, 31 Aug 2024 17:29:03 -0600 Subject: [PATCH 437/617] refactor(cloudwatch-insight-rule): rename pointer, switch to new props from struct --- resources/cloudwatch-insight-rule.go | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/resources/cloudwatch-insight-rule.go b/resources/cloudwatch-insight-rule.go index b2662b10..196fa65c 100644 --- a/resources/cloudwatch-insight-rule.go +++ b/resources/cloudwatch-insight-rule.go @@ -44,8 +44,9 @@ func (l *CloudWatchInsightRuleLister) List(_ context.Context, o interface{}) ([] for _, rules := range output.InsightRules { resources = append(resources, &CloudWatchInsightRule{ - svc: svc, - name: rules.Name, + svc: svc, + Name: rules.Name, + State: rules.State, }) } @@ -60,24 +61,23 @@ func (l *CloudWatchInsightRuleLister) List(_ context.Context, o interface{}) ([] } type CloudWatchInsightRule struct { - svc *cloudwatch.CloudWatch - name *string + svc *cloudwatch.CloudWatch + Name *string + State *string } -func (f *CloudWatchInsightRule) Remove(_ context.Context) error { - _, err := f.svc.DeleteInsightRules(&cloudwatch.DeleteInsightRulesInput{ - RuleNames: []*string{f.name}, +func (r *CloudWatchInsightRule) Remove(_ context.Context) error { + _, err := r.svc.DeleteInsightRules(&cloudwatch.DeleteInsightRulesInput{ + RuleNames: []*string{r.Name}, }) return err } -func (f *CloudWatchInsightRule) Properties() types.Properties { - properties := types.NewProperties() - properties.Set("Name", f.name) - return properties +func (r *CloudWatchInsightRule) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) } -func (f *CloudWatchInsightRule) String() string { - return *f.name +func (r *CloudWatchInsightRule) String() string { + return *r.Name } From bbf9db87dd3b9b87a7b19528748cb209a8346a93 Mon Sep 17 00:00:00 2001 From: Sherd White Date: Wed, 7 Aug 2024 10:14:25 -0500 Subject: [PATCH 438/617] feat(resource): adding athena data catalogs and prepared statements This PR adds support for AWS athena data catalogs and prepared statements. --- resources/athena-data-catalogs.go | 77 ++++++++++++++++++++++++ resources/athena-prepared-statements.go | 80 +++++++++++++++++++++++++ 2 files changed, 157 insertions(+) create mode 100644 resources/athena-data-catalogs.go create mode 100644 resources/athena-prepared-statements.go diff --git a/resources/athena-data-catalogs.go b/resources/athena-data-catalogs.go new file mode 100644 index 00000000..c59e833e --- /dev/null +++ b/resources/athena-data-catalogs.go @@ -0,0 +1,77 @@ +package resources + +import ( + "fmt" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/athena" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type AthenaDataCatalog struct { + svc *athena.Athena + name *string +} + +func init() { + register("AthenaDataCatalog", ListAthenaDataCatalogs) +} + +func ListAthenaDataCatalogs(sess *session.Session) ([]Resource, error) { + svc := athena.New(sess) + resources := []Resource{} + + params := &athena.ListDataCatalogsInput{ + MaxResults: aws.Int64(50), + } + + for { + output, err := svc.ListDataCatalogs(params) + if err != nil { + return nil, err + } + + for _, catalog := range output.DataCatalogsSummary { + resources = append(resources, &AthenaDataCatalog{ + svc: svc, + name: catalog.CatalogName, + }) + } + + if output.NextToken == nil { + break + } + + params.NextToken = output.NextToken + } + + return resources, nil +} + +func (f *AthenaDataCatalog) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("Name", f.name) + + return properties +} + +func (f *AthenaDataCatalog) Remove() error { + + _, err := f.svc.DeleteDataCatalog(&athena.DeleteDataCatalogInput{ + Name: f.name, + }) + + return err +} + +func (f *AthenaDataCatalog) Filter() error { + if *f.name == "AwsDataCatalog" { + return fmt.Errorf("cannot delete default data source") + } + return nil +} + +func (f *AthenaDataCatalog) String() string { + return *f.name +} diff --git a/resources/athena-prepared-statements.go b/resources/athena-prepared-statements.go new file mode 100644 index 00000000..0f0593d7 --- /dev/null +++ b/resources/athena-prepared-statements.go @@ -0,0 +1,80 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/athena" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type AthenaPreparedStatement struct { + svc *athena.Athena + workGroup *string + name *string +} + +func init() { + register("AthenaPreparedStatement", ListAthenaPreparedStatements) +} + +func ListAthenaPreparedStatements(sess *session.Session) ([]Resource, error) { + svc := athena.New(sess) + resources := []Resource{} + + workgroups, err := svc.ListWorkGroups(&athena.ListWorkGroupsInput{}) + if err != nil { + return nil, err + } + + for _, workgroup := range workgroups.WorkGroups { + params := &athena.ListPreparedStatementsInput{ + WorkGroup: workgroup.Name, + MaxResults: aws.Int64(50), + } + + for { + output, err := svc.ListPreparedStatements(params) + if err != nil { + return nil, err + } + + for _, statement := range output.PreparedStatements { + resources = append(resources, &AthenaPreparedStatement{ + svc: svc, + workGroup: workgroup.Name, + name: statement.StatementName, + }) + } + + if output.NextToken == nil { + break + } + + params.NextToken = output.NextToken + } + } + + return resources, nil +} + +func (f *AthenaPreparedStatement) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("StatementName", f.name) + properties.Set("WorkGroup", f.workGroup) + + return properties +} + +func (f *AthenaPreparedStatement) Remove() error { + + _, err := f.svc.DeletePreparedStatement(&athena.DeletePreparedStatementInput{ + StatementName: f.name, + WorkGroup: f.workGroup, + }) + + return err +} + +func (f *AthenaPreparedStatement) String() string { + return *f.name +} From c98ab72f8da6b3a7d67673f98e6eed4a35b91e89 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sat, 31 Aug 2024 17:13:47 -0600 Subject: [PATCH 439/617] refactor(athena-data-catalog): standardize to libnuke format --- resources/athena-data-catalog.go | 89 +++++++++++++++++++++++++++++++ resources/athena-data-catalogs.go | 77 -------------------------- 2 files changed, 89 insertions(+), 77 deletions(-) create mode 100644 resources/athena-data-catalog.go delete mode 100644 resources/athena-data-catalogs.go diff --git a/resources/athena-data-catalog.go b/resources/athena-data-catalog.go new file mode 100644 index 00000000..f361f6e8 --- /dev/null +++ b/resources/athena-data-catalog.go @@ -0,0 +1,89 @@ +package resources + +import ( + "context" + "fmt" + + "github.com/aws/aws-sdk-go/aws" + + "github.com/aws/aws-sdk-go/service/athena" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +const AthenaDataCatalogResource = "AthenaDataCatalog" + +func init() { + registry.Register(®istry.Registration{ + Name: AthenaDataCatalogResource, + Scope: nuke.Account, + Lister: &AthenaDataCatalogLister{}, + }) +} + +type AthenaDataCatalogLister struct{} + +func (l *AthenaDataCatalogLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := athena.New(opts.Session) + resources := make([]resource.Resource, 0) + + params := &athena.ListDataCatalogsInput{ + MaxResults: aws.Int64(50), + } + + for { + output, err := svc.ListDataCatalogs(params) + if err != nil { + return nil, err + } + + for _, catalog := range output.DataCatalogsSummary { + resources = append(resources, &AthenaDataCatalog{ + svc: svc, + Name: catalog.CatalogName, + }) + } + + if output.NextToken == nil { + break + } + + params.NextToken = output.NextToken + } + + return resources, nil +} + +type AthenaDataCatalog struct { + svc *athena.Athena + Name *string +} + +func (r *AthenaDataCatalog) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + +func (r *AthenaDataCatalog) Remove(_ context.Context) error { + _, err := r.svc.DeleteDataCatalog(&athena.DeleteDataCatalogInput{ + Name: r.Name, + }) + + return err +} + +func (r *AthenaDataCatalog) Filter() error { + if *r.Name == "AwsDataCatalog" { + return fmt.Errorf("cannot delete default data source") + } + return nil +} + +func (r *AthenaDataCatalog) String() string { + return *r.Name +} diff --git a/resources/athena-data-catalogs.go b/resources/athena-data-catalogs.go deleted file mode 100644 index c59e833e..00000000 --- a/resources/athena-data-catalogs.go +++ /dev/null @@ -1,77 +0,0 @@ -package resources - -import ( - "fmt" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/athena" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" -) - -type AthenaDataCatalog struct { - svc *athena.Athena - name *string -} - -func init() { - register("AthenaDataCatalog", ListAthenaDataCatalogs) -} - -func ListAthenaDataCatalogs(sess *session.Session) ([]Resource, error) { - svc := athena.New(sess) - resources := []Resource{} - - params := &athena.ListDataCatalogsInput{ - MaxResults: aws.Int64(50), - } - - for { - output, err := svc.ListDataCatalogs(params) - if err != nil { - return nil, err - } - - for _, catalog := range output.DataCatalogsSummary { - resources = append(resources, &AthenaDataCatalog{ - svc: svc, - name: catalog.CatalogName, - }) - } - - if output.NextToken == nil { - break - } - - params.NextToken = output.NextToken - } - - return resources, nil -} - -func (f *AthenaDataCatalog) Properties() types.Properties { - properties := types.NewProperties() - properties.Set("Name", f.name) - - return properties -} - -func (f *AthenaDataCatalog) Remove() error { - - _, err := f.svc.DeleteDataCatalog(&athena.DeleteDataCatalogInput{ - Name: f.name, - }) - - return err -} - -func (f *AthenaDataCatalog) Filter() error { - if *f.name == "AwsDataCatalog" { - return fmt.Errorf("cannot delete default data source") - } - return nil -} - -func (f *AthenaDataCatalog) String() string { - return *f.name -} From 76fd95b30cd2cffc19e6c153d906dbc86504bcfd Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sat, 31 Aug 2024 17:13:58 -0600 Subject: [PATCH 440/617] refactor(athena-prepared-statement): standardize to libnuke format --- resources/athena-prepared-statement.go | 92 +++++++++++++++++++++++++ resources/athena-prepared-statements.go | 80 --------------------- 2 files changed, 92 insertions(+), 80 deletions(-) create mode 100644 resources/athena-prepared-statement.go delete mode 100644 resources/athena-prepared-statements.go diff --git a/resources/athena-prepared-statement.go b/resources/athena-prepared-statement.go new file mode 100644 index 00000000..4e591f57 --- /dev/null +++ b/resources/athena-prepared-statement.go @@ -0,0 +1,92 @@ +package resources + +import ( + "context" + + "github.com/aws/aws-sdk-go/aws" + + "github.com/aws/aws-sdk-go/service/athena" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +const AthenaPreparedStatementResource = "AthenaPreparedStatement" + +func init() { + registry.Register(®istry.Registration{ + Name: AthenaPreparedStatementResource, + Scope: nuke.Account, + Lister: &AthenaPreparedStatementLister{}, + }) +} + +type AthenaPreparedStatementLister struct{} + +func (l *AthenaPreparedStatementLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := athena.New(opts.Session) + resources := make([]resource.Resource, 0) + + workgroups, err := svc.ListWorkGroups(&athena.ListWorkGroupsInput{}) + if err != nil { + return nil, err + } + + for _, workgroup := range workgroups.WorkGroups { + params := &athena.ListPreparedStatementsInput{ + WorkGroup: workgroup.Name, + MaxResults: aws.Int64(50), + } + + for { + output, err := svc.ListPreparedStatements(params) + if err != nil { + return nil, err + } + + for _, statement := range output.PreparedStatements { + resources = append(resources, &AthenaPreparedStatement{ + svc: svc, + Name: statement.StatementName, + WorkGroup: workgroup.Name, + }) + } + + if output.NextToken == nil { + break + } + + params.NextToken = output.NextToken + } + } + + return resources, nil +} + +type AthenaPreparedStatement struct { + svc *athena.Athena + Name *string + WorkGroup *string +} + +func (r *AthenaPreparedStatement) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + +func (r *AthenaPreparedStatement) Remove(_ context.Context) error { + _, err := r.svc.DeletePreparedStatement(&athena.DeletePreparedStatementInput{ + StatementName: r.Name, + WorkGroup: r.WorkGroup, + }) + + return err +} + +func (r *AthenaPreparedStatement) String() string { + return *r.Name +} diff --git a/resources/athena-prepared-statements.go b/resources/athena-prepared-statements.go deleted file mode 100644 index 0f0593d7..00000000 --- a/resources/athena-prepared-statements.go +++ /dev/null @@ -1,80 +0,0 @@ -package resources - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/athena" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" -) - -type AthenaPreparedStatement struct { - svc *athena.Athena - workGroup *string - name *string -} - -func init() { - register("AthenaPreparedStatement", ListAthenaPreparedStatements) -} - -func ListAthenaPreparedStatements(sess *session.Session) ([]Resource, error) { - svc := athena.New(sess) - resources := []Resource{} - - workgroups, err := svc.ListWorkGroups(&athena.ListWorkGroupsInput{}) - if err != nil { - return nil, err - } - - for _, workgroup := range workgroups.WorkGroups { - params := &athena.ListPreparedStatementsInput{ - WorkGroup: workgroup.Name, - MaxResults: aws.Int64(50), - } - - for { - output, err := svc.ListPreparedStatements(params) - if err != nil { - return nil, err - } - - for _, statement := range output.PreparedStatements { - resources = append(resources, &AthenaPreparedStatement{ - svc: svc, - workGroup: workgroup.Name, - name: statement.StatementName, - }) - } - - if output.NextToken == nil { - break - } - - params.NextToken = output.NextToken - } - } - - return resources, nil -} - -func (f *AthenaPreparedStatement) Properties() types.Properties { - properties := types.NewProperties() - properties.Set("StatementName", f.name) - properties.Set("WorkGroup", f.workGroup) - - return properties -} - -func (f *AthenaPreparedStatement) Remove() error { - - _, err := f.svc.DeletePreparedStatement(&athena.DeletePreparedStatementInput{ - StatementName: f.name, - WorkGroup: f.workGroup, - }) - - return err -} - -func (f *AthenaPreparedStatement) String() string { - return *f.name -} From afd13eda79f443758570fe37cb55f6d9d3416de9 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sat, 31 Aug 2024 17:15:56 -0600 Subject: [PATCH 441/617] refactor(athena-work-group): rearrange struct location, rename pointers to standard --- ...na-work-groups.go => athena-work-group.go} | 58 +++++++++---------- 1 file changed, 29 insertions(+), 29 deletions(-) rename resources/{athena-work-groups.go => athena-work-group.go} (80%) diff --git a/resources/athena-work-groups.go b/resources/athena-work-group.go similarity index 80% rename from resources/athena-work-groups.go rename to resources/athena-work-group.go index 58c5675d..6b275e79 100644 --- a/resources/athena-work-groups.go +++ b/resources/athena-work-group.go @@ -31,12 +31,6 @@ func init() { type AthenaWorkGroupLister struct{} -type AthenaWorkGroup struct { - svc *athena.Athena - name *string - arn *string -} - func (l *AthenaWorkGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) @@ -84,15 +78,21 @@ func (l *AthenaWorkGroupLister) List(_ context.Context, o interface{}) ([]resour return resources, err } -func (a *AthenaWorkGroup) Remove(_ context.Context) error { +type AthenaWorkGroup struct { + svc *athena.Athena + name *string + arn *string +} + +func (r *AthenaWorkGroup) Remove(_ context.Context) error { // Primary WorkGroup cannot be deleted, - // but we can reset it to a clean state - if *a.name == "primary" { + // but we can reset it to r clean state + if *r.name == "primary" { // TODO: pass logger via ListerOpts instead of using global logrus.Info("Primary Athena WorkGroup may not be deleted. Resetting configuration only.") // Reset the configuration to its default state - _, err := a.svc.UpdateWorkGroup(&athena.UpdateWorkGroupInput{ + _, err := r.svc.UpdateWorkGroup(&athena.UpdateWorkGroupInput{ // See https://docs.aws.amazon.com/athena/latest/APIReference/API_WorkGroupConfigurationUpdates.html // for documented defaults ConfigurationUpdates: &athena.WorkGroupConfigurationUpdates{ @@ -106,15 +106,15 @@ func (a *AthenaWorkGroup) Remove(_ context.Context) error { }, }, Description: aws.String(""), - WorkGroup: a.name, + WorkGroup: r.name, }) if err != nil { return err } // Remove any tags - wgTagsRes, err := a.svc.ListTagsForResource(&athena.ListTagsForResourceInput{ - ResourceARN: a.arn, + wgTagsRes, err := r.svc.ListTagsForResource(&athena.ListTagsForResourceInput{ + ResourceARN: r.arn, }) if err != nil { return err @@ -125,8 +125,8 @@ func (a *AthenaWorkGroup) Remove(_ context.Context) error { tagKeys = append(tagKeys, tag.Key) } - _, err = a.svc.UntagResource(&athena.UntagResourceInput{ - ResourceARN: a.arn, + _, err = r.svc.UntagResource(&athena.UntagResourceInput{ + ResourceARN: r.arn, TagKeys: tagKeys, }) if err != nil { @@ -136,35 +136,35 @@ func (a *AthenaWorkGroup) Remove(_ context.Context) error { return nil } - _, err := a.svc.DeleteWorkGroup(&athena.DeleteWorkGroupInput{ + _, err := r.svc.DeleteWorkGroup(&athena.DeleteWorkGroupInput{ RecursiveDeleteOption: aws.Bool(true), - WorkGroup: a.name, + WorkGroup: r.name, }) return err } -func (a *AthenaWorkGroup) Filter() error { +func (r *AthenaWorkGroup) Filter() error { // If this is the primary work group, // check if it's already had its configuration reset - if *a.name == "primary" { + if *r.name == "primary" { // Get workgroup configuration - wgConfigRes, err := a.svc.GetWorkGroup(&athena.GetWorkGroupInput{ - WorkGroup: a.name, + wgConfigRes, err := r.svc.GetWorkGroup(&athena.GetWorkGroupInput{ + WorkGroup: r.name, }) if err != nil { return err } // Get workgroup tags - wgTagsRes, err := a.svc.ListTagsForResource(&athena.ListTagsForResourceInput{ - ResourceARN: a.arn, + wgTagsRes, err := r.svc.ListTagsForResource(&athena.ListTagsForResourceInput{ + ResourceARN: r.arn, }) if err != nil { return err } - // If the workgroup is already in a "clean" state, then + // If the workgroup is already in r "clean" state, then // don't add it to our plan wgConfig := wgConfigRes.WorkGroup.Configuration isCleanConfig := wgConfig.BytesScannedCutoffPerQuery == nil && @@ -181,12 +181,12 @@ func (a *AthenaWorkGroup) Filter() error { return nil } -func (a *AthenaWorkGroup) Properties() types.Properties { +func (r *AthenaWorkGroup) Properties() types.Properties { return types.NewProperties(). - Set("Name", *a.name). - Set("ARN", *a.arn) + Set("Name", *r.name). + Set("ARN", *r.arn) } -func (a *AthenaWorkGroup) String() string { - return *a.name +func (r *AthenaWorkGroup) String() string { + return *r.name } From 37f6f826df50a04b957f1e3371201a90201a4e9c Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sat, 31 Aug 2024 17:16:37 -0600 Subject: [PATCH 442/617] refactor(athena-named-query): rearrange struct location, rename pointers to standard --- ...named-queries.go => athena-named-query.go} | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) rename resources/{athena-named-queries.go => athena-named-query.go} (86%) diff --git a/resources/athena-named-queries.go b/resources/athena-named-query.go similarity index 86% rename from resources/athena-named-queries.go rename to resources/athena-named-query.go index b0b1a065..ed011f69 100644 --- a/resources/athena-named-queries.go +++ b/resources/athena-named-query.go @@ -24,11 +24,6 @@ func init() { type AthenaNamedQueryLister struct{} -type AthenaNamedQuery struct { - svc *athena.Athena - id *string -} - func (l *AthenaNamedQueryLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) @@ -76,19 +71,24 @@ func (l *AthenaNamedQueryLister) List(_ context.Context, o interface{}) ([]resou return resources, err } -func (a *AthenaNamedQuery) Remove(_ context.Context) error { - _, err := a.svc.DeleteNamedQuery(&athena.DeleteNamedQueryInput{ - NamedQueryId: a.id, +type AthenaNamedQuery struct { + svc *athena.Athena + id *string +} + +func (r *AthenaNamedQuery) Remove(_ context.Context) error { + _, err := r.svc.DeleteNamedQuery(&athena.DeleteNamedQueryInput{ + NamedQueryId: r.id, }) return err } -func (a *AthenaNamedQuery) Properties() types.Properties { +func (r *AthenaNamedQuery) Properties() types.Properties { return types.NewProperties(). - Set("Id", *a.id) + Set("Id", *r.id) } -func (a *AthenaNamedQuery) String() string { - return *a.id +func (r *AthenaNamedQuery) String() string { + return *r.id } From 8a443a5c56ec3e8dc25dd3a55a06bc59f4fcbd8d Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sat, 31 Aug 2024 17:50:56 -0600 Subject: [PATCH 443/617] fix(command/run): point to correct flag name --- pkg/commands/nuke/nuke.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/commands/nuke/nuke.go b/pkg/commands/nuke/nuke.go index 6f72416c..cefe5937 100644 --- a/pkg/commands/nuke/nuke.go +++ b/pkg/commands/nuke/nuke.go @@ -113,7 +113,7 @@ func execute(c *cli.Context) error { //nolint:funlen,gocyclo // Instantiate libnuke n := libnuke.New(params, filters, parsedConfig.Settings) - n.SetRunSleep(c.Duration("sleep-delay")) + n.SetRunSleep(c.Duration("run-sleep-delay")) n.SetLogger(logrus.WithField("component", "libnuke")) n.RegisterVersion(fmt.Sprintf("> %s", common.AppVersion.String())) From 9c1321a80f55ec1d78ea2487e74c978992188f49 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 2 Sep 2024 18:40:55 -0600 Subject: [PATCH 444/617] fix(ec2-vpc-endpoint-connection): filter rejected state --- pkg/awsutil/consts.go | 3 ++ ...ions.go => ec2-vpc-endpoint-connection.go} | 49 ++++++++++--------- 2 files changed, 30 insertions(+), 22 deletions(-) rename resources/{ec2-vpc-endpoint-connections.go => ec2-vpc-endpoint-connection.go} (61%) diff --git a/pkg/awsutil/consts.go b/pkg/awsutil/consts.go index ed4de61a..f5da25d2 100644 --- a/pkg/awsutil/consts.go +++ b/pkg/awsutil/consts.go @@ -8,3 +8,6 @@ const StateDeleted = "deleted" // StateDeleting is a generic constant for the word deleting for state const StateDeleting = "deleting" + +// StateRejected is a generic constant for the word rejected for state +const StateRejected = "rejected" diff --git a/resources/ec2-vpc-endpoint-connections.go b/resources/ec2-vpc-endpoint-connection.go similarity index 61% rename from resources/ec2-vpc-endpoint-connections.go rename to resources/ec2-vpc-endpoint-connection.go index 9942588a..e7a4f12d 100644 --- a/resources/ec2-vpc-endpoint-connections.go +++ b/resources/ec2-vpc-endpoint-connection.go @@ -3,6 +3,9 @@ package resources import ( "context" "fmt" + "strings" + + "github.com/gotidy/ptr" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ec2" @@ -45,10 +48,10 @@ func (l *EC2VPCEndpointConnectionLister) List(_ context.Context, o interface{}) for _, endpointConnection := range resp.VpcEndpointConnections { resources = append(resources, &EC2VPCEndpointConnection{ svc: svc, - vpcEndpointID: endpointConnection.VpcEndpointId, - serviceID: endpointConnection.ServiceId, - state: endpointConnection.VpcEndpointState, - owner: endpointConnection.VpcEndpointOwner, + ServiceID: endpointConnection.ServiceId, + VPCEndpointID: endpointConnection.VpcEndpointId, + State: endpointConnection.VpcEndpointState, + Owner: endpointConnection.VpcEndpointOwner, }) } @@ -64,43 +67,45 @@ func (l *EC2VPCEndpointConnectionLister) List(_ context.Context, o interface{}) type EC2VPCEndpointConnection struct { svc *ec2.EC2 - serviceID *string - vpcEndpointID *string - state *string - owner *string + ServiceID *string + VPCEndpointID *string + State *string + Owner *string } -func (c *EC2VPCEndpointConnection) Filter() error { - if *c.state == awsutil.StateDeleting || *c.state == awsutil.StateDeleted { +func (r *EC2VPCEndpointConnection) Filter() error { + if *r.State == awsutil.StateDeleting || *r.State == awsutil.StateDeleted { return fmt.Errorf("already deleted") } + if strings.EqualFold(ptr.ToString(r.State), awsutil.StateRejected) { + return fmt.Errorf("non-deletable state: rejected") + } + return nil } -func (c *EC2VPCEndpointConnection) Remove(_ context.Context) error { +func (r *EC2VPCEndpointConnection) Remove(_ context.Context) error { params := &ec2.RejectVpcEndpointConnectionsInput{ - ServiceId: c.serviceID, + ServiceId: r.ServiceID, VpcEndpointIds: []*string{ - c.vpcEndpointID, + r.VPCEndpointID, }, } - _, err := c.svc.RejectVpcEndpointConnections(params) + _, err := r.svc.RejectVpcEndpointConnections(params) if err != nil { return err } + return nil } -func (c *EC2VPCEndpointConnection) Properties() types.Properties { - properties := types.NewProperties() - properties.Set("VpcEndpointID", c.vpcEndpointID) - properties.Set("State", c.state) - properties.Set("Owner", c.owner) - return properties +func (r *EC2VPCEndpointConnection) Properties() types.Properties { + return types.NewPropertiesFromStruct(r). + Set("VpcEndpointID", r.VPCEndpointID) // TODO(v4): remove the extra set } -func (c *EC2VPCEndpointConnection) String() string { - return *c.serviceID +func (r *EC2VPCEndpointConnection) String() string { + return *r.ServiceID } From 39500c9f5b658e882e2ab184e707f41ecd37b24f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 4 Sep 2024 16:18:48 +0000 Subject: [PATCH 445/617] fix(deps): update module golang.org/x/text to v0.18.0 --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 011251ac..dd2e2ffa 100644 --- a/go.mod +++ b/go.mod @@ -14,7 +14,7 @@ require ( github.com/stretchr/testify v1.9.0 github.com/urfave/cli/v2 v2.27.4 go.uber.org/ratelimit v0.3.1 - golang.org/x/text v0.17.0 + golang.org/x/text v0.18.0 gopkg.in/yaml.v3 v3.0.1 ) diff --git a/go.sum b/go.sum index bf39ecd1..12a52ee4 100644 --- a/go.sum +++ b/go.sum @@ -96,6 +96,8 @@ golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= golang.org/x/text v0.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc= golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/text v0.18.0 h1:XvMDiNzPAl0jr17s6W9lcaIhGUfUORdGCNsuLmPG224= +golang.org/x/text v0.18.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= From f2f0a176ac264e1d44c8d84cec627ca3851237bf Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sun, 8 Sep 2024 11:07:33 -0700 Subject: [PATCH 446/617] fix(deps): upgrade to libnuke@0.19.0 --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index dd2e2ffa..78448ebc 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.21.6 require ( github.com/aws/aws-sdk-go v1.54.20 - github.com/ekristen/libnuke v0.18.0 + github.com/ekristen/libnuke v0.19.0 github.com/fatih/color v1.17.0 github.com/golang/mock v1.6.0 github.com/google/uuid v1.6.0 diff --git a/go.sum b/go.sum index 12a52ee4..9904b466 100644 --- a/go.sum +++ b/go.sum @@ -10,6 +10,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/ekristen/libnuke v0.18.0 h1:sF533oSET50FjgIkYV72rvgNzCzUR/AH2tQeKVim31g= github.com/ekristen/libnuke v0.18.0/go.mod h1:riI1tjCf6r+et/9oUBd1vQeFmn2Sn6UeFUR0nWkMeYw= +github.com/ekristen/libnuke v0.19.0 h1:pXVxPlbKfYbP1iSwsNu67MQ8HNvZPEZIeKiyw/k8FWg= +github.com/ekristen/libnuke v0.19.0/go.mod h1:riI1tjCf6r+et/9oUBd1vQeFmn2Sn6UeFUR0nWkMeYw= github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4= github.com/fatih/color v1.17.0/go.mod h1:YZ7TlrGPkiz6ku9fK3TLD/pl3CpsiFyu8N92HLgmosI= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= From 64126d2c1ca76e35b2ab7983baf2ebf2b1f5d15c Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sun, 8 Sep 2024 11:08:01 -0700 Subject: [PATCH 447/617] test(kms-key): add test to check for tags being set --- resources/kms-key_mock_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/kms-key_mock_test.go b/resources/kms-key_mock_test.go index 04b11f3e..75df5472 100644 --- a/resources/kms-key_mock_test.go +++ b/resources/kms-key_mock_test.go @@ -192,11 +192,15 @@ func Test_Mock_KMSKey_Properties(t *testing.T) { ID: ptr.String("test-key-id"), State: ptr.String(kms.KeyStateEnabled), Manager: ptr.String(kms.KeyManagerTypeCustomer), + Tags: []*kms.Tag{ + {TagKey: aws.String("Environment"), TagValue: aws.String("Test")}, + }, } assert.Equal(t, "test-key-id", kmsKey.String()) assert.Equal(t, kms.KeyStateEnabled, kmsKey.Properties().Get("State")) assert.Equal(t, kms.KeyManagerTypeCustomer, kmsKey.Properties().Get("Manager")) + assert.Equal(t, "Test", kmsKey.Properties().Get("tag:Environment")) } func Test_Mock_KMSKey_Remove(t *testing.T) { From d5458938d713dde9a320f3451c0fbafbf02ee414 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sun, 8 Sep 2024 16:25:30 -0700 Subject: [PATCH 448/617] feat(iam-role): add new properties (name, path, dates and more) --- resources/iam-instance-profile-roles.go | 2 +- resources/iam-role-policy-attachments.go | 2 +- resources/iam-roles.go | 110 ++++++++++++----------- resources/iam-roles_mock_test.go | 90 +++++++++++++++++-- 4 files changed, 147 insertions(+), 57 deletions(-) diff --git a/resources/iam-instance-profile-roles.go b/resources/iam-instance-profile-roles.go index 18407e13..92365ce2 100644 --- a/resources/iam-instance-profile-roles.go +++ b/resources/iam-instance-profile-roles.go @@ -111,7 +111,7 @@ func (e *IAMInstanceProfileRole) Properties() types.Properties { Set("InstanceRole", e.role.RoleName). Set("role:Path", e.role.Path). Set("role:CreateDate", e.role.CreateDate.Format(time.RFC3339)). - Set("role:LastUsedDate", getLastUsedDate(e.role, time.RFC3339)) + Set("role:LastUsedDate", getLastUsedDate(e.role)) for _, tagValue := range e.role.Tags { properties.SetTagWithPrefix("role", tagValue.Key, tagValue.Value) diff --git a/resources/iam-role-policy-attachments.go b/resources/iam-role-policy-attachments.go index 7be09ef5..9cf2a7be 100644 --- a/resources/iam-role-policy-attachments.go +++ b/resources/iam-role-policy-attachments.go @@ -66,7 +66,7 @@ func (e *IAMRolePolicyAttachment) Properties() types.Properties { properties := types.NewProperties(). Set("RoleName", e.role.RoleName). Set("RolePath", e.role.Path). - Set("RoleLastUsed", getLastUsedDate(e.role, time.RFC3339)). + Set("RoleLastUsed", getLastUsedDate(e.role)). Set("RoleCreateDate", e.role.CreateDate.Format(time.RFC3339)). Set("PolicyName", e.policyName). Set("PolicyArn", e.policyArn) diff --git a/resources/iam-roles.go b/resources/iam-roles.go index dc318a8b..56498dc7 100644 --- a/resources/iam-roles.go +++ b/resources/iam-roles.go @@ -2,14 +2,13 @@ package resources import ( "context" - "fmt" "strings" "time" + "github.com/gotidy/ptr" "github.com/sirupsen/logrus" - "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iam" "github.com/aws/aws-sdk-go/service/iam/iamiface" @@ -37,25 +36,27 @@ func init() { } type IAMRole struct { - svc iamiface.IAMAPI - name string - path string - tags []*iam.Tag + svc iamiface.IAMAPI + Name *string + Path *string + CreateDate *time.Time + LastUsedDate *time.Time + Tags []*iam.Tag } -func (e *IAMRole) Filter() error { - if strings.HasPrefix(e.path, "/aws-service-role/") { +func (r *IAMRole) Filter() error { + if strings.HasPrefix(*r.Path, "/aws-service-role/") { return fmt.Errorf("cannot delete service roles") } - if strings.HasPrefix(e.path, "/aws-reserved/sso.amazonaws.com/") { + if strings.HasPrefix(*r.Path, "/aws-reserved/sso.amazonaws.com/") { return fmt.Errorf("cannot delete SSO roles") } return nil } -func (e *IAMRole) Remove(_ context.Context) error { - _, err := e.svc.DeleteRole(&iam.DeleteRoleInput{ - RoleName: aws.String(e.name), +func (r *IAMRole) Remove(_ context.Context) error { + _, err := r.svc.DeleteRole(&iam.DeleteRoleInput{ + RoleName: r.Name, }) if err != nil { return err @@ -64,51 +65,32 @@ func (e *IAMRole) Remove(_ context.Context) error { return nil } -func (e *IAMRole) Properties() types.Properties { - properties := types.NewProperties() - for _, tagValue := range e.tags { - properties.SetTag(tagValue.Key, tagValue.Value) - } - - return properties -} - -func (e *IAMRole) String() string { - return e.name +func (r *IAMRole) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) } -// --------- - -func GetIAMRole(svc *iam.IAM, roleName *string) (*iam.Role, error) { - params := &iam.GetRoleInput{ - RoleName: roleName, - } - resp, err := svc.GetRole(params) - return resp.Role, err -} - -func getLastUsedDate(role *iam.Role, format string) string { - var lastUsedDate *time.Time - if role.RoleLastUsed == nil || role.RoleLastUsed.LastUsedDate == nil { - lastUsedDate = role.CreateDate - } else { - lastUsedDate = role.RoleLastUsed.LastUsedDate - } - - return lastUsedDate.Format(format) +func (r *IAMRole) String() string { + return *r.Name } // -------------- -type IAMRoleLister struct{} +type IAMRoleLister struct { + mockSvc iamiface.IAMAPI +} func (l *IAMRoleLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) - - svc := iam.New(opts.Session) - params := &iam.ListRolesInput{} resources := make([]resource.Resource, 0) + var svc iamiface.IAMAPI + if l.mockSvc != nil { + svc = l.mockSvc + } else { + svc = iam.New(opts.Session) + } + + params := &iam.ListRolesInput{} for { resp, err := svc.ListRoles(params) if err != nil { @@ -126,10 +108,12 @@ func (l *IAMRoleLister) List(_ context.Context, o interface{}) ([]resource.Resou } resources = append(resources, &IAMRole{ - svc: svc, - name: *role.RoleName, - path: *role.Path, - tags: role.Tags, + svc: svc, + Name: role.RoleName, + Path: role.Path, + CreateDate: role.CreateDate, + LastUsedDate: getLastUsedDate(role), + Tags: role.Tags, }) } @@ -142,3 +126,29 @@ func (l *IAMRoleLister) List(_ context.Context, o interface{}) ([]resource.Resou return resources, nil } + +// --------- + +// GetIAMRole returns the IAM role with the given name +func GetIAMRole(svc iamiface.IAMAPI, roleName *string) (*iam.Role, error) { + resp, err := svc.GetRole(&iam.GetRoleInput{ + RoleName: roleName, + }) + if err != nil { + return nil, err + } + + return resp.Role, err +} + +// getLastUsedDate returns the last used date of the role +func getLastUsedDate(role *iam.Role) *time.Time { + var lastUsedDate *time.Time + if role.RoleLastUsed == nil || role.RoleLastUsed.LastUsedDate == nil { + lastUsedDate = role.CreateDate + } else { + lastUsedDate = role.RoleLastUsed.LastUsedDate + } + + return ptr.Time(lastUsedDate.UTC()) +} diff --git a/resources/iam-roles_mock_test.go b/resources/iam-roles_mock_test.go index d54377a6..afe08013 100644 --- a/resources/iam-roles_mock_test.go +++ b/resources/iam-roles_mock_test.go @@ -3,16 +3,72 @@ package resources import ( "context" "testing" + "time" + + "github.com/gotidy/ptr" "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) +func Test_Mock_IAMRole_List(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + createDate := time.Now().Add(-24 * time.Hour).UTC() + lastUsedDate := time.Now().Add(-8 * time.Hour).UTC() + + testRole := &iam.Role{ + Arn: ptr.String("arn:aws:iam::123456789012:role/test"), + RoleName: ptr.String("test"), + CreateDate: ptr.Time(createDate), + Path: ptr.String("/"), + RoleId: ptr.String("test"), + RoleLastUsed: &iam.RoleLastUsed{LastUsedDate: ptr.Time(lastUsedDate)}, + } + + mockIAM.EXPECT().ListRoles(gomock.Any()).Return(&iam.ListRolesOutput{ + Roles: []*iam.Role{ + testRole, + }, + IsTruncated: ptr.Bool(false), + }, nil) + + mockIAM.EXPECT().GetRole(&iam.GetRoleInput{ + RoleName: ptr.String("test"), + }).Return(&iam.GetRoleOutput{ + Role: testRole, + }, nil) + + lister := IAMRoleLister{ + mockSvc: mockIAM, + } + + resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ + Region: &nuke.Region{ + Name: "us-east-2", + }, + Session: session.Must(session.NewSession()), + }) + a.Nil(err) + a.Len(resources, 1) + + iamRole := resources[0].(*IAMRole) + a.Equal("test", *iamRole.Name) + a.Equal("/", *iamRole.Path) + a.Equal(createDate.Format(time.RFC3339), iamRole.Properties().Get("CreateDate")) + a.Equal(lastUsedDate.Format(time.RFC3339), iamRole.Properties().Get("LastUsedDate")) +} + func Test_Mock_IAMRole_Remove(t *testing.T) { a := assert.New(t) ctrl := gomock.NewController(t) @@ -22,15 +78,39 @@ func Test_Mock_IAMRole_Remove(t *testing.T) { iamRole := IAMRole{ svc: mockIAM, - name: "test", - path: "/", - tags: []*iam.Tag{}, + Name: ptr.String("test"), + Path: ptr.String("/"), + Tags: []*iam.Tag{}, } mockIAM.EXPECT().DeleteRole(gomock.Eq(&iam.DeleteRoleInput{ - RoleName: aws.String(iamRole.name), + RoleName: iamRole.Name, })).Return(&iam.DeleteRoleOutput{}, nil) err := iamRole.Remove(context.TODO()) a.Nil(err) } + +func Test_Mock_IAMRole_Properties(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + iamRole := IAMRole{ + svc: mockIAM, + Name: ptr.String("test"), + Path: ptr.String("/testing"), + Tags: []*iam.Tag{ + { + Key: ptr.String("test-key"), + Value: ptr.String("test"), + }, + }, + } + + a.Equal("test", iamRole.Properties().Get("Name")) + a.Equal("/testing", iamRole.Properties().Get("Path")) + a.Equal("test", iamRole.Properties().Get("tag:test-key")) +} From f6ddae4b5ea02ba31ff1a0c38cebf3a13ba4b4bd Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 10 Sep 2024 13:46:17 -0700 Subject: [PATCH 449/617] test(iam-instance-profile-role): increasing test coverage --- ...-roles.go => iam-instance-profile-role.go} | 15 ++- .../iam-instance-profile-role_mock_test.go | 96 +++++++++++++++++++ 2 files changed, 107 insertions(+), 4 deletions(-) rename resources/{iam-instance-profile-roles.go => iam-instance-profile-role.go} (93%) diff --git a/resources/iam-instance-profile-roles.go b/resources/iam-instance-profile-role.go similarity index 93% rename from resources/iam-instance-profile-roles.go rename to resources/iam-instance-profile-role.go index 92365ce2..b33bd8af 100644 --- a/resources/iam-instance-profile-roles.go +++ b/resources/iam-instance-profile-role.go @@ -2,7 +2,6 @@ package resources import ( "context" - "fmt" "time" @@ -32,14 +31,22 @@ func init() { }) } -type IAMInstanceProfileRoleLister struct{} +type IAMInstanceProfileRoleLister struct { + mockSvc iamiface.IAMAPI +} func (l *IAMInstanceProfileRoleLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) + resources := make([]resource.Resource, 0) + + var svc iamiface.IAMAPI + if l.mockSvc != nil { + svc = l.mockSvc + } else { + svc = iam.New(opts.Session) + } - svc := iam.New(opts.Session) params := &iam.ListInstanceProfilesInput{} - resources := make([]resource.Resource, 0) for { resp, err := svc.ListInstanceProfiles(params) diff --git a/resources/iam-instance-profile-role_mock_test.go b/resources/iam-instance-profile-role_mock_test.go index 53a1a1f5..04d9b417 100644 --- a/resources/iam-instance-profile-role_mock_test.go +++ b/resources/iam-instance-profile-role_mock_test.go @@ -3,16 +3,72 @@ package resources import ( "context" "testing" + "time" "github.com/golang/mock/gomock" + "github.com/gotidy/ptr" "github.com/stretchr/testify/assert" "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) +func Test_Mock_IAMInstanceProfileRole_List(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + iamInstanceProfileRole := IAMInstanceProfileRole{ + svc: mockIAM, + role: &iam.Role{ + RoleName: ptr.String("role:foobar"), + }, + profile: &iam.InstanceProfile{ + Arn: ptr.String("arn:aws:iam::123456789012:instance-profile/profile:foobar"), + InstanceProfileName: ptr.String("profile:foobar"), + CreateDate: ptr.Time(time.Now()), + Roles: []*iam.Role{ + { + Arn: ptr.String("arn:aws:iam::123456789012:role/role:foobar"), + RoleName: ptr.String("role:foobar"), + }, + }, + }, + } + + mockIAM.EXPECT().ListInstanceProfiles(gomock.Any()).Return(&iam.ListInstanceProfilesOutput{ + InstanceProfiles: []*iam.InstanceProfile{ + iamInstanceProfileRole.profile, + }, + IsTruncated: ptr.Bool(false), + }, nil) + + mockIAM.EXPECT().GetInstanceProfile(&iam.GetInstanceProfileInput{ + InstanceProfileName: iamInstanceProfileRole.profile.InstanceProfileName, + }).Return(&iam.GetInstanceProfileOutput{ + InstanceProfile: iamInstanceProfileRole.profile, + }, nil) + + lister := IAMInstanceProfileRoleLister{ + mockSvc: mockIAM, + } + + resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ + Region: &nuke.Region{ + Name: "us-east-2", + }, + Session: session.Must(session.NewSession()), + }) + a.Nil(err) + a.Len(resources, 1) +} + func Test_Mock_IAMInstanceProfileRole_Remove(t *testing.T) { a := assert.New(t) ctrl := gomock.NewController(t) @@ -38,3 +94,43 @@ func Test_Mock_IAMInstanceProfileRole_Remove(t *testing.T) { err := iamInstanceProfileRole.Remove(context.TODO()) a.Nil(err) } + +func Test_Mock_IAMInstanceProfileRole_Properties(t *testing.T) { + a := assert.New(t) + + now := time.Now() + + iamInstanceProfileRole := IAMInstanceProfileRole{ + role: &iam.Role{ + Arn: ptr.String("arn:aws:iam::123456789012:role/role:foobar"), + RoleName: ptr.String("role:foobar"), + Path: ptr.String("/"), + CreateDate: ptr.Time(now), + Tags: []*iam.Tag{ + { + Key: ptr.String("Name"), + Value: ptr.String("bar"), + }, + }, + }, + profile: &iam.InstanceProfile{ + InstanceProfileName: ptr.String("profile:foobar"), + Tags: []*iam.Tag{ + { + Key: ptr.String("Name"), + Value: ptr.String("foo"), + }, + }, + }, + } + + props := iamInstanceProfileRole.Properties() + a.Equal("profile:foobar", props.Get("InstanceProfile")) + a.Equal("role:foobar", props.Get("InstanceRole")) + a.Equal("/", props.Get("role:Path")) + a.Equal(now.Format(time.RFC3339), props.Get("role:CreateDate")) + a.Equal("foo", props.Get("tag:Name")) + a.Equal("bar", props.Get("tag:role:Name")) + + a.Equal("profile:foobar -> role:foobar", iamInstanceProfileRole.String()) +} From bbefc800379f4dd201a90c7b8d5b65c717fa8463 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 10 Sep 2024 13:47:16 -0700 Subject: [PATCH 450/617] refactor(iam-instance-profile): prepare for tests, rename props --- ...ce-profiles.go => iam-instance-profile.go} | 68 ++++++++++--------- 1 file changed, 35 insertions(+), 33 deletions(-) rename resources/{iam-instance-profiles.go => iam-instance-profile.go} (62%) diff --git a/resources/iam-instance-profiles.go b/resources/iam-instance-profile.go similarity index 62% rename from resources/iam-instance-profiles.go rename to resources/iam-instance-profile.go index 33ef7827..3792dfd8 100644 --- a/resources/iam-instance-profiles.go +++ b/resources/iam-instance-profile.go @@ -29,14 +29,22 @@ func init() { }) } -type IAMInstanceProfileLister struct{} +type IAMInstanceProfileLister struct { + mockSvc iamiface.IAMAPI +} func (l *IAMInstanceProfileLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) + resources := make([]resource.Resource, 0) + + var svc iamiface.IAMAPI + if l.mockSvc != nil { + svc = l.mockSvc + } else { + svc = iam.New(opts.Session) + } - svc := iam.New(opts.Session) params := &iam.ListInstanceProfilesInput{} - resources := make([]resource.Resource, 0) for { resp, err := svc.ListInstanceProfiles(params) @@ -55,10 +63,10 @@ func (l *IAMInstanceProfileLister) List(_ context.Context, o interface{}) ([]res } resources = append(resources, &IAMInstanceProfile{ - svc: svc, - name: *out.InstanceProfileName, - path: *profile.Path, - profile: profile, + svc: svc, + Name: out.InstanceProfileName, + Path: profile.Path, + Tags: profile.Tags, }) } @@ -72,24 +80,16 @@ func (l *IAMInstanceProfileLister) List(_ context.Context, o interface{}) ([]res return resources, nil } -func GetIAMInstanceProfile(svc *iam.IAM, instanceProfileName *string) (*iam.InstanceProfile, error) { - params := &iam.GetInstanceProfileInput{ - InstanceProfileName: instanceProfileName, - } - resp, err := svc.GetInstanceProfile(params) - return resp.InstanceProfile, err -} - type IAMInstanceProfile struct { - svc iamiface.IAMAPI - name string - path string - profile *iam.InstanceProfile + svc iamiface.IAMAPI + Name *string + Path *string + Tags []*iam.Tag } -func (e *IAMInstanceProfile) Remove(_ context.Context) error { - _, err := e.svc.DeleteInstanceProfile(&iam.DeleteInstanceProfileInput{ - InstanceProfileName: &e.name, +func (r *IAMInstanceProfile) Remove(_ context.Context) error { + _, err := r.svc.DeleteInstanceProfile(&iam.DeleteInstanceProfileInput{ + InstanceProfileName: r.Name, }) if err != nil { return err @@ -98,20 +98,22 @@ func (e *IAMInstanceProfile) Remove(_ context.Context) error { return nil } -func (e *IAMInstanceProfile) String() string { - return e.name +func (r *IAMInstanceProfile) String() string { + return *r.Name } -func (e *IAMInstanceProfile) Properties() types.Properties { - properties := types.NewProperties() +func (r *IAMInstanceProfile) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} - for _, tagValue := range e.profile.Tags { - properties.SetTag(tagValue.Key, tagValue.Value) +// GetIAMInstanceProfile returns an IAM instance profile +func GetIAMInstanceProfile(svc iamiface.IAMAPI, instanceProfileName *string) (*iam.InstanceProfile, error) { + resp, err := svc.GetInstanceProfile(&iam.GetInstanceProfileInput{ + InstanceProfileName: instanceProfileName, + }) + if err != nil { + return nil, err } - properties. - Set("Name", e.name). - Set("Path", e.path) - - return properties + return resp.InstanceProfile, nil } From a3964151834c6247aed2e710e1b497e168b55f80 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 10 Sep 2024 13:48:18 -0700 Subject: [PATCH 451/617] test(iam-instance-profile): adding test coverage --- resources/iam-instance-profile_mock_test.go | 123 +++++++++++++++++++ resources/iam-instance-profiles_mock_test.go | 35 ------ 2 files changed, 123 insertions(+), 35 deletions(-) create mode 100644 resources/iam-instance-profile_mock_test.go delete mode 100644 resources/iam-instance-profiles_mock_test.go diff --git a/resources/iam-instance-profile_mock_test.go b/resources/iam-instance-profile_mock_test.go new file mode 100644 index 00000000..0df6f5cc --- /dev/null +++ b/resources/iam-instance-profile_mock_test.go @@ -0,0 +1,123 @@ +package resources + +import ( + "context" + "testing" + "time" + + "github.com/golang/mock/gomock" + "github.com/gotidy/ptr" + "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/iam" + + "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +func Test_Mock_IAMInstanceProfile_List(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + instanceProfile := &iam.InstanceProfile{ + Arn: ptr.String("arn:aws:iam::123456789012:instance-profile/profile:foobar"), + InstanceProfileName: ptr.String("profile:foobar"), + CreateDate: ptr.Time(time.Now()), + Roles: []*iam.Role{ + { + Arn: ptr.String("arn:aws:iam::123456789012:role/role:foobar"), + RoleName: ptr.String("role:foobar"), + }, + }, + } + + instanceProfile2 := &iam.InstanceProfile{ + Arn: ptr.String("arn:aws:iam::123456789012:instance-profile/profile:foobar2"), + InstanceProfileName: ptr.String("profile:foobar2"), + CreateDate: ptr.Time(time.Now()), + Roles: []*iam.Role{ + { + Arn: ptr.String("arn:aws:iam::123456789012:role/role:foobar2"), + RoleName: ptr.String("role:foobar2"), + }, + }, + } + + mockIAM.EXPECT().ListInstanceProfiles(gomock.Any()).Return(&iam.ListInstanceProfilesOutput{ + InstanceProfiles: []*iam.InstanceProfile{ + instanceProfile, + instanceProfile2, + }, + }, nil) + + mockIAM.EXPECT().GetInstanceProfile(&iam.GetInstanceProfileInput{ + InstanceProfileName: ptr.String("profile:foobar"), + }).Return(&iam.GetInstanceProfileOutput{ + InstanceProfile: instanceProfile, + }, nil) + + mockIAM.EXPECT().GetInstanceProfile(&iam.GetInstanceProfileInput{ + InstanceProfileName: ptr.String("profile:foobar2"), + }).Return(nil, awserr.New("400", "InstanceProfileNotFound", nil)) + + lister := IAMInstanceProfileLister{ + mockSvc: mockIAM, + } + + resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ + Region: &nuke.Region{ + Name: "us-east-2", + }, + Session: session.Must(session.NewSession()), + }) + + a.Nil(err) + a.Len(resources, 1) +} + +func Test_Mock_IAMInstanceProfile_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + iamInstanceProfile := IAMInstanceProfile{ + svc: mockIAM, + Name: ptr.String("ip:foobar"), + Path: ptr.String("/"), + } + + mockIAM.EXPECT().DeleteInstanceProfile(gomock.Eq(&iam.DeleteInstanceProfileInput{ + InstanceProfileName: iamInstanceProfile.Name, + })).Return(&iam.DeleteInstanceProfileOutput{}, nil) + + err := iamInstanceProfile.Remove(context.TODO()) + a.Nil(err) +} + +func Test_Mock_IAMInstanceProfile_Properties(t *testing.T) { + a := assert.New(t) + + iamInstanceProfile := IAMInstanceProfile{ + Name: ptr.String("ip:foobar"), + Path: ptr.String("/"), + Tags: []*iam.Tag{ + { + Key: ptr.String("foo"), + Value: ptr.String("bar"), + }, + }, + } + + a.Equal("ip:foobar", iamInstanceProfile.Properties().Get("Name")) + a.Equal("/", iamInstanceProfile.Properties().Get("Path")) + a.Equal("bar", iamInstanceProfile.Properties().Get("tag:foo")) + + a.Equal("ip:foobar", iamInstanceProfile.String()) +} diff --git a/resources/iam-instance-profiles_mock_test.go b/resources/iam-instance-profiles_mock_test.go deleted file mode 100644 index 0ab45bd9..00000000 --- a/resources/iam-instance-profiles_mock_test.go +++ /dev/null @@ -1,35 +0,0 @@ -package resources - -import ( - "context" - - "testing" - - "github.com/golang/mock/gomock" - "github.com/stretchr/testify/assert" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/iam" - - "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" -) - -func Test_Mock_IAMInstanceProfile_Remove(t *testing.T) { - a := assert.New(t) - ctrl := gomock.NewController(t) - defer ctrl.Finish() - - mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) - - iamInstanceProfile := IAMInstanceProfile{ - svc: mockIAM, - name: "ip:foobar", - } - - mockIAM.EXPECT().DeleteInstanceProfile(gomock.Eq(&iam.DeleteInstanceProfileInput{ - InstanceProfileName: aws.String(iamInstanceProfile.name), - })).Return(&iam.DeleteInstanceProfileOutput{}, nil) - - err := iamInstanceProfile.Remove(context.TODO()) - a.Nil(err) -} From 11a22f7be0638daec8ade2c7469970aa6e758471 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 10 Sep 2024 13:49:40 -0700 Subject: [PATCH 452/617] feat(iam-login-profile): add and refactor properties --- ...login-profiles.go => iam-login-profile.go} | 41 ++++++++++++------- 1 file changed, 26 insertions(+), 15 deletions(-) rename resources/{iam-login-profiles.go => iam-login-profile.go} (69%) diff --git a/resources/iam-login-profiles.go b/resources/iam-login-profile.go similarity index 69% rename from resources/iam-login-profiles.go rename to resources/iam-login-profile.go index 36bfee6c..d73bacda 100644 --- a/resources/iam-login-profiles.go +++ b/resources/iam-login-profile.go @@ -2,8 +2,8 @@ package resources import ( "context" - "errors" + "time" "github.com/gotidy/ptr" "github.com/sirupsen/logrus" @@ -29,18 +29,26 @@ func init() { }) } -type IAMLoginProfileLister struct{} +type IAMLoginProfileLister struct { + mockSvc iamiface.IAMAPI +} func (l *IAMLoginProfileLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) - svc := iam.New(opts.Session) + resources := make([]resource.Resource, 0) + var svc iamiface.IAMAPI + + if l.mockSvc != nil { + svc = l.mockSvc + } else { + svc = iam.New(opts.Session) + } resp, err := svc.ListUsers(nil) if err != nil { return nil, err } - resources := make([]resource.Resource, 0) for _, out := range resp.Users { lpresp, err := svc.GetLoginProfile(&iam.GetLoginProfileInput{UserName: out.UserName}) if err != nil { @@ -58,8 +66,9 @@ func (l *IAMLoginProfileLister) List(_ context.Context, o interface{}) ([]resour if lpresp.LoginProfile != nil { resources = append(resources, &IAMLoginProfile{ - svc: svc, - name: ptr.ToString(out.UserName), + svc: svc, + UserName: out.UserName, + CreateDate: out.CreateDate, }) } } @@ -68,23 +77,25 @@ func (l *IAMLoginProfileLister) List(_ context.Context, o interface{}) ([]resour } type IAMLoginProfile struct { - svc iamiface.IAMAPI - name string + svc iamiface.IAMAPI + UserName *string + CreateDate *time.Time } -func (e *IAMLoginProfile) Remove(_ context.Context) error { - _, err := e.svc.DeleteLoginProfile(&iam.DeleteLoginProfileInput{UserName: &e.name}) +func (r *IAMLoginProfile) Remove(_ context.Context) error { + _, err := r.svc.DeleteLoginProfile(&iam.DeleteLoginProfileInput{ + UserName: r.UserName, + }) if err != nil { return err } return nil } -func (e *IAMLoginProfile) Properties() types.Properties { - return types.NewProperties(). - Set("UserName", e.name) +func (r *IAMLoginProfile) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) } -func (e *IAMLoginProfile) String() string { - return e.name +func (r *IAMLoginProfile) String() string { + return *r.UserName } From b0776a859c61c2e244f9c86067b348851602bec7 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 10 Sep 2024 13:50:04 -0700 Subject: [PATCH 453/617] test(iam-login-profile): increase test coverage --- resources/iam-login-profile_mock_test.go | 94 +++++++++++++++++++++++ resources/iam-login-profiles_mock_test.go | 34 -------- 2 files changed, 94 insertions(+), 34 deletions(-) create mode 100644 resources/iam-login-profile_mock_test.go delete mode 100644 resources/iam-login-profiles_mock_test.go diff --git a/resources/iam-login-profile_mock_test.go b/resources/iam-login-profile_mock_test.go new file mode 100644 index 00000000..de1061dc --- /dev/null +++ b/resources/iam-login-profile_mock_test.go @@ -0,0 +1,94 @@ +package resources + +import ( + "context" + "testing" + "time" + + "github.com/golang/mock/gomock" + "github.com/gotidy/ptr" + "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/iam" + + "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +func Test_Mock_IAMLoginProfile_List(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + user := &iam.User{ + UserName: ptr.String("login-profile:foobar"), + } + + mockIAM.EXPECT().ListUsers(nil).Return(&iam.ListUsersOutput{ + Users: []*iam.User{ + user, + }, + }, nil) + + now := time.Now().UTC() + + mockIAM.EXPECT().GetLoginProfile(&iam.GetLoginProfileInput{ + UserName: user.UserName, + }).Return(&iam.GetLoginProfileOutput{ + LoginProfile: &iam.LoginProfile{ + UserName: user.UserName, + CreateDate: ptr.Time(now), + }, + }, nil) + + lister := IAMLoginProfileLister{ + mockSvc: mockIAM, + } + + resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ + Region: &nuke.Region{ + Name: "us-east-2", + }, + Session: session.Must(session.NewSession()), + }) + a.Nil(err) + a.Len(resources, 1) +} + +func Test_Mock_IAMLoginProfile_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + iamLoginProfile := IAMLoginProfile{ + svc: mockIAM, + UserName: ptr.String("login-profile:foobar"), + } + + mockIAM.EXPECT().DeleteLoginProfile(gomock.Eq(&iam.DeleteLoginProfileInput{ + UserName: iamLoginProfile.UserName, + })).Return(&iam.DeleteLoginProfileOutput{}, nil) + + err := iamLoginProfile.Remove(context.TODO()) + a.Nil(err) +} + +func Test_Mock_IAMLoginProfile_Properties(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + iamLoginProfile := IAMLoginProfile{ + svc: mockIAM, + UserName: ptr.String("login-profile:foobar"), + } + + a.Equal("login-profile:foobar", iamLoginProfile.Properties().Get("UserName")) +} diff --git a/resources/iam-login-profiles_mock_test.go b/resources/iam-login-profiles_mock_test.go deleted file mode 100644 index 27a6feaf..00000000 --- a/resources/iam-login-profiles_mock_test.go +++ /dev/null @@ -1,34 +0,0 @@ -package resources - -import ( - "context" - "testing" - - "github.com/golang/mock/gomock" - "github.com/stretchr/testify/assert" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/iam" - - "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" -) - -func Test_Mock_IAMLoginProfile_Remove(t *testing.T) { - a := assert.New(t) - ctrl := gomock.NewController(t) - defer ctrl.Finish() - - mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) - - iamLoginProfile := IAMLoginProfile{ - svc: mockIAM, - name: "login-profile:foobar", - } - - mockIAM.EXPECT().DeleteLoginProfile(gomock.Eq(&iam.DeleteLoginProfileInput{ - UserName: aws.String(iamLoginProfile.name), - })).Return(&iam.DeleteLoginProfileOutput{}, nil) - - err := iamLoginProfile.Remove(context.TODO()) - a.Nil(err) -} From 85b1737ca9d3e14aefded45b899fcb1ea70d5c65 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 11 Sep 2024 09:58:05 +0000 Subject: [PATCH 454/617] chore(deps): update docker/dockerfile docker tag to v1.10 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d0795a03..2d50ea28 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -# syntax=docker/dockerfile:1.9-labs +# syntax=docker/dockerfile:1.10-labs FROM alpine:3.20.2 as base RUN apk add --no-cache ca-certificates RUN adduser -D aws-nuke From 56724702e28ded52b13d532bf5176de3cef5b345 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 11 Sep 2024 07:13:07 -0600 Subject: [PATCH 455/617] docs: fix brew install command --- docs/installation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/installation.md b/docs/installation.md index e852ad0f..3a6185a7 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -5,7 +5,7 @@ ### Homebrew Tap (MacOS/Linux) ```console -brew install ekristen/tap/aws-nuke@3 +brew install ekristen/tap/aws-nuke ``` !!! warning "Brew Warning" From 5dcc25f79d053164ae87fa09f415dc611624dbd7 Mon Sep 17 00:00:00 2001 From: Mike Schouw Date: Wed, 11 Sep 2024 10:20:13 +0200 Subject: [PATCH 456/617] feat(resource): add resource for Eventbridge Pipes --- resources/pipes-pipe.go | 76 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 resources/pipes-pipe.go diff --git a/resources/pipes-pipe.go b/resources/pipes-pipe.go new file mode 100644 index 00000000..58cd65fc --- /dev/null +++ b/resources/pipes-pipe.go @@ -0,0 +1,76 @@ +package resources + +import ( + "context" + "time" + + "github.com/aws/aws-sdk-go/service/pipes" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +const PipesPipeResource = "PipesPipes" + +func init() { + registry.Register(®istry.Registration{ + Name: PipesPipeResource, + Scope: nuke.Account, + Lister: &PipesPipeLister{}, + }) +} + +type PipesPipeLister struct{} + +func (l *PipesPipeLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + svc := pipes.New(opts.Session) + var resources []resource.Resource + + res, err := svc.ListPipes(&pipes.ListPipesInput{}) + if err != nil { + return nil, err + } + + for _, p := range res.Pipes { + resources = append(resources, &PipesPipes{ + svc: svc, + Name: p.Name, + CurrentState: p.CurrentState, + Source: p.Source, + Target: p.Target, + CreationDate: p.CreationTime, + ModifiedDate: p.LastModifiedTime, + }) + } + + return resources, nil +} + +type PipesPipes struct { + svc *pipes.Pipes + Name *string + CurrentState *string + Source *string + Target *string + CreationDate *time.Time + ModifiedDate *time.Time +} + +func (r *PipesPipes) Remove(_ context.Context) error { + _, err := r.svc.DeletePipe(&pipes.DeletePipeInput{ + Name: r.Name, + }) + return err +} + +func (r *PipesPipes) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + +func (r *PipesPipes) String() string { + return *r.Name +} From 60a2329e6caee4483ddc028519bbb1b6c4547af4 Mon Sep 17 00:00:00 2001 From: MSchouwPablo Date: Wed, 11 Sep 2024 15:28:40 +0200 Subject: [PATCH 457/617] fix(pipes-pipe): resource name Co-authored-by: Erik Kristensen --- resources/pipes-pipe.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/pipes-pipe.go b/resources/pipes-pipe.go index 58cd65fc..b8b8bd72 100644 --- a/resources/pipes-pipe.go +++ b/resources/pipes-pipe.go @@ -13,7 +13,7 @@ import ( "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) -const PipesPipeResource = "PipesPipes" +const PipesPipeResource = "PipesPipe" func init() { registry.Register(®istry.Registration{ From 4ec8ec86a9300c7dae1a000143809584971deba9 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 11 Sep 2024 14:00:37 +0000 Subject: [PATCH 458/617] chore(deps): update alpine docker tag to v3.20.3 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2d50ea28..0313316f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # syntax=docker/dockerfile:1.10-labs -FROM alpine:3.20.2 as base +FROM alpine:3.20.3 as base RUN apk add --no-cache ca-certificates RUN adduser -D aws-nuke From a673d13ef562f1ecdd4b34cc40ea813e9db47a84 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 11 Sep 2024 11:51:47 -0600 Subject: [PATCH 459/617] fix(route53-resolver-rule): guard against nil pointers --- ...lver-rules.go => route53-resolver-rule.go} | 40 +++++++++---------- 1 file changed, 19 insertions(+), 21 deletions(-) rename resources/{route53-resolver-rules.go => route53-resolver-rule.go} (84%) diff --git a/resources/route53-resolver-rules.go b/resources/route53-resolver-rule.go similarity index 84% rename from resources/route53-resolver-rules.go rename to resources/route53-resolver-rule.go index 4f6d7ab0..b9e21771 100644 --- a/resources/route53-resolver-rules.go +++ b/resources/route53-resolver-rule.go @@ -31,16 +31,15 @@ type Route53ResolverRuleLister struct{} // List returns a list of all Route53 ResolverRules before filtering to be nuked func (l *Route53ResolverRuleLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) + var resources []resource.Resource svc := route53resolver.New(opts.Session) - vpcAssociations, err := resolverRulesToVpcIDs(svc) - if err != nil { - return nil, err + vpcAssociations, vpcErr := resolverRulesToVpcIDs(svc) + if vpcErr != nil { + return nil, vpcErr } - var resources []resource.Resource - params := &route53resolver.ListResolverRulesInput{} for { resp, err := svc.ListResolverRules(params) @@ -52,10 +51,10 @@ func (l *Route53ResolverRuleLister) List(_ context.Context, o interface{}) ([]re for _, rule := range resp.ResolverRules { resources = append(resources, &Route53ResolverRule{ svc: svc, - id: rule.Id, - name: rule.Name, - domainName: rule.DomainName, vpcIds: vpcAssociations[*rule.Id], + ID: rule.Id, + Name: rule.Name, + DomainName: rule.DomainName, }) } @@ -108,20 +107,21 @@ func resolverRulesToVpcIDs(svc *route53resolver.Route53Resolver) (map[string][]* // Route53ResolverRule is the resource type type Route53ResolverRule struct { svc *route53resolver.Route53Resolver - id *string - name *string - domainName *string vpcIds []*string + ID *string + Name *string + DomainName *string } // Filter removes resources automatically from being nuked func (r *Route53ResolverRule) Filter() error { - if r.domainName != nil && ptr.ToString(r.domainName) == "." { - return fmt.Errorf(`filtering DomainName "."`) + if strings.HasPrefix(ptr.ToString(r.ID), "rslvr-autodefined-rr") { + return fmt.Errorf("cannot delete system defined rules") } - if r.id != nil && strings.HasPrefix(ptr.ToString(r.id), "rslvr-autodefined-rr") { - return fmt.Errorf("cannot delete system defined rules") + // TODO: is this needed if the system defined is already filtered? + if r.DomainName != nil && ptr.ToString(r.DomainName) == "." { + return fmt.Errorf(`filtering DomainName "."`) } return nil @@ -131,7 +131,7 @@ func (r *Route53ResolverRule) Filter() error { func (r *Route53ResolverRule) Remove(_ context.Context) error { for _, vpcID := range r.vpcIds { _, err := r.svc.DisassociateResolverRule(&route53resolver.DisassociateResolverRuleInput{ - ResolverRuleId: r.id, + ResolverRuleId: r.ID, VPCId: vpcID, }) @@ -141,7 +141,7 @@ func (r *Route53ResolverRule) Remove(_ context.Context) error { } _, err := r.svc.DeleteResolverRule(&route53resolver.DeleteResolverRuleInput{ - ResolverRuleId: r.id, + ResolverRuleId: r.ID, }) return err @@ -149,12 +149,10 @@ func (r *Route53ResolverRule) Remove(_ context.Context) error { // Properties provides debugging output func (r *Route53ResolverRule) Properties() types.Properties { - return types.NewProperties(). - Set("ID", r.id). - Set("Name", r.name) + return types.NewPropertiesFromStruct(r) } // String implements Stringer func (r *Route53ResolverRule) String() string { - return fmt.Sprintf("%s (%s)", *r.id, *r.name) + return fmt.Sprintf("%s (%s)", ptr.ToString(r.ID), ptr.ToString(r.Name)) } From e75b62bdec73c622f28f8ca84b7a925a5b2edd13 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 11 Sep 2024 11:53:01 -0600 Subject: [PATCH 460/617] test(route53): adding mocks for testing route53 --- mocks/mock_route53iface/mock.go | 3801 +++++++++++++++++++++++++++++++ resources/route53_mock_test.go | 4 + 2 files changed, 3805 insertions(+) create mode 100644 mocks/mock_route53iface/mock.go create mode 100644 resources/route53_mock_test.go diff --git a/mocks/mock_route53iface/mock.go b/mocks/mock_route53iface/mock.go new file mode 100644 index 00000000..c7d73ef0 --- /dev/null +++ b/mocks/mock_route53iface/mock.go @@ -0,0 +1,3801 @@ +// Code generated by MockGen. DO NOT EDIT. +// Source: /Users/ekristen/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.20/service/route53/route53iface/interface.go + +// Package mock_route53iface is a generated GoMock package. +package mock_route53iface + +import ( + reflect "reflect" + + aws "github.com/aws/aws-sdk-go/aws" + request "github.com/aws/aws-sdk-go/aws/request" + route53 "github.com/aws/aws-sdk-go/service/route53" + gomock "github.com/golang/mock/gomock" +) + +// MockRoute53API is a mock of Route53API interface. +type MockRoute53API struct { + ctrl *gomock.Controller + recorder *MockRoute53APIMockRecorder +} + +// MockRoute53APIMockRecorder is the mock recorder for MockRoute53API. +type MockRoute53APIMockRecorder struct { + mock *MockRoute53API +} + +// NewMockRoute53API creates a new mock instance. +func NewMockRoute53API(ctrl *gomock.Controller) *MockRoute53API { + mock := &MockRoute53API{ctrl: ctrl} + mock.recorder = &MockRoute53APIMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockRoute53API) EXPECT() *MockRoute53APIMockRecorder { + return m.recorder +} + +// ActivateKeySigningKey mocks base method. +func (m *MockRoute53API) ActivateKeySigningKey(arg0 *route53.ActivateKeySigningKeyInput) (*route53.ActivateKeySigningKeyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ActivateKeySigningKey", arg0) + ret0, _ := ret[0].(*route53.ActivateKeySigningKeyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ActivateKeySigningKey indicates an expected call of ActivateKeySigningKey. +func (mr *MockRoute53APIMockRecorder) ActivateKeySigningKey(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActivateKeySigningKey", reflect.TypeOf((*MockRoute53API)(nil).ActivateKeySigningKey), arg0) +} + +// ActivateKeySigningKeyRequest mocks base method. +func (m *MockRoute53API) ActivateKeySigningKeyRequest(arg0 *route53.ActivateKeySigningKeyInput) (*request.Request, *route53.ActivateKeySigningKeyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ActivateKeySigningKeyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.ActivateKeySigningKeyOutput) + return ret0, ret1 +} + +// ActivateKeySigningKeyRequest indicates an expected call of ActivateKeySigningKeyRequest. +func (mr *MockRoute53APIMockRecorder) ActivateKeySigningKeyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActivateKeySigningKeyRequest", reflect.TypeOf((*MockRoute53API)(nil).ActivateKeySigningKeyRequest), arg0) +} + +// ActivateKeySigningKeyWithContext mocks base method. +func (m *MockRoute53API) ActivateKeySigningKeyWithContext(arg0 aws.Context, arg1 *route53.ActivateKeySigningKeyInput, arg2 ...request.Option) (*route53.ActivateKeySigningKeyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ActivateKeySigningKeyWithContext", varargs...) + ret0, _ := ret[0].(*route53.ActivateKeySigningKeyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ActivateKeySigningKeyWithContext indicates an expected call of ActivateKeySigningKeyWithContext. +func (mr *MockRoute53APIMockRecorder) ActivateKeySigningKeyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActivateKeySigningKeyWithContext", reflect.TypeOf((*MockRoute53API)(nil).ActivateKeySigningKeyWithContext), varargs...) +} + +// AssociateVPCWithHostedZone mocks base method. +func (m *MockRoute53API) AssociateVPCWithHostedZone(arg0 *route53.AssociateVPCWithHostedZoneInput) (*route53.AssociateVPCWithHostedZoneOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AssociateVPCWithHostedZone", arg0) + ret0, _ := ret[0].(*route53.AssociateVPCWithHostedZoneOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AssociateVPCWithHostedZone indicates an expected call of AssociateVPCWithHostedZone. +func (mr *MockRoute53APIMockRecorder) AssociateVPCWithHostedZone(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssociateVPCWithHostedZone", reflect.TypeOf((*MockRoute53API)(nil).AssociateVPCWithHostedZone), arg0) +} + +// AssociateVPCWithHostedZoneRequest mocks base method. +func (m *MockRoute53API) AssociateVPCWithHostedZoneRequest(arg0 *route53.AssociateVPCWithHostedZoneInput) (*request.Request, *route53.AssociateVPCWithHostedZoneOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AssociateVPCWithHostedZoneRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.AssociateVPCWithHostedZoneOutput) + return ret0, ret1 +} + +// AssociateVPCWithHostedZoneRequest indicates an expected call of AssociateVPCWithHostedZoneRequest. +func (mr *MockRoute53APIMockRecorder) AssociateVPCWithHostedZoneRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssociateVPCWithHostedZoneRequest", reflect.TypeOf((*MockRoute53API)(nil).AssociateVPCWithHostedZoneRequest), arg0) +} + +// AssociateVPCWithHostedZoneWithContext mocks base method. +func (m *MockRoute53API) AssociateVPCWithHostedZoneWithContext(arg0 aws.Context, arg1 *route53.AssociateVPCWithHostedZoneInput, arg2 ...request.Option) (*route53.AssociateVPCWithHostedZoneOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AssociateVPCWithHostedZoneWithContext", varargs...) + ret0, _ := ret[0].(*route53.AssociateVPCWithHostedZoneOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AssociateVPCWithHostedZoneWithContext indicates an expected call of AssociateVPCWithHostedZoneWithContext. +func (mr *MockRoute53APIMockRecorder) AssociateVPCWithHostedZoneWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssociateVPCWithHostedZoneWithContext", reflect.TypeOf((*MockRoute53API)(nil).AssociateVPCWithHostedZoneWithContext), varargs...) +} + +// ChangeCidrCollection mocks base method. +func (m *MockRoute53API) ChangeCidrCollection(arg0 *route53.ChangeCidrCollectionInput) (*route53.ChangeCidrCollectionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ChangeCidrCollection", arg0) + ret0, _ := ret[0].(*route53.ChangeCidrCollectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ChangeCidrCollection indicates an expected call of ChangeCidrCollection. +func (mr *MockRoute53APIMockRecorder) ChangeCidrCollection(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChangeCidrCollection", reflect.TypeOf((*MockRoute53API)(nil).ChangeCidrCollection), arg0) +} + +// ChangeCidrCollectionRequest mocks base method. +func (m *MockRoute53API) ChangeCidrCollectionRequest(arg0 *route53.ChangeCidrCollectionInput) (*request.Request, *route53.ChangeCidrCollectionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ChangeCidrCollectionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.ChangeCidrCollectionOutput) + return ret0, ret1 +} + +// ChangeCidrCollectionRequest indicates an expected call of ChangeCidrCollectionRequest. +func (mr *MockRoute53APIMockRecorder) ChangeCidrCollectionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChangeCidrCollectionRequest", reflect.TypeOf((*MockRoute53API)(nil).ChangeCidrCollectionRequest), arg0) +} + +// ChangeCidrCollectionWithContext mocks base method. +func (m *MockRoute53API) ChangeCidrCollectionWithContext(arg0 aws.Context, arg1 *route53.ChangeCidrCollectionInput, arg2 ...request.Option) (*route53.ChangeCidrCollectionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ChangeCidrCollectionWithContext", varargs...) + ret0, _ := ret[0].(*route53.ChangeCidrCollectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ChangeCidrCollectionWithContext indicates an expected call of ChangeCidrCollectionWithContext. +func (mr *MockRoute53APIMockRecorder) ChangeCidrCollectionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChangeCidrCollectionWithContext", reflect.TypeOf((*MockRoute53API)(nil).ChangeCidrCollectionWithContext), varargs...) +} + +// ChangeResourceRecordSets mocks base method. +func (m *MockRoute53API) ChangeResourceRecordSets(arg0 *route53.ChangeResourceRecordSetsInput) (*route53.ChangeResourceRecordSetsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ChangeResourceRecordSets", arg0) + ret0, _ := ret[0].(*route53.ChangeResourceRecordSetsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ChangeResourceRecordSets indicates an expected call of ChangeResourceRecordSets. +func (mr *MockRoute53APIMockRecorder) ChangeResourceRecordSets(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChangeResourceRecordSets", reflect.TypeOf((*MockRoute53API)(nil).ChangeResourceRecordSets), arg0) +} + +// ChangeResourceRecordSetsRequest mocks base method. +func (m *MockRoute53API) ChangeResourceRecordSetsRequest(arg0 *route53.ChangeResourceRecordSetsInput) (*request.Request, *route53.ChangeResourceRecordSetsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ChangeResourceRecordSetsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.ChangeResourceRecordSetsOutput) + return ret0, ret1 +} + +// ChangeResourceRecordSetsRequest indicates an expected call of ChangeResourceRecordSetsRequest. +func (mr *MockRoute53APIMockRecorder) ChangeResourceRecordSetsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChangeResourceRecordSetsRequest", reflect.TypeOf((*MockRoute53API)(nil).ChangeResourceRecordSetsRequest), arg0) +} + +// ChangeResourceRecordSetsWithContext mocks base method. +func (m *MockRoute53API) ChangeResourceRecordSetsWithContext(arg0 aws.Context, arg1 *route53.ChangeResourceRecordSetsInput, arg2 ...request.Option) (*route53.ChangeResourceRecordSetsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ChangeResourceRecordSetsWithContext", varargs...) + ret0, _ := ret[0].(*route53.ChangeResourceRecordSetsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ChangeResourceRecordSetsWithContext indicates an expected call of ChangeResourceRecordSetsWithContext. +func (mr *MockRoute53APIMockRecorder) ChangeResourceRecordSetsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChangeResourceRecordSetsWithContext", reflect.TypeOf((*MockRoute53API)(nil).ChangeResourceRecordSetsWithContext), varargs...) +} + +// ChangeTagsForResource mocks base method. +func (m *MockRoute53API) ChangeTagsForResource(arg0 *route53.ChangeTagsForResourceInput) (*route53.ChangeTagsForResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ChangeTagsForResource", arg0) + ret0, _ := ret[0].(*route53.ChangeTagsForResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ChangeTagsForResource indicates an expected call of ChangeTagsForResource. +func (mr *MockRoute53APIMockRecorder) ChangeTagsForResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChangeTagsForResource", reflect.TypeOf((*MockRoute53API)(nil).ChangeTagsForResource), arg0) +} + +// ChangeTagsForResourceRequest mocks base method. +func (m *MockRoute53API) ChangeTagsForResourceRequest(arg0 *route53.ChangeTagsForResourceInput) (*request.Request, *route53.ChangeTagsForResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ChangeTagsForResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.ChangeTagsForResourceOutput) + return ret0, ret1 +} + +// ChangeTagsForResourceRequest indicates an expected call of ChangeTagsForResourceRequest. +func (mr *MockRoute53APIMockRecorder) ChangeTagsForResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChangeTagsForResourceRequest", reflect.TypeOf((*MockRoute53API)(nil).ChangeTagsForResourceRequest), arg0) +} + +// ChangeTagsForResourceWithContext mocks base method. +func (m *MockRoute53API) ChangeTagsForResourceWithContext(arg0 aws.Context, arg1 *route53.ChangeTagsForResourceInput, arg2 ...request.Option) (*route53.ChangeTagsForResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ChangeTagsForResourceWithContext", varargs...) + ret0, _ := ret[0].(*route53.ChangeTagsForResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ChangeTagsForResourceWithContext indicates an expected call of ChangeTagsForResourceWithContext. +func (mr *MockRoute53APIMockRecorder) ChangeTagsForResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChangeTagsForResourceWithContext", reflect.TypeOf((*MockRoute53API)(nil).ChangeTagsForResourceWithContext), varargs...) +} + +// CreateCidrCollection mocks base method. +func (m *MockRoute53API) CreateCidrCollection(arg0 *route53.CreateCidrCollectionInput) (*route53.CreateCidrCollectionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateCidrCollection", arg0) + ret0, _ := ret[0].(*route53.CreateCidrCollectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateCidrCollection indicates an expected call of CreateCidrCollection. +func (mr *MockRoute53APIMockRecorder) CreateCidrCollection(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCidrCollection", reflect.TypeOf((*MockRoute53API)(nil).CreateCidrCollection), arg0) +} + +// CreateCidrCollectionRequest mocks base method. +func (m *MockRoute53API) CreateCidrCollectionRequest(arg0 *route53.CreateCidrCollectionInput) (*request.Request, *route53.CreateCidrCollectionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateCidrCollectionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.CreateCidrCollectionOutput) + return ret0, ret1 +} + +// CreateCidrCollectionRequest indicates an expected call of CreateCidrCollectionRequest. +func (mr *MockRoute53APIMockRecorder) CreateCidrCollectionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCidrCollectionRequest", reflect.TypeOf((*MockRoute53API)(nil).CreateCidrCollectionRequest), arg0) +} + +// CreateCidrCollectionWithContext mocks base method. +func (m *MockRoute53API) CreateCidrCollectionWithContext(arg0 aws.Context, arg1 *route53.CreateCidrCollectionInput, arg2 ...request.Option) (*route53.CreateCidrCollectionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateCidrCollectionWithContext", varargs...) + ret0, _ := ret[0].(*route53.CreateCidrCollectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateCidrCollectionWithContext indicates an expected call of CreateCidrCollectionWithContext. +func (mr *MockRoute53APIMockRecorder) CreateCidrCollectionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCidrCollectionWithContext", reflect.TypeOf((*MockRoute53API)(nil).CreateCidrCollectionWithContext), varargs...) +} + +// CreateHealthCheck mocks base method. +func (m *MockRoute53API) CreateHealthCheck(arg0 *route53.CreateHealthCheckInput) (*route53.CreateHealthCheckOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateHealthCheck", arg0) + ret0, _ := ret[0].(*route53.CreateHealthCheckOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateHealthCheck indicates an expected call of CreateHealthCheck. +func (mr *MockRoute53APIMockRecorder) CreateHealthCheck(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateHealthCheck", reflect.TypeOf((*MockRoute53API)(nil).CreateHealthCheck), arg0) +} + +// CreateHealthCheckRequest mocks base method. +func (m *MockRoute53API) CreateHealthCheckRequest(arg0 *route53.CreateHealthCheckInput) (*request.Request, *route53.CreateHealthCheckOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateHealthCheckRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.CreateHealthCheckOutput) + return ret0, ret1 +} + +// CreateHealthCheckRequest indicates an expected call of CreateHealthCheckRequest. +func (mr *MockRoute53APIMockRecorder) CreateHealthCheckRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateHealthCheckRequest", reflect.TypeOf((*MockRoute53API)(nil).CreateHealthCheckRequest), arg0) +} + +// CreateHealthCheckWithContext mocks base method. +func (m *MockRoute53API) CreateHealthCheckWithContext(arg0 aws.Context, arg1 *route53.CreateHealthCheckInput, arg2 ...request.Option) (*route53.CreateHealthCheckOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateHealthCheckWithContext", varargs...) + ret0, _ := ret[0].(*route53.CreateHealthCheckOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateHealthCheckWithContext indicates an expected call of CreateHealthCheckWithContext. +func (mr *MockRoute53APIMockRecorder) CreateHealthCheckWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateHealthCheckWithContext", reflect.TypeOf((*MockRoute53API)(nil).CreateHealthCheckWithContext), varargs...) +} + +// CreateHostedZone mocks base method. +func (m *MockRoute53API) CreateHostedZone(arg0 *route53.CreateHostedZoneInput) (*route53.CreateHostedZoneOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateHostedZone", arg0) + ret0, _ := ret[0].(*route53.CreateHostedZoneOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateHostedZone indicates an expected call of CreateHostedZone. +func (mr *MockRoute53APIMockRecorder) CreateHostedZone(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateHostedZone", reflect.TypeOf((*MockRoute53API)(nil).CreateHostedZone), arg0) +} + +// CreateHostedZoneRequest mocks base method. +func (m *MockRoute53API) CreateHostedZoneRequest(arg0 *route53.CreateHostedZoneInput) (*request.Request, *route53.CreateHostedZoneOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateHostedZoneRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.CreateHostedZoneOutput) + return ret0, ret1 +} + +// CreateHostedZoneRequest indicates an expected call of CreateHostedZoneRequest. +func (mr *MockRoute53APIMockRecorder) CreateHostedZoneRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateHostedZoneRequest", reflect.TypeOf((*MockRoute53API)(nil).CreateHostedZoneRequest), arg0) +} + +// CreateHostedZoneWithContext mocks base method. +func (m *MockRoute53API) CreateHostedZoneWithContext(arg0 aws.Context, arg1 *route53.CreateHostedZoneInput, arg2 ...request.Option) (*route53.CreateHostedZoneOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateHostedZoneWithContext", varargs...) + ret0, _ := ret[0].(*route53.CreateHostedZoneOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateHostedZoneWithContext indicates an expected call of CreateHostedZoneWithContext. +func (mr *MockRoute53APIMockRecorder) CreateHostedZoneWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateHostedZoneWithContext", reflect.TypeOf((*MockRoute53API)(nil).CreateHostedZoneWithContext), varargs...) +} + +// CreateKeySigningKey mocks base method. +func (m *MockRoute53API) CreateKeySigningKey(arg0 *route53.CreateKeySigningKeyInput) (*route53.CreateKeySigningKeyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateKeySigningKey", arg0) + ret0, _ := ret[0].(*route53.CreateKeySigningKeyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateKeySigningKey indicates an expected call of CreateKeySigningKey. +func (mr *MockRoute53APIMockRecorder) CreateKeySigningKey(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateKeySigningKey", reflect.TypeOf((*MockRoute53API)(nil).CreateKeySigningKey), arg0) +} + +// CreateKeySigningKeyRequest mocks base method. +func (m *MockRoute53API) CreateKeySigningKeyRequest(arg0 *route53.CreateKeySigningKeyInput) (*request.Request, *route53.CreateKeySigningKeyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateKeySigningKeyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.CreateKeySigningKeyOutput) + return ret0, ret1 +} + +// CreateKeySigningKeyRequest indicates an expected call of CreateKeySigningKeyRequest. +func (mr *MockRoute53APIMockRecorder) CreateKeySigningKeyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateKeySigningKeyRequest", reflect.TypeOf((*MockRoute53API)(nil).CreateKeySigningKeyRequest), arg0) +} + +// CreateKeySigningKeyWithContext mocks base method. +func (m *MockRoute53API) CreateKeySigningKeyWithContext(arg0 aws.Context, arg1 *route53.CreateKeySigningKeyInput, arg2 ...request.Option) (*route53.CreateKeySigningKeyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateKeySigningKeyWithContext", varargs...) + ret0, _ := ret[0].(*route53.CreateKeySigningKeyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateKeySigningKeyWithContext indicates an expected call of CreateKeySigningKeyWithContext. +func (mr *MockRoute53APIMockRecorder) CreateKeySigningKeyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateKeySigningKeyWithContext", reflect.TypeOf((*MockRoute53API)(nil).CreateKeySigningKeyWithContext), varargs...) +} + +// CreateQueryLoggingConfig mocks base method. +func (m *MockRoute53API) CreateQueryLoggingConfig(arg0 *route53.CreateQueryLoggingConfigInput) (*route53.CreateQueryLoggingConfigOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateQueryLoggingConfig", arg0) + ret0, _ := ret[0].(*route53.CreateQueryLoggingConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateQueryLoggingConfig indicates an expected call of CreateQueryLoggingConfig. +func (mr *MockRoute53APIMockRecorder) CreateQueryLoggingConfig(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateQueryLoggingConfig", reflect.TypeOf((*MockRoute53API)(nil).CreateQueryLoggingConfig), arg0) +} + +// CreateQueryLoggingConfigRequest mocks base method. +func (m *MockRoute53API) CreateQueryLoggingConfigRequest(arg0 *route53.CreateQueryLoggingConfigInput) (*request.Request, *route53.CreateQueryLoggingConfigOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateQueryLoggingConfigRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.CreateQueryLoggingConfigOutput) + return ret0, ret1 +} + +// CreateQueryLoggingConfigRequest indicates an expected call of CreateQueryLoggingConfigRequest. +func (mr *MockRoute53APIMockRecorder) CreateQueryLoggingConfigRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateQueryLoggingConfigRequest", reflect.TypeOf((*MockRoute53API)(nil).CreateQueryLoggingConfigRequest), arg0) +} + +// CreateQueryLoggingConfigWithContext mocks base method. +func (m *MockRoute53API) CreateQueryLoggingConfigWithContext(arg0 aws.Context, arg1 *route53.CreateQueryLoggingConfigInput, arg2 ...request.Option) (*route53.CreateQueryLoggingConfigOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateQueryLoggingConfigWithContext", varargs...) + ret0, _ := ret[0].(*route53.CreateQueryLoggingConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateQueryLoggingConfigWithContext indicates an expected call of CreateQueryLoggingConfigWithContext. +func (mr *MockRoute53APIMockRecorder) CreateQueryLoggingConfigWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateQueryLoggingConfigWithContext", reflect.TypeOf((*MockRoute53API)(nil).CreateQueryLoggingConfigWithContext), varargs...) +} + +// CreateReusableDelegationSet mocks base method. +func (m *MockRoute53API) CreateReusableDelegationSet(arg0 *route53.CreateReusableDelegationSetInput) (*route53.CreateReusableDelegationSetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateReusableDelegationSet", arg0) + ret0, _ := ret[0].(*route53.CreateReusableDelegationSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateReusableDelegationSet indicates an expected call of CreateReusableDelegationSet. +func (mr *MockRoute53APIMockRecorder) CreateReusableDelegationSet(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateReusableDelegationSet", reflect.TypeOf((*MockRoute53API)(nil).CreateReusableDelegationSet), arg0) +} + +// CreateReusableDelegationSetRequest mocks base method. +func (m *MockRoute53API) CreateReusableDelegationSetRequest(arg0 *route53.CreateReusableDelegationSetInput) (*request.Request, *route53.CreateReusableDelegationSetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateReusableDelegationSetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.CreateReusableDelegationSetOutput) + return ret0, ret1 +} + +// CreateReusableDelegationSetRequest indicates an expected call of CreateReusableDelegationSetRequest. +func (mr *MockRoute53APIMockRecorder) CreateReusableDelegationSetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateReusableDelegationSetRequest", reflect.TypeOf((*MockRoute53API)(nil).CreateReusableDelegationSetRequest), arg0) +} + +// CreateReusableDelegationSetWithContext mocks base method. +func (m *MockRoute53API) CreateReusableDelegationSetWithContext(arg0 aws.Context, arg1 *route53.CreateReusableDelegationSetInput, arg2 ...request.Option) (*route53.CreateReusableDelegationSetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateReusableDelegationSetWithContext", varargs...) + ret0, _ := ret[0].(*route53.CreateReusableDelegationSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateReusableDelegationSetWithContext indicates an expected call of CreateReusableDelegationSetWithContext. +func (mr *MockRoute53APIMockRecorder) CreateReusableDelegationSetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateReusableDelegationSetWithContext", reflect.TypeOf((*MockRoute53API)(nil).CreateReusableDelegationSetWithContext), varargs...) +} + +// CreateTrafficPolicy mocks base method. +func (m *MockRoute53API) CreateTrafficPolicy(arg0 *route53.CreateTrafficPolicyInput) (*route53.CreateTrafficPolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateTrafficPolicy", arg0) + ret0, _ := ret[0].(*route53.CreateTrafficPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateTrafficPolicy indicates an expected call of CreateTrafficPolicy. +func (mr *MockRoute53APIMockRecorder) CreateTrafficPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTrafficPolicy", reflect.TypeOf((*MockRoute53API)(nil).CreateTrafficPolicy), arg0) +} + +// CreateTrafficPolicyInstance mocks base method. +func (m *MockRoute53API) CreateTrafficPolicyInstance(arg0 *route53.CreateTrafficPolicyInstanceInput) (*route53.CreateTrafficPolicyInstanceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateTrafficPolicyInstance", arg0) + ret0, _ := ret[0].(*route53.CreateTrafficPolicyInstanceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateTrafficPolicyInstance indicates an expected call of CreateTrafficPolicyInstance. +func (mr *MockRoute53APIMockRecorder) CreateTrafficPolicyInstance(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTrafficPolicyInstance", reflect.TypeOf((*MockRoute53API)(nil).CreateTrafficPolicyInstance), arg0) +} + +// CreateTrafficPolicyInstanceRequest mocks base method. +func (m *MockRoute53API) CreateTrafficPolicyInstanceRequest(arg0 *route53.CreateTrafficPolicyInstanceInput) (*request.Request, *route53.CreateTrafficPolicyInstanceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateTrafficPolicyInstanceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.CreateTrafficPolicyInstanceOutput) + return ret0, ret1 +} + +// CreateTrafficPolicyInstanceRequest indicates an expected call of CreateTrafficPolicyInstanceRequest. +func (mr *MockRoute53APIMockRecorder) CreateTrafficPolicyInstanceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTrafficPolicyInstanceRequest", reflect.TypeOf((*MockRoute53API)(nil).CreateTrafficPolicyInstanceRequest), arg0) +} + +// CreateTrafficPolicyInstanceWithContext mocks base method. +func (m *MockRoute53API) CreateTrafficPolicyInstanceWithContext(arg0 aws.Context, arg1 *route53.CreateTrafficPolicyInstanceInput, arg2 ...request.Option) (*route53.CreateTrafficPolicyInstanceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateTrafficPolicyInstanceWithContext", varargs...) + ret0, _ := ret[0].(*route53.CreateTrafficPolicyInstanceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateTrafficPolicyInstanceWithContext indicates an expected call of CreateTrafficPolicyInstanceWithContext. +func (mr *MockRoute53APIMockRecorder) CreateTrafficPolicyInstanceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTrafficPolicyInstanceWithContext", reflect.TypeOf((*MockRoute53API)(nil).CreateTrafficPolicyInstanceWithContext), varargs...) +} + +// CreateTrafficPolicyRequest mocks base method. +func (m *MockRoute53API) CreateTrafficPolicyRequest(arg0 *route53.CreateTrafficPolicyInput) (*request.Request, *route53.CreateTrafficPolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateTrafficPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.CreateTrafficPolicyOutput) + return ret0, ret1 +} + +// CreateTrafficPolicyRequest indicates an expected call of CreateTrafficPolicyRequest. +func (mr *MockRoute53APIMockRecorder) CreateTrafficPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTrafficPolicyRequest", reflect.TypeOf((*MockRoute53API)(nil).CreateTrafficPolicyRequest), arg0) +} + +// CreateTrafficPolicyVersion mocks base method. +func (m *MockRoute53API) CreateTrafficPolicyVersion(arg0 *route53.CreateTrafficPolicyVersionInput) (*route53.CreateTrafficPolicyVersionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateTrafficPolicyVersion", arg0) + ret0, _ := ret[0].(*route53.CreateTrafficPolicyVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateTrafficPolicyVersion indicates an expected call of CreateTrafficPolicyVersion. +func (mr *MockRoute53APIMockRecorder) CreateTrafficPolicyVersion(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTrafficPolicyVersion", reflect.TypeOf((*MockRoute53API)(nil).CreateTrafficPolicyVersion), arg0) +} + +// CreateTrafficPolicyVersionRequest mocks base method. +func (m *MockRoute53API) CreateTrafficPolicyVersionRequest(arg0 *route53.CreateTrafficPolicyVersionInput) (*request.Request, *route53.CreateTrafficPolicyVersionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateTrafficPolicyVersionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.CreateTrafficPolicyVersionOutput) + return ret0, ret1 +} + +// CreateTrafficPolicyVersionRequest indicates an expected call of CreateTrafficPolicyVersionRequest. +func (mr *MockRoute53APIMockRecorder) CreateTrafficPolicyVersionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTrafficPolicyVersionRequest", reflect.TypeOf((*MockRoute53API)(nil).CreateTrafficPolicyVersionRequest), arg0) +} + +// CreateTrafficPolicyVersionWithContext mocks base method. +func (m *MockRoute53API) CreateTrafficPolicyVersionWithContext(arg0 aws.Context, arg1 *route53.CreateTrafficPolicyVersionInput, arg2 ...request.Option) (*route53.CreateTrafficPolicyVersionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateTrafficPolicyVersionWithContext", varargs...) + ret0, _ := ret[0].(*route53.CreateTrafficPolicyVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateTrafficPolicyVersionWithContext indicates an expected call of CreateTrafficPolicyVersionWithContext. +func (mr *MockRoute53APIMockRecorder) CreateTrafficPolicyVersionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTrafficPolicyVersionWithContext", reflect.TypeOf((*MockRoute53API)(nil).CreateTrafficPolicyVersionWithContext), varargs...) +} + +// CreateTrafficPolicyWithContext mocks base method. +func (m *MockRoute53API) CreateTrafficPolicyWithContext(arg0 aws.Context, arg1 *route53.CreateTrafficPolicyInput, arg2 ...request.Option) (*route53.CreateTrafficPolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateTrafficPolicyWithContext", varargs...) + ret0, _ := ret[0].(*route53.CreateTrafficPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateTrafficPolicyWithContext indicates an expected call of CreateTrafficPolicyWithContext. +func (mr *MockRoute53APIMockRecorder) CreateTrafficPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTrafficPolicyWithContext", reflect.TypeOf((*MockRoute53API)(nil).CreateTrafficPolicyWithContext), varargs...) +} + +// CreateVPCAssociationAuthorization mocks base method. +func (m *MockRoute53API) CreateVPCAssociationAuthorization(arg0 *route53.CreateVPCAssociationAuthorizationInput) (*route53.CreateVPCAssociationAuthorizationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateVPCAssociationAuthorization", arg0) + ret0, _ := ret[0].(*route53.CreateVPCAssociationAuthorizationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateVPCAssociationAuthorization indicates an expected call of CreateVPCAssociationAuthorization. +func (mr *MockRoute53APIMockRecorder) CreateVPCAssociationAuthorization(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateVPCAssociationAuthorization", reflect.TypeOf((*MockRoute53API)(nil).CreateVPCAssociationAuthorization), arg0) +} + +// CreateVPCAssociationAuthorizationRequest mocks base method. +func (m *MockRoute53API) CreateVPCAssociationAuthorizationRequest(arg0 *route53.CreateVPCAssociationAuthorizationInput) (*request.Request, *route53.CreateVPCAssociationAuthorizationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateVPCAssociationAuthorizationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.CreateVPCAssociationAuthorizationOutput) + return ret0, ret1 +} + +// CreateVPCAssociationAuthorizationRequest indicates an expected call of CreateVPCAssociationAuthorizationRequest. +func (mr *MockRoute53APIMockRecorder) CreateVPCAssociationAuthorizationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateVPCAssociationAuthorizationRequest", reflect.TypeOf((*MockRoute53API)(nil).CreateVPCAssociationAuthorizationRequest), arg0) +} + +// CreateVPCAssociationAuthorizationWithContext mocks base method. +func (m *MockRoute53API) CreateVPCAssociationAuthorizationWithContext(arg0 aws.Context, arg1 *route53.CreateVPCAssociationAuthorizationInput, arg2 ...request.Option) (*route53.CreateVPCAssociationAuthorizationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateVPCAssociationAuthorizationWithContext", varargs...) + ret0, _ := ret[0].(*route53.CreateVPCAssociationAuthorizationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateVPCAssociationAuthorizationWithContext indicates an expected call of CreateVPCAssociationAuthorizationWithContext. +func (mr *MockRoute53APIMockRecorder) CreateVPCAssociationAuthorizationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateVPCAssociationAuthorizationWithContext", reflect.TypeOf((*MockRoute53API)(nil).CreateVPCAssociationAuthorizationWithContext), varargs...) +} + +// DeactivateKeySigningKey mocks base method. +func (m *MockRoute53API) DeactivateKeySigningKey(arg0 *route53.DeactivateKeySigningKeyInput) (*route53.DeactivateKeySigningKeyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeactivateKeySigningKey", arg0) + ret0, _ := ret[0].(*route53.DeactivateKeySigningKeyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeactivateKeySigningKey indicates an expected call of DeactivateKeySigningKey. +func (mr *MockRoute53APIMockRecorder) DeactivateKeySigningKey(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeactivateKeySigningKey", reflect.TypeOf((*MockRoute53API)(nil).DeactivateKeySigningKey), arg0) +} + +// DeactivateKeySigningKeyRequest mocks base method. +func (m *MockRoute53API) DeactivateKeySigningKeyRequest(arg0 *route53.DeactivateKeySigningKeyInput) (*request.Request, *route53.DeactivateKeySigningKeyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeactivateKeySigningKeyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.DeactivateKeySigningKeyOutput) + return ret0, ret1 +} + +// DeactivateKeySigningKeyRequest indicates an expected call of DeactivateKeySigningKeyRequest. +func (mr *MockRoute53APIMockRecorder) DeactivateKeySigningKeyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeactivateKeySigningKeyRequest", reflect.TypeOf((*MockRoute53API)(nil).DeactivateKeySigningKeyRequest), arg0) +} + +// DeactivateKeySigningKeyWithContext mocks base method. +func (m *MockRoute53API) DeactivateKeySigningKeyWithContext(arg0 aws.Context, arg1 *route53.DeactivateKeySigningKeyInput, arg2 ...request.Option) (*route53.DeactivateKeySigningKeyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeactivateKeySigningKeyWithContext", varargs...) + ret0, _ := ret[0].(*route53.DeactivateKeySigningKeyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeactivateKeySigningKeyWithContext indicates an expected call of DeactivateKeySigningKeyWithContext. +func (mr *MockRoute53APIMockRecorder) DeactivateKeySigningKeyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeactivateKeySigningKeyWithContext", reflect.TypeOf((*MockRoute53API)(nil).DeactivateKeySigningKeyWithContext), varargs...) +} + +// DeleteCidrCollection mocks base method. +func (m *MockRoute53API) DeleteCidrCollection(arg0 *route53.DeleteCidrCollectionInput) (*route53.DeleteCidrCollectionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteCidrCollection", arg0) + ret0, _ := ret[0].(*route53.DeleteCidrCollectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteCidrCollection indicates an expected call of DeleteCidrCollection. +func (mr *MockRoute53APIMockRecorder) DeleteCidrCollection(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCidrCollection", reflect.TypeOf((*MockRoute53API)(nil).DeleteCidrCollection), arg0) +} + +// DeleteCidrCollectionRequest mocks base method. +func (m *MockRoute53API) DeleteCidrCollectionRequest(arg0 *route53.DeleteCidrCollectionInput) (*request.Request, *route53.DeleteCidrCollectionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteCidrCollectionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.DeleteCidrCollectionOutput) + return ret0, ret1 +} + +// DeleteCidrCollectionRequest indicates an expected call of DeleteCidrCollectionRequest. +func (mr *MockRoute53APIMockRecorder) DeleteCidrCollectionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCidrCollectionRequest", reflect.TypeOf((*MockRoute53API)(nil).DeleteCidrCollectionRequest), arg0) +} + +// DeleteCidrCollectionWithContext mocks base method. +func (m *MockRoute53API) DeleteCidrCollectionWithContext(arg0 aws.Context, arg1 *route53.DeleteCidrCollectionInput, arg2 ...request.Option) (*route53.DeleteCidrCollectionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteCidrCollectionWithContext", varargs...) + ret0, _ := ret[0].(*route53.DeleteCidrCollectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteCidrCollectionWithContext indicates an expected call of DeleteCidrCollectionWithContext. +func (mr *MockRoute53APIMockRecorder) DeleteCidrCollectionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCidrCollectionWithContext", reflect.TypeOf((*MockRoute53API)(nil).DeleteCidrCollectionWithContext), varargs...) +} + +// DeleteHealthCheck mocks base method. +func (m *MockRoute53API) DeleteHealthCheck(arg0 *route53.DeleteHealthCheckInput) (*route53.DeleteHealthCheckOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteHealthCheck", arg0) + ret0, _ := ret[0].(*route53.DeleteHealthCheckOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteHealthCheck indicates an expected call of DeleteHealthCheck. +func (mr *MockRoute53APIMockRecorder) DeleteHealthCheck(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteHealthCheck", reflect.TypeOf((*MockRoute53API)(nil).DeleteHealthCheck), arg0) +} + +// DeleteHealthCheckRequest mocks base method. +func (m *MockRoute53API) DeleteHealthCheckRequest(arg0 *route53.DeleteHealthCheckInput) (*request.Request, *route53.DeleteHealthCheckOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteHealthCheckRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.DeleteHealthCheckOutput) + return ret0, ret1 +} + +// DeleteHealthCheckRequest indicates an expected call of DeleteHealthCheckRequest. +func (mr *MockRoute53APIMockRecorder) DeleteHealthCheckRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteHealthCheckRequest", reflect.TypeOf((*MockRoute53API)(nil).DeleteHealthCheckRequest), arg0) +} + +// DeleteHealthCheckWithContext mocks base method. +func (m *MockRoute53API) DeleteHealthCheckWithContext(arg0 aws.Context, arg1 *route53.DeleteHealthCheckInput, arg2 ...request.Option) (*route53.DeleteHealthCheckOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteHealthCheckWithContext", varargs...) + ret0, _ := ret[0].(*route53.DeleteHealthCheckOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteHealthCheckWithContext indicates an expected call of DeleteHealthCheckWithContext. +func (mr *MockRoute53APIMockRecorder) DeleteHealthCheckWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteHealthCheckWithContext", reflect.TypeOf((*MockRoute53API)(nil).DeleteHealthCheckWithContext), varargs...) +} + +// DeleteHostedZone mocks base method. +func (m *MockRoute53API) DeleteHostedZone(arg0 *route53.DeleteHostedZoneInput) (*route53.DeleteHostedZoneOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteHostedZone", arg0) + ret0, _ := ret[0].(*route53.DeleteHostedZoneOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteHostedZone indicates an expected call of DeleteHostedZone. +func (mr *MockRoute53APIMockRecorder) DeleteHostedZone(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteHostedZone", reflect.TypeOf((*MockRoute53API)(nil).DeleteHostedZone), arg0) +} + +// DeleteHostedZoneRequest mocks base method. +func (m *MockRoute53API) DeleteHostedZoneRequest(arg0 *route53.DeleteHostedZoneInput) (*request.Request, *route53.DeleteHostedZoneOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteHostedZoneRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.DeleteHostedZoneOutput) + return ret0, ret1 +} + +// DeleteHostedZoneRequest indicates an expected call of DeleteHostedZoneRequest. +func (mr *MockRoute53APIMockRecorder) DeleteHostedZoneRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteHostedZoneRequest", reflect.TypeOf((*MockRoute53API)(nil).DeleteHostedZoneRequest), arg0) +} + +// DeleteHostedZoneWithContext mocks base method. +func (m *MockRoute53API) DeleteHostedZoneWithContext(arg0 aws.Context, arg1 *route53.DeleteHostedZoneInput, arg2 ...request.Option) (*route53.DeleteHostedZoneOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteHostedZoneWithContext", varargs...) + ret0, _ := ret[0].(*route53.DeleteHostedZoneOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteHostedZoneWithContext indicates an expected call of DeleteHostedZoneWithContext. +func (mr *MockRoute53APIMockRecorder) DeleteHostedZoneWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteHostedZoneWithContext", reflect.TypeOf((*MockRoute53API)(nil).DeleteHostedZoneWithContext), varargs...) +} + +// DeleteKeySigningKey mocks base method. +func (m *MockRoute53API) DeleteKeySigningKey(arg0 *route53.DeleteKeySigningKeyInput) (*route53.DeleteKeySigningKeyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteKeySigningKey", arg0) + ret0, _ := ret[0].(*route53.DeleteKeySigningKeyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteKeySigningKey indicates an expected call of DeleteKeySigningKey. +func (mr *MockRoute53APIMockRecorder) DeleteKeySigningKey(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteKeySigningKey", reflect.TypeOf((*MockRoute53API)(nil).DeleteKeySigningKey), arg0) +} + +// DeleteKeySigningKeyRequest mocks base method. +func (m *MockRoute53API) DeleteKeySigningKeyRequest(arg0 *route53.DeleteKeySigningKeyInput) (*request.Request, *route53.DeleteKeySigningKeyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteKeySigningKeyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.DeleteKeySigningKeyOutput) + return ret0, ret1 +} + +// DeleteKeySigningKeyRequest indicates an expected call of DeleteKeySigningKeyRequest. +func (mr *MockRoute53APIMockRecorder) DeleteKeySigningKeyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteKeySigningKeyRequest", reflect.TypeOf((*MockRoute53API)(nil).DeleteKeySigningKeyRequest), arg0) +} + +// DeleteKeySigningKeyWithContext mocks base method. +func (m *MockRoute53API) DeleteKeySigningKeyWithContext(arg0 aws.Context, arg1 *route53.DeleteKeySigningKeyInput, arg2 ...request.Option) (*route53.DeleteKeySigningKeyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteKeySigningKeyWithContext", varargs...) + ret0, _ := ret[0].(*route53.DeleteKeySigningKeyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteKeySigningKeyWithContext indicates an expected call of DeleteKeySigningKeyWithContext. +func (mr *MockRoute53APIMockRecorder) DeleteKeySigningKeyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteKeySigningKeyWithContext", reflect.TypeOf((*MockRoute53API)(nil).DeleteKeySigningKeyWithContext), varargs...) +} + +// DeleteQueryLoggingConfig mocks base method. +func (m *MockRoute53API) DeleteQueryLoggingConfig(arg0 *route53.DeleteQueryLoggingConfigInput) (*route53.DeleteQueryLoggingConfigOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteQueryLoggingConfig", arg0) + ret0, _ := ret[0].(*route53.DeleteQueryLoggingConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteQueryLoggingConfig indicates an expected call of DeleteQueryLoggingConfig. +func (mr *MockRoute53APIMockRecorder) DeleteQueryLoggingConfig(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteQueryLoggingConfig", reflect.TypeOf((*MockRoute53API)(nil).DeleteQueryLoggingConfig), arg0) +} + +// DeleteQueryLoggingConfigRequest mocks base method. +func (m *MockRoute53API) DeleteQueryLoggingConfigRequest(arg0 *route53.DeleteQueryLoggingConfigInput) (*request.Request, *route53.DeleteQueryLoggingConfigOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteQueryLoggingConfigRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.DeleteQueryLoggingConfigOutput) + return ret0, ret1 +} + +// DeleteQueryLoggingConfigRequest indicates an expected call of DeleteQueryLoggingConfigRequest. +func (mr *MockRoute53APIMockRecorder) DeleteQueryLoggingConfigRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteQueryLoggingConfigRequest", reflect.TypeOf((*MockRoute53API)(nil).DeleteQueryLoggingConfigRequest), arg0) +} + +// DeleteQueryLoggingConfigWithContext mocks base method. +func (m *MockRoute53API) DeleteQueryLoggingConfigWithContext(arg0 aws.Context, arg1 *route53.DeleteQueryLoggingConfigInput, arg2 ...request.Option) (*route53.DeleteQueryLoggingConfigOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteQueryLoggingConfigWithContext", varargs...) + ret0, _ := ret[0].(*route53.DeleteQueryLoggingConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteQueryLoggingConfigWithContext indicates an expected call of DeleteQueryLoggingConfigWithContext. +func (mr *MockRoute53APIMockRecorder) DeleteQueryLoggingConfigWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteQueryLoggingConfigWithContext", reflect.TypeOf((*MockRoute53API)(nil).DeleteQueryLoggingConfigWithContext), varargs...) +} + +// DeleteReusableDelegationSet mocks base method. +func (m *MockRoute53API) DeleteReusableDelegationSet(arg0 *route53.DeleteReusableDelegationSetInput) (*route53.DeleteReusableDelegationSetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteReusableDelegationSet", arg0) + ret0, _ := ret[0].(*route53.DeleteReusableDelegationSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteReusableDelegationSet indicates an expected call of DeleteReusableDelegationSet. +func (mr *MockRoute53APIMockRecorder) DeleteReusableDelegationSet(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteReusableDelegationSet", reflect.TypeOf((*MockRoute53API)(nil).DeleteReusableDelegationSet), arg0) +} + +// DeleteReusableDelegationSetRequest mocks base method. +func (m *MockRoute53API) DeleteReusableDelegationSetRequest(arg0 *route53.DeleteReusableDelegationSetInput) (*request.Request, *route53.DeleteReusableDelegationSetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteReusableDelegationSetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.DeleteReusableDelegationSetOutput) + return ret0, ret1 +} + +// DeleteReusableDelegationSetRequest indicates an expected call of DeleteReusableDelegationSetRequest. +func (mr *MockRoute53APIMockRecorder) DeleteReusableDelegationSetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteReusableDelegationSetRequest", reflect.TypeOf((*MockRoute53API)(nil).DeleteReusableDelegationSetRequest), arg0) +} + +// DeleteReusableDelegationSetWithContext mocks base method. +func (m *MockRoute53API) DeleteReusableDelegationSetWithContext(arg0 aws.Context, arg1 *route53.DeleteReusableDelegationSetInput, arg2 ...request.Option) (*route53.DeleteReusableDelegationSetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteReusableDelegationSetWithContext", varargs...) + ret0, _ := ret[0].(*route53.DeleteReusableDelegationSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteReusableDelegationSetWithContext indicates an expected call of DeleteReusableDelegationSetWithContext. +func (mr *MockRoute53APIMockRecorder) DeleteReusableDelegationSetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteReusableDelegationSetWithContext", reflect.TypeOf((*MockRoute53API)(nil).DeleteReusableDelegationSetWithContext), varargs...) +} + +// DeleteTrafficPolicy mocks base method. +func (m *MockRoute53API) DeleteTrafficPolicy(arg0 *route53.DeleteTrafficPolicyInput) (*route53.DeleteTrafficPolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTrafficPolicy", arg0) + ret0, _ := ret[0].(*route53.DeleteTrafficPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTrafficPolicy indicates an expected call of DeleteTrafficPolicy. +func (mr *MockRoute53APIMockRecorder) DeleteTrafficPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTrafficPolicy", reflect.TypeOf((*MockRoute53API)(nil).DeleteTrafficPolicy), arg0) +} + +// DeleteTrafficPolicyInstance mocks base method. +func (m *MockRoute53API) DeleteTrafficPolicyInstance(arg0 *route53.DeleteTrafficPolicyInstanceInput) (*route53.DeleteTrafficPolicyInstanceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTrafficPolicyInstance", arg0) + ret0, _ := ret[0].(*route53.DeleteTrafficPolicyInstanceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTrafficPolicyInstance indicates an expected call of DeleteTrafficPolicyInstance. +func (mr *MockRoute53APIMockRecorder) DeleteTrafficPolicyInstance(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTrafficPolicyInstance", reflect.TypeOf((*MockRoute53API)(nil).DeleteTrafficPolicyInstance), arg0) +} + +// DeleteTrafficPolicyInstanceRequest mocks base method. +func (m *MockRoute53API) DeleteTrafficPolicyInstanceRequest(arg0 *route53.DeleteTrafficPolicyInstanceInput) (*request.Request, *route53.DeleteTrafficPolicyInstanceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTrafficPolicyInstanceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.DeleteTrafficPolicyInstanceOutput) + return ret0, ret1 +} + +// DeleteTrafficPolicyInstanceRequest indicates an expected call of DeleteTrafficPolicyInstanceRequest. +func (mr *MockRoute53APIMockRecorder) DeleteTrafficPolicyInstanceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTrafficPolicyInstanceRequest", reflect.TypeOf((*MockRoute53API)(nil).DeleteTrafficPolicyInstanceRequest), arg0) +} + +// DeleteTrafficPolicyInstanceWithContext mocks base method. +func (m *MockRoute53API) DeleteTrafficPolicyInstanceWithContext(arg0 aws.Context, arg1 *route53.DeleteTrafficPolicyInstanceInput, arg2 ...request.Option) (*route53.DeleteTrafficPolicyInstanceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteTrafficPolicyInstanceWithContext", varargs...) + ret0, _ := ret[0].(*route53.DeleteTrafficPolicyInstanceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTrafficPolicyInstanceWithContext indicates an expected call of DeleteTrafficPolicyInstanceWithContext. +func (mr *MockRoute53APIMockRecorder) DeleteTrafficPolicyInstanceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTrafficPolicyInstanceWithContext", reflect.TypeOf((*MockRoute53API)(nil).DeleteTrafficPolicyInstanceWithContext), varargs...) +} + +// DeleteTrafficPolicyRequest mocks base method. +func (m *MockRoute53API) DeleteTrafficPolicyRequest(arg0 *route53.DeleteTrafficPolicyInput) (*request.Request, *route53.DeleteTrafficPolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTrafficPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.DeleteTrafficPolicyOutput) + return ret0, ret1 +} + +// DeleteTrafficPolicyRequest indicates an expected call of DeleteTrafficPolicyRequest. +func (mr *MockRoute53APIMockRecorder) DeleteTrafficPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTrafficPolicyRequest", reflect.TypeOf((*MockRoute53API)(nil).DeleteTrafficPolicyRequest), arg0) +} + +// DeleteTrafficPolicyWithContext mocks base method. +func (m *MockRoute53API) DeleteTrafficPolicyWithContext(arg0 aws.Context, arg1 *route53.DeleteTrafficPolicyInput, arg2 ...request.Option) (*route53.DeleteTrafficPolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteTrafficPolicyWithContext", varargs...) + ret0, _ := ret[0].(*route53.DeleteTrafficPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTrafficPolicyWithContext indicates an expected call of DeleteTrafficPolicyWithContext. +func (mr *MockRoute53APIMockRecorder) DeleteTrafficPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTrafficPolicyWithContext", reflect.TypeOf((*MockRoute53API)(nil).DeleteTrafficPolicyWithContext), varargs...) +} + +// DeleteVPCAssociationAuthorization mocks base method. +func (m *MockRoute53API) DeleteVPCAssociationAuthorization(arg0 *route53.DeleteVPCAssociationAuthorizationInput) (*route53.DeleteVPCAssociationAuthorizationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteVPCAssociationAuthorization", arg0) + ret0, _ := ret[0].(*route53.DeleteVPCAssociationAuthorizationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteVPCAssociationAuthorization indicates an expected call of DeleteVPCAssociationAuthorization. +func (mr *MockRoute53APIMockRecorder) DeleteVPCAssociationAuthorization(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVPCAssociationAuthorization", reflect.TypeOf((*MockRoute53API)(nil).DeleteVPCAssociationAuthorization), arg0) +} + +// DeleteVPCAssociationAuthorizationRequest mocks base method. +func (m *MockRoute53API) DeleteVPCAssociationAuthorizationRequest(arg0 *route53.DeleteVPCAssociationAuthorizationInput) (*request.Request, *route53.DeleteVPCAssociationAuthorizationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteVPCAssociationAuthorizationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.DeleteVPCAssociationAuthorizationOutput) + return ret0, ret1 +} + +// DeleteVPCAssociationAuthorizationRequest indicates an expected call of DeleteVPCAssociationAuthorizationRequest. +func (mr *MockRoute53APIMockRecorder) DeleteVPCAssociationAuthorizationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVPCAssociationAuthorizationRequest", reflect.TypeOf((*MockRoute53API)(nil).DeleteVPCAssociationAuthorizationRequest), arg0) +} + +// DeleteVPCAssociationAuthorizationWithContext mocks base method. +func (m *MockRoute53API) DeleteVPCAssociationAuthorizationWithContext(arg0 aws.Context, arg1 *route53.DeleteVPCAssociationAuthorizationInput, arg2 ...request.Option) (*route53.DeleteVPCAssociationAuthorizationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteVPCAssociationAuthorizationWithContext", varargs...) + ret0, _ := ret[0].(*route53.DeleteVPCAssociationAuthorizationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteVPCAssociationAuthorizationWithContext indicates an expected call of DeleteVPCAssociationAuthorizationWithContext. +func (mr *MockRoute53APIMockRecorder) DeleteVPCAssociationAuthorizationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVPCAssociationAuthorizationWithContext", reflect.TypeOf((*MockRoute53API)(nil).DeleteVPCAssociationAuthorizationWithContext), varargs...) +} + +// DisableHostedZoneDNSSEC mocks base method. +func (m *MockRoute53API) DisableHostedZoneDNSSEC(arg0 *route53.DisableHostedZoneDNSSECInput) (*route53.DisableHostedZoneDNSSECOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DisableHostedZoneDNSSEC", arg0) + ret0, _ := ret[0].(*route53.DisableHostedZoneDNSSECOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DisableHostedZoneDNSSEC indicates an expected call of DisableHostedZoneDNSSEC. +func (mr *MockRoute53APIMockRecorder) DisableHostedZoneDNSSEC(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisableHostedZoneDNSSEC", reflect.TypeOf((*MockRoute53API)(nil).DisableHostedZoneDNSSEC), arg0) +} + +// DisableHostedZoneDNSSECRequest mocks base method. +func (m *MockRoute53API) DisableHostedZoneDNSSECRequest(arg0 *route53.DisableHostedZoneDNSSECInput) (*request.Request, *route53.DisableHostedZoneDNSSECOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DisableHostedZoneDNSSECRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.DisableHostedZoneDNSSECOutput) + return ret0, ret1 +} + +// DisableHostedZoneDNSSECRequest indicates an expected call of DisableHostedZoneDNSSECRequest. +func (mr *MockRoute53APIMockRecorder) DisableHostedZoneDNSSECRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisableHostedZoneDNSSECRequest", reflect.TypeOf((*MockRoute53API)(nil).DisableHostedZoneDNSSECRequest), arg0) +} + +// DisableHostedZoneDNSSECWithContext mocks base method. +func (m *MockRoute53API) DisableHostedZoneDNSSECWithContext(arg0 aws.Context, arg1 *route53.DisableHostedZoneDNSSECInput, arg2 ...request.Option) (*route53.DisableHostedZoneDNSSECOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DisableHostedZoneDNSSECWithContext", varargs...) + ret0, _ := ret[0].(*route53.DisableHostedZoneDNSSECOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DisableHostedZoneDNSSECWithContext indicates an expected call of DisableHostedZoneDNSSECWithContext. +func (mr *MockRoute53APIMockRecorder) DisableHostedZoneDNSSECWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisableHostedZoneDNSSECWithContext", reflect.TypeOf((*MockRoute53API)(nil).DisableHostedZoneDNSSECWithContext), varargs...) +} + +// DisassociateVPCFromHostedZone mocks base method. +func (m *MockRoute53API) DisassociateVPCFromHostedZone(arg0 *route53.DisassociateVPCFromHostedZoneInput) (*route53.DisassociateVPCFromHostedZoneOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DisassociateVPCFromHostedZone", arg0) + ret0, _ := ret[0].(*route53.DisassociateVPCFromHostedZoneOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DisassociateVPCFromHostedZone indicates an expected call of DisassociateVPCFromHostedZone. +func (mr *MockRoute53APIMockRecorder) DisassociateVPCFromHostedZone(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisassociateVPCFromHostedZone", reflect.TypeOf((*MockRoute53API)(nil).DisassociateVPCFromHostedZone), arg0) +} + +// DisassociateVPCFromHostedZoneRequest mocks base method. +func (m *MockRoute53API) DisassociateVPCFromHostedZoneRequest(arg0 *route53.DisassociateVPCFromHostedZoneInput) (*request.Request, *route53.DisassociateVPCFromHostedZoneOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DisassociateVPCFromHostedZoneRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.DisassociateVPCFromHostedZoneOutput) + return ret0, ret1 +} + +// DisassociateVPCFromHostedZoneRequest indicates an expected call of DisassociateVPCFromHostedZoneRequest. +func (mr *MockRoute53APIMockRecorder) DisassociateVPCFromHostedZoneRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisassociateVPCFromHostedZoneRequest", reflect.TypeOf((*MockRoute53API)(nil).DisassociateVPCFromHostedZoneRequest), arg0) +} + +// DisassociateVPCFromHostedZoneWithContext mocks base method. +func (m *MockRoute53API) DisassociateVPCFromHostedZoneWithContext(arg0 aws.Context, arg1 *route53.DisassociateVPCFromHostedZoneInput, arg2 ...request.Option) (*route53.DisassociateVPCFromHostedZoneOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DisassociateVPCFromHostedZoneWithContext", varargs...) + ret0, _ := ret[0].(*route53.DisassociateVPCFromHostedZoneOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DisassociateVPCFromHostedZoneWithContext indicates an expected call of DisassociateVPCFromHostedZoneWithContext. +func (mr *MockRoute53APIMockRecorder) DisassociateVPCFromHostedZoneWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisassociateVPCFromHostedZoneWithContext", reflect.TypeOf((*MockRoute53API)(nil).DisassociateVPCFromHostedZoneWithContext), varargs...) +} + +// EnableHostedZoneDNSSEC mocks base method. +func (m *MockRoute53API) EnableHostedZoneDNSSEC(arg0 *route53.EnableHostedZoneDNSSECInput) (*route53.EnableHostedZoneDNSSECOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "EnableHostedZoneDNSSEC", arg0) + ret0, _ := ret[0].(*route53.EnableHostedZoneDNSSECOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// EnableHostedZoneDNSSEC indicates an expected call of EnableHostedZoneDNSSEC. +func (mr *MockRoute53APIMockRecorder) EnableHostedZoneDNSSEC(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnableHostedZoneDNSSEC", reflect.TypeOf((*MockRoute53API)(nil).EnableHostedZoneDNSSEC), arg0) +} + +// EnableHostedZoneDNSSECRequest mocks base method. +func (m *MockRoute53API) EnableHostedZoneDNSSECRequest(arg0 *route53.EnableHostedZoneDNSSECInput) (*request.Request, *route53.EnableHostedZoneDNSSECOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "EnableHostedZoneDNSSECRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.EnableHostedZoneDNSSECOutput) + return ret0, ret1 +} + +// EnableHostedZoneDNSSECRequest indicates an expected call of EnableHostedZoneDNSSECRequest. +func (mr *MockRoute53APIMockRecorder) EnableHostedZoneDNSSECRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnableHostedZoneDNSSECRequest", reflect.TypeOf((*MockRoute53API)(nil).EnableHostedZoneDNSSECRequest), arg0) +} + +// EnableHostedZoneDNSSECWithContext mocks base method. +func (m *MockRoute53API) EnableHostedZoneDNSSECWithContext(arg0 aws.Context, arg1 *route53.EnableHostedZoneDNSSECInput, arg2 ...request.Option) (*route53.EnableHostedZoneDNSSECOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "EnableHostedZoneDNSSECWithContext", varargs...) + ret0, _ := ret[0].(*route53.EnableHostedZoneDNSSECOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// EnableHostedZoneDNSSECWithContext indicates an expected call of EnableHostedZoneDNSSECWithContext. +func (mr *MockRoute53APIMockRecorder) EnableHostedZoneDNSSECWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnableHostedZoneDNSSECWithContext", reflect.TypeOf((*MockRoute53API)(nil).EnableHostedZoneDNSSECWithContext), varargs...) +} + +// GetAccountLimit mocks base method. +func (m *MockRoute53API) GetAccountLimit(arg0 *route53.GetAccountLimitInput) (*route53.GetAccountLimitOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetAccountLimit", arg0) + ret0, _ := ret[0].(*route53.GetAccountLimitOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetAccountLimit indicates an expected call of GetAccountLimit. +func (mr *MockRoute53APIMockRecorder) GetAccountLimit(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccountLimit", reflect.TypeOf((*MockRoute53API)(nil).GetAccountLimit), arg0) +} + +// GetAccountLimitRequest mocks base method. +func (m *MockRoute53API) GetAccountLimitRequest(arg0 *route53.GetAccountLimitInput) (*request.Request, *route53.GetAccountLimitOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetAccountLimitRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.GetAccountLimitOutput) + return ret0, ret1 +} + +// GetAccountLimitRequest indicates an expected call of GetAccountLimitRequest. +func (mr *MockRoute53APIMockRecorder) GetAccountLimitRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccountLimitRequest", reflect.TypeOf((*MockRoute53API)(nil).GetAccountLimitRequest), arg0) +} + +// GetAccountLimitWithContext mocks base method. +func (m *MockRoute53API) GetAccountLimitWithContext(arg0 aws.Context, arg1 *route53.GetAccountLimitInput, arg2 ...request.Option) (*route53.GetAccountLimitOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetAccountLimitWithContext", varargs...) + ret0, _ := ret[0].(*route53.GetAccountLimitOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetAccountLimitWithContext indicates an expected call of GetAccountLimitWithContext. +func (mr *MockRoute53APIMockRecorder) GetAccountLimitWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccountLimitWithContext", reflect.TypeOf((*MockRoute53API)(nil).GetAccountLimitWithContext), varargs...) +} + +// GetChange mocks base method. +func (m *MockRoute53API) GetChange(arg0 *route53.GetChangeInput) (*route53.GetChangeOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetChange", arg0) + ret0, _ := ret[0].(*route53.GetChangeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetChange indicates an expected call of GetChange. +func (mr *MockRoute53APIMockRecorder) GetChange(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetChange", reflect.TypeOf((*MockRoute53API)(nil).GetChange), arg0) +} + +// GetChangeRequest mocks base method. +func (m *MockRoute53API) GetChangeRequest(arg0 *route53.GetChangeInput) (*request.Request, *route53.GetChangeOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetChangeRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.GetChangeOutput) + return ret0, ret1 +} + +// GetChangeRequest indicates an expected call of GetChangeRequest. +func (mr *MockRoute53APIMockRecorder) GetChangeRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetChangeRequest", reflect.TypeOf((*MockRoute53API)(nil).GetChangeRequest), arg0) +} + +// GetChangeWithContext mocks base method. +func (m *MockRoute53API) GetChangeWithContext(arg0 aws.Context, arg1 *route53.GetChangeInput, arg2 ...request.Option) (*route53.GetChangeOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetChangeWithContext", varargs...) + ret0, _ := ret[0].(*route53.GetChangeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetChangeWithContext indicates an expected call of GetChangeWithContext. +func (mr *MockRoute53APIMockRecorder) GetChangeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetChangeWithContext", reflect.TypeOf((*MockRoute53API)(nil).GetChangeWithContext), varargs...) +} + +// GetCheckerIpRanges mocks base method. +func (m *MockRoute53API) GetCheckerIpRanges(arg0 *route53.GetCheckerIpRangesInput) (*route53.GetCheckerIpRangesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetCheckerIpRanges", arg0) + ret0, _ := ret[0].(*route53.GetCheckerIpRangesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetCheckerIpRanges indicates an expected call of GetCheckerIpRanges. +func (mr *MockRoute53APIMockRecorder) GetCheckerIpRanges(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCheckerIpRanges", reflect.TypeOf((*MockRoute53API)(nil).GetCheckerIpRanges), arg0) +} + +// GetCheckerIpRangesRequest mocks base method. +func (m *MockRoute53API) GetCheckerIpRangesRequest(arg0 *route53.GetCheckerIpRangesInput) (*request.Request, *route53.GetCheckerIpRangesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetCheckerIpRangesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.GetCheckerIpRangesOutput) + return ret0, ret1 +} + +// GetCheckerIpRangesRequest indicates an expected call of GetCheckerIpRangesRequest. +func (mr *MockRoute53APIMockRecorder) GetCheckerIpRangesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCheckerIpRangesRequest", reflect.TypeOf((*MockRoute53API)(nil).GetCheckerIpRangesRequest), arg0) +} + +// GetCheckerIpRangesWithContext mocks base method. +func (m *MockRoute53API) GetCheckerIpRangesWithContext(arg0 aws.Context, arg1 *route53.GetCheckerIpRangesInput, arg2 ...request.Option) (*route53.GetCheckerIpRangesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetCheckerIpRangesWithContext", varargs...) + ret0, _ := ret[0].(*route53.GetCheckerIpRangesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetCheckerIpRangesWithContext indicates an expected call of GetCheckerIpRangesWithContext. +func (mr *MockRoute53APIMockRecorder) GetCheckerIpRangesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCheckerIpRangesWithContext", reflect.TypeOf((*MockRoute53API)(nil).GetCheckerIpRangesWithContext), varargs...) +} + +// GetDNSSEC mocks base method. +func (m *MockRoute53API) GetDNSSEC(arg0 *route53.GetDNSSECInput) (*route53.GetDNSSECOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetDNSSEC", arg0) + ret0, _ := ret[0].(*route53.GetDNSSECOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetDNSSEC indicates an expected call of GetDNSSEC. +func (mr *MockRoute53APIMockRecorder) GetDNSSEC(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDNSSEC", reflect.TypeOf((*MockRoute53API)(nil).GetDNSSEC), arg0) +} + +// GetDNSSECRequest mocks base method. +func (m *MockRoute53API) GetDNSSECRequest(arg0 *route53.GetDNSSECInput) (*request.Request, *route53.GetDNSSECOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetDNSSECRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.GetDNSSECOutput) + return ret0, ret1 +} + +// GetDNSSECRequest indicates an expected call of GetDNSSECRequest. +func (mr *MockRoute53APIMockRecorder) GetDNSSECRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDNSSECRequest", reflect.TypeOf((*MockRoute53API)(nil).GetDNSSECRequest), arg0) +} + +// GetDNSSECWithContext mocks base method. +func (m *MockRoute53API) GetDNSSECWithContext(arg0 aws.Context, arg1 *route53.GetDNSSECInput, arg2 ...request.Option) (*route53.GetDNSSECOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetDNSSECWithContext", varargs...) + ret0, _ := ret[0].(*route53.GetDNSSECOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetDNSSECWithContext indicates an expected call of GetDNSSECWithContext. +func (mr *MockRoute53APIMockRecorder) GetDNSSECWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDNSSECWithContext", reflect.TypeOf((*MockRoute53API)(nil).GetDNSSECWithContext), varargs...) +} + +// GetGeoLocation mocks base method. +func (m *MockRoute53API) GetGeoLocation(arg0 *route53.GetGeoLocationInput) (*route53.GetGeoLocationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetGeoLocation", arg0) + ret0, _ := ret[0].(*route53.GetGeoLocationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetGeoLocation indicates an expected call of GetGeoLocation. +func (mr *MockRoute53APIMockRecorder) GetGeoLocation(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGeoLocation", reflect.TypeOf((*MockRoute53API)(nil).GetGeoLocation), arg0) +} + +// GetGeoLocationRequest mocks base method. +func (m *MockRoute53API) GetGeoLocationRequest(arg0 *route53.GetGeoLocationInput) (*request.Request, *route53.GetGeoLocationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetGeoLocationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.GetGeoLocationOutput) + return ret0, ret1 +} + +// GetGeoLocationRequest indicates an expected call of GetGeoLocationRequest. +func (mr *MockRoute53APIMockRecorder) GetGeoLocationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGeoLocationRequest", reflect.TypeOf((*MockRoute53API)(nil).GetGeoLocationRequest), arg0) +} + +// GetGeoLocationWithContext mocks base method. +func (m *MockRoute53API) GetGeoLocationWithContext(arg0 aws.Context, arg1 *route53.GetGeoLocationInput, arg2 ...request.Option) (*route53.GetGeoLocationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetGeoLocationWithContext", varargs...) + ret0, _ := ret[0].(*route53.GetGeoLocationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetGeoLocationWithContext indicates an expected call of GetGeoLocationWithContext. +func (mr *MockRoute53APIMockRecorder) GetGeoLocationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGeoLocationWithContext", reflect.TypeOf((*MockRoute53API)(nil).GetGeoLocationWithContext), varargs...) +} + +// GetHealthCheck mocks base method. +func (m *MockRoute53API) GetHealthCheck(arg0 *route53.GetHealthCheckInput) (*route53.GetHealthCheckOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetHealthCheck", arg0) + ret0, _ := ret[0].(*route53.GetHealthCheckOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetHealthCheck indicates an expected call of GetHealthCheck. +func (mr *MockRoute53APIMockRecorder) GetHealthCheck(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHealthCheck", reflect.TypeOf((*MockRoute53API)(nil).GetHealthCheck), arg0) +} + +// GetHealthCheckCount mocks base method. +func (m *MockRoute53API) GetHealthCheckCount(arg0 *route53.GetHealthCheckCountInput) (*route53.GetHealthCheckCountOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetHealthCheckCount", arg0) + ret0, _ := ret[0].(*route53.GetHealthCheckCountOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetHealthCheckCount indicates an expected call of GetHealthCheckCount. +func (mr *MockRoute53APIMockRecorder) GetHealthCheckCount(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHealthCheckCount", reflect.TypeOf((*MockRoute53API)(nil).GetHealthCheckCount), arg0) +} + +// GetHealthCheckCountRequest mocks base method. +func (m *MockRoute53API) GetHealthCheckCountRequest(arg0 *route53.GetHealthCheckCountInput) (*request.Request, *route53.GetHealthCheckCountOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetHealthCheckCountRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.GetHealthCheckCountOutput) + return ret0, ret1 +} + +// GetHealthCheckCountRequest indicates an expected call of GetHealthCheckCountRequest. +func (mr *MockRoute53APIMockRecorder) GetHealthCheckCountRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHealthCheckCountRequest", reflect.TypeOf((*MockRoute53API)(nil).GetHealthCheckCountRequest), arg0) +} + +// GetHealthCheckCountWithContext mocks base method. +func (m *MockRoute53API) GetHealthCheckCountWithContext(arg0 aws.Context, arg1 *route53.GetHealthCheckCountInput, arg2 ...request.Option) (*route53.GetHealthCheckCountOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetHealthCheckCountWithContext", varargs...) + ret0, _ := ret[0].(*route53.GetHealthCheckCountOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetHealthCheckCountWithContext indicates an expected call of GetHealthCheckCountWithContext. +func (mr *MockRoute53APIMockRecorder) GetHealthCheckCountWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHealthCheckCountWithContext", reflect.TypeOf((*MockRoute53API)(nil).GetHealthCheckCountWithContext), varargs...) +} + +// GetHealthCheckLastFailureReason mocks base method. +func (m *MockRoute53API) GetHealthCheckLastFailureReason(arg0 *route53.GetHealthCheckLastFailureReasonInput) (*route53.GetHealthCheckLastFailureReasonOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetHealthCheckLastFailureReason", arg0) + ret0, _ := ret[0].(*route53.GetHealthCheckLastFailureReasonOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetHealthCheckLastFailureReason indicates an expected call of GetHealthCheckLastFailureReason. +func (mr *MockRoute53APIMockRecorder) GetHealthCheckLastFailureReason(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHealthCheckLastFailureReason", reflect.TypeOf((*MockRoute53API)(nil).GetHealthCheckLastFailureReason), arg0) +} + +// GetHealthCheckLastFailureReasonRequest mocks base method. +func (m *MockRoute53API) GetHealthCheckLastFailureReasonRequest(arg0 *route53.GetHealthCheckLastFailureReasonInput) (*request.Request, *route53.GetHealthCheckLastFailureReasonOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetHealthCheckLastFailureReasonRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.GetHealthCheckLastFailureReasonOutput) + return ret0, ret1 +} + +// GetHealthCheckLastFailureReasonRequest indicates an expected call of GetHealthCheckLastFailureReasonRequest. +func (mr *MockRoute53APIMockRecorder) GetHealthCheckLastFailureReasonRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHealthCheckLastFailureReasonRequest", reflect.TypeOf((*MockRoute53API)(nil).GetHealthCheckLastFailureReasonRequest), arg0) +} + +// GetHealthCheckLastFailureReasonWithContext mocks base method. +func (m *MockRoute53API) GetHealthCheckLastFailureReasonWithContext(arg0 aws.Context, arg1 *route53.GetHealthCheckLastFailureReasonInput, arg2 ...request.Option) (*route53.GetHealthCheckLastFailureReasonOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetHealthCheckLastFailureReasonWithContext", varargs...) + ret0, _ := ret[0].(*route53.GetHealthCheckLastFailureReasonOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetHealthCheckLastFailureReasonWithContext indicates an expected call of GetHealthCheckLastFailureReasonWithContext. +func (mr *MockRoute53APIMockRecorder) GetHealthCheckLastFailureReasonWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHealthCheckLastFailureReasonWithContext", reflect.TypeOf((*MockRoute53API)(nil).GetHealthCheckLastFailureReasonWithContext), varargs...) +} + +// GetHealthCheckRequest mocks base method. +func (m *MockRoute53API) GetHealthCheckRequest(arg0 *route53.GetHealthCheckInput) (*request.Request, *route53.GetHealthCheckOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetHealthCheckRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.GetHealthCheckOutput) + return ret0, ret1 +} + +// GetHealthCheckRequest indicates an expected call of GetHealthCheckRequest. +func (mr *MockRoute53APIMockRecorder) GetHealthCheckRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHealthCheckRequest", reflect.TypeOf((*MockRoute53API)(nil).GetHealthCheckRequest), arg0) +} + +// GetHealthCheckStatus mocks base method. +func (m *MockRoute53API) GetHealthCheckStatus(arg0 *route53.GetHealthCheckStatusInput) (*route53.GetHealthCheckStatusOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetHealthCheckStatus", arg0) + ret0, _ := ret[0].(*route53.GetHealthCheckStatusOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetHealthCheckStatus indicates an expected call of GetHealthCheckStatus. +func (mr *MockRoute53APIMockRecorder) GetHealthCheckStatus(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHealthCheckStatus", reflect.TypeOf((*MockRoute53API)(nil).GetHealthCheckStatus), arg0) +} + +// GetHealthCheckStatusRequest mocks base method. +func (m *MockRoute53API) GetHealthCheckStatusRequest(arg0 *route53.GetHealthCheckStatusInput) (*request.Request, *route53.GetHealthCheckStatusOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetHealthCheckStatusRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.GetHealthCheckStatusOutput) + return ret0, ret1 +} + +// GetHealthCheckStatusRequest indicates an expected call of GetHealthCheckStatusRequest. +func (mr *MockRoute53APIMockRecorder) GetHealthCheckStatusRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHealthCheckStatusRequest", reflect.TypeOf((*MockRoute53API)(nil).GetHealthCheckStatusRequest), arg0) +} + +// GetHealthCheckStatusWithContext mocks base method. +func (m *MockRoute53API) GetHealthCheckStatusWithContext(arg0 aws.Context, arg1 *route53.GetHealthCheckStatusInput, arg2 ...request.Option) (*route53.GetHealthCheckStatusOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetHealthCheckStatusWithContext", varargs...) + ret0, _ := ret[0].(*route53.GetHealthCheckStatusOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetHealthCheckStatusWithContext indicates an expected call of GetHealthCheckStatusWithContext. +func (mr *MockRoute53APIMockRecorder) GetHealthCheckStatusWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHealthCheckStatusWithContext", reflect.TypeOf((*MockRoute53API)(nil).GetHealthCheckStatusWithContext), varargs...) +} + +// GetHealthCheckWithContext mocks base method. +func (m *MockRoute53API) GetHealthCheckWithContext(arg0 aws.Context, arg1 *route53.GetHealthCheckInput, arg2 ...request.Option) (*route53.GetHealthCheckOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetHealthCheckWithContext", varargs...) + ret0, _ := ret[0].(*route53.GetHealthCheckOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetHealthCheckWithContext indicates an expected call of GetHealthCheckWithContext. +func (mr *MockRoute53APIMockRecorder) GetHealthCheckWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHealthCheckWithContext", reflect.TypeOf((*MockRoute53API)(nil).GetHealthCheckWithContext), varargs...) +} + +// GetHostedZone mocks base method. +func (m *MockRoute53API) GetHostedZone(arg0 *route53.GetHostedZoneInput) (*route53.GetHostedZoneOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetHostedZone", arg0) + ret0, _ := ret[0].(*route53.GetHostedZoneOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetHostedZone indicates an expected call of GetHostedZone. +func (mr *MockRoute53APIMockRecorder) GetHostedZone(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHostedZone", reflect.TypeOf((*MockRoute53API)(nil).GetHostedZone), arg0) +} + +// GetHostedZoneCount mocks base method. +func (m *MockRoute53API) GetHostedZoneCount(arg0 *route53.GetHostedZoneCountInput) (*route53.GetHostedZoneCountOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetHostedZoneCount", arg0) + ret0, _ := ret[0].(*route53.GetHostedZoneCountOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetHostedZoneCount indicates an expected call of GetHostedZoneCount. +func (mr *MockRoute53APIMockRecorder) GetHostedZoneCount(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHostedZoneCount", reflect.TypeOf((*MockRoute53API)(nil).GetHostedZoneCount), arg0) +} + +// GetHostedZoneCountRequest mocks base method. +func (m *MockRoute53API) GetHostedZoneCountRequest(arg0 *route53.GetHostedZoneCountInput) (*request.Request, *route53.GetHostedZoneCountOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetHostedZoneCountRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.GetHostedZoneCountOutput) + return ret0, ret1 +} + +// GetHostedZoneCountRequest indicates an expected call of GetHostedZoneCountRequest. +func (mr *MockRoute53APIMockRecorder) GetHostedZoneCountRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHostedZoneCountRequest", reflect.TypeOf((*MockRoute53API)(nil).GetHostedZoneCountRequest), arg0) +} + +// GetHostedZoneCountWithContext mocks base method. +func (m *MockRoute53API) GetHostedZoneCountWithContext(arg0 aws.Context, arg1 *route53.GetHostedZoneCountInput, arg2 ...request.Option) (*route53.GetHostedZoneCountOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetHostedZoneCountWithContext", varargs...) + ret0, _ := ret[0].(*route53.GetHostedZoneCountOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetHostedZoneCountWithContext indicates an expected call of GetHostedZoneCountWithContext. +func (mr *MockRoute53APIMockRecorder) GetHostedZoneCountWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHostedZoneCountWithContext", reflect.TypeOf((*MockRoute53API)(nil).GetHostedZoneCountWithContext), varargs...) +} + +// GetHostedZoneLimit mocks base method. +func (m *MockRoute53API) GetHostedZoneLimit(arg0 *route53.GetHostedZoneLimitInput) (*route53.GetHostedZoneLimitOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetHostedZoneLimit", arg0) + ret0, _ := ret[0].(*route53.GetHostedZoneLimitOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetHostedZoneLimit indicates an expected call of GetHostedZoneLimit. +func (mr *MockRoute53APIMockRecorder) GetHostedZoneLimit(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHostedZoneLimit", reflect.TypeOf((*MockRoute53API)(nil).GetHostedZoneLimit), arg0) +} + +// GetHostedZoneLimitRequest mocks base method. +func (m *MockRoute53API) GetHostedZoneLimitRequest(arg0 *route53.GetHostedZoneLimitInput) (*request.Request, *route53.GetHostedZoneLimitOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetHostedZoneLimitRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.GetHostedZoneLimitOutput) + return ret0, ret1 +} + +// GetHostedZoneLimitRequest indicates an expected call of GetHostedZoneLimitRequest. +func (mr *MockRoute53APIMockRecorder) GetHostedZoneLimitRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHostedZoneLimitRequest", reflect.TypeOf((*MockRoute53API)(nil).GetHostedZoneLimitRequest), arg0) +} + +// GetHostedZoneLimitWithContext mocks base method. +func (m *MockRoute53API) GetHostedZoneLimitWithContext(arg0 aws.Context, arg1 *route53.GetHostedZoneLimitInput, arg2 ...request.Option) (*route53.GetHostedZoneLimitOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetHostedZoneLimitWithContext", varargs...) + ret0, _ := ret[0].(*route53.GetHostedZoneLimitOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetHostedZoneLimitWithContext indicates an expected call of GetHostedZoneLimitWithContext. +func (mr *MockRoute53APIMockRecorder) GetHostedZoneLimitWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHostedZoneLimitWithContext", reflect.TypeOf((*MockRoute53API)(nil).GetHostedZoneLimitWithContext), varargs...) +} + +// GetHostedZoneRequest mocks base method. +func (m *MockRoute53API) GetHostedZoneRequest(arg0 *route53.GetHostedZoneInput) (*request.Request, *route53.GetHostedZoneOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetHostedZoneRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.GetHostedZoneOutput) + return ret0, ret1 +} + +// GetHostedZoneRequest indicates an expected call of GetHostedZoneRequest. +func (mr *MockRoute53APIMockRecorder) GetHostedZoneRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHostedZoneRequest", reflect.TypeOf((*MockRoute53API)(nil).GetHostedZoneRequest), arg0) +} + +// GetHostedZoneWithContext mocks base method. +func (m *MockRoute53API) GetHostedZoneWithContext(arg0 aws.Context, arg1 *route53.GetHostedZoneInput, arg2 ...request.Option) (*route53.GetHostedZoneOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetHostedZoneWithContext", varargs...) + ret0, _ := ret[0].(*route53.GetHostedZoneOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetHostedZoneWithContext indicates an expected call of GetHostedZoneWithContext. +func (mr *MockRoute53APIMockRecorder) GetHostedZoneWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHostedZoneWithContext", reflect.TypeOf((*MockRoute53API)(nil).GetHostedZoneWithContext), varargs...) +} + +// GetQueryLoggingConfig mocks base method. +func (m *MockRoute53API) GetQueryLoggingConfig(arg0 *route53.GetQueryLoggingConfigInput) (*route53.GetQueryLoggingConfigOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetQueryLoggingConfig", arg0) + ret0, _ := ret[0].(*route53.GetQueryLoggingConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetQueryLoggingConfig indicates an expected call of GetQueryLoggingConfig. +func (mr *MockRoute53APIMockRecorder) GetQueryLoggingConfig(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetQueryLoggingConfig", reflect.TypeOf((*MockRoute53API)(nil).GetQueryLoggingConfig), arg0) +} + +// GetQueryLoggingConfigRequest mocks base method. +func (m *MockRoute53API) GetQueryLoggingConfigRequest(arg0 *route53.GetQueryLoggingConfigInput) (*request.Request, *route53.GetQueryLoggingConfigOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetQueryLoggingConfigRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.GetQueryLoggingConfigOutput) + return ret0, ret1 +} + +// GetQueryLoggingConfigRequest indicates an expected call of GetQueryLoggingConfigRequest. +func (mr *MockRoute53APIMockRecorder) GetQueryLoggingConfigRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetQueryLoggingConfigRequest", reflect.TypeOf((*MockRoute53API)(nil).GetQueryLoggingConfigRequest), arg0) +} + +// GetQueryLoggingConfigWithContext mocks base method. +func (m *MockRoute53API) GetQueryLoggingConfigWithContext(arg0 aws.Context, arg1 *route53.GetQueryLoggingConfigInput, arg2 ...request.Option) (*route53.GetQueryLoggingConfigOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetQueryLoggingConfigWithContext", varargs...) + ret0, _ := ret[0].(*route53.GetQueryLoggingConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetQueryLoggingConfigWithContext indicates an expected call of GetQueryLoggingConfigWithContext. +func (mr *MockRoute53APIMockRecorder) GetQueryLoggingConfigWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetQueryLoggingConfigWithContext", reflect.TypeOf((*MockRoute53API)(nil).GetQueryLoggingConfigWithContext), varargs...) +} + +// GetReusableDelegationSet mocks base method. +func (m *MockRoute53API) GetReusableDelegationSet(arg0 *route53.GetReusableDelegationSetInput) (*route53.GetReusableDelegationSetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetReusableDelegationSet", arg0) + ret0, _ := ret[0].(*route53.GetReusableDelegationSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetReusableDelegationSet indicates an expected call of GetReusableDelegationSet. +func (mr *MockRoute53APIMockRecorder) GetReusableDelegationSet(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetReusableDelegationSet", reflect.TypeOf((*MockRoute53API)(nil).GetReusableDelegationSet), arg0) +} + +// GetReusableDelegationSetLimit mocks base method. +func (m *MockRoute53API) GetReusableDelegationSetLimit(arg0 *route53.GetReusableDelegationSetLimitInput) (*route53.GetReusableDelegationSetLimitOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetReusableDelegationSetLimit", arg0) + ret0, _ := ret[0].(*route53.GetReusableDelegationSetLimitOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetReusableDelegationSetLimit indicates an expected call of GetReusableDelegationSetLimit. +func (mr *MockRoute53APIMockRecorder) GetReusableDelegationSetLimit(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetReusableDelegationSetLimit", reflect.TypeOf((*MockRoute53API)(nil).GetReusableDelegationSetLimit), arg0) +} + +// GetReusableDelegationSetLimitRequest mocks base method. +func (m *MockRoute53API) GetReusableDelegationSetLimitRequest(arg0 *route53.GetReusableDelegationSetLimitInput) (*request.Request, *route53.GetReusableDelegationSetLimitOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetReusableDelegationSetLimitRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.GetReusableDelegationSetLimitOutput) + return ret0, ret1 +} + +// GetReusableDelegationSetLimitRequest indicates an expected call of GetReusableDelegationSetLimitRequest. +func (mr *MockRoute53APIMockRecorder) GetReusableDelegationSetLimitRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetReusableDelegationSetLimitRequest", reflect.TypeOf((*MockRoute53API)(nil).GetReusableDelegationSetLimitRequest), arg0) +} + +// GetReusableDelegationSetLimitWithContext mocks base method. +func (m *MockRoute53API) GetReusableDelegationSetLimitWithContext(arg0 aws.Context, arg1 *route53.GetReusableDelegationSetLimitInput, arg2 ...request.Option) (*route53.GetReusableDelegationSetLimitOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetReusableDelegationSetLimitWithContext", varargs...) + ret0, _ := ret[0].(*route53.GetReusableDelegationSetLimitOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetReusableDelegationSetLimitWithContext indicates an expected call of GetReusableDelegationSetLimitWithContext. +func (mr *MockRoute53APIMockRecorder) GetReusableDelegationSetLimitWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetReusableDelegationSetLimitWithContext", reflect.TypeOf((*MockRoute53API)(nil).GetReusableDelegationSetLimitWithContext), varargs...) +} + +// GetReusableDelegationSetRequest mocks base method. +func (m *MockRoute53API) GetReusableDelegationSetRequest(arg0 *route53.GetReusableDelegationSetInput) (*request.Request, *route53.GetReusableDelegationSetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetReusableDelegationSetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.GetReusableDelegationSetOutput) + return ret0, ret1 +} + +// GetReusableDelegationSetRequest indicates an expected call of GetReusableDelegationSetRequest. +func (mr *MockRoute53APIMockRecorder) GetReusableDelegationSetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetReusableDelegationSetRequest", reflect.TypeOf((*MockRoute53API)(nil).GetReusableDelegationSetRequest), arg0) +} + +// GetReusableDelegationSetWithContext mocks base method. +func (m *MockRoute53API) GetReusableDelegationSetWithContext(arg0 aws.Context, arg1 *route53.GetReusableDelegationSetInput, arg2 ...request.Option) (*route53.GetReusableDelegationSetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetReusableDelegationSetWithContext", varargs...) + ret0, _ := ret[0].(*route53.GetReusableDelegationSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetReusableDelegationSetWithContext indicates an expected call of GetReusableDelegationSetWithContext. +func (mr *MockRoute53APIMockRecorder) GetReusableDelegationSetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetReusableDelegationSetWithContext", reflect.TypeOf((*MockRoute53API)(nil).GetReusableDelegationSetWithContext), varargs...) +} + +// GetTrafficPolicy mocks base method. +func (m *MockRoute53API) GetTrafficPolicy(arg0 *route53.GetTrafficPolicyInput) (*route53.GetTrafficPolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetTrafficPolicy", arg0) + ret0, _ := ret[0].(*route53.GetTrafficPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetTrafficPolicy indicates an expected call of GetTrafficPolicy. +func (mr *MockRoute53APIMockRecorder) GetTrafficPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTrafficPolicy", reflect.TypeOf((*MockRoute53API)(nil).GetTrafficPolicy), arg0) +} + +// GetTrafficPolicyInstance mocks base method. +func (m *MockRoute53API) GetTrafficPolicyInstance(arg0 *route53.GetTrafficPolicyInstanceInput) (*route53.GetTrafficPolicyInstanceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetTrafficPolicyInstance", arg0) + ret0, _ := ret[0].(*route53.GetTrafficPolicyInstanceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetTrafficPolicyInstance indicates an expected call of GetTrafficPolicyInstance. +func (mr *MockRoute53APIMockRecorder) GetTrafficPolicyInstance(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTrafficPolicyInstance", reflect.TypeOf((*MockRoute53API)(nil).GetTrafficPolicyInstance), arg0) +} + +// GetTrafficPolicyInstanceCount mocks base method. +func (m *MockRoute53API) GetTrafficPolicyInstanceCount(arg0 *route53.GetTrafficPolicyInstanceCountInput) (*route53.GetTrafficPolicyInstanceCountOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetTrafficPolicyInstanceCount", arg0) + ret0, _ := ret[0].(*route53.GetTrafficPolicyInstanceCountOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetTrafficPolicyInstanceCount indicates an expected call of GetTrafficPolicyInstanceCount. +func (mr *MockRoute53APIMockRecorder) GetTrafficPolicyInstanceCount(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTrafficPolicyInstanceCount", reflect.TypeOf((*MockRoute53API)(nil).GetTrafficPolicyInstanceCount), arg0) +} + +// GetTrafficPolicyInstanceCountRequest mocks base method. +func (m *MockRoute53API) GetTrafficPolicyInstanceCountRequest(arg0 *route53.GetTrafficPolicyInstanceCountInput) (*request.Request, *route53.GetTrafficPolicyInstanceCountOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetTrafficPolicyInstanceCountRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.GetTrafficPolicyInstanceCountOutput) + return ret0, ret1 +} + +// GetTrafficPolicyInstanceCountRequest indicates an expected call of GetTrafficPolicyInstanceCountRequest. +func (mr *MockRoute53APIMockRecorder) GetTrafficPolicyInstanceCountRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTrafficPolicyInstanceCountRequest", reflect.TypeOf((*MockRoute53API)(nil).GetTrafficPolicyInstanceCountRequest), arg0) +} + +// GetTrafficPolicyInstanceCountWithContext mocks base method. +func (m *MockRoute53API) GetTrafficPolicyInstanceCountWithContext(arg0 aws.Context, arg1 *route53.GetTrafficPolicyInstanceCountInput, arg2 ...request.Option) (*route53.GetTrafficPolicyInstanceCountOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetTrafficPolicyInstanceCountWithContext", varargs...) + ret0, _ := ret[0].(*route53.GetTrafficPolicyInstanceCountOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetTrafficPolicyInstanceCountWithContext indicates an expected call of GetTrafficPolicyInstanceCountWithContext. +func (mr *MockRoute53APIMockRecorder) GetTrafficPolicyInstanceCountWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTrafficPolicyInstanceCountWithContext", reflect.TypeOf((*MockRoute53API)(nil).GetTrafficPolicyInstanceCountWithContext), varargs...) +} + +// GetTrafficPolicyInstanceRequest mocks base method. +func (m *MockRoute53API) GetTrafficPolicyInstanceRequest(arg0 *route53.GetTrafficPolicyInstanceInput) (*request.Request, *route53.GetTrafficPolicyInstanceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetTrafficPolicyInstanceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.GetTrafficPolicyInstanceOutput) + return ret0, ret1 +} + +// GetTrafficPolicyInstanceRequest indicates an expected call of GetTrafficPolicyInstanceRequest. +func (mr *MockRoute53APIMockRecorder) GetTrafficPolicyInstanceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTrafficPolicyInstanceRequest", reflect.TypeOf((*MockRoute53API)(nil).GetTrafficPolicyInstanceRequest), arg0) +} + +// GetTrafficPolicyInstanceWithContext mocks base method. +func (m *MockRoute53API) GetTrafficPolicyInstanceWithContext(arg0 aws.Context, arg1 *route53.GetTrafficPolicyInstanceInput, arg2 ...request.Option) (*route53.GetTrafficPolicyInstanceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetTrafficPolicyInstanceWithContext", varargs...) + ret0, _ := ret[0].(*route53.GetTrafficPolicyInstanceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetTrafficPolicyInstanceWithContext indicates an expected call of GetTrafficPolicyInstanceWithContext. +func (mr *MockRoute53APIMockRecorder) GetTrafficPolicyInstanceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTrafficPolicyInstanceWithContext", reflect.TypeOf((*MockRoute53API)(nil).GetTrafficPolicyInstanceWithContext), varargs...) +} + +// GetTrafficPolicyRequest mocks base method. +func (m *MockRoute53API) GetTrafficPolicyRequest(arg0 *route53.GetTrafficPolicyInput) (*request.Request, *route53.GetTrafficPolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetTrafficPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.GetTrafficPolicyOutput) + return ret0, ret1 +} + +// GetTrafficPolicyRequest indicates an expected call of GetTrafficPolicyRequest. +func (mr *MockRoute53APIMockRecorder) GetTrafficPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTrafficPolicyRequest", reflect.TypeOf((*MockRoute53API)(nil).GetTrafficPolicyRequest), arg0) +} + +// GetTrafficPolicyWithContext mocks base method. +func (m *MockRoute53API) GetTrafficPolicyWithContext(arg0 aws.Context, arg1 *route53.GetTrafficPolicyInput, arg2 ...request.Option) (*route53.GetTrafficPolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetTrafficPolicyWithContext", varargs...) + ret0, _ := ret[0].(*route53.GetTrafficPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetTrafficPolicyWithContext indicates an expected call of GetTrafficPolicyWithContext. +func (mr *MockRoute53APIMockRecorder) GetTrafficPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTrafficPolicyWithContext", reflect.TypeOf((*MockRoute53API)(nil).GetTrafficPolicyWithContext), varargs...) +} + +// ListCidrBlocks mocks base method. +func (m *MockRoute53API) ListCidrBlocks(arg0 *route53.ListCidrBlocksInput) (*route53.ListCidrBlocksOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListCidrBlocks", arg0) + ret0, _ := ret[0].(*route53.ListCidrBlocksOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListCidrBlocks indicates an expected call of ListCidrBlocks. +func (mr *MockRoute53APIMockRecorder) ListCidrBlocks(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCidrBlocks", reflect.TypeOf((*MockRoute53API)(nil).ListCidrBlocks), arg0) +} + +// ListCidrBlocksPages mocks base method. +func (m *MockRoute53API) ListCidrBlocksPages(arg0 *route53.ListCidrBlocksInput, arg1 func(*route53.ListCidrBlocksOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListCidrBlocksPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListCidrBlocksPages indicates an expected call of ListCidrBlocksPages. +func (mr *MockRoute53APIMockRecorder) ListCidrBlocksPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCidrBlocksPages", reflect.TypeOf((*MockRoute53API)(nil).ListCidrBlocksPages), arg0, arg1) +} + +// ListCidrBlocksPagesWithContext mocks base method. +func (m *MockRoute53API) ListCidrBlocksPagesWithContext(arg0 aws.Context, arg1 *route53.ListCidrBlocksInput, arg2 func(*route53.ListCidrBlocksOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListCidrBlocksPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListCidrBlocksPagesWithContext indicates an expected call of ListCidrBlocksPagesWithContext. +func (mr *MockRoute53APIMockRecorder) ListCidrBlocksPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCidrBlocksPagesWithContext", reflect.TypeOf((*MockRoute53API)(nil).ListCidrBlocksPagesWithContext), varargs...) +} + +// ListCidrBlocksRequest mocks base method. +func (m *MockRoute53API) ListCidrBlocksRequest(arg0 *route53.ListCidrBlocksInput) (*request.Request, *route53.ListCidrBlocksOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListCidrBlocksRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.ListCidrBlocksOutput) + return ret0, ret1 +} + +// ListCidrBlocksRequest indicates an expected call of ListCidrBlocksRequest. +func (mr *MockRoute53APIMockRecorder) ListCidrBlocksRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCidrBlocksRequest", reflect.TypeOf((*MockRoute53API)(nil).ListCidrBlocksRequest), arg0) +} + +// ListCidrBlocksWithContext mocks base method. +func (m *MockRoute53API) ListCidrBlocksWithContext(arg0 aws.Context, arg1 *route53.ListCidrBlocksInput, arg2 ...request.Option) (*route53.ListCidrBlocksOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListCidrBlocksWithContext", varargs...) + ret0, _ := ret[0].(*route53.ListCidrBlocksOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListCidrBlocksWithContext indicates an expected call of ListCidrBlocksWithContext. +func (mr *MockRoute53APIMockRecorder) ListCidrBlocksWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCidrBlocksWithContext", reflect.TypeOf((*MockRoute53API)(nil).ListCidrBlocksWithContext), varargs...) +} + +// ListCidrCollections mocks base method. +func (m *MockRoute53API) ListCidrCollections(arg0 *route53.ListCidrCollectionsInput) (*route53.ListCidrCollectionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListCidrCollections", arg0) + ret0, _ := ret[0].(*route53.ListCidrCollectionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListCidrCollections indicates an expected call of ListCidrCollections. +func (mr *MockRoute53APIMockRecorder) ListCidrCollections(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCidrCollections", reflect.TypeOf((*MockRoute53API)(nil).ListCidrCollections), arg0) +} + +// ListCidrCollectionsPages mocks base method. +func (m *MockRoute53API) ListCidrCollectionsPages(arg0 *route53.ListCidrCollectionsInput, arg1 func(*route53.ListCidrCollectionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListCidrCollectionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListCidrCollectionsPages indicates an expected call of ListCidrCollectionsPages. +func (mr *MockRoute53APIMockRecorder) ListCidrCollectionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCidrCollectionsPages", reflect.TypeOf((*MockRoute53API)(nil).ListCidrCollectionsPages), arg0, arg1) +} + +// ListCidrCollectionsPagesWithContext mocks base method. +func (m *MockRoute53API) ListCidrCollectionsPagesWithContext(arg0 aws.Context, arg1 *route53.ListCidrCollectionsInput, arg2 func(*route53.ListCidrCollectionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListCidrCollectionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListCidrCollectionsPagesWithContext indicates an expected call of ListCidrCollectionsPagesWithContext. +func (mr *MockRoute53APIMockRecorder) ListCidrCollectionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCidrCollectionsPagesWithContext", reflect.TypeOf((*MockRoute53API)(nil).ListCidrCollectionsPagesWithContext), varargs...) +} + +// ListCidrCollectionsRequest mocks base method. +func (m *MockRoute53API) ListCidrCollectionsRequest(arg0 *route53.ListCidrCollectionsInput) (*request.Request, *route53.ListCidrCollectionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListCidrCollectionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.ListCidrCollectionsOutput) + return ret0, ret1 +} + +// ListCidrCollectionsRequest indicates an expected call of ListCidrCollectionsRequest. +func (mr *MockRoute53APIMockRecorder) ListCidrCollectionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCidrCollectionsRequest", reflect.TypeOf((*MockRoute53API)(nil).ListCidrCollectionsRequest), arg0) +} + +// ListCidrCollectionsWithContext mocks base method. +func (m *MockRoute53API) ListCidrCollectionsWithContext(arg0 aws.Context, arg1 *route53.ListCidrCollectionsInput, arg2 ...request.Option) (*route53.ListCidrCollectionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListCidrCollectionsWithContext", varargs...) + ret0, _ := ret[0].(*route53.ListCidrCollectionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListCidrCollectionsWithContext indicates an expected call of ListCidrCollectionsWithContext. +func (mr *MockRoute53APIMockRecorder) ListCidrCollectionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCidrCollectionsWithContext", reflect.TypeOf((*MockRoute53API)(nil).ListCidrCollectionsWithContext), varargs...) +} + +// ListCidrLocations mocks base method. +func (m *MockRoute53API) ListCidrLocations(arg0 *route53.ListCidrLocationsInput) (*route53.ListCidrLocationsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListCidrLocations", arg0) + ret0, _ := ret[0].(*route53.ListCidrLocationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListCidrLocations indicates an expected call of ListCidrLocations. +func (mr *MockRoute53APIMockRecorder) ListCidrLocations(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCidrLocations", reflect.TypeOf((*MockRoute53API)(nil).ListCidrLocations), arg0) +} + +// ListCidrLocationsPages mocks base method. +func (m *MockRoute53API) ListCidrLocationsPages(arg0 *route53.ListCidrLocationsInput, arg1 func(*route53.ListCidrLocationsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListCidrLocationsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListCidrLocationsPages indicates an expected call of ListCidrLocationsPages. +func (mr *MockRoute53APIMockRecorder) ListCidrLocationsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCidrLocationsPages", reflect.TypeOf((*MockRoute53API)(nil).ListCidrLocationsPages), arg0, arg1) +} + +// ListCidrLocationsPagesWithContext mocks base method. +func (m *MockRoute53API) ListCidrLocationsPagesWithContext(arg0 aws.Context, arg1 *route53.ListCidrLocationsInput, arg2 func(*route53.ListCidrLocationsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListCidrLocationsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListCidrLocationsPagesWithContext indicates an expected call of ListCidrLocationsPagesWithContext. +func (mr *MockRoute53APIMockRecorder) ListCidrLocationsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCidrLocationsPagesWithContext", reflect.TypeOf((*MockRoute53API)(nil).ListCidrLocationsPagesWithContext), varargs...) +} + +// ListCidrLocationsRequest mocks base method. +func (m *MockRoute53API) ListCidrLocationsRequest(arg0 *route53.ListCidrLocationsInput) (*request.Request, *route53.ListCidrLocationsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListCidrLocationsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.ListCidrLocationsOutput) + return ret0, ret1 +} + +// ListCidrLocationsRequest indicates an expected call of ListCidrLocationsRequest. +func (mr *MockRoute53APIMockRecorder) ListCidrLocationsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCidrLocationsRequest", reflect.TypeOf((*MockRoute53API)(nil).ListCidrLocationsRequest), arg0) +} + +// ListCidrLocationsWithContext mocks base method. +func (m *MockRoute53API) ListCidrLocationsWithContext(arg0 aws.Context, arg1 *route53.ListCidrLocationsInput, arg2 ...request.Option) (*route53.ListCidrLocationsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListCidrLocationsWithContext", varargs...) + ret0, _ := ret[0].(*route53.ListCidrLocationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListCidrLocationsWithContext indicates an expected call of ListCidrLocationsWithContext. +func (mr *MockRoute53APIMockRecorder) ListCidrLocationsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCidrLocationsWithContext", reflect.TypeOf((*MockRoute53API)(nil).ListCidrLocationsWithContext), varargs...) +} + +// ListGeoLocations mocks base method. +func (m *MockRoute53API) ListGeoLocations(arg0 *route53.ListGeoLocationsInput) (*route53.ListGeoLocationsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListGeoLocations", arg0) + ret0, _ := ret[0].(*route53.ListGeoLocationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListGeoLocations indicates an expected call of ListGeoLocations. +func (mr *MockRoute53APIMockRecorder) ListGeoLocations(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGeoLocations", reflect.TypeOf((*MockRoute53API)(nil).ListGeoLocations), arg0) +} + +// ListGeoLocationsRequest mocks base method. +func (m *MockRoute53API) ListGeoLocationsRequest(arg0 *route53.ListGeoLocationsInput) (*request.Request, *route53.ListGeoLocationsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListGeoLocationsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.ListGeoLocationsOutput) + return ret0, ret1 +} + +// ListGeoLocationsRequest indicates an expected call of ListGeoLocationsRequest. +func (mr *MockRoute53APIMockRecorder) ListGeoLocationsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGeoLocationsRequest", reflect.TypeOf((*MockRoute53API)(nil).ListGeoLocationsRequest), arg0) +} + +// ListGeoLocationsWithContext mocks base method. +func (m *MockRoute53API) ListGeoLocationsWithContext(arg0 aws.Context, arg1 *route53.ListGeoLocationsInput, arg2 ...request.Option) (*route53.ListGeoLocationsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListGeoLocationsWithContext", varargs...) + ret0, _ := ret[0].(*route53.ListGeoLocationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListGeoLocationsWithContext indicates an expected call of ListGeoLocationsWithContext. +func (mr *MockRoute53APIMockRecorder) ListGeoLocationsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGeoLocationsWithContext", reflect.TypeOf((*MockRoute53API)(nil).ListGeoLocationsWithContext), varargs...) +} + +// ListHealthChecks mocks base method. +func (m *MockRoute53API) ListHealthChecks(arg0 *route53.ListHealthChecksInput) (*route53.ListHealthChecksOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListHealthChecks", arg0) + ret0, _ := ret[0].(*route53.ListHealthChecksOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListHealthChecks indicates an expected call of ListHealthChecks. +func (mr *MockRoute53APIMockRecorder) ListHealthChecks(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHealthChecks", reflect.TypeOf((*MockRoute53API)(nil).ListHealthChecks), arg0) +} + +// ListHealthChecksPages mocks base method. +func (m *MockRoute53API) ListHealthChecksPages(arg0 *route53.ListHealthChecksInput, arg1 func(*route53.ListHealthChecksOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListHealthChecksPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListHealthChecksPages indicates an expected call of ListHealthChecksPages. +func (mr *MockRoute53APIMockRecorder) ListHealthChecksPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHealthChecksPages", reflect.TypeOf((*MockRoute53API)(nil).ListHealthChecksPages), arg0, arg1) +} + +// ListHealthChecksPagesWithContext mocks base method. +func (m *MockRoute53API) ListHealthChecksPagesWithContext(arg0 aws.Context, arg1 *route53.ListHealthChecksInput, arg2 func(*route53.ListHealthChecksOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListHealthChecksPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListHealthChecksPagesWithContext indicates an expected call of ListHealthChecksPagesWithContext. +func (mr *MockRoute53APIMockRecorder) ListHealthChecksPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHealthChecksPagesWithContext", reflect.TypeOf((*MockRoute53API)(nil).ListHealthChecksPagesWithContext), varargs...) +} + +// ListHealthChecksRequest mocks base method. +func (m *MockRoute53API) ListHealthChecksRequest(arg0 *route53.ListHealthChecksInput) (*request.Request, *route53.ListHealthChecksOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListHealthChecksRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.ListHealthChecksOutput) + return ret0, ret1 +} + +// ListHealthChecksRequest indicates an expected call of ListHealthChecksRequest. +func (mr *MockRoute53APIMockRecorder) ListHealthChecksRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHealthChecksRequest", reflect.TypeOf((*MockRoute53API)(nil).ListHealthChecksRequest), arg0) +} + +// ListHealthChecksWithContext mocks base method. +func (m *MockRoute53API) ListHealthChecksWithContext(arg0 aws.Context, arg1 *route53.ListHealthChecksInput, arg2 ...request.Option) (*route53.ListHealthChecksOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListHealthChecksWithContext", varargs...) + ret0, _ := ret[0].(*route53.ListHealthChecksOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListHealthChecksWithContext indicates an expected call of ListHealthChecksWithContext. +func (mr *MockRoute53APIMockRecorder) ListHealthChecksWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHealthChecksWithContext", reflect.TypeOf((*MockRoute53API)(nil).ListHealthChecksWithContext), varargs...) +} + +// ListHostedZones mocks base method. +func (m *MockRoute53API) ListHostedZones(arg0 *route53.ListHostedZonesInput) (*route53.ListHostedZonesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListHostedZones", arg0) + ret0, _ := ret[0].(*route53.ListHostedZonesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListHostedZones indicates an expected call of ListHostedZones. +func (mr *MockRoute53APIMockRecorder) ListHostedZones(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHostedZones", reflect.TypeOf((*MockRoute53API)(nil).ListHostedZones), arg0) +} + +// ListHostedZonesByName mocks base method. +func (m *MockRoute53API) ListHostedZonesByName(arg0 *route53.ListHostedZonesByNameInput) (*route53.ListHostedZonesByNameOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListHostedZonesByName", arg0) + ret0, _ := ret[0].(*route53.ListHostedZonesByNameOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListHostedZonesByName indicates an expected call of ListHostedZonesByName. +func (mr *MockRoute53APIMockRecorder) ListHostedZonesByName(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHostedZonesByName", reflect.TypeOf((*MockRoute53API)(nil).ListHostedZonesByName), arg0) +} + +// ListHostedZonesByNameRequest mocks base method. +func (m *MockRoute53API) ListHostedZonesByNameRequest(arg0 *route53.ListHostedZonesByNameInput) (*request.Request, *route53.ListHostedZonesByNameOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListHostedZonesByNameRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.ListHostedZonesByNameOutput) + return ret0, ret1 +} + +// ListHostedZonesByNameRequest indicates an expected call of ListHostedZonesByNameRequest. +func (mr *MockRoute53APIMockRecorder) ListHostedZonesByNameRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHostedZonesByNameRequest", reflect.TypeOf((*MockRoute53API)(nil).ListHostedZonesByNameRequest), arg0) +} + +// ListHostedZonesByNameWithContext mocks base method. +func (m *MockRoute53API) ListHostedZonesByNameWithContext(arg0 aws.Context, arg1 *route53.ListHostedZonesByNameInput, arg2 ...request.Option) (*route53.ListHostedZonesByNameOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListHostedZonesByNameWithContext", varargs...) + ret0, _ := ret[0].(*route53.ListHostedZonesByNameOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListHostedZonesByNameWithContext indicates an expected call of ListHostedZonesByNameWithContext. +func (mr *MockRoute53APIMockRecorder) ListHostedZonesByNameWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHostedZonesByNameWithContext", reflect.TypeOf((*MockRoute53API)(nil).ListHostedZonesByNameWithContext), varargs...) +} + +// ListHostedZonesByVPC mocks base method. +func (m *MockRoute53API) ListHostedZonesByVPC(arg0 *route53.ListHostedZonesByVPCInput) (*route53.ListHostedZonesByVPCOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListHostedZonesByVPC", arg0) + ret0, _ := ret[0].(*route53.ListHostedZonesByVPCOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListHostedZonesByVPC indicates an expected call of ListHostedZonesByVPC. +func (mr *MockRoute53APIMockRecorder) ListHostedZonesByVPC(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHostedZonesByVPC", reflect.TypeOf((*MockRoute53API)(nil).ListHostedZonesByVPC), arg0) +} + +// ListHostedZonesByVPCRequest mocks base method. +func (m *MockRoute53API) ListHostedZonesByVPCRequest(arg0 *route53.ListHostedZonesByVPCInput) (*request.Request, *route53.ListHostedZonesByVPCOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListHostedZonesByVPCRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.ListHostedZonesByVPCOutput) + return ret0, ret1 +} + +// ListHostedZonesByVPCRequest indicates an expected call of ListHostedZonesByVPCRequest. +func (mr *MockRoute53APIMockRecorder) ListHostedZonesByVPCRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHostedZonesByVPCRequest", reflect.TypeOf((*MockRoute53API)(nil).ListHostedZonesByVPCRequest), arg0) +} + +// ListHostedZonesByVPCWithContext mocks base method. +func (m *MockRoute53API) ListHostedZonesByVPCWithContext(arg0 aws.Context, arg1 *route53.ListHostedZonesByVPCInput, arg2 ...request.Option) (*route53.ListHostedZonesByVPCOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListHostedZonesByVPCWithContext", varargs...) + ret0, _ := ret[0].(*route53.ListHostedZonesByVPCOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListHostedZonesByVPCWithContext indicates an expected call of ListHostedZonesByVPCWithContext. +func (mr *MockRoute53APIMockRecorder) ListHostedZonesByVPCWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHostedZonesByVPCWithContext", reflect.TypeOf((*MockRoute53API)(nil).ListHostedZonesByVPCWithContext), varargs...) +} + +// ListHostedZonesPages mocks base method. +func (m *MockRoute53API) ListHostedZonesPages(arg0 *route53.ListHostedZonesInput, arg1 func(*route53.ListHostedZonesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListHostedZonesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListHostedZonesPages indicates an expected call of ListHostedZonesPages. +func (mr *MockRoute53APIMockRecorder) ListHostedZonesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHostedZonesPages", reflect.TypeOf((*MockRoute53API)(nil).ListHostedZonesPages), arg0, arg1) +} + +// ListHostedZonesPagesWithContext mocks base method. +func (m *MockRoute53API) ListHostedZonesPagesWithContext(arg0 aws.Context, arg1 *route53.ListHostedZonesInput, arg2 func(*route53.ListHostedZonesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListHostedZonesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListHostedZonesPagesWithContext indicates an expected call of ListHostedZonesPagesWithContext. +func (mr *MockRoute53APIMockRecorder) ListHostedZonesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHostedZonesPagesWithContext", reflect.TypeOf((*MockRoute53API)(nil).ListHostedZonesPagesWithContext), varargs...) +} + +// ListHostedZonesRequest mocks base method. +func (m *MockRoute53API) ListHostedZonesRequest(arg0 *route53.ListHostedZonesInput) (*request.Request, *route53.ListHostedZonesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListHostedZonesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.ListHostedZonesOutput) + return ret0, ret1 +} + +// ListHostedZonesRequest indicates an expected call of ListHostedZonesRequest. +func (mr *MockRoute53APIMockRecorder) ListHostedZonesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHostedZonesRequest", reflect.TypeOf((*MockRoute53API)(nil).ListHostedZonesRequest), arg0) +} + +// ListHostedZonesWithContext mocks base method. +func (m *MockRoute53API) ListHostedZonesWithContext(arg0 aws.Context, arg1 *route53.ListHostedZonesInput, arg2 ...request.Option) (*route53.ListHostedZonesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListHostedZonesWithContext", varargs...) + ret0, _ := ret[0].(*route53.ListHostedZonesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListHostedZonesWithContext indicates an expected call of ListHostedZonesWithContext. +func (mr *MockRoute53APIMockRecorder) ListHostedZonesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListHostedZonesWithContext", reflect.TypeOf((*MockRoute53API)(nil).ListHostedZonesWithContext), varargs...) +} + +// ListQueryLoggingConfigs mocks base method. +func (m *MockRoute53API) ListQueryLoggingConfigs(arg0 *route53.ListQueryLoggingConfigsInput) (*route53.ListQueryLoggingConfigsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListQueryLoggingConfigs", arg0) + ret0, _ := ret[0].(*route53.ListQueryLoggingConfigsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListQueryLoggingConfigs indicates an expected call of ListQueryLoggingConfigs. +func (mr *MockRoute53APIMockRecorder) ListQueryLoggingConfigs(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListQueryLoggingConfigs", reflect.TypeOf((*MockRoute53API)(nil).ListQueryLoggingConfigs), arg0) +} + +// ListQueryLoggingConfigsPages mocks base method. +func (m *MockRoute53API) ListQueryLoggingConfigsPages(arg0 *route53.ListQueryLoggingConfigsInput, arg1 func(*route53.ListQueryLoggingConfigsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListQueryLoggingConfigsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListQueryLoggingConfigsPages indicates an expected call of ListQueryLoggingConfigsPages. +func (mr *MockRoute53APIMockRecorder) ListQueryLoggingConfigsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListQueryLoggingConfigsPages", reflect.TypeOf((*MockRoute53API)(nil).ListQueryLoggingConfigsPages), arg0, arg1) +} + +// ListQueryLoggingConfigsPagesWithContext mocks base method. +func (m *MockRoute53API) ListQueryLoggingConfigsPagesWithContext(arg0 aws.Context, arg1 *route53.ListQueryLoggingConfigsInput, arg2 func(*route53.ListQueryLoggingConfigsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListQueryLoggingConfigsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListQueryLoggingConfigsPagesWithContext indicates an expected call of ListQueryLoggingConfigsPagesWithContext. +func (mr *MockRoute53APIMockRecorder) ListQueryLoggingConfigsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListQueryLoggingConfigsPagesWithContext", reflect.TypeOf((*MockRoute53API)(nil).ListQueryLoggingConfigsPagesWithContext), varargs...) +} + +// ListQueryLoggingConfigsRequest mocks base method. +func (m *MockRoute53API) ListQueryLoggingConfigsRequest(arg0 *route53.ListQueryLoggingConfigsInput) (*request.Request, *route53.ListQueryLoggingConfigsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListQueryLoggingConfigsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.ListQueryLoggingConfigsOutput) + return ret0, ret1 +} + +// ListQueryLoggingConfigsRequest indicates an expected call of ListQueryLoggingConfigsRequest. +func (mr *MockRoute53APIMockRecorder) ListQueryLoggingConfigsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListQueryLoggingConfigsRequest", reflect.TypeOf((*MockRoute53API)(nil).ListQueryLoggingConfigsRequest), arg0) +} + +// ListQueryLoggingConfigsWithContext mocks base method. +func (m *MockRoute53API) ListQueryLoggingConfigsWithContext(arg0 aws.Context, arg1 *route53.ListQueryLoggingConfigsInput, arg2 ...request.Option) (*route53.ListQueryLoggingConfigsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListQueryLoggingConfigsWithContext", varargs...) + ret0, _ := ret[0].(*route53.ListQueryLoggingConfigsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListQueryLoggingConfigsWithContext indicates an expected call of ListQueryLoggingConfigsWithContext. +func (mr *MockRoute53APIMockRecorder) ListQueryLoggingConfigsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListQueryLoggingConfigsWithContext", reflect.TypeOf((*MockRoute53API)(nil).ListQueryLoggingConfigsWithContext), varargs...) +} + +// ListResourceRecordSets mocks base method. +func (m *MockRoute53API) ListResourceRecordSets(arg0 *route53.ListResourceRecordSetsInput) (*route53.ListResourceRecordSetsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResourceRecordSets", arg0) + ret0, _ := ret[0].(*route53.ListResourceRecordSetsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListResourceRecordSets indicates an expected call of ListResourceRecordSets. +func (mr *MockRoute53APIMockRecorder) ListResourceRecordSets(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceRecordSets", reflect.TypeOf((*MockRoute53API)(nil).ListResourceRecordSets), arg0) +} + +// ListResourceRecordSetsPages mocks base method. +func (m *MockRoute53API) ListResourceRecordSetsPages(arg0 *route53.ListResourceRecordSetsInput, arg1 func(*route53.ListResourceRecordSetsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResourceRecordSetsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListResourceRecordSetsPages indicates an expected call of ListResourceRecordSetsPages. +func (mr *MockRoute53APIMockRecorder) ListResourceRecordSetsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceRecordSetsPages", reflect.TypeOf((*MockRoute53API)(nil).ListResourceRecordSetsPages), arg0, arg1) +} + +// ListResourceRecordSetsPagesWithContext mocks base method. +func (m *MockRoute53API) ListResourceRecordSetsPagesWithContext(arg0 aws.Context, arg1 *route53.ListResourceRecordSetsInput, arg2 func(*route53.ListResourceRecordSetsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListResourceRecordSetsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListResourceRecordSetsPagesWithContext indicates an expected call of ListResourceRecordSetsPagesWithContext. +func (mr *MockRoute53APIMockRecorder) ListResourceRecordSetsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceRecordSetsPagesWithContext", reflect.TypeOf((*MockRoute53API)(nil).ListResourceRecordSetsPagesWithContext), varargs...) +} + +// ListResourceRecordSetsRequest mocks base method. +func (m *MockRoute53API) ListResourceRecordSetsRequest(arg0 *route53.ListResourceRecordSetsInput) (*request.Request, *route53.ListResourceRecordSetsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResourceRecordSetsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.ListResourceRecordSetsOutput) + return ret0, ret1 +} + +// ListResourceRecordSetsRequest indicates an expected call of ListResourceRecordSetsRequest. +func (mr *MockRoute53APIMockRecorder) ListResourceRecordSetsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceRecordSetsRequest", reflect.TypeOf((*MockRoute53API)(nil).ListResourceRecordSetsRequest), arg0) +} + +// ListResourceRecordSetsWithContext mocks base method. +func (m *MockRoute53API) ListResourceRecordSetsWithContext(arg0 aws.Context, arg1 *route53.ListResourceRecordSetsInput, arg2 ...request.Option) (*route53.ListResourceRecordSetsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListResourceRecordSetsWithContext", varargs...) + ret0, _ := ret[0].(*route53.ListResourceRecordSetsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListResourceRecordSetsWithContext indicates an expected call of ListResourceRecordSetsWithContext. +func (mr *MockRoute53APIMockRecorder) ListResourceRecordSetsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceRecordSetsWithContext", reflect.TypeOf((*MockRoute53API)(nil).ListResourceRecordSetsWithContext), varargs...) +} + +// ListReusableDelegationSets mocks base method. +func (m *MockRoute53API) ListReusableDelegationSets(arg0 *route53.ListReusableDelegationSetsInput) (*route53.ListReusableDelegationSetsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListReusableDelegationSets", arg0) + ret0, _ := ret[0].(*route53.ListReusableDelegationSetsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListReusableDelegationSets indicates an expected call of ListReusableDelegationSets. +func (mr *MockRoute53APIMockRecorder) ListReusableDelegationSets(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListReusableDelegationSets", reflect.TypeOf((*MockRoute53API)(nil).ListReusableDelegationSets), arg0) +} + +// ListReusableDelegationSetsRequest mocks base method. +func (m *MockRoute53API) ListReusableDelegationSetsRequest(arg0 *route53.ListReusableDelegationSetsInput) (*request.Request, *route53.ListReusableDelegationSetsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListReusableDelegationSetsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.ListReusableDelegationSetsOutput) + return ret0, ret1 +} + +// ListReusableDelegationSetsRequest indicates an expected call of ListReusableDelegationSetsRequest. +func (mr *MockRoute53APIMockRecorder) ListReusableDelegationSetsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListReusableDelegationSetsRequest", reflect.TypeOf((*MockRoute53API)(nil).ListReusableDelegationSetsRequest), arg0) +} + +// ListReusableDelegationSetsWithContext mocks base method. +func (m *MockRoute53API) ListReusableDelegationSetsWithContext(arg0 aws.Context, arg1 *route53.ListReusableDelegationSetsInput, arg2 ...request.Option) (*route53.ListReusableDelegationSetsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListReusableDelegationSetsWithContext", varargs...) + ret0, _ := ret[0].(*route53.ListReusableDelegationSetsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListReusableDelegationSetsWithContext indicates an expected call of ListReusableDelegationSetsWithContext. +func (mr *MockRoute53APIMockRecorder) ListReusableDelegationSetsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListReusableDelegationSetsWithContext", reflect.TypeOf((*MockRoute53API)(nil).ListReusableDelegationSetsWithContext), varargs...) +} + +// ListTagsForResource mocks base method. +func (m *MockRoute53API) ListTagsForResource(arg0 *route53.ListTagsForResourceInput) (*route53.ListTagsForResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTagsForResource", arg0) + ret0, _ := ret[0].(*route53.ListTagsForResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTagsForResource indicates an expected call of ListTagsForResource. +func (mr *MockRoute53APIMockRecorder) ListTagsForResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsForResource", reflect.TypeOf((*MockRoute53API)(nil).ListTagsForResource), arg0) +} + +// ListTagsForResourceRequest mocks base method. +func (m *MockRoute53API) ListTagsForResourceRequest(arg0 *route53.ListTagsForResourceInput) (*request.Request, *route53.ListTagsForResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTagsForResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.ListTagsForResourceOutput) + return ret0, ret1 +} + +// ListTagsForResourceRequest indicates an expected call of ListTagsForResourceRequest. +func (mr *MockRoute53APIMockRecorder) ListTagsForResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsForResourceRequest", reflect.TypeOf((*MockRoute53API)(nil).ListTagsForResourceRequest), arg0) +} + +// ListTagsForResourceWithContext mocks base method. +func (m *MockRoute53API) ListTagsForResourceWithContext(arg0 aws.Context, arg1 *route53.ListTagsForResourceInput, arg2 ...request.Option) (*route53.ListTagsForResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTagsForResourceWithContext", varargs...) + ret0, _ := ret[0].(*route53.ListTagsForResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTagsForResourceWithContext indicates an expected call of ListTagsForResourceWithContext. +func (mr *MockRoute53APIMockRecorder) ListTagsForResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsForResourceWithContext", reflect.TypeOf((*MockRoute53API)(nil).ListTagsForResourceWithContext), varargs...) +} + +// ListTagsForResources mocks base method. +func (m *MockRoute53API) ListTagsForResources(arg0 *route53.ListTagsForResourcesInput) (*route53.ListTagsForResourcesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTagsForResources", arg0) + ret0, _ := ret[0].(*route53.ListTagsForResourcesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTagsForResources indicates an expected call of ListTagsForResources. +func (mr *MockRoute53APIMockRecorder) ListTagsForResources(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsForResources", reflect.TypeOf((*MockRoute53API)(nil).ListTagsForResources), arg0) +} + +// ListTagsForResourcesRequest mocks base method. +func (m *MockRoute53API) ListTagsForResourcesRequest(arg0 *route53.ListTagsForResourcesInput) (*request.Request, *route53.ListTagsForResourcesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTagsForResourcesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.ListTagsForResourcesOutput) + return ret0, ret1 +} + +// ListTagsForResourcesRequest indicates an expected call of ListTagsForResourcesRequest. +func (mr *MockRoute53APIMockRecorder) ListTagsForResourcesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsForResourcesRequest", reflect.TypeOf((*MockRoute53API)(nil).ListTagsForResourcesRequest), arg0) +} + +// ListTagsForResourcesWithContext mocks base method. +func (m *MockRoute53API) ListTagsForResourcesWithContext(arg0 aws.Context, arg1 *route53.ListTagsForResourcesInput, arg2 ...request.Option) (*route53.ListTagsForResourcesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTagsForResourcesWithContext", varargs...) + ret0, _ := ret[0].(*route53.ListTagsForResourcesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTagsForResourcesWithContext indicates an expected call of ListTagsForResourcesWithContext. +func (mr *MockRoute53APIMockRecorder) ListTagsForResourcesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsForResourcesWithContext", reflect.TypeOf((*MockRoute53API)(nil).ListTagsForResourcesWithContext), varargs...) +} + +// ListTrafficPolicies mocks base method. +func (m *MockRoute53API) ListTrafficPolicies(arg0 *route53.ListTrafficPoliciesInput) (*route53.ListTrafficPoliciesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTrafficPolicies", arg0) + ret0, _ := ret[0].(*route53.ListTrafficPoliciesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTrafficPolicies indicates an expected call of ListTrafficPolicies. +func (mr *MockRoute53APIMockRecorder) ListTrafficPolicies(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrafficPolicies", reflect.TypeOf((*MockRoute53API)(nil).ListTrafficPolicies), arg0) +} + +// ListTrafficPoliciesRequest mocks base method. +func (m *MockRoute53API) ListTrafficPoliciesRequest(arg0 *route53.ListTrafficPoliciesInput) (*request.Request, *route53.ListTrafficPoliciesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTrafficPoliciesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.ListTrafficPoliciesOutput) + return ret0, ret1 +} + +// ListTrafficPoliciesRequest indicates an expected call of ListTrafficPoliciesRequest. +func (mr *MockRoute53APIMockRecorder) ListTrafficPoliciesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrafficPoliciesRequest", reflect.TypeOf((*MockRoute53API)(nil).ListTrafficPoliciesRequest), arg0) +} + +// ListTrafficPoliciesWithContext mocks base method. +func (m *MockRoute53API) ListTrafficPoliciesWithContext(arg0 aws.Context, arg1 *route53.ListTrafficPoliciesInput, arg2 ...request.Option) (*route53.ListTrafficPoliciesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTrafficPoliciesWithContext", varargs...) + ret0, _ := ret[0].(*route53.ListTrafficPoliciesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTrafficPoliciesWithContext indicates an expected call of ListTrafficPoliciesWithContext. +func (mr *MockRoute53APIMockRecorder) ListTrafficPoliciesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrafficPoliciesWithContext", reflect.TypeOf((*MockRoute53API)(nil).ListTrafficPoliciesWithContext), varargs...) +} + +// ListTrafficPolicyInstances mocks base method. +func (m *MockRoute53API) ListTrafficPolicyInstances(arg0 *route53.ListTrafficPolicyInstancesInput) (*route53.ListTrafficPolicyInstancesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTrafficPolicyInstances", arg0) + ret0, _ := ret[0].(*route53.ListTrafficPolicyInstancesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTrafficPolicyInstances indicates an expected call of ListTrafficPolicyInstances. +func (mr *MockRoute53APIMockRecorder) ListTrafficPolicyInstances(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrafficPolicyInstances", reflect.TypeOf((*MockRoute53API)(nil).ListTrafficPolicyInstances), arg0) +} + +// ListTrafficPolicyInstancesByHostedZone mocks base method. +func (m *MockRoute53API) ListTrafficPolicyInstancesByHostedZone(arg0 *route53.ListTrafficPolicyInstancesByHostedZoneInput) (*route53.ListTrafficPolicyInstancesByHostedZoneOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTrafficPolicyInstancesByHostedZone", arg0) + ret0, _ := ret[0].(*route53.ListTrafficPolicyInstancesByHostedZoneOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTrafficPolicyInstancesByHostedZone indicates an expected call of ListTrafficPolicyInstancesByHostedZone. +func (mr *MockRoute53APIMockRecorder) ListTrafficPolicyInstancesByHostedZone(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrafficPolicyInstancesByHostedZone", reflect.TypeOf((*MockRoute53API)(nil).ListTrafficPolicyInstancesByHostedZone), arg0) +} + +// ListTrafficPolicyInstancesByHostedZoneRequest mocks base method. +func (m *MockRoute53API) ListTrafficPolicyInstancesByHostedZoneRequest(arg0 *route53.ListTrafficPolicyInstancesByHostedZoneInput) (*request.Request, *route53.ListTrafficPolicyInstancesByHostedZoneOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTrafficPolicyInstancesByHostedZoneRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.ListTrafficPolicyInstancesByHostedZoneOutput) + return ret0, ret1 +} + +// ListTrafficPolicyInstancesByHostedZoneRequest indicates an expected call of ListTrafficPolicyInstancesByHostedZoneRequest. +func (mr *MockRoute53APIMockRecorder) ListTrafficPolicyInstancesByHostedZoneRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrafficPolicyInstancesByHostedZoneRequest", reflect.TypeOf((*MockRoute53API)(nil).ListTrafficPolicyInstancesByHostedZoneRequest), arg0) +} + +// ListTrafficPolicyInstancesByHostedZoneWithContext mocks base method. +func (m *MockRoute53API) ListTrafficPolicyInstancesByHostedZoneWithContext(arg0 aws.Context, arg1 *route53.ListTrafficPolicyInstancesByHostedZoneInput, arg2 ...request.Option) (*route53.ListTrafficPolicyInstancesByHostedZoneOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTrafficPolicyInstancesByHostedZoneWithContext", varargs...) + ret0, _ := ret[0].(*route53.ListTrafficPolicyInstancesByHostedZoneOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTrafficPolicyInstancesByHostedZoneWithContext indicates an expected call of ListTrafficPolicyInstancesByHostedZoneWithContext. +func (mr *MockRoute53APIMockRecorder) ListTrafficPolicyInstancesByHostedZoneWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrafficPolicyInstancesByHostedZoneWithContext", reflect.TypeOf((*MockRoute53API)(nil).ListTrafficPolicyInstancesByHostedZoneWithContext), varargs...) +} + +// ListTrafficPolicyInstancesByPolicy mocks base method. +func (m *MockRoute53API) ListTrafficPolicyInstancesByPolicy(arg0 *route53.ListTrafficPolicyInstancesByPolicyInput) (*route53.ListTrafficPolicyInstancesByPolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTrafficPolicyInstancesByPolicy", arg0) + ret0, _ := ret[0].(*route53.ListTrafficPolicyInstancesByPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTrafficPolicyInstancesByPolicy indicates an expected call of ListTrafficPolicyInstancesByPolicy. +func (mr *MockRoute53APIMockRecorder) ListTrafficPolicyInstancesByPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrafficPolicyInstancesByPolicy", reflect.TypeOf((*MockRoute53API)(nil).ListTrafficPolicyInstancesByPolicy), arg0) +} + +// ListTrafficPolicyInstancesByPolicyRequest mocks base method. +func (m *MockRoute53API) ListTrafficPolicyInstancesByPolicyRequest(arg0 *route53.ListTrafficPolicyInstancesByPolicyInput) (*request.Request, *route53.ListTrafficPolicyInstancesByPolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTrafficPolicyInstancesByPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.ListTrafficPolicyInstancesByPolicyOutput) + return ret0, ret1 +} + +// ListTrafficPolicyInstancesByPolicyRequest indicates an expected call of ListTrafficPolicyInstancesByPolicyRequest. +func (mr *MockRoute53APIMockRecorder) ListTrafficPolicyInstancesByPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrafficPolicyInstancesByPolicyRequest", reflect.TypeOf((*MockRoute53API)(nil).ListTrafficPolicyInstancesByPolicyRequest), arg0) +} + +// ListTrafficPolicyInstancesByPolicyWithContext mocks base method. +func (m *MockRoute53API) ListTrafficPolicyInstancesByPolicyWithContext(arg0 aws.Context, arg1 *route53.ListTrafficPolicyInstancesByPolicyInput, arg2 ...request.Option) (*route53.ListTrafficPolicyInstancesByPolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTrafficPolicyInstancesByPolicyWithContext", varargs...) + ret0, _ := ret[0].(*route53.ListTrafficPolicyInstancesByPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTrafficPolicyInstancesByPolicyWithContext indicates an expected call of ListTrafficPolicyInstancesByPolicyWithContext. +func (mr *MockRoute53APIMockRecorder) ListTrafficPolicyInstancesByPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrafficPolicyInstancesByPolicyWithContext", reflect.TypeOf((*MockRoute53API)(nil).ListTrafficPolicyInstancesByPolicyWithContext), varargs...) +} + +// ListTrafficPolicyInstancesRequest mocks base method. +func (m *MockRoute53API) ListTrafficPolicyInstancesRequest(arg0 *route53.ListTrafficPolicyInstancesInput) (*request.Request, *route53.ListTrafficPolicyInstancesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTrafficPolicyInstancesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.ListTrafficPolicyInstancesOutput) + return ret0, ret1 +} + +// ListTrafficPolicyInstancesRequest indicates an expected call of ListTrafficPolicyInstancesRequest. +func (mr *MockRoute53APIMockRecorder) ListTrafficPolicyInstancesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrafficPolicyInstancesRequest", reflect.TypeOf((*MockRoute53API)(nil).ListTrafficPolicyInstancesRequest), arg0) +} + +// ListTrafficPolicyInstancesWithContext mocks base method. +func (m *MockRoute53API) ListTrafficPolicyInstancesWithContext(arg0 aws.Context, arg1 *route53.ListTrafficPolicyInstancesInput, arg2 ...request.Option) (*route53.ListTrafficPolicyInstancesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTrafficPolicyInstancesWithContext", varargs...) + ret0, _ := ret[0].(*route53.ListTrafficPolicyInstancesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTrafficPolicyInstancesWithContext indicates an expected call of ListTrafficPolicyInstancesWithContext. +func (mr *MockRoute53APIMockRecorder) ListTrafficPolicyInstancesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrafficPolicyInstancesWithContext", reflect.TypeOf((*MockRoute53API)(nil).ListTrafficPolicyInstancesWithContext), varargs...) +} + +// ListTrafficPolicyVersions mocks base method. +func (m *MockRoute53API) ListTrafficPolicyVersions(arg0 *route53.ListTrafficPolicyVersionsInput) (*route53.ListTrafficPolicyVersionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTrafficPolicyVersions", arg0) + ret0, _ := ret[0].(*route53.ListTrafficPolicyVersionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTrafficPolicyVersions indicates an expected call of ListTrafficPolicyVersions. +func (mr *MockRoute53APIMockRecorder) ListTrafficPolicyVersions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrafficPolicyVersions", reflect.TypeOf((*MockRoute53API)(nil).ListTrafficPolicyVersions), arg0) +} + +// ListTrafficPolicyVersionsRequest mocks base method. +func (m *MockRoute53API) ListTrafficPolicyVersionsRequest(arg0 *route53.ListTrafficPolicyVersionsInput) (*request.Request, *route53.ListTrafficPolicyVersionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTrafficPolicyVersionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.ListTrafficPolicyVersionsOutput) + return ret0, ret1 +} + +// ListTrafficPolicyVersionsRequest indicates an expected call of ListTrafficPolicyVersionsRequest. +func (mr *MockRoute53APIMockRecorder) ListTrafficPolicyVersionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrafficPolicyVersionsRequest", reflect.TypeOf((*MockRoute53API)(nil).ListTrafficPolicyVersionsRequest), arg0) +} + +// ListTrafficPolicyVersionsWithContext mocks base method. +func (m *MockRoute53API) ListTrafficPolicyVersionsWithContext(arg0 aws.Context, arg1 *route53.ListTrafficPolicyVersionsInput, arg2 ...request.Option) (*route53.ListTrafficPolicyVersionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTrafficPolicyVersionsWithContext", varargs...) + ret0, _ := ret[0].(*route53.ListTrafficPolicyVersionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTrafficPolicyVersionsWithContext indicates an expected call of ListTrafficPolicyVersionsWithContext. +func (mr *MockRoute53APIMockRecorder) ListTrafficPolicyVersionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTrafficPolicyVersionsWithContext", reflect.TypeOf((*MockRoute53API)(nil).ListTrafficPolicyVersionsWithContext), varargs...) +} + +// ListVPCAssociationAuthorizations mocks base method. +func (m *MockRoute53API) ListVPCAssociationAuthorizations(arg0 *route53.ListVPCAssociationAuthorizationsInput) (*route53.ListVPCAssociationAuthorizationsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListVPCAssociationAuthorizations", arg0) + ret0, _ := ret[0].(*route53.ListVPCAssociationAuthorizationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListVPCAssociationAuthorizations indicates an expected call of ListVPCAssociationAuthorizations. +func (mr *MockRoute53APIMockRecorder) ListVPCAssociationAuthorizations(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListVPCAssociationAuthorizations", reflect.TypeOf((*MockRoute53API)(nil).ListVPCAssociationAuthorizations), arg0) +} + +// ListVPCAssociationAuthorizationsRequest mocks base method. +func (m *MockRoute53API) ListVPCAssociationAuthorizationsRequest(arg0 *route53.ListVPCAssociationAuthorizationsInput) (*request.Request, *route53.ListVPCAssociationAuthorizationsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListVPCAssociationAuthorizationsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.ListVPCAssociationAuthorizationsOutput) + return ret0, ret1 +} + +// ListVPCAssociationAuthorizationsRequest indicates an expected call of ListVPCAssociationAuthorizationsRequest. +func (mr *MockRoute53APIMockRecorder) ListVPCAssociationAuthorizationsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListVPCAssociationAuthorizationsRequest", reflect.TypeOf((*MockRoute53API)(nil).ListVPCAssociationAuthorizationsRequest), arg0) +} + +// ListVPCAssociationAuthorizationsWithContext mocks base method. +func (m *MockRoute53API) ListVPCAssociationAuthorizationsWithContext(arg0 aws.Context, arg1 *route53.ListVPCAssociationAuthorizationsInput, arg2 ...request.Option) (*route53.ListVPCAssociationAuthorizationsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListVPCAssociationAuthorizationsWithContext", varargs...) + ret0, _ := ret[0].(*route53.ListVPCAssociationAuthorizationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListVPCAssociationAuthorizationsWithContext indicates an expected call of ListVPCAssociationAuthorizationsWithContext. +func (mr *MockRoute53APIMockRecorder) ListVPCAssociationAuthorizationsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListVPCAssociationAuthorizationsWithContext", reflect.TypeOf((*MockRoute53API)(nil).ListVPCAssociationAuthorizationsWithContext), varargs...) +} + +// TestDNSAnswer mocks base method. +func (m *MockRoute53API) TestDNSAnswer(arg0 *route53.TestDNSAnswerInput) (*route53.TestDNSAnswerOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TestDNSAnswer", arg0) + ret0, _ := ret[0].(*route53.TestDNSAnswerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TestDNSAnswer indicates an expected call of TestDNSAnswer. +func (mr *MockRoute53APIMockRecorder) TestDNSAnswer(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TestDNSAnswer", reflect.TypeOf((*MockRoute53API)(nil).TestDNSAnswer), arg0) +} + +// TestDNSAnswerRequest mocks base method. +func (m *MockRoute53API) TestDNSAnswerRequest(arg0 *route53.TestDNSAnswerInput) (*request.Request, *route53.TestDNSAnswerOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TestDNSAnswerRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.TestDNSAnswerOutput) + return ret0, ret1 +} + +// TestDNSAnswerRequest indicates an expected call of TestDNSAnswerRequest. +func (mr *MockRoute53APIMockRecorder) TestDNSAnswerRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TestDNSAnswerRequest", reflect.TypeOf((*MockRoute53API)(nil).TestDNSAnswerRequest), arg0) +} + +// TestDNSAnswerWithContext mocks base method. +func (m *MockRoute53API) TestDNSAnswerWithContext(arg0 aws.Context, arg1 *route53.TestDNSAnswerInput, arg2 ...request.Option) (*route53.TestDNSAnswerOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "TestDNSAnswerWithContext", varargs...) + ret0, _ := ret[0].(*route53.TestDNSAnswerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TestDNSAnswerWithContext indicates an expected call of TestDNSAnswerWithContext. +func (mr *MockRoute53APIMockRecorder) TestDNSAnswerWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TestDNSAnswerWithContext", reflect.TypeOf((*MockRoute53API)(nil).TestDNSAnswerWithContext), varargs...) +} + +// UpdateHealthCheck mocks base method. +func (m *MockRoute53API) UpdateHealthCheck(arg0 *route53.UpdateHealthCheckInput) (*route53.UpdateHealthCheckOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateHealthCheck", arg0) + ret0, _ := ret[0].(*route53.UpdateHealthCheckOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateHealthCheck indicates an expected call of UpdateHealthCheck. +func (mr *MockRoute53APIMockRecorder) UpdateHealthCheck(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateHealthCheck", reflect.TypeOf((*MockRoute53API)(nil).UpdateHealthCheck), arg0) +} + +// UpdateHealthCheckRequest mocks base method. +func (m *MockRoute53API) UpdateHealthCheckRequest(arg0 *route53.UpdateHealthCheckInput) (*request.Request, *route53.UpdateHealthCheckOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateHealthCheckRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.UpdateHealthCheckOutput) + return ret0, ret1 +} + +// UpdateHealthCheckRequest indicates an expected call of UpdateHealthCheckRequest. +func (mr *MockRoute53APIMockRecorder) UpdateHealthCheckRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateHealthCheckRequest", reflect.TypeOf((*MockRoute53API)(nil).UpdateHealthCheckRequest), arg0) +} + +// UpdateHealthCheckWithContext mocks base method. +func (m *MockRoute53API) UpdateHealthCheckWithContext(arg0 aws.Context, arg1 *route53.UpdateHealthCheckInput, arg2 ...request.Option) (*route53.UpdateHealthCheckOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateHealthCheckWithContext", varargs...) + ret0, _ := ret[0].(*route53.UpdateHealthCheckOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateHealthCheckWithContext indicates an expected call of UpdateHealthCheckWithContext. +func (mr *MockRoute53APIMockRecorder) UpdateHealthCheckWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateHealthCheckWithContext", reflect.TypeOf((*MockRoute53API)(nil).UpdateHealthCheckWithContext), varargs...) +} + +// UpdateHostedZoneComment mocks base method. +func (m *MockRoute53API) UpdateHostedZoneComment(arg0 *route53.UpdateHostedZoneCommentInput) (*route53.UpdateHostedZoneCommentOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateHostedZoneComment", arg0) + ret0, _ := ret[0].(*route53.UpdateHostedZoneCommentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateHostedZoneComment indicates an expected call of UpdateHostedZoneComment. +func (mr *MockRoute53APIMockRecorder) UpdateHostedZoneComment(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateHostedZoneComment", reflect.TypeOf((*MockRoute53API)(nil).UpdateHostedZoneComment), arg0) +} + +// UpdateHostedZoneCommentRequest mocks base method. +func (m *MockRoute53API) UpdateHostedZoneCommentRequest(arg0 *route53.UpdateHostedZoneCommentInput) (*request.Request, *route53.UpdateHostedZoneCommentOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateHostedZoneCommentRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.UpdateHostedZoneCommentOutput) + return ret0, ret1 +} + +// UpdateHostedZoneCommentRequest indicates an expected call of UpdateHostedZoneCommentRequest. +func (mr *MockRoute53APIMockRecorder) UpdateHostedZoneCommentRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateHostedZoneCommentRequest", reflect.TypeOf((*MockRoute53API)(nil).UpdateHostedZoneCommentRequest), arg0) +} + +// UpdateHostedZoneCommentWithContext mocks base method. +func (m *MockRoute53API) UpdateHostedZoneCommentWithContext(arg0 aws.Context, arg1 *route53.UpdateHostedZoneCommentInput, arg2 ...request.Option) (*route53.UpdateHostedZoneCommentOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateHostedZoneCommentWithContext", varargs...) + ret0, _ := ret[0].(*route53.UpdateHostedZoneCommentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateHostedZoneCommentWithContext indicates an expected call of UpdateHostedZoneCommentWithContext. +func (mr *MockRoute53APIMockRecorder) UpdateHostedZoneCommentWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateHostedZoneCommentWithContext", reflect.TypeOf((*MockRoute53API)(nil).UpdateHostedZoneCommentWithContext), varargs...) +} + +// UpdateTrafficPolicyComment mocks base method. +func (m *MockRoute53API) UpdateTrafficPolicyComment(arg0 *route53.UpdateTrafficPolicyCommentInput) (*route53.UpdateTrafficPolicyCommentOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTrafficPolicyComment", arg0) + ret0, _ := ret[0].(*route53.UpdateTrafficPolicyCommentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTrafficPolicyComment indicates an expected call of UpdateTrafficPolicyComment. +func (mr *MockRoute53APIMockRecorder) UpdateTrafficPolicyComment(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTrafficPolicyComment", reflect.TypeOf((*MockRoute53API)(nil).UpdateTrafficPolicyComment), arg0) +} + +// UpdateTrafficPolicyCommentRequest mocks base method. +func (m *MockRoute53API) UpdateTrafficPolicyCommentRequest(arg0 *route53.UpdateTrafficPolicyCommentInput) (*request.Request, *route53.UpdateTrafficPolicyCommentOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTrafficPolicyCommentRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.UpdateTrafficPolicyCommentOutput) + return ret0, ret1 +} + +// UpdateTrafficPolicyCommentRequest indicates an expected call of UpdateTrafficPolicyCommentRequest. +func (mr *MockRoute53APIMockRecorder) UpdateTrafficPolicyCommentRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTrafficPolicyCommentRequest", reflect.TypeOf((*MockRoute53API)(nil).UpdateTrafficPolicyCommentRequest), arg0) +} + +// UpdateTrafficPolicyCommentWithContext mocks base method. +func (m *MockRoute53API) UpdateTrafficPolicyCommentWithContext(arg0 aws.Context, arg1 *route53.UpdateTrafficPolicyCommentInput, arg2 ...request.Option) (*route53.UpdateTrafficPolicyCommentOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateTrafficPolicyCommentWithContext", varargs...) + ret0, _ := ret[0].(*route53.UpdateTrafficPolicyCommentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTrafficPolicyCommentWithContext indicates an expected call of UpdateTrafficPolicyCommentWithContext. +func (mr *MockRoute53APIMockRecorder) UpdateTrafficPolicyCommentWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTrafficPolicyCommentWithContext", reflect.TypeOf((*MockRoute53API)(nil).UpdateTrafficPolicyCommentWithContext), varargs...) +} + +// UpdateTrafficPolicyInstance mocks base method. +func (m *MockRoute53API) UpdateTrafficPolicyInstance(arg0 *route53.UpdateTrafficPolicyInstanceInput) (*route53.UpdateTrafficPolicyInstanceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTrafficPolicyInstance", arg0) + ret0, _ := ret[0].(*route53.UpdateTrafficPolicyInstanceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTrafficPolicyInstance indicates an expected call of UpdateTrafficPolicyInstance. +func (mr *MockRoute53APIMockRecorder) UpdateTrafficPolicyInstance(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTrafficPolicyInstance", reflect.TypeOf((*MockRoute53API)(nil).UpdateTrafficPolicyInstance), arg0) +} + +// UpdateTrafficPolicyInstanceRequest mocks base method. +func (m *MockRoute53API) UpdateTrafficPolicyInstanceRequest(arg0 *route53.UpdateTrafficPolicyInstanceInput) (*request.Request, *route53.UpdateTrafficPolicyInstanceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateTrafficPolicyInstanceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53.UpdateTrafficPolicyInstanceOutput) + return ret0, ret1 +} + +// UpdateTrafficPolicyInstanceRequest indicates an expected call of UpdateTrafficPolicyInstanceRequest. +func (mr *MockRoute53APIMockRecorder) UpdateTrafficPolicyInstanceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTrafficPolicyInstanceRequest", reflect.TypeOf((*MockRoute53API)(nil).UpdateTrafficPolicyInstanceRequest), arg0) +} + +// UpdateTrafficPolicyInstanceWithContext mocks base method. +func (m *MockRoute53API) UpdateTrafficPolicyInstanceWithContext(arg0 aws.Context, arg1 *route53.UpdateTrafficPolicyInstanceInput, arg2 ...request.Option) (*route53.UpdateTrafficPolicyInstanceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateTrafficPolicyInstanceWithContext", varargs...) + ret0, _ := ret[0].(*route53.UpdateTrafficPolicyInstanceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateTrafficPolicyInstanceWithContext indicates an expected call of UpdateTrafficPolicyInstanceWithContext. +func (mr *MockRoute53APIMockRecorder) UpdateTrafficPolicyInstanceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTrafficPolicyInstanceWithContext", reflect.TypeOf((*MockRoute53API)(nil).UpdateTrafficPolicyInstanceWithContext), varargs...) +} + +// WaitUntilResourceRecordSetsChanged mocks base method. +func (m *MockRoute53API) WaitUntilResourceRecordSetsChanged(arg0 *route53.GetChangeInput) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "WaitUntilResourceRecordSetsChanged", arg0) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilResourceRecordSetsChanged indicates an expected call of WaitUntilResourceRecordSetsChanged. +func (mr *MockRoute53APIMockRecorder) WaitUntilResourceRecordSetsChanged(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilResourceRecordSetsChanged", reflect.TypeOf((*MockRoute53API)(nil).WaitUntilResourceRecordSetsChanged), arg0) +} + +// WaitUntilResourceRecordSetsChangedWithContext mocks base method. +func (m *MockRoute53API) WaitUntilResourceRecordSetsChangedWithContext(arg0 aws.Context, arg1 *route53.GetChangeInput, arg2 ...request.WaiterOption) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "WaitUntilResourceRecordSetsChangedWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// WaitUntilResourceRecordSetsChangedWithContext indicates an expected call of WaitUntilResourceRecordSetsChangedWithContext. +func (mr *MockRoute53APIMockRecorder) WaitUntilResourceRecordSetsChangedWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitUntilResourceRecordSetsChangedWithContext", reflect.TypeOf((*MockRoute53API)(nil).WaitUntilResourceRecordSetsChangedWithContext), varargs...) +} diff --git a/resources/route53_mock_test.go b/resources/route53_mock_test.go new file mode 100644 index 00000000..ae38e54d --- /dev/null +++ b/resources/route53_mock_test.go @@ -0,0 +1,4 @@ +//go:generate ../mocks/generate_mocks.sh route53 route53iface +package resources + +// Note: empty on purpose, this file exist purely to generate mocks for the Route53 service From fd4b87db3ce4f03cf645d79995f2bad453a9326a Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 11 Sep 2024 12:04:16 -0600 Subject: [PATCH 461/617] test(route53): adding mocks for testing route53resolver --- mocks/mock_route53resolveriface/mock.go | 3965 +++++++++++++++++++++++ resources/route53_mock_test.go | 1 + 2 files changed, 3966 insertions(+) create mode 100644 mocks/mock_route53resolveriface/mock.go diff --git a/mocks/mock_route53resolveriface/mock.go b/mocks/mock_route53resolveriface/mock.go new file mode 100644 index 00000000..7eeabf8f --- /dev/null +++ b/mocks/mock_route53resolveriface/mock.go @@ -0,0 +1,3965 @@ +// Code generated by MockGen. DO NOT EDIT. +// Source: /Users/ekristen/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.20/service/route53resolver/route53resolveriface/interface.go + +// Package mock_route53resolveriface is a generated GoMock package. +package mock_route53resolveriface + +import ( + reflect "reflect" + + aws "github.com/aws/aws-sdk-go/aws" + request "github.com/aws/aws-sdk-go/aws/request" + route53resolver "github.com/aws/aws-sdk-go/service/route53resolver" + gomock "github.com/golang/mock/gomock" +) + +// MockRoute53ResolverAPI is a mock of Route53ResolverAPI interface. +type MockRoute53ResolverAPI struct { + ctrl *gomock.Controller + recorder *MockRoute53ResolverAPIMockRecorder +} + +// MockRoute53ResolverAPIMockRecorder is the mock recorder for MockRoute53ResolverAPI. +type MockRoute53ResolverAPIMockRecorder struct { + mock *MockRoute53ResolverAPI +} + +// NewMockRoute53ResolverAPI creates a new mock instance. +func NewMockRoute53ResolverAPI(ctrl *gomock.Controller) *MockRoute53ResolverAPI { + mock := &MockRoute53ResolverAPI{ctrl: ctrl} + mock.recorder = &MockRoute53ResolverAPIMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockRoute53ResolverAPI) EXPECT() *MockRoute53ResolverAPIMockRecorder { + return m.recorder +} + +// AssociateFirewallRuleGroup mocks base method. +func (m *MockRoute53ResolverAPI) AssociateFirewallRuleGroup(arg0 *route53resolver.AssociateFirewallRuleGroupInput) (*route53resolver.AssociateFirewallRuleGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AssociateFirewallRuleGroup", arg0) + ret0, _ := ret[0].(*route53resolver.AssociateFirewallRuleGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AssociateFirewallRuleGroup indicates an expected call of AssociateFirewallRuleGroup. +func (mr *MockRoute53ResolverAPIMockRecorder) AssociateFirewallRuleGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssociateFirewallRuleGroup", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).AssociateFirewallRuleGroup), arg0) +} + +// AssociateFirewallRuleGroupRequest mocks base method. +func (m *MockRoute53ResolverAPI) AssociateFirewallRuleGroupRequest(arg0 *route53resolver.AssociateFirewallRuleGroupInput) (*request.Request, *route53resolver.AssociateFirewallRuleGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AssociateFirewallRuleGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.AssociateFirewallRuleGroupOutput) + return ret0, ret1 +} + +// AssociateFirewallRuleGroupRequest indicates an expected call of AssociateFirewallRuleGroupRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) AssociateFirewallRuleGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssociateFirewallRuleGroupRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).AssociateFirewallRuleGroupRequest), arg0) +} + +// AssociateFirewallRuleGroupWithContext mocks base method. +func (m *MockRoute53ResolverAPI) AssociateFirewallRuleGroupWithContext(arg0 aws.Context, arg1 *route53resolver.AssociateFirewallRuleGroupInput, arg2 ...request.Option) (*route53resolver.AssociateFirewallRuleGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AssociateFirewallRuleGroupWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.AssociateFirewallRuleGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AssociateFirewallRuleGroupWithContext indicates an expected call of AssociateFirewallRuleGroupWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) AssociateFirewallRuleGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssociateFirewallRuleGroupWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).AssociateFirewallRuleGroupWithContext), varargs...) +} + +// AssociateResolverEndpointIpAddress mocks base method. +func (m *MockRoute53ResolverAPI) AssociateResolverEndpointIpAddress(arg0 *route53resolver.AssociateResolverEndpointIpAddressInput) (*route53resolver.AssociateResolverEndpointIpAddressOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AssociateResolverEndpointIpAddress", arg0) + ret0, _ := ret[0].(*route53resolver.AssociateResolverEndpointIpAddressOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AssociateResolverEndpointIpAddress indicates an expected call of AssociateResolverEndpointIpAddress. +func (mr *MockRoute53ResolverAPIMockRecorder) AssociateResolverEndpointIpAddress(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssociateResolverEndpointIpAddress", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).AssociateResolverEndpointIpAddress), arg0) +} + +// AssociateResolverEndpointIpAddressRequest mocks base method. +func (m *MockRoute53ResolverAPI) AssociateResolverEndpointIpAddressRequest(arg0 *route53resolver.AssociateResolverEndpointIpAddressInput) (*request.Request, *route53resolver.AssociateResolverEndpointIpAddressOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AssociateResolverEndpointIpAddressRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.AssociateResolverEndpointIpAddressOutput) + return ret0, ret1 +} + +// AssociateResolverEndpointIpAddressRequest indicates an expected call of AssociateResolverEndpointIpAddressRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) AssociateResolverEndpointIpAddressRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssociateResolverEndpointIpAddressRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).AssociateResolverEndpointIpAddressRequest), arg0) +} + +// AssociateResolverEndpointIpAddressWithContext mocks base method. +func (m *MockRoute53ResolverAPI) AssociateResolverEndpointIpAddressWithContext(arg0 aws.Context, arg1 *route53resolver.AssociateResolverEndpointIpAddressInput, arg2 ...request.Option) (*route53resolver.AssociateResolverEndpointIpAddressOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AssociateResolverEndpointIpAddressWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.AssociateResolverEndpointIpAddressOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AssociateResolverEndpointIpAddressWithContext indicates an expected call of AssociateResolverEndpointIpAddressWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) AssociateResolverEndpointIpAddressWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssociateResolverEndpointIpAddressWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).AssociateResolverEndpointIpAddressWithContext), varargs...) +} + +// AssociateResolverQueryLogConfig mocks base method. +func (m *MockRoute53ResolverAPI) AssociateResolverQueryLogConfig(arg0 *route53resolver.AssociateResolverQueryLogConfigInput) (*route53resolver.AssociateResolverQueryLogConfigOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AssociateResolverQueryLogConfig", arg0) + ret0, _ := ret[0].(*route53resolver.AssociateResolverQueryLogConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AssociateResolverQueryLogConfig indicates an expected call of AssociateResolverQueryLogConfig. +func (mr *MockRoute53ResolverAPIMockRecorder) AssociateResolverQueryLogConfig(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssociateResolverQueryLogConfig", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).AssociateResolverQueryLogConfig), arg0) +} + +// AssociateResolverQueryLogConfigRequest mocks base method. +func (m *MockRoute53ResolverAPI) AssociateResolverQueryLogConfigRequest(arg0 *route53resolver.AssociateResolverQueryLogConfigInput) (*request.Request, *route53resolver.AssociateResolverQueryLogConfigOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AssociateResolverQueryLogConfigRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.AssociateResolverQueryLogConfigOutput) + return ret0, ret1 +} + +// AssociateResolverQueryLogConfigRequest indicates an expected call of AssociateResolverQueryLogConfigRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) AssociateResolverQueryLogConfigRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssociateResolverQueryLogConfigRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).AssociateResolverQueryLogConfigRequest), arg0) +} + +// AssociateResolverQueryLogConfigWithContext mocks base method. +func (m *MockRoute53ResolverAPI) AssociateResolverQueryLogConfigWithContext(arg0 aws.Context, arg1 *route53resolver.AssociateResolverQueryLogConfigInput, arg2 ...request.Option) (*route53resolver.AssociateResolverQueryLogConfigOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AssociateResolverQueryLogConfigWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.AssociateResolverQueryLogConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AssociateResolverQueryLogConfigWithContext indicates an expected call of AssociateResolverQueryLogConfigWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) AssociateResolverQueryLogConfigWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssociateResolverQueryLogConfigWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).AssociateResolverQueryLogConfigWithContext), varargs...) +} + +// AssociateResolverRule mocks base method. +func (m *MockRoute53ResolverAPI) AssociateResolverRule(arg0 *route53resolver.AssociateResolverRuleInput) (*route53resolver.AssociateResolverRuleOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AssociateResolverRule", arg0) + ret0, _ := ret[0].(*route53resolver.AssociateResolverRuleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AssociateResolverRule indicates an expected call of AssociateResolverRule. +func (mr *MockRoute53ResolverAPIMockRecorder) AssociateResolverRule(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssociateResolverRule", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).AssociateResolverRule), arg0) +} + +// AssociateResolverRuleRequest mocks base method. +func (m *MockRoute53ResolverAPI) AssociateResolverRuleRequest(arg0 *route53resolver.AssociateResolverRuleInput) (*request.Request, *route53resolver.AssociateResolverRuleOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AssociateResolverRuleRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.AssociateResolverRuleOutput) + return ret0, ret1 +} + +// AssociateResolverRuleRequest indicates an expected call of AssociateResolverRuleRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) AssociateResolverRuleRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssociateResolverRuleRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).AssociateResolverRuleRequest), arg0) +} + +// AssociateResolverRuleWithContext mocks base method. +func (m *MockRoute53ResolverAPI) AssociateResolverRuleWithContext(arg0 aws.Context, arg1 *route53resolver.AssociateResolverRuleInput, arg2 ...request.Option) (*route53resolver.AssociateResolverRuleOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AssociateResolverRuleWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.AssociateResolverRuleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AssociateResolverRuleWithContext indicates an expected call of AssociateResolverRuleWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) AssociateResolverRuleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssociateResolverRuleWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).AssociateResolverRuleWithContext), varargs...) +} + +// CreateFirewallDomainList mocks base method. +func (m *MockRoute53ResolverAPI) CreateFirewallDomainList(arg0 *route53resolver.CreateFirewallDomainListInput) (*route53resolver.CreateFirewallDomainListOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateFirewallDomainList", arg0) + ret0, _ := ret[0].(*route53resolver.CreateFirewallDomainListOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateFirewallDomainList indicates an expected call of CreateFirewallDomainList. +func (mr *MockRoute53ResolverAPIMockRecorder) CreateFirewallDomainList(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateFirewallDomainList", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).CreateFirewallDomainList), arg0) +} + +// CreateFirewallDomainListRequest mocks base method. +func (m *MockRoute53ResolverAPI) CreateFirewallDomainListRequest(arg0 *route53resolver.CreateFirewallDomainListInput) (*request.Request, *route53resolver.CreateFirewallDomainListOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateFirewallDomainListRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.CreateFirewallDomainListOutput) + return ret0, ret1 +} + +// CreateFirewallDomainListRequest indicates an expected call of CreateFirewallDomainListRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) CreateFirewallDomainListRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateFirewallDomainListRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).CreateFirewallDomainListRequest), arg0) +} + +// CreateFirewallDomainListWithContext mocks base method. +func (m *MockRoute53ResolverAPI) CreateFirewallDomainListWithContext(arg0 aws.Context, arg1 *route53resolver.CreateFirewallDomainListInput, arg2 ...request.Option) (*route53resolver.CreateFirewallDomainListOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateFirewallDomainListWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.CreateFirewallDomainListOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateFirewallDomainListWithContext indicates an expected call of CreateFirewallDomainListWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) CreateFirewallDomainListWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateFirewallDomainListWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).CreateFirewallDomainListWithContext), varargs...) +} + +// CreateFirewallRule mocks base method. +func (m *MockRoute53ResolverAPI) CreateFirewallRule(arg0 *route53resolver.CreateFirewallRuleInput) (*route53resolver.CreateFirewallRuleOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateFirewallRule", arg0) + ret0, _ := ret[0].(*route53resolver.CreateFirewallRuleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateFirewallRule indicates an expected call of CreateFirewallRule. +func (mr *MockRoute53ResolverAPIMockRecorder) CreateFirewallRule(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateFirewallRule", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).CreateFirewallRule), arg0) +} + +// CreateFirewallRuleGroup mocks base method. +func (m *MockRoute53ResolverAPI) CreateFirewallRuleGroup(arg0 *route53resolver.CreateFirewallRuleGroupInput) (*route53resolver.CreateFirewallRuleGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateFirewallRuleGroup", arg0) + ret0, _ := ret[0].(*route53resolver.CreateFirewallRuleGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateFirewallRuleGroup indicates an expected call of CreateFirewallRuleGroup. +func (mr *MockRoute53ResolverAPIMockRecorder) CreateFirewallRuleGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateFirewallRuleGroup", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).CreateFirewallRuleGroup), arg0) +} + +// CreateFirewallRuleGroupRequest mocks base method. +func (m *MockRoute53ResolverAPI) CreateFirewallRuleGroupRequest(arg0 *route53resolver.CreateFirewallRuleGroupInput) (*request.Request, *route53resolver.CreateFirewallRuleGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateFirewallRuleGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.CreateFirewallRuleGroupOutput) + return ret0, ret1 +} + +// CreateFirewallRuleGroupRequest indicates an expected call of CreateFirewallRuleGroupRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) CreateFirewallRuleGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateFirewallRuleGroupRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).CreateFirewallRuleGroupRequest), arg0) +} + +// CreateFirewallRuleGroupWithContext mocks base method. +func (m *MockRoute53ResolverAPI) CreateFirewallRuleGroupWithContext(arg0 aws.Context, arg1 *route53resolver.CreateFirewallRuleGroupInput, arg2 ...request.Option) (*route53resolver.CreateFirewallRuleGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateFirewallRuleGroupWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.CreateFirewallRuleGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateFirewallRuleGroupWithContext indicates an expected call of CreateFirewallRuleGroupWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) CreateFirewallRuleGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateFirewallRuleGroupWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).CreateFirewallRuleGroupWithContext), varargs...) +} + +// CreateFirewallRuleRequest mocks base method. +func (m *MockRoute53ResolverAPI) CreateFirewallRuleRequest(arg0 *route53resolver.CreateFirewallRuleInput) (*request.Request, *route53resolver.CreateFirewallRuleOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateFirewallRuleRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.CreateFirewallRuleOutput) + return ret0, ret1 +} + +// CreateFirewallRuleRequest indicates an expected call of CreateFirewallRuleRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) CreateFirewallRuleRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateFirewallRuleRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).CreateFirewallRuleRequest), arg0) +} + +// CreateFirewallRuleWithContext mocks base method. +func (m *MockRoute53ResolverAPI) CreateFirewallRuleWithContext(arg0 aws.Context, arg1 *route53resolver.CreateFirewallRuleInput, arg2 ...request.Option) (*route53resolver.CreateFirewallRuleOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateFirewallRuleWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.CreateFirewallRuleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateFirewallRuleWithContext indicates an expected call of CreateFirewallRuleWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) CreateFirewallRuleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateFirewallRuleWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).CreateFirewallRuleWithContext), varargs...) +} + +// CreateOutpostResolver mocks base method. +func (m *MockRoute53ResolverAPI) CreateOutpostResolver(arg0 *route53resolver.CreateOutpostResolverInput) (*route53resolver.CreateOutpostResolverOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateOutpostResolver", arg0) + ret0, _ := ret[0].(*route53resolver.CreateOutpostResolverOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateOutpostResolver indicates an expected call of CreateOutpostResolver. +func (mr *MockRoute53ResolverAPIMockRecorder) CreateOutpostResolver(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOutpostResolver", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).CreateOutpostResolver), arg0) +} + +// CreateOutpostResolverRequest mocks base method. +func (m *MockRoute53ResolverAPI) CreateOutpostResolverRequest(arg0 *route53resolver.CreateOutpostResolverInput) (*request.Request, *route53resolver.CreateOutpostResolverOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateOutpostResolverRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.CreateOutpostResolverOutput) + return ret0, ret1 +} + +// CreateOutpostResolverRequest indicates an expected call of CreateOutpostResolverRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) CreateOutpostResolverRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOutpostResolverRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).CreateOutpostResolverRequest), arg0) +} + +// CreateOutpostResolverWithContext mocks base method. +func (m *MockRoute53ResolverAPI) CreateOutpostResolverWithContext(arg0 aws.Context, arg1 *route53resolver.CreateOutpostResolverInput, arg2 ...request.Option) (*route53resolver.CreateOutpostResolverOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateOutpostResolverWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.CreateOutpostResolverOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateOutpostResolverWithContext indicates an expected call of CreateOutpostResolverWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) CreateOutpostResolverWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOutpostResolverWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).CreateOutpostResolverWithContext), varargs...) +} + +// CreateResolverEndpoint mocks base method. +func (m *MockRoute53ResolverAPI) CreateResolverEndpoint(arg0 *route53resolver.CreateResolverEndpointInput) (*route53resolver.CreateResolverEndpointOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateResolverEndpoint", arg0) + ret0, _ := ret[0].(*route53resolver.CreateResolverEndpointOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateResolverEndpoint indicates an expected call of CreateResolverEndpoint. +func (mr *MockRoute53ResolverAPIMockRecorder) CreateResolverEndpoint(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateResolverEndpoint", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).CreateResolverEndpoint), arg0) +} + +// CreateResolverEndpointRequest mocks base method. +func (m *MockRoute53ResolverAPI) CreateResolverEndpointRequest(arg0 *route53resolver.CreateResolverEndpointInput) (*request.Request, *route53resolver.CreateResolverEndpointOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateResolverEndpointRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.CreateResolverEndpointOutput) + return ret0, ret1 +} + +// CreateResolverEndpointRequest indicates an expected call of CreateResolverEndpointRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) CreateResolverEndpointRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateResolverEndpointRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).CreateResolverEndpointRequest), arg0) +} + +// CreateResolverEndpointWithContext mocks base method. +func (m *MockRoute53ResolverAPI) CreateResolverEndpointWithContext(arg0 aws.Context, arg1 *route53resolver.CreateResolverEndpointInput, arg2 ...request.Option) (*route53resolver.CreateResolverEndpointOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateResolverEndpointWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.CreateResolverEndpointOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateResolverEndpointWithContext indicates an expected call of CreateResolverEndpointWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) CreateResolverEndpointWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateResolverEndpointWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).CreateResolverEndpointWithContext), varargs...) +} + +// CreateResolverQueryLogConfig mocks base method. +func (m *MockRoute53ResolverAPI) CreateResolverQueryLogConfig(arg0 *route53resolver.CreateResolverQueryLogConfigInput) (*route53resolver.CreateResolverQueryLogConfigOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateResolverQueryLogConfig", arg0) + ret0, _ := ret[0].(*route53resolver.CreateResolverQueryLogConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateResolverQueryLogConfig indicates an expected call of CreateResolverQueryLogConfig. +func (mr *MockRoute53ResolverAPIMockRecorder) CreateResolverQueryLogConfig(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateResolverQueryLogConfig", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).CreateResolverQueryLogConfig), arg0) +} + +// CreateResolverQueryLogConfigRequest mocks base method. +func (m *MockRoute53ResolverAPI) CreateResolverQueryLogConfigRequest(arg0 *route53resolver.CreateResolverQueryLogConfigInput) (*request.Request, *route53resolver.CreateResolverQueryLogConfigOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateResolverQueryLogConfigRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.CreateResolverQueryLogConfigOutput) + return ret0, ret1 +} + +// CreateResolverQueryLogConfigRequest indicates an expected call of CreateResolverQueryLogConfigRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) CreateResolverQueryLogConfigRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateResolverQueryLogConfigRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).CreateResolverQueryLogConfigRequest), arg0) +} + +// CreateResolverQueryLogConfigWithContext mocks base method. +func (m *MockRoute53ResolverAPI) CreateResolverQueryLogConfigWithContext(arg0 aws.Context, arg1 *route53resolver.CreateResolverQueryLogConfigInput, arg2 ...request.Option) (*route53resolver.CreateResolverQueryLogConfigOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateResolverQueryLogConfigWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.CreateResolverQueryLogConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateResolverQueryLogConfigWithContext indicates an expected call of CreateResolverQueryLogConfigWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) CreateResolverQueryLogConfigWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateResolverQueryLogConfigWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).CreateResolverQueryLogConfigWithContext), varargs...) +} + +// CreateResolverRule mocks base method. +func (m *MockRoute53ResolverAPI) CreateResolverRule(arg0 *route53resolver.CreateResolverRuleInput) (*route53resolver.CreateResolverRuleOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateResolverRule", arg0) + ret0, _ := ret[0].(*route53resolver.CreateResolverRuleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateResolverRule indicates an expected call of CreateResolverRule. +func (mr *MockRoute53ResolverAPIMockRecorder) CreateResolverRule(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateResolverRule", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).CreateResolverRule), arg0) +} + +// CreateResolverRuleRequest mocks base method. +func (m *MockRoute53ResolverAPI) CreateResolverRuleRequest(arg0 *route53resolver.CreateResolverRuleInput) (*request.Request, *route53resolver.CreateResolverRuleOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateResolverRuleRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.CreateResolverRuleOutput) + return ret0, ret1 +} + +// CreateResolverRuleRequest indicates an expected call of CreateResolverRuleRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) CreateResolverRuleRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateResolverRuleRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).CreateResolverRuleRequest), arg0) +} + +// CreateResolverRuleWithContext mocks base method. +func (m *MockRoute53ResolverAPI) CreateResolverRuleWithContext(arg0 aws.Context, arg1 *route53resolver.CreateResolverRuleInput, arg2 ...request.Option) (*route53resolver.CreateResolverRuleOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateResolverRuleWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.CreateResolverRuleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateResolverRuleWithContext indicates an expected call of CreateResolverRuleWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) CreateResolverRuleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateResolverRuleWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).CreateResolverRuleWithContext), varargs...) +} + +// DeleteFirewallDomainList mocks base method. +func (m *MockRoute53ResolverAPI) DeleteFirewallDomainList(arg0 *route53resolver.DeleteFirewallDomainListInput) (*route53resolver.DeleteFirewallDomainListOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteFirewallDomainList", arg0) + ret0, _ := ret[0].(*route53resolver.DeleteFirewallDomainListOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteFirewallDomainList indicates an expected call of DeleteFirewallDomainList. +func (mr *MockRoute53ResolverAPIMockRecorder) DeleteFirewallDomainList(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteFirewallDomainList", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).DeleteFirewallDomainList), arg0) +} + +// DeleteFirewallDomainListRequest mocks base method. +func (m *MockRoute53ResolverAPI) DeleteFirewallDomainListRequest(arg0 *route53resolver.DeleteFirewallDomainListInput) (*request.Request, *route53resolver.DeleteFirewallDomainListOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteFirewallDomainListRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.DeleteFirewallDomainListOutput) + return ret0, ret1 +} + +// DeleteFirewallDomainListRequest indicates an expected call of DeleteFirewallDomainListRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) DeleteFirewallDomainListRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteFirewallDomainListRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).DeleteFirewallDomainListRequest), arg0) +} + +// DeleteFirewallDomainListWithContext mocks base method. +func (m *MockRoute53ResolverAPI) DeleteFirewallDomainListWithContext(arg0 aws.Context, arg1 *route53resolver.DeleteFirewallDomainListInput, arg2 ...request.Option) (*route53resolver.DeleteFirewallDomainListOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteFirewallDomainListWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.DeleteFirewallDomainListOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteFirewallDomainListWithContext indicates an expected call of DeleteFirewallDomainListWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) DeleteFirewallDomainListWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteFirewallDomainListWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).DeleteFirewallDomainListWithContext), varargs...) +} + +// DeleteFirewallRule mocks base method. +func (m *MockRoute53ResolverAPI) DeleteFirewallRule(arg0 *route53resolver.DeleteFirewallRuleInput) (*route53resolver.DeleteFirewallRuleOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteFirewallRule", arg0) + ret0, _ := ret[0].(*route53resolver.DeleteFirewallRuleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteFirewallRule indicates an expected call of DeleteFirewallRule. +func (mr *MockRoute53ResolverAPIMockRecorder) DeleteFirewallRule(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteFirewallRule", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).DeleteFirewallRule), arg0) +} + +// DeleteFirewallRuleGroup mocks base method. +func (m *MockRoute53ResolverAPI) DeleteFirewallRuleGroup(arg0 *route53resolver.DeleteFirewallRuleGroupInput) (*route53resolver.DeleteFirewallRuleGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteFirewallRuleGroup", arg0) + ret0, _ := ret[0].(*route53resolver.DeleteFirewallRuleGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteFirewallRuleGroup indicates an expected call of DeleteFirewallRuleGroup. +func (mr *MockRoute53ResolverAPIMockRecorder) DeleteFirewallRuleGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteFirewallRuleGroup", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).DeleteFirewallRuleGroup), arg0) +} + +// DeleteFirewallRuleGroupRequest mocks base method. +func (m *MockRoute53ResolverAPI) DeleteFirewallRuleGroupRequest(arg0 *route53resolver.DeleteFirewallRuleGroupInput) (*request.Request, *route53resolver.DeleteFirewallRuleGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteFirewallRuleGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.DeleteFirewallRuleGroupOutput) + return ret0, ret1 +} + +// DeleteFirewallRuleGroupRequest indicates an expected call of DeleteFirewallRuleGroupRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) DeleteFirewallRuleGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteFirewallRuleGroupRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).DeleteFirewallRuleGroupRequest), arg0) +} + +// DeleteFirewallRuleGroupWithContext mocks base method. +func (m *MockRoute53ResolverAPI) DeleteFirewallRuleGroupWithContext(arg0 aws.Context, arg1 *route53resolver.DeleteFirewallRuleGroupInput, arg2 ...request.Option) (*route53resolver.DeleteFirewallRuleGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteFirewallRuleGroupWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.DeleteFirewallRuleGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteFirewallRuleGroupWithContext indicates an expected call of DeleteFirewallRuleGroupWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) DeleteFirewallRuleGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteFirewallRuleGroupWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).DeleteFirewallRuleGroupWithContext), varargs...) +} + +// DeleteFirewallRuleRequest mocks base method. +func (m *MockRoute53ResolverAPI) DeleteFirewallRuleRequest(arg0 *route53resolver.DeleteFirewallRuleInput) (*request.Request, *route53resolver.DeleteFirewallRuleOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteFirewallRuleRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.DeleteFirewallRuleOutput) + return ret0, ret1 +} + +// DeleteFirewallRuleRequest indicates an expected call of DeleteFirewallRuleRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) DeleteFirewallRuleRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteFirewallRuleRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).DeleteFirewallRuleRequest), arg0) +} + +// DeleteFirewallRuleWithContext mocks base method. +func (m *MockRoute53ResolverAPI) DeleteFirewallRuleWithContext(arg0 aws.Context, arg1 *route53resolver.DeleteFirewallRuleInput, arg2 ...request.Option) (*route53resolver.DeleteFirewallRuleOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteFirewallRuleWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.DeleteFirewallRuleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteFirewallRuleWithContext indicates an expected call of DeleteFirewallRuleWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) DeleteFirewallRuleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteFirewallRuleWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).DeleteFirewallRuleWithContext), varargs...) +} + +// DeleteOutpostResolver mocks base method. +func (m *MockRoute53ResolverAPI) DeleteOutpostResolver(arg0 *route53resolver.DeleteOutpostResolverInput) (*route53resolver.DeleteOutpostResolverOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteOutpostResolver", arg0) + ret0, _ := ret[0].(*route53resolver.DeleteOutpostResolverOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteOutpostResolver indicates an expected call of DeleteOutpostResolver. +func (mr *MockRoute53ResolverAPIMockRecorder) DeleteOutpostResolver(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOutpostResolver", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).DeleteOutpostResolver), arg0) +} + +// DeleteOutpostResolverRequest mocks base method. +func (m *MockRoute53ResolverAPI) DeleteOutpostResolverRequest(arg0 *route53resolver.DeleteOutpostResolverInput) (*request.Request, *route53resolver.DeleteOutpostResolverOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteOutpostResolverRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.DeleteOutpostResolverOutput) + return ret0, ret1 +} + +// DeleteOutpostResolverRequest indicates an expected call of DeleteOutpostResolverRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) DeleteOutpostResolverRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOutpostResolverRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).DeleteOutpostResolverRequest), arg0) +} + +// DeleteOutpostResolverWithContext mocks base method. +func (m *MockRoute53ResolverAPI) DeleteOutpostResolverWithContext(arg0 aws.Context, arg1 *route53resolver.DeleteOutpostResolverInput, arg2 ...request.Option) (*route53resolver.DeleteOutpostResolverOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteOutpostResolverWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.DeleteOutpostResolverOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteOutpostResolverWithContext indicates an expected call of DeleteOutpostResolverWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) DeleteOutpostResolverWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOutpostResolverWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).DeleteOutpostResolverWithContext), varargs...) +} + +// DeleteResolverEndpoint mocks base method. +func (m *MockRoute53ResolverAPI) DeleteResolverEndpoint(arg0 *route53resolver.DeleteResolverEndpointInput) (*route53resolver.DeleteResolverEndpointOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteResolverEndpoint", arg0) + ret0, _ := ret[0].(*route53resolver.DeleteResolverEndpointOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteResolverEndpoint indicates an expected call of DeleteResolverEndpoint. +func (mr *MockRoute53ResolverAPIMockRecorder) DeleteResolverEndpoint(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteResolverEndpoint", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).DeleteResolverEndpoint), arg0) +} + +// DeleteResolverEndpointRequest mocks base method. +func (m *MockRoute53ResolverAPI) DeleteResolverEndpointRequest(arg0 *route53resolver.DeleteResolverEndpointInput) (*request.Request, *route53resolver.DeleteResolverEndpointOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteResolverEndpointRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.DeleteResolverEndpointOutput) + return ret0, ret1 +} + +// DeleteResolverEndpointRequest indicates an expected call of DeleteResolverEndpointRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) DeleteResolverEndpointRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteResolverEndpointRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).DeleteResolverEndpointRequest), arg0) +} + +// DeleteResolverEndpointWithContext mocks base method. +func (m *MockRoute53ResolverAPI) DeleteResolverEndpointWithContext(arg0 aws.Context, arg1 *route53resolver.DeleteResolverEndpointInput, arg2 ...request.Option) (*route53resolver.DeleteResolverEndpointOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteResolverEndpointWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.DeleteResolverEndpointOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteResolverEndpointWithContext indicates an expected call of DeleteResolverEndpointWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) DeleteResolverEndpointWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteResolverEndpointWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).DeleteResolverEndpointWithContext), varargs...) +} + +// DeleteResolverQueryLogConfig mocks base method. +func (m *MockRoute53ResolverAPI) DeleteResolverQueryLogConfig(arg0 *route53resolver.DeleteResolverQueryLogConfigInput) (*route53resolver.DeleteResolverQueryLogConfigOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteResolverQueryLogConfig", arg0) + ret0, _ := ret[0].(*route53resolver.DeleteResolverQueryLogConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteResolverQueryLogConfig indicates an expected call of DeleteResolverQueryLogConfig. +func (mr *MockRoute53ResolverAPIMockRecorder) DeleteResolverQueryLogConfig(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteResolverQueryLogConfig", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).DeleteResolverQueryLogConfig), arg0) +} + +// DeleteResolverQueryLogConfigRequest mocks base method. +func (m *MockRoute53ResolverAPI) DeleteResolverQueryLogConfigRequest(arg0 *route53resolver.DeleteResolverQueryLogConfigInput) (*request.Request, *route53resolver.DeleteResolverQueryLogConfigOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteResolverQueryLogConfigRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.DeleteResolverQueryLogConfigOutput) + return ret0, ret1 +} + +// DeleteResolverQueryLogConfigRequest indicates an expected call of DeleteResolverQueryLogConfigRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) DeleteResolverQueryLogConfigRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteResolverQueryLogConfigRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).DeleteResolverQueryLogConfigRequest), arg0) +} + +// DeleteResolverQueryLogConfigWithContext mocks base method. +func (m *MockRoute53ResolverAPI) DeleteResolverQueryLogConfigWithContext(arg0 aws.Context, arg1 *route53resolver.DeleteResolverQueryLogConfigInput, arg2 ...request.Option) (*route53resolver.DeleteResolverQueryLogConfigOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteResolverQueryLogConfigWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.DeleteResolverQueryLogConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteResolverQueryLogConfigWithContext indicates an expected call of DeleteResolverQueryLogConfigWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) DeleteResolverQueryLogConfigWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteResolverQueryLogConfigWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).DeleteResolverQueryLogConfigWithContext), varargs...) +} + +// DeleteResolverRule mocks base method. +func (m *MockRoute53ResolverAPI) DeleteResolverRule(arg0 *route53resolver.DeleteResolverRuleInput) (*route53resolver.DeleteResolverRuleOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteResolverRule", arg0) + ret0, _ := ret[0].(*route53resolver.DeleteResolverRuleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteResolverRule indicates an expected call of DeleteResolverRule. +func (mr *MockRoute53ResolverAPIMockRecorder) DeleteResolverRule(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteResolverRule", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).DeleteResolverRule), arg0) +} + +// DeleteResolverRuleRequest mocks base method. +func (m *MockRoute53ResolverAPI) DeleteResolverRuleRequest(arg0 *route53resolver.DeleteResolverRuleInput) (*request.Request, *route53resolver.DeleteResolverRuleOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteResolverRuleRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.DeleteResolverRuleOutput) + return ret0, ret1 +} + +// DeleteResolverRuleRequest indicates an expected call of DeleteResolverRuleRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) DeleteResolverRuleRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteResolverRuleRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).DeleteResolverRuleRequest), arg0) +} + +// DeleteResolverRuleWithContext mocks base method. +func (m *MockRoute53ResolverAPI) DeleteResolverRuleWithContext(arg0 aws.Context, arg1 *route53resolver.DeleteResolverRuleInput, arg2 ...request.Option) (*route53resolver.DeleteResolverRuleOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteResolverRuleWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.DeleteResolverRuleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteResolverRuleWithContext indicates an expected call of DeleteResolverRuleWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) DeleteResolverRuleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteResolverRuleWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).DeleteResolverRuleWithContext), varargs...) +} + +// DisassociateFirewallRuleGroup mocks base method. +func (m *MockRoute53ResolverAPI) DisassociateFirewallRuleGroup(arg0 *route53resolver.DisassociateFirewallRuleGroupInput) (*route53resolver.DisassociateFirewallRuleGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DisassociateFirewallRuleGroup", arg0) + ret0, _ := ret[0].(*route53resolver.DisassociateFirewallRuleGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DisassociateFirewallRuleGroup indicates an expected call of DisassociateFirewallRuleGroup. +func (mr *MockRoute53ResolverAPIMockRecorder) DisassociateFirewallRuleGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisassociateFirewallRuleGroup", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).DisassociateFirewallRuleGroup), arg0) +} + +// DisassociateFirewallRuleGroupRequest mocks base method. +func (m *MockRoute53ResolverAPI) DisassociateFirewallRuleGroupRequest(arg0 *route53resolver.DisassociateFirewallRuleGroupInput) (*request.Request, *route53resolver.DisassociateFirewallRuleGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DisassociateFirewallRuleGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.DisassociateFirewallRuleGroupOutput) + return ret0, ret1 +} + +// DisassociateFirewallRuleGroupRequest indicates an expected call of DisassociateFirewallRuleGroupRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) DisassociateFirewallRuleGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisassociateFirewallRuleGroupRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).DisassociateFirewallRuleGroupRequest), arg0) +} + +// DisassociateFirewallRuleGroupWithContext mocks base method. +func (m *MockRoute53ResolverAPI) DisassociateFirewallRuleGroupWithContext(arg0 aws.Context, arg1 *route53resolver.DisassociateFirewallRuleGroupInput, arg2 ...request.Option) (*route53resolver.DisassociateFirewallRuleGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DisassociateFirewallRuleGroupWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.DisassociateFirewallRuleGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DisassociateFirewallRuleGroupWithContext indicates an expected call of DisassociateFirewallRuleGroupWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) DisassociateFirewallRuleGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisassociateFirewallRuleGroupWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).DisassociateFirewallRuleGroupWithContext), varargs...) +} + +// DisassociateResolverEndpointIpAddress mocks base method. +func (m *MockRoute53ResolverAPI) DisassociateResolverEndpointIpAddress(arg0 *route53resolver.DisassociateResolverEndpointIpAddressInput) (*route53resolver.DisassociateResolverEndpointIpAddressOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DisassociateResolverEndpointIpAddress", arg0) + ret0, _ := ret[0].(*route53resolver.DisassociateResolverEndpointIpAddressOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DisassociateResolverEndpointIpAddress indicates an expected call of DisassociateResolverEndpointIpAddress. +func (mr *MockRoute53ResolverAPIMockRecorder) DisassociateResolverEndpointIpAddress(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisassociateResolverEndpointIpAddress", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).DisassociateResolverEndpointIpAddress), arg0) +} + +// DisassociateResolverEndpointIpAddressRequest mocks base method. +func (m *MockRoute53ResolverAPI) DisassociateResolverEndpointIpAddressRequest(arg0 *route53resolver.DisassociateResolverEndpointIpAddressInput) (*request.Request, *route53resolver.DisassociateResolverEndpointIpAddressOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DisassociateResolverEndpointIpAddressRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.DisassociateResolverEndpointIpAddressOutput) + return ret0, ret1 +} + +// DisassociateResolverEndpointIpAddressRequest indicates an expected call of DisassociateResolverEndpointIpAddressRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) DisassociateResolverEndpointIpAddressRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisassociateResolverEndpointIpAddressRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).DisassociateResolverEndpointIpAddressRequest), arg0) +} + +// DisassociateResolverEndpointIpAddressWithContext mocks base method. +func (m *MockRoute53ResolverAPI) DisassociateResolverEndpointIpAddressWithContext(arg0 aws.Context, arg1 *route53resolver.DisassociateResolverEndpointIpAddressInput, arg2 ...request.Option) (*route53resolver.DisassociateResolverEndpointIpAddressOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DisassociateResolverEndpointIpAddressWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.DisassociateResolverEndpointIpAddressOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DisassociateResolverEndpointIpAddressWithContext indicates an expected call of DisassociateResolverEndpointIpAddressWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) DisassociateResolverEndpointIpAddressWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisassociateResolverEndpointIpAddressWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).DisassociateResolverEndpointIpAddressWithContext), varargs...) +} + +// DisassociateResolverQueryLogConfig mocks base method. +func (m *MockRoute53ResolverAPI) DisassociateResolverQueryLogConfig(arg0 *route53resolver.DisassociateResolverQueryLogConfigInput) (*route53resolver.DisassociateResolverQueryLogConfigOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DisassociateResolverQueryLogConfig", arg0) + ret0, _ := ret[0].(*route53resolver.DisassociateResolverQueryLogConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DisassociateResolverQueryLogConfig indicates an expected call of DisassociateResolverQueryLogConfig. +func (mr *MockRoute53ResolverAPIMockRecorder) DisassociateResolverQueryLogConfig(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisassociateResolverQueryLogConfig", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).DisassociateResolverQueryLogConfig), arg0) +} + +// DisassociateResolverQueryLogConfigRequest mocks base method. +func (m *MockRoute53ResolverAPI) DisassociateResolverQueryLogConfigRequest(arg0 *route53resolver.DisassociateResolverQueryLogConfigInput) (*request.Request, *route53resolver.DisassociateResolverQueryLogConfigOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DisassociateResolverQueryLogConfigRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.DisassociateResolverQueryLogConfigOutput) + return ret0, ret1 +} + +// DisassociateResolverQueryLogConfigRequest indicates an expected call of DisassociateResolverQueryLogConfigRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) DisassociateResolverQueryLogConfigRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisassociateResolverQueryLogConfigRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).DisassociateResolverQueryLogConfigRequest), arg0) +} + +// DisassociateResolverQueryLogConfigWithContext mocks base method. +func (m *MockRoute53ResolverAPI) DisassociateResolverQueryLogConfigWithContext(arg0 aws.Context, arg1 *route53resolver.DisassociateResolverQueryLogConfigInput, arg2 ...request.Option) (*route53resolver.DisassociateResolverQueryLogConfigOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DisassociateResolverQueryLogConfigWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.DisassociateResolverQueryLogConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DisassociateResolverQueryLogConfigWithContext indicates an expected call of DisassociateResolverQueryLogConfigWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) DisassociateResolverQueryLogConfigWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisassociateResolverQueryLogConfigWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).DisassociateResolverQueryLogConfigWithContext), varargs...) +} + +// DisassociateResolverRule mocks base method. +func (m *MockRoute53ResolverAPI) DisassociateResolverRule(arg0 *route53resolver.DisassociateResolverRuleInput) (*route53resolver.DisassociateResolverRuleOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DisassociateResolverRule", arg0) + ret0, _ := ret[0].(*route53resolver.DisassociateResolverRuleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DisassociateResolverRule indicates an expected call of DisassociateResolverRule. +func (mr *MockRoute53ResolverAPIMockRecorder) DisassociateResolverRule(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisassociateResolverRule", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).DisassociateResolverRule), arg0) +} + +// DisassociateResolverRuleRequest mocks base method. +func (m *MockRoute53ResolverAPI) DisassociateResolverRuleRequest(arg0 *route53resolver.DisassociateResolverRuleInput) (*request.Request, *route53resolver.DisassociateResolverRuleOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DisassociateResolverRuleRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.DisassociateResolverRuleOutput) + return ret0, ret1 +} + +// DisassociateResolverRuleRequest indicates an expected call of DisassociateResolverRuleRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) DisassociateResolverRuleRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisassociateResolverRuleRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).DisassociateResolverRuleRequest), arg0) +} + +// DisassociateResolverRuleWithContext mocks base method. +func (m *MockRoute53ResolverAPI) DisassociateResolverRuleWithContext(arg0 aws.Context, arg1 *route53resolver.DisassociateResolverRuleInput, arg2 ...request.Option) (*route53resolver.DisassociateResolverRuleOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DisassociateResolverRuleWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.DisassociateResolverRuleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DisassociateResolverRuleWithContext indicates an expected call of DisassociateResolverRuleWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) DisassociateResolverRuleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisassociateResolverRuleWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).DisassociateResolverRuleWithContext), varargs...) +} + +// GetFirewallConfig mocks base method. +func (m *MockRoute53ResolverAPI) GetFirewallConfig(arg0 *route53resolver.GetFirewallConfigInput) (*route53resolver.GetFirewallConfigOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetFirewallConfig", arg0) + ret0, _ := ret[0].(*route53resolver.GetFirewallConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetFirewallConfig indicates an expected call of GetFirewallConfig. +func (mr *MockRoute53ResolverAPIMockRecorder) GetFirewallConfig(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFirewallConfig", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetFirewallConfig), arg0) +} + +// GetFirewallConfigRequest mocks base method. +func (m *MockRoute53ResolverAPI) GetFirewallConfigRequest(arg0 *route53resolver.GetFirewallConfigInput) (*request.Request, *route53resolver.GetFirewallConfigOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetFirewallConfigRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.GetFirewallConfigOutput) + return ret0, ret1 +} + +// GetFirewallConfigRequest indicates an expected call of GetFirewallConfigRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) GetFirewallConfigRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFirewallConfigRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetFirewallConfigRequest), arg0) +} + +// GetFirewallConfigWithContext mocks base method. +func (m *MockRoute53ResolverAPI) GetFirewallConfigWithContext(arg0 aws.Context, arg1 *route53resolver.GetFirewallConfigInput, arg2 ...request.Option) (*route53resolver.GetFirewallConfigOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetFirewallConfigWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.GetFirewallConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetFirewallConfigWithContext indicates an expected call of GetFirewallConfigWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) GetFirewallConfigWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFirewallConfigWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetFirewallConfigWithContext), varargs...) +} + +// GetFirewallDomainList mocks base method. +func (m *MockRoute53ResolverAPI) GetFirewallDomainList(arg0 *route53resolver.GetFirewallDomainListInput) (*route53resolver.GetFirewallDomainListOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetFirewallDomainList", arg0) + ret0, _ := ret[0].(*route53resolver.GetFirewallDomainListOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetFirewallDomainList indicates an expected call of GetFirewallDomainList. +func (mr *MockRoute53ResolverAPIMockRecorder) GetFirewallDomainList(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFirewallDomainList", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetFirewallDomainList), arg0) +} + +// GetFirewallDomainListRequest mocks base method. +func (m *MockRoute53ResolverAPI) GetFirewallDomainListRequest(arg0 *route53resolver.GetFirewallDomainListInput) (*request.Request, *route53resolver.GetFirewallDomainListOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetFirewallDomainListRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.GetFirewallDomainListOutput) + return ret0, ret1 +} + +// GetFirewallDomainListRequest indicates an expected call of GetFirewallDomainListRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) GetFirewallDomainListRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFirewallDomainListRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetFirewallDomainListRequest), arg0) +} + +// GetFirewallDomainListWithContext mocks base method. +func (m *MockRoute53ResolverAPI) GetFirewallDomainListWithContext(arg0 aws.Context, arg1 *route53resolver.GetFirewallDomainListInput, arg2 ...request.Option) (*route53resolver.GetFirewallDomainListOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetFirewallDomainListWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.GetFirewallDomainListOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetFirewallDomainListWithContext indicates an expected call of GetFirewallDomainListWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) GetFirewallDomainListWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFirewallDomainListWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetFirewallDomainListWithContext), varargs...) +} + +// GetFirewallRuleGroup mocks base method. +func (m *MockRoute53ResolverAPI) GetFirewallRuleGroup(arg0 *route53resolver.GetFirewallRuleGroupInput) (*route53resolver.GetFirewallRuleGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetFirewallRuleGroup", arg0) + ret0, _ := ret[0].(*route53resolver.GetFirewallRuleGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetFirewallRuleGroup indicates an expected call of GetFirewallRuleGroup. +func (mr *MockRoute53ResolverAPIMockRecorder) GetFirewallRuleGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFirewallRuleGroup", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetFirewallRuleGroup), arg0) +} + +// GetFirewallRuleGroupAssociation mocks base method. +func (m *MockRoute53ResolverAPI) GetFirewallRuleGroupAssociation(arg0 *route53resolver.GetFirewallRuleGroupAssociationInput) (*route53resolver.GetFirewallRuleGroupAssociationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetFirewallRuleGroupAssociation", arg0) + ret0, _ := ret[0].(*route53resolver.GetFirewallRuleGroupAssociationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetFirewallRuleGroupAssociation indicates an expected call of GetFirewallRuleGroupAssociation. +func (mr *MockRoute53ResolverAPIMockRecorder) GetFirewallRuleGroupAssociation(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFirewallRuleGroupAssociation", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetFirewallRuleGroupAssociation), arg0) +} + +// GetFirewallRuleGroupAssociationRequest mocks base method. +func (m *MockRoute53ResolverAPI) GetFirewallRuleGroupAssociationRequest(arg0 *route53resolver.GetFirewallRuleGroupAssociationInput) (*request.Request, *route53resolver.GetFirewallRuleGroupAssociationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetFirewallRuleGroupAssociationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.GetFirewallRuleGroupAssociationOutput) + return ret0, ret1 +} + +// GetFirewallRuleGroupAssociationRequest indicates an expected call of GetFirewallRuleGroupAssociationRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) GetFirewallRuleGroupAssociationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFirewallRuleGroupAssociationRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetFirewallRuleGroupAssociationRequest), arg0) +} + +// GetFirewallRuleGroupAssociationWithContext mocks base method. +func (m *MockRoute53ResolverAPI) GetFirewallRuleGroupAssociationWithContext(arg0 aws.Context, arg1 *route53resolver.GetFirewallRuleGroupAssociationInput, arg2 ...request.Option) (*route53resolver.GetFirewallRuleGroupAssociationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetFirewallRuleGroupAssociationWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.GetFirewallRuleGroupAssociationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetFirewallRuleGroupAssociationWithContext indicates an expected call of GetFirewallRuleGroupAssociationWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) GetFirewallRuleGroupAssociationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFirewallRuleGroupAssociationWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetFirewallRuleGroupAssociationWithContext), varargs...) +} + +// GetFirewallRuleGroupPolicy mocks base method. +func (m *MockRoute53ResolverAPI) GetFirewallRuleGroupPolicy(arg0 *route53resolver.GetFirewallRuleGroupPolicyInput) (*route53resolver.GetFirewallRuleGroupPolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetFirewallRuleGroupPolicy", arg0) + ret0, _ := ret[0].(*route53resolver.GetFirewallRuleGroupPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetFirewallRuleGroupPolicy indicates an expected call of GetFirewallRuleGroupPolicy. +func (mr *MockRoute53ResolverAPIMockRecorder) GetFirewallRuleGroupPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFirewallRuleGroupPolicy", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetFirewallRuleGroupPolicy), arg0) +} + +// GetFirewallRuleGroupPolicyRequest mocks base method. +func (m *MockRoute53ResolverAPI) GetFirewallRuleGroupPolicyRequest(arg0 *route53resolver.GetFirewallRuleGroupPolicyInput) (*request.Request, *route53resolver.GetFirewallRuleGroupPolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetFirewallRuleGroupPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.GetFirewallRuleGroupPolicyOutput) + return ret0, ret1 +} + +// GetFirewallRuleGroupPolicyRequest indicates an expected call of GetFirewallRuleGroupPolicyRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) GetFirewallRuleGroupPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFirewallRuleGroupPolicyRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetFirewallRuleGroupPolicyRequest), arg0) +} + +// GetFirewallRuleGroupPolicyWithContext mocks base method. +func (m *MockRoute53ResolverAPI) GetFirewallRuleGroupPolicyWithContext(arg0 aws.Context, arg1 *route53resolver.GetFirewallRuleGroupPolicyInput, arg2 ...request.Option) (*route53resolver.GetFirewallRuleGroupPolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetFirewallRuleGroupPolicyWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.GetFirewallRuleGroupPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetFirewallRuleGroupPolicyWithContext indicates an expected call of GetFirewallRuleGroupPolicyWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) GetFirewallRuleGroupPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFirewallRuleGroupPolicyWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetFirewallRuleGroupPolicyWithContext), varargs...) +} + +// GetFirewallRuleGroupRequest mocks base method. +func (m *MockRoute53ResolverAPI) GetFirewallRuleGroupRequest(arg0 *route53resolver.GetFirewallRuleGroupInput) (*request.Request, *route53resolver.GetFirewallRuleGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetFirewallRuleGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.GetFirewallRuleGroupOutput) + return ret0, ret1 +} + +// GetFirewallRuleGroupRequest indicates an expected call of GetFirewallRuleGroupRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) GetFirewallRuleGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFirewallRuleGroupRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetFirewallRuleGroupRequest), arg0) +} + +// GetFirewallRuleGroupWithContext mocks base method. +func (m *MockRoute53ResolverAPI) GetFirewallRuleGroupWithContext(arg0 aws.Context, arg1 *route53resolver.GetFirewallRuleGroupInput, arg2 ...request.Option) (*route53resolver.GetFirewallRuleGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetFirewallRuleGroupWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.GetFirewallRuleGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetFirewallRuleGroupWithContext indicates an expected call of GetFirewallRuleGroupWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) GetFirewallRuleGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFirewallRuleGroupWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetFirewallRuleGroupWithContext), varargs...) +} + +// GetOutpostResolver mocks base method. +func (m *MockRoute53ResolverAPI) GetOutpostResolver(arg0 *route53resolver.GetOutpostResolverInput) (*route53resolver.GetOutpostResolverOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetOutpostResolver", arg0) + ret0, _ := ret[0].(*route53resolver.GetOutpostResolverOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetOutpostResolver indicates an expected call of GetOutpostResolver. +func (mr *MockRoute53ResolverAPIMockRecorder) GetOutpostResolver(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOutpostResolver", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetOutpostResolver), arg0) +} + +// GetOutpostResolverRequest mocks base method. +func (m *MockRoute53ResolverAPI) GetOutpostResolverRequest(arg0 *route53resolver.GetOutpostResolverInput) (*request.Request, *route53resolver.GetOutpostResolverOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetOutpostResolverRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.GetOutpostResolverOutput) + return ret0, ret1 +} + +// GetOutpostResolverRequest indicates an expected call of GetOutpostResolverRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) GetOutpostResolverRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOutpostResolverRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetOutpostResolverRequest), arg0) +} + +// GetOutpostResolverWithContext mocks base method. +func (m *MockRoute53ResolverAPI) GetOutpostResolverWithContext(arg0 aws.Context, arg1 *route53resolver.GetOutpostResolverInput, arg2 ...request.Option) (*route53resolver.GetOutpostResolverOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetOutpostResolverWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.GetOutpostResolverOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetOutpostResolverWithContext indicates an expected call of GetOutpostResolverWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) GetOutpostResolverWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOutpostResolverWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetOutpostResolverWithContext), varargs...) +} + +// GetResolverConfig mocks base method. +func (m *MockRoute53ResolverAPI) GetResolverConfig(arg0 *route53resolver.GetResolverConfigInput) (*route53resolver.GetResolverConfigOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetResolverConfig", arg0) + ret0, _ := ret[0].(*route53resolver.GetResolverConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetResolverConfig indicates an expected call of GetResolverConfig. +func (mr *MockRoute53ResolverAPIMockRecorder) GetResolverConfig(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResolverConfig", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetResolverConfig), arg0) +} + +// GetResolverConfigRequest mocks base method. +func (m *MockRoute53ResolverAPI) GetResolverConfigRequest(arg0 *route53resolver.GetResolverConfigInput) (*request.Request, *route53resolver.GetResolverConfigOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetResolverConfigRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.GetResolverConfigOutput) + return ret0, ret1 +} + +// GetResolverConfigRequest indicates an expected call of GetResolverConfigRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) GetResolverConfigRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResolverConfigRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetResolverConfigRequest), arg0) +} + +// GetResolverConfigWithContext mocks base method. +func (m *MockRoute53ResolverAPI) GetResolverConfigWithContext(arg0 aws.Context, arg1 *route53resolver.GetResolverConfigInput, arg2 ...request.Option) (*route53resolver.GetResolverConfigOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetResolverConfigWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.GetResolverConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetResolverConfigWithContext indicates an expected call of GetResolverConfigWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) GetResolverConfigWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResolverConfigWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetResolverConfigWithContext), varargs...) +} + +// GetResolverDnssecConfig mocks base method. +func (m *MockRoute53ResolverAPI) GetResolverDnssecConfig(arg0 *route53resolver.GetResolverDnssecConfigInput) (*route53resolver.GetResolverDnssecConfigOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetResolverDnssecConfig", arg0) + ret0, _ := ret[0].(*route53resolver.GetResolverDnssecConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetResolverDnssecConfig indicates an expected call of GetResolverDnssecConfig. +func (mr *MockRoute53ResolverAPIMockRecorder) GetResolverDnssecConfig(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResolverDnssecConfig", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetResolverDnssecConfig), arg0) +} + +// GetResolverDnssecConfigRequest mocks base method. +func (m *MockRoute53ResolverAPI) GetResolverDnssecConfigRequest(arg0 *route53resolver.GetResolverDnssecConfigInput) (*request.Request, *route53resolver.GetResolverDnssecConfigOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetResolverDnssecConfigRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.GetResolverDnssecConfigOutput) + return ret0, ret1 +} + +// GetResolverDnssecConfigRequest indicates an expected call of GetResolverDnssecConfigRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) GetResolverDnssecConfigRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResolverDnssecConfigRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetResolverDnssecConfigRequest), arg0) +} + +// GetResolverDnssecConfigWithContext mocks base method. +func (m *MockRoute53ResolverAPI) GetResolverDnssecConfigWithContext(arg0 aws.Context, arg1 *route53resolver.GetResolverDnssecConfigInput, arg2 ...request.Option) (*route53resolver.GetResolverDnssecConfigOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetResolverDnssecConfigWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.GetResolverDnssecConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetResolverDnssecConfigWithContext indicates an expected call of GetResolverDnssecConfigWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) GetResolverDnssecConfigWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResolverDnssecConfigWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetResolverDnssecConfigWithContext), varargs...) +} + +// GetResolverEndpoint mocks base method. +func (m *MockRoute53ResolverAPI) GetResolverEndpoint(arg0 *route53resolver.GetResolverEndpointInput) (*route53resolver.GetResolverEndpointOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetResolverEndpoint", arg0) + ret0, _ := ret[0].(*route53resolver.GetResolverEndpointOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetResolverEndpoint indicates an expected call of GetResolverEndpoint. +func (mr *MockRoute53ResolverAPIMockRecorder) GetResolverEndpoint(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResolverEndpoint", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetResolverEndpoint), arg0) +} + +// GetResolverEndpointRequest mocks base method. +func (m *MockRoute53ResolverAPI) GetResolverEndpointRequest(arg0 *route53resolver.GetResolverEndpointInput) (*request.Request, *route53resolver.GetResolverEndpointOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetResolverEndpointRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.GetResolverEndpointOutput) + return ret0, ret1 +} + +// GetResolverEndpointRequest indicates an expected call of GetResolverEndpointRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) GetResolverEndpointRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResolverEndpointRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetResolverEndpointRequest), arg0) +} + +// GetResolverEndpointWithContext mocks base method. +func (m *MockRoute53ResolverAPI) GetResolverEndpointWithContext(arg0 aws.Context, arg1 *route53resolver.GetResolverEndpointInput, arg2 ...request.Option) (*route53resolver.GetResolverEndpointOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetResolverEndpointWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.GetResolverEndpointOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetResolverEndpointWithContext indicates an expected call of GetResolverEndpointWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) GetResolverEndpointWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResolverEndpointWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetResolverEndpointWithContext), varargs...) +} + +// GetResolverQueryLogConfig mocks base method. +func (m *MockRoute53ResolverAPI) GetResolverQueryLogConfig(arg0 *route53resolver.GetResolverQueryLogConfigInput) (*route53resolver.GetResolverQueryLogConfigOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetResolverQueryLogConfig", arg0) + ret0, _ := ret[0].(*route53resolver.GetResolverQueryLogConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetResolverQueryLogConfig indicates an expected call of GetResolverQueryLogConfig. +func (mr *MockRoute53ResolverAPIMockRecorder) GetResolverQueryLogConfig(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResolverQueryLogConfig", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetResolverQueryLogConfig), arg0) +} + +// GetResolverQueryLogConfigAssociation mocks base method. +func (m *MockRoute53ResolverAPI) GetResolverQueryLogConfigAssociation(arg0 *route53resolver.GetResolverQueryLogConfigAssociationInput) (*route53resolver.GetResolverQueryLogConfigAssociationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetResolverQueryLogConfigAssociation", arg0) + ret0, _ := ret[0].(*route53resolver.GetResolverQueryLogConfigAssociationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetResolverQueryLogConfigAssociation indicates an expected call of GetResolverQueryLogConfigAssociation. +func (mr *MockRoute53ResolverAPIMockRecorder) GetResolverQueryLogConfigAssociation(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResolverQueryLogConfigAssociation", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetResolverQueryLogConfigAssociation), arg0) +} + +// GetResolverQueryLogConfigAssociationRequest mocks base method. +func (m *MockRoute53ResolverAPI) GetResolverQueryLogConfigAssociationRequest(arg0 *route53resolver.GetResolverQueryLogConfigAssociationInput) (*request.Request, *route53resolver.GetResolverQueryLogConfigAssociationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetResolverQueryLogConfigAssociationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.GetResolverQueryLogConfigAssociationOutput) + return ret0, ret1 +} + +// GetResolverQueryLogConfigAssociationRequest indicates an expected call of GetResolverQueryLogConfigAssociationRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) GetResolverQueryLogConfigAssociationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResolverQueryLogConfigAssociationRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetResolverQueryLogConfigAssociationRequest), arg0) +} + +// GetResolverQueryLogConfigAssociationWithContext mocks base method. +func (m *MockRoute53ResolverAPI) GetResolverQueryLogConfigAssociationWithContext(arg0 aws.Context, arg1 *route53resolver.GetResolverQueryLogConfigAssociationInput, arg2 ...request.Option) (*route53resolver.GetResolverQueryLogConfigAssociationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetResolverQueryLogConfigAssociationWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.GetResolverQueryLogConfigAssociationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetResolverQueryLogConfigAssociationWithContext indicates an expected call of GetResolverQueryLogConfigAssociationWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) GetResolverQueryLogConfigAssociationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResolverQueryLogConfigAssociationWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetResolverQueryLogConfigAssociationWithContext), varargs...) +} + +// GetResolverQueryLogConfigPolicy mocks base method. +func (m *MockRoute53ResolverAPI) GetResolverQueryLogConfigPolicy(arg0 *route53resolver.GetResolverQueryLogConfigPolicyInput) (*route53resolver.GetResolverQueryLogConfigPolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetResolverQueryLogConfigPolicy", arg0) + ret0, _ := ret[0].(*route53resolver.GetResolverQueryLogConfigPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetResolverQueryLogConfigPolicy indicates an expected call of GetResolverQueryLogConfigPolicy. +func (mr *MockRoute53ResolverAPIMockRecorder) GetResolverQueryLogConfigPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResolverQueryLogConfigPolicy", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetResolverQueryLogConfigPolicy), arg0) +} + +// GetResolverQueryLogConfigPolicyRequest mocks base method. +func (m *MockRoute53ResolverAPI) GetResolverQueryLogConfigPolicyRequest(arg0 *route53resolver.GetResolverQueryLogConfigPolicyInput) (*request.Request, *route53resolver.GetResolverQueryLogConfigPolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetResolverQueryLogConfigPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.GetResolverQueryLogConfigPolicyOutput) + return ret0, ret1 +} + +// GetResolverQueryLogConfigPolicyRequest indicates an expected call of GetResolverQueryLogConfigPolicyRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) GetResolverQueryLogConfigPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResolverQueryLogConfigPolicyRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetResolverQueryLogConfigPolicyRequest), arg0) +} + +// GetResolverQueryLogConfigPolicyWithContext mocks base method. +func (m *MockRoute53ResolverAPI) GetResolverQueryLogConfigPolicyWithContext(arg0 aws.Context, arg1 *route53resolver.GetResolverQueryLogConfigPolicyInput, arg2 ...request.Option) (*route53resolver.GetResolverQueryLogConfigPolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetResolverQueryLogConfigPolicyWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.GetResolverQueryLogConfigPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetResolverQueryLogConfigPolicyWithContext indicates an expected call of GetResolverQueryLogConfigPolicyWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) GetResolverQueryLogConfigPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResolverQueryLogConfigPolicyWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetResolverQueryLogConfigPolicyWithContext), varargs...) +} + +// GetResolverQueryLogConfigRequest mocks base method. +func (m *MockRoute53ResolverAPI) GetResolverQueryLogConfigRequest(arg0 *route53resolver.GetResolverQueryLogConfigInput) (*request.Request, *route53resolver.GetResolverQueryLogConfigOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetResolverQueryLogConfigRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.GetResolverQueryLogConfigOutput) + return ret0, ret1 +} + +// GetResolverQueryLogConfigRequest indicates an expected call of GetResolverQueryLogConfigRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) GetResolverQueryLogConfigRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResolverQueryLogConfigRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetResolverQueryLogConfigRequest), arg0) +} + +// GetResolverQueryLogConfigWithContext mocks base method. +func (m *MockRoute53ResolverAPI) GetResolverQueryLogConfigWithContext(arg0 aws.Context, arg1 *route53resolver.GetResolverQueryLogConfigInput, arg2 ...request.Option) (*route53resolver.GetResolverQueryLogConfigOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetResolverQueryLogConfigWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.GetResolverQueryLogConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetResolverQueryLogConfigWithContext indicates an expected call of GetResolverQueryLogConfigWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) GetResolverQueryLogConfigWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResolverQueryLogConfigWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetResolverQueryLogConfigWithContext), varargs...) +} + +// GetResolverRule mocks base method. +func (m *MockRoute53ResolverAPI) GetResolverRule(arg0 *route53resolver.GetResolverRuleInput) (*route53resolver.GetResolverRuleOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetResolverRule", arg0) + ret0, _ := ret[0].(*route53resolver.GetResolverRuleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetResolverRule indicates an expected call of GetResolverRule. +func (mr *MockRoute53ResolverAPIMockRecorder) GetResolverRule(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResolverRule", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetResolverRule), arg0) +} + +// GetResolverRuleAssociation mocks base method. +func (m *MockRoute53ResolverAPI) GetResolverRuleAssociation(arg0 *route53resolver.GetResolverRuleAssociationInput) (*route53resolver.GetResolverRuleAssociationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetResolverRuleAssociation", arg0) + ret0, _ := ret[0].(*route53resolver.GetResolverRuleAssociationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetResolverRuleAssociation indicates an expected call of GetResolverRuleAssociation. +func (mr *MockRoute53ResolverAPIMockRecorder) GetResolverRuleAssociation(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResolverRuleAssociation", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetResolverRuleAssociation), arg0) +} + +// GetResolverRuleAssociationRequest mocks base method. +func (m *MockRoute53ResolverAPI) GetResolverRuleAssociationRequest(arg0 *route53resolver.GetResolverRuleAssociationInput) (*request.Request, *route53resolver.GetResolverRuleAssociationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetResolverRuleAssociationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.GetResolverRuleAssociationOutput) + return ret0, ret1 +} + +// GetResolverRuleAssociationRequest indicates an expected call of GetResolverRuleAssociationRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) GetResolverRuleAssociationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResolverRuleAssociationRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetResolverRuleAssociationRequest), arg0) +} + +// GetResolverRuleAssociationWithContext mocks base method. +func (m *MockRoute53ResolverAPI) GetResolverRuleAssociationWithContext(arg0 aws.Context, arg1 *route53resolver.GetResolverRuleAssociationInput, arg2 ...request.Option) (*route53resolver.GetResolverRuleAssociationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetResolverRuleAssociationWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.GetResolverRuleAssociationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetResolverRuleAssociationWithContext indicates an expected call of GetResolverRuleAssociationWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) GetResolverRuleAssociationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResolverRuleAssociationWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetResolverRuleAssociationWithContext), varargs...) +} + +// GetResolverRulePolicy mocks base method. +func (m *MockRoute53ResolverAPI) GetResolverRulePolicy(arg0 *route53resolver.GetResolverRulePolicyInput) (*route53resolver.GetResolverRulePolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetResolverRulePolicy", arg0) + ret0, _ := ret[0].(*route53resolver.GetResolverRulePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetResolverRulePolicy indicates an expected call of GetResolverRulePolicy. +func (mr *MockRoute53ResolverAPIMockRecorder) GetResolverRulePolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResolverRulePolicy", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetResolverRulePolicy), arg0) +} + +// GetResolverRulePolicyRequest mocks base method. +func (m *MockRoute53ResolverAPI) GetResolverRulePolicyRequest(arg0 *route53resolver.GetResolverRulePolicyInput) (*request.Request, *route53resolver.GetResolverRulePolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetResolverRulePolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.GetResolverRulePolicyOutput) + return ret0, ret1 +} + +// GetResolverRulePolicyRequest indicates an expected call of GetResolverRulePolicyRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) GetResolverRulePolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResolverRulePolicyRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetResolverRulePolicyRequest), arg0) +} + +// GetResolverRulePolicyWithContext mocks base method. +func (m *MockRoute53ResolverAPI) GetResolverRulePolicyWithContext(arg0 aws.Context, arg1 *route53resolver.GetResolverRulePolicyInput, arg2 ...request.Option) (*route53resolver.GetResolverRulePolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetResolverRulePolicyWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.GetResolverRulePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetResolverRulePolicyWithContext indicates an expected call of GetResolverRulePolicyWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) GetResolverRulePolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResolverRulePolicyWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetResolverRulePolicyWithContext), varargs...) +} + +// GetResolverRuleRequest mocks base method. +func (m *MockRoute53ResolverAPI) GetResolverRuleRequest(arg0 *route53resolver.GetResolverRuleInput) (*request.Request, *route53resolver.GetResolverRuleOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetResolverRuleRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.GetResolverRuleOutput) + return ret0, ret1 +} + +// GetResolverRuleRequest indicates an expected call of GetResolverRuleRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) GetResolverRuleRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResolverRuleRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetResolverRuleRequest), arg0) +} + +// GetResolverRuleWithContext mocks base method. +func (m *MockRoute53ResolverAPI) GetResolverRuleWithContext(arg0 aws.Context, arg1 *route53resolver.GetResolverRuleInput, arg2 ...request.Option) (*route53resolver.GetResolverRuleOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetResolverRuleWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.GetResolverRuleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetResolverRuleWithContext indicates an expected call of GetResolverRuleWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) GetResolverRuleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetResolverRuleWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).GetResolverRuleWithContext), varargs...) +} + +// ImportFirewallDomains mocks base method. +func (m *MockRoute53ResolverAPI) ImportFirewallDomains(arg0 *route53resolver.ImportFirewallDomainsInput) (*route53resolver.ImportFirewallDomainsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ImportFirewallDomains", arg0) + ret0, _ := ret[0].(*route53resolver.ImportFirewallDomainsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ImportFirewallDomains indicates an expected call of ImportFirewallDomains. +func (mr *MockRoute53ResolverAPIMockRecorder) ImportFirewallDomains(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImportFirewallDomains", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ImportFirewallDomains), arg0) +} + +// ImportFirewallDomainsRequest mocks base method. +func (m *MockRoute53ResolverAPI) ImportFirewallDomainsRequest(arg0 *route53resolver.ImportFirewallDomainsInput) (*request.Request, *route53resolver.ImportFirewallDomainsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ImportFirewallDomainsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.ImportFirewallDomainsOutput) + return ret0, ret1 +} + +// ImportFirewallDomainsRequest indicates an expected call of ImportFirewallDomainsRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) ImportFirewallDomainsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImportFirewallDomainsRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ImportFirewallDomainsRequest), arg0) +} + +// ImportFirewallDomainsWithContext mocks base method. +func (m *MockRoute53ResolverAPI) ImportFirewallDomainsWithContext(arg0 aws.Context, arg1 *route53resolver.ImportFirewallDomainsInput, arg2 ...request.Option) (*route53resolver.ImportFirewallDomainsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ImportFirewallDomainsWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.ImportFirewallDomainsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ImportFirewallDomainsWithContext indicates an expected call of ImportFirewallDomainsWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) ImportFirewallDomainsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImportFirewallDomainsWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ImportFirewallDomainsWithContext), varargs...) +} + +// ListFirewallConfigs mocks base method. +func (m *MockRoute53ResolverAPI) ListFirewallConfigs(arg0 *route53resolver.ListFirewallConfigsInput) (*route53resolver.ListFirewallConfigsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListFirewallConfigs", arg0) + ret0, _ := ret[0].(*route53resolver.ListFirewallConfigsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListFirewallConfigs indicates an expected call of ListFirewallConfigs. +func (mr *MockRoute53ResolverAPIMockRecorder) ListFirewallConfigs(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFirewallConfigs", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListFirewallConfigs), arg0) +} + +// ListFirewallConfigsPages mocks base method. +func (m *MockRoute53ResolverAPI) ListFirewallConfigsPages(arg0 *route53resolver.ListFirewallConfigsInput, arg1 func(*route53resolver.ListFirewallConfigsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListFirewallConfigsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListFirewallConfigsPages indicates an expected call of ListFirewallConfigsPages. +func (mr *MockRoute53ResolverAPIMockRecorder) ListFirewallConfigsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFirewallConfigsPages", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListFirewallConfigsPages), arg0, arg1) +} + +// ListFirewallConfigsPagesWithContext mocks base method. +func (m *MockRoute53ResolverAPI) ListFirewallConfigsPagesWithContext(arg0 aws.Context, arg1 *route53resolver.ListFirewallConfigsInput, arg2 func(*route53resolver.ListFirewallConfigsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListFirewallConfigsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListFirewallConfigsPagesWithContext indicates an expected call of ListFirewallConfigsPagesWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) ListFirewallConfigsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFirewallConfigsPagesWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListFirewallConfigsPagesWithContext), varargs...) +} + +// ListFirewallConfigsRequest mocks base method. +func (m *MockRoute53ResolverAPI) ListFirewallConfigsRequest(arg0 *route53resolver.ListFirewallConfigsInput) (*request.Request, *route53resolver.ListFirewallConfigsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListFirewallConfigsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.ListFirewallConfigsOutput) + return ret0, ret1 +} + +// ListFirewallConfigsRequest indicates an expected call of ListFirewallConfigsRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) ListFirewallConfigsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFirewallConfigsRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListFirewallConfigsRequest), arg0) +} + +// ListFirewallConfigsWithContext mocks base method. +func (m *MockRoute53ResolverAPI) ListFirewallConfigsWithContext(arg0 aws.Context, arg1 *route53resolver.ListFirewallConfigsInput, arg2 ...request.Option) (*route53resolver.ListFirewallConfigsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListFirewallConfigsWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.ListFirewallConfigsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListFirewallConfigsWithContext indicates an expected call of ListFirewallConfigsWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) ListFirewallConfigsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFirewallConfigsWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListFirewallConfigsWithContext), varargs...) +} + +// ListFirewallDomainLists mocks base method. +func (m *MockRoute53ResolverAPI) ListFirewallDomainLists(arg0 *route53resolver.ListFirewallDomainListsInput) (*route53resolver.ListFirewallDomainListsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListFirewallDomainLists", arg0) + ret0, _ := ret[0].(*route53resolver.ListFirewallDomainListsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListFirewallDomainLists indicates an expected call of ListFirewallDomainLists. +func (mr *MockRoute53ResolverAPIMockRecorder) ListFirewallDomainLists(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFirewallDomainLists", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListFirewallDomainLists), arg0) +} + +// ListFirewallDomainListsPages mocks base method. +func (m *MockRoute53ResolverAPI) ListFirewallDomainListsPages(arg0 *route53resolver.ListFirewallDomainListsInput, arg1 func(*route53resolver.ListFirewallDomainListsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListFirewallDomainListsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListFirewallDomainListsPages indicates an expected call of ListFirewallDomainListsPages. +func (mr *MockRoute53ResolverAPIMockRecorder) ListFirewallDomainListsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFirewallDomainListsPages", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListFirewallDomainListsPages), arg0, arg1) +} + +// ListFirewallDomainListsPagesWithContext mocks base method. +func (m *MockRoute53ResolverAPI) ListFirewallDomainListsPagesWithContext(arg0 aws.Context, arg1 *route53resolver.ListFirewallDomainListsInput, arg2 func(*route53resolver.ListFirewallDomainListsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListFirewallDomainListsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListFirewallDomainListsPagesWithContext indicates an expected call of ListFirewallDomainListsPagesWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) ListFirewallDomainListsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFirewallDomainListsPagesWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListFirewallDomainListsPagesWithContext), varargs...) +} + +// ListFirewallDomainListsRequest mocks base method. +func (m *MockRoute53ResolverAPI) ListFirewallDomainListsRequest(arg0 *route53resolver.ListFirewallDomainListsInput) (*request.Request, *route53resolver.ListFirewallDomainListsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListFirewallDomainListsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.ListFirewallDomainListsOutput) + return ret0, ret1 +} + +// ListFirewallDomainListsRequest indicates an expected call of ListFirewallDomainListsRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) ListFirewallDomainListsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFirewallDomainListsRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListFirewallDomainListsRequest), arg0) +} + +// ListFirewallDomainListsWithContext mocks base method. +func (m *MockRoute53ResolverAPI) ListFirewallDomainListsWithContext(arg0 aws.Context, arg1 *route53resolver.ListFirewallDomainListsInput, arg2 ...request.Option) (*route53resolver.ListFirewallDomainListsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListFirewallDomainListsWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.ListFirewallDomainListsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListFirewallDomainListsWithContext indicates an expected call of ListFirewallDomainListsWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) ListFirewallDomainListsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFirewallDomainListsWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListFirewallDomainListsWithContext), varargs...) +} + +// ListFirewallDomains mocks base method. +func (m *MockRoute53ResolverAPI) ListFirewallDomains(arg0 *route53resolver.ListFirewallDomainsInput) (*route53resolver.ListFirewallDomainsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListFirewallDomains", arg0) + ret0, _ := ret[0].(*route53resolver.ListFirewallDomainsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListFirewallDomains indicates an expected call of ListFirewallDomains. +func (mr *MockRoute53ResolverAPIMockRecorder) ListFirewallDomains(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFirewallDomains", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListFirewallDomains), arg0) +} + +// ListFirewallDomainsPages mocks base method. +func (m *MockRoute53ResolverAPI) ListFirewallDomainsPages(arg0 *route53resolver.ListFirewallDomainsInput, arg1 func(*route53resolver.ListFirewallDomainsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListFirewallDomainsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListFirewallDomainsPages indicates an expected call of ListFirewallDomainsPages. +func (mr *MockRoute53ResolverAPIMockRecorder) ListFirewallDomainsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFirewallDomainsPages", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListFirewallDomainsPages), arg0, arg1) +} + +// ListFirewallDomainsPagesWithContext mocks base method. +func (m *MockRoute53ResolverAPI) ListFirewallDomainsPagesWithContext(arg0 aws.Context, arg1 *route53resolver.ListFirewallDomainsInput, arg2 func(*route53resolver.ListFirewallDomainsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListFirewallDomainsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListFirewallDomainsPagesWithContext indicates an expected call of ListFirewallDomainsPagesWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) ListFirewallDomainsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFirewallDomainsPagesWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListFirewallDomainsPagesWithContext), varargs...) +} + +// ListFirewallDomainsRequest mocks base method. +func (m *MockRoute53ResolverAPI) ListFirewallDomainsRequest(arg0 *route53resolver.ListFirewallDomainsInput) (*request.Request, *route53resolver.ListFirewallDomainsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListFirewallDomainsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.ListFirewallDomainsOutput) + return ret0, ret1 +} + +// ListFirewallDomainsRequest indicates an expected call of ListFirewallDomainsRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) ListFirewallDomainsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFirewallDomainsRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListFirewallDomainsRequest), arg0) +} + +// ListFirewallDomainsWithContext mocks base method. +func (m *MockRoute53ResolverAPI) ListFirewallDomainsWithContext(arg0 aws.Context, arg1 *route53resolver.ListFirewallDomainsInput, arg2 ...request.Option) (*route53resolver.ListFirewallDomainsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListFirewallDomainsWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.ListFirewallDomainsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListFirewallDomainsWithContext indicates an expected call of ListFirewallDomainsWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) ListFirewallDomainsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFirewallDomainsWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListFirewallDomainsWithContext), varargs...) +} + +// ListFirewallRuleGroupAssociations mocks base method. +func (m *MockRoute53ResolverAPI) ListFirewallRuleGroupAssociations(arg0 *route53resolver.ListFirewallRuleGroupAssociationsInput) (*route53resolver.ListFirewallRuleGroupAssociationsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListFirewallRuleGroupAssociations", arg0) + ret0, _ := ret[0].(*route53resolver.ListFirewallRuleGroupAssociationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListFirewallRuleGroupAssociations indicates an expected call of ListFirewallRuleGroupAssociations. +func (mr *MockRoute53ResolverAPIMockRecorder) ListFirewallRuleGroupAssociations(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFirewallRuleGroupAssociations", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListFirewallRuleGroupAssociations), arg0) +} + +// ListFirewallRuleGroupAssociationsPages mocks base method. +func (m *MockRoute53ResolverAPI) ListFirewallRuleGroupAssociationsPages(arg0 *route53resolver.ListFirewallRuleGroupAssociationsInput, arg1 func(*route53resolver.ListFirewallRuleGroupAssociationsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListFirewallRuleGroupAssociationsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListFirewallRuleGroupAssociationsPages indicates an expected call of ListFirewallRuleGroupAssociationsPages. +func (mr *MockRoute53ResolverAPIMockRecorder) ListFirewallRuleGroupAssociationsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFirewallRuleGroupAssociationsPages", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListFirewallRuleGroupAssociationsPages), arg0, arg1) +} + +// ListFirewallRuleGroupAssociationsPagesWithContext mocks base method. +func (m *MockRoute53ResolverAPI) ListFirewallRuleGroupAssociationsPagesWithContext(arg0 aws.Context, arg1 *route53resolver.ListFirewallRuleGroupAssociationsInput, arg2 func(*route53resolver.ListFirewallRuleGroupAssociationsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListFirewallRuleGroupAssociationsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListFirewallRuleGroupAssociationsPagesWithContext indicates an expected call of ListFirewallRuleGroupAssociationsPagesWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) ListFirewallRuleGroupAssociationsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFirewallRuleGroupAssociationsPagesWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListFirewallRuleGroupAssociationsPagesWithContext), varargs...) +} + +// ListFirewallRuleGroupAssociationsRequest mocks base method. +func (m *MockRoute53ResolverAPI) ListFirewallRuleGroupAssociationsRequest(arg0 *route53resolver.ListFirewallRuleGroupAssociationsInput) (*request.Request, *route53resolver.ListFirewallRuleGroupAssociationsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListFirewallRuleGroupAssociationsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.ListFirewallRuleGroupAssociationsOutput) + return ret0, ret1 +} + +// ListFirewallRuleGroupAssociationsRequest indicates an expected call of ListFirewallRuleGroupAssociationsRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) ListFirewallRuleGroupAssociationsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFirewallRuleGroupAssociationsRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListFirewallRuleGroupAssociationsRequest), arg0) +} + +// ListFirewallRuleGroupAssociationsWithContext mocks base method. +func (m *MockRoute53ResolverAPI) ListFirewallRuleGroupAssociationsWithContext(arg0 aws.Context, arg1 *route53resolver.ListFirewallRuleGroupAssociationsInput, arg2 ...request.Option) (*route53resolver.ListFirewallRuleGroupAssociationsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListFirewallRuleGroupAssociationsWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.ListFirewallRuleGroupAssociationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListFirewallRuleGroupAssociationsWithContext indicates an expected call of ListFirewallRuleGroupAssociationsWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) ListFirewallRuleGroupAssociationsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFirewallRuleGroupAssociationsWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListFirewallRuleGroupAssociationsWithContext), varargs...) +} + +// ListFirewallRuleGroups mocks base method. +func (m *MockRoute53ResolverAPI) ListFirewallRuleGroups(arg0 *route53resolver.ListFirewallRuleGroupsInput) (*route53resolver.ListFirewallRuleGroupsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListFirewallRuleGroups", arg0) + ret0, _ := ret[0].(*route53resolver.ListFirewallRuleGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListFirewallRuleGroups indicates an expected call of ListFirewallRuleGroups. +func (mr *MockRoute53ResolverAPIMockRecorder) ListFirewallRuleGroups(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFirewallRuleGroups", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListFirewallRuleGroups), arg0) +} + +// ListFirewallRuleGroupsPages mocks base method. +func (m *MockRoute53ResolverAPI) ListFirewallRuleGroupsPages(arg0 *route53resolver.ListFirewallRuleGroupsInput, arg1 func(*route53resolver.ListFirewallRuleGroupsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListFirewallRuleGroupsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListFirewallRuleGroupsPages indicates an expected call of ListFirewallRuleGroupsPages. +func (mr *MockRoute53ResolverAPIMockRecorder) ListFirewallRuleGroupsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFirewallRuleGroupsPages", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListFirewallRuleGroupsPages), arg0, arg1) +} + +// ListFirewallRuleGroupsPagesWithContext mocks base method. +func (m *MockRoute53ResolverAPI) ListFirewallRuleGroupsPagesWithContext(arg0 aws.Context, arg1 *route53resolver.ListFirewallRuleGroupsInput, arg2 func(*route53resolver.ListFirewallRuleGroupsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListFirewallRuleGroupsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListFirewallRuleGroupsPagesWithContext indicates an expected call of ListFirewallRuleGroupsPagesWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) ListFirewallRuleGroupsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFirewallRuleGroupsPagesWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListFirewallRuleGroupsPagesWithContext), varargs...) +} + +// ListFirewallRuleGroupsRequest mocks base method. +func (m *MockRoute53ResolverAPI) ListFirewallRuleGroupsRequest(arg0 *route53resolver.ListFirewallRuleGroupsInput) (*request.Request, *route53resolver.ListFirewallRuleGroupsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListFirewallRuleGroupsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.ListFirewallRuleGroupsOutput) + return ret0, ret1 +} + +// ListFirewallRuleGroupsRequest indicates an expected call of ListFirewallRuleGroupsRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) ListFirewallRuleGroupsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFirewallRuleGroupsRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListFirewallRuleGroupsRequest), arg0) +} + +// ListFirewallRuleGroupsWithContext mocks base method. +func (m *MockRoute53ResolverAPI) ListFirewallRuleGroupsWithContext(arg0 aws.Context, arg1 *route53resolver.ListFirewallRuleGroupsInput, arg2 ...request.Option) (*route53resolver.ListFirewallRuleGroupsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListFirewallRuleGroupsWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.ListFirewallRuleGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListFirewallRuleGroupsWithContext indicates an expected call of ListFirewallRuleGroupsWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) ListFirewallRuleGroupsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFirewallRuleGroupsWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListFirewallRuleGroupsWithContext), varargs...) +} + +// ListFirewallRules mocks base method. +func (m *MockRoute53ResolverAPI) ListFirewallRules(arg0 *route53resolver.ListFirewallRulesInput) (*route53resolver.ListFirewallRulesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListFirewallRules", arg0) + ret0, _ := ret[0].(*route53resolver.ListFirewallRulesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListFirewallRules indicates an expected call of ListFirewallRules. +func (mr *MockRoute53ResolverAPIMockRecorder) ListFirewallRules(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFirewallRules", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListFirewallRules), arg0) +} + +// ListFirewallRulesPages mocks base method. +func (m *MockRoute53ResolverAPI) ListFirewallRulesPages(arg0 *route53resolver.ListFirewallRulesInput, arg1 func(*route53resolver.ListFirewallRulesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListFirewallRulesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListFirewallRulesPages indicates an expected call of ListFirewallRulesPages. +func (mr *MockRoute53ResolverAPIMockRecorder) ListFirewallRulesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFirewallRulesPages", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListFirewallRulesPages), arg0, arg1) +} + +// ListFirewallRulesPagesWithContext mocks base method. +func (m *MockRoute53ResolverAPI) ListFirewallRulesPagesWithContext(arg0 aws.Context, arg1 *route53resolver.ListFirewallRulesInput, arg2 func(*route53resolver.ListFirewallRulesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListFirewallRulesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListFirewallRulesPagesWithContext indicates an expected call of ListFirewallRulesPagesWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) ListFirewallRulesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFirewallRulesPagesWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListFirewallRulesPagesWithContext), varargs...) +} + +// ListFirewallRulesRequest mocks base method. +func (m *MockRoute53ResolverAPI) ListFirewallRulesRequest(arg0 *route53resolver.ListFirewallRulesInput) (*request.Request, *route53resolver.ListFirewallRulesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListFirewallRulesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.ListFirewallRulesOutput) + return ret0, ret1 +} + +// ListFirewallRulesRequest indicates an expected call of ListFirewallRulesRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) ListFirewallRulesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFirewallRulesRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListFirewallRulesRequest), arg0) +} + +// ListFirewallRulesWithContext mocks base method. +func (m *MockRoute53ResolverAPI) ListFirewallRulesWithContext(arg0 aws.Context, arg1 *route53resolver.ListFirewallRulesInput, arg2 ...request.Option) (*route53resolver.ListFirewallRulesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListFirewallRulesWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.ListFirewallRulesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListFirewallRulesWithContext indicates an expected call of ListFirewallRulesWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) ListFirewallRulesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFirewallRulesWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListFirewallRulesWithContext), varargs...) +} + +// ListOutpostResolvers mocks base method. +func (m *MockRoute53ResolverAPI) ListOutpostResolvers(arg0 *route53resolver.ListOutpostResolversInput) (*route53resolver.ListOutpostResolversOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListOutpostResolvers", arg0) + ret0, _ := ret[0].(*route53resolver.ListOutpostResolversOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListOutpostResolvers indicates an expected call of ListOutpostResolvers. +func (mr *MockRoute53ResolverAPIMockRecorder) ListOutpostResolvers(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOutpostResolvers", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListOutpostResolvers), arg0) +} + +// ListOutpostResolversPages mocks base method. +func (m *MockRoute53ResolverAPI) ListOutpostResolversPages(arg0 *route53resolver.ListOutpostResolversInput, arg1 func(*route53resolver.ListOutpostResolversOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListOutpostResolversPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListOutpostResolversPages indicates an expected call of ListOutpostResolversPages. +func (mr *MockRoute53ResolverAPIMockRecorder) ListOutpostResolversPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOutpostResolversPages", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListOutpostResolversPages), arg0, arg1) +} + +// ListOutpostResolversPagesWithContext mocks base method. +func (m *MockRoute53ResolverAPI) ListOutpostResolversPagesWithContext(arg0 aws.Context, arg1 *route53resolver.ListOutpostResolversInput, arg2 func(*route53resolver.ListOutpostResolversOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListOutpostResolversPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListOutpostResolversPagesWithContext indicates an expected call of ListOutpostResolversPagesWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) ListOutpostResolversPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOutpostResolversPagesWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListOutpostResolversPagesWithContext), varargs...) +} + +// ListOutpostResolversRequest mocks base method. +func (m *MockRoute53ResolverAPI) ListOutpostResolversRequest(arg0 *route53resolver.ListOutpostResolversInput) (*request.Request, *route53resolver.ListOutpostResolversOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListOutpostResolversRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.ListOutpostResolversOutput) + return ret0, ret1 +} + +// ListOutpostResolversRequest indicates an expected call of ListOutpostResolversRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) ListOutpostResolversRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOutpostResolversRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListOutpostResolversRequest), arg0) +} + +// ListOutpostResolversWithContext mocks base method. +func (m *MockRoute53ResolverAPI) ListOutpostResolversWithContext(arg0 aws.Context, arg1 *route53resolver.ListOutpostResolversInput, arg2 ...request.Option) (*route53resolver.ListOutpostResolversOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListOutpostResolversWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.ListOutpostResolversOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListOutpostResolversWithContext indicates an expected call of ListOutpostResolversWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) ListOutpostResolversWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOutpostResolversWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListOutpostResolversWithContext), varargs...) +} + +// ListResolverConfigs mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverConfigs(arg0 *route53resolver.ListResolverConfigsInput) (*route53resolver.ListResolverConfigsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResolverConfigs", arg0) + ret0, _ := ret[0].(*route53resolver.ListResolverConfigsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListResolverConfigs indicates an expected call of ListResolverConfigs. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverConfigs(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverConfigs", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverConfigs), arg0) +} + +// ListResolverConfigsPages mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverConfigsPages(arg0 *route53resolver.ListResolverConfigsInput, arg1 func(*route53resolver.ListResolverConfigsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResolverConfigsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListResolverConfigsPages indicates an expected call of ListResolverConfigsPages. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverConfigsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverConfigsPages", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverConfigsPages), arg0, arg1) +} + +// ListResolverConfigsPagesWithContext mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverConfigsPagesWithContext(arg0 aws.Context, arg1 *route53resolver.ListResolverConfigsInput, arg2 func(*route53resolver.ListResolverConfigsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListResolverConfigsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListResolverConfigsPagesWithContext indicates an expected call of ListResolverConfigsPagesWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverConfigsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverConfigsPagesWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverConfigsPagesWithContext), varargs...) +} + +// ListResolverConfigsRequest mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverConfigsRequest(arg0 *route53resolver.ListResolverConfigsInput) (*request.Request, *route53resolver.ListResolverConfigsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResolverConfigsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.ListResolverConfigsOutput) + return ret0, ret1 +} + +// ListResolverConfigsRequest indicates an expected call of ListResolverConfigsRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverConfigsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverConfigsRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverConfigsRequest), arg0) +} + +// ListResolverConfigsWithContext mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverConfigsWithContext(arg0 aws.Context, arg1 *route53resolver.ListResolverConfigsInput, arg2 ...request.Option) (*route53resolver.ListResolverConfigsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListResolverConfigsWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.ListResolverConfigsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListResolverConfigsWithContext indicates an expected call of ListResolverConfigsWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverConfigsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverConfigsWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverConfigsWithContext), varargs...) +} + +// ListResolverDnssecConfigs mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverDnssecConfigs(arg0 *route53resolver.ListResolverDnssecConfigsInput) (*route53resolver.ListResolverDnssecConfigsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResolverDnssecConfigs", arg0) + ret0, _ := ret[0].(*route53resolver.ListResolverDnssecConfigsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListResolverDnssecConfigs indicates an expected call of ListResolverDnssecConfigs. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverDnssecConfigs(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverDnssecConfigs", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverDnssecConfigs), arg0) +} + +// ListResolverDnssecConfigsPages mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverDnssecConfigsPages(arg0 *route53resolver.ListResolverDnssecConfigsInput, arg1 func(*route53resolver.ListResolverDnssecConfigsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResolverDnssecConfigsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListResolverDnssecConfigsPages indicates an expected call of ListResolverDnssecConfigsPages. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverDnssecConfigsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverDnssecConfigsPages", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverDnssecConfigsPages), arg0, arg1) +} + +// ListResolverDnssecConfigsPagesWithContext mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverDnssecConfigsPagesWithContext(arg0 aws.Context, arg1 *route53resolver.ListResolverDnssecConfigsInput, arg2 func(*route53resolver.ListResolverDnssecConfigsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListResolverDnssecConfigsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListResolverDnssecConfigsPagesWithContext indicates an expected call of ListResolverDnssecConfigsPagesWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverDnssecConfigsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverDnssecConfigsPagesWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverDnssecConfigsPagesWithContext), varargs...) +} + +// ListResolverDnssecConfigsRequest mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverDnssecConfigsRequest(arg0 *route53resolver.ListResolverDnssecConfigsInput) (*request.Request, *route53resolver.ListResolverDnssecConfigsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResolverDnssecConfigsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.ListResolverDnssecConfigsOutput) + return ret0, ret1 +} + +// ListResolverDnssecConfigsRequest indicates an expected call of ListResolverDnssecConfigsRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverDnssecConfigsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverDnssecConfigsRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverDnssecConfigsRequest), arg0) +} + +// ListResolverDnssecConfigsWithContext mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverDnssecConfigsWithContext(arg0 aws.Context, arg1 *route53resolver.ListResolverDnssecConfigsInput, arg2 ...request.Option) (*route53resolver.ListResolverDnssecConfigsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListResolverDnssecConfigsWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.ListResolverDnssecConfigsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListResolverDnssecConfigsWithContext indicates an expected call of ListResolverDnssecConfigsWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverDnssecConfigsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverDnssecConfigsWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverDnssecConfigsWithContext), varargs...) +} + +// ListResolverEndpointIpAddresses mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverEndpointIpAddresses(arg0 *route53resolver.ListResolverEndpointIpAddressesInput) (*route53resolver.ListResolverEndpointIpAddressesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResolverEndpointIpAddresses", arg0) + ret0, _ := ret[0].(*route53resolver.ListResolverEndpointIpAddressesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListResolverEndpointIpAddresses indicates an expected call of ListResolverEndpointIpAddresses. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverEndpointIpAddresses(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverEndpointIpAddresses", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverEndpointIpAddresses), arg0) +} + +// ListResolverEndpointIpAddressesPages mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverEndpointIpAddressesPages(arg0 *route53resolver.ListResolverEndpointIpAddressesInput, arg1 func(*route53resolver.ListResolverEndpointIpAddressesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResolverEndpointIpAddressesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListResolverEndpointIpAddressesPages indicates an expected call of ListResolverEndpointIpAddressesPages. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverEndpointIpAddressesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverEndpointIpAddressesPages", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverEndpointIpAddressesPages), arg0, arg1) +} + +// ListResolverEndpointIpAddressesPagesWithContext mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverEndpointIpAddressesPagesWithContext(arg0 aws.Context, arg1 *route53resolver.ListResolverEndpointIpAddressesInput, arg2 func(*route53resolver.ListResolverEndpointIpAddressesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListResolverEndpointIpAddressesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListResolverEndpointIpAddressesPagesWithContext indicates an expected call of ListResolverEndpointIpAddressesPagesWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverEndpointIpAddressesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverEndpointIpAddressesPagesWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverEndpointIpAddressesPagesWithContext), varargs...) +} + +// ListResolverEndpointIpAddressesRequest mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverEndpointIpAddressesRequest(arg0 *route53resolver.ListResolverEndpointIpAddressesInput) (*request.Request, *route53resolver.ListResolverEndpointIpAddressesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResolverEndpointIpAddressesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.ListResolverEndpointIpAddressesOutput) + return ret0, ret1 +} + +// ListResolverEndpointIpAddressesRequest indicates an expected call of ListResolverEndpointIpAddressesRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverEndpointIpAddressesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverEndpointIpAddressesRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverEndpointIpAddressesRequest), arg0) +} + +// ListResolverEndpointIpAddressesWithContext mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverEndpointIpAddressesWithContext(arg0 aws.Context, arg1 *route53resolver.ListResolverEndpointIpAddressesInput, arg2 ...request.Option) (*route53resolver.ListResolverEndpointIpAddressesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListResolverEndpointIpAddressesWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.ListResolverEndpointIpAddressesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListResolverEndpointIpAddressesWithContext indicates an expected call of ListResolverEndpointIpAddressesWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverEndpointIpAddressesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverEndpointIpAddressesWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverEndpointIpAddressesWithContext), varargs...) +} + +// ListResolverEndpoints mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverEndpoints(arg0 *route53resolver.ListResolverEndpointsInput) (*route53resolver.ListResolverEndpointsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResolverEndpoints", arg0) + ret0, _ := ret[0].(*route53resolver.ListResolverEndpointsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListResolverEndpoints indicates an expected call of ListResolverEndpoints. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverEndpoints(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverEndpoints", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverEndpoints), arg0) +} + +// ListResolverEndpointsPages mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverEndpointsPages(arg0 *route53resolver.ListResolverEndpointsInput, arg1 func(*route53resolver.ListResolverEndpointsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResolverEndpointsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListResolverEndpointsPages indicates an expected call of ListResolverEndpointsPages. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverEndpointsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverEndpointsPages", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverEndpointsPages), arg0, arg1) +} + +// ListResolverEndpointsPagesWithContext mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverEndpointsPagesWithContext(arg0 aws.Context, arg1 *route53resolver.ListResolverEndpointsInput, arg2 func(*route53resolver.ListResolverEndpointsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListResolverEndpointsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListResolverEndpointsPagesWithContext indicates an expected call of ListResolverEndpointsPagesWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverEndpointsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverEndpointsPagesWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverEndpointsPagesWithContext), varargs...) +} + +// ListResolverEndpointsRequest mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverEndpointsRequest(arg0 *route53resolver.ListResolverEndpointsInput) (*request.Request, *route53resolver.ListResolverEndpointsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResolverEndpointsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.ListResolverEndpointsOutput) + return ret0, ret1 +} + +// ListResolverEndpointsRequest indicates an expected call of ListResolverEndpointsRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverEndpointsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverEndpointsRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverEndpointsRequest), arg0) +} + +// ListResolverEndpointsWithContext mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverEndpointsWithContext(arg0 aws.Context, arg1 *route53resolver.ListResolverEndpointsInput, arg2 ...request.Option) (*route53resolver.ListResolverEndpointsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListResolverEndpointsWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.ListResolverEndpointsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListResolverEndpointsWithContext indicates an expected call of ListResolverEndpointsWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverEndpointsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverEndpointsWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverEndpointsWithContext), varargs...) +} + +// ListResolverQueryLogConfigAssociations mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverQueryLogConfigAssociations(arg0 *route53resolver.ListResolverQueryLogConfigAssociationsInput) (*route53resolver.ListResolverQueryLogConfigAssociationsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResolverQueryLogConfigAssociations", arg0) + ret0, _ := ret[0].(*route53resolver.ListResolverQueryLogConfigAssociationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListResolverQueryLogConfigAssociations indicates an expected call of ListResolverQueryLogConfigAssociations. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverQueryLogConfigAssociations(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverQueryLogConfigAssociations", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverQueryLogConfigAssociations), arg0) +} + +// ListResolverQueryLogConfigAssociationsPages mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverQueryLogConfigAssociationsPages(arg0 *route53resolver.ListResolverQueryLogConfigAssociationsInput, arg1 func(*route53resolver.ListResolverQueryLogConfigAssociationsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResolverQueryLogConfigAssociationsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListResolverQueryLogConfigAssociationsPages indicates an expected call of ListResolverQueryLogConfigAssociationsPages. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverQueryLogConfigAssociationsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverQueryLogConfigAssociationsPages", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverQueryLogConfigAssociationsPages), arg0, arg1) +} + +// ListResolverQueryLogConfigAssociationsPagesWithContext mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverQueryLogConfigAssociationsPagesWithContext(arg0 aws.Context, arg1 *route53resolver.ListResolverQueryLogConfigAssociationsInput, arg2 func(*route53resolver.ListResolverQueryLogConfigAssociationsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListResolverQueryLogConfigAssociationsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListResolverQueryLogConfigAssociationsPagesWithContext indicates an expected call of ListResolverQueryLogConfigAssociationsPagesWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverQueryLogConfigAssociationsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverQueryLogConfigAssociationsPagesWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverQueryLogConfigAssociationsPagesWithContext), varargs...) +} + +// ListResolverQueryLogConfigAssociationsRequest mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverQueryLogConfigAssociationsRequest(arg0 *route53resolver.ListResolverQueryLogConfigAssociationsInput) (*request.Request, *route53resolver.ListResolverQueryLogConfigAssociationsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResolverQueryLogConfigAssociationsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.ListResolverQueryLogConfigAssociationsOutput) + return ret0, ret1 +} + +// ListResolverQueryLogConfigAssociationsRequest indicates an expected call of ListResolverQueryLogConfigAssociationsRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverQueryLogConfigAssociationsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverQueryLogConfigAssociationsRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverQueryLogConfigAssociationsRequest), arg0) +} + +// ListResolverQueryLogConfigAssociationsWithContext mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverQueryLogConfigAssociationsWithContext(arg0 aws.Context, arg1 *route53resolver.ListResolverQueryLogConfigAssociationsInput, arg2 ...request.Option) (*route53resolver.ListResolverQueryLogConfigAssociationsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListResolverQueryLogConfigAssociationsWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.ListResolverQueryLogConfigAssociationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListResolverQueryLogConfigAssociationsWithContext indicates an expected call of ListResolverQueryLogConfigAssociationsWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverQueryLogConfigAssociationsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverQueryLogConfigAssociationsWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverQueryLogConfigAssociationsWithContext), varargs...) +} + +// ListResolverQueryLogConfigs mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverQueryLogConfigs(arg0 *route53resolver.ListResolverQueryLogConfigsInput) (*route53resolver.ListResolverQueryLogConfigsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResolverQueryLogConfigs", arg0) + ret0, _ := ret[0].(*route53resolver.ListResolverQueryLogConfigsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListResolverQueryLogConfigs indicates an expected call of ListResolverQueryLogConfigs. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverQueryLogConfigs(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverQueryLogConfigs", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverQueryLogConfigs), arg0) +} + +// ListResolverQueryLogConfigsPages mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverQueryLogConfigsPages(arg0 *route53resolver.ListResolverQueryLogConfigsInput, arg1 func(*route53resolver.ListResolverQueryLogConfigsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResolverQueryLogConfigsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListResolverQueryLogConfigsPages indicates an expected call of ListResolverQueryLogConfigsPages. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverQueryLogConfigsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverQueryLogConfigsPages", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverQueryLogConfigsPages), arg0, arg1) +} + +// ListResolverQueryLogConfigsPagesWithContext mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverQueryLogConfigsPagesWithContext(arg0 aws.Context, arg1 *route53resolver.ListResolverQueryLogConfigsInput, arg2 func(*route53resolver.ListResolverQueryLogConfigsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListResolverQueryLogConfigsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListResolverQueryLogConfigsPagesWithContext indicates an expected call of ListResolverQueryLogConfigsPagesWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverQueryLogConfigsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverQueryLogConfigsPagesWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverQueryLogConfigsPagesWithContext), varargs...) +} + +// ListResolverQueryLogConfigsRequest mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverQueryLogConfigsRequest(arg0 *route53resolver.ListResolverQueryLogConfigsInput) (*request.Request, *route53resolver.ListResolverQueryLogConfigsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResolverQueryLogConfigsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.ListResolverQueryLogConfigsOutput) + return ret0, ret1 +} + +// ListResolverQueryLogConfigsRequest indicates an expected call of ListResolverQueryLogConfigsRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverQueryLogConfigsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverQueryLogConfigsRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverQueryLogConfigsRequest), arg0) +} + +// ListResolverQueryLogConfigsWithContext mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverQueryLogConfigsWithContext(arg0 aws.Context, arg1 *route53resolver.ListResolverQueryLogConfigsInput, arg2 ...request.Option) (*route53resolver.ListResolverQueryLogConfigsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListResolverQueryLogConfigsWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.ListResolverQueryLogConfigsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListResolverQueryLogConfigsWithContext indicates an expected call of ListResolverQueryLogConfigsWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverQueryLogConfigsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverQueryLogConfigsWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverQueryLogConfigsWithContext), varargs...) +} + +// ListResolverRuleAssociations mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverRuleAssociations(arg0 *route53resolver.ListResolverRuleAssociationsInput) (*route53resolver.ListResolverRuleAssociationsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResolverRuleAssociations", arg0) + ret0, _ := ret[0].(*route53resolver.ListResolverRuleAssociationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListResolverRuleAssociations indicates an expected call of ListResolverRuleAssociations. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverRuleAssociations(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverRuleAssociations", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverRuleAssociations), arg0) +} + +// ListResolverRuleAssociationsPages mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverRuleAssociationsPages(arg0 *route53resolver.ListResolverRuleAssociationsInput, arg1 func(*route53resolver.ListResolverRuleAssociationsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResolverRuleAssociationsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListResolverRuleAssociationsPages indicates an expected call of ListResolverRuleAssociationsPages. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverRuleAssociationsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverRuleAssociationsPages", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverRuleAssociationsPages), arg0, arg1) +} + +// ListResolverRuleAssociationsPagesWithContext mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverRuleAssociationsPagesWithContext(arg0 aws.Context, arg1 *route53resolver.ListResolverRuleAssociationsInput, arg2 func(*route53resolver.ListResolverRuleAssociationsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListResolverRuleAssociationsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListResolverRuleAssociationsPagesWithContext indicates an expected call of ListResolverRuleAssociationsPagesWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverRuleAssociationsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverRuleAssociationsPagesWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverRuleAssociationsPagesWithContext), varargs...) +} + +// ListResolverRuleAssociationsRequest mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverRuleAssociationsRequest(arg0 *route53resolver.ListResolverRuleAssociationsInput) (*request.Request, *route53resolver.ListResolverRuleAssociationsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResolverRuleAssociationsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.ListResolverRuleAssociationsOutput) + return ret0, ret1 +} + +// ListResolverRuleAssociationsRequest indicates an expected call of ListResolverRuleAssociationsRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverRuleAssociationsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverRuleAssociationsRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverRuleAssociationsRequest), arg0) +} + +// ListResolverRuleAssociationsWithContext mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverRuleAssociationsWithContext(arg0 aws.Context, arg1 *route53resolver.ListResolverRuleAssociationsInput, arg2 ...request.Option) (*route53resolver.ListResolverRuleAssociationsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListResolverRuleAssociationsWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.ListResolverRuleAssociationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListResolverRuleAssociationsWithContext indicates an expected call of ListResolverRuleAssociationsWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverRuleAssociationsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverRuleAssociationsWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverRuleAssociationsWithContext), varargs...) +} + +// ListResolverRules mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverRules(arg0 *route53resolver.ListResolverRulesInput) (*route53resolver.ListResolverRulesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResolverRules", arg0) + ret0, _ := ret[0].(*route53resolver.ListResolverRulesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListResolverRules indicates an expected call of ListResolverRules. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverRules(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverRules", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverRules), arg0) +} + +// ListResolverRulesPages mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverRulesPages(arg0 *route53resolver.ListResolverRulesInput, arg1 func(*route53resolver.ListResolverRulesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResolverRulesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListResolverRulesPages indicates an expected call of ListResolverRulesPages. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverRulesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverRulesPages", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverRulesPages), arg0, arg1) +} + +// ListResolverRulesPagesWithContext mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverRulesPagesWithContext(arg0 aws.Context, arg1 *route53resolver.ListResolverRulesInput, arg2 func(*route53resolver.ListResolverRulesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListResolverRulesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListResolverRulesPagesWithContext indicates an expected call of ListResolverRulesPagesWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverRulesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverRulesPagesWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverRulesPagesWithContext), varargs...) +} + +// ListResolverRulesRequest mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverRulesRequest(arg0 *route53resolver.ListResolverRulesInput) (*request.Request, *route53resolver.ListResolverRulesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResolverRulesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.ListResolverRulesOutput) + return ret0, ret1 +} + +// ListResolverRulesRequest indicates an expected call of ListResolverRulesRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverRulesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverRulesRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverRulesRequest), arg0) +} + +// ListResolverRulesWithContext mocks base method. +func (m *MockRoute53ResolverAPI) ListResolverRulesWithContext(arg0 aws.Context, arg1 *route53resolver.ListResolverRulesInput, arg2 ...request.Option) (*route53resolver.ListResolverRulesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListResolverRulesWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.ListResolverRulesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListResolverRulesWithContext indicates an expected call of ListResolverRulesWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) ListResolverRulesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResolverRulesWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListResolverRulesWithContext), varargs...) +} + +// ListTagsForResource mocks base method. +func (m *MockRoute53ResolverAPI) ListTagsForResource(arg0 *route53resolver.ListTagsForResourceInput) (*route53resolver.ListTagsForResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTagsForResource", arg0) + ret0, _ := ret[0].(*route53resolver.ListTagsForResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTagsForResource indicates an expected call of ListTagsForResource. +func (mr *MockRoute53ResolverAPIMockRecorder) ListTagsForResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsForResource", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListTagsForResource), arg0) +} + +// ListTagsForResourcePages mocks base method. +func (m *MockRoute53ResolverAPI) ListTagsForResourcePages(arg0 *route53resolver.ListTagsForResourceInput, arg1 func(*route53resolver.ListTagsForResourceOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTagsForResourcePages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTagsForResourcePages indicates an expected call of ListTagsForResourcePages. +func (mr *MockRoute53ResolverAPIMockRecorder) ListTagsForResourcePages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsForResourcePages", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListTagsForResourcePages), arg0, arg1) +} + +// ListTagsForResourcePagesWithContext mocks base method. +func (m *MockRoute53ResolverAPI) ListTagsForResourcePagesWithContext(arg0 aws.Context, arg1 *route53resolver.ListTagsForResourceInput, arg2 func(*route53resolver.ListTagsForResourceOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTagsForResourcePagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListTagsForResourcePagesWithContext indicates an expected call of ListTagsForResourcePagesWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) ListTagsForResourcePagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsForResourcePagesWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListTagsForResourcePagesWithContext), varargs...) +} + +// ListTagsForResourceRequest mocks base method. +func (m *MockRoute53ResolverAPI) ListTagsForResourceRequest(arg0 *route53resolver.ListTagsForResourceInput) (*request.Request, *route53resolver.ListTagsForResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTagsForResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.ListTagsForResourceOutput) + return ret0, ret1 +} + +// ListTagsForResourceRequest indicates an expected call of ListTagsForResourceRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) ListTagsForResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsForResourceRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListTagsForResourceRequest), arg0) +} + +// ListTagsForResourceWithContext mocks base method. +func (m *MockRoute53ResolverAPI) ListTagsForResourceWithContext(arg0 aws.Context, arg1 *route53resolver.ListTagsForResourceInput, arg2 ...request.Option) (*route53resolver.ListTagsForResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTagsForResourceWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.ListTagsForResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTagsForResourceWithContext indicates an expected call of ListTagsForResourceWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) ListTagsForResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsForResourceWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).ListTagsForResourceWithContext), varargs...) +} + +// PutFirewallRuleGroupPolicy mocks base method. +func (m *MockRoute53ResolverAPI) PutFirewallRuleGroupPolicy(arg0 *route53resolver.PutFirewallRuleGroupPolicyInput) (*route53resolver.PutFirewallRuleGroupPolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutFirewallRuleGroupPolicy", arg0) + ret0, _ := ret[0].(*route53resolver.PutFirewallRuleGroupPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutFirewallRuleGroupPolicy indicates an expected call of PutFirewallRuleGroupPolicy. +func (mr *MockRoute53ResolverAPIMockRecorder) PutFirewallRuleGroupPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutFirewallRuleGroupPolicy", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).PutFirewallRuleGroupPolicy), arg0) +} + +// PutFirewallRuleGroupPolicyRequest mocks base method. +func (m *MockRoute53ResolverAPI) PutFirewallRuleGroupPolicyRequest(arg0 *route53resolver.PutFirewallRuleGroupPolicyInput) (*request.Request, *route53resolver.PutFirewallRuleGroupPolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutFirewallRuleGroupPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.PutFirewallRuleGroupPolicyOutput) + return ret0, ret1 +} + +// PutFirewallRuleGroupPolicyRequest indicates an expected call of PutFirewallRuleGroupPolicyRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) PutFirewallRuleGroupPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutFirewallRuleGroupPolicyRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).PutFirewallRuleGroupPolicyRequest), arg0) +} + +// PutFirewallRuleGroupPolicyWithContext mocks base method. +func (m *MockRoute53ResolverAPI) PutFirewallRuleGroupPolicyWithContext(arg0 aws.Context, arg1 *route53resolver.PutFirewallRuleGroupPolicyInput, arg2 ...request.Option) (*route53resolver.PutFirewallRuleGroupPolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PutFirewallRuleGroupPolicyWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.PutFirewallRuleGroupPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutFirewallRuleGroupPolicyWithContext indicates an expected call of PutFirewallRuleGroupPolicyWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) PutFirewallRuleGroupPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutFirewallRuleGroupPolicyWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).PutFirewallRuleGroupPolicyWithContext), varargs...) +} + +// PutResolverQueryLogConfigPolicy mocks base method. +func (m *MockRoute53ResolverAPI) PutResolverQueryLogConfigPolicy(arg0 *route53resolver.PutResolverQueryLogConfigPolicyInput) (*route53resolver.PutResolverQueryLogConfigPolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutResolverQueryLogConfigPolicy", arg0) + ret0, _ := ret[0].(*route53resolver.PutResolverQueryLogConfigPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutResolverQueryLogConfigPolicy indicates an expected call of PutResolverQueryLogConfigPolicy. +func (mr *MockRoute53ResolverAPIMockRecorder) PutResolverQueryLogConfigPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutResolverQueryLogConfigPolicy", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).PutResolverQueryLogConfigPolicy), arg0) +} + +// PutResolverQueryLogConfigPolicyRequest mocks base method. +func (m *MockRoute53ResolverAPI) PutResolverQueryLogConfigPolicyRequest(arg0 *route53resolver.PutResolverQueryLogConfigPolicyInput) (*request.Request, *route53resolver.PutResolverQueryLogConfigPolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutResolverQueryLogConfigPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.PutResolverQueryLogConfigPolicyOutput) + return ret0, ret1 +} + +// PutResolverQueryLogConfigPolicyRequest indicates an expected call of PutResolverQueryLogConfigPolicyRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) PutResolverQueryLogConfigPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutResolverQueryLogConfigPolicyRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).PutResolverQueryLogConfigPolicyRequest), arg0) +} + +// PutResolverQueryLogConfigPolicyWithContext mocks base method. +func (m *MockRoute53ResolverAPI) PutResolverQueryLogConfigPolicyWithContext(arg0 aws.Context, arg1 *route53resolver.PutResolverQueryLogConfigPolicyInput, arg2 ...request.Option) (*route53resolver.PutResolverQueryLogConfigPolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PutResolverQueryLogConfigPolicyWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.PutResolverQueryLogConfigPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutResolverQueryLogConfigPolicyWithContext indicates an expected call of PutResolverQueryLogConfigPolicyWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) PutResolverQueryLogConfigPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutResolverQueryLogConfigPolicyWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).PutResolverQueryLogConfigPolicyWithContext), varargs...) +} + +// PutResolverRulePolicy mocks base method. +func (m *MockRoute53ResolverAPI) PutResolverRulePolicy(arg0 *route53resolver.PutResolverRulePolicyInput) (*route53resolver.PutResolverRulePolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutResolverRulePolicy", arg0) + ret0, _ := ret[0].(*route53resolver.PutResolverRulePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutResolverRulePolicy indicates an expected call of PutResolverRulePolicy. +func (mr *MockRoute53ResolverAPIMockRecorder) PutResolverRulePolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutResolverRulePolicy", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).PutResolverRulePolicy), arg0) +} + +// PutResolverRulePolicyRequest mocks base method. +func (m *MockRoute53ResolverAPI) PutResolverRulePolicyRequest(arg0 *route53resolver.PutResolverRulePolicyInput) (*request.Request, *route53resolver.PutResolverRulePolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutResolverRulePolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.PutResolverRulePolicyOutput) + return ret0, ret1 +} + +// PutResolverRulePolicyRequest indicates an expected call of PutResolverRulePolicyRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) PutResolverRulePolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutResolverRulePolicyRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).PutResolverRulePolicyRequest), arg0) +} + +// PutResolverRulePolicyWithContext mocks base method. +func (m *MockRoute53ResolverAPI) PutResolverRulePolicyWithContext(arg0 aws.Context, arg1 *route53resolver.PutResolverRulePolicyInput, arg2 ...request.Option) (*route53resolver.PutResolverRulePolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PutResolverRulePolicyWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.PutResolverRulePolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutResolverRulePolicyWithContext indicates an expected call of PutResolverRulePolicyWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) PutResolverRulePolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutResolverRulePolicyWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).PutResolverRulePolicyWithContext), varargs...) +} + +// TagResource mocks base method. +func (m *MockRoute53ResolverAPI) TagResource(arg0 *route53resolver.TagResourceInput) (*route53resolver.TagResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagResource", arg0) + ret0, _ := ret[0].(*route53resolver.TagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagResource indicates an expected call of TagResource. +func (mr *MockRoute53ResolverAPIMockRecorder) TagResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagResource", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).TagResource), arg0) +} + +// TagResourceRequest mocks base method. +func (m *MockRoute53ResolverAPI) TagResourceRequest(arg0 *route53resolver.TagResourceInput) (*request.Request, *route53resolver.TagResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.TagResourceOutput) + return ret0, ret1 +} + +// TagResourceRequest indicates an expected call of TagResourceRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) TagResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagResourceRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).TagResourceRequest), arg0) +} + +// TagResourceWithContext mocks base method. +func (m *MockRoute53ResolverAPI) TagResourceWithContext(arg0 aws.Context, arg1 *route53resolver.TagResourceInput, arg2 ...request.Option) (*route53resolver.TagResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "TagResourceWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.TagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagResourceWithContext indicates an expected call of TagResourceWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) TagResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagResourceWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).TagResourceWithContext), varargs...) +} + +// UntagResource mocks base method. +func (m *MockRoute53ResolverAPI) UntagResource(arg0 *route53resolver.UntagResourceInput) (*route53resolver.UntagResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagResource", arg0) + ret0, _ := ret[0].(*route53resolver.UntagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagResource indicates an expected call of UntagResource. +func (mr *MockRoute53ResolverAPIMockRecorder) UntagResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagResource", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).UntagResource), arg0) +} + +// UntagResourceRequest mocks base method. +func (m *MockRoute53ResolverAPI) UntagResourceRequest(arg0 *route53resolver.UntagResourceInput) (*request.Request, *route53resolver.UntagResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.UntagResourceOutput) + return ret0, ret1 +} + +// UntagResourceRequest indicates an expected call of UntagResourceRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) UntagResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagResourceRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).UntagResourceRequest), arg0) +} + +// UntagResourceWithContext mocks base method. +func (m *MockRoute53ResolverAPI) UntagResourceWithContext(arg0 aws.Context, arg1 *route53resolver.UntagResourceInput, arg2 ...request.Option) (*route53resolver.UntagResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UntagResourceWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.UntagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagResourceWithContext indicates an expected call of UntagResourceWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) UntagResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagResourceWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).UntagResourceWithContext), varargs...) +} + +// UpdateFirewallConfig mocks base method. +func (m *MockRoute53ResolverAPI) UpdateFirewallConfig(arg0 *route53resolver.UpdateFirewallConfigInput) (*route53resolver.UpdateFirewallConfigOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateFirewallConfig", arg0) + ret0, _ := ret[0].(*route53resolver.UpdateFirewallConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateFirewallConfig indicates an expected call of UpdateFirewallConfig. +func (mr *MockRoute53ResolverAPIMockRecorder) UpdateFirewallConfig(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFirewallConfig", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).UpdateFirewallConfig), arg0) +} + +// UpdateFirewallConfigRequest mocks base method. +func (m *MockRoute53ResolverAPI) UpdateFirewallConfigRequest(arg0 *route53resolver.UpdateFirewallConfigInput) (*request.Request, *route53resolver.UpdateFirewallConfigOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateFirewallConfigRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.UpdateFirewallConfigOutput) + return ret0, ret1 +} + +// UpdateFirewallConfigRequest indicates an expected call of UpdateFirewallConfigRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) UpdateFirewallConfigRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFirewallConfigRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).UpdateFirewallConfigRequest), arg0) +} + +// UpdateFirewallConfigWithContext mocks base method. +func (m *MockRoute53ResolverAPI) UpdateFirewallConfigWithContext(arg0 aws.Context, arg1 *route53resolver.UpdateFirewallConfigInput, arg2 ...request.Option) (*route53resolver.UpdateFirewallConfigOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateFirewallConfigWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.UpdateFirewallConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateFirewallConfigWithContext indicates an expected call of UpdateFirewallConfigWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) UpdateFirewallConfigWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFirewallConfigWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).UpdateFirewallConfigWithContext), varargs...) +} + +// UpdateFirewallDomains mocks base method. +func (m *MockRoute53ResolverAPI) UpdateFirewallDomains(arg0 *route53resolver.UpdateFirewallDomainsInput) (*route53resolver.UpdateFirewallDomainsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateFirewallDomains", arg0) + ret0, _ := ret[0].(*route53resolver.UpdateFirewallDomainsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateFirewallDomains indicates an expected call of UpdateFirewallDomains. +func (mr *MockRoute53ResolverAPIMockRecorder) UpdateFirewallDomains(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFirewallDomains", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).UpdateFirewallDomains), arg0) +} + +// UpdateFirewallDomainsRequest mocks base method. +func (m *MockRoute53ResolverAPI) UpdateFirewallDomainsRequest(arg0 *route53resolver.UpdateFirewallDomainsInput) (*request.Request, *route53resolver.UpdateFirewallDomainsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateFirewallDomainsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.UpdateFirewallDomainsOutput) + return ret0, ret1 +} + +// UpdateFirewallDomainsRequest indicates an expected call of UpdateFirewallDomainsRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) UpdateFirewallDomainsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFirewallDomainsRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).UpdateFirewallDomainsRequest), arg0) +} + +// UpdateFirewallDomainsWithContext mocks base method. +func (m *MockRoute53ResolverAPI) UpdateFirewallDomainsWithContext(arg0 aws.Context, arg1 *route53resolver.UpdateFirewallDomainsInput, arg2 ...request.Option) (*route53resolver.UpdateFirewallDomainsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateFirewallDomainsWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.UpdateFirewallDomainsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateFirewallDomainsWithContext indicates an expected call of UpdateFirewallDomainsWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) UpdateFirewallDomainsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFirewallDomainsWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).UpdateFirewallDomainsWithContext), varargs...) +} + +// UpdateFirewallRule mocks base method. +func (m *MockRoute53ResolverAPI) UpdateFirewallRule(arg0 *route53resolver.UpdateFirewallRuleInput) (*route53resolver.UpdateFirewallRuleOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateFirewallRule", arg0) + ret0, _ := ret[0].(*route53resolver.UpdateFirewallRuleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateFirewallRule indicates an expected call of UpdateFirewallRule. +func (mr *MockRoute53ResolverAPIMockRecorder) UpdateFirewallRule(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFirewallRule", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).UpdateFirewallRule), arg0) +} + +// UpdateFirewallRuleGroupAssociation mocks base method. +func (m *MockRoute53ResolverAPI) UpdateFirewallRuleGroupAssociation(arg0 *route53resolver.UpdateFirewallRuleGroupAssociationInput) (*route53resolver.UpdateFirewallRuleGroupAssociationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateFirewallRuleGroupAssociation", arg0) + ret0, _ := ret[0].(*route53resolver.UpdateFirewallRuleGroupAssociationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateFirewallRuleGroupAssociation indicates an expected call of UpdateFirewallRuleGroupAssociation. +func (mr *MockRoute53ResolverAPIMockRecorder) UpdateFirewallRuleGroupAssociation(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFirewallRuleGroupAssociation", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).UpdateFirewallRuleGroupAssociation), arg0) +} + +// UpdateFirewallRuleGroupAssociationRequest mocks base method. +func (m *MockRoute53ResolverAPI) UpdateFirewallRuleGroupAssociationRequest(arg0 *route53resolver.UpdateFirewallRuleGroupAssociationInput) (*request.Request, *route53resolver.UpdateFirewallRuleGroupAssociationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateFirewallRuleGroupAssociationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.UpdateFirewallRuleGroupAssociationOutput) + return ret0, ret1 +} + +// UpdateFirewallRuleGroupAssociationRequest indicates an expected call of UpdateFirewallRuleGroupAssociationRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) UpdateFirewallRuleGroupAssociationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFirewallRuleGroupAssociationRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).UpdateFirewallRuleGroupAssociationRequest), arg0) +} + +// UpdateFirewallRuleGroupAssociationWithContext mocks base method. +func (m *MockRoute53ResolverAPI) UpdateFirewallRuleGroupAssociationWithContext(arg0 aws.Context, arg1 *route53resolver.UpdateFirewallRuleGroupAssociationInput, arg2 ...request.Option) (*route53resolver.UpdateFirewallRuleGroupAssociationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateFirewallRuleGroupAssociationWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.UpdateFirewallRuleGroupAssociationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateFirewallRuleGroupAssociationWithContext indicates an expected call of UpdateFirewallRuleGroupAssociationWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) UpdateFirewallRuleGroupAssociationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFirewallRuleGroupAssociationWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).UpdateFirewallRuleGroupAssociationWithContext), varargs...) +} + +// UpdateFirewallRuleRequest mocks base method. +func (m *MockRoute53ResolverAPI) UpdateFirewallRuleRequest(arg0 *route53resolver.UpdateFirewallRuleInput) (*request.Request, *route53resolver.UpdateFirewallRuleOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateFirewallRuleRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.UpdateFirewallRuleOutput) + return ret0, ret1 +} + +// UpdateFirewallRuleRequest indicates an expected call of UpdateFirewallRuleRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) UpdateFirewallRuleRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFirewallRuleRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).UpdateFirewallRuleRequest), arg0) +} + +// UpdateFirewallRuleWithContext mocks base method. +func (m *MockRoute53ResolverAPI) UpdateFirewallRuleWithContext(arg0 aws.Context, arg1 *route53resolver.UpdateFirewallRuleInput, arg2 ...request.Option) (*route53resolver.UpdateFirewallRuleOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateFirewallRuleWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.UpdateFirewallRuleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateFirewallRuleWithContext indicates an expected call of UpdateFirewallRuleWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) UpdateFirewallRuleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFirewallRuleWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).UpdateFirewallRuleWithContext), varargs...) +} + +// UpdateOutpostResolver mocks base method. +func (m *MockRoute53ResolverAPI) UpdateOutpostResolver(arg0 *route53resolver.UpdateOutpostResolverInput) (*route53resolver.UpdateOutpostResolverOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateOutpostResolver", arg0) + ret0, _ := ret[0].(*route53resolver.UpdateOutpostResolverOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateOutpostResolver indicates an expected call of UpdateOutpostResolver. +func (mr *MockRoute53ResolverAPIMockRecorder) UpdateOutpostResolver(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateOutpostResolver", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).UpdateOutpostResolver), arg0) +} + +// UpdateOutpostResolverRequest mocks base method. +func (m *MockRoute53ResolverAPI) UpdateOutpostResolverRequest(arg0 *route53resolver.UpdateOutpostResolverInput) (*request.Request, *route53resolver.UpdateOutpostResolverOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateOutpostResolverRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.UpdateOutpostResolverOutput) + return ret0, ret1 +} + +// UpdateOutpostResolverRequest indicates an expected call of UpdateOutpostResolverRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) UpdateOutpostResolverRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateOutpostResolverRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).UpdateOutpostResolverRequest), arg0) +} + +// UpdateOutpostResolverWithContext mocks base method. +func (m *MockRoute53ResolverAPI) UpdateOutpostResolverWithContext(arg0 aws.Context, arg1 *route53resolver.UpdateOutpostResolverInput, arg2 ...request.Option) (*route53resolver.UpdateOutpostResolverOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateOutpostResolverWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.UpdateOutpostResolverOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateOutpostResolverWithContext indicates an expected call of UpdateOutpostResolverWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) UpdateOutpostResolverWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateOutpostResolverWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).UpdateOutpostResolverWithContext), varargs...) +} + +// UpdateResolverConfig mocks base method. +func (m *MockRoute53ResolverAPI) UpdateResolverConfig(arg0 *route53resolver.UpdateResolverConfigInput) (*route53resolver.UpdateResolverConfigOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateResolverConfig", arg0) + ret0, _ := ret[0].(*route53resolver.UpdateResolverConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateResolverConfig indicates an expected call of UpdateResolverConfig. +func (mr *MockRoute53ResolverAPIMockRecorder) UpdateResolverConfig(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateResolverConfig", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).UpdateResolverConfig), arg0) +} + +// UpdateResolverConfigRequest mocks base method. +func (m *MockRoute53ResolverAPI) UpdateResolverConfigRequest(arg0 *route53resolver.UpdateResolverConfigInput) (*request.Request, *route53resolver.UpdateResolverConfigOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateResolverConfigRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.UpdateResolverConfigOutput) + return ret0, ret1 +} + +// UpdateResolverConfigRequest indicates an expected call of UpdateResolverConfigRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) UpdateResolverConfigRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateResolverConfigRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).UpdateResolverConfigRequest), arg0) +} + +// UpdateResolverConfigWithContext mocks base method. +func (m *MockRoute53ResolverAPI) UpdateResolverConfigWithContext(arg0 aws.Context, arg1 *route53resolver.UpdateResolverConfigInput, arg2 ...request.Option) (*route53resolver.UpdateResolverConfigOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateResolverConfigWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.UpdateResolverConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateResolverConfigWithContext indicates an expected call of UpdateResolverConfigWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) UpdateResolverConfigWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateResolverConfigWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).UpdateResolverConfigWithContext), varargs...) +} + +// UpdateResolverDnssecConfig mocks base method. +func (m *MockRoute53ResolverAPI) UpdateResolverDnssecConfig(arg0 *route53resolver.UpdateResolverDnssecConfigInput) (*route53resolver.UpdateResolverDnssecConfigOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateResolverDnssecConfig", arg0) + ret0, _ := ret[0].(*route53resolver.UpdateResolverDnssecConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateResolverDnssecConfig indicates an expected call of UpdateResolverDnssecConfig. +func (mr *MockRoute53ResolverAPIMockRecorder) UpdateResolverDnssecConfig(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateResolverDnssecConfig", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).UpdateResolverDnssecConfig), arg0) +} + +// UpdateResolverDnssecConfigRequest mocks base method. +func (m *MockRoute53ResolverAPI) UpdateResolverDnssecConfigRequest(arg0 *route53resolver.UpdateResolverDnssecConfigInput) (*request.Request, *route53resolver.UpdateResolverDnssecConfigOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateResolverDnssecConfigRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.UpdateResolverDnssecConfigOutput) + return ret0, ret1 +} + +// UpdateResolverDnssecConfigRequest indicates an expected call of UpdateResolverDnssecConfigRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) UpdateResolverDnssecConfigRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateResolverDnssecConfigRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).UpdateResolverDnssecConfigRequest), arg0) +} + +// UpdateResolverDnssecConfigWithContext mocks base method. +func (m *MockRoute53ResolverAPI) UpdateResolverDnssecConfigWithContext(arg0 aws.Context, arg1 *route53resolver.UpdateResolverDnssecConfigInput, arg2 ...request.Option) (*route53resolver.UpdateResolverDnssecConfigOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateResolverDnssecConfigWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.UpdateResolverDnssecConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateResolverDnssecConfigWithContext indicates an expected call of UpdateResolverDnssecConfigWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) UpdateResolverDnssecConfigWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateResolverDnssecConfigWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).UpdateResolverDnssecConfigWithContext), varargs...) +} + +// UpdateResolverEndpoint mocks base method. +func (m *MockRoute53ResolverAPI) UpdateResolverEndpoint(arg0 *route53resolver.UpdateResolverEndpointInput) (*route53resolver.UpdateResolverEndpointOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateResolverEndpoint", arg0) + ret0, _ := ret[0].(*route53resolver.UpdateResolverEndpointOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateResolverEndpoint indicates an expected call of UpdateResolverEndpoint. +func (mr *MockRoute53ResolverAPIMockRecorder) UpdateResolverEndpoint(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateResolverEndpoint", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).UpdateResolverEndpoint), arg0) +} + +// UpdateResolverEndpointRequest mocks base method. +func (m *MockRoute53ResolverAPI) UpdateResolverEndpointRequest(arg0 *route53resolver.UpdateResolverEndpointInput) (*request.Request, *route53resolver.UpdateResolverEndpointOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateResolverEndpointRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.UpdateResolverEndpointOutput) + return ret0, ret1 +} + +// UpdateResolverEndpointRequest indicates an expected call of UpdateResolverEndpointRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) UpdateResolverEndpointRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateResolverEndpointRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).UpdateResolverEndpointRequest), arg0) +} + +// UpdateResolverEndpointWithContext mocks base method. +func (m *MockRoute53ResolverAPI) UpdateResolverEndpointWithContext(arg0 aws.Context, arg1 *route53resolver.UpdateResolverEndpointInput, arg2 ...request.Option) (*route53resolver.UpdateResolverEndpointOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateResolverEndpointWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.UpdateResolverEndpointOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateResolverEndpointWithContext indicates an expected call of UpdateResolverEndpointWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) UpdateResolverEndpointWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateResolverEndpointWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).UpdateResolverEndpointWithContext), varargs...) +} + +// UpdateResolverRule mocks base method. +func (m *MockRoute53ResolverAPI) UpdateResolverRule(arg0 *route53resolver.UpdateResolverRuleInput) (*route53resolver.UpdateResolverRuleOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateResolverRule", arg0) + ret0, _ := ret[0].(*route53resolver.UpdateResolverRuleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateResolverRule indicates an expected call of UpdateResolverRule. +func (mr *MockRoute53ResolverAPIMockRecorder) UpdateResolverRule(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateResolverRule", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).UpdateResolverRule), arg0) +} + +// UpdateResolverRuleRequest mocks base method. +func (m *MockRoute53ResolverAPI) UpdateResolverRuleRequest(arg0 *route53resolver.UpdateResolverRuleInput) (*request.Request, *route53resolver.UpdateResolverRuleOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateResolverRuleRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*route53resolver.UpdateResolverRuleOutput) + return ret0, ret1 +} + +// UpdateResolverRuleRequest indicates an expected call of UpdateResolverRuleRequest. +func (mr *MockRoute53ResolverAPIMockRecorder) UpdateResolverRuleRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateResolverRuleRequest", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).UpdateResolverRuleRequest), arg0) +} + +// UpdateResolverRuleWithContext mocks base method. +func (m *MockRoute53ResolverAPI) UpdateResolverRuleWithContext(arg0 aws.Context, arg1 *route53resolver.UpdateResolverRuleInput, arg2 ...request.Option) (*route53resolver.UpdateResolverRuleOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateResolverRuleWithContext", varargs...) + ret0, _ := ret[0].(*route53resolver.UpdateResolverRuleOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateResolverRuleWithContext indicates an expected call of UpdateResolverRuleWithContext. +func (mr *MockRoute53ResolverAPIMockRecorder) UpdateResolverRuleWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateResolverRuleWithContext", reflect.TypeOf((*MockRoute53ResolverAPI)(nil).UpdateResolverRuleWithContext), varargs...) +} diff --git a/resources/route53_mock_test.go b/resources/route53_mock_test.go index ae38e54d..2023ea32 100644 --- a/resources/route53_mock_test.go +++ b/resources/route53_mock_test.go @@ -1,4 +1,5 @@ //go:generate ../mocks/generate_mocks.sh route53 route53iface +//go:generate ../mocks/generate_mocks.sh route53resolver route53resolveriface package resources // Note: empty on purpose, this file exist purely to generate mocks for the Route53 service From 9faec90a234336aa284e5ff1b48e4dbeac504089 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 11 Sep 2024 13:30:00 -0600 Subject: [PATCH 462/617] test(route53-resolver-rule): increase test coverage --- resources/route53-resolver-rule.go | 93 +++---- resources/route53-resolver-rule_mock_test.go | 268 +++++++++++++++++++ 2 files changed, 315 insertions(+), 46 deletions(-) create mode 100644 resources/route53-resolver-rule_mock_test.go diff --git a/resources/route53-resolver-rule.go b/resources/route53-resolver-rule.go index b9e21771..2a854546 100644 --- a/resources/route53-resolver-rule.go +++ b/resources/route53-resolver-rule.go @@ -8,6 +8,7 @@ import ( "github.com/gotidy/ptr" "github.com/aws/aws-sdk-go/service/route53resolver" + "github.com/aws/aws-sdk-go/service/route53resolver/route53resolveriface" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" @@ -26,14 +27,21 @@ func init() { }) } -type Route53ResolverRuleLister struct{} +type Route53ResolverRuleLister struct { + mockSvc route53resolveriface.Route53ResolverAPI +} // List returns a list of all Route53 ResolverRules before filtering to be nuked func (l *Route53ResolverRuleLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) var resources []resource.Resource - svc := route53resolver.New(opts.Session) + var svc route53resolveriface.Route53ResolverAPI + if l.mockSvc != nil { + svc = l.mockSvc + } else { + svc = route53resolver.New(opts.Session) + } vpcAssociations, vpcErr := resolverRulesToVpcIDs(svc) if vpcErr != nil { @@ -43,7 +51,6 @@ func (l *Route53ResolverRuleLister) List(_ context.Context, o interface{}) ([]re params := &route53resolver.ListResolverRulesInput{} for { resp, err := svc.ListResolverRules(params) - if err != nil { return nil, err } @@ -68,45 +75,9 @@ func (l *Route53ResolverRuleLister) List(_ context.Context, o interface{}) ([]re return resources, nil } -// resolverRulesToVpcIDs - Associate all the vpcIDs to their resolver rule ID to be disassociated before deleting the rule. -func resolverRulesToVpcIDs(svc *route53resolver.Route53Resolver) (map[string][]*string, error) { - vpcAssociations := map[string][]*string{} - - params := &route53resolver.ListResolverRuleAssociationsInput{} - - for { - resp, err := svc.ListResolverRuleAssociations(params) - - if err != nil { - return nil, err - } - - for _, ruleAssociation := range resp.ResolverRuleAssociations { - vpcID := ruleAssociation.VPCId - if vpcID != nil { - resolverRuleID := *ruleAssociation.ResolverRuleId - - if _, ok := vpcAssociations[resolverRuleID]; !ok { - vpcAssociations[resolverRuleID] = []*string{vpcID} - } else { - vpcAssociations[resolverRuleID] = append(vpcAssociations[resolverRuleID], vpcID) - } - } - } - - if resp.NextToken == nil { - break - } - - params.NextToken = resp.NextToken - } - - return vpcAssociations, nil -} - // Route53ResolverRule is the resource type type Route53ResolverRule struct { - svc *route53resolver.Route53Resolver + svc route53resolveriface.Route53ResolverAPI vpcIds []*string ID *string Name *string @@ -119,11 +90,6 @@ func (r *Route53ResolverRule) Filter() error { return fmt.Errorf("cannot delete system defined rules") } - // TODO: is this needed if the system defined is already filtered? - if r.DomainName != nil && ptr.ToString(r.DomainName) == "." { - return fmt.Errorf(`filtering DomainName "."`) - } - return nil } @@ -134,7 +100,6 @@ func (r *Route53ResolverRule) Remove(_ context.Context) error { ResolverRuleId: r.ID, VPCId: vpcID, }) - if err != nil { return err } @@ -156,3 +121,39 @@ func (r *Route53ResolverRule) Properties() types.Properties { func (r *Route53ResolverRule) String() string { return fmt.Sprintf("%s (%s)", ptr.ToString(r.ID), ptr.ToString(r.Name)) } + +// resolverRulesToVpcIDs - Associate all the vpcIDs to their resolver rule ID to be disassociated before deleting the rule. +func resolverRulesToVpcIDs(svc route53resolveriface.Route53ResolverAPI) (map[string][]*string, error) { + vpcAssociations := map[string][]*string{} + + params := &route53resolver.ListResolverRuleAssociationsInput{} + + for { + resp, err := svc.ListResolverRuleAssociations(params) + + if err != nil { + return nil, err + } + + for _, ruleAssociation := range resp.ResolverRuleAssociations { + vpcID := ruleAssociation.VPCId + if vpcID != nil { + resolverRuleID := *ruleAssociation.ResolverRuleId + + if _, ok := vpcAssociations[resolverRuleID]; !ok { + vpcAssociations[resolverRuleID] = []*string{vpcID} + } else { + vpcAssociations[resolverRuleID] = append(vpcAssociations[resolverRuleID], vpcID) + } + } + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken + } + + return vpcAssociations, nil +} diff --git a/resources/route53-resolver-rule_mock_test.go b/resources/route53-resolver-rule_mock_test.go new file mode 100644 index 00000000..2954c72d --- /dev/null +++ b/resources/route53-resolver-rule_mock_test.go @@ -0,0 +1,268 @@ +package resources + +import ( + "context" + "fmt" + "github.com/aws/aws-sdk-go/aws" + "testing" + + "github.com/golang/mock/gomock" + "github.com/gotidy/ptr" + "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/route53resolver" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/v3/mocks/mock_route53resolveriface" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +func Test_Mock_Route53ResolverRule_List(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockRoute53Resolver := mock_route53resolveriface.NewMockRoute53ResolverAPI(ctrl) + + mockRoute53Resolver.EXPECT().ListResolverRules(gomock.Any()).Return(&route53resolver.ListResolverRulesOutput{ + ResolverRules: []*route53resolver.ResolverRule{ + { + Id: ptr.String("rslvr-rr-1"), + Name: ptr.String("rule1"), + DomainName: ptr.String("example.com"), + }, + { + Id: ptr.String("rslvr-rr-2"), + Name: ptr.String("rule2"), + DomainName: ptr.String("example.org"), + }, + { + Id: ptr.String("rslvr-autodefined-rr-3"), + Name: ptr.String("Internet Resolver"), + DomainName: ptr.String("."), + }, + }, + }, nil) + + mockRoute53Resolver.EXPECT().ListResolverRuleAssociations(gomock.Any()).Return(&route53resolver.ListResolverRuleAssociationsOutput{ + ResolverRuleAssociations: []*route53resolver.ResolverRuleAssociation{ + { + ResolverRuleId: ptr.String("rslvr-rr-1"), + VPCId: ptr.String("vpc-1"), + }, + { + ResolverRuleId: ptr.String("rslvr-rr-2"), + VPCId: ptr.String("vpc-2"), + }, + { + ResolverRuleId: ptr.String("rslvr-autodefined-rr-3"), + VPCId: ptr.String("vpc-3"), + }, + }, + }, nil) + + lister := &Route53ResolverRuleLister{ + mockSvc: mockRoute53Resolver, + } + + resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ + Region: &nuke.Region{ + Name: "us-east-2", + }, + Session: session.Must(session.NewSession()), + }) + a.Nil(err) + a.Len(resources, 3) + + expectedResources := []resource.Resource{ + &Route53ResolverRule{ + svc: mockRoute53Resolver, + vpcIds: []*string{ptr.String("vpc-1")}, + ID: ptr.String("rslvr-rr-1"), + Name: ptr.String("rule1"), + DomainName: ptr.String("example.com"), + }, + &Route53ResolverRule{ + svc: mockRoute53Resolver, + vpcIds: []*string{ptr.String("vpc-2")}, + ID: ptr.String("rslvr-rr-2"), + Name: ptr.String("rule2"), + DomainName: ptr.String("example.org"), + }, + &Route53ResolverRule{ + svc: mockRoute53Resolver, + vpcIds: []*string{ptr.String("vpc-3")}, + ID: ptr.String("rslvr-autodefined-rr-3"), + Name: ptr.String("Internet Resolver"), + DomainName: ptr.String("."), + }, + } + + a.Equal(expectedResources, resources) +} + +func Test_Mock_Route53ResolverRule_Filter(t *testing.T) { + a := assert.New(t) + + cases := []struct { + Name string + ID string + DomainName string + Filtered bool + }{ + { + ID: "rslvr-rr-1", + DomainName: "example.com", + Filtered: false, + }, + { + ID: "rslvr-autodefined-rr-1", + DomainName: ".", + Filtered: true, + }, + } + + for _, c := range cases { + name := c.ID + if c.Filtered { + name = fmt.Sprintf("filtered/%s", name) + } else { + name = fmt.Sprintf("not-filtered/%s", name) + } + + t.Run(name, func(t *testing.T) { + rule := &Route53ResolverRule{ + ID: ptr.String(c.ID), + DomainName: ptr.String(c.DomainName), + } + + err := rule.Filter() + if c.Filtered { + a.NotNil(err) + } else { + a.Nil(err) + } + }) + } +} + +func Test_Mock_Route53ResolverRule_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockRoute53Resolver := mock_route53resolveriface.NewMockRoute53ResolverAPI(ctrl) + + mockRoute53Resolver.EXPECT(). + DisassociateResolverRule(gomock.Any()). + Return(&route53resolver.DisassociateResolverRuleOutput{}, nil).Times(2) + + mockRoute53Resolver.EXPECT(). + DeleteResolverRule(gomock.Any()). + Return(&route53resolver.DeleteResolverRuleOutput{}, nil) + + rule := &Route53ResolverRule{ + svc: mockRoute53Resolver, + vpcIds: []*string{ptr.String("vpc-1"), ptr.String("vpc-2")}, + ID: ptr.String("rslvr-rr-1"), + Name: ptr.String("rule1"), + DomainName: ptr.String("example.com"), + } + + err := rule.Remove(context.TODO()) + a.Nil(err) +} + +func Test_Mock_Route53ResolverRule_Properties(t *testing.T) { + a := assert.New(t) + + rule := &Route53ResolverRule{ + ID: ptr.String("rslvr-rr-1"), + Name: ptr.String("rule1"), + DomainName: ptr.String("example.com"), + } + + properties := rule.Properties() + a.Equal("rslvr-rr-1", properties.Get("ID")) + a.Equal("rule1", properties.Get("Name")) + a.Equal("example.com", properties.Get("DomainName")) + + a.Equal("rslvr-rr-1 (rule1)", rule.String()) + + rule.Name = nil + a.Equal("rslvr-rr-1 ()", rule.String()) +} + +func Test_resolverRulesToVpcIDs(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockRoute53Resolver := mock_route53resolveriface.NewMockRoute53ResolverAPI(ctrl) + + // Test case: Error from ListResolverRuleAssociations + mockRoute53Resolver.EXPECT(). + ListResolverRuleAssociations(gomock.Any()). + Return(nil, aws.ErrMissingEndpoint) + + vpcAssociations, err := resolverRulesToVpcIDs(mockRoute53Resolver) + a.Nil(vpcAssociations) + a.NotNil(err) + a.EqualError(err, aws.ErrMissingEndpoint.Error()) + + // Test case: Paginated results with NextToken + mockRoute53Resolver.EXPECT(). + ListResolverRuleAssociations(&route53resolver.ListResolverRuleAssociationsInput{}). + Return(&route53resolver.ListResolverRuleAssociationsOutput{ + ResolverRuleAssociations: []*route53resolver.ResolverRuleAssociation{ + { + ResolverRuleId: aws.String("rslvr-rr-1"), + VPCId: aws.String("vpc-1"), + }, + }, + NextToken: aws.String("token1"), + }, nil) + + mockRoute53Resolver.EXPECT(). + ListResolverRuleAssociations(&route53resolver.ListResolverRuleAssociationsInput{ + NextToken: aws.String("token1"), + }).Return(&route53resolver.ListResolverRuleAssociationsOutput{ + ResolverRuleAssociations: []*route53resolver.ResolverRuleAssociation{ + { + ResolverRuleId: aws.String("rslvr-rr-2"), + VPCId: aws.String("vpc-2"), + }, + }, + }, nil) + + vpcAssociations, err = resolverRulesToVpcIDs(mockRoute53Resolver) + a.Nil(err) + a.NotNil(vpcAssociations) + a.Len(vpcAssociations, 2) + a.Equal([]*string{aws.String("vpc-1")}, vpcAssociations["rslvr-rr-1"]) + a.Equal([]*string{aws.String("vpc-2")}, vpcAssociations["rslvr-rr-2"]) + + // Test case: Multiple VPC associations for a single resolver rule + mockRoute53Resolver.EXPECT(). + ListResolverRuleAssociations(&route53resolver.ListResolverRuleAssociationsInput{}). + Return(&route53resolver.ListResolverRuleAssociationsOutput{ + ResolverRuleAssociations: []*route53resolver.ResolverRuleAssociation{ + { + ResolverRuleId: aws.String("rslvr-rr-3"), + VPCId: aws.String("vpc-3"), + }, + { + ResolverRuleId: aws.String("rslvr-rr-3"), + VPCId: aws.String("vpc-4"), + }, + }, + }, nil) + + vpcAssociations, err = resolverRulesToVpcIDs(mockRoute53Resolver) + a.Nil(err) + a.NotNil(vpcAssociations) + a.Len(vpcAssociations, 1) + a.Equal([]*string{aws.String("vpc-3"), aws.String("vpc-4")}, vpcAssociations["rslvr-rr-3"]) +} From 8af2e1e9adbaf2e65c3c03906a9f0a6363ae6873 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 11 Sep 2024 13:36:42 -0600 Subject: [PATCH 463/617] chore: fix lint violation --- resources/route53-resolver-rule_mock_test.go | 28 ++++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/resources/route53-resolver-rule_mock_test.go b/resources/route53-resolver-rule_mock_test.go index 2954c72d..6c5e1212 100644 --- a/resources/route53-resolver-rule_mock_test.go +++ b/resources/route53-resolver-rule_mock_test.go @@ -3,13 +3,13 @@ package resources import ( "context" "fmt" - "github.com/aws/aws-sdk-go/aws" "testing" "github.com/golang/mock/gomock" "github.com/gotidy/ptr" "github.com/stretchr/testify/assert" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/route53resolver" @@ -218,21 +218,21 @@ func Test_resolverRulesToVpcIDs(t *testing.T) { Return(&route53resolver.ListResolverRuleAssociationsOutput{ ResolverRuleAssociations: []*route53resolver.ResolverRuleAssociation{ { - ResolverRuleId: aws.String("rslvr-rr-1"), - VPCId: aws.String("vpc-1"), + ResolverRuleId: ptr.String("rslvr-rr-1"), + VPCId: ptr.String("vpc-1"), }, }, - NextToken: aws.String("token1"), + NextToken: ptr.String("token1"), }, nil) mockRoute53Resolver.EXPECT(). ListResolverRuleAssociations(&route53resolver.ListResolverRuleAssociationsInput{ - NextToken: aws.String("token1"), + NextToken: ptr.String("token1"), }).Return(&route53resolver.ListResolverRuleAssociationsOutput{ ResolverRuleAssociations: []*route53resolver.ResolverRuleAssociation{ { - ResolverRuleId: aws.String("rslvr-rr-2"), - VPCId: aws.String("vpc-2"), + ResolverRuleId: ptr.String("rslvr-rr-2"), + VPCId: ptr.String("vpc-2"), }, }, }, nil) @@ -241,8 +241,8 @@ func Test_resolverRulesToVpcIDs(t *testing.T) { a.Nil(err) a.NotNil(vpcAssociations) a.Len(vpcAssociations, 2) - a.Equal([]*string{aws.String("vpc-1")}, vpcAssociations["rslvr-rr-1"]) - a.Equal([]*string{aws.String("vpc-2")}, vpcAssociations["rslvr-rr-2"]) + a.Equal([]*string{ptr.String("vpc-1")}, vpcAssociations["rslvr-rr-1"]) + a.Equal([]*string{ptr.String("vpc-2")}, vpcAssociations["rslvr-rr-2"]) // Test case: Multiple VPC associations for a single resolver rule mockRoute53Resolver.EXPECT(). @@ -250,12 +250,12 @@ func Test_resolverRulesToVpcIDs(t *testing.T) { Return(&route53resolver.ListResolverRuleAssociationsOutput{ ResolverRuleAssociations: []*route53resolver.ResolverRuleAssociation{ { - ResolverRuleId: aws.String("rslvr-rr-3"), - VPCId: aws.String("vpc-3"), + ResolverRuleId: ptr.String("rslvr-rr-3"), + VPCId: ptr.String("vpc-3"), }, { - ResolverRuleId: aws.String("rslvr-rr-3"), - VPCId: aws.String("vpc-4"), + ResolverRuleId: ptr.String("rslvr-rr-3"), + VPCId: ptr.String("vpc-4"), }, }, }, nil) @@ -264,5 +264,5 @@ func Test_resolverRulesToVpcIDs(t *testing.T) { a.Nil(err) a.NotNil(vpcAssociations) a.Len(vpcAssociations, 1) - a.Equal([]*string{aws.String("vpc-3"), aws.String("vpc-4")}, vpcAssociations["rslvr-rr-3"]) + a.Equal([]*string{ptr.String("vpc-3"), ptr.String("vpc-4")}, vpcAssociations["rslvr-rr-3"]) } From 673d0b312582fca109dbed2f08bc1c315a238578 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 11 Sep 2024 16:39:06 -0600 Subject: [PATCH 464/617] test(budgets): adding mocks for budgets service --- mocks/mock_budgetsiface/mock.go | 1601 +++++++++++++++++++++++++++++++ resources/budgets_mock_test.go | 4 + 2 files changed, 1605 insertions(+) create mode 100644 mocks/mock_budgetsiface/mock.go create mode 100644 resources/budgets_mock_test.go diff --git a/mocks/mock_budgetsiface/mock.go b/mocks/mock_budgetsiface/mock.go new file mode 100644 index 00000000..6fe7c07a --- /dev/null +++ b/mocks/mock_budgetsiface/mock.go @@ -0,0 +1,1601 @@ +// Code generated by MockGen. DO NOT EDIT. +// Source: /Users/ekristen/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.20/service/budgets/budgetsiface/interface.go + +// Package mock_budgetsiface is a generated GoMock package. +package mock_budgetsiface + +import ( + reflect "reflect" + + aws "github.com/aws/aws-sdk-go/aws" + request "github.com/aws/aws-sdk-go/aws/request" + budgets "github.com/aws/aws-sdk-go/service/budgets" + gomock "github.com/golang/mock/gomock" +) + +// MockBudgetsAPI is a mock of BudgetsAPI interface. +type MockBudgetsAPI struct { + ctrl *gomock.Controller + recorder *MockBudgetsAPIMockRecorder +} + +// MockBudgetsAPIMockRecorder is the mock recorder for MockBudgetsAPI. +type MockBudgetsAPIMockRecorder struct { + mock *MockBudgetsAPI +} + +// NewMockBudgetsAPI creates a new mock instance. +func NewMockBudgetsAPI(ctrl *gomock.Controller) *MockBudgetsAPI { + mock := &MockBudgetsAPI{ctrl: ctrl} + mock.recorder = &MockBudgetsAPIMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockBudgetsAPI) EXPECT() *MockBudgetsAPIMockRecorder { + return m.recorder +} + +// CreateBudget mocks base method. +func (m *MockBudgetsAPI) CreateBudget(arg0 *budgets.CreateBudgetInput) (*budgets.CreateBudgetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateBudget", arg0) + ret0, _ := ret[0].(*budgets.CreateBudgetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateBudget indicates an expected call of CreateBudget. +func (mr *MockBudgetsAPIMockRecorder) CreateBudget(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateBudget", reflect.TypeOf((*MockBudgetsAPI)(nil).CreateBudget), arg0) +} + +// CreateBudgetAction mocks base method. +func (m *MockBudgetsAPI) CreateBudgetAction(arg0 *budgets.CreateBudgetActionInput) (*budgets.CreateBudgetActionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateBudgetAction", arg0) + ret0, _ := ret[0].(*budgets.CreateBudgetActionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateBudgetAction indicates an expected call of CreateBudgetAction. +func (mr *MockBudgetsAPIMockRecorder) CreateBudgetAction(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateBudgetAction", reflect.TypeOf((*MockBudgetsAPI)(nil).CreateBudgetAction), arg0) +} + +// CreateBudgetActionRequest mocks base method. +func (m *MockBudgetsAPI) CreateBudgetActionRequest(arg0 *budgets.CreateBudgetActionInput) (*request.Request, *budgets.CreateBudgetActionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateBudgetActionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*budgets.CreateBudgetActionOutput) + return ret0, ret1 +} + +// CreateBudgetActionRequest indicates an expected call of CreateBudgetActionRequest. +func (mr *MockBudgetsAPIMockRecorder) CreateBudgetActionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateBudgetActionRequest", reflect.TypeOf((*MockBudgetsAPI)(nil).CreateBudgetActionRequest), arg0) +} + +// CreateBudgetActionWithContext mocks base method. +func (m *MockBudgetsAPI) CreateBudgetActionWithContext(arg0 aws.Context, arg1 *budgets.CreateBudgetActionInput, arg2 ...request.Option) (*budgets.CreateBudgetActionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateBudgetActionWithContext", varargs...) + ret0, _ := ret[0].(*budgets.CreateBudgetActionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateBudgetActionWithContext indicates an expected call of CreateBudgetActionWithContext. +func (mr *MockBudgetsAPIMockRecorder) CreateBudgetActionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateBudgetActionWithContext", reflect.TypeOf((*MockBudgetsAPI)(nil).CreateBudgetActionWithContext), varargs...) +} + +// CreateBudgetRequest mocks base method. +func (m *MockBudgetsAPI) CreateBudgetRequest(arg0 *budgets.CreateBudgetInput) (*request.Request, *budgets.CreateBudgetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateBudgetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*budgets.CreateBudgetOutput) + return ret0, ret1 +} + +// CreateBudgetRequest indicates an expected call of CreateBudgetRequest. +func (mr *MockBudgetsAPIMockRecorder) CreateBudgetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateBudgetRequest", reflect.TypeOf((*MockBudgetsAPI)(nil).CreateBudgetRequest), arg0) +} + +// CreateBudgetWithContext mocks base method. +func (m *MockBudgetsAPI) CreateBudgetWithContext(arg0 aws.Context, arg1 *budgets.CreateBudgetInput, arg2 ...request.Option) (*budgets.CreateBudgetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateBudgetWithContext", varargs...) + ret0, _ := ret[0].(*budgets.CreateBudgetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateBudgetWithContext indicates an expected call of CreateBudgetWithContext. +func (mr *MockBudgetsAPIMockRecorder) CreateBudgetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateBudgetWithContext", reflect.TypeOf((*MockBudgetsAPI)(nil).CreateBudgetWithContext), varargs...) +} + +// CreateNotification mocks base method. +func (m *MockBudgetsAPI) CreateNotification(arg0 *budgets.CreateNotificationInput) (*budgets.CreateNotificationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateNotification", arg0) + ret0, _ := ret[0].(*budgets.CreateNotificationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateNotification indicates an expected call of CreateNotification. +func (mr *MockBudgetsAPIMockRecorder) CreateNotification(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateNotification", reflect.TypeOf((*MockBudgetsAPI)(nil).CreateNotification), arg0) +} + +// CreateNotificationRequest mocks base method. +func (m *MockBudgetsAPI) CreateNotificationRequest(arg0 *budgets.CreateNotificationInput) (*request.Request, *budgets.CreateNotificationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateNotificationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*budgets.CreateNotificationOutput) + return ret0, ret1 +} + +// CreateNotificationRequest indicates an expected call of CreateNotificationRequest. +func (mr *MockBudgetsAPIMockRecorder) CreateNotificationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateNotificationRequest", reflect.TypeOf((*MockBudgetsAPI)(nil).CreateNotificationRequest), arg0) +} + +// CreateNotificationWithContext mocks base method. +func (m *MockBudgetsAPI) CreateNotificationWithContext(arg0 aws.Context, arg1 *budgets.CreateNotificationInput, arg2 ...request.Option) (*budgets.CreateNotificationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateNotificationWithContext", varargs...) + ret0, _ := ret[0].(*budgets.CreateNotificationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateNotificationWithContext indicates an expected call of CreateNotificationWithContext. +func (mr *MockBudgetsAPIMockRecorder) CreateNotificationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateNotificationWithContext", reflect.TypeOf((*MockBudgetsAPI)(nil).CreateNotificationWithContext), varargs...) +} + +// CreateSubscriber mocks base method. +func (m *MockBudgetsAPI) CreateSubscriber(arg0 *budgets.CreateSubscriberInput) (*budgets.CreateSubscriberOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateSubscriber", arg0) + ret0, _ := ret[0].(*budgets.CreateSubscriberOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateSubscriber indicates an expected call of CreateSubscriber. +func (mr *MockBudgetsAPIMockRecorder) CreateSubscriber(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateSubscriber", reflect.TypeOf((*MockBudgetsAPI)(nil).CreateSubscriber), arg0) +} + +// CreateSubscriberRequest mocks base method. +func (m *MockBudgetsAPI) CreateSubscriberRequest(arg0 *budgets.CreateSubscriberInput) (*request.Request, *budgets.CreateSubscriberOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateSubscriberRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*budgets.CreateSubscriberOutput) + return ret0, ret1 +} + +// CreateSubscriberRequest indicates an expected call of CreateSubscriberRequest. +func (mr *MockBudgetsAPIMockRecorder) CreateSubscriberRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateSubscriberRequest", reflect.TypeOf((*MockBudgetsAPI)(nil).CreateSubscriberRequest), arg0) +} + +// CreateSubscriberWithContext mocks base method. +func (m *MockBudgetsAPI) CreateSubscriberWithContext(arg0 aws.Context, arg1 *budgets.CreateSubscriberInput, arg2 ...request.Option) (*budgets.CreateSubscriberOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateSubscriberWithContext", varargs...) + ret0, _ := ret[0].(*budgets.CreateSubscriberOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateSubscriberWithContext indicates an expected call of CreateSubscriberWithContext. +func (mr *MockBudgetsAPIMockRecorder) CreateSubscriberWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateSubscriberWithContext", reflect.TypeOf((*MockBudgetsAPI)(nil).CreateSubscriberWithContext), varargs...) +} + +// DeleteBudget mocks base method. +func (m *MockBudgetsAPI) DeleteBudget(arg0 *budgets.DeleteBudgetInput) (*budgets.DeleteBudgetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteBudget", arg0) + ret0, _ := ret[0].(*budgets.DeleteBudgetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteBudget indicates an expected call of DeleteBudget. +func (mr *MockBudgetsAPIMockRecorder) DeleteBudget(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteBudget", reflect.TypeOf((*MockBudgetsAPI)(nil).DeleteBudget), arg0) +} + +// DeleteBudgetAction mocks base method. +func (m *MockBudgetsAPI) DeleteBudgetAction(arg0 *budgets.DeleteBudgetActionInput) (*budgets.DeleteBudgetActionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteBudgetAction", arg0) + ret0, _ := ret[0].(*budgets.DeleteBudgetActionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteBudgetAction indicates an expected call of DeleteBudgetAction. +func (mr *MockBudgetsAPIMockRecorder) DeleteBudgetAction(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteBudgetAction", reflect.TypeOf((*MockBudgetsAPI)(nil).DeleteBudgetAction), arg0) +} + +// DeleteBudgetActionRequest mocks base method. +func (m *MockBudgetsAPI) DeleteBudgetActionRequest(arg0 *budgets.DeleteBudgetActionInput) (*request.Request, *budgets.DeleteBudgetActionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteBudgetActionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*budgets.DeleteBudgetActionOutput) + return ret0, ret1 +} + +// DeleteBudgetActionRequest indicates an expected call of DeleteBudgetActionRequest. +func (mr *MockBudgetsAPIMockRecorder) DeleteBudgetActionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteBudgetActionRequest", reflect.TypeOf((*MockBudgetsAPI)(nil).DeleteBudgetActionRequest), arg0) +} + +// DeleteBudgetActionWithContext mocks base method. +func (m *MockBudgetsAPI) DeleteBudgetActionWithContext(arg0 aws.Context, arg1 *budgets.DeleteBudgetActionInput, arg2 ...request.Option) (*budgets.DeleteBudgetActionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteBudgetActionWithContext", varargs...) + ret0, _ := ret[0].(*budgets.DeleteBudgetActionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteBudgetActionWithContext indicates an expected call of DeleteBudgetActionWithContext. +func (mr *MockBudgetsAPIMockRecorder) DeleteBudgetActionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteBudgetActionWithContext", reflect.TypeOf((*MockBudgetsAPI)(nil).DeleteBudgetActionWithContext), varargs...) +} + +// DeleteBudgetRequest mocks base method. +func (m *MockBudgetsAPI) DeleteBudgetRequest(arg0 *budgets.DeleteBudgetInput) (*request.Request, *budgets.DeleteBudgetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteBudgetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*budgets.DeleteBudgetOutput) + return ret0, ret1 +} + +// DeleteBudgetRequest indicates an expected call of DeleteBudgetRequest. +func (mr *MockBudgetsAPIMockRecorder) DeleteBudgetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteBudgetRequest", reflect.TypeOf((*MockBudgetsAPI)(nil).DeleteBudgetRequest), arg0) +} + +// DeleteBudgetWithContext mocks base method. +func (m *MockBudgetsAPI) DeleteBudgetWithContext(arg0 aws.Context, arg1 *budgets.DeleteBudgetInput, arg2 ...request.Option) (*budgets.DeleteBudgetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteBudgetWithContext", varargs...) + ret0, _ := ret[0].(*budgets.DeleteBudgetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteBudgetWithContext indicates an expected call of DeleteBudgetWithContext. +func (mr *MockBudgetsAPIMockRecorder) DeleteBudgetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteBudgetWithContext", reflect.TypeOf((*MockBudgetsAPI)(nil).DeleteBudgetWithContext), varargs...) +} + +// DeleteNotification mocks base method. +func (m *MockBudgetsAPI) DeleteNotification(arg0 *budgets.DeleteNotificationInput) (*budgets.DeleteNotificationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteNotification", arg0) + ret0, _ := ret[0].(*budgets.DeleteNotificationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteNotification indicates an expected call of DeleteNotification. +func (mr *MockBudgetsAPIMockRecorder) DeleteNotification(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteNotification", reflect.TypeOf((*MockBudgetsAPI)(nil).DeleteNotification), arg0) +} + +// DeleteNotificationRequest mocks base method. +func (m *MockBudgetsAPI) DeleteNotificationRequest(arg0 *budgets.DeleteNotificationInput) (*request.Request, *budgets.DeleteNotificationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteNotificationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*budgets.DeleteNotificationOutput) + return ret0, ret1 +} + +// DeleteNotificationRequest indicates an expected call of DeleteNotificationRequest. +func (mr *MockBudgetsAPIMockRecorder) DeleteNotificationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteNotificationRequest", reflect.TypeOf((*MockBudgetsAPI)(nil).DeleteNotificationRequest), arg0) +} + +// DeleteNotificationWithContext mocks base method. +func (m *MockBudgetsAPI) DeleteNotificationWithContext(arg0 aws.Context, arg1 *budgets.DeleteNotificationInput, arg2 ...request.Option) (*budgets.DeleteNotificationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteNotificationWithContext", varargs...) + ret0, _ := ret[0].(*budgets.DeleteNotificationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteNotificationWithContext indicates an expected call of DeleteNotificationWithContext. +func (mr *MockBudgetsAPIMockRecorder) DeleteNotificationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteNotificationWithContext", reflect.TypeOf((*MockBudgetsAPI)(nil).DeleteNotificationWithContext), varargs...) +} + +// DeleteSubscriber mocks base method. +func (m *MockBudgetsAPI) DeleteSubscriber(arg0 *budgets.DeleteSubscriberInput) (*budgets.DeleteSubscriberOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteSubscriber", arg0) + ret0, _ := ret[0].(*budgets.DeleteSubscriberOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteSubscriber indicates an expected call of DeleteSubscriber. +func (mr *MockBudgetsAPIMockRecorder) DeleteSubscriber(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSubscriber", reflect.TypeOf((*MockBudgetsAPI)(nil).DeleteSubscriber), arg0) +} + +// DeleteSubscriberRequest mocks base method. +func (m *MockBudgetsAPI) DeleteSubscriberRequest(arg0 *budgets.DeleteSubscriberInput) (*request.Request, *budgets.DeleteSubscriberOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteSubscriberRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*budgets.DeleteSubscriberOutput) + return ret0, ret1 +} + +// DeleteSubscriberRequest indicates an expected call of DeleteSubscriberRequest. +func (mr *MockBudgetsAPIMockRecorder) DeleteSubscriberRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSubscriberRequest", reflect.TypeOf((*MockBudgetsAPI)(nil).DeleteSubscriberRequest), arg0) +} + +// DeleteSubscriberWithContext mocks base method. +func (m *MockBudgetsAPI) DeleteSubscriberWithContext(arg0 aws.Context, arg1 *budgets.DeleteSubscriberInput, arg2 ...request.Option) (*budgets.DeleteSubscriberOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteSubscriberWithContext", varargs...) + ret0, _ := ret[0].(*budgets.DeleteSubscriberOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteSubscriberWithContext indicates an expected call of DeleteSubscriberWithContext. +func (mr *MockBudgetsAPIMockRecorder) DeleteSubscriberWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSubscriberWithContext", reflect.TypeOf((*MockBudgetsAPI)(nil).DeleteSubscriberWithContext), varargs...) +} + +// DescribeBudget mocks base method. +func (m *MockBudgetsAPI) DescribeBudget(arg0 *budgets.DescribeBudgetInput) (*budgets.DescribeBudgetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeBudget", arg0) + ret0, _ := ret[0].(*budgets.DescribeBudgetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeBudget indicates an expected call of DescribeBudget. +func (mr *MockBudgetsAPIMockRecorder) DescribeBudget(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBudget", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeBudget), arg0) +} + +// DescribeBudgetAction mocks base method. +func (m *MockBudgetsAPI) DescribeBudgetAction(arg0 *budgets.DescribeBudgetActionInput) (*budgets.DescribeBudgetActionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeBudgetAction", arg0) + ret0, _ := ret[0].(*budgets.DescribeBudgetActionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeBudgetAction indicates an expected call of DescribeBudgetAction. +func (mr *MockBudgetsAPIMockRecorder) DescribeBudgetAction(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBudgetAction", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeBudgetAction), arg0) +} + +// DescribeBudgetActionHistories mocks base method. +func (m *MockBudgetsAPI) DescribeBudgetActionHistories(arg0 *budgets.DescribeBudgetActionHistoriesInput) (*budgets.DescribeBudgetActionHistoriesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeBudgetActionHistories", arg0) + ret0, _ := ret[0].(*budgets.DescribeBudgetActionHistoriesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeBudgetActionHistories indicates an expected call of DescribeBudgetActionHistories. +func (mr *MockBudgetsAPIMockRecorder) DescribeBudgetActionHistories(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBudgetActionHistories", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeBudgetActionHistories), arg0) +} + +// DescribeBudgetActionHistoriesPages mocks base method. +func (m *MockBudgetsAPI) DescribeBudgetActionHistoriesPages(arg0 *budgets.DescribeBudgetActionHistoriesInput, arg1 func(*budgets.DescribeBudgetActionHistoriesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeBudgetActionHistoriesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeBudgetActionHistoriesPages indicates an expected call of DescribeBudgetActionHistoriesPages. +func (mr *MockBudgetsAPIMockRecorder) DescribeBudgetActionHistoriesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBudgetActionHistoriesPages", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeBudgetActionHistoriesPages), arg0, arg1) +} + +// DescribeBudgetActionHistoriesPagesWithContext mocks base method. +func (m *MockBudgetsAPI) DescribeBudgetActionHistoriesPagesWithContext(arg0 aws.Context, arg1 *budgets.DescribeBudgetActionHistoriesInput, arg2 func(*budgets.DescribeBudgetActionHistoriesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeBudgetActionHistoriesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeBudgetActionHistoriesPagesWithContext indicates an expected call of DescribeBudgetActionHistoriesPagesWithContext. +func (mr *MockBudgetsAPIMockRecorder) DescribeBudgetActionHistoriesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBudgetActionHistoriesPagesWithContext", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeBudgetActionHistoriesPagesWithContext), varargs...) +} + +// DescribeBudgetActionHistoriesRequest mocks base method. +func (m *MockBudgetsAPI) DescribeBudgetActionHistoriesRequest(arg0 *budgets.DescribeBudgetActionHistoriesInput) (*request.Request, *budgets.DescribeBudgetActionHistoriesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeBudgetActionHistoriesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*budgets.DescribeBudgetActionHistoriesOutput) + return ret0, ret1 +} + +// DescribeBudgetActionHistoriesRequest indicates an expected call of DescribeBudgetActionHistoriesRequest. +func (mr *MockBudgetsAPIMockRecorder) DescribeBudgetActionHistoriesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBudgetActionHistoriesRequest", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeBudgetActionHistoriesRequest), arg0) +} + +// DescribeBudgetActionHistoriesWithContext mocks base method. +func (m *MockBudgetsAPI) DescribeBudgetActionHistoriesWithContext(arg0 aws.Context, arg1 *budgets.DescribeBudgetActionHistoriesInput, arg2 ...request.Option) (*budgets.DescribeBudgetActionHistoriesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeBudgetActionHistoriesWithContext", varargs...) + ret0, _ := ret[0].(*budgets.DescribeBudgetActionHistoriesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeBudgetActionHistoriesWithContext indicates an expected call of DescribeBudgetActionHistoriesWithContext. +func (mr *MockBudgetsAPIMockRecorder) DescribeBudgetActionHistoriesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBudgetActionHistoriesWithContext", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeBudgetActionHistoriesWithContext), varargs...) +} + +// DescribeBudgetActionRequest mocks base method. +func (m *MockBudgetsAPI) DescribeBudgetActionRequest(arg0 *budgets.DescribeBudgetActionInput) (*request.Request, *budgets.DescribeBudgetActionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeBudgetActionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*budgets.DescribeBudgetActionOutput) + return ret0, ret1 +} + +// DescribeBudgetActionRequest indicates an expected call of DescribeBudgetActionRequest. +func (mr *MockBudgetsAPIMockRecorder) DescribeBudgetActionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBudgetActionRequest", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeBudgetActionRequest), arg0) +} + +// DescribeBudgetActionWithContext mocks base method. +func (m *MockBudgetsAPI) DescribeBudgetActionWithContext(arg0 aws.Context, arg1 *budgets.DescribeBudgetActionInput, arg2 ...request.Option) (*budgets.DescribeBudgetActionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeBudgetActionWithContext", varargs...) + ret0, _ := ret[0].(*budgets.DescribeBudgetActionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeBudgetActionWithContext indicates an expected call of DescribeBudgetActionWithContext. +func (mr *MockBudgetsAPIMockRecorder) DescribeBudgetActionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBudgetActionWithContext", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeBudgetActionWithContext), varargs...) +} + +// DescribeBudgetActionsForAccount mocks base method. +func (m *MockBudgetsAPI) DescribeBudgetActionsForAccount(arg0 *budgets.DescribeBudgetActionsForAccountInput) (*budgets.DescribeBudgetActionsForAccountOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeBudgetActionsForAccount", arg0) + ret0, _ := ret[0].(*budgets.DescribeBudgetActionsForAccountOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeBudgetActionsForAccount indicates an expected call of DescribeBudgetActionsForAccount. +func (mr *MockBudgetsAPIMockRecorder) DescribeBudgetActionsForAccount(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBudgetActionsForAccount", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeBudgetActionsForAccount), arg0) +} + +// DescribeBudgetActionsForAccountPages mocks base method. +func (m *MockBudgetsAPI) DescribeBudgetActionsForAccountPages(arg0 *budgets.DescribeBudgetActionsForAccountInput, arg1 func(*budgets.DescribeBudgetActionsForAccountOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeBudgetActionsForAccountPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeBudgetActionsForAccountPages indicates an expected call of DescribeBudgetActionsForAccountPages. +func (mr *MockBudgetsAPIMockRecorder) DescribeBudgetActionsForAccountPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBudgetActionsForAccountPages", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeBudgetActionsForAccountPages), arg0, arg1) +} + +// DescribeBudgetActionsForAccountPagesWithContext mocks base method. +func (m *MockBudgetsAPI) DescribeBudgetActionsForAccountPagesWithContext(arg0 aws.Context, arg1 *budgets.DescribeBudgetActionsForAccountInput, arg2 func(*budgets.DescribeBudgetActionsForAccountOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeBudgetActionsForAccountPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeBudgetActionsForAccountPagesWithContext indicates an expected call of DescribeBudgetActionsForAccountPagesWithContext. +func (mr *MockBudgetsAPIMockRecorder) DescribeBudgetActionsForAccountPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBudgetActionsForAccountPagesWithContext", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeBudgetActionsForAccountPagesWithContext), varargs...) +} + +// DescribeBudgetActionsForAccountRequest mocks base method. +func (m *MockBudgetsAPI) DescribeBudgetActionsForAccountRequest(arg0 *budgets.DescribeBudgetActionsForAccountInput) (*request.Request, *budgets.DescribeBudgetActionsForAccountOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeBudgetActionsForAccountRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*budgets.DescribeBudgetActionsForAccountOutput) + return ret0, ret1 +} + +// DescribeBudgetActionsForAccountRequest indicates an expected call of DescribeBudgetActionsForAccountRequest. +func (mr *MockBudgetsAPIMockRecorder) DescribeBudgetActionsForAccountRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBudgetActionsForAccountRequest", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeBudgetActionsForAccountRequest), arg0) +} + +// DescribeBudgetActionsForAccountWithContext mocks base method. +func (m *MockBudgetsAPI) DescribeBudgetActionsForAccountWithContext(arg0 aws.Context, arg1 *budgets.DescribeBudgetActionsForAccountInput, arg2 ...request.Option) (*budgets.DescribeBudgetActionsForAccountOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeBudgetActionsForAccountWithContext", varargs...) + ret0, _ := ret[0].(*budgets.DescribeBudgetActionsForAccountOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeBudgetActionsForAccountWithContext indicates an expected call of DescribeBudgetActionsForAccountWithContext. +func (mr *MockBudgetsAPIMockRecorder) DescribeBudgetActionsForAccountWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBudgetActionsForAccountWithContext", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeBudgetActionsForAccountWithContext), varargs...) +} + +// DescribeBudgetActionsForBudget mocks base method. +func (m *MockBudgetsAPI) DescribeBudgetActionsForBudget(arg0 *budgets.DescribeBudgetActionsForBudgetInput) (*budgets.DescribeBudgetActionsForBudgetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeBudgetActionsForBudget", arg0) + ret0, _ := ret[0].(*budgets.DescribeBudgetActionsForBudgetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeBudgetActionsForBudget indicates an expected call of DescribeBudgetActionsForBudget. +func (mr *MockBudgetsAPIMockRecorder) DescribeBudgetActionsForBudget(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBudgetActionsForBudget", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeBudgetActionsForBudget), arg0) +} + +// DescribeBudgetActionsForBudgetPages mocks base method. +func (m *MockBudgetsAPI) DescribeBudgetActionsForBudgetPages(arg0 *budgets.DescribeBudgetActionsForBudgetInput, arg1 func(*budgets.DescribeBudgetActionsForBudgetOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeBudgetActionsForBudgetPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeBudgetActionsForBudgetPages indicates an expected call of DescribeBudgetActionsForBudgetPages. +func (mr *MockBudgetsAPIMockRecorder) DescribeBudgetActionsForBudgetPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBudgetActionsForBudgetPages", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeBudgetActionsForBudgetPages), arg0, arg1) +} + +// DescribeBudgetActionsForBudgetPagesWithContext mocks base method. +func (m *MockBudgetsAPI) DescribeBudgetActionsForBudgetPagesWithContext(arg0 aws.Context, arg1 *budgets.DescribeBudgetActionsForBudgetInput, arg2 func(*budgets.DescribeBudgetActionsForBudgetOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeBudgetActionsForBudgetPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeBudgetActionsForBudgetPagesWithContext indicates an expected call of DescribeBudgetActionsForBudgetPagesWithContext. +func (mr *MockBudgetsAPIMockRecorder) DescribeBudgetActionsForBudgetPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBudgetActionsForBudgetPagesWithContext", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeBudgetActionsForBudgetPagesWithContext), varargs...) +} + +// DescribeBudgetActionsForBudgetRequest mocks base method. +func (m *MockBudgetsAPI) DescribeBudgetActionsForBudgetRequest(arg0 *budgets.DescribeBudgetActionsForBudgetInput) (*request.Request, *budgets.DescribeBudgetActionsForBudgetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeBudgetActionsForBudgetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*budgets.DescribeBudgetActionsForBudgetOutput) + return ret0, ret1 +} + +// DescribeBudgetActionsForBudgetRequest indicates an expected call of DescribeBudgetActionsForBudgetRequest. +func (mr *MockBudgetsAPIMockRecorder) DescribeBudgetActionsForBudgetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBudgetActionsForBudgetRequest", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeBudgetActionsForBudgetRequest), arg0) +} + +// DescribeBudgetActionsForBudgetWithContext mocks base method. +func (m *MockBudgetsAPI) DescribeBudgetActionsForBudgetWithContext(arg0 aws.Context, arg1 *budgets.DescribeBudgetActionsForBudgetInput, arg2 ...request.Option) (*budgets.DescribeBudgetActionsForBudgetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeBudgetActionsForBudgetWithContext", varargs...) + ret0, _ := ret[0].(*budgets.DescribeBudgetActionsForBudgetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeBudgetActionsForBudgetWithContext indicates an expected call of DescribeBudgetActionsForBudgetWithContext. +func (mr *MockBudgetsAPIMockRecorder) DescribeBudgetActionsForBudgetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBudgetActionsForBudgetWithContext", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeBudgetActionsForBudgetWithContext), varargs...) +} + +// DescribeBudgetNotificationsForAccount mocks base method. +func (m *MockBudgetsAPI) DescribeBudgetNotificationsForAccount(arg0 *budgets.DescribeBudgetNotificationsForAccountInput) (*budgets.DescribeBudgetNotificationsForAccountOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeBudgetNotificationsForAccount", arg0) + ret0, _ := ret[0].(*budgets.DescribeBudgetNotificationsForAccountOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeBudgetNotificationsForAccount indicates an expected call of DescribeBudgetNotificationsForAccount. +func (mr *MockBudgetsAPIMockRecorder) DescribeBudgetNotificationsForAccount(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBudgetNotificationsForAccount", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeBudgetNotificationsForAccount), arg0) +} + +// DescribeBudgetNotificationsForAccountPages mocks base method. +func (m *MockBudgetsAPI) DescribeBudgetNotificationsForAccountPages(arg0 *budgets.DescribeBudgetNotificationsForAccountInput, arg1 func(*budgets.DescribeBudgetNotificationsForAccountOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeBudgetNotificationsForAccountPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeBudgetNotificationsForAccountPages indicates an expected call of DescribeBudgetNotificationsForAccountPages. +func (mr *MockBudgetsAPIMockRecorder) DescribeBudgetNotificationsForAccountPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBudgetNotificationsForAccountPages", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeBudgetNotificationsForAccountPages), arg0, arg1) +} + +// DescribeBudgetNotificationsForAccountPagesWithContext mocks base method. +func (m *MockBudgetsAPI) DescribeBudgetNotificationsForAccountPagesWithContext(arg0 aws.Context, arg1 *budgets.DescribeBudgetNotificationsForAccountInput, arg2 func(*budgets.DescribeBudgetNotificationsForAccountOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeBudgetNotificationsForAccountPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeBudgetNotificationsForAccountPagesWithContext indicates an expected call of DescribeBudgetNotificationsForAccountPagesWithContext. +func (mr *MockBudgetsAPIMockRecorder) DescribeBudgetNotificationsForAccountPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBudgetNotificationsForAccountPagesWithContext", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeBudgetNotificationsForAccountPagesWithContext), varargs...) +} + +// DescribeBudgetNotificationsForAccountRequest mocks base method. +func (m *MockBudgetsAPI) DescribeBudgetNotificationsForAccountRequest(arg0 *budgets.DescribeBudgetNotificationsForAccountInput) (*request.Request, *budgets.DescribeBudgetNotificationsForAccountOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeBudgetNotificationsForAccountRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*budgets.DescribeBudgetNotificationsForAccountOutput) + return ret0, ret1 +} + +// DescribeBudgetNotificationsForAccountRequest indicates an expected call of DescribeBudgetNotificationsForAccountRequest. +func (mr *MockBudgetsAPIMockRecorder) DescribeBudgetNotificationsForAccountRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBudgetNotificationsForAccountRequest", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeBudgetNotificationsForAccountRequest), arg0) +} + +// DescribeBudgetNotificationsForAccountWithContext mocks base method. +func (m *MockBudgetsAPI) DescribeBudgetNotificationsForAccountWithContext(arg0 aws.Context, arg1 *budgets.DescribeBudgetNotificationsForAccountInput, arg2 ...request.Option) (*budgets.DescribeBudgetNotificationsForAccountOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeBudgetNotificationsForAccountWithContext", varargs...) + ret0, _ := ret[0].(*budgets.DescribeBudgetNotificationsForAccountOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeBudgetNotificationsForAccountWithContext indicates an expected call of DescribeBudgetNotificationsForAccountWithContext. +func (mr *MockBudgetsAPIMockRecorder) DescribeBudgetNotificationsForAccountWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBudgetNotificationsForAccountWithContext", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeBudgetNotificationsForAccountWithContext), varargs...) +} + +// DescribeBudgetPerformanceHistory mocks base method. +func (m *MockBudgetsAPI) DescribeBudgetPerformanceHistory(arg0 *budgets.DescribeBudgetPerformanceHistoryInput) (*budgets.DescribeBudgetPerformanceHistoryOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeBudgetPerformanceHistory", arg0) + ret0, _ := ret[0].(*budgets.DescribeBudgetPerformanceHistoryOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeBudgetPerformanceHistory indicates an expected call of DescribeBudgetPerformanceHistory. +func (mr *MockBudgetsAPIMockRecorder) DescribeBudgetPerformanceHistory(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBudgetPerformanceHistory", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeBudgetPerformanceHistory), arg0) +} + +// DescribeBudgetPerformanceHistoryPages mocks base method. +func (m *MockBudgetsAPI) DescribeBudgetPerformanceHistoryPages(arg0 *budgets.DescribeBudgetPerformanceHistoryInput, arg1 func(*budgets.DescribeBudgetPerformanceHistoryOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeBudgetPerformanceHistoryPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeBudgetPerformanceHistoryPages indicates an expected call of DescribeBudgetPerformanceHistoryPages. +func (mr *MockBudgetsAPIMockRecorder) DescribeBudgetPerformanceHistoryPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBudgetPerformanceHistoryPages", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeBudgetPerformanceHistoryPages), arg0, arg1) +} + +// DescribeBudgetPerformanceHistoryPagesWithContext mocks base method. +func (m *MockBudgetsAPI) DescribeBudgetPerformanceHistoryPagesWithContext(arg0 aws.Context, arg1 *budgets.DescribeBudgetPerformanceHistoryInput, arg2 func(*budgets.DescribeBudgetPerformanceHistoryOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeBudgetPerformanceHistoryPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeBudgetPerformanceHistoryPagesWithContext indicates an expected call of DescribeBudgetPerformanceHistoryPagesWithContext. +func (mr *MockBudgetsAPIMockRecorder) DescribeBudgetPerformanceHistoryPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBudgetPerformanceHistoryPagesWithContext", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeBudgetPerformanceHistoryPagesWithContext), varargs...) +} + +// DescribeBudgetPerformanceHistoryRequest mocks base method. +func (m *MockBudgetsAPI) DescribeBudgetPerformanceHistoryRequest(arg0 *budgets.DescribeBudgetPerformanceHistoryInput) (*request.Request, *budgets.DescribeBudgetPerformanceHistoryOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeBudgetPerformanceHistoryRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*budgets.DescribeBudgetPerformanceHistoryOutput) + return ret0, ret1 +} + +// DescribeBudgetPerformanceHistoryRequest indicates an expected call of DescribeBudgetPerformanceHistoryRequest. +func (mr *MockBudgetsAPIMockRecorder) DescribeBudgetPerformanceHistoryRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBudgetPerformanceHistoryRequest", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeBudgetPerformanceHistoryRequest), arg0) +} + +// DescribeBudgetPerformanceHistoryWithContext mocks base method. +func (m *MockBudgetsAPI) DescribeBudgetPerformanceHistoryWithContext(arg0 aws.Context, arg1 *budgets.DescribeBudgetPerformanceHistoryInput, arg2 ...request.Option) (*budgets.DescribeBudgetPerformanceHistoryOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeBudgetPerformanceHistoryWithContext", varargs...) + ret0, _ := ret[0].(*budgets.DescribeBudgetPerformanceHistoryOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeBudgetPerformanceHistoryWithContext indicates an expected call of DescribeBudgetPerformanceHistoryWithContext. +func (mr *MockBudgetsAPIMockRecorder) DescribeBudgetPerformanceHistoryWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBudgetPerformanceHistoryWithContext", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeBudgetPerformanceHistoryWithContext), varargs...) +} + +// DescribeBudgetRequest mocks base method. +func (m *MockBudgetsAPI) DescribeBudgetRequest(arg0 *budgets.DescribeBudgetInput) (*request.Request, *budgets.DescribeBudgetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeBudgetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*budgets.DescribeBudgetOutput) + return ret0, ret1 +} + +// DescribeBudgetRequest indicates an expected call of DescribeBudgetRequest. +func (mr *MockBudgetsAPIMockRecorder) DescribeBudgetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBudgetRequest", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeBudgetRequest), arg0) +} + +// DescribeBudgetWithContext mocks base method. +func (m *MockBudgetsAPI) DescribeBudgetWithContext(arg0 aws.Context, arg1 *budgets.DescribeBudgetInput, arg2 ...request.Option) (*budgets.DescribeBudgetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeBudgetWithContext", varargs...) + ret0, _ := ret[0].(*budgets.DescribeBudgetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeBudgetWithContext indicates an expected call of DescribeBudgetWithContext. +func (mr *MockBudgetsAPIMockRecorder) DescribeBudgetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBudgetWithContext", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeBudgetWithContext), varargs...) +} + +// DescribeBudgets mocks base method. +func (m *MockBudgetsAPI) DescribeBudgets(arg0 *budgets.DescribeBudgetsInput) (*budgets.DescribeBudgetsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeBudgets", arg0) + ret0, _ := ret[0].(*budgets.DescribeBudgetsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeBudgets indicates an expected call of DescribeBudgets. +func (mr *MockBudgetsAPIMockRecorder) DescribeBudgets(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBudgets", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeBudgets), arg0) +} + +// DescribeBudgetsPages mocks base method. +func (m *MockBudgetsAPI) DescribeBudgetsPages(arg0 *budgets.DescribeBudgetsInput, arg1 func(*budgets.DescribeBudgetsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeBudgetsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeBudgetsPages indicates an expected call of DescribeBudgetsPages. +func (mr *MockBudgetsAPIMockRecorder) DescribeBudgetsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBudgetsPages", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeBudgetsPages), arg0, arg1) +} + +// DescribeBudgetsPagesWithContext mocks base method. +func (m *MockBudgetsAPI) DescribeBudgetsPagesWithContext(arg0 aws.Context, arg1 *budgets.DescribeBudgetsInput, arg2 func(*budgets.DescribeBudgetsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeBudgetsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeBudgetsPagesWithContext indicates an expected call of DescribeBudgetsPagesWithContext. +func (mr *MockBudgetsAPIMockRecorder) DescribeBudgetsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBudgetsPagesWithContext", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeBudgetsPagesWithContext), varargs...) +} + +// DescribeBudgetsRequest mocks base method. +func (m *MockBudgetsAPI) DescribeBudgetsRequest(arg0 *budgets.DescribeBudgetsInput) (*request.Request, *budgets.DescribeBudgetsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeBudgetsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*budgets.DescribeBudgetsOutput) + return ret0, ret1 +} + +// DescribeBudgetsRequest indicates an expected call of DescribeBudgetsRequest. +func (mr *MockBudgetsAPIMockRecorder) DescribeBudgetsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBudgetsRequest", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeBudgetsRequest), arg0) +} + +// DescribeBudgetsWithContext mocks base method. +func (m *MockBudgetsAPI) DescribeBudgetsWithContext(arg0 aws.Context, arg1 *budgets.DescribeBudgetsInput, arg2 ...request.Option) (*budgets.DescribeBudgetsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeBudgetsWithContext", varargs...) + ret0, _ := ret[0].(*budgets.DescribeBudgetsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeBudgetsWithContext indicates an expected call of DescribeBudgetsWithContext. +func (mr *MockBudgetsAPIMockRecorder) DescribeBudgetsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBudgetsWithContext", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeBudgetsWithContext), varargs...) +} + +// DescribeNotificationsForBudget mocks base method. +func (m *MockBudgetsAPI) DescribeNotificationsForBudget(arg0 *budgets.DescribeNotificationsForBudgetInput) (*budgets.DescribeNotificationsForBudgetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeNotificationsForBudget", arg0) + ret0, _ := ret[0].(*budgets.DescribeNotificationsForBudgetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeNotificationsForBudget indicates an expected call of DescribeNotificationsForBudget. +func (mr *MockBudgetsAPIMockRecorder) DescribeNotificationsForBudget(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeNotificationsForBudget", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeNotificationsForBudget), arg0) +} + +// DescribeNotificationsForBudgetPages mocks base method. +func (m *MockBudgetsAPI) DescribeNotificationsForBudgetPages(arg0 *budgets.DescribeNotificationsForBudgetInput, arg1 func(*budgets.DescribeNotificationsForBudgetOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeNotificationsForBudgetPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeNotificationsForBudgetPages indicates an expected call of DescribeNotificationsForBudgetPages. +func (mr *MockBudgetsAPIMockRecorder) DescribeNotificationsForBudgetPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeNotificationsForBudgetPages", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeNotificationsForBudgetPages), arg0, arg1) +} + +// DescribeNotificationsForBudgetPagesWithContext mocks base method. +func (m *MockBudgetsAPI) DescribeNotificationsForBudgetPagesWithContext(arg0 aws.Context, arg1 *budgets.DescribeNotificationsForBudgetInput, arg2 func(*budgets.DescribeNotificationsForBudgetOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeNotificationsForBudgetPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeNotificationsForBudgetPagesWithContext indicates an expected call of DescribeNotificationsForBudgetPagesWithContext. +func (mr *MockBudgetsAPIMockRecorder) DescribeNotificationsForBudgetPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeNotificationsForBudgetPagesWithContext", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeNotificationsForBudgetPagesWithContext), varargs...) +} + +// DescribeNotificationsForBudgetRequest mocks base method. +func (m *MockBudgetsAPI) DescribeNotificationsForBudgetRequest(arg0 *budgets.DescribeNotificationsForBudgetInput) (*request.Request, *budgets.DescribeNotificationsForBudgetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeNotificationsForBudgetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*budgets.DescribeNotificationsForBudgetOutput) + return ret0, ret1 +} + +// DescribeNotificationsForBudgetRequest indicates an expected call of DescribeNotificationsForBudgetRequest. +func (mr *MockBudgetsAPIMockRecorder) DescribeNotificationsForBudgetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeNotificationsForBudgetRequest", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeNotificationsForBudgetRequest), arg0) +} + +// DescribeNotificationsForBudgetWithContext mocks base method. +func (m *MockBudgetsAPI) DescribeNotificationsForBudgetWithContext(arg0 aws.Context, arg1 *budgets.DescribeNotificationsForBudgetInput, arg2 ...request.Option) (*budgets.DescribeNotificationsForBudgetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeNotificationsForBudgetWithContext", varargs...) + ret0, _ := ret[0].(*budgets.DescribeNotificationsForBudgetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeNotificationsForBudgetWithContext indicates an expected call of DescribeNotificationsForBudgetWithContext. +func (mr *MockBudgetsAPIMockRecorder) DescribeNotificationsForBudgetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeNotificationsForBudgetWithContext", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeNotificationsForBudgetWithContext), varargs...) +} + +// DescribeSubscribersForNotification mocks base method. +func (m *MockBudgetsAPI) DescribeSubscribersForNotification(arg0 *budgets.DescribeSubscribersForNotificationInput) (*budgets.DescribeSubscribersForNotificationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeSubscribersForNotification", arg0) + ret0, _ := ret[0].(*budgets.DescribeSubscribersForNotificationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeSubscribersForNotification indicates an expected call of DescribeSubscribersForNotification. +func (mr *MockBudgetsAPIMockRecorder) DescribeSubscribersForNotification(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeSubscribersForNotification", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeSubscribersForNotification), arg0) +} + +// DescribeSubscribersForNotificationPages mocks base method. +func (m *MockBudgetsAPI) DescribeSubscribersForNotificationPages(arg0 *budgets.DescribeSubscribersForNotificationInput, arg1 func(*budgets.DescribeSubscribersForNotificationOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeSubscribersForNotificationPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeSubscribersForNotificationPages indicates an expected call of DescribeSubscribersForNotificationPages. +func (mr *MockBudgetsAPIMockRecorder) DescribeSubscribersForNotificationPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeSubscribersForNotificationPages", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeSubscribersForNotificationPages), arg0, arg1) +} + +// DescribeSubscribersForNotificationPagesWithContext mocks base method. +func (m *MockBudgetsAPI) DescribeSubscribersForNotificationPagesWithContext(arg0 aws.Context, arg1 *budgets.DescribeSubscribersForNotificationInput, arg2 func(*budgets.DescribeSubscribersForNotificationOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeSubscribersForNotificationPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeSubscribersForNotificationPagesWithContext indicates an expected call of DescribeSubscribersForNotificationPagesWithContext. +func (mr *MockBudgetsAPIMockRecorder) DescribeSubscribersForNotificationPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeSubscribersForNotificationPagesWithContext", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeSubscribersForNotificationPagesWithContext), varargs...) +} + +// DescribeSubscribersForNotificationRequest mocks base method. +func (m *MockBudgetsAPI) DescribeSubscribersForNotificationRequest(arg0 *budgets.DescribeSubscribersForNotificationInput) (*request.Request, *budgets.DescribeSubscribersForNotificationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeSubscribersForNotificationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*budgets.DescribeSubscribersForNotificationOutput) + return ret0, ret1 +} + +// DescribeSubscribersForNotificationRequest indicates an expected call of DescribeSubscribersForNotificationRequest. +func (mr *MockBudgetsAPIMockRecorder) DescribeSubscribersForNotificationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeSubscribersForNotificationRequest", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeSubscribersForNotificationRequest), arg0) +} + +// DescribeSubscribersForNotificationWithContext mocks base method. +func (m *MockBudgetsAPI) DescribeSubscribersForNotificationWithContext(arg0 aws.Context, arg1 *budgets.DescribeSubscribersForNotificationInput, arg2 ...request.Option) (*budgets.DescribeSubscribersForNotificationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeSubscribersForNotificationWithContext", varargs...) + ret0, _ := ret[0].(*budgets.DescribeSubscribersForNotificationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeSubscribersForNotificationWithContext indicates an expected call of DescribeSubscribersForNotificationWithContext. +func (mr *MockBudgetsAPIMockRecorder) DescribeSubscribersForNotificationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeSubscribersForNotificationWithContext", reflect.TypeOf((*MockBudgetsAPI)(nil).DescribeSubscribersForNotificationWithContext), varargs...) +} + +// ExecuteBudgetAction mocks base method. +func (m *MockBudgetsAPI) ExecuteBudgetAction(arg0 *budgets.ExecuteBudgetActionInput) (*budgets.ExecuteBudgetActionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExecuteBudgetAction", arg0) + ret0, _ := ret[0].(*budgets.ExecuteBudgetActionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExecuteBudgetAction indicates an expected call of ExecuteBudgetAction. +func (mr *MockBudgetsAPIMockRecorder) ExecuteBudgetAction(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecuteBudgetAction", reflect.TypeOf((*MockBudgetsAPI)(nil).ExecuteBudgetAction), arg0) +} + +// ExecuteBudgetActionRequest mocks base method. +func (m *MockBudgetsAPI) ExecuteBudgetActionRequest(arg0 *budgets.ExecuteBudgetActionInput) (*request.Request, *budgets.ExecuteBudgetActionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ExecuteBudgetActionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*budgets.ExecuteBudgetActionOutput) + return ret0, ret1 +} + +// ExecuteBudgetActionRequest indicates an expected call of ExecuteBudgetActionRequest. +func (mr *MockBudgetsAPIMockRecorder) ExecuteBudgetActionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecuteBudgetActionRequest", reflect.TypeOf((*MockBudgetsAPI)(nil).ExecuteBudgetActionRequest), arg0) +} + +// ExecuteBudgetActionWithContext mocks base method. +func (m *MockBudgetsAPI) ExecuteBudgetActionWithContext(arg0 aws.Context, arg1 *budgets.ExecuteBudgetActionInput, arg2 ...request.Option) (*budgets.ExecuteBudgetActionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ExecuteBudgetActionWithContext", varargs...) + ret0, _ := ret[0].(*budgets.ExecuteBudgetActionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ExecuteBudgetActionWithContext indicates an expected call of ExecuteBudgetActionWithContext. +func (mr *MockBudgetsAPIMockRecorder) ExecuteBudgetActionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecuteBudgetActionWithContext", reflect.TypeOf((*MockBudgetsAPI)(nil).ExecuteBudgetActionWithContext), varargs...) +} + +// ListTagsForResource mocks base method. +func (m *MockBudgetsAPI) ListTagsForResource(arg0 *budgets.ListTagsForResourceInput) (*budgets.ListTagsForResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTagsForResource", arg0) + ret0, _ := ret[0].(*budgets.ListTagsForResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTagsForResource indicates an expected call of ListTagsForResource. +func (mr *MockBudgetsAPIMockRecorder) ListTagsForResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsForResource", reflect.TypeOf((*MockBudgetsAPI)(nil).ListTagsForResource), arg0) +} + +// ListTagsForResourceRequest mocks base method. +func (m *MockBudgetsAPI) ListTagsForResourceRequest(arg0 *budgets.ListTagsForResourceInput) (*request.Request, *budgets.ListTagsForResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTagsForResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*budgets.ListTagsForResourceOutput) + return ret0, ret1 +} + +// ListTagsForResourceRequest indicates an expected call of ListTagsForResourceRequest. +func (mr *MockBudgetsAPIMockRecorder) ListTagsForResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsForResourceRequest", reflect.TypeOf((*MockBudgetsAPI)(nil).ListTagsForResourceRequest), arg0) +} + +// ListTagsForResourceWithContext mocks base method. +func (m *MockBudgetsAPI) ListTagsForResourceWithContext(arg0 aws.Context, arg1 *budgets.ListTagsForResourceInput, arg2 ...request.Option) (*budgets.ListTagsForResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTagsForResourceWithContext", varargs...) + ret0, _ := ret[0].(*budgets.ListTagsForResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTagsForResourceWithContext indicates an expected call of ListTagsForResourceWithContext. +func (mr *MockBudgetsAPIMockRecorder) ListTagsForResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsForResourceWithContext", reflect.TypeOf((*MockBudgetsAPI)(nil).ListTagsForResourceWithContext), varargs...) +} + +// TagResource mocks base method. +func (m *MockBudgetsAPI) TagResource(arg0 *budgets.TagResourceInput) (*budgets.TagResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagResource", arg0) + ret0, _ := ret[0].(*budgets.TagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagResource indicates an expected call of TagResource. +func (mr *MockBudgetsAPIMockRecorder) TagResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagResource", reflect.TypeOf((*MockBudgetsAPI)(nil).TagResource), arg0) +} + +// TagResourceRequest mocks base method. +func (m *MockBudgetsAPI) TagResourceRequest(arg0 *budgets.TagResourceInput) (*request.Request, *budgets.TagResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*budgets.TagResourceOutput) + return ret0, ret1 +} + +// TagResourceRequest indicates an expected call of TagResourceRequest. +func (mr *MockBudgetsAPIMockRecorder) TagResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagResourceRequest", reflect.TypeOf((*MockBudgetsAPI)(nil).TagResourceRequest), arg0) +} + +// TagResourceWithContext mocks base method. +func (m *MockBudgetsAPI) TagResourceWithContext(arg0 aws.Context, arg1 *budgets.TagResourceInput, arg2 ...request.Option) (*budgets.TagResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "TagResourceWithContext", varargs...) + ret0, _ := ret[0].(*budgets.TagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagResourceWithContext indicates an expected call of TagResourceWithContext. +func (mr *MockBudgetsAPIMockRecorder) TagResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagResourceWithContext", reflect.TypeOf((*MockBudgetsAPI)(nil).TagResourceWithContext), varargs...) +} + +// UntagResource mocks base method. +func (m *MockBudgetsAPI) UntagResource(arg0 *budgets.UntagResourceInput) (*budgets.UntagResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagResource", arg0) + ret0, _ := ret[0].(*budgets.UntagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagResource indicates an expected call of UntagResource. +func (mr *MockBudgetsAPIMockRecorder) UntagResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagResource", reflect.TypeOf((*MockBudgetsAPI)(nil).UntagResource), arg0) +} + +// UntagResourceRequest mocks base method. +func (m *MockBudgetsAPI) UntagResourceRequest(arg0 *budgets.UntagResourceInput) (*request.Request, *budgets.UntagResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*budgets.UntagResourceOutput) + return ret0, ret1 +} + +// UntagResourceRequest indicates an expected call of UntagResourceRequest. +func (mr *MockBudgetsAPIMockRecorder) UntagResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagResourceRequest", reflect.TypeOf((*MockBudgetsAPI)(nil).UntagResourceRequest), arg0) +} + +// UntagResourceWithContext mocks base method. +func (m *MockBudgetsAPI) UntagResourceWithContext(arg0 aws.Context, arg1 *budgets.UntagResourceInput, arg2 ...request.Option) (*budgets.UntagResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UntagResourceWithContext", varargs...) + ret0, _ := ret[0].(*budgets.UntagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagResourceWithContext indicates an expected call of UntagResourceWithContext. +func (mr *MockBudgetsAPIMockRecorder) UntagResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagResourceWithContext", reflect.TypeOf((*MockBudgetsAPI)(nil).UntagResourceWithContext), varargs...) +} + +// UpdateBudget mocks base method. +func (m *MockBudgetsAPI) UpdateBudget(arg0 *budgets.UpdateBudgetInput) (*budgets.UpdateBudgetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateBudget", arg0) + ret0, _ := ret[0].(*budgets.UpdateBudgetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateBudget indicates an expected call of UpdateBudget. +func (mr *MockBudgetsAPIMockRecorder) UpdateBudget(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateBudget", reflect.TypeOf((*MockBudgetsAPI)(nil).UpdateBudget), arg0) +} + +// UpdateBudgetAction mocks base method. +func (m *MockBudgetsAPI) UpdateBudgetAction(arg0 *budgets.UpdateBudgetActionInput) (*budgets.UpdateBudgetActionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateBudgetAction", arg0) + ret0, _ := ret[0].(*budgets.UpdateBudgetActionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateBudgetAction indicates an expected call of UpdateBudgetAction. +func (mr *MockBudgetsAPIMockRecorder) UpdateBudgetAction(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateBudgetAction", reflect.TypeOf((*MockBudgetsAPI)(nil).UpdateBudgetAction), arg0) +} + +// UpdateBudgetActionRequest mocks base method. +func (m *MockBudgetsAPI) UpdateBudgetActionRequest(arg0 *budgets.UpdateBudgetActionInput) (*request.Request, *budgets.UpdateBudgetActionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateBudgetActionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*budgets.UpdateBudgetActionOutput) + return ret0, ret1 +} + +// UpdateBudgetActionRequest indicates an expected call of UpdateBudgetActionRequest. +func (mr *MockBudgetsAPIMockRecorder) UpdateBudgetActionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateBudgetActionRequest", reflect.TypeOf((*MockBudgetsAPI)(nil).UpdateBudgetActionRequest), arg0) +} + +// UpdateBudgetActionWithContext mocks base method. +func (m *MockBudgetsAPI) UpdateBudgetActionWithContext(arg0 aws.Context, arg1 *budgets.UpdateBudgetActionInput, arg2 ...request.Option) (*budgets.UpdateBudgetActionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateBudgetActionWithContext", varargs...) + ret0, _ := ret[0].(*budgets.UpdateBudgetActionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateBudgetActionWithContext indicates an expected call of UpdateBudgetActionWithContext. +func (mr *MockBudgetsAPIMockRecorder) UpdateBudgetActionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateBudgetActionWithContext", reflect.TypeOf((*MockBudgetsAPI)(nil).UpdateBudgetActionWithContext), varargs...) +} + +// UpdateBudgetRequest mocks base method. +func (m *MockBudgetsAPI) UpdateBudgetRequest(arg0 *budgets.UpdateBudgetInput) (*request.Request, *budgets.UpdateBudgetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateBudgetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*budgets.UpdateBudgetOutput) + return ret0, ret1 +} + +// UpdateBudgetRequest indicates an expected call of UpdateBudgetRequest. +func (mr *MockBudgetsAPIMockRecorder) UpdateBudgetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateBudgetRequest", reflect.TypeOf((*MockBudgetsAPI)(nil).UpdateBudgetRequest), arg0) +} + +// UpdateBudgetWithContext mocks base method. +func (m *MockBudgetsAPI) UpdateBudgetWithContext(arg0 aws.Context, arg1 *budgets.UpdateBudgetInput, arg2 ...request.Option) (*budgets.UpdateBudgetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateBudgetWithContext", varargs...) + ret0, _ := ret[0].(*budgets.UpdateBudgetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateBudgetWithContext indicates an expected call of UpdateBudgetWithContext. +func (mr *MockBudgetsAPIMockRecorder) UpdateBudgetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateBudgetWithContext", reflect.TypeOf((*MockBudgetsAPI)(nil).UpdateBudgetWithContext), varargs...) +} + +// UpdateNotification mocks base method. +func (m *MockBudgetsAPI) UpdateNotification(arg0 *budgets.UpdateNotificationInput) (*budgets.UpdateNotificationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateNotification", arg0) + ret0, _ := ret[0].(*budgets.UpdateNotificationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateNotification indicates an expected call of UpdateNotification. +func (mr *MockBudgetsAPIMockRecorder) UpdateNotification(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateNotification", reflect.TypeOf((*MockBudgetsAPI)(nil).UpdateNotification), arg0) +} + +// UpdateNotificationRequest mocks base method. +func (m *MockBudgetsAPI) UpdateNotificationRequest(arg0 *budgets.UpdateNotificationInput) (*request.Request, *budgets.UpdateNotificationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateNotificationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*budgets.UpdateNotificationOutput) + return ret0, ret1 +} + +// UpdateNotificationRequest indicates an expected call of UpdateNotificationRequest. +func (mr *MockBudgetsAPIMockRecorder) UpdateNotificationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateNotificationRequest", reflect.TypeOf((*MockBudgetsAPI)(nil).UpdateNotificationRequest), arg0) +} + +// UpdateNotificationWithContext mocks base method. +func (m *MockBudgetsAPI) UpdateNotificationWithContext(arg0 aws.Context, arg1 *budgets.UpdateNotificationInput, arg2 ...request.Option) (*budgets.UpdateNotificationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateNotificationWithContext", varargs...) + ret0, _ := ret[0].(*budgets.UpdateNotificationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateNotificationWithContext indicates an expected call of UpdateNotificationWithContext. +func (mr *MockBudgetsAPIMockRecorder) UpdateNotificationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateNotificationWithContext", reflect.TypeOf((*MockBudgetsAPI)(nil).UpdateNotificationWithContext), varargs...) +} + +// UpdateSubscriber mocks base method. +func (m *MockBudgetsAPI) UpdateSubscriber(arg0 *budgets.UpdateSubscriberInput) (*budgets.UpdateSubscriberOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateSubscriber", arg0) + ret0, _ := ret[0].(*budgets.UpdateSubscriberOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateSubscriber indicates an expected call of UpdateSubscriber. +func (mr *MockBudgetsAPIMockRecorder) UpdateSubscriber(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSubscriber", reflect.TypeOf((*MockBudgetsAPI)(nil).UpdateSubscriber), arg0) +} + +// UpdateSubscriberRequest mocks base method. +func (m *MockBudgetsAPI) UpdateSubscriberRequest(arg0 *budgets.UpdateSubscriberInput) (*request.Request, *budgets.UpdateSubscriberOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateSubscriberRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*budgets.UpdateSubscriberOutput) + return ret0, ret1 +} + +// UpdateSubscriberRequest indicates an expected call of UpdateSubscriberRequest. +func (mr *MockBudgetsAPIMockRecorder) UpdateSubscriberRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSubscriberRequest", reflect.TypeOf((*MockBudgetsAPI)(nil).UpdateSubscriberRequest), arg0) +} + +// UpdateSubscriberWithContext mocks base method. +func (m *MockBudgetsAPI) UpdateSubscriberWithContext(arg0 aws.Context, arg1 *budgets.UpdateSubscriberInput, arg2 ...request.Option) (*budgets.UpdateSubscriberOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateSubscriberWithContext", varargs...) + ret0, _ := ret[0].(*budgets.UpdateSubscriberOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateSubscriberWithContext indicates an expected call of UpdateSubscriberWithContext. +func (mr *MockBudgetsAPIMockRecorder) UpdateSubscriberWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSubscriberWithContext", reflect.TypeOf((*MockBudgetsAPI)(nil).UpdateSubscriberWithContext), varargs...) +} diff --git a/resources/budgets_mock_test.go b/resources/budgets_mock_test.go new file mode 100644 index 00000000..d73db5ec --- /dev/null +++ b/resources/budgets_mock_test.go @@ -0,0 +1,4 @@ +//go:generate ../mocks/generate_mocks.sh budgets budgetsiface +package resources + +// Note: empty on purpose, this file exist purely to generate mocks for the IAM service From fb40de8e773e59a969c75717343a1fed4b12f65b Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 11 Sep 2024 16:40:31 -0600 Subject: [PATCH 465/617] fix(budgets-budget): fix resource name, deprecate old --- resources/budgets-budget.go | 112 ++++++++++++++++++++++++++++++++++++ resources/budgets.go | 98 ------------------------------- 2 files changed, 112 insertions(+), 98 deletions(-) create mode 100644 resources/budgets-budget.go delete mode 100644 resources/budgets.go diff --git a/resources/budgets-budget.go b/resources/budgets-budget.go new file mode 100644 index 00000000..8491f606 --- /dev/null +++ b/resources/budgets-budget.go @@ -0,0 +1,112 @@ +package resources + +import ( + "context" + + "github.com/gotidy/ptr" + + "github.com/aws/aws-sdk-go/service/budgets" + "github.com/aws/aws-sdk-go/service/budgets/budgetsiface" + "github.com/aws/aws-sdk-go/service/sts" + "github.com/aws/aws-sdk-go/service/sts/stsiface" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +const BudgetsBudgetResource = "BudgetsBudget" + +func init() { + registry.Register(®istry.Registration{ + Name: BudgetsBudgetResource, + Scope: nuke.Account, + Lister: &BudgetsBudgetLister{}, + DeprecatedAliases: []string{ + "Budget", + }, + }) +} + +type BudgetsBudgetLister struct { + mockSvc budgetsiface.BudgetsAPI + mockSTSSvc stsiface.STSAPI +} + +func (l *BudgetsBudgetLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + var resources []resource.Resource + var svc budgetsiface.BudgetsAPI + var stsSvc stsiface.STSAPI + + if l.mockSvc != nil { + svc = l.mockSvc + } else { + svc = budgets.New(opts.Session) + } + + if l.mockSTSSvc != nil { + stsSvc = l.mockSTSSvc + } else { + stsSvc = sts.New(opts.Session) + } + + // TODO: modify ListerOpts to include Account to reduce API calls + identityOutput, err := stsSvc.GetCallerIdentity(nil) + if err != nil { + return nil, err + } + accountID := identityOutput.Account + + params := &budgets.DescribeBudgetsInput{ + AccountId: accountID, + MaxResults: ptr.Int64(100), + } + + buds := make([]*budgets.Budget, 0) + err = svc.DescribeBudgetsPages(params, func(page *budgets.DescribeBudgetsOutput, lastPage bool) bool { + buds = append(buds, page.Budgets...) + return true + }) + + if err != nil { + return nil, err + } + + for _, bud := range buds { + resources = append(resources, &BudgetsBudget{ + svc: svc, + Name: bud.BudgetName, + BudgetType: bud.BudgetType, + AccountID: accountID, + }) + } + + return resources, nil +} + +type BudgetsBudget struct { + svc budgetsiface.BudgetsAPI + Name *string + BudgetType *string + AccountID *string +} + +func (r *BudgetsBudget) Remove(_ context.Context) error { + _, err := r.svc.DeleteBudget(&budgets.DeleteBudgetInput{ + AccountId: r.AccountID, + BudgetName: r.Name, + }) + + return err +} + +func (r *BudgetsBudget) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + +func (r *BudgetsBudget) String() string { + return *r.Name +} diff --git a/resources/budgets.go b/resources/budgets.go deleted file mode 100644 index d83349a5..00000000 --- a/resources/budgets.go +++ /dev/null @@ -1,98 +0,0 @@ -package resources - -import ( - "context" - "fmt" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/budgets" - "github.com/aws/aws-sdk-go/service/sts" - - "github.com/ekristen/libnuke/pkg/registry" - "github.com/ekristen/libnuke/pkg/resource" - "github.com/ekristen/libnuke/pkg/types" - - "github.com/ekristen/aws-nuke/v3/pkg/nuke" -) - -const BudgetResource = "Budget" - -func init() { - registry.Register(®istry.Registration{ - Name: BudgetResource, - Scope: nuke.Account, - Lister: &BudgetLister{}, - }) -} - -type BudgetLister struct{} - -func (l *BudgetLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { - opts := o.(*nuke.ListerOpts) - svc := budgets.New(opts.Session) - - // TODO: modify ListerOpts to include Account to reduce API calls - identityOutput, err := sts.New(opts.Session).GetCallerIdentity(nil) - if err != nil { - fmt.Printf("sts error: %s \n", err) - return nil, err - } - accountID := identityOutput.Account - - params := &budgets.DescribeBudgetsInput{ - AccountId: aws.String(*accountID), - MaxResults: aws.Int64(100), - } - - buds := make([]*budgets.Budget, 0) - err = svc.DescribeBudgetsPages(params, func(page *budgets.DescribeBudgetsOutput, lastPage bool) bool { - buds = append(buds, page.Budgets...) - return true - }) - - if err != nil { - return nil, err - } - - var resources []resource.Resource - for _, bud := range buds { - resources = append(resources, &Budget{ - svc: svc, - name: bud.BudgetName, - budgetType: bud.BudgetType, - accountID: accountID, - }) - } - - return resources, nil -} - -type Budget struct { - svc *budgets.Budgets - name *string - budgetType *string - accountID *string -} - -func (b *Budget) Remove(_ context.Context) error { - _, err := b.svc.DeleteBudget(&budgets.DeleteBudgetInput{ - AccountId: b.accountID, - BudgetName: b.name, - }) - - return err -} - -func (b *Budget) Properties() types.Properties { - properties := types.NewProperties() - - properties. - Set("Name", *b.name). - Set("BudgetType", *b.budgetType). - Set("AccountID", *b.accountID) - return properties -} - -func (b *Budget) String() string { - return *b.name -} From 4fc845ea6a3e82b6c5a3e2792f7879fbdc252fef Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 11 Sep 2024 16:40:43 -0600 Subject: [PATCH 466/617] test(budgets-budget): add test coverage --- resources/budgets-budget_mock_test.go | 129 ++++++++++++++++++++++++++ 1 file changed, 129 insertions(+) create mode 100644 resources/budgets-budget_mock_test.go diff --git a/resources/budgets-budget_mock_test.go b/resources/budgets-budget_mock_test.go new file mode 100644 index 00000000..c3b26a9d --- /dev/null +++ b/resources/budgets-budget_mock_test.go @@ -0,0 +1,129 @@ +package resources + +import ( + "context" + "testing" + + "github.com/golang/mock/gomock" + "github.com/gotidy/ptr" + "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/budgets" + "github.com/aws/aws-sdk-go/service/sts" + + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/v3/mocks/mock_budgetsiface" + "github.com/ekristen/aws-nuke/v3/mocks/mock_stsiface" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +func Test_Mock_BudgetsBudget_List(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockBudgets := mock_budgetsiface.NewMockBudgetsAPI(ctrl) + mockSts := mock_stsiface.NewMockSTSAPI(ctrl) + + mockBudgets.EXPECT().DescribeBudgetsPages(gomock.Any(), gomock.Any()).DoAndReturn( + func(input *budgets.DescribeBudgetsInput, fn func(*budgets.DescribeBudgetsOutput, bool) bool) error { + fn(&budgets.DescribeBudgetsOutput{ + Budgets: []*budgets.Budget{ + { + BudgetName: ptr.String("budget1"), + BudgetType: ptr.String("COST"), + BudgetLimit: &budgets.Spend{ + Amount: ptr.String("100"), + Unit: ptr.String("USD"), + }, + }, + }, + }, false) + fn(&budgets.DescribeBudgetsOutput{ + Budgets: []*budgets.Budget{ + { + BudgetName: ptr.String("budget2"), + BudgetType: ptr.String("COST"), + BudgetLimit: &budgets.Spend{ + Amount: ptr.String("200"), + Unit: ptr.String("USD"), + }, + }, + }, + }, true) + return nil + }) + + mockSts.EXPECT().GetCallerIdentity(gomock.Any()).Return(&sts.GetCallerIdentityOutput{ + Account: ptr.String("000000000000"), + Arn: ptr.String("arn:aws:sts::000000000000:assumed-role/role/role"), + UserId: ptr.String("000000000000"), + }, nil) + + lister := &BudgetsBudgetLister{ + mockSvc: mockBudgets, + mockSTSSvc: mockSts, + } + resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ + Region: &nuke.Region{ + Name: "us-east-2", + }, + Session: session.Must(session.NewSession()), + }) + a.Nil(err) + a.Len(resources, 2) + + expectedResources := []resource.Resource{ + &BudgetsBudget{ + svc: mockBudgets, + Name: ptr.String("budget1"), + BudgetType: ptr.String("COST"), + AccountID: ptr.String("000000000000"), + }, + &BudgetsBudget{ + svc: mockBudgets, + Name: ptr.String("budget2"), + BudgetType: ptr.String("COST"), + AccountID: ptr.String("000000000000"), + }, + } + + a.Equal(expectedResources, resources) +} + +func Test_Mock_Budget_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockBudgets := mock_budgetsiface.NewMockBudgetsAPI(ctrl) + + mockBudgets.EXPECT().DeleteBudget(gomock.Any()).Return(&budgets.DeleteBudgetOutput{}, nil) + + budget := &BudgetsBudget{ + svc: mockBudgets, + Name: ptr.String("budget1"), + } + + err := budget.Remove(context.TODO()) + a.Nil(err) +} + +func Test_Mock_Budget_Properties(t *testing.T) { + a := assert.New(t) + + budget := &BudgetsBudget{ + Name: ptr.String("budget1"), + BudgetType: ptr.String("COST"), + AccountID: ptr.String("000000000000"), + } + + properties := budget.Properties() + a.Equal("budget1", properties.Get("Name")) + a.Equal("COST", properties.Get("BudgetType")) + a.Equal("000000000000", properties.Get("AccountID")) + + a.Equal("budget1", budget.String()) +} From c5e10221d345aafd5ac150253b0ece5c136e2034 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 11 Sep 2024 16:54:15 -0600 Subject: [PATCH 467/617] feat(budgets-budget): add tags to properties for filtering with tests --- resources/budgets-budget.go | 15 ++++++++++++++- resources/budgets-budget_mock_test.go | 21 +++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/resources/budgets-budget.go b/resources/budgets-budget.go index 8491f606..75e70a42 100644 --- a/resources/budgets-budget.go +++ b/resources/budgets-budget.go @@ -2,8 +2,10 @@ package resources import ( "context" + "fmt" "github.com/gotidy/ptr" + "github.com/sirupsen/logrus" "github.com/aws/aws-sdk-go/service/budgets" "github.com/aws/aws-sdk-go/service/budgets/budgetsiface" @@ -70,17 +72,27 @@ func (l *BudgetsBudgetLister) List(_ context.Context, o interface{}) ([]resource buds = append(buds, page.Budgets...) return true }) - if err != nil { return nil, err } for _, bud := range buds { + var resourceTags []*budgets.ResourceTag + tags, tagsErr := svc.ListTagsForResource(&budgets.ListTagsForResourceInput{ + ResourceARN: ptr.String(fmt.Sprintf("arn:aws:budgets::%s:budget/%s", *accountID, *bud.BudgetName)), + }) + if tagsErr != nil { + logrus.WithError(tagsErr).Error("unable to get tags for budget") + } else { + resourceTags = tags.ResourceTags + } + resources = append(resources, &BudgetsBudget{ svc: svc, Name: bud.BudgetName, BudgetType: bud.BudgetType, AccountID: accountID, + Tags: resourceTags, }) } @@ -92,6 +104,7 @@ type BudgetsBudget struct { Name *string BudgetType *string AccountID *string + Tags []*budgets.ResourceTag } func (r *BudgetsBudget) Remove(_ context.Context) error { diff --git a/resources/budgets-budget_mock_test.go b/resources/budgets-budget_mock_test.go index c3b26a9d..6bf7b252 100644 --- a/resources/budgets-budget_mock_test.go +++ b/resources/budgets-budget_mock_test.go @@ -62,6 +62,21 @@ func Test_Mock_BudgetsBudget_List(t *testing.T) { UserId: ptr.String("000000000000"), }, nil) + mockBudgets.EXPECT().ListTagsForResource(&budgets.ListTagsForResourceInput{ + ResourceARN: ptr.String("arn:aws:budgets::000000000000:budget/budget1"), + }).Return(&budgets.ListTagsForResourceOutput{ + ResourceTags: []*budgets.ResourceTag{ + { + Key: ptr.String("key1"), + Value: ptr.String("value1"), + }, + }, + }, nil) + + mockBudgets.EXPECT().ListTagsForResource(&budgets.ListTagsForResourceInput{ + ResourceARN: ptr.String("arn:aws:budgets::000000000000:budget/budget2"), + }).Return(&budgets.ListTagsForResourceOutput{}, nil) + lister := &BudgetsBudgetLister{ mockSvc: mockBudgets, mockSTSSvc: mockSts, @@ -81,6 +96,12 @@ func Test_Mock_BudgetsBudget_List(t *testing.T) { Name: ptr.String("budget1"), BudgetType: ptr.String("COST"), AccountID: ptr.String("000000000000"), + Tags: []*budgets.ResourceTag{ + { + Key: ptr.String("key1"), + Value: ptr.String("value1"), + }, + }, }, &BudgetsBudget{ svc: mockBudgets, From f317654343e2e7d32c8200f373b3edfc4f201a95 Mon Sep 17 00:00:00 2001 From: Kurt McAlpine Date: Mon, 13 Nov 2023 10:04:28 +1300 Subject: [PATCH 468/617] feat(resource): add resource for amplify apps --- resources/amplify-apps.go | 75 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 resources/amplify-apps.go diff --git a/resources/amplify-apps.go b/resources/amplify-apps.go new file mode 100644 index 00000000..4053b6ee --- /dev/null +++ b/resources/amplify-apps.go @@ -0,0 +1,75 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/amplify" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type AmplifyApp struct { + svc *amplify.Amplify + appID *string + name *string + tags map[string]*string +} + +func init() { + register("AmplifyApp", ListAmplifyApps) +} + +func ListAmplifyApps(sess *session.Session) ([]Resource, error) { + svc := amplify.New(sess) + resources := []Resource{} + + params := &lify.ListAppsInput{ + MaxResults: aws.Int64(100), + } + + for { + output, err := svc.ListApps(params) + if err != nil { + return nil, err + } + + for _, item := range output.Apps { + resources = append(resources, &AmplifyApp{ + svc: svc, + appID: item.AppId, + name: item.Name, + tags: item.Tags, + }) + } + + if output.NextToken == nil { + break + } + + params.NextToken = output.NextToken + } + + return resources, nil +} + +func (f *AmplifyApp) Remove() error { + _, err := f.svc.DeleteApp(&lify.DeleteAppInput{ + AppId: f.appID, + }) + + return err +} + +func (f *AmplifyApp) String() string { + return *f.appID +} + +func (f *AmplifyApp) Properties() types.Properties { + properties := types.NewProperties() + for key, tag := range f.tags { + properties.SetTag(&key, tag) + } + properties. + Set("AppID", f.appID). + Set("Name", f.name) + return properties +} From b0d2aaddb58502b209f193432606ee14c660b4cb Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 11 Sep 2024 17:15:21 -0600 Subject: [PATCH 469/617] refactor(amplify-app): convert to libnuke and aws-nuke v3 format --- resources/amplify-app.go | 91 +++++++++++++++++++++++++++++++++++++++ resources/amplify-apps.go | 75 -------------------------------- 2 files changed, 91 insertions(+), 75 deletions(-) create mode 100644 resources/amplify-app.go delete mode 100644 resources/amplify-apps.go diff --git a/resources/amplify-app.go b/resources/amplify-app.go new file mode 100644 index 00000000..7ff77e74 --- /dev/null +++ b/resources/amplify-app.go @@ -0,0 +1,91 @@ +package resources + +import ( + "context" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/amplify" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +const AmplifyAppResource = "AmplifyApp" + +func init() { + registry.Register(®istry.Registration{ + Name: AmplifyAppResource, + Scope: nuke.Account, + Lister: &AmplifyAppLister{}, + }) +} + +type AmplifyAppLister struct{} + +func (l *AmplifyAppLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := amplify.New(opts.Session) + resources := make([]resource.Resource, 0) + + params := &lify.ListAppsInput{ + MaxResults: aws.Int64(100), + } + + for { + output, err := svc.ListApps(params) + if err != nil { + return nil, err + } + + for _, item := range output.Apps { + resources = append(resources, &AmplifyApp{ + svc: svc, + AppID: item.AppId, + Name: item.Name, + Tags: item.Tags, + }) + } + + if output.NextToken == nil { + break + } + + params.NextToken = output.NextToken + } + + return resources, nil +} + +type AmplifyApp struct { + svc *amplify.Amplify + AppID *string + Name *string + Tags map[string]*string +} + +func (r *AmplifyApp) Remove(_ context.Context) error { + _, err := r.svc.DeleteApp(&lify.DeleteAppInput{ + AppId: r.AppID, + }) + + return err +} + +func (r *AmplifyApp) String() string { + return *r.AppID +} + +func (r *AmplifyApp) Properties() types.Properties { + properties := types.NewProperties() + for key, tag := range r.Tags { + properties.SetTag(&key, tag) + } + properties. + Set("AppID", r.AppID). + Set("Name", r.Name) + return properties +} diff --git a/resources/amplify-apps.go b/resources/amplify-apps.go deleted file mode 100644 index 4053b6ee..00000000 --- a/resources/amplify-apps.go +++ /dev/null @@ -1,75 +0,0 @@ -package resources - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/amplify" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" -) - -type AmplifyApp struct { - svc *amplify.Amplify - appID *string - name *string - tags map[string]*string -} - -func init() { - register("AmplifyApp", ListAmplifyApps) -} - -func ListAmplifyApps(sess *session.Session) ([]Resource, error) { - svc := amplify.New(sess) - resources := []Resource{} - - params := &lify.ListAppsInput{ - MaxResults: aws.Int64(100), - } - - for { - output, err := svc.ListApps(params) - if err != nil { - return nil, err - } - - for _, item := range output.Apps { - resources = append(resources, &AmplifyApp{ - svc: svc, - appID: item.AppId, - name: item.Name, - tags: item.Tags, - }) - } - - if output.NextToken == nil { - break - } - - params.NextToken = output.NextToken - } - - return resources, nil -} - -func (f *AmplifyApp) Remove() error { - _, err := f.svc.DeleteApp(&lify.DeleteAppInput{ - AppId: f.appID, - }) - - return err -} - -func (f *AmplifyApp) String() string { - return *f.appID -} - -func (f *AmplifyApp) Properties() types.Properties { - properties := types.NewProperties() - for key, tag := range f.tags { - properties.SetTag(&key, tag) - } - properties. - Set("AppID", f.appID). - Set("Name", f.name) - return properties -} From 12407b7b93d428a9751081aba8ad44b43fbab409 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 11 Sep 2024 17:15:38 -0600 Subject: [PATCH 470/617] test(amplify-app): add coverage for props and stringer --- resources/amplify-app_mock_test.go | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 resources/amplify-app_mock_test.go diff --git a/resources/amplify-app_mock_test.go b/resources/amplify-app_mock_test.go new file mode 100644 index 00000000..f1c8d2ad --- /dev/null +++ b/resources/amplify-app_mock_test.go @@ -0,0 +1,31 @@ +package resources + +import ( + "testing" + + "github.com/gotidy/ptr" + "github.com/stretchr/testify/assert" +) + +var app = &AmplifyApp{ + Name: ptr.String("app1"), + AppID: ptr.String("appId1"), + Tags: map[string]*string{ + "key1": ptr.String("value1"), + }, +} + +func Test_AmplifyApp_Properties(t *testing.T) { + a := assert.New(t) + + properties := app.Properties() + a.Equal("app1", properties.Get("Name")) + a.Equal("appId1", properties.Get("AppID")) + a.Equal("value1", properties.Get("tag:key1")) +} + +func Test_AmplifyApp_Stringer(t *testing.T) { + a := assert.New(t) + + a.Equal("appId1", app.String()) +} From e5a0f8905a136f1d9307e6074e6ea66fa30099f4 Mon Sep 17 00:00:00 2001 From: Mike Schouw Date: Fri, 13 Sep 2024 13:10:50 +0200 Subject: [PATCH 471/617] feat(cognito): add tags to properties --- resources/cognito-identity-providers.go | 6 +-- resources/cognito-userpool-clients.go | 6 +-- resources/cognito-userpool-domains.go | 6 +-- resources/cognito-userpools.go | 49 +++++++++++++++++++++---- 4 files changed, 51 insertions(+), 16 deletions(-) diff --git a/resources/cognito-identity-providers.go b/resources/cognito-identity-providers.go index 01ea2bc4..fb3417eb 100644 --- a/resources/cognito-identity-providers.go +++ b/resources/cognito-identity-providers.go @@ -51,7 +51,7 @@ func (l *CognitoIdentityProviderLister) List(ctx context.Context, o interface{}) } listParams := &cognitoidentityprovider.ListIdentityProvidersInput{ - UserPoolId: userPool.id, + UserPoolId: userPool.ID, MaxResults: aws.Int64(50), } @@ -66,8 +66,8 @@ func (l *CognitoIdentityProviderLister) List(ctx context.Context, o interface{}) svc: svc, name: provider.ProviderName, providerType: provider.ProviderType, - userPoolName: userPool.name, - userPoolID: userPool.id, + userPoolName: userPool.Name, + userPoolID: userPool.ID, }) } diff --git a/resources/cognito-userpool-clients.go b/resources/cognito-userpool-clients.go index 2a25a694..90698b5e 100644 --- a/resources/cognito-userpool-clients.go +++ b/resources/cognito-userpool-clients.go @@ -49,7 +49,7 @@ func (l *CognitoUserPoolClientLister) List(ctx context.Context, o interface{}) ( } listParams := &cognitoidentityprovider.ListUserPoolClientsInput{ - UserPoolId: userPool.id, + UserPoolId: userPool.ID, MaxResults: aws.Int64(50), } @@ -64,8 +64,8 @@ func (l *CognitoUserPoolClientLister) List(ctx context.Context, o interface{}) ( svc: svc, id: client.ClientId, name: client.ClientName, - userPoolName: userPool.name, - userPoolID: userPool.id, + userPoolName: userPool.Name, + userPoolID: userPool.ID, }) } diff --git a/resources/cognito-userpool-domains.go b/resources/cognito-userpool-domains.go index ae071fea..09eed86f 100644 --- a/resources/cognito-userpool-domains.go +++ b/resources/cognito-userpool-domains.go @@ -46,7 +46,7 @@ func (l *CognitoUserPoolDomainLister) List(ctx context.Context, o interface{}) ( } describeParams := &cognitoidentityprovider.DescribeUserPoolInput{ - UserPoolId: userPool.id, + UserPoolId: userPool.ID, } userPoolDetails, err := svc.DescribeUserPool(describeParams) if err != nil { @@ -60,8 +60,8 @@ func (l *CognitoUserPoolDomainLister) List(ctx context.Context, o interface{}) ( resources = append(resources, &CognitoUserPoolDomain{ svc: svc, name: userPoolDetails.UserPool.Domain, - userPoolName: userPool.name, - userPoolID: userPool.id, + userPoolName: userPool.Name, + userPoolID: userPool.ID, }) } diff --git a/resources/cognito-userpools.go b/resources/cognito-userpools.go index 5b728f84..b7f87d45 100644 --- a/resources/cognito-userpools.go +++ b/resources/cognito-userpools.go @@ -2,12 +2,18 @@ package resources import ( "context" + "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/cognitoidentityprovider" + "github.com/aws/aws-sdk-go/service/sts" + "github.com/aws/aws-sdk-go/service/sts/stsiface" + "github.com/gotidy/ptr" + "github.com/sirupsen/logrus" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) @@ -27,14 +33,29 @@ func init() { }) } -type CognitoUserPoolLister struct{} +type CognitoUserPoolLister struct { + stsService stsiface.STSAPI +} func (l *CognitoUserPoolLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) + var stsSvc stsiface.STSAPI + if l.stsService != nil { + stsSvc = l.stsService + } else { + stsSvc = sts.New(opts.Session) + } + svc := cognitoidentityprovider.New(opts.Session) resources := make([]resource.Resource, 0) + identityOutput, err := stsSvc.GetCallerIdentity(nil) + if err != nil { + return nil, err + } + accountID := identityOutput.Account + params := &cognitoidentityprovider.ListUserPoolsInput{ MaxResults: aws.Int64(50), } @@ -46,10 +67,19 @@ func (l *CognitoUserPoolLister) List(_ context.Context, o interface{}) ([]resour } for _, pool := range output.UserPools { + tagResp, tagsErr := svc.ListTagsForResource(&cognitoidentityprovider.ListTagsForResourceInput{ + ResourceArn: ptr.String(fmt.Sprintf("arn:aws:cognito-idp:%s:%s:userpool/%s", opts.Region.Name, *accountID, *pool.Id)), + }) + + if tagsErr != nil { + logrus.WithError(tagsErr).Error("unable to get tags for userpool") + } + resources = append(resources, &CognitoUserPool{ svc: svc, - name: pool.Name, - id: pool.Id, + Name: pool.Name, + ID: pool.Id, + Tags: tagResp.Tags, }) } @@ -65,18 +95,23 @@ func (l *CognitoUserPoolLister) List(_ context.Context, o interface{}) ([]resour type CognitoUserPool struct { svc *cognitoidentityprovider.CognitoIdentityProvider - name *string - id *string + Name *string + ID *string + Tags map[string]*string } func (f *CognitoUserPool) Remove(_ context.Context) error { _, err := f.svc.DeleteUserPool(&cognitoidentityprovider.DeleteUserPoolInput{ - UserPoolId: f.id, + UserPoolId: f.ID, }) return err } +func (f *CognitoUserPool) Properties() types.Properties { + return types.NewPropertiesFromStruct(f) +} + func (f *CognitoUserPool) String() string { - return *f.name + return *f.Name } From 4bad7c1a01df3ce85f241c707eab701331e01de9 Mon Sep 17 00:00:00 2001 From: Mike Schouw Date: Fri, 13 Sep 2024 13:10:50 +0200 Subject: [PATCH 472/617] feat(pipes-pipe): add tags to properties --- resources/pipes-pipe.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/resources/pipes-pipe.go b/resources/pipes-pipe.go index b8b8bd72..5b3adecd 100644 --- a/resources/pipes-pipe.go +++ b/resources/pipes-pipe.go @@ -5,6 +5,7 @@ import ( "time" "github.com/aws/aws-sdk-go/service/pipes" + "github.com/sirupsen/logrus" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" @@ -36,6 +37,14 @@ func (l *PipesPipeLister) List(_ context.Context, o interface{}) ([]resource.Res } for _, p := range res.Pipes { + tagResp, tagsErr := svc.ListTagsForResource(&pipes.ListTagsForResourceInput{ + ResourceArn: p.Arn, + }) + + if tagsErr != nil { + logrus.WithError(tagsErr).Error("unable to get tags for pipe") + } + resources = append(resources, &PipesPipes{ svc: svc, Name: p.Name, @@ -44,6 +53,7 @@ func (l *PipesPipeLister) List(_ context.Context, o interface{}) ([]resource.Res Target: p.Target, CreationDate: p.CreationTime, ModifiedDate: p.LastModifiedTime, + Tags: tagResp.Tags, }) } @@ -58,6 +68,7 @@ type PipesPipes struct { Target *string CreationDate *time.Time ModifiedDate *time.Time + Tags map[string]*string } func (r *PipesPipes) Remove(_ context.Context) error { From f687165cf66e37d3f0288a4cc8c7fd179d66a341 Mon Sep 17 00:00:00 2001 From: Mike Schouw Date: Fri, 13 Sep 2024 13:12:06 +0200 Subject: [PATCH 473/617] style(cognito): update imports --- resources/cognito-userpools.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/cognito-userpools.go b/resources/cognito-userpools.go index b7f87d45..b6a7f526 100644 --- a/resources/cognito-userpools.go +++ b/resources/cognito-userpools.go @@ -4,12 +4,13 @@ import ( "context" "fmt" + "github.com/gotidy/ptr" + "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/cognitoidentityprovider" "github.com/aws/aws-sdk-go/service/sts" "github.com/aws/aws-sdk-go/service/sts/stsiface" - "github.com/gotidy/ptr" - "github.com/sirupsen/logrus" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" From d3baf7df7e85f54723fd015339378e8f49ca2c07 Mon Sep 17 00:00:00 2001 From: Mike Schouw Date: Fri, 13 Sep 2024 13:12:40 +0200 Subject: [PATCH 474/617] style(pipes-pipe): updated imports --- resources/pipes-pipe.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/pipes-pipe.go b/resources/pipes-pipe.go index 5b3adecd..75d43433 100644 --- a/resources/pipes-pipe.go +++ b/resources/pipes-pipe.go @@ -4,9 +4,10 @@ import ( "context" "time" - "github.com/aws/aws-sdk-go/service/pipes" "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/service/pipes" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" From e9d703c2219b39a6cc84a97ab4c200cf8f3a4da6 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 13 Sep 2024 17:16:23 -0600 Subject: [PATCH 475/617] feat(config): add support for custom alias block keywords --- pkg/config/config.go | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index 88452dee..64575e62 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -43,6 +43,10 @@ type Config struct { // Config is the underlying libnuke configuration. *config.Config `yaml:",inline"` + // BlocklistAliasKeywords is a list of keywords that are blocklisted from being used in an alias. + // If any of these keywords are found in an alias, the nuke will abort. + BlocklistAliasKeywords []string `yaml:"blocklist-alias-keywords"` + // BypassAliasCheckAccounts is a list of account IDs that will be allowed to bypass the alias check. // This is useful for accounts that don't have an alias for a number of reasons, it must be used with a cli // flag --no-alias-check to be effective. @@ -71,6 +75,8 @@ func (c *Config) Load(path string) error { return err } + c.BlocklistAliasKeywords = append(c.BlocklistAliasKeywords, "prod") + return nil } @@ -109,9 +115,11 @@ func (c *Config) ValidateAccount(accountID string, aliases []string, skipAliasCh } for _, alias := range aliases { - if strings.Contains(strings.ToLower(alias), "prod") { - return fmt.Errorf("you are trying to nuke an account with the alias '%s', "+ - "but it has the substring 'prod' in it. Aborting", alias) + for _, keyword := range c.BlocklistAliasKeywords { + if strings.Contains(strings.ToLower(alias), keyword) { + return fmt.Errorf("you are trying to nuke an account with the alias '%s', "+ + "but it contains the blocklisted keyword '%s'. Aborting", alias, keyword) + } } } From f524aebf81ad1d594cc68b3ac987cf0d56cde2c6 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 13 Sep 2024 17:16:40 -0600 Subject: [PATCH 476/617] test(config): add test coverage for custom alias block keywords --- pkg/config/config_test.go | 56 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/pkg/config/config_test.go b/pkg/config/config_test.go index eaa229a3..3c0f3efc 100644 --- a/pkg/config/config_test.go +++ b/pkg/config/config_test.go @@ -375,3 +375,59 @@ func TestConfig_DeprecatedFeatureFlags(t *testing.T) { assert.NotNil(t, cloudformationStackSettings) assert.Equal(t, true, cloudformationStackSettings.Get("DisableDeletionProtection")) } + +func TestConfig_ValidateAccount_Blocklist(t *testing.T) { + config, err := New(libconfig.Options{ + Path: "testdata/example.yaml", + }) + if err != nil { + t.Fatal(err) + } + + // Add an account to the blocklist + config.Blocklist = append(config.Blocklist, "1234567890") + config.BlocklistAliasKeywords = append(config.BlocklistAliasKeywords, "alpha-tango") + + // Test cases + cases := []struct { + ID string + Aliases []string + ShouldFail bool + }{ + { + // Should fail due to blocklist + ID: "1234567890", + Aliases: []string{ + "sandbox", + }, + ShouldFail: true, + }, + { + // Allowed account + ID: "555133742", + Aliases: []string{ + "sandbox2", + }, + ShouldFail: false, + }, + { + // Allowed account but blocked by keyword + ID: "555133742", + Aliases: []string{ + "alpha-tango-sandbox", + }, + ShouldFail: true, + }, + } + + for _, tc := range cases { + t.Run(fmt.Sprintf("AccountID_%s", tc.ID), func(t *testing.T) { + err := config.ValidateAccount(tc.ID, tc.Aliases, false) + if tc.ShouldFail { + assert.Error(t, err) + } else { + assert.NoError(t, err) + } + }) + } +} From 145aea5a3499d329656344a7c4d9971cb3caf4d1 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 13 Sep 2024 17:19:48 -0600 Subject: [PATCH 477/617] docs(config): add supporting documentation for blocklist-alias-keywords --- docs/config.md | 39 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/docs/config.md b/docs/config.md index e5449104..ae957352 100644 --- a/docs/config.md +++ b/docs/config.md @@ -7,6 +7,7 @@ The configuration is the user supplied configuration that is used to drive the n The configuration is broken down into the following sections: - [blocklist](#blocklist) +- [blocklist-alias-keywords](#blocklist-alias-keywords) - [regions](#regions) - [accounts](#accounts) - [presets](#presets) @@ -30,6 +31,11 @@ The configuration is broken down into the following sections: ```yaml blocklist: - 1234567890 + +blocklist-alias-keywords: + - "prod" + - "production" + - "live" regions: - global @@ -61,15 +67,39 @@ settings: ## Blocklist -The blocklist is simply a list of Accounts that the tool cannot run against. This is to protect the user from accidentally +The `blocklist` is simply a list of Accounts that the tool cannot run against. This is to protect the user from accidentally running the tool against the wrong account. The blocklist must always be populated with at least one entry. +```yaml +blocklist: + - 1234567890 +``` + +## Blocklist Alias Keywords + +`blocklist-alias-keywords` is a list of keywords that the tool will use to block accounts based on their aliases. If +an account alias contains any of the keywords in the list, then the account will be blocked. However if the bypass alias +check flag is set, then this feature has no affect. + +```yaml +blocklist-alias-keywords: + - "prod" + - "production" + - "live" +``` + ## Regions -The regions is a list of AWS regions that the tool will run against. The tool will run against all regions specified in the +The `regions` is a list of AWS regions that the tool will run against. The tool will run against all regions specified in the configuration. If no regions are listed, then the tool will **NOT** run against any region. Regions must be explicitly provided. +```yaml +regions: + - global + - us-east-1 +``` + ### All Enabled Regions You may specify the special region `all` to run against all enabled regions. This will run against all regions that are @@ -80,6 +110,11 @@ special region `global` which is for specific global resources. The use of `all` will ignore all other regions specified in the configuration. It will only run against regions that are enabled in the account. +```yaml +regions: + - all +``` + ## Accounts The accounts section is a map of AWS Account IDs to their configuration. The account ID is the key and the value is the From ae37cf982a3c3ce60d5cc2edfdd2c517452236d5 Mon Sep 17 00:00:00 2001 From: Solomon Wakhungu Date: Tue, 19 Dec 2023 15:53:49 -0600 Subject: [PATCH 478/617] feat: add support for ec2 tgw connect peers --- resources/ec2-connect-peers.go | 62 ++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 resources/ec2-connect-peers.go diff --git a/resources/ec2-connect-peers.go b/resources/ec2-connect-peers.go new file mode 100644 index 00000000..b047fa2a --- /dev/null +++ b/resources/ec2-connect-peers.go @@ -0,0 +1,62 @@ +package resources + +import ( + "fmt" + + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/ec2" +) + +type EC2TGWConnectPeer struct { + svc *ec2.EC2 + peer *ec2.TransitGatewayConnectPeer +} + +func init() { + register("EC2TGWConnectPeer", ListEC2TGWConnectPeer) +} + +func ListEC2TGWConnectPeer(sess *session.Session) ([]Resource, error) { + svc := ec2.New(sess) + resources := make([]Resource, 0) + + // filter should be set as deleted vpc connections are returned + params := &ec2.DescribeTransitGatewayConnectPeersInput{} + + resp, err := svc.DescribeTransitGatewayConnectPeers(params) + if err != nil { + return nil, err + } + + for _, connectPeer := range resp.TransitGatewayConnectPeers { + resources = append(resources, &EC2TGWConnectPeer{ + svc: svc, + peer: connectPeer, + }) + } + + return resources, nil +} + +func (p *EC2TGWConnectPeer) Filter() error { + if *p.peer.State == "deleted" { + return fmt.Errorf("already deleted") + } + return nil +} + +func (p *EC2TGWConnectPeer) Remove() error { + params := &ec2.DeleteTransitGatewayConnectPeerInput{ + TransitGatewayConnectPeerId: p.peer.TransitGatewayConnectPeerId, + } + + _, err := p.svc.DeleteTransitGatewayConnectPeer(params) + if err != nil { + return err + } + return nil +} + +func (p *EC2TGWConnectPeer) String() string { + return *p.peer.TransitGatewayConnectPeerId +} From 5533684348d5060e6cb31aceb374e356a1f2b238 Mon Sep 17 00:00:00 2001 From: Solomon Wakhungu Date: Tue, 19 Dec 2023 16:12:01 -0600 Subject: [PATCH 479/617] feat(ec2-tgw-connect-peer): add properties function --- resources/ec2-connect-peers.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/resources/ec2-connect-peers.go b/resources/ec2-connect-peers.go index b047fa2a..3eab9121 100644 --- a/resources/ec2-connect-peers.go +++ b/resources/ec2-connect-peers.go @@ -5,6 +5,7 @@ import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ec2" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" ) type EC2TGWConnectPeer struct { @@ -57,6 +58,15 @@ func (p *EC2TGWConnectPeer) Remove() error { return nil } +func (p *EC2TGWConnectPeer) Properties() types.Properties { + properties := types.NewProperties() + for _, tagValue := range p.peer.Tags { + properties.SetTag(tagValue.Key, tagValue.Value) + } + properties.Set("ID", p.peer.TransitGatewayConnectPeerId) + return properties +} + func (p *EC2TGWConnectPeer) String() string { return *p.peer.TransitGatewayConnectPeerId } From 7da84f96cb874633162cd00a221daad26d9f9d41 Mon Sep 17 00:00:00 2001 From: Solomon Wakhungu Date: Tue, 19 Dec 2023 16:28:46 -0600 Subject: [PATCH 480/617] refactor(ec2-tgw-connect-peer): remove comment --- resources/ec2-connect-peers.go | 1 - 1 file changed, 1 deletion(-) diff --git a/resources/ec2-connect-peers.go b/resources/ec2-connect-peers.go index 3eab9121..ddc2353b 100644 --- a/resources/ec2-connect-peers.go +++ b/resources/ec2-connect-peers.go @@ -21,7 +21,6 @@ func ListEC2TGWConnectPeer(sess *session.Session) ([]Resource, error) { svc := ec2.New(sess) resources := make([]Resource, 0) - // filter should be set as deleted vpc connections are returned params := &ec2.DescribeTransitGatewayConnectPeersInput{} resp, err := svc.DescribeTransitGatewayConnectPeers(params) From 1e202fcd98033fd7923a4277bf0129dc8c8ccfc3 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 13 Sep 2024 17:40:12 -0600 Subject: [PATCH 481/617] fix(ec2-tgw-connect-peer): refactor for libnuke, add additional properties --- resources/ec2-connect-peers.go | 71 ------------------------- resources/ec2-tgw-connect-peer.go | 87 +++++++++++++++++++++++++++++++ 2 files changed, 87 insertions(+), 71 deletions(-) delete mode 100644 resources/ec2-connect-peers.go create mode 100644 resources/ec2-tgw-connect-peer.go diff --git a/resources/ec2-connect-peers.go b/resources/ec2-connect-peers.go deleted file mode 100644 index ddc2353b..00000000 --- a/resources/ec2-connect-peers.go +++ /dev/null @@ -1,71 +0,0 @@ -package resources - -import ( - "fmt" - - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/ec2" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" -) - -type EC2TGWConnectPeer struct { - svc *ec2.EC2 - peer *ec2.TransitGatewayConnectPeer -} - -func init() { - register("EC2TGWConnectPeer", ListEC2TGWConnectPeer) -} - -func ListEC2TGWConnectPeer(sess *session.Session) ([]Resource, error) { - svc := ec2.New(sess) - resources := make([]Resource, 0) - - params := &ec2.DescribeTransitGatewayConnectPeersInput{} - - resp, err := svc.DescribeTransitGatewayConnectPeers(params) - if err != nil { - return nil, err - } - - for _, connectPeer := range resp.TransitGatewayConnectPeers { - resources = append(resources, &EC2TGWConnectPeer{ - svc: svc, - peer: connectPeer, - }) - } - - return resources, nil -} - -func (p *EC2TGWConnectPeer) Filter() error { - if *p.peer.State == "deleted" { - return fmt.Errorf("already deleted") - } - return nil -} - -func (p *EC2TGWConnectPeer) Remove() error { - params := &ec2.DeleteTransitGatewayConnectPeerInput{ - TransitGatewayConnectPeerId: p.peer.TransitGatewayConnectPeerId, - } - - _, err := p.svc.DeleteTransitGatewayConnectPeer(params) - if err != nil { - return err - } - return nil -} - -func (p *EC2TGWConnectPeer) Properties() types.Properties { - properties := types.NewProperties() - for _, tagValue := range p.peer.Tags { - properties.SetTag(tagValue.Key, tagValue.Value) - } - properties.Set("ID", p.peer.TransitGatewayConnectPeerId) - return properties -} - -func (p *EC2TGWConnectPeer) String() string { - return *p.peer.TransitGatewayConnectPeerId -} diff --git a/resources/ec2-tgw-connect-peer.go b/resources/ec2-tgw-connect-peer.go new file mode 100644 index 00000000..76f823f8 --- /dev/null +++ b/resources/ec2-tgw-connect-peer.go @@ -0,0 +1,87 @@ +package resources + +import ( + "context" + "fmt" + "time" + + "github.com/aws/aws-sdk-go/service/ec2" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +const EC2TGWConnectPeerResource = "EC2TGWConnectPeer" + +func init() { + registry.Register(®istry.Registration{ + Name: EC2TGWConnectPeerResource, + Scope: nuke.Account, + Lister: &EC2TGWConnectPeerLister{}, + }) +} + +type EC2TGWConnectPeerLister struct{} + +func (l *EC2TGWConnectPeerLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := ec2.New(opts.Session) + resources := make([]resource.Resource, 0) + + params := &ec2.DescribeTransitGatewayConnectPeersInput{} + + resp, err := svc.DescribeTransitGatewayConnectPeers(params) + if err != nil { + return nil, err + } + + for _, connectPeer := range resp.TransitGatewayConnectPeers { + resources = append(resources, &EC2TGWConnectPeer{ + svc: svc, + ID: connectPeer.TransitGatewayConnectPeerId, + State: connectPeer.State, + CreationTime: connectPeer.CreationTime, + Tags: connectPeer.Tags, + }) + } + + return resources, nil +} + +type EC2TGWConnectPeer struct { + svc *ec2.EC2 + ID *string + State *string + CreationTime *time.Time + Tags []*ec2.Tag +} + +func (r *EC2TGWConnectPeer) Filter() error { + if *r.State == "deleted" { + return fmt.Errorf("already deleted") + } + return nil +} + +func (r *EC2TGWConnectPeer) Remove(_ context.Context) error { + _, err := r.svc.DeleteTransitGatewayConnectPeer(&ec2.DeleteTransitGatewayConnectPeerInput{ + TransitGatewayConnectPeerId: r.ID, + }) + if err != nil { + return err + } + + return nil +} + +func (r *EC2TGWConnectPeer) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + +func (r *EC2TGWConnectPeer) String() string { + return *r.ID +} From a255965e0f3a526c45fef0c17371e93a27976af1 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 13 Sep 2024 17:45:06 -0600 Subject: [PATCH 482/617] test(config): fix failing test --- pkg/config/config_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/config/config_test.go b/pkg/config/config_test.go index 3c0f3efc..a3c121c5 100644 --- a/pkg/config/config_test.go +++ b/pkg/config/config_test.go @@ -111,6 +111,7 @@ func TestConfig_LoadExample(t *testing.T) { }, }, }, + BlocklistAliasKeywords: []string{"prod"}, } assert.Equal(t, expect, *config) From 6f5dd85fb414be64270ce5aa57c598b76a86cdaf Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sun, 15 Sep 2024 18:21:11 -0600 Subject: [PATCH 483/617] feat(config): support disabling default alias blocklist terms --- pkg/config/config.go | 14 ++-- pkg/config/config_test.go | 70 +++++++++++++++++-- pkg/config/testdata/example.yaml | 6 +- .../testdata/no-blocklist-term-prod.yaml | 40 +++++++++++ 4 files changed, 119 insertions(+), 11 deletions(-) create mode 100644 pkg/config/testdata/no-blocklist-term-prod.yaml diff --git a/pkg/config/config.go b/pkg/config/config.go index 64575e62..88d1c9cb 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -43,9 +43,13 @@ type Config struct { // Config is the underlying libnuke configuration. *config.Config `yaml:",inline"` - // BlocklistAliasKeywords is a list of keywords that are blocklisted from being used in an alias. + // BlocklistTerms is a list of keywords that are blocklisted from being used in an alias. // If any of these keywords are found in an alias, the nuke will abort. - BlocklistAliasKeywords []string `yaml:"blocklist-alias-keywords"` + BlocklistTerms []string `yaml:"blocklist-terms"` + + // NoBlocklistTermsDefault is a setting that can be used to disable the default terms from being added to the + // blocklist. + NoBlocklistTermsDefault bool `yaml:"no-blocklist-terms-default"` // BypassAliasCheckAccounts is a list of account IDs that will be allowed to bypass the alias check. // This is useful for accounts that don't have an alias for a number of reasons, it must be used with a cli @@ -75,7 +79,9 @@ func (c *Config) Load(path string) error { return err } - c.BlocklistAliasKeywords = append(c.BlocklistAliasKeywords, "prod") + if !c.NoBlocklistTermsDefault { + c.BlocklistTerms = append(c.BlocklistTerms, "prod") + } return nil } @@ -115,7 +121,7 @@ func (c *Config) ValidateAccount(accountID string, aliases []string, skipAliasCh } for _, alias := range aliases { - for _, keyword := range c.BlocklistAliasKeywords { + for _, keyword := range c.BlocklistTerms { if strings.Contains(strings.ToLower(alias), keyword) { return fmt.Errorf("you are trying to nuke an account with the alias '%s', "+ "but it contains the blocklisted keyword '%s'. Aborting", alias, keyword) diff --git a/pkg/config/config_test.go b/pkg/config/config_test.go index a3c121c5..027cd40a 100644 --- a/pkg/config/config_test.go +++ b/pkg/config/config_test.go @@ -69,12 +69,12 @@ func TestConfig_LoadExample(t *testing.T) { }, }, ResourceTypes: libconfig.ResourceTypes{ - Targets: types.Collection{"S3Bucket"}, + Includes: types.Collection{"S3Bucket"}, }, }, }, ResourceTypes: libconfig.ResourceTypes{ - Targets: types.Collection{"DynamoDBTable", "S3Bucket", "S3Object"}, + Includes: types.Collection{"DynamoDBTable", "S3Bucket", "S3Object"}, Excludes: types.Collection{"IAMRole"}, }, Presets: map[string]libconfig.Preset{ @@ -111,7 +111,69 @@ func TestConfig_LoadExample(t *testing.T) { }, }, }, - BlocklistAliasKeywords: []string{"prod"}, + BlocklistTerms: []string{"prod"}, + } + + assert.Equal(t, expect, *config) +} + +func TestConfig_NoBlocklistTermsProd(t *testing.T) { + logger := logrus.New() + logger.SetOutput(io.Discard) + entry := logrus.WithField("test", true) + + config, err := New(libconfig.Options{ + Path: "testdata/no-blocklist-term-prod.yaml", + Log: entry, + }) + if err != nil { + t.Fatal(err) + } + + expect := Config{ + Config: &libconfig.Config{ + Blocklist: []string{"012345678901"}, + Regions: []string{"global", "us-east-1"}, + Accounts: map[string]*libconfig.Account{ + "555133742": { + Presets: []string{"terraform"}, + Filters: filter.Filters{ + "IAMRole": { + filter.NewExactFilter("uber.admin"), + }, + "IAMRolePolicyAttachment": { + filter.NewExactFilter("uber.admin -> AdministratorAccess"), + }, + }, + ResourceTypes: libconfig.ResourceTypes{ + Includes: types.Collection{"S3Bucket"}, + }, + }, + }, + ResourceTypes: libconfig.ResourceTypes{ + Includes: types.Collection{"DynamoDBTable", "S3Bucket", "S3Object"}, + Excludes: types.Collection{"IAMRole"}, + }, + Presets: map[string]libconfig.Preset{ + "terraform": { + Filters: filter.Filters{ + "S3Bucket": { + filter.Filter{ + Type: filter.Glob, + Value: "my-statebucket-*", + Values: []string{}, + }, + }, + }, + }, + }, + Settings: &settings.Settings{}, + Deprecations: make(map[string]string), + Log: entry, + }, + CustomEndpoints: CustomEndpoints{}, + BlocklistTerms: []string{"alpha"}, + NoBlocklistTermsDefault: true, } assert.Equal(t, expect, *config) @@ -387,7 +449,7 @@ func TestConfig_ValidateAccount_Blocklist(t *testing.T) { // Add an account to the blocklist config.Blocklist = append(config.Blocklist, "1234567890") - config.BlocklistAliasKeywords = append(config.BlocklistAliasKeywords, "alpha-tango") + config.BlocklistTerms = append(config.BlocklistTerms, "alpha-tango") // Test cases cases := []struct { diff --git a/pkg/config/testdata/example.yaml b/pkg/config/testdata/example.yaml index 777250c4..38581514 100644 --- a/pkg/config/testdata/example.yaml +++ b/pkg/config/testdata/example.yaml @@ -3,7 +3,7 @@ regions: - "eu-west-1" - stratoscale -account-blocklist: +blocklist: - 1234567890 endpoints: @@ -17,7 +17,7 @@ endpoints: tls_insecure_skip_verify: true resource-types: - targets: + includes: - DynamoDBTable - S3Bucket - S3Object @@ -29,7 +29,7 @@ accounts: presets: - "terraform" resource-types: - targets: + includes: - S3Bucket filters: IAMRole: diff --git a/pkg/config/testdata/no-blocklist-term-prod.yaml b/pkg/config/testdata/no-blocklist-term-prod.yaml new file mode 100644 index 00000000..e16f9afc --- /dev/null +++ b/pkg/config/testdata/no-blocklist-term-prod.yaml @@ -0,0 +1,40 @@ +--- +regions: + - global + - us-east-1 + +blocklist: + - 012345678901 + +blocklist-terms: + - alpha + +no-blocklist-terms-default: true + +resource-types: + includes: + - DynamoDBTable + - S3Bucket + - S3Object + excludes: + - IAMRole + +accounts: + 555133742: + presets: + - "terraform" + resource-types: + includes: + - S3Bucket + filters: + IAMRole: + - "uber.admin" + IAMRolePolicyAttachment: + - "uber.admin -> AdministratorAccess" + +presets: + terraform: + filters: + S3Bucket: + - type: glob + value: "my-statebucket-*" \ No newline at end of file From 6900185fcfe404f19f162b1a7127d9a74a2285af Mon Sep 17 00:00:00 2001 From: Jacob Peterson <14127217+Petersoj@users.noreply.github.com> Date: Sun, 15 Sep 2024 20:28:09 -0700 Subject: [PATCH 484/617] feat(wafv2): captcha integration api key nuking --- resources/wafv2-apikeys.go | 119 +++++++++++++++++++++++++++++++++++ resources/wafv2-rulegroup.go | 3 +- resources/wafv2-webacls.go | 3 +- 3 files changed, 123 insertions(+), 2 deletions(-) create mode 100644 resources/wafv2-apikeys.go diff --git a/resources/wafv2-apikeys.go b/resources/wafv2-apikeys.go new file mode 100644 index 00000000..97978a6c --- /dev/null +++ b/resources/wafv2-apikeys.go @@ -0,0 +1,119 @@ +package resources + +import ( + "context" + + "strings" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/endpoints" + "github.com/aws/aws-sdk-go/service/wafv2" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +const WAFv2APIKeyResource = "WAFv2APIKey" // #nosec G101 + +func init() { + registry.Register(®istry.Registration{ + Name: WAFv2APIKeyResource, + Scope: nuke.Account, + Lister: &WAFv2APIKeyLister{}, + }) +} + +type WAFv2APIKeyLister struct{} + +func (l *WAFv2APIKeyLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := wafv2.New(opts.Session) + resources := make([]resource.Resource, 0) + + params := &wafv2.ListAPIKeysInput{ + Limit: aws.Int64(50), + Scope: aws.String("REGIONAL"), + } + + output, err := getAPIKeys(svc, params) + if err != nil { + return []resource.Resource{}, err + } + + resources = append(resources, output...) + + if *opts.Session.Config.Region == endpoints.UsEast1RegionID { + params.Scope = aws.String("CLOUDFRONT") + + output, err := getAPIKeys(svc, params) + if err != nil { + return []resource.Resource{}, err + } + + resources = append(resources, output...) + } + + return resources, nil +} + +func getAPIKeys(svc *wafv2.WAFV2, params *wafv2.ListAPIKeysInput) ([]resource.Resource, error) { + resources := make([]resource.Resource, 0) + for { + resp, err := svc.ListAPIKeys(params) + if err != nil { + return nil, err + } + + for _, apiKey := range resp.APIKeySummaries { + var tokenDomains []string + for _, tokenDomain := range apiKey.TokenDomains { + tokenDomains = append(tokenDomains, *tokenDomain) + } + resources = append(resources, &WAFv2APIKey{ + svc: svc, + apiKey: apiKey.APIKey, + tokenDomains: tokenDomains, + scope: params.Scope, + }) + } + + if resp.NextMarker == nil { + break + } + + params.NextMarker = resp.NextMarker + } + return resources, nil +} + +type WAFv2APIKey struct { + svc *wafv2.WAFV2 + apiKey *string + tokenDomains []string + scope *string +} + +func (f *WAFv2APIKey) Remove(_ context.Context) error { + _, err := f.svc.DeleteAPIKey(&wafv2.DeleteAPIKeyInput{ + APIKey: f.apiKey, + Scope: f.scope, + }) + + return err +} + +func (f *WAFv2APIKey) String() string { + return strings.Join(f.tokenDomains, ", ") +} + +func (f *WAFv2APIKey) Properties() types.Properties { + properties := types.NewProperties() + + properties. + Set("tokenDomains", strings.Join(f.tokenDomains, ", ")) + return properties +} diff --git a/resources/wafv2-rulegroup.go b/resources/wafv2-rulegroup.go index ab1551de..9569e6f0 100644 --- a/resources/wafv2-rulegroup.go +++ b/resources/wafv2-rulegroup.go @@ -4,6 +4,7 @@ import ( "context" "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/endpoints" "github.com/aws/aws-sdk-go/service/wafv2" "github.com/ekristen/libnuke/pkg/registry" @@ -43,7 +44,7 @@ func (l *WAFv2RuleGroupLister) List(_ context.Context, o interface{}) ([]resourc resources = append(resources, output...) - if *opts.Session.Config.Region == "us-east-1" { + if *opts.Session.Config.Region == endpoints.UsEast1RegionID { params.Scope = aws.String("CLOUDFRONT") output, err := getRuleGroups(svc, params) diff --git a/resources/wafv2-webacls.go b/resources/wafv2-webacls.go index 8aaed46e..fe822f1c 100644 --- a/resources/wafv2-webacls.go +++ b/resources/wafv2-webacls.go @@ -4,6 +4,7 @@ import ( "context" "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/endpoints" "github.com/aws/aws-sdk-go/service/wafv2" "github.com/ekristen/libnuke/pkg/registry" @@ -43,7 +44,7 @@ func (l *WAFv2WebACLLister) List(_ context.Context, o interface{}) ([]resource.R resources = append(resources, output...) - if *opts.Session.Config.Region == "us-east-1" { + if *opts.Session.Config.Region == endpoints.UsEast1RegionID { params.Scope = aws.String("CLOUDFRONT") output, err := getWebACLs(svc, params) From bbfc2f1e81b699d650b1b401db5785cdadafbb66 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 17 Sep 2024 18:51:24 -0600 Subject: [PATCH 485/617] feat: shell auto completion, new command version, completion --- go.mod | 2 - go.sum | 14 ---- main.go | 4 ++ pkg/commands/completion/completion.go | 71 +++++++++++++++++++ .../completion/files/bash_autocomplete | 32 +++++++++ .../completion/files/zsh_autocomplete | 20 ++++++ pkg/commands/version/version.go | 29 ++++++++ pkg/common/commands.go | 5 -- 8 files changed, 156 insertions(+), 21 deletions(-) create mode 100644 pkg/commands/completion/completion.go create mode 100644 pkg/commands/completion/files/bash_autocomplete create mode 100644 pkg/commands/completion/files/zsh_autocomplete create mode 100644 pkg/commands/version/version.go diff --git a/go.mod b/go.mod index 78448ebc..45c4cc7c 100644 --- a/go.mod +++ b/go.mod @@ -32,10 +32,8 @@ require ( github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/stevenle/topsort v0.2.0 // indirect github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect - golang.org/x/mod v0.17.0 // indirect golang.org/x/sync v0.8.0 // indirect golang.org/x/sys v0.20.0 // indirect - golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect gopkg.in/yaml.v2 v2.4.0 // indirect ) diff --git a/go.sum b/go.sum index 9904b466..f155c702 100644 --- a/go.sum +++ b/go.sum @@ -8,8 +8,6 @@ github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ3 github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/ekristen/libnuke v0.18.0 h1:sF533oSET50FjgIkYV72rvgNzCzUR/AH2tQeKVim31g= -github.com/ekristen/libnuke v0.18.0/go.mod h1:riI1tjCf6r+et/9oUBd1vQeFmn2Sn6UeFUR0nWkMeYw= github.com/ekristen/libnuke v0.19.0 h1:pXVxPlbKfYbP1iSwsNu67MQ8HNvZPEZIeKiyw/k8FWg= github.com/ekristen/libnuke v0.19.0/go.mod h1:riI1tjCf6r+et/9oUBd1vQeFmn2Sn6UeFUR0nWkMeYw= github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4= @@ -56,8 +54,6 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -github.com/urfave/cli/v2 v2.27.3 h1:/POWahRmdh7uztQ3CYnaDddk0Rm90PyOgIxgW2rr41M= -github.com/urfave/cli/v2 v2.27.3/go.mod h1:m4QzxcD2qpra4z7WhzEGn74WZLViBnMpb1ToCAKdGRQ= github.com/urfave/cli/v2 v2.27.4 h1:o1owoI+02Eb+K107p27wEX9Bb8eqIoZCfLXloLUSWJ8= github.com/urfave/cli/v2 v2.27.4/go.mod h1:m4QzxcD2qpra4z7WhzEGn74WZLViBnMpb1ToCAKdGRQ= github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 h1:gEOO8jv9F4OT7lGCjxCBTO/36wtF6j2nSip77qHd4x4= @@ -70,15 +66,11 @@ go.uber.org/ratelimit v0.3.1/go.mod h1:6euWsTB6U/Nb3X++xEUXA8ciPJvr19Q/0h1+oDcJh golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.17.0 h1:zY54UmvipHiNd+pm+m0x9KhZ9hl1/7QNMyxXbc6ICqA= -golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= -golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -94,17 +86,11 @@ golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= -golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= -golang.org/x/text v0.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc= -golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= golang.org/x/text v0.18.0 h1:XvMDiNzPAl0jr17s6W9lcaIhGUfUORdGCNsuLmPG224= golang.org/x/text v0.18.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d h1:vU5i/LfpvrRCpgM/VPfJLg5KjxD3E+hfT1SH+d9zLwg= -golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/main.go b/main.go index 91a931d2..34268ee5 100644 --- a/main.go +++ b/main.go @@ -9,9 +9,11 @@ import ( "github.com/ekristen/aws-nuke/v3/pkg/common" _ "github.com/ekristen/aws-nuke/v3/pkg/commands/account" + _ "github.com/ekristen/aws-nuke/v3/pkg/commands/completion" _ "github.com/ekristen/aws-nuke/v3/pkg/commands/config" _ "github.com/ekristen/aws-nuke/v3/pkg/commands/list" _ "github.com/ekristen/aws-nuke/v3/pkg/commands/nuke" + _ "github.com/ekristen/aws-nuke/v3/pkg/commands/version" _ "github.com/ekristen/aws-nuke/v3/resources" ) @@ -43,6 +45,8 @@ func main() { logrus.Fatalf("Command %s not found.", command) } + app.EnableBashCompletion = true + if err := app.Run(os.Args); err != nil { logrus.Fatal(err) } diff --git a/pkg/commands/completion/completion.go b/pkg/commands/completion/completion.go new file mode 100644 index 00000000..05241aba --- /dev/null +++ b/pkg/commands/completion/completion.go @@ -0,0 +1,71 @@ +package completion + +import ( + "embed" + "fmt" + "os" + "slices" + "strings" + + "github.com/urfave/cli/v2" + + "github.com/ekristen/aws-nuke/v3/pkg/commands/global" + "github.com/ekristen/aws-nuke/v3/pkg/common" +) + +//go:embed files/* +var files embed.FS + +func execute(c *cli.Context) error { + var autocomplete []byte + var err error + switch c.String("shell") { + case "bash": + autocomplete, err = files.ReadFile("files/bash_autocomplete") + case "zsh": + autocomplete, err = files.ReadFile("files/zsh_autocomplete") + } + + if err != nil { + return err + } + + fmt.Println(string(autocomplete)) + + return nil +} + +func init() { + shellValue := "bash" + shellActual := os.Getenv("SHELL") + if strings.Contains(shellActual, "zsh") { + shellValue = "zsh" + } + + flags := []cli.Flag{ + &cli.StringFlag{ + Name: "shell", + Usage: "shell to generate completion script for", + Value: shellValue, + Action: func(c *cli.Context, val string) error { + validShells := []string{"bash", "zsh"} + if !slices.Contains(validShells, val) { + return fmt.Errorf("unsupported shell %s", val) + } + + return nil + }, + }, + } + + cmd := &cli.Command{ + Name: "completion", + Usage: "generate shell completion script", + Description: "generate shell completion script", + Flags: append(flags, global.Flags()...), + Before: global.Before, + Action: execute, + } + + common.RegisterCommand(cmd) +} diff --git a/pkg/commands/completion/files/bash_autocomplete b/pkg/commands/completion/files/bash_autocomplete new file mode 100644 index 00000000..5d0c8f8b --- /dev/null +++ b/pkg/commands/completion/files/bash_autocomplete @@ -0,0 +1,32 @@ +#! /bin/bash + +# Macs have bash3 for which the bash-completion package doesn't include +# _init_completion. This is a minimal version of that function. +_cli_init_completion() { + COMPREPLY=() + _get_comp_words_by_ref "$@" cur prev words cword +} + +_cli_bash_autocomplete() { + if [[ "${COMP_WORDS[0]}" != "source" ]]; then + local cur opts base words + COMPREPLY=() + cur="${COMP_WORDS[COMP_CWORD]}" + if declare -F _init_completion >/dev/null 2>&1; then + _init_completion -n "=:" || return + else + _cli_init_completion -n "=:" || return + fi + words=("${words[@]:0:$cword}") + if [[ "$cur" == "-"* ]]; then + requestComp="${words[*]} ${cur} --generate-bash-completion" + else + requestComp="${words[*]} --generate-bash-completion" + fi + opts=$(eval "${requestComp}" 2>/dev/null) + COMPREPLY=($(compgen -W "${opts}" -- ${cur})) + return 0 + fi +} + +complete -o bashdefault -o default -o nospace -F _cli_bash_autocomplete aws-nuke \ No newline at end of file diff --git a/pkg/commands/completion/files/zsh_autocomplete b/pkg/commands/completion/files/zsh_autocomplete new file mode 100644 index 00000000..9e58c574 --- /dev/null +++ b/pkg/commands/completion/files/zsh_autocomplete @@ -0,0 +1,20 @@ +#compdef aws-nuke + +_cli_zsh_autocomplete() { + local -a opts + local cur + cur=${words[-1]} + if [[ "$cur" == "-"* ]]; then + opts=("${(@f)$(${words[@]:0:#words[@]-1} ${cur} --generate-bash-completion)}") + else + opts=("${(@f)$(${words[@]:0:#words[@]-1} --generate-bash-completion)}") + fi + + if [[ "${opts[1]}" != "" ]]; then + _describe 'values' opts + else + _files + fi +} + +compdef _cli_zsh_autocomplete aws-nuke \ No newline at end of file diff --git a/pkg/commands/version/version.go b/pkg/commands/version/version.go new file mode 100644 index 00000000..b74944c5 --- /dev/null +++ b/pkg/commands/version/version.go @@ -0,0 +1,29 @@ +package version + +import ( + "fmt" + + "github.com/urfave/cli/v2" + + "github.com/ekristen/aws-nuke/v3/pkg/commands/global" + "github.com/ekristen/aws-nuke/v3/pkg/common" +) + +func execute(c *cli.Context) error { + fmt.Println(common.AppVersion.Name, "version", common.AppVersion.Summary) + + return nil +} + +func init() { + cmd := &cli.Command{ + Name: "version", + Usage: "displays the version", + Description: "displays the version of aws-nuke", + Flags: global.Flags(), + Before: global.Before, + Action: execute, + } + + common.RegisterCommand(cmd) +} diff --git a/pkg/common/commands.go b/pkg/common/commands.go index 1f44bfbd..d762ce67 100644 --- a/pkg/common/commands.go +++ b/pkg/common/commands.go @@ -7,11 +7,6 @@ import ( var commands []*cli.Command -// Commander -- -type Commander interface { - Execute(c *cli.Context) -} - // RegisterCommand -- func RegisterCommand(command *cli.Command) { logrus.Debugln("Registering", command.Name, "command...") From c762e846d42e89b48be463fee4a7a771ac8305be Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 17 Sep 2024 19:01:28 -0600 Subject: [PATCH 486/617] docs: cli shell completion --- docs/cli-completion.md | 38 ++++++++++++++++++++++++++++++++++++++ mkdocs.yml | 1 + 2 files changed, 39 insertions(+) create mode 100644 docs/cli-completion.md diff --git a/docs/cli-completion.md b/docs/cli-completion.md new file mode 100644 index 00000000..43c06467 --- /dev/null +++ b/docs/cli-completion.md @@ -0,0 +1,38 @@ +# CLI Shell Completion + +The CLI supports shell completion for bash, and zsh. The completion script can be generated by running the +following command: + +```console +$ aws-nuke completion +``` + +By default, the shell is `bash` unless it can detect the shell you are using. You may specify the shell by using the +`--shell` flag. + +The command will not install the completion script for you, but it will output the script to the console. You can +redirect the output to a file and source it in your shell to enable completion. + +Command and flag completion is supported, however for flags that require a value, the completion will not provide a list +of possible values. + +!!! warning + For flag completion to work you often need to supply only the first `-` and press tab, depending on your shell + configuration `--` followed by a tag will execute the command. + +## Examples + +!!! note + The following are examples of commands you can run depending on your operating system and shell configuration. + +### bash + +```console +aws-nuke completion --shell bash > /etc/bash_completion.d/aws-nuke +``` + +### zsh + +```console +aws-nuke completion --shell zsh > /usr/share/zsh/site-functions/_aws-nuke +``` diff --git a/mkdocs.yml b/mkdocs.yml index 4594c274..c40137c1 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -81,6 +81,7 @@ nav: - CLI: - Usage: cli-usage.md - Options: cli-options.md + - Shell Completion: cli-completion.md - Experimental: cli-experimental.md - Examples: cli-examples.md - Config: From f5305acf9c347956f3e8b12ca4af3644716bba58 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 17 Sep 2024 19:07:29 -0600 Subject: [PATCH 487/617] docs: update docs to match code changes --- docs/config.md | 36 +++++++++++++++++++++++++++++------- 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/docs/config.md b/docs/config.md index ae957352..7034a613 100644 --- a/docs/config.md +++ b/docs/config.md @@ -7,7 +7,8 @@ The configuration is the user supplied configuration that is used to drive the n The configuration is broken down into the following sections: - [blocklist](#blocklist) -- [blocklist-alias-keywords](#blocklist-alias-keywords) +- [blocklist-terms](#blocklist-terms) +- [no-blocklist-terms-default](#no-blocklist-terms-default) - [regions](#regions) - [accounts](#accounts) - [presets](#presets) @@ -32,11 +33,13 @@ The configuration is broken down into the following sections: blocklist: - 1234567890 -blocklist-alias-keywords: +blocklist-terms: - "prod" - "production" - "live" +no-blocklist-terms-default: false # default value + regions: - global - us-east-1 @@ -75,19 +78,38 @@ blocklist: - 1234567890 ``` -## Blocklist Alias Keywords +## Blocklist Terms -`blocklist-alias-keywords` is a list of keywords that the tool will use to block accounts based on their aliases. If -an account alias contains any of the keywords in the list, then the account will be blocked. However if the bypass alias -check flag is set, then this feature has no affect. +`blocklist-terms` is a list of terms that the tool will use to block accounts based on their aliases. If an account +alias contains any of the terms in the list, then the account will be blocked. However, if the bypass alias check flag +is set, then this feature has no affect. ```yaml -blocklist-alias-keywords: +blocklist-terms: - "prod" - "production" - "live" ``` +## No Blocklist Terms Default + +`no-blocklist-terms-default` is a boolean value that determines the default behavior of the blocklist. If set to true, +then the blocklist will be empty by default. If set to false, then the blocklist will be populated by default. + +### Usage + +**Default Value:** `false` + +```yaml +no-blocklist-terms-default: true +``` + +### Default Terms + +```yaml +- prod +``` + ## Regions The `regions` is a list of AWS regions that the tool will run against. The tool will run against all regions specified in the From 5de28a71a7cfdd2d69ce6bce0008ec33f7b60199 Mon Sep 17 00:00:00 2001 From: Jacob Peterson <14127217+Petersoj@users.noreply.github.com> Date: Tue, 17 Sep 2024 21:41:31 -0700 Subject: [PATCH 488/617] fix(wafv2): better api key properties --- resources/wafv2-apikeys.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/resources/wafv2-apikeys.go b/resources/wafv2-apikeys.go index 97978a6c..8aa72cac 100644 --- a/resources/wafv2-apikeys.go +++ b/resources/wafv2-apikeys.go @@ -4,6 +4,7 @@ import ( "context" "strings" + "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/endpoints" @@ -78,6 +79,7 @@ func getAPIKeys(svc *wafv2.WAFV2, params *wafv2.ListAPIKeysInput) ([]resource.Re apiKey: apiKey.APIKey, tokenDomains: tokenDomains, scope: params.Scope, + createdAt: apiKey.CreationTimestamp, }) } @@ -95,6 +97,7 @@ type WAFv2APIKey struct { apiKey *string tokenDomains []string scope *string + createdAt *time.Time } func (f *WAFv2APIKey) Remove(_ context.Context) error { @@ -107,13 +110,15 @@ func (f *WAFv2APIKey) Remove(_ context.Context) error { } func (f *WAFv2APIKey) String() string { - return strings.Join(f.tokenDomains, ", ") + return (*f.apiKey)[:16] } func (f *WAFv2APIKey) Properties() types.Properties { properties := types.NewProperties() properties. - Set("tokenDomains", strings.Join(f.tokenDomains, ", ")) + Set("APIKey", (*f.apiKey)[:16]). + Set("TokenDomains", strings.Join(f.tokenDomains, ", ")). + Set("CreatedAt", f.createdAt.String()) return properties } From e13d81664e15070f1ce1da87b0329cc8c52c8390 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 19 Sep 2024 06:52:10 -0600 Subject: [PATCH 489/617] refactor(cognito): use new standards for naming pointers and files --- ...tity-pools.go => cognito-identity-pool.go} | 10 +++++----- ...viders.go => cognito-identity-provider.go} | 20 +++++++++---------- ...-clients.go => cognito-userpool-client.go} | 20 +++++++++---------- ...-domains.go => cognito-userpool-domain.go} | 12 +++++------ ...gnito-userpools.go => cognito-userpool.go} | 14 ++++++------- 5 files changed, 38 insertions(+), 38 deletions(-) rename resources/{cognito-identity-pools.go => cognito-identity-pool.go} (86%) rename resources/{cognito-identity-providers.go => cognito-identity-provider.go} (81%) rename resources/{cognito-userpool-clients.go => cognito-userpool-client.go} (82%) rename resources/{cognito-userpool-domains.go => cognito-userpool-domain.go} (87%) rename resources/{cognito-userpools.go => cognito-userpool.go} (88%) diff --git a/resources/cognito-identity-pools.go b/resources/cognito-identity-pool.go similarity index 86% rename from resources/cognito-identity-pools.go rename to resources/cognito-identity-pool.go index 7161c95d..259ff078 100644 --- a/resources/cognito-identity-pools.go +++ b/resources/cognito-identity-pool.go @@ -64,14 +64,14 @@ func (l *CognitoIdentityPoolLister) List(_ context.Context, o interface{}) ([]re return resources, nil } -func (f *CognitoIdentityPool) Remove(_ context.Context) error { - _, err := f.svc.DeleteIdentityPool(&cognitoidentity.DeleteIdentityPoolInput{ - IdentityPoolId: f.id, +func (r *CognitoIdentityPool) Remove(_ context.Context) error { + _, err := r.svc.DeleteIdentityPool(&cognitoidentity.DeleteIdentityPoolInput{ + IdentityPoolId: r.id, }) return err } -func (f *CognitoIdentityPool) String() string { - return *f.name +func (r *CognitoIdentityPool) String() string { + return *r.name } diff --git a/resources/cognito-identity-providers.go b/resources/cognito-identity-provider.go similarity index 81% rename from resources/cognito-identity-providers.go rename to resources/cognito-identity-provider.go index fb3417eb..2ca22276 100644 --- a/resources/cognito-identity-providers.go +++ b/resources/cognito-identity-provider.go @@ -90,23 +90,23 @@ type CognitoIdentityProvider struct { userPoolID *string } -func (p *CognitoIdentityProvider) Remove(_ context.Context) error { - _, err := p.svc.DeleteIdentityProvider(&cognitoidentityprovider.DeleteIdentityProviderInput{ - UserPoolId: p.userPoolID, - ProviderName: p.name, +func (r *CognitoIdentityProvider) Remove(_ context.Context) error { + _, err := r.svc.DeleteIdentityProvider(&cognitoidentityprovider.DeleteIdentityProviderInput{ + UserPoolId: r.userPoolID, + ProviderName: r.name, }) return err } -func (p *CognitoIdentityProvider) Properties() types.Properties { +func (r *CognitoIdentityProvider) Properties() types.Properties { properties := types.NewProperties() - properties.Set("Type", p.providerType) - properties.Set("UserPoolName", p.userPoolName) - properties.Set("Name", p.name) + properties.Set("Type", r.providerType) + properties.Set("UserPoolName", r.userPoolName) + properties.Set("Name", r.name) return properties } -func (p *CognitoIdentityProvider) String() string { - return fmt.Sprintf("%s -> %s", ptr.ToString(p.userPoolName), ptr.ToString(p.name)) +func (r *CognitoIdentityProvider) String() string { + return fmt.Sprintf("%s -> %s", ptr.ToString(r.userPoolName), ptr.ToString(r.name)) } diff --git a/resources/cognito-userpool-clients.go b/resources/cognito-userpool-client.go similarity index 82% rename from resources/cognito-userpool-clients.go rename to resources/cognito-userpool-client.go index 90698b5e..5b891443 100644 --- a/resources/cognito-userpool-clients.go +++ b/resources/cognito-userpool-client.go @@ -88,23 +88,23 @@ type CognitoUserPoolClient struct { userPoolID *string } -func (p *CognitoUserPoolClient) Remove(_ context.Context) error { - _, err := p.svc.DeleteUserPoolClient(&cognitoidentityprovider.DeleteUserPoolClientInput{ - ClientId: p.id, - UserPoolId: p.userPoolID, +func (r *CognitoUserPoolClient) Remove(_ context.Context) error { + _, err := r.svc.DeleteUserPoolClient(&cognitoidentityprovider.DeleteUserPoolClientInput{ + ClientId: r.id, + UserPoolId: r.userPoolID, }) return err } -func (p *CognitoUserPoolClient) Properties() types.Properties { +func (r *CognitoUserPoolClient) Properties() types.Properties { properties := types.NewProperties() - properties.Set("ID", p.id) - properties.Set("Name", p.name) - properties.Set("UserPoolName", p.userPoolName) + properties.Set("ID", r.id) + properties.Set("Name", r.name) + properties.Set("UserPoolName", r.userPoolName) return properties } -func (p *CognitoUserPoolClient) String() string { - return fmt.Sprintf("%s -> %s", *p.userPoolName, *p.name) +func (r *CognitoUserPoolClient) String() string { + return fmt.Sprintf("%s -> %s", *r.userPoolName, *r.name) } diff --git a/resources/cognito-userpool-domains.go b/resources/cognito-userpool-domain.go similarity index 87% rename from resources/cognito-userpool-domains.go rename to resources/cognito-userpool-domain.go index 09eed86f..8de833b5 100644 --- a/resources/cognito-userpool-domains.go +++ b/resources/cognito-userpool-domain.go @@ -75,16 +75,16 @@ type CognitoUserPoolDomain struct { userPoolID *string } -func (f *CognitoUserPoolDomain) Remove(_ context.Context) error { +func (r *CognitoUserPoolDomain) Remove(_ context.Context) error { params := &cognitoidentityprovider.DeleteUserPoolDomainInput{ - Domain: f.name, - UserPoolId: f.userPoolID, + Domain: r.name, + UserPoolId: r.userPoolID, } - _, err := f.svc.DeleteUserPoolDomain(params) + _, err := r.svc.DeleteUserPoolDomain(params) return err } -func (f *CognitoUserPoolDomain) String() string { - return fmt.Sprintf("%s -> %s", *f.userPoolName, *f.name) +func (r *CognitoUserPoolDomain) String() string { + return fmt.Sprintf("%s -> %s", *r.userPoolName, *r.name) } diff --git a/resources/cognito-userpools.go b/resources/cognito-userpool.go similarity index 88% rename from resources/cognito-userpools.go rename to resources/cognito-userpool.go index b6a7f526..835c0bd4 100644 --- a/resources/cognito-userpools.go +++ b/resources/cognito-userpool.go @@ -101,18 +101,18 @@ type CognitoUserPool struct { Tags map[string]*string } -func (f *CognitoUserPool) Remove(_ context.Context) error { - _, err := f.svc.DeleteUserPool(&cognitoidentityprovider.DeleteUserPoolInput{ - UserPoolId: f.ID, +func (r *CognitoUserPool) Remove(_ context.Context) error { + _, err := r.svc.DeleteUserPool(&cognitoidentityprovider.DeleteUserPoolInput{ + UserPoolId: r.ID, }) return err } -func (f *CognitoUserPool) Properties() types.Properties { - return types.NewPropertiesFromStruct(f) +func (r *CognitoUserPool) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) } -func (f *CognitoUserPool) String() string { - return *f.Name +func (r *CognitoUserPool) String() string { + return *r.Name } From 3f51bc6291535d70658149fb4af87104191ccafa Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 19 Sep 2024 07:00:21 -0600 Subject: [PATCH 490/617] feat(cognito-userpool): support disable deletion protection --- resources/cognito-userpool.go | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/resources/cognito-userpool.go b/resources/cognito-userpool.go index 835c0bd4..7a2efae8 100644 --- a/resources/cognito-userpool.go +++ b/resources/cognito-userpool.go @@ -3,6 +3,7 @@ package resources import ( "context" "fmt" + "github.com/ekristen/libnuke/pkg/settings" "github.com/gotidy/ptr" "github.com/sirupsen/logrus" @@ -26,6 +27,9 @@ func init() { Name: CognitoUserPoolResource, Scope: nuke.Account, Lister: &CognitoUserPoolLister{}, + Settings: []string{ + "DisableDeletionProtection", + }, DependsOn: []string{ CognitoIdentityPoolResource, CognitoUserPoolClientResource, @@ -95,13 +99,24 @@ func (l *CognitoUserPoolLister) List(_ context.Context, o interface{}) ([]resour } type CognitoUserPool struct { - svc *cognitoidentityprovider.CognitoIdentityProvider - Name *string - ID *string - Tags map[string]*string + svc *cognitoidentityprovider.CognitoIdentityProvider + settings *settings.Setting + Name *string + ID *string + Tags map[string]*string } func (r *CognitoUserPool) Remove(_ context.Context) error { + if r.settings.GetBool("DisableDeletionProtection") { + _, err := r.svc.UpdateUserPool(&cognitoidentityprovider.UpdateUserPoolInput{ + UserPoolId: r.ID, + DeletionProtection: ptr.String("INACTIVE"), + }) + if err != nil { + return err + } + } + _, err := r.svc.DeleteUserPool(&cognitoidentityprovider.DeleteUserPoolInput{ UserPoolId: r.ID, }) @@ -116,3 +131,7 @@ func (r *CognitoUserPool) Properties() types.Properties { func (r *CognitoUserPool) String() string { return *r.Name } + +func (r *CognitoUserPool) Settings(setting *settings.Setting) { + r.settings = setting +} From cfb2306bd9feec2dedb8fd01d6aba8cbe517fdfd Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 19 Sep 2024 07:25:35 -0600 Subject: [PATCH 491/617] test(cognito-userpool): add test coverage --- docs/resources/cognito-user-pool.md | 1 + go.mod | 2 + go.sum | 4 + .../mock_cognitoidentityprovideriface/mock.go | 5484 +++++++++++++++++ resources/cognito-userpool.go | 17 +- resources/cognito-userpool_mock_test.go | 149 + resources/cognito_mock_test.go | 2 + 7 files changed, 5654 insertions(+), 5 deletions(-) create mode 100644 docs/resources/cognito-user-pool.md create mode 100644 mocks/mock_cognitoidentityprovideriface/mock.go create mode 100644 resources/cognito-userpool_mock_test.go create mode 100644 resources/cognito_mock_test.go diff --git a/docs/resources/cognito-user-pool.md b/docs/resources/cognito-user-pool.md new file mode 100644 index 00000000..18d6395a --- /dev/null +++ b/docs/resources/cognito-user-pool.md @@ -0,0 +1 @@ +package resources diff --git a/go.mod b/go.mod index 45c4cc7c..78448ebc 100644 --- a/go.mod +++ b/go.mod @@ -32,8 +32,10 @@ require ( github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/stevenle/topsort v0.2.0 // indirect github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect + golang.org/x/mod v0.17.0 // indirect golang.org/x/sync v0.8.0 // indirect golang.org/x/sys v0.20.0 // indirect + golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect gopkg.in/yaml.v2 v2.4.0 // indirect ) diff --git a/go.sum b/go.sum index f155c702..3bde2c59 100644 --- a/go.sum +++ b/go.sum @@ -66,6 +66,8 @@ go.uber.org/ratelimit v0.3.1/go.mod h1:6euWsTB6U/Nb3X++xEUXA8ciPJvr19Q/0h1+oDcJh golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.17.0 h1:zY54UmvipHiNd+pm+m0x9KhZ9hl1/7QNMyxXbc6ICqA= +golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= @@ -91,6 +93,8 @@ golang.org/x/text v0.18.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d h1:vU5i/LfpvrRCpgM/VPfJLg5KjxD3E+hfT1SH+d9zLwg= +golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/mocks/mock_cognitoidentityprovideriface/mock.go b/mocks/mock_cognitoidentityprovideriface/mock.go new file mode 100644 index 00000000..dfa97a78 --- /dev/null +++ b/mocks/mock_cognitoidentityprovideriface/mock.go @@ -0,0 +1,5484 @@ +// Code generated by MockGen. DO NOT EDIT. +// Source: /Users/ekristen/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.20/service/cognitoidentityprovider/cognitoidentityprovideriface/interface.go + +// Package mock_cognitoidentityprovideriface is a generated GoMock package. +package mock_cognitoidentityprovideriface + +import ( + reflect "reflect" + + aws "github.com/aws/aws-sdk-go/aws" + request "github.com/aws/aws-sdk-go/aws/request" + cognitoidentityprovider "github.com/aws/aws-sdk-go/service/cognitoidentityprovider" + gomock "github.com/golang/mock/gomock" +) + +// MockCognitoIdentityProviderAPI is a mock of CognitoIdentityProviderAPI interface. +type MockCognitoIdentityProviderAPI struct { + ctrl *gomock.Controller + recorder *MockCognitoIdentityProviderAPIMockRecorder +} + +// MockCognitoIdentityProviderAPIMockRecorder is the mock recorder for MockCognitoIdentityProviderAPI. +type MockCognitoIdentityProviderAPIMockRecorder struct { + mock *MockCognitoIdentityProviderAPI +} + +// NewMockCognitoIdentityProviderAPI creates a new mock instance. +func NewMockCognitoIdentityProviderAPI(ctrl *gomock.Controller) *MockCognitoIdentityProviderAPI { + mock := &MockCognitoIdentityProviderAPI{ctrl: ctrl} + mock.recorder = &MockCognitoIdentityProviderAPIMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockCognitoIdentityProviderAPI) EXPECT() *MockCognitoIdentityProviderAPIMockRecorder { + return m.recorder +} + +// AddCustomAttributes mocks base method. +func (m *MockCognitoIdentityProviderAPI) AddCustomAttributes(arg0 *cognitoidentityprovider.AddCustomAttributesInput) (*cognitoidentityprovider.AddCustomAttributesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AddCustomAttributes", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.AddCustomAttributesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AddCustomAttributes indicates an expected call of AddCustomAttributes. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AddCustomAttributes(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddCustomAttributes", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AddCustomAttributes), arg0) +} + +// AddCustomAttributesRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) AddCustomAttributesRequest(arg0 *cognitoidentityprovider.AddCustomAttributesInput) (*request.Request, *cognitoidentityprovider.AddCustomAttributesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AddCustomAttributesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.AddCustomAttributesOutput) + return ret0, ret1 +} + +// AddCustomAttributesRequest indicates an expected call of AddCustomAttributesRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AddCustomAttributesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddCustomAttributesRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AddCustomAttributesRequest), arg0) +} + +// AddCustomAttributesWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) AddCustomAttributesWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.AddCustomAttributesInput, arg2 ...request.Option) (*cognitoidentityprovider.AddCustomAttributesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AddCustomAttributesWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.AddCustomAttributesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AddCustomAttributesWithContext indicates an expected call of AddCustomAttributesWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AddCustomAttributesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddCustomAttributesWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AddCustomAttributesWithContext), varargs...) +} + +// AdminAddUserToGroup mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminAddUserToGroup(arg0 *cognitoidentityprovider.AdminAddUserToGroupInput) (*cognitoidentityprovider.AdminAddUserToGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminAddUserToGroup", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminAddUserToGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminAddUserToGroup indicates an expected call of AdminAddUserToGroup. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminAddUserToGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminAddUserToGroup", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminAddUserToGroup), arg0) +} + +// AdminAddUserToGroupRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminAddUserToGroupRequest(arg0 *cognitoidentityprovider.AdminAddUserToGroupInput) (*request.Request, *cognitoidentityprovider.AdminAddUserToGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminAddUserToGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.AdminAddUserToGroupOutput) + return ret0, ret1 +} + +// AdminAddUserToGroupRequest indicates an expected call of AdminAddUserToGroupRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminAddUserToGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminAddUserToGroupRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminAddUserToGroupRequest), arg0) +} + +// AdminAddUserToGroupWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminAddUserToGroupWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.AdminAddUserToGroupInput, arg2 ...request.Option) (*cognitoidentityprovider.AdminAddUserToGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AdminAddUserToGroupWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminAddUserToGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminAddUserToGroupWithContext indicates an expected call of AdminAddUserToGroupWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminAddUserToGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminAddUserToGroupWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminAddUserToGroupWithContext), varargs...) +} + +// AdminConfirmSignUp mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminConfirmSignUp(arg0 *cognitoidentityprovider.AdminConfirmSignUpInput) (*cognitoidentityprovider.AdminConfirmSignUpOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminConfirmSignUp", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminConfirmSignUpOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminConfirmSignUp indicates an expected call of AdminConfirmSignUp. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminConfirmSignUp(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminConfirmSignUp", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminConfirmSignUp), arg0) +} + +// AdminConfirmSignUpRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminConfirmSignUpRequest(arg0 *cognitoidentityprovider.AdminConfirmSignUpInput) (*request.Request, *cognitoidentityprovider.AdminConfirmSignUpOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminConfirmSignUpRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.AdminConfirmSignUpOutput) + return ret0, ret1 +} + +// AdminConfirmSignUpRequest indicates an expected call of AdminConfirmSignUpRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminConfirmSignUpRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminConfirmSignUpRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminConfirmSignUpRequest), arg0) +} + +// AdminConfirmSignUpWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminConfirmSignUpWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.AdminConfirmSignUpInput, arg2 ...request.Option) (*cognitoidentityprovider.AdminConfirmSignUpOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AdminConfirmSignUpWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminConfirmSignUpOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminConfirmSignUpWithContext indicates an expected call of AdminConfirmSignUpWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminConfirmSignUpWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminConfirmSignUpWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminConfirmSignUpWithContext), varargs...) +} + +// AdminCreateUser mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminCreateUser(arg0 *cognitoidentityprovider.AdminCreateUserInput) (*cognitoidentityprovider.AdminCreateUserOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminCreateUser", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminCreateUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminCreateUser indicates an expected call of AdminCreateUser. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminCreateUser(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminCreateUser", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminCreateUser), arg0) +} + +// AdminCreateUserRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminCreateUserRequest(arg0 *cognitoidentityprovider.AdminCreateUserInput) (*request.Request, *cognitoidentityprovider.AdminCreateUserOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminCreateUserRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.AdminCreateUserOutput) + return ret0, ret1 +} + +// AdminCreateUserRequest indicates an expected call of AdminCreateUserRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminCreateUserRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminCreateUserRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminCreateUserRequest), arg0) +} + +// AdminCreateUserWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminCreateUserWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.AdminCreateUserInput, arg2 ...request.Option) (*cognitoidentityprovider.AdminCreateUserOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AdminCreateUserWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminCreateUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminCreateUserWithContext indicates an expected call of AdminCreateUserWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminCreateUserWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminCreateUserWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminCreateUserWithContext), varargs...) +} + +// AdminDeleteUser mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminDeleteUser(arg0 *cognitoidentityprovider.AdminDeleteUserInput) (*cognitoidentityprovider.AdminDeleteUserOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminDeleteUser", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminDeleteUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminDeleteUser indicates an expected call of AdminDeleteUser. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminDeleteUser(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDeleteUser", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminDeleteUser), arg0) +} + +// AdminDeleteUserAttributes mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminDeleteUserAttributes(arg0 *cognitoidentityprovider.AdminDeleteUserAttributesInput) (*cognitoidentityprovider.AdminDeleteUserAttributesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminDeleteUserAttributes", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminDeleteUserAttributesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminDeleteUserAttributes indicates an expected call of AdminDeleteUserAttributes. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminDeleteUserAttributes(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDeleteUserAttributes", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminDeleteUserAttributes), arg0) +} + +// AdminDeleteUserAttributesRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminDeleteUserAttributesRequest(arg0 *cognitoidentityprovider.AdminDeleteUserAttributesInput) (*request.Request, *cognitoidentityprovider.AdminDeleteUserAttributesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminDeleteUserAttributesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.AdminDeleteUserAttributesOutput) + return ret0, ret1 +} + +// AdminDeleteUserAttributesRequest indicates an expected call of AdminDeleteUserAttributesRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminDeleteUserAttributesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDeleteUserAttributesRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminDeleteUserAttributesRequest), arg0) +} + +// AdminDeleteUserAttributesWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminDeleteUserAttributesWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.AdminDeleteUserAttributesInput, arg2 ...request.Option) (*cognitoidentityprovider.AdminDeleteUserAttributesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AdminDeleteUserAttributesWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminDeleteUserAttributesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminDeleteUserAttributesWithContext indicates an expected call of AdminDeleteUserAttributesWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminDeleteUserAttributesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDeleteUserAttributesWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminDeleteUserAttributesWithContext), varargs...) +} + +// AdminDeleteUserRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminDeleteUserRequest(arg0 *cognitoidentityprovider.AdminDeleteUserInput) (*request.Request, *cognitoidentityprovider.AdminDeleteUserOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminDeleteUserRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.AdminDeleteUserOutput) + return ret0, ret1 +} + +// AdminDeleteUserRequest indicates an expected call of AdminDeleteUserRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminDeleteUserRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDeleteUserRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminDeleteUserRequest), arg0) +} + +// AdminDeleteUserWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminDeleteUserWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.AdminDeleteUserInput, arg2 ...request.Option) (*cognitoidentityprovider.AdminDeleteUserOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AdminDeleteUserWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminDeleteUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminDeleteUserWithContext indicates an expected call of AdminDeleteUserWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminDeleteUserWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDeleteUserWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminDeleteUserWithContext), varargs...) +} + +// AdminDisableProviderForUser mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminDisableProviderForUser(arg0 *cognitoidentityprovider.AdminDisableProviderForUserInput) (*cognitoidentityprovider.AdminDisableProviderForUserOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminDisableProviderForUser", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminDisableProviderForUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminDisableProviderForUser indicates an expected call of AdminDisableProviderForUser. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminDisableProviderForUser(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDisableProviderForUser", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminDisableProviderForUser), arg0) +} + +// AdminDisableProviderForUserRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminDisableProviderForUserRequest(arg0 *cognitoidentityprovider.AdminDisableProviderForUserInput) (*request.Request, *cognitoidentityprovider.AdminDisableProviderForUserOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminDisableProviderForUserRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.AdminDisableProviderForUserOutput) + return ret0, ret1 +} + +// AdminDisableProviderForUserRequest indicates an expected call of AdminDisableProviderForUserRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminDisableProviderForUserRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDisableProviderForUserRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminDisableProviderForUserRequest), arg0) +} + +// AdminDisableProviderForUserWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminDisableProviderForUserWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.AdminDisableProviderForUserInput, arg2 ...request.Option) (*cognitoidentityprovider.AdminDisableProviderForUserOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AdminDisableProviderForUserWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminDisableProviderForUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminDisableProviderForUserWithContext indicates an expected call of AdminDisableProviderForUserWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminDisableProviderForUserWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDisableProviderForUserWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminDisableProviderForUserWithContext), varargs...) +} + +// AdminDisableUser mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminDisableUser(arg0 *cognitoidentityprovider.AdminDisableUserInput) (*cognitoidentityprovider.AdminDisableUserOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminDisableUser", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminDisableUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminDisableUser indicates an expected call of AdminDisableUser. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminDisableUser(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDisableUser", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminDisableUser), arg0) +} + +// AdminDisableUserRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminDisableUserRequest(arg0 *cognitoidentityprovider.AdminDisableUserInput) (*request.Request, *cognitoidentityprovider.AdminDisableUserOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminDisableUserRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.AdminDisableUserOutput) + return ret0, ret1 +} + +// AdminDisableUserRequest indicates an expected call of AdminDisableUserRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminDisableUserRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDisableUserRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminDisableUserRequest), arg0) +} + +// AdminDisableUserWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminDisableUserWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.AdminDisableUserInput, arg2 ...request.Option) (*cognitoidentityprovider.AdminDisableUserOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AdminDisableUserWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminDisableUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminDisableUserWithContext indicates an expected call of AdminDisableUserWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminDisableUserWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminDisableUserWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminDisableUserWithContext), varargs...) +} + +// AdminEnableUser mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminEnableUser(arg0 *cognitoidentityprovider.AdminEnableUserInput) (*cognitoidentityprovider.AdminEnableUserOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminEnableUser", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminEnableUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminEnableUser indicates an expected call of AdminEnableUser. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminEnableUser(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminEnableUser", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminEnableUser), arg0) +} + +// AdminEnableUserRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminEnableUserRequest(arg0 *cognitoidentityprovider.AdminEnableUserInput) (*request.Request, *cognitoidentityprovider.AdminEnableUserOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminEnableUserRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.AdminEnableUserOutput) + return ret0, ret1 +} + +// AdminEnableUserRequest indicates an expected call of AdminEnableUserRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminEnableUserRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminEnableUserRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminEnableUserRequest), arg0) +} + +// AdminEnableUserWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminEnableUserWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.AdminEnableUserInput, arg2 ...request.Option) (*cognitoidentityprovider.AdminEnableUserOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AdminEnableUserWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminEnableUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminEnableUserWithContext indicates an expected call of AdminEnableUserWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminEnableUserWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminEnableUserWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminEnableUserWithContext), varargs...) +} + +// AdminForgetDevice mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminForgetDevice(arg0 *cognitoidentityprovider.AdminForgetDeviceInput) (*cognitoidentityprovider.AdminForgetDeviceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminForgetDevice", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminForgetDeviceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminForgetDevice indicates an expected call of AdminForgetDevice. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminForgetDevice(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminForgetDevice", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminForgetDevice), arg0) +} + +// AdminForgetDeviceRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminForgetDeviceRequest(arg0 *cognitoidentityprovider.AdminForgetDeviceInput) (*request.Request, *cognitoidentityprovider.AdminForgetDeviceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminForgetDeviceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.AdminForgetDeviceOutput) + return ret0, ret1 +} + +// AdminForgetDeviceRequest indicates an expected call of AdminForgetDeviceRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminForgetDeviceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminForgetDeviceRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminForgetDeviceRequest), arg0) +} + +// AdminForgetDeviceWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminForgetDeviceWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.AdminForgetDeviceInput, arg2 ...request.Option) (*cognitoidentityprovider.AdminForgetDeviceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AdminForgetDeviceWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminForgetDeviceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminForgetDeviceWithContext indicates an expected call of AdminForgetDeviceWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminForgetDeviceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminForgetDeviceWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminForgetDeviceWithContext), varargs...) +} + +// AdminGetDevice mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminGetDevice(arg0 *cognitoidentityprovider.AdminGetDeviceInput) (*cognitoidentityprovider.AdminGetDeviceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminGetDevice", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminGetDeviceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminGetDevice indicates an expected call of AdminGetDevice. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminGetDevice(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminGetDevice", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminGetDevice), arg0) +} + +// AdminGetDeviceRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminGetDeviceRequest(arg0 *cognitoidentityprovider.AdminGetDeviceInput) (*request.Request, *cognitoidentityprovider.AdminGetDeviceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminGetDeviceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.AdminGetDeviceOutput) + return ret0, ret1 +} + +// AdminGetDeviceRequest indicates an expected call of AdminGetDeviceRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminGetDeviceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminGetDeviceRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminGetDeviceRequest), arg0) +} + +// AdminGetDeviceWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminGetDeviceWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.AdminGetDeviceInput, arg2 ...request.Option) (*cognitoidentityprovider.AdminGetDeviceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AdminGetDeviceWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminGetDeviceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminGetDeviceWithContext indicates an expected call of AdminGetDeviceWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminGetDeviceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminGetDeviceWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminGetDeviceWithContext), varargs...) +} + +// AdminGetUser mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminGetUser(arg0 *cognitoidentityprovider.AdminGetUserInput) (*cognitoidentityprovider.AdminGetUserOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminGetUser", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminGetUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminGetUser indicates an expected call of AdminGetUser. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminGetUser(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminGetUser", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminGetUser), arg0) +} + +// AdminGetUserRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminGetUserRequest(arg0 *cognitoidentityprovider.AdminGetUserInput) (*request.Request, *cognitoidentityprovider.AdminGetUserOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminGetUserRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.AdminGetUserOutput) + return ret0, ret1 +} + +// AdminGetUserRequest indicates an expected call of AdminGetUserRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminGetUserRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminGetUserRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminGetUserRequest), arg0) +} + +// AdminGetUserWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminGetUserWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.AdminGetUserInput, arg2 ...request.Option) (*cognitoidentityprovider.AdminGetUserOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AdminGetUserWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminGetUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminGetUserWithContext indicates an expected call of AdminGetUserWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminGetUserWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminGetUserWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminGetUserWithContext), varargs...) +} + +// AdminInitiateAuth mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminInitiateAuth(arg0 *cognitoidentityprovider.AdminInitiateAuthInput) (*cognitoidentityprovider.AdminInitiateAuthOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminInitiateAuth", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminInitiateAuthOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminInitiateAuth indicates an expected call of AdminInitiateAuth. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminInitiateAuth(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminInitiateAuth", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminInitiateAuth), arg0) +} + +// AdminInitiateAuthRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminInitiateAuthRequest(arg0 *cognitoidentityprovider.AdminInitiateAuthInput) (*request.Request, *cognitoidentityprovider.AdminInitiateAuthOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminInitiateAuthRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.AdminInitiateAuthOutput) + return ret0, ret1 +} + +// AdminInitiateAuthRequest indicates an expected call of AdminInitiateAuthRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminInitiateAuthRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminInitiateAuthRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminInitiateAuthRequest), arg0) +} + +// AdminInitiateAuthWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminInitiateAuthWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.AdminInitiateAuthInput, arg2 ...request.Option) (*cognitoidentityprovider.AdminInitiateAuthOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AdminInitiateAuthWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminInitiateAuthOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminInitiateAuthWithContext indicates an expected call of AdminInitiateAuthWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminInitiateAuthWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminInitiateAuthWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminInitiateAuthWithContext), varargs...) +} + +// AdminLinkProviderForUser mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminLinkProviderForUser(arg0 *cognitoidentityprovider.AdminLinkProviderForUserInput) (*cognitoidentityprovider.AdminLinkProviderForUserOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminLinkProviderForUser", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminLinkProviderForUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminLinkProviderForUser indicates an expected call of AdminLinkProviderForUser. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminLinkProviderForUser(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminLinkProviderForUser", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminLinkProviderForUser), arg0) +} + +// AdminLinkProviderForUserRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminLinkProviderForUserRequest(arg0 *cognitoidentityprovider.AdminLinkProviderForUserInput) (*request.Request, *cognitoidentityprovider.AdminLinkProviderForUserOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminLinkProviderForUserRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.AdminLinkProviderForUserOutput) + return ret0, ret1 +} + +// AdminLinkProviderForUserRequest indicates an expected call of AdminLinkProviderForUserRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminLinkProviderForUserRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminLinkProviderForUserRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminLinkProviderForUserRequest), arg0) +} + +// AdminLinkProviderForUserWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminLinkProviderForUserWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.AdminLinkProviderForUserInput, arg2 ...request.Option) (*cognitoidentityprovider.AdminLinkProviderForUserOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AdminLinkProviderForUserWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminLinkProviderForUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminLinkProviderForUserWithContext indicates an expected call of AdminLinkProviderForUserWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminLinkProviderForUserWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminLinkProviderForUserWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminLinkProviderForUserWithContext), varargs...) +} + +// AdminListDevices mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminListDevices(arg0 *cognitoidentityprovider.AdminListDevicesInput) (*cognitoidentityprovider.AdminListDevicesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminListDevices", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminListDevicesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminListDevices indicates an expected call of AdminListDevices. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminListDevices(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminListDevices", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminListDevices), arg0) +} + +// AdminListDevicesRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminListDevicesRequest(arg0 *cognitoidentityprovider.AdminListDevicesInput) (*request.Request, *cognitoidentityprovider.AdminListDevicesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminListDevicesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.AdminListDevicesOutput) + return ret0, ret1 +} + +// AdminListDevicesRequest indicates an expected call of AdminListDevicesRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminListDevicesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminListDevicesRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminListDevicesRequest), arg0) +} + +// AdminListDevicesWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminListDevicesWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.AdminListDevicesInput, arg2 ...request.Option) (*cognitoidentityprovider.AdminListDevicesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AdminListDevicesWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminListDevicesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminListDevicesWithContext indicates an expected call of AdminListDevicesWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminListDevicesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminListDevicesWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminListDevicesWithContext), varargs...) +} + +// AdminListGroupsForUser mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminListGroupsForUser(arg0 *cognitoidentityprovider.AdminListGroupsForUserInput) (*cognitoidentityprovider.AdminListGroupsForUserOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminListGroupsForUser", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminListGroupsForUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminListGroupsForUser indicates an expected call of AdminListGroupsForUser. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminListGroupsForUser(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminListGroupsForUser", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminListGroupsForUser), arg0) +} + +// AdminListGroupsForUserPages mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminListGroupsForUserPages(arg0 *cognitoidentityprovider.AdminListGroupsForUserInput, arg1 func(*cognitoidentityprovider.AdminListGroupsForUserOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminListGroupsForUserPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// AdminListGroupsForUserPages indicates an expected call of AdminListGroupsForUserPages. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminListGroupsForUserPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminListGroupsForUserPages", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminListGroupsForUserPages), arg0, arg1) +} + +// AdminListGroupsForUserPagesWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminListGroupsForUserPagesWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.AdminListGroupsForUserInput, arg2 func(*cognitoidentityprovider.AdminListGroupsForUserOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AdminListGroupsForUserPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// AdminListGroupsForUserPagesWithContext indicates an expected call of AdminListGroupsForUserPagesWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminListGroupsForUserPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminListGroupsForUserPagesWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminListGroupsForUserPagesWithContext), varargs...) +} + +// AdminListGroupsForUserRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminListGroupsForUserRequest(arg0 *cognitoidentityprovider.AdminListGroupsForUserInput) (*request.Request, *cognitoidentityprovider.AdminListGroupsForUserOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminListGroupsForUserRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.AdminListGroupsForUserOutput) + return ret0, ret1 +} + +// AdminListGroupsForUserRequest indicates an expected call of AdminListGroupsForUserRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminListGroupsForUserRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminListGroupsForUserRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminListGroupsForUserRequest), arg0) +} + +// AdminListGroupsForUserWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminListGroupsForUserWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.AdminListGroupsForUserInput, arg2 ...request.Option) (*cognitoidentityprovider.AdminListGroupsForUserOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AdminListGroupsForUserWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminListGroupsForUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminListGroupsForUserWithContext indicates an expected call of AdminListGroupsForUserWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminListGroupsForUserWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminListGroupsForUserWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminListGroupsForUserWithContext), varargs...) +} + +// AdminListUserAuthEvents mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminListUserAuthEvents(arg0 *cognitoidentityprovider.AdminListUserAuthEventsInput) (*cognitoidentityprovider.AdminListUserAuthEventsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminListUserAuthEvents", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminListUserAuthEventsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminListUserAuthEvents indicates an expected call of AdminListUserAuthEvents. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminListUserAuthEvents(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminListUserAuthEvents", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminListUserAuthEvents), arg0) +} + +// AdminListUserAuthEventsPages mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminListUserAuthEventsPages(arg0 *cognitoidentityprovider.AdminListUserAuthEventsInput, arg1 func(*cognitoidentityprovider.AdminListUserAuthEventsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminListUserAuthEventsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// AdminListUserAuthEventsPages indicates an expected call of AdminListUserAuthEventsPages. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminListUserAuthEventsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminListUserAuthEventsPages", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminListUserAuthEventsPages), arg0, arg1) +} + +// AdminListUserAuthEventsPagesWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminListUserAuthEventsPagesWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.AdminListUserAuthEventsInput, arg2 func(*cognitoidentityprovider.AdminListUserAuthEventsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AdminListUserAuthEventsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// AdminListUserAuthEventsPagesWithContext indicates an expected call of AdminListUserAuthEventsPagesWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminListUserAuthEventsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminListUserAuthEventsPagesWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminListUserAuthEventsPagesWithContext), varargs...) +} + +// AdminListUserAuthEventsRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminListUserAuthEventsRequest(arg0 *cognitoidentityprovider.AdminListUserAuthEventsInput) (*request.Request, *cognitoidentityprovider.AdminListUserAuthEventsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminListUserAuthEventsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.AdminListUserAuthEventsOutput) + return ret0, ret1 +} + +// AdminListUserAuthEventsRequest indicates an expected call of AdminListUserAuthEventsRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminListUserAuthEventsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminListUserAuthEventsRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminListUserAuthEventsRequest), arg0) +} + +// AdminListUserAuthEventsWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminListUserAuthEventsWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.AdminListUserAuthEventsInput, arg2 ...request.Option) (*cognitoidentityprovider.AdminListUserAuthEventsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AdminListUserAuthEventsWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminListUserAuthEventsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminListUserAuthEventsWithContext indicates an expected call of AdminListUserAuthEventsWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminListUserAuthEventsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminListUserAuthEventsWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminListUserAuthEventsWithContext), varargs...) +} + +// AdminRemoveUserFromGroup mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminRemoveUserFromGroup(arg0 *cognitoidentityprovider.AdminRemoveUserFromGroupInput) (*cognitoidentityprovider.AdminRemoveUserFromGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminRemoveUserFromGroup", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminRemoveUserFromGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminRemoveUserFromGroup indicates an expected call of AdminRemoveUserFromGroup. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminRemoveUserFromGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminRemoveUserFromGroup", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminRemoveUserFromGroup), arg0) +} + +// AdminRemoveUserFromGroupRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminRemoveUserFromGroupRequest(arg0 *cognitoidentityprovider.AdminRemoveUserFromGroupInput) (*request.Request, *cognitoidentityprovider.AdminRemoveUserFromGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminRemoveUserFromGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.AdminRemoveUserFromGroupOutput) + return ret0, ret1 +} + +// AdminRemoveUserFromGroupRequest indicates an expected call of AdminRemoveUserFromGroupRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminRemoveUserFromGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminRemoveUserFromGroupRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminRemoveUserFromGroupRequest), arg0) +} + +// AdminRemoveUserFromGroupWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminRemoveUserFromGroupWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.AdminRemoveUserFromGroupInput, arg2 ...request.Option) (*cognitoidentityprovider.AdminRemoveUserFromGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AdminRemoveUserFromGroupWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminRemoveUserFromGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminRemoveUserFromGroupWithContext indicates an expected call of AdminRemoveUserFromGroupWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminRemoveUserFromGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminRemoveUserFromGroupWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminRemoveUserFromGroupWithContext), varargs...) +} + +// AdminResetUserPassword mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminResetUserPassword(arg0 *cognitoidentityprovider.AdminResetUserPasswordInput) (*cognitoidentityprovider.AdminResetUserPasswordOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminResetUserPassword", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminResetUserPasswordOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminResetUserPassword indicates an expected call of AdminResetUserPassword. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminResetUserPassword(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminResetUserPassword", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminResetUserPassword), arg0) +} + +// AdminResetUserPasswordRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminResetUserPasswordRequest(arg0 *cognitoidentityprovider.AdminResetUserPasswordInput) (*request.Request, *cognitoidentityprovider.AdminResetUserPasswordOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminResetUserPasswordRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.AdminResetUserPasswordOutput) + return ret0, ret1 +} + +// AdminResetUserPasswordRequest indicates an expected call of AdminResetUserPasswordRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminResetUserPasswordRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminResetUserPasswordRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminResetUserPasswordRequest), arg0) +} + +// AdminResetUserPasswordWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminResetUserPasswordWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.AdminResetUserPasswordInput, arg2 ...request.Option) (*cognitoidentityprovider.AdminResetUserPasswordOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AdminResetUserPasswordWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminResetUserPasswordOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminResetUserPasswordWithContext indicates an expected call of AdminResetUserPasswordWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminResetUserPasswordWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminResetUserPasswordWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminResetUserPasswordWithContext), varargs...) +} + +// AdminRespondToAuthChallenge mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminRespondToAuthChallenge(arg0 *cognitoidentityprovider.AdminRespondToAuthChallengeInput) (*cognitoidentityprovider.AdminRespondToAuthChallengeOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminRespondToAuthChallenge", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminRespondToAuthChallengeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminRespondToAuthChallenge indicates an expected call of AdminRespondToAuthChallenge. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminRespondToAuthChallenge(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminRespondToAuthChallenge", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminRespondToAuthChallenge), arg0) +} + +// AdminRespondToAuthChallengeRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminRespondToAuthChallengeRequest(arg0 *cognitoidentityprovider.AdminRespondToAuthChallengeInput) (*request.Request, *cognitoidentityprovider.AdminRespondToAuthChallengeOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminRespondToAuthChallengeRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.AdminRespondToAuthChallengeOutput) + return ret0, ret1 +} + +// AdminRespondToAuthChallengeRequest indicates an expected call of AdminRespondToAuthChallengeRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminRespondToAuthChallengeRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminRespondToAuthChallengeRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminRespondToAuthChallengeRequest), arg0) +} + +// AdminRespondToAuthChallengeWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminRespondToAuthChallengeWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.AdminRespondToAuthChallengeInput, arg2 ...request.Option) (*cognitoidentityprovider.AdminRespondToAuthChallengeOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AdminRespondToAuthChallengeWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminRespondToAuthChallengeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminRespondToAuthChallengeWithContext indicates an expected call of AdminRespondToAuthChallengeWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminRespondToAuthChallengeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminRespondToAuthChallengeWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminRespondToAuthChallengeWithContext), varargs...) +} + +// AdminSetUserMFAPreference mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminSetUserMFAPreference(arg0 *cognitoidentityprovider.AdminSetUserMFAPreferenceInput) (*cognitoidentityprovider.AdminSetUserMFAPreferenceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminSetUserMFAPreference", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminSetUserMFAPreferenceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminSetUserMFAPreference indicates an expected call of AdminSetUserMFAPreference. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminSetUserMFAPreference(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminSetUserMFAPreference", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminSetUserMFAPreference), arg0) +} + +// AdminSetUserMFAPreferenceRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminSetUserMFAPreferenceRequest(arg0 *cognitoidentityprovider.AdminSetUserMFAPreferenceInput) (*request.Request, *cognitoidentityprovider.AdminSetUserMFAPreferenceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminSetUserMFAPreferenceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.AdminSetUserMFAPreferenceOutput) + return ret0, ret1 +} + +// AdminSetUserMFAPreferenceRequest indicates an expected call of AdminSetUserMFAPreferenceRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminSetUserMFAPreferenceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminSetUserMFAPreferenceRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminSetUserMFAPreferenceRequest), arg0) +} + +// AdminSetUserMFAPreferenceWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminSetUserMFAPreferenceWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.AdminSetUserMFAPreferenceInput, arg2 ...request.Option) (*cognitoidentityprovider.AdminSetUserMFAPreferenceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AdminSetUserMFAPreferenceWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminSetUserMFAPreferenceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminSetUserMFAPreferenceWithContext indicates an expected call of AdminSetUserMFAPreferenceWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminSetUserMFAPreferenceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminSetUserMFAPreferenceWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminSetUserMFAPreferenceWithContext), varargs...) +} + +// AdminSetUserPassword mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminSetUserPassword(arg0 *cognitoidentityprovider.AdminSetUserPasswordInput) (*cognitoidentityprovider.AdminSetUserPasswordOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminSetUserPassword", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminSetUserPasswordOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminSetUserPassword indicates an expected call of AdminSetUserPassword. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminSetUserPassword(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminSetUserPassword", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminSetUserPassword), arg0) +} + +// AdminSetUserPasswordRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminSetUserPasswordRequest(arg0 *cognitoidentityprovider.AdminSetUserPasswordInput) (*request.Request, *cognitoidentityprovider.AdminSetUserPasswordOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminSetUserPasswordRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.AdminSetUserPasswordOutput) + return ret0, ret1 +} + +// AdminSetUserPasswordRequest indicates an expected call of AdminSetUserPasswordRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminSetUserPasswordRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminSetUserPasswordRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminSetUserPasswordRequest), arg0) +} + +// AdminSetUserPasswordWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminSetUserPasswordWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.AdminSetUserPasswordInput, arg2 ...request.Option) (*cognitoidentityprovider.AdminSetUserPasswordOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AdminSetUserPasswordWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminSetUserPasswordOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminSetUserPasswordWithContext indicates an expected call of AdminSetUserPasswordWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminSetUserPasswordWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminSetUserPasswordWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminSetUserPasswordWithContext), varargs...) +} + +// AdminSetUserSettings mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminSetUserSettings(arg0 *cognitoidentityprovider.AdminSetUserSettingsInput) (*cognitoidentityprovider.AdminSetUserSettingsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminSetUserSettings", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminSetUserSettingsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminSetUserSettings indicates an expected call of AdminSetUserSettings. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminSetUserSettings(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminSetUserSettings", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminSetUserSettings), arg0) +} + +// AdminSetUserSettingsRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminSetUserSettingsRequest(arg0 *cognitoidentityprovider.AdminSetUserSettingsInput) (*request.Request, *cognitoidentityprovider.AdminSetUserSettingsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminSetUserSettingsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.AdminSetUserSettingsOutput) + return ret0, ret1 +} + +// AdminSetUserSettingsRequest indicates an expected call of AdminSetUserSettingsRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminSetUserSettingsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminSetUserSettingsRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminSetUserSettingsRequest), arg0) +} + +// AdminSetUserSettingsWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminSetUserSettingsWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.AdminSetUserSettingsInput, arg2 ...request.Option) (*cognitoidentityprovider.AdminSetUserSettingsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AdminSetUserSettingsWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminSetUserSettingsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminSetUserSettingsWithContext indicates an expected call of AdminSetUserSettingsWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminSetUserSettingsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminSetUserSettingsWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminSetUserSettingsWithContext), varargs...) +} + +// AdminUpdateAuthEventFeedback mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminUpdateAuthEventFeedback(arg0 *cognitoidentityprovider.AdminUpdateAuthEventFeedbackInput) (*cognitoidentityprovider.AdminUpdateAuthEventFeedbackOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminUpdateAuthEventFeedback", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminUpdateAuthEventFeedbackOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminUpdateAuthEventFeedback indicates an expected call of AdminUpdateAuthEventFeedback. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminUpdateAuthEventFeedback(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminUpdateAuthEventFeedback", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminUpdateAuthEventFeedback), arg0) +} + +// AdminUpdateAuthEventFeedbackRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminUpdateAuthEventFeedbackRequest(arg0 *cognitoidentityprovider.AdminUpdateAuthEventFeedbackInput) (*request.Request, *cognitoidentityprovider.AdminUpdateAuthEventFeedbackOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminUpdateAuthEventFeedbackRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.AdminUpdateAuthEventFeedbackOutput) + return ret0, ret1 +} + +// AdminUpdateAuthEventFeedbackRequest indicates an expected call of AdminUpdateAuthEventFeedbackRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminUpdateAuthEventFeedbackRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminUpdateAuthEventFeedbackRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminUpdateAuthEventFeedbackRequest), arg0) +} + +// AdminUpdateAuthEventFeedbackWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminUpdateAuthEventFeedbackWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.AdminUpdateAuthEventFeedbackInput, arg2 ...request.Option) (*cognitoidentityprovider.AdminUpdateAuthEventFeedbackOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AdminUpdateAuthEventFeedbackWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminUpdateAuthEventFeedbackOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminUpdateAuthEventFeedbackWithContext indicates an expected call of AdminUpdateAuthEventFeedbackWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminUpdateAuthEventFeedbackWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminUpdateAuthEventFeedbackWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminUpdateAuthEventFeedbackWithContext), varargs...) +} + +// AdminUpdateDeviceStatus mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminUpdateDeviceStatus(arg0 *cognitoidentityprovider.AdminUpdateDeviceStatusInput) (*cognitoidentityprovider.AdminUpdateDeviceStatusOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminUpdateDeviceStatus", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminUpdateDeviceStatusOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminUpdateDeviceStatus indicates an expected call of AdminUpdateDeviceStatus. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminUpdateDeviceStatus(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminUpdateDeviceStatus", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminUpdateDeviceStatus), arg0) +} + +// AdminUpdateDeviceStatusRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminUpdateDeviceStatusRequest(arg0 *cognitoidentityprovider.AdminUpdateDeviceStatusInput) (*request.Request, *cognitoidentityprovider.AdminUpdateDeviceStatusOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminUpdateDeviceStatusRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.AdminUpdateDeviceStatusOutput) + return ret0, ret1 +} + +// AdminUpdateDeviceStatusRequest indicates an expected call of AdminUpdateDeviceStatusRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminUpdateDeviceStatusRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminUpdateDeviceStatusRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminUpdateDeviceStatusRequest), arg0) +} + +// AdminUpdateDeviceStatusWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminUpdateDeviceStatusWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.AdminUpdateDeviceStatusInput, arg2 ...request.Option) (*cognitoidentityprovider.AdminUpdateDeviceStatusOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AdminUpdateDeviceStatusWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminUpdateDeviceStatusOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminUpdateDeviceStatusWithContext indicates an expected call of AdminUpdateDeviceStatusWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminUpdateDeviceStatusWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminUpdateDeviceStatusWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminUpdateDeviceStatusWithContext), varargs...) +} + +// AdminUpdateUserAttributes mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminUpdateUserAttributes(arg0 *cognitoidentityprovider.AdminUpdateUserAttributesInput) (*cognitoidentityprovider.AdminUpdateUserAttributesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminUpdateUserAttributes", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminUpdateUserAttributesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminUpdateUserAttributes indicates an expected call of AdminUpdateUserAttributes. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminUpdateUserAttributes(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminUpdateUserAttributes", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminUpdateUserAttributes), arg0) +} + +// AdminUpdateUserAttributesRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminUpdateUserAttributesRequest(arg0 *cognitoidentityprovider.AdminUpdateUserAttributesInput) (*request.Request, *cognitoidentityprovider.AdminUpdateUserAttributesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminUpdateUserAttributesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.AdminUpdateUserAttributesOutput) + return ret0, ret1 +} + +// AdminUpdateUserAttributesRequest indicates an expected call of AdminUpdateUserAttributesRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminUpdateUserAttributesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminUpdateUserAttributesRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminUpdateUserAttributesRequest), arg0) +} + +// AdminUpdateUserAttributesWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminUpdateUserAttributesWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.AdminUpdateUserAttributesInput, arg2 ...request.Option) (*cognitoidentityprovider.AdminUpdateUserAttributesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AdminUpdateUserAttributesWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminUpdateUserAttributesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminUpdateUserAttributesWithContext indicates an expected call of AdminUpdateUserAttributesWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminUpdateUserAttributesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminUpdateUserAttributesWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminUpdateUserAttributesWithContext), varargs...) +} + +// AdminUserGlobalSignOut mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminUserGlobalSignOut(arg0 *cognitoidentityprovider.AdminUserGlobalSignOutInput) (*cognitoidentityprovider.AdminUserGlobalSignOutOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminUserGlobalSignOut", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminUserGlobalSignOutOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminUserGlobalSignOut indicates an expected call of AdminUserGlobalSignOut. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminUserGlobalSignOut(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminUserGlobalSignOut", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminUserGlobalSignOut), arg0) +} + +// AdminUserGlobalSignOutRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminUserGlobalSignOutRequest(arg0 *cognitoidentityprovider.AdminUserGlobalSignOutInput) (*request.Request, *cognitoidentityprovider.AdminUserGlobalSignOutOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AdminUserGlobalSignOutRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.AdminUserGlobalSignOutOutput) + return ret0, ret1 +} + +// AdminUserGlobalSignOutRequest indicates an expected call of AdminUserGlobalSignOutRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminUserGlobalSignOutRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminUserGlobalSignOutRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminUserGlobalSignOutRequest), arg0) +} + +// AdminUserGlobalSignOutWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) AdminUserGlobalSignOutWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.AdminUserGlobalSignOutInput, arg2 ...request.Option) (*cognitoidentityprovider.AdminUserGlobalSignOutOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AdminUserGlobalSignOutWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.AdminUserGlobalSignOutOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AdminUserGlobalSignOutWithContext indicates an expected call of AdminUserGlobalSignOutWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AdminUserGlobalSignOutWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminUserGlobalSignOutWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AdminUserGlobalSignOutWithContext), varargs...) +} + +// AssociateSoftwareToken mocks base method. +func (m *MockCognitoIdentityProviderAPI) AssociateSoftwareToken(arg0 *cognitoidentityprovider.AssociateSoftwareTokenInput) (*cognitoidentityprovider.AssociateSoftwareTokenOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AssociateSoftwareToken", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.AssociateSoftwareTokenOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AssociateSoftwareToken indicates an expected call of AssociateSoftwareToken. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AssociateSoftwareToken(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssociateSoftwareToken", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AssociateSoftwareToken), arg0) +} + +// AssociateSoftwareTokenRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) AssociateSoftwareTokenRequest(arg0 *cognitoidentityprovider.AssociateSoftwareTokenInput) (*request.Request, *cognitoidentityprovider.AssociateSoftwareTokenOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AssociateSoftwareTokenRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.AssociateSoftwareTokenOutput) + return ret0, ret1 +} + +// AssociateSoftwareTokenRequest indicates an expected call of AssociateSoftwareTokenRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AssociateSoftwareTokenRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssociateSoftwareTokenRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AssociateSoftwareTokenRequest), arg0) +} + +// AssociateSoftwareTokenWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) AssociateSoftwareTokenWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.AssociateSoftwareTokenInput, arg2 ...request.Option) (*cognitoidentityprovider.AssociateSoftwareTokenOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AssociateSoftwareTokenWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.AssociateSoftwareTokenOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AssociateSoftwareTokenWithContext indicates an expected call of AssociateSoftwareTokenWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) AssociateSoftwareTokenWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssociateSoftwareTokenWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).AssociateSoftwareTokenWithContext), varargs...) +} + +// ChangePassword mocks base method. +func (m *MockCognitoIdentityProviderAPI) ChangePassword(arg0 *cognitoidentityprovider.ChangePasswordInput) (*cognitoidentityprovider.ChangePasswordOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ChangePassword", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.ChangePasswordOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ChangePassword indicates an expected call of ChangePassword. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ChangePassword(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChangePassword", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ChangePassword), arg0) +} + +// ChangePasswordRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) ChangePasswordRequest(arg0 *cognitoidentityprovider.ChangePasswordInput) (*request.Request, *cognitoidentityprovider.ChangePasswordOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ChangePasswordRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.ChangePasswordOutput) + return ret0, ret1 +} + +// ChangePasswordRequest indicates an expected call of ChangePasswordRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ChangePasswordRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChangePasswordRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ChangePasswordRequest), arg0) +} + +// ChangePasswordWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) ChangePasswordWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.ChangePasswordInput, arg2 ...request.Option) (*cognitoidentityprovider.ChangePasswordOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ChangePasswordWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.ChangePasswordOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ChangePasswordWithContext indicates an expected call of ChangePasswordWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ChangePasswordWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChangePasswordWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ChangePasswordWithContext), varargs...) +} + +// ConfirmDevice mocks base method. +func (m *MockCognitoIdentityProviderAPI) ConfirmDevice(arg0 *cognitoidentityprovider.ConfirmDeviceInput) (*cognitoidentityprovider.ConfirmDeviceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ConfirmDevice", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.ConfirmDeviceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ConfirmDevice indicates an expected call of ConfirmDevice. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ConfirmDevice(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConfirmDevice", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ConfirmDevice), arg0) +} + +// ConfirmDeviceRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) ConfirmDeviceRequest(arg0 *cognitoidentityprovider.ConfirmDeviceInput) (*request.Request, *cognitoidentityprovider.ConfirmDeviceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ConfirmDeviceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.ConfirmDeviceOutput) + return ret0, ret1 +} + +// ConfirmDeviceRequest indicates an expected call of ConfirmDeviceRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ConfirmDeviceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConfirmDeviceRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ConfirmDeviceRequest), arg0) +} + +// ConfirmDeviceWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) ConfirmDeviceWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.ConfirmDeviceInput, arg2 ...request.Option) (*cognitoidentityprovider.ConfirmDeviceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ConfirmDeviceWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.ConfirmDeviceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ConfirmDeviceWithContext indicates an expected call of ConfirmDeviceWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ConfirmDeviceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConfirmDeviceWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ConfirmDeviceWithContext), varargs...) +} + +// ConfirmForgotPassword mocks base method. +func (m *MockCognitoIdentityProviderAPI) ConfirmForgotPassword(arg0 *cognitoidentityprovider.ConfirmForgotPasswordInput) (*cognitoidentityprovider.ConfirmForgotPasswordOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ConfirmForgotPassword", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.ConfirmForgotPasswordOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ConfirmForgotPassword indicates an expected call of ConfirmForgotPassword. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ConfirmForgotPassword(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConfirmForgotPassword", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ConfirmForgotPassword), arg0) +} + +// ConfirmForgotPasswordRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) ConfirmForgotPasswordRequest(arg0 *cognitoidentityprovider.ConfirmForgotPasswordInput) (*request.Request, *cognitoidentityprovider.ConfirmForgotPasswordOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ConfirmForgotPasswordRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.ConfirmForgotPasswordOutput) + return ret0, ret1 +} + +// ConfirmForgotPasswordRequest indicates an expected call of ConfirmForgotPasswordRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ConfirmForgotPasswordRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConfirmForgotPasswordRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ConfirmForgotPasswordRequest), arg0) +} + +// ConfirmForgotPasswordWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) ConfirmForgotPasswordWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.ConfirmForgotPasswordInput, arg2 ...request.Option) (*cognitoidentityprovider.ConfirmForgotPasswordOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ConfirmForgotPasswordWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.ConfirmForgotPasswordOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ConfirmForgotPasswordWithContext indicates an expected call of ConfirmForgotPasswordWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ConfirmForgotPasswordWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConfirmForgotPasswordWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ConfirmForgotPasswordWithContext), varargs...) +} + +// ConfirmSignUp mocks base method. +func (m *MockCognitoIdentityProviderAPI) ConfirmSignUp(arg0 *cognitoidentityprovider.ConfirmSignUpInput) (*cognitoidentityprovider.ConfirmSignUpOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ConfirmSignUp", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.ConfirmSignUpOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ConfirmSignUp indicates an expected call of ConfirmSignUp. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ConfirmSignUp(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConfirmSignUp", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ConfirmSignUp), arg0) +} + +// ConfirmSignUpRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) ConfirmSignUpRequest(arg0 *cognitoidentityprovider.ConfirmSignUpInput) (*request.Request, *cognitoidentityprovider.ConfirmSignUpOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ConfirmSignUpRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.ConfirmSignUpOutput) + return ret0, ret1 +} + +// ConfirmSignUpRequest indicates an expected call of ConfirmSignUpRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ConfirmSignUpRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConfirmSignUpRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ConfirmSignUpRequest), arg0) +} + +// ConfirmSignUpWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) ConfirmSignUpWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.ConfirmSignUpInput, arg2 ...request.Option) (*cognitoidentityprovider.ConfirmSignUpOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ConfirmSignUpWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.ConfirmSignUpOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ConfirmSignUpWithContext indicates an expected call of ConfirmSignUpWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ConfirmSignUpWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConfirmSignUpWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ConfirmSignUpWithContext), varargs...) +} + +// CreateGroup mocks base method. +func (m *MockCognitoIdentityProviderAPI) CreateGroup(arg0 *cognitoidentityprovider.CreateGroupInput) (*cognitoidentityprovider.CreateGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateGroup", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.CreateGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateGroup indicates an expected call of CreateGroup. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) CreateGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGroup", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).CreateGroup), arg0) +} + +// CreateGroupRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) CreateGroupRequest(arg0 *cognitoidentityprovider.CreateGroupInput) (*request.Request, *cognitoidentityprovider.CreateGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.CreateGroupOutput) + return ret0, ret1 +} + +// CreateGroupRequest indicates an expected call of CreateGroupRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) CreateGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGroupRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).CreateGroupRequest), arg0) +} + +// CreateGroupWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) CreateGroupWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.CreateGroupInput, arg2 ...request.Option) (*cognitoidentityprovider.CreateGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateGroupWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.CreateGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateGroupWithContext indicates an expected call of CreateGroupWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) CreateGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGroupWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).CreateGroupWithContext), varargs...) +} + +// CreateIdentityProvider mocks base method. +func (m *MockCognitoIdentityProviderAPI) CreateIdentityProvider(arg0 *cognitoidentityprovider.CreateIdentityProviderInput) (*cognitoidentityprovider.CreateIdentityProviderOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateIdentityProvider", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.CreateIdentityProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateIdentityProvider indicates an expected call of CreateIdentityProvider. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) CreateIdentityProvider(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateIdentityProvider", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).CreateIdentityProvider), arg0) +} + +// CreateIdentityProviderRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) CreateIdentityProviderRequest(arg0 *cognitoidentityprovider.CreateIdentityProviderInput) (*request.Request, *cognitoidentityprovider.CreateIdentityProviderOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateIdentityProviderRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.CreateIdentityProviderOutput) + return ret0, ret1 +} + +// CreateIdentityProviderRequest indicates an expected call of CreateIdentityProviderRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) CreateIdentityProviderRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateIdentityProviderRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).CreateIdentityProviderRequest), arg0) +} + +// CreateIdentityProviderWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) CreateIdentityProviderWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.CreateIdentityProviderInput, arg2 ...request.Option) (*cognitoidentityprovider.CreateIdentityProviderOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateIdentityProviderWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.CreateIdentityProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateIdentityProviderWithContext indicates an expected call of CreateIdentityProviderWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) CreateIdentityProviderWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateIdentityProviderWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).CreateIdentityProviderWithContext), varargs...) +} + +// CreateResourceServer mocks base method. +func (m *MockCognitoIdentityProviderAPI) CreateResourceServer(arg0 *cognitoidentityprovider.CreateResourceServerInput) (*cognitoidentityprovider.CreateResourceServerOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateResourceServer", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.CreateResourceServerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateResourceServer indicates an expected call of CreateResourceServer. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) CreateResourceServer(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateResourceServer", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).CreateResourceServer), arg0) +} + +// CreateResourceServerRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) CreateResourceServerRequest(arg0 *cognitoidentityprovider.CreateResourceServerInput) (*request.Request, *cognitoidentityprovider.CreateResourceServerOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateResourceServerRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.CreateResourceServerOutput) + return ret0, ret1 +} + +// CreateResourceServerRequest indicates an expected call of CreateResourceServerRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) CreateResourceServerRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateResourceServerRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).CreateResourceServerRequest), arg0) +} + +// CreateResourceServerWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) CreateResourceServerWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.CreateResourceServerInput, arg2 ...request.Option) (*cognitoidentityprovider.CreateResourceServerOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateResourceServerWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.CreateResourceServerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateResourceServerWithContext indicates an expected call of CreateResourceServerWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) CreateResourceServerWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateResourceServerWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).CreateResourceServerWithContext), varargs...) +} + +// CreateUserImportJob mocks base method. +func (m *MockCognitoIdentityProviderAPI) CreateUserImportJob(arg0 *cognitoidentityprovider.CreateUserImportJobInput) (*cognitoidentityprovider.CreateUserImportJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateUserImportJob", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.CreateUserImportJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateUserImportJob indicates an expected call of CreateUserImportJob. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) CreateUserImportJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUserImportJob", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).CreateUserImportJob), arg0) +} + +// CreateUserImportJobRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) CreateUserImportJobRequest(arg0 *cognitoidentityprovider.CreateUserImportJobInput) (*request.Request, *cognitoidentityprovider.CreateUserImportJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateUserImportJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.CreateUserImportJobOutput) + return ret0, ret1 +} + +// CreateUserImportJobRequest indicates an expected call of CreateUserImportJobRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) CreateUserImportJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUserImportJobRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).CreateUserImportJobRequest), arg0) +} + +// CreateUserImportJobWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) CreateUserImportJobWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.CreateUserImportJobInput, arg2 ...request.Option) (*cognitoidentityprovider.CreateUserImportJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateUserImportJobWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.CreateUserImportJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateUserImportJobWithContext indicates an expected call of CreateUserImportJobWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) CreateUserImportJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUserImportJobWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).CreateUserImportJobWithContext), varargs...) +} + +// CreateUserPool mocks base method. +func (m *MockCognitoIdentityProviderAPI) CreateUserPool(arg0 *cognitoidentityprovider.CreateUserPoolInput) (*cognitoidentityprovider.CreateUserPoolOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateUserPool", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.CreateUserPoolOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateUserPool indicates an expected call of CreateUserPool. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) CreateUserPool(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUserPool", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).CreateUserPool), arg0) +} + +// CreateUserPoolClient mocks base method. +func (m *MockCognitoIdentityProviderAPI) CreateUserPoolClient(arg0 *cognitoidentityprovider.CreateUserPoolClientInput) (*cognitoidentityprovider.CreateUserPoolClientOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateUserPoolClient", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.CreateUserPoolClientOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateUserPoolClient indicates an expected call of CreateUserPoolClient. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) CreateUserPoolClient(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUserPoolClient", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).CreateUserPoolClient), arg0) +} + +// CreateUserPoolClientRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) CreateUserPoolClientRequest(arg0 *cognitoidentityprovider.CreateUserPoolClientInput) (*request.Request, *cognitoidentityprovider.CreateUserPoolClientOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateUserPoolClientRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.CreateUserPoolClientOutput) + return ret0, ret1 +} + +// CreateUserPoolClientRequest indicates an expected call of CreateUserPoolClientRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) CreateUserPoolClientRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUserPoolClientRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).CreateUserPoolClientRequest), arg0) +} + +// CreateUserPoolClientWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) CreateUserPoolClientWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.CreateUserPoolClientInput, arg2 ...request.Option) (*cognitoidentityprovider.CreateUserPoolClientOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateUserPoolClientWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.CreateUserPoolClientOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateUserPoolClientWithContext indicates an expected call of CreateUserPoolClientWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) CreateUserPoolClientWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUserPoolClientWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).CreateUserPoolClientWithContext), varargs...) +} + +// CreateUserPoolDomain mocks base method. +func (m *MockCognitoIdentityProviderAPI) CreateUserPoolDomain(arg0 *cognitoidentityprovider.CreateUserPoolDomainInput) (*cognitoidentityprovider.CreateUserPoolDomainOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateUserPoolDomain", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.CreateUserPoolDomainOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateUserPoolDomain indicates an expected call of CreateUserPoolDomain. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) CreateUserPoolDomain(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUserPoolDomain", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).CreateUserPoolDomain), arg0) +} + +// CreateUserPoolDomainRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) CreateUserPoolDomainRequest(arg0 *cognitoidentityprovider.CreateUserPoolDomainInput) (*request.Request, *cognitoidentityprovider.CreateUserPoolDomainOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateUserPoolDomainRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.CreateUserPoolDomainOutput) + return ret0, ret1 +} + +// CreateUserPoolDomainRequest indicates an expected call of CreateUserPoolDomainRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) CreateUserPoolDomainRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUserPoolDomainRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).CreateUserPoolDomainRequest), arg0) +} + +// CreateUserPoolDomainWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) CreateUserPoolDomainWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.CreateUserPoolDomainInput, arg2 ...request.Option) (*cognitoidentityprovider.CreateUserPoolDomainOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateUserPoolDomainWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.CreateUserPoolDomainOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateUserPoolDomainWithContext indicates an expected call of CreateUserPoolDomainWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) CreateUserPoolDomainWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUserPoolDomainWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).CreateUserPoolDomainWithContext), varargs...) +} + +// CreateUserPoolRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) CreateUserPoolRequest(arg0 *cognitoidentityprovider.CreateUserPoolInput) (*request.Request, *cognitoidentityprovider.CreateUserPoolOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateUserPoolRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.CreateUserPoolOutput) + return ret0, ret1 +} + +// CreateUserPoolRequest indicates an expected call of CreateUserPoolRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) CreateUserPoolRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUserPoolRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).CreateUserPoolRequest), arg0) +} + +// CreateUserPoolWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) CreateUserPoolWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.CreateUserPoolInput, arg2 ...request.Option) (*cognitoidentityprovider.CreateUserPoolOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateUserPoolWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.CreateUserPoolOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateUserPoolWithContext indicates an expected call of CreateUserPoolWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) CreateUserPoolWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUserPoolWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).CreateUserPoolWithContext), varargs...) +} + +// DeleteGroup mocks base method. +func (m *MockCognitoIdentityProviderAPI) DeleteGroup(arg0 *cognitoidentityprovider.DeleteGroupInput) (*cognitoidentityprovider.DeleteGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteGroup", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.DeleteGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteGroup indicates an expected call of DeleteGroup. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DeleteGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGroup", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DeleteGroup), arg0) +} + +// DeleteGroupRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) DeleteGroupRequest(arg0 *cognitoidentityprovider.DeleteGroupInput) (*request.Request, *cognitoidentityprovider.DeleteGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.DeleteGroupOutput) + return ret0, ret1 +} + +// DeleteGroupRequest indicates an expected call of DeleteGroupRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DeleteGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGroupRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DeleteGroupRequest), arg0) +} + +// DeleteGroupWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) DeleteGroupWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.DeleteGroupInput, arg2 ...request.Option) (*cognitoidentityprovider.DeleteGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteGroupWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.DeleteGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteGroupWithContext indicates an expected call of DeleteGroupWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DeleteGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGroupWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DeleteGroupWithContext), varargs...) +} + +// DeleteIdentityProvider mocks base method. +func (m *MockCognitoIdentityProviderAPI) DeleteIdentityProvider(arg0 *cognitoidentityprovider.DeleteIdentityProviderInput) (*cognitoidentityprovider.DeleteIdentityProviderOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteIdentityProvider", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.DeleteIdentityProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteIdentityProvider indicates an expected call of DeleteIdentityProvider. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DeleteIdentityProvider(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteIdentityProvider", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DeleteIdentityProvider), arg0) +} + +// DeleteIdentityProviderRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) DeleteIdentityProviderRequest(arg0 *cognitoidentityprovider.DeleteIdentityProviderInput) (*request.Request, *cognitoidentityprovider.DeleteIdentityProviderOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteIdentityProviderRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.DeleteIdentityProviderOutput) + return ret0, ret1 +} + +// DeleteIdentityProviderRequest indicates an expected call of DeleteIdentityProviderRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DeleteIdentityProviderRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteIdentityProviderRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DeleteIdentityProviderRequest), arg0) +} + +// DeleteIdentityProviderWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) DeleteIdentityProviderWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.DeleteIdentityProviderInput, arg2 ...request.Option) (*cognitoidentityprovider.DeleteIdentityProviderOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteIdentityProviderWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.DeleteIdentityProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteIdentityProviderWithContext indicates an expected call of DeleteIdentityProviderWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DeleteIdentityProviderWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteIdentityProviderWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DeleteIdentityProviderWithContext), varargs...) +} + +// DeleteResourceServer mocks base method. +func (m *MockCognitoIdentityProviderAPI) DeleteResourceServer(arg0 *cognitoidentityprovider.DeleteResourceServerInput) (*cognitoidentityprovider.DeleteResourceServerOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteResourceServer", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.DeleteResourceServerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteResourceServer indicates an expected call of DeleteResourceServer. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DeleteResourceServer(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteResourceServer", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DeleteResourceServer), arg0) +} + +// DeleteResourceServerRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) DeleteResourceServerRequest(arg0 *cognitoidentityprovider.DeleteResourceServerInput) (*request.Request, *cognitoidentityprovider.DeleteResourceServerOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteResourceServerRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.DeleteResourceServerOutput) + return ret0, ret1 +} + +// DeleteResourceServerRequest indicates an expected call of DeleteResourceServerRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DeleteResourceServerRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteResourceServerRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DeleteResourceServerRequest), arg0) +} + +// DeleteResourceServerWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) DeleteResourceServerWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.DeleteResourceServerInput, arg2 ...request.Option) (*cognitoidentityprovider.DeleteResourceServerOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteResourceServerWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.DeleteResourceServerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteResourceServerWithContext indicates an expected call of DeleteResourceServerWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DeleteResourceServerWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteResourceServerWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DeleteResourceServerWithContext), varargs...) +} + +// DeleteUser mocks base method. +func (m *MockCognitoIdentityProviderAPI) DeleteUser(arg0 *cognitoidentityprovider.DeleteUserInput) (*cognitoidentityprovider.DeleteUserOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteUser", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.DeleteUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteUser indicates an expected call of DeleteUser. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DeleteUser(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUser", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DeleteUser), arg0) +} + +// DeleteUserAttributes mocks base method. +func (m *MockCognitoIdentityProviderAPI) DeleteUserAttributes(arg0 *cognitoidentityprovider.DeleteUserAttributesInput) (*cognitoidentityprovider.DeleteUserAttributesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteUserAttributes", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.DeleteUserAttributesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteUserAttributes indicates an expected call of DeleteUserAttributes. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DeleteUserAttributes(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserAttributes", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DeleteUserAttributes), arg0) +} + +// DeleteUserAttributesRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) DeleteUserAttributesRequest(arg0 *cognitoidentityprovider.DeleteUserAttributesInput) (*request.Request, *cognitoidentityprovider.DeleteUserAttributesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteUserAttributesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.DeleteUserAttributesOutput) + return ret0, ret1 +} + +// DeleteUserAttributesRequest indicates an expected call of DeleteUserAttributesRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DeleteUserAttributesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserAttributesRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DeleteUserAttributesRequest), arg0) +} + +// DeleteUserAttributesWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) DeleteUserAttributesWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.DeleteUserAttributesInput, arg2 ...request.Option) (*cognitoidentityprovider.DeleteUserAttributesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteUserAttributesWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.DeleteUserAttributesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteUserAttributesWithContext indicates an expected call of DeleteUserAttributesWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DeleteUserAttributesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserAttributesWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DeleteUserAttributesWithContext), varargs...) +} + +// DeleteUserPool mocks base method. +func (m *MockCognitoIdentityProviderAPI) DeleteUserPool(arg0 *cognitoidentityprovider.DeleteUserPoolInput) (*cognitoidentityprovider.DeleteUserPoolOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteUserPool", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.DeleteUserPoolOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteUserPool indicates an expected call of DeleteUserPool. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DeleteUserPool(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserPool", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DeleteUserPool), arg0) +} + +// DeleteUserPoolClient mocks base method. +func (m *MockCognitoIdentityProviderAPI) DeleteUserPoolClient(arg0 *cognitoidentityprovider.DeleteUserPoolClientInput) (*cognitoidentityprovider.DeleteUserPoolClientOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteUserPoolClient", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.DeleteUserPoolClientOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteUserPoolClient indicates an expected call of DeleteUserPoolClient. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DeleteUserPoolClient(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserPoolClient", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DeleteUserPoolClient), arg0) +} + +// DeleteUserPoolClientRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) DeleteUserPoolClientRequest(arg0 *cognitoidentityprovider.DeleteUserPoolClientInput) (*request.Request, *cognitoidentityprovider.DeleteUserPoolClientOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteUserPoolClientRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.DeleteUserPoolClientOutput) + return ret0, ret1 +} + +// DeleteUserPoolClientRequest indicates an expected call of DeleteUserPoolClientRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DeleteUserPoolClientRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserPoolClientRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DeleteUserPoolClientRequest), arg0) +} + +// DeleteUserPoolClientWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) DeleteUserPoolClientWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.DeleteUserPoolClientInput, arg2 ...request.Option) (*cognitoidentityprovider.DeleteUserPoolClientOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteUserPoolClientWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.DeleteUserPoolClientOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteUserPoolClientWithContext indicates an expected call of DeleteUserPoolClientWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DeleteUserPoolClientWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserPoolClientWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DeleteUserPoolClientWithContext), varargs...) +} + +// DeleteUserPoolDomain mocks base method. +func (m *MockCognitoIdentityProviderAPI) DeleteUserPoolDomain(arg0 *cognitoidentityprovider.DeleteUserPoolDomainInput) (*cognitoidentityprovider.DeleteUserPoolDomainOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteUserPoolDomain", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.DeleteUserPoolDomainOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteUserPoolDomain indicates an expected call of DeleteUserPoolDomain. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DeleteUserPoolDomain(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserPoolDomain", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DeleteUserPoolDomain), arg0) +} + +// DeleteUserPoolDomainRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) DeleteUserPoolDomainRequest(arg0 *cognitoidentityprovider.DeleteUserPoolDomainInput) (*request.Request, *cognitoidentityprovider.DeleteUserPoolDomainOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteUserPoolDomainRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.DeleteUserPoolDomainOutput) + return ret0, ret1 +} + +// DeleteUserPoolDomainRequest indicates an expected call of DeleteUserPoolDomainRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DeleteUserPoolDomainRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserPoolDomainRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DeleteUserPoolDomainRequest), arg0) +} + +// DeleteUserPoolDomainWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) DeleteUserPoolDomainWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.DeleteUserPoolDomainInput, arg2 ...request.Option) (*cognitoidentityprovider.DeleteUserPoolDomainOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteUserPoolDomainWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.DeleteUserPoolDomainOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteUserPoolDomainWithContext indicates an expected call of DeleteUserPoolDomainWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DeleteUserPoolDomainWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserPoolDomainWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DeleteUserPoolDomainWithContext), varargs...) +} + +// DeleteUserPoolRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) DeleteUserPoolRequest(arg0 *cognitoidentityprovider.DeleteUserPoolInput) (*request.Request, *cognitoidentityprovider.DeleteUserPoolOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteUserPoolRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.DeleteUserPoolOutput) + return ret0, ret1 +} + +// DeleteUserPoolRequest indicates an expected call of DeleteUserPoolRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DeleteUserPoolRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserPoolRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DeleteUserPoolRequest), arg0) +} + +// DeleteUserPoolWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) DeleteUserPoolWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.DeleteUserPoolInput, arg2 ...request.Option) (*cognitoidentityprovider.DeleteUserPoolOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteUserPoolWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.DeleteUserPoolOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteUserPoolWithContext indicates an expected call of DeleteUserPoolWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DeleteUserPoolWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserPoolWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DeleteUserPoolWithContext), varargs...) +} + +// DeleteUserRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) DeleteUserRequest(arg0 *cognitoidentityprovider.DeleteUserInput) (*request.Request, *cognitoidentityprovider.DeleteUserOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteUserRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.DeleteUserOutput) + return ret0, ret1 +} + +// DeleteUserRequest indicates an expected call of DeleteUserRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DeleteUserRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DeleteUserRequest), arg0) +} + +// DeleteUserWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) DeleteUserWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.DeleteUserInput, arg2 ...request.Option) (*cognitoidentityprovider.DeleteUserOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteUserWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.DeleteUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteUserWithContext indicates an expected call of DeleteUserWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DeleteUserWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DeleteUserWithContext), varargs...) +} + +// DescribeIdentityProvider mocks base method. +func (m *MockCognitoIdentityProviderAPI) DescribeIdentityProvider(arg0 *cognitoidentityprovider.DescribeIdentityProviderInput) (*cognitoidentityprovider.DescribeIdentityProviderOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeIdentityProvider", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.DescribeIdentityProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeIdentityProvider indicates an expected call of DescribeIdentityProvider. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DescribeIdentityProvider(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeIdentityProvider", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DescribeIdentityProvider), arg0) +} + +// DescribeIdentityProviderRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) DescribeIdentityProviderRequest(arg0 *cognitoidentityprovider.DescribeIdentityProviderInput) (*request.Request, *cognitoidentityprovider.DescribeIdentityProviderOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeIdentityProviderRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.DescribeIdentityProviderOutput) + return ret0, ret1 +} + +// DescribeIdentityProviderRequest indicates an expected call of DescribeIdentityProviderRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DescribeIdentityProviderRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeIdentityProviderRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DescribeIdentityProviderRequest), arg0) +} + +// DescribeIdentityProviderWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) DescribeIdentityProviderWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.DescribeIdentityProviderInput, arg2 ...request.Option) (*cognitoidentityprovider.DescribeIdentityProviderOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeIdentityProviderWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.DescribeIdentityProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeIdentityProviderWithContext indicates an expected call of DescribeIdentityProviderWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DescribeIdentityProviderWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeIdentityProviderWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DescribeIdentityProviderWithContext), varargs...) +} + +// DescribeResourceServer mocks base method. +func (m *MockCognitoIdentityProviderAPI) DescribeResourceServer(arg0 *cognitoidentityprovider.DescribeResourceServerInput) (*cognitoidentityprovider.DescribeResourceServerOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeResourceServer", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.DescribeResourceServerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeResourceServer indicates an expected call of DescribeResourceServer. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DescribeResourceServer(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeResourceServer", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DescribeResourceServer), arg0) +} + +// DescribeResourceServerRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) DescribeResourceServerRequest(arg0 *cognitoidentityprovider.DescribeResourceServerInput) (*request.Request, *cognitoidentityprovider.DescribeResourceServerOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeResourceServerRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.DescribeResourceServerOutput) + return ret0, ret1 +} + +// DescribeResourceServerRequest indicates an expected call of DescribeResourceServerRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DescribeResourceServerRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeResourceServerRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DescribeResourceServerRequest), arg0) +} + +// DescribeResourceServerWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) DescribeResourceServerWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.DescribeResourceServerInput, arg2 ...request.Option) (*cognitoidentityprovider.DescribeResourceServerOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeResourceServerWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.DescribeResourceServerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeResourceServerWithContext indicates an expected call of DescribeResourceServerWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DescribeResourceServerWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeResourceServerWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DescribeResourceServerWithContext), varargs...) +} + +// DescribeRiskConfiguration mocks base method. +func (m *MockCognitoIdentityProviderAPI) DescribeRiskConfiguration(arg0 *cognitoidentityprovider.DescribeRiskConfigurationInput) (*cognitoidentityprovider.DescribeRiskConfigurationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeRiskConfiguration", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.DescribeRiskConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeRiskConfiguration indicates an expected call of DescribeRiskConfiguration. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DescribeRiskConfiguration(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRiskConfiguration", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DescribeRiskConfiguration), arg0) +} + +// DescribeRiskConfigurationRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) DescribeRiskConfigurationRequest(arg0 *cognitoidentityprovider.DescribeRiskConfigurationInput) (*request.Request, *cognitoidentityprovider.DescribeRiskConfigurationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeRiskConfigurationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.DescribeRiskConfigurationOutput) + return ret0, ret1 +} + +// DescribeRiskConfigurationRequest indicates an expected call of DescribeRiskConfigurationRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DescribeRiskConfigurationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRiskConfigurationRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DescribeRiskConfigurationRequest), arg0) +} + +// DescribeRiskConfigurationWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) DescribeRiskConfigurationWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.DescribeRiskConfigurationInput, arg2 ...request.Option) (*cognitoidentityprovider.DescribeRiskConfigurationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeRiskConfigurationWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.DescribeRiskConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeRiskConfigurationWithContext indicates an expected call of DescribeRiskConfigurationWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DescribeRiskConfigurationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRiskConfigurationWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DescribeRiskConfigurationWithContext), varargs...) +} + +// DescribeUserImportJob mocks base method. +func (m *MockCognitoIdentityProviderAPI) DescribeUserImportJob(arg0 *cognitoidentityprovider.DescribeUserImportJobInput) (*cognitoidentityprovider.DescribeUserImportJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeUserImportJob", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.DescribeUserImportJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeUserImportJob indicates an expected call of DescribeUserImportJob. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DescribeUserImportJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeUserImportJob", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DescribeUserImportJob), arg0) +} + +// DescribeUserImportJobRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) DescribeUserImportJobRequest(arg0 *cognitoidentityprovider.DescribeUserImportJobInput) (*request.Request, *cognitoidentityprovider.DescribeUserImportJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeUserImportJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.DescribeUserImportJobOutput) + return ret0, ret1 +} + +// DescribeUserImportJobRequest indicates an expected call of DescribeUserImportJobRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DescribeUserImportJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeUserImportJobRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DescribeUserImportJobRequest), arg0) +} + +// DescribeUserImportJobWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) DescribeUserImportJobWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.DescribeUserImportJobInput, arg2 ...request.Option) (*cognitoidentityprovider.DescribeUserImportJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeUserImportJobWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.DescribeUserImportJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeUserImportJobWithContext indicates an expected call of DescribeUserImportJobWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DescribeUserImportJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeUserImportJobWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DescribeUserImportJobWithContext), varargs...) +} + +// DescribeUserPool mocks base method. +func (m *MockCognitoIdentityProviderAPI) DescribeUserPool(arg0 *cognitoidentityprovider.DescribeUserPoolInput) (*cognitoidentityprovider.DescribeUserPoolOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeUserPool", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.DescribeUserPoolOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeUserPool indicates an expected call of DescribeUserPool. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DescribeUserPool(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeUserPool", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DescribeUserPool), arg0) +} + +// DescribeUserPoolClient mocks base method. +func (m *MockCognitoIdentityProviderAPI) DescribeUserPoolClient(arg0 *cognitoidentityprovider.DescribeUserPoolClientInput) (*cognitoidentityprovider.DescribeUserPoolClientOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeUserPoolClient", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.DescribeUserPoolClientOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeUserPoolClient indicates an expected call of DescribeUserPoolClient. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DescribeUserPoolClient(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeUserPoolClient", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DescribeUserPoolClient), arg0) +} + +// DescribeUserPoolClientRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) DescribeUserPoolClientRequest(arg0 *cognitoidentityprovider.DescribeUserPoolClientInput) (*request.Request, *cognitoidentityprovider.DescribeUserPoolClientOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeUserPoolClientRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.DescribeUserPoolClientOutput) + return ret0, ret1 +} + +// DescribeUserPoolClientRequest indicates an expected call of DescribeUserPoolClientRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DescribeUserPoolClientRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeUserPoolClientRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DescribeUserPoolClientRequest), arg0) +} + +// DescribeUserPoolClientWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) DescribeUserPoolClientWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.DescribeUserPoolClientInput, arg2 ...request.Option) (*cognitoidentityprovider.DescribeUserPoolClientOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeUserPoolClientWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.DescribeUserPoolClientOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeUserPoolClientWithContext indicates an expected call of DescribeUserPoolClientWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DescribeUserPoolClientWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeUserPoolClientWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DescribeUserPoolClientWithContext), varargs...) +} + +// DescribeUserPoolDomain mocks base method. +func (m *MockCognitoIdentityProviderAPI) DescribeUserPoolDomain(arg0 *cognitoidentityprovider.DescribeUserPoolDomainInput) (*cognitoidentityprovider.DescribeUserPoolDomainOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeUserPoolDomain", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.DescribeUserPoolDomainOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeUserPoolDomain indicates an expected call of DescribeUserPoolDomain. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DescribeUserPoolDomain(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeUserPoolDomain", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DescribeUserPoolDomain), arg0) +} + +// DescribeUserPoolDomainRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) DescribeUserPoolDomainRequest(arg0 *cognitoidentityprovider.DescribeUserPoolDomainInput) (*request.Request, *cognitoidentityprovider.DescribeUserPoolDomainOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeUserPoolDomainRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.DescribeUserPoolDomainOutput) + return ret0, ret1 +} + +// DescribeUserPoolDomainRequest indicates an expected call of DescribeUserPoolDomainRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DescribeUserPoolDomainRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeUserPoolDomainRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DescribeUserPoolDomainRequest), arg0) +} + +// DescribeUserPoolDomainWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) DescribeUserPoolDomainWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.DescribeUserPoolDomainInput, arg2 ...request.Option) (*cognitoidentityprovider.DescribeUserPoolDomainOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeUserPoolDomainWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.DescribeUserPoolDomainOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeUserPoolDomainWithContext indicates an expected call of DescribeUserPoolDomainWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DescribeUserPoolDomainWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeUserPoolDomainWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DescribeUserPoolDomainWithContext), varargs...) +} + +// DescribeUserPoolRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) DescribeUserPoolRequest(arg0 *cognitoidentityprovider.DescribeUserPoolInput) (*request.Request, *cognitoidentityprovider.DescribeUserPoolOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeUserPoolRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.DescribeUserPoolOutput) + return ret0, ret1 +} + +// DescribeUserPoolRequest indicates an expected call of DescribeUserPoolRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DescribeUserPoolRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeUserPoolRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DescribeUserPoolRequest), arg0) +} + +// DescribeUserPoolWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) DescribeUserPoolWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.DescribeUserPoolInput, arg2 ...request.Option) (*cognitoidentityprovider.DescribeUserPoolOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeUserPoolWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.DescribeUserPoolOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeUserPoolWithContext indicates an expected call of DescribeUserPoolWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) DescribeUserPoolWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeUserPoolWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).DescribeUserPoolWithContext), varargs...) +} + +// ForgetDevice mocks base method. +func (m *MockCognitoIdentityProviderAPI) ForgetDevice(arg0 *cognitoidentityprovider.ForgetDeviceInput) (*cognitoidentityprovider.ForgetDeviceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ForgetDevice", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.ForgetDeviceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ForgetDevice indicates an expected call of ForgetDevice. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ForgetDevice(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ForgetDevice", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ForgetDevice), arg0) +} + +// ForgetDeviceRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) ForgetDeviceRequest(arg0 *cognitoidentityprovider.ForgetDeviceInput) (*request.Request, *cognitoidentityprovider.ForgetDeviceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ForgetDeviceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.ForgetDeviceOutput) + return ret0, ret1 +} + +// ForgetDeviceRequest indicates an expected call of ForgetDeviceRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ForgetDeviceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ForgetDeviceRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ForgetDeviceRequest), arg0) +} + +// ForgetDeviceWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) ForgetDeviceWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.ForgetDeviceInput, arg2 ...request.Option) (*cognitoidentityprovider.ForgetDeviceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ForgetDeviceWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.ForgetDeviceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ForgetDeviceWithContext indicates an expected call of ForgetDeviceWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ForgetDeviceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ForgetDeviceWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ForgetDeviceWithContext), varargs...) +} + +// ForgotPassword mocks base method. +func (m *MockCognitoIdentityProviderAPI) ForgotPassword(arg0 *cognitoidentityprovider.ForgotPasswordInput) (*cognitoidentityprovider.ForgotPasswordOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ForgotPassword", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.ForgotPasswordOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ForgotPassword indicates an expected call of ForgotPassword. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ForgotPassword(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ForgotPassword", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ForgotPassword), arg0) +} + +// ForgotPasswordRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) ForgotPasswordRequest(arg0 *cognitoidentityprovider.ForgotPasswordInput) (*request.Request, *cognitoidentityprovider.ForgotPasswordOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ForgotPasswordRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.ForgotPasswordOutput) + return ret0, ret1 +} + +// ForgotPasswordRequest indicates an expected call of ForgotPasswordRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ForgotPasswordRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ForgotPasswordRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ForgotPasswordRequest), arg0) +} + +// ForgotPasswordWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) ForgotPasswordWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.ForgotPasswordInput, arg2 ...request.Option) (*cognitoidentityprovider.ForgotPasswordOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ForgotPasswordWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.ForgotPasswordOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ForgotPasswordWithContext indicates an expected call of ForgotPasswordWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ForgotPasswordWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ForgotPasswordWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ForgotPasswordWithContext), varargs...) +} + +// GetCSVHeader mocks base method. +func (m *MockCognitoIdentityProviderAPI) GetCSVHeader(arg0 *cognitoidentityprovider.GetCSVHeaderInput) (*cognitoidentityprovider.GetCSVHeaderOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetCSVHeader", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.GetCSVHeaderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetCSVHeader indicates an expected call of GetCSVHeader. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) GetCSVHeader(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCSVHeader", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).GetCSVHeader), arg0) +} + +// GetCSVHeaderRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) GetCSVHeaderRequest(arg0 *cognitoidentityprovider.GetCSVHeaderInput) (*request.Request, *cognitoidentityprovider.GetCSVHeaderOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetCSVHeaderRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.GetCSVHeaderOutput) + return ret0, ret1 +} + +// GetCSVHeaderRequest indicates an expected call of GetCSVHeaderRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) GetCSVHeaderRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCSVHeaderRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).GetCSVHeaderRequest), arg0) +} + +// GetCSVHeaderWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) GetCSVHeaderWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.GetCSVHeaderInput, arg2 ...request.Option) (*cognitoidentityprovider.GetCSVHeaderOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetCSVHeaderWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.GetCSVHeaderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetCSVHeaderWithContext indicates an expected call of GetCSVHeaderWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) GetCSVHeaderWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCSVHeaderWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).GetCSVHeaderWithContext), varargs...) +} + +// GetDevice mocks base method. +func (m *MockCognitoIdentityProviderAPI) GetDevice(arg0 *cognitoidentityprovider.GetDeviceInput) (*cognitoidentityprovider.GetDeviceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetDevice", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.GetDeviceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetDevice indicates an expected call of GetDevice. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) GetDevice(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDevice", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).GetDevice), arg0) +} + +// GetDeviceRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) GetDeviceRequest(arg0 *cognitoidentityprovider.GetDeviceInput) (*request.Request, *cognitoidentityprovider.GetDeviceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetDeviceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.GetDeviceOutput) + return ret0, ret1 +} + +// GetDeviceRequest indicates an expected call of GetDeviceRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) GetDeviceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDeviceRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).GetDeviceRequest), arg0) +} + +// GetDeviceWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) GetDeviceWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.GetDeviceInput, arg2 ...request.Option) (*cognitoidentityprovider.GetDeviceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetDeviceWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.GetDeviceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetDeviceWithContext indicates an expected call of GetDeviceWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) GetDeviceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDeviceWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).GetDeviceWithContext), varargs...) +} + +// GetGroup mocks base method. +func (m *MockCognitoIdentityProviderAPI) GetGroup(arg0 *cognitoidentityprovider.GetGroupInput) (*cognitoidentityprovider.GetGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetGroup", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.GetGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetGroup indicates an expected call of GetGroup. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) GetGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroup", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).GetGroup), arg0) +} + +// GetGroupRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) GetGroupRequest(arg0 *cognitoidentityprovider.GetGroupInput) (*request.Request, *cognitoidentityprovider.GetGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.GetGroupOutput) + return ret0, ret1 +} + +// GetGroupRequest indicates an expected call of GetGroupRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) GetGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroupRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).GetGroupRequest), arg0) +} + +// GetGroupWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) GetGroupWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.GetGroupInput, arg2 ...request.Option) (*cognitoidentityprovider.GetGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetGroupWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.GetGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetGroupWithContext indicates an expected call of GetGroupWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) GetGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroupWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).GetGroupWithContext), varargs...) +} + +// GetIdentityProviderByIdentifier mocks base method. +func (m *MockCognitoIdentityProviderAPI) GetIdentityProviderByIdentifier(arg0 *cognitoidentityprovider.GetIdentityProviderByIdentifierInput) (*cognitoidentityprovider.GetIdentityProviderByIdentifierOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetIdentityProviderByIdentifier", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.GetIdentityProviderByIdentifierOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetIdentityProviderByIdentifier indicates an expected call of GetIdentityProviderByIdentifier. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) GetIdentityProviderByIdentifier(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetIdentityProviderByIdentifier", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).GetIdentityProviderByIdentifier), arg0) +} + +// GetIdentityProviderByIdentifierRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) GetIdentityProviderByIdentifierRequest(arg0 *cognitoidentityprovider.GetIdentityProviderByIdentifierInput) (*request.Request, *cognitoidentityprovider.GetIdentityProviderByIdentifierOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetIdentityProviderByIdentifierRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.GetIdentityProviderByIdentifierOutput) + return ret0, ret1 +} + +// GetIdentityProviderByIdentifierRequest indicates an expected call of GetIdentityProviderByIdentifierRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) GetIdentityProviderByIdentifierRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetIdentityProviderByIdentifierRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).GetIdentityProviderByIdentifierRequest), arg0) +} + +// GetIdentityProviderByIdentifierWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) GetIdentityProviderByIdentifierWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.GetIdentityProviderByIdentifierInput, arg2 ...request.Option) (*cognitoidentityprovider.GetIdentityProviderByIdentifierOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetIdentityProviderByIdentifierWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.GetIdentityProviderByIdentifierOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetIdentityProviderByIdentifierWithContext indicates an expected call of GetIdentityProviderByIdentifierWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) GetIdentityProviderByIdentifierWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetIdentityProviderByIdentifierWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).GetIdentityProviderByIdentifierWithContext), varargs...) +} + +// GetLogDeliveryConfiguration mocks base method. +func (m *MockCognitoIdentityProviderAPI) GetLogDeliveryConfiguration(arg0 *cognitoidentityprovider.GetLogDeliveryConfigurationInput) (*cognitoidentityprovider.GetLogDeliveryConfigurationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetLogDeliveryConfiguration", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.GetLogDeliveryConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetLogDeliveryConfiguration indicates an expected call of GetLogDeliveryConfiguration. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) GetLogDeliveryConfiguration(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLogDeliveryConfiguration", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).GetLogDeliveryConfiguration), arg0) +} + +// GetLogDeliveryConfigurationRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) GetLogDeliveryConfigurationRequest(arg0 *cognitoidentityprovider.GetLogDeliveryConfigurationInput) (*request.Request, *cognitoidentityprovider.GetLogDeliveryConfigurationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetLogDeliveryConfigurationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.GetLogDeliveryConfigurationOutput) + return ret0, ret1 +} + +// GetLogDeliveryConfigurationRequest indicates an expected call of GetLogDeliveryConfigurationRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) GetLogDeliveryConfigurationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLogDeliveryConfigurationRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).GetLogDeliveryConfigurationRequest), arg0) +} + +// GetLogDeliveryConfigurationWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) GetLogDeliveryConfigurationWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.GetLogDeliveryConfigurationInput, arg2 ...request.Option) (*cognitoidentityprovider.GetLogDeliveryConfigurationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetLogDeliveryConfigurationWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.GetLogDeliveryConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetLogDeliveryConfigurationWithContext indicates an expected call of GetLogDeliveryConfigurationWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) GetLogDeliveryConfigurationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLogDeliveryConfigurationWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).GetLogDeliveryConfigurationWithContext), varargs...) +} + +// GetSigningCertificate mocks base method. +func (m *MockCognitoIdentityProviderAPI) GetSigningCertificate(arg0 *cognitoidentityprovider.GetSigningCertificateInput) (*cognitoidentityprovider.GetSigningCertificateOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetSigningCertificate", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.GetSigningCertificateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetSigningCertificate indicates an expected call of GetSigningCertificate. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) GetSigningCertificate(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSigningCertificate", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).GetSigningCertificate), arg0) +} + +// GetSigningCertificateRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) GetSigningCertificateRequest(arg0 *cognitoidentityprovider.GetSigningCertificateInput) (*request.Request, *cognitoidentityprovider.GetSigningCertificateOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetSigningCertificateRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.GetSigningCertificateOutput) + return ret0, ret1 +} + +// GetSigningCertificateRequest indicates an expected call of GetSigningCertificateRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) GetSigningCertificateRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSigningCertificateRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).GetSigningCertificateRequest), arg0) +} + +// GetSigningCertificateWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) GetSigningCertificateWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.GetSigningCertificateInput, arg2 ...request.Option) (*cognitoidentityprovider.GetSigningCertificateOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetSigningCertificateWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.GetSigningCertificateOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetSigningCertificateWithContext indicates an expected call of GetSigningCertificateWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) GetSigningCertificateWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSigningCertificateWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).GetSigningCertificateWithContext), varargs...) +} + +// GetUICustomization mocks base method. +func (m *MockCognitoIdentityProviderAPI) GetUICustomization(arg0 *cognitoidentityprovider.GetUICustomizationInput) (*cognitoidentityprovider.GetUICustomizationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetUICustomization", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.GetUICustomizationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetUICustomization indicates an expected call of GetUICustomization. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) GetUICustomization(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUICustomization", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).GetUICustomization), arg0) +} + +// GetUICustomizationRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) GetUICustomizationRequest(arg0 *cognitoidentityprovider.GetUICustomizationInput) (*request.Request, *cognitoidentityprovider.GetUICustomizationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetUICustomizationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.GetUICustomizationOutput) + return ret0, ret1 +} + +// GetUICustomizationRequest indicates an expected call of GetUICustomizationRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) GetUICustomizationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUICustomizationRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).GetUICustomizationRequest), arg0) +} + +// GetUICustomizationWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) GetUICustomizationWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.GetUICustomizationInput, arg2 ...request.Option) (*cognitoidentityprovider.GetUICustomizationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetUICustomizationWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.GetUICustomizationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetUICustomizationWithContext indicates an expected call of GetUICustomizationWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) GetUICustomizationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUICustomizationWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).GetUICustomizationWithContext), varargs...) +} + +// GetUser mocks base method. +func (m *MockCognitoIdentityProviderAPI) GetUser(arg0 *cognitoidentityprovider.GetUserInput) (*cognitoidentityprovider.GetUserOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetUser", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.GetUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetUser indicates an expected call of GetUser. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) GetUser(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUser", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).GetUser), arg0) +} + +// GetUserAttributeVerificationCode mocks base method. +func (m *MockCognitoIdentityProviderAPI) GetUserAttributeVerificationCode(arg0 *cognitoidentityprovider.GetUserAttributeVerificationCodeInput) (*cognitoidentityprovider.GetUserAttributeVerificationCodeOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetUserAttributeVerificationCode", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.GetUserAttributeVerificationCodeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetUserAttributeVerificationCode indicates an expected call of GetUserAttributeVerificationCode. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) GetUserAttributeVerificationCode(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserAttributeVerificationCode", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).GetUserAttributeVerificationCode), arg0) +} + +// GetUserAttributeVerificationCodeRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) GetUserAttributeVerificationCodeRequest(arg0 *cognitoidentityprovider.GetUserAttributeVerificationCodeInput) (*request.Request, *cognitoidentityprovider.GetUserAttributeVerificationCodeOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetUserAttributeVerificationCodeRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.GetUserAttributeVerificationCodeOutput) + return ret0, ret1 +} + +// GetUserAttributeVerificationCodeRequest indicates an expected call of GetUserAttributeVerificationCodeRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) GetUserAttributeVerificationCodeRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserAttributeVerificationCodeRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).GetUserAttributeVerificationCodeRequest), arg0) +} + +// GetUserAttributeVerificationCodeWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) GetUserAttributeVerificationCodeWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.GetUserAttributeVerificationCodeInput, arg2 ...request.Option) (*cognitoidentityprovider.GetUserAttributeVerificationCodeOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetUserAttributeVerificationCodeWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.GetUserAttributeVerificationCodeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetUserAttributeVerificationCodeWithContext indicates an expected call of GetUserAttributeVerificationCodeWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) GetUserAttributeVerificationCodeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserAttributeVerificationCodeWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).GetUserAttributeVerificationCodeWithContext), varargs...) +} + +// GetUserPoolMfaConfig mocks base method. +func (m *MockCognitoIdentityProviderAPI) GetUserPoolMfaConfig(arg0 *cognitoidentityprovider.GetUserPoolMfaConfigInput) (*cognitoidentityprovider.GetUserPoolMfaConfigOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetUserPoolMfaConfig", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.GetUserPoolMfaConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetUserPoolMfaConfig indicates an expected call of GetUserPoolMfaConfig. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) GetUserPoolMfaConfig(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserPoolMfaConfig", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).GetUserPoolMfaConfig), arg0) +} + +// GetUserPoolMfaConfigRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) GetUserPoolMfaConfigRequest(arg0 *cognitoidentityprovider.GetUserPoolMfaConfigInput) (*request.Request, *cognitoidentityprovider.GetUserPoolMfaConfigOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetUserPoolMfaConfigRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.GetUserPoolMfaConfigOutput) + return ret0, ret1 +} + +// GetUserPoolMfaConfigRequest indicates an expected call of GetUserPoolMfaConfigRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) GetUserPoolMfaConfigRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserPoolMfaConfigRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).GetUserPoolMfaConfigRequest), arg0) +} + +// GetUserPoolMfaConfigWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) GetUserPoolMfaConfigWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.GetUserPoolMfaConfigInput, arg2 ...request.Option) (*cognitoidentityprovider.GetUserPoolMfaConfigOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetUserPoolMfaConfigWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.GetUserPoolMfaConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetUserPoolMfaConfigWithContext indicates an expected call of GetUserPoolMfaConfigWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) GetUserPoolMfaConfigWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserPoolMfaConfigWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).GetUserPoolMfaConfigWithContext), varargs...) +} + +// GetUserRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) GetUserRequest(arg0 *cognitoidentityprovider.GetUserInput) (*request.Request, *cognitoidentityprovider.GetUserOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetUserRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.GetUserOutput) + return ret0, ret1 +} + +// GetUserRequest indicates an expected call of GetUserRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) GetUserRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).GetUserRequest), arg0) +} + +// GetUserWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) GetUserWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.GetUserInput, arg2 ...request.Option) (*cognitoidentityprovider.GetUserOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetUserWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.GetUserOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetUserWithContext indicates an expected call of GetUserWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) GetUserWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).GetUserWithContext), varargs...) +} + +// GlobalSignOut mocks base method. +func (m *MockCognitoIdentityProviderAPI) GlobalSignOut(arg0 *cognitoidentityprovider.GlobalSignOutInput) (*cognitoidentityprovider.GlobalSignOutOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GlobalSignOut", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.GlobalSignOutOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GlobalSignOut indicates an expected call of GlobalSignOut. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) GlobalSignOut(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GlobalSignOut", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).GlobalSignOut), arg0) +} + +// GlobalSignOutRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) GlobalSignOutRequest(arg0 *cognitoidentityprovider.GlobalSignOutInput) (*request.Request, *cognitoidentityprovider.GlobalSignOutOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GlobalSignOutRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.GlobalSignOutOutput) + return ret0, ret1 +} + +// GlobalSignOutRequest indicates an expected call of GlobalSignOutRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) GlobalSignOutRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GlobalSignOutRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).GlobalSignOutRequest), arg0) +} + +// GlobalSignOutWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) GlobalSignOutWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.GlobalSignOutInput, arg2 ...request.Option) (*cognitoidentityprovider.GlobalSignOutOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GlobalSignOutWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.GlobalSignOutOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GlobalSignOutWithContext indicates an expected call of GlobalSignOutWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) GlobalSignOutWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GlobalSignOutWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).GlobalSignOutWithContext), varargs...) +} + +// InitiateAuth mocks base method. +func (m *MockCognitoIdentityProviderAPI) InitiateAuth(arg0 *cognitoidentityprovider.InitiateAuthInput) (*cognitoidentityprovider.InitiateAuthOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "InitiateAuth", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.InitiateAuthOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InitiateAuth indicates an expected call of InitiateAuth. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) InitiateAuth(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InitiateAuth", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).InitiateAuth), arg0) +} + +// InitiateAuthRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) InitiateAuthRequest(arg0 *cognitoidentityprovider.InitiateAuthInput) (*request.Request, *cognitoidentityprovider.InitiateAuthOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "InitiateAuthRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.InitiateAuthOutput) + return ret0, ret1 +} + +// InitiateAuthRequest indicates an expected call of InitiateAuthRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) InitiateAuthRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InitiateAuthRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).InitiateAuthRequest), arg0) +} + +// InitiateAuthWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) InitiateAuthWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.InitiateAuthInput, arg2 ...request.Option) (*cognitoidentityprovider.InitiateAuthOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "InitiateAuthWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.InitiateAuthOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// InitiateAuthWithContext indicates an expected call of InitiateAuthWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) InitiateAuthWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InitiateAuthWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).InitiateAuthWithContext), varargs...) +} + +// ListDevices mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListDevices(arg0 *cognitoidentityprovider.ListDevicesInput) (*cognitoidentityprovider.ListDevicesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDevices", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.ListDevicesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListDevices indicates an expected call of ListDevices. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListDevices(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDevices", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListDevices), arg0) +} + +// ListDevicesRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListDevicesRequest(arg0 *cognitoidentityprovider.ListDevicesInput) (*request.Request, *cognitoidentityprovider.ListDevicesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListDevicesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.ListDevicesOutput) + return ret0, ret1 +} + +// ListDevicesRequest indicates an expected call of ListDevicesRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListDevicesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDevicesRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListDevicesRequest), arg0) +} + +// ListDevicesWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListDevicesWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.ListDevicesInput, arg2 ...request.Option) (*cognitoidentityprovider.ListDevicesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListDevicesWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.ListDevicesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListDevicesWithContext indicates an expected call of ListDevicesWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListDevicesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDevicesWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListDevicesWithContext), varargs...) +} + +// ListGroups mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListGroups(arg0 *cognitoidentityprovider.ListGroupsInput) (*cognitoidentityprovider.ListGroupsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListGroups", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.ListGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListGroups indicates an expected call of ListGroups. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListGroups(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGroups", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListGroups), arg0) +} + +// ListGroupsPages mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListGroupsPages(arg0 *cognitoidentityprovider.ListGroupsInput, arg1 func(*cognitoidentityprovider.ListGroupsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListGroupsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListGroupsPages indicates an expected call of ListGroupsPages. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListGroupsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGroupsPages", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListGroupsPages), arg0, arg1) +} + +// ListGroupsPagesWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListGroupsPagesWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.ListGroupsInput, arg2 func(*cognitoidentityprovider.ListGroupsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListGroupsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListGroupsPagesWithContext indicates an expected call of ListGroupsPagesWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListGroupsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGroupsPagesWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListGroupsPagesWithContext), varargs...) +} + +// ListGroupsRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListGroupsRequest(arg0 *cognitoidentityprovider.ListGroupsInput) (*request.Request, *cognitoidentityprovider.ListGroupsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListGroupsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.ListGroupsOutput) + return ret0, ret1 +} + +// ListGroupsRequest indicates an expected call of ListGroupsRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListGroupsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGroupsRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListGroupsRequest), arg0) +} + +// ListGroupsWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListGroupsWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.ListGroupsInput, arg2 ...request.Option) (*cognitoidentityprovider.ListGroupsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListGroupsWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.ListGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListGroupsWithContext indicates an expected call of ListGroupsWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListGroupsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGroupsWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListGroupsWithContext), varargs...) +} + +// ListIdentityProviders mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListIdentityProviders(arg0 *cognitoidentityprovider.ListIdentityProvidersInput) (*cognitoidentityprovider.ListIdentityProvidersOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListIdentityProviders", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.ListIdentityProvidersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListIdentityProviders indicates an expected call of ListIdentityProviders. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListIdentityProviders(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListIdentityProviders", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListIdentityProviders), arg0) +} + +// ListIdentityProvidersPages mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListIdentityProvidersPages(arg0 *cognitoidentityprovider.ListIdentityProvidersInput, arg1 func(*cognitoidentityprovider.ListIdentityProvidersOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListIdentityProvidersPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListIdentityProvidersPages indicates an expected call of ListIdentityProvidersPages. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListIdentityProvidersPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListIdentityProvidersPages", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListIdentityProvidersPages), arg0, arg1) +} + +// ListIdentityProvidersPagesWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListIdentityProvidersPagesWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.ListIdentityProvidersInput, arg2 func(*cognitoidentityprovider.ListIdentityProvidersOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListIdentityProvidersPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListIdentityProvidersPagesWithContext indicates an expected call of ListIdentityProvidersPagesWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListIdentityProvidersPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListIdentityProvidersPagesWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListIdentityProvidersPagesWithContext), varargs...) +} + +// ListIdentityProvidersRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListIdentityProvidersRequest(arg0 *cognitoidentityprovider.ListIdentityProvidersInput) (*request.Request, *cognitoidentityprovider.ListIdentityProvidersOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListIdentityProvidersRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.ListIdentityProvidersOutput) + return ret0, ret1 +} + +// ListIdentityProvidersRequest indicates an expected call of ListIdentityProvidersRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListIdentityProvidersRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListIdentityProvidersRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListIdentityProvidersRequest), arg0) +} + +// ListIdentityProvidersWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListIdentityProvidersWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.ListIdentityProvidersInput, arg2 ...request.Option) (*cognitoidentityprovider.ListIdentityProvidersOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListIdentityProvidersWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.ListIdentityProvidersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListIdentityProvidersWithContext indicates an expected call of ListIdentityProvidersWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListIdentityProvidersWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListIdentityProvidersWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListIdentityProvidersWithContext), varargs...) +} + +// ListResourceServers mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListResourceServers(arg0 *cognitoidentityprovider.ListResourceServersInput) (*cognitoidentityprovider.ListResourceServersOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResourceServers", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.ListResourceServersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListResourceServers indicates an expected call of ListResourceServers. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListResourceServers(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceServers", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListResourceServers), arg0) +} + +// ListResourceServersPages mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListResourceServersPages(arg0 *cognitoidentityprovider.ListResourceServersInput, arg1 func(*cognitoidentityprovider.ListResourceServersOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResourceServersPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListResourceServersPages indicates an expected call of ListResourceServersPages. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListResourceServersPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceServersPages", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListResourceServersPages), arg0, arg1) +} + +// ListResourceServersPagesWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListResourceServersPagesWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.ListResourceServersInput, arg2 func(*cognitoidentityprovider.ListResourceServersOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListResourceServersPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListResourceServersPagesWithContext indicates an expected call of ListResourceServersPagesWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListResourceServersPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceServersPagesWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListResourceServersPagesWithContext), varargs...) +} + +// ListResourceServersRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListResourceServersRequest(arg0 *cognitoidentityprovider.ListResourceServersInput) (*request.Request, *cognitoidentityprovider.ListResourceServersOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListResourceServersRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.ListResourceServersOutput) + return ret0, ret1 +} + +// ListResourceServersRequest indicates an expected call of ListResourceServersRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListResourceServersRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceServersRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListResourceServersRequest), arg0) +} + +// ListResourceServersWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListResourceServersWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.ListResourceServersInput, arg2 ...request.Option) (*cognitoidentityprovider.ListResourceServersOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListResourceServersWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.ListResourceServersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListResourceServersWithContext indicates an expected call of ListResourceServersWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListResourceServersWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceServersWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListResourceServersWithContext), varargs...) +} + +// ListTagsForResource mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListTagsForResource(arg0 *cognitoidentityprovider.ListTagsForResourceInput) (*cognitoidentityprovider.ListTagsForResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTagsForResource", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.ListTagsForResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTagsForResource indicates an expected call of ListTagsForResource. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListTagsForResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsForResource", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListTagsForResource), arg0) +} + +// ListTagsForResourceRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListTagsForResourceRequest(arg0 *cognitoidentityprovider.ListTagsForResourceInput) (*request.Request, *cognitoidentityprovider.ListTagsForResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTagsForResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.ListTagsForResourceOutput) + return ret0, ret1 +} + +// ListTagsForResourceRequest indicates an expected call of ListTagsForResourceRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListTagsForResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsForResourceRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListTagsForResourceRequest), arg0) +} + +// ListTagsForResourceWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListTagsForResourceWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.ListTagsForResourceInput, arg2 ...request.Option) (*cognitoidentityprovider.ListTagsForResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTagsForResourceWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.ListTagsForResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTagsForResourceWithContext indicates an expected call of ListTagsForResourceWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListTagsForResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsForResourceWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListTagsForResourceWithContext), varargs...) +} + +// ListUserImportJobs mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListUserImportJobs(arg0 *cognitoidentityprovider.ListUserImportJobsInput) (*cognitoidentityprovider.ListUserImportJobsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListUserImportJobs", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.ListUserImportJobsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListUserImportJobs indicates an expected call of ListUserImportJobs. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListUserImportJobs(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUserImportJobs", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListUserImportJobs), arg0) +} + +// ListUserImportJobsRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListUserImportJobsRequest(arg0 *cognitoidentityprovider.ListUserImportJobsInput) (*request.Request, *cognitoidentityprovider.ListUserImportJobsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListUserImportJobsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.ListUserImportJobsOutput) + return ret0, ret1 +} + +// ListUserImportJobsRequest indicates an expected call of ListUserImportJobsRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListUserImportJobsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUserImportJobsRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListUserImportJobsRequest), arg0) +} + +// ListUserImportJobsWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListUserImportJobsWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.ListUserImportJobsInput, arg2 ...request.Option) (*cognitoidentityprovider.ListUserImportJobsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListUserImportJobsWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.ListUserImportJobsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListUserImportJobsWithContext indicates an expected call of ListUserImportJobsWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListUserImportJobsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUserImportJobsWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListUserImportJobsWithContext), varargs...) +} + +// ListUserPoolClients mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListUserPoolClients(arg0 *cognitoidentityprovider.ListUserPoolClientsInput) (*cognitoidentityprovider.ListUserPoolClientsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListUserPoolClients", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.ListUserPoolClientsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListUserPoolClients indicates an expected call of ListUserPoolClients. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListUserPoolClients(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUserPoolClients", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListUserPoolClients), arg0) +} + +// ListUserPoolClientsPages mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListUserPoolClientsPages(arg0 *cognitoidentityprovider.ListUserPoolClientsInput, arg1 func(*cognitoidentityprovider.ListUserPoolClientsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListUserPoolClientsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListUserPoolClientsPages indicates an expected call of ListUserPoolClientsPages. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListUserPoolClientsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUserPoolClientsPages", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListUserPoolClientsPages), arg0, arg1) +} + +// ListUserPoolClientsPagesWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListUserPoolClientsPagesWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.ListUserPoolClientsInput, arg2 func(*cognitoidentityprovider.ListUserPoolClientsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListUserPoolClientsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListUserPoolClientsPagesWithContext indicates an expected call of ListUserPoolClientsPagesWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListUserPoolClientsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUserPoolClientsPagesWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListUserPoolClientsPagesWithContext), varargs...) +} + +// ListUserPoolClientsRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListUserPoolClientsRequest(arg0 *cognitoidentityprovider.ListUserPoolClientsInput) (*request.Request, *cognitoidentityprovider.ListUserPoolClientsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListUserPoolClientsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.ListUserPoolClientsOutput) + return ret0, ret1 +} + +// ListUserPoolClientsRequest indicates an expected call of ListUserPoolClientsRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListUserPoolClientsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUserPoolClientsRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListUserPoolClientsRequest), arg0) +} + +// ListUserPoolClientsWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListUserPoolClientsWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.ListUserPoolClientsInput, arg2 ...request.Option) (*cognitoidentityprovider.ListUserPoolClientsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListUserPoolClientsWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.ListUserPoolClientsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListUserPoolClientsWithContext indicates an expected call of ListUserPoolClientsWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListUserPoolClientsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUserPoolClientsWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListUserPoolClientsWithContext), varargs...) +} + +// ListUserPools mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListUserPools(arg0 *cognitoidentityprovider.ListUserPoolsInput) (*cognitoidentityprovider.ListUserPoolsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListUserPools", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.ListUserPoolsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListUserPools indicates an expected call of ListUserPools. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListUserPools(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUserPools", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListUserPools), arg0) +} + +// ListUserPoolsPages mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListUserPoolsPages(arg0 *cognitoidentityprovider.ListUserPoolsInput, arg1 func(*cognitoidentityprovider.ListUserPoolsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListUserPoolsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListUserPoolsPages indicates an expected call of ListUserPoolsPages. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListUserPoolsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUserPoolsPages", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListUserPoolsPages), arg0, arg1) +} + +// ListUserPoolsPagesWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListUserPoolsPagesWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.ListUserPoolsInput, arg2 func(*cognitoidentityprovider.ListUserPoolsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListUserPoolsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListUserPoolsPagesWithContext indicates an expected call of ListUserPoolsPagesWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListUserPoolsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUserPoolsPagesWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListUserPoolsPagesWithContext), varargs...) +} + +// ListUserPoolsRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListUserPoolsRequest(arg0 *cognitoidentityprovider.ListUserPoolsInput) (*request.Request, *cognitoidentityprovider.ListUserPoolsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListUserPoolsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.ListUserPoolsOutput) + return ret0, ret1 +} + +// ListUserPoolsRequest indicates an expected call of ListUserPoolsRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListUserPoolsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUserPoolsRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListUserPoolsRequest), arg0) +} + +// ListUserPoolsWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListUserPoolsWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.ListUserPoolsInput, arg2 ...request.Option) (*cognitoidentityprovider.ListUserPoolsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListUserPoolsWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.ListUserPoolsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListUserPoolsWithContext indicates an expected call of ListUserPoolsWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListUserPoolsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUserPoolsWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListUserPoolsWithContext), varargs...) +} + +// ListUsers mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListUsers(arg0 *cognitoidentityprovider.ListUsersInput) (*cognitoidentityprovider.ListUsersOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListUsers", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.ListUsersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListUsers indicates an expected call of ListUsers. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListUsers(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUsers", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListUsers), arg0) +} + +// ListUsersInGroup mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListUsersInGroup(arg0 *cognitoidentityprovider.ListUsersInGroupInput) (*cognitoidentityprovider.ListUsersInGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListUsersInGroup", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.ListUsersInGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListUsersInGroup indicates an expected call of ListUsersInGroup. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListUsersInGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUsersInGroup", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListUsersInGroup), arg0) +} + +// ListUsersInGroupPages mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListUsersInGroupPages(arg0 *cognitoidentityprovider.ListUsersInGroupInput, arg1 func(*cognitoidentityprovider.ListUsersInGroupOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListUsersInGroupPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListUsersInGroupPages indicates an expected call of ListUsersInGroupPages. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListUsersInGroupPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUsersInGroupPages", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListUsersInGroupPages), arg0, arg1) +} + +// ListUsersInGroupPagesWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListUsersInGroupPagesWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.ListUsersInGroupInput, arg2 func(*cognitoidentityprovider.ListUsersInGroupOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListUsersInGroupPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListUsersInGroupPagesWithContext indicates an expected call of ListUsersInGroupPagesWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListUsersInGroupPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUsersInGroupPagesWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListUsersInGroupPagesWithContext), varargs...) +} + +// ListUsersInGroupRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListUsersInGroupRequest(arg0 *cognitoidentityprovider.ListUsersInGroupInput) (*request.Request, *cognitoidentityprovider.ListUsersInGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListUsersInGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.ListUsersInGroupOutput) + return ret0, ret1 +} + +// ListUsersInGroupRequest indicates an expected call of ListUsersInGroupRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListUsersInGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUsersInGroupRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListUsersInGroupRequest), arg0) +} + +// ListUsersInGroupWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListUsersInGroupWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.ListUsersInGroupInput, arg2 ...request.Option) (*cognitoidentityprovider.ListUsersInGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListUsersInGroupWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.ListUsersInGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListUsersInGroupWithContext indicates an expected call of ListUsersInGroupWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListUsersInGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUsersInGroupWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListUsersInGroupWithContext), varargs...) +} + +// ListUsersPages mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListUsersPages(arg0 *cognitoidentityprovider.ListUsersInput, arg1 func(*cognitoidentityprovider.ListUsersOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListUsersPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListUsersPages indicates an expected call of ListUsersPages. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListUsersPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUsersPages", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListUsersPages), arg0, arg1) +} + +// ListUsersPagesWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListUsersPagesWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.ListUsersInput, arg2 func(*cognitoidentityprovider.ListUsersOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListUsersPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListUsersPagesWithContext indicates an expected call of ListUsersPagesWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListUsersPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUsersPagesWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListUsersPagesWithContext), varargs...) +} + +// ListUsersRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListUsersRequest(arg0 *cognitoidentityprovider.ListUsersInput) (*request.Request, *cognitoidentityprovider.ListUsersOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListUsersRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.ListUsersOutput) + return ret0, ret1 +} + +// ListUsersRequest indicates an expected call of ListUsersRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListUsersRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUsersRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListUsersRequest), arg0) +} + +// ListUsersWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) ListUsersWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.ListUsersInput, arg2 ...request.Option) (*cognitoidentityprovider.ListUsersOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListUsersWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.ListUsersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListUsersWithContext indicates an expected call of ListUsersWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ListUsersWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListUsersWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ListUsersWithContext), varargs...) +} + +// ResendConfirmationCode mocks base method. +func (m *MockCognitoIdentityProviderAPI) ResendConfirmationCode(arg0 *cognitoidentityprovider.ResendConfirmationCodeInput) (*cognitoidentityprovider.ResendConfirmationCodeOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ResendConfirmationCode", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.ResendConfirmationCodeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ResendConfirmationCode indicates an expected call of ResendConfirmationCode. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ResendConfirmationCode(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResendConfirmationCode", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ResendConfirmationCode), arg0) +} + +// ResendConfirmationCodeRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) ResendConfirmationCodeRequest(arg0 *cognitoidentityprovider.ResendConfirmationCodeInput) (*request.Request, *cognitoidentityprovider.ResendConfirmationCodeOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ResendConfirmationCodeRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.ResendConfirmationCodeOutput) + return ret0, ret1 +} + +// ResendConfirmationCodeRequest indicates an expected call of ResendConfirmationCodeRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ResendConfirmationCodeRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResendConfirmationCodeRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ResendConfirmationCodeRequest), arg0) +} + +// ResendConfirmationCodeWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) ResendConfirmationCodeWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.ResendConfirmationCodeInput, arg2 ...request.Option) (*cognitoidentityprovider.ResendConfirmationCodeOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ResendConfirmationCodeWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.ResendConfirmationCodeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ResendConfirmationCodeWithContext indicates an expected call of ResendConfirmationCodeWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) ResendConfirmationCodeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResendConfirmationCodeWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).ResendConfirmationCodeWithContext), varargs...) +} + +// RespondToAuthChallenge mocks base method. +func (m *MockCognitoIdentityProviderAPI) RespondToAuthChallenge(arg0 *cognitoidentityprovider.RespondToAuthChallengeInput) (*cognitoidentityprovider.RespondToAuthChallengeOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RespondToAuthChallenge", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.RespondToAuthChallengeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RespondToAuthChallenge indicates an expected call of RespondToAuthChallenge. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) RespondToAuthChallenge(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RespondToAuthChallenge", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).RespondToAuthChallenge), arg0) +} + +// RespondToAuthChallengeRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) RespondToAuthChallengeRequest(arg0 *cognitoidentityprovider.RespondToAuthChallengeInput) (*request.Request, *cognitoidentityprovider.RespondToAuthChallengeOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RespondToAuthChallengeRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.RespondToAuthChallengeOutput) + return ret0, ret1 +} + +// RespondToAuthChallengeRequest indicates an expected call of RespondToAuthChallengeRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) RespondToAuthChallengeRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RespondToAuthChallengeRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).RespondToAuthChallengeRequest), arg0) +} + +// RespondToAuthChallengeWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) RespondToAuthChallengeWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.RespondToAuthChallengeInput, arg2 ...request.Option) (*cognitoidentityprovider.RespondToAuthChallengeOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RespondToAuthChallengeWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.RespondToAuthChallengeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RespondToAuthChallengeWithContext indicates an expected call of RespondToAuthChallengeWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) RespondToAuthChallengeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RespondToAuthChallengeWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).RespondToAuthChallengeWithContext), varargs...) +} + +// RevokeToken mocks base method. +func (m *MockCognitoIdentityProviderAPI) RevokeToken(arg0 *cognitoidentityprovider.RevokeTokenInput) (*cognitoidentityprovider.RevokeTokenOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RevokeToken", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.RevokeTokenOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RevokeToken indicates an expected call of RevokeToken. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) RevokeToken(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevokeToken", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).RevokeToken), arg0) +} + +// RevokeTokenRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) RevokeTokenRequest(arg0 *cognitoidentityprovider.RevokeTokenInput) (*request.Request, *cognitoidentityprovider.RevokeTokenOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RevokeTokenRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.RevokeTokenOutput) + return ret0, ret1 +} + +// RevokeTokenRequest indicates an expected call of RevokeTokenRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) RevokeTokenRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevokeTokenRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).RevokeTokenRequest), arg0) +} + +// RevokeTokenWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) RevokeTokenWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.RevokeTokenInput, arg2 ...request.Option) (*cognitoidentityprovider.RevokeTokenOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RevokeTokenWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.RevokeTokenOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RevokeTokenWithContext indicates an expected call of RevokeTokenWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) RevokeTokenWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevokeTokenWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).RevokeTokenWithContext), varargs...) +} + +// SetLogDeliveryConfiguration mocks base method. +func (m *MockCognitoIdentityProviderAPI) SetLogDeliveryConfiguration(arg0 *cognitoidentityprovider.SetLogDeliveryConfigurationInput) (*cognitoidentityprovider.SetLogDeliveryConfigurationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetLogDeliveryConfiguration", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.SetLogDeliveryConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetLogDeliveryConfiguration indicates an expected call of SetLogDeliveryConfiguration. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) SetLogDeliveryConfiguration(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLogDeliveryConfiguration", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).SetLogDeliveryConfiguration), arg0) +} + +// SetLogDeliveryConfigurationRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) SetLogDeliveryConfigurationRequest(arg0 *cognitoidentityprovider.SetLogDeliveryConfigurationInput) (*request.Request, *cognitoidentityprovider.SetLogDeliveryConfigurationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetLogDeliveryConfigurationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.SetLogDeliveryConfigurationOutput) + return ret0, ret1 +} + +// SetLogDeliveryConfigurationRequest indicates an expected call of SetLogDeliveryConfigurationRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) SetLogDeliveryConfigurationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLogDeliveryConfigurationRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).SetLogDeliveryConfigurationRequest), arg0) +} + +// SetLogDeliveryConfigurationWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) SetLogDeliveryConfigurationWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.SetLogDeliveryConfigurationInput, arg2 ...request.Option) (*cognitoidentityprovider.SetLogDeliveryConfigurationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SetLogDeliveryConfigurationWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.SetLogDeliveryConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetLogDeliveryConfigurationWithContext indicates an expected call of SetLogDeliveryConfigurationWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) SetLogDeliveryConfigurationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLogDeliveryConfigurationWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).SetLogDeliveryConfigurationWithContext), varargs...) +} + +// SetRiskConfiguration mocks base method. +func (m *MockCognitoIdentityProviderAPI) SetRiskConfiguration(arg0 *cognitoidentityprovider.SetRiskConfigurationInput) (*cognitoidentityprovider.SetRiskConfigurationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetRiskConfiguration", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.SetRiskConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetRiskConfiguration indicates an expected call of SetRiskConfiguration. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) SetRiskConfiguration(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetRiskConfiguration", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).SetRiskConfiguration), arg0) +} + +// SetRiskConfigurationRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) SetRiskConfigurationRequest(arg0 *cognitoidentityprovider.SetRiskConfigurationInput) (*request.Request, *cognitoidentityprovider.SetRiskConfigurationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetRiskConfigurationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.SetRiskConfigurationOutput) + return ret0, ret1 +} + +// SetRiskConfigurationRequest indicates an expected call of SetRiskConfigurationRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) SetRiskConfigurationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetRiskConfigurationRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).SetRiskConfigurationRequest), arg0) +} + +// SetRiskConfigurationWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) SetRiskConfigurationWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.SetRiskConfigurationInput, arg2 ...request.Option) (*cognitoidentityprovider.SetRiskConfigurationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SetRiskConfigurationWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.SetRiskConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetRiskConfigurationWithContext indicates an expected call of SetRiskConfigurationWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) SetRiskConfigurationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetRiskConfigurationWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).SetRiskConfigurationWithContext), varargs...) +} + +// SetUICustomization mocks base method. +func (m *MockCognitoIdentityProviderAPI) SetUICustomization(arg0 *cognitoidentityprovider.SetUICustomizationInput) (*cognitoidentityprovider.SetUICustomizationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetUICustomization", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.SetUICustomizationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetUICustomization indicates an expected call of SetUICustomization. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) SetUICustomization(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetUICustomization", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).SetUICustomization), arg0) +} + +// SetUICustomizationRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) SetUICustomizationRequest(arg0 *cognitoidentityprovider.SetUICustomizationInput) (*request.Request, *cognitoidentityprovider.SetUICustomizationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetUICustomizationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.SetUICustomizationOutput) + return ret0, ret1 +} + +// SetUICustomizationRequest indicates an expected call of SetUICustomizationRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) SetUICustomizationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetUICustomizationRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).SetUICustomizationRequest), arg0) +} + +// SetUICustomizationWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) SetUICustomizationWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.SetUICustomizationInput, arg2 ...request.Option) (*cognitoidentityprovider.SetUICustomizationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SetUICustomizationWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.SetUICustomizationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetUICustomizationWithContext indicates an expected call of SetUICustomizationWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) SetUICustomizationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetUICustomizationWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).SetUICustomizationWithContext), varargs...) +} + +// SetUserMFAPreference mocks base method. +func (m *MockCognitoIdentityProviderAPI) SetUserMFAPreference(arg0 *cognitoidentityprovider.SetUserMFAPreferenceInput) (*cognitoidentityprovider.SetUserMFAPreferenceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetUserMFAPreference", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.SetUserMFAPreferenceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetUserMFAPreference indicates an expected call of SetUserMFAPreference. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) SetUserMFAPreference(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetUserMFAPreference", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).SetUserMFAPreference), arg0) +} + +// SetUserMFAPreferenceRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) SetUserMFAPreferenceRequest(arg0 *cognitoidentityprovider.SetUserMFAPreferenceInput) (*request.Request, *cognitoidentityprovider.SetUserMFAPreferenceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetUserMFAPreferenceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.SetUserMFAPreferenceOutput) + return ret0, ret1 +} + +// SetUserMFAPreferenceRequest indicates an expected call of SetUserMFAPreferenceRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) SetUserMFAPreferenceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetUserMFAPreferenceRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).SetUserMFAPreferenceRequest), arg0) +} + +// SetUserMFAPreferenceWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) SetUserMFAPreferenceWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.SetUserMFAPreferenceInput, arg2 ...request.Option) (*cognitoidentityprovider.SetUserMFAPreferenceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SetUserMFAPreferenceWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.SetUserMFAPreferenceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetUserMFAPreferenceWithContext indicates an expected call of SetUserMFAPreferenceWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) SetUserMFAPreferenceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetUserMFAPreferenceWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).SetUserMFAPreferenceWithContext), varargs...) +} + +// SetUserPoolMfaConfig mocks base method. +func (m *MockCognitoIdentityProviderAPI) SetUserPoolMfaConfig(arg0 *cognitoidentityprovider.SetUserPoolMfaConfigInput) (*cognitoidentityprovider.SetUserPoolMfaConfigOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetUserPoolMfaConfig", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.SetUserPoolMfaConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetUserPoolMfaConfig indicates an expected call of SetUserPoolMfaConfig. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) SetUserPoolMfaConfig(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetUserPoolMfaConfig", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).SetUserPoolMfaConfig), arg0) +} + +// SetUserPoolMfaConfigRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) SetUserPoolMfaConfigRequest(arg0 *cognitoidentityprovider.SetUserPoolMfaConfigInput) (*request.Request, *cognitoidentityprovider.SetUserPoolMfaConfigOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetUserPoolMfaConfigRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.SetUserPoolMfaConfigOutput) + return ret0, ret1 +} + +// SetUserPoolMfaConfigRequest indicates an expected call of SetUserPoolMfaConfigRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) SetUserPoolMfaConfigRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetUserPoolMfaConfigRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).SetUserPoolMfaConfigRequest), arg0) +} + +// SetUserPoolMfaConfigWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) SetUserPoolMfaConfigWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.SetUserPoolMfaConfigInput, arg2 ...request.Option) (*cognitoidentityprovider.SetUserPoolMfaConfigOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SetUserPoolMfaConfigWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.SetUserPoolMfaConfigOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetUserPoolMfaConfigWithContext indicates an expected call of SetUserPoolMfaConfigWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) SetUserPoolMfaConfigWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetUserPoolMfaConfigWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).SetUserPoolMfaConfigWithContext), varargs...) +} + +// SetUserSettings mocks base method. +func (m *MockCognitoIdentityProviderAPI) SetUserSettings(arg0 *cognitoidentityprovider.SetUserSettingsInput) (*cognitoidentityprovider.SetUserSettingsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetUserSettings", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.SetUserSettingsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetUserSettings indicates an expected call of SetUserSettings. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) SetUserSettings(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetUserSettings", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).SetUserSettings), arg0) +} + +// SetUserSettingsRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) SetUserSettingsRequest(arg0 *cognitoidentityprovider.SetUserSettingsInput) (*request.Request, *cognitoidentityprovider.SetUserSettingsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetUserSettingsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.SetUserSettingsOutput) + return ret0, ret1 +} + +// SetUserSettingsRequest indicates an expected call of SetUserSettingsRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) SetUserSettingsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetUserSettingsRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).SetUserSettingsRequest), arg0) +} + +// SetUserSettingsWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) SetUserSettingsWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.SetUserSettingsInput, arg2 ...request.Option) (*cognitoidentityprovider.SetUserSettingsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SetUserSettingsWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.SetUserSettingsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetUserSettingsWithContext indicates an expected call of SetUserSettingsWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) SetUserSettingsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetUserSettingsWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).SetUserSettingsWithContext), varargs...) +} + +// SignUp mocks base method. +func (m *MockCognitoIdentityProviderAPI) SignUp(arg0 *cognitoidentityprovider.SignUpInput) (*cognitoidentityprovider.SignUpOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SignUp", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.SignUpOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SignUp indicates an expected call of SignUp. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) SignUp(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SignUp", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).SignUp), arg0) +} + +// SignUpRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) SignUpRequest(arg0 *cognitoidentityprovider.SignUpInput) (*request.Request, *cognitoidentityprovider.SignUpOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SignUpRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.SignUpOutput) + return ret0, ret1 +} + +// SignUpRequest indicates an expected call of SignUpRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) SignUpRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SignUpRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).SignUpRequest), arg0) +} + +// SignUpWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) SignUpWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.SignUpInput, arg2 ...request.Option) (*cognitoidentityprovider.SignUpOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SignUpWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.SignUpOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SignUpWithContext indicates an expected call of SignUpWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) SignUpWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SignUpWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).SignUpWithContext), varargs...) +} + +// StartUserImportJob mocks base method. +func (m *MockCognitoIdentityProviderAPI) StartUserImportJob(arg0 *cognitoidentityprovider.StartUserImportJobInput) (*cognitoidentityprovider.StartUserImportJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartUserImportJob", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.StartUserImportJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartUserImportJob indicates an expected call of StartUserImportJob. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) StartUserImportJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartUserImportJob", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).StartUserImportJob), arg0) +} + +// StartUserImportJobRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) StartUserImportJobRequest(arg0 *cognitoidentityprovider.StartUserImportJobInput) (*request.Request, *cognitoidentityprovider.StartUserImportJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartUserImportJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.StartUserImportJobOutput) + return ret0, ret1 +} + +// StartUserImportJobRequest indicates an expected call of StartUserImportJobRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) StartUserImportJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartUserImportJobRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).StartUserImportJobRequest), arg0) +} + +// StartUserImportJobWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) StartUserImportJobWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.StartUserImportJobInput, arg2 ...request.Option) (*cognitoidentityprovider.StartUserImportJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StartUserImportJobWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.StartUserImportJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartUserImportJobWithContext indicates an expected call of StartUserImportJobWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) StartUserImportJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartUserImportJobWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).StartUserImportJobWithContext), varargs...) +} + +// StopUserImportJob mocks base method. +func (m *MockCognitoIdentityProviderAPI) StopUserImportJob(arg0 *cognitoidentityprovider.StopUserImportJobInput) (*cognitoidentityprovider.StopUserImportJobOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopUserImportJob", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.StopUserImportJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopUserImportJob indicates an expected call of StopUserImportJob. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) StopUserImportJob(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopUserImportJob", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).StopUserImportJob), arg0) +} + +// StopUserImportJobRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) StopUserImportJobRequest(arg0 *cognitoidentityprovider.StopUserImportJobInput) (*request.Request, *cognitoidentityprovider.StopUserImportJobOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopUserImportJobRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.StopUserImportJobOutput) + return ret0, ret1 +} + +// StopUserImportJobRequest indicates an expected call of StopUserImportJobRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) StopUserImportJobRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopUserImportJobRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).StopUserImportJobRequest), arg0) +} + +// StopUserImportJobWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) StopUserImportJobWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.StopUserImportJobInput, arg2 ...request.Option) (*cognitoidentityprovider.StopUserImportJobOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StopUserImportJobWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.StopUserImportJobOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopUserImportJobWithContext indicates an expected call of StopUserImportJobWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) StopUserImportJobWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopUserImportJobWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).StopUserImportJobWithContext), varargs...) +} + +// TagResource mocks base method. +func (m *MockCognitoIdentityProviderAPI) TagResource(arg0 *cognitoidentityprovider.TagResourceInput) (*cognitoidentityprovider.TagResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagResource", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.TagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagResource indicates an expected call of TagResource. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) TagResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagResource", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).TagResource), arg0) +} + +// TagResourceRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) TagResourceRequest(arg0 *cognitoidentityprovider.TagResourceInput) (*request.Request, *cognitoidentityprovider.TagResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.TagResourceOutput) + return ret0, ret1 +} + +// TagResourceRequest indicates an expected call of TagResourceRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) TagResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagResourceRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).TagResourceRequest), arg0) +} + +// TagResourceWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) TagResourceWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.TagResourceInput, arg2 ...request.Option) (*cognitoidentityprovider.TagResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "TagResourceWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.TagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagResourceWithContext indicates an expected call of TagResourceWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) TagResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagResourceWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).TagResourceWithContext), varargs...) +} + +// UntagResource mocks base method. +func (m *MockCognitoIdentityProviderAPI) UntagResource(arg0 *cognitoidentityprovider.UntagResourceInput) (*cognitoidentityprovider.UntagResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagResource", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.UntagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagResource indicates an expected call of UntagResource. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) UntagResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagResource", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).UntagResource), arg0) +} + +// UntagResourceRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) UntagResourceRequest(arg0 *cognitoidentityprovider.UntagResourceInput) (*request.Request, *cognitoidentityprovider.UntagResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.UntagResourceOutput) + return ret0, ret1 +} + +// UntagResourceRequest indicates an expected call of UntagResourceRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) UntagResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagResourceRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).UntagResourceRequest), arg0) +} + +// UntagResourceWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) UntagResourceWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.UntagResourceInput, arg2 ...request.Option) (*cognitoidentityprovider.UntagResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UntagResourceWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.UntagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagResourceWithContext indicates an expected call of UntagResourceWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) UntagResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagResourceWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).UntagResourceWithContext), varargs...) +} + +// UpdateAuthEventFeedback mocks base method. +func (m *MockCognitoIdentityProviderAPI) UpdateAuthEventFeedback(arg0 *cognitoidentityprovider.UpdateAuthEventFeedbackInput) (*cognitoidentityprovider.UpdateAuthEventFeedbackOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateAuthEventFeedback", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.UpdateAuthEventFeedbackOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateAuthEventFeedback indicates an expected call of UpdateAuthEventFeedback. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) UpdateAuthEventFeedback(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAuthEventFeedback", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).UpdateAuthEventFeedback), arg0) +} + +// UpdateAuthEventFeedbackRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) UpdateAuthEventFeedbackRequest(arg0 *cognitoidentityprovider.UpdateAuthEventFeedbackInput) (*request.Request, *cognitoidentityprovider.UpdateAuthEventFeedbackOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateAuthEventFeedbackRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.UpdateAuthEventFeedbackOutput) + return ret0, ret1 +} + +// UpdateAuthEventFeedbackRequest indicates an expected call of UpdateAuthEventFeedbackRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) UpdateAuthEventFeedbackRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAuthEventFeedbackRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).UpdateAuthEventFeedbackRequest), arg0) +} + +// UpdateAuthEventFeedbackWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) UpdateAuthEventFeedbackWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.UpdateAuthEventFeedbackInput, arg2 ...request.Option) (*cognitoidentityprovider.UpdateAuthEventFeedbackOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateAuthEventFeedbackWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.UpdateAuthEventFeedbackOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateAuthEventFeedbackWithContext indicates an expected call of UpdateAuthEventFeedbackWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) UpdateAuthEventFeedbackWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAuthEventFeedbackWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).UpdateAuthEventFeedbackWithContext), varargs...) +} + +// UpdateDeviceStatus mocks base method. +func (m *MockCognitoIdentityProviderAPI) UpdateDeviceStatus(arg0 *cognitoidentityprovider.UpdateDeviceStatusInput) (*cognitoidentityprovider.UpdateDeviceStatusOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateDeviceStatus", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.UpdateDeviceStatusOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateDeviceStatus indicates an expected call of UpdateDeviceStatus. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) UpdateDeviceStatus(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDeviceStatus", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).UpdateDeviceStatus), arg0) +} + +// UpdateDeviceStatusRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) UpdateDeviceStatusRequest(arg0 *cognitoidentityprovider.UpdateDeviceStatusInput) (*request.Request, *cognitoidentityprovider.UpdateDeviceStatusOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateDeviceStatusRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.UpdateDeviceStatusOutput) + return ret0, ret1 +} + +// UpdateDeviceStatusRequest indicates an expected call of UpdateDeviceStatusRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) UpdateDeviceStatusRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDeviceStatusRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).UpdateDeviceStatusRequest), arg0) +} + +// UpdateDeviceStatusWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) UpdateDeviceStatusWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.UpdateDeviceStatusInput, arg2 ...request.Option) (*cognitoidentityprovider.UpdateDeviceStatusOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateDeviceStatusWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.UpdateDeviceStatusOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateDeviceStatusWithContext indicates an expected call of UpdateDeviceStatusWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) UpdateDeviceStatusWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDeviceStatusWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).UpdateDeviceStatusWithContext), varargs...) +} + +// UpdateGroup mocks base method. +func (m *MockCognitoIdentityProviderAPI) UpdateGroup(arg0 *cognitoidentityprovider.UpdateGroupInput) (*cognitoidentityprovider.UpdateGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateGroup", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.UpdateGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateGroup indicates an expected call of UpdateGroup. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) UpdateGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGroup", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).UpdateGroup), arg0) +} + +// UpdateGroupRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) UpdateGroupRequest(arg0 *cognitoidentityprovider.UpdateGroupInput) (*request.Request, *cognitoidentityprovider.UpdateGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.UpdateGroupOutput) + return ret0, ret1 +} + +// UpdateGroupRequest indicates an expected call of UpdateGroupRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) UpdateGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGroupRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).UpdateGroupRequest), arg0) +} + +// UpdateGroupWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) UpdateGroupWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.UpdateGroupInput, arg2 ...request.Option) (*cognitoidentityprovider.UpdateGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateGroupWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.UpdateGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateGroupWithContext indicates an expected call of UpdateGroupWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) UpdateGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGroupWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).UpdateGroupWithContext), varargs...) +} + +// UpdateIdentityProvider mocks base method. +func (m *MockCognitoIdentityProviderAPI) UpdateIdentityProvider(arg0 *cognitoidentityprovider.UpdateIdentityProviderInput) (*cognitoidentityprovider.UpdateIdentityProviderOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateIdentityProvider", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.UpdateIdentityProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateIdentityProvider indicates an expected call of UpdateIdentityProvider. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) UpdateIdentityProvider(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateIdentityProvider", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).UpdateIdentityProvider), arg0) +} + +// UpdateIdentityProviderRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) UpdateIdentityProviderRequest(arg0 *cognitoidentityprovider.UpdateIdentityProviderInput) (*request.Request, *cognitoidentityprovider.UpdateIdentityProviderOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateIdentityProviderRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.UpdateIdentityProviderOutput) + return ret0, ret1 +} + +// UpdateIdentityProviderRequest indicates an expected call of UpdateIdentityProviderRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) UpdateIdentityProviderRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateIdentityProviderRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).UpdateIdentityProviderRequest), arg0) +} + +// UpdateIdentityProviderWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) UpdateIdentityProviderWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.UpdateIdentityProviderInput, arg2 ...request.Option) (*cognitoidentityprovider.UpdateIdentityProviderOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateIdentityProviderWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.UpdateIdentityProviderOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateIdentityProviderWithContext indicates an expected call of UpdateIdentityProviderWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) UpdateIdentityProviderWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateIdentityProviderWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).UpdateIdentityProviderWithContext), varargs...) +} + +// UpdateResourceServer mocks base method. +func (m *MockCognitoIdentityProviderAPI) UpdateResourceServer(arg0 *cognitoidentityprovider.UpdateResourceServerInput) (*cognitoidentityprovider.UpdateResourceServerOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateResourceServer", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.UpdateResourceServerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateResourceServer indicates an expected call of UpdateResourceServer. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) UpdateResourceServer(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateResourceServer", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).UpdateResourceServer), arg0) +} + +// UpdateResourceServerRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) UpdateResourceServerRequest(arg0 *cognitoidentityprovider.UpdateResourceServerInput) (*request.Request, *cognitoidentityprovider.UpdateResourceServerOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateResourceServerRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.UpdateResourceServerOutput) + return ret0, ret1 +} + +// UpdateResourceServerRequest indicates an expected call of UpdateResourceServerRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) UpdateResourceServerRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateResourceServerRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).UpdateResourceServerRequest), arg0) +} + +// UpdateResourceServerWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) UpdateResourceServerWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.UpdateResourceServerInput, arg2 ...request.Option) (*cognitoidentityprovider.UpdateResourceServerOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateResourceServerWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.UpdateResourceServerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateResourceServerWithContext indicates an expected call of UpdateResourceServerWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) UpdateResourceServerWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateResourceServerWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).UpdateResourceServerWithContext), varargs...) +} + +// UpdateUserAttributes mocks base method. +func (m *MockCognitoIdentityProviderAPI) UpdateUserAttributes(arg0 *cognitoidentityprovider.UpdateUserAttributesInput) (*cognitoidentityprovider.UpdateUserAttributesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateUserAttributes", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.UpdateUserAttributesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateUserAttributes indicates an expected call of UpdateUserAttributes. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) UpdateUserAttributes(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserAttributes", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).UpdateUserAttributes), arg0) +} + +// UpdateUserAttributesRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) UpdateUserAttributesRequest(arg0 *cognitoidentityprovider.UpdateUserAttributesInput) (*request.Request, *cognitoidentityprovider.UpdateUserAttributesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateUserAttributesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.UpdateUserAttributesOutput) + return ret0, ret1 +} + +// UpdateUserAttributesRequest indicates an expected call of UpdateUserAttributesRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) UpdateUserAttributesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserAttributesRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).UpdateUserAttributesRequest), arg0) +} + +// UpdateUserAttributesWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) UpdateUserAttributesWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.UpdateUserAttributesInput, arg2 ...request.Option) (*cognitoidentityprovider.UpdateUserAttributesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateUserAttributesWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.UpdateUserAttributesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateUserAttributesWithContext indicates an expected call of UpdateUserAttributesWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) UpdateUserAttributesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserAttributesWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).UpdateUserAttributesWithContext), varargs...) +} + +// UpdateUserPool mocks base method. +func (m *MockCognitoIdentityProviderAPI) UpdateUserPool(arg0 *cognitoidentityprovider.UpdateUserPoolInput) (*cognitoidentityprovider.UpdateUserPoolOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateUserPool", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.UpdateUserPoolOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateUserPool indicates an expected call of UpdateUserPool. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) UpdateUserPool(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserPool", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).UpdateUserPool), arg0) +} + +// UpdateUserPoolClient mocks base method. +func (m *MockCognitoIdentityProviderAPI) UpdateUserPoolClient(arg0 *cognitoidentityprovider.UpdateUserPoolClientInput) (*cognitoidentityprovider.UpdateUserPoolClientOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateUserPoolClient", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.UpdateUserPoolClientOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateUserPoolClient indicates an expected call of UpdateUserPoolClient. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) UpdateUserPoolClient(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserPoolClient", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).UpdateUserPoolClient), arg0) +} + +// UpdateUserPoolClientRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) UpdateUserPoolClientRequest(arg0 *cognitoidentityprovider.UpdateUserPoolClientInput) (*request.Request, *cognitoidentityprovider.UpdateUserPoolClientOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateUserPoolClientRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.UpdateUserPoolClientOutput) + return ret0, ret1 +} + +// UpdateUserPoolClientRequest indicates an expected call of UpdateUserPoolClientRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) UpdateUserPoolClientRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserPoolClientRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).UpdateUserPoolClientRequest), arg0) +} + +// UpdateUserPoolClientWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) UpdateUserPoolClientWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.UpdateUserPoolClientInput, arg2 ...request.Option) (*cognitoidentityprovider.UpdateUserPoolClientOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateUserPoolClientWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.UpdateUserPoolClientOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateUserPoolClientWithContext indicates an expected call of UpdateUserPoolClientWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) UpdateUserPoolClientWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserPoolClientWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).UpdateUserPoolClientWithContext), varargs...) +} + +// UpdateUserPoolDomain mocks base method. +func (m *MockCognitoIdentityProviderAPI) UpdateUserPoolDomain(arg0 *cognitoidentityprovider.UpdateUserPoolDomainInput) (*cognitoidentityprovider.UpdateUserPoolDomainOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateUserPoolDomain", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.UpdateUserPoolDomainOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateUserPoolDomain indicates an expected call of UpdateUserPoolDomain. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) UpdateUserPoolDomain(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserPoolDomain", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).UpdateUserPoolDomain), arg0) +} + +// UpdateUserPoolDomainRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) UpdateUserPoolDomainRequest(arg0 *cognitoidentityprovider.UpdateUserPoolDomainInput) (*request.Request, *cognitoidentityprovider.UpdateUserPoolDomainOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateUserPoolDomainRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.UpdateUserPoolDomainOutput) + return ret0, ret1 +} + +// UpdateUserPoolDomainRequest indicates an expected call of UpdateUserPoolDomainRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) UpdateUserPoolDomainRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserPoolDomainRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).UpdateUserPoolDomainRequest), arg0) +} + +// UpdateUserPoolDomainWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) UpdateUserPoolDomainWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.UpdateUserPoolDomainInput, arg2 ...request.Option) (*cognitoidentityprovider.UpdateUserPoolDomainOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateUserPoolDomainWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.UpdateUserPoolDomainOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateUserPoolDomainWithContext indicates an expected call of UpdateUserPoolDomainWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) UpdateUserPoolDomainWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserPoolDomainWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).UpdateUserPoolDomainWithContext), varargs...) +} + +// UpdateUserPoolRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) UpdateUserPoolRequest(arg0 *cognitoidentityprovider.UpdateUserPoolInput) (*request.Request, *cognitoidentityprovider.UpdateUserPoolOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateUserPoolRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.UpdateUserPoolOutput) + return ret0, ret1 +} + +// UpdateUserPoolRequest indicates an expected call of UpdateUserPoolRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) UpdateUserPoolRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserPoolRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).UpdateUserPoolRequest), arg0) +} + +// UpdateUserPoolWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) UpdateUserPoolWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.UpdateUserPoolInput, arg2 ...request.Option) (*cognitoidentityprovider.UpdateUserPoolOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateUserPoolWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.UpdateUserPoolOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateUserPoolWithContext indicates an expected call of UpdateUserPoolWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) UpdateUserPoolWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserPoolWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).UpdateUserPoolWithContext), varargs...) +} + +// VerifySoftwareToken mocks base method. +func (m *MockCognitoIdentityProviderAPI) VerifySoftwareToken(arg0 *cognitoidentityprovider.VerifySoftwareTokenInput) (*cognitoidentityprovider.VerifySoftwareTokenOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "VerifySoftwareToken", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.VerifySoftwareTokenOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// VerifySoftwareToken indicates an expected call of VerifySoftwareToken. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) VerifySoftwareToken(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifySoftwareToken", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).VerifySoftwareToken), arg0) +} + +// VerifySoftwareTokenRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) VerifySoftwareTokenRequest(arg0 *cognitoidentityprovider.VerifySoftwareTokenInput) (*request.Request, *cognitoidentityprovider.VerifySoftwareTokenOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "VerifySoftwareTokenRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.VerifySoftwareTokenOutput) + return ret0, ret1 +} + +// VerifySoftwareTokenRequest indicates an expected call of VerifySoftwareTokenRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) VerifySoftwareTokenRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifySoftwareTokenRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).VerifySoftwareTokenRequest), arg0) +} + +// VerifySoftwareTokenWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) VerifySoftwareTokenWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.VerifySoftwareTokenInput, arg2 ...request.Option) (*cognitoidentityprovider.VerifySoftwareTokenOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "VerifySoftwareTokenWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.VerifySoftwareTokenOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// VerifySoftwareTokenWithContext indicates an expected call of VerifySoftwareTokenWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) VerifySoftwareTokenWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifySoftwareTokenWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).VerifySoftwareTokenWithContext), varargs...) +} + +// VerifyUserAttribute mocks base method. +func (m *MockCognitoIdentityProviderAPI) VerifyUserAttribute(arg0 *cognitoidentityprovider.VerifyUserAttributeInput) (*cognitoidentityprovider.VerifyUserAttributeOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "VerifyUserAttribute", arg0) + ret0, _ := ret[0].(*cognitoidentityprovider.VerifyUserAttributeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// VerifyUserAttribute indicates an expected call of VerifyUserAttribute. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) VerifyUserAttribute(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyUserAttribute", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).VerifyUserAttribute), arg0) +} + +// VerifyUserAttributeRequest mocks base method. +func (m *MockCognitoIdentityProviderAPI) VerifyUserAttributeRequest(arg0 *cognitoidentityprovider.VerifyUserAttributeInput) (*request.Request, *cognitoidentityprovider.VerifyUserAttributeOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "VerifyUserAttributeRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*cognitoidentityprovider.VerifyUserAttributeOutput) + return ret0, ret1 +} + +// VerifyUserAttributeRequest indicates an expected call of VerifyUserAttributeRequest. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) VerifyUserAttributeRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyUserAttributeRequest", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).VerifyUserAttributeRequest), arg0) +} + +// VerifyUserAttributeWithContext mocks base method. +func (m *MockCognitoIdentityProviderAPI) VerifyUserAttributeWithContext(arg0 aws.Context, arg1 *cognitoidentityprovider.VerifyUserAttributeInput, arg2 ...request.Option) (*cognitoidentityprovider.VerifyUserAttributeOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "VerifyUserAttributeWithContext", varargs...) + ret0, _ := ret[0].(*cognitoidentityprovider.VerifyUserAttributeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// VerifyUserAttributeWithContext indicates an expected call of VerifyUserAttributeWithContext. +func (mr *MockCognitoIdentityProviderAPIMockRecorder) VerifyUserAttributeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyUserAttributeWithContext", reflect.TypeOf((*MockCognitoIdentityProviderAPI)(nil).VerifyUserAttributeWithContext), varargs...) +} diff --git a/resources/cognito-userpool.go b/resources/cognito-userpool.go index 7a2efae8..ea332670 100644 --- a/resources/cognito-userpool.go +++ b/resources/cognito-userpool.go @@ -3,18 +3,19 @@ package resources import ( "context" "fmt" - "github.com/ekristen/libnuke/pkg/settings" "github.com/gotidy/ptr" "github.com/sirupsen/logrus" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/cognitoidentityprovider" + "github.com/aws/aws-sdk-go/service/cognitoidentityprovider/cognitoidentityprovideriface" "github.com/aws/aws-sdk-go/service/sts" "github.com/aws/aws-sdk-go/service/sts/stsiface" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/settings" "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/v3/pkg/nuke" @@ -39,11 +40,13 @@ func init() { } type CognitoUserPoolLister struct { - stsService stsiface.STSAPI + stsService stsiface.STSAPI + cognitoService cognitoidentityprovideriface.CognitoIdentityProviderAPI } func (l *CognitoUserPoolLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) + resources := make([]resource.Resource, 0) var stsSvc stsiface.STSAPI if l.stsService != nil { @@ -52,8 +55,12 @@ func (l *CognitoUserPoolLister) List(_ context.Context, o interface{}) ([]resour stsSvc = sts.New(opts.Session) } - svc := cognitoidentityprovider.New(opts.Session) - resources := make([]resource.Resource, 0) + var svc cognitoidentityprovideriface.CognitoIdentityProviderAPI + if l.cognitoService != nil { + svc = l.cognitoService + } else { + svc = cognitoidentityprovider.New(opts.Session) + } identityOutput, err := stsSvc.GetCallerIdentity(nil) if err != nil { @@ -99,7 +106,7 @@ func (l *CognitoUserPoolLister) List(_ context.Context, o interface{}) ([]resour } type CognitoUserPool struct { - svc *cognitoidentityprovider.CognitoIdentityProvider + svc cognitoidentityprovideriface.CognitoIdentityProviderAPI settings *settings.Setting Name *string ID *string diff --git a/resources/cognito-userpool_mock_test.go b/resources/cognito-userpool_mock_test.go new file mode 100644 index 00000000..ba63a3fd --- /dev/null +++ b/resources/cognito-userpool_mock_test.go @@ -0,0 +1,149 @@ +package resources + +import ( + "context" + "testing" + + "github.com/golang/mock/gomock" + "github.com/stretchr/testify/assert" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/sts" + + "github.com/aws/aws-sdk-go/service/cognitoidentityprovider" + + "github.com/ekristen/libnuke/pkg/settings" + + "github.com/ekristen/aws-nuke/v3/mocks/mock_cognitoidentityprovideriface" + "github.com/ekristen/aws-nuke/v3/mocks/mock_stsiface" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +func Test_Mock_CognitoUserPool_List(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockSvc := mock_cognitoidentityprovideriface.NewMockCognitoIdentityProviderAPI(ctrl) + mockStsSvc := mock_stsiface.NewMockSTSAPI(ctrl) + + lister := &CognitoUserPoolLister{ + stsService: mockStsSvc, + cognitoService: mockSvc, + } + + mockStsSvc.EXPECT().GetCallerIdentity(gomock.Any()).Return(&sts.GetCallerIdentityOutput{ + Account: aws.String("123456789012"), + }, nil) + + mockSvc.EXPECT().ListUserPools(&cognitoidentityprovider.ListUserPoolsInput{ + MaxResults: aws.Int64(50), + }).Return(&cognitoidentityprovider.ListUserPoolsOutput{ + UserPools: []*cognitoidentityprovider.UserPoolDescriptionType{ + { + Id: aws.String("test-pool-id"), + Name: aws.String("test-pool"), + }, + }, + }, nil) + + mockSvc.EXPECT().ListTagsForResource(&cognitoidentityprovider.ListTagsForResourceInput{ + ResourceArn: aws.String("arn:aws:cognito-idp:us-east-2:123456789012:userpool/test-pool-id"), + }).Return(&cognitoidentityprovider.ListTagsForResourceOutput{ + Tags: map[string]*string{ + "test-key": aws.String("test-value"), + }, + }, nil) + + resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ + Region: &nuke.Region{ + Name: "us-east-2", + }, + Session: session.Must(session.NewSession()), + }) + a.NoError(err) + a.Len(resources, 1) +} + +func Test_Mock_CognitoUserPool_Remove(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockSvc := mock_cognitoidentityprovideriface.NewMockCognitoIdentityProviderAPI(ctrl) + + mockSvc.EXPECT().DeleteUserPool(&cognitoidentityprovider.DeleteUserPoolInput{ + UserPoolId: aws.String("test-pool-id"), + }).Return(&cognitoidentityprovider.DeleteUserPoolOutput{}, nil) + + s := &settings.Setting{} + s.Set("DisableDeletionProtection", false) + + pool := &CognitoUserPool{ + svc: mockSvc, + settings: s, + Name: aws.String("test-pool"), + ID: aws.String("test-pool-id"), + Tags: map[string]*string{ + "test-key": aws.String("test-value"), + }, + } + + err := pool.Remove(context.TODO()) + a.NoError(err) +} + +func Test_Mock_CognitoUserPool_Remove_DeletionProtection(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockSvc := mock_cognitoidentityprovideriface.NewMockCognitoIdentityProviderAPI(ctrl) + + mockSvc.EXPECT().UpdateUserPool(&cognitoidentityprovider.UpdateUserPoolInput{ + UserPoolId: aws.String("test-pool-id"), + DeletionProtection: aws.String("INACTIVE"), + }).Return(&cognitoidentityprovider.UpdateUserPoolOutput{}, nil) + + mockSvc.EXPECT().DeleteUserPool(&cognitoidentityprovider.DeleteUserPoolInput{ + UserPoolId: aws.String("test-pool-id"), + }).Return(&cognitoidentityprovider.DeleteUserPoolOutput{}, nil) + + s := &settings.Setting{} + s.Set("DisableDeletionProtection", true) + + pool := &CognitoUserPool{ + svc: mockSvc, + settings: s, + Name: aws.String("test-pool"), + ID: aws.String("test-pool-id"), + Tags: map[string]*string{ + "test-key": aws.String("test-value"), + }, + } + + err := pool.Remove(context.TODO()) + a.NoError(err) +} + +func Test_Mock_CognitoUserPool_Properties(t *testing.T) { + a := assert.New(t) + + s := &settings.Setting{} + s.Set("DisableDeletionProtection", false) + + pool := &CognitoUserPool{ + settings: s, + Name: aws.String("test-pool"), + ID: aws.String("test-pool-id"), + Tags: map[string]*string{ + "test-key": aws.String("test-value"), + }, + } + + a.Equal("test-pool", pool.Properties().Get("Name")) + a.Equal("test-pool-id", pool.Properties().Get("ID")) + a.Equal("test-value", pool.Properties().Get("tag:test-key")) + a.Equal("test-pool", pool.String()) +} diff --git a/resources/cognito_mock_test.go b/resources/cognito_mock_test.go new file mode 100644 index 00000000..2d8148fd --- /dev/null +++ b/resources/cognito_mock_test.go @@ -0,0 +1,2 @@ +//go:generate ../mocks/generate_mocks.sh cognitoidentityprovider cognitoidentityprovideriface +package resources From b664097465c41112768f1b822025ef96460586d6 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 19 Sep 2024 07:26:03 -0600 Subject: [PATCH 492/617] docs(cognito-userpool): add documentation --- docs/resources/cognito-user-pool.md | 20 +++++++++++++++++++- mkdocs.yml | 3 ++- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/docs/resources/cognito-user-pool.md b/docs/resources/cognito-user-pool.md index 18d6395a..709b37db 100644 --- a/docs/resources/cognito-user-pool.md +++ b/docs/resources/cognito-user-pool.md @@ -1 +1,19 @@ -package resources +# Cognito User Pool + +**ResourceType:** `CognitoUserPool` + +## Settings + +- `DisableDeletionProtection` + +### DisableDeletionProtection + +Specifies whether deletion protection should be disabled prior to deleting the Cognito User Pool. Default is `false`. + +## Example Configuration + +```yaml +settings: + CognitoUserPool: + DisableDeletionProtection: true +``` diff --git a/mkdocs.yml b/mkdocs.yml index c40137c1..751996cd 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -91,7 +91,8 @@ nav: - Custom Endpoints: config-custom-endpoints.md - Migration Guide: config-migration.md - Resources: - S3 Bucket: resources/s3-bucket.md + - Cognito User Pool: resources/cognito-user-pool.md + - S3 Bucket: resources/s3-bucket.md - Development: - Overview: development.md - Contributing: contributing.md From 5e872c64447e364bd41773d306acc2333fd980fd Mon Sep 17 00:00:00 2001 From: Kurt McAlpine Date: Fri, 20 Sep 2024 10:39:36 +1200 Subject: [PATCH 493/617] feat(quicksight): support deleting quicksight users --- resources/quicksight-users.go | 111 ++++++++++++++++++++++++++++++++++ 1 file changed, 111 insertions(+) create mode 100644 resources/quicksight-users.go diff --git a/resources/quicksight-users.go b/resources/quicksight-users.go new file mode 100644 index 00000000..731d7e03 --- /dev/null +++ b/resources/quicksight-users.go @@ -0,0 +1,111 @@ +package resources + +import ( + "context" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/quicksight" + "github.com/aws/aws-sdk-go/service/quicksight/quicksightiface" + "github.com/aws/aws-sdk-go/service/sts" + "github.com/aws/aws-sdk-go/service/sts/stsiface" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" +) + +const QuickSightUserResource = "QuickSightUser" + +func init() { + registry.Register(®istry.Registration{ + Name: QuickSightUserResource, + Scope: nuke.Account, + Lister: &QuickSightUserLister{}, + }) +} + +type QuickSightUserLister struct { + stsService stsiface.STSAPI + quicksightService quicksightiface.QuickSightAPI +} + +type QuickSightUser struct { + svc quicksightiface.QuickSightAPI + accountID *string + principalID *string +} + +func (l *QuickSightUserLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + var stsSvc stsiface.STSAPI + if l.stsService != nil { + stsSvc = l.stsService + } else { + stsSvc = sts.New(opts.Session) + } + + var quicksightSvc quicksightiface.QuickSightAPI + if l.quicksightService != nil { + quicksightSvc = l.quicksightService + } else { + quicksightSvc = quicksight.New(opts.Session) + } + + callerID, err := stsSvc.GetCallerIdentity(&sts.GetCallerIdentityInput{}) + if err != nil { + return nil, err + } + accountID := callerID.Account + + var resources []resource.Resource + + err = quicksightSvc.ListUsersPages(&quicksight.ListUsersInput{ + AwsAccountId: accountID, + Namespace: aws.String("default"), + }, func(output *quicksight.ListUsersOutput, lastPage bool) bool { + for _, user := range output.UserList { + resources = append(resources, &QuickSightUser{ + svc: quicksightSvc, + accountID: accountID, + principalID: user.PrincipalId, + }) + } + return !lastPage + }) + if err != nil { + return nil, err + } + + return resources, nil +} + +func (r *QuickSightUser) Remove(_ context.Context) error { + _, err := r.svc.DeleteUserByPrincipalId(&quicksight.DeleteUserByPrincipalIdInput{ + AwsAccountId: r.accountID, + Namespace: aws.String("default"), + PrincipalId: r.principalID, + }) + + if err != nil { + return err + } + + return nil +} + +func (r *QuickSightUser) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("PrincipalId", r.principalID) + + return properties +} + +func (r *QuickSightUser) String() string { + return *r.principalID +} + +func (r *QuickSightUser) Filter() error { + return nil +} From e5d692e19063f9d7e72be6e0c9fbc5d0789cc229 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 25 Sep 2024 15:07:19 +0200 Subject: [PATCH 494/617] feat: add support for backup-report-plan --- resources/backup-report-plan.go | 80 +++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 resources/backup-report-plan.go diff --git a/resources/backup-report-plan.go b/resources/backup-report-plan.go new file mode 100644 index 00000000..d6b4cc3a --- /dev/null +++ b/resources/backup-report-plan.go @@ -0,0 +1,80 @@ +package resources + +import ( + "context" + + "github.com/aws/aws-sdk-go/service/backup" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type BackupReportPlan struct { + svc *backup.Backup + arn string + reportPlanName string +} + +type AWSBackupReportPlanLister struct{} + +func (AWSBackupReportPlanLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := backup.New(opts.Session) + max_backups_len := int64(100) + params := &backup.ListReportPlansInput{ + MaxResults: &max_backups_len, // aws default limit on number of backup plans per account + } + resources := make([]resource.Resource, 0) + + for { + output, err := svc.ListReportPlans(params) + if err != nil { + return nil, err + } + + for _, report := range output.ReportPlans { + resources = append(resources, &BackupReportPlan{ + svc: svc, + arn: *report.ReportPlanArn, + reportPlanName: *report.ReportPlanName, + }) + } + + if output.NextToken == nil { + break + } + + params.NextToken = output.NextToken + } + + return resources, nil +} + +const AWSBackupReportPlanResource = "AWSBackupReportPlan" + +func init() { + registry.Register(®istry.Registration{ + Name: AWSBackupReportPlanResource, + Scope: nuke.Account, + Lister: &AWSBackupReportPlanLister{}, + }) +} + +func (b *BackupReportPlan) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("BackupReport", b.reportPlanName) + return properties +} + +func (b *BackupReportPlan) Remove(context.Context) error { + _, err := b.svc.DeleteReportPlan(&backup.DeleteReportPlanInput{ + ReportPlanName: &b.reportPlanName, + }) + return err +} + +func (b *BackupReportPlan) String() string { + return b.arn +} From c86d238c26480e34fb294f84a2f4faf9cddf6ee5 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 25 Sep 2024 14:30:10 -0500 Subject: [PATCH 495/617] refactor(iam-policy): pointer and nil pointer refactor --- resources/{iam-policies.go => iam-policy.go} | 123 +++++++++--------- ...s_mock_test.go => iam-policy_mock_test.go} | 0 2 files changed, 63 insertions(+), 60 deletions(-) rename resources/{iam-policies.go => iam-policy.go} (77%) rename resources/{iam-policies_mock_test.go => iam-policy_mock_test.go} (100%) diff --git a/resources/iam-policies.go b/resources/iam-policy.go similarity index 77% rename from resources/iam-policies.go rename to resources/iam-policy.go index c5e7ea3e..a20cd35d 100644 --- a/resources/iam-policies.go +++ b/resources/iam-policy.go @@ -34,6 +34,50 @@ func init() { }) } +type IAMPolicyLister struct{} + +func (l *IAMPolicyLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := iam.New(opts.Session) + + params := &iam.ListPoliciesInput{ + Scope: aws.String("Local"), + } + + policies := make([]*iam.Policy, 0) + + if err := svc.ListPoliciesPages(params, + func(page *iam.ListPoliciesOutput, lastPage bool) bool { + for _, listedPolicy := range page.Policies { + policy, err := GetIAMPolicy(svc, listedPolicy.Arn) + if err != nil { + logrus.Errorf("Failed to get listed policy %s: %v", *listedPolicy.PolicyName, err) + continue + } + policies = append(policies, policy) + } + return true + }); err != nil { + return nil, err + } + + resources := make([]resource.Resource, 0) + + for _, out := range policies { + resources = append(resources, &IAMPolicy{ + svc: svc, + name: *out.PolicyName, + path: *out.Path, + arn: *out.Arn, + policyID: *out.PolicyId, + tags: out.Tags, + }) + } + + return resources, nil +} + type IAMPolicy struct { svc iamiface.IAMAPI name string @@ -43,9 +87,9 @@ type IAMPolicy struct { tags []*iam.Tag } -func (e *IAMPolicy) Remove(_ context.Context) error { - resp, err := e.svc.ListPolicyVersions(&iam.ListPolicyVersionsInput{ - PolicyArn: &e.arn, +func (r *IAMPolicy) Remove(_ context.Context) error { + resp, err := r.svc.ListPolicyVersions(&iam.ListPolicyVersionsInput{ + PolicyArn: &r.arn, }) if err != nil { return err @@ -53,8 +97,8 @@ func (e *IAMPolicy) Remove(_ context.Context) error { for _, version := range resp.Versions { if !*version.IsDefaultVersion { - _, err = e.svc.DeletePolicyVersion(&iam.DeletePolicyVersionInput{ - PolicyArn: &e.arn, + _, err = r.svc.DeletePolicyVersion(&iam.DeletePolicyVersionInput{ + PolicyArn: &r.arn, VersionId: version.VersionId, }) if err != nil { @@ -63,8 +107,8 @@ func (e *IAMPolicy) Remove(_ context.Context) error { } } - _, err = e.svc.DeletePolicy(&iam.DeletePolicyInput{ - PolicyArn: &e.arn, + _, err = r.svc.DeletePolicy(&iam.DeletePolicyInput{ + PolicyArn: &r.arn, }) if err != nil { return err @@ -73,73 +117,32 @@ func (e *IAMPolicy) Remove(_ context.Context) error { return nil } -func (e *IAMPolicy) Properties() types.Properties { +func (r *IAMPolicy) Properties() types.Properties { properties := types.NewProperties() - properties.Set("Name", e.name) - properties.Set("ARN", e.arn) - properties.Set("Path", e.path) - properties.Set("PolicyID", e.policyID) - for _, tag := range e.tags { + properties.Set("Name", r.name) + properties.Set("ARN", r.arn) + properties.Set("Path", r.path) + properties.Set("PolicyID", r.policyID) + for _, tag := range r.tags { properties.SetTag(tag.Key, tag.Value) } return properties } -func (e *IAMPolicy) String() string { - return e.arn +func (r *IAMPolicy) String() string { + return r.arn } // ------------- func GetIAMPolicy(svc *iam.IAM, policyArn *string) (*iam.Policy, error) { - params := &iam.GetPolicyInput{ + resp, err := svc.GetPolicy(&iam.GetPolicyInput{ PolicyArn: policyArn, - } - resp, err := svc.GetPolicy(params) - return resp.Policy, err -} - -type IAMPolicyLister struct{} - -func (l *IAMPolicyLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { - opts := o.(*nuke.ListerOpts) - - svc := iam.New(opts.Session) - - params := &iam.ListPoliciesInput{ - Scope: aws.String("Local"), - } - - policies := make([]*iam.Policy, 0) - - if err := svc.ListPoliciesPages(params, - func(page *iam.ListPoliciesOutput, lastPage bool) bool { - for _, listedPolicy := range page.Policies { - policy, err := GetIAMPolicy(svc, listedPolicy.Arn) - if err != nil { - logrus.Errorf("Failed to get listed policy %s: %v", *listedPolicy.PolicyName, err) - continue - } - policies = append(policies, policy) - } - return true - }); err != nil { + }) + if err != nil { return nil, err } - resources := make([]resource.Resource, 0) - - for _, out := range policies { - resources = append(resources, &IAMPolicy{ - svc: svc, - name: *out.PolicyName, - path: *out.Path, - arn: *out.Arn, - policyID: *out.PolicyId, - tags: out.Tags, - }) - } - - return resources, nil + return resp.Policy, nil } diff --git a/resources/iam-policies_mock_test.go b/resources/iam-policy_mock_test.go similarity index 100% rename from resources/iam-policies_mock_test.go rename to resources/iam-policy_mock_test.go From 68f2df89844280399d4c93716727ba7e92961106 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 25 Sep 2024 14:33:56 -0500 Subject: [PATCH 496/617] test(iam-policy): add test coverage for properties --- resources/iam-policy_mock_test.go | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/resources/iam-policy_mock_test.go b/resources/iam-policy_mock_test.go index 095e4075..1755f40e 100644 --- a/resources/iam-policy_mock_test.go +++ b/resources/iam-policy_mock_test.go @@ -96,3 +96,27 @@ func Test_Mock_IAMPolicy_WithVersions_Remove(t *testing.T) { err := iamPolicy.Remove(context.TODO()) a.Nil(err) } + +func Test_Mock_IAMPolicy_Properties(t *testing.T) { + a := assert.New(t) + + iamPolicy := IAMPolicy{ + name: "foobar", + policyID: "foobar", + arn: "arn:foobar", + path: "/foobar", + tags: []*iam.Tag{ + { + Key: aws.String("foo"), + Value: aws.String("bar"), + }, + }, + } + + a.Equal("foobar", iamPolicy.Properties().Get("Name")) + a.Equal("foobar", iamPolicy.Properties().Get("PolicyID")) + a.Equal("arn:foobar", iamPolicy.Properties().Get("ARN")) + a.Equal("/foobar", iamPolicy.Properties().Get("Path")) + a.Equal("bar", iamPolicy.Properties().Get("tag:foo")) + a.Equal("arn:foobar", iamPolicy.String()) +} From d235487b3055c7874aaa9ecb92f9ddea7e549a21 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 25 Sep 2024 14:40:28 -0500 Subject: [PATCH 497/617] refactor(iam-policy): export struct fields --- resources/iam-policy.go | 39 ++++++++------------ resources/iam-policy_mock_test.go | 60 +++++++++++++++---------------- 2 files changed, 45 insertions(+), 54 deletions(-) diff --git a/resources/iam-policy.go b/resources/iam-policy.go index a20cd35d..f8ac8076 100644 --- a/resources/iam-policy.go +++ b/resources/iam-policy.go @@ -67,11 +67,11 @@ func (l *IAMPolicyLister) List(_ context.Context, o interface{}) ([]resource.Res for _, out := range policies { resources = append(resources, &IAMPolicy{ svc: svc, - name: *out.PolicyName, - path: *out.Path, - arn: *out.Arn, - policyID: *out.PolicyId, - tags: out.Tags, + Name: out.PolicyName, + Path: out.Path, + ARN: out.Arn, + PolicyID: out.PolicyId, + Tags: out.Tags, }) } @@ -80,16 +80,16 @@ func (l *IAMPolicyLister) List(_ context.Context, o interface{}) ([]resource.Res type IAMPolicy struct { svc iamiface.IAMAPI - name string - policyID string - arn string - path string - tags []*iam.Tag + Name *string + PolicyID *string + ARN *string + Path *string + Tags []*iam.Tag } func (r *IAMPolicy) Remove(_ context.Context) error { resp, err := r.svc.ListPolicyVersions(&iam.ListPolicyVersionsInput{ - PolicyArn: &r.arn, + PolicyArn: r.ARN, }) if err != nil { return err @@ -98,7 +98,7 @@ func (r *IAMPolicy) Remove(_ context.Context) error { for _, version := range resp.Versions { if !*version.IsDefaultVersion { _, err = r.svc.DeletePolicyVersion(&iam.DeletePolicyVersionInput{ - PolicyArn: &r.arn, + PolicyArn: r.ARN, VersionId: version.VersionId, }) if err != nil { @@ -108,7 +108,7 @@ func (r *IAMPolicy) Remove(_ context.Context) error { } _, err = r.svc.DeletePolicy(&iam.DeletePolicyInput{ - PolicyArn: &r.arn, + PolicyArn: r.ARN, }) if err != nil { return err @@ -118,20 +118,11 @@ func (r *IAMPolicy) Remove(_ context.Context) error { } func (r *IAMPolicy) Properties() types.Properties { - properties := types.NewProperties() - - properties.Set("Name", r.name) - properties.Set("ARN", r.arn) - properties.Set("Path", r.path) - properties.Set("PolicyID", r.policyID) - for _, tag := range r.tags { - properties.SetTag(tag.Key, tag.Value) - } - return properties + return types.NewPropertiesFromStruct(r) } func (r *IAMPolicy) String() string { - return r.arn + return *r.ARN } // ------------- diff --git a/resources/iam-policy_mock_test.go b/resources/iam-policy_mock_test.go index 1755f40e..e406e9f2 100644 --- a/resources/iam-policy_mock_test.go +++ b/resources/iam-policy_mock_test.go @@ -5,9 +5,9 @@ import ( "testing" "github.com/golang/mock/gomock" + "github.com/gotidy/ptr" "github.com/stretchr/testify/assert" - "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/iam" "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" @@ -22,24 +22,24 @@ func Test_Mock_IAMPolicy_Remove(t *testing.T) { iamPolicy := IAMPolicy{ svc: mockIAM, - name: "foobar", - policyID: "foobar", - arn: "foobar", + Name: ptr.String("foobar"), + PolicyID: ptr.String("foobar"), + ARN: ptr.String("foobar"), } mockIAM.EXPECT().ListPolicyVersions(gomock.Eq(&iam.ListPolicyVersionsInput{ - PolicyArn: aws.String(iamPolicy.arn), + PolicyArn: iamPolicy.ARN, })).Return(&iam.ListPolicyVersionsOutput{ Versions: []*iam.PolicyVersion{ { - IsDefaultVersion: aws.Bool(true), - VersionId: aws.String("v1"), + IsDefaultVersion: ptr.Bool(true), + VersionId: ptr.String("v1"), }, }, }, nil) mockIAM.EXPECT().DeletePolicy(gomock.Eq(&iam.DeletePolicyInput{ - PolicyArn: aws.String(iamPolicy.arn), + PolicyArn: iamPolicy.ARN, })).Return(&iam.DeletePolicyOutput{}, nil) err := iamPolicy.Remove(context.TODO()) @@ -55,42 +55,42 @@ func Test_Mock_IAMPolicy_WithVersions_Remove(t *testing.T) { iamPolicy := IAMPolicy{ svc: mockIAM, - name: "foobar", - policyID: "foobar", - arn: "foobar", + Name: ptr.String("foobar"), + PolicyID: ptr.String("foobar"), + ARN: ptr.String("foobar"), } mockIAM.EXPECT().ListPolicyVersions(gomock.Eq(&iam.ListPolicyVersionsInput{ - PolicyArn: aws.String(iamPolicy.arn), + PolicyArn: iamPolicy.ARN, })).Return(&iam.ListPolicyVersionsOutput{ Versions: []*iam.PolicyVersion{ { - IsDefaultVersion: aws.Bool(false), - VersionId: aws.String("v1"), + IsDefaultVersion: ptr.Bool(false), + VersionId: ptr.String("v1"), }, { - IsDefaultVersion: aws.Bool(false), - VersionId: aws.String("v2"), + IsDefaultVersion: ptr.Bool(false), + VersionId: ptr.String("v2"), }, { - IsDefaultVersion: aws.Bool(true), - VersionId: aws.String("v3"), + IsDefaultVersion: ptr.Bool(true), + VersionId: ptr.String("v3"), }, }, }, nil) mockIAM.EXPECT().DeletePolicyVersion(gomock.Eq(&iam.DeletePolicyVersionInput{ - PolicyArn: aws.String(iamPolicy.arn), - VersionId: aws.String("v1"), + PolicyArn: iamPolicy.ARN, + VersionId: ptr.String("v1"), })).Return(&iam.DeletePolicyVersionOutput{}, nil) mockIAM.EXPECT().DeletePolicyVersion(gomock.Eq(&iam.DeletePolicyVersionInput{ - PolicyArn: aws.String(iamPolicy.arn), - VersionId: aws.String("v2"), + PolicyArn: iamPolicy.ARN, + VersionId: ptr.String("v2"), })).Return(&iam.DeletePolicyVersionOutput{}, nil) mockIAM.EXPECT().DeletePolicy(gomock.Eq(&iam.DeletePolicyInput{ - PolicyArn: aws.String(iamPolicy.arn), + PolicyArn: iamPolicy.ARN, })).Return(&iam.DeletePolicyOutput{}, nil) err := iamPolicy.Remove(context.TODO()) @@ -101,14 +101,14 @@ func Test_Mock_IAMPolicy_Properties(t *testing.T) { a := assert.New(t) iamPolicy := IAMPolicy{ - name: "foobar", - policyID: "foobar", - arn: "arn:foobar", - path: "/foobar", - tags: []*iam.Tag{ + Name: ptr.String("foobar"), + PolicyID: ptr.String("foobar"), + ARN: ptr.String("arn:foobar"), + Path: ptr.String("/foobar"), + Tags: []*iam.Tag{ { - Key: aws.String("foo"), - Value: aws.String("bar"), + Key: ptr.String("foo"), + Value: ptr.String("bar"), }, }, } From a269870a400dbe6f04899649d20ee08b9b249a15 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 25 Sep 2024 14:45:26 -0500 Subject: [PATCH 498/617] feat(iam-policy): add CreateDate property --- resources/iam-policy.go | 27 +++++++++++++++------------ resources/iam-policy_mock_test.go | 13 +++++++++---- 2 files changed, 24 insertions(+), 16 deletions(-) diff --git a/resources/iam-policy.go b/resources/iam-policy.go index f8ac8076..6118415b 100644 --- a/resources/iam-policy.go +++ b/resources/iam-policy.go @@ -2,6 +2,7 @@ package resources import ( "context" + "time" "github.com/sirupsen/logrus" @@ -66,12 +67,13 @@ func (l *IAMPolicyLister) List(_ context.Context, o interface{}) ([]resource.Res for _, out := range policies { resources = append(resources, &IAMPolicy{ - svc: svc, - Name: out.PolicyName, - Path: out.Path, - ARN: out.Arn, - PolicyID: out.PolicyId, - Tags: out.Tags, + svc: svc, + Name: out.PolicyName, + Path: out.Path, + ARN: out.Arn, + PolicyID: out.PolicyId, + CreateDate: out.CreateDate, + Tags: out.Tags, }) } @@ -79,12 +81,13 @@ func (l *IAMPolicyLister) List(_ context.Context, o interface{}) ([]resource.Res } type IAMPolicy struct { - svc iamiface.IAMAPI - Name *string - PolicyID *string - ARN *string - Path *string - Tags []*iam.Tag + svc iamiface.IAMAPI + Name *string + PolicyID *string + ARN *string + Path *string + CreateDate *time.Time + Tags []*iam.Tag } func (r *IAMPolicy) Remove(_ context.Context) error { diff --git a/resources/iam-policy_mock_test.go b/resources/iam-policy_mock_test.go index e406e9f2..dcf0015f 100644 --- a/resources/iam-policy_mock_test.go +++ b/resources/iam-policy_mock_test.go @@ -3,6 +3,7 @@ package resources import ( "context" "testing" + "time" "github.com/golang/mock/gomock" "github.com/gotidy/ptr" @@ -100,11 +101,14 @@ func Test_Mock_IAMPolicy_WithVersions_Remove(t *testing.T) { func Test_Mock_IAMPolicy_Properties(t *testing.T) { a := assert.New(t) + now := time.Now().UTC() + iamPolicy := IAMPolicy{ - Name: ptr.String("foobar"), - PolicyID: ptr.String("foobar"), - ARN: ptr.String("arn:foobar"), - Path: ptr.String("/foobar"), + Name: ptr.String("foobar"), + PolicyID: ptr.String("foobar"), + ARN: ptr.String("arn:foobar"), + Path: ptr.String("/foobar"), + CreateDate: ptr.Time(now), Tags: []*iam.Tag{ { Key: ptr.String("foo"), @@ -118,5 +122,6 @@ func Test_Mock_IAMPolicy_Properties(t *testing.T) { a.Equal("arn:foobar", iamPolicy.Properties().Get("ARN")) a.Equal("/foobar", iamPolicy.Properties().Get("Path")) a.Equal("bar", iamPolicy.Properties().Get("tag:foo")) + a.Equal(now.Format(time.RFC3339), iamPolicy.Properties().Get("CreateDate")) a.Equal("arn:foobar", iamPolicy.String()) } From b225042a280df22bf05c1a6de87373e5b3a490a5 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 25 Sep 2024 20:38:33 -0500 Subject: [PATCH 499/617] feat(iam-user): add new properties --- resources/iam-service-specific-credentials.go | 4 +- resources/iam-user.go | 106 +++++++++--------- resources/iam-user_mock_test.go | 39 ++++++- 3 files changed, 91 insertions(+), 58 deletions(-) diff --git a/resources/iam-service-specific-credentials.go b/resources/iam-service-specific-credentials.go index ca813f97..ce9b974f 100644 --- a/resources/iam-service-specific-credentials.go +++ b/resources/iam-service-specific-credentials.go @@ -47,7 +47,7 @@ func (l *IAMServiceSpecificCredentialLister) List(ctx context.Context, o interfa continue } params := &iam.ListServiceSpecificCredentialsInput{ - UserName: user.name, + UserName: user.Name, } serviceCredentials, err := svc.ListServiceSpecificCredentials(params) if err != nil { @@ -60,7 +60,7 @@ func (l *IAMServiceSpecificCredentialLister) List(ctx context.Context, o interfa name: credential.ServiceUserName, serviceName: credential.ServiceName, id: credential.ServiceSpecificCredentialId, - userName: user.name, + userName: user.Name, }) } } diff --git a/resources/iam-user.go b/resources/iam-user.go index 33a07f83..3cc61f95 100644 --- a/resources/iam-user.go +++ b/resources/iam-user.go @@ -37,18 +37,22 @@ func init() { } type IAMUser struct { - svc iamiface.IAMAPI - id *string - name *string - hasPermissionBoundary bool - createDate *time.Time - tags []*iam.Tag + svc iamiface.IAMAPI + Name *string + Path *string + UserID *string + CreateDate *time.Time + PasswordLastUsed *time.Time + Tags []*iam.Tag + HasPermissionBoundary bool + PermissionBoundaryARN *string + PermissionBoundaryType *string } func (r *IAMUser) Remove(_ context.Context) error { - if r.hasPermissionBoundary { + if r.HasPermissionBoundary { _, err := r.svc.DeleteUserPermissionsBoundary(&iam.DeleteUserPermissionsBoundaryInput{ - UserName: r.name, + UserName: r.Name, }) if err != nil { return err @@ -56,7 +60,7 @@ func (r *IAMUser) Remove(_ context.Context) error { } _, err := r.svc.DeleteUser(&iam.DeleteUserInput{ - UserName: r.name, + UserName: r.Name, }) if err != nil { return err @@ -66,48 +70,11 @@ func (r *IAMUser) Remove(_ context.Context) error { } func (r *IAMUser) String() string { - return *r.name + return *r.Name } func (r *IAMUser) Properties() types.Properties { - properties := types.NewProperties() - properties.Set("UserID", r.id) - properties.Set("Name", r.name) - properties.Set("HasPermissionBoundary", r.hasPermissionBoundary) - properties.Set("CreateDate", r.createDate.Format(time.RFC3339)) - - for _, tag := range r.tags { - properties.SetTag(tag.Key, tag.Value) - } - - return properties -} - -// -------------- - -// GetIAMUser retries and returns just the *iam.User from the response -func GetIAMUser(svc iamiface.IAMAPI, userName *string) (*iam.User, error) { - resp, err := svc.GetUser(&iam.GetUserInput{ - UserName: userName, - }) - if err != nil { - return nil, err - } - - return resp.User, err -} - -// ListIAMUsers retrieves a base list of users -func ListIAMUsers(svc iamiface.IAMAPI) ([]*iam.User, error) { - var users []*iam.User - if err := svc.ListUsersPages(nil, func(page *iam.ListUsersOutput, lastPage bool) bool { - users = append(users, page.Users...) - return true - }); err != nil { - return nil, err - } - - return users, nil + return types.NewPropertiesFromStruct(r) } // -------------- @@ -142,15 +109,19 @@ func (l *IAMUserLister) List(_ context.Context, o interface{}) ([]resource.Resou } resourceUser := &IAMUser{ - svc: svc, - id: user.UserId, - name: user.UserName, - createDate: user.CreateDate, - tags: user.Tags, + svc: svc, + Name: user.UserName, + Path: user.Path, + UserID: user.UserId, + CreateDate: user.CreateDate, + PasswordLastUsed: user.PasswordLastUsed, + Tags: user.Tags, } if user.PermissionsBoundary != nil && user.PermissionsBoundary.PermissionsBoundaryArn != nil { - resourceUser.hasPermissionBoundary = true + resourceUser.HasPermissionBoundary = true + resourceUser.PermissionBoundaryARN = user.PermissionsBoundary.PermissionsBoundaryArn + resourceUser.PermissionBoundaryType = user.PermissionsBoundary.PermissionsBoundaryType } resources = append(resources, resourceUser) @@ -158,3 +129,30 @@ func (l *IAMUserLister) List(_ context.Context, o interface{}) ([]resource.Resou return resources, nil } + +// -------------- + +// GetIAMUser retries and returns just the *iam.User from the response +func GetIAMUser(svc iamiface.IAMAPI, userName *string) (*iam.User, error) { + resp, err := svc.GetUser(&iam.GetUserInput{ + UserName: userName, + }) + if err != nil { + return nil, err + } + + return resp.User, err +} + +// ListIAMUsers retrieves a base list of users +func ListIAMUsers(svc iamiface.IAMAPI) ([]*iam.User, error) { + var users []*iam.User + if err := svc.ListUsersPages(nil, func(page *iam.ListUsersOutput, lastPage bool) bool { + users = append(users, page.Users...) + return true + }); err != nil { + return nil, err + } + + return users, nil +} diff --git a/resources/iam-user_mock_test.go b/resources/iam-user_mock_test.go index cab06925..6818b5ff 100644 --- a/resources/iam-user_mock_test.go +++ b/resources/iam-user_mock_test.go @@ -3,6 +3,7 @@ package resources import ( "context" "testing" + "time" "github.com/golang/mock/gomock" "github.com/gotidy/ptr" @@ -72,10 +73,44 @@ func Test_Mock_IAMUser_Remove(t *testing.T) { iamUser := IAMUser{ svc: mockIAM, - name: ptr.String("foobar"), - hasPermissionBoundary: true, + Name: ptr.String("foobar"), + HasPermissionBoundary: true, } err := iamUser.Remove(context.TODO()) a.Nil(err) } + +func Test_Mock_IAMUser_Properties(t *testing.T) { + a := assert.New(t) + + now := time.Now().UTC() + + iamUser := IAMUser{ + Name: ptr.String("foo"), + Path: ptr.String("/foo"), + UserID: ptr.String("foobar"), + CreateDate: ptr.Time(now), + PasswordLastUsed: ptr.Time(now), + Tags: []*iam.Tag{ + { + Key: ptr.String("foo"), + Value: ptr.String("bar"), + }, + }, + HasPermissionBoundary: true, + PermissionBoundaryARN: ptr.String("arn:aws:iam::123456789012:policy/foo"), + PermissionBoundaryType: ptr.String("PermissionsBoundary"), + } + + a.Equal("foo", iamUser.String()) + a.Equal("foobar", iamUser.Properties().Get("UserID")) + a.Equal("foo", iamUser.Properties().Get("Name")) + a.Equal("true", iamUser.Properties().Get("HasPermissionBoundary")) + a.Equal(now.Format(time.RFC3339), iamUser.Properties().Get("CreateDate")) + a.Equal(now.Format(time.RFC3339), iamUser.Properties().Get("PasswordLastUsed")) + a.Equal("arn:aws:iam::123456789012:policy/foo", iamUser.Properties().Get("PermissionBoundaryARN")) + a.Equal("PermissionsBoundary", iamUser.Properties().Get("PermissionBoundaryType")) + a.Equal("bar", iamUser.Properties().Get("tag:foo")) + a.Equal("/foo", iamUser.Properties().Get("Path")) +} From 088fbc35d19ccf2ffed960a424fe01c862aafdc8 Mon Sep 17 00:00:00 2001 From: Octogonapus Date: Tue, 8 Nov 2022 10:51:44 -0500 Subject: [PATCH 500/617] feat(resource): add support for ECS capacity providers --- resources/ecs-capacity-providers.go | 60 +++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 resources/ecs-capacity-providers.go diff --git a/resources/ecs-capacity-providers.go b/resources/ecs-capacity-providers.go new file mode 100644 index 00000000..5f0c7a47 --- /dev/null +++ b/resources/ecs-capacity-providers.go @@ -0,0 +1,60 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/ecs" +) + +type ECSCapacityProvider struct { + svc *ecs.ECS + ARN *string +} + +func init() { + register("ECSCapacityProvider", DescribeECSCapacityProviders) +} + +func DescribeECSCapacityProviders(sess *session.Session) ([]Resource, error) { + svc := ecs.New(sess) + resources := []Resource{} + + params := &ecs.DescribeCapacityProvidersInput{ + MaxResults: aws.Int64(100), + } + + for { + output, err := svc.DescribeCapacityProviders(params) + if err != nil { + return nil, err + } + + for _, capacityProviders := range output.CapacityProviders { + resources = append(resources, &ECSCapacityProvider{ + svc: svc, + ARN: capacityProviders.CapacityProviderArn, + }) + } + + if output.NextToken == nil { + break + } + + params.NextToken = output.NextToken + } + + return resources, nil +} + +func (f *ECSCapacityProvider) Remove() error { + + _, err := f.svc.DeleteCapacityProvider(&ecs.DeleteCapacityProviderInput{ + CapacityProvider: f.ARN, + }) + + return err +} + +func (f *ECSCapacityProvider) String() string { + return *f.ARN +} From 95f5be743e988d9f4e5d5e22b07dbe0b1203473a Mon Sep 17 00:00:00 2001 From: Octogonapus Date: Tue, 8 Nov 2022 13:16:39 -0500 Subject: [PATCH 501/617] fix(ecs-capacity-provider): don't attempt to remove reserved capacity providers --- resources/ecs-capacity-providers.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/ecs-capacity-providers.go b/resources/ecs-capacity-providers.go index 5f0c7a47..c7cf8b4e 100644 --- a/resources/ecs-capacity-providers.go +++ b/resources/ecs-capacity-providers.go @@ -30,6 +30,11 @@ func DescribeECSCapacityProviders(sess *session.Session) ([]Resource, error) { } for _, capacityProviders := range output.CapacityProviders { + if *capacityProviders.Name == "FARGATE" || *capacityProviders.Name == "FARGATE_SPOT" { + // The FARGATE and FARGATE_SPOT capacity providers cannot be deleted + continue + } + resources = append(resources, &ECSCapacityProvider{ svc: svc, ARN: capacityProviders.CapacityProviderArn, From ca82c3a7a3122f7c1238f5c15cae03359da10023 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 25 Sep 2024 20:51:05 -0500 Subject: [PATCH 502/617] feat(ecs-capacity-provider): adding properties with refactor to libnuke resource format --- resources/ecs-capacity-provider.go | 98 +++++++++++++++++++++++++++++ resources/ecs-capacity-providers.go | 65 ------------------- 2 files changed, 98 insertions(+), 65 deletions(-) create mode 100644 resources/ecs-capacity-provider.go delete mode 100644 resources/ecs-capacity-providers.go diff --git a/resources/ecs-capacity-provider.go b/resources/ecs-capacity-provider.go new file mode 100644 index 00000000..bfe83cc2 --- /dev/null +++ b/resources/ecs-capacity-provider.go @@ -0,0 +1,98 @@ +package resources + +import ( + "context" + "fmt" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/ecs" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +const ECSCapacityProviderResource = "ECSCapacityProvider" + +func init() { + registry.Register(®istry.Registration{ + Name: ECSCapacityProviderResource, + Scope: nuke.Account, + Lister: &ECSCapacityProviderLister{}, + }) +} + +type ECSCapacityProvider struct { + svc *ecs.ECS + ARN *string + Name *string + Status *string + Tags []*ecs.Tag +} + +func (r *ECSCapacityProvider) Remove(_ context.Context) error { + _, err := r.svc.DeleteCapacityProvider(&ecs.DeleteCapacityProviderInput{ + CapacityProvider: r.ARN, + }) + + return err +} + +func (r *ECSCapacityProvider) Filter() error { + // The FARGATE and FARGATE_SPOT capacity providers cannot be deleted + if *r.Name == "FARGATE" || *r.Name == "FARGATE_SPOT" { + return fmt.Errorf("unable to delete, fargate managed") + } + + return nil +} + +func (r *ECSCapacityProvider) String() string { + return *r.ARN +} + +func (r *ECSCapacityProvider) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + +//--------------------------------------- + +type ECSCapacityProviderLister struct{} + +func (l *ECSCapacityProviderLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + var resources []resource.Resource + + svc := ecs.New(opts.Session) + + params := &ecs.DescribeCapacityProvidersInput{ + MaxResults: aws.Int64(100), + } + + for { + output, err := svc.DescribeCapacityProviders(params) + if err != nil { + return nil, err + } + + for _, capacityProviders := range output.CapacityProviders { + resources = append(resources, &ECSCapacityProvider{ + svc: svc, + ARN: capacityProviders.CapacityProviderArn, + Name: capacityProviders.Name, + Status: capacityProviders.Status, + Tags: capacityProviders.Tags, + }) + } + + if output.NextToken == nil { + break + } + + params.NextToken = output.NextToken + } + + return resources, nil +} diff --git a/resources/ecs-capacity-providers.go b/resources/ecs-capacity-providers.go deleted file mode 100644 index c7cf8b4e..00000000 --- a/resources/ecs-capacity-providers.go +++ /dev/null @@ -1,65 +0,0 @@ -package resources - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/ecs" -) - -type ECSCapacityProvider struct { - svc *ecs.ECS - ARN *string -} - -func init() { - register("ECSCapacityProvider", DescribeECSCapacityProviders) -} - -func DescribeECSCapacityProviders(sess *session.Session) ([]Resource, error) { - svc := ecs.New(sess) - resources := []Resource{} - - params := &ecs.DescribeCapacityProvidersInput{ - MaxResults: aws.Int64(100), - } - - for { - output, err := svc.DescribeCapacityProviders(params) - if err != nil { - return nil, err - } - - for _, capacityProviders := range output.CapacityProviders { - if *capacityProviders.Name == "FARGATE" || *capacityProviders.Name == "FARGATE_SPOT" { - // The FARGATE and FARGATE_SPOT capacity providers cannot be deleted - continue - } - - resources = append(resources, &ECSCapacityProvider{ - svc: svc, - ARN: capacityProviders.CapacityProviderArn, - }) - } - - if output.NextToken == nil { - break - } - - params.NextToken = output.NextToken - } - - return resources, nil -} - -func (f *ECSCapacityProvider) Remove() error { - - _, err := f.svc.DeleteCapacityProvider(&ecs.DeleteCapacityProviderInput{ - CapacityProvider: f.ARN, - }) - - return err -} - -func (f *ECSCapacityProvider) String() string { - return *f.ARN -} From 86a065092e74ede3392c971477e91c5db17aab82 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 26 Sep 2024 10:22:55 +0200 Subject: [PATCH 503/617] chore: add requested review changes --- resources/backup-report-plan.go | 42 +++++++++++++++++---------------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/resources/backup-report-plan.go b/resources/backup-report-plan.go index d6b4cc3a..d7470550 100644 --- a/resources/backup-report-plan.go +++ b/resources/backup-report-plan.go @@ -4,21 +4,23 @@ import ( "context" "github.com/aws/aws-sdk-go/service/backup" - "github.com/ekristen/aws-nuke/v3/pkg/nuke" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) type BackupReportPlan struct { - svc *backup.Backup - arn string - reportPlanName string + svc *backup.Backup + arn *string + Name *string } -type AWSBackupReportPlanLister struct{} +type BackupReportPlanLister struct{} -func (AWSBackupReportPlanLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { +func (BackupReportPlanLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) svc := backup.New(opts.Session) @@ -36,9 +38,9 @@ func (AWSBackupReportPlanLister) List(_ context.Context, o interface{}) ([]resou for _, report := range output.ReportPlans { resources = append(resources, &BackupReportPlan{ - svc: svc, - arn: *report.ReportPlanArn, - reportPlanName: *report.ReportPlanName, + svc: svc, + arn: report.ReportPlanArn, + Name: report.ReportPlanName, }) } @@ -52,29 +54,29 @@ func (AWSBackupReportPlanLister) List(_ context.Context, o interface{}) ([]resou return resources, nil } -const AWSBackupReportPlanResource = "AWSBackupReportPlan" +const BackupReportPlanResource = "AWSBackupReportPlan" func init() { registry.Register(®istry.Registration{ - Name: AWSBackupReportPlanResource, + Name: BackupReportPlanResource, Scope: nuke.Account, - Lister: &AWSBackupReportPlanLister{}, + Lister: &BackupReportPlanLister{}, }) } -func (b *BackupReportPlan) Properties() types.Properties { +func (r *BackupReportPlan) Properties() types.Properties { properties := types.NewProperties() - properties.Set("BackupReport", b.reportPlanName) + properties.Set("Name", r.Name) return properties } -func (b *BackupReportPlan) Remove(context.Context) error { - _, err := b.svc.DeleteReportPlan(&backup.DeleteReportPlanInput{ - ReportPlanName: &b.reportPlanName, +func (r *BackupReportPlan) Remove(context.Context) error { + _, err := r.svc.DeleteReportPlan(&backup.DeleteReportPlanInput{ + ReportPlanName: r.Name, }) return err } -func (b *BackupReportPlan) String() string { - return b.arn +func (r *BackupReportPlan) String() string { + return *r.arn } From 11c9922cd61467a68afd8a11c511a7b4babf9ef4 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 26 Sep 2024 16:47:09 +0200 Subject: [PATCH 504/617] fix: change AWSBackupReportPlan to BackupReportPlan --- resources/backup-report-plan.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/backup-report-plan.go b/resources/backup-report-plan.go index d7470550..09d120ef 100644 --- a/resources/backup-report-plan.go +++ b/resources/backup-report-plan.go @@ -54,7 +54,7 @@ func (BackupReportPlanLister) List(_ context.Context, o interface{}) ([]resource return resources, nil } -const BackupReportPlanResource = "AWSBackupReportPlan" +const BackupReportPlanResource = "BackupReportPlan" func init() { registry.Register(®istry.Registration{ From 41f0ab6c5f952a16c9732963dc01c61dbc9e1810 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 26 Sep 2024 17:20:33 +0200 Subject: [PATCH 505/617] fix: set ARN as property, make String() return Name --- resources/backup-report-plan.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/backup-report-plan.go b/resources/backup-report-plan.go index 09d120ef..61fe6f37 100644 --- a/resources/backup-report-plan.go +++ b/resources/backup-report-plan.go @@ -67,6 +67,7 @@ func init() { func (r *BackupReportPlan) Properties() types.Properties { properties := types.NewProperties() properties.Set("Name", r.Name) + properties.Set("ARN", r.arn) return properties } @@ -78,5 +79,5 @@ func (r *BackupReportPlan) Remove(context.Context) error { } func (r *BackupReportPlan) String() string { - return *r.arn + return *r.Name } From 61513d400b98205582182924dfbdfda248c32854 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 26 Sep 2024 19:46:26 +0200 Subject: [PATCH 506/617] fix: golangci-lint --- resources/backup-report-plan.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/backup-report-plan.go b/resources/backup-report-plan.go index 61fe6f37..4815c673 100644 --- a/resources/backup-report-plan.go +++ b/resources/backup-report-plan.go @@ -24,9 +24,9 @@ func (BackupReportPlanLister) List(_ context.Context, o interface{}) ([]resource opts := o.(*nuke.ListerOpts) svc := backup.New(opts.Session) - max_backups_len := int64(100) + maxBackupsLen := int64(100) params := &backup.ListReportPlansInput{ - MaxResults: &max_backups_len, // aws default limit on number of backup plans per account + MaxResults: &maxBackupsLen, // aws default limit on number of backup plans per account } resources := make([]resource.Resource, 0) From cfa813b95340bf990aa3688a4cc766cc63024701 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 26 Sep 2024 15:11:44 -0600 Subject: [PATCH 507/617] fix(deps): update to libnuke@v0.19.1 --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 45c4cc7c..7fb159df 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.21.6 require ( github.com/aws/aws-sdk-go v1.54.20 - github.com/ekristen/libnuke v0.19.0 + github.com/ekristen/libnuke v0.19.1 github.com/fatih/color v1.17.0 github.com/golang/mock v1.6.0 github.com/google/uuid v1.6.0 diff --git a/go.sum b/go.sum index f155c702..f9080bda 100644 --- a/go.sum +++ b/go.sum @@ -10,6 +10,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/ekristen/libnuke v0.19.0 h1:pXVxPlbKfYbP1iSwsNu67MQ8HNvZPEZIeKiyw/k8FWg= github.com/ekristen/libnuke v0.19.0/go.mod h1:riI1tjCf6r+et/9oUBd1vQeFmn2Sn6UeFUR0nWkMeYw= +github.com/ekristen/libnuke v0.19.1 h1:n52PMccQjs4MsaYPtulavxmKyHFq4xz3KCy6mpjoX/I= +github.com/ekristen/libnuke v0.19.1/go.mod h1:riI1tjCf6r+et/9oUBd1vQeFmn2Sn6UeFUR0nWkMeYw= github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4= github.com/fatih/color v1.17.0/go.mod h1:YZ7TlrGPkiz6ku9fK3TLD/pl3CpsiFyu8N92HLgmosI= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= From 0f06713a86be32b4b97f4c61f498f7bdafb6aa0c Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 26 Sep 2024 15:37:53 -0600 Subject: [PATCH 508/617] refactor(wafv2-api-key): implement missing standards and code cleanup --- .../{wafv2-apikeys.go => wafv2-api-key.go} | 44 +++++++++---------- 1 file changed, 21 insertions(+), 23 deletions(-) rename resources/{wafv2-apikeys.go => wafv2-api-key.go} (72%) diff --git a/resources/wafv2-apikeys.go b/resources/wafv2-api-key.go similarity index 72% rename from resources/wafv2-apikeys.go rename to resources/wafv2-api-key.go index 8aa72cac..33882020 100644 --- a/resources/wafv2-apikeys.go +++ b/resources/wafv2-api-key.go @@ -2,7 +2,6 @@ package resources import ( "context" - "strings" "time" @@ -31,9 +30,9 @@ type WAFv2APIKeyLister struct{} func (l *WAFv2APIKeyLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) + var resources []resource.Resource svc := wafv2.New(opts.Session) - resources := make([]resource.Resource, 0) params := &wafv2.ListAPIKeysInput{ Limit: aws.Int64(50), @@ -62,7 +61,8 @@ func (l *WAFv2APIKeyLister) List(_ context.Context, o interface{}) ([]resource.R } func getAPIKeys(svc *wafv2.WAFV2, params *wafv2.ListAPIKeysInput) ([]resource.Resource, error) { - resources := make([]resource.Resource, 0) + var resources []resource.Resource + for { resp, err := svc.ListAPIKeys(params) if err != nil { @@ -74,12 +74,13 @@ func getAPIKeys(svc *wafv2.WAFV2, params *wafv2.ListAPIKeysInput) ([]resource.Re for _, tokenDomain := range apiKey.TokenDomains { tokenDomains = append(tokenDomains, *tokenDomain) } + resources = append(resources, &WAFv2APIKey{ svc: svc, apiKey: apiKey.APIKey, - tokenDomains: tokenDomains, - scope: params.Scope, - createdAt: apiKey.CreationTimestamp, + TokenDomains: tokenDomains, + Scope: params.Scope, + CreateDate: apiKey.CreationTimestamp, }) } @@ -89,36 +90,33 @@ func getAPIKeys(svc *wafv2.WAFV2, params *wafv2.ListAPIKeysInput) ([]resource.Re params.NextMarker = resp.NextMarker } + return resources, nil } type WAFv2APIKey struct { svc *wafv2.WAFV2 apiKey *string - tokenDomains []string - scope *string - createdAt *time.Time + TokenDomains []string + Scope *string + CreateDate *time.Time } -func (f *WAFv2APIKey) Remove(_ context.Context) error { - _, err := f.svc.DeleteAPIKey(&wafv2.DeleteAPIKeyInput{ - APIKey: f.apiKey, - Scope: f.scope, +func (r *WAFv2APIKey) Remove(_ context.Context) error { + _, err := r.svc.DeleteAPIKey(&wafv2.DeleteAPIKeyInput{ + APIKey: r.apiKey, + Scope: r.Scope, }) return err } -func (f *WAFv2APIKey) String() string { - return (*f.apiKey)[:16] +func (r *WAFv2APIKey) String() string { + return (*r.apiKey)[:16] } -func (f *WAFv2APIKey) Properties() types.Properties { - properties := types.NewProperties() - - properties. - Set("APIKey", (*f.apiKey)[:16]). - Set("TokenDomains", strings.Join(f.tokenDomains, ", ")). - Set("CreatedAt", f.createdAt.String()) - return properties +func (r *WAFv2APIKey) Properties() types.Properties { + return types.NewPropertiesFromStruct(r). + // Note: this is necessary because NewPropertiesFromStruct doesn't handle slices of strings + Set("TokenDomains", strings.Join(r.TokenDomains, ",")) } From ac4c7831e88ce1deeb9bbde75b10d308e81ad471 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 26 Sep 2024 15:24:39 -0600 Subject: [PATCH 509/617] feat(quicksight-user): additional properties --- ...quicksight-users.go => quicksight-user.go} | 49 ++++++++++--------- 1 file changed, 27 insertions(+), 22 deletions(-) rename resources/{quicksight-users.go => quicksight-user.go} (81%) diff --git a/resources/quicksight-users.go b/resources/quicksight-user.go similarity index 81% rename from resources/quicksight-users.go rename to resources/quicksight-user.go index 731d7e03..59205f6b 100644 --- a/resources/quicksight-users.go +++ b/resources/quicksight-user.go @@ -3,16 +3,18 @@ package resources import ( "context" - "github.com/aws/aws-sdk-go/aws" + "github.com/gotidy/ptr" + "github.com/aws/aws-sdk-go/service/quicksight" "github.com/aws/aws-sdk-go/service/quicksight/quicksightiface" "github.com/aws/aws-sdk-go/service/sts" "github.com/aws/aws-sdk-go/service/sts/stsiface" - "github.com/ekristen/aws-nuke/v3/pkg/nuke" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const QuickSightUserResource = "QuickSightUser" @@ -30,14 +32,9 @@ type QuickSightUserLister struct { quicksightService quicksightiface.QuickSightAPI } -type QuickSightUser struct { - svc quicksightiface.QuickSightAPI - accountID *string - principalID *string -} - func (l *QuickSightUserLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) + var resources []resource.Resource var stsSvc stsiface.STSAPI if l.stsService != nil { @@ -59,17 +56,22 @@ func (l *QuickSightUserLister) List(_ context.Context, o interface{}) ([]resourc } accountID := callerID.Account - var resources []resource.Resource + // TODO: support all namespaces + namespace := ptr.String("default") err = quicksightSvc.ListUsersPages(&quicksight.ListUsersInput{ AwsAccountId: accountID, - Namespace: aws.String("default"), + Namespace: namespace, }, func(output *quicksight.ListUsersOutput, lastPage bool) bool { for _, user := range output.UserList { resources = append(resources, &QuickSightUser{ svc: quicksightSvc, accountID: accountID, - principalID: user.PrincipalId, + PrincipalID: user.PrincipalId, + UserName: user.UserName, + Active: user.Active, + Role: user.Role, + Namespace: namespace, }) } return !lastPage @@ -81,11 +83,21 @@ func (l *QuickSightUserLister) List(_ context.Context, o interface{}) ([]resourc return resources, nil } +type QuickSightUser struct { + svc quicksightiface.QuickSightAPI + accountID *string + UserName *string + PrincipalID *string + Active *bool + Role *string + Namespace *string +} + func (r *QuickSightUser) Remove(_ context.Context) error { _, err := r.svc.DeleteUserByPrincipalId(&quicksight.DeleteUserByPrincipalIdInput{ AwsAccountId: r.accountID, - Namespace: aws.String("default"), - PrincipalId: r.principalID, + Namespace: r.Namespace, + PrincipalId: r.PrincipalID, }) if err != nil { @@ -96,16 +108,9 @@ func (r *QuickSightUser) Remove(_ context.Context) error { } func (r *QuickSightUser) Properties() types.Properties { - properties := types.NewProperties() - properties.Set("PrincipalId", r.principalID) - - return properties + return types.NewPropertiesFromStruct(r) } func (r *QuickSightUser) String() string { - return *r.principalID -} - -func (r *QuickSightUser) Filter() error { - return nil + return *r.PrincipalID } From 2d352b9afc62f4ea0ab19e1f3208c3771c38cc4f Mon Sep 17 00:00:00 2001 From: Lucian Date: Thu, 8 Jun 2023 17:29:01 +0300 Subject: [PATCH 510/617] feat(resource): add support for AWS GameLift builds, fleets, queues, mm configs and mm rule sets --- resources/gamelift-builds.go | 52 ++++++++++++++++++++++++++++++++ resources/gamelift-fleets.go | 53 +++++++++++++++++++++++++++++++++ resources/gamelift-mm-config.go | 53 +++++++++++++++++++++++++++++++++ resources/gamelift-mm-rule.go | 53 +++++++++++++++++++++++++++++++++ resources/gamelift-queues.go | 53 +++++++++++++++++++++++++++++++++ 5 files changed, 264 insertions(+) create mode 100644 resources/gamelift-builds.go create mode 100644 resources/gamelift-fleets.go create mode 100644 resources/gamelift-mm-config.go create mode 100644 resources/gamelift-mm-rule.go create mode 100644 resources/gamelift-queues.go diff --git a/resources/gamelift-builds.go b/resources/gamelift-builds.go new file mode 100644 index 00000000..42c8e874 --- /dev/null +++ b/resources/gamelift-builds.go @@ -0,0 +1,52 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/gamelift" +) + +type GameLiftBuild struct { + svc *gamelift.GameLift + BuildId string +} + +func init() { + register("GameLiftBuild", ListGameLiftBuilds) +} + +func ListGameLiftBuilds(sess *session.Session) ([]Resource, error) { + svc := gamelift.New(sess) + + resp, err := svc.ListBuilds(&gamelift.ListBuildsInput{}) + if err != nil { + return nil, err + } + + builds := make([]Resource, 0) + for _, build := range resp.Builds { + builds = append(builds, &GameLiftBuild{ + svc: svc, + BuildId: aws.StringValue(build.BuildId), + }) + } + + return builds, nil +} + +func (build *GameLiftBuild) Remove() error { + params := &gamelift.DeleteBuildInput{ + BuildId: aws.String(build.BuildId), + } + + _, err := build.svc.DeleteBuild(params) + if err != nil { + return err + } + + return nil +} + +func (i *GameLiftBuild) String() string { + return i.BuildId +} diff --git a/resources/gamelift-fleets.go b/resources/gamelift-fleets.go new file mode 100644 index 00000000..50d8e909 --- /dev/null +++ b/resources/gamelift-fleets.go @@ -0,0 +1,53 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/gamelift" +) + +type GameLiftFleet struct { + svc *gamelift.GameLift + FleetId string +} + +func init() { + register("GameLiftFleet", ListGameLiftFleets) +} + +func ListGameLiftFleets(sess *session.Session) ([]Resource, error) { + svc := gamelift.New(sess) + + resp, err := svc.ListFleets(&gamelift.ListFleetsInput{}) + if err != nil { + return nil, err + } + + fleets := make([]Resource, 0) + for _, fleetId := range resp.FleetIds { + fleet := &GameLiftFleet{ + svc: svc, + FleetId: *fleetId, // Dereference the fleetId pointer + } + fleets = append(fleets, fleet) + } + + return fleets, nil +} + +func (fleet *GameLiftFleet) Remove() error { + params := &gamelift.DeleteFleetInput{ + FleetId: aws.String(fleet.FleetId), + } + + _, err := fleet.svc.DeleteFleet(params) + if err != nil { + return err + } + + return nil +} + +func (i *GameLiftFleet) String() string { + return i.FleetId +} diff --git a/resources/gamelift-mm-config.go b/resources/gamelift-mm-config.go new file mode 100644 index 00000000..9638e12b --- /dev/null +++ b/resources/gamelift-mm-config.go @@ -0,0 +1,53 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/gamelift" +) + +type GameLiftMatchmakingConfiguration struct { + svc *gamelift.GameLift + Name string +} + +func init() { + register("GameLiftMatchmakingConfiguration", ListMatchmakingConfigurations) +} + +func ListMatchmakingConfigurations(sess *session.Session) ([]Resource, error) { + svc := gamelift.New(sess) + + resp, err := svc.DescribeMatchmakingConfigurations(&gamelift.DescribeMatchmakingConfigurationsInput{}) + if err != nil { + return nil, err + } + + configs := make([]Resource, 0) + for _, config := range resp.Configurations { + q := &GameLiftMatchmakingConfiguration{ + svc: svc, + Name: *config.Name, + } + configs = append(configs, q) + } + + return configs, nil +} + +func (config *GameLiftMatchmakingConfiguration) Remove() error { + params := &gamelift.DeleteMatchmakingConfigurationInput{ + Name: aws.String(config.Name), + } + + _, err := config.svc.DeleteMatchmakingConfiguration(params) + if err != nil { + return err + } + + return nil +} + +func (i *GameLiftMatchmakingConfiguration) String() string { + return i.Name +} diff --git a/resources/gamelift-mm-rule.go b/resources/gamelift-mm-rule.go new file mode 100644 index 00000000..2535821f --- /dev/null +++ b/resources/gamelift-mm-rule.go @@ -0,0 +1,53 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/gamelift" +) + +type GameLiftMatchmakingRuleSet struct { + svc *gamelift.GameLift + Name string +} + +func init() { + register("GameLiftMatchmakingRuleSet", ListMatchmakingRuleSets) +} + +func ListMatchmakingRuleSets(sess *session.Session) ([]Resource, error) { + svc := gamelift.New(sess) + + resp, err := svc.DescribeMatchmakingRuleSets(&gamelift.DescribeMatchmakingRuleSetsInput{}) + if err != nil { + return nil, err + } + + rules := make([]Resource, 0) + for _, ruleSet := range resp.RuleSets { + q := &GameLiftMatchmakingRuleSet{ + svc: svc, + Name: *ruleSet.RuleSetName, + } + rules = append(rules, q) + } + + return rules, nil +} + +func (ruleSet *GameLiftMatchmakingRuleSet) Remove() error { + params := &gamelift.DeleteMatchmakingRuleSetInput{ + Name: aws.String(ruleSet.Name), + } + + _, err := ruleSet.svc.DeleteMatchmakingRuleSet(params) + if err != nil { + return err + } + + return nil +} + +func (ruleSet *GameLiftMatchmakingRuleSet) String() string { + return ruleSet.Name +} diff --git a/resources/gamelift-queues.go b/resources/gamelift-queues.go new file mode 100644 index 00000000..b9d2c270 --- /dev/null +++ b/resources/gamelift-queues.go @@ -0,0 +1,53 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/gamelift" +) + +type GameLiftQueue struct { + svc *gamelift.GameLift + Name string +} + +func init() { + register("GameLiftQueue", ListGameLiftQueues) +} + +func ListGameLiftQueues(sess *session.Session) ([]Resource, error) { + svc := gamelift.New(sess) + + resp, err := svc.DescribeGameSessionQueues(&gamelift.DescribeGameSessionQueuesInput{}) + if err != nil { + return nil, err + } + + queues := make([]Resource, 0) + for _, queue := range resp.GameSessionQueues { + q := &GameLiftQueue{ + svc: svc, + Name: *queue.Name, + } + queues = append(queues, q) + } + + return queues, nil +} + +func (queue *GameLiftQueue) Remove() error { + params := &gamelift.DeleteGameSessionQueueInput{ + Name: aws.String(queue.Name), + } + + _, err := queue.svc.DeleteGameSessionQueue(params) + if err != nil { + return err + } + + return nil +} + +func (i *GameLiftQueue) String() string { + return i.Name +} From 11d0bec86c584a0dd42eba51db5d09f85b92325c Mon Sep 17 00:00:00 2001 From: Lucian Date: Thu, 8 Jun 2023 19:22:00 +0300 Subject: [PATCH 511/617] feat(resource): add Pinpoint Apps and Phone Numbers support --- resources/pinpoint-app.go | 52 ++++++++++++++++++++++++++++++ resources/pinpoint-phone-number.go | 52 ++++++++++++++++++++++++++++++ 2 files changed, 104 insertions(+) create mode 100644 resources/pinpoint-app.go create mode 100644 resources/pinpoint-phone-number.go diff --git a/resources/pinpoint-app.go b/resources/pinpoint-app.go new file mode 100644 index 00000000..ec2c5cbb --- /dev/null +++ b/resources/pinpoint-app.go @@ -0,0 +1,52 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/pinpoint" +) + +type PinpointApp struct { + svc *pinpoint.Pinpoint + app string +} + +func init() { + register("PinpointApp", ListPinpointApps) +} + +func ListPinpointApps(sess *session.Session) ([]Resource, error) { + svc := pinpoint.New(sess) + + resp, err := svc.GetApps(&pinpoint.GetAppsInput{}) + if err != nil { + return nil, err + } + + apps := make([]Resource, 0) + for _, appResponse := range resp.ApplicationsResponse.Item { + apps = append(apps, &PinpointApp{ + svc: svc, + app: aws.StringValue(appResponse.Id), + }) + } + + return apps, nil +} + +func (p *PinpointApp) Remove() error { + params := &pinpoint.DeleteAppInput{ + ApplicationId: aws.String(p.app), + } + + _, err := p.svc.DeleteApp(params) + if err != nil { + return err + } + + return nil +} + +func (p *PinpointApp) String() string { + return p.app +} diff --git a/resources/pinpoint-phone-number.go b/resources/pinpoint-phone-number.go new file mode 100644 index 00000000..4db212fa --- /dev/null +++ b/resources/pinpoint-phone-number.go @@ -0,0 +1,52 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/pinpointsmsvoicev2" +) + +type PinpointPhoneNumber struct { + svc *pinpointsmsvoicev2.PinpointSMSVoiceV2 + phone string +} + +func init() { + register("PinpointPhoneNumber", ListPinpointPhoneNumbers) +} + +func ListPinpointPhoneNumbers(sess *session.Session) ([]Resource, error) { + svc := pinpointsmsvoicev2.New(sess) + + resp, err := svc.DescribePhoneNumbers(&pinpointsmsvoicev2.DescribePhoneNumbersInput{}) + if err != nil { + return nil, err + } + + numbers := make([]Resource, 0) + for _, number := range resp.PhoneNumbers { + numbers = append(numbers, &PinpointPhoneNumber{ + svc: svc, + phone: aws.StringValue(number.PhoneNumberId), + }) + } + + return numbers, nil +} + +func (p *PinpointPhoneNumber) Remove() error { + params := &pinpointsmsvoicev2.ReleasePhoneNumberInput{ + PhoneNumberId: aws.String(p.phone), + } + + _, err := p.svc.ReleasePhoneNumber(params) + if err != nil { + return err + } + + return nil +} + +func (p *PinpointPhoneNumber) String() string { + return p.phone +} From 85abfee12a9d17f025d27226a72ebbbf4a286e36 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 25 Sep 2024 21:07:14 -0500 Subject: [PATCH 512/617] refactor(gamelift-build): convert to libnuke resource format --- resources/gamelift-build.go | 67 ++++++++++++++++++++++++++++++++++++ resources/gamelift-builds.go | 52 ---------------------------- 2 files changed, 67 insertions(+), 52 deletions(-) create mode 100644 resources/gamelift-build.go delete mode 100644 resources/gamelift-builds.go diff --git a/resources/gamelift-build.go b/resources/gamelift-build.go new file mode 100644 index 00000000..1953a364 --- /dev/null +++ b/resources/gamelift-build.go @@ -0,0 +1,67 @@ +package resources + +import ( + "context" + + "github.com/aws/aws-sdk-go/service/gamelift" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +const GameLiftBuildResource = "GameLiftBuild" + +func init() { + registry.Register(®istry.Registration{ + Name: GameLiftBuildResource, + Scope: nuke.Account, + Lister: &GameLiftBuildLister{}, + }) +} + +type GameLiftBuildLister struct{} + +func (l *GameLiftBuildLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := gamelift.New(opts.Session) + + resp, err := svc.ListBuilds(&gamelift.ListBuildsInput{}) + if err != nil { + return nil, err + } + + builds := make([]resource.Resource, 0) + for _, build := range resp.Builds { + builds = append(builds, &GameLiftBuild{ + svc: svc, + BuildID: build.BuildId, + }) + } + + return builds, nil +} + +type GameLiftBuild struct { + svc *gamelift.GameLift + BuildID *string +} + +func (r *GameLiftBuild) Remove(_ context.Context) error { + params := &gamelift.DeleteBuildInput{ + BuildId: r.BuildID, + } + + _, err := r.svc.DeleteBuild(params) + if err != nil { + return err + } + + return nil +} + +func (r *GameLiftBuild) String() string { + return *r.BuildID +} diff --git a/resources/gamelift-builds.go b/resources/gamelift-builds.go deleted file mode 100644 index 42c8e874..00000000 --- a/resources/gamelift-builds.go +++ /dev/null @@ -1,52 +0,0 @@ -package resources - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/gamelift" -) - -type GameLiftBuild struct { - svc *gamelift.GameLift - BuildId string -} - -func init() { - register("GameLiftBuild", ListGameLiftBuilds) -} - -func ListGameLiftBuilds(sess *session.Session) ([]Resource, error) { - svc := gamelift.New(sess) - - resp, err := svc.ListBuilds(&gamelift.ListBuildsInput{}) - if err != nil { - return nil, err - } - - builds := make([]Resource, 0) - for _, build := range resp.Builds { - builds = append(builds, &GameLiftBuild{ - svc: svc, - BuildId: aws.StringValue(build.BuildId), - }) - } - - return builds, nil -} - -func (build *GameLiftBuild) Remove() error { - params := &gamelift.DeleteBuildInput{ - BuildId: aws.String(build.BuildId), - } - - _, err := build.svc.DeleteBuild(params) - if err != nil { - return err - } - - return nil -} - -func (i *GameLiftBuild) String() string { - return i.BuildId -} From 6784e0a744c8a82ead65f751389b35aa0f3f9769 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 25 Sep 2024 21:08:18 -0500 Subject: [PATCH 513/617] refactor(gamelift-fleet): convert to libnuke resource format --- resources/gamelift-fleet.go | 69 ++++++++++++++++++++++++++++++++++++ resources/gamelift-fleets.go | 53 --------------------------- 2 files changed, 69 insertions(+), 53 deletions(-) create mode 100644 resources/gamelift-fleet.go delete mode 100644 resources/gamelift-fleets.go diff --git a/resources/gamelift-fleet.go b/resources/gamelift-fleet.go new file mode 100644 index 00000000..1e161e7d --- /dev/null +++ b/resources/gamelift-fleet.go @@ -0,0 +1,69 @@ +package resources + +import ( + "context" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/gamelift" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +const GameLiftFleetResource = "GameLiftFleet" + +func init() { + registry.Register(®istry.Registration{ + Name: GameLiftFleetResource, + Scope: nuke.Account, + Lister: &GameLiftFleetLister{}, + }) +} + +type GameLiftFleetLister struct{} + +func (l *GameLiftFleetLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := gamelift.New(opts.Session) + + resp, err := svc.ListFleets(&gamelift.ListFleetsInput{}) + if err != nil { + return nil, err + } + + fleets := make([]resource.Resource, 0) + for _, fleetId := range resp.FleetIds { + fleet := &GameLiftFleet{ + svc: svc, + FleetId: *fleetId, // Dereference the fleetId pointer + } + fleets = append(fleets, fleet) + } + + return fleets, nil +} + +type GameLiftFleet struct { + svc *gamelift.GameLift + FleetId string +} + +func (r *GameLiftFleet) Remove(_ context.Context) error { + params := &gamelift.DeleteFleetInput{ + FleetId: aws.String(r.FleetId), + } + + _, err := r.svc.DeleteFleet(params) + if err != nil { + return err + } + + return nil +} + +func (r *GameLiftFleet) String() string { + return r.FleetId +} diff --git a/resources/gamelift-fleets.go b/resources/gamelift-fleets.go deleted file mode 100644 index 50d8e909..00000000 --- a/resources/gamelift-fleets.go +++ /dev/null @@ -1,53 +0,0 @@ -package resources - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/gamelift" -) - -type GameLiftFleet struct { - svc *gamelift.GameLift - FleetId string -} - -func init() { - register("GameLiftFleet", ListGameLiftFleets) -} - -func ListGameLiftFleets(sess *session.Session) ([]Resource, error) { - svc := gamelift.New(sess) - - resp, err := svc.ListFleets(&gamelift.ListFleetsInput{}) - if err != nil { - return nil, err - } - - fleets := make([]Resource, 0) - for _, fleetId := range resp.FleetIds { - fleet := &GameLiftFleet{ - svc: svc, - FleetId: *fleetId, // Dereference the fleetId pointer - } - fleets = append(fleets, fleet) - } - - return fleets, nil -} - -func (fleet *GameLiftFleet) Remove() error { - params := &gamelift.DeleteFleetInput{ - FleetId: aws.String(fleet.FleetId), - } - - _, err := fleet.svc.DeleteFleet(params) - if err != nil { - return err - } - - return nil -} - -func (i *GameLiftFleet) String() string { - return i.FleetId -} From 30461092ae4a926b4170b9390a06789df741052d Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 25 Sep 2024 21:09:40 -0500 Subject: [PATCH 514/617] refactor(gamelift-mm-config): convert to libnuke resource format --- resources/gamelift-mm-config.go | 47 ++++++++++++++++++++++----------- 1 file changed, 31 insertions(+), 16 deletions(-) diff --git a/resources/gamelift-mm-config.go b/resources/gamelift-mm-config.go index 9638e12b..8d792dbb 100644 --- a/resources/gamelift-mm-config.go +++ b/resources/gamelift-mm-config.go @@ -1,33 +1,43 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/gamelift" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) -type GameLiftMatchmakingConfiguration struct { - svc *gamelift.GameLift - Name string -} +const GameLiftMatchmakingConfigurationResource = "GameLiftMatchmakingConfiguration" func init() { - register("GameLiftMatchmakingConfiguration", ListMatchmakingConfigurations) + registry.Register(®istry.Registration{ + Name: GameLiftMatchmakingConfigurationResource, + Scope: nuke.Account, + Lister: &GameLiftMatchmakingConfigurationLister{}, + }) } -func ListMatchmakingConfigurations(sess *session.Session) ([]Resource, error) { - svc := gamelift.New(sess) +type GameLiftMatchmakingConfigurationLister struct{} + +func (l *GameLiftMatchmakingConfigurationLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := gamelift.New(opts.Session) resp, err := svc.DescribeMatchmakingConfigurations(&gamelift.DescribeMatchmakingConfigurationsInput{}) if err != nil { return nil, err } - configs := make([]Resource, 0) + configs := make([]resource.Resource, 0) for _, config := range resp.Configurations { q := &GameLiftMatchmakingConfiguration{ svc: svc, - Name: *config.Name, + Name: config.Name, } configs = append(configs, q) } @@ -35,12 +45,17 @@ func ListMatchmakingConfigurations(sess *session.Session) ([]Resource, error) { return configs, nil } -func (config *GameLiftMatchmakingConfiguration) Remove() error { +type GameLiftMatchmakingConfiguration struct { + svc *gamelift.GameLift + Name *string +} + +func (r *GameLiftMatchmakingConfiguration) Remove(_ context.Context) error { params := &gamelift.DeleteMatchmakingConfigurationInput{ - Name: aws.String(config.Name), + Name: r.Name, } - _, err := config.svc.DeleteMatchmakingConfiguration(params) + _, err := r.svc.DeleteMatchmakingConfiguration(params) if err != nil { return err } @@ -48,6 +63,6 @@ func (config *GameLiftMatchmakingConfiguration) Remove() error { return nil } -func (i *GameLiftMatchmakingConfiguration) String() string { - return i.Name +func (r *GameLiftMatchmakingConfiguration) String() string { + return *r.Name } From 750d9405f13500f074865c6e5a797c56111c6d08 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 25 Sep 2024 21:10:59 -0500 Subject: [PATCH 515/617] refactor(gamelift-mm-rule): convert to libnuke resource format --- resources/gamelift-mm-rule.go | 47 +++++++++++++++++++++++------------ 1 file changed, 31 insertions(+), 16 deletions(-) diff --git a/resources/gamelift-mm-rule.go b/resources/gamelift-mm-rule.go index 2535821f..42946cf8 100644 --- a/resources/gamelift-mm-rule.go +++ b/resources/gamelift-mm-rule.go @@ -1,33 +1,43 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/gamelift" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) -type GameLiftMatchmakingRuleSet struct { - svc *gamelift.GameLift - Name string -} +const GameLiftMatchmakingRuleSetResource = "GameLiftMatchmakingRuleSet" func init() { - register("GameLiftMatchmakingRuleSet", ListMatchmakingRuleSets) + registry.Register(®istry.Registration{ + Name: GameLiftMatchmakingRuleSetResource, + Scope: nuke.Account, + Lister: &GameLiftMatchmakingRuleSetLister{}, + }) } -func ListMatchmakingRuleSets(sess *session.Session) ([]Resource, error) { - svc := gamelift.New(sess) +type GameLiftMatchmakingRuleSetLister struct{} + +func (l *GameLiftMatchmakingRuleSetLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := gamelift.New(opts.Session) resp, err := svc.DescribeMatchmakingRuleSets(&gamelift.DescribeMatchmakingRuleSetsInput{}) if err != nil { return nil, err } - rules := make([]Resource, 0) + rules := make([]resource.Resource, 0) for _, ruleSet := range resp.RuleSets { q := &GameLiftMatchmakingRuleSet{ svc: svc, - Name: *ruleSet.RuleSetName, + Name: ruleSet.RuleSetName, } rules = append(rules, q) } @@ -35,12 +45,17 @@ func ListMatchmakingRuleSets(sess *session.Session) ([]Resource, error) { return rules, nil } -func (ruleSet *GameLiftMatchmakingRuleSet) Remove() error { +type GameLiftMatchmakingRuleSet struct { + svc *gamelift.GameLift + Name *string +} + +func (r *GameLiftMatchmakingRuleSet) Remove(_ context.Context) error { params := &gamelift.DeleteMatchmakingRuleSetInput{ - Name: aws.String(ruleSet.Name), + Name: r.Name, } - _, err := ruleSet.svc.DeleteMatchmakingRuleSet(params) + _, err := r.svc.DeleteMatchmakingRuleSet(params) if err != nil { return err } @@ -48,6 +63,6 @@ func (ruleSet *GameLiftMatchmakingRuleSet) Remove() error { return nil } -func (ruleSet *GameLiftMatchmakingRuleSet) String() string { - return ruleSet.Name +func (r *GameLiftMatchmakingRuleSet) String() string { + return *r.Name } From 6afe671db3287ad1c49baeac1c1b2b47d72c632d Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 25 Sep 2024 21:12:18 -0500 Subject: [PATCH 516/617] refactor(gamelift-queue): convert to libnuke resource format --- resources/gamelift-queue.go | 68 ++++++++++++++++++++++++++++++++++++ resources/gamelift-queues.go | 53 ---------------------------- 2 files changed, 68 insertions(+), 53 deletions(-) create mode 100644 resources/gamelift-queue.go delete mode 100644 resources/gamelift-queues.go diff --git a/resources/gamelift-queue.go b/resources/gamelift-queue.go new file mode 100644 index 00000000..4e2a81c1 --- /dev/null +++ b/resources/gamelift-queue.go @@ -0,0 +1,68 @@ +package resources + +import ( + "context" + + "github.com/aws/aws-sdk-go/service/gamelift" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +const GameLiftQueueResource = "GameLiftQueue" + +func init() { + registry.Register(®istry.Registration{ + Name: GameLiftQueueResource, + Scope: nuke.Account, + Lister: &GameLiftQueueLister{}, + }) +} + +type GameLiftQueueLister struct{} + +func (l *GameLiftQueueLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := gamelift.New(opts.Session) + + resp, err := svc.DescribeGameSessionQueues(&gamelift.DescribeGameSessionQueuesInput{}) + if err != nil { + return nil, err + } + + queues := make([]resource.Resource, 0) + for _, queue := range resp.GameSessionQueues { + q := &GameLiftQueue{ + svc: svc, + Name: queue.Name, + } + queues = append(queues, q) + } + + return queues, nil +} + +type GameLiftQueue struct { + svc *gamelift.GameLift + Name *string +} + +func (r *GameLiftQueue) Remove(_ context.Context) error { + params := &gamelift.DeleteGameSessionQueueInput{ + Name: r.Name, + } + + _, err := r.svc.DeleteGameSessionQueue(params) + if err != nil { + return err + } + + return nil +} + +func (r *GameLiftQueue) String() string { + return *r.Name +} diff --git a/resources/gamelift-queues.go b/resources/gamelift-queues.go deleted file mode 100644 index b9d2c270..00000000 --- a/resources/gamelift-queues.go +++ /dev/null @@ -1,53 +0,0 @@ -package resources - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/gamelift" -) - -type GameLiftQueue struct { - svc *gamelift.GameLift - Name string -} - -func init() { - register("GameLiftQueue", ListGameLiftQueues) -} - -func ListGameLiftQueues(sess *session.Session) ([]Resource, error) { - svc := gamelift.New(sess) - - resp, err := svc.DescribeGameSessionQueues(&gamelift.DescribeGameSessionQueuesInput{}) - if err != nil { - return nil, err - } - - queues := make([]Resource, 0) - for _, queue := range resp.GameSessionQueues { - q := &GameLiftQueue{ - svc: svc, - Name: *queue.Name, - } - queues = append(queues, q) - } - - return queues, nil -} - -func (queue *GameLiftQueue) Remove() error { - params := &gamelift.DeleteGameSessionQueueInput{ - Name: aws.String(queue.Name), - } - - _, err := queue.svc.DeleteGameSessionQueue(params) - if err != nil { - return err - } - - return nil -} - -func (i *GameLiftQueue) String() string { - return i.Name -} From 2b6ab4a99e701c21bc619d60e82fd0a5da22dc69 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 25 Sep 2024 21:13:51 -0500 Subject: [PATCH 517/617] refactor(pinpoint-app): convert to libnuke resource format --- resources/pinpoint-app.go | 43 ++++++++++++++++++++++++++------------- 1 file changed, 29 insertions(+), 14 deletions(-) diff --git a/resources/pinpoint-app.go b/resources/pinpoint-app.go index ec2c5cbb..127d1980 100644 --- a/resources/pinpoint-app.go +++ b/resources/pinpoint-app.go @@ -1,42 +1,57 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/pinpoint" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) -type PinpointApp struct { - svc *pinpoint.Pinpoint - app string -} +const PinpointAppResource = "PinpointApp" func init() { - register("PinpointApp", ListPinpointApps) + registry.Register(®istry.Registration{ + Name: PinpointAppResource, + Scope: nuke.Account, + Lister: &PinpointAppLister{}, + }) } -func ListPinpointApps(sess *session.Session) ([]Resource, error) { - svc := pinpoint.New(sess) +type PinpointAppLister struct{} + +func (l *PinpointAppLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := pinpoint.New(opts.Session) resp, err := svc.GetApps(&pinpoint.GetAppsInput{}) if err != nil { return nil, err } - apps := make([]Resource, 0) + apps := make([]resource.Resource, 0) for _, appResponse := range resp.ApplicationsResponse.Item { apps = append(apps, &PinpointApp{ svc: svc, - app: aws.StringValue(appResponse.Id), + ID: appResponse.Id, }) } return apps, nil } -func (p *PinpointApp) Remove() error { +type PinpointApp struct { + svc *pinpoint.Pinpoint + ID *string +} + +func (p *PinpointApp) Remove(_ context.Context) error { params := &pinpoint.DeleteAppInput{ - ApplicationId: aws.String(p.app), + ApplicationId: p.ID, } _, err := p.svc.DeleteApp(params) @@ -48,5 +63,5 @@ func (p *PinpointApp) Remove() error { } func (p *PinpointApp) String() string { - return p.app + return *p.ID } From fbc851661110b48b9584c8c1ed5df7c9e857ce00 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 25 Sep 2024 21:15:26 -0500 Subject: [PATCH 518/617] refactor(pinpoint-phone-number): convert to libnuke resource format --- resources/pinpoint-phone-number.go | 45 ++++++++++++++++++++---------- 1 file changed, 30 insertions(+), 15 deletions(-) diff --git a/resources/pinpoint-phone-number.go b/resources/pinpoint-phone-number.go index 4db212fa..9a0f87f7 100644 --- a/resources/pinpoint-phone-number.go +++ b/resources/pinpoint-phone-number.go @@ -1,42 +1,57 @@ package resources import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" + "context" + "github.com/aws/aws-sdk-go/service/pinpointsmsvoicev2" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) -type PinpointPhoneNumber struct { - svc *pinpointsmsvoicev2.PinpointSMSVoiceV2 - phone string -} +const PinpointPhoneNumberResource = "PinpointPhoneNumber" func init() { - register("PinpointPhoneNumber", ListPinpointPhoneNumbers) + registry.Register(®istry.Registration{ + Name: PinpointPhoneNumberResource, + Scope: nuke.Account, + Lister: &PinpointPhoneNumberLister{}, + }) } -func ListPinpointPhoneNumbers(sess *session.Session) ([]Resource, error) { - svc := pinpointsmsvoicev2.New(sess) +type PinpointPhoneNumberLister struct{} + +func (l *PinpointPhoneNumberLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := pinpointsmsvoicev2.New(opts.Session) resp, err := svc.DescribePhoneNumbers(&pinpointsmsvoicev2.DescribePhoneNumbersInput{}) if err != nil { return nil, err } - numbers := make([]Resource, 0) + numbers := make([]resource.Resource, 0) for _, number := range resp.PhoneNumbers { numbers = append(numbers, &PinpointPhoneNumber{ - svc: svc, - phone: aws.StringValue(number.PhoneNumberId), + svc: svc, + ID: number.PhoneNumberId, }) } return numbers, nil } -func (p *PinpointPhoneNumber) Remove() error { +type PinpointPhoneNumber struct { + svc *pinpointsmsvoicev2.PinpointSMSVoiceV2 + ID *string +} + +func (p *PinpointPhoneNumber) Remove(_ context.Context) error { params := &pinpointsmsvoicev2.ReleasePhoneNumberInput{ - PhoneNumberId: aws.String(p.phone), + PhoneNumberId: p.ID, } _, err := p.svc.ReleasePhoneNumber(params) @@ -48,5 +63,5 @@ func (p *PinpointPhoneNumber) Remove() error { } func (p *PinpointPhoneNumber) String() string { - return p.phone + return *p.ID } From ffaaa30f1c8c207a1727960799ef778fbe00bab9 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 25 Sep 2024 21:17:07 -0500 Subject: [PATCH 519/617] refactor(pinpoint-app): rename all receivers --- resources/pinpoint-app.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/pinpoint-app.go b/resources/pinpoint-app.go index 127d1980..bcbccb26 100644 --- a/resources/pinpoint-app.go +++ b/resources/pinpoint-app.go @@ -49,12 +49,12 @@ type PinpointApp struct { ID *string } -func (p *PinpointApp) Remove(_ context.Context) error { +func (r *PinpointApp) Remove(_ context.Context) error { params := &pinpoint.DeleteAppInput{ - ApplicationId: p.ID, + ApplicationId: r.ID, } - _, err := p.svc.DeleteApp(params) + _, err := r.svc.DeleteApp(params) if err != nil { return err } @@ -62,6 +62,6 @@ func (p *PinpointApp) Remove(_ context.Context) error { return nil } -func (p *PinpointApp) String() string { - return *p.ID +func (r *PinpointApp) String() string { + return *r.ID } From b703e066ec8baf016c7e63260c525b513a86e9bb Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Wed, 25 Sep 2024 21:17:16 -0500 Subject: [PATCH 520/617] refactor(pinpoint-phone-number): rename all receivers --- resources/pinpoint-phone-number.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/pinpoint-phone-number.go b/resources/pinpoint-phone-number.go index 9a0f87f7..2565ba85 100644 --- a/resources/pinpoint-phone-number.go +++ b/resources/pinpoint-phone-number.go @@ -49,12 +49,12 @@ type PinpointPhoneNumber struct { ID *string } -func (p *PinpointPhoneNumber) Remove(_ context.Context) error { +func (r *PinpointPhoneNumber) Remove(_ context.Context) error { params := &pinpointsmsvoicev2.ReleasePhoneNumberInput{ - PhoneNumberId: p.ID, + PhoneNumberId: r.ID, } - _, err := p.svc.ReleasePhoneNumber(params) + _, err := r.svc.ReleasePhoneNumber(params) if err != nil { return err } @@ -62,6 +62,6 @@ func (p *PinpointPhoneNumber) Remove(_ context.Context) error { return nil } -func (p *PinpointPhoneNumber) String() string { - return *p.ID +func (r *PinpointPhoneNumber) String() string { + return *r.ID } From d98fa97002621880300929d5faf91e6241a315c2 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 26 Sep 2024 08:40:42 -0600 Subject: [PATCH 521/617] feat(pinpoint-app): adding properties --- resources/pinpoint-app.go | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/resources/pinpoint-app.go b/resources/pinpoint-app.go index bcbccb26..a5524be1 100644 --- a/resources/pinpoint-app.go +++ b/resources/pinpoint-app.go @@ -2,11 +2,13 @@ package resources import ( "context" + "time" "github.com/aws/aws-sdk-go/service/pinpoint" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) @@ -36,8 +38,10 @@ func (l *PinpointAppLister) List(_ context.Context, o interface{}) ([]resource.R apps := make([]resource.Resource, 0) for _, appResponse := range resp.ApplicationsResponse.Item { apps = append(apps, &PinpointApp{ - svc: svc, - ID: appResponse.Id, + svc: svc, + ID: appResponse.Id, + Name: appResponse.Name, + Tags: appResponse.Tags, }) } @@ -45,8 +49,15 @@ func (l *PinpointAppLister) List(_ context.Context, o interface{}) ([]resource.R } type PinpointApp struct { - svc *pinpoint.Pinpoint - ID *string + svc *pinpoint.Pinpoint + ID *string + Name *string + CreationDate *time.Time + Tags map[string]*string +} + +func (r *PinpointApp) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) } func (r *PinpointApp) Remove(_ context.Context) error { @@ -63,5 +74,5 @@ func (r *PinpointApp) Remove(_ context.Context) error { } func (r *PinpointApp) String() string { - return *r.ID + return *r.Name } From 570177f4c7b97b8158d9d01f84314d7f940331e0 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 26 Sep 2024 08:46:35 -0600 Subject: [PATCH 522/617] feat(pinpoint-phone-number): add pagination and properties --- resources/pinpoint-phone-number.go | 75 +++++++++++++++++++++++------- 1 file changed, 58 insertions(+), 17 deletions(-) diff --git a/resources/pinpoint-phone-number.go b/resources/pinpoint-phone-number.go index 2565ba85..e17a83a9 100644 --- a/resources/pinpoint-phone-number.go +++ b/resources/pinpoint-phone-number.go @@ -2,11 +2,16 @@ package resources import ( "context" + "time" + + "github.com/gotidy/ptr" "github.com/aws/aws-sdk-go/service/pinpointsmsvoicev2" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/settings" + "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) @@ -18,6 +23,9 @@ func init() { Name: PinpointPhoneNumberResource, Scope: nuke.Account, Lister: &PinpointPhoneNumberLister{}, + Settings: []string{ + "DisableDeletionProtection", + }, }) } @@ -25,36 +33,65 @@ type PinpointPhoneNumberLister struct{} func (l *PinpointPhoneNumberLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) + var resources []resource.Resource svc := pinpointsmsvoicev2.New(opts.Session) - resp, err := svc.DescribePhoneNumbers(&pinpointsmsvoicev2.DescribePhoneNumbersInput{}) - if err != nil { - return nil, err + params := &pinpointsmsvoicev2.DescribePhoneNumbersInput{} + + for { + resp, err := svc.DescribePhoneNumbers(params) + if err != nil { + return nil, err + } + + for _, number := range resp.PhoneNumbers { + resources = append(resources, &PinpointPhoneNumber{ + svc: svc, + settings: &settings.Setting{}, + ID: number.PhoneNumberId, + Status: number.Status, + CreatedDate: number.CreatedTimestamp, + }) + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken } - numbers := make([]resource.Resource, 0) - for _, number := range resp.PhoneNumbers { - numbers = append(numbers, &PinpointPhoneNumber{ - svc: svc, - ID: number.PhoneNumberId, - }) - } - - return numbers, nil + return resources, nil } type PinpointPhoneNumber struct { - svc *pinpointsmsvoicev2.PinpointSMSVoiceV2 - ID *string + svc *pinpointsmsvoicev2.PinpointSMSVoiceV2 + settings *settings.Setting + ID *string + Status *string + CreatedDate *time.Time + deletionProtectionEnabled *bool +} + +func (r *PinpointPhoneNumber) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) } func (r *PinpointPhoneNumber) Remove(_ context.Context) error { - params := &pinpointsmsvoicev2.ReleasePhoneNumberInput{ - PhoneNumberId: r.ID, + if r.settings.GetBool("DisableDeletionProtection") { + _, err := r.svc.UpdatePhoneNumber(&pinpointsmsvoicev2.UpdatePhoneNumberInput{ + PhoneNumberId: r.ID, + DeletionProtectionEnabled: ptr.Bool(false), + }) + if err != nil { + return err + } } - _, err := r.svc.ReleasePhoneNumber(params) + _, err := r.svc.ReleasePhoneNumber(&pinpointsmsvoicev2.ReleasePhoneNumberInput{ + PhoneNumberId: r.ID, + }) if err != nil { return err } @@ -62,6 +99,10 @@ func (r *PinpointPhoneNumber) Remove(_ context.Context) error { return nil } +func (r *PinpointPhoneNumber) Settings(settings *settings.Setting) { + r.settings = settings +} + func (r *PinpointPhoneNumber) String() string { return *r.ID } From 9b7ff605e8adad0290ef2aa309f2a499232fe440 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 26 Sep 2024 08:47:41 -0600 Subject: [PATCH 523/617] feat(pinpoint-app): add pagination support --- resources/pinpoint-app.go | 36 +++++++++++++++++++++++------------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/resources/pinpoint-app.go b/resources/pinpoint-app.go index a5524be1..e9040fe3 100644 --- a/resources/pinpoint-app.go +++ b/resources/pinpoint-app.go @@ -27,25 +27,35 @@ type PinpointAppLister struct{} func (l *PinpointAppLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) + var resources []resource.Resource svc := pinpoint.New(opts.Session) - resp, err := svc.GetApps(&pinpoint.GetAppsInput{}) - if err != nil { - return nil, err - } + params := &pinpoint.GetAppsInput{} + + for { + resp, err := svc.GetApps(params) + if err != nil { + return nil, err + } + + for _, appResponse := range resp.ApplicationsResponse.Item { + resources = append(resources, &PinpointApp{ + svc: svc, + ID: appResponse.Id, + Name: appResponse.Name, + Tags: appResponse.Tags, + }) + } + + if resp.ApplicationsResponse.NextToken == nil { + break + } - apps := make([]resource.Resource, 0) - for _, appResponse := range resp.ApplicationsResponse.Item { - apps = append(apps, &PinpointApp{ - svc: svc, - ID: appResponse.Id, - Name: appResponse.Name, - Tags: appResponse.Tags, - }) + params.Token = resp.ApplicationsResponse.NextToken } - return apps, nil + return resources, nil } type PinpointApp struct { From 9ff39fa263dbc59584c216c63ca1a1992d2e8b6c Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 26 Sep 2024 08:49:25 -0600 Subject: [PATCH 524/617] test(pinpoint): adding mocks --- mocks/mock_pinpointsmsvoicev2iface/mock.go | 4830 ++++++++++++++++++++ resources/pinpoint_mock_test.go | 4 + 2 files changed, 4834 insertions(+) create mode 100644 mocks/mock_pinpointsmsvoicev2iface/mock.go create mode 100644 resources/pinpoint_mock_test.go diff --git a/mocks/mock_pinpointsmsvoicev2iface/mock.go b/mocks/mock_pinpointsmsvoicev2iface/mock.go new file mode 100644 index 00000000..7eb1916d --- /dev/null +++ b/mocks/mock_pinpointsmsvoicev2iface/mock.go @@ -0,0 +1,4830 @@ +// Code generated by MockGen. DO NOT EDIT. +// Source: /Users/ekristen/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.20/service/pinpointsmsvoicev2/pinpointsmsvoicev2iface/interface.go + +// Package mock_pinpointsmsvoicev2iface is a generated GoMock package. +package mock_pinpointsmsvoicev2iface + +import ( + reflect "reflect" + + aws "github.com/aws/aws-sdk-go/aws" + request "github.com/aws/aws-sdk-go/aws/request" + pinpointsmsvoicev2 "github.com/aws/aws-sdk-go/service/pinpointsmsvoicev2" + gomock "github.com/golang/mock/gomock" +) + +// MockPinpointSMSVoiceV2API is a mock of PinpointSMSVoiceV2API interface. +type MockPinpointSMSVoiceV2API struct { + ctrl *gomock.Controller + recorder *MockPinpointSMSVoiceV2APIMockRecorder +} + +// MockPinpointSMSVoiceV2APIMockRecorder is the mock recorder for MockPinpointSMSVoiceV2API. +type MockPinpointSMSVoiceV2APIMockRecorder struct { + mock *MockPinpointSMSVoiceV2API +} + +// NewMockPinpointSMSVoiceV2API creates a new mock instance. +func NewMockPinpointSMSVoiceV2API(ctrl *gomock.Controller) *MockPinpointSMSVoiceV2API { + mock := &MockPinpointSMSVoiceV2API{ctrl: ctrl} + mock.recorder = &MockPinpointSMSVoiceV2APIMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockPinpointSMSVoiceV2API) EXPECT() *MockPinpointSMSVoiceV2APIMockRecorder { + return m.recorder +} + +// AssociateOriginationIdentity mocks base method. +func (m *MockPinpointSMSVoiceV2API) AssociateOriginationIdentity(arg0 *pinpointsmsvoicev2.AssociateOriginationIdentityInput) (*pinpointsmsvoicev2.AssociateOriginationIdentityOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AssociateOriginationIdentity", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.AssociateOriginationIdentityOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AssociateOriginationIdentity indicates an expected call of AssociateOriginationIdentity. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) AssociateOriginationIdentity(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssociateOriginationIdentity", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).AssociateOriginationIdentity), arg0) +} + +// AssociateOriginationIdentityRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) AssociateOriginationIdentityRequest(arg0 *pinpointsmsvoicev2.AssociateOriginationIdentityInput) (*request.Request, *pinpointsmsvoicev2.AssociateOriginationIdentityOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AssociateOriginationIdentityRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.AssociateOriginationIdentityOutput) + return ret0, ret1 +} + +// AssociateOriginationIdentityRequest indicates an expected call of AssociateOriginationIdentityRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) AssociateOriginationIdentityRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssociateOriginationIdentityRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).AssociateOriginationIdentityRequest), arg0) +} + +// AssociateOriginationIdentityWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) AssociateOriginationIdentityWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.AssociateOriginationIdentityInput, arg2 ...request.Option) (*pinpointsmsvoicev2.AssociateOriginationIdentityOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AssociateOriginationIdentityWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.AssociateOriginationIdentityOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AssociateOriginationIdentityWithContext indicates an expected call of AssociateOriginationIdentityWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) AssociateOriginationIdentityWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssociateOriginationIdentityWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).AssociateOriginationIdentityWithContext), varargs...) +} + +// AssociateProtectConfiguration mocks base method. +func (m *MockPinpointSMSVoiceV2API) AssociateProtectConfiguration(arg0 *pinpointsmsvoicev2.AssociateProtectConfigurationInput) (*pinpointsmsvoicev2.AssociateProtectConfigurationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AssociateProtectConfiguration", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.AssociateProtectConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AssociateProtectConfiguration indicates an expected call of AssociateProtectConfiguration. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) AssociateProtectConfiguration(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssociateProtectConfiguration", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).AssociateProtectConfiguration), arg0) +} + +// AssociateProtectConfigurationRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) AssociateProtectConfigurationRequest(arg0 *pinpointsmsvoicev2.AssociateProtectConfigurationInput) (*request.Request, *pinpointsmsvoicev2.AssociateProtectConfigurationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AssociateProtectConfigurationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.AssociateProtectConfigurationOutput) + return ret0, ret1 +} + +// AssociateProtectConfigurationRequest indicates an expected call of AssociateProtectConfigurationRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) AssociateProtectConfigurationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssociateProtectConfigurationRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).AssociateProtectConfigurationRequest), arg0) +} + +// AssociateProtectConfigurationWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) AssociateProtectConfigurationWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.AssociateProtectConfigurationInput, arg2 ...request.Option) (*pinpointsmsvoicev2.AssociateProtectConfigurationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AssociateProtectConfigurationWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.AssociateProtectConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AssociateProtectConfigurationWithContext indicates an expected call of AssociateProtectConfigurationWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) AssociateProtectConfigurationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssociateProtectConfigurationWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).AssociateProtectConfigurationWithContext), varargs...) +} + +// CreateConfigurationSet mocks base method. +func (m *MockPinpointSMSVoiceV2API) CreateConfigurationSet(arg0 *pinpointsmsvoicev2.CreateConfigurationSetInput) (*pinpointsmsvoicev2.CreateConfigurationSetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateConfigurationSet", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.CreateConfigurationSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateConfigurationSet indicates an expected call of CreateConfigurationSet. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) CreateConfigurationSet(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateConfigurationSet", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).CreateConfigurationSet), arg0) +} + +// CreateConfigurationSetRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) CreateConfigurationSetRequest(arg0 *pinpointsmsvoicev2.CreateConfigurationSetInput) (*request.Request, *pinpointsmsvoicev2.CreateConfigurationSetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateConfigurationSetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.CreateConfigurationSetOutput) + return ret0, ret1 +} + +// CreateConfigurationSetRequest indicates an expected call of CreateConfigurationSetRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) CreateConfigurationSetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateConfigurationSetRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).CreateConfigurationSetRequest), arg0) +} + +// CreateConfigurationSetWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) CreateConfigurationSetWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.CreateConfigurationSetInput, arg2 ...request.Option) (*pinpointsmsvoicev2.CreateConfigurationSetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateConfigurationSetWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.CreateConfigurationSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateConfigurationSetWithContext indicates an expected call of CreateConfigurationSetWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) CreateConfigurationSetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateConfigurationSetWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).CreateConfigurationSetWithContext), varargs...) +} + +// CreateEventDestination mocks base method. +func (m *MockPinpointSMSVoiceV2API) CreateEventDestination(arg0 *pinpointsmsvoicev2.CreateEventDestinationInput) (*pinpointsmsvoicev2.CreateEventDestinationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateEventDestination", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.CreateEventDestinationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateEventDestination indicates an expected call of CreateEventDestination. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) CreateEventDestination(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateEventDestination", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).CreateEventDestination), arg0) +} + +// CreateEventDestinationRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) CreateEventDestinationRequest(arg0 *pinpointsmsvoicev2.CreateEventDestinationInput) (*request.Request, *pinpointsmsvoicev2.CreateEventDestinationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateEventDestinationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.CreateEventDestinationOutput) + return ret0, ret1 +} + +// CreateEventDestinationRequest indicates an expected call of CreateEventDestinationRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) CreateEventDestinationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateEventDestinationRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).CreateEventDestinationRequest), arg0) +} + +// CreateEventDestinationWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) CreateEventDestinationWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.CreateEventDestinationInput, arg2 ...request.Option) (*pinpointsmsvoicev2.CreateEventDestinationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateEventDestinationWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.CreateEventDestinationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateEventDestinationWithContext indicates an expected call of CreateEventDestinationWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) CreateEventDestinationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateEventDestinationWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).CreateEventDestinationWithContext), varargs...) +} + +// CreateOptOutList mocks base method. +func (m *MockPinpointSMSVoiceV2API) CreateOptOutList(arg0 *pinpointsmsvoicev2.CreateOptOutListInput) (*pinpointsmsvoicev2.CreateOptOutListOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateOptOutList", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.CreateOptOutListOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateOptOutList indicates an expected call of CreateOptOutList. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) CreateOptOutList(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOptOutList", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).CreateOptOutList), arg0) +} + +// CreateOptOutListRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) CreateOptOutListRequest(arg0 *pinpointsmsvoicev2.CreateOptOutListInput) (*request.Request, *pinpointsmsvoicev2.CreateOptOutListOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateOptOutListRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.CreateOptOutListOutput) + return ret0, ret1 +} + +// CreateOptOutListRequest indicates an expected call of CreateOptOutListRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) CreateOptOutListRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOptOutListRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).CreateOptOutListRequest), arg0) +} + +// CreateOptOutListWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) CreateOptOutListWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.CreateOptOutListInput, arg2 ...request.Option) (*pinpointsmsvoicev2.CreateOptOutListOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateOptOutListWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.CreateOptOutListOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateOptOutListWithContext indicates an expected call of CreateOptOutListWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) CreateOptOutListWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOptOutListWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).CreateOptOutListWithContext), varargs...) +} + +// CreatePool mocks base method. +func (m *MockPinpointSMSVoiceV2API) CreatePool(arg0 *pinpointsmsvoicev2.CreatePoolInput) (*pinpointsmsvoicev2.CreatePoolOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreatePool", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.CreatePoolOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreatePool indicates an expected call of CreatePool. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) CreatePool(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePool", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).CreatePool), arg0) +} + +// CreatePoolRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) CreatePoolRequest(arg0 *pinpointsmsvoicev2.CreatePoolInput) (*request.Request, *pinpointsmsvoicev2.CreatePoolOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreatePoolRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.CreatePoolOutput) + return ret0, ret1 +} + +// CreatePoolRequest indicates an expected call of CreatePoolRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) CreatePoolRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePoolRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).CreatePoolRequest), arg0) +} + +// CreatePoolWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) CreatePoolWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.CreatePoolInput, arg2 ...request.Option) (*pinpointsmsvoicev2.CreatePoolOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreatePoolWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.CreatePoolOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreatePoolWithContext indicates an expected call of CreatePoolWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) CreatePoolWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePoolWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).CreatePoolWithContext), varargs...) +} + +// CreateProtectConfiguration mocks base method. +func (m *MockPinpointSMSVoiceV2API) CreateProtectConfiguration(arg0 *pinpointsmsvoicev2.CreateProtectConfigurationInput) (*pinpointsmsvoicev2.CreateProtectConfigurationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateProtectConfiguration", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.CreateProtectConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateProtectConfiguration indicates an expected call of CreateProtectConfiguration. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) CreateProtectConfiguration(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateProtectConfiguration", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).CreateProtectConfiguration), arg0) +} + +// CreateProtectConfigurationRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) CreateProtectConfigurationRequest(arg0 *pinpointsmsvoicev2.CreateProtectConfigurationInput) (*request.Request, *pinpointsmsvoicev2.CreateProtectConfigurationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateProtectConfigurationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.CreateProtectConfigurationOutput) + return ret0, ret1 +} + +// CreateProtectConfigurationRequest indicates an expected call of CreateProtectConfigurationRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) CreateProtectConfigurationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateProtectConfigurationRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).CreateProtectConfigurationRequest), arg0) +} + +// CreateProtectConfigurationWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) CreateProtectConfigurationWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.CreateProtectConfigurationInput, arg2 ...request.Option) (*pinpointsmsvoicev2.CreateProtectConfigurationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateProtectConfigurationWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.CreateProtectConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateProtectConfigurationWithContext indicates an expected call of CreateProtectConfigurationWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) CreateProtectConfigurationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateProtectConfigurationWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).CreateProtectConfigurationWithContext), varargs...) +} + +// CreateRegistration mocks base method. +func (m *MockPinpointSMSVoiceV2API) CreateRegistration(arg0 *pinpointsmsvoicev2.CreateRegistrationInput) (*pinpointsmsvoicev2.CreateRegistrationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateRegistration", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.CreateRegistrationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateRegistration indicates an expected call of CreateRegistration. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) CreateRegistration(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRegistration", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).CreateRegistration), arg0) +} + +// CreateRegistrationAssociation mocks base method. +func (m *MockPinpointSMSVoiceV2API) CreateRegistrationAssociation(arg0 *pinpointsmsvoicev2.CreateRegistrationAssociationInput) (*pinpointsmsvoicev2.CreateRegistrationAssociationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateRegistrationAssociation", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.CreateRegistrationAssociationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateRegistrationAssociation indicates an expected call of CreateRegistrationAssociation. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) CreateRegistrationAssociation(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRegistrationAssociation", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).CreateRegistrationAssociation), arg0) +} + +// CreateRegistrationAssociationRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) CreateRegistrationAssociationRequest(arg0 *pinpointsmsvoicev2.CreateRegistrationAssociationInput) (*request.Request, *pinpointsmsvoicev2.CreateRegistrationAssociationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateRegistrationAssociationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.CreateRegistrationAssociationOutput) + return ret0, ret1 +} + +// CreateRegistrationAssociationRequest indicates an expected call of CreateRegistrationAssociationRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) CreateRegistrationAssociationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRegistrationAssociationRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).CreateRegistrationAssociationRequest), arg0) +} + +// CreateRegistrationAssociationWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) CreateRegistrationAssociationWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.CreateRegistrationAssociationInput, arg2 ...request.Option) (*pinpointsmsvoicev2.CreateRegistrationAssociationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateRegistrationAssociationWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.CreateRegistrationAssociationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateRegistrationAssociationWithContext indicates an expected call of CreateRegistrationAssociationWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) CreateRegistrationAssociationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRegistrationAssociationWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).CreateRegistrationAssociationWithContext), varargs...) +} + +// CreateRegistrationAttachment mocks base method. +func (m *MockPinpointSMSVoiceV2API) CreateRegistrationAttachment(arg0 *pinpointsmsvoicev2.CreateRegistrationAttachmentInput) (*pinpointsmsvoicev2.CreateRegistrationAttachmentOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateRegistrationAttachment", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.CreateRegistrationAttachmentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateRegistrationAttachment indicates an expected call of CreateRegistrationAttachment. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) CreateRegistrationAttachment(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRegistrationAttachment", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).CreateRegistrationAttachment), arg0) +} + +// CreateRegistrationAttachmentRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) CreateRegistrationAttachmentRequest(arg0 *pinpointsmsvoicev2.CreateRegistrationAttachmentInput) (*request.Request, *pinpointsmsvoicev2.CreateRegistrationAttachmentOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateRegistrationAttachmentRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.CreateRegistrationAttachmentOutput) + return ret0, ret1 +} + +// CreateRegistrationAttachmentRequest indicates an expected call of CreateRegistrationAttachmentRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) CreateRegistrationAttachmentRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRegistrationAttachmentRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).CreateRegistrationAttachmentRequest), arg0) +} + +// CreateRegistrationAttachmentWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) CreateRegistrationAttachmentWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.CreateRegistrationAttachmentInput, arg2 ...request.Option) (*pinpointsmsvoicev2.CreateRegistrationAttachmentOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateRegistrationAttachmentWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.CreateRegistrationAttachmentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateRegistrationAttachmentWithContext indicates an expected call of CreateRegistrationAttachmentWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) CreateRegistrationAttachmentWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRegistrationAttachmentWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).CreateRegistrationAttachmentWithContext), varargs...) +} + +// CreateRegistrationRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) CreateRegistrationRequest(arg0 *pinpointsmsvoicev2.CreateRegistrationInput) (*request.Request, *pinpointsmsvoicev2.CreateRegistrationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateRegistrationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.CreateRegistrationOutput) + return ret0, ret1 +} + +// CreateRegistrationRequest indicates an expected call of CreateRegistrationRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) CreateRegistrationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRegistrationRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).CreateRegistrationRequest), arg0) +} + +// CreateRegistrationVersion mocks base method. +func (m *MockPinpointSMSVoiceV2API) CreateRegistrationVersion(arg0 *pinpointsmsvoicev2.CreateRegistrationVersionInput) (*pinpointsmsvoicev2.CreateRegistrationVersionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateRegistrationVersion", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.CreateRegistrationVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateRegistrationVersion indicates an expected call of CreateRegistrationVersion. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) CreateRegistrationVersion(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRegistrationVersion", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).CreateRegistrationVersion), arg0) +} + +// CreateRegistrationVersionRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) CreateRegistrationVersionRequest(arg0 *pinpointsmsvoicev2.CreateRegistrationVersionInput) (*request.Request, *pinpointsmsvoicev2.CreateRegistrationVersionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateRegistrationVersionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.CreateRegistrationVersionOutput) + return ret0, ret1 +} + +// CreateRegistrationVersionRequest indicates an expected call of CreateRegistrationVersionRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) CreateRegistrationVersionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRegistrationVersionRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).CreateRegistrationVersionRequest), arg0) +} + +// CreateRegistrationVersionWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) CreateRegistrationVersionWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.CreateRegistrationVersionInput, arg2 ...request.Option) (*pinpointsmsvoicev2.CreateRegistrationVersionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateRegistrationVersionWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.CreateRegistrationVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateRegistrationVersionWithContext indicates an expected call of CreateRegistrationVersionWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) CreateRegistrationVersionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRegistrationVersionWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).CreateRegistrationVersionWithContext), varargs...) +} + +// CreateRegistrationWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) CreateRegistrationWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.CreateRegistrationInput, arg2 ...request.Option) (*pinpointsmsvoicev2.CreateRegistrationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateRegistrationWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.CreateRegistrationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateRegistrationWithContext indicates an expected call of CreateRegistrationWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) CreateRegistrationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRegistrationWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).CreateRegistrationWithContext), varargs...) +} + +// CreateVerifiedDestinationNumber mocks base method. +func (m *MockPinpointSMSVoiceV2API) CreateVerifiedDestinationNumber(arg0 *pinpointsmsvoicev2.CreateVerifiedDestinationNumberInput) (*pinpointsmsvoicev2.CreateVerifiedDestinationNumberOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateVerifiedDestinationNumber", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.CreateVerifiedDestinationNumberOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateVerifiedDestinationNumber indicates an expected call of CreateVerifiedDestinationNumber. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) CreateVerifiedDestinationNumber(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateVerifiedDestinationNumber", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).CreateVerifiedDestinationNumber), arg0) +} + +// CreateVerifiedDestinationNumberRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) CreateVerifiedDestinationNumberRequest(arg0 *pinpointsmsvoicev2.CreateVerifiedDestinationNumberInput) (*request.Request, *pinpointsmsvoicev2.CreateVerifiedDestinationNumberOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateVerifiedDestinationNumberRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.CreateVerifiedDestinationNumberOutput) + return ret0, ret1 +} + +// CreateVerifiedDestinationNumberRequest indicates an expected call of CreateVerifiedDestinationNumberRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) CreateVerifiedDestinationNumberRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateVerifiedDestinationNumberRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).CreateVerifiedDestinationNumberRequest), arg0) +} + +// CreateVerifiedDestinationNumberWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) CreateVerifiedDestinationNumberWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.CreateVerifiedDestinationNumberInput, arg2 ...request.Option) (*pinpointsmsvoicev2.CreateVerifiedDestinationNumberOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateVerifiedDestinationNumberWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.CreateVerifiedDestinationNumberOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateVerifiedDestinationNumberWithContext indicates an expected call of CreateVerifiedDestinationNumberWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) CreateVerifiedDestinationNumberWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateVerifiedDestinationNumberWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).CreateVerifiedDestinationNumberWithContext), varargs...) +} + +// DeleteAccountDefaultProtectConfiguration mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteAccountDefaultProtectConfiguration(arg0 *pinpointsmsvoicev2.DeleteAccountDefaultProtectConfigurationInput) (*pinpointsmsvoicev2.DeleteAccountDefaultProtectConfigurationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteAccountDefaultProtectConfiguration", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DeleteAccountDefaultProtectConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteAccountDefaultProtectConfiguration indicates an expected call of DeleteAccountDefaultProtectConfiguration. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteAccountDefaultProtectConfiguration(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAccountDefaultProtectConfiguration", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteAccountDefaultProtectConfiguration), arg0) +} + +// DeleteAccountDefaultProtectConfigurationRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteAccountDefaultProtectConfigurationRequest(arg0 *pinpointsmsvoicev2.DeleteAccountDefaultProtectConfigurationInput) (*request.Request, *pinpointsmsvoicev2.DeleteAccountDefaultProtectConfigurationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteAccountDefaultProtectConfigurationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DeleteAccountDefaultProtectConfigurationOutput) + return ret0, ret1 +} + +// DeleteAccountDefaultProtectConfigurationRequest indicates an expected call of DeleteAccountDefaultProtectConfigurationRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteAccountDefaultProtectConfigurationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAccountDefaultProtectConfigurationRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteAccountDefaultProtectConfigurationRequest), arg0) +} + +// DeleteAccountDefaultProtectConfigurationWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteAccountDefaultProtectConfigurationWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DeleteAccountDefaultProtectConfigurationInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DeleteAccountDefaultProtectConfigurationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteAccountDefaultProtectConfigurationWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DeleteAccountDefaultProtectConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteAccountDefaultProtectConfigurationWithContext indicates an expected call of DeleteAccountDefaultProtectConfigurationWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteAccountDefaultProtectConfigurationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAccountDefaultProtectConfigurationWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteAccountDefaultProtectConfigurationWithContext), varargs...) +} + +// DeleteConfigurationSet mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteConfigurationSet(arg0 *pinpointsmsvoicev2.DeleteConfigurationSetInput) (*pinpointsmsvoicev2.DeleteConfigurationSetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteConfigurationSet", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DeleteConfigurationSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteConfigurationSet indicates an expected call of DeleteConfigurationSet. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteConfigurationSet(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteConfigurationSet", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteConfigurationSet), arg0) +} + +// DeleteConfigurationSetRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteConfigurationSetRequest(arg0 *pinpointsmsvoicev2.DeleteConfigurationSetInput) (*request.Request, *pinpointsmsvoicev2.DeleteConfigurationSetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteConfigurationSetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DeleteConfigurationSetOutput) + return ret0, ret1 +} + +// DeleteConfigurationSetRequest indicates an expected call of DeleteConfigurationSetRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteConfigurationSetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteConfigurationSetRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteConfigurationSetRequest), arg0) +} + +// DeleteConfigurationSetWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteConfigurationSetWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DeleteConfigurationSetInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DeleteConfigurationSetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteConfigurationSetWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DeleteConfigurationSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteConfigurationSetWithContext indicates an expected call of DeleteConfigurationSetWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteConfigurationSetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteConfigurationSetWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteConfigurationSetWithContext), varargs...) +} + +// DeleteDefaultMessageType mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteDefaultMessageType(arg0 *pinpointsmsvoicev2.DeleteDefaultMessageTypeInput) (*pinpointsmsvoicev2.DeleteDefaultMessageTypeOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteDefaultMessageType", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DeleteDefaultMessageTypeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteDefaultMessageType indicates an expected call of DeleteDefaultMessageType. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteDefaultMessageType(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDefaultMessageType", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteDefaultMessageType), arg0) +} + +// DeleteDefaultMessageTypeRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteDefaultMessageTypeRequest(arg0 *pinpointsmsvoicev2.DeleteDefaultMessageTypeInput) (*request.Request, *pinpointsmsvoicev2.DeleteDefaultMessageTypeOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteDefaultMessageTypeRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DeleteDefaultMessageTypeOutput) + return ret0, ret1 +} + +// DeleteDefaultMessageTypeRequest indicates an expected call of DeleteDefaultMessageTypeRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteDefaultMessageTypeRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDefaultMessageTypeRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteDefaultMessageTypeRequest), arg0) +} + +// DeleteDefaultMessageTypeWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteDefaultMessageTypeWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DeleteDefaultMessageTypeInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DeleteDefaultMessageTypeOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteDefaultMessageTypeWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DeleteDefaultMessageTypeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteDefaultMessageTypeWithContext indicates an expected call of DeleteDefaultMessageTypeWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteDefaultMessageTypeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDefaultMessageTypeWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteDefaultMessageTypeWithContext), varargs...) +} + +// DeleteDefaultSenderId mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteDefaultSenderId(arg0 *pinpointsmsvoicev2.DeleteDefaultSenderIdInput) (*pinpointsmsvoicev2.DeleteDefaultSenderIdOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteDefaultSenderId", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DeleteDefaultSenderIdOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteDefaultSenderId indicates an expected call of DeleteDefaultSenderId. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteDefaultSenderId(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDefaultSenderId", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteDefaultSenderId), arg0) +} + +// DeleteDefaultSenderIdRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteDefaultSenderIdRequest(arg0 *pinpointsmsvoicev2.DeleteDefaultSenderIdInput) (*request.Request, *pinpointsmsvoicev2.DeleteDefaultSenderIdOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteDefaultSenderIdRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DeleteDefaultSenderIdOutput) + return ret0, ret1 +} + +// DeleteDefaultSenderIdRequest indicates an expected call of DeleteDefaultSenderIdRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteDefaultSenderIdRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDefaultSenderIdRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteDefaultSenderIdRequest), arg0) +} + +// DeleteDefaultSenderIdWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteDefaultSenderIdWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DeleteDefaultSenderIdInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DeleteDefaultSenderIdOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteDefaultSenderIdWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DeleteDefaultSenderIdOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteDefaultSenderIdWithContext indicates an expected call of DeleteDefaultSenderIdWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteDefaultSenderIdWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDefaultSenderIdWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteDefaultSenderIdWithContext), varargs...) +} + +// DeleteEventDestination mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteEventDestination(arg0 *pinpointsmsvoicev2.DeleteEventDestinationInput) (*pinpointsmsvoicev2.DeleteEventDestinationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteEventDestination", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DeleteEventDestinationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteEventDestination indicates an expected call of DeleteEventDestination. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteEventDestination(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteEventDestination", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteEventDestination), arg0) +} + +// DeleteEventDestinationRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteEventDestinationRequest(arg0 *pinpointsmsvoicev2.DeleteEventDestinationInput) (*request.Request, *pinpointsmsvoicev2.DeleteEventDestinationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteEventDestinationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DeleteEventDestinationOutput) + return ret0, ret1 +} + +// DeleteEventDestinationRequest indicates an expected call of DeleteEventDestinationRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteEventDestinationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteEventDestinationRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteEventDestinationRequest), arg0) +} + +// DeleteEventDestinationWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteEventDestinationWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DeleteEventDestinationInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DeleteEventDestinationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteEventDestinationWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DeleteEventDestinationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteEventDestinationWithContext indicates an expected call of DeleteEventDestinationWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteEventDestinationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteEventDestinationWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteEventDestinationWithContext), varargs...) +} + +// DeleteKeyword mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteKeyword(arg0 *pinpointsmsvoicev2.DeleteKeywordInput) (*pinpointsmsvoicev2.DeleteKeywordOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteKeyword", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DeleteKeywordOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteKeyword indicates an expected call of DeleteKeyword. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteKeyword(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteKeyword", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteKeyword), arg0) +} + +// DeleteKeywordRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteKeywordRequest(arg0 *pinpointsmsvoicev2.DeleteKeywordInput) (*request.Request, *pinpointsmsvoicev2.DeleteKeywordOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteKeywordRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DeleteKeywordOutput) + return ret0, ret1 +} + +// DeleteKeywordRequest indicates an expected call of DeleteKeywordRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteKeywordRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteKeywordRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteKeywordRequest), arg0) +} + +// DeleteKeywordWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteKeywordWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DeleteKeywordInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DeleteKeywordOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteKeywordWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DeleteKeywordOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteKeywordWithContext indicates an expected call of DeleteKeywordWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteKeywordWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteKeywordWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteKeywordWithContext), varargs...) +} + +// DeleteMediaMessageSpendLimitOverride mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteMediaMessageSpendLimitOverride(arg0 *pinpointsmsvoicev2.DeleteMediaMessageSpendLimitOverrideInput) (*pinpointsmsvoicev2.DeleteMediaMessageSpendLimitOverrideOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteMediaMessageSpendLimitOverride", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DeleteMediaMessageSpendLimitOverrideOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteMediaMessageSpendLimitOverride indicates an expected call of DeleteMediaMessageSpendLimitOverride. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteMediaMessageSpendLimitOverride(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMediaMessageSpendLimitOverride", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteMediaMessageSpendLimitOverride), arg0) +} + +// DeleteMediaMessageSpendLimitOverrideRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteMediaMessageSpendLimitOverrideRequest(arg0 *pinpointsmsvoicev2.DeleteMediaMessageSpendLimitOverrideInput) (*request.Request, *pinpointsmsvoicev2.DeleteMediaMessageSpendLimitOverrideOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteMediaMessageSpendLimitOverrideRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DeleteMediaMessageSpendLimitOverrideOutput) + return ret0, ret1 +} + +// DeleteMediaMessageSpendLimitOverrideRequest indicates an expected call of DeleteMediaMessageSpendLimitOverrideRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteMediaMessageSpendLimitOverrideRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMediaMessageSpendLimitOverrideRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteMediaMessageSpendLimitOverrideRequest), arg0) +} + +// DeleteMediaMessageSpendLimitOverrideWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteMediaMessageSpendLimitOverrideWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DeleteMediaMessageSpendLimitOverrideInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DeleteMediaMessageSpendLimitOverrideOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteMediaMessageSpendLimitOverrideWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DeleteMediaMessageSpendLimitOverrideOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteMediaMessageSpendLimitOverrideWithContext indicates an expected call of DeleteMediaMessageSpendLimitOverrideWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteMediaMessageSpendLimitOverrideWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMediaMessageSpendLimitOverrideWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteMediaMessageSpendLimitOverrideWithContext), varargs...) +} + +// DeleteOptOutList mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteOptOutList(arg0 *pinpointsmsvoicev2.DeleteOptOutListInput) (*pinpointsmsvoicev2.DeleteOptOutListOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteOptOutList", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DeleteOptOutListOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteOptOutList indicates an expected call of DeleteOptOutList. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteOptOutList(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOptOutList", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteOptOutList), arg0) +} + +// DeleteOptOutListRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteOptOutListRequest(arg0 *pinpointsmsvoicev2.DeleteOptOutListInput) (*request.Request, *pinpointsmsvoicev2.DeleteOptOutListOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteOptOutListRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DeleteOptOutListOutput) + return ret0, ret1 +} + +// DeleteOptOutListRequest indicates an expected call of DeleteOptOutListRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteOptOutListRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOptOutListRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteOptOutListRequest), arg0) +} + +// DeleteOptOutListWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteOptOutListWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DeleteOptOutListInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DeleteOptOutListOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteOptOutListWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DeleteOptOutListOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteOptOutListWithContext indicates an expected call of DeleteOptOutListWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteOptOutListWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOptOutListWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteOptOutListWithContext), varargs...) +} + +// DeleteOptedOutNumber mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteOptedOutNumber(arg0 *pinpointsmsvoicev2.DeleteOptedOutNumberInput) (*pinpointsmsvoicev2.DeleteOptedOutNumberOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteOptedOutNumber", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DeleteOptedOutNumberOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteOptedOutNumber indicates an expected call of DeleteOptedOutNumber. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteOptedOutNumber(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOptedOutNumber", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteOptedOutNumber), arg0) +} + +// DeleteOptedOutNumberRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteOptedOutNumberRequest(arg0 *pinpointsmsvoicev2.DeleteOptedOutNumberInput) (*request.Request, *pinpointsmsvoicev2.DeleteOptedOutNumberOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteOptedOutNumberRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DeleteOptedOutNumberOutput) + return ret0, ret1 +} + +// DeleteOptedOutNumberRequest indicates an expected call of DeleteOptedOutNumberRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteOptedOutNumberRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOptedOutNumberRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteOptedOutNumberRequest), arg0) +} + +// DeleteOptedOutNumberWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteOptedOutNumberWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DeleteOptedOutNumberInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DeleteOptedOutNumberOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteOptedOutNumberWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DeleteOptedOutNumberOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteOptedOutNumberWithContext indicates an expected call of DeleteOptedOutNumberWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteOptedOutNumberWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOptedOutNumberWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteOptedOutNumberWithContext), varargs...) +} + +// DeletePool mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeletePool(arg0 *pinpointsmsvoicev2.DeletePoolInput) (*pinpointsmsvoicev2.DeletePoolOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeletePool", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DeletePoolOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeletePool indicates an expected call of DeletePool. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeletePool(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePool", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeletePool), arg0) +} + +// DeletePoolRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeletePoolRequest(arg0 *pinpointsmsvoicev2.DeletePoolInput) (*request.Request, *pinpointsmsvoicev2.DeletePoolOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeletePoolRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DeletePoolOutput) + return ret0, ret1 +} + +// DeletePoolRequest indicates an expected call of DeletePoolRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeletePoolRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePoolRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeletePoolRequest), arg0) +} + +// DeletePoolWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeletePoolWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DeletePoolInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DeletePoolOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeletePoolWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DeletePoolOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeletePoolWithContext indicates an expected call of DeletePoolWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeletePoolWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePoolWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeletePoolWithContext), varargs...) +} + +// DeleteProtectConfiguration mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteProtectConfiguration(arg0 *pinpointsmsvoicev2.DeleteProtectConfigurationInput) (*pinpointsmsvoicev2.DeleteProtectConfigurationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteProtectConfiguration", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DeleteProtectConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteProtectConfiguration indicates an expected call of DeleteProtectConfiguration. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteProtectConfiguration(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteProtectConfiguration", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteProtectConfiguration), arg0) +} + +// DeleteProtectConfigurationRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteProtectConfigurationRequest(arg0 *pinpointsmsvoicev2.DeleteProtectConfigurationInput) (*request.Request, *pinpointsmsvoicev2.DeleteProtectConfigurationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteProtectConfigurationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DeleteProtectConfigurationOutput) + return ret0, ret1 +} + +// DeleteProtectConfigurationRequest indicates an expected call of DeleteProtectConfigurationRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteProtectConfigurationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteProtectConfigurationRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteProtectConfigurationRequest), arg0) +} + +// DeleteProtectConfigurationWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteProtectConfigurationWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DeleteProtectConfigurationInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DeleteProtectConfigurationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteProtectConfigurationWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DeleteProtectConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteProtectConfigurationWithContext indicates an expected call of DeleteProtectConfigurationWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteProtectConfigurationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteProtectConfigurationWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteProtectConfigurationWithContext), varargs...) +} + +// DeleteRegistration mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteRegistration(arg0 *pinpointsmsvoicev2.DeleteRegistrationInput) (*pinpointsmsvoicev2.DeleteRegistrationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteRegistration", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DeleteRegistrationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteRegistration indicates an expected call of DeleteRegistration. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteRegistration(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRegistration", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteRegistration), arg0) +} + +// DeleteRegistrationAttachment mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteRegistrationAttachment(arg0 *pinpointsmsvoicev2.DeleteRegistrationAttachmentInput) (*pinpointsmsvoicev2.DeleteRegistrationAttachmentOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteRegistrationAttachment", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DeleteRegistrationAttachmentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteRegistrationAttachment indicates an expected call of DeleteRegistrationAttachment. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteRegistrationAttachment(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRegistrationAttachment", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteRegistrationAttachment), arg0) +} + +// DeleteRegistrationAttachmentRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteRegistrationAttachmentRequest(arg0 *pinpointsmsvoicev2.DeleteRegistrationAttachmentInput) (*request.Request, *pinpointsmsvoicev2.DeleteRegistrationAttachmentOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteRegistrationAttachmentRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DeleteRegistrationAttachmentOutput) + return ret0, ret1 +} + +// DeleteRegistrationAttachmentRequest indicates an expected call of DeleteRegistrationAttachmentRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteRegistrationAttachmentRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRegistrationAttachmentRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteRegistrationAttachmentRequest), arg0) +} + +// DeleteRegistrationAttachmentWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteRegistrationAttachmentWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DeleteRegistrationAttachmentInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DeleteRegistrationAttachmentOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteRegistrationAttachmentWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DeleteRegistrationAttachmentOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteRegistrationAttachmentWithContext indicates an expected call of DeleteRegistrationAttachmentWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteRegistrationAttachmentWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRegistrationAttachmentWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteRegistrationAttachmentWithContext), varargs...) +} + +// DeleteRegistrationFieldValue mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteRegistrationFieldValue(arg0 *pinpointsmsvoicev2.DeleteRegistrationFieldValueInput) (*pinpointsmsvoicev2.DeleteRegistrationFieldValueOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteRegistrationFieldValue", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DeleteRegistrationFieldValueOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteRegistrationFieldValue indicates an expected call of DeleteRegistrationFieldValue. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteRegistrationFieldValue(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRegistrationFieldValue", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteRegistrationFieldValue), arg0) +} + +// DeleteRegistrationFieldValueRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteRegistrationFieldValueRequest(arg0 *pinpointsmsvoicev2.DeleteRegistrationFieldValueInput) (*request.Request, *pinpointsmsvoicev2.DeleteRegistrationFieldValueOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteRegistrationFieldValueRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DeleteRegistrationFieldValueOutput) + return ret0, ret1 +} + +// DeleteRegistrationFieldValueRequest indicates an expected call of DeleteRegistrationFieldValueRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteRegistrationFieldValueRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRegistrationFieldValueRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteRegistrationFieldValueRequest), arg0) +} + +// DeleteRegistrationFieldValueWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteRegistrationFieldValueWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DeleteRegistrationFieldValueInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DeleteRegistrationFieldValueOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteRegistrationFieldValueWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DeleteRegistrationFieldValueOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteRegistrationFieldValueWithContext indicates an expected call of DeleteRegistrationFieldValueWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteRegistrationFieldValueWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRegistrationFieldValueWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteRegistrationFieldValueWithContext), varargs...) +} + +// DeleteRegistrationRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteRegistrationRequest(arg0 *pinpointsmsvoicev2.DeleteRegistrationInput) (*request.Request, *pinpointsmsvoicev2.DeleteRegistrationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteRegistrationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DeleteRegistrationOutput) + return ret0, ret1 +} + +// DeleteRegistrationRequest indicates an expected call of DeleteRegistrationRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteRegistrationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRegistrationRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteRegistrationRequest), arg0) +} + +// DeleteRegistrationWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteRegistrationWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DeleteRegistrationInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DeleteRegistrationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteRegistrationWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DeleteRegistrationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteRegistrationWithContext indicates an expected call of DeleteRegistrationWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteRegistrationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRegistrationWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteRegistrationWithContext), varargs...) +} + +// DeleteTextMessageSpendLimitOverride mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteTextMessageSpendLimitOverride(arg0 *pinpointsmsvoicev2.DeleteTextMessageSpendLimitOverrideInput) (*pinpointsmsvoicev2.DeleteTextMessageSpendLimitOverrideOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTextMessageSpendLimitOverride", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DeleteTextMessageSpendLimitOverrideOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTextMessageSpendLimitOverride indicates an expected call of DeleteTextMessageSpendLimitOverride. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteTextMessageSpendLimitOverride(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTextMessageSpendLimitOverride", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteTextMessageSpendLimitOverride), arg0) +} + +// DeleteTextMessageSpendLimitOverrideRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteTextMessageSpendLimitOverrideRequest(arg0 *pinpointsmsvoicev2.DeleteTextMessageSpendLimitOverrideInput) (*request.Request, *pinpointsmsvoicev2.DeleteTextMessageSpendLimitOverrideOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteTextMessageSpendLimitOverrideRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DeleteTextMessageSpendLimitOverrideOutput) + return ret0, ret1 +} + +// DeleteTextMessageSpendLimitOverrideRequest indicates an expected call of DeleteTextMessageSpendLimitOverrideRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteTextMessageSpendLimitOverrideRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTextMessageSpendLimitOverrideRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteTextMessageSpendLimitOverrideRequest), arg0) +} + +// DeleteTextMessageSpendLimitOverrideWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteTextMessageSpendLimitOverrideWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DeleteTextMessageSpendLimitOverrideInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DeleteTextMessageSpendLimitOverrideOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteTextMessageSpendLimitOverrideWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DeleteTextMessageSpendLimitOverrideOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteTextMessageSpendLimitOverrideWithContext indicates an expected call of DeleteTextMessageSpendLimitOverrideWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteTextMessageSpendLimitOverrideWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTextMessageSpendLimitOverrideWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteTextMessageSpendLimitOverrideWithContext), varargs...) +} + +// DeleteVerifiedDestinationNumber mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteVerifiedDestinationNumber(arg0 *pinpointsmsvoicev2.DeleteVerifiedDestinationNumberInput) (*pinpointsmsvoicev2.DeleteVerifiedDestinationNumberOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteVerifiedDestinationNumber", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DeleteVerifiedDestinationNumberOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteVerifiedDestinationNumber indicates an expected call of DeleteVerifiedDestinationNumber. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteVerifiedDestinationNumber(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVerifiedDestinationNumber", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteVerifiedDestinationNumber), arg0) +} + +// DeleteVerifiedDestinationNumberRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteVerifiedDestinationNumberRequest(arg0 *pinpointsmsvoicev2.DeleteVerifiedDestinationNumberInput) (*request.Request, *pinpointsmsvoicev2.DeleteVerifiedDestinationNumberOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteVerifiedDestinationNumberRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DeleteVerifiedDestinationNumberOutput) + return ret0, ret1 +} + +// DeleteVerifiedDestinationNumberRequest indicates an expected call of DeleteVerifiedDestinationNumberRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteVerifiedDestinationNumberRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVerifiedDestinationNumberRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteVerifiedDestinationNumberRequest), arg0) +} + +// DeleteVerifiedDestinationNumberWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteVerifiedDestinationNumberWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DeleteVerifiedDestinationNumberInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DeleteVerifiedDestinationNumberOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteVerifiedDestinationNumberWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DeleteVerifiedDestinationNumberOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteVerifiedDestinationNumberWithContext indicates an expected call of DeleteVerifiedDestinationNumberWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteVerifiedDestinationNumberWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVerifiedDestinationNumberWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteVerifiedDestinationNumberWithContext), varargs...) +} + +// DeleteVoiceMessageSpendLimitOverride mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteVoiceMessageSpendLimitOverride(arg0 *pinpointsmsvoicev2.DeleteVoiceMessageSpendLimitOverrideInput) (*pinpointsmsvoicev2.DeleteVoiceMessageSpendLimitOverrideOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteVoiceMessageSpendLimitOverride", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DeleteVoiceMessageSpendLimitOverrideOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteVoiceMessageSpendLimitOverride indicates an expected call of DeleteVoiceMessageSpendLimitOverride. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteVoiceMessageSpendLimitOverride(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVoiceMessageSpendLimitOverride", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteVoiceMessageSpendLimitOverride), arg0) +} + +// DeleteVoiceMessageSpendLimitOverrideRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteVoiceMessageSpendLimitOverrideRequest(arg0 *pinpointsmsvoicev2.DeleteVoiceMessageSpendLimitOverrideInput) (*request.Request, *pinpointsmsvoicev2.DeleteVoiceMessageSpendLimitOverrideOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteVoiceMessageSpendLimitOverrideRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DeleteVoiceMessageSpendLimitOverrideOutput) + return ret0, ret1 +} + +// DeleteVoiceMessageSpendLimitOverrideRequest indicates an expected call of DeleteVoiceMessageSpendLimitOverrideRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteVoiceMessageSpendLimitOverrideRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVoiceMessageSpendLimitOverrideRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteVoiceMessageSpendLimitOverrideRequest), arg0) +} + +// DeleteVoiceMessageSpendLimitOverrideWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DeleteVoiceMessageSpendLimitOverrideWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DeleteVoiceMessageSpendLimitOverrideInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DeleteVoiceMessageSpendLimitOverrideOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteVoiceMessageSpendLimitOverrideWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DeleteVoiceMessageSpendLimitOverrideOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteVoiceMessageSpendLimitOverrideWithContext indicates an expected call of DeleteVoiceMessageSpendLimitOverrideWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DeleteVoiceMessageSpendLimitOverrideWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVoiceMessageSpendLimitOverrideWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DeleteVoiceMessageSpendLimitOverrideWithContext), varargs...) +} + +// DescribeAccountAttributes mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeAccountAttributes(arg0 *pinpointsmsvoicev2.DescribeAccountAttributesInput) (*pinpointsmsvoicev2.DescribeAccountAttributesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAccountAttributes", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribeAccountAttributesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAccountAttributes indicates an expected call of DescribeAccountAttributes. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeAccountAttributes(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAccountAttributes", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeAccountAttributes), arg0) +} + +// DescribeAccountAttributesPages mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeAccountAttributesPages(arg0 *pinpointsmsvoicev2.DescribeAccountAttributesInput, arg1 func(*pinpointsmsvoicev2.DescribeAccountAttributesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAccountAttributesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeAccountAttributesPages indicates an expected call of DescribeAccountAttributesPages. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeAccountAttributesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAccountAttributesPages", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeAccountAttributesPages), arg0, arg1) +} + +// DescribeAccountAttributesPagesWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeAccountAttributesPagesWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribeAccountAttributesInput, arg2 func(*pinpointsmsvoicev2.DescribeAccountAttributesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeAccountAttributesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeAccountAttributesPagesWithContext indicates an expected call of DescribeAccountAttributesPagesWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeAccountAttributesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAccountAttributesPagesWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeAccountAttributesPagesWithContext), varargs...) +} + +// DescribeAccountAttributesRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeAccountAttributesRequest(arg0 *pinpointsmsvoicev2.DescribeAccountAttributesInput) (*request.Request, *pinpointsmsvoicev2.DescribeAccountAttributesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAccountAttributesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DescribeAccountAttributesOutput) + return ret0, ret1 +} + +// DescribeAccountAttributesRequest indicates an expected call of DescribeAccountAttributesRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeAccountAttributesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAccountAttributesRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeAccountAttributesRequest), arg0) +} + +// DescribeAccountAttributesWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeAccountAttributesWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribeAccountAttributesInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DescribeAccountAttributesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeAccountAttributesWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribeAccountAttributesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAccountAttributesWithContext indicates an expected call of DescribeAccountAttributesWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeAccountAttributesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAccountAttributesWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeAccountAttributesWithContext), varargs...) +} + +// DescribeAccountLimits mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeAccountLimits(arg0 *pinpointsmsvoicev2.DescribeAccountLimitsInput) (*pinpointsmsvoicev2.DescribeAccountLimitsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAccountLimits", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribeAccountLimitsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAccountLimits indicates an expected call of DescribeAccountLimits. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeAccountLimits(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAccountLimits", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeAccountLimits), arg0) +} + +// DescribeAccountLimitsPages mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeAccountLimitsPages(arg0 *pinpointsmsvoicev2.DescribeAccountLimitsInput, arg1 func(*pinpointsmsvoicev2.DescribeAccountLimitsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAccountLimitsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeAccountLimitsPages indicates an expected call of DescribeAccountLimitsPages. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeAccountLimitsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAccountLimitsPages", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeAccountLimitsPages), arg0, arg1) +} + +// DescribeAccountLimitsPagesWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeAccountLimitsPagesWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribeAccountLimitsInput, arg2 func(*pinpointsmsvoicev2.DescribeAccountLimitsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeAccountLimitsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeAccountLimitsPagesWithContext indicates an expected call of DescribeAccountLimitsPagesWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeAccountLimitsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAccountLimitsPagesWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeAccountLimitsPagesWithContext), varargs...) +} + +// DescribeAccountLimitsRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeAccountLimitsRequest(arg0 *pinpointsmsvoicev2.DescribeAccountLimitsInput) (*request.Request, *pinpointsmsvoicev2.DescribeAccountLimitsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAccountLimitsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DescribeAccountLimitsOutput) + return ret0, ret1 +} + +// DescribeAccountLimitsRequest indicates an expected call of DescribeAccountLimitsRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeAccountLimitsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAccountLimitsRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeAccountLimitsRequest), arg0) +} + +// DescribeAccountLimitsWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeAccountLimitsWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribeAccountLimitsInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DescribeAccountLimitsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeAccountLimitsWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribeAccountLimitsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAccountLimitsWithContext indicates an expected call of DescribeAccountLimitsWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeAccountLimitsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAccountLimitsWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeAccountLimitsWithContext), varargs...) +} + +// DescribeConfigurationSets mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeConfigurationSets(arg0 *pinpointsmsvoicev2.DescribeConfigurationSetsInput) (*pinpointsmsvoicev2.DescribeConfigurationSetsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeConfigurationSets", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribeConfigurationSetsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeConfigurationSets indicates an expected call of DescribeConfigurationSets. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeConfigurationSets(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeConfigurationSets", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeConfigurationSets), arg0) +} + +// DescribeConfigurationSetsPages mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeConfigurationSetsPages(arg0 *pinpointsmsvoicev2.DescribeConfigurationSetsInput, arg1 func(*pinpointsmsvoicev2.DescribeConfigurationSetsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeConfigurationSetsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeConfigurationSetsPages indicates an expected call of DescribeConfigurationSetsPages. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeConfigurationSetsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeConfigurationSetsPages", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeConfigurationSetsPages), arg0, arg1) +} + +// DescribeConfigurationSetsPagesWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeConfigurationSetsPagesWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribeConfigurationSetsInput, arg2 func(*pinpointsmsvoicev2.DescribeConfigurationSetsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeConfigurationSetsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeConfigurationSetsPagesWithContext indicates an expected call of DescribeConfigurationSetsPagesWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeConfigurationSetsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeConfigurationSetsPagesWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeConfigurationSetsPagesWithContext), varargs...) +} + +// DescribeConfigurationSetsRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeConfigurationSetsRequest(arg0 *pinpointsmsvoicev2.DescribeConfigurationSetsInput) (*request.Request, *pinpointsmsvoicev2.DescribeConfigurationSetsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeConfigurationSetsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DescribeConfigurationSetsOutput) + return ret0, ret1 +} + +// DescribeConfigurationSetsRequest indicates an expected call of DescribeConfigurationSetsRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeConfigurationSetsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeConfigurationSetsRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeConfigurationSetsRequest), arg0) +} + +// DescribeConfigurationSetsWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeConfigurationSetsWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribeConfigurationSetsInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DescribeConfigurationSetsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeConfigurationSetsWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribeConfigurationSetsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeConfigurationSetsWithContext indicates an expected call of DescribeConfigurationSetsWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeConfigurationSetsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeConfigurationSetsWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeConfigurationSetsWithContext), varargs...) +} + +// DescribeKeywords mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeKeywords(arg0 *pinpointsmsvoicev2.DescribeKeywordsInput) (*pinpointsmsvoicev2.DescribeKeywordsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeKeywords", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribeKeywordsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeKeywords indicates an expected call of DescribeKeywords. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeKeywords(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeKeywords", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeKeywords), arg0) +} + +// DescribeKeywordsPages mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeKeywordsPages(arg0 *pinpointsmsvoicev2.DescribeKeywordsInput, arg1 func(*pinpointsmsvoicev2.DescribeKeywordsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeKeywordsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeKeywordsPages indicates an expected call of DescribeKeywordsPages. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeKeywordsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeKeywordsPages", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeKeywordsPages), arg0, arg1) +} + +// DescribeKeywordsPagesWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeKeywordsPagesWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribeKeywordsInput, arg2 func(*pinpointsmsvoicev2.DescribeKeywordsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeKeywordsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeKeywordsPagesWithContext indicates an expected call of DescribeKeywordsPagesWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeKeywordsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeKeywordsPagesWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeKeywordsPagesWithContext), varargs...) +} + +// DescribeKeywordsRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeKeywordsRequest(arg0 *pinpointsmsvoicev2.DescribeKeywordsInput) (*request.Request, *pinpointsmsvoicev2.DescribeKeywordsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeKeywordsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DescribeKeywordsOutput) + return ret0, ret1 +} + +// DescribeKeywordsRequest indicates an expected call of DescribeKeywordsRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeKeywordsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeKeywordsRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeKeywordsRequest), arg0) +} + +// DescribeKeywordsWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeKeywordsWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribeKeywordsInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DescribeKeywordsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeKeywordsWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribeKeywordsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeKeywordsWithContext indicates an expected call of DescribeKeywordsWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeKeywordsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeKeywordsWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeKeywordsWithContext), varargs...) +} + +// DescribeOptOutLists mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeOptOutLists(arg0 *pinpointsmsvoicev2.DescribeOptOutListsInput) (*pinpointsmsvoicev2.DescribeOptOutListsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeOptOutLists", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribeOptOutListsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeOptOutLists indicates an expected call of DescribeOptOutLists. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeOptOutLists(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeOptOutLists", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeOptOutLists), arg0) +} + +// DescribeOptOutListsPages mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeOptOutListsPages(arg0 *pinpointsmsvoicev2.DescribeOptOutListsInput, arg1 func(*pinpointsmsvoicev2.DescribeOptOutListsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeOptOutListsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeOptOutListsPages indicates an expected call of DescribeOptOutListsPages. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeOptOutListsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeOptOutListsPages", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeOptOutListsPages), arg0, arg1) +} + +// DescribeOptOutListsPagesWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeOptOutListsPagesWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribeOptOutListsInput, arg2 func(*pinpointsmsvoicev2.DescribeOptOutListsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeOptOutListsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeOptOutListsPagesWithContext indicates an expected call of DescribeOptOutListsPagesWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeOptOutListsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeOptOutListsPagesWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeOptOutListsPagesWithContext), varargs...) +} + +// DescribeOptOutListsRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeOptOutListsRequest(arg0 *pinpointsmsvoicev2.DescribeOptOutListsInput) (*request.Request, *pinpointsmsvoicev2.DescribeOptOutListsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeOptOutListsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DescribeOptOutListsOutput) + return ret0, ret1 +} + +// DescribeOptOutListsRequest indicates an expected call of DescribeOptOutListsRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeOptOutListsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeOptOutListsRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeOptOutListsRequest), arg0) +} + +// DescribeOptOutListsWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeOptOutListsWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribeOptOutListsInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DescribeOptOutListsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeOptOutListsWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribeOptOutListsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeOptOutListsWithContext indicates an expected call of DescribeOptOutListsWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeOptOutListsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeOptOutListsWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeOptOutListsWithContext), varargs...) +} + +// DescribeOptedOutNumbers mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeOptedOutNumbers(arg0 *pinpointsmsvoicev2.DescribeOptedOutNumbersInput) (*pinpointsmsvoicev2.DescribeOptedOutNumbersOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeOptedOutNumbers", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribeOptedOutNumbersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeOptedOutNumbers indicates an expected call of DescribeOptedOutNumbers. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeOptedOutNumbers(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeOptedOutNumbers", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeOptedOutNumbers), arg0) +} + +// DescribeOptedOutNumbersPages mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeOptedOutNumbersPages(arg0 *pinpointsmsvoicev2.DescribeOptedOutNumbersInput, arg1 func(*pinpointsmsvoicev2.DescribeOptedOutNumbersOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeOptedOutNumbersPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeOptedOutNumbersPages indicates an expected call of DescribeOptedOutNumbersPages. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeOptedOutNumbersPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeOptedOutNumbersPages", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeOptedOutNumbersPages), arg0, arg1) +} + +// DescribeOptedOutNumbersPagesWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeOptedOutNumbersPagesWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribeOptedOutNumbersInput, arg2 func(*pinpointsmsvoicev2.DescribeOptedOutNumbersOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeOptedOutNumbersPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeOptedOutNumbersPagesWithContext indicates an expected call of DescribeOptedOutNumbersPagesWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeOptedOutNumbersPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeOptedOutNumbersPagesWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeOptedOutNumbersPagesWithContext), varargs...) +} + +// DescribeOptedOutNumbersRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeOptedOutNumbersRequest(arg0 *pinpointsmsvoicev2.DescribeOptedOutNumbersInput) (*request.Request, *pinpointsmsvoicev2.DescribeOptedOutNumbersOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeOptedOutNumbersRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DescribeOptedOutNumbersOutput) + return ret0, ret1 +} + +// DescribeOptedOutNumbersRequest indicates an expected call of DescribeOptedOutNumbersRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeOptedOutNumbersRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeOptedOutNumbersRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeOptedOutNumbersRequest), arg0) +} + +// DescribeOptedOutNumbersWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeOptedOutNumbersWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribeOptedOutNumbersInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DescribeOptedOutNumbersOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeOptedOutNumbersWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribeOptedOutNumbersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeOptedOutNumbersWithContext indicates an expected call of DescribeOptedOutNumbersWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeOptedOutNumbersWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeOptedOutNumbersWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeOptedOutNumbersWithContext), varargs...) +} + +// DescribePhoneNumbers mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribePhoneNumbers(arg0 *pinpointsmsvoicev2.DescribePhoneNumbersInput) (*pinpointsmsvoicev2.DescribePhoneNumbersOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribePhoneNumbers", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribePhoneNumbersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribePhoneNumbers indicates an expected call of DescribePhoneNumbers. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribePhoneNumbers(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribePhoneNumbers", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribePhoneNumbers), arg0) +} + +// DescribePhoneNumbersPages mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribePhoneNumbersPages(arg0 *pinpointsmsvoicev2.DescribePhoneNumbersInput, arg1 func(*pinpointsmsvoicev2.DescribePhoneNumbersOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribePhoneNumbersPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribePhoneNumbersPages indicates an expected call of DescribePhoneNumbersPages. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribePhoneNumbersPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribePhoneNumbersPages", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribePhoneNumbersPages), arg0, arg1) +} + +// DescribePhoneNumbersPagesWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribePhoneNumbersPagesWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribePhoneNumbersInput, arg2 func(*pinpointsmsvoicev2.DescribePhoneNumbersOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribePhoneNumbersPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribePhoneNumbersPagesWithContext indicates an expected call of DescribePhoneNumbersPagesWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribePhoneNumbersPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribePhoneNumbersPagesWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribePhoneNumbersPagesWithContext), varargs...) +} + +// DescribePhoneNumbersRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribePhoneNumbersRequest(arg0 *pinpointsmsvoicev2.DescribePhoneNumbersInput) (*request.Request, *pinpointsmsvoicev2.DescribePhoneNumbersOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribePhoneNumbersRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DescribePhoneNumbersOutput) + return ret0, ret1 +} + +// DescribePhoneNumbersRequest indicates an expected call of DescribePhoneNumbersRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribePhoneNumbersRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribePhoneNumbersRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribePhoneNumbersRequest), arg0) +} + +// DescribePhoneNumbersWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribePhoneNumbersWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribePhoneNumbersInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DescribePhoneNumbersOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribePhoneNumbersWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribePhoneNumbersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribePhoneNumbersWithContext indicates an expected call of DescribePhoneNumbersWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribePhoneNumbersWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribePhoneNumbersWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribePhoneNumbersWithContext), varargs...) +} + +// DescribePools mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribePools(arg0 *pinpointsmsvoicev2.DescribePoolsInput) (*pinpointsmsvoicev2.DescribePoolsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribePools", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribePoolsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribePools indicates an expected call of DescribePools. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribePools(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribePools", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribePools), arg0) +} + +// DescribePoolsPages mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribePoolsPages(arg0 *pinpointsmsvoicev2.DescribePoolsInput, arg1 func(*pinpointsmsvoicev2.DescribePoolsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribePoolsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribePoolsPages indicates an expected call of DescribePoolsPages. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribePoolsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribePoolsPages", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribePoolsPages), arg0, arg1) +} + +// DescribePoolsPagesWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribePoolsPagesWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribePoolsInput, arg2 func(*pinpointsmsvoicev2.DescribePoolsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribePoolsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribePoolsPagesWithContext indicates an expected call of DescribePoolsPagesWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribePoolsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribePoolsPagesWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribePoolsPagesWithContext), varargs...) +} + +// DescribePoolsRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribePoolsRequest(arg0 *pinpointsmsvoicev2.DescribePoolsInput) (*request.Request, *pinpointsmsvoicev2.DescribePoolsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribePoolsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DescribePoolsOutput) + return ret0, ret1 +} + +// DescribePoolsRequest indicates an expected call of DescribePoolsRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribePoolsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribePoolsRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribePoolsRequest), arg0) +} + +// DescribePoolsWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribePoolsWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribePoolsInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DescribePoolsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribePoolsWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribePoolsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribePoolsWithContext indicates an expected call of DescribePoolsWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribePoolsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribePoolsWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribePoolsWithContext), varargs...) +} + +// DescribeProtectConfigurations mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeProtectConfigurations(arg0 *pinpointsmsvoicev2.DescribeProtectConfigurationsInput) (*pinpointsmsvoicev2.DescribeProtectConfigurationsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeProtectConfigurations", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribeProtectConfigurationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeProtectConfigurations indicates an expected call of DescribeProtectConfigurations. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeProtectConfigurations(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeProtectConfigurations", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeProtectConfigurations), arg0) +} + +// DescribeProtectConfigurationsPages mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeProtectConfigurationsPages(arg0 *pinpointsmsvoicev2.DescribeProtectConfigurationsInput, arg1 func(*pinpointsmsvoicev2.DescribeProtectConfigurationsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeProtectConfigurationsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeProtectConfigurationsPages indicates an expected call of DescribeProtectConfigurationsPages. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeProtectConfigurationsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeProtectConfigurationsPages", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeProtectConfigurationsPages), arg0, arg1) +} + +// DescribeProtectConfigurationsPagesWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeProtectConfigurationsPagesWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribeProtectConfigurationsInput, arg2 func(*pinpointsmsvoicev2.DescribeProtectConfigurationsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeProtectConfigurationsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeProtectConfigurationsPagesWithContext indicates an expected call of DescribeProtectConfigurationsPagesWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeProtectConfigurationsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeProtectConfigurationsPagesWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeProtectConfigurationsPagesWithContext), varargs...) +} + +// DescribeProtectConfigurationsRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeProtectConfigurationsRequest(arg0 *pinpointsmsvoicev2.DescribeProtectConfigurationsInput) (*request.Request, *pinpointsmsvoicev2.DescribeProtectConfigurationsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeProtectConfigurationsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DescribeProtectConfigurationsOutput) + return ret0, ret1 +} + +// DescribeProtectConfigurationsRequest indicates an expected call of DescribeProtectConfigurationsRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeProtectConfigurationsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeProtectConfigurationsRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeProtectConfigurationsRequest), arg0) +} + +// DescribeProtectConfigurationsWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeProtectConfigurationsWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribeProtectConfigurationsInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DescribeProtectConfigurationsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeProtectConfigurationsWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribeProtectConfigurationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeProtectConfigurationsWithContext indicates an expected call of DescribeProtectConfigurationsWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeProtectConfigurationsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeProtectConfigurationsWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeProtectConfigurationsWithContext), varargs...) +} + +// DescribeRegistrationAttachments mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeRegistrationAttachments(arg0 *pinpointsmsvoicev2.DescribeRegistrationAttachmentsInput) (*pinpointsmsvoicev2.DescribeRegistrationAttachmentsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeRegistrationAttachments", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribeRegistrationAttachmentsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeRegistrationAttachments indicates an expected call of DescribeRegistrationAttachments. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeRegistrationAttachments(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRegistrationAttachments", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeRegistrationAttachments), arg0) +} + +// DescribeRegistrationAttachmentsPages mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeRegistrationAttachmentsPages(arg0 *pinpointsmsvoicev2.DescribeRegistrationAttachmentsInput, arg1 func(*pinpointsmsvoicev2.DescribeRegistrationAttachmentsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeRegistrationAttachmentsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeRegistrationAttachmentsPages indicates an expected call of DescribeRegistrationAttachmentsPages. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeRegistrationAttachmentsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRegistrationAttachmentsPages", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeRegistrationAttachmentsPages), arg0, arg1) +} + +// DescribeRegistrationAttachmentsPagesWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeRegistrationAttachmentsPagesWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribeRegistrationAttachmentsInput, arg2 func(*pinpointsmsvoicev2.DescribeRegistrationAttachmentsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeRegistrationAttachmentsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeRegistrationAttachmentsPagesWithContext indicates an expected call of DescribeRegistrationAttachmentsPagesWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeRegistrationAttachmentsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRegistrationAttachmentsPagesWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeRegistrationAttachmentsPagesWithContext), varargs...) +} + +// DescribeRegistrationAttachmentsRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeRegistrationAttachmentsRequest(arg0 *pinpointsmsvoicev2.DescribeRegistrationAttachmentsInput) (*request.Request, *pinpointsmsvoicev2.DescribeRegistrationAttachmentsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeRegistrationAttachmentsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DescribeRegistrationAttachmentsOutput) + return ret0, ret1 +} + +// DescribeRegistrationAttachmentsRequest indicates an expected call of DescribeRegistrationAttachmentsRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeRegistrationAttachmentsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRegistrationAttachmentsRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeRegistrationAttachmentsRequest), arg0) +} + +// DescribeRegistrationAttachmentsWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeRegistrationAttachmentsWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribeRegistrationAttachmentsInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DescribeRegistrationAttachmentsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeRegistrationAttachmentsWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribeRegistrationAttachmentsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeRegistrationAttachmentsWithContext indicates an expected call of DescribeRegistrationAttachmentsWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeRegistrationAttachmentsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRegistrationAttachmentsWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeRegistrationAttachmentsWithContext), varargs...) +} + +// DescribeRegistrationFieldDefinitions mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeRegistrationFieldDefinitions(arg0 *pinpointsmsvoicev2.DescribeRegistrationFieldDefinitionsInput) (*pinpointsmsvoicev2.DescribeRegistrationFieldDefinitionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeRegistrationFieldDefinitions", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribeRegistrationFieldDefinitionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeRegistrationFieldDefinitions indicates an expected call of DescribeRegistrationFieldDefinitions. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeRegistrationFieldDefinitions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRegistrationFieldDefinitions", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeRegistrationFieldDefinitions), arg0) +} + +// DescribeRegistrationFieldDefinitionsPages mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeRegistrationFieldDefinitionsPages(arg0 *pinpointsmsvoicev2.DescribeRegistrationFieldDefinitionsInput, arg1 func(*pinpointsmsvoicev2.DescribeRegistrationFieldDefinitionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeRegistrationFieldDefinitionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeRegistrationFieldDefinitionsPages indicates an expected call of DescribeRegistrationFieldDefinitionsPages. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeRegistrationFieldDefinitionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRegistrationFieldDefinitionsPages", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeRegistrationFieldDefinitionsPages), arg0, arg1) +} + +// DescribeRegistrationFieldDefinitionsPagesWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeRegistrationFieldDefinitionsPagesWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribeRegistrationFieldDefinitionsInput, arg2 func(*pinpointsmsvoicev2.DescribeRegistrationFieldDefinitionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeRegistrationFieldDefinitionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeRegistrationFieldDefinitionsPagesWithContext indicates an expected call of DescribeRegistrationFieldDefinitionsPagesWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeRegistrationFieldDefinitionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRegistrationFieldDefinitionsPagesWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeRegistrationFieldDefinitionsPagesWithContext), varargs...) +} + +// DescribeRegistrationFieldDefinitionsRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeRegistrationFieldDefinitionsRequest(arg0 *pinpointsmsvoicev2.DescribeRegistrationFieldDefinitionsInput) (*request.Request, *pinpointsmsvoicev2.DescribeRegistrationFieldDefinitionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeRegistrationFieldDefinitionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DescribeRegistrationFieldDefinitionsOutput) + return ret0, ret1 +} + +// DescribeRegistrationFieldDefinitionsRequest indicates an expected call of DescribeRegistrationFieldDefinitionsRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeRegistrationFieldDefinitionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRegistrationFieldDefinitionsRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeRegistrationFieldDefinitionsRequest), arg0) +} + +// DescribeRegistrationFieldDefinitionsWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeRegistrationFieldDefinitionsWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribeRegistrationFieldDefinitionsInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DescribeRegistrationFieldDefinitionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeRegistrationFieldDefinitionsWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribeRegistrationFieldDefinitionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeRegistrationFieldDefinitionsWithContext indicates an expected call of DescribeRegistrationFieldDefinitionsWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeRegistrationFieldDefinitionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRegistrationFieldDefinitionsWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeRegistrationFieldDefinitionsWithContext), varargs...) +} + +// DescribeRegistrationFieldValues mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeRegistrationFieldValues(arg0 *pinpointsmsvoicev2.DescribeRegistrationFieldValuesInput) (*pinpointsmsvoicev2.DescribeRegistrationFieldValuesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeRegistrationFieldValues", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribeRegistrationFieldValuesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeRegistrationFieldValues indicates an expected call of DescribeRegistrationFieldValues. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeRegistrationFieldValues(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRegistrationFieldValues", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeRegistrationFieldValues), arg0) +} + +// DescribeRegistrationFieldValuesPages mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeRegistrationFieldValuesPages(arg0 *pinpointsmsvoicev2.DescribeRegistrationFieldValuesInput, arg1 func(*pinpointsmsvoicev2.DescribeRegistrationFieldValuesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeRegistrationFieldValuesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeRegistrationFieldValuesPages indicates an expected call of DescribeRegistrationFieldValuesPages. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeRegistrationFieldValuesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRegistrationFieldValuesPages", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeRegistrationFieldValuesPages), arg0, arg1) +} + +// DescribeRegistrationFieldValuesPagesWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeRegistrationFieldValuesPagesWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribeRegistrationFieldValuesInput, arg2 func(*pinpointsmsvoicev2.DescribeRegistrationFieldValuesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeRegistrationFieldValuesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeRegistrationFieldValuesPagesWithContext indicates an expected call of DescribeRegistrationFieldValuesPagesWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeRegistrationFieldValuesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRegistrationFieldValuesPagesWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeRegistrationFieldValuesPagesWithContext), varargs...) +} + +// DescribeRegistrationFieldValuesRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeRegistrationFieldValuesRequest(arg0 *pinpointsmsvoicev2.DescribeRegistrationFieldValuesInput) (*request.Request, *pinpointsmsvoicev2.DescribeRegistrationFieldValuesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeRegistrationFieldValuesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DescribeRegistrationFieldValuesOutput) + return ret0, ret1 +} + +// DescribeRegistrationFieldValuesRequest indicates an expected call of DescribeRegistrationFieldValuesRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeRegistrationFieldValuesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRegistrationFieldValuesRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeRegistrationFieldValuesRequest), arg0) +} + +// DescribeRegistrationFieldValuesWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeRegistrationFieldValuesWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribeRegistrationFieldValuesInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DescribeRegistrationFieldValuesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeRegistrationFieldValuesWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribeRegistrationFieldValuesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeRegistrationFieldValuesWithContext indicates an expected call of DescribeRegistrationFieldValuesWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeRegistrationFieldValuesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRegistrationFieldValuesWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeRegistrationFieldValuesWithContext), varargs...) +} + +// DescribeRegistrationSectionDefinitions mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeRegistrationSectionDefinitions(arg0 *pinpointsmsvoicev2.DescribeRegistrationSectionDefinitionsInput) (*pinpointsmsvoicev2.DescribeRegistrationSectionDefinitionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeRegistrationSectionDefinitions", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribeRegistrationSectionDefinitionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeRegistrationSectionDefinitions indicates an expected call of DescribeRegistrationSectionDefinitions. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeRegistrationSectionDefinitions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRegistrationSectionDefinitions", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeRegistrationSectionDefinitions), arg0) +} + +// DescribeRegistrationSectionDefinitionsPages mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeRegistrationSectionDefinitionsPages(arg0 *pinpointsmsvoicev2.DescribeRegistrationSectionDefinitionsInput, arg1 func(*pinpointsmsvoicev2.DescribeRegistrationSectionDefinitionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeRegistrationSectionDefinitionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeRegistrationSectionDefinitionsPages indicates an expected call of DescribeRegistrationSectionDefinitionsPages. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeRegistrationSectionDefinitionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRegistrationSectionDefinitionsPages", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeRegistrationSectionDefinitionsPages), arg0, arg1) +} + +// DescribeRegistrationSectionDefinitionsPagesWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeRegistrationSectionDefinitionsPagesWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribeRegistrationSectionDefinitionsInput, arg2 func(*pinpointsmsvoicev2.DescribeRegistrationSectionDefinitionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeRegistrationSectionDefinitionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeRegistrationSectionDefinitionsPagesWithContext indicates an expected call of DescribeRegistrationSectionDefinitionsPagesWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeRegistrationSectionDefinitionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRegistrationSectionDefinitionsPagesWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeRegistrationSectionDefinitionsPagesWithContext), varargs...) +} + +// DescribeRegistrationSectionDefinitionsRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeRegistrationSectionDefinitionsRequest(arg0 *pinpointsmsvoicev2.DescribeRegistrationSectionDefinitionsInput) (*request.Request, *pinpointsmsvoicev2.DescribeRegistrationSectionDefinitionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeRegistrationSectionDefinitionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DescribeRegistrationSectionDefinitionsOutput) + return ret0, ret1 +} + +// DescribeRegistrationSectionDefinitionsRequest indicates an expected call of DescribeRegistrationSectionDefinitionsRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeRegistrationSectionDefinitionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRegistrationSectionDefinitionsRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeRegistrationSectionDefinitionsRequest), arg0) +} + +// DescribeRegistrationSectionDefinitionsWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeRegistrationSectionDefinitionsWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribeRegistrationSectionDefinitionsInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DescribeRegistrationSectionDefinitionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeRegistrationSectionDefinitionsWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribeRegistrationSectionDefinitionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeRegistrationSectionDefinitionsWithContext indicates an expected call of DescribeRegistrationSectionDefinitionsWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeRegistrationSectionDefinitionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRegistrationSectionDefinitionsWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeRegistrationSectionDefinitionsWithContext), varargs...) +} + +// DescribeRegistrationTypeDefinitions mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeRegistrationTypeDefinitions(arg0 *pinpointsmsvoicev2.DescribeRegistrationTypeDefinitionsInput) (*pinpointsmsvoicev2.DescribeRegistrationTypeDefinitionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeRegistrationTypeDefinitions", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribeRegistrationTypeDefinitionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeRegistrationTypeDefinitions indicates an expected call of DescribeRegistrationTypeDefinitions. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeRegistrationTypeDefinitions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRegistrationTypeDefinitions", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeRegistrationTypeDefinitions), arg0) +} + +// DescribeRegistrationTypeDefinitionsPages mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeRegistrationTypeDefinitionsPages(arg0 *pinpointsmsvoicev2.DescribeRegistrationTypeDefinitionsInput, arg1 func(*pinpointsmsvoicev2.DescribeRegistrationTypeDefinitionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeRegistrationTypeDefinitionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeRegistrationTypeDefinitionsPages indicates an expected call of DescribeRegistrationTypeDefinitionsPages. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeRegistrationTypeDefinitionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRegistrationTypeDefinitionsPages", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeRegistrationTypeDefinitionsPages), arg0, arg1) +} + +// DescribeRegistrationTypeDefinitionsPagesWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeRegistrationTypeDefinitionsPagesWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribeRegistrationTypeDefinitionsInput, arg2 func(*pinpointsmsvoicev2.DescribeRegistrationTypeDefinitionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeRegistrationTypeDefinitionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeRegistrationTypeDefinitionsPagesWithContext indicates an expected call of DescribeRegistrationTypeDefinitionsPagesWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeRegistrationTypeDefinitionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRegistrationTypeDefinitionsPagesWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeRegistrationTypeDefinitionsPagesWithContext), varargs...) +} + +// DescribeRegistrationTypeDefinitionsRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeRegistrationTypeDefinitionsRequest(arg0 *pinpointsmsvoicev2.DescribeRegistrationTypeDefinitionsInput) (*request.Request, *pinpointsmsvoicev2.DescribeRegistrationTypeDefinitionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeRegistrationTypeDefinitionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DescribeRegistrationTypeDefinitionsOutput) + return ret0, ret1 +} + +// DescribeRegistrationTypeDefinitionsRequest indicates an expected call of DescribeRegistrationTypeDefinitionsRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeRegistrationTypeDefinitionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRegistrationTypeDefinitionsRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeRegistrationTypeDefinitionsRequest), arg0) +} + +// DescribeRegistrationTypeDefinitionsWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeRegistrationTypeDefinitionsWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribeRegistrationTypeDefinitionsInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DescribeRegistrationTypeDefinitionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeRegistrationTypeDefinitionsWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribeRegistrationTypeDefinitionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeRegistrationTypeDefinitionsWithContext indicates an expected call of DescribeRegistrationTypeDefinitionsWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeRegistrationTypeDefinitionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRegistrationTypeDefinitionsWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeRegistrationTypeDefinitionsWithContext), varargs...) +} + +// DescribeRegistrationVersions mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeRegistrationVersions(arg0 *pinpointsmsvoicev2.DescribeRegistrationVersionsInput) (*pinpointsmsvoicev2.DescribeRegistrationVersionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeRegistrationVersions", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribeRegistrationVersionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeRegistrationVersions indicates an expected call of DescribeRegistrationVersions. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeRegistrationVersions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRegistrationVersions", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeRegistrationVersions), arg0) +} + +// DescribeRegistrationVersionsPages mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeRegistrationVersionsPages(arg0 *pinpointsmsvoicev2.DescribeRegistrationVersionsInput, arg1 func(*pinpointsmsvoicev2.DescribeRegistrationVersionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeRegistrationVersionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeRegistrationVersionsPages indicates an expected call of DescribeRegistrationVersionsPages. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeRegistrationVersionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRegistrationVersionsPages", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeRegistrationVersionsPages), arg0, arg1) +} + +// DescribeRegistrationVersionsPagesWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeRegistrationVersionsPagesWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribeRegistrationVersionsInput, arg2 func(*pinpointsmsvoicev2.DescribeRegistrationVersionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeRegistrationVersionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeRegistrationVersionsPagesWithContext indicates an expected call of DescribeRegistrationVersionsPagesWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeRegistrationVersionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRegistrationVersionsPagesWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeRegistrationVersionsPagesWithContext), varargs...) +} + +// DescribeRegistrationVersionsRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeRegistrationVersionsRequest(arg0 *pinpointsmsvoicev2.DescribeRegistrationVersionsInput) (*request.Request, *pinpointsmsvoicev2.DescribeRegistrationVersionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeRegistrationVersionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DescribeRegistrationVersionsOutput) + return ret0, ret1 +} + +// DescribeRegistrationVersionsRequest indicates an expected call of DescribeRegistrationVersionsRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeRegistrationVersionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRegistrationVersionsRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeRegistrationVersionsRequest), arg0) +} + +// DescribeRegistrationVersionsWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeRegistrationVersionsWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribeRegistrationVersionsInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DescribeRegistrationVersionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeRegistrationVersionsWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribeRegistrationVersionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeRegistrationVersionsWithContext indicates an expected call of DescribeRegistrationVersionsWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeRegistrationVersionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRegistrationVersionsWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeRegistrationVersionsWithContext), varargs...) +} + +// DescribeRegistrations mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeRegistrations(arg0 *pinpointsmsvoicev2.DescribeRegistrationsInput) (*pinpointsmsvoicev2.DescribeRegistrationsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeRegistrations", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribeRegistrationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeRegistrations indicates an expected call of DescribeRegistrations. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeRegistrations(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRegistrations", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeRegistrations), arg0) +} + +// DescribeRegistrationsPages mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeRegistrationsPages(arg0 *pinpointsmsvoicev2.DescribeRegistrationsInput, arg1 func(*pinpointsmsvoicev2.DescribeRegistrationsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeRegistrationsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeRegistrationsPages indicates an expected call of DescribeRegistrationsPages. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeRegistrationsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRegistrationsPages", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeRegistrationsPages), arg0, arg1) +} + +// DescribeRegistrationsPagesWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeRegistrationsPagesWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribeRegistrationsInput, arg2 func(*pinpointsmsvoicev2.DescribeRegistrationsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeRegistrationsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeRegistrationsPagesWithContext indicates an expected call of DescribeRegistrationsPagesWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeRegistrationsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRegistrationsPagesWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeRegistrationsPagesWithContext), varargs...) +} + +// DescribeRegistrationsRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeRegistrationsRequest(arg0 *pinpointsmsvoicev2.DescribeRegistrationsInput) (*request.Request, *pinpointsmsvoicev2.DescribeRegistrationsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeRegistrationsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DescribeRegistrationsOutput) + return ret0, ret1 +} + +// DescribeRegistrationsRequest indicates an expected call of DescribeRegistrationsRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeRegistrationsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRegistrationsRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeRegistrationsRequest), arg0) +} + +// DescribeRegistrationsWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeRegistrationsWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribeRegistrationsInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DescribeRegistrationsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeRegistrationsWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribeRegistrationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeRegistrationsWithContext indicates an expected call of DescribeRegistrationsWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeRegistrationsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRegistrationsWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeRegistrationsWithContext), varargs...) +} + +// DescribeSenderIds mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeSenderIds(arg0 *pinpointsmsvoicev2.DescribeSenderIdsInput) (*pinpointsmsvoicev2.DescribeSenderIdsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeSenderIds", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribeSenderIdsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeSenderIds indicates an expected call of DescribeSenderIds. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeSenderIds(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeSenderIds", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeSenderIds), arg0) +} + +// DescribeSenderIdsPages mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeSenderIdsPages(arg0 *pinpointsmsvoicev2.DescribeSenderIdsInput, arg1 func(*pinpointsmsvoicev2.DescribeSenderIdsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeSenderIdsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeSenderIdsPages indicates an expected call of DescribeSenderIdsPages. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeSenderIdsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeSenderIdsPages", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeSenderIdsPages), arg0, arg1) +} + +// DescribeSenderIdsPagesWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeSenderIdsPagesWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribeSenderIdsInput, arg2 func(*pinpointsmsvoicev2.DescribeSenderIdsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeSenderIdsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeSenderIdsPagesWithContext indicates an expected call of DescribeSenderIdsPagesWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeSenderIdsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeSenderIdsPagesWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeSenderIdsPagesWithContext), varargs...) +} + +// DescribeSenderIdsRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeSenderIdsRequest(arg0 *pinpointsmsvoicev2.DescribeSenderIdsInput) (*request.Request, *pinpointsmsvoicev2.DescribeSenderIdsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeSenderIdsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DescribeSenderIdsOutput) + return ret0, ret1 +} + +// DescribeSenderIdsRequest indicates an expected call of DescribeSenderIdsRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeSenderIdsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeSenderIdsRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeSenderIdsRequest), arg0) +} + +// DescribeSenderIdsWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeSenderIdsWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribeSenderIdsInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DescribeSenderIdsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeSenderIdsWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribeSenderIdsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeSenderIdsWithContext indicates an expected call of DescribeSenderIdsWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeSenderIdsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeSenderIdsWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeSenderIdsWithContext), varargs...) +} + +// DescribeSpendLimits mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeSpendLimits(arg0 *pinpointsmsvoicev2.DescribeSpendLimitsInput) (*pinpointsmsvoicev2.DescribeSpendLimitsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeSpendLimits", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribeSpendLimitsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeSpendLimits indicates an expected call of DescribeSpendLimits. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeSpendLimits(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeSpendLimits", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeSpendLimits), arg0) +} + +// DescribeSpendLimitsPages mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeSpendLimitsPages(arg0 *pinpointsmsvoicev2.DescribeSpendLimitsInput, arg1 func(*pinpointsmsvoicev2.DescribeSpendLimitsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeSpendLimitsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeSpendLimitsPages indicates an expected call of DescribeSpendLimitsPages. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeSpendLimitsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeSpendLimitsPages", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeSpendLimitsPages), arg0, arg1) +} + +// DescribeSpendLimitsPagesWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeSpendLimitsPagesWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribeSpendLimitsInput, arg2 func(*pinpointsmsvoicev2.DescribeSpendLimitsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeSpendLimitsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeSpendLimitsPagesWithContext indicates an expected call of DescribeSpendLimitsPagesWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeSpendLimitsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeSpendLimitsPagesWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeSpendLimitsPagesWithContext), varargs...) +} + +// DescribeSpendLimitsRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeSpendLimitsRequest(arg0 *pinpointsmsvoicev2.DescribeSpendLimitsInput) (*request.Request, *pinpointsmsvoicev2.DescribeSpendLimitsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeSpendLimitsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DescribeSpendLimitsOutput) + return ret0, ret1 +} + +// DescribeSpendLimitsRequest indicates an expected call of DescribeSpendLimitsRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeSpendLimitsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeSpendLimitsRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeSpendLimitsRequest), arg0) +} + +// DescribeSpendLimitsWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeSpendLimitsWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribeSpendLimitsInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DescribeSpendLimitsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeSpendLimitsWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribeSpendLimitsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeSpendLimitsWithContext indicates an expected call of DescribeSpendLimitsWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeSpendLimitsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeSpendLimitsWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeSpendLimitsWithContext), varargs...) +} + +// DescribeVerifiedDestinationNumbers mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeVerifiedDestinationNumbers(arg0 *pinpointsmsvoicev2.DescribeVerifiedDestinationNumbersInput) (*pinpointsmsvoicev2.DescribeVerifiedDestinationNumbersOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeVerifiedDestinationNumbers", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribeVerifiedDestinationNumbersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeVerifiedDestinationNumbers indicates an expected call of DescribeVerifiedDestinationNumbers. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeVerifiedDestinationNumbers(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeVerifiedDestinationNumbers", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeVerifiedDestinationNumbers), arg0) +} + +// DescribeVerifiedDestinationNumbersPages mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeVerifiedDestinationNumbersPages(arg0 *pinpointsmsvoicev2.DescribeVerifiedDestinationNumbersInput, arg1 func(*pinpointsmsvoicev2.DescribeVerifiedDestinationNumbersOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeVerifiedDestinationNumbersPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeVerifiedDestinationNumbersPages indicates an expected call of DescribeVerifiedDestinationNumbersPages. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeVerifiedDestinationNumbersPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeVerifiedDestinationNumbersPages", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeVerifiedDestinationNumbersPages), arg0, arg1) +} + +// DescribeVerifiedDestinationNumbersPagesWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeVerifiedDestinationNumbersPagesWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribeVerifiedDestinationNumbersInput, arg2 func(*pinpointsmsvoicev2.DescribeVerifiedDestinationNumbersOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeVerifiedDestinationNumbersPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeVerifiedDestinationNumbersPagesWithContext indicates an expected call of DescribeVerifiedDestinationNumbersPagesWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeVerifiedDestinationNumbersPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeVerifiedDestinationNumbersPagesWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeVerifiedDestinationNumbersPagesWithContext), varargs...) +} + +// DescribeVerifiedDestinationNumbersRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeVerifiedDestinationNumbersRequest(arg0 *pinpointsmsvoicev2.DescribeVerifiedDestinationNumbersInput) (*request.Request, *pinpointsmsvoicev2.DescribeVerifiedDestinationNumbersOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeVerifiedDestinationNumbersRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DescribeVerifiedDestinationNumbersOutput) + return ret0, ret1 +} + +// DescribeVerifiedDestinationNumbersRequest indicates an expected call of DescribeVerifiedDestinationNumbersRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeVerifiedDestinationNumbersRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeVerifiedDestinationNumbersRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeVerifiedDestinationNumbersRequest), arg0) +} + +// DescribeVerifiedDestinationNumbersWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DescribeVerifiedDestinationNumbersWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DescribeVerifiedDestinationNumbersInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DescribeVerifiedDestinationNumbersOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeVerifiedDestinationNumbersWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DescribeVerifiedDestinationNumbersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeVerifiedDestinationNumbersWithContext indicates an expected call of DescribeVerifiedDestinationNumbersWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DescribeVerifiedDestinationNumbersWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeVerifiedDestinationNumbersWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DescribeVerifiedDestinationNumbersWithContext), varargs...) +} + +// DisassociateOriginationIdentity mocks base method. +func (m *MockPinpointSMSVoiceV2API) DisassociateOriginationIdentity(arg0 *pinpointsmsvoicev2.DisassociateOriginationIdentityInput) (*pinpointsmsvoicev2.DisassociateOriginationIdentityOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DisassociateOriginationIdentity", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DisassociateOriginationIdentityOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DisassociateOriginationIdentity indicates an expected call of DisassociateOriginationIdentity. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DisassociateOriginationIdentity(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisassociateOriginationIdentity", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DisassociateOriginationIdentity), arg0) +} + +// DisassociateOriginationIdentityRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DisassociateOriginationIdentityRequest(arg0 *pinpointsmsvoicev2.DisassociateOriginationIdentityInput) (*request.Request, *pinpointsmsvoicev2.DisassociateOriginationIdentityOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DisassociateOriginationIdentityRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DisassociateOriginationIdentityOutput) + return ret0, ret1 +} + +// DisassociateOriginationIdentityRequest indicates an expected call of DisassociateOriginationIdentityRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DisassociateOriginationIdentityRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisassociateOriginationIdentityRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DisassociateOriginationIdentityRequest), arg0) +} + +// DisassociateOriginationIdentityWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DisassociateOriginationIdentityWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DisassociateOriginationIdentityInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DisassociateOriginationIdentityOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DisassociateOriginationIdentityWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DisassociateOriginationIdentityOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DisassociateOriginationIdentityWithContext indicates an expected call of DisassociateOriginationIdentityWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DisassociateOriginationIdentityWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisassociateOriginationIdentityWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DisassociateOriginationIdentityWithContext), varargs...) +} + +// DisassociateProtectConfiguration mocks base method. +func (m *MockPinpointSMSVoiceV2API) DisassociateProtectConfiguration(arg0 *pinpointsmsvoicev2.DisassociateProtectConfigurationInput) (*pinpointsmsvoicev2.DisassociateProtectConfigurationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DisassociateProtectConfiguration", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DisassociateProtectConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DisassociateProtectConfiguration indicates an expected call of DisassociateProtectConfiguration. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DisassociateProtectConfiguration(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisassociateProtectConfiguration", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DisassociateProtectConfiguration), arg0) +} + +// DisassociateProtectConfigurationRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DisassociateProtectConfigurationRequest(arg0 *pinpointsmsvoicev2.DisassociateProtectConfigurationInput) (*request.Request, *pinpointsmsvoicev2.DisassociateProtectConfigurationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DisassociateProtectConfigurationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DisassociateProtectConfigurationOutput) + return ret0, ret1 +} + +// DisassociateProtectConfigurationRequest indicates an expected call of DisassociateProtectConfigurationRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DisassociateProtectConfigurationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisassociateProtectConfigurationRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DisassociateProtectConfigurationRequest), arg0) +} + +// DisassociateProtectConfigurationWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DisassociateProtectConfigurationWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DisassociateProtectConfigurationInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DisassociateProtectConfigurationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DisassociateProtectConfigurationWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DisassociateProtectConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DisassociateProtectConfigurationWithContext indicates an expected call of DisassociateProtectConfigurationWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DisassociateProtectConfigurationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisassociateProtectConfigurationWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DisassociateProtectConfigurationWithContext), varargs...) +} + +// DiscardRegistrationVersion mocks base method. +func (m *MockPinpointSMSVoiceV2API) DiscardRegistrationVersion(arg0 *pinpointsmsvoicev2.DiscardRegistrationVersionInput) (*pinpointsmsvoicev2.DiscardRegistrationVersionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DiscardRegistrationVersion", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DiscardRegistrationVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DiscardRegistrationVersion indicates an expected call of DiscardRegistrationVersion. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DiscardRegistrationVersion(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DiscardRegistrationVersion", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DiscardRegistrationVersion), arg0) +} + +// DiscardRegistrationVersionRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) DiscardRegistrationVersionRequest(arg0 *pinpointsmsvoicev2.DiscardRegistrationVersionInput) (*request.Request, *pinpointsmsvoicev2.DiscardRegistrationVersionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DiscardRegistrationVersionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.DiscardRegistrationVersionOutput) + return ret0, ret1 +} + +// DiscardRegistrationVersionRequest indicates an expected call of DiscardRegistrationVersionRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DiscardRegistrationVersionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DiscardRegistrationVersionRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DiscardRegistrationVersionRequest), arg0) +} + +// DiscardRegistrationVersionWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) DiscardRegistrationVersionWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.DiscardRegistrationVersionInput, arg2 ...request.Option) (*pinpointsmsvoicev2.DiscardRegistrationVersionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DiscardRegistrationVersionWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.DiscardRegistrationVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DiscardRegistrationVersionWithContext indicates an expected call of DiscardRegistrationVersionWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) DiscardRegistrationVersionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DiscardRegistrationVersionWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).DiscardRegistrationVersionWithContext), varargs...) +} + +// GetProtectConfigurationCountryRuleSet mocks base method. +func (m *MockPinpointSMSVoiceV2API) GetProtectConfigurationCountryRuleSet(arg0 *pinpointsmsvoicev2.GetProtectConfigurationCountryRuleSetInput) (*pinpointsmsvoicev2.GetProtectConfigurationCountryRuleSetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetProtectConfigurationCountryRuleSet", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.GetProtectConfigurationCountryRuleSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetProtectConfigurationCountryRuleSet indicates an expected call of GetProtectConfigurationCountryRuleSet. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) GetProtectConfigurationCountryRuleSet(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProtectConfigurationCountryRuleSet", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).GetProtectConfigurationCountryRuleSet), arg0) +} + +// GetProtectConfigurationCountryRuleSetRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) GetProtectConfigurationCountryRuleSetRequest(arg0 *pinpointsmsvoicev2.GetProtectConfigurationCountryRuleSetInput) (*request.Request, *pinpointsmsvoicev2.GetProtectConfigurationCountryRuleSetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetProtectConfigurationCountryRuleSetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.GetProtectConfigurationCountryRuleSetOutput) + return ret0, ret1 +} + +// GetProtectConfigurationCountryRuleSetRequest indicates an expected call of GetProtectConfigurationCountryRuleSetRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) GetProtectConfigurationCountryRuleSetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProtectConfigurationCountryRuleSetRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).GetProtectConfigurationCountryRuleSetRequest), arg0) +} + +// GetProtectConfigurationCountryRuleSetWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) GetProtectConfigurationCountryRuleSetWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.GetProtectConfigurationCountryRuleSetInput, arg2 ...request.Option) (*pinpointsmsvoicev2.GetProtectConfigurationCountryRuleSetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetProtectConfigurationCountryRuleSetWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.GetProtectConfigurationCountryRuleSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetProtectConfigurationCountryRuleSetWithContext indicates an expected call of GetProtectConfigurationCountryRuleSetWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) GetProtectConfigurationCountryRuleSetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProtectConfigurationCountryRuleSetWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).GetProtectConfigurationCountryRuleSetWithContext), varargs...) +} + +// ListPoolOriginationIdentities mocks base method. +func (m *MockPinpointSMSVoiceV2API) ListPoolOriginationIdentities(arg0 *pinpointsmsvoicev2.ListPoolOriginationIdentitiesInput) (*pinpointsmsvoicev2.ListPoolOriginationIdentitiesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListPoolOriginationIdentities", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.ListPoolOriginationIdentitiesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListPoolOriginationIdentities indicates an expected call of ListPoolOriginationIdentities. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) ListPoolOriginationIdentities(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPoolOriginationIdentities", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).ListPoolOriginationIdentities), arg0) +} + +// ListPoolOriginationIdentitiesPages mocks base method. +func (m *MockPinpointSMSVoiceV2API) ListPoolOriginationIdentitiesPages(arg0 *pinpointsmsvoicev2.ListPoolOriginationIdentitiesInput, arg1 func(*pinpointsmsvoicev2.ListPoolOriginationIdentitiesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListPoolOriginationIdentitiesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListPoolOriginationIdentitiesPages indicates an expected call of ListPoolOriginationIdentitiesPages. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) ListPoolOriginationIdentitiesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPoolOriginationIdentitiesPages", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).ListPoolOriginationIdentitiesPages), arg0, arg1) +} + +// ListPoolOriginationIdentitiesPagesWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) ListPoolOriginationIdentitiesPagesWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.ListPoolOriginationIdentitiesInput, arg2 func(*pinpointsmsvoicev2.ListPoolOriginationIdentitiesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListPoolOriginationIdentitiesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListPoolOriginationIdentitiesPagesWithContext indicates an expected call of ListPoolOriginationIdentitiesPagesWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) ListPoolOriginationIdentitiesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPoolOriginationIdentitiesPagesWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).ListPoolOriginationIdentitiesPagesWithContext), varargs...) +} + +// ListPoolOriginationIdentitiesRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) ListPoolOriginationIdentitiesRequest(arg0 *pinpointsmsvoicev2.ListPoolOriginationIdentitiesInput) (*request.Request, *pinpointsmsvoicev2.ListPoolOriginationIdentitiesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListPoolOriginationIdentitiesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.ListPoolOriginationIdentitiesOutput) + return ret0, ret1 +} + +// ListPoolOriginationIdentitiesRequest indicates an expected call of ListPoolOriginationIdentitiesRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) ListPoolOriginationIdentitiesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPoolOriginationIdentitiesRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).ListPoolOriginationIdentitiesRequest), arg0) +} + +// ListPoolOriginationIdentitiesWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) ListPoolOriginationIdentitiesWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.ListPoolOriginationIdentitiesInput, arg2 ...request.Option) (*pinpointsmsvoicev2.ListPoolOriginationIdentitiesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListPoolOriginationIdentitiesWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.ListPoolOriginationIdentitiesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListPoolOriginationIdentitiesWithContext indicates an expected call of ListPoolOriginationIdentitiesWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) ListPoolOriginationIdentitiesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPoolOriginationIdentitiesWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).ListPoolOriginationIdentitiesWithContext), varargs...) +} + +// ListRegistrationAssociations mocks base method. +func (m *MockPinpointSMSVoiceV2API) ListRegistrationAssociations(arg0 *pinpointsmsvoicev2.ListRegistrationAssociationsInput) (*pinpointsmsvoicev2.ListRegistrationAssociationsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListRegistrationAssociations", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.ListRegistrationAssociationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListRegistrationAssociations indicates an expected call of ListRegistrationAssociations. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) ListRegistrationAssociations(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRegistrationAssociations", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).ListRegistrationAssociations), arg0) +} + +// ListRegistrationAssociationsPages mocks base method. +func (m *MockPinpointSMSVoiceV2API) ListRegistrationAssociationsPages(arg0 *pinpointsmsvoicev2.ListRegistrationAssociationsInput, arg1 func(*pinpointsmsvoicev2.ListRegistrationAssociationsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListRegistrationAssociationsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListRegistrationAssociationsPages indicates an expected call of ListRegistrationAssociationsPages. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) ListRegistrationAssociationsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRegistrationAssociationsPages", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).ListRegistrationAssociationsPages), arg0, arg1) +} + +// ListRegistrationAssociationsPagesWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) ListRegistrationAssociationsPagesWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.ListRegistrationAssociationsInput, arg2 func(*pinpointsmsvoicev2.ListRegistrationAssociationsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListRegistrationAssociationsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListRegistrationAssociationsPagesWithContext indicates an expected call of ListRegistrationAssociationsPagesWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) ListRegistrationAssociationsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRegistrationAssociationsPagesWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).ListRegistrationAssociationsPagesWithContext), varargs...) +} + +// ListRegistrationAssociationsRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) ListRegistrationAssociationsRequest(arg0 *pinpointsmsvoicev2.ListRegistrationAssociationsInput) (*request.Request, *pinpointsmsvoicev2.ListRegistrationAssociationsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListRegistrationAssociationsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.ListRegistrationAssociationsOutput) + return ret0, ret1 +} + +// ListRegistrationAssociationsRequest indicates an expected call of ListRegistrationAssociationsRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) ListRegistrationAssociationsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRegistrationAssociationsRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).ListRegistrationAssociationsRequest), arg0) +} + +// ListRegistrationAssociationsWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) ListRegistrationAssociationsWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.ListRegistrationAssociationsInput, arg2 ...request.Option) (*pinpointsmsvoicev2.ListRegistrationAssociationsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListRegistrationAssociationsWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.ListRegistrationAssociationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListRegistrationAssociationsWithContext indicates an expected call of ListRegistrationAssociationsWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) ListRegistrationAssociationsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRegistrationAssociationsWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).ListRegistrationAssociationsWithContext), varargs...) +} + +// ListTagsForResource mocks base method. +func (m *MockPinpointSMSVoiceV2API) ListTagsForResource(arg0 *pinpointsmsvoicev2.ListTagsForResourceInput) (*pinpointsmsvoicev2.ListTagsForResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTagsForResource", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.ListTagsForResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTagsForResource indicates an expected call of ListTagsForResource. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) ListTagsForResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsForResource", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).ListTagsForResource), arg0) +} + +// ListTagsForResourceRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) ListTagsForResourceRequest(arg0 *pinpointsmsvoicev2.ListTagsForResourceInput) (*request.Request, *pinpointsmsvoicev2.ListTagsForResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTagsForResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.ListTagsForResourceOutput) + return ret0, ret1 +} + +// ListTagsForResourceRequest indicates an expected call of ListTagsForResourceRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) ListTagsForResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsForResourceRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).ListTagsForResourceRequest), arg0) +} + +// ListTagsForResourceWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) ListTagsForResourceWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.ListTagsForResourceInput, arg2 ...request.Option) (*pinpointsmsvoicev2.ListTagsForResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTagsForResourceWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.ListTagsForResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTagsForResourceWithContext indicates an expected call of ListTagsForResourceWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) ListTagsForResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsForResourceWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).ListTagsForResourceWithContext), varargs...) +} + +// PutKeyword mocks base method. +func (m *MockPinpointSMSVoiceV2API) PutKeyword(arg0 *pinpointsmsvoicev2.PutKeywordInput) (*pinpointsmsvoicev2.PutKeywordOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutKeyword", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.PutKeywordOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutKeyword indicates an expected call of PutKeyword. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) PutKeyword(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutKeyword", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).PutKeyword), arg0) +} + +// PutKeywordRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) PutKeywordRequest(arg0 *pinpointsmsvoicev2.PutKeywordInput) (*request.Request, *pinpointsmsvoicev2.PutKeywordOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutKeywordRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.PutKeywordOutput) + return ret0, ret1 +} + +// PutKeywordRequest indicates an expected call of PutKeywordRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) PutKeywordRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutKeywordRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).PutKeywordRequest), arg0) +} + +// PutKeywordWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) PutKeywordWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.PutKeywordInput, arg2 ...request.Option) (*pinpointsmsvoicev2.PutKeywordOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PutKeywordWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.PutKeywordOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutKeywordWithContext indicates an expected call of PutKeywordWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) PutKeywordWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutKeywordWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).PutKeywordWithContext), varargs...) +} + +// PutOptedOutNumber mocks base method. +func (m *MockPinpointSMSVoiceV2API) PutOptedOutNumber(arg0 *pinpointsmsvoicev2.PutOptedOutNumberInput) (*pinpointsmsvoicev2.PutOptedOutNumberOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutOptedOutNumber", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.PutOptedOutNumberOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutOptedOutNumber indicates an expected call of PutOptedOutNumber. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) PutOptedOutNumber(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutOptedOutNumber", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).PutOptedOutNumber), arg0) +} + +// PutOptedOutNumberRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) PutOptedOutNumberRequest(arg0 *pinpointsmsvoicev2.PutOptedOutNumberInput) (*request.Request, *pinpointsmsvoicev2.PutOptedOutNumberOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutOptedOutNumberRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.PutOptedOutNumberOutput) + return ret0, ret1 +} + +// PutOptedOutNumberRequest indicates an expected call of PutOptedOutNumberRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) PutOptedOutNumberRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutOptedOutNumberRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).PutOptedOutNumberRequest), arg0) +} + +// PutOptedOutNumberWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) PutOptedOutNumberWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.PutOptedOutNumberInput, arg2 ...request.Option) (*pinpointsmsvoicev2.PutOptedOutNumberOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PutOptedOutNumberWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.PutOptedOutNumberOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutOptedOutNumberWithContext indicates an expected call of PutOptedOutNumberWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) PutOptedOutNumberWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutOptedOutNumberWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).PutOptedOutNumberWithContext), varargs...) +} + +// PutRegistrationFieldValue mocks base method. +func (m *MockPinpointSMSVoiceV2API) PutRegistrationFieldValue(arg0 *pinpointsmsvoicev2.PutRegistrationFieldValueInput) (*pinpointsmsvoicev2.PutRegistrationFieldValueOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutRegistrationFieldValue", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.PutRegistrationFieldValueOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutRegistrationFieldValue indicates an expected call of PutRegistrationFieldValue. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) PutRegistrationFieldValue(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutRegistrationFieldValue", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).PutRegistrationFieldValue), arg0) +} + +// PutRegistrationFieldValueRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) PutRegistrationFieldValueRequest(arg0 *pinpointsmsvoicev2.PutRegistrationFieldValueInput) (*request.Request, *pinpointsmsvoicev2.PutRegistrationFieldValueOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutRegistrationFieldValueRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.PutRegistrationFieldValueOutput) + return ret0, ret1 +} + +// PutRegistrationFieldValueRequest indicates an expected call of PutRegistrationFieldValueRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) PutRegistrationFieldValueRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutRegistrationFieldValueRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).PutRegistrationFieldValueRequest), arg0) +} + +// PutRegistrationFieldValueWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) PutRegistrationFieldValueWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.PutRegistrationFieldValueInput, arg2 ...request.Option) (*pinpointsmsvoicev2.PutRegistrationFieldValueOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PutRegistrationFieldValueWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.PutRegistrationFieldValueOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutRegistrationFieldValueWithContext indicates an expected call of PutRegistrationFieldValueWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) PutRegistrationFieldValueWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutRegistrationFieldValueWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).PutRegistrationFieldValueWithContext), varargs...) +} + +// ReleasePhoneNumber mocks base method. +func (m *MockPinpointSMSVoiceV2API) ReleasePhoneNumber(arg0 *pinpointsmsvoicev2.ReleasePhoneNumberInput) (*pinpointsmsvoicev2.ReleasePhoneNumberOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ReleasePhoneNumber", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.ReleasePhoneNumberOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ReleasePhoneNumber indicates an expected call of ReleasePhoneNumber. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) ReleasePhoneNumber(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReleasePhoneNumber", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).ReleasePhoneNumber), arg0) +} + +// ReleasePhoneNumberRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) ReleasePhoneNumberRequest(arg0 *pinpointsmsvoicev2.ReleasePhoneNumberInput) (*request.Request, *pinpointsmsvoicev2.ReleasePhoneNumberOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ReleasePhoneNumberRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.ReleasePhoneNumberOutput) + return ret0, ret1 +} + +// ReleasePhoneNumberRequest indicates an expected call of ReleasePhoneNumberRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) ReleasePhoneNumberRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReleasePhoneNumberRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).ReleasePhoneNumberRequest), arg0) +} + +// ReleasePhoneNumberWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) ReleasePhoneNumberWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.ReleasePhoneNumberInput, arg2 ...request.Option) (*pinpointsmsvoicev2.ReleasePhoneNumberOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ReleasePhoneNumberWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.ReleasePhoneNumberOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ReleasePhoneNumberWithContext indicates an expected call of ReleasePhoneNumberWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) ReleasePhoneNumberWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReleasePhoneNumberWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).ReleasePhoneNumberWithContext), varargs...) +} + +// ReleaseSenderId mocks base method. +func (m *MockPinpointSMSVoiceV2API) ReleaseSenderId(arg0 *pinpointsmsvoicev2.ReleaseSenderIdInput) (*pinpointsmsvoicev2.ReleaseSenderIdOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ReleaseSenderId", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.ReleaseSenderIdOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ReleaseSenderId indicates an expected call of ReleaseSenderId. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) ReleaseSenderId(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReleaseSenderId", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).ReleaseSenderId), arg0) +} + +// ReleaseSenderIdRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) ReleaseSenderIdRequest(arg0 *pinpointsmsvoicev2.ReleaseSenderIdInput) (*request.Request, *pinpointsmsvoicev2.ReleaseSenderIdOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ReleaseSenderIdRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.ReleaseSenderIdOutput) + return ret0, ret1 +} + +// ReleaseSenderIdRequest indicates an expected call of ReleaseSenderIdRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) ReleaseSenderIdRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReleaseSenderIdRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).ReleaseSenderIdRequest), arg0) +} + +// ReleaseSenderIdWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) ReleaseSenderIdWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.ReleaseSenderIdInput, arg2 ...request.Option) (*pinpointsmsvoicev2.ReleaseSenderIdOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ReleaseSenderIdWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.ReleaseSenderIdOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ReleaseSenderIdWithContext indicates an expected call of ReleaseSenderIdWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) ReleaseSenderIdWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReleaseSenderIdWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).ReleaseSenderIdWithContext), varargs...) +} + +// RequestPhoneNumber mocks base method. +func (m *MockPinpointSMSVoiceV2API) RequestPhoneNumber(arg0 *pinpointsmsvoicev2.RequestPhoneNumberInput) (*pinpointsmsvoicev2.RequestPhoneNumberOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RequestPhoneNumber", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.RequestPhoneNumberOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RequestPhoneNumber indicates an expected call of RequestPhoneNumber. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) RequestPhoneNumber(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestPhoneNumber", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).RequestPhoneNumber), arg0) +} + +// RequestPhoneNumberRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) RequestPhoneNumberRequest(arg0 *pinpointsmsvoicev2.RequestPhoneNumberInput) (*request.Request, *pinpointsmsvoicev2.RequestPhoneNumberOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RequestPhoneNumberRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.RequestPhoneNumberOutput) + return ret0, ret1 +} + +// RequestPhoneNumberRequest indicates an expected call of RequestPhoneNumberRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) RequestPhoneNumberRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestPhoneNumberRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).RequestPhoneNumberRequest), arg0) +} + +// RequestPhoneNumberWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) RequestPhoneNumberWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.RequestPhoneNumberInput, arg2 ...request.Option) (*pinpointsmsvoicev2.RequestPhoneNumberOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RequestPhoneNumberWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.RequestPhoneNumberOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RequestPhoneNumberWithContext indicates an expected call of RequestPhoneNumberWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) RequestPhoneNumberWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestPhoneNumberWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).RequestPhoneNumberWithContext), varargs...) +} + +// RequestSenderId mocks base method. +func (m *MockPinpointSMSVoiceV2API) RequestSenderId(arg0 *pinpointsmsvoicev2.RequestSenderIdInput) (*pinpointsmsvoicev2.RequestSenderIdOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RequestSenderId", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.RequestSenderIdOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RequestSenderId indicates an expected call of RequestSenderId. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) RequestSenderId(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestSenderId", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).RequestSenderId), arg0) +} + +// RequestSenderIdRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) RequestSenderIdRequest(arg0 *pinpointsmsvoicev2.RequestSenderIdInput) (*request.Request, *pinpointsmsvoicev2.RequestSenderIdOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RequestSenderIdRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.RequestSenderIdOutput) + return ret0, ret1 +} + +// RequestSenderIdRequest indicates an expected call of RequestSenderIdRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) RequestSenderIdRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestSenderIdRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).RequestSenderIdRequest), arg0) +} + +// RequestSenderIdWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) RequestSenderIdWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.RequestSenderIdInput, arg2 ...request.Option) (*pinpointsmsvoicev2.RequestSenderIdOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RequestSenderIdWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.RequestSenderIdOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RequestSenderIdWithContext indicates an expected call of RequestSenderIdWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) RequestSenderIdWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestSenderIdWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).RequestSenderIdWithContext), varargs...) +} + +// SendDestinationNumberVerificationCode mocks base method. +func (m *MockPinpointSMSVoiceV2API) SendDestinationNumberVerificationCode(arg0 *pinpointsmsvoicev2.SendDestinationNumberVerificationCodeInput) (*pinpointsmsvoicev2.SendDestinationNumberVerificationCodeOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SendDestinationNumberVerificationCode", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.SendDestinationNumberVerificationCodeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SendDestinationNumberVerificationCode indicates an expected call of SendDestinationNumberVerificationCode. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) SendDestinationNumberVerificationCode(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendDestinationNumberVerificationCode", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).SendDestinationNumberVerificationCode), arg0) +} + +// SendDestinationNumberVerificationCodeRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) SendDestinationNumberVerificationCodeRequest(arg0 *pinpointsmsvoicev2.SendDestinationNumberVerificationCodeInput) (*request.Request, *pinpointsmsvoicev2.SendDestinationNumberVerificationCodeOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SendDestinationNumberVerificationCodeRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.SendDestinationNumberVerificationCodeOutput) + return ret0, ret1 +} + +// SendDestinationNumberVerificationCodeRequest indicates an expected call of SendDestinationNumberVerificationCodeRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) SendDestinationNumberVerificationCodeRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendDestinationNumberVerificationCodeRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).SendDestinationNumberVerificationCodeRequest), arg0) +} + +// SendDestinationNumberVerificationCodeWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) SendDestinationNumberVerificationCodeWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.SendDestinationNumberVerificationCodeInput, arg2 ...request.Option) (*pinpointsmsvoicev2.SendDestinationNumberVerificationCodeOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SendDestinationNumberVerificationCodeWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.SendDestinationNumberVerificationCodeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SendDestinationNumberVerificationCodeWithContext indicates an expected call of SendDestinationNumberVerificationCodeWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) SendDestinationNumberVerificationCodeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendDestinationNumberVerificationCodeWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).SendDestinationNumberVerificationCodeWithContext), varargs...) +} + +// SendMediaMessage mocks base method. +func (m *MockPinpointSMSVoiceV2API) SendMediaMessage(arg0 *pinpointsmsvoicev2.SendMediaMessageInput) (*pinpointsmsvoicev2.SendMediaMessageOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SendMediaMessage", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.SendMediaMessageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SendMediaMessage indicates an expected call of SendMediaMessage. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) SendMediaMessage(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMediaMessage", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).SendMediaMessage), arg0) +} + +// SendMediaMessageRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) SendMediaMessageRequest(arg0 *pinpointsmsvoicev2.SendMediaMessageInput) (*request.Request, *pinpointsmsvoicev2.SendMediaMessageOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SendMediaMessageRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.SendMediaMessageOutput) + return ret0, ret1 +} + +// SendMediaMessageRequest indicates an expected call of SendMediaMessageRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) SendMediaMessageRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMediaMessageRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).SendMediaMessageRequest), arg0) +} + +// SendMediaMessageWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) SendMediaMessageWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.SendMediaMessageInput, arg2 ...request.Option) (*pinpointsmsvoicev2.SendMediaMessageOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SendMediaMessageWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.SendMediaMessageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SendMediaMessageWithContext indicates an expected call of SendMediaMessageWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) SendMediaMessageWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMediaMessageWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).SendMediaMessageWithContext), varargs...) +} + +// SendTextMessage mocks base method. +func (m *MockPinpointSMSVoiceV2API) SendTextMessage(arg0 *pinpointsmsvoicev2.SendTextMessageInput) (*pinpointsmsvoicev2.SendTextMessageOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SendTextMessage", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.SendTextMessageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SendTextMessage indicates an expected call of SendTextMessage. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) SendTextMessage(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendTextMessage", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).SendTextMessage), arg0) +} + +// SendTextMessageRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) SendTextMessageRequest(arg0 *pinpointsmsvoicev2.SendTextMessageInput) (*request.Request, *pinpointsmsvoicev2.SendTextMessageOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SendTextMessageRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.SendTextMessageOutput) + return ret0, ret1 +} + +// SendTextMessageRequest indicates an expected call of SendTextMessageRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) SendTextMessageRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendTextMessageRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).SendTextMessageRequest), arg0) +} + +// SendTextMessageWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) SendTextMessageWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.SendTextMessageInput, arg2 ...request.Option) (*pinpointsmsvoicev2.SendTextMessageOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SendTextMessageWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.SendTextMessageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SendTextMessageWithContext indicates an expected call of SendTextMessageWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) SendTextMessageWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendTextMessageWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).SendTextMessageWithContext), varargs...) +} + +// SendVoiceMessage mocks base method. +func (m *MockPinpointSMSVoiceV2API) SendVoiceMessage(arg0 *pinpointsmsvoicev2.SendVoiceMessageInput) (*pinpointsmsvoicev2.SendVoiceMessageOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SendVoiceMessage", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.SendVoiceMessageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SendVoiceMessage indicates an expected call of SendVoiceMessage. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) SendVoiceMessage(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendVoiceMessage", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).SendVoiceMessage), arg0) +} + +// SendVoiceMessageRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) SendVoiceMessageRequest(arg0 *pinpointsmsvoicev2.SendVoiceMessageInput) (*request.Request, *pinpointsmsvoicev2.SendVoiceMessageOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SendVoiceMessageRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.SendVoiceMessageOutput) + return ret0, ret1 +} + +// SendVoiceMessageRequest indicates an expected call of SendVoiceMessageRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) SendVoiceMessageRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendVoiceMessageRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).SendVoiceMessageRequest), arg0) +} + +// SendVoiceMessageWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) SendVoiceMessageWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.SendVoiceMessageInput, arg2 ...request.Option) (*pinpointsmsvoicev2.SendVoiceMessageOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SendVoiceMessageWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.SendVoiceMessageOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SendVoiceMessageWithContext indicates an expected call of SendVoiceMessageWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) SendVoiceMessageWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendVoiceMessageWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).SendVoiceMessageWithContext), varargs...) +} + +// SetAccountDefaultProtectConfiguration mocks base method. +func (m *MockPinpointSMSVoiceV2API) SetAccountDefaultProtectConfiguration(arg0 *pinpointsmsvoicev2.SetAccountDefaultProtectConfigurationInput) (*pinpointsmsvoicev2.SetAccountDefaultProtectConfigurationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetAccountDefaultProtectConfiguration", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.SetAccountDefaultProtectConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetAccountDefaultProtectConfiguration indicates an expected call of SetAccountDefaultProtectConfiguration. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) SetAccountDefaultProtectConfiguration(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetAccountDefaultProtectConfiguration", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).SetAccountDefaultProtectConfiguration), arg0) +} + +// SetAccountDefaultProtectConfigurationRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) SetAccountDefaultProtectConfigurationRequest(arg0 *pinpointsmsvoicev2.SetAccountDefaultProtectConfigurationInput) (*request.Request, *pinpointsmsvoicev2.SetAccountDefaultProtectConfigurationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetAccountDefaultProtectConfigurationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.SetAccountDefaultProtectConfigurationOutput) + return ret0, ret1 +} + +// SetAccountDefaultProtectConfigurationRequest indicates an expected call of SetAccountDefaultProtectConfigurationRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) SetAccountDefaultProtectConfigurationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetAccountDefaultProtectConfigurationRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).SetAccountDefaultProtectConfigurationRequest), arg0) +} + +// SetAccountDefaultProtectConfigurationWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) SetAccountDefaultProtectConfigurationWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.SetAccountDefaultProtectConfigurationInput, arg2 ...request.Option) (*pinpointsmsvoicev2.SetAccountDefaultProtectConfigurationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SetAccountDefaultProtectConfigurationWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.SetAccountDefaultProtectConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetAccountDefaultProtectConfigurationWithContext indicates an expected call of SetAccountDefaultProtectConfigurationWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) SetAccountDefaultProtectConfigurationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetAccountDefaultProtectConfigurationWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).SetAccountDefaultProtectConfigurationWithContext), varargs...) +} + +// SetDefaultMessageType mocks base method. +func (m *MockPinpointSMSVoiceV2API) SetDefaultMessageType(arg0 *pinpointsmsvoicev2.SetDefaultMessageTypeInput) (*pinpointsmsvoicev2.SetDefaultMessageTypeOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetDefaultMessageType", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.SetDefaultMessageTypeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetDefaultMessageType indicates an expected call of SetDefaultMessageType. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) SetDefaultMessageType(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDefaultMessageType", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).SetDefaultMessageType), arg0) +} + +// SetDefaultMessageTypeRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) SetDefaultMessageTypeRequest(arg0 *pinpointsmsvoicev2.SetDefaultMessageTypeInput) (*request.Request, *pinpointsmsvoicev2.SetDefaultMessageTypeOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetDefaultMessageTypeRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.SetDefaultMessageTypeOutput) + return ret0, ret1 +} + +// SetDefaultMessageTypeRequest indicates an expected call of SetDefaultMessageTypeRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) SetDefaultMessageTypeRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDefaultMessageTypeRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).SetDefaultMessageTypeRequest), arg0) +} + +// SetDefaultMessageTypeWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) SetDefaultMessageTypeWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.SetDefaultMessageTypeInput, arg2 ...request.Option) (*pinpointsmsvoicev2.SetDefaultMessageTypeOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SetDefaultMessageTypeWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.SetDefaultMessageTypeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetDefaultMessageTypeWithContext indicates an expected call of SetDefaultMessageTypeWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) SetDefaultMessageTypeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDefaultMessageTypeWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).SetDefaultMessageTypeWithContext), varargs...) +} + +// SetDefaultSenderId mocks base method. +func (m *MockPinpointSMSVoiceV2API) SetDefaultSenderId(arg0 *pinpointsmsvoicev2.SetDefaultSenderIdInput) (*pinpointsmsvoicev2.SetDefaultSenderIdOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetDefaultSenderId", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.SetDefaultSenderIdOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetDefaultSenderId indicates an expected call of SetDefaultSenderId. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) SetDefaultSenderId(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDefaultSenderId", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).SetDefaultSenderId), arg0) +} + +// SetDefaultSenderIdRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) SetDefaultSenderIdRequest(arg0 *pinpointsmsvoicev2.SetDefaultSenderIdInput) (*request.Request, *pinpointsmsvoicev2.SetDefaultSenderIdOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetDefaultSenderIdRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.SetDefaultSenderIdOutput) + return ret0, ret1 +} + +// SetDefaultSenderIdRequest indicates an expected call of SetDefaultSenderIdRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) SetDefaultSenderIdRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDefaultSenderIdRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).SetDefaultSenderIdRequest), arg0) +} + +// SetDefaultSenderIdWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) SetDefaultSenderIdWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.SetDefaultSenderIdInput, arg2 ...request.Option) (*pinpointsmsvoicev2.SetDefaultSenderIdOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SetDefaultSenderIdWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.SetDefaultSenderIdOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetDefaultSenderIdWithContext indicates an expected call of SetDefaultSenderIdWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) SetDefaultSenderIdWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDefaultSenderIdWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).SetDefaultSenderIdWithContext), varargs...) +} + +// SetMediaMessageSpendLimitOverride mocks base method. +func (m *MockPinpointSMSVoiceV2API) SetMediaMessageSpendLimitOverride(arg0 *pinpointsmsvoicev2.SetMediaMessageSpendLimitOverrideInput) (*pinpointsmsvoicev2.SetMediaMessageSpendLimitOverrideOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetMediaMessageSpendLimitOverride", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.SetMediaMessageSpendLimitOverrideOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetMediaMessageSpendLimitOverride indicates an expected call of SetMediaMessageSpendLimitOverride. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) SetMediaMessageSpendLimitOverride(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMediaMessageSpendLimitOverride", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).SetMediaMessageSpendLimitOverride), arg0) +} + +// SetMediaMessageSpendLimitOverrideRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) SetMediaMessageSpendLimitOverrideRequest(arg0 *pinpointsmsvoicev2.SetMediaMessageSpendLimitOverrideInput) (*request.Request, *pinpointsmsvoicev2.SetMediaMessageSpendLimitOverrideOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetMediaMessageSpendLimitOverrideRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.SetMediaMessageSpendLimitOverrideOutput) + return ret0, ret1 +} + +// SetMediaMessageSpendLimitOverrideRequest indicates an expected call of SetMediaMessageSpendLimitOverrideRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) SetMediaMessageSpendLimitOverrideRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMediaMessageSpendLimitOverrideRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).SetMediaMessageSpendLimitOverrideRequest), arg0) +} + +// SetMediaMessageSpendLimitOverrideWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) SetMediaMessageSpendLimitOverrideWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.SetMediaMessageSpendLimitOverrideInput, arg2 ...request.Option) (*pinpointsmsvoicev2.SetMediaMessageSpendLimitOverrideOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SetMediaMessageSpendLimitOverrideWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.SetMediaMessageSpendLimitOverrideOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetMediaMessageSpendLimitOverrideWithContext indicates an expected call of SetMediaMessageSpendLimitOverrideWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) SetMediaMessageSpendLimitOverrideWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMediaMessageSpendLimitOverrideWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).SetMediaMessageSpendLimitOverrideWithContext), varargs...) +} + +// SetTextMessageSpendLimitOverride mocks base method. +func (m *MockPinpointSMSVoiceV2API) SetTextMessageSpendLimitOverride(arg0 *pinpointsmsvoicev2.SetTextMessageSpendLimitOverrideInput) (*pinpointsmsvoicev2.SetTextMessageSpendLimitOverrideOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetTextMessageSpendLimitOverride", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.SetTextMessageSpendLimitOverrideOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetTextMessageSpendLimitOverride indicates an expected call of SetTextMessageSpendLimitOverride. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) SetTextMessageSpendLimitOverride(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTextMessageSpendLimitOverride", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).SetTextMessageSpendLimitOverride), arg0) +} + +// SetTextMessageSpendLimitOverrideRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) SetTextMessageSpendLimitOverrideRequest(arg0 *pinpointsmsvoicev2.SetTextMessageSpendLimitOverrideInput) (*request.Request, *pinpointsmsvoicev2.SetTextMessageSpendLimitOverrideOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetTextMessageSpendLimitOverrideRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.SetTextMessageSpendLimitOverrideOutput) + return ret0, ret1 +} + +// SetTextMessageSpendLimitOverrideRequest indicates an expected call of SetTextMessageSpendLimitOverrideRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) SetTextMessageSpendLimitOverrideRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTextMessageSpendLimitOverrideRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).SetTextMessageSpendLimitOverrideRequest), arg0) +} + +// SetTextMessageSpendLimitOverrideWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) SetTextMessageSpendLimitOverrideWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.SetTextMessageSpendLimitOverrideInput, arg2 ...request.Option) (*pinpointsmsvoicev2.SetTextMessageSpendLimitOverrideOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SetTextMessageSpendLimitOverrideWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.SetTextMessageSpendLimitOverrideOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetTextMessageSpendLimitOverrideWithContext indicates an expected call of SetTextMessageSpendLimitOverrideWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) SetTextMessageSpendLimitOverrideWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTextMessageSpendLimitOverrideWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).SetTextMessageSpendLimitOverrideWithContext), varargs...) +} + +// SetVoiceMessageSpendLimitOverride mocks base method. +func (m *MockPinpointSMSVoiceV2API) SetVoiceMessageSpendLimitOverride(arg0 *pinpointsmsvoicev2.SetVoiceMessageSpendLimitOverrideInput) (*pinpointsmsvoicev2.SetVoiceMessageSpendLimitOverrideOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetVoiceMessageSpendLimitOverride", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.SetVoiceMessageSpendLimitOverrideOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetVoiceMessageSpendLimitOverride indicates an expected call of SetVoiceMessageSpendLimitOverride. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) SetVoiceMessageSpendLimitOverride(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetVoiceMessageSpendLimitOverride", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).SetVoiceMessageSpendLimitOverride), arg0) +} + +// SetVoiceMessageSpendLimitOverrideRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) SetVoiceMessageSpendLimitOverrideRequest(arg0 *pinpointsmsvoicev2.SetVoiceMessageSpendLimitOverrideInput) (*request.Request, *pinpointsmsvoicev2.SetVoiceMessageSpendLimitOverrideOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SetVoiceMessageSpendLimitOverrideRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.SetVoiceMessageSpendLimitOverrideOutput) + return ret0, ret1 +} + +// SetVoiceMessageSpendLimitOverrideRequest indicates an expected call of SetVoiceMessageSpendLimitOverrideRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) SetVoiceMessageSpendLimitOverrideRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetVoiceMessageSpendLimitOverrideRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).SetVoiceMessageSpendLimitOverrideRequest), arg0) +} + +// SetVoiceMessageSpendLimitOverrideWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) SetVoiceMessageSpendLimitOverrideWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.SetVoiceMessageSpendLimitOverrideInput, arg2 ...request.Option) (*pinpointsmsvoicev2.SetVoiceMessageSpendLimitOverrideOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SetVoiceMessageSpendLimitOverrideWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.SetVoiceMessageSpendLimitOverrideOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SetVoiceMessageSpendLimitOverrideWithContext indicates an expected call of SetVoiceMessageSpendLimitOverrideWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) SetVoiceMessageSpendLimitOverrideWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetVoiceMessageSpendLimitOverrideWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).SetVoiceMessageSpendLimitOverrideWithContext), varargs...) +} + +// SubmitRegistrationVersion mocks base method. +func (m *MockPinpointSMSVoiceV2API) SubmitRegistrationVersion(arg0 *pinpointsmsvoicev2.SubmitRegistrationVersionInput) (*pinpointsmsvoicev2.SubmitRegistrationVersionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SubmitRegistrationVersion", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.SubmitRegistrationVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SubmitRegistrationVersion indicates an expected call of SubmitRegistrationVersion. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) SubmitRegistrationVersion(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubmitRegistrationVersion", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).SubmitRegistrationVersion), arg0) +} + +// SubmitRegistrationVersionRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) SubmitRegistrationVersionRequest(arg0 *pinpointsmsvoicev2.SubmitRegistrationVersionInput) (*request.Request, *pinpointsmsvoicev2.SubmitRegistrationVersionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SubmitRegistrationVersionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.SubmitRegistrationVersionOutput) + return ret0, ret1 +} + +// SubmitRegistrationVersionRequest indicates an expected call of SubmitRegistrationVersionRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) SubmitRegistrationVersionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubmitRegistrationVersionRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).SubmitRegistrationVersionRequest), arg0) +} + +// SubmitRegistrationVersionWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) SubmitRegistrationVersionWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.SubmitRegistrationVersionInput, arg2 ...request.Option) (*pinpointsmsvoicev2.SubmitRegistrationVersionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SubmitRegistrationVersionWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.SubmitRegistrationVersionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SubmitRegistrationVersionWithContext indicates an expected call of SubmitRegistrationVersionWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) SubmitRegistrationVersionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubmitRegistrationVersionWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).SubmitRegistrationVersionWithContext), varargs...) +} + +// TagResource mocks base method. +func (m *MockPinpointSMSVoiceV2API) TagResource(arg0 *pinpointsmsvoicev2.TagResourceInput) (*pinpointsmsvoicev2.TagResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagResource", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.TagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagResource indicates an expected call of TagResource. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) TagResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagResource", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).TagResource), arg0) +} + +// TagResourceRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) TagResourceRequest(arg0 *pinpointsmsvoicev2.TagResourceInput) (*request.Request, *pinpointsmsvoicev2.TagResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.TagResourceOutput) + return ret0, ret1 +} + +// TagResourceRequest indicates an expected call of TagResourceRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) TagResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagResourceRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).TagResourceRequest), arg0) +} + +// TagResourceWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) TagResourceWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.TagResourceInput, arg2 ...request.Option) (*pinpointsmsvoicev2.TagResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "TagResourceWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.TagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagResourceWithContext indicates an expected call of TagResourceWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) TagResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagResourceWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).TagResourceWithContext), varargs...) +} + +// UntagResource mocks base method. +func (m *MockPinpointSMSVoiceV2API) UntagResource(arg0 *pinpointsmsvoicev2.UntagResourceInput) (*pinpointsmsvoicev2.UntagResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagResource", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.UntagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagResource indicates an expected call of UntagResource. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) UntagResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagResource", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).UntagResource), arg0) +} + +// UntagResourceRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) UntagResourceRequest(arg0 *pinpointsmsvoicev2.UntagResourceInput) (*request.Request, *pinpointsmsvoicev2.UntagResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.UntagResourceOutput) + return ret0, ret1 +} + +// UntagResourceRequest indicates an expected call of UntagResourceRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) UntagResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagResourceRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).UntagResourceRequest), arg0) +} + +// UntagResourceWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) UntagResourceWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.UntagResourceInput, arg2 ...request.Option) (*pinpointsmsvoicev2.UntagResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UntagResourceWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.UntagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagResourceWithContext indicates an expected call of UntagResourceWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) UntagResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagResourceWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).UntagResourceWithContext), varargs...) +} + +// UpdateEventDestination mocks base method. +func (m *MockPinpointSMSVoiceV2API) UpdateEventDestination(arg0 *pinpointsmsvoicev2.UpdateEventDestinationInput) (*pinpointsmsvoicev2.UpdateEventDestinationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateEventDestination", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.UpdateEventDestinationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateEventDestination indicates an expected call of UpdateEventDestination. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) UpdateEventDestination(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateEventDestination", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).UpdateEventDestination), arg0) +} + +// UpdateEventDestinationRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) UpdateEventDestinationRequest(arg0 *pinpointsmsvoicev2.UpdateEventDestinationInput) (*request.Request, *pinpointsmsvoicev2.UpdateEventDestinationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateEventDestinationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.UpdateEventDestinationOutput) + return ret0, ret1 +} + +// UpdateEventDestinationRequest indicates an expected call of UpdateEventDestinationRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) UpdateEventDestinationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateEventDestinationRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).UpdateEventDestinationRequest), arg0) +} + +// UpdateEventDestinationWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) UpdateEventDestinationWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.UpdateEventDestinationInput, arg2 ...request.Option) (*pinpointsmsvoicev2.UpdateEventDestinationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateEventDestinationWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.UpdateEventDestinationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateEventDestinationWithContext indicates an expected call of UpdateEventDestinationWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) UpdateEventDestinationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateEventDestinationWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).UpdateEventDestinationWithContext), varargs...) +} + +// UpdatePhoneNumber mocks base method. +func (m *MockPinpointSMSVoiceV2API) UpdatePhoneNumber(arg0 *pinpointsmsvoicev2.UpdatePhoneNumberInput) (*pinpointsmsvoicev2.UpdatePhoneNumberOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdatePhoneNumber", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.UpdatePhoneNumberOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdatePhoneNumber indicates an expected call of UpdatePhoneNumber. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) UpdatePhoneNumber(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePhoneNumber", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).UpdatePhoneNumber), arg0) +} + +// UpdatePhoneNumberRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) UpdatePhoneNumberRequest(arg0 *pinpointsmsvoicev2.UpdatePhoneNumberInput) (*request.Request, *pinpointsmsvoicev2.UpdatePhoneNumberOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdatePhoneNumberRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.UpdatePhoneNumberOutput) + return ret0, ret1 +} + +// UpdatePhoneNumberRequest indicates an expected call of UpdatePhoneNumberRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) UpdatePhoneNumberRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePhoneNumberRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).UpdatePhoneNumberRequest), arg0) +} + +// UpdatePhoneNumberWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) UpdatePhoneNumberWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.UpdatePhoneNumberInput, arg2 ...request.Option) (*pinpointsmsvoicev2.UpdatePhoneNumberOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdatePhoneNumberWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.UpdatePhoneNumberOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdatePhoneNumberWithContext indicates an expected call of UpdatePhoneNumberWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) UpdatePhoneNumberWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePhoneNumberWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).UpdatePhoneNumberWithContext), varargs...) +} + +// UpdatePool mocks base method. +func (m *MockPinpointSMSVoiceV2API) UpdatePool(arg0 *pinpointsmsvoicev2.UpdatePoolInput) (*pinpointsmsvoicev2.UpdatePoolOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdatePool", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.UpdatePoolOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdatePool indicates an expected call of UpdatePool. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) UpdatePool(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePool", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).UpdatePool), arg0) +} + +// UpdatePoolRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) UpdatePoolRequest(arg0 *pinpointsmsvoicev2.UpdatePoolInput) (*request.Request, *pinpointsmsvoicev2.UpdatePoolOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdatePoolRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.UpdatePoolOutput) + return ret0, ret1 +} + +// UpdatePoolRequest indicates an expected call of UpdatePoolRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) UpdatePoolRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePoolRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).UpdatePoolRequest), arg0) +} + +// UpdatePoolWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) UpdatePoolWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.UpdatePoolInput, arg2 ...request.Option) (*pinpointsmsvoicev2.UpdatePoolOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdatePoolWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.UpdatePoolOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdatePoolWithContext indicates an expected call of UpdatePoolWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) UpdatePoolWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePoolWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).UpdatePoolWithContext), varargs...) +} + +// UpdateProtectConfiguration mocks base method. +func (m *MockPinpointSMSVoiceV2API) UpdateProtectConfiguration(arg0 *pinpointsmsvoicev2.UpdateProtectConfigurationInput) (*pinpointsmsvoicev2.UpdateProtectConfigurationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateProtectConfiguration", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.UpdateProtectConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateProtectConfiguration indicates an expected call of UpdateProtectConfiguration. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) UpdateProtectConfiguration(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateProtectConfiguration", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).UpdateProtectConfiguration), arg0) +} + +// UpdateProtectConfigurationCountryRuleSet mocks base method. +func (m *MockPinpointSMSVoiceV2API) UpdateProtectConfigurationCountryRuleSet(arg0 *pinpointsmsvoicev2.UpdateProtectConfigurationCountryRuleSetInput) (*pinpointsmsvoicev2.UpdateProtectConfigurationCountryRuleSetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateProtectConfigurationCountryRuleSet", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.UpdateProtectConfigurationCountryRuleSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateProtectConfigurationCountryRuleSet indicates an expected call of UpdateProtectConfigurationCountryRuleSet. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) UpdateProtectConfigurationCountryRuleSet(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateProtectConfigurationCountryRuleSet", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).UpdateProtectConfigurationCountryRuleSet), arg0) +} + +// UpdateProtectConfigurationCountryRuleSetRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) UpdateProtectConfigurationCountryRuleSetRequest(arg0 *pinpointsmsvoicev2.UpdateProtectConfigurationCountryRuleSetInput) (*request.Request, *pinpointsmsvoicev2.UpdateProtectConfigurationCountryRuleSetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateProtectConfigurationCountryRuleSetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.UpdateProtectConfigurationCountryRuleSetOutput) + return ret0, ret1 +} + +// UpdateProtectConfigurationCountryRuleSetRequest indicates an expected call of UpdateProtectConfigurationCountryRuleSetRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) UpdateProtectConfigurationCountryRuleSetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateProtectConfigurationCountryRuleSetRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).UpdateProtectConfigurationCountryRuleSetRequest), arg0) +} + +// UpdateProtectConfigurationCountryRuleSetWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) UpdateProtectConfigurationCountryRuleSetWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.UpdateProtectConfigurationCountryRuleSetInput, arg2 ...request.Option) (*pinpointsmsvoicev2.UpdateProtectConfigurationCountryRuleSetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateProtectConfigurationCountryRuleSetWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.UpdateProtectConfigurationCountryRuleSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateProtectConfigurationCountryRuleSetWithContext indicates an expected call of UpdateProtectConfigurationCountryRuleSetWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) UpdateProtectConfigurationCountryRuleSetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateProtectConfigurationCountryRuleSetWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).UpdateProtectConfigurationCountryRuleSetWithContext), varargs...) +} + +// UpdateProtectConfigurationRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) UpdateProtectConfigurationRequest(arg0 *pinpointsmsvoicev2.UpdateProtectConfigurationInput) (*request.Request, *pinpointsmsvoicev2.UpdateProtectConfigurationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateProtectConfigurationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.UpdateProtectConfigurationOutput) + return ret0, ret1 +} + +// UpdateProtectConfigurationRequest indicates an expected call of UpdateProtectConfigurationRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) UpdateProtectConfigurationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateProtectConfigurationRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).UpdateProtectConfigurationRequest), arg0) +} + +// UpdateProtectConfigurationWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) UpdateProtectConfigurationWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.UpdateProtectConfigurationInput, arg2 ...request.Option) (*pinpointsmsvoicev2.UpdateProtectConfigurationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateProtectConfigurationWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.UpdateProtectConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateProtectConfigurationWithContext indicates an expected call of UpdateProtectConfigurationWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) UpdateProtectConfigurationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateProtectConfigurationWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).UpdateProtectConfigurationWithContext), varargs...) +} + +// UpdateSenderId mocks base method. +func (m *MockPinpointSMSVoiceV2API) UpdateSenderId(arg0 *pinpointsmsvoicev2.UpdateSenderIdInput) (*pinpointsmsvoicev2.UpdateSenderIdOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateSenderId", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.UpdateSenderIdOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateSenderId indicates an expected call of UpdateSenderId. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) UpdateSenderId(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSenderId", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).UpdateSenderId), arg0) +} + +// UpdateSenderIdRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) UpdateSenderIdRequest(arg0 *pinpointsmsvoicev2.UpdateSenderIdInput) (*request.Request, *pinpointsmsvoicev2.UpdateSenderIdOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateSenderIdRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.UpdateSenderIdOutput) + return ret0, ret1 +} + +// UpdateSenderIdRequest indicates an expected call of UpdateSenderIdRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) UpdateSenderIdRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSenderIdRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).UpdateSenderIdRequest), arg0) +} + +// UpdateSenderIdWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) UpdateSenderIdWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.UpdateSenderIdInput, arg2 ...request.Option) (*pinpointsmsvoicev2.UpdateSenderIdOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateSenderIdWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.UpdateSenderIdOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateSenderIdWithContext indicates an expected call of UpdateSenderIdWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) UpdateSenderIdWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSenderIdWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).UpdateSenderIdWithContext), varargs...) +} + +// VerifyDestinationNumber mocks base method. +func (m *MockPinpointSMSVoiceV2API) VerifyDestinationNumber(arg0 *pinpointsmsvoicev2.VerifyDestinationNumberInput) (*pinpointsmsvoicev2.VerifyDestinationNumberOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "VerifyDestinationNumber", arg0) + ret0, _ := ret[0].(*pinpointsmsvoicev2.VerifyDestinationNumberOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// VerifyDestinationNumber indicates an expected call of VerifyDestinationNumber. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) VerifyDestinationNumber(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyDestinationNumber", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).VerifyDestinationNumber), arg0) +} + +// VerifyDestinationNumberRequest mocks base method. +func (m *MockPinpointSMSVoiceV2API) VerifyDestinationNumberRequest(arg0 *pinpointsmsvoicev2.VerifyDestinationNumberInput) (*request.Request, *pinpointsmsvoicev2.VerifyDestinationNumberOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "VerifyDestinationNumberRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*pinpointsmsvoicev2.VerifyDestinationNumberOutput) + return ret0, ret1 +} + +// VerifyDestinationNumberRequest indicates an expected call of VerifyDestinationNumberRequest. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) VerifyDestinationNumberRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyDestinationNumberRequest", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).VerifyDestinationNumberRequest), arg0) +} + +// VerifyDestinationNumberWithContext mocks base method. +func (m *MockPinpointSMSVoiceV2API) VerifyDestinationNumberWithContext(arg0 aws.Context, arg1 *pinpointsmsvoicev2.VerifyDestinationNumberInput, arg2 ...request.Option) (*pinpointsmsvoicev2.VerifyDestinationNumberOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "VerifyDestinationNumberWithContext", varargs...) + ret0, _ := ret[0].(*pinpointsmsvoicev2.VerifyDestinationNumberOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// VerifyDestinationNumberWithContext indicates an expected call of VerifyDestinationNumberWithContext. +func (mr *MockPinpointSMSVoiceV2APIMockRecorder) VerifyDestinationNumberWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyDestinationNumberWithContext", reflect.TypeOf((*MockPinpointSMSVoiceV2API)(nil).VerifyDestinationNumberWithContext), varargs...) +} diff --git a/resources/pinpoint_mock_test.go b/resources/pinpoint_mock_test.go new file mode 100644 index 00000000..65ab5a60 --- /dev/null +++ b/resources/pinpoint_mock_test.go @@ -0,0 +1,4 @@ +//go:generate ../mocks/generate_mocks.sh pinpointsmsvoicev2 pinpointsmsvoicev2iface +package resources + +// Note: empty on purpose, this file exist purely to generate mocks for the IAM service From 02777a4761a899d537d309427e5098f4ef949985 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 26 Sep 2024 16:01:07 -0600 Subject: [PATCH 525/617] test(gamelift): add mocks for tests --- mocks/mock_gameliftiface/mock.go | 6229 ++++++++++++++++++++++++++++++ resources/gamelift_mock_test.go | 4 + 2 files changed, 6233 insertions(+) create mode 100644 mocks/mock_gameliftiface/mock.go create mode 100644 resources/gamelift_mock_test.go diff --git a/mocks/mock_gameliftiface/mock.go b/mocks/mock_gameliftiface/mock.go new file mode 100644 index 00000000..5c4f5a0b --- /dev/null +++ b/mocks/mock_gameliftiface/mock.go @@ -0,0 +1,6229 @@ +// Code generated by MockGen. DO NOT EDIT. +// Source: /Users/ekristen/go/pkg/mod/github.com/aws/aws-sdk-go@v1.54.20/service/gamelift/gameliftiface/interface.go + +// Package mock_gameliftiface is a generated GoMock package. +package mock_gameliftiface + +import ( + reflect "reflect" + + aws "github.com/aws/aws-sdk-go/aws" + request "github.com/aws/aws-sdk-go/aws/request" + gamelift "github.com/aws/aws-sdk-go/service/gamelift" + gomock "github.com/golang/mock/gomock" +) + +// MockGameLiftAPI is a mock of GameLiftAPI interface. +type MockGameLiftAPI struct { + ctrl *gomock.Controller + recorder *MockGameLiftAPIMockRecorder +} + +// MockGameLiftAPIMockRecorder is the mock recorder for MockGameLiftAPI. +type MockGameLiftAPIMockRecorder struct { + mock *MockGameLiftAPI +} + +// NewMockGameLiftAPI creates a new mock instance. +func NewMockGameLiftAPI(ctrl *gomock.Controller) *MockGameLiftAPI { + mock := &MockGameLiftAPI{ctrl: ctrl} + mock.recorder = &MockGameLiftAPIMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockGameLiftAPI) EXPECT() *MockGameLiftAPIMockRecorder { + return m.recorder +} + +// AcceptMatch mocks base method. +func (m *MockGameLiftAPI) AcceptMatch(arg0 *gamelift.AcceptMatchInput) (*gamelift.AcceptMatchOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AcceptMatch", arg0) + ret0, _ := ret[0].(*gamelift.AcceptMatchOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AcceptMatch indicates an expected call of AcceptMatch. +func (mr *MockGameLiftAPIMockRecorder) AcceptMatch(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AcceptMatch", reflect.TypeOf((*MockGameLiftAPI)(nil).AcceptMatch), arg0) +} + +// AcceptMatchRequest mocks base method. +func (m *MockGameLiftAPI) AcceptMatchRequest(arg0 *gamelift.AcceptMatchInput) (*request.Request, *gamelift.AcceptMatchOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "AcceptMatchRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.AcceptMatchOutput) + return ret0, ret1 +} + +// AcceptMatchRequest indicates an expected call of AcceptMatchRequest. +func (mr *MockGameLiftAPIMockRecorder) AcceptMatchRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AcceptMatchRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).AcceptMatchRequest), arg0) +} + +// AcceptMatchWithContext mocks base method. +func (m *MockGameLiftAPI) AcceptMatchWithContext(arg0 aws.Context, arg1 *gamelift.AcceptMatchInput, arg2 ...request.Option) (*gamelift.AcceptMatchOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "AcceptMatchWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.AcceptMatchOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// AcceptMatchWithContext indicates an expected call of AcceptMatchWithContext. +func (mr *MockGameLiftAPIMockRecorder) AcceptMatchWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AcceptMatchWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).AcceptMatchWithContext), varargs...) +} + +// ClaimGameServer mocks base method. +func (m *MockGameLiftAPI) ClaimGameServer(arg0 *gamelift.ClaimGameServerInput) (*gamelift.ClaimGameServerOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ClaimGameServer", arg0) + ret0, _ := ret[0].(*gamelift.ClaimGameServerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ClaimGameServer indicates an expected call of ClaimGameServer. +func (mr *MockGameLiftAPIMockRecorder) ClaimGameServer(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClaimGameServer", reflect.TypeOf((*MockGameLiftAPI)(nil).ClaimGameServer), arg0) +} + +// ClaimGameServerRequest mocks base method. +func (m *MockGameLiftAPI) ClaimGameServerRequest(arg0 *gamelift.ClaimGameServerInput) (*request.Request, *gamelift.ClaimGameServerOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ClaimGameServerRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.ClaimGameServerOutput) + return ret0, ret1 +} + +// ClaimGameServerRequest indicates an expected call of ClaimGameServerRequest. +func (mr *MockGameLiftAPIMockRecorder) ClaimGameServerRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClaimGameServerRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).ClaimGameServerRequest), arg0) +} + +// ClaimGameServerWithContext mocks base method. +func (m *MockGameLiftAPI) ClaimGameServerWithContext(arg0 aws.Context, arg1 *gamelift.ClaimGameServerInput, arg2 ...request.Option) (*gamelift.ClaimGameServerOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ClaimGameServerWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.ClaimGameServerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ClaimGameServerWithContext indicates an expected call of ClaimGameServerWithContext. +func (mr *MockGameLiftAPIMockRecorder) ClaimGameServerWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClaimGameServerWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).ClaimGameServerWithContext), varargs...) +} + +// CreateAlias mocks base method. +func (m *MockGameLiftAPI) CreateAlias(arg0 *gamelift.CreateAliasInput) (*gamelift.CreateAliasOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateAlias", arg0) + ret0, _ := ret[0].(*gamelift.CreateAliasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateAlias indicates an expected call of CreateAlias. +func (mr *MockGameLiftAPIMockRecorder) CreateAlias(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAlias", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateAlias), arg0) +} + +// CreateAliasRequest mocks base method. +func (m *MockGameLiftAPI) CreateAliasRequest(arg0 *gamelift.CreateAliasInput) (*request.Request, *gamelift.CreateAliasOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateAliasRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.CreateAliasOutput) + return ret0, ret1 +} + +// CreateAliasRequest indicates an expected call of CreateAliasRequest. +func (mr *MockGameLiftAPIMockRecorder) CreateAliasRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAliasRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateAliasRequest), arg0) +} + +// CreateAliasWithContext mocks base method. +func (m *MockGameLiftAPI) CreateAliasWithContext(arg0 aws.Context, arg1 *gamelift.CreateAliasInput, arg2 ...request.Option) (*gamelift.CreateAliasOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateAliasWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.CreateAliasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateAliasWithContext indicates an expected call of CreateAliasWithContext. +func (mr *MockGameLiftAPIMockRecorder) CreateAliasWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAliasWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateAliasWithContext), varargs...) +} + +// CreateBuild mocks base method. +func (m *MockGameLiftAPI) CreateBuild(arg0 *gamelift.CreateBuildInput) (*gamelift.CreateBuildOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateBuild", arg0) + ret0, _ := ret[0].(*gamelift.CreateBuildOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateBuild indicates an expected call of CreateBuild. +func (mr *MockGameLiftAPIMockRecorder) CreateBuild(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateBuild", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateBuild), arg0) +} + +// CreateBuildRequest mocks base method. +func (m *MockGameLiftAPI) CreateBuildRequest(arg0 *gamelift.CreateBuildInput) (*request.Request, *gamelift.CreateBuildOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateBuildRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.CreateBuildOutput) + return ret0, ret1 +} + +// CreateBuildRequest indicates an expected call of CreateBuildRequest. +func (mr *MockGameLiftAPIMockRecorder) CreateBuildRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateBuildRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateBuildRequest), arg0) +} + +// CreateBuildWithContext mocks base method. +func (m *MockGameLiftAPI) CreateBuildWithContext(arg0 aws.Context, arg1 *gamelift.CreateBuildInput, arg2 ...request.Option) (*gamelift.CreateBuildOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateBuildWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.CreateBuildOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateBuildWithContext indicates an expected call of CreateBuildWithContext. +func (mr *MockGameLiftAPIMockRecorder) CreateBuildWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateBuildWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateBuildWithContext), varargs...) +} + +// CreateContainerGroupDefinition mocks base method. +func (m *MockGameLiftAPI) CreateContainerGroupDefinition(arg0 *gamelift.CreateContainerGroupDefinitionInput) (*gamelift.CreateContainerGroupDefinitionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateContainerGroupDefinition", arg0) + ret0, _ := ret[0].(*gamelift.CreateContainerGroupDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateContainerGroupDefinition indicates an expected call of CreateContainerGroupDefinition. +func (mr *MockGameLiftAPIMockRecorder) CreateContainerGroupDefinition(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateContainerGroupDefinition", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateContainerGroupDefinition), arg0) +} + +// CreateContainerGroupDefinitionRequest mocks base method. +func (m *MockGameLiftAPI) CreateContainerGroupDefinitionRequest(arg0 *gamelift.CreateContainerGroupDefinitionInput) (*request.Request, *gamelift.CreateContainerGroupDefinitionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateContainerGroupDefinitionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.CreateContainerGroupDefinitionOutput) + return ret0, ret1 +} + +// CreateContainerGroupDefinitionRequest indicates an expected call of CreateContainerGroupDefinitionRequest. +func (mr *MockGameLiftAPIMockRecorder) CreateContainerGroupDefinitionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateContainerGroupDefinitionRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateContainerGroupDefinitionRequest), arg0) +} + +// CreateContainerGroupDefinitionWithContext mocks base method. +func (m *MockGameLiftAPI) CreateContainerGroupDefinitionWithContext(arg0 aws.Context, arg1 *gamelift.CreateContainerGroupDefinitionInput, arg2 ...request.Option) (*gamelift.CreateContainerGroupDefinitionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateContainerGroupDefinitionWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.CreateContainerGroupDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateContainerGroupDefinitionWithContext indicates an expected call of CreateContainerGroupDefinitionWithContext. +func (mr *MockGameLiftAPIMockRecorder) CreateContainerGroupDefinitionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateContainerGroupDefinitionWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateContainerGroupDefinitionWithContext), varargs...) +} + +// CreateFleet mocks base method. +func (m *MockGameLiftAPI) CreateFleet(arg0 *gamelift.CreateFleetInput) (*gamelift.CreateFleetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateFleet", arg0) + ret0, _ := ret[0].(*gamelift.CreateFleetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateFleet indicates an expected call of CreateFleet. +func (mr *MockGameLiftAPIMockRecorder) CreateFleet(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateFleet", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateFleet), arg0) +} + +// CreateFleetLocations mocks base method. +func (m *MockGameLiftAPI) CreateFleetLocations(arg0 *gamelift.CreateFleetLocationsInput) (*gamelift.CreateFleetLocationsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateFleetLocations", arg0) + ret0, _ := ret[0].(*gamelift.CreateFleetLocationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateFleetLocations indicates an expected call of CreateFleetLocations. +func (mr *MockGameLiftAPIMockRecorder) CreateFleetLocations(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateFleetLocations", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateFleetLocations), arg0) +} + +// CreateFleetLocationsRequest mocks base method. +func (m *MockGameLiftAPI) CreateFleetLocationsRequest(arg0 *gamelift.CreateFleetLocationsInput) (*request.Request, *gamelift.CreateFleetLocationsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateFleetLocationsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.CreateFleetLocationsOutput) + return ret0, ret1 +} + +// CreateFleetLocationsRequest indicates an expected call of CreateFleetLocationsRequest. +func (mr *MockGameLiftAPIMockRecorder) CreateFleetLocationsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateFleetLocationsRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateFleetLocationsRequest), arg0) +} + +// CreateFleetLocationsWithContext mocks base method. +func (m *MockGameLiftAPI) CreateFleetLocationsWithContext(arg0 aws.Context, arg1 *gamelift.CreateFleetLocationsInput, arg2 ...request.Option) (*gamelift.CreateFleetLocationsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateFleetLocationsWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.CreateFleetLocationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateFleetLocationsWithContext indicates an expected call of CreateFleetLocationsWithContext. +func (mr *MockGameLiftAPIMockRecorder) CreateFleetLocationsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateFleetLocationsWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateFleetLocationsWithContext), varargs...) +} + +// CreateFleetRequest mocks base method. +func (m *MockGameLiftAPI) CreateFleetRequest(arg0 *gamelift.CreateFleetInput) (*request.Request, *gamelift.CreateFleetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateFleetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.CreateFleetOutput) + return ret0, ret1 +} + +// CreateFleetRequest indicates an expected call of CreateFleetRequest. +func (mr *MockGameLiftAPIMockRecorder) CreateFleetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateFleetRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateFleetRequest), arg0) +} + +// CreateFleetWithContext mocks base method. +func (m *MockGameLiftAPI) CreateFleetWithContext(arg0 aws.Context, arg1 *gamelift.CreateFleetInput, arg2 ...request.Option) (*gamelift.CreateFleetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateFleetWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.CreateFleetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateFleetWithContext indicates an expected call of CreateFleetWithContext. +func (mr *MockGameLiftAPIMockRecorder) CreateFleetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateFleetWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateFleetWithContext), varargs...) +} + +// CreateGameServerGroup mocks base method. +func (m *MockGameLiftAPI) CreateGameServerGroup(arg0 *gamelift.CreateGameServerGroupInput) (*gamelift.CreateGameServerGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateGameServerGroup", arg0) + ret0, _ := ret[0].(*gamelift.CreateGameServerGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateGameServerGroup indicates an expected call of CreateGameServerGroup. +func (mr *MockGameLiftAPIMockRecorder) CreateGameServerGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGameServerGroup", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateGameServerGroup), arg0) +} + +// CreateGameServerGroupRequest mocks base method. +func (m *MockGameLiftAPI) CreateGameServerGroupRequest(arg0 *gamelift.CreateGameServerGroupInput) (*request.Request, *gamelift.CreateGameServerGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateGameServerGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.CreateGameServerGroupOutput) + return ret0, ret1 +} + +// CreateGameServerGroupRequest indicates an expected call of CreateGameServerGroupRequest. +func (mr *MockGameLiftAPIMockRecorder) CreateGameServerGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGameServerGroupRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateGameServerGroupRequest), arg0) +} + +// CreateGameServerGroupWithContext mocks base method. +func (m *MockGameLiftAPI) CreateGameServerGroupWithContext(arg0 aws.Context, arg1 *gamelift.CreateGameServerGroupInput, arg2 ...request.Option) (*gamelift.CreateGameServerGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateGameServerGroupWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.CreateGameServerGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateGameServerGroupWithContext indicates an expected call of CreateGameServerGroupWithContext. +func (mr *MockGameLiftAPIMockRecorder) CreateGameServerGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGameServerGroupWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateGameServerGroupWithContext), varargs...) +} + +// CreateGameSession mocks base method. +func (m *MockGameLiftAPI) CreateGameSession(arg0 *gamelift.CreateGameSessionInput) (*gamelift.CreateGameSessionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateGameSession", arg0) + ret0, _ := ret[0].(*gamelift.CreateGameSessionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateGameSession indicates an expected call of CreateGameSession. +func (mr *MockGameLiftAPIMockRecorder) CreateGameSession(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGameSession", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateGameSession), arg0) +} + +// CreateGameSessionQueue mocks base method. +func (m *MockGameLiftAPI) CreateGameSessionQueue(arg0 *gamelift.CreateGameSessionQueueInput) (*gamelift.CreateGameSessionQueueOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateGameSessionQueue", arg0) + ret0, _ := ret[0].(*gamelift.CreateGameSessionQueueOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateGameSessionQueue indicates an expected call of CreateGameSessionQueue. +func (mr *MockGameLiftAPIMockRecorder) CreateGameSessionQueue(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGameSessionQueue", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateGameSessionQueue), arg0) +} + +// CreateGameSessionQueueRequest mocks base method. +func (m *MockGameLiftAPI) CreateGameSessionQueueRequest(arg0 *gamelift.CreateGameSessionQueueInput) (*request.Request, *gamelift.CreateGameSessionQueueOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateGameSessionQueueRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.CreateGameSessionQueueOutput) + return ret0, ret1 +} + +// CreateGameSessionQueueRequest indicates an expected call of CreateGameSessionQueueRequest. +func (mr *MockGameLiftAPIMockRecorder) CreateGameSessionQueueRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGameSessionQueueRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateGameSessionQueueRequest), arg0) +} + +// CreateGameSessionQueueWithContext mocks base method. +func (m *MockGameLiftAPI) CreateGameSessionQueueWithContext(arg0 aws.Context, arg1 *gamelift.CreateGameSessionQueueInput, arg2 ...request.Option) (*gamelift.CreateGameSessionQueueOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateGameSessionQueueWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.CreateGameSessionQueueOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateGameSessionQueueWithContext indicates an expected call of CreateGameSessionQueueWithContext. +func (mr *MockGameLiftAPIMockRecorder) CreateGameSessionQueueWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGameSessionQueueWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateGameSessionQueueWithContext), varargs...) +} + +// CreateGameSessionRequest mocks base method. +func (m *MockGameLiftAPI) CreateGameSessionRequest(arg0 *gamelift.CreateGameSessionInput) (*request.Request, *gamelift.CreateGameSessionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateGameSessionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.CreateGameSessionOutput) + return ret0, ret1 +} + +// CreateGameSessionRequest indicates an expected call of CreateGameSessionRequest. +func (mr *MockGameLiftAPIMockRecorder) CreateGameSessionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGameSessionRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateGameSessionRequest), arg0) +} + +// CreateGameSessionWithContext mocks base method. +func (m *MockGameLiftAPI) CreateGameSessionWithContext(arg0 aws.Context, arg1 *gamelift.CreateGameSessionInput, arg2 ...request.Option) (*gamelift.CreateGameSessionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateGameSessionWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.CreateGameSessionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateGameSessionWithContext indicates an expected call of CreateGameSessionWithContext. +func (mr *MockGameLiftAPIMockRecorder) CreateGameSessionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGameSessionWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateGameSessionWithContext), varargs...) +} + +// CreateLocation mocks base method. +func (m *MockGameLiftAPI) CreateLocation(arg0 *gamelift.CreateLocationInput) (*gamelift.CreateLocationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateLocation", arg0) + ret0, _ := ret[0].(*gamelift.CreateLocationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateLocation indicates an expected call of CreateLocation. +func (mr *MockGameLiftAPIMockRecorder) CreateLocation(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateLocation", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateLocation), arg0) +} + +// CreateLocationRequest mocks base method. +func (m *MockGameLiftAPI) CreateLocationRequest(arg0 *gamelift.CreateLocationInput) (*request.Request, *gamelift.CreateLocationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateLocationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.CreateLocationOutput) + return ret0, ret1 +} + +// CreateLocationRequest indicates an expected call of CreateLocationRequest. +func (mr *MockGameLiftAPIMockRecorder) CreateLocationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateLocationRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateLocationRequest), arg0) +} + +// CreateLocationWithContext mocks base method. +func (m *MockGameLiftAPI) CreateLocationWithContext(arg0 aws.Context, arg1 *gamelift.CreateLocationInput, arg2 ...request.Option) (*gamelift.CreateLocationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateLocationWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.CreateLocationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateLocationWithContext indicates an expected call of CreateLocationWithContext. +func (mr *MockGameLiftAPIMockRecorder) CreateLocationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateLocationWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateLocationWithContext), varargs...) +} + +// CreateMatchmakingConfiguration mocks base method. +func (m *MockGameLiftAPI) CreateMatchmakingConfiguration(arg0 *gamelift.CreateMatchmakingConfigurationInput) (*gamelift.CreateMatchmakingConfigurationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateMatchmakingConfiguration", arg0) + ret0, _ := ret[0].(*gamelift.CreateMatchmakingConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateMatchmakingConfiguration indicates an expected call of CreateMatchmakingConfiguration. +func (mr *MockGameLiftAPIMockRecorder) CreateMatchmakingConfiguration(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateMatchmakingConfiguration", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateMatchmakingConfiguration), arg0) +} + +// CreateMatchmakingConfigurationRequest mocks base method. +func (m *MockGameLiftAPI) CreateMatchmakingConfigurationRequest(arg0 *gamelift.CreateMatchmakingConfigurationInput) (*request.Request, *gamelift.CreateMatchmakingConfigurationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateMatchmakingConfigurationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.CreateMatchmakingConfigurationOutput) + return ret0, ret1 +} + +// CreateMatchmakingConfigurationRequest indicates an expected call of CreateMatchmakingConfigurationRequest. +func (mr *MockGameLiftAPIMockRecorder) CreateMatchmakingConfigurationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateMatchmakingConfigurationRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateMatchmakingConfigurationRequest), arg0) +} + +// CreateMatchmakingConfigurationWithContext mocks base method. +func (m *MockGameLiftAPI) CreateMatchmakingConfigurationWithContext(arg0 aws.Context, arg1 *gamelift.CreateMatchmakingConfigurationInput, arg2 ...request.Option) (*gamelift.CreateMatchmakingConfigurationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateMatchmakingConfigurationWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.CreateMatchmakingConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateMatchmakingConfigurationWithContext indicates an expected call of CreateMatchmakingConfigurationWithContext. +func (mr *MockGameLiftAPIMockRecorder) CreateMatchmakingConfigurationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateMatchmakingConfigurationWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateMatchmakingConfigurationWithContext), varargs...) +} + +// CreateMatchmakingRuleSet mocks base method. +func (m *MockGameLiftAPI) CreateMatchmakingRuleSet(arg0 *gamelift.CreateMatchmakingRuleSetInput) (*gamelift.CreateMatchmakingRuleSetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateMatchmakingRuleSet", arg0) + ret0, _ := ret[0].(*gamelift.CreateMatchmakingRuleSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateMatchmakingRuleSet indicates an expected call of CreateMatchmakingRuleSet. +func (mr *MockGameLiftAPIMockRecorder) CreateMatchmakingRuleSet(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateMatchmakingRuleSet", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateMatchmakingRuleSet), arg0) +} + +// CreateMatchmakingRuleSetRequest mocks base method. +func (m *MockGameLiftAPI) CreateMatchmakingRuleSetRequest(arg0 *gamelift.CreateMatchmakingRuleSetInput) (*request.Request, *gamelift.CreateMatchmakingRuleSetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateMatchmakingRuleSetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.CreateMatchmakingRuleSetOutput) + return ret0, ret1 +} + +// CreateMatchmakingRuleSetRequest indicates an expected call of CreateMatchmakingRuleSetRequest. +func (mr *MockGameLiftAPIMockRecorder) CreateMatchmakingRuleSetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateMatchmakingRuleSetRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateMatchmakingRuleSetRequest), arg0) +} + +// CreateMatchmakingRuleSetWithContext mocks base method. +func (m *MockGameLiftAPI) CreateMatchmakingRuleSetWithContext(arg0 aws.Context, arg1 *gamelift.CreateMatchmakingRuleSetInput, arg2 ...request.Option) (*gamelift.CreateMatchmakingRuleSetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateMatchmakingRuleSetWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.CreateMatchmakingRuleSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateMatchmakingRuleSetWithContext indicates an expected call of CreateMatchmakingRuleSetWithContext. +func (mr *MockGameLiftAPIMockRecorder) CreateMatchmakingRuleSetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateMatchmakingRuleSetWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateMatchmakingRuleSetWithContext), varargs...) +} + +// CreatePlayerSession mocks base method. +func (m *MockGameLiftAPI) CreatePlayerSession(arg0 *gamelift.CreatePlayerSessionInput) (*gamelift.CreatePlayerSessionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreatePlayerSession", arg0) + ret0, _ := ret[0].(*gamelift.CreatePlayerSessionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreatePlayerSession indicates an expected call of CreatePlayerSession. +func (mr *MockGameLiftAPIMockRecorder) CreatePlayerSession(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePlayerSession", reflect.TypeOf((*MockGameLiftAPI)(nil).CreatePlayerSession), arg0) +} + +// CreatePlayerSessionRequest mocks base method. +func (m *MockGameLiftAPI) CreatePlayerSessionRequest(arg0 *gamelift.CreatePlayerSessionInput) (*request.Request, *gamelift.CreatePlayerSessionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreatePlayerSessionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.CreatePlayerSessionOutput) + return ret0, ret1 +} + +// CreatePlayerSessionRequest indicates an expected call of CreatePlayerSessionRequest. +func (mr *MockGameLiftAPIMockRecorder) CreatePlayerSessionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePlayerSessionRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).CreatePlayerSessionRequest), arg0) +} + +// CreatePlayerSessionWithContext mocks base method. +func (m *MockGameLiftAPI) CreatePlayerSessionWithContext(arg0 aws.Context, arg1 *gamelift.CreatePlayerSessionInput, arg2 ...request.Option) (*gamelift.CreatePlayerSessionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreatePlayerSessionWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.CreatePlayerSessionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreatePlayerSessionWithContext indicates an expected call of CreatePlayerSessionWithContext. +func (mr *MockGameLiftAPIMockRecorder) CreatePlayerSessionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePlayerSessionWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).CreatePlayerSessionWithContext), varargs...) +} + +// CreatePlayerSessions mocks base method. +func (m *MockGameLiftAPI) CreatePlayerSessions(arg0 *gamelift.CreatePlayerSessionsInput) (*gamelift.CreatePlayerSessionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreatePlayerSessions", arg0) + ret0, _ := ret[0].(*gamelift.CreatePlayerSessionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreatePlayerSessions indicates an expected call of CreatePlayerSessions. +func (mr *MockGameLiftAPIMockRecorder) CreatePlayerSessions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePlayerSessions", reflect.TypeOf((*MockGameLiftAPI)(nil).CreatePlayerSessions), arg0) +} + +// CreatePlayerSessionsRequest mocks base method. +func (m *MockGameLiftAPI) CreatePlayerSessionsRequest(arg0 *gamelift.CreatePlayerSessionsInput) (*request.Request, *gamelift.CreatePlayerSessionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreatePlayerSessionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.CreatePlayerSessionsOutput) + return ret0, ret1 +} + +// CreatePlayerSessionsRequest indicates an expected call of CreatePlayerSessionsRequest. +func (mr *MockGameLiftAPIMockRecorder) CreatePlayerSessionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePlayerSessionsRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).CreatePlayerSessionsRequest), arg0) +} + +// CreatePlayerSessionsWithContext mocks base method. +func (m *MockGameLiftAPI) CreatePlayerSessionsWithContext(arg0 aws.Context, arg1 *gamelift.CreatePlayerSessionsInput, arg2 ...request.Option) (*gamelift.CreatePlayerSessionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreatePlayerSessionsWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.CreatePlayerSessionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreatePlayerSessionsWithContext indicates an expected call of CreatePlayerSessionsWithContext. +func (mr *MockGameLiftAPIMockRecorder) CreatePlayerSessionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePlayerSessionsWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).CreatePlayerSessionsWithContext), varargs...) +} + +// CreateScript mocks base method. +func (m *MockGameLiftAPI) CreateScript(arg0 *gamelift.CreateScriptInput) (*gamelift.CreateScriptOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateScript", arg0) + ret0, _ := ret[0].(*gamelift.CreateScriptOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateScript indicates an expected call of CreateScript. +func (mr *MockGameLiftAPIMockRecorder) CreateScript(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateScript", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateScript), arg0) +} + +// CreateScriptRequest mocks base method. +func (m *MockGameLiftAPI) CreateScriptRequest(arg0 *gamelift.CreateScriptInput) (*request.Request, *gamelift.CreateScriptOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateScriptRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.CreateScriptOutput) + return ret0, ret1 +} + +// CreateScriptRequest indicates an expected call of CreateScriptRequest. +func (mr *MockGameLiftAPIMockRecorder) CreateScriptRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateScriptRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateScriptRequest), arg0) +} + +// CreateScriptWithContext mocks base method. +func (m *MockGameLiftAPI) CreateScriptWithContext(arg0 aws.Context, arg1 *gamelift.CreateScriptInput, arg2 ...request.Option) (*gamelift.CreateScriptOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateScriptWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.CreateScriptOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateScriptWithContext indicates an expected call of CreateScriptWithContext. +func (mr *MockGameLiftAPIMockRecorder) CreateScriptWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateScriptWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateScriptWithContext), varargs...) +} + +// CreateVpcPeeringAuthorization mocks base method. +func (m *MockGameLiftAPI) CreateVpcPeeringAuthorization(arg0 *gamelift.CreateVpcPeeringAuthorizationInput) (*gamelift.CreateVpcPeeringAuthorizationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateVpcPeeringAuthorization", arg0) + ret0, _ := ret[0].(*gamelift.CreateVpcPeeringAuthorizationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateVpcPeeringAuthorization indicates an expected call of CreateVpcPeeringAuthorization. +func (mr *MockGameLiftAPIMockRecorder) CreateVpcPeeringAuthorization(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateVpcPeeringAuthorization", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateVpcPeeringAuthorization), arg0) +} + +// CreateVpcPeeringAuthorizationRequest mocks base method. +func (m *MockGameLiftAPI) CreateVpcPeeringAuthorizationRequest(arg0 *gamelift.CreateVpcPeeringAuthorizationInput) (*request.Request, *gamelift.CreateVpcPeeringAuthorizationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateVpcPeeringAuthorizationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.CreateVpcPeeringAuthorizationOutput) + return ret0, ret1 +} + +// CreateVpcPeeringAuthorizationRequest indicates an expected call of CreateVpcPeeringAuthorizationRequest. +func (mr *MockGameLiftAPIMockRecorder) CreateVpcPeeringAuthorizationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateVpcPeeringAuthorizationRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateVpcPeeringAuthorizationRequest), arg0) +} + +// CreateVpcPeeringAuthorizationWithContext mocks base method. +func (m *MockGameLiftAPI) CreateVpcPeeringAuthorizationWithContext(arg0 aws.Context, arg1 *gamelift.CreateVpcPeeringAuthorizationInput, arg2 ...request.Option) (*gamelift.CreateVpcPeeringAuthorizationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateVpcPeeringAuthorizationWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.CreateVpcPeeringAuthorizationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateVpcPeeringAuthorizationWithContext indicates an expected call of CreateVpcPeeringAuthorizationWithContext. +func (mr *MockGameLiftAPIMockRecorder) CreateVpcPeeringAuthorizationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateVpcPeeringAuthorizationWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateVpcPeeringAuthorizationWithContext), varargs...) +} + +// CreateVpcPeeringConnection mocks base method. +func (m *MockGameLiftAPI) CreateVpcPeeringConnection(arg0 *gamelift.CreateVpcPeeringConnectionInput) (*gamelift.CreateVpcPeeringConnectionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateVpcPeeringConnection", arg0) + ret0, _ := ret[0].(*gamelift.CreateVpcPeeringConnectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateVpcPeeringConnection indicates an expected call of CreateVpcPeeringConnection. +func (mr *MockGameLiftAPIMockRecorder) CreateVpcPeeringConnection(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateVpcPeeringConnection", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateVpcPeeringConnection), arg0) +} + +// CreateVpcPeeringConnectionRequest mocks base method. +func (m *MockGameLiftAPI) CreateVpcPeeringConnectionRequest(arg0 *gamelift.CreateVpcPeeringConnectionInput) (*request.Request, *gamelift.CreateVpcPeeringConnectionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateVpcPeeringConnectionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.CreateVpcPeeringConnectionOutput) + return ret0, ret1 +} + +// CreateVpcPeeringConnectionRequest indicates an expected call of CreateVpcPeeringConnectionRequest. +func (mr *MockGameLiftAPIMockRecorder) CreateVpcPeeringConnectionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateVpcPeeringConnectionRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateVpcPeeringConnectionRequest), arg0) +} + +// CreateVpcPeeringConnectionWithContext mocks base method. +func (m *MockGameLiftAPI) CreateVpcPeeringConnectionWithContext(arg0 aws.Context, arg1 *gamelift.CreateVpcPeeringConnectionInput, arg2 ...request.Option) (*gamelift.CreateVpcPeeringConnectionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateVpcPeeringConnectionWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.CreateVpcPeeringConnectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateVpcPeeringConnectionWithContext indicates an expected call of CreateVpcPeeringConnectionWithContext. +func (mr *MockGameLiftAPIMockRecorder) CreateVpcPeeringConnectionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateVpcPeeringConnectionWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).CreateVpcPeeringConnectionWithContext), varargs...) +} + +// DeleteAlias mocks base method. +func (m *MockGameLiftAPI) DeleteAlias(arg0 *gamelift.DeleteAliasInput) (*gamelift.DeleteAliasOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteAlias", arg0) + ret0, _ := ret[0].(*gamelift.DeleteAliasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteAlias indicates an expected call of DeleteAlias. +func (mr *MockGameLiftAPIMockRecorder) DeleteAlias(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAlias", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteAlias), arg0) +} + +// DeleteAliasRequest mocks base method. +func (m *MockGameLiftAPI) DeleteAliasRequest(arg0 *gamelift.DeleteAliasInput) (*request.Request, *gamelift.DeleteAliasOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteAliasRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DeleteAliasOutput) + return ret0, ret1 +} + +// DeleteAliasRequest indicates an expected call of DeleteAliasRequest. +func (mr *MockGameLiftAPIMockRecorder) DeleteAliasRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAliasRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteAliasRequest), arg0) +} + +// DeleteAliasWithContext mocks base method. +func (m *MockGameLiftAPI) DeleteAliasWithContext(arg0 aws.Context, arg1 *gamelift.DeleteAliasInput, arg2 ...request.Option) (*gamelift.DeleteAliasOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteAliasWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DeleteAliasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteAliasWithContext indicates an expected call of DeleteAliasWithContext. +func (mr *MockGameLiftAPIMockRecorder) DeleteAliasWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAliasWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteAliasWithContext), varargs...) +} + +// DeleteBuild mocks base method. +func (m *MockGameLiftAPI) DeleteBuild(arg0 *gamelift.DeleteBuildInput) (*gamelift.DeleteBuildOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteBuild", arg0) + ret0, _ := ret[0].(*gamelift.DeleteBuildOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteBuild indicates an expected call of DeleteBuild. +func (mr *MockGameLiftAPIMockRecorder) DeleteBuild(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteBuild", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteBuild), arg0) +} + +// DeleteBuildRequest mocks base method. +func (m *MockGameLiftAPI) DeleteBuildRequest(arg0 *gamelift.DeleteBuildInput) (*request.Request, *gamelift.DeleteBuildOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteBuildRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DeleteBuildOutput) + return ret0, ret1 +} + +// DeleteBuildRequest indicates an expected call of DeleteBuildRequest. +func (mr *MockGameLiftAPIMockRecorder) DeleteBuildRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteBuildRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteBuildRequest), arg0) +} + +// DeleteBuildWithContext mocks base method. +func (m *MockGameLiftAPI) DeleteBuildWithContext(arg0 aws.Context, arg1 *gamelift.DeleteBuildInput, arg2 ...request.Option) (*gamelift.DeleteBuildOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteBuildWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DeleteBuildOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteBuildWithContext indicates an expected call of DeleteBuildWithContext. +func (mr *MockGameLiftAPIMockRecorder) DeleteBuildWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteBuildWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteBuildWithContext), varargs...) +} + +// DeleteContainerGroupDefinition mocks base method. +func (m *MockGameLiftAPI) DeleteContainerGroupDefinition(arg0 *gamelift.DeleteContainerGroupDefinitionInput) (*gamelift.DeleteContainerGroupDefinitionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteContainerGroupDefinition", arg0) + ret0, _ := ret[0].(*gamelift.DeleteContainerGroupDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteContainerGroupDefinition indicates an expected call of DeleteContainerGroupDefinition. +func (mr *MockGameLiftAPIMockRecorder) DeleteContainerGroupDefinition(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteContainerGroupDefinition", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteContainerGroupDefinition), arg0) +} + +// DeleteContainerGroupDefinitionRequest mocks base method. +func (m *MockGameLiftAPI) DeleteContainerGroupDefinitionRequest(arg0 *gamelift.DeleteContainerGroupDefinitionInput) (*request.Request, *gamelift.DeleteContainerGroupDefinitionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteContainerGroupDefinitionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DeleteContainerGroupDefinitionOutput) + return ret0, ret1 +} + +// DeleteContainerGroupDefinitionRequest indicates an expected call of DeleteContainerGroupDefinitionRequest. +func (mr *MockGameLiftAPIMockRecorder) DeleteContainerGroupDefinitionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteContainerGroupDefinitionRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteContainerGroupDefinitionRequest), arg0) +} + +// DeleteContainerGroupDefinitionWithContext mocks base method. +func (m *MockGameLiftAPI) DeleteContainerGroupDefinitionWithContext(arg0 aws.Context, arg1 *gamelift.DeleteContainerGroupDefinitionInput, arg2 ...request.Option) (*gamelift.DeleteContainerGroupDefinitionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteContainerGroupDefinitionWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DeleteContainerGroupDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteContainerGroupDefinitionWithContext indicates an expected call of DeleteContainerGroupDefinitionWithContext. +func (mr *MockGameLiftAPIMockRecorder) DeleteContainerGroupDefinitionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteContainerGroupDefinitionWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteContainerGroupDefinitionWithContext), varargs...) +} + +// DeleteFleet mocks base method. +func (m *MockGameLiftAPI) DeleteFleet(arg0 *gamelift.DeleteFleetInput) (*gamelift.DeleteFleetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteFleet", arg0) + ret0, _ := ret[0].(*gamelift.DeleteFleetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteFleet indicates an expected call of DeleteFleet. +func (mr *MockGameLiftAPIMockRecorder) DeleteFleet(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteFleet", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteFleet), arg0) +} + +// DeleteFleetLocations mocks base method. +func (m *MockGameLiftAPI) DeleteFleetLocations(arg0 *gamelift.DeleteFleetLocationsInput) (*gamelift.DeleteFleetLocationsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteFleetLocations", arg0) + ret0, _ := ret[0].(*gamelift.DeleteFleetLocationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteFleetLocations indicates an expected call of DeleteFleetLocations. +func (mr *MockGameLiftAPIMockRecorder) DeleteFleetLocations(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteFleetLocations", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteFleetLocations), arg0) +} + +// DeleteFleetLocationsRequest mocks base method. +func (m *MockGameLiftAPI) DeleteFleetLocationsRequest(arg0 *gamelift.DeleteFleetLocationsInput) (*request.Request, *gamelift.DeleteFleetLocationsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteFleetLocationsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DeleteFleetLocationsOutput) + return ret0, ret1 +} + +// DeleteFleetLocationsRequest indicates an expected call of DeleteFleetLocationsRequest. +func (mr *MockGameLiftAPIMockRecorder) DeleteFleetLocationsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteFleetLocationsRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteFleetLocationsRequest), arg0) +} + +// DeleteFleetLocationsWithContext mocks base method. +func (m *MockGameLiftAPI) DeleteFleetLocationsWithContext(arg0 aws.Context, arg1 *gamelift.DeleteFleetLocationsInput, arg2 ...request.Option) (*gamelift.DeleteFleetLocationsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteFleetLocationsWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DeleteFleetLocationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteFleetLocationsWithContext indicates an expected call of DeleteFleetLocationsWithContext. +func (mr *MockGameLiftAPIMockRecorder) DeleteFleetLocationsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteFleetLocationsWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteFleetLocationsWithContext), varargs...) +} + +// DeleteFleetRequest mocks base method. +func (m *MockGameLiftAPI) DeleteFleetRequest(arg0 *gamelift.DeleteFleetInput) (*request.Request, *gamelift.DeleteFleetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteFleetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DeleteFleetOutput) + return ret0, ret1 +} + +// DeleteFleetRequest indicates an expected call of DeleteFleetRequest. +func (mr *MockGameLiftAPIMockRecorder) DeleteFleetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteFleetRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteFleetRequest), arg0) +} + +// DeleteFleetWithContext mocks base method. +func (m *MockGameLiftAPI) DeleteFleetWithContext(arg0 aws.Context, arg1 *gamelift.DeleteFleetInput, arg2 ...request.Option) (*gamelift.DeleteFleetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteFleetWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DeleteFleetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteFleetWithContext indicates an expected call of DeleteFleetWithContext. +func (mr *MockGameLiftAPIMockRecorder) DeleteFleetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteFleetWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteFleetWithContext), varargs...) +} + +// DeleteGameServerGroup mocks base method. +func (m *MockGameLiftAPI) DeleteGameServerGroup(arg0 *gamelift.DeleteGameServerGroupInput) (*gamelift.DeleteGameServerGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteGameServerGroup", arg0) + ret0, _ := ret[0].(*gamelift.DeleteGameServerGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteGameServerGroup indicates an expected call of DeleteGameServerGroup. +func (mr *MockGameLiftAPIMockRecorder) DeleteGameServerGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGameServerGroup", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteGameServerGroup), arg0) +} + +// DeleteGameServerGroupRequest mocks base method. +func (m *MockGameLiftAPI) DeleteGameServerGroupRequest(arg0 *gamelift.DeleteGameServerGroupInput) (*request.Request, *gamelift.DeleteGameServerGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteGameServerGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DeleteGameServerGroupOutput) + return ret0, ret1 +} + +// DeleteGameServerGroupRequest indicates an expected call of DeleteGameServerGroupRequest. +func (mr *MockGameLiftAPIMockRecorder) DeleteGameServerGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGameServerGroupRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteGameServerGroupRequest), arg0) +} + +// DeleteGameServerGroupWithContext mocks base method. +func (m *MockGameLiftAPI) DeleteGameServerGroupWithContext(arg0 aws.Context, arg1 *gamelift.DeleteGameServerGroupInput, arg2 ...request.Option) (*gamelift.DeleteGameServerGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteGameServerGroupWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DeleteGameServerGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteGameServerGroupWithContext indicates an expected call of DeleteGameServerGroupWithContext. +func (mr *MockGameLiftAPIMockRecorder) DeleteGameServerGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGameServerGroupWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteGameServerGroupWithContext), varargs...) +} + +// DeleteGameSessionQueue mocks base method. +func (m *MockGameLiftAPI) DeleteGameSessionQueue(arg0 *gamelift.DeleteGameSessionQueueInput) (*gamelift.DeleteGameSessionQueueOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteGameSessionQueue", arg0) + ret0, _ := ret[0].(*gamelift.DeleteGameSessionQueueOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteGameSessionQueue indicates an expected call of DeleteGameSessionQueue. +func (mr *MockGameLiftAPIMockRecorder) DeleteGameSessionQueue(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGameSessionQueue", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteGameSessionQueue), arg0) +} + +// DeleteGameSessionQueueRequest mocks base method. +func (m *MockGameLiftAPI) DeleteGameSessionQueueRequest(arg0 *gamelift.DeleteGameSessionQueueInput) (*request.Request, *gamelift.DeleteGameSessionQueueOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteGameSessionQueueRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DeleteGameSessionQueueOutput) + return ret0, ret1 +} + +// DeleteGameSessionQueueRequest indicates an expected call of DeleteGameSessionQueueRequest. +func (mr *MockGameLiftAPIMockRecorder) DeleteGameSessionQueueRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGameSessionQueueRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteGameSessionQueueRequest), arg0) +} + +// DeleteGameSessionQueueWithContext mocks base method. +func (m *MockGameLiftAPI) DeleteGameSessionQueueWithContext(arg0 aws.Context, arg1 *gamelift.DeleteGameSessionQueueInput, arg2 ...request.Option) (*gamelift.DeleteGameSessionQueueOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteGameSessionQueueWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DeleteGameSessionQueueOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteGameSessionQueueWithContext indicates an expected call of DeleteGameSessionQueueWithContext. +func (mr *MockGameLiftAPIMockRecorder) DeleteGameSessionQueueWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGameSessionQueueWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteGameSessionQueueWithContext), varargs...) +} + +// DeleteLocation mocks base method. +func (m *MockGameLiftAPI) DeleteLocation(arg0 *gamelift.DeleteLocationInput) (*gamelift.DeleteLocationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteLocation", arg0) + ret0, _ := ret[0].(*gamelift.DeleteLocationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteLocation indicates an expected call of DeleteLocation. +func (mr *MockGameLiftAPIMockRecorder) DeleteLocation(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteLocation", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteLocation), arg0) +} + +// DeleteLocationRequest mocks base method. +func (m *MockGameLiftAPI) DeleteLocationRequest(arg0 *gamelift.DeleteLocationInput) (*request.Request, *gamelift.DeleteLocationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteLocationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DeleteLocationOutput) + return ret0, ret1 +} + +// DeleteLocationRequest indicates an expected call of DeleteLocationRequest. +func (mr *MockGameLiftAPIMockRecorder) DeleteLocationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteLocationRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteLocationRequest), arg0) +} + +// DeleteLocationWithContext mocks base method. +func (m *MockGameLiftAPI) DeleteLocationWithContext(arg0 aws.Context, arg1 *gamelift.DeleteLocationInput, arg2 ...request.Option) (*gamelift.DeleteLocationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteLocationWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DeleteLocationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteLocationWithContext indicates an expected call of DeleteLocationWithContext. +func (mr *MockGameLiftAPIMockRecorder) DeleteLocationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteLocationWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteLocationWithContext), varargs...) +} + +// DeleteMatchmakingConfiguration mocks base method. +func (m *MockGameLiftAPI) DeleteMatchmakingConfiguration(arg0 *gamelift.DeleteMatchmakingConfigurationInput) (*gamelift.DeleteMatchmakingConfigurationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteMatchmakingConfiguration", arg0) + ret0, _ := ret[0].(*gamelift.DeleteMatchmakingConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteMatchmakingConfiguration indicates an expected call of DeleteMatchmakingConfiguration. +func (mr *MockGameLiftAPIMockRecorder) DeleteMatchmakingConfiguration(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMatchmakingConfiguration", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteMatchmakingConfiguration), arg0) +} + +// DeleteMatchmakingConfigurationRequest mocks base method. +func (m *MockGameLiftAPI) DeleteMatchmakingConfigurationRequest(arg0 *gamelift.DeleteMatchmakingConfigurationInput) (*request.Request, *gamelift.DeleteMatchmakingConfigurationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteMatchmakingConfigurationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DeleteMatchmakingConfigurationOutput) + return ret0, ret1 +} + +// DeleteMatchmakingConfigurationRequest indicates an expected call of DeleteMatchmakingConfigurationRequest. +func (mr *MockGameLiftAPIMockRecorder) DeleteMatchmakingConfigurationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMatchmakingConfigurationRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteMatchmakingConfigurationRequest), arg0) +} + +// DeleteMatchmakingConfigurationWithContext mocks base method. +func (m *MockGameLiftAPI) DeleteMatchmakingConfigurationWithContext(arg0 aws.Context, arg1 *gamelift.DeleteMatchmakingConfigurationInput, arg2 ...request.Option) (*gamelift.DeleteMatchmakingConfigurationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteMatchmakingConfigurationWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DeleteMatchmakingConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteMatchmakingConfigurationWithContext indicates an expected call of DeleteMatchmakingConfigurationWithContext. +func (mr *MockGameLiftAPIMockRecorder) DeleteMatchmakingConfigurationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMatchmakingConfigurationWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteMatchmakingConfigurationWithContext), varargs...) +} + +// DeleteMatchmakingRuleSet mocks base method. +func (m *MockGameLiftAPI) DeleteMatchmakingRuleSet(arg0 *gamelift.DeleteMatchmakingRuleSetInput) (*gamelift.DeleteMatchmakingRuleSetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteMatchmakingRuleSet", arg0) + ret0, _ := ret[0].(*gamelift.DeleteMatchmakingRuleSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteMatchmakingRuleSet indicates an expected call of DeleteMatchmakingRuleSet. +func (mr *MockGameLiftAPIMockRecorder) DeleteMatchmakingRuleSet(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMatchmakingRuleSet", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteMatchmakingRuleSet), arg0) +} + +// DeleteMatchmakingRuleSetRequest mocks base method. +func (m *MockGameLiftAPI) DeleteMatchmakingRuleSetRequest(arg0 *gamelift.DeleteMatchmakingRuleSetInput) (*request.Request, *gamelift.DeleteMatchmakingRuleSetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteMatchmakingRuleSetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DeleteMatchmakingRuleSetOutput) + return ret0, ret1 +} + +// DeleteMatchmakingRuleSetRequest indicates an expected call of DeleteMatchmakingRuleSetRequest. +func (mr *MockGameLiftAPIMockRecorder) DeleteMatchmakingRuleSetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMatchmakingRuleSetRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteMatchmakingRuleSetRequest), arg0) +} + +// DeleteMatchmakingRuleSetWithContext mocks base method. +func (m *MockGameLiftAPI) DeleteMatchmakingRuleSetWithContext(arg0 aws.Context, arg1 *gamelift.DeleteMatchmakingRuleSetInput, arg2 ...request.Option) (*gamelift.DeleteMatchmakingRuleSetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteMatchmakingRuleSetWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DeleteMatchmakingRuleSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteMatchmakingRuleSetWithContext indicates an expected call of DeleteMatchmakingRuleSetWithContext. +func (mr *MockGameLiftAPIMockRecorder) DeleteMatchmakingRuleSetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMatchmakingRuleSetWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteMatchmakingRuleSetWithContext), varargs...) +} + +// DeleteScalingPolicy mocks base method. +func (m *MockGameLiftAPI) DeleteScalingPolicy(arg0 *gamelift.DeleteScalingPolicyInput) (*gamelift.DeleteScalingPolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteScalingPolicy", arg0) + ret0, _ := ret[0].(*gamelift.DeleteScalingPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteScalingPolicy indicates an expected call of DeleteScalingPolicy. +func (mr *MockGameLiftAPIMockRecorder) DeleteScalingPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteScalingPolicy", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteScalingPolicy), arg0) +} + +// DeleteScalingPolicyRequest mocks base method. +func (m *MockGameLiftAPI) DeleteScalingPolicyRequest(arg0 *gamelift.DeleteScalingPolicyInput) (*request.Request, *gamelift.DeleteScalingPolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteScalingPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DeleteScalingPolicyOutput) + return ret0, ret1 +} + +// DeleteScalingPolicyRequest indicates an expected call of DeleteScalingPolicyRequest. +func (mr *MockGameLiftAPIMockRecorder) DeleteScalingPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteScalingPolicyRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteScalingPolicyRequest), arg0) +} + +// DeleteScalingPolicyWithContext mocks base method. +func (m *MockGameLiftAPI) DeleteScalingPolicyWithContext(arg0 aws.Context, arg1 *gamelift.DeleteScalingPolicyInput, arg2 ...request.Option) (*gamelift.DeleteScalingPolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteScalingPolicyWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DeleteScalingPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteScalingPolicyWithContext indicates an expected call of DeleteScalingPolicyWithContext. +func (mr *MockGameLiftAPIMockRecorder) DeleteScalingPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteScalingPolicyWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteScalingPolicyWithContext), varargs...) +} + +// DeleteScript mocks base method. +func (m *MockGameLiftAPI) DeleteScript(arg0 *gamelift.DeleteScriptInput) (*gamelift.DeleteScriptOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteScript", arg0) + ret0, _ := ret[0].(*gamelift.DeleteScriptOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteScript indicates an expected call of DeleteScript. +func (mr *MockGameLiftAPIMockRecorder) DeleteScript(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteScript", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteScript), arg0) +} + +// DeleteScriptRequest mocks base method. +func (m *MockGameLiftAPI) DeleteScriptRequest(arg0 *gamelift.DeleteScriptInput) (*request.Request, *gamelift.DeleteScriptOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteScriptRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DeleteScriptOutput) + return ret0, ret1 +} + +// DeleteScriptRequest indicates an expected call of DeleteScriptRequest. +func (mr *MockGameLiftAPIMockRecorder) DeleteScriptRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteScriptRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteScriptRequest), arg0) +} + +// DeleteScriptWithContext mocks base method. +func (m *MockGameLiftAPI) DeleteScriptWithContext(arg0 aws.Context, arg1 *gamelift.DeleteScriptInput, arg2 ...request.Option) (*gamelift.DeleteScriptOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteScriptWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DeleteScriptOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteScriptWithContext indicates an expected call of DeleteScriptWithContext. +func (mr *MockGameLiftAPIMockRecorder) DeleteScriptWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteScriptWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteScriptWithContext), varargs...) +} + +// DeleteVpcPeeringAuthorization mocks base method. +func (m *MockGameLiftAPI) DeleteVpcPeeringAuthorization(arg0 *gamelift.DeleteVpcPeeringAuthorizationInput) (*gamelift.DeleteVpcPeeringAuthorizationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteVpcPeeringAuthorization", arg0) + ret0, _ := ret[0].(*gamelift.DeleteVpcPeeringAuthorizationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteVpcPeeringAuthorization indicates an expected call of DeleteVpcPeeringAuthorization. +func (mr *MockGameLiftAPIMockRecorder) DeleteVpcPeeringAuthorization(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVpcPeeringAuthorization", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteVpcPeeringAuthorization), arg0) +} + +// DeleteVpcPeeringAuthorizationRequest mocks base method. +func (m *MockGameLiftAPI) DeleteVpcPeeringAuthorizationRequest(arg0 *gamelift.DeleteVpcPeeringAuthorizationInput) (*request.Request, *gamelift.DeleteVpcPeeringAuthorizationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteVpcPeeringAuthorizationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DeleteVpcPeeringAuthorizationOutput) + return ret0, ret1 +} + +// DeleteVpcPeeringAuthorizationRequest indicates an expected call of DeleteVpcPeeringAuthorizationRequest. +func (mr *MockGameLiftAPIMockRecorder) DeleteVpcPeeringAuthorizationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVpcPeeringAuthorizationRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteVpcPeeringAuthorizationRequest), arg0) +} + +// DeleteVpcPeeringAuthorizationWithContext mocks base method. +func (m *MockGameLiftAPI) DeleteVpcPeeringAuthorizationWithContext(arg0 aws.Context, arg1 *gamelift.DeleteVpcPeeringAuthorizationInput, arg2 ...request.Option) (*gamelift.DeleteVpcPeeringAuthorizationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteVpcPeeringAuthorizationWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DeleteVpcPeeringAuthorizationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteVpcPeeringAuthorizationWithContext indicates an expected call of DeleteVpcPeeringAuthorizationWithContext. +func (mr *MockGameLiftAPIMockRecorder) DeleteVpcPeeringAuthorizationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVpcPeeringAuthorizationWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteVpcPeeringAuthorizationWithContext), varargs...) +} + +// DeleteVpcPeeringConnection mocks base method. +func (m *MockGameLiftAPI) DeleteVpcPeeringConnection(arg0 *gamelift.DeleteVpcPeeringConnectionInput) (*gamelift.DeleteVpcPeeringConnectionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteVpcPeeringConnection", arg0) + ret0, _ := ret[0].(*gamelift.DeleteVpcPeeringConnectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteVpcPeeringConnection indicates an expected call of DeleteVpcPeeringConnection. +func (mr *MockGameLiftAPIMockRecorder) DeleteVpcPeeringConnection(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVpcPeeringConnection", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteVpcPeeringConnection), arg0) +} + +// DeleteVpcPeeringConnectionRequest mocks base method. +func (m *MockGameLiftAPI) DeleteVpcPeeringConnectionRequest(arg0 *gamelift.DeleteVpcPeeringConnectionInput) (*request.Request, *gamelift.DeleteVpcPeeringConnectionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteVpcPeeringConnectionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DeleteVpcPeeringConnectionOutput) + return ret0, ret1 +} + +// DeleteVpcPeeringConnectionRequest indicates an expected call of DeleteVpcPeeringConnectionRequest. +func (mr *MockGameLiftAPIMockRecorder) DeleteVpcPeeringConnectionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVpcPeeringConnectionRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteVpcPeeringConnectionRequest), arg0) +} + +// DeleteVpcPeeringConnectionWithContext mocks base method. +func (m *MockGameLiftAPI) DeleteVpcPeeringConnectionWithContext(arg0 aws.Context, arg1 *gamelift.DeleteVpcPeeringConnectionInput, arg2 ...request.Option) (*gamelift.DeleteVpcPeeringConnectionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteVpcPeeringConnectionWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DeleteVpcPeeringConnectionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteVpcPeeringConnectionWithContext indicates an expected call of DeleteVpcPeeringConnectionWithContext. +func (mr *MockGameLiftAPIMockRecorder) DeleteVpcPeeringConnectionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVpcPeeringConnectionWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DeleteVpcPeeringConnectionWithContext), varargs...) +} + +// DeregisterCompute mocks base method. +func (m *MockGameLiftAPI) DeregisterCompute(arg0 *gamelift.DeregisterComputeInput) (*gamelift.DeregisterComputeOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeregisterCompute", arg0) + ret0, _ := ret[0].(*gamelift.DeregisterComputeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeregisterCompute indicates an expected call of DeregisterCompute. +func (mr *MockGameLiftAPIMockRecorder) DeregisterCompute(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeregisterCompute", reflect.TypeOf((*MockGameLiftAPI)(nil).DeregisterCompute), arg0) +} + +// DeregisterComputeRequest mocks base method. +func (m *MockGameLiftAPI) DeregisterComputeRequest(arg0 *gamelift.DeregisterComputeInput) (*request.Request, *gamelift.DeregisterComputeOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeregisterComputeRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DeregisterComputeOutput) + return ret0, ret1 +} + +// DeregisterComputeRequest indicates an expected call of DeregisterComputeRequest. +func (mr *MockGameLiftAPIMockRecorder) DeregisterComputeRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeregisterComputeRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DeregisterComputeRequest), arg0) +} + +// DeregisterComputeWithContext mocks base method. +func (m *MockGameLiftAPI) DeregisterComputeWithContext(arg0 aws.Context, arg1 *gamelift.DeregisterComputeInput, arg2 ...request.Option) (*gamelift.DeregisterComputeOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeregisterComputeWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DeregisterComputeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeregisterComputeWithContext indicates an expected call of DeregisterComputeWithContext. +func (mr *MockGameLiftAPIMockRecorder) DeregisterComputeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeregisterComputeWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DeregisterComputeWithContext), varargs...) +} + +// DeregisterGameServer mocks base method. +func (m *MockGameLiftAPI) DeregisterGameServer(arg0 *gamelift.DeregisterGameServerInput) (*gamelift.DeregisterGameServerOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeregisterGameServer", arg0) + ret0, _ := ret[0].(*gamelift.DeregisterGameServerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeregisterGameServer indicates an expected call of DeregisterGameServer. +func (mr *MockGameLiftAPIMockRecorder) DeregisterGameServer(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeregisterGameServer", reflect.TypeOf((*MockGameLiftAPI)(nil).DeregisterGameServer), arg0) +} + +// DeregisterGameServerRequest mocks base method. +func (m *MockGameLiftAPI) DeregisterGameServerRequest(arg0 *gamelift.DeregisterGameServerInput) (*request.Request, *gamelift.DeregisterGameServerOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeregisterGameServerRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DeregisterGameServerOutput) + return ret0, ret1 +} + +// DeregisterGameServerRequest indicates an expected call of DeregisterGameServerRequest. +func (mr *MockGameLiftAPIMockRecorder) DeregisterGameServerRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeregisterGameServerRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DeregisterGameServerRequest), arg0) +} + +// DeregisterGameServerWithContext mocks base method. +func (m *MockGameLiftAPI) DeregisterGameServerWithContext(arg0 aws.Context, arg1 *gamelift.DeregisterGameServerInput, arg2 ...request.Option) (*gamelift.DeregisterGameServerOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeregisterGameServerWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DeregisterGameServerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeregisterGameServerWithContext indicates an expected call of DeregisterGameServerWithContext. +func (mr *MockGameLiftAPIMockRecorder) DeregisterGameServerWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeregisterGameServerWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DeregisterGameServerWithContext), varargs...) +} + +// DescribeAlias mocks base method. +func (m *MockGameLiftAPI) DescribeAlias(arg0 *gamelift.DescribeAliasInput) (*gamelift.DescribeAliasOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAlias", arg0) + ret0, _ := ret[0].(*gamelift.DescribeAliasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAlias indicates an expected call of DescribeAlias. +func (mr *MockGameLiftAPIMockRecorder) DescribeAlias(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAlias", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeAlias), arg0) +} + +// DescribeAliasRequest mocks base method. +func (m *MockGameLiftAPI) DescribeAliasRequest(arg0 *gamelift.DescribeAliasInput) (*request.Request, *gamelift.DescribeAliasOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeAliasRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DescribeAliasOutput) + return ret0, ret1 +} + +// DescribeAliasRequest indicates an expected call of DescribeAliasRequest. +func (mr *MockGameLiftAPIMockRecorder) DescribeAliasRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAliasRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeAliasRequest), arg0) +} + +// DescribeAliasWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeAliasWithContext(arg0 aws.Context, arg1 *gamelift.DescribeAliasInput, arg2 ...request.Option) (*gamelift.DescribeAliasOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeAliasWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DescribeAliasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeAliasWithContext indicates an expected call of DescribeAliasWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeAliasWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeAliasWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeAliasWithContext), varargs...) +} + +// DescribeBuild mocks base method. +func (m *MockGameLiftAPI) DescribeBuild(arg0 *gamelift.DescribeBuildInput) (*gamelift.DescribeBuildOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeBuild", arg0) + ret0, _ := ret[0].(*gamelift.DescribeBuildOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeBuild indicates an expected call of DescribeBuild. +func (mr *MockGameLiftAPIMockRecorder) DescribeBuild(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBuild", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeBuild), arg0) +} + +// DescribeBuildRequest mocks base method. +func (m *MockGameLiftAPI) DescribeBuildRequest(arg0 *gamelift.DescribeBuildInput) (*request.Request, *gamelift.DescribeBuildOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeBuildRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DescribeBuildOutput) + return ret0, ret1 +} + +// DescribeBuildRequest indicates an expected call of DescribeBuildRequest. +func (mr *MockGameLiftAPIMockRecorder) DescribeBuildRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBuildRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeBuildRequest), arg0) +} + +// DescribeBuildWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeBuildWithContext(arg0 aws.Context, arg1 *gamelift.DescribeBuildInput, arg2 ...request.Option) (*gamelift.DescribeBuildOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeBuildWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DescribeBuildOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeBuildWithContext indicates an expected call of DescribeBuildWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeBuildWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeBuildWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeBuildWithContext), varargs...) +} + +// DescribeCompute mocks base method. +func (m *MockGameLiftAPI) DescribeCompute(arg0 *gamelift.DescribeComputeInput) (*gamelift.DescribeComputeOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeCompute", arg0) + ret0, _ := ret[0].(*gamelift.DescribeComputeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeCompute indicates an expected call of DescribeCompute. +func (mr *MockGameLiftAPIMockRecorder) DescribeCompute(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCompute", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeCompute), arg0) +} + +// DescribeComputeRequest mocks base method. +func (m *MockGameLiftAPI) DescribeComputeRequest(arg0 *gamelift.DescribeComputeInput) (*request.Request, *gamelift.DescribeComputeOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeComputeRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DescribeComputeOutput) + return ret0, ret1 +} + +// DescribeComputeRequest indicates an expected call of DescribeComputeRequest. +func (mr *MockGameLiftAPIMockRecorder) DescribeComputeRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeComputeRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeComputeRequest), arg0) +} + +// DescribeComputeWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeComputeWithContext(arg0 aws.Context, arg1 *gamelift.DescribeComputeInput, arg2 ...request.Option) (*gamelift.DescribeComputeOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeComputeWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DescribeComputeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeComputeWithContext indicates an expected call of DescribeComputeWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeComputeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeComputeWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeComputeWithContext), varargs...) +} + +// DescribeContainerGroupDefinition mocks base method. +func (m *MockGameLiftAPI) DescribeContainerGroupDefinition(arg0 *gamelift.DescribeContainerGroupDefinitionInput) (*gamelift.DescribeContainerGroupDefinitionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeContainerGroupDefinition", arg0) + ret0, _ := ret[0].(*gamelift.DescribeContainerGroupDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeContainerGroupDefinition indicates an expected call of DescribeContainerGroupDefinition. +func (mr *MockGameLiftAPIMockRecorder) DescribeContainerGroupDefinition(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeContainerGroupDefinition", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeContainerGroupDefinition), arg0) +} + +// DescribeContainerGroupDefinitionRequest mocks base method. +func (m *MockGameLiftAPI) DescribeContainerGroupDefinitionRequest(arg0 *gamelift.DescribeContainerGroupDefinitionInput) (*request.Request, *gamelift.DescribeContainerGroupDefinitionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeContainerGroupDefinitionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DescribeContainerGroupDefinitionOutput) + return ret0, ret1 +} + +// DescribeContainerGroupDefinitionRequest indicates an expected call of DescribeContainerGroupDefinitionRequest. +func (mr *MockGameLiftAPIMockRecorder) DescribeContainerGroupDefinitionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeContainerGroupDefinitionRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeContainerGroupDefinitionRequest), arg0) +} + +// DescribeContainerGroupDefinitionWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeContainerGroupDefinitionWithContext(arg0 aws.Context, arg1 *gamelift.DescribeContainerGroupDefinitionInput, arg2 ...request.Option) (*gamelift.DescribeContainerGroupDefinitionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeContainerGroupDefinitionWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DescribeContainerGroupDefinitionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeContainerGroupDefinitionWithContext indicates an expected call of DescribeContainerGroupDefinitionWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeContainerGroupDefinitionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeContainerGroupDefinitionWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeContainerGroupDefinitionWithContext), varargs...) +} + +// DescribeEC2InstanceLimits mocks base method. +func (m *MockGameLiftAPI) DescribeEC2InstanceLimits(arg0 *gamelift.DescribeEC2InstanceLimitsInput) (*gamelift.DescribeEC2InstanceLimitsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeEC2InstanceLimits", arg0) + ret0, _ := ret[0].(*gamelift.DescribeEC2InstanceLimitsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeEC2InstanceLimits indicates an expected call of DescribeEC2InstanceLimits. +func (mr *MockGameLiftAPIMockRecorder) DescribeEC2InstanceLimits(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeEC2InstanceLimits", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeEC2InstanceLimits), arg0) +} + +// DescribeEC2InstanceLimitsRequest mocks base method. +func (m *MockGameLiftAPI) DescribeEC2InstanceLimitsRequest(arg0 *gamelift.DescribeEC2InstanceLimitsInput) (*request.Request, *gamelift.DescribeEC2InstanceLimitsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeEC2InstanceLimitsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DescribeEC2InstanceLimitsOutput) + return ret0, ret1 +} + +// DescribeEC2InstanceLimitsRequest indicates an expected call of DescribeEC2InstanceLimitsRequest. +func (mr *MockGameLiftAPIMockRecorder) DescribeEC2InstanceLimitsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeEC2InstanceLimitsRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeEC2InstanceLimitsRequest), arg0) +} + +// DescribeEC2InstanceLimitsWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeEC2InstanceLimitsWithContext(arg0 aws.Context, arg1 *gamelift.DescribeEC2InstanceLimitsInput, arg2 ...request.Option) (*gamelift.DescribeEC2InstanceLimitsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeEC2InstanceLimitsWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DescribeEC2InstanceLimitsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeEC2InstanceLimitsWithContext indicates an expected call of DescribeEC2InstanceLimitsWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeEC2InstanceLimitsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeEC2InstanceLimitsWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeEC2InstanceLimitsWithContext), varargs...) +} + +// DescribeFleetAttributes mocks base method. +func (m *MockGameLiftAPI) DescribeFleetAttributes(arg0 *gamelift.DescribeFleetAttributesInput) (*gamelift.DescribeFleetAttributesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeFleetAttributes", arg0) + ret0, _ := ret[0].(*gamelift.DescribeFleetAttributesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeFleetAttributes indicates an expected call of DescribeFleetAttributes. +func (mr *MockGameLiftAPIMockRecorder) DescribeFleetAttributes(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFleetAttributes", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeFleetAttributes), arg0) +} + +// DescribeFleetAttributesPages mocks base method. +func (m *MockGameLiftAPI) DescribeFleetAttributesPages(arg0 *gamelift.DescribeFleetAttributesInput, arg1 func(*gamelift.DescribeFleetAttributesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeFleetAttributesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeFleetAttributesPages indicates an expected call of DescribeFleetAttributesPages. +func (mr *MockGameLiftAPIMockRecorder) DescribeFleetAttributesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFleetAttributesPages", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeFleetAttributesPages), arg0, arg1) +} + +// DescribeFleetAttributesPagesWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeFleetAttributesPagesWithContext(arg0 aws.Context, arg1 *gamelift.DescribeFleetAttributesInput, arg2 func(*gamelift.DescribeFleetAttributesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeFleetAttributesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeFleetAttributesPagesWithContext indicates an expected call of DescribeFleetAttributesPagesWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeFleetAttributesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFleetAttributesPagesWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeFleetAttributesPagesWithContext), varargs...) +} + +// DescribeFleetAttributesRequest mocks base method. +func (m *MockGameLiftAPI) DescribeFleetAttributesRequest(arg0 *gamelift.DescribeFleetAttributesInput) (*request.Request, *gamelift.DescribeFleetAttributesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeFleetAttributesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DescribeFleetAttributesOutput) + return ret0, ret1 +} + +// DescribeFleetAttributesRequest indicates an expected call of DescribeFleetAttributesRequest. +func (mr *MockGameLiftAPIMockRecorder) DescribeFleetAttributesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFleetAttributesRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeFleetAttributesRequest), arg0) +} + +// DescribeFleetAttributesWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeFleetAttributesWithContext(arg0 aws.Context, arg1 *gamelift.DescribeFleetAttributesInput, arg2 ...request.Option) (*gamelift.DescribeFleetAttributesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeFleetAttributesWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DescribeFleetAttributesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeFleetAttributesWithContext indicates an expected call of DescribeFleetAttributesWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeFleetAttributesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFleetAttributesWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeFleetAttributesWithContext), varargs...) +} + +// DescribeFleetCapacity mocks base method. +func (m *MockGameLiftAPI) DescribeFleetCapacity(arg0 *gamelift.DescribeFleetCapacityInput) (*gamelift.DescribeFleetCapacityOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeFleetCapacity", arg0) + ret0, _ := ret[0].(*gamelift.DescribeFleetCapacityOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeFleetCapacity indicates an expected call of DescribeFleetCapacity. +func (mr *MockGameLiftAPIMockRecorder) DescribeFleetCapacity(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFleetCapacity", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeFleetCapacity), arg0) +} + +// DescribeFleetCapacityPages mocks base method. +func (m *MockGameLiftAPI) DescribeFleetCapacityPages(arg0 *gamelift.DescribeFleetCapacityInput, arg1 func(*gamelift.DescribeFleetCapacityOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeFleetCapacityPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeFleetCapacityPages indicates an expected call of DescribeFleetCapacityPages. +func (mr *MockGameLiftAPIMockRecorder) DescribeFleetCapacityPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFleetCapacityPages", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeFleetCapacityPages), arg0, arg1) +} + +// DescribeFleetCapacityPagesWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeFleetCapacityPagesWithContext(arg0 aws.Context, arg1 *gamelift.DescribeFleetCapacityInput, arg2 func(*gamelift.DescribeFleetCapacityOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeFleetCapacityPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeFleetCapacityPagesWithContext indicates an expected call of DescribeFleetCapacityPagesWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeFleetCapacityPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFleetCapacityPagesWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeFleetCapacityPagesWithContext), varargs...) +} + +// DescribeFleetCapacityRequest mocks base method. +func (m *MockGameLiftAPI) DescribeFleetCapacityRequest(arg0 *gamelift.DescribeFleetCapacityInput) (*request.Request, *gamelift.DescribeFleetCapacityOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeFleetCapacityRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DescribeFleetCapacityOutput) + return ret0, ret1 +} + +// DescribeFleetCapacityRequest indicates an expected call of DescribeFleetCapacityRequest. +func (mr *MockGameLiftAPIMockRecorder) DescribeFleetCapacityRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFleetCapacityRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeFleetCapacityRequest), arg0) +} + +// DescribeFleetCapacityWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeFleetCapacityWithContext(arg0 aws.Context, arg1 *gamelift.DescribeFleetCapacityInput, arg2 ...request.Option) (*gamelift.DescribeFleetCapacityOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeFleetCapacityWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DescribeFleetCapacityOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeFleetCapacityWithContext indicates an expected call of DescribeFleetCapacityWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeFleetCapacityWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFleetCapacityWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeFleetCapacityWithContext), varargs...) +} + +// DescribeFleetEvents mocks base method. +func (m *MockGameLiftAPI) DescribeFleetEvents(arg0 *gamelift.DescribeFleetEventsInput) (*gamelift.DescribeFleetEventsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeFleetEvents", arg0) + ret0, _ := ret[0].(*gamelift.DescribeFleetEventsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeFleetEvents indicates an expected call of DescribeFleetEvents. +func (mr *MockGameLiftAPIMockRecorder) DescribeFleetEvents(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFleetEvents", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeFleetEvents), arg0) +} + +// DescribeFleetEventsPages mocks base method. +func (m *MockGameLiftAPI) DescribeFleetEventsPages(arg0 *gamelift.DescribeFleetEventsInput, arg1 func(*gamelift.DescribeFleetEventsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeFleetEventsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeFleetEventsPages indicates an expected call of DescribeFleetEventsPages. +func (mr *MockGameLiftAPIMockRecorder) DescribeFleetEventsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFleetEventsPages", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeFleetEventsPages), arg0, arg1) +} + +// DescribeFleetEventsPagesWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeFleetEventsPagesWithContext(arg0 aws.Context, arg1 *gamelift.DescribeFleetEventsInput, arg2 func(*gamelift.DescribeFleetEventsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeFleetEventsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeFleetEventsPagesWithContext indicates an expected call of DescribeFleetEventsPagesWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeFleetEventsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFleetEventsPagesWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeFleetEventsPagesWithContext), varargs...) +} + +// DescribeFleetEventsRequest mocks base method. +func (m *MockGameLiftAPI) DescribeFleetEventsRequest(arg0 *gamelift.DescribeFleetEventsInput) (*request.Request, *gamelift.DescribeFleetEventsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeFleetEventsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DescribeFleetEventsOutput) + return ret0, ret1 +} + +// DescribeFleetEventsRequest indicates an expected call of DescribeFleetEventsRequest. +func (mr *MockGameLiftAPIMockRecorder) DescribeFleetEventsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFleetEventsRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeFleetEventsRequest), arg0) +} + +// DescribeFleetEventsWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeFleetEventsWithContext(arg0 aws.Context, arg1 *gamelift.DescribeFleetEventsInput, arg2 ...request.Option) (*gamelift.DescribeFleetEventsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeFleetEventsWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DescribeFleetEventsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeFleetEventsWithContext indicates an expected call of DescribeFleetEventsWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeFleetEventsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFleetEventsWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeFleetEventsWithContext), varargs...) +} + +// DescribeFleetLocationAttributes mocks base method. +func (m *MockGameLiftAPI) DescribeFleetLocationAttributes(arg0 *gamelift.DescribeFleetLocationAttributesInput) (*gamelift.DescribeFleetLocationAttributesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeFleetLocationAttributes", arg0) + ret0, _ := ret[0].(*gamelift.DescribeFleetLocationAttributesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeFleetLocationAttributes indicates an expected call of DescribeFleetLocationAttributes. +func (mr *MockGameLiftAPIMockRecorder) DescribeFleetLocationAttributes(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFleetLocationAttributes", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeFleetLocationAttributes), arg0) +} + +// DescribeFleetLocationAttributesPages mocks base method. +func (m *MockGameLiftAPI) DescribeFleetLocationAttributesPages(arg0 *gamelift.DescribeFleetLocationAttributesInput, arg1 func(*gamelift.DescribeFleetLocationAttributesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeFleetLocationAttributesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeFleetLocationAttributesPages indicates an expected call of DescribeFleetLocationAttributesPages. +func (mr *MockGameLiftAPIMockRecorder) DescribeFleetLocationAttributesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFleetLocationAttributesPages", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeFleetLocationAttributesPages), arg0, arg1) +} + +// DescribeFleetLocationAttributesPagesWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeFleetLocationAttributesPagesWithContext(arg0 aws.Context, arg1 *gamelift.DescribeFleetLocationAttributesInput, arg2 func(*gamelift.DescribeFleetLocationAttributesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeFleetLocationAttributesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeFleetLocationAttributesPagesWithContext indicates an expected call of DescribeFleetLocationAttributesPagesWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeFleetLocationAttributesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFleetLocationAttributesPagesWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeFleetLocationAttributesPagesWithContext), varargs...) +} + +// DescribeFleetLocationAttributesRequest mocks base method. +func (m *MockGameLiftAPI) DescribeFleetLocationAttributesRequest(arg0 *gamelift.DescribeFleetLocationAttributesInput) (*request.Request, *gamelift.DescribeFleetLocationAttributesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeFleetLocationAttributesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DescribeFleetLocationAttributesOutput) + return ret0, ret1 +} + +// DescribeFleetLocationAttributesRequest indicates an expected call of DescribeFleetLocationAttributesRequest. +func (mr *MockGameLiftAPIMockRecorder) DescribeFleetLocationAttributesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFleetLocationAttributesRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeFleetLocationAttributesRequest), arg0) +} + +// DescribeFleetLocationAttributesWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeFleetLocationAttributesWithContext(arg0 aws.Context, arg1 *gamelift.DescribeFleetLocationAttributesInput, arg2 ...request.Option) (*gamelift.DescribeFleetLocationAttributesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeFleetLocationAttributesWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DescribeFleetLocationAttributesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeFleetLocationAttributesWithContext indicates an expected call of DescribeFleetLocationAttributesWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeFleetLocationAttributesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFleetLocationAttributesWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeFleetLocationAttributesWithContext), varargs...) +} + +// DescribeFleetLocationCapacity mocks base method. +func (m *MockGameLiftAPI) DescribeFleetLocationCapacity(arg0 *gamelift.DescribeFleetLocationCapacityInput) (*gamelift.DescribeFleetLocationCapacityOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeFleetLocationCapacity", arg0) + ret0, _ := ret[0].(*gamelift.DescribeFleetLocationCapacityOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeFleetLocationCapacity indicates an expected call of DescribeFleetLocationCapacity. +func (mr *MockGameLiftAPIMockRecorder) DescribeFleetLocationCapacity(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFleetLocationCapacity", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeFleetLocationCapacity), arg0) +} + +// DescribeFleetLocationCapacityRequest mocks base method. +func (m *MockGameLiftAPI) DescribeFleetLocationCapacityRequest(arg0 *gamelift.DescribeFleetLocationCapacityInput) (*request.Request, *gamelift.DescribeFleetLocationCapacityOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeFleetLocationCapacityRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DescribeFleetLocationCapacityOutput) + return ret0, ret1 +} + +// DescribeFleetLocationCapacityRequest indicates an expected call of DescribeFleetLocationCapacityRequest. +func (mr *MockGameLiftAPIMockRecorder) DescribeFleetLocationCapacityRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFleetLocationCapacityRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeFleetLocationCapacityRequest), arg0) +} + +// DescribeFleetLocationCapacityWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeFleetLocationCapacityWithContext(arg0 aws.Context, arg1 *gamelift.DescribeFleetLocationCapacityInput, arg2 ...request.Option) (*gamelift.DescribeFleetLocationCapacityOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeFleetLocationCapacityWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DescribeFleetLocationCapacityOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeFleetLocationCapacityWithContext indicates an expected call of DescribeFleetLocationCapacityWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeFleetLocationCapacityWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFleetLocationCapacityWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeFleetLocationCapacityWithContext), varargs...) +} + +// DescribeFleetLocationUtilization mocks base method. +func (m *MockGameLiftAPI) DescribeFleetLocationUtilization(arg0 *gamelift.DescribeFleetLocationUtilizationInput) (*gamelift.DescribeFleetLocationUtilizationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeFleetLocationUtilization", arg0) + ret0, _ := ret[0].(*gamelift.DescribeFleetLocationUtilizationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeFleetLocationUtilization indicates an expected call of DescribeFleetLocationUtilization. +func (mr *MockGameLiftAPIMockRecorder) DescribeFleetLocationUtilization(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFleetLocationUtilization", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeFleetLocationUtilization), arg0) +} + +// DescribeFleetLocationUtilizationRequest mocks base method. +func (m *MockGameLiftAPI) DescribeFleetLocationUtilizationRequest(arg0 *gamelift.DescribeFleetLocationUtilizationInput) (*request.Request, *gamelift.DescribeFleetLocationUtilizationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeFleetLocationUtilizationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DescribeFleetLocationUtilizationOutput) + return ret0, ret1 +} + +// DescribeFleetLocationUtilizationRequest indicates an expected call of DescribeFleetLocationUtilizationRequest. +func (mr *MockGameLiftAPIMockRecorder) DescribeFleetLocationUtilizationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFleetLocationUtilizationRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeFleetLocationUtilizationRequest), arg0) +} + +// DescribeFleetLocationUtilizationWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeFleetLocationUtilizationWithContext(arg0 aws.Context, arg1 *gamelift.DescribeFleetLocationUtilizationInput, arg2 ...request.Option) (*gamelift.DescribeFleetLocationUtilizationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeFleetLocationUtilizationWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DescribeFleetLocationUtilizationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeFleetLocationUtilizationWithContext indicates an expected call of DescribeFleetLocationUtilizationWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeFleetLocationUtilizationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFleetLocationUtilizationWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeFleetLocationUtilizationWithContext), varargs...) +} + +// DescribeFleetPortSettings mocks base method. +func (m *MockGameLiftAPI) DescribeFleetPortSettings(arg0 *gamelift.DescribeFleetPortSettingsInput) (*gamelift.DescribeFleetPortSettingsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeFleetPortSettings", arg0) + ret0, _ := ret[0].(*gamelift.DescribeFleetPortSettingsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeFleetPortSettings indicates an expected call of DescribeFleetPortSettings. +func (mr *MockGameLiftAPIMockRecorder) DescribeFleetPortSettings(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFleetPortSettings", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeFleetPortSettings), arg0) +} + +// DescribeFleetPortSettingsRequest mocks base method. +func (m *MockGameLiftAPI) DescribeFleetPortSettingsRequest(arg0 *gamelift.DescribeFleetPortSettingsInput) (*request.Request, *gamelift.DescribeFleetPortSettingsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeFleetPortSettingsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DescribeFleetPortSettingsOutput) + return ret0, ret1 +} + +// DescribeFleetPortSettingsRequest indicates an expected call of DescribeFleetPortSettingsRequest. +func (mr *MockGameLiftAPIMockRecorder) DescribeFleetPortSettingsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFleetPortSettingsRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeFleetPortSettingsRequest), arg0) +} + +// DescribeFleetPortSettingsWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeFleetPortSettingsWithContext(arg0 aws.Context, arg1 *gamelift.DescribeFleetPortSettingsInput, arg2 ...request.Option) (*gamelift.DescribeFleetPortSettingsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeFleetPortSettingsWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DescribeFleetPortSettingsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeFleetPortSettingsWithContext indicates an expected call of DescribeFleetPortSettingsWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeFleetPortSettingsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFleetPortSettingsWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeFleetPortSettingsWithContext), varargs...) +} + +// DescribeFleetUtilization mocks base method. +func (m *MockGameLiftAPI) DescribeFleetUtilization(arg0 *gamelift.DescribeFleetUtilizationInput) (*gamelift.DescribeFleetUtilizationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeFleetUtilization", arg0) + ret0, _ := ret[0].(*gamelift.DescribeFleetUtilizationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeFleetUtilization indicates an expected call of DescribeFleetUtilization. +func (mr *MockGameLiftAPIMockRecorder) DescribeFleetUtilization(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFleetUtilization", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeFleetUtilization), arg0) +} + +// DescribeFleetUtilizationPages mocks base method. +func (m *MockGameLiftAPI) DescribeFleetUtilizationPages(arg0 *gamelift.DescribeFleetUtilizationInput, arg1 func(*gamelift.DescribeFleetUtilizationOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeFleetUtilizationPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeFleetUtilizationPages indicates an expected call of DescribeFleetUtilizationPages. +func (mr *MockGameLiftAPIMockRecorder) DescribeFleetUtilizationPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFleetUtilizationPages", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeFleetUtilizationPages), arg0, arg1) +} + +// DescribeFleetUtilizationPagesWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeFleetUtilizationPagesWithContext(arg0 aws.Context, arg1 *gamelift.DescribeFleetUtilizationInput, arg2 func(*gamelift.DescribeFleetUtilizationOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeFleetUtilizationPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeFleetUtilizationPagesWithContext indicates an expected call of DescribeFleetUtilizationPagesWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeFleetUtilizationPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFleetUtilizationPagesWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeFleetUtilizationPagesWithContext), varargs...) +} + +// DescribeFleetUtilizationRequest mocks base method. +func (m *MockGameLiftAPI) DescribeFleetUtilizationRequest(arg0 *gamelift.DescribeFleetUtilizationInput) (*request.Request, *gamelift.DescribeFleetUtilizationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeFleetUtilizationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DescribeFleetUtilizationOutput) + return ret0, ret1 +} + +// DescribeFleetUtilizationRequest indicates an expected call of DescribeFleetUtilizationRequest. +func (mr *MockGameLiftAPIMockRecorder) DescribeFleetUtilizationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFleetUtilizationRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeFleetUtilizationRequest), arg0) +} + +// DescribeFleetUtilizationWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeFleetUtilizationWithContext(arg0 aws.Context, arg1 *gamelift.DescribeFleetUtilizationInput, arg2 ...request.Option) (*gamelift.DescribeFleetUtilizationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeFleetUtilizationWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DescribeFleetUtilizationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeFleetUtilizationWithContext indicates an expected call of DescribeFleetUtilizationWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeFleetUtilizationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeFleetUtilizationWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeFleetUtilizationWithContext), varargs...) +} + +// DescribeGameServer mocks base method. +func (m *MockGameLiftAPI) DescribeGameServer(arg0 *gamelift.DescribeGameServerInput) (*gamelift.DescribeGameServerOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeGameServer", arg0) + ret0, _ := ret[0].(*gamelift.DescribeGameServerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeGameServer indicates an expected call of DescribeGameServer. +func (mr *MockGameLiftAPIMockRecorder) DescribeGameServer(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGameServer", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeGameServer), arg0) +} + +// DescribeGameServerGroup mocks base method. +func (m *MockGameLiftAPI) DescribeGameServerGroup(arg0 *gamelift.DescribeGameServerGroupInput) (*gamelift.DescribeGameServerGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeGameServerGroup", arg0) + ret0, _ := ret[0].(*gamelift.DescribeGameServerGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeGameServerGroup indicates an expected call of DescribeGameServerGroup. +func (mr *MockGameLiftAPIMockRecorder) DescribeGameServerGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGameServerGroup", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeGameServerGroup), arg0) +} + +// DescribeGameServerGroupRequest mocks base method. +func (m *MockGameLiftAPI) DescribeGameServerGroupRequest(arg0 *gamelift.DescribeGameServerGroupInput) (*request.Request, *gamelift.DescribeGameServerGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeGameServerGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DescribeGameServerGroupOutput) + return ret0, ret1 +} + +// DescribeGameServerGroupRequest indicates an expected call of DescribeGameServerGroupRequest. +func (mr *MockGameLiftAPIMockRecorder) DescribeGameServerGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGameServerGroupRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeGameServerGroupRequest), arg0) +} + +// DescribeGameServerGroupWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeGameServerGroupWithContext(arg0 aws.Context, arg1 *gamelift.DescribeGameServerGroupInput, arg2 ...request.Option) (*gamelift.DescribeGameServerGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeGameServerGroupWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DescribeGameServerGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeGameServerGroupWithContext indicates an expected call of DescribeGameServerGroupWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeGameServerGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGameServerGroupWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeGameServerGroupWithContext), varargs...) +} + +// DescribeGameServerInstances mocks base method. +func (m *MockGameLiftAPI) DescribeGameServerInstances(arg0 *gamelift.DescribeGameServerInstancesInput) (*gamelift.DescribeGameServerInstancesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeGameServerInstances", arg0) + ret0, _ := ret[0].(*gamelift.DescribeGameServerInstancesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeGameServerInstances indicates an expected call of DescribeGameServerInstances. +func (mr *MockGameLiftAPIMockRecorder) DescribeGameServerInstances(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGameServerInstances", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeGameServerInstances), arg0) +} + +// DescribeGameServerInstancesPages mocks base method. +func (m *MockGameLiftAPI) DescribeGameServerInstancesPages(arg0 *gamelift.DescribeGameServerInstancesInput, arg1 func(*gamelift.DescribeGameServerInstancesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeGameServerInstancesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeGameServerInstancesPages indicates an expected call of DescribeGameServerInstancesPages. +func (mr *MockGameLiftAPIMockRecorder) DescribeGameServerInstancesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGameServerInstancesPages", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeGameServerInstancesPages), arg0, arg1) +} + +// DescribeGameServerInstancesPagesWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeGameServerInstancesPagesWithContext(arg0 aws.Context, arg1 *gamelift.DescribeGameServerInstancesInput, arg2 func(*gamelift.DescribeGameServerInstancesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeGameServerInstancesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeGameServerInstancesPagesWithContext indicates an expected call of DescribeGameServerInstancesPagesWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeGameServerInstancesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGameServerInstancesPagesWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeGameServerInstancesPagesWithContext), varargs...) +} + +// DescribeGameServerInstancesRequest mocks base method. +func (m *MockGameLiftAPI) DescribeGameServerInstancesRequest(arg0 *gamelift.DescribeGameServerInstancesInput) (*request.Request, *gamelift.DescribeGameServerInstancesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeGameServerInstancesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DescribeGameServerInstancesOutput) + return ret0, ret1 +} + +// DescribeGameServerInstancesRequest indicates an expected call of DescribeGameServerInstancesRequest. +func (mr *MockGameLiftAPIMockRecorder) DescribeGameServerInstancesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGameServerInstancesRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeGameServerInstancesRequest), arg0) +} + +// DescribeGameServerInstancesWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeGameServerInstancesWithContext(arg0 aws.Context, arg1 *gamelift.DescribeGameServerInstancesInput, arg2 ...request.Option) (*gamelift.DescribeGameServerInstancesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeGameServerInstancesWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DescribeGameServerInstancesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeGameServerInstancesWithContext indicates an expected call of DescribeGameServerInstancesWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeGameServerInstancesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGameServerInstancesWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeGameServerInstancesWithContext), varargs...) +} + +// DescribeGameServerRequest mocks base method. +func (m *MockGameLiftAPI) DescribeGameServerRequest(arg0 *gamelift.DescribeGameServerInput) (*request.Request, *gamelift.DescribeGameServerOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeGameServerRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DescribeGameServerOutput) + return ret0, ret1 +} + +// DescribeGameServerRequest indicates an expected call of DescribeGameServerRequest. +func (mr *MockGameLiftAPIMockRecorder) DescribeGameServerRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGameServerRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeGameServerRequest), arg0) +} + +// DescribeGameServerWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeGameServerWithContext(arg0 aws.Context, arg1 *gamelift.DescribeGameServerInput, arg2 ...request.Option) (*gamelift.DescribeGameServerOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeGameServerWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DescribeGameServerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeGameServerWithContext indicates an expected call of DescribeGameServerWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeGameServerWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGameServerWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeGameServerWithContext), varargs...) +} + +// DescribeGameSessionDetails mocks base method. +func (m *MockGameLiftAPI) DescribeGameSessionDetails(arg0 *gamelift.DescribeGameSessionDetailsInput) (*gamelift.DescribeGameSessionDetailsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeGameSessionDetails", arg0) + ret0, _ := ret[0].(*gamelift.DescribeGameSessionDetailsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeGameSessionDetails indicates an expected call of DescribeGameSessionDetails. +func (mr *MockGameLiftAPIMockRecorder) DescribeGameSessionDetails(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGameSessionDetails", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeGameSessionDetails), arg0) +} + +// DescribeGameSessionDetailsPages mocks base method. +func (m *MockGameLiftAPI) DescribeGameSessionDetailsPages(arg0 *gamelift.DescribeGameSessionDetailsInput, arg1 func(*gamelift.DescribeGameSessionDetailsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeGameSessionDetailsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeGameSessionDetailsPages indicates an expected call of DescribeGameSessionDetailsPages. +func (mr *MockGameLiftAPIMockRecorder) DescribeGameSessionDetailsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGameSessionDetailsPages", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeGameSessionDetailsPages), arg0, arg1) +} + +// DescribeGameSessionDetailsPagesWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeGameSessionDetailsPagesWithContext(arg0 aws.Context, arg1 *gamelift.DescribeGameSessionDetailsInput, arg2 func(*gamelift.DescribeGameSessionDetailsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeGameSessionDetailsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeGameSessionDetailsPagesWithContext indicates an expected call of DescribeGameSessionDetailsPagesWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeGameSessionDetailsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGameSessionDetailsPagesWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeGameSessionDetailsPagesWithContext), varargs...) +} + +// DescribeGameSessionDetailsRequest mocks base method. +func (m *MockGameLiftAPI) DescribeGameSessionDetailsRequest(arg0 *gamelift.DescribeGameSessionDetailsInput) (*request.Request, *gamelift.DescribeGameSessionDetailsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeGameSessionDetailsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DescribeGameSessionDetailsOutput) + return ret0, ret1 +} + +// DescribeGameSessionDetailsRequest indicates an expected call of DescribeGameSessionDetailsRequest. +func (mr *MockGameLiftAPIMockRecorder) DescribeGameSessionDetailsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGameSessionDetailsRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeGameSessionDetailsRequest), arg0) +} + +// DescribeGameSessionDetailsWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeGameSessionDetailsWithContext(arg0 aws.Context, arg1 *gamelift.DescribeGameSessionDetailsInput, arg2 ...request.Option) (*gamelift.DescribeGameSessionDetailsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeGameSessionDetailsWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DescribeGameSessionDetailsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeGameSessionDetailsWithContext indicates an expected call of DescribeGameSessionDetailsWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeGameSessionDetailsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGameSessionDetailsWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeGameSessionDetailsWithContext), varargs...) +} + +// DescribeGameSessionPlacement mocks base method. +func (m *MockGameLiftAPI) DescribeGameSessionPlacement(arg0 *gamelift.DescribeGameSessionPlacementInput) (*gamelift.DescribeGameSessionPlacementOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeGameSessionPlacement", arg0) + ret0, _ := ret[0].(*gamelift.DescribeGameSessionPlacementOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeGameSessionPlacement indicates an expected call of DescribeGameSessionPlacement. +func (mr *MockGameLiftAPIMockRecorder) DescribeGameSessionPlacement(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGameSessionPlacement", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeGameSessionPlacement), arg0) +} + +// DescribeGameSessionPlacementRequest mocks base method. +func (m *MockGameLiftAPI) DescribeGameSessionPlacementRequest(arg0 *gamelift.DescribeGameSessionPlacementInput) (*request.Request, *gamelift.DescribeGameSessionPlacementOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeGameSessionPlacementRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DescribeGameSessionPlacementOutput) + return ret0, ret1 +} + +// DescribeGameSessionPlacementRequest indicates an expected call of DescribeGameSessionPlacementRequest. +func (mr *MockGameLiftAPIMockRecorder) DescribeGameSessionPlacementRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGameSessionPlacementRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeGameSessionPlacementRequest), arg0) +} + +// DescribeGameSessionPlacementWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeGameSessionPlacementWithContext(arg0 aws.Context, arg1 *gamelift.DescribeGameSessionPlacementInput, arg2 ...request.Option) (*gamelift.DescribeGameSessionPlacementOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeGameSessionPlacementWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DescribeGameSessionPlacementOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeGameSessionPlacementWithContext indicates an expected call of DescribeGameSessionPlacementWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeGameSessionPlacementWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGameSessionPlacementWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeGameSessionPlacementWithContext), varargs...) +} + +// DescribeGameSessionQueues mocks base method. +func (m *MockGameLiftAPI) DescribeGameSessionQueues(arg0 *gamelift.DescribeGameSessionQueuesInput) (*gamelift.DescribeGameSessionQueuesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeGameSessionQueues", arg0) + ret0, _ := ret[0].(*gamelift.DescribeGameSessionQueuesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeGameSessionQueues indicates an expected call of DescribeGameSessionQueues. +func (mr *MockGameLiftAPIMockRecorder) DescribeGameSessionQueues(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGameSessionQueues", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeGameSessionQueues), arg0) +} + +// DescribeGameSessionQueuesPages mocks base method. +func (m *MockGameLiftAPI) DescribeGameSessionQueuesPages(arg0 *gamelift.DescribeGameSessionQueuesInput, arg1 func(*gamelift.DescribeGameSessionQueuesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeGameSessionQueuesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeGameSessionQueuesPages indicates an expected call of DescribeGameSessionQueuesPages. +func (mr *MockGameLiftAPIMockRecorder) DescribeGameSessionQueuesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGameSessionQueuesPages", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeGameSessionQueuesPages), arg0, arg1) +} + +// DescribeGameSessionQueuesPagesWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeGameSessionQueuesPagesWithContext(arg0 aws.Context, arg1 *gamelift.DescribeGameSessionQueuesInput, arg2 func(*gamelift.DescribeGameSessionQueuesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeGameSessionQueuesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeGameSessionQueuesPagesWithContext indicates an expected call of DescribeGameSessionQueuesPagesWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeGameSessionQueuesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGameSessionQueuesPagesWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeGameSessionQueuesPagesWithContext), varargs...) +} + +// DescribeGameSessionQueuesRequest mocks base method. +func (m *MockGameLiftAPI) DescribeGameSessionQueuesRequest(arg0 *gamelift.DescribeGameSessionQueuesInput) (*request.Request, *gamelift.DescribeGameSessionQueuesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeGameSessionQueuesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DescribeGameSessionQueuesOutput) + return ret0, ret1 +} + +// DescribeGameSessionQueuesRequest indicates an expected call of DescribeGameSessionQueuesRequest. +func (mr *MockGameLiftAPIMockRecorder) DescribeGameSessionQueuesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGameSessionQueuesRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeGameSessionQueuesRequest), arg0) +} + +// DescribeGameSessionQueuesWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeGameSessionQueuesWithContext(arg0 aws.Context, arg1 *gamelift.DescribeGameSessionQueuesInput, arg2 ...request.Option) (*gamelift.DescribeGameSessionQueuesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeGameSessionQueuesWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DescribeGameSessionQueuesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeGameSessionQueuesWithContext indicates an expected call of DescribeGameSessionQueuesWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeGameSessionQueuesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGameSessionQueuesWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeGameSessionQueuesWithContext), varargs...) +} + +// DescribeGameSessions mocks base method. +func (m *MockGameLiftAPI) DescribeGameSessions(arg0 *gamelift.DescribeGameSessionsInput) (*gamelift.DescribeGameSessionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeGameSessions", arg0) + ret0, _ := ret[0].(*gamelift.DescribeGameSessionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeGameSessions indicates an expected call of DescribeGameSessions. +func (mr *MockGameLiftAPIMockRecorder) DescribeGameSessions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGameSessions", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeGameSessions), arg0) +} + +// DescribeGameSessionsPages mocks base method. +func (m *MockGameLiftAPI) DescribeGameSessionsPages(arg0 *gamelift.DescribeGameSessionsInput, arg1 func(*gamelift.DescribeGameSessionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeGameSessionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeGameSessionsPages indicates an expected call of DescribeGameSessionsPages. +func (mr *MockGameLiftAPIMockRecorder) DescribeGameSessionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGameSessionsPages", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeGameSessionsPages), arg0, arg1) +} + +// DescribeGameSessionsPagesWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeGameSessionsPagesWithContext(arg0 aws.Context, arg1 *gamelift.DescribeGameSessionsInput, arg2 func(*gamelift.DescribeGameSessionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeGameSessionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeGameSessionsPagesWithContext indicates an expected call of DescribeGameSessionsPagesWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeGameSessionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGameSessionsPagesWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeGameSessionsPagesWithContext), varargs...) +} + +// DescribeGameSessionsRequest mocks base method. +func (m *MockGameLiftAPI) DescribeGameSessionsRequest(arg0 *gamelift.DescribeGameSessionsInput) (*request.Request, *gamelift.DescribeGameSessionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeGameSessionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DescribeGameSessionsOutput) + return ret0, ret1 +} + +// DescribeGameSessionsRequest indicates an expected call of DescribeGameSessionsRequest. +func (mr *MockGameLiftAPIMockRecorder) DescribeGameSessionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGameSessionsRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeGameSessionsRequest), arg0) +} + +// DescribeGameSessionsWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeGameSessionsWithContext(arg0 aws.Context, arg1 *gamelift.DescribeGameSessionsInput, arg2 ...request.Option) (*gamelift.DescribeGameSessionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeGameSessionsWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DescribeGameSessionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeGameSessionsWithContext indicates an expected call of DescribeGameSessionsWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeGameSessionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeGameSessionsWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeGameSessionsWithContext), varargs...) +} + +// DescribeInstances mocks base method. +func (m *MockGameLiftAPI) DescribeInstances(arg0 *gamelift.DescribeInstancesInput) (*gamelift.DescribeInstancesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeInstances", arg0) + ret0, _ := ret[0].(*gamelift.DescribeInstancesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeInstances indicates an expected call of DescribeInstances. +func (mr *MockGameLiftAPIMockRecorder) DescribeInstances(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeInstances", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeInstances), arg0) +} + +// DescribeInstancesPages mocks base method. +func (m *MockGameLiftAPI) DescribeInstancesPages(arg0 *gamelift.DescribeInstancesInput, arg1 func(*gamelift.DescribeInstancesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeInstancesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeInstancesPages indicates an expected call of DescribeInstancesPages. +func (mr *MockGameLiftAPIMockRecorder) DescribeInstancesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeInstancesPages", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeInstancesPages), arg0, arg1) +} + +// DescribeInstancesPagesWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeInstancesPagesWithContext(arg0 aws.Context, arg1 *gamelift.DescribeInstancesInput, arg2 func(*gamelift.DescribeInstancesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeInstancesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeInstancesPagesWithContext indicates an expected call of DescribeInstancesPagesWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeInstancesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeInstancesPagesWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeInstancesPagesWithContext), varargs...) +} + +// DescribeInstancesRequest mocks base method. +func (m *MockGameLiftAPI) DescribeInstancesRequest(arg0 *gamelift.DescribeInstancesInput) (*request.Request, *gamelift.DescribeInstancesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeInstancesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DescribeInstancesOutput) + return ret0, ret1 +} + +// DescribeInstancesRequest indicates an expected call of DescribeInstancesRequest. +func (mr *MockGameLiftAPIMockRecorder) DescribeInstancesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeInstancesRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeInstancesRequest), arg0) +} + +// DescribeInstancesWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeInstancesWithContext(arg0 aws.Context, arg1 *gamelift.DescribeInstancesInput, arg2 ...request.Option) (*gamelift.DescribeInstancesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeInstancesWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DescribeInstancesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeInstancesWithContext indicates an expected call of DescribeInstancesWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeInstancesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeInstancesWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeInstancesWithContext), varargs...) +} + +// DescribeMatchmaking mocks base method. +func (m *MockGameLiftAPI) DescribeMatchmaking(arg0 *gamelift.DescribeMatchmakingInput) (*gamelift.DescribeMatchmakingOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeMatchmaking", arg0) + ret0, _ := ret[0].(*gamelift.DescribeMatchmakingOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeMatchmaking indicates an expected call of DescribeMatchmaking. +func (mr *MockGameLiftAPIMockRecorder) DescribeMatchmaking(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeMatchmaking", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeMatchmaking), arg0) +} + +// DescribeMatchmakingConfigurations mocks base method. +func (m *MockGameLiftAPI) DescribeMatchmakingConfigurations(arg0 *gamelift.DescribeMatchmakingConfigurationsInput) (*gamelift.DescribeMatchmakingConfigurationsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeMatchmakingConfigurations", arg0) + ret0, _ := ret[0].(*gamelift.DescribeMatchmakingConfigurationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeMatchmakingConfigurations indicates an expected call of DescribeMatchmakingConfigurations. +func (mr *MockGameLiftAPIMockRecorder) DescribeMatchmakingConfigurations(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeMatchmakingConfigurations", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeMatchmakingConfigurations), arg0) +} + +// DescribeMatchmakingConfigurationsPages mocks base method. +func (m *MockGameLiftAPI) DescribeMatchmakingConfigurationsPages(arg0 *gamelift.DescribeMatchmakingConfigurationsInput, arg1 func(*gamelift.DescribeMatchmakingConfigurationsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeMatchmakingConfigurationsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeMatchmakingConfigurationsPages indicates an expected call of DescribeMatchmakingConfigurationsPages. +func (mr *MockGameLiftAPIMockRecorder) DescribeMatchmakingConfigurationsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeMatchmakingConfigurationsPages", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeMatchmakingConfigurationsPages), arg0, arg1) +} + +// DescribeMatchmakingConfigurationsPagesWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeMatchmakingConfigurationsPagesWithContext(arg0 aws.Context, arg1 *gamelift.DescribeMatchmakingConfigurationsInput, arg2 func(*gamelift.DescribeMatchmakingConfigurationsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeMatchmakingConfigurationsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeMatchmakingConfigurationsPagesWithContext indicates an expected call of DescribeMatchmakingConfigurationsPagesWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeMatchmakingConfigurationsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeMatchmakingConfigurationsPagesWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeMatchmakingConfigurationsPagesWithContext), varargs...) +} + +// DescribeMatchmakingConfigurationsRequest mocks base method. +func (m *MockGameLiftAPI) DescribeMatchmakingConfigurationsRequest(arg0 *gamelift.DescribeMatchmakingConfigurationsInput) (*request.Request, *gamelift.DescribeMatchmakingConfigurationsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeMatchmakingConfigurationsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DescribeMatchmakingConfigurationsOutput) + return ret0, ret1 +} + +// DescribeMatchmakingConfigurationsRequest indicates an expected call of DescribeMatchmakingConfigurationsRequest. +func (mr *MockGameLiftAPIMockRecorder) DescribeMatchmakingConfigurationsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeMatchmakingConfigurationsRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeMatchmakingConfigurationsRequest), arg0) +} + +// DescribeMatchmakingConfigurationsWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeMatchmakingConfigurationsWithContext(arg0 aws.Context, arg1 *gamelift.DescribeMatchmakingConfigurationsInput, arg2 ...request.Option) (*gamelift.DescribeMatchmakingConfigurationsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeMatchmakingConfigurationsWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DescribeMatchmakingConfigurationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeMatchmakingConfigurationsWithContext indicates an expected call of DescribeMatchmakingConfigurationsWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeMatchmakingConfigurationsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeMatchmakingConfigurationsWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeMatchmakingConfigurationsWithContext), varargs...) +} + +// DescribeMatchmakingRequest mocks base method. +func (m *MockGameLiftAPI) DescribeMatchmakingRequest(arg0 *gamelift.DescribeMatchmakingInput) (*request.Request, *gamelift.DescribeMatchmakingOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeMatchmakingRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DescribeMatchmakingOutput) + return ret0, ret1 +} + +// DescribeMatchmakingRequest indicates an expected call of DescribeMatchmakingRequest. +func (mr *MockGameLiftAPIMockRecorder) DescribeMatchmakingRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeMatchmakingRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeMatchmakingRequest), arg0) +} + +// DescribeMatchmakingRuleSets mocks base method. +func (m *MockGameLiftAPI) DescribeMatchmakingRuleSets(arg0 *gamelift.DescribeMatchmakingRuleSetsInput) (*gamelift.DescribeMatchmakingRuleSetsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeMatchmakingRuleSets", arg0) + ret0, _ := ret[0].(*gamelift.DescribeMatchmakingRuleSetsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeMatchmakingRuleSets indicates an expected call of DescribeMatchmakingRuleSets. +func (mr *MockGameLiftAPIMockRecorder) DescribeMatchmakingRuleSets(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeMatchmakingRuleSets", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeMatchmakingRuleSets), arg0) +} + +// DescribeMatchmakingRuleSetsPages mocks base method. +func (m *MockGameLiftAPI) DescribeMatchmakingRuleSetsPages(arg0 *gamelift.DescribeMatchmakingRuleSetsInput, arg1 func(*gamelift.DescribeMatchmakingRuleSetsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeMatchmakingRuleSetsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeMatchmakingRuleSetsPages indicates an expected call of DescribeMatchmakingRuleSetsPages. +func (mr *MockGameLiftAPIMockRecorder) DescribeMatchmakingRuleSetsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeMatchmakingRuleSetsPages", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeMatchmakingRuleSetsPages), arg0, arg1) +} + +// DescribeMatchmakingRuleSetsPagesWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeMatchmakingRuleSetsPagesWithContext(arg0 aws.Context, arg1 *gamelift.DescribeMatchmakingRuleSetsInput, arg2 func(*gamelift.DescribeMatchmakingRuleSetsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeMatchmakingRuleSetsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeMatchmakingRuleSetsPagesWithContext indicates an expected call of DescribeMatchmakingRuleSetsPagesWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeMatchmakingRuleSetsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeMatchmakingRuleSetsPagesWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeMatchmakingRuleSetsPagesWithContext), varargs...) +} + +// DescribeMatchmakingRuleSetsRequest mocks base method. +func (m *MockGameLiftAPI) DescribeMatchmakingRuleSetsRequest(arg0 *gamelift.DescribeMatchmakingRuleSetsInput) (*request.Request, *gamelift.DescribeMatchmakingRuleSetsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeMatchmakingRuleSetsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DescribeMatchmakingRuleSetsOutput) + return ret0, ret1 +} + +// DescribeMatchmakingRuleSetsRequest indicates an expected call of DescribeMatchmakingRuleSetsRequest. +func (mr *MockGameLiftAPIMockRecorder) DescribeMatchmakingRuleSetsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeMatchmakingRuleSetsRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeMatchmakingRuleSetsRequest), arg0) +} + +// DescribeMatchmakingRuleSetsWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeMatchmakingRuleSetsWithContext(arg0 aws.Context, arg1 *gamelift.DescribeMatchmakingRuleSetsInput, arg2 ...request.Option) (*gamelift.DescribeMatchmakingRuleSetsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeMatchmakingRuleSetsWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DescribeMatchmakingRuleSetsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeMatchmakingRuleSetsWithContext indicates an expected call of DescribeMatchmakingRuleSetsWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeMatchmakingRuleSetsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeMatchmakingRuleSetsWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeMatchmakingRuleSetsWithContext), varargs...) +} + +// DescribeMatchmakingWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeMatchmakingWithContext(arg0 aws.Context, arg1 *gamelift.DescribeMatchmakingInput, arg2 ...request.Option) (*gamelift.DescribeMatchmakingOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeMatchmakingWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DescribeMatchmakingOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeMatchmakingWithContext indicates an expected call of DescribeMatchmakingWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeMatchmakingWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeMatchmakingWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeMatchmakingWithContext), varargs...) +} + +// DescribePlayerSessions mocks base method. +func (m *MockGameLiftAPI) DescribePlayerSessions(arg0 *gamelift.DescribePlayerSessionsInput) (*gamelift.DescribePlayerSessionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribePlayerSessions", arg0) + ret0, _ := ret[0].(*gamelift.DescribePlayerSessionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribePlayerSessions indicates an expected call of DescribePlayerSessions. +func (mr *MockGameLiftAPIMockRecorder) DescribePlayerSessions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribePlayerSessions", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribePlayerSessions), arg0) +} + +// DescribePlayerSessionsPages mocks base method. +func (m *MockGameLiftAPI) DescribePlayerSessionsPages(arg0 *gamelift.DescribePlayerSessionsInput, arg1 func(*gamelift.DescribePlayerSessionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribePlayerSessionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribePlayerSessionsPages indicates an expected call of DescribePlayerSessionsPages. +func (mr *MockGameLiftAPIMockRecorder) DescribePlayerSessionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribePlayerSessionsPages", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribePlayerSessionsPages), arg0, arg1) +} + +// DescribePlayerSessionsPagesWithContext mocks base method. +func (m *MockGameLiftAPI) DescribePlayerSessionsPagesWithContext(arg0 aws.Context, arg1 *gamelift.DescribePlayerSessionsInput, arg2 func(*gamelift.DescribePlayerSessionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribePlayerSessionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribePlayerSessionsPagesWithContext indicates an expected call of DescribePlayerSessionsPagesWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribePlayerSessionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribePlayerSessionsPagesWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribePlayerSessionsPagesWithContext), varargs...) +} + +// DescribePlayerSessionsRequest mocks base method. +func (m *MockGameLiftAPI) DescribePlayerSessionsRequest(arg0 *gamelift.DescribePlayerSessionsInput) (*request.Request, *gamelift.DescribePlayerSessionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribePlayerSessionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DescribePlayerSessionsOutput) + return ret0, ret1 +} + +// DescribePlayerSessionsRequest indicates an expected call of DescribePlayerSessionsRequest. +func (mr *MockGameLiftAPIMockRecorder) DescribePlayerSessionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribePlayerSessionsRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribePlayerSessionsRequest), arg0) +} + +// DescribePlayerSessionsWithContext mocks base method. +func (m *MockGameLiftAPI) DescribePlayerSessionsWithContext(arg0 aws.Context, arg1 *gamelift.DescribePlayerSessionsInput, arg2 ...request.Option) (*gamelift.DescribePlayerSessionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribePlayerSessionsWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DescribePlayerSessionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribePlayerSessionsWithContext indicates an expected call of DescribePlayerSessionsWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribePlayerSessionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribePlayerSessionsWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribePlayerSessionsWithContext), varargs...) +} + +// DescribeRuntimeConfiguration mocks base method. +func (m *MockGameLiftAPI) DescribeRuntimeConfiguration(arg0 *gamelift.DescribeRuntimeConfigurationInput) (*gamelift.DescribeRuntimeConfigurationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeRuntimeConfiguration", arg0) + ret0, _ := ret[0].(*gamelift.DescribeRuntimeConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeRuntimeConfiguration indicates an expected call of DescribeRuntimeConfiguration. +func (mr *MockGameLiftAPIMockRecorder) DescribeRuntimeConfiguration(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRuntimeConfiguration", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeRuntimeConfiguration), arg0) +} + +// DescribeRuntimeConfigurationRequest mocks base method. +func (m *MockGameLiftAPI) DescribeRuntimeConfigurationRequest(arg0 *gamelift.DescribeRuntimeConfigurationInput) (*request.Request, *gamelift.DescribeRuntimeConfigurationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeRuntimeConfigurationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DescribeRuntimeConfigurationOutput) + return ret0, ret1 +} + +// DescribeRuntimeConfigurationRequest indicates an expected call of DescribeRuntimeConfigurationRequest. +func (mr *MockGameLiftAPIMockRecorder) DescribeRuntimeConfigurationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRuntimeConfigurationRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeRuntimeConfigurationRequest), arg0) +} + +// DescribeRuntimeConfigurationWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeRuntimeConfigurationWithContext(arg0 aws.Context, arg1 *gamelift.DescribeRuntimeConfigurationInput, arg2 ...request.Option) (*gamelift.DescribeRuntimeConfigurationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeRuntimeConfigurationWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DescribeRuntimeConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeRuntimeConfigurationWithContext indicates an expected call of DescribeRuntimeConfigurationWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeRuntimeConfigurationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRuntimeConfigurationWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeRuntimeConfigurationWithContext), varargs...) +} + +// DescribeScalingPolicies mocks base method. +func (m *MockGameLiftAPI) DescribeScalingPolicies(arg0 *gamelift.DescribeScalingPoliciesInput) (*gamelift.DescribeScalingPoliciesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeScalingPolicies", arg0) + ret0, _ := ret[0].(*gamelift.DescribeScalingPoliciesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeScalingPolicies indicates an expected call of DescribeScalingPolicies. +func (mr *MockGameLiftAPIMockRecorder) DescribeScalingPolicies(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeScalingPolicies", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeScalingPolicies), arg0) +} + +// DescribeScalingPoliciesPages mocks base method. +func (m *MockGameLiftAPI) DescribeScalingPoliciesPages(arg0 *gamelift.DescribeScalingPoliciesInput, arg1 func(*gamelift.DescribeScalingPoliciesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeScalingPoliciesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeScalingPoliciesPages indicates an expected call of DescribeScalingPoliciesPages. +func (mr *MockGameLiftAPIMockRecorder) DescribeScalingPoliciesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeScalingPoliciesPages", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeScalingPoliciesPages), arg0, arg1) +} + +// DescribeScalingPoliciesPagesWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeScalingPoliciesPagesWithContext(arg0 aws.Context, arg1 *gamelift.DescribeScalingPoliciesInput, arg2 func(*gamelift.DescribeScalingPoliciesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeScalingPoliciesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// DescribeScalingPoliciesPagesWithContext indicates an expected call of DescribeScalingPoliciesPagesWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeScalingPoliciesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeScalingPoliciesPagesWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeScalingPoliciesPagesWithContext), varargs...) +} + +// DescribeScalingPoliciesRequest mocks base method. +func (m *MockGameLiftAPI) DescribeScalingPoliciesRequest(arg0 *gamelift.DescribeScalingPoliciesInput) (*request.Request, *gamelift.DescribeScalingPoliciesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeScalingPoliciesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DescribeScalingPoliciesOutput) + return ret0, ret1 +} + +// DescribeScalingPoliciesRequest indicates an expected call of DescribeScalingPoliciesRequest. +func (mr *MockGameLiftAPIMockRecorder) DescribeScalingPoliciesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeScalingPoliciesRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeScalingPoliciesRequest), arg0) +} + +// DescribeScalingPoliciesWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeScalingPoliciesWithContext(arg0 aws.Context, arg1 *gamelift.DescribeScalingPoliciesInput, arg2 ...request.Option) (*gamelift.DescribeScalingPoliciesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeScalingPoliciesWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DescribeScalingPoliciesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeScalingPoliciesWithContext indicates an expected call of DescribeScalingPoliciesWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeScalingPoliciesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeScalingPoliciesWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeScalingPoliciesWithContext), varargs...) +} + +// DescribeScript mocks base method. +func (m *MockGameLiftAPI) DescribeScript(arg0 *gamelift.DescribeScriptInput) (*gamelift.DescribeScriptOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeScript", arg0) + ret0, _ := ret[0].(*gamelift.DescribeScriptOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeScript indicates an expected call of DescribeScript. +func (mr *MockGameLiftAPIMockRecorder) DescribeScript(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeScript", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeScript), arg0) +} + +// DescribeScriptRequest mocks base method. +func (m *MockGameLiftAPI) DescribeScriptRequest(arg0 *gamelift.DescribeScriptInput) (*request.Request, *gamelift.DescribeScriptOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeScriptRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DescribeScriptOutput) + return ret0, ret1 +} + +// DescribeScriptRequest indicates an expected call of DescribeScriptRequest. +func (mr *MockGameLiftAPIMockRecorder) DescribeScriptRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeScriptRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeScriptRequest), arg0) +} + +// DescribeScriptWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeScriptWithContext(arg0 aws.Context, arg1 *gamelift.DescribeScriptInput, arg2 ...request.Option) (*gamelift.DescribeScriptOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeScriptWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DescribeScriptOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeScriptWithContext indicates an expected call of DescribeScriptWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeScriptWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeScriptWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeScriptWithContext), varargs...) +} + +// DescribeVpcPeeringAuthorizations mocks base method. +func (m *MockGameLiftAPI) DescribeVpcPeeringAuthorizations(arg0 *gamelift.DescribeVpcPeeringAuthorizationsInput) (*gamelift.DescribeVpcPeeringAuthorizationsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeVpcPeeringAuthorizations", arg0) + ret0, _ := ret[0].(*gamelift.DescribeVpcPeeringAuthorizationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeVpcPeeringAuthorizations indicates an expected call of DescribeVpcPeeringAuthorizations. +func (mr *MockGameLiftAPIMockRecorder) DescribeVpcPeeringAuthorizations(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeVpcPeeringAuthorizations", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeVpcPeeringAuthorizations), arg0) +} + +// DescribeVpcPeeringAuthorizationsRequest mocks base method. +func (m *MockGameLiftAPI) DescribeVpcPeeringAuthorizationsRequest(arg0 *gamelift.DescribeVpcPeeringAuthorizationsInput) (*request.Request, *gamelift.DescribeVpcPeeringAuthorizationsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeVpcPeeringAuthorizationsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DescribeVpcPeeringAuthorizationsOutput) + return ret0, ret1 +} + +// DescribeVpcPeeringAuthorizationsRequest indicates an expected call of DescribeVpcPeeringAuthorizationsRequest. +func (mr *MockGameLiftAPIMockRecorder) DescribeVpcPeeringAuthorizationsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeVpcPeeringAuthorizationsRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeVpcPeeringAuthorizationsRequest), arg0) +} + +// DescribeVpcPeeringAuthorizationsWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeVpcPeeringAuthorizationsWithContext(arg0 aws.Context, arg1 *gamelift.DescribeVpcPeeringAuthorizationsInput, arg2 ...request.Option) (*gamelift.DescribeVpcPeeringAuthorizationsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeVpcPeeringAuthorizationsWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DescribeVpcPeeringAuthorizationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeVpcPeeringAuthorizationsWithContext indicates an expected call of DescribeVpcPeeringAuthorizationsWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeVpcPeeringAuthorizationsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeVpcPeeringAuthorizationsWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeVpcPeeringAuthorizationsWithContext), varargs...) +} + +// DescribeVpcPeeringConnections mocks base method. +func (m *MockGameLiftAPI) DescribeVpcPeeringConnections(arg0 *gamelift.DescribeVpcPeeringConnectionsInput) (*gamelift.DescribeVpcPeeringConnectionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeVpcPeeringConnections", arg0) + ret0, _ := ret[0].(*gamelift.DescribeVpcPeeringConnectionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeVpcPeeringConnections indicates an expected call of DescribeVpcPeeringConnections. +func (mr *MockGameLiftAPIMockRecorder) DescribeVpcPeeringConnections(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeVpcPeeringConnections", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeVpcPeeringConnections), arg0) +} + +// DescribeVpcPeeringConnectionsRequest mocks base method. +func (m *MockGameLiftAPI) DescribeVpcPeeringConnectionsRequest(arg0 *gamelift.DescribeVpcPeeringConnectionsInput) (*request.Request, *gamelift.DescribeVpcPeeringConnectionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DescribeVpcPeeringConnectionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.DescribeVpcPeeringConnectionsOutput) + return ret0, ret1 +} + +// DescribeVpcPeeringConnectionsRequest indicates an expected call of DescribeVpcPeeringConnectionsRequest. +func (mr *MockGameLiftAPIMockRecorder) DescribeVpcPeeringConnectionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeVpcPeeringConnectionsRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeVpcPeeringConnectionsRequest), arg0) +} + +// DescribeVpcPeeringConnectionsWithContext mocks base method. +func (m *MockGameLiftAPI) DescribeVpcPeeringConnectionsWithContext(arg0 aws.Context, arg1 *gamelift.DescribeVpcPeeringConnectionsInput, arg2 ...request.Option) (*gamelift.DescribeVpcPeeringConnectionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DescribeVpcPeeringConnectionsWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.DescribeVpcPeeringConnectionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DescribeVpcPeeringConnectionsWithContext indicates an expected call of DescribeVpcPeeringConnectionsWithContext. +func (mr *MockGameLiftAPIMockRecorder) DescribeVpcPeeringConnectionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeVpcPeeringConnectionsWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).DescribeVpcPeeringConnectionsWithContext), varargs...) +} + +// GetComputeAccess mocks base method. +func (m *MockGameLiftAPI) GetComputeAccess(arg0 *gamelift.GetComputeAccessInput) (*gamelift.GetComputeAccessOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetComputeAccess", arg0) + ret0, _ := ret[0].(*gamelift.GetComputeAccessOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetComputeAccess indicates an expected call of GetComputeAccess. +func (mr *MockGameLiftAPIMockRecorder) GetComputeAccess(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetComputeAccess", reflect.TypeOf((*MockGameLiftAPI)(nil).GetComputeAccess), arg0) +} + +// GetComputeAccessRequest mocks base method. +func (m *MockGameLiftAPI) GetComputeAccessRequest(arg0 *gamelift.GetComputeAccessInput) (*request.Request, *gamelift.GetComputeAccessOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetComputeAccessRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.GetComputeAccessOutput) + return ret0, ret1 +} + +// GetComputeAccessRequest indicates an expected call of GetComputeAccessRequest. +func (mr *MockGameLiftAPIMockRecorder) GetComputeAccessRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetComputeAccessRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).GetComputeAccessRequest), arg0) +} + +// GetComputeAccessWithContext mocks base method. +func (m *MockGameLiftAPI) GetComputeAccessWithContext(arg0 aws.Context, arg1 *gamelift.GetComputeAccessInput, arg2 ...request.Option) (*gamelift.GetComputeAccessOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetComputeAccessWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.GetComputeAccessOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetComputeAccessWithContext indicates an expected call of GetComputeAccessWithContext. +func (mr *MockGameLiftAPIMockRecorder) GetComputeAccessWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetComputeAccessWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).GetComputeAccessWithContext), varargs...) +} + +// GetComputeAuthToken mocks base method. +func (m *MockGameLiftAPI) GetComputeAuthToken(arg0 *gamelift.GetComputeAuthTokenInput) (*gamelift.GetComputeAuthTokenOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetComputeAuthToken", arg0) + ret0, _ := ret[0].(*gamelift.GetComputeAuthTokenOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetComputeAuthToken indicates an expected call of GetComputeAuthToken. +func (mr *MockGameLiftAPIMockRecorder) GetComputeAuthToken(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetComputeAuthToken", reflect.TypeOf((*MockGameLiftAPI)(nil).GetComputeAuthToken), arg0) +} + +// GetComputeAuthTokenRequest mocks base method. +func (m *MockGameLiftAPI) GetComputeAuthTokenRequest(arg0 *gamelift.GetComputeAuthTokenInput) (*request.Request, *gamelift.GetComputeAuthTokenOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetComputeAuthTokenRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.GetComputeAuthTokenOutput) + return ret0, ret1 +} + +// GetComputeAuthTokenRequest indicates an expected call of GetComputeAuthTokenRequest. +func (mr *MockGameLiftAPIMockRecorder) GetComputeAuthTokenRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetComputeAuthTokenRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).GetComputeAuthTokenRequest), arg0) +} + +// GetComputeAuthTokenWithContext mocks base method. +func (m *MockGameLiftAPI) GetComputeAuthTokenWithContext(arg0 aws.Context, arg1 *gamelift.GetComputeAuthTokenInput, arg2 ...request.Option) (*gamelift.GetComputeAuthTokenOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetComputeAuthTokenWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.GetComputeAuthTokenOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetComputeAuthTokenWithContext indicates an expected call of GetComputeAuthTokenWithContext. +func (mr *MockGameLiftAPIMockRecorder) GetComputeAuthTokenWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetComputeAuthTokenWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).GetComputeAuthTokenWithContext), varargs...) +} + +// GetGameSessionLogUrl mocks base method. +func (m *MockGameLiftAPI) GetGameSessionLogUrl(arg0 *gamelift.GetGameSessionLogUrlInput) (*gamelift.GetGameSessionLogUrlOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetGameSessionLogUrl", arg0) + ret0, _ := ret[0].(*gamelift.GetGameSessionLogUrlOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetGameSessionLogUrl indicates an expected call of GetGameSessionLogUrl. +func (mr *MockGameLiftAPIMockRecorder) GetGameSessionLogUrl(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGameSessionLogUrl", reflect.TypeOf((*MockGameLiftAPI)(nil).GetGameSessionLogUrl), arg0) +} + +// GetGameSessionLogUrlRequest mocks base method. +func (m *MockGameLiftAPI) GetGameSessionLogUrlRequest(arg0 *gamelift.GetGameSessionLogUrlInput) (*request.Request, *gamelift.GetGameSessionLogUrlOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetGameSessionLogUrlRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.GetGameSessionLogUrlOutput) + return ret0, ret1 +} + +// GetGameSessionLogUrlRequest indicates an expected call of GetGameSessionLogUrlRequest. +func (mr *MockGameLiftAPIMockRecorder) GetGameSessionLogUrlRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGameSessionLogUrlRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).GetGameSessionLogUrlRequest), arg0) +} + +// GetGameSessionLogUrlWithContext mocks base method. +func (m *MockGameLiftAPI) GetGameSessionLogUrlWithContext(arg0 aws.Context, arg1 *gamelift.GetGameSessionLogUrlInput, arg2 ...request.Option) (*gamelift.GetGameSessionLogUrlOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetGameSessionLogUrlWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.GetGameSessionLogUrlOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetGameSessionLogUrlWithContext indicates an expected call of GetGameSessionLogUrlWithContext. +func (mr *MockGameLiftAPIMockRecorder) GetGameSessionLogUrlWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGameSessionLogUrlWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).GetGameSessionLogUrlWithContext), varargs...) +} + +// GetInstanceAccess mocks base method. +func (m *MockGameLiftAPI) GetInstanceAccess(arg0 *gamelift.GetInstanceAccessInput) (*gamelift.GetInstanceAccessOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetInstanceAccess", arg0) + ret0, _ := ret[0].(*gamelift.GetInstanceAccessOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetInstanceAccess indicates an expected call of GetInstanceAccess. +func (mr *MockGameLiftAPIMockRecorder) GetInstanceAccess(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInstanceAccess", reflect.TypeOf((*MockGameLiftAPI)(nil).GetInstanceAccess), arg0) +} + +// GetInstanceAccessRequest mocks base method. +func (m *MockGameLiftAPI) GetInstanceAccessRequest(arg0 *gamelift.GetInstanceAccessInput) (*request.Request, *gamelift.GetInstanceAccessOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetInstanceAccessRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.GetInstanceAccessOutput) + return ret0, ret1 +} + +// GetInstanceAccessRequest indicates an expected call of GetInstanceAccessRequest. +func (mr *MockGameLiftAPIMockRecorder) GetInstanceAccessRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInstanceAccessRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).GetInstanceAccessRequest), arg0) +} + +// GetInstanceAccessWithContext mocks base method. +func (m *MockGameLiftAPI) GetInstanceAccessWithContext(arg0 aws.Context, arg1 *gamelift.GetInstanceAccessInput, arg2 ...request.Option) (*gamelift.GetInstanceAccessOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetInstanceAccessWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.GetInstanceAccessOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetInstanceAccessWithContext indicates an expected call of GetInstanceAccessWithContext. +func (mr *MockGameLiftAPIMockRecorder) GetInstanceAccessWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInstanceAccessWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).GetInstanceAccessWithContext), varargs...) +} + +// ListAliases mocks base method. +func (m *MockGameLiftAPI) ListAliases(arg0 *gamelift.ListAliasesInput) (*gamelift.ListAliasesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAliases", arg0) + ret0, _ := ret[0].(*gamelift.ListAliasesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAliases indicates an expected call of ListAliases. +func (mr *MockGameLiftAPIMockRecorder) ListAliases(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAliases", reflect.TypeOf((*MockGameLiftAPI)(nil).ListAliases), arg0) +} + +// ListAliasesPages mocks base method. +func (m *MockGameLiftAPI) ListAliasesPages(arg0 *gamelift.ListAliasesInput, arg1 func(*gamelift.ListAliasesOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAliasesPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListAliasesPages indicates an expected call of ListAliasesPages. +func (mr *MockGameLiftAPIMockRecorder) ListAliasesPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAliasesPages", reflect.TypeOf((*MockGameLiftAPI)(nil).ListAliasesPages), arg0, arg1) +} + +// ListAliasesPagesWithContext mocks base method. +func (m *MockGameLiftAPI) ListAliasesPagesWithContext(arg0 aws.Context, arg1 *gamelift.ListAliasesInput, arg2 func(*gamelift.ListAliasesOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAliasesPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListAliasesPagesWithContext indicates an expected call of ListAliasesPagesWithContext. +func (mr *MockGameLiftAPIMockRecorder) ListAliasesPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAliasesPagesWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).ListAliasesPagesWithContext), varargs...) +} + +// ListAliasesRequest mocks base method. +func (m *MockGameLiftAPI) ListAliasesRequest(arg0 *gamelift.ListAliasesInput) (*request.Request, *gamelift.ListAliasesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListAliasesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.ListAliasesOutput) + return ret0, ret1 +} + +// ListAliasesRequest indicates an expected call of ListAliasesRequest. +func (mr *MockGameLiftAPIMockRecorder) ListAliasesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAliasesRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).ListAliasesRequest), arg0) +} + +// ListAliasesWithContext mocks base method. +func (m *MockGameLiftAPI) ListAliasesWithContext(arg0 aws.Context, arg1 *gamelift.ListAliasesInput, arg2 ...request.Option) (*gamelift.ListAliasesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAliasesWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.ListAliasesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAliasesWithContext indicates an expected call of ListAliasesWithContext. +func (mr *MockGameLiftAPIMockRecorder) ListAliasesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAliasesWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).ListAliasesWithContext), varargs...) +} + +// ListBuilds mocks base method. +func (m *MockGameLiftAPI) ListBuilds(arg0 *gamelift.ListBuildsInput) (*gamelift.ListBuildsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListBuilds", arg0) + ret0, _ := ret[0].(*gamelift.ListBuildsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListBuilds indicates an expected call of ListBuilds. +func (mr *MockGameLiftAPIMockRecorder) ListBuilds(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListBuilds", reflect.TypeOf((*MockGameLiftAPI)(nil).ListBuilds), arg0) +} + +// ListBuildsPages mocks base method. +func (m *MockGameLiftAPI) ListBuildsPages(arg0 *gamelift.ListBuildsInput, arg1 func(*gamelift.ListBuildsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListBuildsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListBuildsPages indicates an expected call of ListBuildsPages. +func (mr *MockGameLiftAPIMockRecorder) ListBuildsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListBuildsPages", reflect.TypeOf((*MockGameLiftAPI)(nil).ListBuildsPages), arg0, arg1) +} + +// ListBuildsPagesWithContext mocks base method. +func (m *MockGameLiftAPI) ListBuildsPagesWithContext(arg0 aws.Context, arg1 *gamelift.ListBuildsInput, arg2 func(*gamelift.ListBuildsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListBuildsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListBuildsPagesWithContext indicates an expected call of ListBuildsPagesWithContext. +func (mr *MockGameLiftAPIMockRecorder) ListBuildsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListBuildsPagesWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).ListBuildsPagesWithContext), varargs...) +} + +// ListBuildsRequest mocks base method. +func (m *MockGameLiftAPI) ListBuildsRequest(arg0 *gamelift.ListBuildsInput) (*request.Request, *gamelift.ListBuildsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListBuildsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.ListBuildsOutput) + return ret0, ret1 +} + +// ListBuildsRequest indicates an expected call of ListBuildsRequest. +func (mr *MockGameLiftAPIMockRecorder) ListBuildsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListBuildsRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).ListBuildsRequest), arg0) +} + +// ListBuildsWithContext mocks base method. +func (m *MockGameLiftAPI) ListBuildsWithContext(arg0 aws.Context, arg1 *gamelift.ListBuildsInput, arg2 ...request.Option) (*gamelift.ListBuildsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListBuildsWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.ListBuildsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListBuildsWithContext indicates an expected call of ListBuildsWithContext. +func (mr *MockGameLiftAPIMockRecorder) ListBuildsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListBuildsWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).ListBuildsWithContext), varargs...) +} + +// ListCompute mocks base method. +func (m *MockGameLiftAPI) ListCompute(arg0 *gamelift.ListComputeInput) (*gamelift.ListComputeOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListCompute", arg0) + ret0, _ := ret[0].(*gamelift.ListComputeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListCompute indicates an expected call of ListCompute. +func (mr *MockGameLiftAPIMockRecorder) ListCompute(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCompute", reflect.TypeOf((*MockGameLiftAPI)(nil).ListCompute), arg0) +} + +// ListComputePages mocks base method. +func (m *MockGameLiftAPI) ListComputePages(arg0 *gamelift.ListComputeInput, arg1 func(*gamelift.ListComputeOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListComputePages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListComputePages indicates an expected call of ListComputePages. +func (mr *MockGameLiftAPIMockRecorder) ListComputePages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListComputePages", reflect.TypeOf((*MockGameLiftAPI)(nil).ListComputePages), arg0, arg1) +} + +// ListComputePagesWithContext mocks base method. +func (m *MockGameLiftAPI) ListComputePagesWithContext(arg0 aws.Context, arg1 *gamelift.ListComputeInput, arg2 func(*gamelift.ListComputeOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListComputePagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListComputePagesWithContext indicates an expected call of ListComputePagesWithContext. +func (mr *MockGameLiftAPIMockRecorder) ListComputePagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListComputePagesWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).ListComputePagesWithContext), varargs...) +} + +// ListComputeRequest mocks base method. +func (m *MockGameLiftAPI) ListComputeRequest(arg0 *gamelift.ListComputeInput) (*request.Request, *gamelift.ListComputeOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListComputeRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.ListComputeOutput) + return ret0, ret1 +} + +// ListComputeRequest indicates an expected call of ListComputeRequest. +func (mr *MockGameLiftAPIMockRecorder) ListComputeRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListComputeRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).ListComputeRequest), arg0) +} + +// ListComputeWithContext mocks base method. +func (m *MockGameLiftAPI) ListComputeWithContext(arg0 aws.Context, arg1 *gamelift.ListComputeInput, arg2 ...request.Option) (*gamelift.ListComputeOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListComputeWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.ListComputeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListComputeWithContext indicates an expected call of ListComputeWithContext. +func (mr *MockGameLiftAPIMockRecorder) ListComputeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListComputeWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).ListComputeWithContext), varargs...) +} + +// ListContainerGroupDefinitions mocks base method. +func (m *MockGameLiftAPI) ListContainerGroupDefinitions(arg0 *gamelift.ListContainerGroupDefinitionsInput) (*gamelift.ListContainerGroupDefinitionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListContainerGroupDefinitions", arg0) + ret0, _ := ret[0].(*gamelift.ListContainerGroupDefinitionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListContainerGroupDefinitions indicates an expected call of ListContainerGroupDefinitions. +func (mr *MockGameLiftAPIMockRecorder) ListContainerGroupDefinitions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListContainerGroupDefinitions", reflect.TypeOf((*MockGameLiftAPI)(nil).ListContainerGroupDefinitions), arg0) +} + +// ListContainerGroupDefinitionsPages mocks base method. +func (m *MockGameLiftAPI) ListContainerGroupDefinitionsPages(arg0 *gamelift.ListContainerGroupDefinitionsInput, arg1 func(*gamelift.ListContainerGroupDefinitionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListContainerGroupDefinitionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListContainerGroupDefinitionsPages indicates an expected call of ListContainerGroupDefinitionsPages. +func (mr *MockGameLiftAPIMockRecorder) ListContainerGroupDefinitionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListContainerGroupDefinitionsPages", reflect.TypeOf((*MockGameLiftAPI)(nil).ListContainerGroupDefinitionsPages), arg0, arg1) +} + +// ListContainerGroupDefinitionsPagesWithContext mocks base method. +func (m *MockGameLiftAPI) ListContainerGroupDefinitionsPagesWithContext(arg0 aws.Context, arg1 *gamelift.ListContainerGroupDefinitionsInput, arg2 func(*gamelift.ListContainerGroupDefinitionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListContainerGroupDefinitionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListContainerGroupDefinitionsPagesWithContext indicates an expected call of ListContainerGroupDefinitionsPagesWithContext. +func (mr *MockGameLiftAPIMockRecorder) ListContainerGroupDefinitionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListContainerGroupDefinitionsPagesWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).ListContainerGroupDefinitionsPagesWithContext), varargs...) +} + +// ListContainerGroupDefinitionsRequest mocks base method. +func (m *MockGameLiftAPI) ListContainerGroupDefinitionsRequest(arg0 *gamelift.ListContainerGroupDefinitionsInput) (*request.Request, *gamelift.ListContainerGroupDefinitionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListContainerGroupDefinitionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.ListContainerGroupDefinitionsOutput) + return ret0, ret1 +} + +// ListContainerGroupDefinitionsRequest indicates an expected call of ListContainerGroupDefinitionsRequest. +func (mr *MockGameLiftAPIMockRecorder) ListContainerGroupDefinitionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListContainerGroupDefinitionsRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).ListContainerGroupDefinitionsRequest), arg0) +} + +// ListContainerGroupDefinitionsWithContext mocks base method. +func (m *MockGameLiftAPI) ListContainerGroupDefinitionsWithContext(arg0 aws.Context, arg1 *gamelift.ListContainerGroupDefinitionsInput, arg2 ...request.Option) (*gamelift.ListContainerGroupDefinitionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListContainerGroupDefinitionsWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.ListContainerGroupDefinitionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListContainerGroupDefinitionsWithContext indicates an expected call of ListContainerGroupDefinitionsWithContext. +func (mr *MockGameLiftAPIMockRecorder) ListContainerGroupDefinitionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListContainerGroupDefinitionsWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).ListContainerGroupDefinitionsWithContext), varargs...) +} + +// ListFleets mocks base method. +func (m *MockGameLiftAPI) ListFleets(arg0 *gamelift.ListFleetsInput) (*gamelift.ListFleetsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListFleets", arg0) + ret0, _ := ret[0].(*gamelift.ListFleetsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListFleets indicates an expected call of ListFleets. +func (mr *MockGameLiftAPIMockRecorder) ListFleets(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFleets", reflect.TypeOf((*MockGameLiftAPI)(nil).ListFleets), arg0) +} + +// ListFleetsPages mocks base method. +func (m *MockGameLiftAPI) ListFleetsPages(arg0 *gamelift.ListFleetsInput, arg1 func(*gamelift.ListFleetsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListFleetsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListFleetsPages indicates an expected call of ListFleetsPages. +func (mr *MockGameLiftAPIMockRecorder) ListFleetsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFleetsPages", reflect.TypeOf((*MockGameLiftAPI)(nil).ListFleetsPages), arg0, arg1) +} + +// ListFleetsPagesWithContext mocks base method. +func (m *MockGameLiftAPI) ListFleetsPagesWithContext(arg0 aws.Context, arg1 *gamelift.ListFleetsInput, arg2 func(*gamelift.ListFleetsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListFleetsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListFleetsPagesWithContext indicates an expected call of ListFleetsPagesWithContext. +func (mr *MockGameLiftAPIMockRecorder) ListFleetsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFleetsPagesWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).ListFleetsPagesWithContext), varargs...) +} + +// ListFleetsRequest mocks base method. +func (m *MockGameLiftAPI) ListFleetsRequest(arg0 *gamelift.ListFleetsInput) (*request.Request, *gamelift.ListFleetsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListFleetsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.ListFleetsOutput) + return ret0, ret1 +} + +// ListFleetsRequest indicates an expected call of ListFleetsRequest. +func (mr *MockGameLiftAPIMockRecorder) ListFleetsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFleetsRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).ListFleetsRequest), arg0) +} + +// ListFleetsWithContext mocks base method. +func (m *MockGameLiftAPI) ListFleetsWithContext(arg0 aws.Context, arg1 *gamelift.ListFleetsInput, arg2 ...request.Option) (*gamelift.ListFleetsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListFleetsWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.ListFleetsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListFleetsWithContext indicates an expected call of ListFleetsWithContext. +func (mr *MockGameLiftAPIMockRecorder) ListFleetsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFleetsWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).ListFleetsWithContext), varargs...) +} + +// ListGameServerGroups mocks base method. +func (m *MockGameLiftAPI) ListGameServerGroups(arg0 *gamelift.ListGameServerGroupsInput) (*gamelift.ListGameServerGroupsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListGameServerGroups", arg0) + ret0, _ := ret[0].(*gamelift.ListGameServerGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListGameServerGroups indicates an expected call of ListGameServerGroups. +func (mr *MockGameLiftAPIMockRecorder) ListGameServerGroups(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGameServerGroups", reflect.TypeOf((*MockGameLiftAPI)(nil).ListGameServerGroups), arg0) +} + +// ListGameServerGroupsPages mocks base method. +func (m *MockGameLiftAPI) ListGameServerGroupsPages(arg0 *gamelift.ListGameServerGroupsInput, arg1 func(*gamelift.ListGameServerGroupsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListGameServerGroupsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListGameServerGroupsPages indicates an expected call of ListGameServerGroupsPages. +func (mr *MockGameLiftAPIMockRecorder) ListGameServerGroupsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGameServerGroupsPages", reflect.TypeOf((*MockGameLiftAPI)(nil).ListGameServerGroupsPages), arg0, arg1) +} + +// ListGameServerGroupsPagesWithContext mocks base method. +func (m *MockGameLiftAPI) ListGameServerGroupsPagesWithContext(arg0 aws.Context, arg1 *gamelift.ListGameServerGroupsInput, arg2 func(*gamelift.ListGameServerGroupsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListGameServerGroupsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListGameServerGroupsPagesWithContext indicates an expected call of ListGameServerGroupsPagesWithContext. +func (mr *MockGameLiftAPIMockRecorder) ListGameServerGroupsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGameServerGroupsPagesWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).ListGameServerGroupsPagesWithContext), varargs...) +} + +// ListGameServerGroupsRequest mocks base method. +func (m *MockGameLiftAPI) ListGameServerGroupsRequest(arg0 *gamelift.ListGameServerGroupsInput) (*request.Request, *gamelift.ListGameServerGroupsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListGameServerGroupsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.ListGameServerGroupsOutput) + return ret0, ret1 +} + +// ListGameServerGroupsRequest indicates an expected call of ListGameServerGroupsRequest. +func (mr *MockGameLiftAPIMockRecorder) ListGameServerGroupsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGameServerGroupsRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).ListGameServerGroupsRequest), arg0) +} + +// ListGameServerGroupsWithContext mocks base method. +func (m *MockGameLiftAPI) ListGameServerGroupsWithContext(arg0 aws.Context, arg1 *gamelift.ListGameServerGroupsInput, arg2 ...request.Option) (*gamelift.ListGameServerGroupsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListGameServerGroupsWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.ListGameServerGroupsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListGameServerGroupsWithContext indicates an expected call of ListGameServerGroupsWithContext. +func (mr *MockGameLiftAPIMockRecorder) ListGameServerGroupsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGameServerGroupsWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).ListGameServerGroupsWithContext), varargs...) +} + +// ListGameServers mocks base method. +func (m *MockGameLiftAPI) ListGameServers(arg0 *gamelift.ListGameServersInput) (*gamelift.ListGameServersOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListGameServers", arg0) + ret0, _ := ret[0].(*gamelift.ListGameServersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListGameServers indicates an expected call of ListGameServers. +func (mr *MockGameLiftAPIMockRecorder) ListGameServers(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGameServers", reflect.TypeOf((*MockGameLiftAPI)(nil).ListGameServers), arg0) +} + +// ListGameServersPages mocks base method. +func (m *MockGameLiftAPI) ListGameServersPages(arg0 *gamelift.ListGameServersInput, arg1 func(*gamelift.ListGameServersOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListGameServersPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListGameServersPages indicates an expected call of ListGameServersPages. +func (mr *MockGameLiftAPIMockRecorder) ListGameServersPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGameServersPages", reflect.TypeOf((*MockGameLiftAPI)(nil).ListGameServersPages), arg0, arg1) +} + +// ListGameServersPagesWithContext mocks base method. +func (m *MockGameLiftAPI) ListGameServersPagesWithContext(arg0 aws.Context, arg1 *gamelift.ListGameServersInput, arg2 func(*gamelift.ListGameServersOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListGameServersPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListGameServersPagesWithContext indicates an expected call of ListGameServersPagesWithContext. +func (mr *MockGameLiftAPIMockRecorder) ListGameServersPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGameServersPagesWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).ListGameServersPagesWithContext), varargs...) +} + +// ListGameServersRequest mocks base method. +func (m *MockGameLiftAPI) ListGameServersRequest(arg0 *gamelift.ListGameServersInput) (*request.Request, *gamelift.ListGameServersOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListGameServersRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.ListGameServersOutput) + return ret0, ret1 +} + +// ListGameServersRequest indicates an expected call of ListGameServersRequest. +func (mr *MockGameLiftAPIMockRecorder) ListGameServersRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGameServersRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).ListGameServersRequest), arg0) +} + +// ListGameServersWithContext mocks base method. +func (m *MockGameLiftAPI) ListGameServersWithContext(arg0 aws.Context, arg1 *gamelift.ListGameServersInput, arg2 ...request.Option) (*gamelift.ListGameServersOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListGameServersWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.ListGameServersOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListGameServersWithContext indicates an expected call of ListGameServersWithContext. +func (mr *MockGameLiftAPIMockRecorder) ListGameServersWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListGameServersWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).ListGameServersWithContext), varargs...) +} + +// ListLocations mocks base method. +func (m *MockGameLiftAPI) ListLocations(arg0 *gamelift.ListLocationsInput) (*gamelift.ListLocationsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListLocations", arg0) + ret0, _ := ret[0].(*gamelift.ListLocationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListLocations indicates an expected call of ListLocations. +func (mr *MockGameLiftAPIMockRecorder) ListLocations(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListLocations", reflect.TypeOf((*MockGameLiftAPI)(nil).ListLocations), arg0) +} + +// ListLocationsPages mocks base method. +func (m *MockGameLiftAPI) ListLocationsPages(arg0 *gamelift.ListLocationsInput, arg1 func(*gamelift.ListLocationsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListLocationsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListLocationsPages indicates an expected call of ListLocationsPages. +func (mr *MockGameLiftAPIMockRecorder) ListLocationsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListLocationsPages", reflect.TypeOf((*MockGameLiftAPI)(nil).ListLocationsPages), arg0, arg1) +} + +// ListLocationsPagesWithContext mocks base method. +func (m *MockGameLiftAPI) ListLocationsPagesWithContext(arg0 aws.Context, arg1 *gamelift.ListLocationsInput, arg2 func(*gamelift.ListLocationsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListLocationsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListLocationsPagesWithContext indicates an expected call of ListLocationsPagesWithContext. +func (mr *MockGameLiftAPIMockRecorder) ListLocationsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListLocationsPagesWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).ListLocationsPagesWithContext), varargs...) +} + +// ListLocationsRequest mocks base method. +func (m *MockGameLiftAPI) ListLocationsRequest(arg0 *gamelift.ListLocationsInput) (*request.Request, *gamelift.ListLocationsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListLocationsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.ListLocationsOutput) + return ret0, ret1 +} + +// ListLocationsRequest indicates an expected call of ListLocationsRequest. +func (mr *MockGameLiftAPIMockRecorder) ListLocationsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListLocationsRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).ListLocationsRequest), arg0) +} + +// ListLocationsWithContext mocks base method. +func (m *MockGameLiftAPI) ListLocationsWithContext(arg0 aws.Context, arg1 *gamelift.ListLocationsInput, arg2 ...request.Option) (*gamelift.ListLocationsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListLocationsWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.ListLocationsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListLocationsWithContext indicates an expected call of ListLocationsWithContext. +func (mr *MockGameLiftAPIMockRecorder) ListLocationsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListLocationsWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).ListLocationsWithContext), varargs...) +} + +// ListScripts mocks base method. +func (m *MockGameLiftAPI) ListScripts(arg0 *gamelift.ListScriptsInput) (*gamelift.ListScriptsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListScripts", arg0) + ret0, _ := ret[0].(*gamelift.ListScriptsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListScripts indicates an expected call of ListScripts. +func (mr *MockGameLiftAPIMockRecorder) ListScripts(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListScripts", reflect.TypeOf((*MockGameLiftAPI)(nil).ListScripts), arg0) +} + +// ListScriptsPages mocks base method. +func (m *MockGameLiftAPI) ListScriptsPages(arg0 *gamelift.ListScriptsInput, arg1 func(*gamelift.ListScriptsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListScriptsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListScriptsPages indicates an expected call of ListScriptsPages. +func (mr *MockGameLiftAPIMockRecorder) ListScriptsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListScriptsPages", reflect.TypeOf((*MockGameLiftAPI)(nil).ListScriptsPages), arg0, arg1) +} + +// ListScriptsPagesWithContext mocks base method. +func (m *MockGameLiftAPI) ListScriptsPagesWithContext(arg0 aws.Context, arg1 *gamelift.ListScriptsInput, arg2 func(*gamelift.ListScriptsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListScriptsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// ListScriptsPagesWithContext indicates an expected call of ListScriptsPagesWithContext. +func (mr *MockGameLiftAPIMockRecorder) ListScriptsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListScriptsPagesWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).ListScriptsPagesWithContext), varargs...) +} + +// ListScriptsRequest mocks base method. +func (m *MockGameLiftAPI) ListScriptsRequest(arg0 *gamelift.ListScriptsInput) (*request.Request, *gamelift.ListScriptsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListScriptsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.ListScriptsOutput) + return ret0, ret1 +} + +// ListScriptsRequest indicates an expected call of ListScriptsRequest. +func (mr *MockGameLiftAPIMockRecorder) ListScriptsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListScriptsRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).ListScriptsRequest), arg0) +} + +// ListScriptsWithContext mocks base method. +func (m *MockGameLiftAPI) ListScriptsWithContext(arg0 aws.Context, arg1 *gamelift.ListScriptsInput, arg2 ...request.Option) (*gamelift.ListScriptsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListScriptsWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.ListScriptsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListScriptsWithContext indicates an expected call of ListScriptsWithContext. +func (mr *MockGameLiftAPIMockRecorder) ListScriptsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListScriptsWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).ListScriptsWithContext), varargs...) +} + +// ListTagsForResource mocks base method. +func (m *MockGameLiftAPI) ListTagsForResource(arg0 *gamelift.ListTagsForResourceInput) (*gamelift.ListTagsForResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTagsForResource", arg0) + ret0, _ := ret[0].(*gamelift.ListTagsForResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTagsForResource indicates an expected call of ListTagsForResource. +func (mr *MockGameLiftAPIMockRecorder) ListTagsForResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsForResource", reflect.TypeOf((*MockGameLiftAPI)(nil).ListTagsForResource), arg0) +} + +// ListTagsForResourceRequest mocks base method. +func (m *MockGameLiftAPI) ListTagsForResourceRequest(arg0 *gamelift.ListTagsForResourceInput) (*request.Request, *gamelift.ListTagsForResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListTagsForResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.ListTagsForResourceOutput) + return ret0, ret1 +} + +// ListTagsForResourceRequest indicates an expected call of ListTagsForResourceRequest. +func (mr *MockGameLiftAPIMockRecorder) ListTagsForResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsForResourceRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).ListTagsForResourceRequest), arg0) +} + +// ListTagsForResourceWithContext mocks base method. +func (m *MockGameLiftAPI) ListTagsForResourceWithContext(arg0 aws.Context, arg1 *gamelift.ListTagsForResourceInput, arg2 ...request.Option) (*gamelift.ListTagsForResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListTagsForResourceWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.ListTagsForResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListTagsForResourceWithContext indicates an expected call of ListTagsForResourceWithContext. +func (mr *MockGameLiftAPIMockRecorder) ListTagsForResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTagsForResourceWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).ListTagsForResourceWithContext), varargs...) +} + +// PutScalingPolicy mocks base method. +func (m *MockGameLiftAPI) PutScalingPolicy(arg0 *gamelift.PutScalingPolicyInput) (*gamelift.PutScalingPolicyOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutScalingPolicy", arg0) + ret0, _ := ret[0].(*gamelift.PutScalingPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutScalingPolicy indicates an expected call of PutScalingPolicy. +func (mr *MockGameLiftAPIMockRecorder) PutScalingPolicy(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutScalingPolicy", reflect.TypeOf((*MockGameLiftAPI)(nil).PutScalingPolicy), arg0) +} + +// PutScalingPolicyRequest mocks base method. +func (m *MockGameLiftAPI) PutScalingPolicyRequest(arg0 *gamelift.PutScalingPolicyInput) (*request.Request, *gamelift.PutScalingPolicyOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "PutScalingPolicyRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.PutScalingPolicyOutput) + return ret0, ret1 +} + +// PutScalingPolicyRequest indicates an expected call of PutScalingPolicyRequest. +func (mr *MockGameLiftAPIMockRecorder) PutScalingPolicyRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutScalingPolicyRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).PutScalingPolicyRequest), arg0) +} + +// PutScalingPolicyWithContext mocks base method. +func (m *MockGameLiftAPI) PutScalingPolicyWithContext(arg0 aws.Context, arg1 *gamelift.PutScalingPolicyInput, arg2 ...request.Option) (*gamelift.PutScalingPolicyOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PutScalingPolicyWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.PutScalingPolicyOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PutScalingPolicyWithContext indicates an expected call of PutScalingPolicyWithContext. +func (mr *MockGameLiftAPIMockRecorder) PutScalingPolicyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutScalingPolicyWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).PutScalingPolicyWithContext), varargs...) +} + +// RegisterCompute mocks base method. +func (m *MockGameLiftAPI) RegisterCompute(arg0 *gamelift.RegisterComputeInput) (*gamelift.RegisterComputeOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RegisterCompute", arg0) + ret0, _ := ret[0].(*gamelift.RegisterComputeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RegisterCompute indicates an expected call of RegisterCompute. +func (mr *MockGameLiftAPIMockRecorder) RegisterCompute(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterCompute", reflect.TypeOf((*MockGameLiftAPI)(nil).RegisterCompute), arg0) +} + +// RegisterComputeRequest mocks base method. +func (m *MockGameLiftAPI) RegisterComputeRequest(arg0 *gamelift.RegisterComputeInput) (*request.Request, *gamelift.RegisterComputeOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RegisterComputeRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.RegisterComputeOutput) + return ret0, ret1 +} + +// RegisterComputeRequest indicates an expected call of RegisterComputeRequest. +func (mr *MockGameLiftAPIMockRecorder) RegisterComputeRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterComputeRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).RegisterComputeRequest), arg0) +} + +// RegisterComputeWithContext mocks base method. +func (m *MockGameLiftAPI) RegisterComputeWithContext(arg0 aws.Context, arg1 *gamelift.RegisterComputeInput, arg2 ...request.Option) (*gamelift.RegisterComputeOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RegisterComputeWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.RegisterComputeOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RegisterComputeWithContext indicates an expected call of RegisterComputeWithContext. +func (mr *MockGameLiftAPIMockRecorder) RegisterComputeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterComputeWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).RegisterComputeWithContext), varargs...) +} + +// RegisterGameServer mocks base method. +func (m *MockGameLiftAPI) RegisterGameServer(arg0 *gamelift.RegisterGameServerInput) (*gamelift.RegisterGameServerOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RegisterGameServer", arg0) + ret0, _ := ret[0].(*gamelift.RegisterGameServerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RegisterGameServer indicates an expected call of RegisterGameServer. +func (mr *MockGameLiftAPIMockRecorder) RegisterGameServer(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterGameServer", reflect.TypeOf((*MockGameLiftAPI)(nil).RegisterGameServer), arg0) +} + +// RegisterGameServerRequest mocks base method. +func (m *MockGameLiftAPI) RegisterGameServerRequest(arg0 *gamelift.RegisterGameServerInput) (*request.Request, *gamelift.RegisterGameServerOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RegisterGameServerRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.RegisterGameServerOutput) + return ret0, ret1 +} + +// RegisterGameServerRequest indicates an expected call of RegisterGameServerRequest. +func (mr *MockGameLiftAPIMockRecorder) RegisterGameServerRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterGameServerRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).RegisterGameServerRequest), arg0) +} + +// RegisterGameServerWithContext mocks base method. +func (m *MockGameLiftAPI) RegisterGameServerWithContext(arg0 aws.Context, arg1 *gamelift.RegisterGameServerInput, arg2 ...request.Option) (*gamelift.RegisterGameServerOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RegisterGameServerWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.RegisterGameServerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RegisterGameServerWithContext indicates an expected call of RegisterGameServerWithContext. +func (mr *MockGameLiftAPIMockRecorder) RegisterGameServerWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterGameServerWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).RegisterGameServerWithContext), varargs...) +} + +// RequestUploadCredentials mocks base method. +func (m *MockGameLiftAPI) RequestUploadCredentials(arg0 *gamelift.RequestUploadCredentialsInput) (*gamelift.RequestUploadCredentialsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RequestUploadCredentials", arg0) + ret0, _ := ret[0].(*gamelift.RequestUploadCredentialsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RequestUploadCredentials indicates an expected call of RequestUploadCredentials. +func (mr *MockGameLiftAPIMockRecorder) RequestUploadCredentials(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestUploadCredentials", reflect.TypeOf((*MockGameLiftAPI)(nil).RequestUploadCredentials), arg0) +} + +// RequestUploadCredentialsRequest mocks base method. +func (m *MockGameLiftAPI) RequestUploadCredentialsRequest(arg0 *gamelift.RequestUploadCredentialsInput) (*request.Request, *gamelift.RequestUploadCredentialsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RequestUploadCredentialsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.RequestUploadCredentialsOutput) + return ret0, ret1 +} + +// RequestUploadCredentialsRequest indicates an expected call of RequestUploadCredentialsRequest. +func (mr *MockGameLiftAPIMockRecorder) RequestUploadCredentialsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestUploadCredentialsRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).RequestUploadCredentialsRequest), arg0) +} + +// RequestUploadCredentialsWithContext mocks base method. +func (m *MockGameLiftAPI) RequestUploadCredentialsWithContext(arg0 aws.Context, arg1 *gamelift.RequestUploadCredentialsInput, arg2 ...request.Option) (*gamelift.RequestUploadCredentialsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "RequestUploadCredentialsWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.RequestUploadCredentialsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RequestUploadCredentialsWithContext indicates an expected call of RequestUploadCredentialsWithContext. +func (mr *MockGameLiftAPIMockRecorder) RequestUploadCredentialsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestUploadCredentialsWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).RequestUploadCredentialsWithContext), varargs...) +} + +// ResolveAlias mocks base method. +func (m *MockGameLiftAPI) ResolveAlias(arg0 *gamelift.ResolveAliasInput) (*gamelift.ResolveAliasOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ResolveAlias", arg0) + ret0, _ := ret[0].(*gamelift.ResolveAliasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ResolveAlias indicates an expected call of ResolveAlias. +func (mr *MockGameLiftAPIMockRecorder) ResolveAlias(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResolveAlias", reflect.TypeOf((*MockGameLiftAPI)(nil).ResolveAlias), arg0) +} + +// ResolveAliasRequest mocks base method. +func (m *MockGameLiftAPI) ResolveAliasRequest(arg0 *gamelift.ResolveAliasInput) (*request.Request, *gamelift.ResolveAliasOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ResolveAliasRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.ResolveAliasOutput) + return ret0, ret1 +} + +// ResolveAliasRequest indicates an expected call of ResolveAliasRequest. +func (mr *MockGameLiftAPIMockRecorder) ResolveAliasRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResolveAliasRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).ResolveAliasRequest), arg0) +} + +// ResolveAliasWithContext mocks base method. +func (m *MockGameLiftAPI) ResolveAliasWithContext(arg0 aws.Context, arg1 *gamelift.ResolveAliasInput, arg2 ...request.Option) (*gamelift.ResolveAliasOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ResolveAliasWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.ResolveAliasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ResolveAliasWithContext indicates an expected call of ResolveAliasWithContext. +func (mr *MockGameLiftAPIMockRecorder) ResolveAliasWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResolveAliasWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).ResolveAliasWithContext), varargs...) +} + +// ResumeGameServerGroup mocks base method. +func (m *MockGameLiftAPI) ResumeGameServerGroup(arg0 *gamelift.ResumeGameServerGroupInput) (*gamelift.ResumeGameServerGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ResumeGameServerGroup", arg0) + ret0, _ := ret[0].(*gamelift.ResumeGameServerGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ResumeGameServerGroup indicates an expected call of ResumeGameServerGroup. +func (mr *MockGameLiftAPIMockRecorder) ResumeGameServerGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResumeGameServerGroup", reflect.TypeOf((*MockGameLiftAPI)(nil).ResumeGameServerGroup), arg0) +} + +// ResumeGameServerGroupRequest mocks base method. +func (m *MockGameLiftAPI) ResumeGameServerGroupRequest(arg0 *gamelift.ResumeGameServerGroupInput) (*request.Request, *gamelift.ResumeGameServerGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ResumeGameServerGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.ResumeGameServerGroupOutput) + return ret0, ret1 +} + +// ResumeGameServerGroupRequest indicates an expected call of ResumeGameServerGroupRequest. +func (mr *MockGameLiftAPIMockRecorder) ResumeGameServerGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResumeGameServerGroupRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).ResumeGameServerGroupRequest), arg0) +} + +// ResumeGameServerGroupWithContext mocks base method. +func (m *MockGameLiftAPI) ResumeGameServerGroupWithContext(arg0 aws.Context, arg1 *gamelift.ResumeGameServerGroupInput, arg2 ...request.Option) (*gamelift.ResumeGameServerGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ResumeGameServerGroupWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.ResumeGameServerGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ResumeGameServerGroupWithContext indicates an expected call of ResumeGameServerGroupWithContext. +func (mr *MockGameLiftAPIMockRecorder) ResumeGameServerGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResumeGameServerGroupWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).ResumeGameServerGroupWithContext), varargs...) +} + +// SearchGameSessions mocks base method. +func (m *MockGameLiftAPI) SearchGameSessions(arg0 *gamelift.SearchGameSessionsInput) (*gamelift.SearchGameSessionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SearchGameSessions", arg0) + ret0, _ := ret[0].(*gamelift.SearchGameSessionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SearchGameSessions indicates an expected call of SearchGameSessions. +func (mr *MockGameLiftAPIMockRecorder) SearchGameSessions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchGameSessions", reflect.TypeOf((*MockGameLiftAPI)(nil).SearchGameSessions), arg0) +} + +// SearchGameSessionsPages mocks base method. +func (m *MockGameLiftAPI) SearchGameSessionsPages(arg0 *gamelift.SearchGameSessionsInput, arg1 func(*gamelift.SearchGameSessionsOutput, bool) bool) error { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SearchGameSessionsPages", arg0, arg1) + ret0, _ := ret[0].(error) + return ret0 +} + +// SearchGameSessionsPages indicates an expected call of SearchGameSessionsPages. +func (mr *MockGameLiftAPIMockRecorder) SearchGameSessionsPages(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchGameSessionsPages", reflect.TypeOf((*MockGameLiftAPI)(nil).SearchGameSessionsPages), arg0, arg1) +} + +// SearchGameSessionsPagesWithContext mocks base method. +func (m *MockGameLiftAPI) SearchGameSessionsPagesWithContext(arg0 aws.Context, arg1 *gamelift.SearchGameSessionsInput, arg2 func(*gamelift.SearchGameSessionsOutput, bool) bool, arg3 ...request.Option) error { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1, arg2} + for _, a := range arg3 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SearchGameSessionsPagesWithContext", varargs...) + ret0, _ := ret[0].(error) + return ret0 +} + +// SearchGameSessionsPagesWithContext indicates an expected call of SearchGameSessionsPagesWithContext. +func (mr *MockGameLiftAPIMockRecorder) SearchGameSessionsPagesWithContext(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1, arg2}, arg3...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchGameSessionsPagesWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).SearchGameSessionsPagesWithContext), varargs...) +} + +// SearchGameSessionsRequest mocks base method. +func (m *MockGameLiftAPI) SearchGameSessionsRequest(arg0 *gamelift.SearchGameSessionsInput) (*request.Request, *gamelift.SearchGameSessionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SearchGameSessionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.SearchGameSessionsOutput) + return ret0, ret1 +} + +// SearchGameSessionsRequest indicates an expected call of SearchGameSessionsRequest. +func (mr *MockGameLiftAPIMockRecorder) SearchGameSessionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchGameSessionsRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).SearchGameSessionsRequest), arg0) +} + +// SearchGameSessionsWithContext mocks base method. +func (m *MockGameLiftAPI) SearchGameSessionsWithContext(arg0 aws.Context, arg1 *gamelift.SearchGameSessionsInput, arg2 ...request.Option) (*gamelift.SearchGameSessionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SearchGameSessionsWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.SearchGameSessionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SearchGameSessionsWithContext indicates an expected call of SearchGameSessionsWithContext. +func (mr *MockGameLiftAPIMockRecorder) SearchGameSessionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchGameSessionsWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).SearchGameSessionsWithContext), varargs...) +} + +// StartFleetActions mocks base method. +func (m *MockGameLiftAPI) StartFleetActions(arg0 *gamelift.StartFleetActionsInput) (*gamelift.StartFleetActionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartFleetActions", arg0) + ret0, _ := ret[0].(*gamelift.StartFleetActionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartFleetActions indicates an expected call of StartFleetActions. +func (mr *MockGameLiftAPIMockRecorder) StartFleetActions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartFleetActions", reflect.TypeOf((*MockGameLiftAPI)(nil).StartFleetActions), arg0) +} + +// StartFleetActionsRequest mocks base method. +func (m *MockGameLiftAPI) StartFleetActionsRequest(arg0 *gamelift.StartFleetActionsInput) (*request.Request, *gamelift.StartFleetActionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartFleetActionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.StartFleetActionsOutput) + return ret0, ret1 +} + +// StartFleetActionsRequest indicates an expected call of StartFleetActionsRequest. +func (mr *MockGameLiftAPIMockRecorder) StartFleetActionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartFleetActionsRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).StartFleetActionsRequest), arg0) +} + +// StartFleetActionsWithContext mocks base method. +func (m *MockGameLiftAPI) StartFleetActionsWithContext(arg0 aws.Context, arg1 *gamelift.StartFleetActionsInput, arg2 ...request.Option) (*gamelift.StartFleetActionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StartFleetActionsWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.StartFleetActionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartFleetActionsWithContext indicates an expected call of StartFleetActionsWithContext. +func (mr *MockGameLiftAPIMockRecorder) StartFleetActionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartFleetActionsWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).StartFleetActionsWithContext), varargs...) +} + +// StartGameSessionPlacement mocks base method. +func (m *MockGameLiftAPI) StartGameSessionPlacement(arg0 *gamelift.StartGameSessionPlacementInput) (*gamelift.StartGameSessionPlacementOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartGameSessionPlacement", arg0) + ret0, _ := ret[0].(*gamelift.StartGameSessionPlacementOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartGameSessionPlacement indicates an expected call of StartGameSessionPlacement. +func (mr *MockGameLiftAPIMockRecorder) StartGameSessionPlacement(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartGameSessionPlacement", reflect.TypeOf((*MockGameLiftAPI)(nil).StartGameSessionPlacement), arg0) +} + +// StartGameSessionPlacementRequest mocks base method. +func (m *MockGameLiftAPI) StartGameSessionPlacementRequest(arg0 *gamelift.StartGameSessionPlacementInput) (*request.Request, *gamelift.StartGameSessionPlacementOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartGameSessionPlacementRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.StartGameSessionPlacementOutput) + return ret0, ret1 +} + +// StartGameSessionPlacementRequest indicates an expected call of StartGameSessionPlacementRequest. +func (mr *MockGameLiftAPIMockRecorder) StartGameSessionPlacementRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartGameSessionPlacementRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).StartGameSessionPlacementRequest), arg0) +} + +// StartGameSessionPlacementWithContext mocks base method. +func (m *MockGameLiftAPI) StartGameSessionPlacementWithContext(arg0 aws.Context, arg1 *gamelift.StartGameSessionPlacementInput, arg2 ...request.Option) (*gamelift.StartGameSessionPlacementOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StartGameSessionPlacementWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.StartGameSessionPlacementOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartGameSessionPlacementWithContext indicates an expected call of StartGameSessionPlacementWithContext. +func (mr *MockGameLiftAPIMockRecorder) StartGameSessionPlacementWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartGameSessionPlacementWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).StartGameSessionPlacementWithContext), varargs...) +} + +// StartMatchBackfill mocks base method. +func (m *MockGameLiftAPI) StartMatchBackfill(arg0 *gamelift.StartMatchBackfillInput) (*gamelift.StartMatchBackfillOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartMatchBackfill", arg0) + ret0, _ := ret[0].(*gamelift.StartMatchBackfillOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartMatchBackfill indicates an expected call of StartMatchBackfill. +func (mr *MockGameLiftAPIMockRecorder) StartMatchBackfill(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartMatchBackfill", reflect.TypeOf((*MockGameLiftAPI)(nil).StartMatchBackfill), arg0) +} + +// StartMatchBackfillRequest mocks base method. +func (m *MockGameLiftAPI) StartMatchBackfillRequest(arg0 *gamelift.StartMatchBackfillInput) (*request.Request, *gamelift.StartMatchBackfillOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartMatchBackfillRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.StartMatchBackfillOutput) + return ret0, ret1 +} + +// StartMatchBackfillRequest indicates an expected call of StartMatchBackfillRequest. +func (mr *MockGameLiftAPIMockRecorder) StartMatchBackfillRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartMatchBackfillRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).StartMatchBackfillRequest), arg0) +} + +// StartMatchBackfillWithContext mocks base method. +func (m *MockGameLiftAPI) StartMatchBackfillWithContext(arg0 aws.Context, arg1 *gamelift.StartMatchBackfillInput, arg2 ...request.Option) (*gamelift.StartMatchBackfillOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StartMatchBackfillWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.StartMatchBackfillOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartMatchBackfillWithContext indicates an expected call of StartMatchBackfillWithContext. +func (mr *MockGameLiftAPIMockRecorder) StartMatchBackfillWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartMatchBackfillWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).StartMatchBackfillWithContext), varargs...) +} + +// StartMatchmaking mocks base method. +func (m *MockGameLiftAPI) StartMatchmaking(arg0 *gamelift.StartMatchmakingInput) (*gamelift.StartMatchmakingOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartMatchmaking", arg0) + ret0, _ := ret[0].(*gamelift.StartMatchmakingOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartMatchmaking indicates an expected call of StartMatchmaking. +func (mr *MockGameLiftAPIMockRecorder) StartMatchmaking(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartMatchmaking", reflect.TypeOf((*MockGameLiftAPI)(nil).StartMatchmaking), arg0) +} + +// StartMatchmakingRequest mocks base method. +func (m *MockGameLiftAPI) StartMatchmakingRequest(arg0 *gamelift.StartMatchmakingInput) (*request.Request, *gamelift.StartMatchmakingOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StartMatchmakingRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.StartMatchmakingOutput) + return ret0, ret1 +} + +// StartMatchmakingRequest indicates an expected call of StartMatchmakingRequest. +func (mr *MockGameLiftAPIMockRecorder) StartMatchmakingRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartMatchmakingRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).StartMatchmakingRequest), arg0) +} + +// StartMatchmakingWithContext mocks base method. +func (m *MockGameLiftAPI) StartMatchmakingWithContext(arg0 aws.Context, arg1 *gamelift.StartMatchmakingInput, arg2 ...request.Option) (*gamelift.StartMatchmakingOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StartMatchmakingWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.StartMatchmakingOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StartMatchmakingWithContext indicates an expected call of StartMatchmakingWithContext. +func (mr *MockGameLiftAPIMockRecorder) StartMatchmakingWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartMatchmakingWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).StartMatchmakingWithContext), varargs...) +} + +// StopFleetActions mocks base method. +func (m *MockGameLiftAPI) StopFleetActions(arg0 *gamelift.StopFleetActionsInput) (*gamelift.StopFleetActionsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopFleetActions", arg0) + ret0, _ := ret[0].(*gamelift.StopFleetActionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopFleetActions indicates an expected call of StopFleetActions. +func (mr *MockGameLiftAPIMockRecorder) StopFleetActions(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopFleetActions", reflect.TypeOf((*MockGameLiftAPI)(nil).StopFleetActions), arg0) +} + +// StopFleetActionsRequest mocks base method. +func (m *MockGameLiftAPI) StopFleetActionsRequest(arg0 *gamelift.StopFleetActionsInput) (*request.Request, *gamelift.StopFleetActionsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopFleetActionsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.StopFleetActionsOutput) + return ret0, ret1 +} + +// StopFleetActionsRequest indicates an expected call of StopFleetActionsRequest. +func (mr *MockGameLiftAPIMockRecorder) StopFleetActionsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopFleetActionsRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).StopFleetActionsRequest), arg0) +} + +// StopFleetActionsWithContext mocks base method. +func (m *MockGameLiftAPI) StopFleetActionsWithContext(arg0 aws.Context, arg1 *gamelift.StopFleetActionsInput, arg2 ...request.Option) (*gamelift.StopFleetActionsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StopFleetActionsWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.StopFleetActionsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopFleetActionsWithContext indicates an expected call of StopFleetActionsWithContext. +func (mr *MockGameLiftAPIMockRecorder) StopFleetActionsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopFleetActionsWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).StopFleetActionsWithContext), varargs...) +} + +// StopGameSessionPlacement mocks base method. +func (m *MockGameLiftAPI) StopGameSessionPlacement(arg0 *gamelift.StopGameSessionPlacementInput) (*gamelift.StopGameSessionPlacementOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopGameSessionPlacement", arg0) + ret0, _ := ret[0].(*gamelift.StopGameSessionPlacementOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopGameSessionPlacement indicates an expected call of StopGameSessionPlacement. +func (mr *MockGameLiftAPIMockRecorder) StopGameSessionPlacement(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopGameSessionPlacement", reflect.TypeOf((*MockGameLiftAPI)(nil).StopGameSessionPlacement), arg0) +} + +// StopGameSessionPlacementRequest mocks base method. +func (m *MockGameLiftAPI) StopGameSessionPlacementRequest(arg0 *gamelift.StopGameSessionPlacementInput) (*request.Request, *gamelift.StopGameSessionPlacementOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopGameSessionPlacementRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.StopGameSessionPlacementOutput) + return ret0, ret1 +} + +// StopGameSessionPlacementRequest indicates an expected call of StopGameSessionPlacementRequest. +func (mr *MockGameLiftAPIMockRecorder) StopGameSessionPlacementRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopGameSessionPlacementRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).StopGameSessionPlacementRequest), arg0) +} + +// StopGameSessionPlacementWithContext mocks base method. +func (m *MockGameLiftAPI) StopGameSessionPlacementWithContext(arg0 aws.Context, arg1 *gamelift.StopGameSessionPlacementInput, arg2 ...request.Option) (*gamelift.StopGameSessionPlacementOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StopGameSessionPlacementWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.StopGameSessionPlacementOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopGameSessionPlacementWithContext indicates an expected call of StopGameSessionPlacementWithContext. +func (mr *MockGameLiftAPIMockRecorder) StopGameSessionPlacementWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopGameSessionPlacementWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).StopGameSessionPlacementWithContext), varargs...) +} + +// StopMatchmaking mocks base method. +func (m *MockGameLiftAPI) StopMatchmaking(arg0 *gamelift.StopMatchmakingInput) (*gamelift.StopMatchmakingOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopMatchmaking", arg0) + ret0, _ := ret[0].(*gamelift.StopMatchmakingOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopMatchmaking indicates an expected call of StopMatchmaking. +func (mr *MockGameLiftAPIMockRecorder) StopMatchmaking(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopMatchmaking", reflect.TypeOf((*MockGameLiftAPI)(nil).StopMatchmaking), arg0) +} + +// StopMatchmakingRequest mocks base method. +func (m *MockGameLiftAPI) StopMatchmakingRequest(arg0 *gamelift.StopMatchmakingInput) (*request.Request, *gamelift.StopMatchmakingOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StopMatchmakingRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.StopMatchmakingOutput) + return ret0, ret1 +} + +// StopMatchmakingRequest indicates an expected call of StopMatchmakingRequest. +func (mr *MockGameLiftAPIMockRecorder) StopMatchmakingRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopMatchmakingRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).StopMatchmakingRequest), arg0) +} + +// StopMatchmakingWithContext mocks base method. +func (m *MockGameLiftAPI) StopMatchmakingWithContext(arg0 aws.Context, arg1 *gamelift.StopMatchmakingInput, arg2 ...request.Option) (*gamelift.StopMatchmakingOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "StopMatchmakingWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.StopMatchmakingOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StopMatchmakingWithContext indicates an expected call of StopMatchmakingWithContext. +func (mr *MockGameLiftAPIMockRecorder) StopMatchmakingWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopMatchmakingWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).StopMatchmakingWithContext), varargs...) +} + +// SuspendGameServerGroup mocks base method. +func (m *MockGameLiftAPI) SuspendGameServerGroup(arg0 *gamelift.SuspendGameServerGroupInput) (*gamelift.SuspendGameServerGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SuspendGameServerGroup", arg0) + ret0, _ := ret[0].(*gamelift.SuspendGameServerGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SuspendGameServerGroup indicates an expected call of SuspendGameServerGroup. +func (mr *MockGameLiftAPIMockRecorder) SuspendGameServerGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SuspendGameServerGroup", reflect.TypeOf((*MockGameLiftAPI)(nil).SuspendGameServerGroup), arg0) +} + +// SuspendGameServerGroupRequest mocks base method. +func (m *MockGameLiftAPI) SuspendGameServerGroupRequest(arg0 *gamelift.SuspendGameServerGroupInput) (*request.Request, *gamelift.SuspendGameServerGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SuspendGameServerGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.SuspendGameServerGroupOutput) + return ret0, ret1 +} + +// SuspendGameServerGroupRequest indicates an expected call of SuspendGameServerGroupRequest. +func (mr *MockGameLiftAPIMockRecorder) SuspendGameServerGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SuspendGameServerGroupRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).SuspendGameServerGroupRequest), arg0) +} + +// SuspendGameServerGroupWithContext mocks base method. +func (m *MockGameLiftAPI) SuspendGameServerGroupWithContext(arg0 aws.Context, arg1 *gamelift.SuspendGameServerGroupInput, arg2 ...request.Option) (*gamelift.SuspendGameServerGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "SuspendGameServerGroupWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.SuspendGameServerGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SuspendGameServerGroupWithContext indicates an expected call of SuspendGameServerGroupWithContext. +func (mr *MockGameLiftAPIMockRecorder) SuspendGameServerGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SuspendGameServerGroupWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).SuspendGameServerGroupWithContext), varargs...) +} + +// TagResource mocks base method. +func (m *MockGameLiftAPI) TagResource(arg0 *gamelift.TagResourceInput) (*gamelift.TagResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagResource", arg0) + ret0, _ := ret[0].(*gamelift.TagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagResource indicates an expected call of TagResource. +func (mr *MockGameLiftAPIMockRecorder) TagResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagResource", reflect.TypeOf((*MockGameLiftAPI)(nil).TagResource), arg0) +} + +// TagResourceRequest mocks base method. +func (m *MockGameLiftAPI) TagResourceRequest(arg0 *gamelift.TagResourceInput) (*request.Request, *gamelift.TagResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TagResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.TagResourceOutput) + return ret0, ret1 +} + +// TagResourceRequest indicates an expected call of TagResourceRequest. +func (mr *MockGameLiftAPIMockRecorder) TagResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagResourceRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).TagResourceRequest), arg0) +} + +// TagResourceWithContext mocks base method. +func (m *MockGameLiftAPI) TagResourceWithContext(arg0 aws.Context, arg1 *gamelift.TagResourceInput, arg2 ...request.Option) (*gamelift.TagResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "TagResourceWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.TagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TagResourceWithContext indicates an expected call of TagResourceWithContext. +func (mr *MockGameLiftAPIMockRecorder) TagResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TagResourceWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).TagResourceWithContext), varargs...) +} + +// UntagResource mocks base method. +func (m *MockGameLiftAPI) UntagResource(arg0 *gamelift.UntagResourceInput) (*gamelift.UntagResourceOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagResource", arg0) + ret0, _ := ret[0].(*gamelift.UntagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagResource indicates an expected call of UntagResource. +func (mr *MockGameLiftAPIMockRecorder) UntagResource(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagResource", reflect.TypeOf((*MockGameLiftAPI)(nil).UntagResource), arg0) +} + +// UntagResourceRequest mocks base method. +func (m *MockGameLiftAPI) UntagResourceRequest(arg0 *gamelift.UntagResourceInput) (*request.Request, *gamelift.UntagResourceOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UntagResourceRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.UntagResourceOutput) + return ret0, ret1 +} + +// UntagResourceRequest indicates an expected call of UntagResourceRequest. +func (mr *MockGameLiftAPIMockRecorder) UntagResourceRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagResourceRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).UntagResourceRequest), arg0) +} + +// UntagResourceWithContext mocks base method. +func (m *MockGameLiftAPI) UntagResourceWithContext(arg0 aws.Context, arg1 *gamelift.UntagResourceInput, arg2 ...request.Option) (*gamelift.UntagResourceOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UntagResourceWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.UntagResourceOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UntagResourceWithContext indicates an expected call of UntagResourceWithContext. +func (mr *MockGameLiftAPIMockRecorder) UntagResourceWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UntagResourceWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).UntagResourceWithContext), varargs...) +} + +// UpdateAlias mocks base method. +func (m *MockGameLiftAPI) UpdateAlias(arg0 *gamelift.UpdateAliasInput) (*gamelift.UpdateAliasOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateAlias", arg0) + ret0, _ := ret[0].(*gamelift.UpdateAliasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateAlias indicates an expected call of UpdateAlias. +func (mr *MockGameLiftAPIMockRecorder) UpdateAlias(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAlias", reflect.TypeOf((*MockGameLiftAPI)(nil).UpdateAlias), arg0) +} + +// UpdateAliasRequest mocks base method. +func (m *MockGameLiftAPI) UpdateAliasRequest(arg0 *gamelift.UpdateAliasInput) (*request.Request, *gamelift.UpdateAliasOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateAliasRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.UpdateAliasOutput) + return ret0, ret1 +} + +// UpdateAliasRequest indicates an expected call of UpdateAliasRequest. +func (mr *MockGameLiftAPIMockRecorder) UpdateAliasRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAliasRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).UpdateAliasRequest), arg0) +} + +// UpdateAliasWithContext mocks base method. +func (m *MockGameLiftAPI) UpdateAliasWithContext(arg0 aws.Context, arg1 *gamelift.UpdateAliasInput, arg2 ...request.Option) (*gamelift.UpdateAliasOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateAliasWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.UpdateAliasOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateAliasWithContext indicates an expected call of UpdateAliasWithContext. +func (mr *MockGameLiftAPIMockRecorder) UpdateAliasWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAliasWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).UpdateAliasWithContext), varargs...) +} + +// UpdateBuild mocks base method. +func (m *MockGameLiftAPI) UpdateBuild(arg0 *gamelift.UpdateBuildInput) (*gamelift.UpdateBuildOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateBuild", arg0) + ret0, _ := ret[0].(*gamelift.UpdateBuildOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateBuild indicates an expected call of UpdateBuild. +func (mr *MockGameLiftAPIMockRecorder) UpdateBuild(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateBuild", reflect.TypeOf((*MockGameLiftAPI)(nil).UpdateBuild), arg0) +} + +// UpdateBuildRequest mocks base method. +func (m *MockGameLiftAPI) UpdateBuildRequest(arg0 *gamelift.UpdateBuildInput) (*request.Request, *gamelift.UpdateBuildOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateBuildRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.UpdateBuildOutput) + return ret0, ret1 +} + +// UpdateBuildRequest indicates an expected call of UpdateBuildRequest. +func (mr *MockGameLiftAPIMockRecorder) UpdateBuildRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateBuildRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).UpdateBuildRequest), arg0) +} + +// UpdateBuildWithContext mocks base method. +func (m *MockGameLiftAPI) UpdateBuildWithContext(arg0 aws.Context, arg1 *gamelift.UpdateBuildInput, arg2 ...request.Option) (*gamelift.UpdateBuildOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateBuildWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.UpdateBuildOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateBuildWithContext indicates an expected call of UpdateBuildWithContext. +func (mr *MockGameLiftAPIMockRecorder) UpdateBuildWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateBuildWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).UpdateBuildWithContext), varargs...) +} + +// UpdateFleetAttributes mocks base method. +func (m *MockGameLiftAPI) UpdateFleetAttributes(arg0 *gamelift.UpdateFleetAttributesInput) (*gamelift.UpdateFleetAttributesOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateFleetAttributes", arg0) + ret0, _ := ret[0].(*gamelift.UpdateFleetAttributesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateFleetAttributes indicates an expected call of UpdateFleetAttributes. +func (mr *MockGameLiftAPIMockRecorder) UpdateFleetAttributes(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFleetAttributes", reflect.TypeOf((*MockGameLiftAPI)(nil).UpdateFleetAttributes), arg0) +} + +// UpdateFleetAttributesRequest mocks base method. +func (m *MockGameLiftAPI) UpdateFleetAttributesRequest(arg0 *gamelift.UpdateFleetAttributesInput) (*request.Request, *gamelift.UpdateFleetAttributesOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateFleetAttributesRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.UpdateFleetAttributesOutput) + return ret0, ret1 +} + +// UpdateFleetAttributesRequest indicates an expected call of UpdateFleetAttributesRequest. +func (mr *MockGameLiftAPIMockRecorder) UpdateFleetAttributesRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFleetAttributesRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).UpdateFleetAttributesRequest), arg0) +} + +// UpdateFleetAttributesWithContext mocks base method. +func (m *MockGameLiftAPI) UpdateFleetAttributesWithContext(arg0 aws.Context, arg1 *gamelift.UpdateFleetAttributesInput, arg2 ...request.Option) (*gamelift.UpdateFleetAttributesOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateFleetAttributesWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.UpdateFleetAttributesOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateFleetAttributesWithContext indicates an expected call of UpdateFleetAttributesWithContext. +func (mr *MockGameLiftAPIMockRecorder) UpdateFleetAttributesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFleetAttributesWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).UpdateFleetAttributesWithContext), varargs...) +} + +// UpdateFleetCapacity mocks base method. +func (m *MockGameLiftAPI) UpdateFleetCapacity(arg0 *gamelift.UpdateFleetCapacityInput) (*gamelift.UpdateFleetCapacityOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateFleetCapacity", arg0) + ret0, _ := ret[0].(*gamelift.UpdateFleetCapacityOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateFleetCapacity indicates an expected call of UpdateFleetCapacity. +func (mr *MockGameLiftAPIMockRecorder) UpdateFleetCapacity(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFleetCapacity", reflect.TypeOf((*MockGameLiftAPI)(nil).UpdateFleetCapacity), arg0) +} + +// UpdateFleetCapacityRequest mocks base method. +func (m *MockGameLiftAPI) UpdateFleetCapacityRequest(arg0 *gamelift.UpdateFleetCapacityInput) (*request.Request, *gamelift.UpdateFleetCapacityOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateFleetCapacityRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.UpdateFleetCapacityOutput) + return ret0, ret1 +} + +// UpdateFleetCapacityRequest indicates an expected call of UpdateFleetCapacityRequest. +func (mr *MockGameLiftAPIMockRecorder) UpdateFleetCapacityRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFleetCapacityRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).UpdateFleetCapacityRequest), arg0) +} + +// UpdateFleetCapacityWithContext mocks base method. +func (m *MockGameLiftAPI) UpdateFleetCapacityWithContext(arg0 aws.Context, arg1 *gamelift.UpdateFleetCapacityInput, arg2 ...request.Option) (*gamelift.UpdateFleetCapacityOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateFleetCapacityWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.UpdateFleetCapacityOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateFleetCapacityWithContext indicates an expected call of UpdateFleetCapacityWithContext. +func (mr *MockGameLiftAPIMockRecorder) UpdateFleetCapacityWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFleetCapacityWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).UpdateFleetCapacityWithContext), varargs...) +} + +// UpdateFleetPortSettings mocks base method. +func (m *MockGameLiftAPI) UpdateFleetPortSettings(arg0 *gamelift.UpdateFleetPortSettingsInput) (*gamelift.UpdateFleetPortSettingsOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateFleetPortSettings", arg0) + ret0, _ := ret[0].(*gamelift.UpdateFleetPortSettingsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateFleetPortSettings indicates an expected call of UpdateFleetPortSettings. +func (mr *MockGameLiftAPIMockRecorder) UpdateFleetPortSettings(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFleetPortSettings", reflect.TypeOf((*MockGameLiftAPI)(nil).UpdateFleetPortSettings), arg0) +} + +// UpdateFleetPortSettingsRequest mocks base method. +func (m *MockGameLiftAPI) UpdateFleetPortSettingsRequest(arg0 *gamelift.UpdateFleetPortSettingsInput) (*request.Request, *gamelift.UpdateFleetPortSettingsOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateFleetPortSettingsRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.UpdateFleetPortSettingsOutput) + return ret0, ret1 +} + +// UpdateFleetPortSettingsRequest indicates an expected call of UpdateFleetPortSettingsRequest. +func (mr *MockGameLiftAPIMockRecorder) UpdateFleetPortSettingsRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFleetPortSettingsRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).UpdateFleetPortSettingsRequest), arg0) +} + +// UpdateFleetPortSettingsWithContext mocks base method. +func (m *MockGameLiftAPI) UpdateFleetPortSettingsWithContext(arg0 aws.Context, arg1 *gamelift.UpdateFleetPortSettingsInput, arg2 ...request.Option) (*gamelift.UpdateFleetPortSettingsOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateFleetPortSettingsWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.UpdateFleetPortSettingsOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateFleetPortSettingsWithContext indicates an expected call of UpdateFleetPortSettingsWithContext. +func (mr *MockGameLiftAPIMockRecorder) UpdateFleetPortSettingsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFleetPortSettingsWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).UpdateFleetPortSettingsWithContext), varargs...) +} + +// UpdateGameServer mocks base method. +func (m *MockGameLiftAPI) UpdateGameServer(arg0 *gamelift.UpdateGameServerInput) (*gamelift.UpdateGameServerOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateGameServer", arg0) + ret0, _ := ret[0].(*gamelift.UpdateGameServerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateGameServer indicates an expected call of UpdateGameServer. +func (mr *MockGameLiftAPIMockRecorder) UpdateGameServer(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGameServer", reflect.TypeOf((*MockGameLiftAPI)(nil).UpdateGameServer), arg0) +} + +// UpdateGameServerGroup mocks base method. +func (m *MockGameLiftAPI) UpdateGameServerGroup(arg0 *gamelift.UpdateGameServerGroupInput) (*gamelift.UpdateGameServerGroupOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateGameServerGroup", arg0) + ret0, _ := ret[0].(*gamelift.UpdateGameServerGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateGameServerGroup indicates an expected call of UpdateGameServerGroup. +func (mr *MockGameLiftAPIMockRecorder) UpdateGameServerGroup(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGameServerGroup", reflect.TypeOf((*MockGameLiftAPI)(nil).UpdateGameServerGroup), arg0) +} + +// UpdateGameServerGroupRequest mocks base method. +func (m *MockGameLiftAPI) UpdateGameServerGroupRequest(arg0 *gamelift.UpdateGameServerGroupInput) (*request.Request, *gamelift.UpdateGameServerGroupOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateGameServerGroupRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.UpdateGameServerGroupOutput) + return ret0, ret1 +} + +// UpdateGameServerGroupRequest indicates an expected call of UpdateGameServerGroupRequest. +func (mr *MockGameLiftAPIMockRecorder) UpdateGameServerGroupRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGameServerGroupRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).UpdateGameServerGroupRequest), arg0) +} + +// UpdateGameServerGroupWithContext mocks base method. +func (m *MockGameLiftAPI) UpdateGameServerGroupWithContext(arg0 aws.Context, arg1 *gamelift.UpdateGameServerGroupInput, arg2 ...request.Option) (*gamelift.UpdateGameServerGroupOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateGameServerGroupWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.UpdateGameServerGroupOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateGameServerGroupWithContext indicates an expected call of UpdateGameServerGroupWithContext. +func (mr *MockGameLiftAPIMockRecorder) UpdateGameServerGroupWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGameServerGroupWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).UpdateGameServerGroupWithContext), varargs...) +} + +// UpdateGameServerRequest mocks base method. +func (m *MockGameLiftAPI) UpdateGameServerRequest(arg0 *gamelift.UpdateGameServerInput) (*request.Request, *gamelift.UpdateGameServerOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateGameServerRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.UpdateGameServerOutput) + return ret0, ret1 +} + +// UpdateGameServerRequest indicates an expected call of UpdateGameServerRequest. +func (mr *MockGameLiftAPIMockRecorder) UpdateGameServerRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGameServerRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).UpdateGameServerRequest), arg0) +} + +// UpdateGameServerWithContext mocks base method. +func (m *MockGameLiftAPI) UpdateGameServerWithContext(arg0 aws.Context, arg1 *gamelift.UpdateGameServerInput, arg2 ...request.Option) (*gamelift.UpdateGameServerOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateGameServerWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.UpdateGameServerOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateGameServerWithContext indicates an expected call of UpdateGameServerWithContext. +func (mr *MockGameLiftAPIMockRecorder) UpdateGameServerWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGameServerWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).UpdateGameServerWithContext), varargs...) +} + +// UpdateGameSession mocks base method. +func (m *MockGameLiftAPI) UpdateGameSession(arg0 *gamelift.UpdateGameSessionInput) (*gamelift.UpdateGameSessionOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateGameSession", arg0) + ret0, _ := ret[0].(*gamelift.UpdateGameSessionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateGameSession indicates an expected call of UpdateGameSession. +func (mr *MockGameLiftAPIMockRecorder) UpdateGameSession(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGameSession", reflect.TypeOf((*MockGameLiftAPI)(nil).UpdateGameSession), arg0) +} + +// UpdateGameSessionQueue mocks base method. +func (m *MockGameLiftAPI) UpdateGameSessionQueue(arg0 *gamelift.UpdateGameSessionQueueInput) (*gamelift.UpdateGameSessionQueueOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateGameSessionQueue", arg0) + ret0, _ := ret[0].(*gamelift.UpdateGameSessionQueueOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateGameSessionQueue indicates an expected call of UpdateGameSessionQueue. +func (mr *MockGameLiftAPIMockRecorder) UpdateGameSessionQueue(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGameSessionQueue", reflect.TypeOf((*MockGameLiftAPI)(nil).UpdateGameSessionQueue), arg0) +} + +// UpdateGameSessionQueueRequest mocks base method. +func (m *MockGameLiftAPI) UpdateGameSessionQueueRequest(arg0 *gamelift.UpdateGameSessionQueueInput) (*request.Request, *gamelift.UpdateGameSessionQueueOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateGameSessionQueueRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.UpdateGameSessionQueueOutput) + return ret0, ret1 +} + +// UpdateGameSessionQueueRequest indicates an expected call of UpdateGameSessionQueueRequest. +func (mr *MockGameLiftAPIMockRecorder) UpdateGameSessionQueueRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGameSessionQueueRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).UpdateGameSessionQueueRequest), arg0) +} + +// UpdateGameSessionQueueWithContext mocks base method. +func (m *MockGameLiftAPI) UpdateGameSessionQueueWithContext(arg0 aws.Context, arg1 *gamelift.UpdateGameSessionQueueInput, arg2 ...request.Option) (*gamelift.UpdateGameSessionQueueOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateGameSessionQueueWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.UpdateGameSessionQueueOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateGameSessionQueueWithContext indicates an expected call of UpdateGameSessionQueueWithContext. +func (mr *MockGameLiftAPIMockRecorder) UpdateGameSessionQueueWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGameSessionQueueWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).UpdateGameSessionQueueWithContext), varargs...) +} + +// UpdateGameSessionRequest mocks base method. +func (m *MockGameLiftAPI) UpdateGameSessionRequest(arg0 *gamelift.UpdateGameSessionInput) (*request.Request, *gamelift.UpdateGameSessionOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateGameSessionRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.UpdateGameSessionOutput) + return ret0, ret1 +} + +// UpdateGameSessionRequest indicates an expected call of UpdateGameSessionRequest. +func (mr *MockGameLiftAPIMockRecorder) UpdateGameSessionRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGameSessionRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).UpdateGameSessionRequest), arg0) +} + +// UpdateGameSessionWithContext mocks base method. +func (m *MockGameLiftAPI) UpdateGameSessionWithContext(arg0 aws.Context, arg1 *gamelift.UpdateGameSessionInput, arg2 ...request.Option) (*gamelift.UpdateGameSessionOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateGameSessionWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.UpdateGameSessionOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateGameSessionWithContext indicates an expected call of UpdateGameSessionWithContext. +func (mr *MockGameLiftAPIMockRecorder) UpdateGameSessionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGameSessionWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).UpdateGameSessionWithContext), varargs...) +} + +// UpdateMatchmakingConfiguration mocks base method. +func (m *MockGameLiftAPI) UpdateMatchmakingConfiguration(arg0 *gamelift.UpdateMatchmakingConfigurationInput) (*gamelift.UpdateMatchmakingConfigurationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateMatchmakingConfiguration", arg0) + ret0, _ := ret[0].(*gamelift.UpdateMatchmakingConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateMatchmakingConfiguration indicates an expected call of UpdateMatchmakingConfiguration. +func (mr *MockGameLiftAPIMockRecorder) UpdateMatchmakingConfiguration(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMatchmakingConfiguration", reflect.TypeOf((*MockGameLiftAPI)(nil).UpdateMatchmakingConfiguration), arg0) +} + +// UpdateMatchmakingConfigurationRequest mocks base method. +func (m *MockGameLiftAPI) UpdateMatchmakingConfigurationRequest(arg0 *gamelift.UpdateMatchmakingConfigurationInput) (*request.Request, *gamelift.UpdateMatchmakingConfigurationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateMatchmakingConfigurationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.UpdateMatchmakingConfigurationOutput) + return ret0, ret1 +} + +// UpdateMatchmakingConfigurationRequest indicates an expected call of UpdateMatchmakingConfigurationRequest. +func (mr *MockGameLiftAPIMockRecorder) UpdateMatchmakingConfigurationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMatchmakingConfigurationRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).UpdateMatchmakingConfigurationRequest), arg0) +} + +// UpdateMatchmakingConfigurationWithContext mocks base method. +func (m *MockGameLiftAPI) UpdateMatchmakingConfigurationWithContext(arg0 aws.Context, arg1 *gamelift.UpdateMatchmakingConfigurationInput, arg2 ...request.Option) (*gamelift.UpdateMatchmakingConfigurationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateMatchmakingConfigurationWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.UpdateMatchmakingConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateMatchmakingConfigurationWithContext indicates an expected call of UpdateMatchmakingConfigurationWithContext. +func (mr *MockGameLiftAPIMockRecorder) UpdateMatchmakingConfigurationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMatchmakingConfigurationWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).UpdateMatchmakingConfigurationWithContext), varargs...) +} + +// UpdateRuntimeConfiguration mocks base method. +func (m *MockGameLiftAPI) UpdateRuntimeConfiguration(arg0 *gamelift.UpdateRuntimeConfigurationInput) (*gamelift.UpdateRuntimeConfigurationOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateRuntimeConfiguration", arg0) + ret0, _ := ret[0].(*gamelift.UpdateRuntimeConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateRuntimeConfiguration indicates an expected call of UpdateRuntimeConfiguration. +func (mr *MockGameLiftAPIMockRecorder) UpdateRuntimeConfiguration(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRuntimeConfiguration", reflect.TypeOf((*MockGameLiftAPI)(nil).UpdateRuntimeConfiguration), arg0) +} + +// UpdateRuntimeConfigurationRequest mocks base method. +func (m *MockGameLiftAPI) UpdateRuntimeConfigurationRequest(arg0 *gamelift.UpdateRuntimeConfigurationInput) (*request.Request, *gamelift.UpdateRuntimeConfigurationOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateRuntimeConfigurationRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.UpdateRuntimeConfigurationOutput) + return ret0, ret1 +} + +// UpdateRuntimeConfigurationRequest indicates an expected call of UpdateRuntimeConfigurationRequest. +func (mr *MockGameLiftAPIMockRecorder) UpdateRuntimeConfigurationRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRuntimeConfigurationRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).UpdateRuntimeConfigurationRequest), arg0) +} + +// UpdateRuntimeConfigurationWithContext mocks base method. +func (m *MockGameLiftAPI) UpdateRuntimeConfigurationWithContext(arg0 aws.Context, arg1 *gamelift.UpdateRuntimeConfigurationInput, arg2 ...request.Option) (*gamelift.UpdateRuntimeConfigurationOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateRuntimeConfigurationWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.UpdateRuntimeConfigurationOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateRuntimeConfigurationWithContext indicates an expected call of UpdateRuntimeConfigurationWithContext. +func (mr *MockGameLiftAPIMockRecorder) UpdateRuntimeConfigurationWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRuntimeConfigurationWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).UpdateRuntimeConfigurationWithContext), varargs...) +} + +// UpdateScript mocks base method. +func (m *MockGameLiftAPI) UpdateScript(arg0 *gamelift.UpdateScriptInput) (*gamelift.UpdateScriptOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateScript", arg0) + ret0, _ := ret[0].(*gamelift.UpdateScriptOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateScript indicates an expected call of UpdateScript. +func (mr *MockGameLiftAPIMockRecorder) UpdateScript(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateScript", reflect.TypeOf((*MockGameLiftAPI)(nil).UpdateScript), arg0) +} + +// UpdateScriptRequest mocks base method. +func (m *MockGameLiftAPI) UpdateScriptRequest(arg0 *gamelift.UpdateScriptInput) (*request.Request, *gamelift.UpdateScriptOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateScriptRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.UpdateScriptOutput) + return ret0, ret1 +} + +// UpdateScriptRequest indicates an expected call of UpdateScriptRequest. +func (mr *MockGameLiftAPIMockRecorder) UpdateScriptRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateScriptRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).UpdateScriptRequest), arg0) +} + +// UpdateScriptWithContext mocks base method. +func (m *MockGameLiftAPI) UpdateScriptWithContext(arg0 aws.Context, arg1 *gamelift.UpdateScriptInput, arg2 ...request.Option) (*gamelift.UpdateScriptOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateScriptWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.UpdateScriptOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateScriptWithContext indicates an expected call of UpdateScriptWithContext. +func (mr *MockGameLiftAPIMockRecorder) UpdateScriptWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateScriptWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).UpdateScriptWithContext), varargs...) +} + +// ValidateMatchmakingRuleSet mocks base method. +func (m *MockGameLiftAPI) ValidateMatchmakingRuleSet(arg0 *gamelift.ValidateMatchmakingRuleSetInput) (*gamelift.ValidateMatchmakingRuleSetOutput, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ValidateMatchmakingRuleSet", arg0) + ret0, _ := ret[0].(*gamelift.ValidateMatchmakingRuleSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ValidateMatchmakingRuleSet indicates an expected call of ValidateMatchmakingRuleSet. +func (mr *MockGameLiftAPIMockRecorder) ValidateMatchmakingRuleSet(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateMatchmakingRuleSet", reflect.TypeOf((*MockGameLiftAPI)(nil).ValidateMatchmakingRuleSet), arg0) +} + +// ValidateMatchmakingRuleSetRequest mocks base method. +func (m *MockGameLiftAPI) ValidateMatchmakingRuleSetRequest(arg0 *gamelift.ValidateMatchmakingRuleSetInput) (*request.Request, *gamelift.ValidateMatchmakingRuleSetOutput) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ValidateMatchmakingRuleSetRequest", arg0) + ret0, _ := ret[0].(*request.Request) + ret1, _ := ret[1].(*gamelift.ValidateMatchmakingRuleSetOutput) + return ret0, ret1 +} + +// ValidateMatchmakingRuleSetRequest indicates an expected call of ValidateMatchmakingRuleSetRequest. +func (mr *MockGameLiftAPIMockRecorder) ValidateMatchmakingRuleSetRequest(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateMatchmakingRuleSetRequest", reflect.TypeOf((*MockGameLiftAPI)(nil).ValidateMatchmakingRuleSetRequest), arg0) +} + +// ValidateMatchmakingRuleSetWithContext mocks base method. +func (m *MockGameLiftAPI) ValidateMatchmakingRuleSetWithContext(arg0 aws.Context, arg1 *gamelift.ValidateMatchmakingRuleSetInput, arg2 ...request.Option) (*gamelift.ValidateMatchmakingRuleSetOutput, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0, arg1} + for _, a := range arg2 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ValidateMatchmakingRuleSetWithContext", varargs...) + ret0, _ := ret[0].(*gamelift.ValidateMatchmakingRuleSetOutput) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ValidateMatchmakingRuleSetWithContext indicates an expected call of ValidateMatchmakingRuleSetWithContext. +func (mr *MockGameLiftAPIMockRecorder) ValidateMatchmakingRuleSetWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0, arg1}, arg2...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateMatchmakingRuleSetWithContext", reflect.TypeOf((*MockGameLiftAPI)(nil).ValidateMatchmakingRuleSetWithContext), varargs...) +} diff --git a/resources/gamelift_mock_test.go b/resources/gamelift_mock_test.go new file mode 100644 index 00000000..175f1758 --- /dev/null +++ b/resources/gamelift_mock_test.go @@ -0,0 +1,4 @@ +//go:generate ../mocks/generate_mocks.sh gamelift gameliftiface +package resources + +// Note: empty on purpose, this file exist purely to generate mocks for the IAM service From 58498aaba1e14cbe8a4a96bb501225e14b3ea79a Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 26 Sep 2024 16:04:54 -0600 Subject: [PATCH 526/617] feat(gamelift-build): add properties --- resources/gamelift-build.go | 52 +++++++++++++++++++++++++++---------- 1 file changed, 38 insertions(+), 14 deletions(-) diff --git a/resources/gamelift-build.go b/resources/gamelift-build.go index 1953a364..96087e72 100644 --- a/resources/gamelift-build.go +++ b/resources/gamelift-build.go @@ -2,11 +2,13 @@ package resources import ( "context" + "time" "github.com/aws/aws-sdk-go/service/gamelift" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) @@ -25,28 +27,46 @@ type GameLiftBuildLister struct{} func (l *GameLiftBuildLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) + var resources []resource.Resource svc := gamelift.New(opts.Session) - resp, err := svc.ListBuilds(&gamelift.ListBuildsInput{}) - if err != nil { - return nil, err - } - - builds := make([]resource.Resource, 0) - for _, build := range resp.Builds { - builds = append(builds, &GameLiftBuild{ - svc: svc, - BuildID: build.BuildId, - }) + params := &gamelift.ListBuildsInput{} + + for { + resp, err := svc.ListBuilds(params) + if err != nil { + return nil, err + } + + for _, build := range resp.Builds { + resources = append(resources, &GameLiftBuild{ + svc: svc, + BuildID: build.BuildId, + Name: build.Name, + Status: build.Status, + Version: build.Version, + CreationDate: build.CreationTime, + }) + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken } - return builds, nil + return resources, nil } type GameLiftBuild struct { - svc *gamelift.GameLift - BuildID *string + svc *gamelift.GameLift + BuildID *string + Name *string + Status *string + Version *string + CreationDate *time.Time } func (r *GameLiftBuild) Remove(_ context.Context) error { @@ -62,6 +82,10 @@ func (r *GameLiftBuild) Remove(_ context.Context) error { return nil } +func (r *GameLiftBuild) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + func (r *GameLiftBuild) String() string { return *r.BuildID } From 716b15b4177f98a2c9c33bb951a77678b501a1ca Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 26 Sep 2024 16:07:29 -0600 Subject: [PATCH 527/617] feat(gamelift-fleet): add properties and pagination support --- resources/gamelift-fleet.go | 44 ++++++++++++++++++++++++------------- 1 file changed, 29 insertions(+), 15 deletions(-) diff --git a/resources/gamelift-fleet.go b/resources/gamelift-fleet.go index 1e161e7d..14609bc2 100644 --- a/resources/gamelift-fleet.go +++ b/resources/gamelift-fleet.go @@ -3,11 +3,11 @@ package resources import ( "context" - "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/gamelift" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) @@ -26,34 +26,44 @@ type GameLiftFleetLister struct{} func (l *GameLiftFleetLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) + var resources []resource.Resource svc := gamelift.New(opts.Session) - resp, err := svc.ListFleets(&gamelift.ListFleetsInput{}) - if err != nil { - return nil, err - } + params := &gamelift.ListFleetsInput{} - fleets := make([]resource.Resource, 0) - for _, fleetId := range resp.FleetIds { - fleet := &GameLiftFleet{ - svc: svc, - FleetId: *fleetId, // Dereference the fleetId pointer + for { + resp, err := svc.ListFleets(params) + if err != nil { + return nil, err } - fleets = append(fleets, fleet) + + for _, fleetId := range resp.FleetIds { + fleet := &GameLiftFleet{ + svc: svc, + FleetID: fleetId, + } + resources = append(resources, fleet) + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken } - return fleets, nil + return resources, nil } type GameLiftFleet struct { svc *gamelift.GameLift - FleetId string + FleetID *string } func (r *GameLiftFleet) Remove(_ context.Context) error { params := &gamelift.DeleteFleetInput{ - FleetId: aws.String(r.FleetId), + FleetId: r.FleetID, } _, err := r.svc.DeleteFleet(params) @@ -65,5 +75,9 @@ func (r *GameLiftFleet) Remove(_ context.Context) error { } func (r *GameLiftFleet) String() string { - return r.FleetId + return *r.FleetID +} + +func (r *GameLiftFleet) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) } From 69336ced5f81327fcd17fdb13c119837046a2048 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 26 Sep 2024 16:09:20 -0600 Subject: [PATCH 528/617] feat(gamelift-queue): add properties and pagination --- resources/gamelift-queue.go | 37 ++++++++++++++++++++++++++----------- 1 file changed, 26 insertions(+), 11 deletions(-) diff --git a/resources/gamelift-queue.go b/resources/gamelift-queue.go index 4e2a81c1..810cbb12 100644 --- a/resources/gamelift-queue.go +++ b/resources/gamelift-queue.go @@ -7,6 +7,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) @@ -25,24 +26,34 @@ type GameLiftQueueLister struct{} func (l *GameLiftQueueLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) + var resources []resource.Resource svc := gamelift.New(opts.Session) - resp, err := svc.DescribeGameSessionQueues(&gamelift.DescribeGameSessionQueuesInput{}) - if err != nil { - return nil, err - } + params := &gamelift.DescribeGameSessionQueuesInput{} - queues := make([]resource.Resource, 0) - for _, queue := range resp.GameSessionQueues { - q := &GameLiftQueue{ - svc: svc, - Name: queue.Name, + for { + resp, err := svc.DescribeGameSessionQueues(params) + if err != nil { + return nil, err } - queues = append(queues, q) + + for _, queue := range resp.GameSessionQueues { + q := &GameLiftQueue{ + svc: svc, + Name: queue.Name, + } + resources = append(resources, q) + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken } - return queues, nil + return resources, nil } type GameLiftQueue struct { @@ -63,6 +74,10 @@ func (r *GameLiftQueue) Remove(_ context.Context) error { return nil } +func (r *GameLiftQueue) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + func (r *GameLiftQueue) String() string { return *r.Name } From 93e772075e98c7121a0d193fb2a2cac8eee7a5f7 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 26 Sep 2024 16:11:10 -0600 Subject: [PATCH 529/617] feat(gamelift-mm-rule): add properties and pagination --- resources/gamelift-mm-rule.go | 37 ++++++++++++++++++++++++----------- 1 file changed, 26 insertions(+), 11 deletions(-) diff --git a/resources/gamelift-mm-rule.go b/resources/gamelift-mm-rule.go index 42946cf8..63abdb2d 100644 --- a/resources/gamelift-mm-rule.go +++ b/resources/gamelift-mm-rule.go @@ -7,6 +7,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) @@ -25,24 +26,34 @@ type GameLiftMatchmakingRuleSetLister struct{} func (l *GameLiftMatchmakingRuleSetLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) + var resources []resource.Resource svc := gamelift.New(opts.Session) - resp, err := svc.DescribeMatchmakingRuleSets(&gamelift.DescribeMatchmakingRuleSetsInput{}) - if err != nil { - return nil, err - } + params := &gamelift.DescribeMatchmakingRuleSetsInput{} - rules := make([]resource.Resource, 0) - for _, ruleSet := range resp.RuleSets { - q := &GameLiftMatchmakingRuleSet{ - svc: svc, - Name: ruleSet.RuleSetName, + for { + resp, err := svc.DescribeMatchmakingRuleSets(params) + if err != nil { + return nil, err } - rules = append(rules, q) + + for _, ruleSet := range resp.RuleSets { + q := &GameLiftMatchmakingRuleSet{ + svc: svc, + Name: ruleSet.RuleSetName, + } + resources = append(resources, q) + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken } - return rules, nil + return resources, nil } type GameLiftMatchmakingRuleSet struct { @@ -63,6 +74,10 @@ func (r *GameLiftMatchmakingRuleSet) Remove(_ context.Context) error { return nil } +func (r *GameLiftMatchmakingRuleSet) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + func (r *GameLiftMatchmakingRuleSet) String() string { return *r.Name } From 14db660ce4df8765d3e34d8d18af7ec8517d00a5 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 26 Sep 2024 16:12:34 -0600 Subject: [PATCH 530/617] feat(gamelift-mm-config): add properties and pagination --- resources/gamelift-mm-config.go | 44 +++++++++++++++++++++++---------- 1 file changed, 31 insertions(+), 13 deletions(-) diff --git a/resources/gamelift-mm-config.go b/resources/gamelift-mm-config.go index 8d792dbb..ff41001b 100644 --- a/resources/gamelift-mm-config.go +++ b/resources/gamelift-mm-config.go @@ -2,11 +2,13 @@ package resources import ( "context" + "time" "github.com/aws/aws-sdk-go/service/gamelift" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) @@ -25,29 +27,41 @@ type GameLiftMatchmakingConfigurationLister struct{} func (l *GameLiftMatchmakingConfigurationLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) + var resources []resource.Resource svc := gamelift.New(opts.Session) - resp, err := svc.DescribeMatchmakingConfigurations(&gamelift.DescribeMatchmakingConfigurationsInput{}) - if err != nil { - return nil, err - } + params := &gamelift.DescribeMatchmakingConfigurationsInput{} - configs := make([]resource.Resource, 0) - for _, config := range resp.Configurations { - q := &GameLiftMatchmakingConfiguration{ - svc: svc, - Name: config.Name, + for { + resp, err := svc.DescribeMatchmakingConfigurations(params) + if err != nil { + return nil, err } - configs = append(configs, q) + + for _, config := range resp.Configurations { + q := &GameLiftMatchmakingConfiguration{ + svc: svc, + Name: config.Name, + CreationTime: config.CreationTime, + } + resources = append(resources, q) + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken } - return configs, nil + return resources, nil } type GameLiftMatchmakingConfiguration struct { - svc *gamelift.GameLift - Name *string + svc *gamelift.GameLift + Name *string + CreationTime *time.Time } func (r *GameLiftMatchmakingConfiguration) Remove(_ context.Context) error { @@ -63,6 +77,10 @@ func (r *GameLiftMatchmakingConfiguration) Remove(_ context.Context) error { return nil } +func (r *GameLiftMatchmakingConfiguration) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + func (r *GameLiftMatchmakingConfiguration) String() string { return *r.Name } From 96210d8ca70acd51f4113b10e34d1c31825d8e7e Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 26 Sep 2024 18:10:46 -0600 Subject: [PATCH 531/617] feat(api-gateway-api-key): support properties --- ...teway-apikeys.go => apigateway-api-key.go} | 24 ++++++++++++++----- 1 file changed, 18 insertions(+), 6 deletions(-) rename resources/{apigateway-apikeys.go => apigateway-api-key.go} (75%) diff --git a/resources/apigateway-apikeys.go b/resources/apigateway-api-key.go similarity index 75% rename from resources/apigateway-apikeys.go rename to resources/apigateway-api-key.go index b4233e2e..51602aa5 100644 --- a/resources/apigateway-apikeys.go +++ b/resources/apigateway-api-key.go @@ -2,12 +2,14 @@ package resources import ( "context" + "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/apigateway" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) @@ -43,8 +45,11 @@ func (l *APIGatewayAPIKeyLister) List(_ context.Context, o interface{}) ([]resou for _, item := range output.Items { resources = append(resources, &APIGatewayAPIKey{ - svc: svc, - APIKey: item.Id, + svc: svc, + apiKey: item.Id, + Name: item.Name, + Tags: item.Tags, + CreatedDate: item.CreatedDate, }) } @@ -59,18 +64,25 @@ func (l *APIGatewayAPIKeyLister) List(_ context.Context, o interface{}) ([]resou } type APIGatewayAPIKey struct { - svc *apigateway.APIGateway - APIKey *string + svc *apigateway.APIGateway + apiKey *string + Name *string + Tags map[string]*string + CreatedDate *time.Time } func (f *APIGatewayAPIKey) Remove(_ context.Context) error { _, err := f.svc.DeleteApiKey(&apigateway.DeleteApiKeyInput{ - ApiKey: f.APIKey, + ApiKey: f.apiKey, }) return err } +func (f *APIGatewayAPIKey) Properties() types.Properties { + return types.NewPropertiesFromStruct(f) +} + func (f *APIGatewayAPIKey) String() string { - return *f.APIKey + return *f.apiKey } From 9e0747fef75fd5d108a7622ed89496a8419f3572 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 26 Sep 2024 18:13:06 -0600 Subject: [PATCH 532/617] refactor(api-gateway-usage-plan): standardization --- ...usageplans.go => apigateway-usage-plan.go} | 43 ++++++++----------- 1 file changed, 17 insertions(+), 26 deletions(-) rename resources/{apigateway-usageplans.go => apigateway-usage-plan.go} (68%) diff --git a/resources/apigateway-usageplans.go b/resources/apigateway-usage-plan.go similarity index 68% rename from resources/apigateway-usageplans.go rename to resources/apigateway-usage-plan.go index c66c847b..3e0d0e30 100644 --- a/resources/apigateway-usageplans.go +++ b/resources/apigateway-usage-plan.go @@ -26,13 +26,6 @@ func init() { type APIGatewayUsagePlanLister struct{} -type APIGatewayUsagePlan struct { - svc *apigateway.APIGateway - usagePlanID *string - name *string - tags map[string]*string -} - func (l *APIGatewayUsagePlanLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) svc := apigateway.New(opts.Session) @@ -51,9 +44,9 @@ func (l *APIGatewayUsagePlanLister) List(_ context.Context, o interface{}) ([]re for _, item := range output.Items { resources = append(resources, &APIGatewayUsagePlan{ svc: svc, - usagePlanID: item.Id, - name: item.Name, - tags: item.Tags, + UsagePlanID: item.Id, + Name: item.Name, + Tags: item.Tags, }) } @@ -67,27 +60,25 @@ func (l *APIGatewayUsagePlanLister) List(_ context.Context, o interface{}) ([]re return resources, nil } -func (f *APIGatewayUsagePlan) Remove(_ context.Context) error { - _, err := f.svc.DeleteUsagePlan(&apigateway.DeleteUsagePlanInput{ - UsagePlanId: f.usagePlanID, +type APIGatewayUsagePlan struct { + svc *apigateway.APIGateway + UsagePlanID *string + Name *string + Tags map[string]*string +} + +func (r *APIGatewayUsagePlan) Remove(_ context.Context) error { + _, err := r.svc.DeleteUsagePlan(&apigateway.DeleteUsagePlanInput{ + UsagePlanId: r.UsagePlanID, }) return err } -func (f *APIGatewayUsagePlan) String() string { - return *f.usagePlanID +func (r *APIGatewayUsagePlan) String() string { + return *r.UsagePlanID } -func (f *APIGatewayUsagePlan) Properties() types.Properties { - properties := types.NewProperties() - - for key, tag := range f.tags { - properties.SetTag(&key, tag) - } - - properties. - Set("UsagePlanID", f.usagePlanID). - Set("Name", f.name) - return properties +func (r *APIGatewayUsagePlan) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) } From eb70c92aa7aa085da8f210d8e02fbf590f38de06 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 26 Sep 2024 18:13:35 -0600 Subject: [PATCH 533/617] refactor(api-gateway-api-key): standardization - receiver names --- resources/apigateway-api-key.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/resources/apigateway-api-key.go b/resources/apigateway-api-key.go index 51602aa5..cc53b1f1 100644 --- a/resources/apigateway-api-key.go +++ b/resources/apigateway-api-key.go @@ -71,18 +71,18 @@ type APIGatewayAPIKey struct { CreatedDate *time.Time } -func (f *APIGatewayAPIKey) Remove(_ context.Context) error { - _, err := f.svc.DeleteApiKey(&apigateway.DeleteApiKeyInput{ - ApiKey: f.apiKey, +func (r *APIGatewayAPIKey) Remove(_ context.Context) error { + _, err := r.svc.DeleteApiKey(&apigateway.DeleteApiKeyInput{ + ApiKey: r.apiKey, }) return err } -func (f *APIGatewayAPIKey) Properties() types.Properties { - return types.NewPropertiesFromStruct(f) +func (r *APIGatewayAPIKey) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) } -func (f *APIGatewayAPIKey) String() string { - return *f.apiKey +func (r *APIGatewayAPIKey) String() string { + return *r.apiKey } From 0ab4b39dd36ad1694e6375b6084f531edb472f4e Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 27 Sep 2024 11:03:09 -0600 Subject: [PATCH 534/617] chore(gamelift-fleet): fix lint error --- resources/gamelift-fleet.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/gamelift-fleet.go b/resources/gamelift-fleet.go index 14609bc2..31899fc4 100644 --- a/resources/gamelift-fleet.go +++ b/resources/gamelift-fleet.go @@ -38,10 +38,10 @@ func (l *GameLiftFleetLister) List(_ context.Context, o interface{}) ([]resource return nil, err } - for _, fleetId := range resp.FleetIds { + for _, fleetID := range resp.FleetIds { fleet := &GameLiftFleet{ svc: svc, - FleetID: fleetId, + FleetID: fleetID, } resources = append(resources, fleet) } From ad4d880681084506693502f5a0d04e81efe72493 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Fri, 27 Sep 2024 11:03:23 -0600 Subject: [PATCH 535/617] chore(pinpoint-phone-number): fix lint error --- resources/pinpoint-phone-number.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/pinpoint-phone-number.go b/resources/pinpoint-phone-number.go index e17a83a9..cde9174f 100644 --- a/resources/pinpoint-phone-number.go +++ b/resources/pinpoint-phone-number.go @@ -79,7 +79,7 @@ func (r *PinpointPhoneNumber) Properties() types.Properties { } func (r *PinpointPhoneNumber) Remove(_ context.Context) error { - if r.settings.GetBool("DisableDeletionProtection") { + if r.settings.GetBool("DisableDeletionProtection") && ptr.ToBool(r.deletionProtectionEnabled) { _, err := r.svc.UpdatePhoneNumber(&pinpointsmsvoicev2.UpdatePhoneNumberInput{ PhoneNumberId: r.ID, DeletionProtectionEnabled: ptr.Bool(false), @@ -99,8 +99,8 @@ func (r *PinpointPhoneNumber) Remove(_ context.Context) error { return nil } -func (r *PinpointPhoneNumber) Settings(settings *settings.Setting) { - r.settings = settings +func (r *PinpointPhoneNumber) Settings(setting *settings.Setting) { + r.settings = setting } func (r *PinpointPhoneNumber) String() string { From 45fb8b8a5486a06f08e36b56d3aeac5334a4d7b6 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 30 Sep 2024 15:48:09 -0600 Subject: [PATCH 536/617] fix(dms-certificate): use correct delete function --- resources/databasemigrationservice-certificates.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/databasemigrationservice-certificates.go b/resources/databasemigrationservice-certificates.go index 4e6d5995..b4616b96 100644 --- a/resources/databasemigrationservice-certificates.go +++ b/resources/databasemigrationservice-certificates.go @@ -63,8 +63,8 @@ type DatabaseMigrationServiceCertificate struct { } func (f *DatabaseMigrationServiceCertificate) Remove(_ context.Context) error { - _, err := f.svc.DeleteEndpoint(&databasemigrationservice.DeleteEndpointInput{ - EndpointArn: f.ARN, + _, err := f.svc.DeleteCertificate(&databasemigrationservice.DeleteCertificateInput{ + CertificateArn: f.ARN, }) return err From 2e3e61f377bfe5dbcdf04e971fc4debde7ab3239 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 30 Sep 2024 15:49:48 -0600 Subject: [PATCH 537/617] feat(dms-certificate): add properties --- ...go => databasemigrationservice-certificate.go} | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) rename resources/{databasemigrationservice-certificates.go => databasemigrationservice-certificate.go} (79%) diff --git a/resources/databasemigrationservice-certificates.go b/resources/databasemigrationservice-certificate.go similarity index 79% rename from resources/databasemigrationservice-certificates.go rename to resources/databasemigrationservice-certificate.go index b4616b96..cc6603e2 100644 --- a/resources/databasemigrationservice-certificates.go +++ b/resources/databasemigrationservice-certificate.go @@ -2,6 +2,7 @@ package resources import ( "context" + "github.com/ekristen/libnuke/pkg/types" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/databasemigrationservice" @@ -62,14 +63,18 @@ type DatabaseMigrationServiceCertificate struct { ARN *string } -func (f *DatabaseMigrationServiceCertificate) Remove(_ context.Context) error { - _, err := f.svc.DeleteCertificate(&databasemigrationservice.DeleteCertificateInput{ - CertificateArn: f.ARN, +func (r *DatabaseMigrationServiceCertificate) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + +func (r *DatabaseMigrationServiceCertificate) Remove(_ context.Context) error { + _, err := r.svc.DeleteCertificate(&databasemigrationservice.DeleteCertificateInput{ + CertificateArn: r.ARN, }) return err } -func (f *DatabaseMigrationServiceCertificate) String() string { - return *f.ARN +func (r *DatabaseMigrationServiceCertificate) String() string { + return *r.ARN } From 8b95dddab5e5da278e80e0c7f30ec201fd1eb2a5 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 30 Sep 2024 16:00:46 -0600 Subject: [PATCH 538/617] feat(eks-fargate-profile): tag support --- ...{eks-fargate.go => eks-fargate-profile.go} | 45 ++++++++++++------- resources/eks-fargate-profile_mock_test.go | 20 +++++++++ 2 files changed, 49 insertions(+), 16 deletions(-) rename resources/{eks-fargate.go => eks-fargate-profile.go} (65%) create mode 100644 resources/eks-fargate-profile_mock_test.go diff --git a/resources/eks-fargate.go b/resources/eks-fargate-profile.go similarity index 65% rename from resources/eks-fargate.go rename to resources/eks-fargate-profile.go index 489397a4..ae8f1db5 100644 --- a/resources/eks-fargate.go +++ b/resources/eks-fargate-profile.go @@ -2,6 +2,8 @@ package resources import ( "context" + "github.com/sirupsen/logrus" + "time" "fmt" @@ -71,10 +73,21 @@ func (l *EKSFargateProfileLister) List(_ context.Context, o interface{}) ([]reso } for _, name := range resp.FargateProfileNames { + profResp, err := svc.DescribeFargateProfile(&eks.DescribeFargateProfileInput{ + ClusterName: clusterName, + FargateProfileName: name, + }) + if err != nil { + logrus.WithError(err).Error("unable to describe fargate profile") + continue + } + resources = append(resources, &EKSFargateProfile{ - svc: svc, - name: name, - cluster: clusterName, + svc: svc, + Name: name, + Cluster: clusterName, + CreatedAt: profResp.FargateProfile.CreatedAt, + Tags: profResp.FargateProfile.Tags, }) } @@ -91,25 +104,25 @@ func (l *EKSFargateProfileLister) List(_ context.Context, o interface{}) ([]reso } type EKSFargateProfile struct { - svc *eks.EKS - cluster *string - name *string + svc *eks.EKS + Cluster *string + Name *string + CreatedAt *time.Time + Tags map[string]*string } -func (fp *EKSFargateProfile) Remove(_ context.Context) error { - _, err := fp.svc.DeleteFargateProfile(&eks.DeleteFargateProfileInput{ - ClusterName: fp.cluster, - FargateProfileName: fp.name, +func (r *EKSFargateProfile) Remove(_ context.Context) error { + _, err := r.svc.DeleteFargateProfile(&eks.DeleteFargateProfileInput{ + ClusterName: r.Cluster, + FargateProfileName: r.Name, }) return err } -func (fp *EKSFargateProfile) Properties() types.Properties { - return types.NewProperties(). - Set("Cluster", *fp.cluster). - Set("Profile", *fp.name) +func (r *EKSFargateProfile) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) } -func (fp *EKSFargateProfile) String() string { - return fmt.Sprintf("%s:%s", *fp.cluster, *fp.name) +func (r *EKSFargateProfile) String() string { + return fmt.Sprintf("%s:%s", *r.Cluster, *r.Name) } diff --git a/resources/eks-fargate-profile_mock_test.go b/resources/eks-fargate-profile_mock_test.go new file mode 100644 index 00000000..17af377d --- /dev/null +++ b/resources/eks-fargate-profile_mock_test.go @@ -0,0 +1,20 @@ +package resources + +import ( + "github.com/gotidy/ptr" + "github.com/stretchr/testify/assert" + "testing" +) + +func TestEKSFargateProperties(t *testing.T) { + resource := &EKSFargateProfile{ + Cluster: ptr.String("test-id"), + Name: ptr.String("test-name"), + } + + properties := resource.Properties() + + assert.Equal(t, "test-id", properties.Get("Cluster")) + assert.Equal(t, "test-name", properties.Get("Name")) + assert.Equal(t, "test-id:test-name", resource.String()) +} From 456b7d61c67bf1d0a4ea863a02a69214a1a58dfd Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 30 Sep 2024 16:01:54 -0600 Subject: [PATCH 539/617] chore: fix lint violations --- resources/databasemigrationservice-certificate.go | 2 +- resources/eks-fargate-profile.go | 4 ++-- resources/eks-fargate-profile_mock_test.go | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/resources/databasemigrationservice-certificate.go b/resources/databasemigrationservice-certificate.go index cc6603e2..ef2d546a 100644 --- a/resources/databasemigrationservice-certificate.go +++ b/resources/databasemigrationservice-certificate.go @@ -2,13 +2,13 @@ package resources import ( "context" - "github.com/ekristen/libnuke/pkg/types" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/databasemigrationservice" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) diff --git a/resources/eks-fargate-profile.go b/resources/eks-fargate-profile.go index ae8f1db5..44d5f625 100644 --- a/resources/eks-fargate-profile.go +++ b/resources/eks-fargate-profile.go @@ -2,10 +2,10 @@ package resources import ( "context" - "github.com/sirupsen/logrus" + "fmt" "time" - "fmt" + "github.com/sirupsen/logrus" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/eks" diff --git a/resources/eks-fargate-profile_mock_test.go b/resources/eks-fargate-profile_mock_test.go index 17af377d..b7b3717c 100644 --- a/resources/eks-fargate-profile_mock_test.go +++ b/resources/eks-fargate-profile_mock_test.go @@ -1,9 +1,10 @@ package resources import ( + "testing" + "github.com/gotidy/ptr" "github.com/stretchr/testify/assert" - "testing" ) func TestEKSFargateProperties(t *testing.T) { From 3fefccd452a95b1fa18df294dadc8a71f2ed5c2a Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 30 Sep 2024 16:03:40 -0600 Subject: [PATCH 540/617] feat(mgn-source-server): disconnect before delete --- resources/{mgn-source-servers.go => mgn-source-server.go} | 7 +++++++ 1 file changed, 7 insertions(+) rename resources/{mgn-source-servers.go => mgn-source-server.go} (91%) diff --git a/resources/mgn-source-servers.go b/resources/mgn-source-server.go similarity index 91% rename from resources/mgn-source-servers.go rename to resources/mgn-source-server.go index 936846db..02cef99e 100644 --- a/resources/mgn-source-servers.go +++ b/resources/mgn-source-server.go @@ -76,6 +76,13 @@ type MGNSourceServer struct { } func (f *MGNSourceServer) Remove(_ context.Context) error { + // Disconnect source server from service first before delete + if _, err := f.svc.DisconnectFromService(&mgn.DisconnectFromServiceInput{ + SourceServerID: f.sourceServerID, + }); err != nil { + return err + } + _, err := f.svc.DeleteSourceServer(&mgn.DeleteSourceServerInput{ SourceServerID: f.sourceServerID, }) From 8de889a1fac10a6ab8a3ccb43bc8f6a3044ec9fa Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 30 Sep 2024 16:46:30 -0600 Subject: [PATCH 541/617] feat(iam-role): allow removal of service-linked roles --- resources/{iam-roles.go => iam-role.go} | 11 +++++- ...les_mock_test.go => iam-role_mock_test.go} | 37 +++++++++++++++++++ 2 files changed, 47 insertions(+), 1 deletion(-) rename resources/{iam-roles.go => iam-role.go} (89%) rename resources/{iam-roles_mock_test.go => iam-role_mock_test.go} (75%) diff --git a/resources/iam-roles.go b/resources/iam-role.go similarity index 89% rename from resources/iam-roles.go rename to resources/iam-role.go index 56498dc7..e28df742 100644 --- a/resources/iam-roles.go +++ b/resources/iam-role.go @@ -14,6 +14,7 @@ import ( "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + libsettings "github.com/ekristen/libnuke/pkg/settings" "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/v3/pkg/nuke" @@ -32,11 +33,15 @@ func init() { DeprecatedAliases: []string{ "IamRole", }, + Settings: []string{ + "IncludeServiceLinkedRoles", + }, }) } type IAMRole struct { svc iamiface.IAMAPI + settings *libsettings.Setting Name *string Path *string CreateDate *time.Time @@ -44,8 +49,12 @@ type IAMRole struct { Tags []*iam.Tag } +func (r *IAMRole) Settings(settings *libsettings.Setting) { + r.settings = settings +} + func (r *IAMRole) Filter() error { - if strings.HasPrefix(*r.Path, "/aws-service-role/") { + if strings.HasPrefix(*r.Path, "/aws-service-role/") && !r.settings.GetBool("IncludeServiceLinkedRoles") { return fmt.Errorf("cannot delete service roles") } if strings.HasPrefix(*r.Path, "/aws-reserved/sso.amazonaws.com/") { diff --git a/resources/iam-roles_mock_test.go b/resources/iam-role_mock_test.go similarity index 75% rename from resources/iam-roles_mock_test.go rename to resources/iam-role_mock_test.go index afe08013..26a0b873 100644 --- a/resources/iam-roles_mock_test.go +++ b/resources/iam-role_mock_test.go @@ -13,6 +13,8 @@ import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" + libsettings "github.com/ekristen/libnuke/pkg/settings" + "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) @@ -67,6 +69,10 @@ func Test_Mock_IAMRole_List(t *testing.T) { a.Equal("/", *iamRole.Path) a.Equal(createDate.Format(time.RFC3339), iamRole.Properties().Get("CreateDate")) a.Equal(lastUsedDate.Format(time.RFC3339), iamRole.Properties().Get("LastUsedDate")) + + err = iamRole.Filter() + a.Nil(err) + } func Test_Mock_IAMRole_Remove(t *testing.T) { @@ -91,6 +97,37 @@ func Test_Mock_IAMRole_Remove(t *testing.T) { a.Nil(err) } +func Test_Mock_IAMRole_Filter_ServiceLinked(t *testing.T) { + a := assert.New(t) + ctrl := gomock.NewController(t) + defer ctrl.Finish() + + mockIAM := mock_iamiface.NewMockIAMAPI(ctrl) + + settings := &libsettings.Setting{} + + iamRole := IAMRole{ + svc: mockIAM, + settings: settings, + Name: ptr.String("test"), + Path: ptr.String("/aws-service-role/"), + Tags: []*iam.Tag{}, + } + + err := iamRole.Filter() + a.NotNil(err, "should not be able to delete service linked roles") + + iamRole.settings.Set("IncludeServiceLinkedRoles", false) + + err = iamRole.Filter() + a.NotNil(err, "should not be able to delete service linked roles") + + iamRole.settings.Set("IncludeServiceLinkedRoles", true) + + err = iamRole.Filter() + a.Nil(err, "should be able to delete service linked roles") +} + func Test_Mock_IAMRole_Properties(t *testing.T) { a := assert.New(t) ctrl := gomock.NewController(t) From f99edac203b75e0eb4ac2e8dc75d3c7b230563ce Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 30 Sep 2024 16:50:13 -0600 Subject: [PATCH 542/617] docs(iam-role): detail the settings --- docs/resources/iam-role.md | 14 ++++++++++++++ mkdocs.yml | 1 + 2 files changed, 15 insertions(+) create mode 100644 docs/resources/iam-role.md diff --git a/docs/resources/iam-role.md b/docs/resources/iam-role.md new file mode 100644 index 00000000..efbabdd2 --- /dev/null +++ b/docs/resources/iam-role.md @@ -0,0 +1,14 @@ +# IAM Role + +This will remove all IAM Roles an AWS account. + +## Settings + +- `IncludeServiceLinkedRoles` + +### IncludeServiceLinkedRoles + +By default, service linked roles are excluded from the deletion process. This setting allows you to include them in the +deletion process now that AWS allows for them to be removed. + +Default is `false`. diff --git a/mkdocs.yml b/mkdocs.yml index 751996cd..10dd4ad7 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -92,6 +92,7 @@ nav: - Migration Guide: config-migration.md - Resources: - Cognito User Pool: resources/cognito-user-pool.md + - IAM Role: resources/iam-role.md - S3 Bucket: resources/s3-bucket.md - Development: - Overview: development.md From e73b2b156a4b4d729c321f6863b683bf10bfe6c3 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 30 Sep 2024 17:00:50 -0600 Subject: [PATCH 543/617] chore: fix lint violation --- resources/iam-role_mock_test.go | 1 - 1 file changed, 1 deletion(-) diff --git a/resources/iam-role_mock_test.go b/resources/iam-role_mock_test.go index 26a0b873..28660c51 100644 --- a/resources/iam-role_mock_test.go +++ b/resources/iam-role_mock_test.go @@ -72,7 +72,6 @@ func Test_Mock_IAMRole_List(t *testing.T) { err = iamRole.Filter() a.Nil(err) - } func Test_Mock_IAMRole_Remove(t *testing.T) { From 24b5532ab55a9fdf24d073d9c6667b8a3517f903 Mon Sep 17 00:00:00 2001 From: Mike Schouw Date: Wed, 30 Aug 2023 15:43:27 +0200 Subject: [PATCH 544/617] feat(resource): add redshift snapshot schedule --- resources/redshift-snapshot-schedule.go | 81 +++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 resources/redshift-snapshot-schedule.go diff --git a/resources/redshift-snapshot-schedule.go b/resources/redshift-snapshot-schedule.go new file mode 100644 index 00000000..c0855f50 --- /dev/null +++ b/resources/redshift-snapshot-schedule.go @@ -0,0 +1,81 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/redshift" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type RedshiftSnapshotSchedule struct { + svc *redshift.Redshift + scheduleID *string + associatedClusters []*redshift.ClusterAssociatedToSchedule +} + +func init() { + register("RedshiftSnapshotSchedule", ListRedshiftSnapshotSchedule) +} + +func ListRedshiftSnapshotSchedule(sess *session.Session) ([]Resource, error) { + svc := redshift.New(sess) + resources := []Resource{} + + params := &redshift.DescribeSnapshotSchedulesInput{ + MaxRecords: aws.Int64(100), + } + + for { + output, err := svc.DescribeSnapshotSchedules(params) + if err != nil { + return nil, err + } + + for _, snapshotSchedule := range output.SnapshotSchedules { + resources = append(resources, &RedshiftSnapshotSchedule{ + svc: svc, + scheduleID: snapshotSchedule.ScheduleIdentifier, + associatedClusters: snapshotSchedule.AssociatedClusters, + }) + } + + if output.Marker == nil { + break + } + + params.Marker = output.Marker + } + + return resources, nil +} + +func (f *RedshiftSnapshotSchedule) Properties() types.Properties { + associatedClusters := make([]string, len(f.associatedClusters)) + for i, cluster := range f.associatedClusters { + associatedClusters[i] = *cluster.ClusterIdentifier + } + properties := types.NewProperties() + properties.Set("scheduleID", f.scheduleID) + properties.Set("associatedClusters", associatedClusters) + return properties +} + +func (f *RedshiftSnapshotSchedule) Remove() error { + for _, associatedCluster := range f.associatedClusters { + _, disassociateErr := f.svc.ModifyClusterSnapshotSchedule(&redshift.ModifyClusterSnapshotScheduleInput{ + ScheduleIdentifier: f.scheduleID, + ClusterIdentifier: associatedCluster.ClusterIdentifier, + DisassociateSchedule: aws.Bool(true), + }) + + if disassociateErr != nil { + return disassociateErr + } + } + + _, err := f.svc.DeleteSnapshotSchedule(&redshift.DeleteSnapshotScheduleInput{ + ScheduleIdentifier: f.scheduleID, + }) + + return err +} From b12f63a66c000056da55a43d476e85c5ae9cc9a9 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 30 Sep 2024 17:06:57 -0600 Subject: [PATCH 545/617] refactor(redshift-snapshot-schedule): convert to libnuke resource format --- resources/redshift-snapshot-schedule.go | 68 ++++++++++++++++--------- 1 file changed, 45 insertions(+), 23 deletions(-) diff --git a/resources/redshift-snapshot-schedule.go b/resources/redshift-snapshot-schedule.go index c0855f50..760c363d 100644 --- a/resources/redshift-snapshot-schedule.go +++ b/resources/redshift-snapshot-schedule.go @@ -1,25 +1,35 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/redshift" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) -type RedshiftSnapshotSchedule struct { - svc *redshift.Redshift - scheduleID *string - associatedClusters []*redshift.ClusterAssociatedToSchedule -} +const RedshiftSnapshotScheduleResource = "RedshiftSnapshotSchedule" func init() { - register("RedshiftSnapshotSchedule", ListRedshiftSnapshotSchedule) + registry.Register(®istry.Registration{ + Name: RedshiftSnapshotScheduleResource, + Scope: nuke.Account, + Lister: &RedshiftSnapshotScheduleLister{}, + }) } -func ListRedshiftSnapshotSchedule(sess *session.Session) ([]Resource, error) { - svc := redshift.New(sess) - resources := []Resource{} +type RedshiftSnapshotScheduleLister struct{} + +func (l *RedshiftSnapshotScheduleLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := redshift.New(opts.Session) + resources := make([]resource.Resource, 0) params := &redshift.DescribeSnapshotSchedulesInput{ MaxRecords: aws.Int64(100), @@ -34,7 +44,8 @@ func ListRedshiftSnapshotSchedule(sess *session.Session) ([]Resource, error) { for _, snapshotSchedule := range output.SnapshotSchedules { resources = append(resources, &RedshiftSnapshotSchedule{ svc: svc, - scheduleID: snapshotSchedule.ScheduleIdentifier, + ID: snapshotSchedule.ScheduleIdentifier, + Tags: snapshotSchedule.Tags, associatedClusters: snapshotSchedule.AssociatedClusters, }) } @@ -49,21 +60,28 @@ func ListRedshiftSnapshotSchedule(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *RedshiftSnapshotSchedule) Properties() types.Properties { - associatedClusters := make([]string, len(f.associatedClusters)) - for i, cluster := range f.associatedClusters { +type RedshiftSnapshotSchedule struct { + svc *redshift.Redshift + ID *string + Tags []*redshift.Tag + associatedClusters []*redshift.ClusterAssociatedToSchedule +} + +func (r *RedshiftSnapshotSchedule) Properties() types.Properties { + associatedClusters := make([]string, len(r.associatedClusters)) + for i, cluster := range r.associatedClusters { associatedClusters[i] = *cluster.ClusterIdentifier } properties := types.NewProperties() - properties.Set("scheduleID", f.scheduleID) - properties.Set("associatedClusters", associatedClusters) + properties.Set("ID", r.ID) + properties.Set("AssociatedClusters", associatedClusters) return properties } -func (f *RedshiftSnapshotSchedule) Remove() error { - for _, associatedCluster := range f.associatedClusters { - _, disassociateErr := f.svc.ModifyClusterSnapshotSchedule(&redshift.ModifyClusterSnapshotScheduleInput{ - ScheduleIdentifier: f.scheduleID, +func (r *RedshiftSnapshotSchedule) Remove(_ context.Context) error { + for _, associatedCluster := range r.associatedClusters { + _, disassociateErr := r.svc.ModifyClusterSnapshotSchedule(&redshift.ModifyClusterSnapshotScheduleInput{ + ScheduleIdentifier: r.ID, ClusterIdentifier: associatedCluster.ClusterIdentifier, DisassociateSchedule: aws.Bool(true), }) @@ -73,9 +91,13 @@ func (f *RedshiftSnapshotSchedule) Remove() error { } } - _, err := f.svc.DeleteSnapshotSchedule(&redshift.DeleteSnapshotScheduleInput{ - ScheduleIdentifier: f.scheduleID, + _, err := r.svc.DeleteSnapshotSchedule(&redshift.DeleteSnapshotScheduleInput{ + ScheduleIdentifier: r.ID, }) return err } + +func (r *RedshiftSnapshotSchedule) String() string { + return *r.ID +} From b7731991db65c320267f256010c5e201be97e21b Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 30 Sep 2024 17:07:28 -0600 Subject: [PATCH 546/617] feat(redshift-snapshot-schedule): add tags --- resources/redshift-snapshot-schedule.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/redshift-snapshot-schedule.go b/resources/redshift-snapshot-schedule.go index 760c363d..52c421a6 100644 --- a/resources/redshift-snapshot-schedule.go +++ b/resources/redshift-snapshot-schedule.go @@ -75,6 +75,9 @@ func (r *RedshiftSnapshotSchedule) Properties() types.Properties { properties := types.NewProperties() properties.Set("ID", r.ID) properties.Set("AssociatedClusters", associatedClusters) + for _, tag := range r.Tags { + properties.SetTag(tag.Key, tag.Value) + } return properties } From 9c9110c7de8d5ea75fdc502ca639b395bca7552d Mon Sep 17 00:00:00 2001 From: Dan Arbaugh Date: Thu, 6 Jul 2023 22:32:49 +0000 Subject: [PATCH 547/617] feat(resource): add Polly Lexicon resource support Co-authored-by: Philipp Trulson --- resources/polly-lexicons.go | 70 +++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 resources/polly-lexicons.go diff --git a/resources/polly-lexicons.go b/resources/polly-lexicons.go new file mode 100644 index 00000000..5d61a894 --- /dev/null +++ b/resources/polly-lexicons.go @@ -0,0 +1,70 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/polly" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type PollyLexicon struct { + svc *polly.Polly + name *string + attributes *polly.LexiconAttributes +} + +func init() { + register("PollyLexicon", ListPollyLexicons) +} + +func ListPollyLexicons(sess *session.Session) ([]Resource, error) { + svc := polly.New(sess) + resources := []Resource{} + var nextToken *string + + for { + listLexiconsInput := &polly.ListLexiconsInput{ + NextToken: nextToken, + } + + listOutput, err := svc.ListLexicons(listLexiconsInput) + if err != nil { + return nil, err + } + for _, lexicon := range listOutput.Lexicons { + resources = append(resources, &PollyLexicon{ + svc: svc, + name: lexicon.Name, + attributes: lexicon.Attributes, + }) + } + + // Check if there are more results + if listOutput.NextToken == nil { + break // No more results, exit the loop + } + + // Set the nextToken for the next iteration + nextToken = listOutput.NextToken + } + return resources, nil +} + +func (lexicon *PollyLexicon) Remove() error { + deleteInput := &polly.DeleteLexiconInput{ + Name: lexicon.name, + } + _, err := lexicon.svc.DeleteLexicon(deleteInput) + return err +} + +func (lexicon *PollyLexicon) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("Name", lexicon.name) + properties.Set("Alphabet", lexicon.attributes.Alphabet) + properties.Set("LanguageCode", lexicon.attributes.LanguageCode) + properties.Set("LastModified", lexicon.attributes.LastModified.Format(time.RFC3339)) + properties.Set("LexemesCount", lexicon.attributes.LexemesCount) + properties.Set("LexiconArn", lexicon.attributes.LexiconArn) + properties.Set("Size", lexicon.attributes.Size) + return properties +} From f90bafa251f5c51d93c716493b34a501b5f01308 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 30 Sep 2024 17:17:04 -0600 Subject: [PATCH 548/617] refactor(polly-lexicon): convert to libnuke resource standard format --- resources/polly-lexicon.go | 90 +++++++++++++++++++++++++++++++++++++ resources/polly-lexicons.go | 70 ----------------------------- 2 files changed, 90 insertions(+), 70 deletions(-) create mode 100644 resources/polly-lexicon.go delete mode 100644 resources/polly-lexicons.go diff --git a/resources/polly-lexicon.go b/resources/polly-lexicon.go new file mode 100644 index 00000000..4623d88e --- /dev/null +++ b/resources/polly-lexicon.go @@ -0,0 +1,90 @@ +package resources + +import ( + "context" + "time" + + "github.com/aws/aws-sdk-go/service/polly" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +const PollyLexiconResource = "PollyLexicon" + +func init() { + registry.Register(®istry.Registration{ + Name: PollyLexiconResource, + Scope: nuke.Account, + Lister: &PollyLexiconLister{}, + }) +} + +type PollyLexiconLister struct{} + +func (l *PollyLexiconLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + var resources []resource.Resource + + svc := polly.New(opts.Session) + + params := &polly.ListLexiconsInput{} + + for { + + listOutput, err := svc.ListLexicons(params) + if err != nil { + return nil, err + } + for _, lexicon := range listOutput.Lexicons { + resources = append(resources, &PollyLexicon{ + svc: svc, + Name: lexicon.Name, + Alphabet: lexicon.Attributes.Alphabet, + LanguageCode: lexicon.Attributes.LanguageCode, + LastModified: lexicon.Attributes.LastModified, + LexemesCount: lexicon.Attributes.LexemesCount, + LexiconArn: lexicon.Attributes.LexiconArn, + Size: lexicon.Attributes.Size, + }) + } + + // Check if there are more results + if listOutput.NextToken == nil { + break // No more results, exit the loop + } + + // Set the nextToken for the next iteration + params.NextToken = listOutput.NextToken + } + return resources, nil +} + +type PollyLexicon struct { + svc *polly.Polly + Name *string + Alphabet *string + LanguageCode *string + LastModified *time.Time + LexemesCount *int64 + LexiconArn *string + Size *int64 +} + +func (r *PollyLexicon) Remove(_ context.Context) error { + _, err := r.svc.DeleteLexicon(&polly.DeleteLexiconInput{ + Name: r.Name, + }) + return err +} + +func (r *PollyLexicon) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + +func (r *PollyLexicon) String() string { + return *r.Name +} diff --git a/resources/polly-lexicons.go b/resources/polly-lexicons.go deleted file mode 100644 index 5d61a894..00000000 --- a/resources/polly-lexicons.go +++ /dev/null @@ -1,70 +0,0 @@ -package resources - -import ( - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/polly" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" -) - -type PollyLexicon struct { - svc *polly.Polly - name *string - attributes *polly.LexiconAttributes -} - -func init() { - register("PollyLexicon", ListPollyLexicons) -} - -func ListPollyLexicons(sess *session.Session) ([]Resource, error) { - svc := polly.New(sess) - resources := []Resource{} - var nextToken *string - - for { - listLexiconsInput := &polly.ListLexiconsInput{ - NextToken: nextToken, - } - - listOutput, err := svc.ListLexicons(listLexiconsInput) - if err != nil { - return nil, err - } - for _, lexicon := range listOutput.Lexicons { - resources = append(resources, &PollyLexicon{ - svc: svc, - name: lexicon.Name, - attributes: lexicon.Attributes, - }) - } - - // Check if there are more results - if listOutput.NextToken == nil { - break // No more results, exit the loop - } - - // Set the nextToken for the next iteration - nextToken = listOutput.NextToken - } - return resources, nil -} - -func (lexicon *PollyLexicon) Remove() error { - deleteInput := &polly.DeleteLexiconInput{ - Name: lexicon.name, - } - _, err := lexicon.svc.DeleteLexicon(deleteInput) - return err -} - -func (lexicon *PollyLexicon) Properties() types.Properties { - properties := types.NewProperties() - properties.Set("Name", lexicon.name) - properties.Set("Alphabet", lexicon.attributes.Alphabet) - properties.Set("LanguageCode", lexicon.attributes.LanguageCode) - properties.Set("LastModified", lexicon.attributes.LastModified.Format(time.RFC3339)) - properties.Set("LexemesCount", lexicon.attributes.LexemesCount) - properties.Set("LexiconArn", lexicon.attributes.LexiconArn) - properties.Set("Size", lexicon.attributes.Size) - return properties -} From 8e69418bd4be33d0281b52e082c9f6beb8c301e2 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 30 Sep 2024 17:25:27 -0600 Subject: [PATCH 549/617] chore(polly-lexicon): fix lint violation --- resources/polly-lexicon.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/polly-lexicon.go b/resources/polly-lexicon.go index 4623d88e..e9c0f78b 100644 --- a/resources/polly-lexicon.go +++ b/resources/polly-lexicon.go @@ -34,7 +34,6 @@ func (l *PollyLexiconLister) List(_ context.Context, o interface{}) ([]resource. params := &polly.ListLexiconsInput{} for { - listOutput, err := svc.ListLexicons(params) if err != nil { return nil, err @@ -60,6 +59,7 @@ func (l *PollyLexiconLister) List(_ context.Context, o interface{}) ([]resource. // Set the nextToken for the next iteration params.NextToken = listOutput.NextToken } + return resources, nil } From ed78a9153c66e8f71323c7a3f531f23c415b5fd7 Mon Sep 17 00:00:00 2001 From: "Gabriela S. Soria" Date: Tue, 24 Oct 2023 17:44:33 -0700 Subject: [PATCH 550/617] feat(resource): add CodeGuru Reviewer RepositoryAssociation support Signed-off-by: Gabriela S. Soria CL-732 | add cloud control mapping for `RepositoryAssociation` Signed-off-by: Gabriela S. Soria --- ...odegurureviewer-repository-associations.go | 72 +++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 resources/codegurureviewer-repository-associations.go diff --git a/resources/codegurureviewer-repository-associations.go b/resources/codegurureviewer-repository-associations.go new file mode 100644 index 00000000..e630ad94 --- /dev/null +++ b/resources/codegurureviewer-repository-associations.go @@ -0,0 +1,72 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/codegurureviewer" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type CodeGuruReviewerRepositoryAssociation struct { + svc *codegurureviewer.CodeGuruReviewer + AssociationArn *string + AssociationId *string + Name *string + Owner *string + ProviderType *string +} + +func init() { + register("CodeGuruReviewerRepositoryAssociation", ListCodeGuruReviewerRepositoryAssociations, + mapCloudControl("AWS::CodeGuruReviewer::RepositoryAssociation")) +} + +func ListCodeGuruReviewerRepositoryAssociations(sess *session.Session) ([]Resource, error) { + svc := codegurureviewer.New(sess) + resources := []Resource{} + + params := &codegurureviewer.ListRepositoryAssociationsInput{} + + for { + resp, err := svc.ListRepositoryAssociations(params) + if err != nil { + return nil, err + } + + for _, association := range resp.RepositoryAssociationSummaries { + resources = append(resources, &CodeGuruReviewerRepositoryAssociation{ + svc: svc, + AssociationArn: association.AssociationArn, + AssociationId: association.AssociationId, + Name: association.Name, + Owner: association.Owner, + ProviderType: association.ProviderType, + }) + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken + } + + return resources, nil +} + +func (f *CodeGuruReviewerRepositoryAssociation) Remove() error { + _, err := f.svc.DisassociateRepository(&codegurureviewer.DisassociateRepositoryInput{ + AssociationArn: f.AssociationArn, + }) + return err +} + +func (f *CodeGuruReviewerRepositoryAssociation) Properties() types.Properties { + properties := types.NewProperties() + properties. + Set("AssociationArn", f.AssociationArn) + properties.Set("AssociationId", f.AssociationId) + properties.Set("Name", f.Name) + properties.Set("Owner", f.Owner) + properties.Set("ProviderType", f.ProviderType) + return properties +} From 375bfd01f5c3de4ec300084c7ff16761312fccbf Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 30 Sep 2024 17:30:40 -0600 Subject: [PATCH 551/617] refactor(codeguru-reviewer): convert to libnuke resource standard format --- ...odeguru-reviewer-repository-association.go | 80 +++++++++++++++++++ ...odegurureviewer-repository-associations.go | 72 ----------------- 2 files changed, 80 insertions(+), 72 deletions(-) create mode 100644 resources/codeguru-reviewer-repository-association.go delete mode 100644 resources/codegurureviewer-repository-associations.go diff --git a/resources/codeguru-reviewer-repository-association.go b/resources/codeguru-reviewer-repository-association.go new file mode 100644 index 00000000..cd1c1a66 --- /dev/null +++ b/resources/codeguru-reviewer-repository-association.go @@ -0,0 +1,80 @@ +package resources + +import ( + "context" + + "github.com/aws/aws-sdk-go/service/codegurureviewer" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +const CodeGuruReviewerRepositoryAssociationResource = "CodeGuruReviewerRepositoryAssociation" + +func init() { + registry.Register(®istry.Registration{ + Name: CodeGuruReviewerRepositoryAssociationResource, + Scope: nuke.Account, + Lister: &CodeGuruReviewerRepositoryAssociationLister{}, + }) +} + +type CodeGuruReviewerRepositoryAssociationLister struct{} + +func (l *CodeGuruReviewerRepositoryAssociationLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + var resources []resource.Resource + + svc := codegurureviewer.New(opts.Session) + + params := &codegurureviewer.ListRepositoryAssociationsInput{} + + for { + resp, err := svc.ListRepositoryAssociations(params) + if err != nil { + return nil, err + } + + for _, association := range resp.RepositoryAssociationSummaries { + resources = append(resources, &CodeGuruReviewerRepositoryAssociation{ + svc: svc, + AssociationARN: association.AssociationArn, + AssociationID: association.AssociationId, + Name: association.Name, + Owner: association.Owner, + ProviderType: association.ProviderType, + }) + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken + } + + return resources, nil +} + +type CodeGuruReviewerRepositoryAssociation struct { + svc *codegurureviewer.CodeGuruReviewer + AssociationARN *string + AssociationID *string + Name *string + Owner *string + ProviderType *string +} + +func (r *CodeGuruReviewerRepositoryAssociation) Remove(_ context.Context) error { + _, err := r.svc.DisassociateRepository(&codegurureviewer.DisassociateRepositoryInput{ + AssociationArn: r.AssociationARN, + }) + return err +} + +func (r *CodeGuruReviewerRepositoryAssociation) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} diff --git a/resources/codegurureviewer-repository-associations.go b/resources/codegurureviewer-repository-associations.go deleted file mode 100644 index e630ad94..00000000 --- a/resources/codegurureviewer-repository-associations.go +++ /dev/null @@ -1,72 +0,0 @@ -package resources - -import ( - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/codegurureviewer" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" -) - -type CodeGuruReviewerRepositoryAssociation struct { - svc *codegurureviewer.CodeGuruReviewer - AssociationArn *string - AssociationId *string - Name *string - Owner *string - ProviderType *string -} - -func init() { - register("CodeGuruReviewerRepositoryAssociation", ListCodeGuruReviewerRepositoryAssociations, - mapCloudControl("AWS::CodeGuruReviewer::RepositoryAssociation")) -} - -func ListCodeGuruReviewerRepositoryAssociations(sess *session.Session) ([]Resource, error) { - svc := codegurureviewer.New(sess) - resources := []Resource{} - - params := &codegurureviewer.ListRepositoryAssociationsInput{} - - for { - resp, err := svc.ListRepositoryAssociations(params) - if err != nil { - return nil, err - } - - for _, association := range resp.RepositoryAssociationSummaries { - resources = append(resources, &CodeGuruReviewerRepositoryAssociation{ - svc: svc, - AssociationArn: association.AssociationArn, - AssociationId: association.AssociationId, - Name: association.Name, - Owner: association.Owner, - ProviderType: association.ProviderType, - }) - } - - if resp.NextToken == nil { - break - } - - params.NextToken = resp.NextToken - } - - return resources, nil -} - -func (f *CodeGuruReviewerRepositoryAssociation) Remove() error { - _, err := f.svc.DisassociateRepository(&codegurureviewer.DisassociateRepositoryInput{ - AssociationArn: f.AssociationArn, - }) - return err -} - -func (f *CodeGuruReviewerRepositoryAssociation) Properties() types.Properties { - properties := types.NewProperties() - properties. - Set("AssociationArn", f.AssociationArn) - properties.Set("AssociationId", f.AssociationId) - properties.Set("Name", f.Name) - properties.Set("Owner", f.Owner) - properties.Set("ProviderType", f.ProviderType) - return properties -} From a13232a11440cef851cfe4fc050b4ec7b66ec5ea Mon Sep 17 00:00:00 2001 From: Sherd White Date: Tue, 19 Sep 2023 18:02:27 -0500 Subject: [PATCH 552/617] feat(resource): adding rekognition project and dataset support --- resources/rekognition-dataset.go | 62 ++++++++++++++++++++++++++++++++ resources/rekognition-project.go | 60 +++++++++++++++++++++++++++++++ 2 files changed, 122 insertions(+) create mode 100644 resources/rekognition-dataset.go create mode 100644 resources/rekognition-project.go diff --git a/resources/rekognition-dataset.go b/resources/rekognition-dataset.go new file mode 100644 index 00000000..249d4f2c --- /dev/null +++ b/resources/rekognition-dataset.go @@ -0,0 +1,62 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/rekognition" +) + +type RekognitionDataset struct { + svc *rekognition.Rekognition + arn *string +} + +func init() { + register("RekognitionDataset", ListRekognitionDatasets) +} + +func ListRekognitionDatasets(sess *session.Session) ([]Resource, error) { + svc := rekognition.New(sess) + resources := []Resource{} + + params := &rekognition.DescribeProjectsInput{ + MaxResults: aws.Int64(100), + } + + for { + output, err := svc.DescribeProjects(params) + if err != nil { + return nil, err + } + + for _, project := range output.ProjectDescriptions { + for _, dataset := range project.Datasets { + resources = append(resources, &RekognitionDataset{ + svc: svc, + arn: dataset.DatasetArn, + }) + } + } + + if output.NextToken == nil { + break + } + + params.NextToken = output.NextToken + } + + return resources, nil +} + +func (f *RekognitionDataset) Remove() error { + + _, err := f.svc.DeleteDataset(&rekognition.DeleteDatasetInput{ + DatasetArn: f.arn, + }) + + return err +} + +func (f *RekognitionDataset) String() string { + return *f.arn +} diff --git a/resources/rekognition-project.go b/resources/rekognition-project.go new file mode 100644 index 00000000..59f2b0d7 --- /dev/null +++ b/resources/rekognition-project.go @@ -0,0 +1,60 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/rekognition" +) + +type RekognitionProject struct { + svc *rekognition.Rekognition + arn *string +} + +func init() { + register("RekognitionProject", ListRekognitionProjects) +} + +func ListRekognitionProjects(sess *session.Session) ([]Resource, error) { + svc := rekognition.New(sess) + resources := []Resource{} + + params := &rekognition.DescribeProjectsInput{ + MaxResults: aws.Int64(100), + } + + for { + output, err := svc.DescribeProjects(params) + if err != nil { + return nil, err + } + + for _, project := range output.ProjectDescriptions { + resources = append(resources, &RekognitionProject{ + svc: svc, + arn: project.ProjectArn, + }) + } + + if output.NextToken == nil { + break + } + + params.NextToken = output.NextToken + } + + return resources, nil +} + +func (f *RekognitionProject) Remove() error { + + _, err := f.svc.DeleteProject(&rekognition.DeleteProjectInput{ + ProjectArn: f.arn, + }) + + return err +} + +func (f *RekognitionProject) String() string { + return *f.arn +} From 86fde3dce51c2df2ef5a9f04889ac8972a791324 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 30 Sep 2024 17:22:21 -0600 Subject: [PATCH 553/617] refactor(rekognition-dataset): convert to libnuke resource standard format --- resources/rekognition-dataset.go | 50 ++++++++++++++++++++++---------- 1 file changed, 35 insertions(+), 15 deletions(-) diff --git a/resources/rekognition-dataset.go b/resources/rekognition-dataset.go index 249d4f2c..8a810dd1 100644 --- a/resources/rekognition-dataset.go +++ b/resources/rekognition-dataset.go @@ -1,23 +1,35 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/rekognition" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) -type RekognitionDataset struct { - svc *rekognition.Rekognition - arn *string -} +const RekognitionDatasetResource = "RekognitionDataset" func init() { - register("RekognitionDataset", ListRekognitionDatasets) + registry.Register(®istry.Registration{ + Name: RekognitionDatasetResource, + Scope: nuke.Account, + Lister: &RekognitionDatasetLister{}, + }) } -func ListRekognitionDatasets(sess *session.Session) ([]Resource, error) { - svc := rekognition.New(sess) - resources := []Resource{} +type RekognitionDatasetLister struct{} + +func (l *RekognitionDatasetLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := rekognition.New(opts.Session) + resources := make([]resource.Resource, 0) params := &rekognition.DescribeProjectsInput{ MaxResults: aws.Int64(100), @@ -33,7 +45,7 @@ func ListRekognitionDatasets(sess *session.Session) ([]Resource, error) { for _, dataset := range project.Datasets { resources = append(resources, &RekognitionDataset{ svc: svc, - arn: dataset.DatasetArn, + ARN: dataset.DatasetArn, }) } } @@ -48,15 +60,23 @@ func ListRekognitionDatasets(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *RekognitionDataset) Remove() error { +type RekognitionDataset struct { + svc *rekognition.Rekognition + ARN *string +} - _, err := f.svc.DeleteDataset(&rekognition.DeleteDatasetInput{ - DatasetArn: f.arn, +func (r *RekognitionDataset) Remove(_ context.Context) error { + _, err := r.svc.DeleteDataset(&rekognition.DeleteDatasetInput{ + DatasetArn: r.ARN, }) return err } -func (f *RekognitionDataset) String() string { - return *f.arn +func (r *RekognitionDataset) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + +func (r *RekognitionDataset) String() string { + return *r.ARN } From f082604e5093678d25bc1f3477e62b6a73b6e97e Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 30 Sep 2024 17:22:32 -0600 Subject: [PATCH 554/617] refactor(rekognition-project): convert to libnuke resource standard format --- resources/rekognition-project.go | 50 ++++++++++++++++++++++---------- 1 file changed, 35 insertions(+), 15 deletions(-) diff --git a/resources/rekognition-project.go b/resources/rekognition-project.go index 59f2b0d7..d2ff69b8 100644 --- a/resources/rekognition-project.go +++ b/resources/rekognition-project.go @@ -1,23 +1,35 @@ package resources import ( + "context" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/rekognition" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) -type RekognitionProject struct { - svc *rekognition.Rekognition - arn *string -} +const RekognitionProjectResource = "RekognitionProject" func init() { - register("RekognitionProject", ListRekognitionProjects) + registry.Register(®istry.Registration{ + Name: RekognitionProjectResource, + Scope: nuke.Account, + Lister: &RekognitionProjectLister{}, + }) } -func ListRekognitionProjects(sess *session.Session) ([]Resource, error) { - svc := rekognition.New(sess) - resources := []Resource{} +type RekognitionProjectLister struct{} + +func (l *RekognitionProjectLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := rekognition.New(opts.Session) + resources := make([]resource.Resource, 0) params := &rekognition.DescribeProjectsInput{ MaxResults: aws.Int64(100), @@ -32,7 +44,7 @@ func ListRekognitionProjects(sess *session.Session) ([]Resource, error) { for _, project := range output.ProjectDescriptions { resources = append(resources, &RekognitionProject{ svc: svc, - arn: project.ProjectArn, + ARN: project.ProjectArn, }) } @@ -46,15 +58,23 @@ func ListRekognitionProjects(sess *session.Session) ([]Resource, error) { return resources, nil } -func (f *RekognitionProject) Remove() error { +type RekognitionProject struct { + svc *rekognition.Rekognition + ARN *string +} - _, err := f.svc.DeleteProject(&rekognition.DeleteProjectInput{ - ProjectArn: f.arn, +func (r *RekognitionProject) Remove(_ context.Context) error { + _, err := r.svc.DeleteProject(&rekognition.DeleteProjectInput{ + ProjectArn: r.ARN, }) return err } -func (f *RekognitionProject) String() string { - return *f.arn +func (r *RekognitionProject) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + +func (r *RekognitionProject) String() string { + return *r.ARN } From 38a46bf8d53a9701637e2fa3ecbcf5d545d41360 Mon Sep 17 00:00:00 2001 From: Sherd White Date: Tue, 7 Nov 2023 13:22:58 -0600 Subject: [PATCH 555/617] feat(resource): adding codepipeline support for custom action types and webhooks --- resources/codepipeline-custom-action-types.go | 84 +++++++++++++++++++ resources/codepipeline-webhooks.go | 63 ++++++++++++++ 2 files changed, 147 insertions(+) create mode 100644 resources/codepipeline-custom-action-types.go create mode 100644 resources/codepipeline-webhooks.go diff --git a/resources/codepipeline-custom-action-types.go b/resources/codepipeline-custom-action-types.go new file mode 100644 index 00000000..97a7903b --- /dev/null +++ b/resources/codepipeline-custom-action-types.go @@ -0,0 +1,84 @@ +package resources + +import ( + "fmt" + "strings" + + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/codepipeline" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type CodePipelineCustomActionType struct { + svc *codepipeline.CodePipeline + owner *string + category *string + provider *string + version *string +} + +func init() { + register("CodePipelineCustomActionType", ListCodePipelineCustomActionTypes, mapCloudControl("AWS::CodePipeline::CustomActionType")) +} + +func ListCodePipelineCustomActionTypes(sess *session.Session) ([]Resource, error) { + svc := codepipeline.New(sess) + resources := []Resource{} + + params := &codepipeline.ListActionTypesInput{} + + for { + resp, err := svc.ListActionTypes(params) + if err != nil { + return nil, err + } + + for _, actionTypes := range resp.ActionTypes { + resources = append(resources, &CodePipelineCustomActionType{ + svc: svc, + owner: actionTypes.Id.Owner, + category: actionTypes.Id.Category, + provider: actionTypes.Id.Provider, + version: actionTypes.Id.Version, + }) + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken + } + + return resources, nil +} + +func (f *CodePipelineCustomActionType) Filter() error { + if !strings.HasPrefix(*f.owner, "Custom") { + return fmt.Errorf("cannot delete default codepipeline custom action type") + } + return nil +} + +func (f *CodePipelineCustomActionType) Remove() error { + _, err := f.svc.DeleteCustomActionType(&codepipeline.DeleteCustomActionTypeInput{ + Category: f.category, + Provider: f.provider, + Version: f.version, + }) + + return err +} + +func (f *CodePipelineCustomActionType) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("Category", f.category) + properties.Set("Owner", f.owner) + properties.Set("Provider", f.provider) + properties.Set("Version", f.version) + return properties +} + +func (f *CodePipelineCustomActionType) String() string { + return *f.owner +} diff --git a/resources/codepipeline-webhooks.go b/resources/codepipeline-webhooks.go new file mode 100644 index 00000000..508894fe --- /dev/null +++ b/resources/codepipeline-webhooks.go @@ -0,0 +1,63 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/codepipeline" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type CodePipelineWebhook struct { + svc *codepipeline.CodePipeline + name *string +} + +func init() { + register("CodePipelineWebhook", ListCodePipelineWebhooks) +} + +func ListCodePipelineWebhooks(sess *session.Session) ([]Resource, error) { + svc := codepipeline.New(sess) + resources := []Resource{} + + params := &codepipeline.ListWebhooksInput{} + + for { + resp, err := svc.ListWebhooks(params) + if err != nil { + return nil, err + } + + for _, webHooks := range resp.Webhooks { + resources = append(resources, &CodePipelineWebhook{ + svc: svc, + name: webHooks.Definition.Name, + }) + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken + } + + return resources, nil +} + +func (f *CodePipelineWebhook) Remove() error { + _, err := f.svc.DeleteWebhook(&codepipeline.DeleteWebhookInput{ + Name: f.name, + }) + + return err +} + +func (f *CodePipelineWebhook) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("Name", f.name) + return properties +} + +func (f *CodePipelineWebhook) String() string { + return *f.name +} From 80753b4f7f67dcffbcb44217a076d30a1a36902c Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 30 Sep 2024 18:00:38 -0600 Subject: [PATCH 556/617] refactor(codepipeline): convert to libnuke resource standard format --- resources/codepipeline-custom-action-type.go | 94 +++++++++++++++++++ resources/codepipeline-custom-action-types.go | 84 ----------------- resources/codepipeline-webhook.go | 77 +++++++++++++++ resources/codepipeline-webhooks.go | 63 ------------- 4 files changed, 171 insertions(+), 147 deletions(-) create mode 100644 resources/codepipeline-custom-action-type.go delete mode 100644 resources/codepipeline-custom-action-types.go create mode 100644 resources/codepipeline-webhook.go delete mode 100644 resources/codepipeline-webhooks.go diff --git a/resources/codepipeline-custom-action-type.go b/resources/codepipeline-custom-action-type.go new file mode 100644 index 00000000..5b1cae77 --- /dev/null +++ b/resources/codepipeline-custom-action-type.go @@ -0,0 +1,94 @@ +package resources + +import ( + "context" + "fmt" + "strings" + + "github.com/aws/aws-sdk-go/service/codepipeline" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +const CodePipelineCustomActionTypeResource = "CodePipelineCustomActionType" + +func init() { + registry.Register(®istry.Registration{ + Name: CodePipelineCustomActionTypeResource, + Scope: nuke.Account, + Lister: &CodePipelineCustomActionTypeLister{}, + }) +} + +type CodePipelineCustomActionTypeLister struct{} + +func (l *CodePipelineCustomActionTypeLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + var resources []resource.Resource + + svc := codepipeline.New(opts.Session) + + params := &codepipeline.ListActionTypesInput{} + + for { + resp, err := svc.ListActionTypes(params) + if err != nil { + return nil, err + } + + for _, actionTypes := range resp.ActionTypes { + resources = append(resources, &CodePipelineCustomActionType{ + svc: svc, + Owner: actionTypes.Id.Owner, + Category: actionTypes.Id.Category, + Provider: actionTypes.Id.Provider, + Version: actionTypes.Id.Version, + }) + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken + } + + return resources, nil +} + +type CodePipelineCustomActionType struct { + svc *codepipeline.CodePipeline + Owner *string + Category *string + Provider *string + Version *string +} + +func (r *CodePipelineCustomActionType) Filter() error { + if !strings.HasPrefix(*r.Owner, "Custom") { + return fmt.Errorf("cannot delete default codepipeline custom action type") + } + return nil +} + +func (r *CodePipelineCustomActionType) Remove(_ context.Context) error { + _, err := r.svc.DeleteCustomActionType(&codepipeline.DeleteCustomActionTypeInput{ + Category: r.Category, + Provider: r.Provider, + Version: r.Version, + }) + + return err +} + +func (r *CodePipelineCustomActionType) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + +func (r *CodePipelineCustomActionType) String() string { + return *r.Owner +} diff --git a/resources/codepipeline-custom-action-types.go b/resources/codepipeline-custom-action-types.go deleted file mode 100644 index 97a7903b..00000000 --- a/resources/codepipeline-custom-action-types.go +++ /dev/null @@ -1,84 +0,0 @@ -package resources - -import ( - "fmt" - "strings" - - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/codepipeline" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" -) - -type CodePipelineCustomActionType struct { - svc *codepipeline.CodePipeline - owner *string - category *string - provider *string - version *string -} - -func init() { - register("CodePipelineCustomActionType", ListCodePipelineCustomActionTypes, mapCloudControl("AWS::CodePipeline::CustomActionType")) -} - -func ListCodePipelineCustomActionTypes(sess *session.Session) ([]Resource, error) { - svc := codepipeline.New(sess) - resources := []Resource{} - - params := &codepipeline.ListActionTypesInput{} - - for { - resp, err := svc.ListActionTypes(params) - if err != nil { - return nil, err - } - - for _, actionTypes := range resp.ActionTypes { - resources = append(resources, &CodePipelineCustomActionType{ - svc: svc, - owner: actionTypes.Id.Owner, - category: actionTypes.Id.Category, - provider: actionTypes.Id.Provider, - version: actionTypes.Id.Version, - }) - } - - if resp.NextToken == nil { - break - } - - params.NextToken = resp.NextToken - } - - return resources, nil -} - -func (f *CodePipelineCustomActionType) Filter() error { - if !strings.HasPrefix(*f.owner, "Custom") { - return fmt.Errorf("cannot delete default codepipeline custom action type") - } - return nil -} - -func (f *CodePipelineCustomActionType) Remove() error { - _, err := f.svc.DeleteCustomActionType(&codepipeline.DeleteCustomActionTypeInput{ - Category: f.category, - Provider: f.provider, - Version: f.version, - }) - - return err -} - -func (f *CodePipelineCustomActionType) Properties() types.Properties { - properties := types.NewProperties() - properties.Set("Category", f.category) - properties.Set("Owner", f.owner) - properties.Set("Provider", f.provider) - properties.Set("Version", f.version) - return properties -} - -func (f *CodePipelineCustomActionType) String() string { - return *f.owner -} diff --git a/resources/codepipeline-webhook.go b/resources/codepipeline-webhook.go new file mode 100644 index 00000000..4396023f --- /dev/null +++ b/resources/codepipeline-webhook.go @@ -0,0 +1,77 @@ +package resources + +import ( + "context" + + "github.com/aws/aws-sdk-go/service/codepipeline" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +const CodePipelineWebhookResource = "CodePipelineWebhook" + +func init() { + registry.Register(®istry.Registration{ + Name: CodePipelineWebhookResource, + Scope: nuke.Account, + Lister: &CodePipelineWebhookLister{}, + }) +} + +type CodePipelineWebhookLister struct{} + +func (l *CodePipelineWebhookLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + var resources []resource.Resource + + svc := codepipeline.New(opts.Session) + + params := &codepipeline.ListWebhooksInput{} + + for { + resp, err := svc.ListWebhooks(params) + if err != nil { + return nil, err + } + + for _, webHooks := range resp.Webhooks { + resources = append(resources, &CodePipelineWebhook{ + svc: svc, + Name: webHooks.Definition.Name, + }) + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken + } + + return resources, nil +} + +type CodePipelineWebhook struct { + svc *codepipeline.CodePipeline + Name *string +} + +func (r *CodePipelineWebhook) Remove(_ context.Context) error { + _, err := r.svc.DeleteWebhook(&codepipeline.DeleteWebhookInput{ + Name: r.Name, + }) + + return err +} + +func (r *CodePipelineWebhook) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + +func (r *CodePipelineWebhook) String() string { + return *r.Name +} diff --git a/resources/codepipeline-webhooks.go b/resources/codepipeline-webhooks.go deleted file mode 100644 index 508894fe..00000000 --- a/resources/codepipeline-webhooks.go +++ /dev/null @@ -1,63 +0,0 @@ -package resources - -import ( - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/codepipeline" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" -) - -type CodePipelineWebhook struct { - svc *codepipeline.CodePipeline - name *string -} - -func init() { - register("CodePipelineWebhook", ListCodePipelineWebhooks) -} - -func ListCodePipelineWebhooks(sess *session.Session) ([]Resource, error) { - svc := codepipeline.New(sess) - resources := []Resource{} - - params := &codepipeline.ListWebhooksInput{} - - for { - resp, err := svc.ListWebhooks(params) - if err != nil { - return nil, err - } - - for _, webHooks := range resp.Webhooks { - resources = append(resources, &CodePipelineWebhook{ - svc: svc, - name: webHooks.Definition.Name, - }) - } - - if resp.NextToken == nil { - break - } - - params.NextToken = resp.NextToken - } - - return resources, nil -} - -func (f *CodePipelineWebhook) Remove() error { - _, err := f.svc.DeleteWebhook(&codepipeline.DeleteWebhookInput{ - Name: f.name, - }) - - return err -} - -func (f *CodePipelineWebhook) Properties() types.Properties { - properties := types.NewProperties() - properties.Set("Name", f.name) - return properties -} - -func (f *CodePipelineWebhook) String() string { - return *f.name -} From aee3915e0955e26bdd80ff0e8e01a1251b1a1bc8 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 30 Sep 2024 18:07:28 -0600 Subject: [PATCH 557/617] feat(cloudwatchevents-rule): add pagination support --- resources/cloudwatchevents-rule.go | 41 +++++++++++++++++++----------- 1 file changed, 26 insertions(+), 15 deletions(-) diff --git a/resources/cloudwatchevents-rule.go b/resources/cloudwatchevents-rule.go index 8ff7fceb..1fb58345 100644 --- a/resources/cloudwatchevents-rule.go +++ b/resources/cloudwatchevents-rule.go @@ -28,33 +28,44 @@ type CloudWatchEventsRuleLister struct{} func (l *CloudWatchEventsRuleLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) + var resources []resource.Resource svc := cloudwatchevents.New(opts.Session) - resp, err := svc.ListEventBuses(nil) - if err != nil { - return nil, err - } + params := &cloudwatchevents.ListEventBusesInput{} - resources := make([]resource.Resource, 0) - for _, bus := range resp.EventBuses { - resp, err := svc.ListRules(&cloudwatchevents.ListRulesInput{ - EventBusName: bus.Name, - }) + for { + resp, err := svc.ListEventBuses(params) if err != nil { return nil, err } - for _, rule := range resp.Rules { - resources = append(resources, &CloudWatchEventsRule{ - svc: svc, - Name: rule.Name, - ARN: rule.Arn, - State: rule.State, + for _, bus := range resp.EventBuses { + resp, err := svc.ListRules(&cloudwatchevents.ListRulesInput{ EventBusName: bus.Name, }) + if err != nil { + return nil, err + } + + for _, rule := range resp.Rules { + resources = append(resources, &CloudWatchEventsRule{ + svc: svc, + Name: rule.Name, + ARN: rule.Arn, + State: rule.State, + EventBusName: bus.Name, + }) + } + } + + if resp.NextToken == nil { + break } + + params.NextToken = resp.NextToken } + return resources, nil } From dbbe47463088201e2ae8599f7586e871c8c90f36 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 30 Sep 2024 18:40:33 -0600 Subject: [PATCH 558/617] feat(iam-role-policy): filter out sso managed policies --- resources/iam-role-policy.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/iam-role-policy.go b/resources/iam-role-policy.go index 0d80e7e3..9a2345b4 100644 --- a/resources/iam-role-policy.go +++ b/resources/iam-role-policy.go @@ -2,7 +2,6 @@ package resources import ( "context" - "fmt" "strings" @@ -41,6 +40,9 @@ func (e *IAMRolePolicy) Filter() error { if strings.HasPrefix(e.rolePath, "/aws-service-role/") { return fmt.Errorf("cannot alter service roles") } + if strings.HasPrefix(e.rolePath, "/aws-reserved/sso.amazonaws.com/") { + return fmt.Errorf("cannot alter sso roles") + } return nil } From bca0505b91a3eb816daa0e42a75c7074ea8dfb72 Mon Sep 17 00:00:00 2001 From: Sherd White Date: Tue, 7 Nov 2023 13:14:08 -0600 Subject: [PATCH 559/617] feat(resource): adding support for codedeploy deployment configs and groups --- resources/codedeploy-deployment-configs.go | 73 ++++++++++++++++++++++ resources/codedeploy-deployment-groups.go | 69 ++++++++++++++++++++ 2 files changed, 142 insertions(+) create mode 100644 resources/codedeploy-deployment-configs.go create mode 100644 resources/codedeploy-deployment-groups.go diff --git a/resources/codedeploy-deployment-configs.go b/resources/codedeploy-deployment-configs.go new file mode 100644 index 00000000..5682df16 --- /dev/null +++ b/resources/codedeploy-deployment-configs.go @@ -0,0 +1,73 @@ +package resources + +import ( + "fmt" + "strings" + + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/codedeploy" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type CodeDeployDeploymentConfig struct { + svc *codedeploy.CodeDeploy + deploymentConfigName *string +} + +func init() { + register("CodeDeployDeploymentConfig", ListCodeDeployDeploymentConfigs, mapCloudControl("AWS::CodeDeploy::DeploymentConfig")) +} + +func ListCodeDeployDeploymentConfigs(sess *session.Session) ([]Resource, error) { + svc := codedeploy.New(sess) + resources := []Resource{} + + params := &codedeploy.ListDeploymentConfigsInput{} + + for { + resp, err := svc.ListDeploymentConfigs(params) + if err != nil { + return nil, err + } + + for _, config := range resp.DeploymentConfigsList { + resources = append(resources, &CodeDeployDeploymentConfig{ + svc: svc, + deploymentConfigName: config, + }) + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken + } + + return resources, nil +} + +func (f *CodeDeployDeploymentConfig) Filter() error { + if strings.HasPrefix(*f.deploymentConfigName, "CodeDeployDefault") { + return fmt.Errorf("cannot delete default codedeploy config") + } + return nil +} + +func (f *CodeDeployDeploymentConfig) Remove() error { + _, err := f.svc.DeleteDeploymentConfig(&codedeploy.DeleteDeploymentConfigInput{ + DeploymentConfigName: f.deploymentConfigName, + }) + + return err +} + +func (f *CodeDeployDeploymentConfig) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("DeploymentConfigName", f.deploymentConfigName) + return properties +} + +func (f *CodeDeployDeploymentConfig) String() string { + return *f.deploymentConfigName +} diff --git a/resources/codedeploy-deployment-groups.go b/resources/codedeploy-deployment-groups.go new file mode 100644 index 00000000..67616a4d --- /dev/null +++ b/resources/codedeploy-deployment-groups.go @@ -0,0 +1,69 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/codedeploy" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type CodeDeployDeploymentGroup struct { + svc *codedeploy.CodeDeploy + deploymentGroupName *string + applicationName *string +} + +func init() { + register("CodeDeployDeploymentGroup", ListCodeDeployDeploymentGroups) +} + +func ListCodeDeployDeploymentGroups(sess *session.Session) ([]Resource, error) { + svc := codedeploy.New(sess) + resources := []Resource{} + + appParams := &codedeploy.ListApplicationsInput{} + appResp, err := svc.ListApplications(appParams) + if err != nil { + return nil, err + } + + for _, appName := range appResp.Applications { + // For each application, list deployment groups + deploymentGroupParams := &codedeploy.ListDeploymentGroupsInput{ + ApplicationName: appName, + } + deploymentGroupResp, err := svc.ListDeploymentGroups(deploymentGroupParams) + if err != nil { + return nil, err + } + + for _, group := range deploymentGroupResp.DeploymentGroups { + resources = append(resources, &CodeDeployDeploymentGroup{ + svc: svc, + deploymentGroupName: group, + applicationName: appName, + }) + } + } + + return resources, nil +} + +func (f *CodeDeployDeploymentGroup) Remove() error { + _, err := f.svc.DeleteDeploymentGroup(&codedeploy.DeleteDeploymentGroupInput{ + ApplicationName: f.applicationName, + DeploymentGroupName: f.deploymentGroupName, + }) + + return err +} + +func (f *CodeDeployDeploymentGroup) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("DeploymentGroupName", f.deploymentGroupName) + properties.Set("ApplicationName", f.applicationName) + return properties +} + +func (f *CodeDeployDeploymentGroup) String() string { + return *f.deploymentGroupName +} From bed33244419e699c396bbd97936eb3d4c9a62470 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 30 Sep 2024 18:45:55 -0600 Subject: [PATCH 560/617] refactor(codedeploy): convert to libnuke resource standard format --- ...lications.go => codedeploy-application.go} | 0 resources/codedeploy-deployment-config.go | 86 ++++++++++++++++++ resources/codedeploy-deployment-configs.go | 73 --------------- resources/codedeploy-deployment-group.go | 91 +++++++++++++++++++ resources/codedeploy-deployment-groups.go | 69 -------------- 5 files changed, 177 insertions(+), 142 deletions(-) rename resources/{codedeploy-applications.go => codedeploy-application.go} (100%) create mode 100644 resources/codedeploy-deployment-config.go delete mode 100644 resources/codedeploy-deployment-configs.go create mode 100644 resources/codedeploy-deployment-group.go delete mode 100644 resources/codedeploy-deployment-groups.go diff --git a/resources/codedeploy-applications.go b/resources/codedeploy-application.go similarity index 100% rename from resources/codedeploy-applications.go rename to resources/codedeploy-application.go diff --git a/resources/codedeploy-deployment-config.go b/resources/codedeploy-deployment-config.go new file mode 100644 index 00000000..11347286 --- /dev/null +++ b/resources/codedeploy-deployment-config.go @@ -0,0 +1,86 @@ +package resources + +import ( + "context" + "fmt" + "strings" + + "github.com/aws/aws-sdk-go/service/codedeploy" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +const CodeDeployDeploymentConfigResource = "CodeDeployDeploymentConfig" + +func init() { + registry.Register(®istry.Registration{ + Name: CodeDeployDeploymentConfigResource, + Scope: nuke.Account, + Lister: &CodeDeployDeploymentConfigLister{}, + }) +} + +type CodeDeployDeploymentConfigLister struct{} + +func (l *CodeDeployDeploymentConfigLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := codedeploy.New(opts.Session) + resources := make([]resource.Resource, 0) + + params := &codedeploy.ListDeploymentConfigsInput{} + + for { + resp, err := svc.ListDeploymentConfigs(params) + if err != nil { + return nil, err + } + + for _, config := range resp.DeploymentConfigsList { + resources = append(resources, &CodeDeployDeploymentConfig{ + svc: svc, + Name: config, + }) + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken + } + + return resources, nil +} + +type CodeDeployDeploymentConfig struct { + svc *codedeploy.CodeDeploy + Name *string +} + +func (r *CodeDeployDeploymentConfig) Filter() error { + if strings.HasPrefix(*r.Name, "CodeDeployDefault") { + return fmt.Errorf("cannot delete default codedeploy config") + } + return nil +} + +func (r *CodeDeployDeploymentConfig) Remove(_ context.Context) error { + _, err := r.svc.DeleteDeploymentConfig(&codedeploy.DeleteDeploymentConfigInput{ + DeploymentConfigName: r.Name, + }) + + return err +} + +func (r *CodeDeployDeploymentConfig) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + +func (r *CodeDeployDeploymentConfig) String() string { + return *r.Name +} diff --git a/resources/codedeploy-deployment-configs.go b/resources/codedeploy-deployment-configs.go deleted file mode 100644 index 5682df16..00000000 --- a/resources/codedeploy-deployment-configs.go +++ /dev/null @@ -1,73 +0,0 @@ -package resources - -import ( - "fmt" - "strings" - - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/codedeploy" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" -) - -type CodeDeployDeploymentConfig struct { - svc *codedeploy.CodeDeploy - deploymentConfigName *string -} - -func init() { - register("CodeDeployDeploymentConfig", ListCodeDeployDeploymentConfigs, mapCloudControl("AWS::CodeDeploy::DeploymentConfig")) -} - -func ListCodeDeployDeploymentConfigs(sess *session.Session) ([]Resource, error) { - svc := codedeploy.New(sess) - resources := []Resource{} - - params := &codedeploy.ListDeploymentConfigsInput{} - - for { - resp, err := svc.ListDeploymentConfigs(params) - if err != nil { - return nil, err - } - - for _, config := range resp.DeploymentConfigsList { - resources = append(resources, &CodeDeployDeploymentConfig{ - svc: svc, - deploymentConfigName: config, - }) - } - - if resp.NextToken == nil { - break - } - - params.NextToken = resp.NextToken - } - - return resources, nil -} - -func (f *CodeDeployDeploymentConfig) Filter() error { - if strings.HasPrefix(*f.deploymentConfigName, "CodeDeployDefault") { - return fmt.Errorf("cannot delete default codedeploy config") - } - return nil -} - -func (f *CodeDeployDeploymentConfig) Remove() error { - _, err := f.svc.DeleteDeploymentConfig(&codedeploy.DeleteDeploymentConfigInput{ - DeploymentConfigName: f.deploymentConfigName, - }) - - return err -} - -func (f *CodeDeployDeploymentConfig) Properties() types.Properties { - properties := types.NewProperties() - properties.Set("DeploymentConfigName", f.deploymentConfigName) - return properties -} - -func (f *CodeDeployDeploymentConfig) String() string { - return *f.deploymentConfigName -} diff --git a/resources/codedeploy-deployment-group.go b/resources/codedeploy-deployment-group.go new file mode 100644 index 00000000..0bc7f4a4 --- /dev/null +++ b/resources/codedeploy-deployment-group.go @@ -0,0 +1,91 @@ +package resources + +import ( + "context" + + "github.com/aws/aws-sdk-go/service/codedeploy" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +const CodeDeployDeploymentGroupResource = "CodeDeployDeploymentGroup" + +func init() { + registry.Register(®istry.Registration{ + Name: CodeDeployDeploymentGroupResource, + Scope: nuke.Account, + Lister: &CodeDeployDeploymentGroupLister{}, + }) +} + +type CodeDeployDeploymentGroupLister struct{} + +func (l *CodeDeployDeploymentGroupLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + var resources []resource.Resource + + svc := codedeploy.New(opts.Session) + + params := &codedeploy.ListApplicationsInput{} + + for { + appResp, err := svc.ListApplications(params) + if err != nil { + return nil, err + } + + for _, appName := range appResp.Applications { + // For each application, list deployment groups + deploymentGroupParams := &codedeploy.ListDeploymentGroupsInput{ + ApplicationName: appName, + } + deploymentGroupResp, err := svc.ListDeploymentGroups(deploymentGroupParams) + if err != nil { + return nil, err + } + + for _, group := range deploymentGroupResp.DeploymentGroups { + resources = append(resources, &CodeDeployDeploymentGroup{ + svc: svc, + Name: group, + ApplicationName: appName, + }) + } + } + + if appResp.NextToken == nil { + break + } + + params.NextToken = appResp.NextToken + } + + return resources, nil +} + +type CodeDeployDeploymentGroup struct { + svc *codedeploy.CodeDeploy + Name *string + ApplicationName *string +} + +func (r *CodeDeployDeploymentGroup) Remove(_ context.Context) error { + _, err := r.svc.DeleteDeploymentGroup(&codedeploy.DeleteDeploymentGroupInput{ + ApplicationName: r.ApplicationName, + DeploymentGroupName: r.Name, + }) + + return err +} + +func (r *CodeDeployDeploymentGroup) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + +func (r *CodeDeployDeploymentGroup) String() string { + return *r.Name +} diff --git a/resources/codedeploy-deployment-groups.go b/resources/codedeploy-deployment-groups.go deleted file mode 100644 index 67616a4d..00000000 --- a/resources/codedeploy-deployment-groups.go +++ /dev/null @@ -1,69 +0,0 @@ -package resources - -import ( - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/codedeploy" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" -) - -type CodeDeployDeploymentGroup struct { - svc *codedeploy.CodeDeploy - deploymentGroupName *string - applicationName *string -} - -func init() { - register("CodeDeployDeploymentGroup", ListCodeDeployDeploymentGroups) -} - -func ListCodeDeployDeploymentGroups(sess *session.Session) ([]Resource, error) { - svc := codedeploy.New(sess) - resources := []Resource{} - - appParams := &codedeploy.ListApplicationsInput{} - appResp, err := svc.ListApplications(appParams) - if err != nil { - return nil, err - } - - for _, appName := range appResp.Applications { - // For each application, list deployment groups - deploymentGroupParams := &codedeploy.ListDeploymentGroupsInput{ - ApplicationName: appName, - } - deploymentGroupResp, err := svc.ListDeploymentGroups(deploymentGroupParams) - if err != nil { - return nil, err - } - - for _, group := range deploymentGroupResp.DeploymentGroups { - resources = append(resources, &CodeDeployDeploymentGroup{ - svc: svc, - deploymentGroupName: group, - applicationName: appName, - }) - } - } - - return resources, nil -} - -func (f *CodeDeployDeploymentGroup) Remove() error { - _, err := f.svc.DeleteDeploymentGroup(&codedeploy.DeleteDeploymentGroupInput{ - ApplicationName: f.applicationName, - DeploymentGroupName: f.deploymentGroupName, - }) - - return err -} - -func (f *CodeDeployDeploymentGroup) Properties() types.Properties { - properties := types.NewProperties() - properties.Set("DeploymentGroupName", f.deploymentGroupName) - properties.Set("ApplicationName", f.applicationName) - return properties -} - -func (f *CodeDeployDeploymentGroup) String() string { - return *f.deploymentGroupName -} From 8b6eb022623c2847991786c23b87dc6914b2b5e2 Mon Sep 17 00:00:00 2001 From: "Gabriela S. Soria" Date: Tue, 3 Oct 2023 14:07:54 +0000 Subject: [PATCH 561/617] feat(resource): add support for codebuild builds Signed-off-by: Gabriela S. Soria --- resources/codebuild-builds.go | 60 +++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 resources/codebuild-builds.go diff --git a/resources/codebuild-builds.go b/resources/codebuild-builds.go new file mode 100644 index 00000000..e6e10810 --- /dev/null +++ b/resources/codebuild-builds.go @@ -0,0 +1,60 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/codebuild" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type CodeBuildBuild struct { + svc *codebuild.CodeBuild + Id *string +} + +func init() { + register("CodeBuildBuild", ListCodeBuildBuild) +} + +func ListCodeBuildBuild(sess *session.Session) ([]Resource, error) { + svc := codebuild.New(sess) + resources := []Resource{} + + params := &codebuild.ListBuildsInput{} + + for { + resp, err := svc.ListBuilds(params) + if err != nil { + return nil, err + } + + for _, build := range resp.Ids { + resources = append(resources, &CodeBuildBuild{ + svc: svc, + Id: build, + }) + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken + } + + return resources, nil +} + +func (f *CodeBuildBuild) Remove() error { + _, err := f.svc.BatchDeleteBuilds(&codebuild.BatchDeleteBuildsInput{ + Ids: []*string{f.Id}, + }) + + return err +} + +func (f *CodeBuildBuild) Properties() types.Properties { + properties := types.NewProperties() + properties. + Set("Id", f.Id) + return properties +} From e3da62b6a045cbcc85227b62ec32e59ed6cab214 Mon Sep 17 00:00:00 2001 From: "Gabriela S. Soria" Date: Tue, 3 Oct 2023 14:08:42 +0000 Subject: [PATCH 562/617] feat(resource): add support for codebuild build batches Signed-off-by: Gabriela S. Soria --- resources/codebuild-build-batches.go | 60 ++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 resources/codebuild-build-batches.go diff --git a/resources/codebuild-build-batches.go b/resources/codebuild-build-batches.go new file mode 100644 index 00000000..c8fb12f6 --- /dev/null +++ b/resources/codebuild-build-batches.go @@ -0,0 +1,60 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/codebuild" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type CodeBuildBuildBatch struct { + svc *codebuild.CodeBuild + Id *string +} + +func init() { + register("CodeBuildBuildBatch", ListCodeBuildBuildBatch) +} + +func ListCodeBuildBuildBatch(sess *session.Session) ([]Resource, error) { + svc := codebuild.New(sess) + resources := []Resource{} + + params := &codebuild.ListBuildBatchesInput{} + + for { + resp, err := svc.ListBuildBatches(params) + if err != nil { + return nil, err + } + + for _, batch := range resp.Ids { + resources = append(resources, &CodeBuildBuildBatch{ + svc: svc, + Id: batch, + }) + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken + } + + return resources, nil +} + +func (f *CodeBuildBuildBatch) Remove() error { + _, err := f.svc.DeleteBuildBatch(&codebuild.DeleteBuildBatchInput{ + Id: f.Id, + }) + + return err +} + +func (f *CodeBuildBuildBatch) Properties() types.Properties { + properties := types.NewProperties() + properties. + Set("Id", f.Id) + return properties +} From 31f48b2a4575badb0ecff8934ddb8c348a5f6942 Mon Sep 17 00:00:00 2001 From: "Gabriela S. Soria" Date: Tue, 3 Oct 2023 14:09:35 +0000 Subject: [PATCH 563/617] feat(resource): add support for codebuild source credentials Signed-off-by: Gabriela S. Soria --- resources/codebuild-source-credentials.go | 56 +++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 resources/codebuild-source-credentials.go diff --git a/resources/codebuild-source-credentials.go b/resources/codebuild-source-credentials.go new file mode 100644 index 00000000..ae1cf11d --- /dev/null +++ b/resources/codebuild-source-credentials.go @@ -0,0 +1,56 @@ +package resources + +import ( + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/codebuild" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type CodeBuildSourceCredential struct { + svc *codebuild.CodeBuild + Arn *string + AuthType *string + ServerType *string +} + +func init() { + register("CodeBuildSourceCredential", ListCodeBuildSourceCredential) +} + +func ListCodeBuildSourceCredential(sess *session.Session) ([]Resource, error) { + svc := codebuild.New(sess) + resources := []Resource{} + + params := &codebuild.ListSourceCredentialsInput{} + + //This endpoint[1] is not paginated, `SourceCredentialsInfo` doesn't have a `NextToken` field. + //[1] https://docs.aws.amazon.com/sdk-for-go/api/service/codebuild/#SourceCredentialsInfo + resp, err := svc.ListSourceCredentials(params) + + if err != nil { + return nil, err + } + + for _, credential := range resp.SourceCredentialsInfos { + resources = append(resources, &CodeBuildSourceCredential{ + svc: svc, + Arn: credential.Arn, + }) + } + + return resources, nil +} + +func (f *CodeBuildSourceCredential) Remove() error { + _, err := f.svc.DeleteSourceCredentials(&codebuild.DeleteSourceCredentialsInput{Arn: f.Arn}) + return err +} + +func (f *CodeBuildSourceCredential) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("Arn", f.Arn) + properties.Set("AuthType", f.AuthType) + properties.Set("ServerType", f.ServerType) + + return properties +} From a7c044a4c10206b854503f1c1a706815e0fb5450 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 1 Oct 2024 17:06:07 -0600 Subject: [PATCH 564/617] refactor(codebuild-build): convert to libnuke resource format --- resources/codebuild-build.go | 77 +++++++++++++++++++++++++++++++++++ resources/codebuild-builds.go | 60 --------------------------- 2 files changed, 77 insertions(+), 60 deletions(-) create mode 100644 resources/codebuild-build.go delete mode 100644 resources/codebuild-builds.go diff --git a/resources/codebuild-build.go b/resources/codebuild-build.go new file mode 100644 index 00000000..0a187405 --- /dev/null +++ b/resources/codebuild-build.go @@ -0,0 +1,77 @@ +package resources + +import ( + "context" + + "github.com/aws/aws-sdk-go/service/codebuild" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +const CodeBuildBuildResource = "CodeBuildBuild" + +func init() { + registry.Register(®istry.Registration{ + Name: CodeBuildBuildResource, + Scope: nuke.Account, + Lister: &CodeBuildBuildLister{}, + }) +} + +type CodeBuildBuildLister struct{} + +func (l *CodeBuildBuildLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + var resources []resource.Resource + + svc := codebuild.New(opts.Session) + + params := &codebuild.ListBuildsInput{} + + for { + resp, err := svc.ListBuilds(params) + if err != nil { + return nil, err + } + + for _, buildID := range resp.Ids { + resources = append(resources, &CodeBuildBuild{ + svc: svc, + ID: buildID, + }) + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken + } + + return resources, nil +} + +type CodeBuildBuild struct { + svc *codebuild.CodeBuild + ID *string +} + +func (r *CodeBuildBuild) Remove(_ context.Context) error { + _, err := r.svc.BatchDeleteBuilds(&codebuild.BatchDeleteBuildsInput{ + Ids: []*string{r.ID}, + }) + + return err +} + +func (r *CodeBuildBuild) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + +func (r *CodeBuildBuild) String() string { + return *r.ID +} diff --git a/resources/codebuild-builds.go b/resources/codebuild-builds.go deleted file mode 100644 index e6e10810..00000000 --- a/resources/codebuild-builds.go +++ /dev/null @@ -1,60 +0,0 @@ -package resources - -import ( - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/codebuild" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" -) - -type CodeBuildBuild struct { - svc *codebuild.CodeBuild - Id *string -} - -func init() { - register("CodeBuildBuild", ListCodeBuildBuild) -} - -func ListCodeBuildBuild(sess *session.Session) ([]Resource, error) { - svc := codebuild.New(sess) - resources := []Resource{} - - params := &codebuild.ListBuildsInput{} - - for { - resp, err := svc.ListBuilds(params) - if err != nil { - return nil, err - } - - for _, build := range resp.Ids { - resources = append(resources, &CodeBuildBuild{ - svc: svc, - Id: build, - }) - } - - if resp.NextToken == nil { - break - } - - params.NextToken = resp.NextToken - } - - return resources, nil -} - -func (f *CodeBuildBuild) Remove() error { - _, err := f.svc.BatchDeleteBuilds(&codebuild.BatchDeleteBuildsInput{ - Ids: []*string{f.Id}, - }) - - return err -} - -func (f *CodeBuildBuild) Properties() types.Properties { - properties := types.NewProperties() - properties. - Set("Id", f.Id) - return properties -} From 897959656baf01ef9bd608d77273ebe84ffef65a Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 1 Oct 2024 17:07:24 -0600 Subject: [PATCH 565/617] refactor(codebuild-build-batch): convert to libnuke resource format --- resources/codebuild-build-batch.go | 77 ++++++++++++++++++++++++++++ resources/codebuild-build-batches.go | 60 ---------------------- 2 files changed, 77 insertions(+), 60 deletions(-) create mode 100644 resources/codebuild-build-batch.go delete mode 100644 resources/codebuild-build-batches.go diff --git a/resources/codebuild-build-batch.go b/resources/codebuild-build-batch.go new file mode 100644 index 00000000..9ff59f35 --- /dev/null +++ b/resources/codebuild-build-batch.go @@ -0,0 +1,77 @@ +package resources + +import ( + "context" + + "github.com/aws/aws-sdk-go/service/codebuild" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +const CodeBuildBuildBatchResource = "CodeBuildBuildBatch" + +func init() { + registry.Register(®istry.Registration{ + Name: CodeBuildBuildBatchResource, + Scope: nuke.Account, + Lister: &CodeBuildBuildBatchLister{}, + }) +} + +type CodeBuildBuildBatchLister struct{} + +func (l *CodeBuildBuildBatchLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + var resources []resource.Resource + + svc := codebuild.New(opts.Session) + + params := &codebuild.ListBuildBatchesInput{} + + for { + resp, err := svc.ListBuildBatches(params) + if err != nil { + return nil, err + } + + for _, batchID := range resp.Ids { + resources = append(resources, &CodeBuildBuildBatch{ + svc: svc, + ID: batchID, + }) + } + + if resp.NextToken == nil { + break + } + + params.NextToken = resp.NextToken + } + + return resources, nil +} + +type CodeBuildBuildBatch struct { + svc *codebuild.CodeBuild + ID *string +} + +func (r *CodeBuildBuildBatch) Remove(_ context.Context) error { + _, err := r.svc.DeleteBuildBatch(&codebuild.DeleteBuildBatchInput{ + Id: r.ID, + }) + + return err +} + +func (r *CodeBuildBuildBatch) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + +func (r *CodeBuildBuildBatch) String() string { + return *r.ID +} diff --git a/resources/codebuild-build-batches.go b/resources/codebuild-build-batches.go deleted file mode 100644 index c8fb12f6..00000000 --- a/resources/codebuild-build-batches.go +++ /dev/null @@ -1,60 +0,0 @@ -package resources - -import ( - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/codebuild" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" -) - -type CodeBuildBuildBatch struct { - svc *codebuild.CodeBuild - Id *string -} - -func init() { - register("CodeBuildBuildBatch", ListCodeBuildBuildBatch) -} - -func ListCodeBuildBuildBatch(sess *session.Session) ([]Resource, error) { - svc := codebuild.New(sess) - resources := []Resource{} - - params := &codebuild.ListBuildBatchesInput{} - - for { - resp, err := svc.ListBuildBatches(params) - if err != nil { - return nil, err - } - - for _, batch := range resp.Ids { - resources = append(resources, &CodeBuildBuildBatch{ - svc: svc, - Id: batch, - }) - } - - if resp.NextToken == nil { - break - } - - params.NextToken = resp.NextToken - } - - return resources, nil -} - -func (f *CodeBuildBuildBatch) Remove() error { - _, err := f.svc.DeleteBuildBatch(&codebuild.DeleteBuildBatchInput{ - Id: f.Id, - }) - - return err -} - -func (f *CodeBuildBuildBatch) Properties() types.Properties { - properties := types.NewProperties() - properties. - Set("Id", f.Id) - return properties -} From 2bcbbd6bdda240f20ade2f812eac4c090b7e9d5c Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 1 Oct 2024 17:10:25 -0600 Subject: [PATCH 566/617] refactor(codebuild-source-credential): convert to libnuke resource format --- resources/codebuild-source-credential.go | 71 +++++++++++++++++++++++ resources/codebuild-source-credentials.go | 56 ------------------ 2 files changed, 71 insertions(+), 56 deletions(-) create mode 100644 resources/codebuild-source-credential.go delete mode 100644 resources/codebuild-source-credentials.go diff --git a/resources/codebuild-source-credential.go b/resources/codebuild-source-credential.go new file mode 100644 index 00000000..4bf28c25 --- /dev/null +++ b/resources/codebuild-source-credential.go @@ -0,0 +1,71 @@ +package resources + +import ( + "context" + + "github.com/aws/aws-sdk-go/service/codebuild" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +const CodeBuildSourceCredentialResource = "CodeBuildSourceCredential" + +func init() { + registry.Register(®istry.Registration{ + Name: CodeBuildSourceCredentialResource, + Scope: nuke.Account, + Lister: &CodeBuildSourceCredentialLister{}, + }) +} + +type CodeBuildSourceCredentialLister struct{} + +func (l *CodeBuildSourceCredentialLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := codebuild.New(opts.Session) + resources := make([]resource.Resource, 0) + + params := &codebuild.ListSourceCredentialsInput{} + + //This endpoint[1] is not paginated, `SourceCredentialsInfo` doesn't have a `NextToken` field. + //[1] https://docs.aws.amazon.com/sdk-for-go/api/service/codebuild/#SourceCredentialsInfo + resp, err := svc.ListSourceCredentials(params) + + if err != nil { + return nil, err + } + + for _, credential := range resp.SourceCredentialsInfos { + resources = append(resources, &CodeBuildSourceCredential{ + svc: svc, + ARN: credential.Arn, + }) + } + + return resources, nil +} + +type CodeBuildSourceCredential struct { + svc *codebuild.CodeBuild + ARN *string + AuthType *string + ServerType *string +} + +func (r *CodeBuildSourceCredential) Remove(_ context.Context) error { + _, err := r.svc.DeleteSourceCredentials(&codebuild.DeleteSourceCredentialsInput{Arn: r.ARN}) + return err +} + +func (r *CodeBuildSourceCredential) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + +func (r *CodeBuildSourceCredential) String() string { + return *r.ARN +} diff --git a/resources/codebuild-source-credentials.go b/resources/codebuild-source-credentials.go deleted file mode 100644 index ae1cf11d..00000000 --- a/resources/codebuild-source-credentials.go +++ /dev/null @@ -1,56 +0,0 @@ -package resources - -import ( - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/codebuild" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" -) - -type CodeBuildSourceCredential struct { - svc *codebuild.CodeBuild - Arn *string - AuthType *string - ServerType *string -} - -func init() { - register("CodeBuildSourceCredential", ListCodeBuildSourceCredential) -} - -func ListCodeBuildSourceCredential(sess *session.Session) ([]Resource, error) { - svc := codebuild.New(sess) - resources := []Resource{} - - params := &codebuild.ListSourceCredentialsInput{} - - //This endpoint[1] is not paginated, `SourceCredentialsInfo` doesn't have a `NextToken` field. - //[1] https://docs.aws.amazon.com/sdk-for-go/api/service/codebuild/#SourceCredentialsInfo - resp, err := svc.ListSourceCredentials(params) - - if err != nil { - return nil, err - } - - for _, credential := range resp.SourceCredentialsInfos { - resources = append(resources, &CodeBuildSourceCredential{ - svc: svc, - Arn: credential.Arn, - }) - } - - return resources, nil -} - -func (f *CodeBuildSourceCredential) Remove() error { - _, err := f.svc.DeleteSourceCredentials(&codebuild.DeleteSourceCredentialsInput{Arn: f.Arn}) - return err -} - -func (f *CodeBuildSourceCredential) Properties() types.Properties { - properties := types.NewProperties() - properties.Set("Arn", f.Arn) - properties.Set("AuthType", f.AuthType) - properties.Set("ServerType", f.ServerType) - - return properties -} From 1d88233810451cd94070d3dd151be267015058d2 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 1 Oct 2024 17:15:38 -0600 Subject: [PATCH 567/617] chore(codebuild-source-credential): fix lint violation on comments --- resources/codebuild-source-credential.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/codebuild-source-credential.go b/resources/codebuild-source-credential.go index 4bf28c25..c36309f0 100644 --- a/resources/codebuild-source-credential.go +++ b/resources/codebuild-source-credential.go @@ -32,8 +32,8 @@ func (l *CodeBuildSourceCredentialLister) List(_ context.Context, o interface{}) params := &codebuild.ListSourceCredentialsInput{} - //This endpoint[1] is not paginated, `SourceCredentialsInfo` doesn't have a `NextToken` field. - //[1] https://docs.aws.amazon.com/sdk-for-go/api/service/codebuild/#SourceCredentialsInfo + // This endpoint[1] is not paginated, `SourceCredentialsInfo` doesn't have a `NextToken` field. + // [1] https://docs.aws.amazon.com/sdk-for-go/api/service/codebuild/#SourceCredentialsInfo resp, err := svc.ListSourceCredentials(params) if err != nil { From 2865e1516bc25b1cd90c0a9b2c04b1f9850393d1 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 1 Oct 2024 07:17:48 -0600 Subject: [PATCH 568/617] feat(run): pass account id and logger in lister opts --- pkg/commands/nuke/nuke.go | 8 +++++++- pkg/nuke/resource.go | 15 +++++++++++++-- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/pkg/commands/nuke/nuke.go b/pkg/commands/nuke/nuke.go index cefe5937..8f1b7190 100644 --- a/pkg/commands/nuke/nuke.go +++ b/pkg/commands/nuke/nuke.go @@ -7,6 +7,7 @@ import ( "strings" "time" + "github.com/gotidy/ptr" "github.com/sirupsen/logrus" "github.com/urfave/cli/v2" @@ -184,7 +185,12 @@ func execute(c *cli.Context) error { //nolint:funlen,gocyclo // Step 2 - Create the scannerActual object scannerActual := scanner.New(regionName, resourceTypes, &nuke.ListerOpts{ - Region: region, + Region: region, + AccountID: ptr.String(account.ID()), + Logger: logrus.WithFields(logrus.Fields{ + "component": "scanner", + "region": regionName, + }), }) // Step 3 - Register a mutate function that will be called to modify the lister options for each resource type diff --git a/pkg/nuke/resource.go b/pkg/nuke/resource.go index 2dcdcfa9..b6017ca5 100644 --- a/pkg/nuke/resource.go +++ b/pkg/nuke/resource.go @@ -1,6 +1,8 @@ package nuke import ( + "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/aws/session" "github.com/ekristen/libnuke/pkg/registry" @@ -13,8 +15,10 @@ const Account registry.Scope = "account" // so that each implementing tool can define their own options for the lister. Each resource then asserts the type on // the interface{} to get the options it needs. type ListerOpts struct { - Region *Region - Session *session.Session + Region *Region + Session *session.Session + AccountID *string + Logger *logrus.Entry } // MutateOpts is a function that will be called for each resource type to mutate the options for the scanner based on @@ -29,5 +33,12 @@ var MutateOpts = func(opts interface{}, resourceType string) interface{} { } o.Session = session + + if o.Logger != nil { + o.Logger = o.Logger.WithField("resource", resourceType) + } else { + o.Logger = logrus.WithField("resource", resourceType) + } + return o } From 03e15579c8b9889a0d95ef646c9b218955b25f59 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 1 Oct 2024 17:01:20 -0600 Subject: [PATCH 569/617] test: fix tests to use standard lister opts and account id passed around --- resources/athena-work-group.go | 15 +--- ...scaling-launch-configurations_mock_test.go | 9 +-- .../autoscaling-lifecycle-hooks_mock_test.go | 9 +-- resources/budgets-budget.go | 29 ++----- resources/budgets-budget_mock_test.go | 34 ++------ resources/cognito-userpool.go | 19 +---- resources/cognito-userpool_mock_test.go | 20 +---- resources/dynamodb-backup_mock_test.go | 9 +-- resources/dynamodb-table_mock_test.go | 9 +-- resources/ecs-clusters_mock_test.go | 4 +- resources/ecs-task_mock_test.go | 3 +- .../elasticache-cachecluster_mock_test.go | 7 +- .../elasticache-subnetgroups_mock_test.go | 5 +- .../glue-securityconfiguration_mock_test.go | 5 +- .../iam-instance-profile-role_mock_test.go | 9 +-- resources/iam-instance-profile_mock_test.go | 9 +-- resources/iam-login-profile_mock_test.go | 9 +-- resources/iam-role_mock_test.go | 9 +-- resources/iam-user-mfa-device_mock_test.go | 9 +-- resources/iam-user_mock_test.go | 9 +-- resources/iam-virtual-mfa-device_mock_test.go | 9 +-- resources/kms-alias_mock_test.go | 16 +--- resources/kms-key_mock_test.go | 16 +--- resources/opsworks-userprofiles.go | 1 - resources/quicksight-subscriptions.go | 29 ++----- .../quicksight-subscriptions_mock_test.go | 77 +++++-------------- resources/quicksight-user.go | 23 +----- resources/quicksight_mock_test.go | 5 ++ resources/route53-resolver-rule_mock_test.go | 9 +-- resources/s3-access-points.go | 14 +--- resources/sagemaker-domain_test.go | 3 +- resources/sagemaker-userprofiles_mock_test.go | 4 +- resources/secretsmanager-secret_mock_test.go | 10 +-- .../servicediscovery-namespaces_mock_test.go | 8 +- resources/sqs-queues_mock_test.go | 4 +- resources/testsuite_test.go | 17 ++++ 36 files changed, 103 insertions(+), 373 deletions(-) create mode 100644 resources/quicksight_mock_test.go create mode 100644 resources/testsuite_test.go diff --git a/resources/athena-work-group.go b/resources/athena-work-group.go index 6b275e79..0b02365a 100644 --- a/resources/athena-work-group.go +++ b/resources/athena-work-group.go @@ -10,8 +10,6 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/athena" - "github.com/aws/aws-sdk-go/service/sts" - "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -37,18 +35,9 @@ func (l *AthenaWorkGroupLister) List(_ context.Context, o interface{}) ([]resour svc := athena.New(opts.Session) resources := make([]resource.Resource, 0) - // Lookup current account ID - stsSvc := sts.New(opts.Session) - callerID, err := stsSvc.GetCallerIdentity(&sts.GetCallerIdentityInput{}) - if err != nil { - return nil, err - } - accountID := callerID.Account - region := svc.Config.Region - // List WorkGroup var workgroupNames []*string - err = svc.ListWorkGroupsPages( + err := svc.ListWorkGroupsPages( &athena.ListWorkGroupsInput{}, func(page *athena.ListWorkGroupsOutput, lastPage bool) bool { for _, workgroup := range page.WorkGroups { @@ -70,7 +59,7 @@ func (l *AthenaWorkGroupLister) List(_ context.Context, o interface{}) ([]resour // so we need to construct one ourselves arn: aws.String(fmt.Sprintf( "arn:aws:athena:%s:%s:workgroup/%s", - *region, *accountID, *name, + opts.Region.Name, *opts.AccountID, *name, )), }) } diff --git a/resources/autoscaling-launch-configurations_mock_test.go b/resources/autoscaling-launch-configurations_mock_test.go index 7698437f..6eb2d19a 100644 --- a/resources/autoscaling-launch-configurations_mock_test.go +++ b/resources/autoscaling-launch-configurations_mock_test.go @@ -9,11 +9,9 @@ import ( "github.com/gotidy/ptr" "github.com/stretchr/testify/assert" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/autoscaling" "github.com/ekristen/aws-nuke/v3/mocks/mock_autoscalingiface" - "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) func Test_Mock_AutoScalingLaunchConfiguration_List(t *testing.T) { @@ -42,12 +40,7 @@ func Test_Mock_AutoScalingLaunchConfiguration_List(t *testing.T) { mockSvc: mockSvc, } - resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ - Region: &nuke.Region{ - Name: "us-east-2", - }, - Session: session.Must(session.NewSession()), - }) + resources, err := lister.List(context.TODO(), testListerOpts) a.Nil(err) a.Len(resources, 1) diff --git a/resources/autoscaling-lifecycle-hooks_mock_test.go b/resources/autoscaling-lifecycle-hooks_mock_test.go index 6b791c17..dd2cba56 100644 --- a/resources/autoscaling-lifecycle-hooks_mock_test.go +++ b/resources/autoscaling-lifecycle-hooks_mock_test.go @@ -8,11 +8,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/autoscaling" "github.com/ekristen/aws-nuke/v3/mocks/mock_autoscalingiface" - "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) func Test_Mock_AutoScalingLifeCycleHook_List(t *testing.T) { @@ -47,12 +45,7 @@ func Test_Mock_AutoScalingLifeCycleHook_List(t *testing.T) { mockSvc: mockSvc, } - resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ - Region: &nuke.Region{ - Name: "us-east-2", - }, - Session: session.Must(session.NewSession(&aws.Config{})), - }) + resources, err := lister.List(context.TODO(), testListerOpts) a.NoError(err) a.Len(resources, 1) diff --git a/resources/budgets-budget.go b/resources/budgets-budget.go index 75e70a42..5699a82b 100644 --- a/resources/budgets-budget.go +++ b/resources/budgets-budget.go @@ -9,9 +9,6 @@ import ( "github.com/aws/aws-sdk-go/service/budgets" "github.com/aws/aws-sdk-go/service/budgets/budgetsiface" - "github.com/aws/aws-sdk-go/service/sts" - "github.com/aws/aws-sdk-go/service/sts/stsiface" - "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -33,15 +30,14 @@ func init() { } type BudgetsBudgetLister struct { - mockSvc budgetsiface.BudgetsAPI - mockSTSSvc stsiface.STSAPI + mockSvc budgetsiface.BudgetsAPI } func (l *BudgetsBudgetLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) var resources []resource.Resource + var svc budgetsiface.BudgetsAPI - var stsSvc stsiface.STSAPI if l.mockSvc != nil { svc = l.mockSvc @@ -49,26 +45,13 @@ func (l *BudgetsBudgetLister) List(_ context.Context, o interface{}) ([]resource svc = budgets.New(opts.Session) } - if l.mockSTSSvc != nil { - stsSvc = l.mockSTSSvc - } else { - stsSvc = sts.New(opts.Session) - } - - // TODO: modify ListerOpts to include Account to reduce API calls - identityOutput, err := stsSvc.GetCallerIdentity(nil) - if err != nil { - return nil, err - } - accountID := identityOutput.Account - params := &budgets.DescribeBudgetsInput{ - AccountId: accountID, + AccountId: opts.AccountID, MaxResults: ptr.Int64(100), } buds := make([]*budgets.Budget, 0) - err = svc.DescribeBudgetsPages(params, func(page *budgets.DescribeBudgetsOutput, lastPage bool) bool { + err := svc.DescribeBudgetsPages(params, func(page *budgets.DescribeBudgetsOutput, lastPage bool) bool { buds = append(buds, page.Budgets...) return true }) @@ -79,7 +62,7 @@ func (l *BudgetsBudgetLister) List(_ context.Context, o interface{}) ([]resource for _, bud := range buds { var resourceTags []*budgets.ResourceTag tags, tagsErr := svc.ListTagsForResource(&budgets.ListTagsForResourceInput{ - ResourceARN: ptr.String(fmt.Sprintf("arn:aws:budgets::%s:budget/%s", *accountID, *bud.BudgetName)), + ResourceARN: ptr.String(fmt.Sprintf("arn:aws:budgets::%s:budget/%s", *opts.AccountID, *bud.BudgetName)), }) if tagsErr != nil { logrus.WithError(tagsErr).Error("unable to get tags for budget") @@ -91,7 +74,7 @@ func (l *BudgetsBudgetLister) List(_ context.Context, o interface{}) ([]resource svc: svc, Name: bud.BudgetName, BudgetType: bud.BudgetType, - AccountID: accountID, + AccountID: opts.AccountID, Tags: resourceTags, }) } diff --git a/resources/budgets-budget_mock_test.go b/resources/budgets-budget_mock_test.go index 6bf7b252..20c9bb2a 100644 --- a/resources/budgets-budget_mock_test.go +++ b/resources/budgets-budget_mock_test.go @@ -8,15 +8,10 @@ import ( "github.com/gotidy/ptr" "github.com/stretchr/testify/assert" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/budgets" - "github.com/aws/aws-sdk-go/service/sts" - "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/v3/mocks/mock_budgetsiface" - "github.com/ekristen/aws-nuke/v3/mocks/mock_stsiface" - "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) func Test_Mock_BudgetsBudget_List(t *testing.T) { @@ -25,7 +20,6 @@ func Test_Mock_BudgetsBudget_List(t *testing.T) { defer ctrl.Finish() mockBudgets := mock_budgetsiface.NewMockBudgetsAPI(ctrl) - mockSts := mock_stsiface.NewMockSTSAPI(ctrl) mockBudgets.EXPECT().DescribeBudgetsPages(gomock.Any(), gomock.Any()).DoAndReturn( func(input *budgets.DescribeBudgetsInput, fn func(*budgets.DescribeBudgetsOutput, bool) bool) error { @@ -56,14 +50,8 @@ func Test_Mock_BudgetsBudget_List(t *testing.T) { return nil }) - mockSts.EXPECT().GetCallerIdentity(gomock.Any()).Return(&sts.GetCallerIdentityOutput{ - Account: ptr.String("000000000000"), - Arn: ptr.String("arn:aws:sts::000000000000:assumed-role/role/role"), - UserId: ptr.String("000000000000"), - }, nil) - mockBudgets.EXPECT().ListTagsForResource(&budgets.ListTagsForResourceInput{ - ResourceARN: ptr.String("arn:aws:budgets::000000000000:budget/budget1"), + ResourceARN: ptr.String("arn:aws:budgets::012345678901:budget/budget1"), }).Return(&budgets.ListTagsForResourceOutput{ ResourceTags: []*budgets.ResourceTag{ { @@ -74,19 +62,13 @@ func Test_Mock_BudgetsBudget_List(t *testing.T) { }, nil) mockBudgets.EXPECT().ListTagsForResource(&budgets.ListTagsForResourceInput{ - ResourceARN: ptr.String("arn:aws:budgets::000000000000:budget/budget2"), + ResourceARN: ptr.String("arn:aws:budgets::012345678901:budget/budget2"), }).Return(&budgets.ListTagsForResourceOutput{}, nil) lister := &BudgetsBudgetLister{ - mockSvc: mockBudgets, - mockSTSSvc: mockSts, + mockSvc: mockBudgets, } - resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ - Region: &nuke.Region{ - Name: "us-east-2", - }, - Session: session.Must(session.NewSession()), - }) + resources, err := lister.List(context.TODO(), testListerOpts) a.Nil(err) a.Len(resources, 2) @@ -95,7 +77,7 @@ func Test_Mock_BudgetsBudget_List(t *testing.T) { svc: mockBudgets, Name: ptr.String("budget1"), BudgetType: ptr.String("COST"), - AccountID: ptr.String("000000000000"), + AccountID: ptr.String("012345678901"), Tags: []*budgets.ResourceTag{ { Key: ptr.String("key1"), @@ -107,7 +89,7 @@ func Test_Mock_BudgetsBudget_List(t *testing.T) { svc: mockBudgets, Name: ptr.String("budget2"), BudgetType: ptr.String("COST"), - AccountID: ptr.String("000000000000"), + AccountID: ptr.String("012345678901"), }, } @@ -138,13 +120,13 @@ func Test_Mock_Budget_Properties(t *testing.T) { budget := &BudgetsBudget{ Name: ptr.String("budget1"), BudgetType: ptr.String("COST"), - AccountID: ptr.String("000000000000"), + AccountID: ptr.String("012345678901"), } properties := budget.Properties() a.Equal("budget1", properties.Get("Name")) a.Equal("COST", properties.Get("BudgetType")) - a.Equal("000000000000", properties.Get("AccountID")) + a.Equal("012345678901", properties.Get("AccountID")) a.Equal("budget1", budget.String()) } diff --git a/resources/cognito-userpool.go b/resources/cognito-userpool.go index ea332670..f2932ae3 100644 --- a/resources/cognito-userpool.go +++ b/resources/cognito-userpool.go @@ -10,9 +10,6 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/cognitoidentityprovider" "github.com/aws/aws-sdk-go/service/cognitoidentityprovider/cognitoidentityprovideriface" - "github.com/aws/aws-sdk-go/service/sts" - "github.com/aws/aws-sdk-go/service/sts/stsiface" - "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/settings" @@ -40,7 +37,6 @@ func init() { } type CognitoUserPoolLister struct { - stsService stsiface.STSAPI cognitoService cognitoidentityprovideriface.CognitoIdentityProviderAPI } @@ -48,13 +44,6 @@ func (l *CognitoUserPoolLister) List(_ context.Context, o interface{}) ([]resour opts := o.(*nuke.ListerOpts) resources := make([]resource.Resource, 0) - var stsSvc stsiface.STSAPI - if l.stsService != nil { - stsSvc = l.stsService - } else { - stsSvc = sts.New(opts.Session) - } - var svc cognitoidentityprovideriface.CognitoIdentityProviderAPI if l.cognitoService != nil { svc = l.cognitoService @@ -62,12 +51,6 @@ func (l *CognitoUserPoolLister) List(_ context.Context, o interface{}) ([]resour svc = cognitoidentityprovider.New(opts.Session) } - identityOutput, err := stsSvc.GetCallerIdentity(nil) - if err != nil { - return nil, err - } - accountID := identityOutput.Account - params := &cognitoidentityprovider.ListUserPoolsInput{ MaxResults: aws.Int64(50), } @@ -80,7 +63,7 @@ func (l *CognitoUserPoolLister) List(_ context.Context, o interface{}) ([]resour for _, pool := range output.UserPools { tagResp, tagsErr := svc.ListTagsForResource(&cognitoidentityprovider.ListTagsForResourceInput{ - ResourceArn: ptr.String(fmt.Sprintf("arn:aws:cognito-idp:%s:%s:userpool/%s", opts.Region.Name, *accountID, *pool.Id)), + ResourceArn: ptr.String(fmt.Sprintf("arn:aws:cognito-idp:%s:%s:userpool/%s", opts.Region.Name, *opts.AccountID, *pool.Id)), }) if tagsErr != nil { diff --git a/resources/cognito-userpool_mock_test.go b/resources/cognito-userpool_mock_test.go index ba63a3fd..fc0bfa57 100644 --- a/resources/cognito-userpool_mock_test.go +++ b/resources/cognito-userpool_mock_test.go @@ -8,16 +8,11 @@ import ( "github.com/stretchr/testify/assert" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/sts" - "github.com/aws/aws-sdk-go/service/cognitoidentityprovider" "github.com/ekristen/libnuke/pkg/settings" "github.com/ekristen/aws-nuke/v3/mocks/mock_cognitoidentityprovideriface" - "github.com/ekristen/aws-nuke/v3/mocks/mock_stsiface" - "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) func Test_Mock_CognitoUserPool_List(t *testing.T) { @@ -26,17 +21,11 @@ func Test_Mock_CognitoUserPool_List(t *testing.T) { defer ctrl.Finish() mockSvc := mock_cognitoidentityprovideriface.NewMockCognitoIdentityProviderAPI(ctrl) - mockStsSvc := mock_stsiface.NewMockSTSAPI(ctrl) lister := &CognitoUserPoolLister{ - stsService: mockStsSvc, cognitoService: mockSvc, } - mockStsSvc.EXPECT().GetCallerIdentity(gomock.Any()).Return(&sts.GetCallerIdentityOutput{ - Account: aws.String("123456789012"), - }, nil) - mockSvc.EXPECT().ListUserPools(&cognitoidentityprovider.ListUserPoolsInput{ MaxResults: aws.Int64(50), }).Return(&cognitoidentityprovider.ListUserPoolsOutput{ @@ -49,19 +38,14 @@ func Test_Mock_CognitoUserPool_List(t *testing.T) { }, nil) mockSvc.EXPECT().ListTagsForResource(&cognitoidentityprovider.ListTagsForResourceInput{ - ResourceArn: aws.String("arn:aws:cognito-idp:us-east-2:123456789012:userpool/test-pool-id"), + ResourceArn: aws.String("arn:aws:cognito-idp:us-east-2:012345678901:userpool/test-pool-id"), }).Return(&cognitoidentityprovider.ListTagsForResourceOutput{ Tags: map[string]*string{ "test-key": aws.String("test-value"), }, }, nil) - resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ - Region: &nuke.Region{ - Name: "us-east-2", - }, - Session: session.Must(session.NewSession()), - }) + resources, err := lister.List(context.TODO(), testListerOpts) a.NoError(err) a.Len(resources, 1) } diff --git a/resources/dynamodb-backup_mock_test.go b/resources/dynamodb-backup_mock_test.go index dfcb0c59..00150c98 100644 --- a/resources/dynamodb-backup_mock_test.go +++ b/resources/dynamodb-backup_mock_test.go @@ -9,11 +9,9 @@ import ( "github.com/gotidy/ptr" "github.com/stretchr/testify/assert" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/dynamodb" "github.com/ekristen/aws-nuke/v3/mocks/mock_dynamodbiface" - "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) func Test_Mock_DynamoDBBackup_List(t *testing.T) { @@ -41,12 +39,7 @@ func Test_Mock_DynamoDBBackup_List(t *testing.T) { mockSvc: mockSvc, } - resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ - Region: &nuke.Region{ - Name: "us-east-2", - }, - Session: session.Must(session.NewSession()), - }) + resources, err := lister.List(context.TODO(), testListerOpts) a.Nil(err) a.Len(resources, 1) } diff --git a/resources/dynamodb-table_mock_test.go b/resources/dynamodb-table_mock_test.go index 24fff0b6..e722be71 100644 --- a/resources/dynamodb-table_mock_test.go +++ b/resources/dynamodb-table_mock_test.go @@ -9,13 +9,11 @@ import ( "github.com/stretchr/testify/assert" "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/dynamodb" libsettings "github.com/ekristen/libnuke/pkg/settings" "github.com/ekristen/aws-nuke/v3/mocks/mock_dynamodbiface" - "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) func Test_Mock_DynamoDBTable_List(t *testing.T) { @@ -54,12 +52,7 @@ func Test_Mock_DynamoDBTable_List(t *testing.T) { mockSvc: mockSvc, } - resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ - Region: &nuke.Region{ - Name: "us-east-2", - }, - Session: session.Must(session.NewSession()), - }) + resources, err := lister.List(context.TODO(), testListerOpts) a.NoError(err) a.Len(resources, 1) } diff --git a/resources/ecs-clusters_mock_test.go b/resources/ecs-clusters_mock_test.go index eb38dd81..a06e5bb4 100644 --- a/resources/ecs-clusters_mock_test.go +++ b/resources/ecs-clusters_mock_test.go @@ -12,8 +12,6 @@ import ( "github.com/aws/aws-sdk-go/service/ecs" "github.com/ekristen/aws-nuke/v3/mocks/mock_ecsiface" - - "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) func Test_Mock_ECSCluster_List(t *testing.T) { @@ -51,7 +49,7 @@ func Test_Mock_ECSCluster_List(t *testing.T) { }, }, nil) - resources, err := ecsClusterLister.List(context.TODO(), &nuke.ListerOpts{}) + resources, err := ecsClusterLister.List(context.TODO(), testListerOpts) a.Nil(err) a.Len(resources, 1) diff --git a/resources/ecs-task_mock_test.go b/resources/ecs-task_mock_test.go index 1097ddea..048baf7b 100644 --- a/resources/ecs-task_mock_test.go +++ b/resources/ecs-task_mock_test.go @@ -12,7 +12,6 @@ import ( "github.com/aws/aws-sdk-go/service/ecs" "github.com/ekristen/aws-nuke/v3/mocks/mock_ecsiface" - "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) func Test_Mock_ECSTask_List(t *testing.T) { @@ -55,7 +54,7 @@ func Test_Mock_ECSTask_List(t *testing.T) { mockSvc: mockECS, } - resources, err := ecsTaskLister.List(context.TODO(), &nuke.ListerOpts{}) + resources, err := ecsTaskLister.List(context.TODO(), testListerOpts) a.Nil(err) a.Len(resources, 1) } diff --git a/resources/elasticache-cachecluster_mock_test.go b/resources/elasticache-cachecluster_mock_test.go index 17142914..912d2911 100644 --- a/resources/elasticache-cachecluster_mock_test.go +++ b/resources/elasticache-cachecluster_mock_test.go @@ -14,7 +14,6 @@ import ( "github.com/aws/aws-sdk-go/service/elasticache" "github.com/ekristen/aws-nuke/v3/mocks/mock_elasticacheiface" - "github.com/ekristen/aws-nuke/v3/pkg/nuke" "github.com/ekristen/aws-nuke/v3/pkg/testsuite" ) @@ -97,7 +96,7 @@ func Test_Mock_ElastiCache_CacheCluster_List_NoTags(t *testing.T) { ResourceName: ptr.String("arn:aws:elasticache:us-west-2:123456789012:serverless:foobar"), }).Return(&elasticache.TagListMessage{}, nil) - resources, err := cacheClusterLister.List(context.TODO(), &nuke.ListerOpts{}) + resources, err := cacheClusterLister.List(context.TODO(), testListerOpts) a.Nil(err) a.Len(resources, 2) @@ -150,7 +149,7 @@ func Test_Mock_ElastiCache_CacheCluster_List_WithTags(t *testing.T) { }, }, nil) - resources, err := cacheClusterLister.List(context.TODO(), &nuke.ListerOpts{}) + resources, err := cacheClusterLister.List(context.TODO(), testListerOpts) a.Nil(err) a.Len(resources, 2) @@ -215,7 +214,7 @@ func Test_Mock_ElastiCache_CacheCluster_List_TagsInvalidARN(t *testing.T) { ResourceName: ptr.String("foobar:invalid:arn"), }).Return(nil, awserr.New(elasticache.ErrCodeInvalidARNFault, elasticache.ErrCodeInvalidARNFault, nil)) - resources, err := cacheClusterLister.List(context.TODO(), &nuke.ListerOpts{}) + resources, err := cacheClusterLister.List(context.TODO(), testListerOpts) a.Nil(err) a.Len(resources, 2) diff --git a/resources/elasticache-subnetgroups_mock_test.go b/resources/elasticache-subnetgroups_mock_test.go index 86b85c03..11b85104 100644 --- a/resources/elasticache-subnetgroups_mock_test.go +++ b/resources/elasticache-subnetgroups_mock_test.go @@ -11,7 +11,6 @@ import ( "github.com/aws/aws-sdk-go/service/elasticache" "github.com/ekristen/aws-nuke/v3/mocks/mock_elasticacheiface" - "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) func Test_Mock_ElastiCache_SubnetGroup_Remove(t *testing.T) { @@ -59,7 +58,7 @@ func Test_Mock_ElastiCache_SubnetGroup_List_NoTags(t *testing.T) { ResourceName: aws.String("arn:aws:elasticache:us-west-2:123456789012:subnet-group:foobar"), }).Return(&elasticache.TagListMessage{}, nil) - resources, err := subnetGroupsLister.List(context.TODO(), &nuke.ListerOpts{}) + resources, err := subnetGroupsLister.List(context.TODO(), testListerOpts) a.Nil(err) a.Len(resources, 1) @@ -104,7 +103,7 @@ func Test_Mock_ElastiCache_SubnetGroup_List_WithTags(t *testing.T) { }, }, nil) - resources, err := subnetGroupsLister.List(context.TODO(), &nuke.ListerOpts{}) + resources, err := subnetGroupsLister.List(context.TODO(), testListerOpts) a.Nil(err) a.Len(resources, 1) diff --git a/resources/glue-securityconfiguration_mock_test.go b/resources/glue-securityconfiguration_mock_test.go index d252fdea..6a4f393f 100644 --- a/resources/glue-securityconfiguration_mock_test.go +++ b/resources/glue-securityconfiguration_mock_test.go @@ -11,7 +11,6 @@ import ( "github.com/aws/aws-sdk-go/service/glue" "github.com/ekristen/aws-nuke/v3/mocks/mock_glueiface" - "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) func Test_Mock_GlueSecurityConfiguration_Remove(t *testing.T) { @@ -53,7 +52,7 @@ func Test_Mock_GlueSecurityConfiguration_List(t *testing.T) { }, }, nil) - resources, err := resource.List(context.TODO(), &nuke.ListerOpts{}) + resources, err := resource.List(context.TODO(), testListerOpts) a.Nil(err) a.Len(resources, 1) a.Equal("foobar", *resources[0].(*GlueSecurityConfiguration).name) @@ -90,7 +89,7 @@ func Test_Mock_GlueSecurityConfiguration_ListNext(t *testing.T) { NextToken: &[]string{""}[0], // empty string to break the loop or nil }, nil) - resources, err := resource.List(context.TODO(), &nuke.ListerOpts{}) + resources, err := resource.List(context.TODO(), testListerOpts) a.Nil(err) a.Len(resources, 2) a.Equal("foobar1", *resources[0].(*GlueSecurityConfiguration).name) diff --git a/resources/iam-instance-profile-role_mock_test.go b/resources/iam-instance-profile-role_mock_test.go index 04d9b417..03403b3f 100644 --- a/resources/iam-instance-profile-role_mock_test.go +++ b/resources/iam-instance-profile-role_mock_test.go @@ -10,11 +10,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" - "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) func Test_Mock_IAMInstanceProfileRole_List(t *testing.T) { @@ -59,12 +57,7 @@ func Test_Mock_IAMInstanceProfileRole_List(t *testing.T) { mockSvc: mockIAM, } - resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ - Region: &nuke.Region{ - Name: "us-east-2", - }, - Session: session.Must(session.NewSession()), - }) + resources, err := lister.List(context.TODO(), testListerOpts) a.Nil(err) a.Len(resources, 1) } diff --git a/resources/iam-instance-profile_mock_test.go b/resources/iam-instance-profile_mock_test.go index 0df6f5cc..641a9789 100644 --- a/resources/iam-instance-profile_mock_test.go +++ b/resources/iam-instance-profile_mock_test.go @@ -10,11 +10,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" - "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) func Test_Mock_IAMInstanceProfile_List(t *testing.T) { @@ -69,12 +67,7 @@ func Test_Mock_IAMInstanceProfile_List(t *testing.T) { mockSvc: mockIAM, } - resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ - Region: &nuke.Region{ - Name: "us-east-2", - }, - Session: session.Must(session.NewSession()), - }) + resources, err := lister.List(context.TODO(), testListerOpts) a.Nil(err) a.Len(resources, 1) diff --git a/resources/iam-login-profile_mock_test.go b/resources/iam-login-profile_mock_test.go index de1061dc..23d27ea1 100644 --- a/resources/iam-login-profile_mock_test.go +++ b/resources/iam-login-profile_mock_test.go @@ -9,11 +9,9 @@ import ( "github.com/gotidy/ptr" "github.com/stretchr/testify/assert" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" - "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) func Test_Mock_IAMLoginProfile_List(t *testing.T) { @@ -48,12 +46,7 @@ func Test_Mock_IAMLoginProfile_List(t *testing.T) { mockSvc: mockIAM, } - resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ - Region: &nuke.Region{ - Name: "us-east-2", - }, - Session: session.Must(session.NewSession()), - }) + resources, err := lister.List(context.TODO(), testListerOpts) a.Nil(err) a.Len(resources, 1) } diff --git a/resources/iam-role_mock_test.go b/resources/iam-role_mock_test.go index 28660c51..59f3b511 100644 --- a/resources/iam-role_mock_test.go +++ b/resources/iam-role_mock_test.go @@ -10,13 +10,11 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" libsettings "github.com/ekristen/libnuke/pkg/settings" "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" - "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) func Test_Mock_IAMRole_List(t *testing.T) { @@ -55,12 +53,7 @@ func Test_Mock_IAMRole_List(t *testing.T) { mockSvc: mockIAM, } - resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ - Region: &nuke.Region{ - Name: "us-east-2", - }, - Session: session.Must(session.NewSession()), - }) + resources, err := lister.List(context.TODO(), testListerOpts) a.Nil(err) a.Len(resources, 1) diff --git a/resources/iam-user-mfa-device_mock_test.go b/resources/iam-user-mfa-device_mock_test.go index cd9f63a9..8f09ff97 100644 --- a/resources/iam-user-mfa-device_mock_test.go +++ b/resources/iam-user-mfa-device_mock_test.go @@ -9,11 +9,9 @@ import ( "github.com/gotidy/ptr" "github.com/stretchr/testify/assert" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" - "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) func Test_Mock_IAMUserMFADevice_List(t *testing.T) { @@ -50,12 +48,7 @@ func Test_Mock_IAMUserMFADevice_List(t *testing.T) { mockSvc: mockIAM, } - resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ - Region: &nuke.Region{ - Name: "us-east-2", - }, - Session: session.Must(session.NewSession()), - }) + resources, err := lister.List(context.TODO(), testListerOpts) a.NoError(err) a.Len(resources, 1) } diff --git a/resources/iam-user_mock_test.go b/resources/iam-user_mock_test.go index 6818b5ff..85294b08 100644 --- a/resources/iam-user_mock_test.go +++ b/resources/iam-user_mock_test.go @@ -9,11 +9,9 @@ import ( "github.com/gotidy/ptr" "github.com/stretchr/testify/assert" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" - "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) func Test_Mock_IAMUser_List(t *testing.T) { @@ -46,12 +44,7 @@ func Test_Mock_IAMUser_List(t *testing.T) { mockSvc: mockIAM, } - resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ - Region: &nuke.Region{ - Name: "us-east-2", - }, - Session: session.Must(session.NewSession()), - }) + resources, err := lister.List(context.TODO(), testListerOpts) a.NoError(err) a.Len(resources, 1) } diff --git a/resources/iam-virtual-mfa-device_mock_test.go b/resources/iam-virtual-mfa-device_mock_test.go index 880b51b6..6f952472 100644 --- a/resources/iam-virtual-mfa-device_mock_test.go +++ b/resources/iam-virtual-mfa-device_mock_test.go @@ -8,11 +8,9 @@ import ( "github.com/gotidy/ptr" "github.com/stretchr/testify/assert" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/iam" "github.com/ekristen/aws-nuke/v3/mocks/mock_iamiface" - "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) func Test_Mock_IAMVirtualMFADevice_List(t *testing.T) { @@ -50,12 +48,7 @@ func Test_Mock_IAMVirtualMFADevice_List(t *testing.T) { mockSvc: mockIAM, } - resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ - Region: &nuke.Region{ - Name: "us-east-2", - }, - Session: session.Must(session.NewSession()), - }) + resources, err := lister.List(context.TODO(), testListerOpts) a.Nil(err) a.Len(resources, 3) } diff --git a/resources/kms-alias_mock_test.go b/resources/kms-alias_mock_test.go index bcd43675..838b410b 100644 --- a/resources/kms-alias_mock_test.go +++ b/resources/kms-alias_mock_test.go @@ -10,11 +10,9 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/kms" "github.com/ekristen/aws-nuke/v3/mocks/mock_kmsiface" - "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) func Test_Mock_KMSAlias_List(t *testing.T) { @@ -40,12 +38,7 @@ func Test_Mock_KMSAlias_List(t *testing.T) { mockSvc: mockKMS, } - resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ - Region: &nuke.Region{ - Name: "us-east-2", - }, - Session: session.Must(session.NewSession()), - }) + resources, err := lister.List(context.TODO(), testListerOpts) a.NoError(err) a.Len(resources, 2) } @@ -65,12 +58,7 @@ func Test_Mock_KMSAlias_List_Error(t *testing.T) { mockSvc: mockKMS, } - resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ - Region: &nuke.Region{ - Name: "us-east-2", - }, - Session: session.Must(session.NewSession()), - }) + resources, err := lister.List(context.TODO(), testListerOpts) a.Error(err) a.Nil(resources) a.EqualError(err, "BadRequest: 400 Bad Request") diff --git a/resources/kms-key_mock_test.go b/resources/kms-key_mock_test.go index 75df5472..0d4c5df8 100644 --- a/resources/kms-key_mock_test.go +++ b/resources/kms-key_mock_test.go @@ -10,11 +10,9 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/kms" "github.com/ekristen/aws-nuke/v3/mocks/mock_kmsiface" - "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) func Test_Mock_KMSKey_List(t *testing.T) { @@ -62,12 +60,7 @@ func Test_Mock_KMSKey_List(t *testing.T) { mockSvc: mockKMS, } - resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ - Region: &nuke.Region{ - Name: "us-east-2", - }, - Session: session.Must(session.NewSession()), - }) + resources, err := lister.List(context.TODO(), testListerOpts) a.NoError(err) a.Len(resources, 1) } @@ -134,12 +127,7 @@ func Test_Mock_KMSKey_List_WithAccessDenied(t *testing.T) { mockSvc: mockKMS, } - resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ - Region: &nuke.Region{ - Name: "us-east-2", - }, - Session: session.Must(session.NewSession()), - }) + resources, err := lister.List(context.TODO(), testListerOpts) a.NoError(err) a.Len(resources, 1) } diff --git a/resources/opsworks-userprofiles.go b/resources/opsworks-userprofiles.go index 9af377a5..05996f6d 100644 --- a/resources/opsworks-userprofiles.go +++ b/resources/opsworks-userprofiles.go @@ -33,7 +33,6 @@ func (l *OpsWorksUserProfileLister) List(_ context.Context, o interface{}) ([]re resources := make([]resource.Resource, 0) // TODO: pass in account information via ListerOpts to avoid additional calls. - identityOutput, err := sts.New(opts.Session).GetCallerIdentity(nil) if err != nil { return nil, err diff --git a/resources/quicksight-subscriptions.go b/resources/quicksight-subscriptions.go index be8a614c..a729abed 100644 --- a/resources/quicksight-subscriptions.go +++ b/resources/quicksight-subscriptions.go @@ -7,9 +7,6 @@ import ( "github.com/aws/aws-sdk-go/service/quicksight" "github.com/aws/aws-sdk-go/service/quicksight/quicksightiface" - "github.com/aws/aws-sdk-go/service/sts" - "github.com/aws/aws-sdk-go/service/sts/stsiface" - "github.com/ekristen/aws-nuke/v3/pkg/nuke" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" @@ -29,7 +26,6 @@ func init() { } type QuickSightSubscriptionLister struct { - stsService stsiface.STSAPI quicksightService quicksightiface.QuickSightAPI } @@ -45,13 +41,7 @@ type QuickSightSubscription struct { func (l *QuickSightSubscriptionLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) - - var stsSvc stsiface.STSAPI - if l.stsService != nil { - stsSvc = l.stsService - } else { - stsSvc = sts.New(opts.Session) - } + var resources []resource.Resource var quicksightSvc quicksightiface.QuickSightAPI if l.quicksightService != nil { @@ -60,21 +50,12 @@ func (l *QuickSightSubscriptionLister) List(_ context.Context, o interface{}) ([ quicksightSvc = quicksight.New(opts.Session) } - callerID, err := stsSvc.GetCallerIdentity(&sts.GetCallerIdentityInput{}) - if err != nil { - return nil, err - } - accountID := callerID.Account - - var resources []resource.Resource - describeSubscriptionOutput, err := quicksightSvc.DescribeAccountSubscription(&quicksight.DescribeAccountSubscriptionInput{ - AwsAccountId: accountID, + AwsAccountId: opts.AccountID, }) - if err != nil { - var resoureceNotFoundException *quicksight.ResourceNotFoundException - if !errors.As(err, &resoureceNotFoundException) { + var notFoundException *quicksight.ResourceNotFoundException + if !errors.As(err, ¬FoundException) { return nil, err } return resources, nil @@ -88,7 +69,7 @@ func (l *QuickSightSubscriptionLister) List(_ context.Context, o interface{}) ([ resources = append(resources, &QuickSightSubscription{ svc: quicksightSvc, - accountID: accountID, + accountID: opts.AccountID, name: &subscriptionName, notificationEmail: describeSubscriptionOutput.AccountInfo.NotificationEmail, edition: describeSubscriptionOutput.AccountInfo.Edition, diff --git a/resources/quicksight-subscriptions_mock_test.go b/resources/quicksight-subscriptions_mock_test.go index 1644d837..59098979 100644 --- a/resources/quicksight-subscriptions_mock_test.go +++ b/resources/quicksight-subscriptions_mock_test.go @@ -1,6 +1,3 @@ -//go:generate ../mocks/generate_mocks.sh quicksight quicksightiface -//go:generate ../mocks/generate_mocks.sh sts stsiface - package resources import ( @@ -8,15 +5,15 @@ import ( "errors" "testing" + "github.com/golang/mock/gomock" + "github.com/stretchr/testify/assert" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/quicksight" - "github.com/aws/aws-sdk-go/service/sts" - "github.com/ekristen/aws-nuke/v3/mocks/mock_quicksightiface" - "github.com/ekristen/aws-nuke/v3/mocks/mock_stsiface" - "github.com/ekristen/aws-nuke/v3/pkg/nuke" + libsettings "github.com/ekristen/libnuke/pkg/settings" - "github.com/golang/mock/gomock" - "github.com/stretchr/testify/assert" + + "github.com/ekristen/aws-nuke/v3/mocks/mock_quicksightiface" ) func Test_Mock_QuicksightSubscription_List_ValidSubscription(t *testing.T) { @@ -24,7 +21,7 @@ func Test_Mock_QuicksightSubscription_List_ValidSubscription(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() - accountID := "123456789012" + accountID := "012345678901" quickSightAccountInfo := quicksight.AccountInfo{ AccountName: aws.String("AccountName"), NotificationEmail: aws.String("notification@email.com"), @@ -32,11 +29,6 @@ func Test_Mock_QuicksightSubscription_List_ValidSubscription(t *testing.T) { AccountSubscriptionStatus: aws.String("ACCOUNT_CREATED"), } mockQuickSightAPI := mock_quicksightiface.NewMockQuickSightAPI(ctrl) - mockSTSAPI := mock_stsiface.NewMockSTSAPI(ctrl) - - mockSTSAPI.EXPECT().GetCallerIdentity(&sts.GetCallerIdentityInput{}).Return(&sts.GetCallerIdentityOutput{ - Account: &accountID, - }, nil) mockQuickSightAPI.EXPECT().DescribeAccountSubscription(&quicksight.DescribeAccountSubscriptionInput{ AwsAccountId: &accountID, @@ -46,10 +38,9 @@ func Test_Mock_QuicksightSubscription_List_ValidSubscription(t *testing.T) { quicksightSubscriptionListener := QuickSightSubscriptionLister{ quicksightService: mockQuickSightAPI, - stsService: mockSTSAPI, } - resources, err := quicksightSubscriptionListener.List(context.TODO(), &nuke.ListerOpts{}) + resources, err := quicksightSubscriptionListener.List(context.TODO(), testListerOpts) assertions.Nil(err) resource := resources[0].(*QuickSightSubscription) @@ -65,17 +56,12 @@ func Test_Mock_QuicksightSubscription_List_SubscriptionNotFound(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() - accountID := "123456789012" + accountID := "012345678901" quickSightSubscriptionNotFoundError := &quicksight.ResourceNotFoundException{ Message_: aws.String("Resource not found"), } mockQuickSightAPI := mock_quicksightiface.NewMockQuickSightAPI(ctrl) - mockSTSAPI := mock_stsiface.NewMockSTSAPI(ctrl) - - mockSTSAPI.EXPECT().GetCallerIdentity(&sts.GetCallerIdentityInput{}).Return(&sts.GetCallerIdentityOutput{ - Account: &accountID, - }, nil) mockQuickSightAPI.EXPECT().DescribeAccountSubscription(&quicksight.DescribeAccountSubscriptionInput{ AwsAccountId: &accountID, @@ -83,47 +69,21 @@ func Test_Mock_QuicksightSubscription_List_SubscriptionNotFound(t *testing.T) { quicksightSubscriptionListener := QuickSightSubscriptionLister{ quicksightService: mockQuickSightAPI, - stsService: mockSTSAPI, } - resources, err := quicksightSubscriptionListener.List(context.TODO(), &nuke.ListerOpts{}) + resources, err := quicksightSubscriptionListener.List(context.TODO(), testListerOpts) assertions.Nil(err) assertions.Equal(0, len(resources)) } -func Test_Mock_QuicksightSubscription_List_ErrorOnSTS(t *testing.T) { - assertions := assert.New(t) - ctrl := gomock.NewController(t) - defer ctrl.Finish() - - mockQuickSightAPI := mock_quicksightiface.NewMockQuickSightAPI(ctrl) - mockSTSAPI := mock_stsiface.NewMockSTSAPI(ctrl) - - mockSTSAPI.EXPECT().GetCallerIdentity(&sts.GetCallerIdentityInput{}).Return(nil, errors.New("MOCK_ERROR")) - - quicksightSubscriptionListener := QuickSightSubscriptionLister{ - quicksightService: mockQuickSightAPI, - stsService: mockSTSAPI, - } - - resources, err := quicksightSubscriptionListener.List(context.TODO(), &nuke.ListerOpts{}) - assertions.EqualError(err, "MOCK_ERROR") - assertions.Nil(resources) -} - func Test_Mock_QuicksightSubscription_List_ErrorOnQuicksight(t *testing.T) { assertions := assert.New(t) ctrl := gomock.NewController(t) defer ctrl.Finish() - accountID := "123456789012" + accountID := "012345678901" mockQuickSightAPI := mock_quicksightiface.NewMockQuickSightAPI(ctrl) - mockSTSAPI := mock_stsiface.NewMockSTSAPI(ctrl) - - mockSTSAPI.EXPECT().GetCallerIdentity(&sts.GetCallerIdentityInput{}).Return(&sts.GetCallerIdentityOutput{ - Account: &accountID, - }, nil) mockQuickSightAPI.EXPECT().DescribeAccountSubscription(&quicksight.DescribeAccountSubscriptionInput{ AwsAccountId: &accountID, @@ -131,10 +91,9 @@ func Test_Mock_QuicksightSubscription_List_ErrorOnQuicksight(t *testing.T) { quicksightSubscriptionListener := QuickSightSubscriptionLister{ quicksightService: mockQuickSightAPI, - stsService: mockSTSAPI, } - resources, err := quicksightSubscriptionListener.List(context.TODO(), &nuke.ListerOpts{}) + resources, err := quicksightSubscriptionListener.List(context.TODO(), testListerOpts) assertions.EqualError(err, "MOCK_ERROR") assertions.Nil(resources) } @@ -144,7 +103,7 @@ func Test_Mock_QuicksightSubscription_Remove_No_Settings(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() - accountID := "123456789012" + accountID := "012345678901" subscriptionName := aws.String("Name") subscriptionDefaultNamespace := aws.String("Default") subscriptionNotificationEmail := aws.String("notification@email.com") @@ -193,7 +152,7 @@ func Test_Mock_QuicksightSubscription_Remove_TerminationSetting_Is_False(t *test ctrl := gomock.NewController(t) defer ctrl.Finish() - accountID := "123456789012" + accountID := "012345678901" subscriptionName := aws.String("Name") subscriptionDefaultNamespace := aws.String("Default") subscriptionNotificationEmail := aws.String("notification@email.com") @@ -245,7 +204,7 @@ func Test_Mock_QuicksightSubscription_Remove_TerminationSetting_Is_True(t *testi ctrl := gomock.NewController(t) defer ctrl.Finish() - accountID := "123456789012" + accountID := "012345678901" subscriptionName := aws.String("Name") subscriptionDefaultNamespace := aws.String("Default") subscriptionNotificationEmail := aws.String("notification@email.com") @@ -295,7 +254,7 @@ func Test_Mock_QuicksightSubscription_Remove_TerminationSetting_Is_True(t *testi func Test_Mock_QuicksightSubscription_Filter(t *testing.T) { assertions := assert.New(t) - accountID := "123456789012" + accountID := "012345678901" subscriptionName := aws.String("Name") subscriptionNotificationEmail := aws.String("notification@email.com") subscriptionEdition := aws.String("Edition") @@ -317,7 +276,7 @@ func Test_Mock_QuicksightSubscription_Filter(t *testing.T) { func Test_Mock_QuicksightSubscription_Filter_Status(t *testing.T) { assertions := assert.New(t) - accountID := "123456789012" + accountID := "012345678901" subscriptionName := aws.String("Name") subscriptionNotificationEmail := aws.String("notification@email.com") subscriptionEdition := aws.String("Edition") @@ -339,7 +298,7 @@ func Test_Mock_QuicksightSubscription_Filter_Status(t *testing.T) { func Test_Mock_QuicksightSubscription_Filter_Name(t *testing.T) { assertions := assert.New(t) - accountID := "123456789012" + accountID := "012345678901" subscriptionName := aws.String("NOT_AVAILABLE") subscriptionNotificationEmail := aws.String("notification@email.com") subscriptionEdition := aws.String("Edition") diff --git a/resources/quicksight-user.go b/resources/quicksight-user.go index 59205f6b..2022044b 100644 --- a/resources/quicksight-user.go +++ b/resources/quicksight-user.go @@ -7,9 +7,6 @@ import ( "github.com/aws/aws-sdk-go/service/quicksight" "github.com/aws/aws-sdk-go/service/quicksight/quicksightiface" - "github.com/aws/aws-sdk-go/service/sts" - "github.com/aws/aws-sdk-go/service/sts/stsiface" - "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -28,7 +25,6 @@ func init() { } type QuickSightUserLister struct { - stsService stsiface.STSAPI quicksightService quicksightiface.QuickSightAPI } @@ -36,13 +32,6 @@ func (l *QuickSightUserLister) List(_ context.Context, o interface{}) ([]resourc opts := o.(*nuke.ListerOpts) var resources []resource.Resource - var stsSvc stsiface.STSAPI - if l.stsService != nil { - stsSvc = l.stsService - } else { - stsSvc = sts.New(opts.Session) - } - var quicksightSvc quicksightiface.QuickSightAPI if l.quicksightService != nil { quicksightSvc = l.quicksightService @@ -50,23 +39,17 @@ func (l *QuickSightUserLister) List(_ context.Context, o interface{}) ([]resourc quicksightSvc = quicksight.New(opts.Session) } - callerID, err := stsSvc.GetCallerIdentity(&sts.GetCallerIdentityInput{}) - if err != nil { - return nil, err - } - accountID := callerID.Account - // TODO: support all namespaces namespace := ptr.String("default") - err = quicksightSvc.ListUsersPages(&quicksight.ListUsersInput{ - AwsAccountId: accountID, + err := quicksightSvc.ListUsersPages(&quicksight.ListUsersInput{ + AwsAccountId: opts.AccountID, Namespace: namespace, }, func(output *quicksight.ListUsersOutput, lastPage bool) bool { for _, user := range output.UserList { resources = append(resources, &QuickSightUser{ svc: quicksightSvc, - accountID: accountID, + accountID: opts.AccountID, PrincipalID: user.PrincipalId, UserName: user.UserName, Active: user.Active, diff --git a/resources/quicksight_mock_test.go b/resources/quicksight_mock_test.go new file mode 100644 index 00000000..0cafdc1f --- /dev/null +++ b/resources/quicksight_mock_test.go @@ -0,0 +1,5 @@ +//go:generate ../mocks/generate_mocks.sh quicksight quicksightiface + +package resources + +// Note: this file is empty on purpose diff --git a/resources/route53-resolver-rule_mock_test.go b/resources/route53-resolver-rule_mock_test.go index 6c5e1212..6c00ea79 100644 --- a/resources/route53-resolver-rule_mock_test.go +++ b/resources/route53-resolver-rule_mock_test.go @@ -10,13 +10,11 @@ import ( "github.com/stretchr/testify/assert" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/route53resolver" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/v3/mocks/mock_route53resolveriface" - "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) func Test_Mock_Route53ResolverRule_List(t *testing.T) { @@ -67,12 +65,7 @@ func Test_Mock_Route53ResolverRule_List(t *testing.T) { mockSvc: mockRoute53Resolver, } - resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ - Region: &nuke.Region{ - Name: "us-east-2", - }, - Session: session.Must(session.NewSession()), - }) + resources, err := lister.List(context.TODO(), testListerOpts) a.Nil(err) a.Len(resources, 3) diff --git a/resources/s3-access-points.go b/resources/s3-access-points.go index 54009ac0..4862c11e 100644 --- a/resources/s3-access-points.go +++ b/resources/s3-access-points.go @@ -7,7 +7,6 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/s3control" - "github.com/aws/aws-sdk-go/service/sts" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" @@ -30,18 +29,13 @@ type S3AccessPointLister struct{} func (l *S3AccessPointLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { opts := o.(*nuke.ListerOpts) - stsSvc := sts.New(opts.Session) - callerID, err := stsSvc.GetCallerIdentity(&sts.GetCallerIdentityInput{}) - if err != nil { - return nil, err - } - accountID := callerID.Account - var resources []resource.Resource + svc := s3control.New(opts.Session) + for { params := &s3control.ListAccessPointsInput{ - AccountId: accountID, + AccountId: opts.AccountID, } resp, err := svc.ListAccessPoints(params) @@ -52,7 +46,7 @@ func (l *S3AccessPointLister) List(_ context.Context, o interface{}) ([]resource for _, accessPoint := range resp.AccessPointList { resources = append(resources, &S3AccessPoint{ svc: svc, - accountID: accountID, + accountID: opts.AccountID, accessPoint: accessPoint, }) } diff --git a/resources/sagemaker-domain_test.go b/resources/sagemaker-domain_test.go index ef41badf..33e12e97 100644 --- a/resources/sagemaker-domain_test.go +++ b/resources/sagemaker-domain_test.go @@ -14,7 +14,6 @@ import ( "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/aws-nuke/v3/mocks/mock_sagemakeriface" - "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) // TestSageMakerDomain_List is a unit test function to test the list of SageMakerDomain via mocked interface @@ -62,7 +61,7 @@ func TestSageMakerDomain_List(t *testing.T) { }, }, nil) - resources, err := sagemakerDomainLister.List(context.TODO(), &nuke.ListerOpts{}) + resources, err := sagemakerDomainLister.List(context.TODO(), testListerOpts) a.NoError(err) a.Len(resources, 1) a.Equal([]resource.Resource{&sagemakerDomain}, resources) diff --git a/resources/sagemaker-userprofiles_mock_test.go b/resources/sagemaker-userprofiles_mock_test.go index afa55942..a820bab1 100644 --- a/resources/sagemaker-userprofiles_mock_test.go +++ b/resources/sagemaker-userprofiles_mock_test.go @@ -11,8 +11,6 @@ import ( "github.com/aws/aws-sdk-go/service/sagemaker" - "github.com/ekristen/aws-nuke/v3/pkg/nuke" - "github.com/ekristen/aws-nuke/v3/mocks/mock_sagemakeriface" ) @@ -57,7 +55,7 @@ func Test_Mock_SageMakerUserProfiles_List(t *testing.T) { }, }, nil) - resources, err := resource.List(context.TODO(), &nuke.ListerOpts{}) + resources, err := resource.List(context.TODO(), testListerOpts) a.Nil(err) a.Len(resources, 1) diff --git a/resources/secretsmanager-secret_mock_test.go b/resources/secretsmanager-secret_mock_test.go index 81ce13ea..f2efa25e 100644 --- a/resources/secretsmanager-secret_mock_test.go +++ b/resources/secretsmanager-secret_mock_test.go @@ -8,12 +8,9 @@ import ( "github.com/gotidy/ptr" "github.com/stretchr/testify/assert" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/secretsmanager" "github.com/ekristen/aws-nuke/v3/mocks/mock_secretsmanageriface" - "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) func Test_Mock_SecretsManager_List(t *testing.T) { @@ -47,12 +44,7 @@ func Test_Mock_SecretsManager_List(t *testing.T) { }, }, nil) - resources, err := lister.List(context.TODO(), &nuke.ListerOpts{ - Region: &nuke.Region{ - Name: "us-east-2", - }, - Session: session.Must(session.NewSession(&aws.Config{})), - }) + resources, err := lister.List(context.TODO(), testListerOpts) a.Nil(err) a.Len(resources, 2) diff --git a/resources/servicediscovery-namespaces_mock_test.go b/resources/servicediscovery-namespaces_mock_test.go index 7d8b13a6..64aff6f4 100644 --- a/resources/servicediscovery-namespaces_mock_test.go +++ b/resources/servicediscovery-namespaces_mock_test.go @@ -12,8 +12,6 @@ import ( "github.com/aws/aws-sdk-go/service/servicediscovery" "github.com/ekristen/aws-nuke/v3/mocks/mock_servicediscoveryiface" - - "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) func Test_Mock_ServiceDiscoveryNamespace_List(t *testing.T) { @@ -47,7 +45,7 @@ func Test_Mock_ServiceDiscoveryNamespace_List(t *testing.T) { }, }, nil) - resources, err := resource.List(context.TODO(), &nuke.ListerOpts{}) + resources, err := resource.List(context.TODO(), testListerOpts) a.Nil(err) a.Len(resources, 1) } @@ -76,7 +74,7 @@ func Test_Mock_ServiceDiscoveryNamespace_List_NoTags(t *testing.T) { ResourceARN: ptr.String("arn:aws:servicediscovery:us-west-2:123456789012:namespace/id"), })).Return(&servicediscovery.ListTagsForResourceOutput{}, nil) - resources, err := resource.List(context.TODO(), &nuke.ListerOpts{}) + resources, err := resource.List(context.TODO(), testListerOpts) a.Nil(err) a.Len(resources, 1) } @@ -105,7 +103,7 @@ func Test_Mock_ServiceDiscoveryNamespace_List_TagError(t *testing.T) { ResourceARN: ptr.String("arn:aws:servicediscovery:us-west-2:123456789012:namespace/id"), })).Return(&servicediscovery.ListTagsForResourceOutput{}, fmt.Errorf("error")) - resources, err := resource.List(context.TODO(), &nuke.ListerOpts{}) + resources, err := resource.List(context.TODO(), testListerOpts) a.Nil(err) a.Len(resources, 1) diff --git a/resources/sqs-queues_mock_test.go b/resources/sqs-queues_mock_test.go index dc0372a9..213e100b 100644 --- a/resources/sqs-queues_mock_test.go +++ b/resources/sqs-queues_mock_test.go @@ -11,8 +11,6 @@ import ( "github.com/aws/aws-sdk-go/service/sqs" "github.com/ekristen/aws-nuke/v3/mocks/mock_sqsiface" - - "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) func Test_Mock_SQSQueues_List(t *testing.T) { @@ -38,7 +36,7 @@ func Test_Mock_SQSQueues_List(t *testing.T) { }, }, nil) - resources, err := sqsQueueLister.List(context.TODO(), &nuke.ListerOpts{}) + resources, err := sqsQueueLister.List(context.TODO(), testListerOpts) a.Nil(err) a.Len(resources, 1) diff --git a/resources/testsuite_test.go b/resources/testsuite_test.go new file mode 100644 index 00000000..57519e3d --- /dev/null +++ b/resources/testsuite_test.go @@ -0,0 +1,17 @@ +package resources + +import ( + "github.com/gotidy/ptr" + + "github.com/aws/aws-sdk-go/aws/session" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +var testListerOpts = &nuke.ListerOpts{ + Region: &nuke.Region{ + Name: "us-east-2", + }, + Session: session.Must(session.NewSession()), + AccountID: ptr.String("012345678901"), +} From 3aab5c9b510def2fd756f45911cf16cf6cf6fde1 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 1 Oct 2024 17:19:13 -0600 Subject: [PATCH 570/617] chore(quicksight-subscription): fix string occurrence lint violation --- .../quicksight-subscriptions_mock_test.go | 54 +++++++++---------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/resources/quicksight-subscriptions_mock_test.go b/resources/quicksight-subscriptions_mock_test.go index 59098979..f029640b 100644 --- a/resources/quicksight-subscriptions_mock_test.go +++ b/resources/quicksight-subscriptions_mock_test.go @@ -21,7 +21,7 @@ func Test_Mock_QuicksightSubscription_List_ValidSubscription(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() - accountID := "012345678901" + accountID := testListerOpts.AccountID quickSightAccountInfo := quicksight.AccountInfo{ AccountName: aws.String("AccountName"), NotificationEmail: aws.String("notification@email.com"), @@ -31,7 +31,7 @@ func Test_Mock_QuicksightSubscription_List_ValidSubscription(t *testing.T) { mockQuickSightAPI := mock_quicksightiface.NewMockQuickSightAPI(ctrl) mockQuickSightAPI.EXPECT().DescribeAccountSubscription(&quicksight.DescribeAccountSubscriptionInput{ - AwsAccountId: &accountID, + AwsAccountId: accountID, }).Return(&quicksight.DescribeAccountSubscriptionOutput{ AccountInfo: &quickSightAccountInfo, }, nil) @@ -56,7 +56,7 @@ func Test_Mock_QuicksightSubscription_List_SubscriptionNotFound(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() - accountID := "012345678901" + accountID := testListerOpts.AccountID quickSightSubscriptionNotFoundError := &quicksight.ResourceNotFoundException{ Message_: aws.String("Resource not found"), } @@ -64,7 +64,7 @@ func Test_Mock_QuicksightSubscription_List_SubscriptionNotFound(t *testing.T) { mockQuickSightAPI := mock_quicksightiface.NewMockQuickSightAPI(ctrl) mockQuickSightAPI.EXPECT().DescribeAccountSubscription(&quicksight.DescribeAccountSubscriptionInput{ - AwsAccountId: &accountID, + AwsAccountId: accountID, }).Return(nil, quickSightSubscriptionNotFoundError) quicksightSubscriptionListener := QuickSightSubscriptionLister{ @@ -81,12 +81,12 @@ func Test_Mock_QuicksightSubscription_List_ErrorOnQuicksight(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() - accountID := "012345678901" + accountID := testListerOpts.AccountID mockQuickSightAPI := mock_quicksightiface.NewMockQuickSightAPI(ctrl) mockQuickSightAPI.EXPECT().DescribeAccountSubscription(&quicksight.DescribeAccountSubscriptionInput{ - AwsAccountId: &accountID, + AwsAccountId: accountID, }).Return(nil, errors.New("MOCK_ERROR")) quicksightSubscriptionListener := QuickSightSubscriptionLister{ @@ -103,7 +103,7 @@ func Test_Mock_QuicksightSubscription_Remove_No_Settings(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() - accountID := "012345678901" + accountID := testListerOpts.AccountID subscriptionName := aws.String("Name") subscriptionDefaultNamespace := aws.String("Default") subscriptionNotificationEmail := aws.String("notification@email.com") @@ -113,7 +113,7 @@ func Test_Mock_QuicksightSubscription_Remove_No_Settings(t *testing.T) { mockQuickSightAPI := mock_quicksightiface.NewMockQuickSightAPI(ctrl) mockQuickSightAPI.EXPECT().DescribeAccountSettings(&quicksight.DescribeAccountSettingsInput{ - AwsAccountId: &accountID, + AwsAccountId: accountID, }).Return(&quicksight.DescribeAccountSettingsOutput{ AccountSettings: &quicksight.AccountSettings{ DefaultNamespace: subscriptionDefaultNamespace, @@ -123,19 +123,19 @@ func Test_Mock_QuicksightSubscription_Remove_No_Settings(t *testing.T) { }, nil).Times(0) mockQuickSightAPI.EXPECT().UpdateAccountSettings(&quicksight.UpdateAccountSettingsInput{ - AwsAccountId: &accountID, + AwsAccountId: accountID, DefaultNamespace: subscriptionDefaultNamespace, NotificationEmail: subscriptionNotificationEmail, TerminationProtectionEnabled: aws.Bool(false), }).Return(&quicksight.UpdateAccountSettingsOutput{}, nil).Times(0) mockQuickSightAPI.EXPECT().DeleteAccountSubscription(&quicksight.DeleteAccountSubscriptionInput{ - AwsAccountId: &accountID, + AwsAccountId: accountID, }).Return(&quicksight.DeleteAccountSubscriptionOutput{}, nil).Times(1) quicksightSubscription := QuickSightSubscription{ svc: mockQuickSightAPI, - accountID: &accountID, + accountID: accountID, name: subscriptionName, notificationEmail: subscriptionNotificationEmail, edition: subscriptionEdition, @@ -152,7 +152,7 @@ func Test_Mock_QuicksightSubscription_Remove_TerminationSetting_Is_False(t *test ctrl := gomock.NewController(t) defer ctrl.Finish() - accountID := "012345678901" + accountID := testListerOpts.AccountID subscriptionName := aws.String("Name") subscriptionDefaultNamespace := aws.String("Default") subscriptionNotificationEmail := aws.String("notification@email.com") @@ -164,7 +164,7 @@ func Test_Mock_QuicksightSubscription_Remove_TerminationSetting_Is_False(t *test mockQuickSightAPI := mock_quicksightiface.NewMockQuickSightAPI(ctrl) mockQuickSightAPI.EXPECT().DescribeAccountSettings(&quicksight.DescribeAccountSettingsInput{ - AwsAccountId: &accountID, + AwsAccountId: accountID, }).Return(&quicksight.DescribeAccountSettingsOutput{ AccountSettings: &quicksight.AccountSettings{ DefaultNamespace: subscriptionDefaultNamespace, @@ -174,19 +174,19 @@ func Test_Mock_QuicksightSubscription_Remove_TerminationSetting_Is_False(t *test }, nil).Times(0) mockQuickSightAPI.EXPECT().UpdateAccountSettings(&quicksight.UpdateAccountSettingsInput{ - AwsAccountId: &accountID, + AwsAccountId: accountID, DefaultNamespace: subscriptionDefaultNamespace, NotificationEmail: subscriptionNotificationEmail, TerminationProtectionEnabled: aws.Bool(false), }).Return(&quicksight.UpdateAccountSettingsOutput{}, nil).Times(0) mockQuickSightAPI.EXPECT().DeleteAccountSubscription(&quicksight.DeleteAccountSubscriptionInput{ - AwsAccountId: &accountID, + AwsAccountId: accountID, }).Return(&quicksight.DeleteAccountSubscriptionOutput{}, nil).Times(1) quicksightSubscription := QuickSightSubscription{ svc: mockQuickSightAPI, - accountID: &accountID, + accountID: accountID, name: subscriptionName, notificationEmail: subscriptionNotificationEmail, edition: subscriptionEdition, @@ -204,7 +204,7 @@ func Test_Mock_QuicksightSubscription_Remove_TerminationSetting_Is_True(t *testi ctrl := gomock.NewController(t) defer ctrl.Finish() - accountID := "012345678901" + accountID := testListerOpts.AccountID subscriptionName := aws.String("Name") subscriptionDefaultNamespace := aws.String("Default") subscriptionNotificationEmail := aws.String("notification@email.com") @@ -216,7 +216,7 @@ func Test_Mock_QuicksightSubscription_Remove_TerminationSetting_Is_True(t *testi mockQuickSightAPI := mock_quicksightiface.NewMockQuickSightAPI(ctrl) mockQuickSightAPI.EXPECT().DescribeAccountSettings(&quicksight.DescribeAccountSettingsInput{ - AwsAccountId: &accountID, + AwsAccountId: accountID, }).Return(&quicksight.DescribeAccountSettingsOutput{ AccountSettings: &quicksight.AccountSettings{ DefaultNamespace: subscriptionDefaultNamespace, @@ -226,19 +226,19 @@ func Test_Mock_QuicksightSubscription_Remove_TerminationSetting_Is_True(t *testi }, nil).Times(1) mockQuickSightAPI.EXPECT().UpdateAccountSettings(&quicksight.UpdateAccountSettingsInput{ - AwsAccountId: &accountID, + AwsAccountId: accountID, DefaultNamespace: subscriptionDefaultNamespace, NotificationEmail: subscriptionNotificationEmail, TerminationProtectionEnabled: aws.Bool(false), }).Return(&quicksight.UpdateAccountSettingsOutput{}, nil).Times(1) mockQuickSightAPI.EXPECT().DeleteAccountSubscription(&quicksight.DeleteAccountSubscriptionInput{ - AwsAccountId: &accountID, + AwsAccountId: accountID, }).Return(&quicksight.DeleteAccountSubscriptionOutput{}, nil).Times(1) quicksightSubscription := QuickSightSubscription{ svc: mockQuickSightAPI, - accountID: &accountID, + accountID: accountID, name: subscriptionName, notificationEmail: subscriptionNotificationEmail, edition: subscriptionEdition, @@ -254,14 +254,14 @@ func Test_Mock_QuicksightSubscription_Remove_TerminationSetting_Is_True(t *testi func Test_Mock_QuicksightSubscription_Filter(t *testing.T) { assertions := assert.New(t) - accountID := "012345678901" + accountID := testListerOpts.AccountID subscriptionName := aws.String("Name") subscriptionNotificationEmail := aws.String("notification@email.com") subscriptionEdition := aws.String("Edition") subscriptionStatus := aws.String("ACCOUNT_CREATED") quicksightSubscription := QuickSightSubscription{ - accountID: &accountID, + accountID: accountID, name: subscriptionName, notificationEmail: subscriptionNotificationEmail, edition: subscriptionEdition, @@ -276,14 +276,14 @@ func Test_Mock_QuicksightSubscription_Filter(t *testing.T) { func Test_Mock_QuicksightSubscription_Filter_Status(t *testing.T) { assertions := assert.New(t) - accountID := "012345678901" + accountID := testListerOpts.AccountID subscriptionName := aws.String("Name") subscriptionNotificationEmail := aws.String("notification@email.com") subscriptionEdition := aws.String("Edition") subscriptionStatus := aws.String("UNSUBSCRIBED") quicksightSubscription := QuickSightSubscription{ - accountID: &accountID, + accountID: accountID, name: subscriptionName, notificationEmail: subscriptionNotificationEmail, edition: subscriptionEdition, @@ -298,14 +298,14 @@ func Test_Mock_QuicksightSubscription_Filter_Status(t *testing.T) { func Test_Mock_QuicksightSubscription_Filter_Name(t *testing.T) { assertions := assert.New(t) - accountID := "012345678901" + accountID := testListerOpts.AccountID subscriptionName := aws.String("NOT_AVAILABLE") subscriptionNotificationEmail := aws.String("notification@email.com") subscriptionEdition := aws.String("Edition") subscriptionStatus := aws.String("ACCOUNT_CREATED") quicksightSubscription := QuickSightSubscription{ - accountID: &accountID, + accountID: accountID, name: subscriptionName, notificationEmail: subscriptionNotificationEmail, edition: subscriptionEdition, From 76f0f26701128eb070993a43a833476b395442c1 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 1 Oct 2024 17:21:40 -0600 Subject: [PATCH 571/617] test(quicksight-subscription): fix a failing test due to pointer change --- resources/quicksight-subscriptions_mock_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/quicksight-subscriptions_mock_test.go b/resources/quicksight-subscriptions_mock_test.go index f029640b..39b4d763 100644 --- a/resources/quicksight-subscriptions_mock_test.go +++ b/resources/quicksight-subscriptions_mock_test.go @@ -44,7 +44,7 @@ func Test_Mock_QuicksightSubscription_List_ValidSubscription(t *testing.T) { assertions.Nil(err) resource := resources[0].(*QuickSightSubscription) - assertions.Equal(*resource.accountID, accountID) + assertions.Equal(resource.accountID, accountID) assertions.Equal(resource.edition, quickSightAccountInfo.Edition) assertions.Equal(resource.name, quickSightAccountInfo.AccountName) assertions.Equal(resource.notificationEmail, quickSightAccountInfo.NotificationEmail) From 166c4a8b32c7818b71943ae9434fffa7fcde14f1 Mon Sep 17 00:00:00 2001 From: Dan Arbaugh Date: Fri, 1 Sep 2023 15:37:43 +0000 Subject: [PATCH 572/617] feat(resource): add TranscribeCallAnalyticsCategory resource --- .../transcribe-call-analytics-categories.go | 77 +++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 resources/transcribe-call-analytics-categories.go diff --git a/resources/transcribe-call-analytics-categories.go b/resources/transcribe-call-analytics-categories.go new file mode 100644 index 00000000..892b27d3 --- /dev/null +++ b/resources/transcribe-call-analytics-categories.go @@ -0,0 +1,77 @@ +package resources + +import ( + "time" + + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/transcribeservice" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type TranscribeCallAnalyticsCategory struct { + svc *transcribeservice.TranscribeService + name *string + inputType *string + createTime *time.Time + lastUpdateTime *time.Time +} + +func init() { + register("TranscribeCallAnalyticsCategory", ListTranscribeCallAnalyticsCategories) +} + +func ListTranscribeCallAnalyticsCategories(sess *session.Session) ([]Resource, error) { + svc := transcribeservice.New(sess) + resources := []Resource{} + var nextToken *string + + for { + listCallAnalyticsCategoriesInput := &transcribeservice.ListCallAnalyticsCategoriesInput{ + NextToken: nextToken, + } + + listOutput, err := svc.ListCallAnalyticsCategories(listCallAnalyticsCategoriesInput) + if err != nil { + return nil, err + } + for _, category := range listOutput.Categories { + resources = append(resources, &TranscribeCallAnalyticsCategory{ + svc: svc, + name: category.CategoryName, + inputType: category.InputType, + createTime: category.CreateTime, + lastUpdateTime: category.LastUpdateTime, + }) + } + + // Check if there are more results + if listOutput.NextToken == nil { + break // No more results, exit the loop + } + + // Set the nextToken for the next iteration + nextToken = listOutput.NextToken + } + return resources, nil +} + +func (category *TranscribeCallAnalyticsCategory) Remove() error { + deleteInput := &transcribeservice.DeleteCallAnalyticsCategoryInput{ + CategoryName: category.name, + } + _, err := category.svc.DeleteCallAnalyticsCategory(deleteInput) + return err +} + +func (category *TranscribeCallAnalyticsCategory) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("Name", category.name) + properties.Set("InputType", category.inputType) + if category.createTime != nil { + properties.Set("CreateTime", category.createTime.Format(time.RFC3339)) + } + if category.lastUpdateTime != nil { + properties.Set("LastUpdateTime", category.lastUpdateTime.Format(time.RFC3339)) + } + return properties +} From cce91f89866f6ed7548180f5e3dc83ab345f5dd3 Mon Sep 17 00:00:00 2001 From: Dan Arbaugh Date: Fri, 1 Sep 2023 15:37:55 +0000 Subject: [PATCH 573/617] feat(resource): add TranscribeCallAnalyticsJob resource --- resources/transcribe-call-analytics-jobs.go | 90 +++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 resources/transcribe-call-analytics-jobs.go diff --git a/resources/transcribe-call-analytics-jobs.go b/resources/transcribe-call-analytics-jobs.go new file mode 100644 index 00000000..edc5e695 --- /dev/null +++ b/resources/transcribe-call-analytics-jobs.go @@ -0,0 +1,90 @@ +package resources + +import ( + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/transcribeservice" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type TranscribeCallAnalyticsJob struct { + svc *transcribeservice.TranscribeService + name *string + status *string + completionTime *time.Time + creationTime *time.Time + failureReason *string + languageCode *string + startTime *time.Time +} + +func init() { + register("TranscribeCallAnalyticsJob", ListTranscribeCallAnalyticsJobs) +} + +func ListTranscribeCallAnalyticsJobs(sess *session.Session) ([]Resource, error) { + svc := transcribeservice.New(sess) + resources := []Resource{} + var nextToken *string + + for { + listCallAnalyticsJobsInput := &transcribeservice.ListCallAnalyticsJobsInput{ + MaxResults: aws.Int64(100), + NextToken: nextToken, + } + + listOutput, err := svc.ListCallAnalyticsJobs(listCallAnalyticsJobsInput) + if err != nil { + return nil, err + } + for _, job := range listOutput.CallAnalyticsJobSummaries { + resources = append(resources, &TranscribeCallAnalyticsJob{ + svc: svc, + name: job.CallAnalyticsJobName, + status: job.CallAnalyticsJobStatus, + completionTime: job.CompletionTime, + creationTime: job.CreationTime, + failureReason: job.FailureReason, + languageCode: job.LanguageCode, + startTime: job.StartTime, + }) + } + + // Check if there are more results + if listOutput.NextToken == nil { + break // No more results, exit the loop + } + + // Set the nextToken for the next iteration + nextToken = listOutput.NextToken + } + return resources, nil +} + +func (job *TranscribeCallAnalyticsJob) Remove() error { + deleteInput := &transcribeservice.DeleteCallAnalyticsJobInput{ + CallAnalyticsJobName: job.name, + } + _, err := job.svc.DeleteCallAnalyticsJob(deleteInput) + return err +} + +func (job *TranscribeCallAnalyticsJob) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("Name", job.name) + properties.Set("Status", job.status) + if job.completionTime != nil { + properties.Set("CompletionTime", job.completionTime.Format(time.RFC3339)) + } + if job.creationTime != nil { + properties.Set("CreationTime", job.creationTime.Format(time.RFC3339)) + } + properties.Set("FailureReason", job.failureReason) + properties.Set("LanguageCode", job.languageCode) + if job.startTime != nil { + properties.Set("StartTime", job.startTime.Format(time.RFC3339)) + } + return properties +} From 1e0c523099f96fb8db47bb9ccd9a5f25ce5585aa Mon Sep 17 00:00:00 2001 From: Dan Arbaugh Date: Fri, 1 Sep 2023 15:38:07 +0000 Subject: [PATCH 574/617] feat(resource): add TranscribeLanguageModel resource --- resources/transcribe-language-models.go | 91 +++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 resources/transcribe-language-models.go diff --git a/resources/transcribe-language-models.go b/resources/transcribe-language-models.go new file mode 100644 index 00000000..aab986e8 --- /dev/null +++ b/resources/transcribe-language-models.go @@ -0,0 +1,91 @@ +package resources + +import ( + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/transcribeservice" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type TranscribeLanguageModel struct { + svc *transcribeservice.TranscribeService + name *string + baseModelName *string + createTime *time.Time + failureReason *string + languageCode *string + lastModifiedTime *time.Time + modelStatus *string + upgradeAvailability *bool +} + +func init() { + register("TranscribeLanguageModel", ListTranscribeLanguageModels) +} + +func ListTranscribeLanguageModels(sess *session.Session) ([]Resource, error) { + svc := transcribeservice.New(sess) + resources := []Resource{} + var nextToken *string + + for { + listLanguageModelsInput := &transcribeservice.ListLanguageModelsInput{ + MaxResults: aws.Int64(100), + NextToken: nextToken, + } + + listOutput, err := svc.ListLanguageModels(listLanguageModelsInput) + if err != nil { + return nil, err + } + for _, model := range listOutput.Models { + resources = append(resources, &TranscribeLanguageModel{ + svc: svc, + name: model.ModelName, + baseModelName: model.BaseModelName, + createTime: model.CreateTime, + failureReason: model.FailureReason, + languageCode: model.LanguageCode, + lastModifiedTime: model.LastModifiedTime, + modelStatus: model.ModelStatus, + upgradeAvailability: model.UpgradeAvailability, + }) + } + + // Check if there are more results + if listOutput.NextToken == nil { + break // No more results, exit the loop + } + + // Set the nextToken for the next iteration + nextToken = listOutput.NextToken + } + return resources, nil +} + +func (model *TranscribeLanguageModel) Remove() error { + deleteInput := &transcribeservice.DeleteLanguageModelInput{ + ModelName: model.name, + } + _, err := model.svc.DeleteLanguageModel(deleteInput) + return err +} + +func (model *TranscribeLanguageModel) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("Name", model.name) + properties.Set("BaseModelName", model.baseModelName) + if model.createTime != nil { + properties.Set("CreateTime", model.createTime.Format(time.RFC3339)) + } + properties.Set("FailureReason", model.failureReason) + properties.Set("LanguageCode", model.languageCode) + if model.lastModifiedTime != nil { + properties.Set("LastModifiedTime", model.lastModifiedTime.Format(time.RFC3339)) + } + properties.Set("ModelStatus", model.modelStatus) + properties.Set("UpgradeAvailability", model.upgradeAvailability) + return properties +} From e680d44aa0a1c923e22a76f143f34aed4e1c6c18 Mon Sep 17 00:00:00 2001 From: Dan Arbaugh Date: Fri, 1 Sep 2023 15:38:23 +0000 Subject: [PATCH 575/617] feat(resource): add TranscribeMedicalTranscriptionJob resource --- .../transcribe-medical-transcription-jobs.go | 102 ++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 resources/transcribe-medical-transcription-jobs.go diff --git a/resources/transcribe-medical-transcription-jobs.go b/resources/transcribe-medical-transcription-jobs.go new file mode 100644 index 00000000..6547421c --- /dev/null +++ b/resources/transcribe-medical-transcription-jobs.go @@ -0,0 +1,102 @@ +package resources + +import ( + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/transcribeservice" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type TranscribeMedicalTranscriptionJob struct { + svc *transcribeservice.TranscribeService + name *string + status *string + completionTime *time.Time + contentIdentificationType *string + creationTime *time.Time + failureReason *string + languageCode *string + outputLocationType *string + specialty *string + startTime *time.Time + inputType *string +} + +func init() { + register("TranscribeMedicalTranscriptionJob", ListTranscribeMedicalTranscriptionJobs) +} + +func ListTranscribeMedicalTranscriptionJobs(sess *session.Session) ([]Resource, error) { + svc := transcribeservice.New(sess) + resources := []Resource{} + var nextToken *string + + for { + listMedicalTranscriptionJobsInput := &transcribeservice.ListMedicalTranscriptionJobsInput{ + MaxResults: aws.Int64(100), + NextToken: nextToken, + } + + listOutput, err := svc.ListMedicalTranscriptionJobs(listMedicalTranscriptionJobsInput) + if err != nil { + return nil, err + } + for _, job := range listOutput.MedicalTranscriptionJobSummaries { + resources = append(resources, &TranscribeMedicalTranscriptionJob{ + svc: svc, + name: job.MedicalTranscriptionJobName, + status: job.TranscriptionJobStatus, + completionTime: job.CompletionTime, + contentIdentificationType: job.ContentIdentificationType, + creationTime: job.CreationTime, + failureReason: job.FailureReason, + languageCode: job.LanguageCode, + outputLocationType: job.OutputLocationType, + specialty: job.Specialty, + startTime: job.StartTime, + inputType: job.Type, + }) + } + + // Check if there are more results + if listOutput.NextToken == nil { + break // No more results, exit the loop + } + + // Set the nextToken for the next iteration + nextToken = listOutput.NextToken + } + return resources, nil +} + +func (job *TranscribeMedicalTranscriptionJob) Remove() error { + deleteInput := &transcribeservice.DeleteMedicalTranscriptionJobInput{ + MedicalTranscriptionJobName: job.name, + } + _, err := job.svc.DeleteMedicalTranscriptionJob(deleteInput) + return err +} + +func (job *TranscribeMedicalTranscriptionJob) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("Name", job.name) + properties.Set("Status", job.status) + if job.completionTime != nil { + properties.Set("CompletionTime", job.completionTime.Format(time.RFC3339)) + } + properties.Set("ContentIdentificationType", job.contentIdentificationType) + if job.creationTime != nil { + properties.Set("CreationTime", job.creationTime.Format(time.RFC3339)) + } + properties.Set("FailureReason", job.failureReason) + properties.Set("LanguageCode", job.languageCode) + properties.Set("OutputLocationType", job.outputLocationType) + properties.Set("Specialty", job.specialty) + if job.startTime != nil { + properties.Set("StartTime", job.startTime.Format(time.RFC3339)) + } + properties.Set("InputType", job.inputType) + return properties +} From 98801895b42005913c92db8d59ff08acb8d82420 Mon Sep 17 00:00:00 2001 From: Dan Arbaugh Date: Fri, 1 Sep 2023 15:38:36 +0000 Subject: [PATCH 576/617] feat(resource): add TranscribeMedicalVocabulary resource --- resources/transcribe-medical-vocabularies.go | 77 ++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 resources/transcribe-medical-vocabularies.go diff --git a/resources/transcribe-medical-vocabularies.go b/resources/transcribe-medical-vocabularies.go new file mode 100644 index 00000000..0f4b1ffa --- /dev/null +++ b/resources/transcribe-medical-vocabularies.go @@ -0,0 +1,77 @@ +package resources + +import ( + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/transcribeservice" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type TranscribeMedicalVocabulary struct { + svc *transcribeservice.TranscribeService + name *string + state *string + languageCode *string + lastModifiedTime *time.Time +} + +func init() { + register("TranscribeMedicalVocabulary", ListTranscribeMedicalVocabularies) +} + +func ListTranscribeMedicalVocabularies(sess *session.Session) ([]Resource, error) { + svc := transcribeservice.New(sess) + resources := []Resource{} + var nextToken *string + + for { + listMedicalVocabulariesInput := &transcribeservice.ListMedicalVocabulariesInput{ + MaxResults: aws.Int64(100), + NextToken: nextToken, + } + + listOutput, err := svc.ListMedicalVocabularies(listMedicalVocabulariesInput) + if err != nil { + return nil, err + } + for _, vocab := range listOutput.Vocabularies { + resources = append(resources, &TranscribeMedicalVocabulary{ + svc: svc, + name: vocab.VocabularyName, + state: vocab.VocabularyState, + languageCode: vocab.LanguageCode, + lastModifiedTime: vocab.LastModifiedTime, + }) + } + + // Check if there are more results + if listOutput.NextToken == nil { + break // No more results, exit the loop + } + + // Set the nextToken for the next iteration + nextToken = listOutput.NextToken + } + return resources, nil +} + +func (vocab *TranscribeMedicalVocabulary) Remove() error { + deleteInput := &transcribeservice.DeleteMedicalVocabularyInput{ + VocabularyName: vocab.name, + } + _, err := vocab.svc.DeleteMedicalVocabulary(deleteInput) + return err +} + +func (vocab *TranscribeMedicalVocabulary) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("Name", vocab.name) + properties.Set("State", vocab.state) + properties.Set("LanguageCode", vocab.languageCode) + if vocab.lastModifiedTime != nil { + properties.Set("LastModifiedTime", vocab.lastModifiedTime.Format(time.RFC3339)) + } + return properties +} From 115a3b0470e3afdde1454cb06ce9eb816c79a586 Mon Sep 17 00:00:00 2001 From: Dan Arbaugh Date: Fri, 1 Sep 2023 15:38:48 +0000 Subject: [PATCH 577/617] feat(resource): add TranscribeTranscriptionJob resource --- resources/transcribe-transcription-jobs.go | 90 ++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 resources/transcribe-transcription-jobs.go diff --git a/resources/transcribe-transcription-jobs.go b/resources/transcribe-transcription-jobs.go new file mode 100644 index 00000000..d6d78970 --- /dev/null +++ b/resources/transcribe-transcription-jobs.go @@ -0,0 +1,90 @@ +package resources + +import ( + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/transcribeservice" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type TranscribeTranscriptionJob struct { + svc *transcribeservice.TranscribeService + name *string + status *string + completionTime *time.Time + creationTime *time.Time + failureReason *string + languageCode *string + startTime *time.Time +} + +func init() { + register("TranscribeTranscriptionJob", ListTranscribeTranscriptionJobs) +} + +func ListTranscribeTranscriptionJobs(sess *session.Session) ([]Resource, error) { + svc := transcribeservice.New(sess) + resources := []Resource{} + var nextToken *string + + for { + listTranscriptionJobsInput := &transcribeservice.ListTranscriptionJobsInput{ + MaxResults: aws.Int64(100), + NextToken: nextToken, + } + + listOutput, err := svc.ListTranscriptionJobs(listTranscriptionJobsInput) + if err != nil { + return nil, err + } + for _, job := range listOutput.TranscriptionJobSummaries { + resources = append(resources, &TranscribeTranscriptionJob{ + svc: svc, + name: job.TranscriptionJobName, + status: job.TranscriptionJobStatus, + completionTime: job.CompletionTime, + creationTime: job.CreationTime, + failureReason: job.FailureReason, + languageCode: job.LanguageCode, + startTime: job.StartTime, + }) + } + + // Check if there are more results + if listOutput.NextToken == nil { + break // No more results, exit the loop + } + + // Set the nextToken for the next iteration + nextToken = listOutput.NextToken + } + return resources, nil +} + +func (job *TranscribeTranscriptionJob) Remove() error { + deleteInput := &transcribeservice.DeleteTranscriptionJobInput{ + TranscriptionJobName: job.name, + } + _, err := job.svc.DeleteTranscriptionJob(deleteInput) + return err +} + +func (job *TranscribeTranscriptionJob) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("Name", job.name) + properties.Set("Status", job.status) + if job.completionTime != nil { + properties.Set("CompletionTime", job.completionTime.Format(time.RFC3339)) + } + if job.creationTime != nil { + properties.Set("CreationTime", job.creationTime.Format(time.RFC3339)) + } + properties.Set("FailureReason", job.failureReason) + properties.Set("LanguageCode", job.languageCode) + if job.startTime != nil { + properties.Set("StartTime", job.startTime.Format(time.RFC3339)) + } + return properties +} From 47c15cbfe4e605dbb3d901cbd0e56c48b2ed5a4d Mon Sep 17 00:00:00 2001 From: Dan Arbaugh Date: Fri, 1 Sep 2023 15:38:57 +0000 Subject: [PATCH 578/617] feat(resource): add TranscribeVocabulary resource --- resources/transcribe-vocabularies.go | 77 ++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 resources/transcribe-vocabularies.go diff --git a/resources/transcribe-vocabularies.go b/resources/transcribe-vocabularies.go new file mode 100644 index 00000000..18771b24 --- /dev/null +++ b/resources/transcribe-vocabularies.go @@ -0,0 +1,77 @@ +package resources + +import ( + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/transcribeservice" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type TranscribeVocabulary struct { + svc *transcribeservice.TranscribeService + name *string + state *string + languageCode *string + lastModifiedTime *time.Time +} + +func init() { + register("TranscribeVocabulary", ListTranscribeVocabularies) +} + +func ListTranscribeVocabularies(sess *session.Session) ([]Resource, error) { + svc := transcribeservice.New(sess) + resources := []Resource{} + var nextToken *string + + for { + listVocabulariesInput := &transcribeservice.ListVocabulariesInput{ + MaxResults: aws.Int64(100), + NextToken: nextToken, + } + + listOutput, err := svc.ListVocabularies(listVocabulariesInput) + if err != nil { + return nil, err + } + for _, vocab := range listOutput.Vocabularies { + resources = append(resources, &TranscribeVocabulary{ + svc: svc, + name: vocab.VocabularyName, + state: vocab.VocabularyState, + languageCode: vocab.LanguageCode, + lastModifiedTime: vocab.LastModifiedTime, + }) + } + + // Check if there are more results + if listOutput.NextToken == nil { + break // No more results, exit the loop + } + + // Set the nextToken for the next iteration + nextToken = listOutput.NextToken + } + return resources, nil +} + +func (vocab *TranscribeVocabulary) Remove() error { + deleteInput := &transcribeservice.DeleteVocabularyInput{ + VocabularyName: vocab.name, + } + _, err := vocab.svc.DeleteVocabulary(deleteInput) + return err +} + +func (vocab *TranscribeVocabulary) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("Name", vocab.name) + properties.Set("State", vocab.state) + properties.Set("LanguageCode", vocab.languageCode) + if vocab.lastModifiedTime != nil { + properties.Set("LastModifiedTime", vocab.lastModifiedTime.Format(time.RFC3339)) + } + return properties +} From d2246d2060bc220189bd20fea4226d63f9950184 Mon Sep 17 00:00:00 2001 From: Dan Arbaugh Date: Fri, 1 Sep 2023 15:39:06 +0000 Subject: [PATCH 579/617] feat(resource): add TranscribeVocabularyFilter resource --- resources/transcribe-vocabulary-filter.go | 74 +++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 resources/transcribe-vocabulary-filter.go diff --git a/resources/transcribe-vocabulary-filter.go b/resources/transcribe-vocabulary-filter.go new file mode 100644 index 00000000..d3c51897 --- /dev/null +++ b/resources/transcribe-vocabulary-filter.go @@ -0,0 +1,74 @@ +package resources + +import ( + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/transcribeservice" + "github.com/rebuy-de/aws-nuke/v2/pkg/types" +) + +type TranscribeVocabularyFilter struct { + svc *transcribeservice.TranscribeService + name *string + languageCode *string + lastModifiedTime *time.Time +} + +func init() { + register("TranscribeVocabularyFilter", ListTranscribeVocabularyFilters) +} + +func ListTranscribeVocabularyFilters(sess *session.Session) ([]Resource, error) { + svc := transcribeservice.New(sess) + resources := []Resource{} + var nextToken *string + + for { + listVocabularyFiltersInput := &transcribeservice.ListVocabularyFiltersInput{ + MaxResults: aws.Int64(100), + NextToken: nextToken, + } + + listOutput, err := svc.ListVocabularyFilters(listVocabularyFiltersInput) + if err != nil { + return nil, err + } + for _, filter := range listOutput.VocabularyFilters { + resources = append(resources, &TranscribeVocabularyFilter{ + svc: svc, + name: filter.VocabularyFilterName, + languageCode: filter.LanguageCode, + lastModifiedTime: filter.LastModifiedTime, + }) + } + + // Check if there are more results + if listOutput.NextToken == nil { + break // No more results, exit the loop + } + + // Set the nextToken for the next iteration + nextToken = listOutput.NextToken + } + return resources, nil +} + +func (filter *TranscribeVocabularyFilter) Remove() error { + deleteInput := &transcribeservice.DeleteVocabularyFilterInput{ + VocabularyFilterName: filter.name, + } + _, err := filter.svc.DeleteVocabularyFilter(deleteInput) + return err +} + +func (filter *TranscribeVocabularyFilter) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("Name", filter.name) + properties.Set("LanguageCode", filter.languageCode) + if filter.lastModifiedTime != nil { + properties.Set("LastModifiedTime", filter.lastModifiedTime.Format(time.RFC3339)) + } + return properties +} From 354c4f7f82c2fc16a39713638a9081b8429a9981 Mon Sep 17 00:00:00 2001 From: Dan Arbaugh Date: Fri, 1 Sep 2023 16:08:32 +0000 Subject: [PATCH 580/617] chore(transcribe): go fmt formatting fixes --- resources/transcribe-call-analytics-jobs.go | 2 +- resources/transcribe-transcription-jobs.go | 32 ++++++++++----------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/resources/transcribe-call-analytics-jobs.go b/resources/transcribe-call-analytics-jobs.go index edc5e695..4971c9fb 100644 --- a/resources/transcribe-call-analytics-jobs.go +++ b/resources/transcribe-call-analytics-jobs.go @@ -83,7 +83,7 @@ func (job *TranscribeCallAnalyticsJob) Properties() types.Properties { } properties.Set("FailureReason", job.failureReason) properties.Set("LanguageCode", job.languageCode) - if job.startTime != nil { + if job.startTime != nil { properties.Set("StartTime", job.startTime.Format(time.RFC3339)) } return properties diff --git a/resources/transcribe-transcription-jobs.go b/resources/transcribe-transcription-jobs.go index d6d78970..b4ff71f7 100644 --- a/resources/transcribe-transcription-jobs.go +++ b/resources/transcribe-transcription-jobs.go @@ -10,14 +10,14 @@ import ( ) type TranscribeTranscriptionJob struct { - svc *transcribeservice.TranscribeService - name *string - status *string - completionTime *time.Time - creationTime *time.Time - failureReason *string - languageCode *string - startTime *time.Time + svc *transcribeservice.TranscribeService + name *string + status *string + completionTime *time.Time + creationTime *time.Time + failureReason *string + languageCode *string + startTime *time.Time } func init() { @@ -41,14 +41,14 @@ func ListTranscribeTranscriptionJobs(sess *session.Session) ([]Resource, error) } for _, job := range listOutput.TranscriptionJobSummaries { resources = append(resources, &TranscribeTranscriptionJob{ - svc: svc, - name: job.TranscriptionJobName, - status: job.TranscriptionJobStatus, - completionTime: job.CompletionTime, - creationTime: job.CreationTime, - failureReason: job.FailureReason, - languageCode: job.LanguageCode, - startTime: job.StartTime, + svc: svc, + name: job.TranscriptionJobName, + status: job.TranscriptionJobStatus, + completionTime: job.CompletionTime, + creationTime: job.CreationTime, + failureReason: job.FailureReason, + languageCode: job.LanguageCode, + startTime: job.StartTime, }) } From e149eb9ecb35be0284e2e7eef8a5bfafcb5aecda Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 1 Oct 2024 18:47:21 -0600 Subject: [PATCH 581/617] refactor(transcribe): convert all transcribe resources to libnuke resource format --- .../transcribe-call-analytics-categories.go | 77 --------------- .../transcribe-call-analytics-category.go | 96 +++++++++++++++++++ ...bs.go => transcribe-call-analytics-job.go} | 79 +++++++++------ ...models.go => transcribe-language-model.go} | 81 ++++++++++------ ...> transcribe-medical-transcription-job.go} | 95 ++++++++++-------- ...es.go => transcribe-medical-vocabulary.go} | 64 ++++++++----- ...obs.go => transcribe-transcription-job.go} | 79 +++++++++------ resources/transcribe-vocabulary-filter.go | 32 +++++-- ...cabularies.go => transcribe-vocabulary.go} | 63 +++++++----- 9 files changed, 409 insertions(+), 257 deletions(-) delete mode 100644 resources/transcribe-call-analytics-categories.go create mode 100644 resources/transcribe-call-analytics-category.go rename resources/{transcribe-call-analytics-jobs.go => transcribe-call-analytics-job.go} (51%) rename resources/{transcribe-language-models.go => transcribe-language-model.go} (53%) rename resources/{transcribe-medical-transcription-jobs.go => transcribe-medical-transcription-job.go} (54%) rename resources/{transcribe-medical-vocabularies.go => transcribe-medical-vocabulary.go} (52%) rename resources/{transcribe-transcription-jobs.go => transcribe-transcription-job.go} (51%) rename resources/{transcribe-vocabularies.go => transcribe-vocabulary.go} (52%) diff --git a/resources/transcribe-call-analytics-categories.go b/resources/transcribe-call-analytics-categories.go deleted file mode 100644 index 892b27d3..00000000 --- a/resources/transcribe-call-analytics-categories.go +++ /dev/null @@ -1,77 +0,0 @@ -package resources - -import ( - "time" - - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/transcribeservice" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" -) - -type TranscribeCallAnalyticsCategory struct { - svc *transcribeservice.TranscribeService - name *string - inputType *string - createTime *time.Time - lastUpdateTime *time.Time -} - -func init() { - register("TranscribeCallAnalyticsCategory", ListTranscribeCallAnalyticsCategories) -} - -func ListTranscribeCallAnalyticsCategories(sess *session.Session) ([]Resource, error) { - svc := transcribeservice.New(sess) - resources := []Resource{} - var nextToken *string - - for { - listCallAnalyticsCategoriesInput := &transcribeservice.ListCallAnalyticsCategoriesInput{ - NextToken: nextToken, - } - - listOutput, err := svc.ListCallAnalyticsCategories(listCallAnalyticsCategoriesInput) - if err != nil { - return nil, err - } - for _, category := range listOutput.Categories { - resources = append(resources, &TranscribeCallAnalyticsCategory{ - svc: svc, - name: category.CategoryName, - inputType: category.InputType, - createTime: category.CreateTime, - lastUpdateTime: category.LastUpdateTime, - }) - } - - // Check if there are more results - if listOutput.NextToken == nil { - break // No more results, exit the loop - } - - // Set the nextToken for the next iteration - nextToken = listOutput.NextToken - } - return resources, nil -} - -func (category *TranscribeCallAnalyticsCategory) Remove() error { - deleteInput := &transcribeservice.DeleteCallAnalyticsCategoryInput{ - CategoryName: category.name, - } - _, err := category.svc.DeleteCallAnalyticsCategory(deleteInput) - return err -} - -func (category *TranscribeCallAnalyticsCategory) Properties() types.Properties { - properties := types.NewProperties() - properties.Set("Name", category.name) - properties.Set("InputType", category.inputType) - if category.createTime != nil { - properties.Set("CreateTime", category.createTime.Format(time.RFC3339)) - } - if category.lastUpdateTime != nil { - properties.Set("LastUpdateTime", category.lastUpdateTime.Format(time.RFC3339)) - } - return properties -} diff --git a/resources/transcribe-call-analytics-category.go b/resources/transcribe-call-analytics-category.go new file mode 100644 index 00000000..36c7b192 --- /dev/null +++ b/resources/transcribe-call-analytics-category.go @@ -0,0 +1,96 @@ +package resources + +import ( + "context" + "time" + + "github.com/aws/aws-sdk-go/service/transcribeservice" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +const TranscribeCallAnalyticsCategoryResource = "TranscribeCallAnalyticsCategory" + +func init() { + registry.Register(®istry.Registration{ + Name: TranscribeCallAnalyticsCategoryResource, + Scope: nuke.Account, + Lister: &TranscribeCallAnalyticsCategoryLister{}, + }) +} + +type TranscribeCallAnalyticsCategoryLister struct{} + +func (l *TranscribeCallAnalyticsCategoryLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := transcribeservice.New(opts.Session) + resources := make([]resource.Resource, 0) + var nextToken *string + + for { + listCallAnalyticsCategoriesInput := &transcribeservice.ListCallAnalyticsCategoriesInput{ + NextToken: nextToken, + } + + listOutput, err := svc.ListCallAnalyticsCategories(listCallAnalyticsCategoriesInput) + if err != nil { + return nil, err + } + for _, category := range listOutput.Categories { + resources = append(resources, &TranscribeCallAnalyticsCategory{ + svc: svc, + name: category.CategoryName, + inputType: category.InputType, + createTime: category.CreateTime, + lastUpdateTime: category.LastUpdateTime, + }) + } + + // Check if there are more results + if listOutput.NextToken == nil { + break // No more results, exit the loop + } + + // Set the nextToken for the next iteration + nextToken = listOutput.NextToken + } + return resources, nil +} + +type TranscribeCallAnalyticsCategory struct { + svc *transcribeservice.TranscribeService + name *string + inputType *string + createTime *time.Time + lastUpdateTime *time.Time +} + +func (r *TranscribeCallAnalyticsCategory) Remove(_ context.Context) error { + deleteInput := &transcribeservice.DeleteCallAnalyticsCategoryInput{ + CategoryName: r.name, + } + _, err := r.svc.DeleteCallAnalyticsCategory(deleteInput) + return err +} + +func (r *TranscribeCallAnalyticsCategory) Properties() types.Properties { + properties := types.NewProperties() + properties.Set("Name", r.name) + properties.Set("InputType", r.inputType) + if r.createTime != nil { + properties.Set("CreateTime", r.createTime.Format(time.RFC3339)) + } + if r.lastUpdateTime != nil { + properties.Set("LastUpdateTime", r.lastUpdateTime.Format(time.RFC3339)) + } + return properties +} + +func (r *TranscribeCallAnalyticsCategory) String() string { + return *r.name +} diff --git a/resources/transcribe-call-analytics-jobs.go b/resources/transcribe-call-analytics-job.go similarity index 51% rename from resources/transcribe-call-analytics-jobs.go rename to resources/transcribe-call-analytics-job.go index 4971c9fb..bab344b3 100644 --- a/resources/transcribe-call-analytics-jobs.go +++ b/resources/transcribe-call-analytics-job.go @@ -1,32 +1,36 @@ package resources import ( + "context" "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/transcribeservice" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) -type TranscribeCallAnalyticsJob struct { - svc *transcribeservice.TranscribeService - name *string - status *string - completionTime *time.Time - creationTime *time.Time - failureReason *string - languageCode *string - startTime *time.Time -} +const TranscribeCallAnalyticsJobResource = "TranscribeCallAnalyticsJob" func init() { - register("TranscribeCallAnalyticsJob", ListTranscribeCallAnalyticsJobs) + registry.Register(®istry.Registration{ + Name: TranscribeCallAnalyticsJobResource, + Scope: nuke.Account, + Lister: &TranscribeCallAnalyticsJobLister{}, + }) } -func ListTranscribeCallAnalyticsJobs(sess *session.Session) ([]Resource, error) { - svc := transcribeservice.New(sess) - resources := []Resource{} +type TranscribeCallAnalyticsJobLister struct{} + +func (l *TranscribeCallAnalyticsJobLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := transcribeservice.New(opts.Session) + resources := make([]resource.Resource, 0) var nextToken *string for { @@ -63,28 +67,43 @@ func ListTranscribeCallAnalyticsJobs(sess *session.Session) ([]Resource, error) return resources, nil } -func (job *TranscribeCallAnalyticsJob) Remove() error { +type TranscribeCallAnalyticsJob struct { + svc *transcribeservice.TranscribeService + name *string + status *string + completionTime *time.Time + creationTime *time.Time + failureReason *string + languageCode *string + startTime *time.Time +} + +func (r *TranscribeCallAnalyticsJob) Remove(_ context.Context) error { deleteInput := &transcribeservice.DeleteCallAnalyticsJobInput{ - CallAnalyticsJobName: job.name, + CallAnalyticsJobName: r.name, } - _, err := job.svc.DeleteCallAnalyticsJob(deleteInput) + _, err := r.svc.DeleteCallAnalyticsJob(deleteInput) return err } -func (job *TranscribeCallAnalyticsJob) Properties() types.Properties { +func (r *TranscribeCallAnalyticsJob) Properties() types.Properties { properties := types.NewProperties() - properties.Set("Name", job.name) - properties.Set("Status", job.status) - if job.completionTime != nil { - properties.Set("CompletionTime", job.completionTime.Format(time.RFC3339)) + properties.Set("Name", r.name) + properties.Set("Status", r.status) + if r.completionTime != nil { + properties.Set("CompletionTime", r.completionTime.Format(time.RFC3339)) } - if job.creationTime != nil { - properties.Set("CreationTime", job.creationTime.Format(time.RFC3339)) + if r.creationTime != nil { + properties.Set("CreationTime", r.creationTime.Format(time.RFC3339)) } - properties.Set("FailureReason", job.failureReason) - properties.Set("LanguageCode", job.languageCode) - if job.startTime != nil { - properties.Set("StartTime", job.startTime.Format(time.RFC3339)) + properties.Set("FailureReason", r.failureReason) + properties.Set("LanguageCode", r.languageCode) + if r.startTime != nil { + properties.Set("StartTime", r.startTime.Format(time.RFC3339)) } return properties } + +func (r *TranscribeCallAnalyticsJob) String() string { + return *r.name +} diff --git a/resources/transcribe-language-models.go b/resources/transcribe-language-model.go similarity index 53% rename from resources/transcribe-language-models.go rename to resources/transcribe-language-model.go index aab986e8..1e805fb4 100644 --- a/resources/transcribe-language-models.go +++ b/resources/transcribe-language-model.go @@ -1,33 +1,36 @@ package resources import ( + "context" "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/transcribeservice" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) -type TranscribeLanguageModel struct { - svc *transcribeservice.TranscribeService - name *string - baseModelName *string - createTime *time.Time - failureReason *string - languageCode *string - lastModifiedTime *time.Time - modelStatus *string - upgradeAvailability *bool -} +const TranscribeLanguageModelResource = "TranscribeLanguageModel" func init() { - register("TranscribeLanguageModel", ListTranscribeLanguageModels) + registry.Register(®istry.Registration{ + Name: TranscribeLanguageModelResource, + Scope: nuke.Account, + Lister: &TranscribeLanguageModelLister{}, + }) } -func ListTranscribeLanguageModels(sess *session.Session) ([]Resource, error) { - svc := transcribeservice.New(sess) - resources := []Resource{} +type TranscribeLanguageModelLister struct{} + +func (l *TranscribeLanguageModelLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := transcribeservice.New(opts.Session) + resources := make([]resource.Resource, 0) var nextToken *string for { @@ -65,27 +68,43 @@ func ListTranscribeLanguageModels(sess *session.Session) ([]Resource, error) { return resources, nil } -func (model *TranscribeLanguageModel) Remove() error { +type TranscribeLanguageModel struct { + svc *transcribeservice.TranscribeService + name *string + baseModelName *string + createTime *time.Time + failureReason *string + languageCode *string + lastModifiedTime *time.Time + modelStatus *string + upgradeAvailability *bool +} + +func (r *TranscribeLanguageModel) Remove(_ context.Context) error { deleteInput := &transcribeservice.DeleteLanguageModelInput{ - ModelName: model.name, + ModelName: r.name, } - _, err := model.svc.DeleteLanguageModel(deleteInput) + _, err := r.svc.DeleteLanguageModel(deleteInput) return err } -func (model *TranscribeLanguageModel) Properties() types.Properties { +func (r *TranscribeLanguageModel) Properties() types.Properties { properties := types.NewProperties() - properties.Set("Name", model.name) - properties.Set("BaseModelName", model.baseModelName) - if model.createTime != nil { - properties.Set("CreateTime", model.createTime.Format(time.RFC3339)) + properties.Set("Name", r.name) + properties.Set("BaseModelName", r.baseModelName) + if r.createTime != nil { + properties.Set("CreateTime", r.createTime.Format(time.RFC3339)) } - properties.Set("FailureReason", model.failureReason) - properties.Set("LanguageCode", model.languageCode) - if model.lastModifiedTime != nil { - properties.Set("LastModifiedTime", model.lastModifiedTime.Format(time.RFC3339)) + properties.Set("FailureReason", r.failureReason) + properties.Set("LanguageCode", r.languageCode) + if r.lastModifiedTime != nil { + properties.Set("LastModifiedTime", r.lastModifiedTime.Format(time.RFC3339)) } - properties.Set("ModelStatus", model.modelStatus) - properties.Set("UpgradeAvailability", model.upgradeAvailability) + properties.Set("ModelStatus", r.modelStatus) + properties.Set("UpgradeAvailability", r.upgradeAvailability) return properties } + +func (r *TranscribeLanguageModel) String() string { + return *r.name +} diff --git a/resources/transcribe-medical-transcription-jobs.go b/resources/transcribe-medical-transcription-job.go similarity index 54% rename from resources/transcribe-medical-transcription-jobs.go rename to resources/transcribe-medical-transcription-job.go index 6547421c..a7ad5613 100644 --- a/resources/transcribe-medical-transcription-jobs.go +++ b/resources/transcribe-medical-transcription-job.go @@ -1,36 +1,36 @@ package resources import ( + "context" "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/transcribeservice" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) -type TranscribeMedicalTranscriptionJob struct { - svc *transcribeservice.TranscribeService - name *string - status *string - completionTime *time.Time - contentIdentificationType *string - creationTime *time.Time - failureReason *string - languageCode *string - outputLocationType *string - specialty *string - startTime *time.Time - inputType *string -} +const TranscribeMedicalTranscriptionJobResource = "TranscribeMedicalTranscriptionJob" func init() { - register("TranscribeMedicalTranscriptionJob", ListTranscribeMedicalTranscriptionJobs) + registry.Register(®istry.Registration{ + Name: TranscribeMedicalTranscriptionJobResource, + Scope: nuke.Account, + Lister: &TranscribeMedicalTranscriptionJobLister{}, + }) } -func ListTranscribeMedicalTranscriptionJobs(sess *session.Session) ([]Resource, error) { - svc := transcribeservice.New(sess) - resources := []Resource{} +type TranscribeMedicalTranscriptionJobLister struct{} + +func (l *TranscribeMedicalTranscriptionJobLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := transcribeservice.New(opts.Session) + resources := make([]resource.Resource, 0) var nextToken *string for { @@ -71,32 +71,51 @@ func ListTranscribeMedicalTranscriptionJobs(sess *session.Session) ([]Resource, return resources, nil } -func (job *TranscribeMedicalTranscriptionJob) Remove() error { +type TranscribeMedicalTranscriptionJob struct { + svc *transcribeservice.TranscribeService + name *string + status *string + completionTime *time.Time + contentIdentificationType *string + creationTime *time.Time + failureReason *string + languageCode *string + outputLocationType *string + specialty *string + startTime *time.Time + inputType *string +} + +func (r *TranscribeMedicalTranscriptionJob) Remove(_ context.Context) error { deleteInput := &transcribeservice.DeleteMedicalTranscriptionJobInput{ - MedicalTranscriptionJobName: job.name, + MedicalTranscriptionJobName: r.name, } - _, err := job.svc.DeleteMedicalTranscriptionJob(deleteInput) + _, err := r.svc.DeleteMedicalTranscriptionJob(deleteInput) return err } -func (job *TranscribeMedicalTranscriptionJob) Properties() types.Properties { +func (r *TranscribeMedicalTranscriptionJob) Properties() types.Properties { properties := types.NewProperties() - properties.Set("Name", job.name) - properties.Set("Status", job.status) - if job.completionTime != nil { - properties.Set("CompletionTime", job.completionTime.Format(time.RFC3339)) + properties.Set("Name", r.name) + properties.Set("Status", r.status) + if r.completionTime != nil { + properties.Set("CompletionTime", r.completionTime.Format(time.RFC3339)) } - properties.Set("ContentIdentificationType", job.contentIdentificationType) - if job.creationTime != nil { - properties.Set("CreationTime", job.creationTime.Format(time.RFC3339)) + properties.Set("ContentIdentificationType", r.contentIdentificationType) + if r.creationTime != nil { + properties.Set("CreationTime", r.creationTime.Format(time.RFC3339)) } - properties.Set("FailureReason", job.failureReason) - properties.Set("LanguageCode", job.languageCode) - properties.Set("OutputLocationType", job.outputLocationType) - properties.Set("Specialty", job.specialty) - if job.startTime != nil { - properties.Set("StartTime", job.startTime.Format(time.RFC3339)) + properties.Set("FailureReason", r.failureReason) + properties.Set("LanguageCode", r.languageCode) + properties.Set("OutputLocationType", r.outputLocationType) + properties.Set("Specialty", r.specialty) + if r.startTime != nil { + properties.Set("StartTime", r.startTime.Format(time.RFC3339)) } - properties.Set("InputType", job.inputType) + properties.Set("InputType", r.inputType) return properties } + +func (r *TranscribeMedicalTranscriptionJob) String() string { + return *r.name +} diff --git a/resources/transcribe-medical-vocabularies.go b/resources/transcribe-medical-vocabulary.go similarity index 52% rename from resources/transcribe-medical-vocabularies.go rename to resources/transcribe-medical-vocabulary.go index 0f4b1ffa..25009df0 100644 --- a/resources/transcribe-medical-vocabularies.go +++ b/resources/transcribe-medical-vocabulary.go @@ -1,29 +1,37 @@ package resources import ( + "context" "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/transcribeservice" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) -type TranscribeMedicalVocabulary struct { - svc *transcribeservice.TranscribeService - name *string - state *string - languageCode *string - lastModifiedTime *time.Time -} +const TranscribeMedicalVocabularyResource = "TranscribeMedicalVocabulary" func init() { - register("TranscribeMedicalVocabulary", ListTranscribeMedicalVocabularies) + registry.Register(®istry.Registration{ + Name: TranscribeMedicalVocabularyResource, + Scope: nuke.Account, + Lister: &TranscribeMedicalVocabularyLister{}, + }) } -func ListTranscribeMedicalVocabularies(sess *session.Session) ([]Resource, error) { - svc := transcribeservice.New(sess) - resources := []Resource{} +type TranscribeMedicalVocabularyLister struct{} + +func (l *TranscribeMedicalVocabularyLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := transcribeservice.New(opts.Session) + resources := make([]resource.Resource, 0) var nextToken *string for { @@ -57,21 +65,33 @@ func ListTranscribeMedicalVocabularies(sess *session.Session) ([]Resource, error return resources, nil } -func (vocab *TranscribeMedicalVocabulary) Remove() error { +type TranscribeMedicalVocabulary struct { + svc *transcribeservice.TranscribeService + name *string + state *string + languageCode *string + lastModifiedTime *time.Time +} + +func (r *TranscribeMedicalVocabulary) Remove(_ context.Context) error { deleteInput := &transcribeservice.DeleteMedicalVocabularyInput{ - VocabularyName: vocab.name, + VocabularyName: r.name, } - _, err := vocab.svc.DeleteMedicalVocabulary(deleteInput) + _, err := r.svc.DeleteMedicalVocabulary(deleteInput) return err } -func (vocab *TranscribeMedicalVocabulary) Properties() types.Properties { +func (r *TranscribeMedicalVocabulary) Properties() types.Properties { properties := types.NewProperties() - properties.Set("Name", vocab.name) - properties.Set("State", vocab.state) - properties.Set("LanguageCode", vocab.languageCode) - if vocab.lastModifiedTime != nil { - properties.Set("LastModifiedTime", vocab.lastModifiedTime.Format(time.RFC3339)) + properties.Set("Name", r.name) + properties.Set("State", r.state) + properties.Set("LanguageCode", r.languageCode) + if r.lastModifiedTime != nil { + properties.Set("LastModifiedTime", r.lastModifiedTime.Format(time.RFC3339)) } return properties } + +func (r *TranscribeMedicalVocabulary) String() string { + return *r.name +} diff --git a/resources/transcribe-transcription-jobs.go b/resources/transcribe-transcription-job.go similarity index 51% rename from resources/transcribe-transcription-jobs.go rename to resources/transcribe-transcription-job.go index b4ff71f7..36eae43c 100644 --- a/resources/transcribe-transcription-jobs.go +++ b/resources/transcribe-transcription-job.go @@ -1,32 +1,36 @@ package resources import ( + "context" "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/transcribeservice" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) -type TranscribeTranscriptionJob struct { - svc *transcribeservice.TranscribeService - name *string - status *string - completionTime *time.Time - creationTime *time.Time - failureReason *string - languageCode *string - startTime *time.Time -} +const TranscribeTranscriptionJobResource = "TranscribeTranscriptionJob" func init() { - register("TranscribeTranscriptionJob", ListTranscribeTranscriptionJobs) + registry.Register(®istry.Registration{ + Name: TranscribeTranscriptionJobResource, + Scope: nuke.Account, + Lister: &TranscribeTranscriptionJobLister{}, + }) } -func ListTranscribeTranscriptionJobs(sess *session.Session) ([]Resource, error) { - svc := transcribeservice.New(sess) - resources := []Resource{} +type TranscribeTranscriptionJobLister struct{} + +func (l *TranscribeTranscriptionJobLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := transcribeservice.New(opts.Session) + resources := make([]resource.Resource, 0) var nextToken *string for { @@ -63,28 +67,43 @@ func ListTranscribeTranscriptionJobs(sess *session.Session) ([]Resource, error) return resources, nil } -func (job *TranscribeTranscriptionJob) Remove() error { +type TranscribeTranscriptionJob struct { + svc *transcribeservice.TranscribeService + name *string + status *string + completionTime *time.Time + creationTime *time.Time + failureReason *string + languageCode *string + startTime *time.Time +} + +func (r *TranscribeTranscriptionJob) Remove(_ context.Context) error { deleteInput := &transcribeservice.DeleteTranscriptionJobInput{ - TranscriptionJobName: job.name, + TranscriptionJobName: r.name, } - _, err := job.svc.DeleteTranscriptionJob(deleteInput) + _, err := r.svc.DeleteTranscriptionJob(deleteInput) return err } -func (job *TranscribeTranscriptionJob) Properties() types.Properties { +func (r *TranscribeTranscriptionJob) Properties() types.Properties { properties := types.NewProperties() - properties.Set("Name", job.name) - properties.Set("Status", job.status) - if job.completionTime != nil { - properties.Set("CompletionTime", job.completionTime.Format(time.RFC3339)) + properties.Set("Name", r.name) + properties.Set("Status", r.status) + if r.completionTime != nil { + properties.Set("CompletionTime", r.completionTime.Format(time.RFC3339)) } - if job.creationTime != nil { - properties.Set("CreationTime", job.creationTime.Format(time.RFC3339)) + if r.creationTime != nil { + properties.Set("CreationTime", r.creationTime.Format(time.RFC3339)) } - properties.Set("FailureReason", job.failureReason) - properties.Set("LanguageCode", job.languageCode) - if job.startTime != nil { - properties.Set("StartTime", job.startTime.Format(time.RFC3339)) + properties.Set("FailureReason", r.failureReason) + properties.Set("LanguageCode", r.languageCode) + if r.startTime != nil { + properties.Set("StartTime", r.startTime.Format(time.RFC3339)) } return properties } + +func (r *TranscribeTranscriptionJob) String() string { + return *r.name +} diff --git a/resources/transcribe-vocabulary-filter.go b/resources/transcribe-vocabulary-filter.go index d3c51897..8996dd9d 100644 --- a/resources/transcribe-vocabulary-filter.go +++ b/resources/transcribe-vocabulary-filter.go @@ -1,12 +1,20 @@ package resources import ( + "context" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/pkg/nuke" + "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/transcribeservice" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + "" ) type TranscribeVocabularyFilter struct { @@ -16,13 +24,23 @@ type TranscribeVocabularyFilter struct { lastModifiedTime *time.Time } +const TranscribeVocabularyFilterResource = "TranscribeVocabularyFilter" + func init() { - register("TranscribeVocabularyFilter", ListTranscribeVocabularyFilters) + registry.Register(®istry.Registration{ + Name: TranscribeVocabularyFilterResource, + Scope: nuke.Account, + Lister: &TranscribeVocabularyFilterLister{}, + }) } -func ListTranscribeVocabularyFilters(sess *session.Session) ([]Resource, error) { - svc := transcribeservice.New(sess) - resources := []Resource{} +type TranscribeVocabularyFilterLister struct{} + +func (l *TranscribeVocabularyFilterLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := transcribeservice.New(opts.Session) + resources := make([]resource.Resource, 0) var nextToken *string for { @@ -55,7 +73,7 @@ func ListTranscribeVocabularyFilters(sess *session.Session) ([]Resource, error) return resources, nil } -func (filter *TranscribeVocabularyFilter) Remove() error { +func (filter *TranscribeVocabularyFilter) Remove(_ context.Context) error { deleteInput := &transcribeservice.DeleteVocabularyFilterInput{ VocabularyFilterName: filter.name, } diff --git a/resources/transcribe-vocabularies.go b/resources/transcribe-vocabulary.go similarity index 52% rename from resources/transcribe-vocabularies.go rename to resources/transcribe-vocabulary.go index 18771b24..9cfe2f8b 100644 --- a/resources/transcribe-vocabularies.go +++ b/resources/transcribe-vocabulary.go @@ -1,29 +1,36 @@ package resources import ( + "context" "time" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/transcribeservice" - "github.com/rebuy-de/aws-nuke/v2/pkg/types" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) -type TranscribeVocabulary struct { - svc *transcribeservice.TranscribeService - name *string - state *string - languageCode *string - lastModifiedTime *time.Time -} +const TranscribeVocabularyResource = "TranscribeVocabulary" func init() { - register("TranscribeVocabulary", ListTranscribeVocabularies) + registry.Register(®istry.Registration{ + Name: TranscribeVocabularyResource, + Scope: nuke.Account, + Lister: &TranscribeVocabularyLister{}, + }) } -func ListTranscribeVocabularies(sess *session.Session) ([]Resource, error) { - svc := transcribeservice.New(sess) - resources := []Resource{} +type TranscribeVocabularyLister struct{} + +func (l *TranscribeVocabularyLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + + svc := transcribeservice.New(opts.Session) + resources := make([]resource.Resource, 0) var nextToken *string for { @@ -57,21 +64,33 @@ func ListTranscribeVocabularies(sess *session.Session) ([]Resource, error) { return resources, nil } -func (vocab *TranscribeVocabulary) Remove() error { +type TranscribeVocabulary struct { + svc *transcribeservice.TranscribeService + name *string + state *string + languageCode *string + lastModifiedTime *time.Time +} + +func (r *TranscribeVocabulary) Remove(_ context.Context) error { deleteInput := &transcribeservice.DeleteVocabularyInput{ - VocabularyName: vocab.name, + VocabularyName: r.name, } - _, err := vocab.svc.DeleteVocabulary(deleteInput) + _, err := r.svc.DeleteVocabulary(deleteInput) return err } -func (vocab *TranscribeVocabulary) Properties() types.Properties { +func (r *TranscribeVocabulary) Properties() types.Properties { properties := types.NewProperties() - properties.Set("Name", vocab.name) - properties.Set("State", vocab.state) - properties.Set("LanguageCode", vocab.languageCode) - if vocab.lastModifiedTime != nil { - properties.Set("LastModifiedTime", vocab.lastModifiedTime.Format(time.RFC3339)) + properties.Set("Name", r.name) + properties.Set("State", r.state) + properties.Set("LanguageCode", r.languageCode) + if r.lastModifiedTime != nil { + properties.Set("LastModifiedTime", r.lastModifiedTime.Format(time.RFC3339)) } return properties } + +func (r *TranscribeVocabulary) String() string { + return *r.name +} From d8a57a411036d783c6c97999331b2a85221b99aa Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 1 Oct 2024 18:49:55 -0600 Subject: [PATCH 582/617] refactor(transcribe): convert vocabulary filter to libnuke resource format --- resources/transcribe-vocabulary-filter.go | 43 +++++++++++------------ 1 file changed, 20 insertions(+), 23 deletions(-) diff --git a/resources/transcribe-vocabulary-filter.go b/resources/transcribe-vocabulary-filter.go index 8996dd9d..56084ecb 100644 --- a/resources/transcribe-vocabulary-filter.go +++ b/resources/transcribe-vocabulary-filter.go @@ -2,28 +2,18 @@ package resources import ( "context" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/transcribeservice" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" - "github.com/ekristen/aws-nuke/pkg/nuke" - - "time" - - "github.com/aws/aws-sdk-go/aws" - - "github.com/aws/aws-sdk-go/service/transcribeservice" - "" + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) -type TranscribeVocabularyFilter struct { - svc *transcribeservice.TranscribeService - name *string - languageCode *string - lastModifiedTime *time.Time -} - const TranscribeVocabularyFilterResource = "TranscribeVocabularyFilter" func init() { @@ -73,20 +63,27 @@ func (l *TranscribeVocabularyFilterLister) List(_ context.Context, o interface{} return resources, nil } -func (filter *TranscribeVocabularyFilter) Remove(_ context.Context) error { +type TranscribeVocabularyFilter struct { + svc *transcribeservice.TranscribeService + name *string + languageCode *string + lastModifiedTime *time.Time +} + +func (r *TranscribeVocabularyFilter) Remove(_ context.Context) error { deleteInput := &transcribeservice.DeleteVocabularyFilterInput{ - VocabularyFilterName: filter.name, + VocabularyFilterName: r.name, } - _, err := filter.svc.DeleteVocabularyFilter(deleteInput) + _, err := r.svc.DeleteVocabularyFilter(deleteInput) return err } -func (filter *TranscribeVocabularyFilter) Properties() types.Properties { +func (r *TranscribeVocabularyFilter) Properties() types.Properties { properties := types.NewProperties() - properties.Set("Name", filter.name) - properties.Set("LanguageCode", filter.languageCode) - if filter.lastModifiedTime != nil { - properties.Set("LastModifiedTime", filter.lastModifiedTime.Format(time.RFC3339)) + properties.Set("Name", r.name) + properties.Set("LanguageCode", r.languageCode) + if r.lastModifiedTime != nil { + properties.Set("LastModifiedTime", r.lastModifiedTime.Format(time.RFC3339)) } return properties } From 47a768d7bef5c1a346eb11e2ce7f7872eeb963d8 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 1 Oct 2024 18:50:21 -0600 Subject: [PATCH 583/617] chore(transcribe): property cleanup, default is RFC3339, nil is ignored --- resources/transcribe-call-analytics-category.go | 8 ++------ resources/transcribe-call-analytics-job.go | 12 +++--------- resources/transcribe-language-model.go | 8 ++------ resources/transcribe-medical-transcription-job.go | 12 +++--------- resources/transcribe-medical-vocabulary.go | 4 +--- resources/transcribe-transcription-job.go | 12 +++--------- resources/transcribe-vocabulary-filter.go | 4 +--- resources/transcribe-vocabulary.go | 4 +--- 8 files changed, 16 insertions(+), 48 deletions(-) diff --git a/resources/transcribe-call-analytics-category.go b/resources/transcribe-call-analytics-category.go index 36c7b192..4eea717a 100644 --- a/resources/transcribe-call-analytics-category.go +++ b/resources/transcribe-call-analytics-category.go @@ -82,12 +82,8 @@ func (r *TranscribeCallAnalyticsCategory) Properties() types.Properties { properties := types.NewProperties() properties.Set("Name", r.name) properties.Set("InputType", r.inputType) - if r.createTime != nil { - properties.Set("CreateTime", r.createTime.Format(time.RFC3339)) - } - if r.lastUpdateTime != nil { - properties.Set("LastUpdateTime", r.lastUpdateTime.Format(time.RFC3339)) - } + properties.Set("CreateTime", r.createTime) + properties.Set("LastUpdateTime", r.lastUpdateTime) return properties } diff --git a/resources/transcribe-call-analytics-job.go b/resources/transcribe-call-analytics-job.go index bab344b3..6f4471b1 100644 --- a/resources/transcribe-call-analytics-job.go +++ b/resources/transcribe-call-analytics-job.go @@ -90,17 +90,11 @@ func (r *TranscribeCallAnalyticsJob) Properties() types.Properties { properties := types.NewProperties() properties.Set("Name", r.name) properties.Set("Status", r.status) - if r.completionTime != nil { - properties.Set("CompletionTime", r.completionTime.Format(time.RFC3339)) - } - if r.creationTime != nil { - properties.Set("CreationTime", r.creationTime.Format(time.RFC3339)) - } + properties.Set("CompletionTime", r.completionTime) + properties.Set("CreationTime", r.creationTime) properties.Set("FailureReason", r.failureReason) properties.Set("LanguageCode", r.languageCode) - if r.startTime != nil { - properties.Set("StartTime", r.startTime.Format(time.RFC3339)) - } + properties.Set("StartTime", r.startTime) return properties } diff --git a/resources/transcribe-language-model.go b/resources/transcribe-language-model.go index 1e805fb4..038dcddb 100644 --- a/resources/transcribe-language-model.go +++ b/resources/transcribe-language-model.go @@ -92,14 +92,10 @@ func (r *TranscribeLanguageModel) Properties() types.Properties { properties := types.NewProperties() properties.Set("Name", r.name) properties.Set("BaseModelName", r.baseModelName) - if r.createTime != nil { - properties.Set("CreateTime", r.createTime.Format(time.RFC3339)) - } + properties.Set("CreateTime", r.createTime) properties.Set("FailureReason", r.failureReason) properties.Set("LanguageCode", r.languageCode) - if r.lastModifiedTime != nil { - properties.Set("LastModifiedTime", r.lastModifiedTime.Format(time.RFC3339)) - } + properties.Set("LastModifiedTime", r.lastModifiedTime) properties.Set("ModelStatus", r.modelStatus) properties.Set("UpgradeAvailability", r.upgradeAvailability) return properties diff --git a/resources/transcribe-medical-transcription-job.go b/resources/transcribe-medical-transcription-job.go index a7ad5613..548f86ee 100644 --- a/resources/transcribe-medical-transcription-job.go +++ b/resources/transcribe-medical-transcription-job.go @@ -98,20 +98,14 @@ func (r *TranscribeMedicalTranscriptionJob) Properties() types.Properties { properties := types.NewProperties() properties.Set("Name", r.name) properties.Set("Status", r.status) - if r.completionTime != nil { - properties.Set("CompletionTime", r.completionTime.Format(time.RFC3339)) - } + properties.Set("CompletionTime", r.completionTime) properties.Set("ContentIdentificationType", r.contentIdentificationType) - if r.creationTime != nil { - properties.Set("CreationTime", r.creationTime.Format(time.RFC3339)) - } + properties.Set("CreationTime", r.creationTime) properties.Set("FailureReason", r.failureReason) properties.Set("LanguageCode", r.languageCode) properties.Set("OutputLocationType", r.outputLocationType) properties.Set("Specialty", r.specialty) - if r.startTime != nil { - properties.Set("StartTime", r.startTime.Format(time.RFC3339)) - } + properties.Set("StartTime", r.startTime) properties.Set("InputType", r.inputType) return properties } diff --git a/resources/transcribe-medical-vocabulary.go b/resources/transcribe-medical-vocabulary.go index 25009df0..521ad4a5 100644 --- a/resources/transcribe-medical-vocabulary.go +++ b/resources/transcribe-medical-vocabulary.go @@ -86,9 +86,7 @@ func (r *TranscribeMedicalVocabulary) Properties() types.Properties { properties.Set("Name", r.name) properties.Set("State", r.state) properties.Set("LanguageCode", r.languageCode) - if r.lastModifiedTime != nil { - properties.Set("LastModifiedTime", r.lastModifiedTime.Format(time.RFC3339)) - } + properties.Set("LastModifiedTime", r.lastModifiedTime) return properties } diff --git a/resources/transcribe-transcription-job.go b/resources/transcribe-transcription-job.go index 36eae43c..e4decbcb 100644 --- a/resources/transcribe-transcription-job.go +++ b/resources/transcribe-transcription-job.go @@ -90,17 +90,11 @@ func (r *TranscribeTranscriptionJob) Properties() types.Properties { properties := types.NewProperties() properties.Set("Name", r.name) properties.Set("Status", r.status) - if r.completionTime != nil { - properties.Set("CompletionTime", r.completionTime.Format(time.RFC3339)) - } - if r.creationTime != nil { - properties.Set("CreationTime", r.creationTime.Format(time.RFC3339)) - } + properties.Set("CompletionTime", r.completionTime) + properties.Set("CreationTime", r.creationTime) properties.Set("FailureReason", r.failureReason) properties.Set("LanguageCode", r.languageCode) - if r.startTime != nil { - properties.Set("StartTime", r.startTime.Format(time.RFC3339)) - } + properties.Set("StartTime", r.startTime) return properties } diff --git a/resources/transcribe-vocabulary-filter.go b/resources/transcribe-vocabulary-filter.go index 56084ecb..7b2e2ed2 100644 --- a/resources/transcribe-vocabulary-filter.go +++ b/resources/transcribe-vocabulary-filter.go @@ -82,8 +82,6 @@ func (r *TranscribeVocabularyFilter) Properties() types.Properties { properties := types.NewProperties() properties.Set("Name", r.name) properties.Set("LanguageCode", r.languageCode) - if r.lastModifiedTime != nil { - properties.Set("LastModifiedTime", r.lastModifiedTime.Format(time.RFC3339)) - } + properties.Set("LastModifiedTime", r.lastModifiedTime) return properties } diff --git a/resources/transcribe-vocabulary.go b/resources/transcribe-vocabulary.go index 9cfe2f8b..f6254f20 100644 --- a/resources/transcribe-vocabulary.go +++ b/resources/transcribe-vocabulary.go @@ -85,9 +85,7 @@ func (r *TranscribeVocabulary) Properties() types.Properties { properties.Set("Name", r.name) properties.Set("State", r.state) properties.Set("LanguageCode", r.languageCode) - if r.lastModifiedTime != nil { - properties.Set("LastModifiedTime", r.lastModifiedTime.Format(time.RFC3339)) - } + properties.Set("LastModifiedTime", r.lastModifiedTime) return properties } From dae73d602aec0129f6ca18cd06095c893197a113 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 1 Oct 2024 19:48:38 -0600 Subject: [PATCH 584/617] docs: improve quickstart, add starter config --- docs/quick-start.md | 2 +- docs/starter-config.md | 123 +++++++++++++++++++++++++++++++++++++++++ mkdocs.yml | 1 + 3 files changed, 125 insertions(+), 1 deletion(-) create mode 100644 docs/starter-config.md diff --git a/docs/quick-start.md b/docs/quick-start.md index 506cc79d..85cae10a 100644 --- a/docs/quick-start.md +++ b/docs/quick-start.md @@ -1,6 +1,6 @@ # First Run -## First Configuration +## First Simple Configuration First you need to create a config file for *aws-nuke*. This is a minimal one: diff --git a/docs/starter-config.md b/docs/starter-config.md new file mode 100644 index 00000000..198806bf --- /dev/null +++ b/docs/starter-config.md @@ -0,0 +1,123 @@ +# Starter Configuration + +This is a good starting configuration for `aws-nuke`. This configuration will help you get started with the tool and +give you a good idea of what you can do with it. + +By default, many of the settings are populated. Many of the resources that are deprecated or not available are excluded. + +Additionally, there are 3 presets for common configurations of things you might want to filter (i.e. keep around). + +!!! note + You must replace the account ID with your own account ID. This is a placeholder account ID. + +!!! warning + This does not **cover** all settings, nor does it protect against resources that you might want to keep around, this + is a **starting configuration only**. + +```yaml +regions: + - global + - us-east-1 + - us-east-2 + +blocklist: + - "987654321098" # Production Account + +settings: + EC2Image: + IncludeDisabled: true + IncludeDeprecated: true + DisableDeregistrationProtection: true + EC2Instance: + DisableStopProtection: true + DisableDeletionProtection: true + RDSInstance: + DisableDeletionProtection: true + CloudFormationStack: + DisableDeletionProtection: true + DynamoDBTable: + DisableDeletionProtection: true + +resource-types: + excludes: + - S3Object # Excluded because S3 bucket removal handles removing all S3Objects + - ServiceCatalogTagOption # Excluded due to https://github.com/rebuy-de/aws-nuke/issues/515 + - ServiceCatalogTagOptionPortfolioAttachment # Excluded due to https://github.com/rebuy-de/aws-nuke/issues/515 + - FMSNotificationChannel # Excluded because it's not available + - FMSPolicy # Excluded because it's not available + - MachineLearningMLModel # Excluded due to ML being unavailable + - MachineLearningDataSource # Excluded due to ML being unavailable + - MachineLearningBranchPrediction # Excluded due to ML being unavailable + - MachineLearningEvaluation # Excluded due to ML being unavailable + - RoboMakerDeploymentJob # Deprecated Service + - RoboMakerFleet # Deprecated Service + - RoboMakerRobot # Deprecated Service + - RoboMakerSimulationJob + - RoboMakerRobotApplication + - RoboMakerSimulationApplication + - OpsWorksApp # Deprecated service + - OpsWorksInstance # Deprecated service + - OpsWorksLayer # Deprecated service + - OpsWorksUserProfile # Deprecated service + - OpsWorksCMBackup # Deprecated service + - OpsWorksCMServer # Deprecated service + - OpsWorksCMServerState # Deprecated service + - CodeStarProject # Deprecated service + - CodeStarConnection # Deprecated service + - CodeStarNotification # Deprecated service + - Cloud9Environment # Deprecated service + - CloudSearchDomain # Deprecated service + - RedshiftServerlessSnapshot # Deprecated service + - RedshiftServerlessNamespace # Deprecated service + - RedshiftServerlessWorkgroup # Deprecated service + +presets: + common: + filters: + BudgetsBudget: + - property: Name + value: "My Zero-Spend Budget" + + organization: + filters: + IAMSAMLProvider: + - property: ARN + type: contains + value: "AWSSSO" + IAMRole: + - property: Name + type: contains + value: "OrganizationAccountAccessRole" + IAMRolePolicyAttachment: + - property: RoleName + value: "OrganizationAccountAccessRole" + + defaults: + filters: + EC2Subnet: + - property: DefaultVPC + value: "true" + EC2DefaultSecurityGroupRule: + - property: DefaultVPC + value: "true" + EC2DHCPOption: + - property: DefaultVPC + value: "true" + EC2VPC: + - property: IsDefault + value: "true" + EC2InternetGateway: + - property: DefaultVPC + value: "true" + EC2InternetGatewayAttachment: + - property: DefaultVPC + value: "true" + +accounts: + '012345678901': + presets: + - common + - organization + - defaults + +``` \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index 10dd4ad7..f7846d78 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -71,6 +71,7 @@ nav: - Install: installation.md - Authentication: auth.md - Quick Start: quick-start.md + - Starter Config: starter-config.md - Migration Guide: migration-guide.md - Features: - Overview: features/overview.md From a8da2d27d1062585467131137e91fb18f4ae1654 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 1 Oct 2024 19:49:33 -0600 Subject: [PATCH 585/617] feat(backup-vault): fix resource name, add deprecated alias --- resources/{backup-vaults.go => backup-vault.go} | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) rename resources/{backup-vaults.go => backup-vault.go} (93%) diff --git a/resources/backup-vaults.go b/resources/backup-vault.go similarity index 93% rename from resources/backup-vaults.go rename to resources/backup-vault.go index 52b7beec..074fae87 100644 --- a/resources/backup-vaults.go +++ b/resources/backup-vault.go @@ -21,13 +21,16 @@ type BackupVault struct { tags map[string]*string } -const AWSBackupVaultResource = "AWSBackupVault" +const BackupVaultResource = "BackupVault" func init() { registry.Register(®istry.Registration{ - Name: AWSBackupVaultResource, + Name: BackupVaultResource, Scope: nuke.Account, Lister: &AWSBackupVaultLister{}, + DeprecatedAliases: []string{ + "AWSBackupVault", + }, }) } From 9499e203cc56ad668cbdb12ea90f44a56d67afb0 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 1 Oct 2024 19:50:15 -0600 Subject: [PATCH 586/617] fix(gamelift): skip unsupported regions --- resources/gamelift-mm-config.go | 7 ++++++- resources/gamelift-mm-rule.go | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/resources/gamelift-mm-config.go b/resources/gamelift-mm-config.go index ff41001b..0d5e6b69 100644 --- a/resources/gamelift-mm-config.go +++ b/resources/gamelift-mm-config.go @@ -2,6 +2,7 @@ package resources import ( "context" + "errors" "time" "github.com/aws/aws-sdk-go/service/gamelift" @@ -36,7 +37,11 @@ func (l *GameLiftMatchmakingConfigurationLister) List(_ context.Context, o inter for { resp, err := svc.DescribeMatchmakingConfigurations(params) if err != nil { - return nil, err + var unsupportedRegionException *gamelift.UnsupportedRegionException + if errors.As(err, &unsupportedRegionException) { + return resources, nil + } + return resources, err } for _, config := range resp.Configurations { diff --git a/resources/gamelift-mm-rule.go b/resources/gamelift-mm-rule.go index 63abdb2d..d2ece20c 100644 --- a/resources/gamelift-mm-rule.go +++ b/resources/gamelift-mm-rule.go @@ -2,6 +2,7 @@ package resources import ( "context" + "errors" "github.com/aws/aws-sdk-go/service/gamelift" @@ -35,7 +36,11 @@ func (l *GameLiftMatchmakingRuleSetLister) List(_ context.Context, o interface{} for { resp, err := svc.DescribeMatchmakingRuleSets(params) if err != nil { - return nil, err + var unsupportedRegionException *gamelift.UnsupportedRegionException + if errors.As(err, &unsupportedRegionException) { + return resources, nil + } + return resources, err } for _, ruleSet := range resp.RuleSets { From 517efd4364092cf32f1e813712a3d3c4033c6ab9 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 1 Oct 2024 19:50:47 -0600 Subject: [PATCH 587/617] fix(transcribe): skip unsupported regions --- resources/transcribe-call-analytics-category.go | 7 +++++++ resources/transcribe-call-analytics-job.go | 9 ++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/resources/transcribe-call-analytics-category.go b/resources/transcribe-call-analytics-category.go index 4eea717a..85fbb022 100644 --- a/resources/transcribe-call-analytics-category.go +++ b/resources/transcribe-call-analytics-category.go @@ -2,6 +2,8 @@ package resources import ( "context" + "errors" + "strings" "time" "github.com/aws/aws-sdk-go/service/transcribeservice" @@ -39,6 +41,11 @@ func (l *TranscribeCallAnalyticsCategoryLister) List(_ context.Context, o interf listOutput, err := svc.ListCallAnalyticsCategories(listCallAnalyticsCategoriesInput) if err != nil { + var badRequestException *transcribeservice.BadRequestException + if errors.As(err, &badRequestException) && + strings.Contains(badRequestException.Message(), "isn't supported in this region") { + return resources, nil + } return nil, err } for _, category := range listOutput.Categories { diff --git a/resources/transcribe-call-analytics-job.go b/resources/transcribe-call-analytics-job.go index 6f4471b1..209d57a8 100644 --- a/resources/transcribe-call-analytics-job.go +++ b/resources/transcribe-call-analytics-job.go @@ -2,6 +2,8 @@ package resources import ( "context" + "errors" + "strings" "time" "github.com/aws/aws-sdk-go/aws" @@ -41,8 +43,13 @@ func (l *TranscribeCallAnalyticsJobLister) List(_ context.Context, o interface{} listOutput, err := svc.ListCallAnalyticsJobs(listCallAnalyticsJobsInput) if err != nil { - return nil, err + var badRequestException *transcribeservice.BadRequestException + if errors.As(err, &badRequestException) && + strings.Contains(badRequestException.Message(), "isn't supported in this region") { + return resources, nil + } } + for _, job := range listOutput.CallAnalyticsJobSummaries { resources = append(resources, &TranscribeCallAnalyticsJob{ svc: svc, From b1ca8df1e83a7ae944cd8dd134fa441a3c6ce4e5 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 1 Oct 2024 19:51:16 -0600 Subject: [PATCH 588/617] refactor(quicksight-subscription): fix imports --- resources/quicksight-subscriptions.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/quicksight-subscriptions.go b/resources/quicksight-subscriptions.go index a729abed..eb223b7c 100644 --- a/resources/quicksight-subscriptions.go +++ b/resources/quicksight-subscriptions.go @@ -7,11 +7,13 @@ import ( "github.com/aws/aws-sdk-go/service/quicksight" "github.com/aws/aws-sdk-go/service/quicksight/quicksightiface" - "github.com/ekristen/aws-nuke/v3/pkg/nuke" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" libsettings "github.com/ekristen/libnuke/pkg/settings" "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) const QuickSightSubscriptionResource = "QuickSightSubscription" From f8d72ce999120d46465b4f05c752539c0e19c7c1 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 1 Oct 2024 19:51:43 -0600 Subject: [PATCH 589/617] fix(quicksight-user): skip unsupported regions --- resources/quicksight-user.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/resources/quicksight-user.go b/resources/quicksight-user.go index 2022044b..f059dc36 100644 --- a/resources/quicksight-user.go +++ b/resources/quicksight-user.go @@ -2,11 +2,13 @@ package resources import ( "context" + "errors" "github.com/gotidy/ptr" "github.com/aws/aws-sdk-go/service/quicksight" "github.com/aws/aws-sdk-go/service/quicksight/quicksightiface" + "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" "github.com/ekristen/libnuke/pkg/types" @@ -60,7 +62,11 @@ func (l *QuickSightUserLister) List(_ context.Context, o interface{}) ([]resourc return !lastPage }) if err != nil { - return nil, err + var notFoundException *quicksight.ResourceNotFoundException + if !errors.As(err, ¬FoundException) { + return nil, err + } + return resources, nil } return resources, nil From 41a33907e30426500e4872ed2c44ddda95e9cf36 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 1 Oct 2024 19:52:38 -0600 Subject: [PATCH 590/617] feat(ec2-default-security-group-rule): add missing property for DefaultVPC --- ...ecurity-group-rules.go => ec2-default-security-group-rule.go} | 1 + 1 file changed, 1 insertion(+) rename resources/{ec2-default-security-group-rules.go => ec2-default-security-group-rule.go} (98%) diff --git a/resources/ec2-default-security-group-rules.go b/resources/ec2-default-security-group-rule.go similarity index 98% rename from resources/ec2-default-security-group-rules.go rename to resources/ec2-default-security-group-rule.go index f72d2645..8c162998 100644 --- a/resources/ec2-default-security-group-rules.go +++ b/resources/ec2-default-security-group-rule.go @@ -120,6 +120,7 @@ func (r *EC2DefaultSecurityGroupRule) Remove(_ context.Context) error { func (r *EC2DefaultSecurityGroupRule) Properties() types.Properties { properties := types.NewProperties() properties.Set("SecurityGroupId", r.groupID) + properties.Set("DefaultVPC", true) return properties } From 073197f1954ff28716c380a9dfdb4a4868706d5b Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 1 Oct 2024 20:11:30 -0600 Subject: [PATCH 591/617] docs: improving the installation docs --- docs/installation.md | 35 ++++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/docs/installation.md b/docs/installation.md index 3a6185a7..529583ea 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -1,28 +1,45 @@ # Install -## Install the pre-compiled binary +Preferred installation order is the following: -### Homebrew Tap (MacOS/Linux) +1. [GitHub Release](#github-releases-preferred) +2. [ekristen's homebrew tap](#ekristens-homebrew-tap-macoslinux) +3. [Homebrew Core](#homebrew-core-macoslinux) + +Docker images are also available via the GitHub Container Registry. + +## GitHub Releases (preferred) + +!!! success - "Recommended" + This supports all operating systems and most architectures. + +You can download pre-compiled binaries from the [releases](https://github.com/ekristen/aws-nuke/releases) page. + +## ekristen's Homebrew Tap (MacOS/Linux) + +!!! info + I control this tap, and it sources the binaries directly from the GitHub releases. However, it only supports MacOS. ```console brew install ekristen/tap/aws-nuke ``` -!!! warning "Brew Warning" - `brew install aws-nuke` will install the rebuy-aws version of aws-nuke, which is not the same as this version. - -## Releases +## Homebrew Core (MacOS/Linux) -You can download pre-compiled binaries from the [releases](https://github.com/ekristen/aws-nuke/releases) page. +!!! note + I do not control the Homebrew Core formula, so it may not be up to date. Additionally, it is not compiled with + goreleaser, instead it is compiled with the Homebrew build system which does not build it in the same way, for + example it does not compile it statically. +```console +brew install aws-nuke +``` ## Docker Registries: - [ghcr.io/ekristen/aws-nuke](https://github.com/ekristen/aws-nuke/pkgs/container/aws-nuke) -You can run **aws-nuke** with Docker by using a command like this: - ## Source To compile **aws-nuke** from source you need a working [Golang](https://golang.org/doc/install) development environment and [goreleaser](https://goreleaser.com/install/). From 8aa7a854a0238502c582e559895b5b6631f066d8 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 3 Oct 2024 22:57:59 +0000 Subject: [PATCH 592/617] fix(deps): update module github.com/ekristen/libnuke to v0.19.2 --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 150f0309..c91c9ab4 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.21.6 require ( github.com/aws/aws-sdk-go v1.54.20 - github.com/ekristen/libnuke v0.19.1 + github.com/ekristen/libnuke v0.19.2 github.com/fatih/color v1.17.0 github.com/golang/mock v1.6.0 github.com/google/uuid v1.6.0 diff --git a/go.sum b/go.sum index bfcc3707..d7c588a7 100644 --- a/go.sum +++ b/go.sum @@ -12,6 +12,8 @@ github.com/ekristen/libnuke v0.19.0 h1:pXVxPlbKfYbP1iSwsNu67MQ8HNvZPEZIeKiyw/k8F github.com/ekristen/libnuke v0.19.0/go.mod h1:riI1tjCf6r+et/9oUBd1vQeFmn2Sn6UeFUR0nWkMeYw= github.com/ekristen/libnuke v0.19.1 h1:n52PMccQjs4MsaYPtulavxmKyHFq4xz3KCy6mpjoX/I= github.com/ekristen/libnuke v0.19.1/go.mod h1:riI1tjCf6r+et/9oUBd1vQeFmn2Sn6UeFUR0nWkMeYw= +github.com/ekristen/libnuke v0.19.2 h1:dlmqeHBHaQN+gv6Cg7+DwehpayocAABTYzSaTmaP6Pk= +github.com/ekristen/libnuke v0.19.2/go.mod h1:DIN5VmrH6AUwaXc25RHcH/V+JKALdl16CN9iJvFtbK4= github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4= github.com/fatih/color v1.17.0/go.mod h1:YZ7TlrGPkiz6ku9fK3TLD/pl3CpsiFyu8N92HLgmosI= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= From 644b4332fbd735501b6461a28a6ee33991fe732e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 4 Oct 2024 16:32:42 +0000 Subject: [PATCH 593/617] fix(deps): update module golang.org/x/text to v0.19.0 --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 150f0309..ad1a18e2 100644 --- a/go.mod +++ b/go.mod @@ -14,7 +14,7 @@ require ( github.com/stretchr/testify v1.9.0 github.com/urfave/cli/v2 v2.27.4 go.uber.org/ratelimit v0.3.1 - golang.org/x/text v0.18.0 + golang.org/x/text v0.19.0 gopkg.in/yaml.v3 v3.0.1 ) diff --git a/go.sum b/go.sum index bfcc3707..7e4a614f 100644 --- a/go.sum +++ b/go.sum @@ -92,6 +92,8 @@ golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.18.0 h1:XvMDiNzPAl0jr17s6W9lcaIhGUfUORdGCNsuLmPG224= golang.org/x/text v0.18.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM= +golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= From cb10704155bdcebb552a73a1502e17603b796775 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 10 Oct 2024 15:44:09 -0600 Subject: [PATCH 594/617] fix(neptune-instance): filter to neptune rds instances only --- resources/neptune-instances.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/resources/neptune-instances.go b/resources/neptune-instances.go index 8bf1ba01..7177766f 100644 --- a/resources/neptune-instances.go +++ b/resources/neptune-instances.go @@ -32,6 +32,12 @@ func (l *NeptuneInstanceLister) List(_ context.Context, o interface{}) ([]resour params := &neptune.DescribeDBInstancesInput{ MaxRecords: aws.Int64(100), + Filters: []*neptune.Filter{ + { + Name: aws.String("engine"), + Values: []*string{aws.String("neptune")}, + }, + }, } for { From bbd4cf55d301d1c753abba160480a1a30f6f81bc Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 10 Oct 2024 15:44:55 -0600 Subject: [PATCH 595/617] feat(neptune-instance): support properties and tags --- ...ptune-instances.go => neptune-instance.go} | 40 ++++++++++++++----- 1 file changed, 31 insertions(+), 9 deletions(-) rename resources/{neptune-instances.go => neptune-instance.go} (60%) diff --git a/resources/neptune-instances.go b/resources/neptune-instance.go similarity index 60% rename from resources/neptune-instances.go rename to resources/neptune-instance.go index 7177766f..b425704c 100644 --- a/resources/neptune-instances.go +++ b/resources/neptune-instance.go @@ -3,11 +3,14 @@ package resources import ( "context" + "github.com/sirupsen/logrus" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/neptune" "github.com/ekristen/libnuke/pkg/registry" "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" "github.com/ekristen/aws-nuke/v3/pkg/nuke" ) @@ -47,9 +50,22 @@ func (l *NeptuneInstanceLister) List(_ context.Context, o interface{}) ([]resour } for _, dbInstance := range output.DBInstances { + var dbTags []*neptune.Tag + tags, err := svc.ListTagsForResource(&neptune.ListTagsForResourceInput{ + ResourceName: dbInstance.DBInstanceArn, + }) + if err != nil { + logrus.WithError(err).Warn("failed to list tags for resource") + } + if tags.TagList != nil { + dbTags = tags.TagList + } + resources = append(resources, &NeptuneInstance{ - svc: svc, - ID: dbInstance.DBInstanceIdentifier, + svc: svc, + ID: dbInstance.DBInstanceIdentifier, + Name: dbInstance.DBName, + Tags: dbTags, }) } @@ -64,19 +80,25 @@ func (l *NeptuneInstanceLister) List(_ context.Context, o interface{}) ([]resour } type NeptuneInstance struct { - svc *neptune.Neptune - ID *string + svc *neptune.Neptune + ID *string + Name *string + Tags []*neptune.Tag } -func (f *NeptuneInstance) Remove(_ context.Context) error { - _, err := f.svc.DeleteDBInstance(&neptune.DeleteDBInstanceInput{ - DBInstanceIdentifier: f.ID, +func (r *NeptuneInstance) Remove(_ context.Context) error { + _, err := r.svc.DeleteDBInstance(&neptune.DeleteDBInstanceInput{ + DBInstanceIdentifier: r.ID, SkipFinalSnapshot: aws.Bool(true), }) return err } -func (f *NeptuneInstance) String() string { - return *f.ID +func (r *NeptuneInstance) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + +func (r *NeptuneInstance) String() string { + return *r.ID } From c01c72646c64d29af2a8ef48ed709c675771926e Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 10 Oct 2024 15:45:43 -0600 Subject: [PATCH 596/617] feat(apigateway-restapi): support rate limit on remove --- resources/apigateway-restapis.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/resources/apigateway-restapis.go b/resources/apigateway-restapis.go index 9be96efd..2d3bf148 100644 --- a/resources/apigateway-restapis.go +++ b/resources/apigateway-restapis.go @@ -4,6 +4,8 @@ import ( "context" "time" + "go.uber.org/ratelimit" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/apigateway" @@ -16,6 +18,12 @@ import ( const APIGatewayRestAPIResource = "APIGatewayRestAPI" +// Rate limit to avoid throttling when deleting API Gateway Rest APIs +// The API Gateway Delete Rest API has a limit of 1 request per 30 seconds for each account +// https://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html +// Note: due to time drift, set to 31 seconds to be safe. +var deleteRestAPILimit = ratelimit.New(1, ratelimit.Per(32*time.Second)) + func init() { registry.Register(®istry.Registration{ Name: APIGatewayRestAPIResource, @@ -73,6 +81,8 @@ func (l *APIGatewayRestAPILister) List(_ context.Context, o interface{}) ([]reso } func (f *APIGatewayRestAPI) Remove(_ context.Context) error { + deleteRestAPILimit.Take() + _, err := f.svc.DeleteRestApi(&apigateway.DeleteRestApiInput{ RestApiId: f.restAPIID, }) From 362163dcfef0da52815587fdceb7beec9cb8d431 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 10 Oct 2024 15:45:53 -0600 Subject: [PATCH 597/617] feat(apigateway-api-key): support rate limit on remove --- resources/apigateway-api-key.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/resources/apigateway-api-key.go b/resources/apigateway-api-key.go index cc53b1f1..941d1c37 100644 --- a/resources/apigateway-api-key.go +++ b/resources/apigateway-api-key.go @@ -2,6 +2,7 @@ package resources import ( "context" + "go.uber.org/ratelimit" "time" "github.com/aws/aws-sdk-go/aws" @@ -16,6 +17,12 @@ import ( const APIGatewayAPIKeyResource = "APIGatewayAPIKey" +// Rate limit to avoid throttling when deleting API Gateway Rest APIs +// The API Gateway Delete Rest API has a limit of 1 request per 30 seconds for each account +// https://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html +// Note: due to time drift, set to 31 seconds to be safe. +var deleteAPIKeyLimit = ratelimit.New(1, ratelimit.Per(32*time.Second)) + func init() { registry.Register(®istry.Registration{ Name: APIGatewayAPIKeyResource, @@ -72,6 +79,8 @@ type APIGatewayAPIKey struct { } func (r *APIGatewayAPIKey) Remove(_ context.Context) error { + deleteAPIKeyLimit.Take() + _, err := r.svc.DeleteApiKey(&apigateway.DeleteApiKeyInput{ ApiKey: r.apiKey, }) From a48555bb1c3d7157782935e25b21391f3f8d64a9 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 10 Oct 2024 16:15:07 -0600 Subject: [PATCH 598/617] docs: improving resource documentation --- docs/resources/ec2-image.md | 36 ++++++++++++++++++++++++++++++++++++ docs/resources/iam-role.md | 6 ++++++ docs/resources/overview.md | 5 +++++ docs/resources/s3-bucket.md | 6 ++++++ docs/resources/s3-object.md | 22 ++++++++++++++++++++++ mkdocs.yml | 3 +++ 6 files changed, 78 insertions(+) create mode 100644 docs/resources/ec2-image.md create mode 100644 docs/resources/overview.md create mode 100644 docs/resources/s3-object.md diff --git a/docs/resources/ec2-image.md b/docs/resources/ec2-image.md new file mode 100644 index 00000000..8b298938 --- /dev/null +++ b/docs/resources/ec2-image.md @@ -0,0 +1,36 @@ +# EC2 Image + +This will remove all IAM Roles an AWS account. + +## Resource + +```text +EC2Image +``` + +## Settings + +- `IncludeDisabled` +- `IncludeDeprecated` +- `DisableDeregistrationProtection` + +### IncludeDisabled + +This will include any EC2 Images (AMI) that are disabled in the deletion process. By default, disabled images are excluded +from the discovery process. + +Default is `false`. + +### IncludeDeprecated + +This will include any EC2 Images (AMI) that are deprecated in the deletion process. By default, deprecated images are excluded +from the discovery process. + +Default is `false`. + +### DisableDeregistrationProtection + +This will disable the deregistration protection on the EC2 Image (AMI) prior to deletion. By default, deregistration protection +is not disabled. + +Default is `false`. diff --git a/docs/resources/iam-role.md b/docs/resources/iam-role.md index efbabdd2..6669c372 100644 --- a/docs/resources/iam-role.md +++ b/docs/resources/iam-role.md @@ -2,6 +2,12 @@ This will remove all IAM Roles an AWS account. +## Resource + +```text +IAMRole +``` + ## Settings - `IncludeServiceLinkedRoles` diff --git a/docs/resources/overview.md b/docs/resources/overview.md new file mode 100644 index 00000000..f0a1f6f9 --- /dev/null +++ b/docs/resources/overview.md @@ -0,0 +1,5 @@ +# Resources Overview + +This is the start of the documentation for all resources handled by aws-nuke. Eventually each resource will have its own +page with detailed information on how to use it, what settings are available, and what the resource does. + diff --git a/docs/resources/s3-bucket.md b/docs/resources/s3-bucket.md index fc4ffd2c..8925361f 100644 --- a/docs/resources/s3-bucket.md +++ b/docs/resources/s3-bucket.md @@ -13,6 +13,12 @@ This will remove all S3 buckets from an AWS account. The following actions are p - This will include bypassing any Object Lock governance retention settings if the `BypassGovernanceRetention` setting is set to `true` +## Resource + +```text +S3Bucket +``` + ## Settings - `BypassGovernanceRetention` diff --git a/docs/resources/s3-object.md b/docs/resources/s3-object.md new file mode 100644 index 00000000..ac83310c --- /dev/null +++ b/docs/resources/s3-object.md @@ -0,0 +1,22 @@ +# S3Object + +!!! warning + **You should exclude this resource by default.** Not doing so can lead to deadlocks and hung runs of the tool. In + the next major version of aws-nuke, this resource will be excluded by default. + +!!! important + This resource is **NOT** required to remove a [S3Bucket](./s3-bucket.md). The `S3Bucket` resource will remove all + objects in the bucket as part of the deletion process using a batch removal process. + +This removes all objects from S3 buckets in an AWS account while retaining the S3 bucket itself. This resource is +useful if you want to remove a single object from a bucket, or a subset of objects without removing the entire bucket. + +## Resource + +```text +S3Object +``` + +## Settings + +**No settings available.** \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index f7846d78..2d932378 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -92,9 +92,12 @@ nav: - Custom Endpoints: config-custom-endpoints.md - Migration Guide: config-migration.md - Resources: + - Overview: resources/overview.md - Cognito User Pool: resources/cognito-user-pool.md + - EC2 Image: resources/ec2-image.md - IAM Role: resources/iam-role.md - S3 Bucket: resources/s3-bucket.md + - S3 Object: resources/s3-object.md - Development: - Overview: development.md - Contributing: contributing.md From f0e3e7dd1e98235c94b7008e90131627793dfadb Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 10 Oct 2024 16:24:59 -0600 Subject: [PATCH 599/617] fix(ec2-ip): include network border group if set during remove --- resources/ec2-eip.go | 39 +++++++++++++++++---------------------- 1 file changed, 17 insertions(+), 22 deletions(-) diff --git a/resources/ec2-eip.go b/resources/ec2-eip.go index 6cf050a3..f920ff48 100644 --- a/resources/ec2-eip.go +++ b/resources/ec2-eip.go @@ -3,8 +3,6 @@ package resources import ( "context" - "github.com/gotidy/ptr" - "github.com/aws/aws-sdk-go/service/ec2" "github.com/ekristen/libnuke/pkg/registry" @@ -40,10 +38,10 @@ func (l *EC2AddressLister) List(_ context.Context, o interface{}) ([]resource.Re resources := make([]resource.Resource, 0) for _, out := range resp.Addresses { resources = append(resources, &EC2Address{ - svc: svc, - eip: out, - id: ptr.ToString(out.AllocationId), - ip: ptr.ToString(out.PublicIp), + svc: svc, + AllocationID: out.AllocationId, + PublicIP: out.PublicIp, + Tags: out.Tags, }) } @@ -51,15 +49,17 @@ func (l *EC2AddressLister) List(_ context.Context, o interface{}) ([]resource.Re } type EC2Address struct { - svc *ec2.EC2 - eip *ec2.Address - id string - ip string + svc *ec2.EC2 + AllocationID *string + PublicIP *string + NetworkBorderGroup *string + Tags []*ec2.Tag } -func (e *EC2Address) Remove(_ context.Context) error { - _, err := e.svc.ReleaseAddress(&ec2.ReleaseAddressInput{ - AllocationId: &e.id, +func (r *EC2Address) Remove(_ context.Context) error { + _, err := r.svc.ReleaseAddress(&ec2.ReleaseAddressInput{ + AllocationId: r.AllocationID, + NetworkBorderGroup: r.NetworkBorderGroup, }) if err != nil { return err @@ -68,15 +68,10 @@ func (e *EC2Address) Remove(_ context.Context) error { return nil } -func (e *EC2Address) Properties() types.Properties { - properties := types.NewProperties() - for _, tagValue := range e.eip.Tags { - properties.SetTag(tagValue.Key, tagValue.Value) - } - properties.Set("AllocationID", e.id) - return properties +func (r *EC2Address) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) } -func (e *EC2Address) String() string { - return e.ip +func (r *EC2Address) String() string { + return *r.PublicIP } From 66102a0cc538dcfac34f6a2226f84ff8b60d3a18 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 10 Oct 2024 16:32:10 -0600 Subject: [PATCH 600/617] chore(golangci-lint): fix lint violation --- resources/apigateway-api-key.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/apigateway-api-key.go b/resources/apigateway-api-key.go index 941d1c37..e953f09e 100644 --- a/resources/apigateway-api-key.go +++ b/resources/apigateway-api-key.go @@ -2,9 +2,10 @@ package resources import ( "context" - "go.uber.org/ratelimit" "time" + "go.uber.org/ratelimit" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/apigateway" From 29b892699a308727e4f3f72da252a49a1f6f9af8 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 10 Oct 2024 16:56:53 -0600 Subject: [PATCH 601/617] fix(secretsmanager-secret): filter aws managed secrets --- resources/secretsmanager-secret.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/resources/secretsmanager-secret.go b/resources/secretsmanager-secret.go index 16bee586..c693ce36 100644 --- a/resources/secretsmanager-secret.go +++ b/resources/secretsmanager-secret.go @@ -2,6 +2,8 @@ package resources import ( "context" + "errors" + "regexp" "strings" "github.com/gotidy/ptr" @@ -19,6 +21,9 @@ import ( const SecretsManagerSecretResource = "SecretsManagerSecret" +var managedRegex = regexp.MustCompile("^([a-z-]+)!.*$") +var errAWSManaged = errors.New("cannot delete AWS managed secret") + func init() { registry.Register(®istry.Registration{ Name: SecretsManagerSecretResource, @@ -128,6 +133,20 @@ func (r *SecretsManagerSecret) Remove(_ context.Context) error { return err } +func (r *SecretsManagerSecret) Filter() error { + if managedRegex.MatchString(*r.Name) { + return errAWSManaged + } + + for _, tag := range r.tags { + if *tag.Key == "aws:secretsmanager:owningService" { + return errAWSManaged + } + } + + return nil +} + func (r *SecretsManagerSecret) Properties() types.Properties { properties := types.NewProperties() properties.Set("PrimaryRegion", r.PrimaryRegion) From 8e7dadb039c31b83f55bd696cb8b180bda557291 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 10 Oct 2024 17:21:03 -0600 Subject: [PATCH 602/617] docs: add community contribution presets --- docs/config-contrib.md | 100 +++++++++++++++++++++++++++++++++++++++++ mkdocs.yml | 1 + 2 files changed, 101 insertions(+) create mode 100644 docs/config-contrib.md diff --git a/docs/config-contrib.md b/docs/config-contrib.md new file mode 100644 index 00000000..ffd7e5cf --- /dev/null +++ b/docs/config-contrib.md @@ -0,0 +1,100 @@ +# Config Contributions + +## Community Presets + +These are a collection of presets from the community. + +!!! warning + These presets are built from feedback from the community, they are not routinely tested. Use at your own risk. + +### Filter SSO Resources + +This is a preset to filter out AWS SSO resources. + +```yaml +presets: + sso: + filters: + IAMSAMLProvider: + - type: "regex" + value: "AWSSSO_.*_DO_NOT_DELETE" + IAMRole: + - type: "glob" + value: "AWSReservedSSO_*" + IAMRolePolicyAttachment: + - type: "glob" + value: "AWSReservedSSO_*" +``` + +### Filter Control Tower + +This is a preset to filter out AWS Control Tower resources. + +```yaml +presets: + controltower: + filters: + CloudTrailTrail: + - type: "contains" + value: "aws-controltower" + CloudWatchEventsRule: + - type: "contains" + value: "aws-controltower" + EC2VPCEndpoint: + - type: "contains" + value: "aws-controltower" + EC2VPC: + - type: "contains" + value: "aws-controltower" + OpsWorksUserProfile: + - type: "contains" + value: "AWSControlTowerExecution" + CloudWatchLogsLogGroup: + - type: "contains" + value: "aws-controltower" + - type: "contains" + value: "AWSControlTowerBP" + CloudWatchEventsTarget: + - type: "contains" + value: "aws-controltower" + SNSSubscription: + - type: "contains" + value: "aws-controltower" + SNSTopic: + - type: "contains" + value: "aws-controltower" + EC2Subnet: + - type: "contains" + value: "aws-controltower" + ConfigServiceDeliveryChannel: + - type: "contains" + value: "aws-controltower" + ConfigServiceConfigurationRecorder: + - type: "contains" + value: "aws-controltower" + CloudFormationStack: + - type: "contains" + value: "AWSControlTower" + EC2RouteTable: + - type: "contains" + value: "aws-controltower" + LambdaFunction: + - type: "contains" + value: "aws-controltower" + EC2DHCPOption: + - type: "contains" + value: "aws-controltower" + IAMRole: + - type: "contains" + value: "aws-controltower" + - type: "contains" + value: "AWSControlTower" + IAMRolePolicyAttachment: + - type: "contains" + value: "aws-controltower" + - type: "contains" + value: "AWSControlTower" + IAMRolePolicy: + - type: "contains" + value: "aws-controltower" +``` \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index 2d932378..a18f814f 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -91,6 +91,7 @@ nav: - Presets: config-presets.md - Custom Endpoints: config-custom-endpoints.md - Migration Guide: config-migration.md + - Examples & Presets: config-contrib.md - Resources: - Overview: resources/overview.md - Cognito User Pool: resources/cognito-user-pool.md From 039688e933e94452583e95ed6d9ed3c1bfe1f313 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 10 Oct 2024 18:17:20 -0600 Subject: [PATCH 603/617] feat(resource): add new OSPipeline resource for opensearch service pipelines --- resources/opensearchservice-pipeline.go | 83 +++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 resources/opensearchservice-pipeline.go diff --git a/resources/opensearchservice-pipeline.go b/resources/opensearchservice-pipeline.go new file mode 100644 index 00000000..89e14fe6 --- /dev/null +++ b/resources/opensearchservice-pipeline.go @@ -0,0 +1,83 @@ +package resources + +import ( + "context" + "time" + + "github.com/aws/aws-sdk-go/service/osis" + + "github.com/ekristen/libnuke/pkg/registry" + "github.com/ekristen/libnuke/pkg/resource" + "github.com/ekristen/libnuke/pkg/types" + + "github.com/ekristen/aws-nuke/v3/pkg/nuke" +) + +const OSPipelineResource = "OSPipeline" + +func init() { + registry.Register(®istry.Registration{ + Name: OSPipelineResource, + Scope: nuke.Account, + Lister: &OSPipelineLister{}, + }) +} + +type OSPipelineLister struct{} + +func (l *OSPipelineLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) { + opts := o.(*nuke.ListerOpts) + var resources []resource.Resource + + svc := osis.New(opts.Session) + + params := &osis.ListPipelinesInput{} + + for { + res, err := svc.ListPipelines(params) + if err != nil { + return nil, err + } + + for _, p := range res.Pipelines { + resources = append(resources, &OSPipeline{ + svc: svc, + Name: p.PipelineName, + Tags: p.Tags, + Status: p.Status, + CreatedAt: p.CreatedAt, + }) + } + + if res.NextToken == nil { + break + } + + params.NextToken = res.NextToken + } + + return resources, nil +} + +type OSPipeline struct { + svc *osis.OSIS + Name *string + Status *string + CreatedAt *time.Time + Tags []*osis.Tag +} + +func (r *OSPipeline) Remove(_ context.Context) error { + _, err := r.svc.DeletePipeline(&osis.DeletePipelineInput{ + PipelineName: r.Name, + }) + return err +} + +func (r *OSPipeline) Properties() types.Properties { + return types.NewPropertiesFromStruct(r) +} + +func (r *OSPipeline) String() string { + return *r.Name +} From 27e65bd48641f0ee278a1ed3a6f3c6d33d68ffe0 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 10 Oct 2024 18:40:59 -0600 Subject: [PATCH 604/617] feat(kms-key): add kms alias to kms key for filtering purposes --- resources/kms-key.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/resources/kms-key.go b/resources/kms-key.go index 043824e5..0b5f46cb 100644 --- a/resources/kms-key.go +++ b/resources/kms-key.go @@ -98,6 +98,17 @@ func (l *KMSKeyLister) List(_ context.Context, o interface{}) ([]resource.Resour } } + keyAliases, err := svc.ListAliases(&kms.ListAliasesInput{ + KeyId: key.KeyId, + }) + if err != nil { + logrus.WithError(err).Error("unable to list aliases") + } + + if len(keyAliases.Aliases) > 0 { + kmsKey.Alias = keyAliases.Aliases[0].AliasName + } + resources = append(resources, kmsKey) } @@ -118,6 +129,7 @@ type KMSKey struct { ID *string State *string Manager *string + Alias *string Tags []*kms.Tag } From 54b15be2f5744a4c969e8275b9df013280b68f23 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 10 Oct 2024 18:52:59 -0600 Subject: [PATCH 605/617] test(kms-key): fix tests for new alias property and list aliases call --- resources/kms-key_mock_test.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/resources/kms-key_mock_test.go b/resources/kms-key_mock_test.go index 0d4c5df8..a9fd1989 100644 --- a/resources/kms-key_mock_test.go +++ b/resources/kms-key_mock_test.go @@ -56,6 +56,14 @@ func Test_Mock_KMSKey_List(t *testing.T) { }, ) + mockKMS.EXPECT().ListAliases(&kms.ListAliasesInput{ + KeyId: aws.String("test-key-id"), + }).Return(&kms.ListAliasesOutput{ + Aliases: []*kms.AliasListEntry{ + {AliasName: aws.String("alias/test-key-id")}, + }, + }, nil) + lister := KMSKeyLister{ mockSvc: mockKMS, } @@ -123,6 +131,14 @@ func Test_Mock_KMSKey_List_WithAccessDenied(t *testing.T) { }, ) + mockKMS.EXPECT().ListAliases(&kms.ListAliasesInput{ + KeyId: aws.String("test-key-id-1"), + }).Return(&kms.ListAliasesOutput{ + Aliases: []*kms.AliasListEntry{ + {AliasName: aws.String("alias/test-key-id-1")}, + }, + }, nil) + lister := KMSKeyLister{ mockSvc: mockKMS, } @@ -180,6 +196,7 @@ func Test_Mock_KMSKey_Properties(t *testing.T) { ID: ptr.String("test-key-id"), State: ptr.String(kms.KeyStateEnabled), Manager: ptr.String(kms.KeyManagerTypeCustomer), + Alias: ptr.String("alias/test-key-id"), Tags: []*kms.Tag{ {TagKey: aws.String("Environment"), TagValue: aws.String("Test")}, }, @@ -189,6 +206,7 @@ func Test_Mock_KMSKey_Properties(t *testing.T) { assert.Equal(t, kms.KeyStateEnabled, kmsKey.Properties().Get("State")) assert.Equal(t, kms.KeyManagerTypeCustomer, kmsKey.Properties().Get("Manager")) assert.Equal(t, "Test", kmsKey.Properties().Get("tag:Environment")) + assert.Equal(t, "alias/test-key-id", kmsKey.Properties().Get("Alias")) } func Test_Mock_KMSKey_Remove(t *testing.T) { From c27d01bcec4a81b5ae9700accc4681d40030423f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 13 Oct 2024 15:19:10 +0000 Subject: [PATCH 606/617] fix(deps): update module github.com/urfave/cli/v2 to v2.27.5 --- go.mod | 4 ++-- go.sum | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 150f0309..bb5211fe 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( github.com/pkg/errors v0.9.1 github.com/sirupsen/logrus v1.9.3 github.com/stretchr/testify v1.9.0 - github.com/urfave/cli/v2 v2.27.4 + github.com/urfave/cli/v2 v2.27.5 go.uber.org/ratelimit v0.3.1 golang.org/x/text v0.18.0 gopkg.in/yaml.v3 v3.0.1 @@ -20,7 +20,7 @@ require ( require ( github.com/benbjohnson/clock v1.3.0 // indirect - github.com/cpuguy83/go-md2man/v2 v2.0.4 // indirect + github.com/cpuguy83/go-md2man/v2 v2.0.5 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect github.com/kr/pretty v0.3.1 // indirect diff --git a/go.sum b/go.sum index bfcc3707..d49ae73c 100644 --- a/go.sum +++ b/go.sum @@ -4,6 +4,8 @@ github.com/benbjohnson/clock v1.3.0 h1:ip6w0uFQkncKQ979AypyG0ER7mqUSBdKLOgAle/AT github.com/benbjohnson/clock v1.3.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/cpuguy83/go-md2man/v2 v2.0.4 h1:wfIWP927BUkWJb2NmU/kNDYIBTh/ziUX91+lVfRxZq4= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/cpuguy83/go-md2man/v2 v2.0.5 h1:ZtcqGrnekaHpVLArFSe4HK5DoKx1T0rq2DwVB0alcyc= +github.com/cpuguy83/go-md2man/v2 v2.0.5/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= @@ -58,6 +60,8 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/urfave/cli/v2 v2.27.4 h1:o1owoI+02Eb+K107p27wEX9Bb8eqIoZCfLXloLUSWJ8= github.com/urfave/cli/v2 v2.27.4/go.mod h1:m4QzxcD2qpra4z7WhzEGn74WZLViBnMpb1ToCAKdGRQ= +github.com/urfave/cli/v2 v2.27.5 h1:WoHEJLdsXr6dDWoJgMq/CboDmyY/8HMMH1fTECbih+w= +github.com/urfave/cli/v2 v2.27.5/go.mod h1:3Sevf16NykTbInEnD0yKkjDAeZDS0A6bzhBH5hrMvTQ= github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 h1:gEOO8jv9F4OT7lGCjxCBTO/36wtF6j2nSip77qHd4x4= github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1/go.mod h1:Ohn+xnUBiLI6FVj/9LpzZWtj1/D6lUovWYBkxHVV3aM= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= From dced12763b02a4f4a6d4f90ff404f03a2a86bf4a Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 14 Oct 2024 13:18:12 -0600 Subject: [PATCH 607/617] docs: add to contrib config for control tower, fix copy/paste issue in ec2 docs --- docs/config-contrib.md | 7 +++++++ docs/resources/ec2-image.md | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/config-contrib.md b/docs/config-contrib.md index ffd7e5cf..9e648c72 100644 --- a/docs/config-contrib.md +++ b/docs/config-contrib.md @@ -40,6 +40,9 @@ presets: CloudWatchEventsRule: - type: "contains" value: "aws-controltower" + - property: "Name" + type: glob + value: "AWSControlTower*" EC2VPCEndpoint: - type: "contains" value: "aws-controltower" @@ -57,6 +60,8 @@ presets: CloudWatchEventsTarget: - type: "contains" value: "aws-controltower" + - type: "glob" + value: "Rule: AWSControlTower*" SNSSubscription: - type: "contains" value: "aws-controltower" @@ -97,4 +102,6 @@ presets: IAMRolePolicy: - type: "contains" value: "aws-controltower" + - type: glob + value: "AWSReservedSSO_*" ``` \ No newline at end of file diff --git a/docs/resources/ec2-image.md b/docs/resources/ec2-image.md index 8b298938..e2ef55e7 100644 --- a/docs/resources/ec2-image.md +++ b/docs/resources/ec2-image.md @@ -1,6 +1,6 @@ # EC2 Image -This will remove all IAM Roles an AWS account. +This will remove all EC2 Images (AMI) in an AWS account. ## Resource From 9be23dbb56ddb64f8a9ff2627d41d7c6a922736f Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 14 Oct 2024 15:23:49 -0600 Subject: [PATCH 608/617] test(iam-user): fix bad reference on integration tests --- resources/iam-user_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/iam-user_test.go b/resources/iam-user_test.go index 9a9ccd03..06e58ed1 100644 --- a/resources/iam-user_test.go +++ b/resources/iam-user_test.go @@ -35,8 +35,8 @@ func Test_IAMUser_Remove(t *testing.T) { iamUser := IAMUser{ svc: svc, - name: aws.String("test-user"), - tags: createInput.Tags, + Name: aws.String("test-user"), + Tags: createInput.Tags, } removeError := iamUser.Remove(context.TODO()) From b50f033a34784528caaa03a7c7c2db8a914f008d Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 14 Oct 2024 15:24:25 -0600 Subject: [PATCH 609/617] test(s3-bucket): fix integration test for bypass governance --- resources/s3-bucket_test.go | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/resources/s3-bucket_test.go b/resources/s3-bucket_test.go index e22f7aa9..8e315a44 100644 --- a/resources/s3-bucket_test.go +++ b/resources/s3-bucket_test.go @@ -9,6 +9,7 @@ import ( "testing" "time" + "github.com/gotidy/ptr" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" @@ -21,13 +22,13 @@ import ( "github.com/ekristen/aws-nuke/v3/pkg/awsmod" ) -type TestS3BucketObjectLockSuite struct { +type TestS3BucketSuite struct { suite.Suite bucket string svc *s3.S3 } -func (suite *TestS3BucketObjectLockSuite) SetupSuite() { +func (suite *TestS3BucketSuite) SetupSuite() { var err error suite.bucket = fmt.Sprintf("aws-nuke-testing-bucket-%d", time.Now().UnixNano()) @@ -89,7 +90,7 @@ func (suite *TestS3BucketObjectLockSuite) SetupSuite() { } } -func (suite *TestS3BucketObjectLockSuite) TearDownSuite() { +func (suite *TestS3BucketSuite) TearDownSuite() { iterator := newS3DeleteVersionListIterator(suite.svc, &s3.ListObjectVersionsInput{ Bucket: &suite.bucket, }, true) @@ -118,6 +119,10 @@ func (suite *TestS3BucketObjectLockSuite) TearDownSuite() { } } +type TestS3BucketObjectLockSuite struct { + TestS3BucketSuite +} + func (suite *TestS3BucketObjectLockSuite) TestS3BucketObjectLock() { // Verify the object lock configuration result, err := suite.svc.GetObjectLockConfiguration(&s3.GetObjectLockConfigurationInput{ @@ -144,11 +149,16 @@ func (suite *TestS3BucketObjectLockSuite) TestS3BucketRemove() { assert.Error(suite.T(), err) } -func (suite *TestS3BucketObjectLockSuite) TestS3BucketRemoveWithBypass() { +type TestS3BucketBypassGovernanceSuite struct { + TestS3BucketSuite +} + +func (suite *TestS3BucketBypassGovernanceSuite) TestS3BucketRemoveWithBypass() { // Create the S3Bucket object bucket := &S3Bucket{ - svc: suite.svc, - name: suite.bucket, + svc: suite.svc, + name: suite.bucket, + ObjectLock: ptr.String("Enabled"), settings: &libsettings.Setting{ "BypassGovernanceRetention": true, }, @@ -161,3 +171,7 @@ func (suite *TestS3BucketObjectLockSuite) TestS3BucketRemoveWithBypass() { func TestS3BucketObjectLock(t *testing.T) { suite.Run(t, new(TestS3BucketObjectLockSuite)) } + +func TestS3BucketBypassGovernance(t *testing.T) { + suite.Run(t, new(TestS3BucketBypassGovernanceSuite)) +} From 4f04dafbe9d68fd085aca9f0c42cfd3bfec70dc0 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 15 Oct 2024 16:33:40 -0600 Subject: [PATCH 610/617] feat: filter groups --- docs/features/filter-groups.md | 0 go.mod | 2 +- go.sum | 2 ++ pkg/commands/nuke/nuke.go | 4 ++++ 4 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 docs/features/filter-groups.md diff --git a/docs/features/filter-groups.md b/docs/features/filter-groups.md new file mode 100644 index 00000000..e69de29b diff --git a/go.mod b/go.mod index c19f15f9..b8421c4d 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.21.6 require ( github.com/aws/aws-sdk-go v1.54.20 - github.com/ekristen/libnuke v0.19.2 + github.com/ekristen/libnuke v0.20.0 github.com/fatih/color v1.17.0 github.com/golang/mock v1.6.0 github.com/google/uuid v1.6.0 diff --git a/go.sum b/go.sum index 861afa6f..f72c6163 100644 --- a/go.sum +++ b/go.sum @@ -16,6 +16,8 @@ github.com/ekristen/libnuke v0.19.1 h1:n52PMccQjs4MsaYPtulavxmKyHFq4xz3KCy6mpjoX github.com/ekristen/libnuke v0.19.1/go.mod h1:riI1tjCf6r+et/9oUBd1vQeFmn2Sn6UeFUR0nWkMeYw= github.com/ekristen/libnuke v0.19.2 h1:dlmqeHBHaQN+gv6Cg7+DwehpayocAABTYzSaTmaP6Pk= github.com/ekristen/libnuke v0.19.2/go.mod h1:DIN5VmrH6AUwaXc25RHcH/V+JKALdl16CN9iJvFtbK4= +github.com/ekristen/libnuke v0.20.0 h1:GV6ebfPt3ac+5ygto3hdIH5PN9ppXPAAJo7C00ngOCI= +github.com/ekristen/libnuke v0.20.0/go.mod h1:DIN5VmrH6AUwaXc25RHcH/V+JKALdl16CN9iJvFtbK4= github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4= github.com/fatih/color v1.17.0/go.mod h1:YZ7TlrGPkiz6ku9fK3TLD/pl3CpsiFyu8N92HLgmosI= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= diff --git a/pkg/commands/nuke/nuke.go b/pkg/commands/nuke/nuke.go index 8f1b7190..3e9d5ac6 100644 --- a/pkg/commands/nuke/nuke.go +++ b/pkg/commands/nuke/nuke.go @@ -68,6 +68,10 @@ func execute(c *cli.Context) error { //nolint:funlen,gocyclo if slices.Contains(c.StringSlice("feature-flag"), "wait-on-dependencies") { params.WaitOnDependencies = true } + + if slices.Contains(c.StringSlice("feature-flag"), "filter-groups") { + params.UseFilterGroups = true + } } // Parse the user supplied configuration file to pass in part to configure the nuke process. From 5713f820c32cb8c9020699d3aaee894f4f922792 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 15 Oct 2024 16:33:54 -0600 Subject: [PATCH 611/617] docs: filter groups --- docs/cli-experimental.md | 21 ++++++++++++++++++++- docs/config-filtering.md | 27 +++++++++++++++++++++++++++ docs/features/filter-groups.md | 11 +++++++++++ mkdocs.yml | 1 + 4 files changed, 59 insertions(+), 1 deletion(-) diff --git a/docs/cli-experimental.md b/docs/cli-experimental.md index bc89bb78..59adb4bc 100644 --- a/docs/cli-experimental.md +++ b/docs/cli-experimental.md @@ -20,6 +20,8 @@ aws-nuke run --feature-flag "wait-on-dependencies" ## Available Feature Flags +- `filter-groups` - This feature flag will cause aws-nuke to filter based on a grouping method which allows for AND'ing + filters together. - `wait-on-dependencies` - This feature flag will cause aws-nuke to wait for all resource type dependencies to be deleted before deleting the next resource type. @@ -32,4 +34,21 @@ an attached policy. The problem is that if you delete the IAM Role first, it will fail because it has a dependency on the policy. This feature flag will cause aws-nuke to wait for all resources of a given type to be deleted before deleting the next -resource type. This will reduce the number of errors and unnecessary API calls. \ No newline at end of file +resource type. This will reduce the number of errors and unnecessary API calls. + +### filter-groups + +This feature flag will cause aws-nuke to filter resources based on a group method. This is useful when filters need +to be AND'd together. For example, if you want to delete all resources that are tagged with `env:dev` and `namespace:test` +you can use the following filter group: + +```yaml +filters: + ResourceType: + - property: tag:env + value: dev + group: group1 + - property: tag:namespace + value: test + group: group2 +``` \ No newline at end of file diff --git a/docs/config-filtering.md b/docs/config-filtering.md index 1b17c94b..3fe3349b 100644 --- a/docs/config-filtering.md +++ b/docs/config-filtering.md @@ -21,6 +21,33 @@ against some resources and not others. Global works by taking all filters defined under `__global__` and prepends to any filters found for a resource type. If a resource does NOT have any filters defined, the `__global__` ones will still be used. +## Filter Groups + +!!! important + Filter groups are an experimental feature and are disabled by default. To enable filter groups, use the + `--feature-flag filter-groups` flag. + +Filter groups are used to group filters together. This is useful when filters need to be AND'd together. For example, +if you want to delete all resources that are tagged with `env:dev` and `namespace:test` you can use the following filter +group: + +```yaml +filters: + ResourceType: + - property: tag:env + value: dev + group: group1 + - property: tag:namespace + value: test + group: group2 +``` + +In this example, the `group1` and `group2` filters are AND'd together. This means that a resource must match both filters +to be excluded from deletion. + +Only a single filter in a group is required to match. This means that if a resource matches any filter in a group it will +count as a match for the group. + ### Example In this example, we are ignoring all resources that have the tag `aws-nuke` set to `ignore`. Additionally filtering diff --git a/docs/features/filter-groups.md b/docs/features/filter-groups.md index e69de29b..68fe1da6 100644 --- a/docs/features/filter-groups.md +++ b/docs/features/filter-groups.md @@ -0,0 +1,11 @@ +# Filter Groups + +!!! important + This feature is experimental and is disabled by default. To enable it, use the `--feature-flag "filter-groups"` CLI argument. + +Filter groups allow you to filter resources based on a grouping method which allows for AND'ing filters together. By +default, all filters belong to the same group, but you can specify a group name to group filters together. + +All filters within a group are OR'd together, and all groups are AND'd together. + +[Full Documentation](../config-filtering.md#filter-groups) \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index a18f814f..c1435277 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -77,6 +77,7 @@ nav: - Overview: features/overview.md - Bypass Alias Check: features/bypass-alias-check.md - Global Filters: features/global-filters.md + - Filter Groups: features/filter-groups.md - Enabled Regions: features/enabled-regions.md - Signed Binaries: features/signed-binaries.md - CLI: From c0ba1af9be8f029fb45d9d725f48cfc51425fbf1 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 17 Oct 2024 13:54:06 +0000 Subject: [PATCH 612/617] fix(deps): update module github.com/ekristen/libnuke to v0.21.0 --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index b8421c4d..be886660 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.21.6 require ( github.com/aws/aws-sdk-go v1.54.20 - github.com/ekristen/libnuke v0.20.0 + github.com/ekristen/libnuke v0.21.0 github.com/fatih/color v1.17.0 github.com/golang/mock v1.6.0 github.com/google/uuid v1.6.0 diff --git a/go.sum b/go.sum index f72c6163..42c70304 100644 --- a/go.sum +++ b/go.sum @@ -18,6 +18,8 @@ github.com/ekristen/libnuke v0.19.2 h1:dlmqeHBHaQN+gv6Cg7+DwehpayocAABTYzSaTmaP6 github.com/ekristen/libnuke v0.19.2/go.mod h1:DIN5VmrH6AUwaXc25RHcH/V+JKALdl16CN9iJvFtbK4= github.com/ekristen/libnuke v0.20.0 h1:GV6ebfPt3ac+5ygto3hdIH5PN9ppXPAAJo7C00ngOCI= github.com/ekristen/libnuke v0.20.0/go.mod h1:DIN5VmrH6AUwaXc25RHcH/V+JKALdl16CN9iJvFtbK4= +github.com/ekristen/libnuke v0.21.0 h1:8bBlx4Bj9WP1inxz6+iGxXW6V2iDDJidbT+0xsQDlLE= +github.com/ekristen/libnuke v0.21.0/go.mod h1:DIN5VmrH6AUwaXc25RHcH/V+JKALdl16CN9iJvFtbK4= github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4= github.com/fatih/color v1.17.0/go.mod h1:YZ7TlrGPkiz6ku9fK3TLD/pl3CpsiFyu8N92HLgmosI= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= From 7cb24b21e5640cc60b3b95a57b6fb27c17f4f29a Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Thu, 17 Oct 2024 08:06:18 -0600 Subject: [PATCH 613/617] docs: dataOlderThanNow --- docs/config-filtering.md | 41 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/docs/config-filtering.md b/docs/config-filtering.md index 1b17c94b..7ded6bfc 100644 --- a/docs/config-filtering.md +++ b/docs/config-filtering.md @@ -53,6 +53,7 @@ The following are comparisons that you can use to filter resources. These are u - `glob` - `regex` - `dateOlderThan` +- `dateOlderThanNow` To use a non-default comparison type, it is required to specify an object with `type` and `value` instead of the plain string. @@ -114,6 +115,10 @@ IAMUser: ### DateOlderThan +!!! warning + You likely do not want this filter, instead you likely want [dateOlderThanNow](#dateolderthannow) + + This works by parsing the specified property into a timestamp and comparing it to the current time minus the specified duration. The duration is specified in the `value` field. The duration syntax is based on golang's duration syntax. @@ -140,6 +145,42 @@ EC2Image: value: 1h ``` +### DateOlderThanNow + +!!! note + Typically this filter is used in conjunction with `invert: true` as the primary use case is to find resources + older than a date and **NOT** filtering them out, and instead filtering anything newer than now minus the duration + provided in the `value` field of the property. + +Unlike `dateOlderThan`, this filter uses the property's value, assumed to be a date, compared against the current now +time modified by the duration provided in the value of the filter. + +The `value` in the filter must be a [golang time duration value,](https://www.geeksforgeeks.org/time-parseduration-function-in-golang-with-examples/) and it is +added (if positive) or subtracted (if negative) from the current time and then the value of the property is compared +to the modified time. **Note:** you almost always want the value to be negative. + +> ParseDuration parses a duration string. A duration string is a possibly signed sequence of decimal numbers, each with +> optional fraction and a unit suffix, such as "300ms", "-1.5h" or "2h45m". Valid time units are "ns", "us" (or "µs"), +> "ms", "s", "m", "h". + +#### Example with Invert + +```yaml +IAMRole: + - type: dateOlderThanNow + property: LastUsedDate + value: -12h + invert: true +``` + +If the current time is `2024-10-15T00:00:00Z`, then the modified now time is `2024-10-14T12:00:00Z`. + +If the value of `LastUsedDate` is `2024-10-14T14:30:00Z` then the result of the filter will be `true`. It is **NOT** +older than the modified time, and since the invert is set to true, anything **newer** to the modified time is filtered. + +If the value of `LastUsedDate` is `2024-10-13T12:30:00Z` then the result of the filter will be `false` and the resource +will be marked for removal. + ## Properties By default, when writing a filter if you do not specify a property, it will use the `Name` property. However, resources From 58a5b77b7f13af997263a6495a351d143caf85bd Mon Sep 17 00:00:00 2001 From: Muhammed Ahmed Date: Fri, 18 Oct 2024 16:58:34 +0100 Subject: [PATCH 614/617] feat(ec2-vpc-endpoint-connection): add tags to properties --- resources/ec2-vpc-endpoint-connection.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/ec2-vpc-endpoint-connection.go b/resources/ec2-vpc-endpoint-connection.go index e7a4f12d..88611153 100644 --- a/resources/ec2-vpc-endpoint-connection.go +++ b/resources/ec2-vpc-endpoint-connection.go @@ -52,6 +52,7 @@ func (l *EC2VPCEndpointConnectionLister) List(_ context.Context, o interface{}) VPCEndpointID: endpointConnection.VpcEndpointId, State: endpointConnection.VpcEndpointState, Owner: endpointConnection.VpcEndpointOwner, + tags: endpointConnection.Tags, }) } @@ -71,6 +72,7 @@ type EC2VPCEndpointConnection struct { VPCEndpointID *string State *string Owner *string + tags []*ec2.Tag } func (r *EC2VPCEndpointConnection) Filter() error { From f9c710179bbe8067f59f0fff76d0b57b5f7125c5 Mon Sep 17 00:00:00 2001 From: Muhammed Ahmed Date: Fri, 18 Oct 2024 19:35:04 +0100 Subject: [PATCH 615/617] refactor(ec2-vpc-endpoint-connection): switch to exported field --- resources/ec2-vpc-endpoint-connection.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/ec2-vpc-endpoint-connection.go b/resources/ec2-vpc-endpoint-connection.go index 88611153..6b5b2bb8 100644 --- a/resources/ec2-vpc-endpoint-connection.go +++ b/resources/ec2-vpc-endpoint-connection.go @@ -52,7 +52,7 @@ func (l *EC2VPCEndpointConnectionLister) List(_ context.Context, o interface{}) VPCEndpointID: endpointConnection.VpcEndpointId, State: endpointConnection.VpcEndpointState, Owner: endpointConnection.VpcEndpointOwner, - tags: endpointConnection.Tags, + Tags: endpointConnection.Tags, }) } @@ -72,7 +72,7 @@ type EC2VPCEndpointConnection struct { VPCEndpointID *string State *string Owner *string - tags []*ec2.Tag + Tags []*ec2.Tag } func (r *EC2VPCEndpointConnection) Filter() error { From b846e7fbf5ed64f9d1ef3c18e7591012e8e3ed46 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Sun, 20 Oct 2024 09:25:12 -0600 Subject: [PATCH 616/617] fix(dep): update github.com/ekristen/libnuke to v0.21.1 --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index be886660..b8cdec82 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.21.6 require ( github.com/aws/aws-sdk-go v1.54.20 - github.com/ekristen/libnuke v0.21.0 + github.com/ekristen/libnuke v0.21.1 github.com/fatih/color v1.17.0 github.com/golang/mock v1.6.0 github.com/google/uuid v1.6.0 diff --git a/go.sum b/go.sum index 42c70304..aaa730b0 100644 --- a/go.sum +++ b/go.sum @@ -20,6 +20,8 @@ github.com/ekristen/libnuke v0.20.0 h1:GV6ebfPt3ac+5ygto3hdIH5PN9ppXPAAJo7C00ngO github.com/ekristen/libnuke v0.20.0/go.mod h1:DIN5VmrH6AUwaXc25RHcH/V+JKALdl16CN9iJvFtbK4= github.com/ekristen/libnuke v0.21.0 h1:8bBlx4Bj9WP1inxz6+iGxXW6V2iDDJidbT+0xsQDlLE= github.com/ekristen/libnuke v0.21.0/go.mod h1:DIN5VmrH6AUwaXc25RHcH/V+JKALdl16CN9iJvFtbK4= +github.com/ekristen/libnuke v0.21.1 h1:fngmzmV2JyjDagxh8SzPDcJ5dvmhDjvbU+XhA1vsHPs= +github.com/ekristen/libnuke v0.21.1/go.mod h1:DIN5VmrH6AUwaXc25RHcH/V+JKALdl16CN9iJvFtbK4= github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4= github.com/fatih/color v1.17.0/go.mod h1:YZ7TlrGPkiz6ku9fK3TLD/pl3CpsiFyu8N92HLgmosI= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= From 61ea8a8806d4e54eca8acd5d22253f54932f2404 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Tue, 22 Oct 2024 16:08:40 -0600 Subject: [PATCH 617/617] docs: add clarity around filter and filter examples --- docs/config-filtering.md | 166 ++++++++++++++++++++------------ docs/features/global-filters.md | 4 + docs/index.md | 2 +- 3 files changed, 112 insertions(+), 60 deletions(-) diff --git a/docs/config-filtering.md b/docs/config-filtering.md index 1ee8e2cc..2384d64e 100644 --- a/docs/config-filtering.md +++ b/docs/config-filtering.md @@ -21,6 +21,17 @@ against some resources and not others. Global works by taking all filters defined under `__global__` and prepends to any filters found for a resource type. If a resource does NOT have any filters defined, the `__global__` ones will still be used. +Filters can only be defined under [presets](#presets) or [account level](#account-level) configurations. + +```yaml +presets: + example: + filters: + __global__: + - property: tag:Name + value: "aws-nuke" +``` + ## Filter Groups !!! important @@ -32,14 +43,16 @@ if you want to delete all resources that are tagged with `env:dev` and `namespac group: ```yaml -filters: - ResourceType: - - property: tag:env - value: dev - group: group1 - - property: tag:namespace - value: test - group: group2 +presets: + example: + filters: + ResourceType: + - property: tag:env + value: dev + group: group1 + - property: tag:namespace + value: test + group: group2 ``` In this example, the `group1` and `group2` filters are AND'd together. This means that a resource must match both filters @@ -54,21 +67,26 @@ In this example, we are ignoring all resources that have the tag `aws-nuke` set a specific instance by its `id`. When the `EC2Instance` resource is processed, it will have both filters applied. These ```yaml -__global__: - - property: tag:aws-nuke - value: "ignore" - -EC2Instance: - - "i-01b489457a60298dd" +presets: + example: + filters: + __global__: + - property: tag:aws-nuke + value: "ignore" + EC2Instance: + - "i-01b489457a60298dd" ``` This will ultimately render as the following filters for the `EC2Instance` resource: ```yaml -EC2Instance: - - "i-01b489457a60298dd" - - property: tag:aws-nuke - value: "ignore" +presets: + example: + filters: + EC2Instance: + - "i-01b489457a60298dd" + - property: tag:aws-nuke + value: "ignore" ``` ## Types @@ -89,9 +107,12 @@ These types can be used to simplify the configuration. For example, it is possib single user by using `glob`: ```yaml -IAMUserAccessKey: -- type: glob - value: "admin -> *" +presets: + example: + filters: + IAMUserAccessKey: + - type: glob + value: "admin -> *" ``` ### Exact @@ -101,10 +122,13 @@ The identifier must exactly match the given string. **This is the default.** Exact is just that, an exact match to a resource. The following examples are identical for the `exact` filter. ```yaml -IAMUser: -- AWSNukeUser -- type: exact - value: AWSNukeUser +presets: + example: + filters: + IAMUser: + - AWSNukeUser + - type: exact + value: AWSNukeUser ``` ### Contains @@ -112,9 +136,12 @@ IAMUser: The `contains` filter is a simple string contains match. The following examples are identical for the `contains` filter. ```yaml -IAMUser: - - type: contains - value: Nuke +presets: + example: + filters: + IAMUser: + - type: contains + value: Nuke ``` ### Glob @@ -124,9 +151,12 @@ wildcards like `*` and `?`. Note that globbing is designed for file paths, so th separator (`/`). Details about the glob pattern can be found in the [library documentation](https://godoc.org/github.com/mb0/glob) ```yaml -IAMUser: - - type: glob - value: "AWSNuke*" +presets: + example: + filters: + IAMUser: + - type: glob + value: "AWSNuke*" ``` ### Regex @@ -135,9 +165,12 @@ The identifier must match against the given regular expression. Details about th in the [library documentation](https://golang.org/pkg/regexp/syntax/). ```yaml -IAMUser: - - type: regex - value: "AWSNuke.*" +presets: + example: + filters: + IAMUser: + - type: regex + value: "AWSNuke.*" ``` ### DateOlderThan @@ -166,10 +199,13 @@ The value from the property is parsed as a timestamp and the following are the s In the follow example we are filtering EC2 Images that have a `CreationDate` older than 1 hour. ```yaml -EC2Image: - - type: dateOlderThan - property: CreationDate - value: 1h +presets: + example: + filters: + EC2Image: + - type: dateOlderThan + property: CreationDate + value: 1h ``` ### DateOlderThanNow @@ -193,11 +229,14 @@ to the modified time. **Note:** you almost always want the value to be negative. #### Example with Invert ```yaml -IAMRole: - - type: dateOlderThanNow - property: LastUsedDate - value: -12h - invert: true +presets: + example: + filters: + IAMRole: + - type: dateOlderThanNow + property: LastUsedDate + value: -12h + invert: true ``` If the current time is `2024-10-15T00:00:00Z`, then the modified now time is `2024-10-14T12:00:00Z`. @@ -227,9 +266,12 @@ These types can be used to simplify the configuration. For example, it is possib of a single user: ```yaml -IAMUserAccessKey: - - property: UserName - value: "admin" +presets: + example: + filters: + IAMUserAccessKey: + - property: UserName + value: "admin" ``` ## Inverting @@ -237,10 +279,13 @@ IAMUserAccessKey: Any filter result can be inverted by using `invert: true`, for example: ```yaml -CloudFormationStack: - - property: Name - value: "foo" - invert: true +presets: + example: + filters: + CloudFormationStack: + - property: Name + value: "foo" + invert: true ``` In this case *any* CloudFormationStack ***but*** the ones called "foo" will be filtered. Be aware that *aws-nuke* @@ -252,10 +297,13 @@ It is also possible to use Filter Properties and Filter Types together. For exam specific TLD: ```yaml -Route53HostedZone: - - property: Name - type: glob - value: "*.rebuy.cloud." +presets: + example: + filters: + Route53HostedZone: + - property: Name + type: glob + value: "*.rebuy.cloud." ``` ## Account Level @@ -366,7 +414,7 @@ account-blocklist: resource-types: # Specifying this in the configuration will ensure that only these three # resources are targeted by aws-nuke during it's run. - targets: + includes: - S3Object - S3Bucket - IAMRole @@ -392,8 +440,8 @@ accounts: 555133742: {} ``` -If targets are specified in multiple places (e.g. CLI and account specific), then a resource type must be specified in -all places. In other words each configuration limits the previous ones. +If `includes` are specified in multiple places (e.g. CLI and account specific), then a resource type must be specified +in all places. In other words each configuration limits the previous ones. If an exclude is used, then all its resource types will not be deleted. @@ -405,5 +453,5 @@ aws-nuke resource-types It is also possible to include and exclude resources using the command line arguments: -- The `--target` flag limits nuking to the specified resource types. -- The `--exclude` flag prevent nuking of the specified resource types. \ No newline at end of file +- The `--include` flag limits nuking to the specified resource types. +- The `--exclude` flag prevent nuking of the specified resource types. diff --git a/docs/features/global-filters.md b/docs/features/global-filters.md index 0fdde23e..3aa27129 100644 --- a/docs/features/global-filters.md +++ b/docs/features/global-filters.md @@ -4,4 +4,8 @@ Global filters are filters that are applied to all resources. They are defined u `__global__`. The global filters are pre-pended to all resources before any other filters for the specific resource are applied. +!!! note + This is a pseudo resource so to use it for filtering it can only be done in the supported filter locations, + such as `presets` or `accounts`. + [Full Documentation](../config-filtering.md#global) \ No newline at end of file diff --git a/docs/index.md b/docs/index.md index c40a89a9..9f6499bc 100644 --- a/docs/index.md +++ b/docs/index.md @@ -17,7 +17,7 @@ This is not a comprehensive list, but here are some of the highlights: * New Feature: [Global Filters](features/global-filters.md) * New Feature: [Run Against All Enabled Regions](features/enabled-regions.md) * New Feature: [Bypass Alias Check - Allow the skip of an alias on an account](features/bypass-alias-check.md) -* Upcoming Feature: Filter Groups (**in progress**) +* New Feature: [Filter Groups (Experimental)](features/filter-groups.md) * Breaking Change: `root` command no longer triggers the run, must use subcommand `run` (alias: `nuke`) * Completely rewrote the core of the tool as a dedicated library [libnuke](https://github.com/ekristen/libnuke) * This library has over 95% test coverage which makes iteration and new features easier to implement.